// Popup windows
function pop(URL) {
	popupWin = window.open(URL, '', 'location,resizable,toolbar,scrollbars,width=480,height=400')
	window.top.name = 'opener'
}

function launchwin(winurl,winname,winfeatures) {
	var newwin
	newwin = window.open(winurl,winname,winfeatures)
}

// Drop-down menu
function onlinejumpMenu() {
	location = document.onlinejump.menu.options[document.onlinejump.menu.selectedIndex].value
}


function color(clr)
{
	if(clr== "coal")
	{
		 var fabWin = window.open("epu_fab.php?color=coal&bg=white","fabWin","width=400,height=450")
	} else if (clr== "imperial")
	{
		var fabWin = window.open("epu_fab.php?color=imperial&bg=white","fabWin","width=400,height=450")
	} else if (clr== "silver")
	{
		var fabWin = window.open("epu_fab.php?color=silver&bg=white","fabWin","width=400,height=450")
	} else
	{
		var fabWin = window.open("epu_fab.php?color=windsor&bg=white","fabWin","width=400,height=450")
	}
}

function acc(itm)
{
	if(itm=='e-ttl200' || itm=='e-tctc12s' || itm=='e-tbblhf96' || itm=='e-tbblhf72' || itm=='e-tbblhf120' || itm=='e-liskits' || itm=='e-fixture' || itm=='e-tshelf45')
	{
		var accWin = window.open("epu_acc_1.php?item=" + itm + "","accWin","width=300,height=300,resize")
	} else if(itm=='e-rprkit')
		{
			var accWin = window.open("epu_acc_1.php?item=" + itm + "","accWin","width=400,height=400,resize")
		} else
			{
				var accWin = window.open("epu_acc_1.php?item=" + itm + "","accWin","width=550,height=300,resize")
			}
}





function popWin(imgName, winWidth, winHeight, winName)
{ 

 // Define Window width and height right here so that it can easily be modified. 
 if (!winWidth)
 	var winWidth = 450; 
 
 if (!winHeight)
	 var winHeight = 175; 
	 
if (!winName) 
	var winName = "PopUp";

//if (!scrollbars) 
//	var scrollbars = "yes" 
 
 // Midx and Midy will be used to center the window.
 var midx = (screen.width/2) - (winWidth/2); 
 var midy = (screen.height/2) - (winHeight/2)
 
 // Set up the Propeties String
//var props = "height=" + winHeight + ",width=" + winWidth + ",screenX=" + midx + ",screenY=" + midy + ",top=" + midy + ",left=" + midx + ",scrollbars=" + scrollbars; 
var props = "height=" + winHeight + ",width=" + winWidth + ",screenX=" + midx + ",screenY=" + midy + ",top=" + midy + ",left=" + midx + ",scrollbars=1"; 


 window.open(imgName, winName, props);
 
} 


function enlargeImage(imgName) 
{ 
  if (translate[imgName])
	popWin(translate[imgName],500, 600,'enlarge', "no"); 
}