function html_flash_v(argSRC, argWIDTH, argHEIGHT, argBGCOLOR, argVar, argID, argWMODE)
{
	var strTEMP;

	if(typeof argBGCOLOR == "undefined") {
		argBGCOLOR = "#ffffff";
	}
	if(typeof argVar == "undefined") {
		argVar = '';
	}
	if(typeof argWMODE == "undefined") {
		argWMODE = 'transparent';
	}
	strTEMP ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" ' ;
		if(argID)
		strTEMP = strTEMP + ' ID="' + argID + '" ' ;//ID
		strTEMP = strTEMP + ' width="'+ argWIDTH + '" height="' + argHEIGHT + '">';
		strTEMP = strTEMP + '<param name="allowScriptAccess" value="always" />';
		strTEMP = strTEMP + '<param name="allowFullscreen" value="true" />';
		strTEMP = strTEMP + '<param name="movie" value="' + argSRC + '">';
		strTEMP = strTEMP + '<param name="FlashVars" value="'+argVar+'" />';
		strTEMP = strTEMP + '<param name="bgcolor" value="'+argBGCOLOR+'" />';
		strTEMP = strTEMP + '<param name="quality" value="high" />';
		strTEMP = strTEMP + '<param name="memu" value="false" />';

		if(argWMODE)
		strTEMP = strTEMP + '<param name="wmode" value="' + argWMODE + '">';
		else
		strTEMP = strTEMP + '<param name="wmode" value="transparent">';
		strTEMP = strTEMP + '<embed src="'+ argSRC +'" FlashVars="'+ argVar +'" ';

		if (argWMODE)
		strTEMP = strTEMP + 'wmode="'+ argWMODE +'" ';
		else
		strTEMP = strTEMP + 'wmode="transparent" ';
		strTEMP = strTEMP + 'menu="false" quality="high" bgcolor="'+ argBGCOLOR +'" width="'+ argWIDTH +'" height="'+ argHEIGHT +'" name="'+ argID +'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		strTEMP = strTEMP + '</object>';
		//document.write(strTEMP);
	return strTEMP;
}
function html_flash(argSRC, argWIDTH, argHEIGHT, argBGCOLOR, argVar, argID, argWMODE)
{
	document.write( html_flash_v(argSRC, argWIDTH, argHEIGHT, argBGCOLOR, argVar, argID, argWMODE) );
}

