var plugins=new Object();
plugins.flash=0;

function AXO(){
	if (window.ActiveXObject) return true;
	else return false;
}
function newAXO(obj){
	if (eval("new ActiveXObject('"+obj+"');")) return true;
	else return false;
}
function createFlash(width,height,location,majorVersion){
	if (findFlash(majorVersion)){
		flashObject=""+
		"<OBJECT WIDTH="+width+" HEIGHT="+height+" CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" CODEBASE=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+majorVersion+",0,0,0\">\r"+
		"	<PARAM NAME=movie VALUE="+location+">\r"+
		"	<PARAM NAME=quality VALUE=high>\r"+
		"	<PARAM NAME=wmode VALUE=transparent>\r"+
		"	<PARAM NAME=scale VALUE=exactfit>\r"+
		"	<EMBED SRC="+location+" WIDTH="+width+" HEIGHT="+height+" SCALE=exactfit QUALITY=high WMODE=transparent TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>\r"+
		"</OBJECT>";
		return flashObject;
	}
}
function findFlash(version){
	if (plugins.flash>=version) return true;
	else return false;
}
if (AXO()){
	for (i=4; i<15; i++){
		try {
			if (newAXO('ShockwaveFlash.ShockwaveFlash.'+i+'')) plugins.flash=i;
		}
		catch(e){}
	}
}else if (navigator.plugins && navigator.plugins.length){
	np=navigator.plugins["Shockwave Flash"];
	if (np&&np.description) plugins.flash=np.description.charAt(np.description.indexOf('.')-1);
	if (navigator.plugins["Shockwave Flash 2.0"]) plugins.flash = 2;
}
