var generalSettings=new Object();var menuset=false;var win=null;function NewWindow(mypage,myname,w,h,scroll,focus){var winl=(screen.width-w)/2;var wint=(screen.height-h)/2;var settings="height="+h+",";settings+="width="+w+",";settings+="top="+wint+",";settings+="left="+winl+",";settings+="scrollbars="+scroll+",";settings+="resizable=yes";win=window.open(mypage,myname,settings);if(focus=="Y"){if(parseInt(navigator.appVersion)>=4){win.window.focus()}}}function getObj(n,d){var p,i,x;if(!d){d=document}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all){x=d.all[n]}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n]}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=getObj(n,d.layers[i].document)}if(!x&&d.getElementById){x=d.getElementById(n)}return x}function LinkAppendValues(myLink,appendValues){var thisLink=myLink;var valuesToAppend=appendValues.split(",");var i;var linkLen=thisLink.length;for(i=0;i<valuesToAppend.length;i++){if(getObj(valuesToAppend[i]).value){linkLen=thisLink.length;if(thisLink.substring(linkLen,linkLen-1)!="&"){thisLink=thisLink+"&"}thisLink=thisLink+valuesToAppend[i]+"="+getObj(valuesToAppend[i]).value}}document.location=thisLink}function storeCookie(theElement){var thecookie=readCookie("PRDUNIQUEID");box=theElement.checked;count=(box?1:0);if(count>0){if(!thecookie){document.cookie="PRDUNIQUEID="+theElement.value+"; path=/"}else{document.cookie="PRDUNIQUEID="+thecookie+"_"+theElement.value+"; path=/"}}else{var newCookie=removeID(thecookie,"_"+theElement.value);newCookie=removeID(newCookie,theElement.value);document.cookie="PRDUNIQUEID="+newCookie+"; path=/"}}function removeID(myString,pattern){var newString=myString.replace(pattern,"");return(newString)}function readCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0){return""}}else{begin+=2}var end=document.cookie.indexOf(";",begin);if(end==-1){end=dc.length}return unescape(dc.substring(begin+prefix.length,end))}function setCompareCheckboxes(container){var thecookie=readCookie("PRDUNIQUEID");checkUncheckSome(container,thecookie,"_")}function foundInList(matchId,list,sep){var theList=list.split(sep);for(var x=0;x<theList.length;x++){theItem=theList[x];if(theItem==matchId){return true}}return false}function checkUncheckSome(controller,theElements,sep){var formElements=getObj(controller).getElementsByTagName("input");for(var z=0;z<formElements.length;z++){theItem=formElements[z];if(theItem){if(theItem.type=="checkbox"&&foundInList(theItem.id,theElements,sep)){getObj(theItem).checked=true}}}}function isNumeric(strString){var strValidChars="0123456789.-";var strChar;var blnResult=true;if(strString.length==0){return false}for(i=0;i<strString.length&&blnResult==true;i++){strChar=strString.charAt(i);if(strValidChars.indexOf(strChar)==-1){blnResult=false}}return blnResult}function IsEmailValid(FormName,ElemName){var EmailOk=true;var Temp=document.forms[FormName].elements[ElemName];var AtSym=Temp.value.indexOf("@");var Period=Temp.value.lastIndexOf(".");var Space=Temp.value.indexOf(" ");var Length=Temp.value.length-1;if((AtSym<1)||(Period<=AtSym+1)||(Period==Length)||(Space!=-1)){EmailOk=false;alert("Please enter a valid e-mail address!");Temp.focus()}return EmailOk}var popupInStoreText="";function openBMLWindow(){MM_openBrWindow("https://www.securecheckout.billmelater.com/paycapture-content/fetch?hash=2DP3864T&content=/bmlweb/np90drollingiw.html","bml","scrollbars=yes,width=525,height=500")}function openRequestCatalog(){MM_openBrWindow(popupInStoreText+"/accessdriver.cfm?page=main:requestcatalog&loadHeader=no","requestcatalog","scrollbars=yes,width=535,height=600")}function openFreeShipping(){MM_openBrWindow(popupInStoreText+"/index.cfm?page=main:staticPopup&staticId=2","freeshipping","scrollbars=yes,width=525,height=500")}function openPriceGuarantee(){MM_openBrWindow(popupInStoreText+"/index.cfm?page=main:staticPopup&staticId=1","priceguarantee","scrollbars=yes,width=525,height=500")}function openPreferredAcctWindow(){MM_openBrWindow("https://www.securecheckout.mypreferredaccount.com/paycapture-content/fetch?hash=2DP3864T&content=/improvementdirectweb/idpanp6m500rollingiw.html","preferredaccount","scrollbars=yes,width=700,height=500")}function newsletterSignup(){MM_openBrWindow(popupInStoreText+"/index.cfm?page=main:newsletterPopup&emailAddress=","newslettersignup","scrollbars=yes,width=550,height=500")}function shimit(obj){if(typeof shim=="undefined"){return }var shimobj=document.getElementById("shim").style;if(!nondefaultpos){var shimobj2=document.getElementById("shim2").style;shimobj2.width=pointerobj.offsetWidth+"px";shimobj2.height=pointerobj.offsetHeight+"px";shimobj2.top=pointerobj.style.top;shimobj2.left=pointerobj.style.left;shimobj2.zIndex=99;shimobj2.display="block"}shimobj.height=obj.offsetHeight+"px";shimobj.width=obj.offsetWidth+"px";var obj=obj.style;shimobj.left=obj.left;shimobj.top=obj.top;shimobj.zIndex=99;shimobj.display="block"}function noshim(){if(typeof shim=="undefined"){return }document.getElementById("shim").style.display="none";document.getElementById("shim2").style.display="none"}function MM_findObj(n,d){var p,i,x;if(!d){d=document}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all){x=d.all[n]}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n]}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document)}if(!x&&document.getElementById){x=document.getElementById(n)}return x}function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3){if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc){x.oSrc=x.src}x.src=a[i+2]}}}function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++){x.src=x.oSrc}}function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array()}var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++){if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i]}}}}function MM_openBrWindow(theURL,winName,features){var winObj;winObj=window.open(theURL,winName,features)};