//danadat:

function neueTermine(){
	var ie=document.all
	var ns6=document.getElementById&&!document.all
	var ns4=document.layers
	var ns=navigator.appName

	if(ie){
		if(document.all.Termin.style.color!="#ff0000")
			document.all.Termin.style.color='#ff0000';
		else
			document.all.Termin.style.color='#404f7a';
	}
	else{
		if(window.document.getElementById("Termin").style.color!='red')
			window.document.getElementById("Termin").style.color='red';
		else
			window.document.getElementById("Termin").style.color='navy';
	}
	
	window.setTimeout("neueTermine()",1200);
}

function open_window(imageType,imageName,imageWidth,imageHeight,alt) {  // v4.01
	if (imageType==''){
		zoom = window.open(imageName,"Zoom","width="+imageWidth+",height="+imageHeight+",scrollbars=yes,toolbar=yes,status=no,resizable=yes,menubar=no");
		var x = (screen.width-imageWidth)/2;
		zoom.moveTo(x,60);
		zoom.focus();
	}else if (imageType=='PDF'){
		zoom = window.open(imageName,"Zoom","width="+imageWidth+",height="+imageHeight+",scrollbars=no,toolbar=no,status=no,resizable=yes,menubar=no");
		//var x = (screen.width-imageWidth)/2;
		//zoom.moveTo(x,0);
	}else{
		zoom = window.open("","Zoom","width="+imageWidth+",height="+imageHeight+",scrollbars=no,toolbar=no,status=no,resizable=yes,menubar=no");
		var x = (screen.width-imageWidth)/2;
		zoom.moveTo(x,60);
		zoom.document.write('<html><title>'+alt+'</title><body bgcolor="#cccccc" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); // onBlur="self.close()"
		if (imageType == "swf"){
		zoom.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
		zoom.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
		zoom.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
		zoom.document.write('</embed></object>');	}else{
		zoom.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
		zoom.document.write('</body></html>');
		zoom.document.close();
		zoom.focus();
	}
	//zoom.focus();
}
 
//if (ie4||ns6)
//document.onclick=hidemenu
 
