var requiredFlashVer = "9";

var FlashOldAuto1 = "<tr><td valign=\"top\"><img src=\"/images/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"></td>" +
	"<td valign=\"top\" class=\"txtbold\">Flash</td>" +
	"<td class=\"txt\">Flash Version: ";


var FlashOldAuto2 = "<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></td></tr>";
	

var FlashOldManul1 = "<tr><td valign=\"top\"><img src=\"/images/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"></td>" +
	"<td valign=\"top\" class=\"txtbold\">Flash</td>" +
	"<td class=\"txt\">Flash Version: ";


var FlashOldManul2 = "<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/get_flashplayer.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Flash Player\"></a></td></tr>";

	
var FlashRecm1 = 	"<tr><td valign=\"top\"><img src=\"/images/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"></td>" +
	"<td valign=\"top\" class=\"txtbold\">Flash</td>" +
	"<td class=\"txt\">Flash Version: ";
	
var FlashRecm2 = "<br><br>Your version of the Flash Player is adequate for using Aplia.<br>For improved performance, upgrade to the current version of the Flash Player.<br><br></td></tr>";
	
var FlashRecmManul1 = 	"<tr><td valign=\"top\"><img src=\"/images/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"></td>" +
	"<td valign=\"top\" class=\"txtbold\">Flash</td>" +
	"<td class=\"txt\">Flash Version: ";
	
var FlashRecmManul2 = "<br><br>Your version of the Flash Player is adequate for using Aplia.<br>For improved performance, upgrade to the current version of the Flash Player.<br><br><a href=\"javascript:popup('http://www.macromedia.com/go/getflashplayer/')\"><img src=\"/images/get_flashplayer.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Flash Player\"></a></td></tr>";


	
var FlashOld = "<tr><td valign=\"top\"><img src=\"/images/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"></td>" +
	"<td valign=\"top\" class=\"txtbold\">Flash</td>" +
	"<td class=txt>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/get_flashplayer.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Flash Player\"></a><br><br></td></tr>";

var FlashOK1 = "<tr><td valign=\"top\"><img src=\"/images/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"></td>" +
"<td valign=\"top\" class=\"txtbold\">Flash</td>" +
"<td class=\"txt\">Flash Version: ";
var FlashOK2 ="<br><br>Your version of the Flash Player is up to date.<br><br></td></tr>";
		

var FlashUnknown = "<tr><td valign=\"top\"><img src=\"/images/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"></td>" +
	"<td valign=\"top\" class=\"txtbold\">Flash</td>" +
	"<td class=txt>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:<br><br><a href=\"javascript:popup('http://www.macromedia.com/go/getflashplayer/')\"><img src=\"/images/get_flashplayer.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Flash Player\"></a></td></tr>";


var FlashObject1 = "<tr><td colspan=\"3\"><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=\"/af/content/tools/utilities/gameConnectionTest.swf?loadURL=http://";

var FlashObject2 = "/af/servlet/gamehost\"> " +
    "<param NAME=menu VALUE=false> <param NAME=quality VALUE=high> <param NAME=bgcolor VALUE=#FFFFFF> " +
    //"<param name='wmode' value='transparent'>" +
    "<embed SRC=\"/af/content/tools/utilities/gameConnectionTest.swf?loadURL=http://";

var FlashObject3 = "/af/servlet/gamehost\" " +
	"MENU=false QUALITY=high BGCOLOR=#FFFFFF WIDTH=700 HEIGHT=108 " +
    //"WMODE=transparent " +
    "TYPE=\"application/x-shockwave-flash\" " +
	"PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"> " +
	"</embed></object><td>";

// added for ie sp1b
function writeConfigFlash(host)
{
    document.write(FlashObject1 + host + FlashObject2 + host + FlashObject3);
}

function writeFlashOK(versionStr){
	
	document.write(FlashOK1+versionStr+FlashOK2);
	
}

function writeFlashOldAuto(versionStr){
	
	document.write(FlashOldAuto1+versionStr+FlashOldAuto2);
	
}

function writeFlashOldManul(versionStr){
	
	document.write(FlashOldManul1+versionStr+FlashOldManul2);
	
}

function writeFlashRecm(versionStr){
	
	document.write(FlashRecm1+versionStr+FlashRecm2);
	
}

function writeFlashManulRecm(versionStr){
	
	document.write(FlashRecmManul1+versionStr+FlashRecmManul2);
	
}

var JavascriptOK = "<tr><td valign=\"top\"><img src=\"/images/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Javascript</td>" +
    "<td class=\"txt\">Javascript is enabled in this browser.</td></tr>";

var CookieOK = "<tr><td valign=\"top\"><img src=\"/images/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Cookies</td>" +
    "<td class=\"txt\">Cookies are enabled in this browser.</td></tr>";

