$(document).ready(function() {  
  // Coming soon for Event management - change static text to QTip
  // $('#em-coming-soon').hide();
  //   $('#em-logo').qtip({
  //      content: {
  //        prerender: true,
  //        text: 'Coming soon&hellip;'
  //      },
  //      show: {
  //        delay: 0,
  //        when: 'mouseover'
  //      },
  //      hide: 'mouseout',
  //      style: 'dark',
  //      position: {
  //        corner: {
  //          target: 'center',
  //          tooltip: 'center'
  //        }
  //      }
  //   });
  //   $('#em-logo').mouseover(function () {
  //     $(this).fadeTo(100,0.5);
  //   });
  //   $('#em-logo').mouseout(function () {
  //     $(this).fadeTo(100,1);
  //   });
  
  // Main animation
  $('#leisure-logo').hide();
  $('#rest-of-content').hide();
  $('#footer').hide();
  
  $('#leisure-logo').css('position','absolute')
                    .css('width','700px') 
                    .css('top','143px')
                    .css('left','35px')
                    .css('margin','0');
  
  $('#leisure-logo').delay(500).fadeIn().delay(1500).animate({
     width: '400px',
     left: '185px',
     top: '35px'
  }, 1500, function () {
    $('#leisure-logo').css('position','')
                      .css('width','')
                      .css('top','')
                      .css('left','')
                      .css('margin','')
                      .css('display','');
    $('#rest-of-content').delay(500).fadeIn();
    $('#footer').delay(1500).fadeIn('slow');
  });
  
  // Site Link Animations
  $('#content .sjb-site a img').mouseover(function () {
    $(this).stop().animate({
      width: '340px',
      marginTop: '0',
      marginBottom: '0',
      marginLeft: '17px',
      marginRight: '17px'
    }, 500);
  })
  .mouseout(function () {
    $(this).stop().animate({
      width: '300px',
      marginTop: '20px',
      marginBottom: '20px',
      marginLeft: '37px',
      marginRight: '37px'
    }, 500);
  });
});
