
  $().ready(function() {
    var moveToActive, moveToLogo;
    moveToActive = function() {
      var initOffset, initWidth;
      initWidth = $('.active').width();
      initOffset = $('.active').position();
      $("#left_link_hover").stop().animate({
        'left': initOffset.left - 9,
        'top': 165,
        'font-size': '24px',
        'height': 26,
        'width': 50
      }, 500, 'easeInOutExpo');
      return $("#right_link_hover").stop().animate({
        'left': initOffset.left + initWidth + 3,
        'top': 165,
        'font-size': '24px',
        'height': 26,
        'width': 50
      }, 500, 'easeInOutExpo');
    };
    moveToLogo = function() {
      $('#left_link_hover').stop().animate({
        'left': 218,
        'top': 35,
        'font-size': '90px',
        'height': 95
      }, 500, 'easeOutBounce');
      return $('#right_link_hover').stop().animate({
        'left': 420,
        'top': 35,
        'font-size': '90px',
        'height': 95
      }, 500, 'easeOutBounce');
    };
    if ($(".active").length) {
      moveToActive();
    } else {
      moveToLogo();
    }
    $("#logo").hover(function() {
      return moveToLogo();
    });
    $("nav a").hover(function() {
      var newOffset, newWidth;
      newWidth = $(this).width();
      newOffset = $(this).position();
      $("#left_link_hover").stop().animate({
        'left': newOffset.left - 11,
        'top': newOffset.top - 5,
        'font-size': '24px',
        'height': 26
      }, 500, 'easeInOutExpo');
      return $("#right_link_hover").stop().animate({
        'left': newOffset.left + newWidth + 3,
        'top': newOffset.top - 5,
        'font-size': '24px',
        'height': 26
      }, 500, 'easeInOutExpo');
    });
    return $('nav').mouseleave(function() {
      if ($(".active").length) {
        return moveToActive();
      } else {
        return moveToLogo();
      }
    });
  });

