var requiredFlashVer = "9";

var FlashOld = 		"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Flash<\/strong><\/td>" + 
					"<td valign=\"top\">Flash Player " + requiredFlashVer + " or later is required to use Aplia.<br />" + 
					"Please upgrade to the current version of the Flash Player.<br /><br />" + 
					"<a href=\"javascript:popup('http://www.macromedia.com/go/getflashplayer/')\"><img src=\"/images/support/get_flashplayer.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Flash Player\"></a><\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";

var FlashUnknown = 	"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Flash<\/strong><\/td>" + 
					"<td valign=\"top\">We cannot determine the version of Flash you are running. You will need to install the current version of Flash before you can view all of the graphics on this site. Please click the button below to upgrade to Flash version " + requiredFlashVer + " or higher:" + 
					"<a href=\"javascript:popup('http://www.macromedia.com/go/getflashplayer/')\"><img src=\"/images/support/get_flashplayer.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Flash Player\"></a><\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";

function writeFlashOK(versionStr){
	var FlashOK = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Flash<\/strong><\/td>" + 
					"<td valign=\"top\">Flash Version: " + versionStr + ".<br /><br />Your version of the Flash Player is up to date.<\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";
	
	document.write(FlashOK);
}

function writeFlashRecm(versionStr){
	var FlashRecm = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Flash<\/strong><\/td>" + 
					"<td valign=\"top\">Flash Version: " + versionStr + ".<br /><br />Your version of the Flash Player is adequate for using Aplia.<br />For improved performance, please upgrade to the current version of the Flash Player.<br /><br />";
	
	document.write(FlashRecm);
	
}

function writeFlashManulRecm(versionStr){
	var FlashRecmManul = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Flash<\/strong><\/td>" + 
					"<td valign=\"top\">Flash Version: " + versionStr + ".<br /><br />" + 
					"Your version of the Flash Player is adequate for using Aplia.<br />For improved performance, please upgrade to the current version of the Flash Player.<br /><br />" + 
					"<a href=\"javascript:popup('http://www.macromedia.com/go/getflashplayer/')\"><img src=\"/images/support/get_flashplayer.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Flash Player\"></a><\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";
	
	document.write(FlashRecmManul);	
}

function writeFlashOldAuto(versionStr){
	var FlashOldAuto = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Flash<\/strong><\/td>" + 
					"<td valign=\"top\">Flash Version: " + versionStr + ".<br /><br />Flash Player " + requiredFlashVer + " or later is required to use Aplia.<br />" + 
					"Please upgrade to the current version of the Flash Player.<br /><br />";
	
	document.write(FlashOldAuto);
}

function writeFlashOldManul(versionStr){
	var FlashOldManul = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Flash<\/strong><\/td>" + 
					"<td valign=\"top\">Flash Version: " + versionStr + ".<br /><br />Flash Player " + requiredFlashVer + " or later is required to use Aplia.<br />" + 
					"Please upgrade to the current version of the Flash Player.<br /><br />" + 
					"<a href=\"javascript:popup('http://www.macromedia.com/go/getflashplayer/')\"><img src=\"/images/support/get_flashplayer.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Flash Player\"></a><\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";
	
	document.write(FlashOldManul);
}

var FlashObject1 = 	"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td colspan=\"4\">" + 
					"<object CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" " +
					"CODEBASE=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" " +
					"ID=flashtest WIDTH=700	HEIGHT=108> " +
					"<param NAME=movie VALUE=\"/support/gameConnectionTest.swf?v=2.0&loadURL=http://";

var FlashObject2 = 	"/af/servlet/gamehost\"> " +
					"<param NAME=menu VALUE=false> <param NAME=quality VALUE=high> <param NAME=bgcolor VALUE=#FFFFFF> " +
					"<embed SRC=\"/support/gameConnectionTest.swf?loadURL=http://";

var FlashObject3 = 	"/af/servlet/gamehost\" " +
					"MENU=false QUALITY=high BGCOLOR=#FFFFFF WIDTH=700 HEIGHT=108 TYPE=\"application/x-shockwave-flash\" " +
					"PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"> " +
					"</embed></object>" + 
					"<\/td><\/tr><\/table>";

function writeConfigFlash(host) {
    document.write(FlashObject1 + host + FlashObject2 + host + FlashObject3);
}

var JavascriptOK = 	"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Javascript<\/strong><\/td>" + 
					"<td valign=\"top\">Javascript is enabled in this browser.<\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";

var CookieOK = 		"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Cookies<\/strong><\/td>" + 
					"<td valign=\"top\">Cookies are enabled in this browser.<\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";

var CookieFailure = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Cookies<\/strong><\/td>" + 
					"<td valign=\"top\">Cookies are not enabled on your Web browser. You'll need cookies to use this site. " +
					"Please follow the steps in <a href=\"/support/js_steps.jsp#cookies\">this link</a> to enable Cookies.<\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";

var ScreenOK = 		"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Screen Resolution<\/strong><\/td>" + 
					"<td valign=\"top\">Your screen resolution will allow you to view our site without problems.<\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";

var ScreenFailureMac = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Screen Resolution<\/strong><\/td>" + 
					"<td valign=\"top\">Your screen resolution is below the recommended size of 800 x 600. You will have difficulty viewing this site adequately. In order to increase your resolution, please do the following:<br />" + 
					"<ol><li>Click the apple in the upper left corner of your screen, go down to &quot;Control Panels&quot;, then move your mouse to the right and scroll down to &quot;Monitors&quot;.</li>" +
					"<li>Click on the &quot;Monitor&quot; button on top, if it's not already selected.</li>" +
					"<li>Under &quot;Resolution&quot;, choose &quot;800 x 600&quot;.  Your resolution should change automatically.</li>" +
					"<li>Close the control panel window.</li></ol><\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";

var ScreenFailureWin = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Screen Resolution<\/strong><\/td>" + 
					"<td valign=\"top\">Your screen resolution is below the recommended size of 800 x 600. You will have difficulty viewing this site adequately. In order to increase your resolution, please do the following:<br />" + 
					"<ol><li>Click the &quot;Start&quot; button in the lower left corner of your screen.</li>" +
					"<li>Select &quot;Settings&quot; and then &quot;Control Panel&quot;.</li>" +
					"<li>Double-click the &quot;Display&quot; icon.</li>" +
					"<li>Click the &quot;Settings&quot; tab.</li>" +
					"<li>On the right side, there will be a slider bar in an area titled &quot;Screen Area&quot; or &quot;Desktop Area&quot;. Slide the bar to the right until the numbers read &quot;800 x 600&quot;.</li>" +
					"<li>Click the &quot;OK&quot; button and follow the instructions to finish changing your screen resolution.</li></ol><\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";

var ScreenFailureOther = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>" + 
					"<td width=\"30\" valign=\"top\"><img src=\"/images/support/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"><\/td>" + 
					"<td width=\"10\" valign=\"top\"><img src=\"/images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" /><\/td>" + 
					"<td width=\"200\" valign=\"top\"><strong>Screen Resolution<\/strong><\/td>" + 
					"<td valign=\"top\">Your screen resolution is below the recommended size of 800 x 600. You will have difficulty viewing this site adequately. If you need assistance with increasing your screen resolution, please consult your computer support department.<\/td><\/tr>" + 
					"<tr><td colspan=\"4\"><div class=\"row-gap row-space10\"><\/div><div class=\"bg-dots\">&nbsp;<\/div><div class=\"row-gap row-space10\"><\/div><\/td>" + 
					"<\/tr><\/table>";

