// openMe creates a window with a set name, location, and size
function openMe(winURL,winName) {
	var width = 0;
	var height = 0;
		
	switch (winName){
		case "press":
			width = 680; height = 800;
			launchWin(winName, winURL, width, height);
			width=0;height=0;
			break;
		case "SpecialInstruction":
			width = 602; height = 497;
			break;
		case "shipping":
			width = 400; height = 500;
			break;
		case "handling":
			width = 620; height = 500;
			break;
		case "sizeinfo":
			width = 450; height = 167;
			launchWinNoScroll(winName, winURL, width, height);
			width=0;height=0;
			break;
		case "enlargepic":
			width = 350; height = 230;
			break;
		case "backorder":
			width = 640; height = 500;
			break;
		case "AnotherView":
			width = 500; height = 500;
			break;
		case "alternateview2":
			width = 700; height = 500;
			launchWin(winName, winURL, width, height);
			width=0;height=0;
			break;
		case "alternateview":
			width = 580; height = 500;
			launchWinNoScroll(winName, winURL, width, height);
			width=0;height=0;
			break;	
		case "honeydew":
			width = 600; height = 800;
			launchWin(winName, winURL, width, height);
			width=0;height=0;
			break;			
		case "careers":
			width = 786; height = 600;
    		launchWinT(winName, winURL, width, height);
			width=0;height=0;
			break;	
		case "what":
			width = 452; height = 110;
			break;
		case "whatthis":
			width = 452; height = 130;
			break;
		case "giftoptions":
			width = 640; height = 230;
			break;
		case "whatthis2":
			width = 500; height = 150;
			break;
	}
	
	

	//only launch window if we've set a width and height
	if (width > 0 && height > 0){
		launchWin(winName, winURL, width, height);
	}
}



function launchWin(winName, winURL, width, height){
	var ieIncrement = ((navigator.appName+"").indexOf("Netscape") == -1)? 15:0;
	eval(winName+"=window.open('"+ winURL +"','"+ winName +"','resizable=yes,scrollbars=yes,width="+ (width + ieIncrement) +",height="+ (height + ieIncrement) +",top=5,left=75')");
	eval("window."+ winName +".focus()");	
}


function launchWinT(winName, winURL, width, height){
	var ieIncrement = ((navigator.appName+"").indexOf("Netscape") == -1)? 15:0;
	eval(winName+"=window.open('"+ winURL +"','"+ winName +"','toolbar=1,menubar=1,location=1,resizable=yes,scrollbars=yes,width="+ (width + ieIncrement) +",height="+ (height + ieIncrement) +",top=5,left=75')");
	eval("window."+ winName +".focus()");	
}

function launchWinNoScroll(winName, winURL, width, height){
	var ieIncrement = ((navigator.appName+"").indexOf("Netscape") == -1)? 15:0;
	eval(winName+"=window.open('"+ winURL +"','"+ winName +"','resizable=No,scrollbars=No,width="+ (width + ieIncrement) +",height="+ (height + ieIncrement) +",top=5,left=75')");
	eval("window."+ winName +".focus()");	
}

function PopupPic(sPicURL) { 
    window.open( "zoom1.php?"+sPicURL, "",  
    "resizable=1,HEIGHT=200,WIDTH=200"); 
} 