var CookieFailure = "<tr>" +
    "<td valign=\"top\"><img src=\"/images/config_fail.gif\"" + "width=\"17\" height=\"14\" alt=\"Please Check\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Cookies</td>" +
    "<td class=\"txt\">Cookies are not enabled on your Web browser. You'll " +
    "need cookies to use this site. " +
    "Please follow the steps in <a href='/af/support/js_steps.jsp#cookies'>this link</a> to enable Cookies." +
    "</td>" +
    "</tr>";

var AcrobatOK = "<tr><td valign=\"top\"><img src=\"/images/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Adobe Acrobat</td>" +
    "<td class=\"txt\">Your version of Adobe Acrobat Reader is up-to-date.</td></tr>";

var AcrobatOld = "<tr><td valign=\"top\"><img src=\"/images/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Adobe Acrobat</td>" +
    "<td class=\"txt\">Your version of Adobe Acrobat Reader is not sufficient to view the Expanded Readings on this site.  Please click the button below to upgrade to Acrobat Reader version 5.0.<br><br><a href=\"javascript:popup('http://www.adobe.com/products/acrobat/readstep.html')\"><img src=\"/images/getacro.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Acrobat Reader\"></a></td>";

var AcrobatUnknown = "<tr><td valign=\"top\"><img src=\"/images/config_notknown.gif\" width=\"17\" height=\"14\" alt=\"Can\'t Determine Status\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Adobe Acrobat</td>" +
        "<td class=\"txt\">We cannot determine if you have the correct version of Adobe Acrobat Reader.  Please click <a href=\"javascript:popup('adobe.pdf')\" class=txtbold>here</a> to load a separate test page.  If the page loads correctly, you will be able to view all of the readings on this site.  If the page does not load correctly, please click the button below to upgrade to Acrobat Reader version 5.0.<br><br><a href=\"javascript:popup('http://www.adobe.com/products/acrobat/readstep.html')\"><img src=\"/images/getacro.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"Get Acrobat Reader\"></a></td></tr>";

var ScreenOK = "<tr><td valign=\"top\"><img src=\"/images/config_success.gif\" width=\"17\" height=\"14\" alt=\"OK\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Screen Resolution</td>" +
        "<td class=\"txt\">Your screen resolution will allow you to view our site without problems.</td></tr>";

var ScreenFailureMac = "<tr>" +
    "<td valign=\"top\"><img src=\"/images/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Screen Resolution</td>" +
    "<td class=\"txt\">Your screen resolution is below the recommended size of <b>800 x 600</b>.  You will have difficulty viewing this site adequately.  In order to increase your resolution, please do the following:<br>"+
    "<ol class=\"txt\">" +
        "<li>Click the <b>apple</b> in the upper left corner of your screen, go down to <b>System Preferences...</b>.</li>" +
        "<li>Click <b>Displays</b> on the top pane.</li>" +
        "<li>Click the <b>Display</b> button.</li>" +
        "<li>Under <b>Resolutions</b>, choose a value of <b>800 x 600</b> or greater.</li>" +
        "<li>Click <b>OK</b>.</li>" +
        "<li>Click <b>Confirm</b> if the screen displays properly.</li>" +
        "<li>Close the Display window.</li>" +
    "</ol>" +
    "</td></tr>";

var ScreenFailureWin = "<tr><td valign=\"top\"><img src=\"/images/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Screen Resolution</td>" +
        "<td class=\"txt\">Your screen resolution is below the recommended size of <b>800 x 600</b>.  You will have difficulty viewing this site adequately.  In order to increase your resolution, please do the following:<br>"+
"<ol class=\"txt\">" +
        "<li>Click the <b>Start</b> button in the lower left corner of your screen.</li>" +
          "<li>Select <b>Settings</b> and then <b>Control Panel</b>.</li>" +
          "<li>Double-click the <b>Display</b> icon.</li>" +
          "<li>Click the <b>Settings</b> tab.</li>" +
          "<li>On the right side, there will be a slider bar in an area titled <b>Screen resolution</b>, <b>Screen Area</b>, or <b>Desktop Area</b>.  Slide the bar to the right until the numbers read <b>800 x 600</b> or greater.</li>" +
          "<li>Click the <b>OK</b> button and follow the instructions to finish changing your screen resolution.</li></ol></td></tr>";

var ScreenFailureOther = "<tr><td valign=\"top\"><img src=\"/images/config_fail.gif\" width=\"17\" height=\"14\" alt=\"Please Check\"></td>" +
    "<td valign=\"top\" class=\"txtbold\">Screen Resolution</td>" +
        "<td class=\"txt\">Your screen resolution is below the recommended size of <b>800 x 600</b>.  You will have difficulty viewing this site adequately.  If you need assistance with increasing your screen resolution, please consult your computer support department.<br><br></td></tr>";
