WindowToOpenIn = "parent"
contentwithdiv = '<div id="left"><p class="top"><span id="Tool"></span></p></div><div id="bkgrnd" style="opacity: 0.7; filter: alpha(opacity = 70); zoom: 1;"><img scr="fillcolor.gif" height="1500" width="1" /></div>'
renewcode1 = 'RenewContent("MySize",contentwithdiv);'
renewcode2 = "RenewContent('MySize',contentwithdiv);"
ShoppingCartStep = ""
var a0 = "0"
var a1 = "1"
var a2 = "2"
var a3 = "3"
var a4 = "4"
var a5 = "5"
var a6 = "6"
var a7 = "7"
var a8 = "8"
var a9 = "9"
var a10 = "10"
var a11 = "11"
var a12 = "12"
var a13 = "13"
var a14 = "14"
var a15 = "15"

var numberofsizes = 0
function changesz(selObj){
  	var order = (parseFloat(selObj.selectedIndex)+1).toString();
	var xr=1
	if (document.all){ // IE
		for (xr=1;xr<=numberofsizes;xr++){
			document.all("sizelist" + xr.toString()).style.display = "none";
		}
		document.all("sizelist"+order).style.display = "block";
	}else if (document.getElementById){ // Everyone Else
		for (xr=1;xr<=numberofsizes;xr++){
			document.getElementById("sizelist" + xr.toString()).style.display = "none";
		}
		document.getElementById("sizelist"+order).style.display = "block";
	}
}
function changesz2(selObj2){
  	var order2 = selObj2;
	var xr2=1
	if (document.all){ // IE
		for (xr2=1;xr2<=numberofsizes;xr2++){
			document.all("sizelist" + xr2.toString()).style.display = "none";
		}
		document.all("sizelist"+order2).style.display = "block";
	}else if (document.getElementById){ // Everyone Else
		for (xr2=1;xr2<=numberofsizes;xr2++){
			document.getElementById("sizelist" + xr2.toString()).style.display = "none";
		}
		document.getElementById("sizelist"+order2).style.display = "block";
	}
}

function clicker(queryadd){
if (sm != undefined){
window.location = window.location.href + queryadd
}
}


function AddToCartForm_Validator(theForm){return (true);}

function ShowDescription() {
	if (document.all){ // IE
		document.all('MiniDescription').style.display = "block";
		document.all('MiniReviews').style.display = "none";
		document.all('MiniPayment').style.display = "none";
		document.all('MiniShipping').style.display = "none";
		document.all('MiniMenu1a').style.display = "none";
		document.all('MiniMenu1b').style.display = "block";
		document.all('MiniMenu2a').style.display = "block";
		document.all('MiniMenu2b').style.display = "none";
		document.all('MiniMenu3a').style.display = "block";
		document.all('MiniMenu3b').style.display = "none";
		document.all('MiniMenu4a').style.display = "block";
		document.all('MiniMenu4b').style.display = "none";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('MiniDescription').style.display = "block";
		document.getElementById('MiniReviews').style.display = "none";
		document.getElementById('MiniPayment').style.display = "none";
		document.getElementById('MiniShipping').style.display = "none";
		document.getElementById('MiniMenu1a').style.display = "none";
		document.getElementById('MiniMenu1b').style.display = "block";
		document.getElementById('MiniMenu2a').style.display = "block";
		document.getElementById('MiniMenu2b').style.display = "none";
		document.getElementById('MiniMenu3a').style.display = "block";
		document.getElementById('MiniMenu3b').style.display = "none";
		document.getElementById('MiniMenu4a').style.display = "block";
		document.getElementById('MiniMenu4b').style.display = "none";
	}
}
function ShowReviews() {
	if (document.all){ // IE
		document.all('MiniDescription').style.display = "none";
		
		document.all('MiniReviews').style.display = "block";
		document.all('MiniPayment').style.display = "none";
		document.all('MiniShipping').style.display = "none";
		document.all('MiniMenu1a').style.display = "block";
		document.all('MiniMenu1b').style.display = "none";
		document.all('MiniMenu2a').style.display = "none";
		document.all('MiniMenu2b').style.display = "block";
		document.all('MiniMenu3a').style.display = "block";
		document.all('MiniMenu3b').style.display = "none";
		document.all('MiniMenu4a').style.display = "block";
		document.all('MiniMenu4b').style.display = "none";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('MiniDescription').style.display = "none";
		document.getElementById('MiniReviews').style.display = "block";
		document.getElementById('MiniPayment').style.display = "none";
		document.getElementById('MiniShipping').style.display = "none";
		document.getElementById('MiniMenu1a').style.display = "block";
		document.getElementById('MiniMenu1b').style.display = "none";
		document.getElementById('MiniMenu2a').style.display = "none";
		document.getElementById('MiniMenu2b').style.display = "block";
		document.getElementById('MiniMenu3a').style.display = "block";
		document.getElementById('MiniMenu3b').style.display = "none";
		document.getElementById('MiniMenu4a').style.display = "block";
		document.getElementById('MiniMenu4b').style.display = "none";
	}
}
function ShowPayment() {
	if (document.all){ // IE
		document.all('MiniDescription').style.display = "none";
		document.all('MiniReviews').style.display = "none";
		document.all('MiniPayment').style.display = "block";
		document.all('MiniShipping').style.display = "none";
		document.all('MiniMenu1a').style.display = "block";
		document.all('MiniMenu1b').style.display = "none";
		document.all('MiniMenu2a').style.display = "block";
		document.all('MiniMenu2b').style.display = "none";
		document.all('MiniMenu3a').style.display = "none";
		document.all('MiniMenu3b').style.display = "block";
		document.all('MiniMenu4a').style.display = "block";
		document.all('MiniMenu4b').style.display = "none";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('MiniDescription').style.display = "none";
		document.getElementById('MiniReviews').style.display = "none";
		document.getElementById('MiniPayment').style.display = "block";
		document.getElementById('MiniShipping').style.display = "none";
		document.getElementById('MiniMenu1a').style.display = "block";
		document.getElementById('MiniMenu1b').style.display = "none";
		document.getElementById('MiniMenu2a').style.display = "block";
		document.getElementById('MiniMenu2b').style.display = "none";
		document.getElementById('MiniMenu3a').style.display = "none";
		document.getElementById('MiniMenu3b').style.display = "block";
		document.getElementById('MiniMenu4a').style.display = "block";
		document.getElementById('MiniMenu4b').style.display = "none";
	}
}
function ShowShipping() {
	if (document.all){ // IE
		document.all('MiniDescription').style.display = "none";
		document.all('MiniReviews').style.display = "none";
		document.all('MiniPayment').style.display = "none";
		document.all('MiniShipping').style.display = "block";
		document.all('MiniMenu1a').style.display = "block";
		document.all('MiniMenu1b').style.display = "none";
		document.all('MiniMenu2a').style.display = "block";
		document.all('MiniMenu2b').style.display = "none";
		document.all('MiniMenu3a').style.display = "block";
		document.all('MiniMenu3b').style.display = "none";
		document.all('MiniMenu4a').style.display = "none";
		document.all('MiniMenu4b').style.display = "block";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('MiniDescription').style.display = "none";
		document.getElementById('MiniReviews').style.display = "none";
		document.getElementById('MiniPayment').style.display = "none";
		document.getElementById('MiniShipping').style.display = "block";
		document.getElementById('MiniMenu1a').style.display = "block";
		document.getElementById('MiniMenu1b').style.display = "none";
		document.getElementById('MiniMenu2a').style.display = "block";
		document.getElementById('MiniMenu2b').style.display = "none";
		document.getElementById('MiniMenu3a').style.display = "block";
		document.getElementById('MiniMenu3b').style.display = "none";
		document.getElementById('MiniMenu4a').style.display = "none";
		document.getElementById('MiniMenu4b').style.display = "block";
	}
}

