var MM_FlashControlInstalled;	

var MM_FlashControlVersion;

function MM_FlashInfo()

{

	if (navigator.plugins && navigator.plugins.length > 0){

			this.implementation = "Plug-in";

			this.autoInstallable = false;	

		if (navigator.plugins["Shockwave Flash"]){

			this.installed = true;

			var words =

			navigator.plugins["Shockwave Flash"].description.split(" ");

			for (var i = 0; i < words.length; ++i){

				if (isNaN(parseInt(words[i])))continue;

				this.version = words[i];

				this.revision = parseInt(words[i + 1].substring(1));

			}

		} else {

			this.installed = false;

		}

	} else if (MM_FlashControlInstalled != null) {

		this.implementation = "ActiveX control";

		this.installed = MM_FlashControlInstalled;

		if (MM_FlashControlVersion) this.version = MM_FlashControlVersion;

		this.autoInstallable = true;

	} 

}

function isPlaying(contVer) {

	var myPlugin = new MM_FlashInfo();

	if (myPlugin.installed != null && myPlugin.installed) {

		if (myPlugin.version >= contVer) {

			return true;

//			return false;

		}

	}

	return false;

}

function loadMovie(fname, wsize, hsize, bgcolor,vars,isCache) {

//NN2 + MacIE

	var html = "";

	var myvars;

	if(vars != ""){

	 myvars = "?";

	 if(isCache) vars += "&cachcancel=" + (new Date).getTime();

	}

	html += '		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + wsize + '" height="' + hsize + '" id="top-05" >';

	html += '			<param name="movie" value="' + fname + myvars + vars + '">';

	html += '			<param name="flashvars" value="' + vars + '">';

	html += '			<param name="loop" value="false">';

	html += '			<param name="menu" value="false">';

	html += '			<param name="quality" value="high">';

	html += '			<param name="devicefont" value="true">';

	html += '			<param name="bgcolor" value="' + bgcolor + '">';

	html += '			<embed src="' + fname + myvars + vars + '" flashvars="'+ vars +'" loop="false" menu="false" quality="high" devicefont="true" bgcolor="' + bgcolor + '" width="' + wsize + '" height="' + hsize + '" name="top-05" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';

	html += '		<\/object>';

	document.open();

	document.write(html);

	document.close();

}