<!--

	// 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;
  		scubawindow = window.open(theURL,winName,"toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,width=" + breite + ",height=" + hoehe + ",left=" + links + ",top=" + oben);
  		scubawindow.focus();
	}
	
	function window_centered_scroll (theURL,winName,breite,hoehe) { 
  		links = (screen.availWidth - breite) / 2;
 		oben = (screen.availHeight - hoehe) / 2;
  		scubawindow = window.open(theURL,winName,"toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,width=" + breite + ",height=" + hoehe + ",left=" + links + ",top=" + oben);
  		scubawindow.focus();
	}
	
	// Bild in einem Popup anzeigen
	function showImage(imgName,imgTxt) {
		var showUrl = 'showImage.jsp?img=' + imgName + '&imgTxt=' + imgTxt;
		if (navigator.userAgent.indexOf('Opera') > -1) {
			window_centered (showUrl,'ScubasubImage',516,435);
		} else {
			window_centered (showUrl,'ScubasubImage',504,430);
		}
	}
	

	// Bild im Gallery-Popup anzeigen
	function showGallery(imgDir,imgNr) {
		var showUrl = 'showGallery.jsp?imgDir=' + imgDir + "&nr=" + imgNr;
		if (navigator.userAgent.indexOf('Opera') > -1) {
			window_centered (showUrl,'ScubasubFotoGallery',524,438);
		} else {
			window_centered (showUrl,'ScubasubFotoGallery',504,430);
		}
	}
	
	// Dive-Spot in einem Popup-Fenster anzeigen
	function showDiveSpot(imgName,imgNr) {
		var showUrl = 'tb_showDiveSpot.jsp?img=' + imgName + "&nr=" + imgNr;
		if (navigator.userAgent.indexOf('Opera') > -1) {
			scubawindow = window.open(showUrl,'ScubasubDiveSpots',"toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,width=634,height=494,left=502,top=180");
  		} else {
			scubawindow = window.open(showUrl,'ScubasubDiveSpots',"toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,width=604,height=490,left=490,top=200");
		}
		scubawindow.focus();
	}
	
	// Bild in einem Popup anzeigen
	function showGuestbookImg(imgName) {
		var showUrl = 'showGuestbookImg.jsp?img=' + imgName;
		window_centered (showUrl,'ScubasubGuestbookImage',504,430);
	}
	
	
	// Bild in einem Popup anzeigen
	function showLogbookImg(imgName) {
		var showUrl = 'showLogbookImg.jsp?img=' + imgName;
		window_centered (showUrl,'ScubasubLogbookImage',504,430);
	}
	
	
	
	function gallery(theURL) { 
		var breite = 600;
		var hoehe = 540;
		links = (screen.availWidth - breite) / 2;
		oben = (screen.availHeight - hoehe) / 2;
		natur = window.open('/jsps/gallery_slide.jsp?'+theURL,"Gallery","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no	,width=" + breite + ",height=" + hoehe + ",left=" + links + ",top=" + oben);
		natur.focus();
	}

//-->