function hidehero() {
	if (document.all){ // IE
		document.all('hero').style.display = "none";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('hero').style.display = "none";
	}
}
function showhero() {
	if (document.all){ // IE
		document.all('hero').style.display = "block";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('hero').style.display = "block";
	}
}

function hideheader() {
	if (document.all){ // IE
		document.all('header').style.display = "none";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('header').style.display = "none";
	}
}
function showheader() {
	if (document.all){ // IE
		document.all('header').style.display = "block";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('header').style.display = "block";
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




// Gets "sizes" query from URL if its there and sets them to "smarray[x]"
// If there is no "sizes" query in the URL it sets "smarray[x]" to All
function querySt(ji) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == ji) {
return ft[1];}}}
var page = querySt("page");
var sm = querySt("sizes");
var ShoeSize = "All"
var ShirtSize = "All"
var PantSize = "All"
var HatSize = "All"
var Gender = 'mens'
var Range = '1'
if (sm != undefined){
	smSplit = sm.split("-");
	ShoeSize = smSplit[0]
	ShirtSize = smSplit[1]
	PantSize = smSplit[2]
	HatSize = smSplit[3]
	Gender = smSplit[4]
	Range = smSplit[5]
}
var smarray=new Array()
smarray[0] = ShoeSize  
smarray[1] = ShirtSize
smarray[2] = PantSize
smarray[3] = HatSize
smarray[4] = Gender
smarray[5] = Range
smarray[6] = ''
	

	
var SizeLinkString = ""
var selectedsize = ""
var pic1 = "a"
var pic2 = "b"
SizeSwapCode=new Array()
SizeJavaCode=new Array()
SizeJavaLink=new Array()
function GetSizeInfo(Change){
	SizeArray = []
	SizeJavaCode=[]
	SizeSwapCode=[]
	SizeJavaLink=[]
	if (Change == 0){
		if (Gender == "mens"){
		SizeArray = ["5","5^5","6","6^5","7","7^5","8","8^5","9","9^5","10","10^5","11","11^5","12","12^5","13","13^5","14","14^5","15","15^5","16","17","18","19","All"]
		selectedsize = smarray[0]
}
		if (Gender == "womens"){
		SizeArray = ["4","4^5","5","5^5","6","6^5","7","7^5","8","8^5","9","9^5","10","10^5","11","11^5","12","12^5","13","13^5","14","All"]
		selectedsize = smarray[0]
		}
	}
	if (Change == 1){
		if (Gender == "mens"){
		SizeArray = ["S","M","L","XL","2XL","3XL","4XL","5XL","All"]
		selectedsize = smarray[1]
		}
		if (Gender == "womens"){
		SizeArray = ["XS","S","SM","M","ML","L","XL","2XL","All"]
		selectedsize = smarray[1]
		}
	}
	if (Change == 2){
		if (Gender == "mens"){
		SizeArray = ["S","M","L","XL","2XL","All"]
		selectedsize = smarray[2]
		}
		if (Gender == "womens"){
		SizeArray = ["XS","S","SM","M","ML","L","LXL","XL","All"]
		selectedsize = smarray[2]
		}
	}
	if (Change == 3){
		SizeArray = ["6^1^2","6^5^8","6^3^4","6^7^8","7","7^1^8","7^1^4","7^3^8","7^1^2","7^5^8","7^3^4","7^7^8","8","All"]
		selectedsize = smarray[3]
	}
	SizeLinkString = "<br/>"
	for (i = 0; i < SizeArray.length; i++){
		if (SizeArray[i] == selectedsize){
			pic1 = "b"
		}
	SizeImageName = Change.toString() + Gender + SizeArray[i]
	SizeJavaCode[i] ="javascript:ChangeSize('MySize',"+Change+",'"+SizeArray[i]+"');"
	SizeSwapCode[i] ="MM_swapImage('"+SizeImageName+"','','skins/Skin_1/customimages/mysizeimages/"+SizeArray[i]+pic2+".jpg',1)"
	SizeJavaLink[i] = '<a href="' + SizeJavaCode[i] + '"onmouseout="MM_swapImgRestore()" onmouseover="'+SizeSwapCode[i]+'"><img src="skins/Skin_1/customimages/mysizeimages/'+SizeArray[i]+pic1+'.jpg" alt="'+SizeArray[i]+'" name="'+SizeImageName+'" width="50" height="50" border="0" id="'+SizeImageName+'" /></a>'
	if (i==10){
	SizeLinkString = SizeLinkString + "<br/>"
	}
	if (i==20){
	SizeLinkString = SizeLinkString + "<br/>"
	}
	SizeLinkString = SizeLinkString + SizeJavaLink[i]
			pic1 = "a"
	}
}


var ShowInternational = 0
function ChangeInternational(){
	if (ShowInternational == 0){
		ShowInternational = 1
	}else{
		ShowInternational = 0
	}
}


