var ver=navigator.appVersion;
var dom=document.getElementById?1:0;
var ns4=(document.layers&&!dom)?1:0;
var ns5=(dom&&parseInt(ver)>=5)?1:0;
var ie4=(document.all&&!dom)?1:0;
var ie5=(ver.indexOf("MSIE")>-1&&dom)?1:0;
var rechner=navigator.platform;
var win=(rechner.substring(0,3)=="Win")?1:0;

function ueber(name,id){
	if(ns4){
		var x=document.layers[id].document.images[name].src;
		x= 	x.replace(/_n\.gif/,'_h.gif');
		document.layers[id].document.images[name].src=x;		
	}
	else{
		var x=document.images[name].src;
		x= x.replace(/_n\.gif/,'_h.gif');
		document.images[name].src=x;
	}
}


function aus(name,id){
	if(ns4){
		var x=document.layers[id].document.images[name].src;
		x= x.replace(/_h\.gif/,"_n.gif");
		document.layers[id].document.images[name].src=x;	
	}
	else{
		var x=document.images[name].src;
		x= x.replace(/_h\.gif/,"_n.gif");
		document.images[name].src=x;	
	}
}

function fenster(wohin){

	if(screen.width=="1024")
	window.open(wohin,'popup','top=210,left=120,width=800,height=400',resizable='no');
	else if(screen.width=="1152")
	window.open(wohin,'popup','top=210,left=150,width=800,height=400',resizable='no');
	else
	window.open(wohin,'popup','top=100,left=120,width=800,height=400',resizable='no');
}

function fenster1(wohin){

	if(screen.width=="1024")
	window.open(wohin,'projekte','top=20,left=220,width=600,height=450',resizable='no');
	else if(screen.width=="1152")
	window.open(wohin,'projekte','top=20,left=250,width=600,height=450',resizable='no');
	else
	window.open(wohin,'projekte','top=20,left=100,width=600,height=450',resizable='no');
}

//fuer ns4 - neu laden, wenn sich fenstergroesse aendert
function neuLaden() {
	if (ns4) {
if (innerWidth!=document.breite || innerHeight!=document.hoehe){
history.go(0);
document.breite=innerWidth;
document.hoehe=innerHeight;
	}
 }
}



function umleiten(wohin) {
if(top.frames.length <= 0)
eval("top.location = wohin");
}

