function loadFlash(file, w, h, base, flashVars, transp) {
  if(flashVars == undefined) flashVars = "";
	document.writeln(getFlashOutput(file, w, h, base, flashVars, transp));
}
function loadFlashSEO(tag, file, w, h, base, flashVars, transp) {	
	if(flashVars == undefined) flashVars = "";
	e = document.getElementsByTagName(tag);
	//for(var i in e)
	for(var i =0; i < e.length; i++)
		e[i].innerHTML = getFlashOutput(file, w, h, base, flashVars + "&text=" + e[i].innerHTML, transp);
}
function loadFlashDiv(id, file, w, h, base, flashVars, transp, dontPassText) {
	if(flashVars == undefined) flashVars = "";
	e = document.getElementById(id);
	if(dontPassText == true) e.innerHTML = "";
	e.innerHTML = getFlashOutput(file, w, h, base, flashVars + "&text=" + e.innerHTML, transp);
}
function loadFlashByID(id, file, w, h, flashVars, base, transp) {
	if(flashVars == undefined) flashVars = "";
	document.getElementById(id).innerHTML = getFlashOutput(file, w, h, base, flashVars, transp);
}
function reloadFlash(id, file, w, h, base, flashVars, transp) {
	document.getElementById(id).innerHTML = getFlashOutput(file, w, h, base, flashVars, transp);
}
function getFlashOutput(file, w, h, base, flashVars, transp) {
	if(base == undefined) base = "";
	if(flashVars == undefined) flashVars = "";
	var wmode = (transp == undefined || transp == true) ? "transparent" : "opaque";
	var output = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""+
		"	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=\""+wmode+"\">"+
		"	<embed"+
		"		src=\""+file+"\""+
		"		base=\""+base+"\""+
		"		width=\""+w+"\""+
		"		height=\""+h+"\""+
		"		flashVars=\""+flashVars+"\""+
		"		quality=\"high\""+
		"		type=\"application/x-shockwave-flash\""+
		"		menu=\"false\""+
		"		wmode=\""+wmode+"\""+
		"		swLiveConnect=\"true\""+
		"		name=\"flashFile\">"+
		"	</embed>"+
		"</object>";
	return output;
}
var __T = this;
