function getObj(oId){var d=document,el=d.getElementById?d.getElementById(oId):d.all?d.all[oId]:d[oId];if(el){return el;}}
//Create instance of Flash Control
// ### Create Instance of a Flash Object inside an HTML container object via script_
//	   Bypasses "Click to Activate Control" message in IE
// ### Usage: <script type="text/javascript">var oFlash=new insertFlashObject(['oContainerId','id','url','w','h','wmode']);</script>
// ### Notes: 'wmode' is an optional override and is not required when creating a new insertFlashObject call...simply end the array after 'h'...example: var oFlash=new insertFlashObject(['oContainerId','id','url','w','h']);
function insertFlashObject(args){
	var oContainerId=args[0]; //id of html element that will contain the new flash object
	var id	 		=args[1]; //id assigned to new flash object
	var url	 		=args[2]; //url of flash object
	var w	 		=args[3]; //width of flash object
	var h	 		=args[4]; //height of flash object
	var wmode		=args[5]?args[5]:'transparent'; //window mode of flash object (transparent, window)
	if(oContainerId.length>0)var oFlashContainer=getObj(oContainerId);
	if(oFlashContainer&&url){
		var oStartTag  = '<object type="application/x-shockwave-flash" id="'+id+'" data="'+url+'" width="'+w+'" height="'+h+'">'
		var strParams  = '<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+url+'" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="exactfit" /><param name="autoStart" value="true" /><param name="WMode" value="'+wmode+'" />';
		var oEndTag = '</object>';
		oFlashContainer.innerHTML=oStartTag+strParams+oEndTag;
	}
}