// JavaScript Document

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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);

//Mindesthoehe MSIE
function MM_checkBrowser(IEvers) { 
	var userAgent=navigator.userAgent, version=0;
	if (userAgent.indexOf('MSIE') != -1) {
  	version = parseFloat(userAgent.substring(userAgent.indexOf('MSIE')+4,userAgent.length));
    if (version < IEvers) 
  {
  minhoehe_ie();
  } 
  }
}
function minhoehe_ie() {	
	// document.all.inh_bereich.style.height = "auto";
	// document.all.inh_bereich.style.height = "550px";
	// document.all.inh_bereich.style.overflow = "visible";
	// document.all.inhalt.style.width = "435px";
	// document.all.inhalt.style.padding = "10px";
}

//aktiver Menuepunkt oben
function aktiv (wer){
document.getElementById(wer).style.textDecoration = "underline"; 
}
//aktive Untermenues
function aktiv_nav (wer){
document.getElementById(wer).className = "nav_aktiv";
}
function aktiv_navu (wer){
document.getElementById(wer).className = "navu_aktiv";
}
function um_anzeigen (um_id){
document.getElementById(um_id).style.display= "block";
}

// function um_anzeigen (was){
// var menupkt = menu_links.getElementsByTagName("li");
// for (var i = 0; i <= menupkt.length; i++ ) {
// if (menupkt.id = "um" + was) {
// 	pktID = menupkt.id;;
// 	document.getElementById(pktID).style.display = "none";
// 	}
// 	else {
// 		document.getElementById(pktID).style.display = "block";
// 		}	
// 	}
// } 

//Bookmark setzen
function addBookmark(){
	bookmarkurl=self.location.href;
	bookmarktitle= "Wasserstadt Fuerstenberg Havel - " + document.title;
	if (document.all) {
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
	} else {
		alert("In Firefox und Netscape nutzen Sie bitte die Funktion: Lesezeichen hinzufügen \n(oder STRG + D drücken)!");
	}
}	
//Seite empfehlen
function sendPage(){
	page_url = location.href;
	mail_str = "mailto:?";
	mail_str += "subject= Seitenempfehlung: Wasserstadt Fuerstenberg Havel - " + document.title; 
	mail_str += "&body= Diese Seite sollten Sie sich ansehen: Wasserstadt Fuerstenberg Havel - " + document.title + ": "; // Nachricht
	mail_str += " " + page_url; 
	location.href = mail_str;
	}
	
//Inhalte drucken
var inh = "";
 function drucken() {
	 print();
/*	 
 	name = self.document.title;
	inh = self.document.URL;
	inh = encodeURI(inh);
	adr = "http://www.neu-media.de/test/frstb/drucken.php?adr="+inh+"&name="+name;
	druckfenster = window.open(adr,"druckfenster","width=550,height=500,left=10,top=10,menubar=no,toolbar=no,location=no,scrollbars=yes,resizable=no" );
*/	}
