$(document).ready(function(){

  $(".nav li").hover(function(){
    $(this).find(".menuPop").show();
  },function(){
    $(this).find(".menuPop").hide();
  });

  $(".datepicker").datepicker();

  $("#advanced-search-toggle").click(function(){
    $("#advanced-search").toggle();
    $(".plus-minus").toggle();
  });

  $("* .row:last-child").addClass("hide-separator");

  var loc = window.location.href; // The URL of the page we're looking at
    $('#stat2 a').each(function() {
        if (loc.indexOf(this.href) !== -1) { // If the URL contains the href of the anchor
                $(this).addClass('selected'); // Mark it as selected
        }
    });


  if (jQuery.browser.msie) {
	  var zIndexNumber = 1000;
	  $('.row').each(function() {
		  $(this).css('zIndex', zIndexNumber);
		  zIndexNumber -= 10;
	  });
  } else {
    $(".showNav li:not(.current) a, #nav a.section-link").swoosh();
    $(".see-all, .orange-button").swoosh({swooshID:"swooshBlue"});
    $(".blue-button, .ticketLink, .freeTicketLink").swoosh({swooshID:"swooshOrange"});
  }

});
