
// ################################### //

USA=navigator.userAgent.toUpperCase();
//alert(USA)

ie4 = (document.all) ? 1 : 0
n4 = ((navigator.userAgent.indexOf("Mozilla/4") >= 0) && (navigator.appName=="Netscape")) ? 1 : 0 ;
nodom = 0;

ff = (USA.indexOf("FIREFOX") >= 0) ? 1 : 0 ;
n6 = (USA.indexOf("GECKO") >= 0) ? 1 : 0 ;
ie = (USA.indexOf("MSIE") >= 0) ? 1 : 0 ;

dom = (document.getElementById) ? 1 : 0 ;
if(dom){
	ie4 = 0;
} else {
	nodom = 1;
}

// alert(ff+" - "+n6+" - "+ie4+" - "+dom)


scaw = screen.availWidth
scah = screen.availHeight

function wop(lg){

if(lg=='vpcD'){	weite = 400; hoehe = 480; ziel = "../vpc-de.html";}
if(lg=='vpcE'){	weite = 400; hoehe = 480; ziel = "../vpc-en.html";}

	Li = Math.floor(((scaw-weite)/2)+172)
	Ob = 152; // Math.floor(((scah-54)-hoehe)/2)
//	alert(Ob); alert(weite); alert(hoehe); alert(Li)

eval("window.open(\""+ziel+"\",\"VPC\",\"scrollbars=no,toolbars=no,status=no,width="+weite+",height="+hoehe+",left="+Li+",top="+Ob+"\")")

}

// ################################### //

function adjustit() {
	if(dom && ff){
		// alert(document.getElementById("teleskop").clientHeight);
		document.getElementById("teleskop").style.height = (window.innerHeight - 24)+"px";
	}
}
