if(window!=top){top.location.href=location.href;}var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-10745282-1"]);_gaq.push(["_trackPageview"]);(function(){var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a);})();function SPGuide(){var a=window.open("swatches.html","newWnd","width=820,height=560,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");}function PrintPage(){var a=window.open("mailform.html","newWnd","width=620,height=480,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");}function newFFD_Window(a){if(!newWin||newWin.closed){newWin=window.open("popups/"+a,"newWnd","width=275,height=310,menubar=no,location=no,resizable=yes,scrollbars=no,status=no");newWin.focus();}else{newWin.location.href="popups/"+a;newWin.focus();}}function newSST_Window(a){if(!newWin||newWin.closed){newWin=window.open("popups/"+a,"newWnd","width=560,height=190,menubar=no,location=no,resizable=yes,scrollbars=no,status=no");newWin.focus();}else{newWin.location.href="popups/"+a;newWin.focus();}}function SST(){var a=window.open("ssTshirts.html","newWnd","width=560,height=230,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");}function newSWEATS_Window(a){if(!newWin||newWin.closed){newWin=window.open("popups/"+a,"newWnd","width=560,height=190,menubar=no,location=no,resizable=yes,scrollbars=no,status=no");newWin.focus();}else{newWin.location.href="popups/"+a;newWin.focus();}}function SWEATS(){var a=window.open("sweats.html","newWnd","width=560,height=230,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");}function newLadiesT_Window(a){if(!newWin||newWin.closed){newWin=window.open("popups/"+a,"newWnd","width=560,height=190,menubar=no,location=no,resizable=yes,scrollbars=no,status=no");newWin.focus();}else{newWin.location.href="popups/"+a;newWin.focus();}}function LadiesT(){var a=window.open("ssLadiesTshirts.html","newWnd","width=560,height=230,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");}function viewThumb(b){var a=getDesignNumber(b);window.document.location.href="buynow.html#design="+a+"&image="+b.replace(".jpg","")+"&page="+window.document.location.href;}function getDesignNumber(b){var a=b;var c;c=a.indexOf("/")+1;a=a.replace(".jpg","");a=a.substr(c);return a;}function viewCart(){window.document.location.href="http://ww6.aitsafe.com/cf/review.cfm?userid=80324470&return="+window.document.location.href;}function getInterval(){var a=5;return a;}function getMaxDisplayAds(){var a=0;a=a-1;return a;}function getMaxAds(){var a=7;a=a-1;return a;}function getImageNames(){var a=new Array("");return a;}function getLargeImageNames(){var a=new Array("shepherd.jpg","chihuahua.jpg","golden.jpg","yorkie.jpg","boston.jpg","beagle.jpg","boxer.jpg");return a;}function getImageLinks(){var a=new Array("http://www.shirtlady.com/german-shepherd.html","http://www.shirtlady.com/chihuahua.html","http://www.shirtlady.com/golden-retriever.html","http://www.shirtlady.com/yorkshire-terrier.html","http://www.shirtlady.com/boston-terrier.html","http://www.shirtlady.com/beagle.html","http://www.shirtlady.com/boxer.html");return a;}function getNavImages(){var a=new Array("reverse_button.jpg","forward_button.jpg");return a;}function initAds(){var d=getMaxDisplayAds();var e=getMaxAds();var a=getImageNames();var c=getLargeImageNames();var f=getImageLinks();var b=getNavImages();if(d==e){displayNav=false;}else{displayNav=true;}window.document.getElementById("current_ad").value=0;window.document.getElementById("last_ad").value=d;window.document.getElementById("first_ad").value=0;window.document.write("<div id='active_ad' class='rotatormain'><a id='active_ad_link' href='"+f[0]+"'><img id='active_image' src='rotation/"+c[0]+"'></a></div>");if(d>0){if(displayNav){window.document.write("<div id=<'previous_nav' class='rotatornav'><a href='javascript:navAds(0,1);'><img src='rotation/"+b[0]+"'></a></div>");}for(i=0;i<=d;i++){document.write("<div id='option_ad"+i+"' class='rotatorthumb'><a id='option_ad_link"+i+"' href='javascript:navAds("+i+",0);'><img id='option_image"+i+"' src='rotation/"+a[i]+"'></a></div>");}if(displayNav){window.document.write("<div id='next_nav' class='rotatornav'><a href='javascript:navAds(0,2);'><img src='rotation/"+b[1]+"'></a></div>");}}rotateAds();}function rotateAds(){var a=getInterval();rotator=setTimeout("navAds(-1,2)",a*1000);setTimeout("rotateAds()",a*1000);}function navAds(e,g){var a=window.document.getElementById("current_ad").value;var j=window.document.getElementById("first_ad").value;var f=window.document.getElementById("last_ad").value;var c;var n;var b;var k=getMaxDisplayAds();var d=getMaxAds();var h=getImageNames();var m=getLargeImageNames();var l=getImageLinks();if(g==-1){c=e;}if(g==0){c=e;clearTimeout(rotator);}if(g==1){c=(a-1);if(c<0){c=d;}updateAds=check_update(c);if(updateAds){updateAds_reverse(c);}clearTimeout(rotator);}if(g==2){c=(+a+1);if(c>d){c=0;}updateAds=check_update(c);if(updateAds){updateAds_forward(c);}clearTimeout(rotator);}updateActiveAd(c);}function updateAds_reverse(d){var b=window.document.getElementById("first_ad").value;var a=window.document.getElementById("last_ad").value;var e=getMaxDisplayAds();var f=getMaxAds();var c=getImageNames();b=(b-1);if(b<0){b=f;}window.document.getElementById("first_ad").value=b;updateActiveAd(d);d=b;for(i=0;i<=e;i++){window.document.getElementById("option_ad_link"+i).href="javascript:navAds("+d+",0)";window.document.getElementById("option_image"+i).src="rotation/"+c[d];d=d+1;if(d>f){d=0;}}if(d==0){d=f;}else{d=d-1;}window.document.getElementById("last_ad").value=d;}function updateAds_forward(d){var b=window.document.getElementById("first_ad").value;var a=window.document.getElementById("last_ad").value;var e=getMaxDisplayAds();var f=getMaxAds();var c=getImageNames();b=(+b+1);if(b>f){b=0;}window.document.getElementById("first_ad").value=b;d=b;for(i=0;i<=e;i++){window.document.getElementById("option_ad_link"+i).href="javascript:navAds("+d+",0)";window.document.getElementById("option_image"+i).src="rotation/"+c[d];d=d+1;if(d>f){d=0;}}if(d==0){d=f;}else{d=d-1;}updateActiveAd(d);window.document.getElementById("last_ad").value=d;}function updateActiveAd(a){var b=getLargeImageNames();var c=getImageLinks();window.document.getElementById("active_image").src="rotation/"+b[a];window.document.getElementById("active_ad_link").href=c[a];window.document.getElementById("current_ad").value=a;}function check_update(a){var b=window.document.getElementById("first_ad").value;var c=getMaxAds();adNum=b;for(i=0;i<c;i++){if(a==adNum){updateAds=false;i=c;}else{updateAds=true;adNum=(+adNum+1);if(adNum>c){adNum=0;}}}return(updateAds);}
