var isIE6=false;function GoTo(a){self.location=a}function OpenWindow(c){var a=620;var d=550;var b=window.open(c,"GraphicWindow","width="+a+",height="+d+",resizable=1,scrollbars=1")}function ExpandOld(a,d){var h=a.getElementsByTagName("img")[0];var g=a.getElementsByTagName("img")[1];var b=a.getElementsByTagName("span")[0];var f=document.getElementById("navigation");f=f.parentNode;var c=h.alt;var e=h.src;if(c=="Open"&&d){a.title="Click to close";h.src=e.replace("down","up");h.alt="Close";g.src=e.replace("down","up");g.alt="Close";b.innerHTML="Close";f.style.height="auto";f.style.display="block";if(document.getElementById("videoWrapper")!=null){HidePlayer()}document.getElementById("navbottom").onclick=SlideClose}else{if(!d){a.title="Click to open";h.src=e.replace("up","down");h.alt="Open";g.src=e.replace("up","down");g.alt="Open";b.innerHTML="Category";f.style.height="0px";f.style.display="none";document.getElementById("navbottom").onclick=Expand}}}function Expand(){var c=document.getElementById("navbottom");if(window.getComputedStyle){var b=window.getComputedStyle(c,"");if(b.display=="none"){return}if(b.visibility=="hidden"){return}}var b=c.currentStyle;if(b){if(b.display=="none"){return}if(b.visibility=="hidden"){return}}var h=c.getElementsByTagName("img")[0];var g=c.getElementsByTagName("img")[1];var a=c.getElementsByTagName("span")[0];if(isIE6){ExpandOld(c,true);return}var f=document.getElementById("navigation");f=f.parentNode;var d=h.alt;var e=h.src;if(d=="Open"){c.title="Click to close";h.src=e.replace("down","up");h.alt="Close";g.src=e.replace("down","up");g.alt="Close";a.innerHTML="Close";f.style.display="block";SlideOpen();if(document.getElementById("videoWrapper")!=null){HidePlayer()}}}function Collapse(){var b=document.getElementById("navbottom");var e=b.getElementsByTagName("img")[0];var d=b.getElementsByTagName("img")[1];var a=b.getElementsByTagName("span")[0];var c=e.src;e.src=c.replace("up","down");e.alt="Open";d.src=c.replace("up","down");d.alt="Open";a.innerHTML="Categories";b.title="Click to open";document.getElementById("navbottom").onclick=Expand}function SlideOpen(){var c=document.getElementById("navdirection");if(c.value!="close"){var d=document.getElementById("navigation");d=d.parentNode;var b=document.getElementById("navheight");if(c.value!="open"){b.value=d.clientHeight;d.style.height="0px"}var a=parseInt(b.value);c.value="open";var e=d.clientHeight;if(e<a){if(e+15>a){d.style.height=a+"px";c.value=""}else{d.style.height=(e+15)+"px";setTimeout("SlideOpen( )",1);return}}else{d.style.height=a+"px";c.value=""}document.getElementById("navbottom").onclick=SlideClose}}function SlideClose(){if(isIE6){ExpandOld(document.getElementById("navbottom"),false);return}var b=document.getElementById("navdirection");if(b.value!="open"){var c=document.getElementById("navigation");c=c.parentNode;var a=document.getElementById("navheight");b.value="close";var d=c.clientHeight;if(d>0){if(d-15<0){b.value="";c.style.height=a.value+"px";c.style.display="none";Collapse()}else{c.style.height=(d-15)+"px";setTimeout("SlideClose( )",1)}}else{b.value="";c.style.height=a.value+"px";c.style.display="none";Collapse()}}}function ProcessShipping(a){if(a==null||a.parentNode==null){return}var b=a.parentNode.getElementsByTagName("span")[0];var c=(parseFloat(a.value)+parseFloat(_subTotal))+"";if(c.lastIndexOf(".")<0){c=c+"."}while(c.lastIndexOf(".")>c.length-3){c=c+"0"}while(c.lastIndexOf(".")<c.length-3){c=c.substr(0,c.length-1)}b.innerHTML="$"+c}function setRRVars(d){var e=setRRCookies("CartGUID");var a=setRRCookies("RRUserID");if(e!=""){if(d!=null){d.setSessionId(e)}else{var c=document.getElementById("wcnsid");if(c!=null){c.value=e}}}if(a!=""){if(d!=null){d.setUserId(a)}else{var b=document.getElementById("wcnuid");if(b!=null){b.value=a}}}}function setRRCookies(b){var e=getCookie("EpayUser24");if(e!=null&&e!=""){var a=e.split("&");for(var d=0;d<a.length;d++){if(a[d].indexOf(b)>-1){var c=a[d].split("=");if(c.length>1){return c[1]}}}}return""}function WCNTrackingPixel(){var n=location.pathname.substring(1);var f=n.indexOf("c/");if(f>0){if(!isNaN(parseInt(n))){var l=n.substring(0,f);return(new TrackingPixel("WNDHAET5BY37D86-2","catid="+l))}}if(n.toLowerCase().indexOf("checkoutconfirmation")>0){var d=document.getElementById("hidOID");var i=document.getElementById("hidSubTotal");var a=document.getElementById("hidShipping");var k=document.getElementById("hidDiscount");var h=document.getElementById("hidTotal");if(d!=null&&i!=null&&a!=null&&k!=null&&h!=null){var e=parseFloat(i.value);var b=parseFloat(a.value);var g=parseFloat(k.value);var c=parseFloat(h.value);return(new TrackingPixel("WNDHAET5BY37D86-2","CSIORDERID="+d.value+"|CSIORDERAMT="+c.toFixed(2)+"|ORDERSUBTOTAL="+e.toFixed(2)+"|ORDERSHIP="+b.toFixed(2)+"|ORDERDISCOUNT="+g.toFixed(2)))}}if(n.toLowerCase().indexOf("checkout/")>-1){var j="";var m=document.getElementById("hidSupress");if(m!=null){j="supress="+m.value;return(new TrackingPixel("WNDHAET5BY37D86-2",j))}}return(new TrackingPixel("WNDHAET5BY37D86-2"))}function GetPageName(e){var c="";var f=document.title;var d=location.pathname.substring(1);if(d.indexOf("products/")>0){var a=document.getElementById("productID");f="Product Detail";e.products=";"+a.value;e.events="prodView"}else{if(d.indexOf("categories/")>0){var b=f.indexOf(":");c=f.substr(0,b-2);f="Category: "+c}else{if(d.indexOf("cart.php")>0){e.events="scView"}}}e.pageName=f;return e}function loadScript(b,c){var a=document.createElement("script");a.type="text/javascript";if(c!=null){if(a.readyState){a.onreadystatechange=function(){if(a.readyState=="loaded"||a.readyState=="complete"){a.onreadystatechange=null;c()}}}else{a.onload=function(){c()}}}a.src=b;document.getElementsByTagName("head")[0].appendChild(a)};