      $(function() { 
		$(".youtube").colorbox();
        $('#NAV li').each(function (i){
          if ($(this).attr("class").toString().search( new RegExp( /selected/i )) != -1) {
            $(this).css("background-position",'0 29px');
          } else {
            $(this).hover(
              function() {
                $(this).css("background-position",'0 29px');
              },
              function() {
                $(this).css("background-position",'0 0');
              }            
            );
          }
        });
        $('#LISTEN li a.listen_arrow').each(function (i){
          $(this).click(function(event){
            play($(this).attr('href'));
            $("#LISTEN li a").each(function (x){
              $(this).css("background-position","");
              $(this).removeClass('listen_arrow_sel').addClass('listen_arrow');
            });
            event.preventDefault();
            $(this).removeClass('listen_arrow').addClass('listen_arrow_sel');
          });
        });
        $("body").css("display", "none");
        $("body").fadeIn('fast');
          
        $("a.fade").click(function(event){
          event.preventDefault();
          linkLocation = this.href;
          $("body").fadeOut('fast', redirectPage);    
        });
        function redirectPage() {
          window.location = linkLocation;
        }
      });

/* create a timeOut function in jQuery */
jQuery.fn.idle = function(time){
  return this.each(function(){
    var i = $(this);
    i.queue(function(){
      setTimeout(function(){
        i.dequeue();
      }, time);
    });
  });
};


