function changeSize(id,gen){if(id!=0)
window.location="productlist.asp?ptclass=clear&gen="+gen+"&attribute_value_string|AgeGroupID=1&attribute_value_string|Shop%20Clearance=Yes&attribute_value_string|Shoe%20Size="+id+"&sort_option=Popularity";}
function changeSaleClearSize(id,gen){if(id!=0)
window.location="synopsispage.asp?type=sale&saleid=3&gen="+gen+"&sortscsize="+id;}
function o(u,n,w,h){var lpos=(screen.width)?(screen.width-w)/2:0;var tpos=(screen.height)?(screen.height-h)/2:0;settings='height='+h+',width='+w+',top='+tpos+',left='+lpos+',alwaysRaised=yes,toolbar=0,directories=0,menubar=0,status=1,resizable=yes,location=0,scrollbars=1,copyhistory=0'
if(typeof(popupWin)!="object")
popupWin=window.open(u,n,settings)
else{if(!popupWin.closed)
popupWin.location.href=u;else
popupWin=window.open(u,n,settings);}
popupWin.focus();}
function scrollWindow(url,help){if(typeof(popupWin)!="object")
popupWin=window.open(url,help,"width=450,height=390,top=50,left=50,alwaysRaised=yes,toolbar=0,directories=0,menubar=0,status=1,resizable=no,location=0,scrollbars=1,copyhistory=0");else{if(!popupWin.closed)
popupWin.location.href=url;else
popupWin=window.open(url,help,"width=450,height=390,top=50,left=50,alwaysRaised=yes,toolbar=0,directories=0,menubar=0,status=1,resizable=no,location=0,scrollbars=1,copyhistory=0");}
popupWin.focus();}
function tmtLinks(){};tmtLinks.prototype.allowClose=false;tmtLinks.prototype.showLinks=function(){this.allowClose=false;document.getElementById('takemetocontent').style.visibility="visible";}
tmtLinks.prototype.tmtOff=function(){if(this.allowClose==true){document.getElementById('takemetocontent').style.visibility="hidden";}}
tmtLinks.prototype.hideLinks=function(){this.allowClose=true;setTimeout("tmtLinks.prototype.tmtOff()",500);}
function toggleThumbPanel(linkType){var thumbPanelOn,thumbPanelOff;switch(linkType.toLowerCase()){case"nextlink":thumbPanelOn=document.getElementById("tp2");thumbPanelOff=document.getElementById("tp1");thumbPanelOn.style.display="block";thumbPanelOff.style.display="none";break;case"prevlink":thumbPanelOn=document.getElementById("tp1");thumbPanelOff=document.getElementById("tp2");thumbPanelOn.style.display="block";thumbPanelOff.style.display="none";break;default:break;}}
function toggleTab(target){var tabmenu=document.getElementById('tabmenu');var tabpanel;if(tabmenu){var tabitems=tabmenu.getElementsByTagName("li");for(var i=0;i<tabitems.length;i++){tabpanel=document.getElementById(tabitems[i].id.substring(1));if(tabitems[i].id==target){tabitems[i].className="youarehere";if(tabpanel){tabpanel.style.display="block";}}
else{tabitems[i].className="youarenothere";if(tabpanel){tabpanel.style.display="none";}}}}}
function getTabPos(tabid){toggleTab(tabid);var target=document.getElementById(tabid)
if(target){window.scrollTo(0,findPos(target)-20);}}
function findPos(obj){var curtop=0;if(obj.offsetParent){curtop=obj.offsetTop
while(obj=obj.offsetParent){curtop+=obj.offsetTop}}
return[curtop];}