function isCoupon(CouponForm)
{if(CouponForm.coupon.value!="")
return true;else
alert("Please enter a valid coupon!");CouponForm.coupon.focus();return false;}
function runClock(){}
function SubmitDeleteForm()
{var agree=false;agree=confirm('Are you sure you want to remove this item from shopping cart?');if(agree){}
else{return false;}}
function phoneMe(checkbox)
{if(checkbox.checked==true)
{return true;}
else
{alert("Please check the phone me option!")
return false;}}
function ToSubmit(a){document.selectParentForm.ProductsID.value=a;document.selectParentForm.submit();}

/** popups **/
function Newpopup(url){var top_center,left_center;mywin=window.open(url,"win","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=250,height=280");}
function showMap(url){var top_center,left_center;top_center=(screen.height/2)-200;left_center=(screen.width/2)-300;mywin=window.open(url,"win","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=740,height=560,top="+top_center+",left="+left_center+"");}
function showMapDir(url){var top_center,left_center;top_center=(screen.height/2)-200;left_center=(screen.width/2)-300;mywin=window.open(url,"win","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=400,top="+top_center+",left="+left_center+"");}
function open_window(url){mywin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=650,height=300');}
function addFav(url){mywin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=350,height=200,left=300,top=100');}
function mOvr(src,clrOver){if(!src.contains(event.fromElement)){src.bgColor=clrOver;}}function mOut(src,clrIn){if(!src.contains(event.toElement)){src.bgColor=clrIn;}}

/** forms **/ 
function ChooseCityReg(bs,no)
{if(bs=="1")
for(var i=0;i<document.anonymous.CorrectBillToCity.length;i++)
{if(document.anonymous.CorrectBillToCity[i].checked)
{document.anonymous.BillTocity.value=document.anonymous.CorrectBillToCity[i].value;if(no=='x')
document.anonymous.dnvbc.value=0;else
document.anonymous.dnvbc.value=1;}}
else
{for(var i=0;i<document.anonymous.CorrectShipToCity.length;i++)
{if(document.anonymous.CorrectShipToCity[i].checked)
{document.anonymous.ShipTocity.value=document.anonymous.CorrectShipToCity[i].value;if(no=='x')
document.anonymous.dnvsc.value=1;else
document.anonymous.dnvsc.value=0;}}}}
function chooseCity(bs,no)
{if(bs=="1")
for(var i=0;i<document.anonymous.CorrectBillToCity.length;i++)
{if(document.anonymous.CorrectBillToCity[i].checked)
{document.anonymous.BillTocity.value=document.anonymous.CorrectBillToCity[i].value;if(no=='x')
document.anonymous.dnvbc.value=1;else
document.anonymous.dnvbc.value=0;}}
else
{for(var i=0;i<document.anonymous.CorrectShipToCity.length;i++)
{if(document.anonymous.CorrectShipToCity[i].checked)
{document.anonymous.ShipTocity.value=document.anonymous.CorrectShipToCity[i].value;if(no=='x')
document.anonymous.dnvsc.value=1;else
document.anonymous.dnvsc.value=0;}}}}
function chooseCitybill(bs,no)
{if(bs=="1")
for(var i=0;i<document.anonymousbill.CorrectBillToCity.length;i++)
{if(document.anonymousbill.CorrectBillToCity[i].checked)
{document.anonymousbill.BillTocity.value=document.anonymousbill.CorrectBillToCity[i].value;if(no=='x')
document.anonymousbill.dnvbc.value=1;else
document.anonymousbill.dnvbc.value=0;}}
else
{for(var i=0;i<document.anonymousship.CorrectShipToCity.length;i++)
{if(document.anonymousship.CorrectShipToCity[i].checked)
{document.anonymousship.ShipTocity.value=document.anonymousship.CorrectShipToCity[i].value;if(no=='x')
document.anonymousship.dnvsc.value=1;else
document.anonymousship.dnvsc.value=0;}}}}
function chooseCityship(bs,no)
{if(bs=="1")
for(var i=0;i<document.anonymousbill.CorrectBillToCity.length;i++)
{if(document.anonymousbill.CorrectBillToCity[i].checked)
{document.anonymousbill.BillTocity.value=document.anonymousbill.CorrectBillToCity[i].value;if(no=='x')
document.anonymousbill.dnvbc.value=1;else
document.anonymousbill.dnvbc.value=0;}}
else
{for(var i=0;i<document.anonymousship.CorrectShipToCity.length;i++)
{if(document.anonymousship.CorrectShipToCity[i].checked)
{document.anonymousship.ShipTocity.value=document.anonymousship.CorrectShipToCity[i].value;if(no=='x')
document.anonymousship.dnvsc.value=1;else
document.anonymousship.dnvsc.value=0;}}}}
function chooseProvince(bs,no)
{if(bs=="1")
{for(var i=0;i<document.anonymous.CorrectBillToProvince.length;i++)
{if(document.anonymous.CorrectBillToProvince[i].checked)
{document.anonymous.BillToProvince.value=document.anonymous.CorrectBillToProvince[i].value;if(no=='x')
document.anonymous.dnvbc.value=1;else
document.anonymous.dnvbc.value=0;}}}
else
{for(var i=0;i<document.anonymous.CorrectShipToProvince.length;i++)
{if(document.anonymous.CorrectShipToProvince[i].checked)
{document.anonymous.ShipToProvince.value=document.anonymous.CorrectShipToProvince[i].value;if(no=='x')
document.anonymous.dnvsc.value=1;else
document.anonymous.dnvsc.value=0;}}}}
function chooseProvince_Reg(bs,no)
{if(bs=="1")
{for(var i=0;i<document.anonymous.CorrectBillToProvince.length;i++)
{if(document.anonymous.CorrectBillToProvince[i].checked)
{document.anonymous.BillToProvinceCanadaID.value=document.anonymous.CorrectBillToProvince[i].value;if(no=='x')
document.anonymous.dnvbc.value=1;else
document.anonymous.dnvbc.value=0;}}}
else
{for(var i=0;i<document.anonymous.CorrectShipToProvince.length;i++)
{if(document.anonymous.CorrectShipToProvince[i].checked)
{document.anonymous.ShipToProvince.value=document.anonymous.CorrectShipToProvince[i].value;if(no=='x')
document.anonymous.dnvsc.value=1;else
document.anonymous.dnvsc.value=0;}}}}
function validate(field){var valid="0123456789"
var ok="yes";var temp;for(var i=0;i<field.value.length;i++){temp=""+field.value.substring(i,i+1);if(valid.indexOf(temp)=="-1")ok="no";}
if(ok=="no"){alert("Invalid entry!  Only numbers are accepted!");field.focus();field.select();}}
function DeleteProduct(PName,l){var agree=false;agree=confirm("Are you sure you want to remove "+PName+" from your "+l+"");if(agree){return true;}
else{return false;}}

/** home page accordian **/
function Init() {var accordian = new Accordian('basic-accordian',5,'header_highlight');
//hack to expand first content panel
document.getElementById('test-header').onclick();}

function $(d){return document.getElementById(d);}
function dsp(d,v){if(v==undefined){return d.style.display;}else{d.style.display=v;}}
function sh(d,v){if(v==undefined){if(dsp(d)!='none'&&dsp(d)!=''){return d.offsetHeight;}
viz=d.style.visibility;d.style.visibility='hidden';o=dsp(d);dsp(d,'block');r=parseInt(d.offsetHeight);dsp(d,o);d.style.visibility=viz;return r;}else{d.style.height=v;}}
s=7;t=10;function ct(d){d=$(d);if(sh(d)>0){v=Math.round(sh(d)/d.s);v=(v<1)?1:v;v=(sh(d)-v);sh(d,v+'px');d.style.opacity=(v/d.maxh);d.style.filter='alpha(opacity='+(v*100/d.maxh)+');';}else{sh(d,0);dsp(d,'none');clearInterval(d.t);}}
function et(d){d=$(d);if(sh(d)<d.maxh){v=Math.round((d.maxh-sh(d))/d.s);v=(v<1)?1:v;v=(sh(d)+v);sh(d,v+'px');d.style.opacity=(v/d.maxh);d.style.filter='alpha(opacity='+(v*100/d.maxh)+');';}else{sh(d,d.maxh);clearInterval(d.t);}}
function cl(d){if(dsp(d)=='block'){clearInterval(d.t);d.t=setInterval('ct("'+d.id+'")',t);}}
function ex(d){if(dsp(d)=='none'){dsp(d,'block');d.style.height='0px';clearInterval(d.t);d.t=setInterval('et("'+d.id+'")',t);}}
function cc(n,v){s=n.className.split(/\s+/);for(p=0;p<s.length;p++){if(s[p]==v+n.tc){s.splice(p,1);n.className=s.join(' ');break;}}}
function Accordian(d,s,tc){l=$(d).getElementsByTagName('div');c=[];for(i=0;i<l.length;i++){h=l[i].id;if(h.substr(h.indexOf('-')+1,h.length)=='content'){c.push(h);}}
sel=null;for(i=0;i<l.length;i++){h=l[i].id;if(h.substr(h.indexOf('-')+1,h.length)=='header'){d=$(h.substr(0,h.indexOf('-'))+'-content');d.style.display='none';d.style.overflow='hidden';d.maxh=sh(d);d.s=(s==undefined)?7:s;h=$(h);h.tc=tc;h.c=c;h.onclick=function(){for(i=0;i<this.c.length;i++){cn=this.c[i];n=cn.substr(0,cn.indexOf('-'));if((n+'-header')==this.id){ex($(n+'-content'));n=$(n+'-header');cc(n,'__');n.className=n.className+' '+n.tc;}else{cl($(n+'-content'));cc($(n+'-header'),'');}}}
if(h.className.match(/selected+/)!=undefined){sel=h;}}}
if(sel!=undefined){sel.onclick();}}

eval((function(){a=". ..{3document5ById.Og.v..v=8..E!.&&E!K..32}o=E;E.;v=parseInt(2.E=o;3v.d.height=vHpx.}Oof.v.g.v.v=v/d.h;d.Dv;d.filterKalpha(D.+v*100H).Ob..z>0.z#-1:z-v90.E.;%e.E.;.z<x.(x-z)#+1:v+z9x.%Accordian.s,f.l=..5sByTagName(.div..a=[].d=S;.Q.Q.,Q.)==.{a.push.}}xL.(.(h.c=h..0,h....c6==h..cMc+.;c..;c.overflowKhidden.;c.h=g(c.c.s=(s=8)?7:s;h.f=f;h.c=a;.h..match4fHH)).x=h}hC=.(.Rj=0;j<F.c.;j++.n=F.c[j].;n=n.0,n..dMn6.nMn+.;s=d.Jt4...sH).Rp=0;p<s.;p++..s[p]=KG.sJce(p,1.d.=s.join(. ..break}}clear.n.t..Q==F..P..g(n,0.@e.d.+K G.P..@b.}}}}})(S)}.x!L.xC()}}",b=49;while(b>=0)a=a.replace(new RegExp(".........................#%2345689@CDEFGHJKLMOPQRS".charAt(b),"g"),("\\.\042.\044..style.display.function.Interval(..className..length..indexOf(.-.).(d).if(..-content.)..id.){..style..=.none...{d=..;z=g.;x=d.h;.(d,.;for(i=0;i<l.;i++..);.}else{.(.'+n.+'.)',9)}..substr(.=.block...v=Math.round(./d.s.v=(v<1)?z.clear.d.t)}}. .d.offsetHeight.return .(new RegExp(..getElement.+.-header..=undefined.;of.v).g..n.t=set.'..onclick.opacity=.d..this..+d.f.+...spli.=..=null.=.(.}. ..n.=.d..for(.l[i]".split("."))[b--]);return a})())