function drawControlObj(w,h,objectId,embedId, filePath, wMode, display, position)
{
	try
	{
		if(wMode==undefined)
			wMode = '' 
		if(display==undefined)
			display = ''	
		if(position==undefined)	
			position = 'relative'
		document.write("<OBJECT style='position:"+position+";display:"+display+"' CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ID='"+objectId+"' WIDTH='"+w+"' HEIGHT='"+h+"'>\n");
		document.write("<PARAM NAME='movie' VALUE='"+filePath+"'>");
		document.write("<PARAM NAME=play VALUE=true>");
		document.write("<PARAM NAME=loop VALUE=true>");
		document.write("<PARAM NAME=menu VALUE=false>");
		if (wMode=='transparent')
			document.write("<PARAM NAME=wmode VALUE=transparent>");
		document.write("<PARAM NAME=quality VALUE=high>");
		if (wMode=='transparent')
			document.write("<EMBED wMode='transparent' SRC='"+filePath+"' id='"+embedId+"' type=application/x-shockwave-flash  SWLiveConnect=TRUE play=true loop=false menu=false  WIDTH='"+w+"' HEIGHT='"+h+"' quality=best bgcolor=#ffffff loop=true pluginspage='https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED></OBJECT>")
		else
			document.write("<EMBED SRC='"+filePath+"' id='"+embedId+"' type=application/x-shockwave-flash  SWLiveConnect=TRUE play=true loop=false menu=false  WIDTH='"+w+"' HEIGHT='"+h+"' quality=best bgcolor=#ffffff loop=true pluginspage='https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED></OBJECT>")
			
	}
	catch(ex)
	{
	}
}

function drawControlObjVideo(w,h,filePath){
	try{
		document.write("<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='"+w+"' HEIGHT='"+h+"'>\n");
		document.write("<PARAM NAME='movie' VALUE='"+filePath+"'>");
		document.write("<PARAM NAME='wmode' VALUE='transparent'>");
		document.write("<EMBED wMode='transparent' SRC='"+filePath+"' type=application/x-shockwave-flash WIDTH='"+w+"' HEIGHT='"+h+"'></EMBED></OBJECT>")
	}
	catch(ex){}
}

function drawControlObjVideo2(w,h,filePath){
	try{
		document.write("<OBJECT WIDTH='"+w+"' HEIGHT='"+h+"' CLASSID=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95 codebase='https://www.microsoft.com/ntserver/netshow/download/en/nsmp2inf.cab#Version=5,1,51,415' standby='Loading Microsoft Media Player components...' type='application/x-oleobject' VIEWASTEXT>");
		document.write("<PARAM NAME=FileName VALUE='"+filePath+"'>");
		document.write("<PARAM NAME=AutoStart VALUE='True'>");
		document.write("<PARAM NAME='AnimationAtStart' VALUE='True'>");
		document.write("<PARAM NAME='ShowControls' VALUE='0'>");
		document.write("<PARAM NAME='ShowDisplay' VALUE='0'>");
		document.write("<PARAM NAME='ShowStatusBar' VALUE='0'>");
		document.write("<PARAM NAME='width' VALUE='"+w+"'>");
		document.write("<PARAM NAME='height' VALUE='"+h+"'>");
		document.write("<PARAM NAME='displaySize' Value='0'>");
		document.write("<PARAM NAME='AutoSize' VALUE='0'>");
		document.write("<embed src='"+filePath+"' height='"+h+"' width='"+w+"' controller='false' loop='false' cache='true' kioskmode='true' autostart='true'>");
		document.write("</OBJECT>");
	}
	catch(ex){}
}




