var majorVersion;



//if ms ie then use vbscript detection

if ((navigator.appVersion.indexOf("MSIE") != -1) && (navigator.appVersion.indexOf("Windows") != -1)) {

	var v2,v3,v4,v5,v6

	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');

	document.write('on error resume next \n');

	document.write('v2 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');

	document.write('v3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');

	document.write('v4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');

	document.write('v5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');  

	document.write('v6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');  

	document.write('</SCR' + 'IPT\> \n');

	//get current version

	var poss_versions = new Array (v2,v3,v4,v5,v6);

	for (var i=0;i<poss_versions.length;i++)

		if (poss_versions[i]) majorVersion = (i + 2)

} 

//if no ms ie then look for plugins object

else if (navigator.plugins) {

	//then look for flash player

	if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { 

		var isV2 = (navigator.plugins["Shockwave Flash 2.0"]) ? (" 2.0") : ("");

		var flashDescription = navigator.plugins["Shockwave Flash" + isV2].description;

		majorVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));

	}

}



var plugin = 0;

if (majorVersion >= 6) plugin = -1;

