translate = new Array(); 
translate['Personal'] = "/popups/default.asp?company=Pretium Packaging&title=Personal Care&img=PersonalCare.jpg"; 
translate['Automotive'] = "/popups/default.asp?company=Pretium Packaging&title=Automotive&img=Automotive.jpg"; 
translate['Household'] = "/popups/default.asp?company=Pretium Packaging&title=Household&img=Household.jpg";
translate['Food'] = "/popups/default.asp?company=Pretium Packaging&title=Food and Beverage&img=Food.jpg"; 
translate['Industrial'] = "/popups/default.asp?company=Pretium Packaging&title=Industrial and Chemical&img=industrial.jpg"; 
translate['Fluorination'] = "/popups/default.asp?company=airopak&title=In-line Fluorination&img=Fluorination.jpg";
translate['Marpac'] = "/popups/default.asp?company=marpac&title=Marpac&img=marpac.jpg"

function popWin(imgName, winWidth, winHeight, winName, scrollbars)
{ 

 // 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 = "Pop"

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; 
  
 window.open(imgName, winName, props);
 
} 

function popWinResize(imgName, winWidth, winHeight){ 

 // 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 = "Pop"

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=1,resizable=yes";   

 myWin = window.open(imgName,"pop", props);
 window.myWin.focus();
return;
 
} 

function enlargeImage(imgName) 
{ 
  if (translate[imgName])
	popWin(translate[imgName],500, 600,'enlarge', "no"); 
} 
