d=document
function gW(){return(self.innerWidth?self.innerWidth-8:d.clientWidth?d.clientWidth:d.body.clientWidth)}
function gH(){ return(self.innerHeight?self.innerHeight-4:d.clientHeight?d.clientHeight:d.body.clientHeight)}
function gtTopW(){var g_cW=gW();return g_cW; /*g_cW<1281?g_cW:1280*/}
function gtTopH(){return gH()}
function _VshoHid(a,b){if(a) a.style.visibility=b?"visible":"hidden"}
function VshoHid(a,b){_VshoHid(gtOb(a),b)}
function sHx(a){VshoHid(a,1);VshoHid(a+"x",1)}
function hDx(a){VshoHid(a,0);VshoHid(a+"x",0)}

dgEBI=d.getElementById
if(dgEBI) gtOb= function(id){return d.getElementById(id)}
else gtOb= function(id){return d.all?d.all[id]:d.layers?eval('d.'+id):0}

function wop(p,t,w,h,sb,r,m){return _wop(p,t,60,150,w,h,sb,r,m)}
function wopBig(a){var w=Math.min(gtTopW()-20,1024);var h=Math.min(gtTopH()-30,700); return _wop(a, "",0,5,w,h,1,1,1,1)}
function _wop(p,t,top,left,w,h,sb,r,m,x)
{	var v=window.open(p,t,"top="+top+",left="+left+",width="+(w?w:300)+",height="+(h?h:400)+",scrollbars="+(sb?"yes":"no")+",resizable="+(r?"yes":"no")+",menubar="+(m?"yes":"no")+(x?',toolbar,location,status':''))
    v.focus()
	return (p.length)?0:v.document
}
function ldr0(a){if(a)dxLdr1(a)}
function dxLdr1(a)
{	if(a.indexOf('@=')==0)  top.location.href=a.substr(2)
	else if(a.indexOf('/')<0) top.Pull.location.href=GetApp(a)
	else if (a.indexOf('//')<0)	
	{	var t=top.location
		var th="/"
		if(t.host=='localhost' || t.host=='213.212.128.173')th="/hysylab/"
		t.href="//"+t.host+th+a
	}
	else wopBig(a)
}
