  jQuery(function() {
    var $bar, $email, $image, $pulley, $shadow, $text, switchImage, text2, timer;
    $shadow = $('#shadow');
    $pulley = $('.pulley');
    $bar = $('#bar');
    $shadow.css({
      opacity: .3
    });
    $pulley.toggle(function() {
      $bar.animate({
        top: "0px"
      }, {
        duration: 800,
        easing: 'easeOutExpo',
        queue: false
      });
      return $shadow.animate({
        opacity: 1
      }, {
        duration: 800,
        easing: 'easeOutExpo',
        queue: false
      });
    }, function() {
      $bar.animate({
        top: "-57px"
      }, {
        duration: 1700,
        easing: 'easeOutExpo',
        queue: false
      });
      return $shadow.animate({
        opacity: .3
      }, {
        duration: 1700,
        easing: 'easeOutExpo',
        queue: false
      });
    });
    $image = $('.image');
    $image.find('.bottom').hide();
    timer = function() {
      return setTimeout(switchImage, 5400);
    };
    switchImage = function() {
      var $b, $t;
      console.log('here');
      $t = $image.find('.top');
      $b = $image.find('.bottom');
      $t.fadeOut(1200).removeClass('top').addClass('bottom');
      $b.fadeIn(1200).removeClass('bottom').addClass('top');
      return timer();
    };
    timer();
    $email = $('#email');
    $email.focus(function() {
      if ($email.val() === 'Email Address') return $email.val('');
    });
    $email.blur(function() {
      if ($email.val() === '') return $email.val('Email Address');
    });
    $('form').submit(function() {
      if ($email.val() === 'Email Address') return false;
    });
    $text = $('#text');
    text2 = $("#text2").html();
    return setTimeout(function() {
      return $text.animate({
        opacity: 0
      }, 1000, function() {
        return setTimeout(function() {
          return $text.html(text2).css({
            opacity: 1
          });
        }, 300);
      });
    }, 4000);
  });

