﻿
			 							
function writeflash() {									
    // Version check based upon the values entered above in "Globals"
    var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    // Check to see if the version meets the requirements for playback
    if (hasReqestedVersion) {				// if we've detected an acceptable version
        document.write('<object onclick="if(document.getElementById(\'crf\').style.display==\'block\'){fade(10,-1,\'crf\');}" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="600" id="site" align="middle">');
        document.write('<param name="allowScriptAccess" value="sameDomain" />');
        document.write('<param name="movie" value="menu.swf" />');
        document.write('<param name="menu" value="false" />');
        document.write('<param name="quality" value="high" />');
        document.write('<param name="wmode" value="transparent" />');
        document.write('<param name="bgcolor" value="#ffffff" />');
        document.write('<embed src="menu.swf" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="900" height="600" name="site" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
        document.write('</object>');
    } else {									// flash is too old or we can't detect the plugin
        var alternateContent = '<a style="display:block;position:absolute;margin:-150px 0 0 -200px;width:400px;left:50%;top:35%;height:300px;border:1px solid #fff;background:#000;color;fff;font-family:verdana;text-decoration:none;" target="_blank" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW"><center style="padding:90px 20px 0px 20px;color:#fff;display:block;">This website requires<br/>Adobe Flash player 8 or higher<br/>Click on the icon to download<br><br/><img style="border:none;" src="flash.gif"/></center></a>'
        document.write(alternateContent);		// insert non-flash content
    }
}