function FlashObjectBuilder(flashVersion, wValue, hValue, srcValue, transparent, bgColorValue, nameId, noScale, useFullscreenTag)
{
	if (bgColorValue == undefined) bgColorValue = "000000";
	if (transparent == undefined) transparent = true;
	if (flashVersion == undefined) flashVersion = "8";
	if (useFullscreenTag == undefined) useFullscreenTag = false;
	if (flashVersion < 9 && useFullscreenTag == true) flashVersion = 9;
	var flashCode = '<object ';
	flashCode += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
	flashCode += 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + flashVersion + ',0,0,0" ';
	flashCode += 'width="' + wValue + '" ';
	flashCode += 'height="' + hValue + '" ';
	flashCode += 'id="' + nameId + '" ';
	flashCode += 'align="middle">';
	flashCode += '<param name="allowScriptAccess" value="always" />';
	flashCode += '<param name="movie" value="' + srcValue + '" />';
	flashCode += '<param name="menu" value="false" />';
	flashCode += '<param name="quality" value="best" />';
	if (noScale == true) flashCode += '<param name="scale" value="noscale" />';
	flashCode += '<param name="salign" value="lt" />';
	if (transparent == true) flashCode += '<param name="wmode" value="transparent" />';
	if (useFullscreenTag == true) flashCode += '<param name="allowFullScreen" value="true" />';
	flashCode += '<param name="bgcolor" value="#' + bgColorValue + '" />';
	flashCode += '<embed ';
	flashCode += 'src="' + srcValue + '"';
	flashCode += 'menu="false" ';
	flashCode += 'quality="best" ';
	if (noScale == true) flashCode += 'scale="noscale" ';
	flashCode += 'salign="lt" ';
	if (transparent == true) flashCode += 'wmode="transparent" ';
	if (useFullscreenTag == true) flashCode += 'allowfullscreen="true" ';
	flashCode += 'bgcolor="#' + bgColorValue + '" ';
	flashCode += 'width="' + wValue + '" ';
	flashCode += 'height="' + hValue + '" ';
	flashCode += 'name="' + nameId + '" ';
	flashCode += 'align="middle" ';
	flashCode += 'allowScriptAccess="always" ';
	flashCode += 'type="application/x-shockwave-flash" ';
	flashCode += 'pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	flashCode += '</object>';
	
	return flashCode;
}

function InsertFlash(flashContainer, targetId)
{
	if(document.all)
	{
		if (document.all[targetId]) document.all[targetId].innerHTML = flashContainer;
	}
	else
	{
		if (document.getElementById && document.getElementById(targetId))document.getElementById(targetId).innerHTML = flashContainer;
	}
}