window.addEvent("domready",function(){$$("ul.slideshow").each(function(el){new Blackbox(el,{bgcolor:"white",height:400})});$$("ul.slideshow.controls").each(function(el){var control=new Element("div",{"class":"stop",styles:{background:"url(/graphics/blackbox/slideshowcontrols.png) bottom",cursor:"pointer",opacity:0,position:"absolute",margin:"-16px 0 0 -16px",top:"50%",left:"50%",width:33,height:33,zIndex:3},events:{click:function(){if(control.hasClass("stop")){control.setStyle("background-position","top").removeClass("stop").retrieve("slideshow").get("blackbox").stop()}else{control.setStyle("background-position","bottom").addClass("stop").retrieve("slideshow").get("blackbox").start()}}}}).store("slideshow",el).injectInside(el);el.addEvents({mouseover:function(){control.fade(0.6)},mouseout:function(){control.fade("out")}})});var status={"true":"Hide Advanced","false":"Show Advanced"};initTips();var myFx=new Fx.Slide("advSearchMain",{duration:"long",transition:Fx.Transitions.Bounce.easeOut});myFx.hide();$("advSearchMain").setStyle("display","block");$("toggle").addEvent("click",function(e){e=new Event(e);myFx.toggle();e.stop()});$("close").addEvent("click",function(e){e=new Event(e);myFx.toggle();e.stop()});myFx.addEvent("complete",function(){$("bAdvanced").value=myFx.open;$("toggle").blur()})});function initTips(){$$("a.tipz").each(function(element,index){var content=element.get("title").split("::");element.store("tip:title",content[0]);element.store("tip:text",content[1])});var tipz=new Tips(".tipz",{className:"tipz",fixed:false,hideDelay:50,showDelay:50})}function validateSearchTerms(){if(($("search").value=="Search Website...."||$("search").value=="")&&$("bAdvanced").value=="false"){alert("Please choose something to search for. Thanks!");return false}else{return true}}function validateSF(){var sSize=document.getElementById("sSFSize").value;if(sSize==""){alert("Please select a shoe size. Thanks!");return false}else{return true}};
