function InsertFlash()
{
   var holderID = arguments[0];
   var swfFile = ((typeof arguments[1]) == 'string' ? arguments[1] : arguments[1][0]);
   var flashVars = ((typeof arguments[1]) == 'string' ? "myVarHolder=0" : arguments[1][1]);
   var width = arguments[2];
   var height = arguments[3];
   var movieID = "noID";
   if(arguments.length == 5) movieID = arguments[4];
   var path = document.location.href.substring(0,document.location.href.lastIndexOf('/')+1);
   var objectHTML = ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width.toString()+'" height="'+height.toString()+'" id="'+movieID+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+(path+swfFile)+'" /><param name="quality" value="high" /><param name="FlashVars" value="'+flashVars+'" /><embed src="'+(path+swfFile)+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" width="'+width.toString()+'" height="'+height.toString()+'" name="'+movieID+'" FlashVars="'+flashVars+'"></embed></object>');

   var oDiv =  document.getElementById(holderID);
   
   oDiv.innerHTML = '';
   oDiv.innerHTML = objectHTML;
}