﻿// JScript File
<!--
function loadFlashAnyGlobal( root, file, bgColor )
{
    var width = 600;
    var height = 450;
    //var bgColor = '#784aa8';

    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    
    if(hasRightVersion) {  // if we've detected an acceptable version
        var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width
                     + '" height="' + height + '" id="flashPage" align="middle" wmode="transparent">'
                     + '<param name="allowScriptAccess" value="sameDomain" />'
                     + '<param name="movie" value="' + root + file + '" />'
                     + '<param name="wmode" value="transparent" />'
                     + '<param name="quality" value="high" /><param name="bgcolor" value="' + bgColor + '" />'
                     + '<embed src="'+ root + file + '" quality="high" bgcolor="' + bgColor + '" width="'+width+'" height="'
                     + height + '" name="flashPage"'
                     + ' align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"  wmode="transparent"/>'
                     + '</object>';
        document.write(oeTags);   // embed the flash movie
    } else {  // flash is too old or we can't detect the plugin
        var alternateContent = 'Alternate HTML content should be placed here.'
  	    + 'This content requires the Macromedia Flash Player.'
   	    + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
        document.write(alternateContent);  // insert non-flash content
    }
}
-->
