var ie = navigator.appName.indexOf("Microsoft")!= -1;
var sH = screen.height;
var sW = screen.width;
var wf;
var $wf;
var ns4 = document.layers;
function newWin(url,win,w,h,f,sc,mb,tb,sz,r,lb){
    if(f!='no'){f='yes';}
    if(sc!='yes'){sc='no';}
    if(mb!='yes'){mb='no';}
    if(tb!='yes'){tb='no';}
    if(sz!='yes'){sz='no';}
    if(r!='yes'){r='no';}
    if(lb!='yes'){lb='no';}
    var xo = sW/2 -  w/2;
    var yo = sH/2 - h*1/2 - sH/20;
    wf = window.open(url,win,"width=" + w + ",height=" + h + ",screenX=" + xo + ",screenY=" + yo + ",scrollbars=" + sc + ",mb=" + mb + ",tb=" + tb + ",status=" + sz + ",r=" + r + ",location=" + lb);
    wf.moveTo(xo,yo);
    if(f != "no") wf.focus();
}
function portal(){
	if(wf == undefined){
		newWin(wbt,'wbt',wbtWidth,wbtHeight);
	} else {
		wf.focus();
	}
}
function setToMiddle(){
	if(evoCenterV){
		if(!ns4){
			document.getElementById('tableData').height = (ie != true) ? window.innerHeight -20 : document.body.clientHeight -20;
		} else {
			document.layers[0].moveToAbsolute((window.innerWidth / 2) - (evoWidth / 2),(window.innerHeight / 2) - (evoHeight / 2));
		}
	}
}
function start(){
	setToMiddle();
	portal();
}
function stop(){
	if(this.wf != undefined) this.wf = undefined;
	if(window.opener){
		//window.opener.stop();
		window.opener.focus();
	};
}
function getBody(){
	if(evoCenterH) document.write("<center>");
	if(evoCenterV){
		if(!ns4){
			document.write("<table align=center valign=middle id='table' marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 cellspacing=0 cellpadding=0><tr><td align=center valign=middle id='tableData'>");
		} else {
			document.write("<layer name=elp valign=middle align=center bgcolor='#ffffff'>");
		}
	}
	document.write("<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='evolution' WIDTH='" + evoWidth + "' HEIGHT='" + evoHeight + "'><PARAM NAME=movie VALUE='" + evoSrc + "'><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=" + evoBgColor + "><PARAM NAME=FlashVars VALUE='" + evoFlashVars + "'><PARAM NAME=swLiveConnect VALUE='true'><EMBED SRC='" + evoSrc + "' bgcolor=" + evoBgColor + " name='evolution' WIDTH='" + evoWidth + "' HEIGHT='" + evoHeight + "' TYPE='application/x-shockwave-flash' FlashVars='" + evoFlashVars + "' swLiveConnect='true'></EMBED></OBJECT>");
	if(evoCenterV){
		if(!ns4){
			document.write("</td></tr></table>");
		} else {
			document.write("</layer>");
		}
	}
	if(evoCenterH) document.write("</center>");
}