function flashMovie(fid,src,wid,hei,fvs,wmd) { 
this.fPrint = ''; 
this.Id = document.getElementById(fid); 
this.Src = src; 
this.Width = wid; 
this.Height = hei; 
this.FlashVars = (fvs != undefined)? fvs :''; 
this.Wmod = (wmd != undefined)? wmd :''; 
if(isObject(Id)) { 
fPrint = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'; 
fPrint += ' width="'+Width+'"'; 
fPrint += ' height="'+Height+'">'; 
fPrint += '<param name="movie" value="'+Src+'">'; 
fPrint += '<param name="quality" value="high">';
fPrint += '<param name="allowScriptAccess" value="always" />';
fPrint += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : ''; 
fPrint += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : ''; 
fPrint += '<embed'; 
fPrint += fPrint + ' src="'+Src+'"'; 
fPrint += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : ''; 
fPrint += (Wmod != null) ? ' wmode="'+Wmod+'"' : ''; 
fPrint += ' quality="high" name="allowScriptAccess" value="always" '; 
fPrint += ' pluginspage="http://www.macromedia.com/go/getflashplayer"'; 
fPrint += ' type="application/x-shockwave-flash"'; 
fPrint += ' width="'+Width+'"'; 
fPrint += ' height="'+Height+'"'; 
fPrint += '></embed>'; 
fPrint += '</object>'; 
Id.innerHTML = fPrint; 
} 
} 

function isObject(a) { 
return (a && typeof a == 'object'); 
} 


/***********************************************************************************************************
# Flash 
***********************************************************************************************************/
function convertflash(divId,widht,height,id,movieV,dataXML)
{
	obj = divId;
	var myObjectElement = document.createElement('<OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + widht + '" height="' + height + '" id="' + id +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"></OBJECT>');
	var myParamElement1 = document.createElement('<PARAM NAME="FlashVars"   VALUE="' + dataXML + '">');
	var myParamElement2 = document.createElement('<PARAM NAME="movie"   VALUE="' + movieV + '">');
	var myParamElement3 = document.createElement('<PARAM NAME="quality" VALUE="high">');
	var myParamElement4 = document.createElement('<PARAM NAME="bgcolor"   VALUE="#FFFFFF">');

	myObjectElement.appendChild(myParamElement1);
	myObjectElement.appendChild(myParamElement2);
	myObjectElement.appendChild(myParamElement3);
	myObjectElement.appendChild(myParamElement4);
	
	obj.appendChild(myObjectElement);
}
