var IE8andIE8standards=false;var priceComparisonWrap="";var priceComparisonFormOverlay="";var allowedKeyStrokes=new Array(48,49,50,51,52,53,54,55,56,57,8,37,39,35,36,9,46);document.getElementsByClassName2=function(b){var a=[];var f=new RegExp("\\b"+b+"\\b");var e=this.getElementsByTagName("*");for(var d=0;d<e.length;d++){var c=e[d].className;if(f.test(c)){a.push(e[d])}}return a};function showTipRelativeToHeaderTitle(b,a,c){if(IE8andIE8standards){a=a+11;c=c+10}$("#"+b).css("display","block");$("#"+b).css("left",$("#headertitle").offset().left+a);$("#"+b).css("top",$("#headertitle").offset().top+c)}function showTip(d,a,b,e){if(IE8andIE8standards){}$("#"+d).css("display","block");var f=$(a).offset();var c=$(a).width();$("#"+d).css("left",f.left+b);$("#"+d).css("top",f.top+e)}function hideTip(a){$("#"+a).css("display","none")}function refreshCart(){var a=" <div id='loader'><img src='/images/loading.gif' /></div><br><br> ";$("#dropCartDetails").html(" <div id='dropCartDetails'></div> ");DropCartHTML=$.ajax({url:"DropCart.aspx",async:false,cache:false}).responseText;$("#dropCartDetails").append(DropCartHTML);$("#dropCartDetails").append(a);$("#loader").fadeIn("fast").delay(250).fadeOut("slow",function(){})}function makeCartTotalButton(){DropCartHTML=$.ajax({url:"CartTotals.aspx",async:false,cache:false}).responseText;if(DropCartHTML.indexOf("0 Product(s)")<=0){productCount=DropCartHTML.split('<span id="MiniCartTotal_lblItemCount">');productCount=productCount[1].split(" ");$("#cartTotalButton").attr("src","makeButton.aspx?extratext=My%20Cart%20("+productCount[0]+")");$("#cartOnWheels").attr("src","/images/cartLeft.gif")}else{$("#dropcartButton").hide()}}function crossBrowserSearcher(a){var b=a.keyCode?a.keyCode:a.which?a.which:a.charCode;if(a.keyCode==13){if(window.document.forms.Form1.query.value.replace(/\s+/,"").length==0){return false}return false}}$(window).load(function(){var d=document.getElementById("pnlDiscountBanner");if(d!=undefined){var a=document.getElementById("productPageSaleBannerIMGnoHover");var c=document.getElementById("productPageSaleBannerIMGhover");if((a!="undefined")&&(c!="undefinded")){c.src=a.src.replace("nohover","hover");$(c).slideDown(1000,function(){$(a).show()}).delay(4000).fadeOut(2000);d.onmouseover=function(){$(a).hide();$(c).show()};d.onmouseout=function(){$(c).hide();$(a).show()}}}$("#dropcartButton").animate({right:"+=250"},1000,function(){});function g(j){var i=new Date().getTime()+j;while(new Date().getTime()<i){}return true}var h=document.getElementById("dropcart");var b=document.getElementById("dropcartButton");function e(){$("#loader").show;$("#horizNav").fadeTo(300,0.23);$("#LogoImage").fadeTo(300,0.23);$("div.dropcart").slideDown(1000,function(){if(h.style.display=="none"){b.style.marginTop="0px"}else{if(h.style.display!="none"){b.style.marginTop="-30px"}}});refreshCart()}$("div.cartToggle").click(function(){document.location="/cart.aspx"});function f(){b.style.marginTop="20px";$("div.dropcart").slideUp(1000);$("#horizNav").fadeTo(400,1);$("#LogoImage").fadeTo(400,1);$("#loader").hide}$("div.dropcart").mouseleave(function(){f()});$("#emailSignup[rel]").overlay({effect:"apple",mask:"#789",speed:300,top:"20%"});$("#youAreHere[rel]").overlay({effect:"apple",mask:"#789",speed:300,top:"20%"});if($("#fireboxComparisonTrigger").length!=0){$("#fireboxComparisonTrigger[rel]").overlay({effect:"apple",mask:{color:"#000",opacity:0.2,loadSpeed:0},speed:600,top:10,fixed:true,load:false,closeOnClick:true,onBeforeLoad:function(){wrap=this.getOverlay().find("div.fireboxComparisonTableDiv");wrapURL=this.getTrigger().attr("href");wrapHTML=$.ajax({url:wrapURL,async:false,cache:false}).responseText;wrap.html(wrapHTML)}})}if($("#classic-flame-video-set-1").length!=0){wrap=$("#classic-flame-video-set-1");wrapURL=$("#classic-flame-video-set-1").attr("href");wrapHTML=$.ajax({url:wrapURL,async:false,cache:false}).responseText;wrap.html(wrapHTML);$("#videoOverlayTrigger[rel]").overlay({effect:"apple",mask:{color:"#000",opacity:0.2,loadSpeed:0},speed:600,top:100,fixed:true,load:false,closeOnClick:true,onBeforeLoad:function(){wrap=this.getOverlay().find("#videoOverlayDiv");wrap.load(this.getTrigger().attr("href"))},onClose:function(){wrap=this.getOverlay().find("#videoOverlayDiv");wrap.html("")}})}if($("#priceComparisonFormTrigger").length!=0){priceComparisonFormOverlay=$("#priceComparisonFormTrigger[rel]").overlay({effect:"apple",mask:{color:"#000",opacity:0.2,loadSpeed:0},speed:600,top:10,fixed:true,load:false,closeOnClick:true,onBeforeLoad:function(){priceComparisonWrap=this.getOverlay().find("div.#priceComparisonFormOverlayDiv");wrapURL=this.getTrigger().attr("href");wrapHTML=$.ajax({url:wrapURL,async:false,cache:false}).responseText;priceComparisonWrap.html(wrapHTML)}})}});$(document).ready(function(){if(document.location.pathname.toLowerCase()=="/expresscheckout.aspx"){}var b=new Array();function k(w,x){b.length=0;n("descriptionTabActive",document.body);for(var y=0;y<b.length;y++){b[y].className="descriptionTabInactive"}document.getElementById(w).className="descriptionTabActive";b.length=0;n("tabButtonActive",document.body);for(var y=0;y<b.length;y++){b[y].className="tabButtonDiv"}x.className="tabButtonActive";classnameBeforeHover=new String("tabButtonActive")}function n(w,y){if(y.className==w){b[b.length]=y}for(var x=0;x<y.childNodes.length;x++){n(w,y.childNodes[x])}}function l(i){i.className=classnameBeforeHover;return}function u(i){classnameBeforeHover=i.className;i.className="tabButtonDivHover";return}$(function(){$("#currentUsers").keypress(function(i){if((i.which&&i.which==13)||(i.keyCode&&i.keyCode==13)){$("#LoginControl1_btnDoLogin").click();return false}else{return true}})});$(function(){$("#newUsers").keypress(function(i){if((i.which&&i.which==13)||(i.keyCode&&i.keyCode==13)){$("#NewUserControl1_btnDoLogin").click();return false}else{return true}})});var s=window.location.pathname.toLowerCase();if(s=="/cart.aspx"){var d=document.activeElement;$(d).keypress(function(i){if((i.which&&i.which==13)||(i.keyCode&&i.keyCode==13)){return false}else{return true}});$("#PromotionalCode1_inCouponCode").focus();var q=document.getElementById("CartItemBlock");if(q!=undefined){var c=document.getElementById("CartItemBlock").getElementsByTagName("input");for(var m=0;m<c.length;m++){$(c[m]).keypress(function(i){if((i.which&&i.which==13)||(i.keyCode&&i.keyCode==13)){$("#btnUpdateTotals").click();return false}else{return true}})}}$("#PromotionalCode1_inCouponCode").keypress(function(i){if((i.which&&i.which==13)||(i.keyCode&&i.keyCode==13)){$("#PromotionalCode1_btnApply").click();return false}else{return true}})}$(function(){$("#inCCCardNumber").keypress(function(i){if(($.inArray(i.which,allowedKeyStrokes)==-1)&&($.inArray(i.keyCode,allowedKeyStrokes)==-1)){return false}else{return true}})});$("td.outofstock").mouseenter(function(){showTip("tooltip-stockstatus",this,-45,30)});$("td.outofstock").mouseleave(function(){hideTip("tooltip-stockstatus")});var r=$("#slideShow").html();if(r!=undefined){$.ajax({url:"/estroSlider/js/pe.kenburns/jquery.pixelentity.kenburnsSlider.min.js",async:false,cache:false});r=r.replace(/h3>/g,"h1>");r=r.replace(/H3>/g,"H1>");$("#slideShow").html(r);var j=$(".peKenBurns").peKenburnsSlider({api:true});$("div.peKb_active").mouseenter(function(){j.pause()});$("div.peKb_active").mouseleave(function(){j.resume()});$(".peKenBurns .peKb_videooverlay").mouseenter(function(){j.pause()});$(".peKenBurns .peKb_videooverlay").mouseleave(function(){j.resume()})}var a=function(){var y=$("#headertitle").offset();var w=$("#headertitle").width();if($("#footer_logoutLink").length!=0){$("#basicLinks").css("left",(y.left+w-350))}else{$("#basicLinks").css("left",(y.left+w-250))}$("#basicLinks").css("top",y.top);$("#lpButDivID-1308631712").css("left",y.left-22);$("#lpButDivID-1308631712").css("top",y.top+230);$("#orderSummary").css("left",y.left+792);$("#orderSummary").css("top",y.top+160);zoompos=$("#Thumbs1_pnlMain").offset();zoomwidth=380;if(zoompos!=undefined){$("#zoomDiv").css("left",zoompos.left+zoomwidth);$("#zoomDiv").css("top",y.top)}var i=document.getElementById("paymentoptionsdiv");if(i!=undefined){y=$("#paymentoptionsdiv").offset();w=$("#paymentoptionsdiv").width();$("#GoogleDivShell").css("top",y.top+25);$("#GoogleDivShell").css("left",(y.left+300))}var x=document.getElementById("subBanner");if(x!=undefined){y=$("#subBanner").offset();w=$("#subBanner").width();$("#subBanner3").css("top",y.top+175);$("#subBanner3").css("left",(y.left+0));$("#subBanner3").css("display","block")}};a();$(window).resize(a);$("#PromotionalCode1_btnApply").attr("src","makebutton.aspx?extratext=apply%20code&bs=6");$("#btnUpdateTotals").attr("src","makebutton.aspx?extratext=update%20cart&bs=4");$("#btnCheckout").attr("src","makebutton.aspx?extratext=secure%20checkout&bs=5");$("#btnContinueShopping").attr("src","makebutton.aspx?extratext=keep%20shopping&bs=7");$("#btnContinue3").attr("src","makebutton.aspx?extratext=continue%20with%20checkout&bs=9");$("#btnContinue").attr("src","makebutton.aspx?extratext=continue%20with%20checkout&bs=9");$("#btnSubmit").attr("src","makebutton.aspx?extratext=place%20order&bs=9");$("#btnSearch").attr("src","makebutton.aspx?extratext=search&bs=5");var p=function(w,i){if(i!=""){document.location="/"+i}};var f={serviceUrl:"/auto/auto.aspx",width:550,maxHeight:300,minChars:3,zIndex:9999,delimiter:/(,|;)\s*/,onSelect:p,deferRequestBy:0,params:{country:"Yes"},noCache:false};var v=$("#query").autocomplete(f);v.enable();var t=navigator.userAgent.toLowerCase();if($.browser.msie){var g=$.browser.version.substring(0,1);if(g==8&&document.compatMode=="CSS1Compat"){IE8andIE8standards=true}var o=document.getElementById("horizNav");var h=document.getElementById("CategoryNavcolumn");var e=document.getElementById("dropcartShell-shadow-one-IE6");if(g==6||document.compatMode=="BackCompat"){o.style.marginTop="-10px";e.style.styleFloat="left"}else{if(g==7&&document.compatMode=="CSS1Compat"){o.style.marginTop="-10px";if(h!=undefined){h.style.paddingRight="0px"}}else{if(g==7||document.documentMode==7){o.style.marginTop="-10px";h.style.paddingRight="140px";if(h!=undefined){h.style.paddingRight="0px"}}}}}if(window.addEventListener){window.addEventListener("load",makeCartTotalButton,false)}else{if(window.attachEvent){window.attachEvent("onload",makeCartTotalButton)}}ie6Hover=function(){var x=document.getElementById("horizNav").getElementsByTagName("div");for(var w=0;w<x.length;w++){x[w].onmouseover=function(){this.className+=" ie6Hover"};x[w].onmouseout=function(){this.className=this.className.replace(new RegExp(" ie6Hover\\b"),"")}}};navLIhover=function(){var x=document.getElementById("horizNav").getElementsByTagName("li");for(var w=0;w<x.length;w++){x[w].onmouseover=function(){this.className+=" navLIhover";if(this.childNodes[0]!=undefined){if(this.childNodes[0].className!=null){if(this.childNodes[0].tagName=="A"){this.childNodes[0].className=" navLIchildHover";this.title=this.childNodes[0].title}else{if(this.childNodes[0].tagName=="H2"){this.className=this.className.replace(new RegExp(" navLIhover\\b"),"")}}}}};x[w].onmouseout=function(){this.className=this.className.replace(new RegExp(" navLIhover\\b"),"");if(this.childNodes[0]!=undefined){if(this.childNodes[0].className!=null){if(this.childNodes[0].tagName=="A"){this.childNodes[0].className=this.childNodes[0].className.replace(new RegExp(" navLIchildHover\\b"),"")}}}};x[w].onclick=function(){if(this.childNodes[0]!=undefined){if(this.childNodes[0].tagName=="A"){if(this.childNodes[0].href!=null){document.location=this.childNodes[0].href}}}}}};if(window.addEventListener){window.addEventListener("load",ie6Hover,false);window.addEventListener("load",navLIhover,false)}else{if(window.attachEvent){window.attachEvent("onload",ie6Hover);window.attachEvent("onload",navLIhover)}}});
