function loadFlash(file, w, h, base, flashVars) {
	document.writeln(getFlashOutput(file, w, h, base, flashVars));
}
function loadFlashSEO(tag, file, w, h, base, flashVars) {	
	//document.getElementsByTagName(tag)[0].innerHTML = getFlashOutput(file, w, h, base, flashVars + "&text=" + document.getElementsByTagName(tag)[0].innerHTML);
	document.getElementById(tag).innerHTML = '';
	document.getElementById(tag).innerHTML = getFlashOutput(file, w, h, base, flashVars + "&text=" + document.getElementById(tag).innerHTML);
}
function getFlashOutput(file, w, h, base, flashVars) {
	var output = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""+
		"	codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\""+
		"	width=\""+w+"\""+
		"	height=\""+h+"\""+
		"	name=\"flashFile\""+
		"	id=\"flashFile\">"+
		"	<param name=\"movie\" value=\""+file+"\">"+
		"	<param name=\"base\" value=\""+base+"\">"+
		"	<param name=\"flashVars\" value=\""+flashVars+"\">"+
		"	<param name=\"quality\" value=\"high\">"+
		"	<param name=\"menu\" value=\"false\">"+
		"	<param name=\"wmode\" value=\"transparent\">"+
		"	<embed"+
		"		src=\""+file+"\""+
		"		base=\""+base+"\""+
		"		width=\""+w+"\""+
		"		height=\""+h+"\""+
		"		flashVars=\""+flashVars+"\""+
		"		quality=\"high\""+
		"		pluginspage=\"http://www.macromedia.com/go/getflashplayer\""+
		"		type=\"application/x-shockwave-flash\""+
		"		menu=\"false\""+
		"		wmode=\"transparent\""+
		"		swLiveConnect=\"true\""+
		"		name=\"flashFile\">"+
		"	</embed>"+
		"</object>";
	return output;
}