function writeElByID (DivID, FlashPath, FlashWidth, FlashHeight, FlashName, isTransparent) {
	var weboverDiv = document.getElementById(DivID);
	var innerObj;
	innerObj = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+FlashWidth+'" height="'+FlashHeight+'" allowScriptAccess="always">';
	innerObj += '<param name="movie" value="'+FlashPath+'">';
	innerObj += '<param name="quality" value="high">';
	innerObj += '<param name="allowScriptAccess" value="always">';
	if (isTransparent == true) {
		innerObj += '<param name="wmode" value="transparent">';
		innerObj += '<embed src="'+FlashPath+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+FlashWidth+'" height="'+FlashHeight+'" wmode="transparent" allowscriptaccess="always"></embed>';
	} else {
		innerObj += '<embed src="'+FlashPath+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+FlashWidth+'" height="'+FlashHeight+'" allowscriptaccess="always"></embed>';
	}
	innerObj += '</object>';
	weboverDiv.innerHTML = innerObj;
}

function removeElById(DivID) {
	el = document.getElementById(DivID);
	el.parentNode.removeChild(el);
}
