var requiredVersion = 6;			  //set the minMajor version of the plugin you require
var maxVersion = 99;				  //set the maxMajor version of the plugin you require
// ********************************
// no touch for you	
var minVersion = 2;
for (var i=minVersion; i<=maxVersion; i++) {
	eval("gotFlash" + i + " = false");
}
var actualVersion = null;		
var rightVersion = false;	
var ie = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var win = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
var html;
// ********************************
				
if (ie) { 
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	for (var j=minVersion; j<=maxVersion; j++) {
		document.write('gotFlash'+j+' = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+j+'"))) \n');
	}
	document.write('</SCR' + 'IPT\> \n');
}

function gotFlash() {	
	if (navigator.plugins) {								
		if ((navigator.plugins["Shockwave Flash 2.0"]) || (navigator.plugins["Shockwave Flash"])) {	
			var ver2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDesc = navigator.plugins["Shockwave Flash" + ver2].description;
			var curVersion = parseInt(flashDesc.charAt(flashDesc.indexOf(".") - 1));
			for(var k=minVersion; k<=maxVersion; k++){
				eval("gotFlash" + k + " = curVersion == " + k);
			}
		}
	}
	for (var l = 2; l <= maxVersion; l++) {	
		if (eval("gotFlash" + l) == true) {
			actualVersion = l;
		}
	}
	if (actualVersion >= requiredVersion) {
		rightVersion = true;
	}

	// begin test 
	// alert("rightVersion: " + rightVersion)
	// alert("version detected: " + actualVersion);
	// end test 
					
}
				
gotFlash();	
				
if (rightVersion) {	
	html = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	html = html + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
	html = html + 'WIDTH="192" HEIGHT="160" id="trailersplash" ALIGN="middle"> ';
	html = html + '<PARAM NAME=movie VALUE="trailersplash.swf">';
	html = html + '<param name="allowScriptAccess" value="sameDomain">';
	html = html + '<PARAM NAME=quality VALUE=high> ';
	html = html + '<PARAM NAME=bgcolor VALUE=#000000> ';
	html = html + '<EMBED src="trailersplash.swf" quality=high bgcolor=#B11E24 ';
	html = html + 'WIDTH="192" HEIGHT="160" NAME="trailersplash" ALIGN="middle" ';
	html = html + 'TYPE="application/x-shockwave-flash" ';
	html = html + 'allowScriptAccess="sameDomain" ';
	html = html + 'PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';
	document.write(html);
} else {

}