
function getFlash(position, files, sizeX, sizeY)
{
	var myObjectElement = document.createElement('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+sizeX+'" height="'+sizeY+'">');
	var myParamElement1 = document.createElement('<PARAM NAME=movie  value="'+files+'">');  
	var myParamElement2 = document.createElement('<Param name=quality value="high">');
	var myParamElement3 = document.createElement('<param name="wmode" value="transparent">');
	myObjectElement.appendChild(myParamElement1);
	myObjectElement.appendChild(myParamElement2);
	myObjectElement.appendChild(myParamElement3);
	document.all[position].appendChild(myObjectElement);
}
function flash(url,width,height,id,wmode,otherParam){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id=ShockwaveFlash1>'
+'<param name="movie" value="'+url+'">'
+'<param name="quality" value="high">'
+'<param name="wmode" value="'+wmode+'">'
+'<param name="allowScriptAccess" value="always">'
+'<param name="FlashVars" value="'+otherParam+'">'
+'<embed src="'+url+'" quality="high"  wmode="'+wmode+'" pluginspage="http://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash"></embed>'
+'</object>');
}
