var flashinstalled = 0;

var flashversion = 0;

if(navigator.plugins && navigator.plugins.length) {

	

	x = navigator.plugins["Shockwave Flash"];



	if(x) {

		flashinstalled = 2;

		if(x.description) {

			y = x.description;

			flashversion = y.charAt(y.indexOf('.')-1);
			
			if (y.charAt(y.indexOf('.')-2))
			{
				flashversion = y.charAt(y.indexOf('.')-2)+flashversion;
			}
			
		}

	}

	else {

		flashinstalled = 1;

	}


	if(navigator.plugins["Shockwave Flash 2.0"]) {

		flashinstalled = 2;

		flashversion = 2;

	}

}

else if(navigator.mimeTypes && navigator.mimeTypes.length) {



	x = navigator.mimeTypes['application/x-shockwave-flash'];



	if(x && x.enabledPlugin) {

		flashinstalled = 2;

	}

	else {

		flashinstalled = 1;

	}

}

else {



	var MSDetect = "true";



	document.writeln('<script type="text/vbscript">');

	document.writeln('on error resume next');

	document.writeln('If MSDetect = "true" Then');

	document.writeln('For i = 2 to 20');

	document.writeln('If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then');

	document.writeln('Else');

	document.writeln('flashinstalled = 2');

	document.writeln('flashversion = i');

	document.writeln('End If');

	document.writeln('Next');

	document.writeln('End If');

	document.writeln('If flashinstalled = 0 Then');

	document.writeln('flashinstalled = 1');

	document.writeln('End If');

	document.writeln('</script>');



}



function axobject(strS, strI, strE, alt, requested_version) {



	if((flashinstalled == 2 && flashversion >= requested_version) || !requested_version) {



		document.write(strS + strI + strE);



	}

	else {



		strSr = strS.replace(/_con/, '_con_noplugin');

		document.write(strSr + '<p class="axobject_alt_noplugin">' + alt + '</p>' + strE);



	}

}