function ChangeSize(elementid,Change,Changeto){
	if (Change != 0){
		ShoeTabCode = "javascript:ChangeSize('MySize',0,'" + smarray[0] + "');"
		ShoeTabLink = 'onclick="' + ShoeTabCode + '" style="cursor:pointer"'
	}else{
		ShoeTabLink= ""
		BackCode = "javascript:"+renewcode2+";OpenMySize();"
		BackButton = '<a href="' + BackCode + '"><img src="skins/Skin_1/customimages/mysizeimages/back.jpg" width="37" height="20" border="0"/></a>'
		NextCode = "javascript:ChangeSize('MySize',1,'"+smarray[1]+"');"
		NextButton = '<a href="' + NextCode + '"><img src="skins/Skin_1/customimages/mysizeimages/next.jpg" width="33" height="20" border="0"/></a>'
		CurrentTab = "shoetab"
		ShowHideCode = "javascript:ChangeInternational();ChangeSize('MySize',0,'" + smarray[0] + "');"
		ShowHideLink = 'href="' + ShowHideCode + '" style="cursor:pointer"'
		if (Gender == "mens"){
			if (ShowInternational == 0){
			GridImage = "<a "+ShowHideLink+" ><img src='skins/Skin_1/customimages/mysizeimages/open.jpg' border='0'/></a></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/internationalmens1.jpg' /></td></tr><tr><td>"
			}
			if (ShowInternational == 1){
			GridImage = "<a "+ShowHideLink+" ><img src='skins/Skin_1/customimages/mysizeimages/hide.jpg' border='0'/></a></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/internationalmens1.jpg' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/internationalmens2.jpg' />"
			}
		}
		if (Gender == "womens"){
			if (ShowInternational == 0){
			GridImage = "<a "+ShowHideLink+" ><img src='skins/Skin_1/customimages/mysizeimages/open.jpg' border='0'/></a></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/internationalwomens1.jpg' /></td></tr><tr><td>"
			}
			if (ShowInternational == 1){
			GridImage = "<a "+ShowHideLink+" ><img src='skins/Skin_1/customimages/mysizeimages/hide.jpg' border='0'/></a></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/internationalwomens1.jpg' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/internationalwomens2.jpg' />"
			}	
		}
	MM_preloadImages("skins/Skin_1/customimages/mysizeimages/completed.jpg","skins/Skin_1/customimages/mysizeimages/reviewbg.jpg","skins/Skin_1/customimages/mysizeimages/saveandclose3.jpg","skins/Skin_1/customimages/mysizeimages/shirttab.jpg","skins/Skin_1/customimages/mysizeimages/panttab.jpg","skins/Skin_1/customimages/mysizeimages/hattab.jpg","skins/Skin_1/customimages/mysizeimages/XSa.jpg","skins/Skin_1/customimages/mysizeimages/Sa.jpg","skins/Skin_1/customimages/mysizeimages/SMa.jpg","skins/Skin_1/customimages/mysizeimages/Ma.jpg","skins/Skin_1/customimages/mysizeimages/MLa.jpg","skins/Skin_1/customimages/mysizeimages/La.jpg","skins/Skin_1/customimages/mysizeimages/LXLa.jpg","skins/Skin_1/customimages/mysizeimages/XLa.jpg","skins/Skin_1/customimages/mysizeimages/2XLa.jpg","skins/Skin_1/customimages/mysizeimages/3XLa.jpg","skins/Skin_1/customimages/mysizeimages/4XLa.jpg","skins/Skin_1/customimages/mysizeimages/5XLa.jpg","skins/Skin_1/customimages/mysizeimages/6^1^2a.jpg","skins/Skin_1/customimages/mysizeimages/6^5^8a.jpg","skins/Skin_1/customimages/mysizeimages/6^3^4a.jpg","skins/Skin_1/customimages/mysizeimages/6^7^8a.jpg","skins/Skin_1/customimages/mysizeimages/7^1^8a.jpg","skins/Skin_1/customimages/mysizeimages/7^1^4a.jpg","skins/Skin_1/customimages/mysizeimages/7^3^8a.jpg","skins/Skin_1/customimages/mysizeimages/7^1^2a.jpg","skins/Skin_1/customimages/mysizeimages/7^5^8a.jpg","skins/Skin_1/customimages/mysizeimages/7^3^4a.jpg","skins/Skin_1/customimages/mysizeimages/7^7^8a.jpg")

	}
	if (Change != 1){
	ShirtTabCode = "javascript:ChangeSize('MySize',1,'" + smarray[1] + "');"
	ShirtTabLink = 'onclick="' + ShirtTabCode + '" style="cursor:pointer"'
	}else{
	ShirtTabLink= ""
	BackCode = "javascript:ChangeSize('MySize',0,'"+smarray[0]+"');"
	BackButton = '<a href="' + BackCode + '"><img src="skins/Skin_1/customimages/mysizeimages/back.jpg" width="37" height="20" border="0"/></a>'
	NextCode = "javascript:ChangeSize('MySize',2,'"+smarray[2]+"');"
	NextButton = '<a href="' + NextCode + '"><img src="skins/Skin_1/customimages/mysizeimages/next.jpg" width="33" height="20" border="0"/></a>'
	CurrentTab = "shirttab"
	if (Gender == "mens"){
	GridImage = ""
	}
	if (Gender == "womens"){
	GridImage = "<img src='skins/Skin_1/customimages/mysizeimages/womensshirtchart.jpg' />"
	}
	}
	if (Change != 2){
	PantTabCode = "javascript:ChangeSize('MySize',2,'" + smarray[2] + "');"
	PantTabLink = 'onclick="' + PantTabCode + '" style="cursor:pointer"'
	}else{
	PantTabLink= ""
	BackCode = "javascript:ChangeSize('MySize',1,'"+smarray[1]+"');"
	BackButton = '<a href="' + BackCode + '"><img src="skins/Skin_1/customimages/mysizeimages/back.jpg" width="37" height="20" border="0"/></a>'
	NextCode = "javascript:ChangeSize('MySize',3,'"+smarray[3]+"');"
	NextButton = '<a href="' + NextCode + '"><img src="skins/Skin_1/customimages/mysizeimages/next.jpg" width="33" height="20" border="0"/></a>'
	CurrentTab = "panttab"
	if (Gender == "mens"){
	GridImage = "<img src='skins/Skin_1/customimages/mysizeimages/mensbottomchart.jpg' />"
	}
	if (Gender == "womens"){
	GridImage = "<img src='skins/Skin_1/customimages/mysizeimages/womensbottomchart.jpg' />"
	}
	}
	if (Change != 3){
	HatTabCode = "javascript:ChangeSize('MySize',3,'" + smarray[3] + "');"
	HatTabLink = 'onclick="' + HatTabCode + '" style="cursor:pointer"'
	}else{
	HatTabLink= ""
	BackCode = "javascript:ChangeSize('MySize',2,'"+smarray[2]+"');"
	BackButton = '<a href="' + BackCode + '"><img src="skins/Skin_1/customimages/mysizeimages/back.jpg" width="37" height="20" border="0"/></a>'
	NextCode = "javascript:"+renewcode2+"Save();"
	NextButton = '<a href="' + NextCode + '"><img src="skins/Skin_1/customimages/mysizeimages/next.jpg" width="33" height="20" border="0"/></a>'
	CurrentTab = "hattab"
	GridImage = ""
	}
	HomeSwap = "MM_swapImage('HomeImage1','','skins/Skin_1/customimages/mysizeimages/home2.jpg',1)"
	HomeButton = '<a href="javascript:'+renewcode2+'OpenMySize();" onmouseout="MM_swapImgRestore()" onmouseover="'+HomeSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/home1.jpg" name="HomeImage1" width="34" height="44" border="0" id="HomeImage1" /></a>'
	SaveSwap = "MM_swapImage('SaveandCloseImage','','skins/Skin_1/customimages/mysizeimages/save2.jpg',1)"
	SaveButton = '<a href="javascript:'+renewcode2+'Save();" onmouseout="MM_swapImgRestore()" onmouseover="'+SaveSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/save1.jpg" name="SaveandCloseImage" width="101" height="44" border="0" id="SaveandCloseImage" /></a>'
	ExitSwap = "MM_swapImage('ExitImage1','','skins/Skin_1/customimages/mysizeimages/close2.jpg',1)"
	ExitCode = "javascript:RenewContent('MySize',''); showheader(); showhero(); ShowPageResults();"
	ExitButton =  '<a href="' + ExitCode + '" onmouseout="MM_swapImgRestore()" onmouseover="'+ExitSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/close1.jpg" name="ExitImage1" border="0" id="ExitImage1" /></a>'
	SizeButton = '<a href="' + NextCode + '">Sizes</a>'
	
	smarray[Change]=Changeto
	GetSizeInfo(Change)
	SizesHeader = "<table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td background='skins/Skin_1/customimages/mysizeimages/background.jpg' height='97' valign='top'><table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td><table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td width='40'>&nbsp;</td><td valign='top'>      "+HomeButton+"     </td><td width='30'>&nbsp;</td><td valign='top'><img src='skins/Skin_1/customimages/mysizeimages/headerline.gif' /></td><td width='30'>&nbsp;</td><td valign='top'><img src='skins/Skin_1/customimages/mysizeimages/sizes2.jpg' name='SizesImage' width='34' height='44' border='0' id='SizesImage' /></td><td width='30'>&nbsp;</td><td valign='top'><img src='skins/Skin_1/customimages/mysizeimages/headerline.gif' /></td><td width='250'>&nbsp;</td><td valign='top'>"+SaveButton+"</td><td valign='top'>"+ExitButton+"</td><td width='40'>&nbsp;</td></tr></table></td></tr><tr><td>&nbsp;</td></tr></table></td></tr></table>"
	SizesContent1 = "<table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td><table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td width='85' align='right'>     "+BackButton+"     </td><td>&nbsp;</td><td width='80' align='left'>     "+NextButton+"     </td></tr></table></td></tr><tr><td align='center'> "
	SizesContent2 = "<span id='Tabs'><table width='500' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/mysizeimages/leftoftabs.jpg' width='61' height='42'/></td><td background='skins/Skin_1/customimages/mysizeimages/"+CurrentTab+".jpg' width='378' ><table width='378' height='42' border='0' cellspacing='0' cellpadding='0'><tr><td width='75' align='right' class='TDbottom' "+ShoeTabLink+" valign='bottom' align='right'><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='17' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/" + smarray[0] + ".gif' /></td></tr></table></td><td width='85'  valign='bottom' align='right' class='TDbottom' "+ShirtTabLink+" ><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='17' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/" + smarray[1] + ".gif' /></td></tr></table></td><td width='85' valign='bottom' align='right' class='TDbottom' "+PantTabLink+"><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='17' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/" + smarray[2] + ".gif' /></td></tr></table></td><td width='85' valign='bottom' align='right' class='TDbottom' "+HatTabLink+"><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='17' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/" + smarray[3] + ".gif' /></td></tr></table></td></tr></table></td><td><img src='skins/Skin_1/customimages/mysizeimages/rightoftabs.jpg'/></td></tr></table></span>"
	SizesContent3 = "</td></tr><tr><td align='center'><table width='525'><tr><td width='10'>&nbsp;</td><td>"+SizeLinkString+"</td></tr></table></td></tr><tr><td align='center'><table width='500' border='0' cellspacing='0' cellpadding='0'><tr><td align='right'>"+GridImage+"</td></tr></table></td></tr></table>"

	NewSizeContent = "<span id='Body2'>" + SizesHeader + SizesContent1 + SizesContent2 + SizesContent3 + "</span>"
	contentwithborder = '<table width="100%"><tr><td align="center"><table width="590" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"><tr><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif"/></td><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif" height="1" width="592"/></td><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif"/></td></tr><tr><td  bgcolor="#FFFFFF"><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif" height="400" width="1"/></td><td valign="top">'
	contentwithborder =  contentwithborder + NewSizeContent
	contentwithborder =  contentwithborder + '</td><td bgcolor="#FFFFFF"><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif" height="400" width="1"/></td></tr><tr><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif"/></td><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif" height="1" width="592"/></td><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif"/></td></tr></table></td></tr></table>'
	RenewContent("Tool",contentwithborder)
	
}

