document.oncontextmenu = function(){return false}
document.onselectstart = function(){return false}
document.ondragstart = function(){return false}

function SetFlash(filename,width,height,bgcolor)
{
	
	var strFlash = "";
	strFlash +=	"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\""+width+"\" height=\""+height+"\" id=\"nv\" align=\"middle\">"+
						"<param name=\"movie\" value='"+filename+"' />"+
						"<param name=quality value=high />"+
						"<param name=\"bgcolor\" value=\"#"+bgcolor+"\" />"+
						"<embed src=\""+filename+"\" quality=high  pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\" name=\"nv\" align=\"middle\" bgcolor=\"#"+bgcolor+"\"></embed>"+
						"</object>";
	document.write(strFlash);
}

function SetPlayer(id, width,height)
{
	var strPlayer = "";
	strPlayer += "<OBJECT ID=\"Player\" WIDTH="+width+" HEIGHT="+height+" hspace=0 vspace=0 CLASSID=\"CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95\" STANDBY=\"Loading Windows Media Player components...\" TYPE=\"application/x-oleobject\"  codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112\">"+
						"	<PARAM NAME=ShowControls VALUE=0>"+
						"	<PARAM NAME=ShowGotoBar VALUE=0>"+
						"	<PARAM NAME=ShowStatusBar VALUE=1>"+
						"	<PARAM NAME=ControlType VALUE=2>"+
						"	<PARAM NAME=AutoStart value=1>"+
						"	<PARAM NAME=ShowDisplay value=0>"+
						"	<PARAM NAME=EnableContextMenu Value=false>"+
						"	<PARAM NAME=Volume value=5>"+
						"	<PARAM NAME=BufferingTime value=0>"+
						"	<Embed type=\"application/x-mplayer2\"  loop=\"true\" pluginspage=\"http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/\" Name=\""+id+"\" width=\""+width+"\" height=\""+height+"\" SHOWSTATUSBAR=\"-1\" SHOWCONTROLS=\"0\" SHOWGOTOBAR=\"0\" SHOWDISPLAY=\"-1\" INVOKEURLS=\"-1\" AUTOSTART=\"1\" CLICKTOPLAY=\"0\"></Embed>"+
						"	</OBJECT>";
	document.write(strPlayer);
}

function SetEmbedPlayer(id, width,height)
{
	var strEmbedPlayer = "";
	strEmbedPlayer += "<embed Embed type=\"application/x-mplayer2\" loop=\"true\" pluginspage=\"http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/\" Name=\""+id+"\" width="+width+" height="+height+">";
	document.write(strEmbedPlayer);
}
