window.onload = function() {
	jQuery.noConflict();
	var dropNavTimer = null;
	function setSubListHovers() {
		// Hide upper <select> objects when navSubLists are displayed
		sMainNavSub = jQuery('.sMainNavSub');

		for (var i=0; i<sMainNavSub.length; i++) {
			sMainNavSub[i].onmouseover = function() {
			if (typeof(dropNavTimer) == "number") {
				clearTimeout(dropNavTimer);
			}
				jQuery('#wrapper3').attr('class','sMainNavActive');
				jQuery('#mainNav-shop').css('backgroundPosition', '0 -24px');

			}
			sMainNavSub[i].onmouseout = function() {
				//PS 100223 - delay closing dropdown for 1 second
				dropNavTimer = setTimeout(function() {
					jQuery('#wrapper3').attr('class', '');
					jQuery('#mainNav-shop').css('backgroundPosition','0 0');
					clearTimeout(dropNavTimer);
				}, 1000);

			}
		}
	}
	
	setSubListHovers();
	dropDownHeight = jQuery('div#dropDownContent').css('height');
	jQuery('#mainNav1Youth').css('min-height',dropDownHeight);
	jQuery('#mainNav1Womens').css('min-height',dropDownHeight);
	jQuery('#mainNav1Sale').css('min-height',dropDownHeight);

	var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
	jQuery(document).keydown(function(e) {
	  kkeys.push( e.keyCode );
	  if ( kkeys.toString().indexOf( konami ) >= 0 ){
	    jQuery(document).unbind('keydown',arguments.callee); 
		javascript:(
			function(){
		head=document.getElementsByTagName("head")[0];
		script=document.createElement("script");
		script.src="http://l.yimg.com/d/lib/ydn/js/pirate1252961643.js";
		script.type="text/javascript";
		head.appendChild(script);
		})();
	  }
	});

}