function HomeUpdate(Change1,Change2){
smarray[0] = Change1 
smarray[4] = Change2 
smarray[5] = "0&PT=footwear&PG="+Change2  
Gender=Change2
Range="0&PT=footwear&PG="+Change2
}
function HomeChange(Change1,Change2){
smarray[0] = Change1
smarray[1] = "All"
smarray[2] = "All"
smarray[3] = "All"
smarray[4] = Change2 
smarray[5] = "0&PT=footwear&PG="+Change2 
Gender=Change2
Range="0&PT=footwear&PG="+Change2
}

function ChangeGender(Change){
smarray[0] = "All"  
smarray[1] = "All"
smarray[2] = "All"
smarray[3] = "All"
Gender = Change
OpenMySize()
}
function ChangeRange(Change){
Range = Change
OpenMySize()
}
function callsave(){
if (sm != undefined){
postnewurl = window.location.href.replace(sm,smarray[0]+"-"+smarray[1]+"-"+smarray[2]+"-"+smarray[3]+"-"+Gender+"-"+Range)
postnewurl = postnewurl.replace("aspx&", "aspx?")
postnewurl = postnewurl.replace("html&", "html?")
postnewurl = postnewurl.replace("?&", "?")
postnewurl = postnewurl.replace("? ", "default.aspx?")
postnewurl = postnewurl.replace("/&", "/default.aspx?")
postnewurl = postnewurl.replace("/&", "/default.aspx?")
postnewurl = postnewurl.replace("page="+String(page), "page=1")
window.location = postnewurl
}else{
postnewurl =  window.location.href+"&sizes="+smarray[0]+"-"+smarray[1]+"-"+smarray[2]+"-"+smarray[3]+"-"+Gender+"-"+Range
postnewurl = postnewurl.replace("aspx&", "aspx?")
postnewurl = postnewurl.replace("html&", "html?")
postnewurl = postnewurl.replace("?&", "?")
postnewurl = postnewurl.replace("? ", "/default.aspx?")
postnewurl = postnewurl.replace("/&", "/default.aspx?")
postnewurl = postnewurl.replace("page="+String(page), "page=1")
window.location = postnewurl
}	
}

