/* Javascript - Bereich der Gemeinde Münchenbuchsee */

/* Bei Anfragen von Suchmaschinen */ 

var oldURL = self.location.pathname;
var Qstr = location.search.substring(1);
var Qdone = Qstr.match(/done=([^&\b]+)/);
if (!Qdone)
	/* Bei Direktzugriff Frameset laden und Print bei NS steuern */
	if (self == top) {
			var navPrinting = false;    
		if ((navigator.appName + navigator.appVersion.substring(0, 1)) == "Netscape4") {
			navPrinting = (self.innerHeight == 0) && (self.innerWidth == 0);}
		if ((self.location.pathname != /frames/) && !navPrinting) {
			document.write("<FRAMESET cols='160,*' BORDER='0' frameborder='0'>");
			document.write("<FRAME SRC='/inhalt.htm' NAME='links'>");
			document.write("<FRAME SRC='" + self.location.pathname + "?done=yes' " + "NAME='rechts'>");   
			document.write("</FRAMESET>");
		}
	}

/* Reserve falls mal kein Frameset aufgerufen wird */

/*
if (self == top) {
        var navPrinting = false;    
    if ((navigator.appName + navigator.appVersion.substring(0, 1)) == "Netscape4") {
        navPrinting = (self.innerHeight == 0) && (self.innerWidth == 0);}
    if ((self.location.pathname != /frames/) && !navPrinting) {
        var newURL = '/frames/default.htm';
	if (parseInt(navigator.appVersion, 10) >= 3) {
            self.location.replace(newURL);
        } 
        else {
            self.location.href = newURL;
 	}
    }
}
*/

/* Link auf jeder Seite: webmaster */

function webmaster()
	{
 	window.location.href =("mailto:webmaster@muenchenbuchsee.ch");
	}

/* Link im linken Frame */

function bernasconi()
	{
 	window.location.href =("mailto:info@reinhards.ch");
	}

/* Link im rechten Frame: home */

function home()
	{
 	document.location.href=("http://www.muenchenbuchsee.ch");
	}

/* IS Onlineschalter PopUpWindow Script */

function openPopUpWindow(sURL,sWindowName,sFeatures) { 
  var oPopUpWindow = null;
  oPopUpWindow = window.open(sURL,sWindowName,sFeatures);
  oPopUpWindow.focus();
}
