/******************************************
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 = "dialogWidth:" + winWidth + "px;dialogHeight:" + winHeight + "px";   
 	window.showModalDialog("popups/"+imgName+".asp","",props); 
} 

function popSWF(imgName){ 
 	// Define Window width and height right here so that it can easily be modified. 
 	var winWidth = 342; 
 	var winHeight = 333; 
 
 	// 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 = "dialogWidth:" + winWidth + "px;dialogHeight:" + winHeight + "px";   
 	window.showModalDialog("popups/" + imgName + ".asp","",props); 
} 

function popWinCH(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 = "dialogWidth:" + winWidth + "px;dialogHeight:" + winHeight + "px";   
 	window.showModalDialog("/us/Articles/popups/enlarge.asp?ID=" + imgName,"",props); 
} 


function popWinConfigurations(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 = "dialogWidth:" + winWidth + "px;dialogHeight:" + winHeight + "px"; 
 	window.showModalDialog("popups/Configuration_popups.asp?ID=" + imgName,"",props); 
} 

function popVideo(vid){ 
   	var winWidth = 320
   	var winHeight = 351; 
    // 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 = "dialogWidth:" + winWidth + "px;dialogHeight:" + winHeight + "px"; 
	window.showModalDialog("/us/videos/" + vid + ".asp","",props);
}

function popCareer(title) { 
   	var winWidth = 655
   	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 = "dialogWidth:" + winWidth + "px;dialogHeight:" + winHeight + "px;scrollbars:yes";
	window.showModalDialog("/us/Careers/" + title + ".asp","",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 = "dialogWidth:" + winWidth + "px;dialogHeight:" + winHeight + "px;scrollbars:yes";
	window.showModalDialog("blank.asp","",props);
} 


function popContact(){ 
 // 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 = "dialogWidth:" + winWidth + "px;dialogHeight:" + winHeight + "px;scrollbars:yes;resizable:yes"; 
	window.showModalDialog("printpage.asp","",props);

} 