var pathname=location.hostname.toLowerCase();var bName=navigator.appName;var bVer=parseFloat(navigator.appVersion);var updateCount=0;var currentDiv,hideDivAcct,hideDivSite,hideDivShop;var cur=-1;var show=true;function readCookie(B){var D=B.toLowerCase()+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C].toLowerCase();while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}function SetCookie(E,D,C){var B=new Date();var A=new Date();if(C==null||C==0){C=1}A.setTime(B.getTime()+3600000*24*C);document.cookie=E+"="+escape(D)+";path=/;expires="+A.toGMTString()}function expireCookie(B){var A=new Date();document.cookie=B+"=;path=/;expires="+A.getTime()}function openpopupnotime(B,A,C){window.open(B,A,C)}function openpopup(B,A,C){window.open(B,A,C)}function get_focus(A){A.focus()}function formatPhone(A){A=A.replace(" ","");return"("+A.substring(0,3)+") "+A.substring(3,6)+"-"+A.substring(6,10)}function setDDL(A,B){var D=document.getElementById(A);for(var C=0;C<D.options.length;C++){if(D.options[C].value==B){D.selectedIndex=C;break}}}function checkRefreshTime(C,F,D,B){var E=document.getElementById("detect"+F);if(E.src&&E.src!=""){var A=E.offsetHeight;if(A==2){document.getElementById("a"+F+"on").style.display="none";document.getElementById("a"+F+"off").style.display=""}else{if(A==1){document.getElementById("a"+F+"on").style.display="";document.getElementById("a"+F+"off").style.display="none"}}}updateCount++;if((updateCount%B)==0){refreshImage(C,F,D)}setTimeout("checkRefreshTime('"+C+"','"+F+"','"+D+"',"+B+");",1000)}function refreshImage(A,D,B){date1=new Date();updateurl=A+"ChatScript.ashx?config="+B+"&refresh=1&time="+date1.getTime();var C=document.getElementById("detect"+D);C.src=updateurl}function showDivDetail(D,E,B){currentDiv=B;var A=document.getElementById(B);A.style.display="block";A.innerHTML='<img src="/images/animated/indicator.gif"> Loading Manufacturer';var C=new ajaxRequestObjectCache(D,E,writeDetail);C.doGetCallback()}function writeDetail(A){if(A.match(/login.aspx/g)){document.getElementById(currentDiv).innerHTML="You need to login to the admin of this site before you can view mfr details."}else{document.getElementById(currentDiv).innerHTML=A}}function hideDivDetail(A){document.getElementById(A).style.display="none"}function Right(B,C){if(C<=0){return""}else{if(C>String(B).length){return B}else{var A=String(B).length;return String(B).substring(A,A-C)}}}function readQuery(B){var D=B+"=";var A=location.search.substring(1).split("&");for(var C=0;C<A.length;C++){var E=A[C].toLowerCase();while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D.toLowerCase())==0){return E.substring(D.length,E.length)}}return null}function getCheckedValue(B){if(!B){return""}var C=B.length;if(C==undefined){if(B.checked){return B.value}else{return""}}for(var A=0;A<C;A++){if(B[A].checked){return B[A].value}}return""}function toCurrency(dblMoney){currency=eval(dblMoney);workNum=Math.abs((Math.round(currency*100)/100));workStr=""+workNum;if(workStr.indexOf(".")==-1){workStr+=".00"}dStr=workStr.substr(0,workStr.indexOf("."));dNum=dStr-0;pStr=workStr.substr(workStr.indexOf("."));if(workNum>=1000){dLen=dStr.length;dStr=parseInt(""+(workNum/1000))+","+dStr.substring(dLen-3,dLen)}if(workNum>=1000000){dLen=dStr.length;dStr=parseInt(""+(workNum/1000000))+","+dStr.substring(dLen-7,dLen)}if(pStr.length==2){pStr+="0"}retval=dStr+pStr;if(currency<0){retval="- $"+retval}else{retval="$"+retval}return retval}function stripCurrency(A){A=A.replace(/[^0-9.]/g,"");A=A*1;return A}function toPercent(dblPercent){percent=eval(dblPercent);percent=percent*100;workNum=Math.abs((Math.round(percent*100)/100));workStr=""+workNum;if(workStr.indexOf(".")==-1){workStr+=".00"}dStr=workStr.substr(0,workStr.indexOf("."));dNum=dStr-0;pStr=workStr.substr(workStr.indexOf("."));retval=dStr+pStr;if(percent<0){retval="- "+retval+"%"}else{retval=retval+"%"}return retval}function AddTop(A,C,D,J){var E;var G=document.createElement("b");var I="r";var B=4;if(J&&J=="small"){I="rs";B=2}G.className="rtop";G.style.backgroundColor=C;for(E=1;E<=B;E++){var H=document.createElement("b");H.className=I+E;H.style.backgroundColor=D;G.appendChild(H)}try{A.insertBefore(G,A.firstChild)}catch(F){}}function AddBottom(A,C,D,J){var E;var G=document.createElement("b");var I="r";var B=4;if(J&&J=="small"){I="rs";B=2}G.className="rbottom";G.style.backgroundColor=C;for(E=B;E>0;E--){var H=document.createElement("b");H.className=I+E;H.style.backgroundColor=D;G.appendChild(H)}try{A.appendChild(G,A.firstChild)}catch(F){}}function getElementsBySelector(B){var C;var H=[];var A="";var E="";var I=B;var F=[];if(B.indexOf(" ")>0){H=B.split(" ");var D=H[0].split("#");if(D.length==1){return(F)}return(document.getElementById(D[1]).getElementsByTagName(H[1]))}if(B.indexOf("#")>0){H=B.split("#");I=H[0];A=H[1]}if(A!=""){F.push(document.getElementById(A));return(F)}if(B.indexOf(".")>0){H=B.split(".");I=H[0];E=H[1]}var G=document.getElementsByTagName(I);if(E==""){return(G)}for(C=0;C<G.length;C++){if(G[C].className==E){F.push(G[C])}}return(F)}function fnDefault(B,C){var A=(window.event)?C.keyCode:C.which;if(B!=undefined&&A==13){if(C.stopPropagation){C.stopPropagation();C.preventDefault()}C.returnValue=false;C.cancelBubble=true;B.click()}}function addLoadEvent(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A}else{window.onload=function(){B();A()}}}function clickButton(C,B){var A=document.getElementById(B);if(typeof A=="object"){if(C.keyCode){if(C.keyCode==13){A.click();return false}}else{if(event.keyCode){if(event.keyCode==13){A.click();return false}}}}}function insertAfter(C,A){var B=A.parentNode;if(B.lastChild==A){B.appendChild(C)}else{B.insertBefore(C,A.nextSibling)}}function fnHide(A){if(document.getElementById(A+"subMenu")){document.getElementById(A+"subMenu").style.display="none"}}function clearDiv(A){if(A=="acctLink"){hideDivAcct=setTimeout("fnHide('"+A+"')",300)}else{if(A=="hrefSite"){hideDivSite=setTimeout("fnHide('"+A+"')",300)}else{hideDivShop=setTimeout("fnHide('"+A+"')",300)}}}function showSub(B){var A=document.getElementById(B.id+"subMenu");if(A.style.display!="block"){A.style.display="block"}}function findPosX(A){var B=0;if(A.offsetParent){while(1){B+=A.offsetLeft;if(!A.offsetParent){break}A=A.offsetParent}}else{if(A.x){B+=A.x}}return B}function findPosY(B){var A=0;if(B.offsetParent){while(1){A+=B.offsetTop;if(!B.offsetParent){break}B=B.offsetParent}}else{if(B.y){A+=B.y}}return A}function rpLink(){if(readCookie("user%5Fid")!=null&&readCookie("lui%5Frep%5Fid")!=null&&readCookie("fullName")!=null){document.write("<a class='whiteNoUnderLine smallerText' href='/admin/orders/customer.asp?id="+readCookie("user%5Fid")+"'>"+readCookie("fullName")+"</a><a class='whiteNoUnderLine smallerText' href='/includes/logout.aspx'>Logout</a>")}}function loadCart(){if(readCookie("cartItem")!=null){if(readCookie("cartItem").indexOf("~")>0){SetCookie("cartItem",0+"-"+0,-1)}var A=readCookie("cartItem").split("-");if(A.length==2){if(A[0]==0){document.write("0 Items : <strong>$0.00")}else{document.write(A[0]+" Items : <strong>"+toCurrency(A[1]))}}}else{document.write("0 Items : <strong>$0.00")}}function showRecentViewed(){var C;C=readCookie("recentView");if(C!=null){var B=C.split("~");for(var D=0;D<B.length;D++){if(D>3){displayButton()}var A=B[D].split("|");if(A[0].length>0){if(D<4){document.write("<a href='/products/view.aspx?sku="+A[0]+"&linkLoc=recent'>");if(A[3].length>5){document.write("<img src='//hi.atgimg.com/img/t/"+A[3].replace(/\+/g,"%20")+'\' style="padding: 5px;"  />');document.write("</a>")}else{document.write("No Image");document.write("</a>")}}}}}else{document.write("<p>You have no recently viewed items. After viewing product detail pages or search results, look here to find an easy way to navigate back to products you are interested in.</p>")}}function displayButton(){document.getElementById("btnForward").style.display="inline"}function recentlyViewedForward(){document.getElementById("RecentlyViewedContent").innerHTML='<iframe width="454px" height="100" id="iframeRvc" frameborder="0" src="/ajax/getRecentlyViewed.aspx" scrolling="no" />';document.getElementById("btnForward").style.display="none"}function sendFeedBack(J){var D="tabfeedbackarrowon.png";var O=document.getElementById("imgsuggestion").src;var K=document.getElementById("imgcontent").src;var L=document.getElementById("imgbug").src;var B=document.getElementById("imgother").src;var M;var N=O.search(D);var I=K.search(D);var F=L.search(D);var A=B.search(D);if(N!=-1){M="Suggestion"}else{if(I!=-1){M="Content"}else{if(F!=-1){M="Bug"}else{if(A!=-1){M="Other"}}}}for(var E=0;E<document.getElementsByName("siteRating").length;E++){if(document.getElementsByName("siteRating")[E].checked){var G=document.getElementsByName("siteRating")[E].value}}location.protocol+"//"+location.host+location.pathname+location.search;var C=document.getElementById("divFeedBackForm");if(J==""){J=0}if(M==""){M="No Feedback"}if(G==""){G="No Rating"}if((document.getElementById("txtFeedBack").value!="We appreciate your suggestions. Please note that we are unable to respond directly to every suggestion.")&&(document.getElementById("txtFeedBack").value!="Thank you for letting us know about issues you have seen with our content. Please note that we are unable to respond directly to every comment.")&&(document.getElementById("txtFeedBack").value!="We are sorry you encountered an issue with our website. Please provide as much detail as possible so we can solve this issue as soon as possible.")&&(document.getElementById("txtFeedBack").value!="Thank you for your comments. Please note we are unable to respond directly to every comment.")){var H=new ajaxRequestObject("/ajax/miniFeedBack.aspx","group_id="+J+"&feedback=Page: <a href='"+escape(location.protocol+"//"+location.host+location.pathname+location.search)+"'>"+escape(location.protocol+"//"+location.host+location.pathname+location.search)+"</a><br />"+escape(document.getElementById("txtFeedBack").value)+"&feedBackTab="+M+"&feedBackRating="+G);H.doGetCallback()}C.innerHTML="<div style='margin: 40px 0px 0px 15px; padding-right: 15px; color: green;'>Thank you for your feedback.</div>"}function writeFeedBack2(A){document.write('<div id="miniFeedBack" style="clear:both;"><h2 class="separator">Suggestion Box</h2><p><strong>Need help</strong>? Have a <strong>question for customer service</strong>? Use our <a id="aControlIDon"  href="https://server.iad.liveperson.net/hc/51320037/?cmd=file&file=visitorWantsToChat&site=51320037&byhref=1&imageUrl=https://server.iad.liveperson.net/hcp/Gallery/ChatButton-Gallery/English/General/1a/" target="chat51320037"  onClick="javascript:window.open(\'https://server.iad.liveperson.net/hc/51320037/?cmd=file&file=visitorWantsToChat&site=51320037&imageUrl=https://server.iad.liveperson.net/hcp/Gallery/ChatButton-Gallery/English/General/1a/&referrer=\'+escape(document.location),\'chat51320037\',\'width=475,height=400,resizable=yes\');return false;" >Live Chat</a> or call '+sitePhone+'</p><div style="border-top:1pt solid #CCC;margin:10px;"></div><div id="divFeedBackForm"><p>Tell us how we can <strong>improve this page</strong><br><textarea rows="3" cols="66" id="txtFeedBack" onclick="this.value=\'\'">We appreciate your suggestions. Please note that we are unable to respond directly to every suggestion. If you need help please contact us using the links above.</textarea><br><input type="button" value="Send Suggestion" onClick="sendFeedBack(\''+A+"')\"/></p></div></div>")}function track(D,B,A){var C=new ajaxRequestObject("/ajax/track.aspx","name="+D+"&value1="+B+"&value2="+A);C.doGetCallback()}function $(){return document.getElementById(arguments[0])}function autoFillNav(C){var A=(window.event)?event.keyCode:C.which;switch(A){case 13:enter();break;case 38:move("up");break;case 40:move("down");break;default:var D=document.getElementById("tbxsearchterm");if(D.value.length>3){var B=new ajaxRequestObjectCache("http://www.lightinguniverse.com/ajax/fillSearch.aspx","term="+D.value,showFillNav);B.doGetCallback()}else{hideFNDelay()}}}function enter(){show=false;if(cur>-1){var D=document.getElementById("tbxsearchterm");var B=document.getElementById("divNavMatch");var A=B.getElementsByTagName("div");var C=A[cur].getElementsByTagName("a")[0].innerHTML.replace(new RegExp("^<span[^<]*","i"),D.value).replace(new RegExp("</span>","i"),"");window.location="/search/default.aspx?term="+C}}function move(D){var B=document.getElementById("divNavMatch");var A=B.getElementsByTagName("div");if(D=="down"){cur++}else{cur--}if(cur>A.length-1){cur=-1}if(cur<-1){cur=A.length-1}for(var C=0;C<A.length;C++){if(C==cur){A[C].getElementsByTagName("a")[0].style.background="#DDD"}else{A[C].getElementsByTagName("a")[0].style.background="#FFF"}}}function showFillNav(F){if(show){var C=F.split("~");var A=document.getElementById("divNavMatch");var E=document.getElementById("tbxsearchterm");A.innerHTML="";currentLength=C.length;if(C.length>1){A.className="fillBoxNav";A.innerHTML+='<span style="color:#666;margin-left:90px;font-size:8pt;">- Search Suggestions -</span>';for(var D=0;D<C.length-1;D++){var B=C[D].replace(E.value.replace(/^\s+/,"").toLowerCase(),'<span style="font-size:9pt;color: #6699FF; padding: 0px; margin: 0px;">'+E.value.toLowerCase()+"</span>");A.innerHTML+='<div style="margin:5px"><a href="/search/default.aspx?term='+C[D]+'" style="font-size:9pt;padding: 3px 3px; display: block; text-decoration:none;" onmouseout="this.style.background=\'#FFF\'" onmouseover="clearSelectNav(); this.style.background=\'#DDD\';this.style.color=\'#003399\'">'+B+"</a></div>"}}else{A.className="hide";A.innerHTML=""}}else{A.className="hide";A.innerHTML=""}}function clearSelectNav(){if(cur>-1){var B=document.getElementById("divNavMatch");var A=B.getElementsByTagName("div");cur=-1;for(var C=0;C<A.length;C++){A[C].getElementsByTagName("a")[0].style.background="#FFF"}}}function hideFN(){setTimeout(hideFNDelay,1000)}function hideFNDelay(){var A=document.getElementById("divNavMatch");A.className="hide";A.innerHTML=""}function ajaxRequestObject(C,F,E){var B=D();B.onreadystatechange=A;function D(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP")}}}this.doGetCallback=function(){var G=new Date().getTime();B.open("get",C+"?"+F+"&rand="+G);B.send(null)};this.doPostCallback=function(G){var H=new Date().getTime();B.open("post",C+"?"+F+"&rand="+H);B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");B.send(G)};function A(){if(B.readyState==4){if(E){E(B.responseText)}}}}function ajaxRequestObjectCache(C,F,E){var B=D();B.onreadystatechange=A;function D(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP")}}}this.doGetCallback=function(){B.open("get",C+"?"+F);B.send(null)};this.doPostCallback=function(G){var H=new Date().getTime();B.open("post",C+"?"+F);B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");B.send(G)};function A(){if(B.readyState==4){if(E){E(B.responseText)}}}}function flipSpinner(B){var A=document.getElementById(B);if(A.style.display=="none"){A.style.display=""}else{A.style.display="none"}}function hideElement(A){document.getElementById(A).style.display="none"}function showElement(A){document.getElementById(A).style.display=""}var hideSiteTimeout,showSiteTimeout,hideAcctTimeout;var overNav=false;var curTab="light";function showSiteDelay(A){if(A!=""){clearTimeout(showSiteTimeout);clearTimeout(hideSiteTimeout);showSiteTimeout=setTimeout("showSubSite('"+A+"')",200)}else{hideSite()}}function showSubSite(A){overNav=true;curTab=A;var B=new ajaxRequestObjectCache("/ajax/navigationd.aspx","site="+A,setSiteDiv);B.doGetCallback()}function setSiteDiv(A){clearTimeout(hideSiteTimeout);clearBox();document.getElementById(curTab+"Box").innerHTML=A}function clearBox(){document.getElementById("lightBox").innerHTML="";document.getElementById("plumbBox").innerHTML="";document.getElementById("hardBox").innerHTML="";document.getElementById("hfsBox").innerHTML="";document.getElementById("homeBox").innerHTML="";document.getElementById("rugBox").innerHTML="";document.getElementById("olsBox").innerHTML="";document.getElementById("kidsBox").innerHTML="";document.getElementById("babyBox").innerHTML="";document.getElementById("toolsBox").innerHTML="";document.getElementById("sportsBox").innerHTML="";document.getElementById("cookBox").innerHTML="";document.getElementById("hasBox").innerHTML="";document.getElementById("lugsrBox").innerHTML="";document.getElementById("ofuBox").innerHTML=""}function hideSiteDelay(){overNav=false;clearTimeout(hideSiteTimeout);clearTimeout(showSiteTimeout);hideSiteTimeout=setTimeout("hideSite()",500)}function hideSite(){if(overNav==false){clearBox()}}function showAcctSub(){clearTimeout(hideAcctTimeout);document.getElementById("imgAcctSub").style.display="block"}function hideAcctSubDelay(){clearTimeout(hideAcctTimeout);hideAcctTimeout=setTimeout("hideAcctSub()",500)}function hideAcctSub(){document.getElementById("imgAcctSub").style.display="none"}function showSurvey(){var B=location.hostname.toLowerCase();if(!readCookie("popunder")){SetCookie("popunder",1,7)}else{var A=parseInt(readCookie("popunder"));if((A==15||A==30)&&B.indexOf("atgstores")<0){displaySurvey()}SetCookie("popunder",A+1,7)}}function displaySurvey(){var E=location.hostname.toLowerCase();var D=Math.floor(Math.random()*101);var F=6;if(D<F){SetCookie("popunder",100,7);var G=document.createElement("div");G.innerHTML="Hello! <br><br><strong>Your opinion is important</strong><br> After your visit would you be willing to answer 4 quick questions?<br><br><strong>It's easy to participate</strong><br>Click the 'Yes' button below to continue your visit as intended* When done, retrieve the window remaining on your desktop and complete the brief questionnaire.<br><br> Thank you for your help!<br><br><img src='http://hi.atgimg.com/images/btn/yes.gif' width='77px' height='27px' border='0' alt='Yes' onclick='popUnder(this);		'>&nbsp;&nbsp;&nbsp;<img src='http://hi.atgimg.com/images/btn/no.gif' width='77px' height='27px' border='0' alt='No' onclick='this.parentNode.style.display=\"none\";'><br><br><span style='font-size:8pt;padding-left:0px;'>*A second window will open on your desktop if you click 'Yes'<br>Please make sure not to close that window if you wish to participate.</span><img src='http://hi.atgimg.com/images/logos/atg_stores_27.gif' style='position:absolute;top:5px;right:25px;'><img src='http://hi.atgimg.com/images/closebutton.gif' style='position:absolute;top:2px;right:2px;' onclick='this.parentNode.style.display=\"none\"'>";G.style.fontSize="9pt";G.style.width="400";G.style.height="275";G.style.borderColor="#333";G.style.borderWidth="2pt";G.style.borderStyle="solid";G.style.backgroundColor="#FFFFFF";G.style.color="#000000";G.style.position="absolute";G.style.top="100";G.style.left="-270";G.style.textAlign="left";G.style.zIndex="10";G.style.padding="10";G.id="surveyDiv";document.forms[0].appendChild(G)}}function popUnder(B){B.parentNode.style.display="none";winUnder=window.open("/survey/exit.aspx","exitSurvey","width=525,height=350");winUnder.blur();window.focus()}showSurvey();var navTimer;function pageSetup(){if(document.getElementById("tbxsearchterm").value==""){if(readQuery("term")!=null){document.getElementById("tbxsearchterm").value=unescape(readQuery("term").replace(/\+/g," ").replace(/%20/g," "))}}if(readCookie("af800")!=null){if(readCookie("af800")!=""){document.getElementById("aPhone").innerHTML=formatPhone(readCookie("af800").replace(/[^0-9]/g,""))}}}function showSubType(A){navTimer=setTimeout('showSubTypeTime("'+A+'")',350);clearSub()}function showSubTypeTime(C){var A=document.getElementById(C+"subMenu");var B=A.getElementsByTagName("a");if(B.length>0){A.style.display="block"}}function clearSub(){var A=document.getElementById("ulTopNavType");var C=A.getElementsByTagName("li");for(i=1;i<C.length-1;i++){var B=C[i].getElementsByTagName("a");if(B[0].id!=""){document.getElementById(B[0].id+"subMenu").style.display="none"}}}function addFunc(){var B=document.getElementById("ulTopNavType");var D=B.getElementsByTagName("li");for(i=1;i<D.length;i++){var A=D[i].getElementsByTagName("div");var F=D[i].getElementsByTagName("a");if(A.length>0){var E=A[0].getElementsByTagName("a");var C=F[0].id;for(j=0;j<E.length;j++){E[j].onmouseover=function(){clearTimeout(hideDivShop)};E[j].onmouseout=function(){clearDiv(this.parentNode.parentNode.getElementsByTagName("a")[0].id)}}}}}var lpMTagConfig={lpServer:"server.iad.liveperson.net",lpNumber:"51320037",lpProtocol:"https"};function lpAddMonitorTag(B){if(typeof (B)=="undefined"||typeof (B)=="object"){B=lpMTagConfig.lpMTagSrc?lpMTagConfig.lpMTagSrc:"/hcp/html/mTag.js"}if(B.indexOf("http")!=0){B=lpMTagConfig.lpProtocol+"://"+lpMTagConfig.lpServer+B+"?site="+lpMTagConfig.lpNumber}else{if(B.indexOf("site=")<0){if(B.indexOf("?")<0){B=B+"?"}else{B=B+"&"}B=B+"site="+lpMTagConfig.lpNumber}}var A=document.createElement("script");A.setAttribute("type","text/javascript");A.setAttribute("charset","iso-8859-1");A.setAttribute("src",B);document.getElementsByTagName("head").item(0).appendChild(A)}if(typeof (lpMTagConfig.sessionVar)=="undefined"){lpMTagConfig.sessionVar=new Array()}if(readCookie("NetSessionID")!=null){lpMTagConfig.sessionVar[lpMTagConfig.sessionVar.length]="netsessionid="+readCookie("NetSessionID")}var params="";function saveUserLog(B){try{params="";if(B!=undefined){params+="logType="+B+"&"}createData();postData(B)}catch(A){params=""}}function createData(){var A;if(cookie("NetSessionId")==0){A=guid();SetCookie("NetSessionId",A,365)}else{A=cookie("NetSessionId")}params+="sessionId="+A+"&";params+="customerId="+cookie("user%5Fid")+"&";params+="ATGRepId="+cookie("lui%5Frep%5Fid")+"&";params+="h="+location.host+"&";if(typeof (wvtid)!="undefined"){params+="t="+wvtid+"&"}if(typeof (wvsku)!="undefined"){params+="s="+wvsku+"&"}if(typeof (wvfamily)!="undefined"){params+="f="+wvfamily+"&"}if(typeof (wvmfr)!="undefined"){params+="m="+wvmfr+"&"}if(typeof (wvstyle)!="undefined"){params+="st="+wvstyle+"&"}if(typeof (wvprice)!="undefined"){params+="p="+wvprice+"&"}params+="pg="+location.pathname+"&";params+="rf="+escape(document.referrer)+"&";params+="qs="+escape(location.search)}function postData(){var A=new Image(1,1);A.src=(("https:" == document.location.protocol) ? "https://atgstores" : "http://track") + ".atgstores.com/ajax/webVisitorLog.aspx?"+params}function cookie(E){var D=E.toLowerCase()+"=";var B=document.cookie.split(";");for(var A=0;A<B.length;A++){var C=B[A].toLowerCase();while(C.charAt(0)==" "){C=C.substring(1,C.length)}if(C.indexOf(D)==0){return C.substring(D.length,C.length)}}return 0}function S4(){return(((1+Math.random())*65536)|0).toString(16).substring(1)}function guid(){return(S4()+S4()+S4()+S4()+S4()+S4()+S4())}function highlightlink(){if(readQuery("nextLink")!=null){var B=unescape(readQuery("nextLink"));var A=document.getElementsByTagName("A");for(var C=0;C<A.length;C++){if(A[C].href.split("#")[0].toLowerCase()==B.toLowerCase()){A[C].style.borderWidth="3pt";A[C].style.borderColor="33CC00";A[C].style.borderStyle="solid"}}}}function saveCookie(A){SetCookie("NetSessionId",A.replace(/^\s+|\s+$/g,""),365)}function share(D){var A=location.href;var C=document.title;var B="";if(document.getElementById("prodDesc")){B=document.getElementById("prodDesc").innerHTML}if(C.length>30){C=C.substring(0,30)}if(B.length>30){B=B.substring(0,30)}switch(D){case 0:window.location="/products/emailToFriend.aspx?page="+A;break;case 1:window.open("http://www.facebook.com/sharer.php?u="+A+"&t="+C,"share","width=600,height=600,resizable=1");break;case 2:window.open("http://twitter.com/home?status="+C+" "+A,"share","width=600,height=600,resizable=1");break;case 3:window.open("http://delicious.com/save?v=5&noui&jump=close&url="+A+"&title="+C,"share","width=600,height=600,resizable=1");break;case 4:window.open("http://www.stumbleupon.com/submit?url="+A+"&title="+C,"share","width=600,height=600,resizable=1");break;case 5:window.open("http://digg.com/submit?url="+A+"&title="+C+"&bodytext="+B,"share","width=600,height=600,resizable=1");break;case 6:window.open("http://www.myspace.com/Modules/PostTo/Pages?t="+C+"&u="+A+"&c="+B,"share","width=600,height=600,resizable=1");break;case 7:if(window.external){window.external.AddFavorite(location.href,document.title)}break}return false}function swapImage(){intCurrentImage++;if(intCurrentImage>arrLink.length-1){intCurrentImage=0}if(intCurrentImage==0){document.getElementById("imgSwap").src=pic1.src}else{if(intCurrentImage==1){document.getElementById("imgSwap").src=pic2.src}else{document.getElementById("imgSwap").src=pic3.src}}setImage("imgSwap",0,intCurrentImage);imageSwap=setTimeout("swapImage()",6000)}function setImage(B,A,C){if(document.getElementById){obj=document.getElementById(B);if(A<=100){setOpacity(obj,A);if(document.getElementById(B).style.display=="none"){document.getElementById(B).style.display="block";document.getElementById(B).width=550;document.getElementById(B).height=320;document.getElementById("imgSwap").style.zIndex=0}A+=10;window.setTimeout("setImage('"+B+"',"+A+","+C+")",100)}else{document.getElementById("homePageImageLink").setAttribute("href","/products/default.aspx?psku="+arrLink[C]);document.getElementById("imgHomePage").setAttribute("alt",arrAltText[C]);document.getElementById("imgSwap").style.display="none";document.getElementById("imgSwap").width=0;document.getElementById("imgSwap").height=0;document.getElementById("imgSwap").style.zIndex=-1;setOpacity(obj,0);if(C==0){document.getElementById("imgHomePage").src=document.getElementById("imgSwap").src}else{if(C==1){document.getElementById("imgHomePage").src=document.getElementById("imgSwap").src}else{document.getElementById("imgHomePage").src=document.getElementById("imgSwap").src}}}}}function stopSwap(){clearTimeout(imageSwap)}function setOpacity(B,A){A=(A==100)?99.999:A;B.style.filter="alpha(opacity:"+A+")";B.style.KHTMLOpacity=A/100;B.style.MozOpacity=A/100;B.style.opacity=A/100}addLoadEvent(pageSetup);addLoadEvent(addFunc);addLoadEvent(saveUserLog);addLoadEvent(highlightlink);
