function SQQF(){var a=document.getElementById('QQF');if(a)a.submit();}
function setCk(nm,val) {var nowDate=new Date();nowDate.setMonth(nowDate.getMonth()+12);document.cookie=nm+"="+val+";expires="+nowDate.toGMTString()+";path=/;domain=www.provantage.com;";}function Reduce(){fcol=Ref.indexOf("provantage.com/scripts/");lcol=Ref.length;if(fcol<0){fcol=Ref.indexOf("provantage.com/");lcol=Ref.length;if(fcol<0)fcol=0;else fcol=fcol+15;}else fcol=fcol+23;if(Ref.indexOf("/")==0)fcol=fcol+1;Ref=Ref.substring(fcol,lcol);lcol=Ref.indexOf(".");if(lcol<0)Ref="NIL";else Ref=Ref.substring(0,lcol);}
function Clicked(src){if(ref=='nomenu')return;Mn="NA";Ref=this.location.href;Reduce();this.href="http://www.provantage.com/scripts/page.dll/Click/"+src+"/"+Ref+"/www.provantage.com/scripts/cart.dll/f/0/bookmark";}
function GetInfoLine(cd){var k;if(typeof(info)!='undefined'){var l=info.length;for(k=0;k<l;k+=11){if(info[k]==cd){if(info[k+9]!=''&&info[k+9]!='ok'){var cc=getCk(info[k+9]);if(cc=='quote')info[k+9]='ok';}return(k);}}}return(-1);}
function CL(w){return((screen.width-w)/2);}
function CT(h){return((screen.height-h)/2);}
function AddToCart(cd,ty){var a='http://www.provantage.com/scripts/cart.dll/';a+=ty+'/'+cd;var h=400;if(ty=='getquote')h=450;window.open(a,'PVQUOTE','left='+CL(h)+',top='+CT(350)+',height='+h+',width=350,scrollbars=yes,resizable=yes');}
function DX(cd,cols){var rp='Refresh Page';var ty='';var c='',v='',m='',p='',ir='',irx='',mr='',mrx='',q='',t='';var hi="<font style='color:#F30;font-weight:bold;font-size:8pt;'>";alt='Add this Product to Your Shopping Cart';var k=GetInfoLine(cd);if(k>=0){c=info[k+1];v=info[k+2];m=info[k+3];ir=info[k+4];irx=info[k+5];mr=info[k+6];mrx=info[k+7];p=info[k+8];q=info[k+9];t=info[k+10];}else {p="<font class=MED color=#EE6633>"+rp+"</font>";rp=p;}if(c=='Exp'){document.writeln("<p><font class=XSMALL color=#EE6633><b><i>Sorry, Not Currently Available</i></b></font>");return;}var a="<font class=XSMALL>";var md=0;if(cols==1)a+="<p>";if (p==rp)a+=rp;else {if(cols<0)a+="<div style='float:right;padding-left:10;'>";if (t!='A'&&p!=''&&m!=''&&((q!=''&&q!='ok')||ir!='')){++md;if(cols<0)a+="<p>";a+='Regular '+m+"<br>";}if(ir!='')a+=hi+"- <i>"+ir+" Instant Rebate</i></font>";if(mr!='')a+="<br><i>"+hi+"+ "+mr+" Mail-in Rebate</font></i>";if((t=='A'||(q!=''&&q!='ok'))&&md==0){a+="<p><font class=MED><b><s>"+m+"</s></b></font>";}else if(t==''||t=='I'||q=='ok'){a+="<p><nobr><font class=XSMALL>";if(cols<0)a+="&nbsp;&nbsp;&nbsp;";a+="Only</font><font class=";if(cols<2)a+="XLARGE";else a+="LARGE";a+=" color=#000000><b> "+p+"</b></font></nobr>";}if (p!=''&&m!=''&&q!=''&&q!='ok'){var fa="<font class=TINY color=#336699>";if(t=='X'){a+="<p>"+hi+fa+"<i>Log In for Our Unadvertised&nbsp;Price</i></font></font><p>";}else if(t=='A'&&q!='ok'){a+="<p>"+hi+fa+"<i>Click Add&nbsp;to&nbsp;Cart for Unadvertised Price</i></font></font><p>";}else if(q!=''&&q!='ok'){a+="<p>"+hi+fa+"<i>Click Email&nbsp;Me for Unadvertised Price</i></font></font><p>";}}if(cols<0)a+="</div><p>";if(t!='X'){a+="<div style='width:75;background:#EEE;";if(cols<0)a+="float:right;";a+="'><nobr>";}if(t=='X'){a+="<a class=BUTTON href='https://www.provantage.com/scripts/cart.dll/x/0/myaccount'>";a+="<div class=BUTTON>Log&nbsp;In</div></a>";}else if(t=='A'&&q!='ok'){a+="<a class=BUTTON href='javascript:AddToCart(\""+cd+"\",\"additem\");'>";a+="<div class=BUTTON>Add to Cart</div></a>";}else if(q!=''&&q!='ok'){a+="<a class=BUTTON href='javascript:AddToCart(\""+cd+"\",\"getquote\");'>";a+="<div class=BUTTON>Email Me</div></a>";}else{a+="<a class=BUTTON href='/scripts/cart.dll/x/0/add/"+cd+"'>";a+="<div class=BUTTON>Add to Cart</div></a>";}if(t!='X')a+="</nobr></div>";}if(cols<0)a+="<div style='float:right;' nowrap>";else a+="<p style='padding:2;'><nobr>";a+="<img class=CHK src=/box-check-"+c+".gif>&nbsp;<font class=XSMALL>"+v;if(cols<0)a+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>";else a+="</nobr>";a+="</td></font>";document.write(a);}
function DH(cd){DX(cd,1);}
function NS(){window.open('http://seals.networksolutions.com/siteseal_seek/siteseal?v_shortname=NETSP&v_querytype=W&v_search=www.provantage.com&x=5&y=5','NETSP','left='+CL(390)+',top='+CT(480)+',width=390,height=480');}
function SetEX(a,l,t){var d=document.getElementById(a);if(d){d.aleft=l;d.atop=t;}}
function CV(){if(confirm('Are you sure you want to clear your history?')){var cv=document.getElementById('VS');if (cv){cv.style.visibility='hidden';cv.style.display='none';cv=document.getElementById('VSX');cv.style.visibility='visible';cv.style.display='block';}document.cookie='PVV=;path=/scripts;domain=www.provantage.com;';}}
function EXX(ty){for(k=0;k<=9;k++){var l=0,t=0;var ca=document.getElementById('E'+k);if(ca){var e;for(e=ca;e.tagName.toLowerCase()!='body';){t+=e.offsetTop;l+=e.offsetLeft;e=e.offsetParent;}if (t==0&&l==0)continue;for(i=1;i<=4;i++){var cb=document.getElementById('E'+k+''+i);if(cb){if(typeof(cb.aleft)=='number'){cb.style.left=l+(cb.aleft*1);cb.style.top=t+(cb.atop*1);cb.style.visibility='visible';cb.style.zIndex=10;var ha=t+ca.offsetHeight;var hb=t+cb.atop+cb.offsetHeight;if(ha<hb){ca.style.height=parseInt(ca.offsetHeight);ca.style.height=ca.offsetHeight+(hb-ha);}}}}}}}
function Tgl(a,c){var b=document.getElementById(a);if(b){if(c==1){b.style.visibility='visible';b.style.display='block';}else{b.style.visibility='hidden';b.style.display='none';}}}
function Toggle(a,c){Tgl(a,c);if(c==1)c=0;else c=1;Tgl('T'+a,c);EXX();}