function Save(){
	HomeSwap = "MM_swapImage('HomeImage1','','skins/Skin_1/customimages/mysizeimages/home2.jpg',1)"
	HomeButton = '<a href="javascript:'+renewcode2+'OpenMySize();" onmouseout="MM_swapImgRestore()" onmouseover="'+HomeSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/home1.jpg" name="HomeImage1" width="34" height="44" border="0" id="HomeImage1" /></a>'
	SizeSwap = "MM_swapImage('SizesImage','','skins/Skin_1/customimages/mysizeimages/sizes2.jpg',1)"
	SizesCode = "javascript:ChangeSize('MySize',0,'"+smarray[0]+"');"
	SizeButton = '<a href="' + SizesCode + '" onmouseout="MM_swapImgRestore()" onmouseover="'+SizeSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/sizes1.jpg" name="SizesImage" width="34" height="44" border="0" id="SizesImage" /></a>'
	ExitSwap = "MM_swapImage('ExitImage1','','skins/Skin_1/customimages/mysizeimages/close2.jpg',1)"
	ExitCode = "javascript:RenewContent('MySize',''); showheader(); showhero(); ShowPageResults();"
	ExitButton =  '<a href="' + ExitCode + '" onmouseout="MM_swapImgRestore()" onmouseover="'+ExitSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/close1.jpg" name="ExitImage1" border="0" id="ExitImage1" /></a>'
	SaveCode = "javascript:RenewContent('MySize','');ShowPageResults();"
	contentwithborder =  "<table width='100%'><tr><td align='center'><table width='590' border='0' cellspacing='0' cellpadding='0' bgcolor='#FFFFFF'><tr><td><img src='skins/Skin_1/customimages/mysizeimages/mysizeborder.gif'/></td><td><img src='skins/Skin_1/customimages/mysizeimages/mysizeborder.gif' height='1' width='592'/></td><td><img src='skins/Skin_1/customimages/mysizeimages/mysizeborder.gif'/></td></tr><tr><td bgcolor='#FFFFFF'><img src='skins/Skin_1/customimages/mysizeimages/mysizeborder.gif' height='400' width='1'/></td><td valign='top'><span id='Body2'><table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td background='skins/Skin_1/customimages/mysizeimages/background.jpg' height='97' valign='top'><table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td><table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td width='40'>&nbsp;</td><td valign='top'>      "+HomeButton+"     </td><td width='30'>&nbsp;</td><td valign='top'><img src='skins/Skin_1/customimages/mysizeimages/headerline.gif' /></td><td width='30'>&nbsp;</td><td valign='top'>     "+SizeButton+"     </td><td width='30'>&nbsp;</td><td valign='top'><img src='skins/Skin_1/customimages/mysizeimages/headerline.gif' /></td><td width='250'>&nbsp;</td><td valign='top'><img src='skins/Skin_1/customimages/mysizeimages/save3.jpg' name='SaveandCloseImage' width='101' height='44' border='0' id='SaveandCloseImage' /></td><td valign='top'>"+ExitButton+"</td><td width='40'>&nbsp;</td></tr></table></td></tr><tr><td>&nbsp;</td></tr></table></td></tr></table> <br/><table width='590' ><tr><td align='center'><table width='491'><tr><td></td></tr><tr><td><table><tr><td width='100%' align='left'><img src='skins/Skin_1/customimages/mysizeimages/completed.jpg' border='0'/></td><td valign='bottom'><a href='javascript:"+renewcode1+"callsave()'><img src='skins/Skin_1/customimages/mysizeimages/saveandclose3.jpg' border='0'/></a></td></tr></table></td></tr><tr><td align='center' background='skins/Skin_1/customimages/mysizeimages/reviewbg.jpg' height='76' valign'bottom'><table width='491' height='76' valign='bottom'><tr><td  height='70' valign='bottom' align='center' width='82' class='TDbottom'><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='45' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/"+Gender+".gif' border='0'/></td></tr></table></td><td valign='bottom'align='center' width='82' class='TDbottom'><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='45' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/fit"+Range+".gif' border='0'/></td></tr></table></td><td valign='bottom'align='center' width='82' class='TDbottom'><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='45' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[0]+".gif' border='0'/></td></tr></table></td><td valign='bottom'align='center' width='82' class='TDbottom'><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='45' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[1]+".gif' border='0'/></td></tr></table></td><td valign='bottom'align='center' width='82' class='TDbottom'><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='45' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[2]+".gif' border='0'/></td></tr></table></td><td valign='bottom'align='center' width='82' class='TDbottom'><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/clear.gif' width='20' height='45' /></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[3]+".gif' border='0'/></td></tr></table></td></tr></table></td></tr></table></td></tr></table></span></td><td  bgcolor='#FFFFFF'><img src='skins/Skin_1/customimages/mysizeimages/mysizeborder.gif' height='400' width='1'/></td></tr><tr><td><img src='skins/Skin_1/customimages/mysizeimages/mysizeborder.gif'/></td><td><img src='skins/Skin_1/customimages/mysizeimages/mysizeborder.gif' height='1' width='592'/></td><td><img src='skins/Skin_1/customimages/mysizeimages/mysizeborder.gif'/></td></tr></table></td></tr></table>"
	RenewContent("Tool",contentwithborder)
}
function OpenMySize(){
	SaveSwap = "MM_swapImage('SaveandCloseImage','','skins/Skin_1/customimages/mysizeimages/save2.jpg',1)"
	SaveButton = '<a href="javascript:'+renewcode2+'Save();" onmouseout="MM_swapImgRestore()" onmouseover="'+SaveSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/save1.jpg" name="SaveandCloseImage" width="101" height="44" border="0" id="SaveandCloseImage" /></a>'
	NextCode = "javascript:ChangeSize('MySize',0,'"+smarray[0]+"');"
	NextButton = '<a href="' + NextCode + '"><img src="skins/Skin_1/customimages/mysizeimages/next.jpg" width="33" height="20" border="0" /></a>'
	SizeSwap = "MM_swapImage('SizesImage','','skins/Skin_1/customimages/mysizeimages/sizes2.jpg',1)"
	SizeButton = '<a href="' + NextCode + '" onmouseout="MM_swapImgRestore()" onmouseover="'+SizeSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/sizes1.jpg" name="SizesImage" width="34" height="44" border="0" id="SizesImage" /></a>'
	ExitSwap = "MM_swapImage('ExitImage1','','skins/Skin_1/customimages/mysizeimages/close2.jpg',1)"
	ExitCode = "javascript:RenewContent('MySize',''); showhero(); showheader(); ShowPageResults();"
	ExitButton =  '<a href="' + ExitCode + '" onmouseout="MM_swapImgRestore()" onmouseover="'+ExitSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/close1.jpg" name="ExitImage1" border="0" id="ExitImage1" /></a>'
	if (Gender != 'mens'){
	ManSwap = "MM_swapImage('mensimage','','skins/Skin_1/customimages/mysizeimages/mansizes3.jpg',1)"
	ManCode = "javascript:ChangeGender('mens');"
	ManButton = '<a href="' + ManCode + '" onmouseout="MM_swapImgRestore()" onmouseover="'+ManSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/mansizes1.jpg" name="mensimage" width="229" height="94" border="0" id="mensimage" /></a>'
	}else{ManButton= "<img src='skins/Skin_1/customimages/mysizeimages/mansizes2.jpg' border='0' />"}
	if (Gender != 'womens'){
	WomenSwap = "MM_swapImage('womensimage','','skins/Skin_1/customimages/mysizeimages/womansizes3.jpg',1)"
	WomanCode = "javascript:ChangeGender('womens');"
	WomanButton = '<a href="' + WomanCode + '" onmouseout="MM_swapImgRestore()" onmouseover="'+WomenSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/womansizes1.jpg" name="womensimage" width="229" height="83" border="0" id="womensimage" /></a>'
	}else{WomanButton= "<img src='skins/Skin_1/customimages/mysizeimages/womansizes2.jpg' border='0' />"}
	if (Range != '1'){
	CloseSwap = "MM_swapImage('closefitimage','','skins/Skin_1/customimages/mysizeimages/closefit3.jpg',1)"
	CloseCode = "javascript:ChangeRange('1');"
	CloseButton = '<a href="' + CloseCode + '" onmouseout="MM_swapImgRestore()" onmouseover="'+CloseSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/closefit1.jpg" name="closefitimage" width="229" height="94" border="0" id="closefitimage" /></a>'
	}else{CloseButton= "<img src='skins/Skin_1/customimages/mysizeimages/closefit2.jpg' border='0' />"}
	if (Range != '0'){
	ExactSwap = "MM_swapImage('exactfitimage','','skins/Skin_1/customimages/mysizeimages/exactfit3.jpg',1)"
	ExactCode = "javascript:ChangeRange('0');"
	ExactButton = '<a href="' + ExactCode + '" onmouseout="MM_swapImgRestore()" onmouseover="'+ExactSwap+'"><img src="skins/Skin_1/customimages/mysizeimages/exactfit1.jpg" name="exactfitimage" width="229" height="83" border="0" id="exactfitimage" /></a>'
	}else{ExactButton= "<img src='skins/Skin_1/customimages/mysizeimages/exactfit2.jpg' border='0' />"}
	HomeHeader =	"<table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td background='skins/Skin_1/customimages/mysizeimages/background.jpg' height='97' valign='top'><table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td><table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td width='40'>&nbsp;</td><td valign='top'><img src='skins/Skin_1/customimages/mysizeimages/home2.jpg' name='HomeImage' width='34' height='44' border='0' id='HomeImage' /></td><td width='30'>&nbsp;</td><td valign='top'><img src='skins/Skin_1/customimages/mysizeimages/headerline.gif' /></td><td width='30'>&nbsp;</td><td valign='top'>"+SizeButton+"</td><td width='30'>&nbsp;</td><td valign='top'><img src='skins/Skin_1/customimages/mysizeimages/headerline.gif' /></td><td width='250'>&nbsp;</td><td valign='top'>"+SaveButton+"</td><td valign='top'>"+ExitButton+"</td><td width='40'>&nbsp;</td></tr></table></td></tr><tr><td>&nbsp;</td></tr></table></td></tr></table>"
	BodyContent ="<table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td><table width='590' border='0' cellspacing='0' cellpadding='0'><tr><td width='85'>&nbsp;</td><td>&nbsp;</td><td width='80' align='left'>"+NextButton+"</td></tr></table></td></tr><tr><td align='center'><table width='500' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/mysizeimages/mysizewelcome.jpg' width='315' height='44' /></td></tr></table></td></tr><tr><td align='center'><table width='447' border='0' cellspacing='0' cellpadding='0'><tr><td width='229'><table border='0' cellspacing='0' cellpadding='0'><tr><td>"+CloseButton+"</td></tr><tr><td>"+ExactButton+"</td></tr></table></td><td width='19'><img src='skins/Skin_1/customimages/mysizeimages/homesplitboxes.jpg' width='19' height='177' /></td><td width='229'><table border='0' cellspacing='0' cellpadding='0'><tr><td>"+ManButton+"</td></tr><tr><td>"+WomanButton+"</td></tr></table></td></tr></table></td></tr></table>"
	 
	HomeContent = "<span id='Body2'>"+HomeHeader+BodyContent+"</span>"
	contentwithborder = '<table width="100%"><tr><td align="center"><table width="590" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"><tr><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif"/></td><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif" height="1" width="592"/></td><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif"/></td></tr><tr><td bgcolor="#FFFFFF"><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif" height="400" width="1"/></td><td valign="top">'
	contentwithborder =  contentwithborder + HomeContent
	contentwithborder =  contentwithborder + '</td><td  bgcolor="#FFFFFF"><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif" height="400" width="1"/></td></tr><tr><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif"/></td><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif" height="1" width="592"/></td><td><img src="skins/Skin_1/customimages/mysizeimages/mysizeborder.gif"/></td></tr></table></td></tr></table>'
	RenewContent("Tool",contentwithborder)
MM_preloadImages("skins/Skin_1/customimages/mysizeimages/womansizes2.jpg","skins/Skin_1/customimages/mysizeimages/womansizes3.jpg","skins/Skin_1/customimages/mysizeimages/mansizes1.jpg","skins/Skin_1/customimages/mysizeimages/mansizes3.jpg","skins/Skin_1/customimages/mysizeimages/rightoftabs.jpg","skins/Skin_1/customimages/mysizeimages/leftoftabs.jpg","skins/Skin_1/customimages/mysizeimages/shoetab.jpg","skins/Skin_1/customimages/mysizeimages/All.gif","skins/Skin_1/customimages/mysizeimages/back.jpg","skins/Skin_1/customimages/mysizeimages/internationalmens1.jpg","skins/Skin_1/customimages/mysizeimages/internationalwomens1.jpg","skins/Skin_1/customimages/mysizeimages/hide.jpg","skins/Skin_1/customimages/mysizeimages/open.jpg","skins/Skin_1/customimages/mysizeimages/4a.jpg","skins/Skin_1/customimages/mysizeimages/4a.jpg","skins/Skin_1/customimages/mysizeimages/4^5a.jpg","skins/Skin_1/customimages/mysizeimages/5a.jpg","skins/Skin_1/customimages/mysizeimages/5^5a.jpg","skins/Skin_1/customimages/mysizeimages/6a.jpg","skins/Skin_1/customimages/mysizeimages/6^5a.jpg","skins/Skin_1/customimages/mysizeimages/7a.jpg","skins/Skin_1/customimages/mysizeimages/7^5a.jpg","skins/Skin_1/customimages/mysizeimages/8a.jpg","skins/Skin_1/customimages/mysizeimages/8^5a.jpg","skins/Skin_1/customimages/mysizeimages/9a.jpg","skins/Skin_1/customimages/mysizeimages/9^5a.jpg","skins/Skin_1/customimages/mysizeimages/10a.jpg","skins/Skin_1/customimages/mysizeimages/10^5a.jpg","skins/Skin_1/customimages/mysizeimages/11a.jpg","skins/Skin_1/customimages/mysizeimages/11^5a.jpg","skins/Skin_1/customimages/mysizeimages/12a.jpg","skins/Skin_1/customimages/mysizeimages/12^5a.jpg","skins/Skin_1/customimages/mysizeimages/13a.jpg","skins/Skin_1/customimages/mysizeimages/13^5a.jpg","skins/Skin_1/customimages/mysizeimages/14a.jpg","skins/Skin_1/customimages/mysizeimages/14^5a.jpg","skins/Skin_1/customimages/mysizeimages/15a.jpg","skins/Skin_1/customimages/mysizeimages/15^5a.jpg","skins/Skin_1/customimages/mysizeimages/16a.jpg","skins/Skin_1/customimages/mysizeimages/17a.jpg","skins/Skin_1/customimages/mysizeimages/18a.jpg","skins/Skin_1/customimages/mysizeimages/19a.jpg","skins/Skin_1/customimages/mysizeimages/Alla.jpg","skins/Skin_1/customimages/mysizeimages/exactfit2.jpg","skins/Skin_1/customimages/mysizeimages/exactfit3.jpg","skins/Skin_1/customimages/mysizeimages/closefit1.jpg","skins/Skin_1/customimages/mysizeimages/closefit3.jpg")

}

