//reloads the window if Nav4 resized
function MM_reloadPage(init) {  
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
   		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function browsercheck(){
	if(document.getElementById){var userbrowser="DOM";}
	else{
		if(navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion)==4){var userbrowser="MS4";}
		if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {var userbrowser="NS4";}}
	return userbrowser;
}

function TopFrame(url){
	if(parent.frames["topFrame"].location.href != url){parent.frames["topFrame"].location.href = url;}
}

function KontaktWindow(uri,name,breite,hoehe){
	if(screen.height < 768){
		if(document.layers){
			window.open(uri,name,"width=600,height=520,resizable=yes,scrollbars=yes");}
		else{
			window.open(uri,name,"width=600,height=520,resizable=yes,scrollbars=yes");}}
	else{
		if(document.layers){
			breite=breite+80
			hoehe=hoehe+10
			window.open(uri,name,"width="+breite+",height="+hoehe+",resizable=no,scrollbars=no");}
		else{
			window.open(uri,name,"width="+breite+",height="+hoehe+",resizable=no,scrollbars=no");}}
}

function newWindow(uri,name,breite,hoehe){
	window.open(uri,name,"width="+breite+",height="+hoehe);}
