// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// -----------------------------------------------------------------------------

// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

function RunFlash() {
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="950" height="368" id="slideshow" align="middle">\n');
		document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
		document.write('<param name="movie" value="home.swf" />\n');
		document.write('<param name="loop" value="false" />\n');
		document.write('<param name="menu" value="false" />\n');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="bgcolor" value="#666666" />\n');
		document.write('<param name="WMode" value="Transparent" />\n');
		document.write('<embed src="home.swf" loop="false" menu="false" quality="high" bgcolor="#666666" width="950" height="368" name="slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />\n');
		document.write('</object>');
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = ''
		+ ''
		+ '<div style="position: absolute; top: 0px; left: 0px; z-index: 6;">'
		+ '	<br />'
		+ '	<div style="position: absolute; left: 185px;">'
		+ '		<img src="spacer.gif" class="PNGImage" name="home_splash_default_butdescr" id="home_splash_default_butdescr" border="0" alt="" />'
		+ '	</div>'
		+ '	<a href="markets_medical.asp" onmouseover="switchimage(\'home_splash_default_butmed\',\'home_splash_default_butmed_over.jpg\');switchimage(\'home_splash_default_butdescr\',\'home_splash_default_butmed_info.png\');" onmouseout="switchimage(\'home_splash_default_butmed\',\'home_splash_default_butmed_out.jpg\');switchimage(\'home_splash_default_butdescr\',\'spacer.gif\');"><img src="home_splash_default_butmed_out.jpg" name="home_splash_default_butmed" id="home_splash_default_butmed" border="0" alt="Medical" /></a><br />'
		+ '	<a href="markets_military.asp" onmouseover="switchimage(\'home_splash_default_butmil\',\'home_splash_default_butmil_over.jpg\');switchimage(\'home_splash_default_butdescr\',\'home_splash_default_butmil_info.png\');" onmouseout="switchimage(\'home_splash_default_butmil\',\'home_splash_default_butmil_out.jpg\');switchimage(\'home_splash_default_butdescr\',\'spacer.gif\');"><img src="home_splash_default_butmil_out.jpg" name="home_splash_default_butmil" id="home_splash_default_butmil" border="0" alt="Military" /></a><br />'
		+ '	<a href="markets_space.asp" onmouseover="switchimage(\'home_splash_default_butspa\',\'home_splash_default_butspa_over.jpg\');switchimage(\'home_splash_default_butdescr\',\'home_splash_default_butspa_info.png\');" onmouseout="switchimage(\'home_splash_default_butspa\',\'home_splash_default_butspa_out.jpg\');switchimage(\'home_splash_default_butdescr\',\'spacer.gif\');"><img src="home_splash_default_butspa_out.jpg" name="home_splash_default_butspa" id="home_splash_default_butspa" border="0" alt="Space" /></a><br />'
		+ '	<a href="markets_industrial.asp" onmouseover="switchimage(\'home_splash_default_butind\',\'home_splash_default_butind_over.jpg\');switchimage(\'home_splash_default_butdescr\',\'home_splash_default_butind_info.png\');" onmouseout="switchimage(\'home_splash_default_butind\',\'home_splash_default_butind_out.jpg\');switchimage(\'home_splash_default_butdescr\',\'spacer.gif\');"><img src="home_splash_default_butind_out.jpg" name="home_splash_default_butind" id="home_splash_default_butind" border="0" alt="Industrial" /></a><br />'
		+ '</div>'
		+ '<img src="home_splash_default_bg.jpg" border="0" alt="" />';
		document.write(alternateContent);  // insert non-flash content
	}
}

function RunApplet() {
	document.write('<APPLET code="NewsScroller.class" id="awmflash1" width="271" height="100" VIEWASTEXT>\n');
	document.write('<PARAM name="SCROLLBY" value="1">\n');
	document.write('<PARAM name="SLEEPTIME" value="60">\n');
	document.write('<PARAM name="TOPPAUSE" value="3000">\n');
	document.write('<PARAM name="BACKGROUND" value="#4778A0">\n');
	document.write('<PARAM name="FOREGROUND" value="#FFFFFF">\n');
	document.write('<PARAM name="FONT" value="Verdana">\n');
	document.write('<PARAM name="HEADCOLOR" value="#FFFFFF">\n');
	document.write('<PARAM name="CLICKCOLOR" value="#D1EAFF">\n');
	document.write('<PARAM name="FONTSIZE" value="11">\n');
	document.write('<PARAM name="MOUSEPAUSE" value="true">\n');
	document.write('</APPLET>');
}