/******************************************
The following is the Code for the Pop up windows on the Flexicon Website. 

*******************************************/


function popWin(imgName)
{ 


 // Define Window width and height right here so that it can easily be modified. 
 var winWidth = 650; 
 var winHeight = 575; 
 
 // 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; 

  
 window.open("popups/" + imgName + ".asp", "PopUp", props);
 
} 

function popVideo(vid)
{ 
   var winWidth = 320
   var winHeight = 420; 
    // 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;
	
	//Open the window
	window.open(prefix + "videos/" + vid + ".asp", "Video", props); 
}

function popCareer(title)
{ 
   var winWidth = 650
   var winHeight = 500; 
    // 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=yes";
	
	//Open the window
	window.open(prefix + "Careers/" + title + ".asp", "Careers", props); 
}

function popSubscribe()
{ 
var winWidth = 600
   var winHeight = 250; 
    // 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=yes";
	
	//Open the window
	window.open("blank.asp", "Subscribe", props); 
} 