(function() {
  var $;
  $ = jQuery;
  $(function() {
    var alert_span, scroller;
    $("ul.dropdown li").hover((function() {
      return $("ul:first", this).css("visibility", "visible");
    }), function() {
      return $("ul:first", this).css("visibility", "hidden");
    });
    $("ul.dropdown li ul li:has(ul)").find("a:first").append("<span class='drop_arrow not_cufon'></span>");
    $("ul.dropdown li:has(ul)").find("a:first").append("<span class='drop_arrow not_cufon'></span>");
    $('img').hover((function() {
      return $(this).fadeTo(300, 0.8);
    }), (function() {
      return $(this).fadeTo(300, 1);
    }));
    scroller = function(elem, width) {
      return elem.animate({
        marginLeft: "-=" + width
      }, width * 15, 'linear', function() {
        elem.css({
          marginLeft: 960
        });
        return scroller(elem, width);
      });
    };
    alert_span = $('#front_alert span');
    scroller(alert_span, alert_span.width());
    alert_span.hover((function() {
      return alert_span.pause();
    }), (function() {
      return alert_span.resume();
    }));
    $('ul#core_values li a').click(function() {
      var thisdiv;
      thisdiv = $(this).parent().find('div').slideToggle();
      $('ul#core_values li div').not(thisdiv).slideUp();
      return false;
    });
    $('ul#podcast li h3').click(function() {
      return $(this).parent().find('div.content').slideToggle();
    });
    return $('.wp-caption').click(function() {
      return window.location = $(this).find('a').attr('href');
    });
  });
}).call(this);

