function brchk() {
	this.ver = navigator.appVersion;
	this.agent = navigator.userAgent;
	this.dom = document.getElementById ? 1:0;
	this.op = this.agent.indexOf("Opera") >- 1 && this.ver.indexOf("6") >- 1;
	this.ie5 = (this.ver.indexOf("MSIE 5") >- 1 && this.dom && !this.op) ? 1:0;
	this.ie6 = (this.ver.indexOf("MSIE 6") >- 1 && this.dom && !this.op) ? 1:0;
	this.ie4 = (document.all && !this.dom && !this.op) ? 1:0;
	this.ie = (this.ie4 || this.ie5 || this.ie6);
	this.mac = this.agent.indexOf("Mac") >- 1;
	this.ns6 = (this.dom && parseInt(this.ver) >= 5) ? 1:0; 
	this.ns4 = (document.layers && !this.dom) ? 1:0;
	this.ns3 = (this.ver.indexOf("3") >-1 && this.agent.indexOf("Mozilla")) ? 1:0;
	this.br = (this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op);
	return this;
}

function xychk() {
	var br = new brchk();
	if(br.ns4 || br.ns6 || br.op) { wi = window.innerWidth; hi = window.innerHeight; }
	if(br.ie && document.body) { wi = document.body.clientWidth; hi = document.body.clientHeight; }
}

function imgOpen(winName,imgName,w,h) {
	newin = window.open("","Bild","width="+w+",height="+(h+30)+",left=300,top=100,dependent=yes");
	newin.focus();
	newImg(winName,imgName,w,h);
}

function newImg(winName,imgName,w,h) {
	newin.document.open("text/html");
	newin.document.writeln("<html><head><title>Bild "+winName+"</title></head>");
	newin.document.writeln("<body bgcolor=\"#ffffff\" leftmargin=\"0\" topmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\" marginwidth=\"0\" marginheight=\"0\" marginleft=\"0\" marginright=\"0\">");
	newin.document.writeln("<center><img src=\"img/"+imgName+"_1.jpg\" alt=\""+winName+"\" width=\""+w+"\" height=\""+h+"\" border=\"0\"><br>");
	newin.document.writeln("<a href=\"javascript:self.close();\">Fenster schlie&szlig;en</a> "+self.name);
	newin.document.writeln("</center></body></html>");
}


