$(document).ready(function() {
  
  /* Highlight the current navigation. */
  
  var path0 = document.location.pathname.split('/')[1];
  if (path0) {
    $('li.' + path0 + ' a').addClass('active');
  }
  if (IE6()) {
    /* IE6 doesn't do :hover in css, so we need this for navigation. */
    $(".main-nav li").each(function(i) {
      var li = $(this);
      li.hover(function() {
        li.addClass("sfhover");
      }, function() {
        li.removeClass("sfhover");
      });
    });
    /* IE6 doesn't do min-width. */
    $(".main-nav li ul li a").width(210);
  }
  
  /* Header Login Utility List, Set Last List Item Class */
  
  $('#login_util li:last-child').addClass('last');

  
});

function inlinePlayerPath() {
  return "/media/audioplayer/blue_progress_player_no_pop.swf";
}

function videoPlayerPath() {
  return "/media/wqxrplayer/player.swf";
}

function audioHelpPath() {
  return "/audio/help/";
}