function HidePageResults() {
	if (document.all){ // IE
		document.all('dropdown').style.display = "none";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('dropdown').style.display = "none";
	}
}
function ShowPageResults() {
	if (document.all){ // IE
		document.all('dropdown').style.display = "block";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('dropdown').style.display = "block";
	}
}
function showallbrands() {
	if (document.all){ // IE
		document.all('topbrands').style.display = "none";
		document.all('allbrands').style.display = "block";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('topbrands').style.display = "none";
		document.getElementById('allbrands').style.display = "block";
	}
}
function hideallbrands() {
	if (document.all){ // IE
		document.all('topbrands').style.display = "block";
		document.all('allbrands').style.display = "none";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('topbrands').style.display = "block";
		document.getElementById('allbrands').style.display = "none";
	}
}
function gogo() {
var MiniMySizeContent
MiniMySizeContent = "<table width='204' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/whitespace.gif' /></td><td class='homelinks' align='center' width='50' valign='top'><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[0]+".gif' width='38' height='22' /></td>"
MiniMySizeContent = MiniMySizeContent + "<td class='homelinks' align='center' width='50' valign='top'><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[1]+".gif' width='38' height='22' /></td>"
MiniMySizeContent = MiniMySizeContent + "<td class='homelinks' align='center' width='50' valign='top'><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[2]+".gif' width='38' height='22' /></td>"
MiniMySizeContent = MiniMySizeContent + "<td class='homelinks' align='center' width='50' valign='top'><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[3]+".gif' width='38' height='22' /></td></tr></table>"
	if (document.all){ // IE
		document.all('minimysize').innerHTML = MiniMySizeContent;
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('minimysize').innerHTML = MiniMySizeContent;
	}
}
function gogo2() {
var MiniMySizeContent
MiniMySizeContent = "<table width='190' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='skins/Skin_1/customimages/whitespace.gif' width='1' /></td><td class='homelinks' align='center' width='47' valign='top'><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[0]+".gif' width='38' height='22' /></td>"
MiniMySizeContent = MiniMySizeContent + "<td class='homelinks' align='center' width='47' valign='top'><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[1]+".gif' width='38' height='22' /></td>"
MiniMySizeContent = MiniMySizeContent + "<td class='homelinks' align='center' width='47' valign='top'><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[2]+".gif' width='38' height='22' /></td>"
MiniMySizeContent = MiniMySizeContent + "<td class='homelinks' align='center' width='47' valign='top'><img src='skins/Skin_1/customimages/mysizeimages/"+smarray[3]+".gif' width='38' height='22' /></td></tr></table>"
	if (document.all){ // IE
		document.all('minimysize').innerHTML = MiniMySizeContent;
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('minimysize').innerHTML = MiniMySizeContent;
	}
}
function RenewContent(elementid,content){
	if (document.all){ // IE
	document.all(elementid).innerHTML = content;
	}else if (document.getElementById){ // Everyone Else
		rng = document.createRange();
		el = document.getElementById(elementid);
		rng.setStartBefore(el);
		htmlFrag = rng.createContextualFragment(content);
		while (el.hasChildNodes())
		el.removeChild(el.lastChild);
		el.appendChild(htmlFrag);
	}
}
MM_preloadImages("skins/Skin_1/customimages/mysizeimages/bg.png","skins/Skin_1/customimages/mysizeimages/homesplitboxes.jpg","skins/Skin_1/customimages/mysizeimages/save1.jpg","skins/Skin_1/customimages/mysizeimages/save2.jpg","skins/Skin_1/customimages/mysizeimages/next.jpg","skins/Skin_1/customimages/mysizeimages/exactfit1.jpg","skins/Skin_1/customimages/mysizeimages/closefit2.jpg","skins/Skin_1/customimages/mysizeimages/background.jpg","skins/Skin_1/customimages/mysizeimages/womansizes1.jpg","skins/Skin_1/customimages/mysizeimages/mansizes2.jpg","skins/Skin_1/customimages/mysizeimages/mysizewelcome.jpg","skins/Skin_1/customimages/mysizeimages/close1.jpg","skins/Skin_1/customimages/mysizeimages/close2.jpg","skins/Skin_1/customimages/mysizeimages/home1.jpg","skins/Skin_1/customimages/mysizeimages/home2.jpg","skins/Skin_1/customimages/mysizeimages/sizes1.jpg","skins/Skin_1/customimages/mysizeimages/sizes2.jpg","skins/Skin_1/customimages/mysizeimages/headerline.gif","skins/Skin_1/customimages/mysizeimages/mysizeborder.gif")

