<!--

	// Fix für Netscape 4 - Resizing-Problem
	function netscapeCssFix() {
	  if (document.id.netscapeCssFix.initWindowWidth != window.innerWidth || 
	  	document.id.netscapeCssFix.initWindowHeight != window.innerHeight) {
	    document.location = document.location;
	  }
	}
	
	function netscapeCssFixCheck() {
	  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
	    if (typeof document.id == 'undefined'){
	      document.id = new Object;
	    }
	    if (typeof document.id.scaleFont == 'undefined') {
	      document.id.netscapeCssFix = new Object;
	      document.id.netscapeCssFix.initWindowWidth = window.innerWidth;
	      document.id.netscapeCssFix.initWindowHeight = window.innerHeight;
	    }
	    window.onresize = netscapeCssFix;
	  }
	}
	
	netscapeCssFixCheck();

	
	// Pop-Fenster, zentriert
	function window_centered (theURL,winName,breite,hoehe) { 
  		links = (screen.availWidth - breite) / 2;
 		oben = (screen.availHeight - hoehe) / 2;
  		mswindow = window.open(theURL,winName,"toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,width=" + breite + ",height=" + hoehe + ",left=" + links + ",top=" + oben);
  		mswindow.focus();
	}
	
	function window_centered_scroll (theURL,winName,breite,hoehe) { 
  		links = (screen.availWidth - breite) / 2;
 		oben = (screen.availHeight - hoehe) / 2;
  		mswindow = window.open(theURL,winName,"toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,width=" + breite + ",height=" + hoehe + ",left=" + links + ",top=" + oben);
  		mswindow.focus();
	}
	
	
	// Bild im Gallery-Popup anzeigen
	function showPopup(imgDir,imgNr,pageUrl) {
		var showUrl = '/gallery/showPopup.php?imgDir=' + imgDir + '&nr=' + imgNr + '&comeFromPage=' + pageUrl;
		if (navigator.userAgent.indexOf('Opera') > -1) {
			window_centered (showUrl,'MountainSpiritGallery',690,732);
		} else {
			window_centered (showUrl,'MountainSpiritGallery',671,717);
		}
	}
	
	
//-->