// -----------------------------------------------------------------------------
// 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 RunFlashLeft() {
	// 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="356" height="381" id="splash_main_left" align="middle">\n');
		document.write('<param name="flashvars" value="myXMLFile=splash_main_left.xml" />\n');
		document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
		document.write('<param name="movie" value="splash_main_left.swf" />\n');
		document.write('<param name="menu" value="false" />\n');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="scale" value="noscale" />\n');
		document.write('<param name="bgcolor" value="#e4e4d6" />\n');
		document.write('<param name="WMode" value="Transparent" />\n');
		document.write('<embed src="splash_main_left.swf" flashvars="myXMLFile=splash_main_left.xml" menu="false" quality="high" scale="noscale" bgcolor="#e4e4d6" width="356" height="381" 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 = '<img src="splash/home_main_left_1.jpg" border="0" alt="" />';
		document.write(alternateContent);  // insert non-flash content
	}
}

function RunFlashRight() {
	// 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="582" height="381" id="splash_main_right" align="middle">\n');
		document.write('<param name="flashvars" value="myXMLFile=splash_main_right.xml" />\n');
		document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
		document.write('<param name="movie" value="splash_main_right.swf" />\n');
		document.write('<param name="menu" value="false" />\n');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="scale" value="noscale" />\n');
		document.write('<param name="bgcolor" value="#e4e4d6" />\n');
		document.write('<param name="WMode" value="Transparent" />\n');
		document.write('<embed src="splash_main_right.swf" flashvars="myXMLFile=splash_main_right.xml" menu="false" quality="high" scale="noscale" bgcolor="#e4e4d6" width="582" height="381" 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 = '<img src="splash/home_main_right_1.jpg" border="0" alt="" />';
		document.write(alternateContent);  // insert non-flash content
	}
}