var requiredMajorVersion = 8;var requiredMinorVersion = 0;var requiredRevision = 0;var jsVersion = 1.0;

function sizejump(JumpSize, JumpGender){
jumptonewurl =  'default.aspx?PG='+JumpGender+'&PT=footwear&sizes='+JumpSize
window.location = jumptonewurl
}

function MenuFix(changer1){
document.getElementById(changer1).style.color = '#aaaaaa';
}
function verifyRequired() {
if (document.icpsignup["fields_email"].value == "") {
document.icpsignup["fields_email"].focus();
alert("The Email field is required.");
return false;
}
return true;
}

function accountpage(){

	CheckoutImgMapURL = window.location.toString();
	CheckoutImgMapURL = CheckoutImgMapURL.substring(33,44).toLowerCase();
	
	if (CheckoutImgMapURL == "shoppingcar" || CheckoutImgMapURL == "hoppingcart" ){
		ShoppingCartStep = '<table width="100%" cellpadding="0" cellspacing="0" border="0" ><tr><td align="left"><img src="skins/skin_1/images/step_1.gif" alt="step1" /></td></tr></table>';
		checkoutheader = "<h1>SHOPPING CART</h1>"
	}
	if (CheckoutImgMapURL == "createaccou" || CheckoutImgMapURL == "reateaccoun" ){
		checkoutheader = "<h1>REGISTRATION</h1>"
	}
	if (CheckoutImgMapURL == "signin.aspx" || CheckoutImgMapURL == "ignin.aspx?" ){
		checkoutheader = "<h1>LOGIN</h1>"
	}
	
	
	if (CheckoutImgMapURL == "checkoutano"){
		checkoutheader = "<h1>REGISTER / LOGIN</h1>"
	}
	if (CheckoutImgMapURL == "account.asp"){
		checkoutheader = "<h1>CONTACT INFO</h1>"
	}
	if (CheckoutImgMapURL == "checkoutshi"){
		ImageMap = '<area shape="rect" coords="111,7,213,79" href="account.aspx?checkout=true" title="Back To Step 2: Address Book" alt="Back To Step 2: Address Book" />'
		checkoutheader = "<h1>SHIPPING</h1>"
	}
	if (CheckoutImgMapURL == "checkoutpay"){
		ImageMap = '<area shape="rect" coords="111,7,213,79" href="account.aspx?checkout=true" title="Back To Step 2: Address Book" alt="Back To Step 2: Address Book" />'
		ImageMap = ImageMap + '<area shape="rect" coords="221,7,319,79" href="checkoutshipping.aspx" title="Back To Step 3: Shipping Options" alt="Back To Step 3: Shipping Options" />'
		checkoutheader = "<h1>PAYMENT</h1>"
	}
	if (CheckoutImgMapURL == "checkoutrev"){
		ImageMap = '<area shape="rect" coords="111,7,213,79" href="account.aspx?checkout=true" title="Back To Step 2: Address Book" alt="Back To Step 2: Address Book" />'
		ImageMap = ImageMap + '<area shape="rect" coords="221,7,319,79" href="checkoutshipping.aspx" title="Back To Step 3: Shipping Options" alt="Back To Step 3: Shipping Options" />'
		ImageMap = ImageMap + '<area shape="rect" coords="326,7,424,79" href="checkoutpayment.aspx" title="Back To Step 4: Payment Options" alt="Back To Step 4: Payment Options" />'
		checkoutheader = "<h1>REVIEW</h1>"
	}	
}
  
function noimage1() {
	if (document.all){ // IE
		document.all('icon0').innerHTML= "No Images Available";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('icon0').innerHTML= "No Images Available";
	}
}
function noimage(iconnum) {
	var spanicon = "icon"+iconnum.toString()
	if (document.all){ // IE
		document.all(spanicon).innerHTML= "";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById(spanicon).innerHTML= "";
	}
}
	var blankstring = ""
	var itemstring1 = "_1_"
	var itemstring2 = "_2_"
	var itemstring3 = "_3_"
function changelargeitempic(itemaddontopic, PicProID) {
	if (document.all){ // IE
		document.all('largeproduct').innerHTML= "<img src='images/product/large/"+PicProID+itemaddontopic+".jpg'  width='"+largewidth.toString()+"' height='"+largeheight.toString()+"' />";
	}else if (document.getElementById){ // Everyone Else
		document.getElementById('largeproduct').innerHTML= "<img src='images/product/large/"+PicProID+itemaddontopic+".jpg'  width='"+largewidth.toString()+"' height='"+largeheight.toString()+"' />";
	}
}
function RateComment(ProductID,MyCustomerID,MyVote,RatersCustomerID)
	{
	RateCommentFrm.location = 'RateComment.aspx?Productid=' + ProductID + '&VotingCustomerID=' + MyCustomerID + '&MyVote=' + MyVote + '&CustomerID=' + RatersCustomerID
	}
	function RateIt(ProductID)
	{
		window.open('rateit.aspx?Productid=' + ProductID + '&refresh=no&returnurl=%2fshowproduct.aspx%3fProductID%3d48429%26SEName%3dnike_ajf-5%26template%3dcustomtemplate2','ASPDNSF_ML35636','height=450,width=440,top=10,left=20,status=no,toolbar=no,menubar=no,scrollbars=yes,location=no')
	}
	function SSL()
	{
		window.open('https://www.digicert.com/custsupport/sspopup.php?order_id=00130443&hostname=https%3A%2F%2Fwww.designerathletic.com','SSL','height=480,width=525,top=10,left=20,status=no,toolbar=no,menubar=no,scrollbars=yes,location=no')
	}
