function WriteMain()
{
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="950" height="700"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="HomePage.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000155" />'
    + '<embed src="HomePage.swf" quality="high" bgcolor="#000155" '
    + 'width="950" height="700" name="HomePage" align="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
}

function MainStage()
{
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="950" height="700"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="http://www.q-principle.com/MainStage.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#00006E" />'
    + '<embed src="http://www.q-principle.com/MainStage.swf" quality="high" bgcolor="#00006E" '
    + 'width="950" height="700" name="MainStage" align="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
}

function CheckFlashVer()
{
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if (!hasRightVersion)
	{
	 // flash is too old or we can't detect the plugin
    var alternateContent = "<div id=\"noflash\">You must have Adobe Flash 8.0 or higher to run this page.  Please download the latest version of Flash.<br />"
   	+ "<p><a target=\"_blank\" href=\"http://www.macromedia.com/go/getflash/\"><img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Flash\" border=0 /></a></p></div>";
    document.write(alternateContent);  // insert non-flash content
	}
	
	return hasRightVersion;
}
