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='http://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='http://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='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED></OBJECT>")
			
	}
	catch(ex)
	{
	}
}
