//browsersvar ie = (navigator.userAgent.indexOf('MSIE')!=-1);var macos = (navigator.platform.indexOf('Mac')!=-1);var dom = (document.getElementById) ? 1 : 0; var ie4x = (document.all && !document.getElementById ) ? 1 : 0; var ns4x = (document.layers) ? 1 : 0; var ns70 = (navigator.userAgent.indexOf('Netscape/7.0')!=-1);var other = (!dom && !ie4x && !ns4x ) ? 1 : 0; var opera = (navigator.userAgent.indexOf('Opera')!=-1);// fenstervariablenvar newwin1="";var newwin2="";var winOptions = "";var newwinX = 0;var newwinY = 0;var newleft= 0;var newtop = 0;var newwinProp = 0;var url = "";var myLayer;var out = '';function checkBrowser() {	if (ie && macos) {		top.location.href="browser/browsertrouble.html";	} 	if (ie4x || ns4x || ns70) {		top.location.href="browser/browsertrouble.html";	}}function nobox(){ 	if (opera || other){		return false;	} else if (ie4x){		window.focus();	} else {//dom		document.getElementById("fixbox").focus();	}}function sayHello(helloMSGid) {	if (!helloMSGid || helloMSGid == 'undefined') {		helloMSGid = 1;	}	helloMSG = new Array();	helloMSG[1] = 'In Arbeit...';	helloMSG[2] = 'PDF fehlt noch';	alert(helloMSG[helloMSGid]);	nobox();}function findLayer(n, d) { //v4.01	var p,i,x;	if(!d) d=document; 	if((p=n.indexOf("?"))>0&&parent.frames.length) {		d=parent.frames[n.substring(p+1)].document;		n=n.substring(0,p);	}	if(!(x=d[n])&&d.all) x=d.all[n];	for (i=0;!x&&i<d.forms.length;i++) {		x=d.forms[i][n];	}	for(i=0;!x&&d.layers&&i<d.layers.length;i++) {		x=MM_findObj(n,d.layers[i].document);	}	if(!x && d.getElementById) x=d.getElementById(n);	return x;}function nextImg(imgName, dir) {	nobox();	imgCounter = imgCounter + dir;	if (imgCounter > maxImg) {		imgCounter = 1;	} else if (imgCounter <= 0) {		imgCounter = maxImg;	}	out = '<a title="Anklicken f&uuml;r eine vergr&ouml;sserte Ansicht" ';	out = out + 'href="javascript:openViewer(\'' + imgName + '\','+imgCounter+')">';	out = out + '<img src="img/'+imgName+imgCounter+'.jpg" ';	out = out + 'width="200" height="150" border="0" vspace="0" hspace="0" align="left" alt="Anklicken f&uuml;r eine vergr&ouml;sserte Ansicht"></a>';	myLayer = findLayer('bildklein');	myLayer.innerHTML=out ;}//fensterfunction openViewer(imgName,imgNum) {	nobox();	//fenstergroesse + url	if (imgName=='lageplan') {		newwinX = 400;		newwinY= 490;		url = 'lageplan.html';	} else {		newwinX = 580;		newwinY= 490;		url = 'viewer.html?='+imgName+'='+imgNum+'='+maxImg;	}	winOptions = "resizable=no,scrollbars=no, ";	winOptions = winOptions + "toolbar=no,directories=no,menubar=no, ";	winOptions = winOptions + "width=" + newwinX + ",height=" + newwinY;	// neues fenster und ggf. andere fenster schliessen	if (newwin1.closed == false) {		newwin1.close();		newwin2=window.open(url,'al2',winOptions);		newwin2.focus();	} else if (newwin2.closed == false) {		newwin2.close();		newwin1=window.open(url,'al1',winOptions);		newwin1.focus();	} else {		newwin1=window.open(url,'al1',winOptions);		newwin1.focus();	}	}function openWin(newURL) {	nobox();	//fenstergroesse + url	if (newURL == 'w-sponsoren.php' || newURL == 'w-foerderer.php') {		newwinX = 460;		newwinY= 630;		winOptions = "resizable=no,scrollbars=yes, ";	} else if (newURL.indexOf('audio') !=-1) {		newwinX = 640;		newwinY= 420;		winOptions = "resizable=no,scrollbars=no, ";	} else if (newURL.indexOf('sfdrs-puls') !=-1) {		newwinX = 760;		newwinY= 480;		winOptions = "resizable=no,scrollbars=no, ";	} else if (newURL.indexOf('player-laczko') !=-1) {		newwinX = 720;		newwinY= 580;		winOptions = "resizable=no,scrollbars=no, ";	} else {		newwinX = 580;		newwinY= 490;		winOptions = "resizable=no,scrollbars=no, ";	}	winOptions = winOptions + "location=no,toolbar=no,directories=no,menubar=no, ";	winOptions = winOptions + "width=" + newwinX + ",height=" + newwinY;	// neues fenster und ggf. andere fenster schliessen	if (newwin1.closed == false) {		newwin1.close();		newwin2=window.open(newURL,'al2',winOptions);		newwin2.focus();	} else if (newwin2.closed == false) {		newwin2.close();		newwin1=window.open(newURL,'al1',winOptions);		newwin1.focus();	} else {		newwin1=window.open(newURL,'al1',winOptions);		newwin1.focus();	}	}function closeViewer() {	if (newwin1.closed == false) {		newwin1.close();	}	if (newwin2.closed == false) {		newwin2.close();	}	}function startDiashow(xdim,ydim,bilderordner,bildtyp,bildnummer, maxbilder) {	nobox();	// fenstereigenschaften festlegen	winOptions = "resizable=no,scrollbars=no, ";	winOptions = winOptions + "toolbar=no,directories=no,menubar=no, ";	winOptions = winOptions + "width=" + xdim+ ",height=" + ydim;	// php-querystring	url = 'imgviewer.php?bilderordner='+bilderordner+'&bildtyp='+bildtyp+'&bildnummer='+bildnummer+'&maxbilder='+maxbilder;	// neues fenster und ggf. andere fenster schliessen	if (newwin1.closed == false) {		newwin1.close();		newwin2=window.open(url,'al2',winOptions);		newwin2.focus();	} else if (newwin2.closed == false) {		newwin2.close();		newwin1=window.open(url,'al1',winOptions);		newwin1.focus();	} else {		newwin1=window.open(url,'al1',winOptions);		newwin1.focus();	}	}//e-mailvar praefix = 'mailto:';var mailadresse = '';var xyz = 0;var currzeichen = 0;function x988(chaingang) {	xyz = parseInt(chaingang.substring(chaingang.length-1, chaingang.length));	mailadresse = '';	for (i=0;i<=(chaingang.length-4);i=i+3) {		currzeichen = parseInt(chaingang.substring(i, i+3), 10)-xyz;		mailadresse += String.fromCharCode(currzeichen);	}	top.location.href = praefix + mailadresse;}
