

var swfsrc = '/img/top.swf';
var imgsrc = '/img/body_intro.jpg';
var version = 8;
var width = 513;
var height = 341;
var priority = true;
var msg = 'FLASH';//
var FlashVars = 'version=' + version;//
flashWrite();
//------------------------------------------------------------------------------
function flashWrite() {
	if(navigator.userAgent.indexOf("Windows")>=0){
		document.write('<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
		document.write(' codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + version + ',0,0,0" ');
		document.write(' WIDTH=' + width + ' HEIGHT=' + height + '>');
		document.write('<PARAM NAME=movie VALUE="'+ swfsrc +'"><param name=wmode value=opaque><PARAM NAME=loop VALUE=true><PARAM NAME=quality VALUE=high><PARAM NAME=FlashVars VALUE="' + FlashVars + '">'); 
		document.write('<EMBED src="' + swfsrc + '" loop=true wmode=opaque quality=high');
		document.write(' swLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height);
		document.write(' FlashVars="' + FlashVars + '"');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">');
		document.write('<NOEMBED>');

		if(priority){
			document.write('<a href="http://www.macromedia.com/go/getflashplayer" target="_blank">' + msg + '</a>');
		}else{
			document.write('<a href="http://www.macromedia.com/go/getflashplayer" target="_blank"><img border="0" src="' + imgsrc + '" width="' + width + '" height="' + height + '" alt="' + msg + '"></a>');
		}


		document.write('</NOEMBED>');
		document.write('</EMBED>');
		document.write('</OBJECT>');
	}else{
		document.write('<EMBED src="' + swfsrc + '" loop=true wmode=opaque quality=high');
		document.write(' swLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height);
		document.write(' FlashVars="' + FlashVars + '"');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">');
		document.write('<NOEMBED>');

		if(priority){
			document.write('<a href="http://www.macromedia.com/go/getflashplayer" target="_blank">' + msg + '</a>');
		}else{
			document.write('<a href="http://www.macromedia.com/go/getflashplayer" target="_blank"><img border="0" src="' + imgsrc + '" width="' + width + '" height="' + height + '" alt="' + msg + '"></a>');
		}

		document.write('</NOEMBED>');
		document.write('</EMBED>');
	}
}
//------------------------------------------------------------------------------

/*
flasharray = new Array('/img/top.swf');

var flashfile = flasharray[Math.floor(Math.random()*(flasharray.length))];

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if ( plugin ) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 8;
}else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && navigator.userAgent.indexOf("Windows")>=0) {
	if(document.all){
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")))\n');
		document.write('</SCRIPT\> \n');
	}
}

if ( plugin ) {
//	if(document.all){
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
		document.write(' ID=flash8clickTAG WIDTH=513 HEIGHT=341>');
		document.write(' <PARAM NAME=movie VALUE="'+ flashfile +'"><param name=wmode value=opaque><PARAM NAME=loop VALUE=true><PARAM NAME=quality VALUE=high>  '); 
		document.write(' <EMBED src="'+ flashfile +'" loop=true wmode=opaque quality=high  ');
		document.write(' swLiveConnect=FALSE WIDTH=513 HEIGHT=341');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
//	}
}
*/

