
function insertFlash(elm, url, w, h) {
	if (!document.getElementById(elm)) {
		return;
	}
	var str = "";
	var flashId = url.slice(0, url.length - 4);
//alert(flashId);
	str += "<object width=\"" + w + "\" height=\"" + h + "\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" id= \"" + flashId + "\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" align=\"middle\">";
	str += "<param name=\"movie\" value=\"" + url + "\">";
	str += "<param name=\"wmode\" value=\"transparent\">";
	str += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
	str += "<param name=\"allowFullScreen\" value=\"false\" />";
	str += "<param name=\"quality\" value=\"autohigh\">";
	str += "<embed pluginspage=\"http://www.macromedia.com/go/getflashplayer\" width=\"" + w + "\" height=\"" + h + "\" src=\"" + url + "\" name=\"" + flashId + "\" allowScriptAccess=\"sameDomain\" quality=\"autohigh\" wmode=\"transparent\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\"></embed>";
	str += "</object>";
	document.getElementById(elm).innerHTML = str;
}
function insert(elm, url, w, h) {
	if (!document.getElementById(elm)) {
		return;
	}
	var str = "";
	var flashId = url.slice(0, url.length - 4);
	str = " <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\""+w+"\" height=\""+h+"\" id=\""+flashId+"\" align=\"left\">";
	str += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
	str += "<param name=\"allowFullScreen\" value=\"false\" />";
	str += "<param name=\"movie\" value=\""+url+"\" />";
	str += "<param name=\"quality\" value=\"high\" />";
	str += "<param name=\"bgcolor\" value=\"#003300\" />";
	str += "<embed src=\""+url+"\" quality=\"high\" bgcolor=\"#003300\" width=\""+w+"\" height=\""+h+"\" name=\""+flashId+"\"";
	str += "align=\"lef\t\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
	str += "</object>";
	document.getElementById(elm).innerHTML = str;
}
function ForceWindow() {
	this.r = document.documentElement;
	this.f = document.createElement("FORM");
	this.f.target = "_blank";
	this.f.method = "post";
	this.r.insertBefore(this.f, this.r.childNodes[0]);
}
ForceWindow.prototype.open = function (sUrl) {
	this.f.action = sUrl;
	this.f.submit();
};
function openUrl(url) {
	window.force = new ForceWindow();
	window.force.open(url);
}

