// disables the "Click to activate and use this control" mesage from IE browzers for MediaPlayer and MacromediaFlash content.

function NoClick(URL, WIDTH, HEIGHT, TYPE, CLSID, CONTROL_MODE, BAR_QUALITY, AUTO) 
{

if (TYPE=="wmv")
	{
	document.write('<object id="MediaPlayer" Width='+WIDTH+' Height='+HEIGHT+'');
	document.write('CLASSID="'+CLSID+'"');
	document.write('TYPE="application/x-oleobject"');
	document.write('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">');
	document.write('<PARAM name="autoStart" value="'+AUTO+'">');
	document.write('<PARAM name="filename" value="'+URL+'">');
	document.write('<PARAM NAME="ShowControls" VALUE="'+CONTROL_MODE+'">');
	document.write('<PARAM NAME="ShowStatusBar" VALUE="'+BAR_QUALITY+'">');
	document.write('<EMBED TYPE="application/x-mplayer2" SRC="'+URL+'"');
	document.write('NAME="MediaPlayer" WIDTH="'+WIDTH+'" HEIGHT="'+HEIGHT+'"');
	document.write('autostart="'+AUTO+'" showcontrols="'+CONTROL_MODE+'" showstatusbar="'+BAR_QUALITY+'"></EMBED>');
	document.write('</OBJECT>');
 	return NoClick;
	}

else if (TYPE=="swf") 
	{
	document.write('<object id="MacromediaFlash"  classid="'+CLSID+'"');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
	document.write(' width="'+WIDTH+'" height="'+HEIGHT+'">');
	document.write('<param name=movie value="'+URL+'">');
	document.write('<param name="wmode" value="'+CONTROL_MODE+'">');
	document.write('<param name=quality value='+BAR_QUALITY+'>');
	document.write('<embed name="MacroMediaFlash" wmode="'+CONTROL_MODE+'" src="'+URL+'" quality='+BAR_QUALITY+'');
	document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
	document.write('type="application/x-shockwave-flash" width="'+WIDTH+'" height="'+HEIGHT+'"></embed>');
	document.write('</object>');
	return NoClick;
	}

else
	{
	document.write('<em>');
	document.write("not a valid media type.");
	document.write('<br>');
	document.write("wmv or swf only");
	document.write('</em>');
	}

}
