<!--	

function RenderMultimediaObject(ObjecType, ObjectItemUrl, ObjectWidth, ObjectHeight, AlternativeImageUrl)
{
	var agt = navigator.userAgent.toLowerCase();
	var ie  = (agt.indexOf("msie") != -1);
	var ns  = (navigator.appName.indexOf("Netscape") != -1);
	var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
	var mac = (agt.indexOf("mac")!=-1);	
	var opera = (agt.indexOf("opera")!=-1);
	var mozilla = (agt.indexOf("mozilla")!=-1);
	
	var MM_FlashCanPlay = false;
	var MM_MediaPlayerCanPlay = false;
	if(opera) 
	{
		var MM_contentVersion = 6;
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		if ( plugin ) 
		{
			var words = navigator.plugins["Shockwave Flash"].description.split(" ");
			for (var i = 0; i < words.length; ++i)
			{
				if (isNaN(parseInt(words[i])))
					continue;
				var MM_PluginVersion = words[i]; 
			}
			MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
			
			MM_MediaPlayerCanPlay = (navigator.mimeTypes && navigator.mimeTypes["application/x-mplayer2"]) ? navigator.mimeTypes["application/x-mplayer2"].enabledPlugin : 0;
			
			
			if(ObjecType == "Flash")
			{
				if (MM_FlashCanPlay){
					document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
					document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
					document.write(' ID="script" WIDTH="' + ObjectWidth + '" HEIGHT="' + ObjectHeight + '" ALIGN="">');
					document.write(' <PARAM NAME=movie VALUE="' + ObjectItemUrl + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
					document.write(' <EMBED src="' + ObjectItemUrl + '" quality=high bgcolor=#FFFFFF  ');
					document.write(' swLiveConnect=FALSE WIDTH="' + ObjectWidth + '" HEIGHT="' + ObjectHeight + '" NAME="script" ALIGN=""');
					document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
					document.write(' </EMBED>');
					document.write(' </OBJECT>');
				}else
				{
					document.write("You need a plugin to view some content on this page. <a href='http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>Download Flash plugin here</a><br /><br />");
					document.write(AlternativeImageUrl);
				}
			}
			
			if(ObjecType == "Windows Media Player")
			{
				if (MM_MediaPlayerCanPlay){
					document.write('<OBJECT classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" TYPE="application/x-oleobject"');
					document.write(' ID="MediaPlayer" WIDTH="' + ObjectWidth + '" HEIGHT="' + ObjectHeight + '" ALIGN="">');
					document.write(' <PARAM NAME="FileName" VALUE="' + ObjectItemUrl + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
					document.write(' <EMBED src="' + ObjectItemUrl + '" quality=high bgcolor=#FFFFFF ');
					document.write(' WIDTH="' + ObjectWidth + '" HEIGHT="' + ObjectHeight + '" NAME="MediaPlayer" ALIGN=""');
					document.write(' TYPE="application/x-mplayer2" >');
					document.write(' </EMBED>');
					document.write(' </OBJECT>');
				}else
				{
					document.write("You need a plugin to view some content on this page. <a href='http://www.opera.com/support/search/view/434/'>Download Media Player plugin here</a><br /><br />");
					document.write(AlternativeImageUrl);
				}
			}
		}

	}
	if (ie && win) {	pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime") + detectIE("MediaPlayer.MediaPlayer.1","Windows Media Player") + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); }
	if (ns || !win) {
			nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
			pluginlist = detectNS("image/svg-xml","SVG Viewer") + detectNS("application/x-director","Shockwave Director") + detectNS("application/x-shockwave-flash","Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin","RealPlayer") + detectNS("video/quicktime","QuickTime") + detectNS("application/x-mplayer2","Windows Media Player") + detectNS("application/pdf","Acrobat Reader");
	}
	
	
	function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</SCRIPT>\n'); if (result) return name+','; else return ''; }
	function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }
	
	pluginlist += navigator.javaEnabled() ? "Java," : "";
	if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);
	
	if(ObjecType == "Flash")
	{
		if (pluginlist.indexOf(ObjecType)!=-1){
			document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
			document.write(' ID="script" WIDTH="' + ObjectWidth + '" HEIGHT="' + ObjectHeight + '" ALIGN="">');
			document.write(' <PARAM NAME=movie VALUE="' + ObjectItemUrl + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
			document.write(' <EMBED src="' + ObjectItemUrl + '" quality=high bgcolor=#FFFFFF  ');
			document.write(' swLiveConnect=FALSE WIDTH="' + ObjectWidth + '" HEIGHT="' + ObjectHeight + '" NAME="script" ALIGN=""');
			document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
			document.write(' </EMBED>');
			document.write(' </OBJECT>');
		}else
		{
			document.write("You need a plugin to view some content on this page. <a href='http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>Download Flash plugin here</a><br /><br />");
			document.write(AlternativeImageUrl);
		}
	}
	
	if(ObjecType == "Windows Media Player")
	{
		if (pluginlist.indexOf(ObjecType)!=-1){
			document.write('<OBJECT classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" TYPE="application/x-oleobject"');
			document.write(' ID="MediaPlayer" WIDTH="' + ObjectWidth + '" HEIGHT="' + ObjectHeight + '" ALIGN="">');
			document.write(' <PARAM NAME="FileName" VALUE="' + ObjectItemUrl + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
			document.write(' <EMBED src="' + ObjectItemUrl + '" quality=high bgcolor=#FFFFFF ');
			document.write(' WIDTH="' + ObjectWidth + '" HEIGHT="' + ObjectHeight + '" NAME="MediaPlayer" ALIGN=""');
			document.write(' TYPE="application/x-mplayer2" >');
			document.write(' </EMBED>');
			document.write(' </OBJECT>');
		}else
		{
			if( mozilla )
			{
				document.write("You need a plugin to view some content on this page. <a href='http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx'>Download Media Player plugin here</a><br /><br />");
			}
			document.write(AlternativeImageUrl);
		}
	}	

}
	
//-->
