// JavaScript Document
function newWin(filename,type){
	if (type=='winImage'){
		var winWidth=640; 
		var winHeight=480;
	    winSettings='menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,hotkey=no';
		var winSize=',width=' +winWidth+',height=' +winHeight;
		var winX=(screen.availWidth/2)-(winWidth/2); 
		var winY=(screen.availHeight/2)-(winHeight/2);
		var winPos=',left='+winX+',top='+winY;
	}
	else if (type=='winProd') {
		var winWidth=320	; 
		var winHeight=550;
	    winSettings='menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,hotkey=no';
		var winSize=',width=' +winWidth+',height=' +winHeight;
		var winX=(screen.availWidth/2)-(winWidth/2); 
		var winY=(screen.availHeight/2)-(winHeight/2);
		var winPos=',left='+winX+',top='+winY;
		
	}
	else if (type=='plain') {
		var winWidth=320	; 
		var winHeight=320;
	    winSettings='menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,hotkey=no';
		var winSize=',width=' +winWidth+',height=' +winHeight;
		var winX=(screen.availWidth/2)-(winWidth/2); 
		var winY=(screen.availHeight/2)-(winHeight/2);
		var winPos=',left='+winX+',top='+winY;
		
	}
	else if (type=='winMultiView') {
		var winWidth=735; 
		var winHeight=430;
	    winSettings='menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,hotkey=no';
		var winSize=',width=' +winWidth+',height=' +winHeight;
		var winX=(screen.availWidth/2)-(winWidth/2); 
		var winY=(screen.availHeight/2)-(winHeight/2);
		var winPos=',left='+winX+',top='+winY;		
		
	}
	theWindow=window.open(filename,type,winSettings+winSize+winPos);
	theWindow.focus();
}

function loadEnlarge(filename) {
	
}

function gotoFindMyShoes() {
	location.href = "findshoesize.asp";
}

function gotoStylePage() {
	var styleList = document.getElementById("selStyleNo");
	if (styleList.selectedIndex != 0) { 
		location.href = styleList.options[styleList.selectedIndex].value;
	}
	else {
		alert("Please select a style No. inside the dropdown box.");
	}
	
	
}

function detectClientBrower() {
	var typeNum
	
	var name = navigator.appName.toLowerCase()
	
	switch (name) 
	{
		case "microsoft internet explorer" :
			typeNum = 1
			break
		case "netscape" :
			typeNum = 2
			break
		case "firefox" :
			typeNum = 3
			break
		default:
			typeNum = 1
 	}
  
	return (typeNum)
}
