// Date:2006/04/11 levx
function OpenWind(sUrl,sName,iWidth,iHeight){
	window.open(sUrl,sName,"width="+ iWidth +",height="+ iHeight +",top=0,left=0,scrollbar=0,resizable=0,menubar=0");
}

function writeFlash(w, h, fv) {
		document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" + w + "\" height=\"" + h + "\">");
		document.write("<param name=\"movie\" value=\"main.swf\" />");
		document.write("<param name=\"quality\" value=\"high\" />");
		document.write("<param name=\"flashvars\" value=\"" + fv + "\" />");
     	document.write("<embed src=\"main.swf\" FlashVars=\"" + fv + "\" width=\"" + w + "\" height=\"" + h + "\" quality=\"high\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
		document.write("</object>");
	}
	function getParams() {
		var url = window.location.href;
		var index = url.indexOf("?");
		if(index != -1) {
			return url.substr(index+1);
		} else {
			return null;
		}
	}