//	if ("(DA_REPLACE:OPENREVIEWS)" != ""){
//	ShowReviews();
//	}
function LoadZoom(FlashZoomProductID){
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='719' height='377'><param name='movie' value='zoomer.swf' /><param name=FlashVars value='productid="+FlashZoomProductID+"' /><param name='quality' value='high' /><PARAM NAME='WMODE' VALUE='transparent'><embed src='zoomer.swf' flashvars='productid="+FlashZoomProductID+"' WMODE='transparent'  quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='719' height='377'></embed></object>";
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
	//<input type='button' value='NORMAL' onclick='zoomout()'><input type='button' value='LARGE' onclick='zoomin()'>
    var alternateContent = "<div><table cellpadding='0' cellspacing='0' border='0'><tr><td width='705' ><img src='skins/Skin_1/customimages/nonflashitemheader.gif' /></td></tr><tr><td><table cellpadding='0' cellspacing='0' border='0'><tr><td width='217' align='center' valign='top'><table cellpadding='0' cellspacing='0' border='0'><tr><td><span id='icon0' ><a href='javascript:changelargeitempic(blankstring, "+FlashZoomProductID+")'><img src='images/product/icon/"+FlashZoomProductID+".jpg' onError='noimage1()' style='cursor:pointer' width='100'  height='100' border='0' /></a></span></td></tr><tr><td><span id='icon1' ><a href='javascript:changelargeitempic(itemstring1, "+FlashZoomProductID+")'><img src='images/product/icon/"+FlashZoomProductID+"_1_.jpg' onError='noimage(1)'  border='0' style='cursor:pointer' width='100'  height='100' /></a></span></td></tr><tr><td><span id='icon2' ><a href='javascript:changelargeitempic(itemstring2, "+FlashZoomProductID+")' ><img src='images/product/icon/"+FlashZoomProductID+"_2_.jpg' onError='noimage(2)'  style='cursor:pointer' border='0' width='100'  height='100' /></a></span></td></tr><tr><td><span id='icon3' ><a href='javascript:changelargeitempic(itemstring3, "+FlashZoomProductID+")'><img src='images/product/icon/"+FlashZoomProductID+"_3_.jpg' onError='noimage(3)'style='cursor:pointer' width='100' height='100' border='0' /></a></span></td></tr></table></td><td width='28'> </td><td width='461' align='center'><div id='largeproduct'><img src='images/product/large/"+FlashZoomProductID+".jpg' width='375' height='375' /></div></td></tr></table></td></tr></table></div>"
    document.write(alternateContent);  // insert non-flash content
  }
  }


function loadheromovie(){
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="631" height="250"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="http://www.designerathletic.com/skins/Skin_1/heromovienew.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><PARAM NAME="WMODE" VALUE="transparent">'
    + '<embed src="http://www.designerathletic.com/skins/Skin_1/heromovienew.swf" quality="high" bgcolor="#ffffff" '
    + 'width="631" height="250" name="heromovienew" align="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
	+ 'WMODE="transparent"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<a href="http://www.designerathletic.com/nsearch.aspx?keywords=EXPERIENCE" /><img src="skins/Skin_1/customimages/heroimage.jpg" width="631" height="272" border="0" /></a>'
    document.write(alternateContent);  // insert non-flash content
  }
}
  
var ChartOnOff
var menschart
var womenschart
var Bothcharts


function ChangeChart(ChartType){
	if (ChartType == "MENS"){
		menschart = "<img src='skins/Skin_1/customimages/clear.gif' height='1' />"
		if (ChartOnOff == "0") {
			menschart = "<img src='skins/Skin_1/customimages/menschart.gif' /><br/><br/>"
			ChartOnOff = "1"
		} else if (ChartOnOff == "1")  {
			ChartOnOff = "0"
		}
		RenewContent('chart',menschart)
	}else if (ChartType == "WOMENS"){
		womenschart = "<img src='skins/Skin_1/customimages/clear.gif' height='1' />"
		if (ChartOnOff == "0") {
			womenschart = "<img src='skins/Skin_1/customimages/womenschart.gif' /><br/><br/>"
			ChartOnOff = "1"
		} else if (ChartOnOff == "1")  {
			ChartOnOff = "0"
		}
		RenewContent('chart',womenschart)
	}else {
		Bothcharts = "<img src='skins/Skin_1/customimages/clear.gif' height='1' />"
		if (ChartOnOff == "0") {
			Bothcharts = "<img src='skins/Skin_1/customimages/menschart.gif' /><br/><img src='skins/Skin_1/customimages/womenschart.gif' /><br/><br/>"
			ChartOnOff = "1"
		} else if (ChartOnOff == "1")  {
			ChartOnOff = "0"
		}
		RenewContent('chart',Bothcharts)
	}
}

function LoggedinLoggedout(inorout) {
if (inorout == "signout.aspx") {
var SwapAccountCode = "'account','','skins/Skin_1/customimages/account2.gif'"
document.write('<a href="https://www.designerathletic.com/account.aspx?template=accountpage2" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('+SwapAccountCode+',0)"><img src="skins/Skin_1/customimages/account1.gif" alt="account" width="65" height="18" border="0" id="account"  /></a>')
} else {
var SwapRegisterCode = "'register','','skins/Skin_1/customimages/register2.gif'"
document.write('<a href="https://www.designerathletic.com/createaccount.aspx?checkout=False&template=accountpage2" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('+SwapRegisterCode+',0)"><img src="skins/Skin_1/customimages/register1.gif" alt="register" width="65" height="18" border="0" id="register"  /></a>')
}	
}

function activa(){
var __ALC_BADGE_SUFFIX = (Math.round(Math.random()*10000000000));
document.write('<a href="javascript://chat" style="display: none;" onclick="_alc.startChat(10628); return false;" id="__ALC_BADGE_ONLINE'+__ALC_BADGE_SUFFIX+'"><img id="__ALC_BADGE_ONLINE_IMAGE" src="'+unescape(document.location.protocol+'//www.activalive.com/app/custom/buttons/10628/livechatonline.jpg')+'" style="border: 0px none" /></a><span id="__ALC_BADGE_OFFLINE'+__ALC_BADGE_SUFFIX+'" style="display: none;"><img id="__ALC_BADGE_OFFLINE_IMAGE" src="'+unescape(document.location.protocol+'//www.activalive.com/app/custom/buttons/10628/livechatoffline.jpg')+'" style="border: 0px none" /></span>');
if ( typeof(__ALC_Badges) == 'undefined' ) __ALC_Badges = new Array();
var __ALC_BUTTON = new Object(); __ALC_BUTTON.id = '10628'; __ALC_BUTTON.available = '__ALC_BADGE_ONLINE'+__ALC_BADGE_SUFFIX; __ALC_BUTTON.unavailable = '__ALC_BADGE_OFFLINE'+__ALC_BADGE_SUFFIX; __ALC_BUTTON.department = 5387;__ALC_Badges.push(__ALC_BUTTON);
}