var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<div class="flashmap"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="656" height="354"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/index.swf" /><param name="quality" value="high" /><param name="allowScriptAccess" value="always" /><param name="bgcolor" value="#ffffff" />'
    + '<embed src="/flash/index.swf" quality="high" bgcolor="#ffffff" '
    + 'width="656" height="354" name="map" align="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="always"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>'
	+ '<\/div>';
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<div class="flash-replace"><div class="fr-left"><ul><li><a href="/about.html">About Us</a></li><li><a href="/services.html">Services</a></li><li><a href="/portfolio.html">Portfolio</a></li><li><a href="/news.html">News</a></li><li><a href="/contact.html">Contact</a></li><li><a href="/client/">Client Area</a></li></ul></div><div class="fr-right">You need an up-to-date version of flash player<br />to view this site fully. you can get this from Adobe\'s website by clicking<br /><a href="http://www.adobe.com/go/EN_US-H-GET-FLASH" target="_blank">here</a></div></div>';
    document.write(alternateContent);  // insert non-flash content
  }