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;if(document.getElementById("tbxsearchterm").value==""){if(readQuery("term")!=null){document.getElementById("tbxsearchterm").value=unescape(readQuery("term").replace(/\+/g," "))}}if(readCookie("af800")!=null){if(readCookie("af800")!=""){document.getElementById("aPhone").innerHTML=formatPhone(readCookie("af800").replace(/[^0-9]/g,""))}}function getCart(){var B=window.location.pathname;var A=B.substring(B.lastIndexOf("/")+1);if(!readCookie("cartItem")){displayCart("0 Items : $0.00")}else{displayCart(readCookie("cartItem"))}}function displayCart(A){if(A.length<25){if(!readCookie("cartItem")){SetCookie("cartItem",A,1)}document.getElementById("spnCartItem").innerHTML=unescape(A)}}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)}}}}}if(document.getElementById("spnCartItem")!=null){getCart();addFunc()}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(window.attachEvent){window.attachEvent("onload",lpAddMonitorTag)}else{window.addEventListener("load",lpAddMonitorTag,false)}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}params+="pg="+location.pathname+"&";params+="rf="+escape(document.referrer)+"&";params+="qs="+escape(location.search)}function postData(){var A=new Image(1,1);A.src=document.location.protocol+"//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}saveUserLog();highlightlink();