var testGroup="as";var baseURL="";var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;var openPopup="";
function request(A){return request(A,window.location.href)}function request(C,B){var E;var F;var A="";if(B==null){B=location.href}if(B.indexOf("?")==-1){return }F=B.substring(B.indexOf("?")+1,B.length);E=new RegExp("("+C+"=(.)*&{1})|("+C+"=(.)*)","i");try{A=E.exec(F)[0]
}catch(D){}if(A.substring(A.indexOf("&",A.length-1))==A.substring(A.length-1)){A=A.substring(0,A.length-1)}A=A.split("=")[1];return A}function getXMLAttribute(B,D,F){var E;var G=F+'="';var A="";E=new RegExp(""+D+"(.)*\\s+"+F+'="(.)*"(.)*/>',"i");try{A=E.exec(B)[0]
}catch(C){alert(E+"\n"+B+"\n"+C.message)}A=A.substring(A.indexOf(G)+G.length,A.length);A=A.substring(0,A.indexOf('"'));return A}function fireInlinePopup(A){if(openPopup!=""){hide_div(openPopup)}openPopup=A;show_div(A)}function closeInlinePopup(A){if(openPopup!=""){hide_div(openPopup)
}}function richDropDownSelect(D,B,A,C){richDropDownToggle(D);document.getElementById(D).value=B;document.getElementById(D+"A").innerHTML=A;if(C!=""){setTimeout(C)}}function richDropDownToggle(B){var A=document.getElementById(B+"LI");if(A.style.display=="block"){A.style.display="none"
}else{A.style.display="block"}if(!this.curzIndex){this.curzIndex=100}this.curzIndex++;A.style.zIndex=this.curzIndex}function trim(A){while(A.substring(0,1)==" "){A=A.substring(1,A.length)}while(A.substring(A.length-1,A.length)==" "){A=A.substring(0,A.length-1)
}return A}function selectedRadioInc(A){var B=1;while(true){if(document.getElementById(A+B)==null){return""}else{if(document.getElementById(A+B).checked){return document.getElementById(A+B).value}}B++}}function customQuotePopup(B){var A;if(B==null){A="/popup/static/CustomQuotePopup.html?requestingURL="+escape(window.location.href)
}else{A="/popup/static/CustomQuotePopup.html?cartID="+B+"&requestingURL="+escape(window.location.href)}QuoteWindow=window.open(A,"CustomQuote","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=542,height=410");QuoteWindow.focus()}function CustomLogoHelp(A,D,F){if(F==0){return 
}if(D>F){setTimeout(function(){CustomLogoHelp(A,D,D+1)},1000*A);return }wizardParams="";var B="CustomLogoHelpWizard";var E="OptMain";var C=new AJAX();C.callService(baseURL+"site/webservices/public/ProductAjax.asmx","WizardRequest","wizardName="+B,"wizardStep="+E,"params=");
document.getElementById("mainContent").style.marginTop="110px"}function customCallBackPopup(A){QuoteWindow=window.open("/popup/static/CustomCallBackPopup.html?cartID="+A+"&requestingURL="+escape(window.location.href),"CustomCallBack","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=542,height=410");
QuoteWindow.focus()}function closeCustomLogoHelp(){document.getElementById("mainContent").style.marginTop="";document.getElementById("customLogoHelp").innerHTML=""}function ajaxWizardRequest(A){if(A.indexOf("wizard")>-1){show_div("wizardFrame");document.getElementById("wizardContent").innerHTML=A
}else{document.getElementById("customLogoHelp").innerHTML=A}}function showMoreBrands(){document.getElementById("MoreBrands").style.display="block"}function updateCheckoutInfo(B){B=URLEncode(B);var A=new AJAX();A.callService(baseURL+"services/Checkout.asmx","UpdateCheckoutInfo","xmlParameters="+B)
}function getXMLBlock(C,B){var A=new AJAX();A.callService(baseURL+"services/Checkout.asmx","GetXMLBlock","htmlTable="+C,"cartID="+B)}function GetDropdownValue(A){return document.getElementById(A).options[document.getElementById(A).selectedIndex].value}function popup(URL,width,height){day=new Date();
id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+width+",height="+height+"');")}function popupWithID(URL,width,height,id){day=new Date();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+width+",height="+height+"');")
}function getIndex(B,C){for(var A=0;A<B.length;A++){if(B[A].value==C){return A}}}function ToggleTbody(A,B){if(B.checked){showtbody(A)}else{hidetbody(A)}}function hidetbody(A){document.getElementById(A).style.display="none"}function showtbody(A){if(window.ActiveXObject){document.getElementById(A).style.display="block"
}else{document.getElementById(A).style.display="table-row-group"}}function show_span(A){document.getElementById(A).style.display="inline"}function hide_span(A){hidetbody(A)}function show_div(A){if(document.getElementById(A)!=null){document.getElementById(A).style.display="block"
}}function div_visible(A){if(document.getElementById(A)!=null){return document.getElementById(A).style.display=="block"}return false}function show_text(A){if(document.getElementById(A)!=null){document.getElementById(A).style.display="inline"}}function hide_div(A){if(document.getElementById(A)!=null){document.getElementById(A).style.display="none"
}}function searchKeyPress(A,B){if(A.keyCode==13){A.returnValue=false;A.cancel=true;executeSearch(B)}}function executeSearch(A){redirect("/Search.aspx?search="+URLEncode(document.getElementById(A).value))}function emailKeyPress(A){if(A.keyCode==13){A.returnValue=false;
A.cancel=true;executeEmailManagement("signup")}}function executeEmailManagement(A){if(ValidEmail(document.getElementById("email_emailBox").value)){if(A=="signup"){redirect("/account.aspx?page=email&action=signup&email="+URLEncode(document.getElementById("email_emailBox").value))
}else{redirect("/account.aspx?page=email&action=manage&email="+URLEncode(document.getElementById("email_emailBox").value))}}else{document.getElementById("email_emailBox").style.background="lightyellow";document.getElementById("email_emailBox").style.color="red"
}}function suggestionSubmit(){var A=new AJAX();A.callService(baseURL+"services/CommonAjax.asmx","SuggestionSubmit","suggestionType="+document.getElementById("suggestionType").value,"suggestionText="+URLEncode(document.getElementById("suggestionEmail").value+"  "+document.getElementById("suggestionText").value),"suggestionURL="+URLEncode(document.getElementById("suggestionURL").value))
}function ajaxSuggestionSubmit(A){document.getElementById("suggestionArea").innerHTML="<span class='highlight'>Thank you for your suggestion</span>"}function hideOrderStatus(){hide_div("miniOrderStatus");var A=new AJAX();A.callService(baseURL+"services/CommonAjax.asmx","ClearOrderNumberCookie")
}function ajaxClearOrderNumberCookie(A){}function redirect(A){window.location.href=A}function URLEncode(E){var G="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.!~*'()";var B="0123456789ABCDEF";var F="";for(var C=0;C<E.length;C++){var D=E.charAt(C);
if(D==" "){F+="+"}else{if(G.indexOf(D)!=-1){F+=D}else{var A=D.charCodeAt(0);if(A>255){F+="+"}else{F+="%";F+=B.charAt((A>>4)&15);F+=B.charAt(A&15)}}}}return F}function stripCDATA(C){var B=C;var A=/<!\[CDATA\[(.*)\]\]>/g.exec(C);if(A!=null){B=A[1]}return B}function xmlValue(F,E){var C="";
var A="<"+E+">(.*)</"+E+">";var D=new RegExp(A,"g");var B=D.exec(F);if(B!=null){C=B[1]}return stripCDATA(C)}var ajaxDebug=false;function stripCDATA(C){var B=C;var A=/<!\[CDATA\[(.*)\]\]>/g.exec(C);if(A!=null){B=A[1]}return B}function xmlValue(F,E){var C="";
var A="<"+E+">(.*)</"+E+">";var D=new RegExp(A,"g");var B=D.exec(F);if(B!=null){C=B[1]}return stripCDATA(C)}function Map(){var A=0;var C=new Array();var B=new Array();this.get=function(E){var F=null;for(var D=0;D<A;D++){if(C[D]==E){F=B[D];break}}return F};
this.put=function(D,E){C[A]=D;B[A++]=E};this.length=function(){return A};this.contains=function(F){var D=false;for(var E=0;E<A;E++){if(C[E]==F){D=true;break}}return D};this.remove=function(G){var E=new Array();var H=new Array();var D=0;for(var F=0;F<A;F++){if(C[F]!=G){E[D]=C[F];
H[D++]=B[F]}}C=E;B=H;A=D}}function IsNumeric(B){var D="0123456789.";var C=true;var A;for(i=0;i<B.length&&C==true;i++){A=B.charAt(i);if(D.indexOf(A)==-1){C=false}}return C}function ValidEmail(A){var B=/^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
return B.test(A)}function encodeHTML(B){var A;A=B.replace(/&/g,"&amp;");A=A.replace(/</g,"&lt;");A=A.replace(/>/g,"&gt;");A=A.replace(/</g,"&lt;");A=A.replace(/>/g,"&gt;");A=A.replace(/"/g,"&quot;");A=A.replace(/\r\n|[\r\n]/g,"\r\n");return A}function StripNonAlphaNumeric(A){var B="";
for(i=0;i<A.length;i++){if((A.charCodeAt(i)>=48&&A.charCodeAt(i)<=57)||(A.charCodeAt(i)>=65&&A.charCodeAt(i)<=90)||(A.charCodeAt(i)>=97&&A.charCodeAt(i)<=122)){B+=A.charAt(i)}}return B}function ControlVersion(){var A;var B;var C;try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
A=B.GetVariable("$version")}catch(C){}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");A="WIN 6,0,21,0";B.AllowScriptAccess="always";A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A=B.GetVariable("$version")
}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A="WIN 3,0,18,0"}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");A="WIN 2,0,0,11"}catch(C){A=""}}return A}function GetSwfVer(){var G="";if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var F=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var A=navigator.plugins["Shockwave Flash"+F].description;var E=A.split(" ");var C=E[2].split(".");var H=C[0];var B=C[1];var D=E[3];if(D==""){D=E[4]}if(D[0]=="d"){D=D.substring(1)}else{if(D[0]=="r"){D=D.substring(1);if(D.indexOf("d")>0){D=D.substring(0,D.indexOf("d"))
}}}var G=H+"."+B+"."+D}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){G=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){G=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){G=2}else{if(isIE&&isWin&&!isOpera){G=ControlVersion()
}}}}}return G}function GetFlashVersion(){var A=GetSwfVer().match(/[0-9]+/g);if(A==null){return 0}else{return parseInt(A[0])}}function AC_AddExtension(B,A){if(B.indexOf("?")!=-1){return B.replace(/\?/,A+"?")}else{return B+A}}function AC_Generateobj(E,D,A){var C="";
if(isIE&&isWin&&!isOpera){C+="<object ";for(var B in E){C+=B+'="'+E[B]+'" '}C+=">";for(var B in D){C+='<param name="'+B+'" value="'+D[B]+'" /> '}C+="</object>"}else{C+="<embed ";for(var B in A){C+=B+'="'+A[B]+'" '}C+="> </embed>"}document.write(C)}function AC_FL_RunContent(){var A=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");
AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_SW_RunContent(){var A=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_GetArgs(B,E,G,D,H){var A=new Object();
A.embedAttrs=new Object();A.params=new Object();A.objAttrs=new Object();for(var C=0;C<B.length;C=C+2){var F=B[C].toLowerCase();switch(F){case"classid":break;case"pluginspage":A.embedAttrs[B[C]]=B[C+1];break;case"src":case"movie":B[C+1]=AC_AddExtension(B[C+1],E);
A.embedAttrs["src"]=B[C+1];A.params[G]=B[C+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":A.objAttrs[B[C]]=B[C+1];
break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":A.embedAttrs[B[C]]=A.objAttrs[B[C]]=B[C+1];break;default:A.embedAttrs[B[C]]=A.params[B[C]]=B[C+1]}}A.objAttrs["classid"]=D;
if(H){A.embedAttrs["type"]=H}return A}function AddCheckedSkusToCart(B){var A=document.getElementById(B).elements;var C="";for(z=0;z<A.length;z++){if(A[z].type=="checkbox"&&A[z].checked){if(C!=""){C+="|"}C+="1;"+A[z].id}}if(C==""){alert("no items selected")
}else{redirect("cart.aspx?cartString="+C)}}