/* Javascript - Bereich der Gemeinde Oberdiessbach */

/* Bei Anfragen von Suchmaschinen */ 

var oldURL = self.location.pathname;

/* 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='http://www.oberdiessbach.ch/inhalt.htm' NAME='links'>");
    	document.write("<FRAME SRC='../" + self.location.pathname + "'" + "NAME='rechts'>");
		document.write("<FRAME SRC='http://www.oberdiessbach.ch/news/quicklinks.html' NAME='links'>");
    	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:info@reinhards.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.oberdiessbach.ch");
	}

/* IS Onlineschalter PopUpWindow Script */

function openPopUpWindow(sURL,sWindowName,sFeatures) { 
  var oPopUpWindow = null;
  oPopUpWindow = window.open(sURL,sWindowName,sFeatures);
  oPopUpWindow.focus();
}

