// JavaScript Document

function acFlash(movieName, movieWidth, movieHeight) {
	var movieID = movieName.replace(/.swf/g, "");
	//alert(movieWidth);
	document.write('<table widht="100%" height="100%" align="center"><tr><td align="center">');
	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="'+movieWidth+'" height="'+movieHeight+'" id="'+movieID+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+movieName+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#000000" />');
	document.write('<param name="menu" value="false" />');
	/*document.write('<embed src="movie/'+movieName+'" quality="high" bgcolor="#ffffff" width="'+movieWidth+'" height="'+movieHeight+'" name="'+movieID+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');*/
	document.write('<embed src="'+movieName+'" quality="high" bgcolor="#000000" width="'+movieWidth+'" height="'+movieHeight+'" name="'+movieID+'" swLiveConnect=true align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	document.write('</tr></td></table>');
}

function set() {
 var w = 860; var h = 540; var movie = "loader.swf?role=web";
 acFlash(movie, w, h); 
}

//------------------------------------------------
// detect flash version
//------------------------------------------------


var MM_contentVersion = 7;
var MM_FlashCanPlay = false;

function validVer() {
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		MM_PluginVersion = words[i]; 
	    }
	    MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
 }
}