// Array for holding file locations
// Array for holding file locations
var file_loc = [
"productTours.swf",  //Product Tours
"/forefront/edgesecurity/hardware/default.mspx",  //Hardware Options
"/forefront/edgesecurity/sra.mspx",  //Scenario page 1
"/forefront/edgesecurity/bos.mspx",  //Scenario Page 2
"/forefront/edgesecurity/iap.mspx",  //Scenario Page 3

];




//No changes to below needed


function startFlash(loc){  //USED for launching flash presentations in their own window
	openPlayerWindow(1000, 650, file_loc[loc], 'false');
}
function startPage(loc){  // USED for standard web links
	window.open(file_loc[loc]);
}



//
// A reference to the currently opened popup window
//
var popupWindow = null;

//
// A reference to the currently opened player window
//
var playerWindow = null;
//
// FUNCTION: openPlayerWindow
// Open a centered media-player window, containing code appropriate to play a clip using the specified values; this is
// accomplished by dynamically writing content into the player window
//
function openPlayerWindow(playerWidth, playerHeight, contentPath, isCaptivate) {


	if(playerWindow == null || playerWindow.closed) {
		var params =	"top="+ (screen.availHeight/2 - playerHeight/2) +",left="+ (screen.availWidth/2 - playerWidth/2) +",width="+ (playerWidth) +",height="+ (playerHeight) +
						",scrollbars=0,resizable=0,directories=0,location=0,menubar=0,status=0,toolbar=0";
		playerWindow = window.open('','playerWindow', params);
	}
	
	var innerHTML = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">' + '\n' +
		'<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">' +  '\n' +
		"<title>Forefront™ Edge Security and Access</title></head><body style='margin:0' onUnload=checkreset>" +  '\n' +
		'<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle">' + '\n' +
		"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + playerWidth + "' height='" + playerHeight + "' id='gui_loader' align='middle'>" +  '\n' +
		"<param name='movie' value='"+ contentPath +"'>" +  '\n' +
		"<param name='quality' value='high'>" +  '\n' +
		"<param name='bgcolor'>" +  '\n' +
		"<param name='menu' value='false'>" +  '\n' +
		"<embed src='"+ contentPath +"' width='" + playerWidth + "' height='" + playerHeight + "' align='middle' quality='high'  name='gui_loader' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'> " +  '\n' +
		"</object></td></tr></table></body></html>";

	playerWindow.document.open();
  	playerWindow.document.write(innerHTML);
	playerWindow.focus();
	playerWindow.document.close();
	//if (window.focus) playerWindow.focus();
}