	// GEE POPUP

	var myPOPUP=null;
	function GEE_closepopup() { if (myPOPUP != null) {if (myPOPUP.closed == false) myPOPUP.close(); } }
	function GEE_reloadpopup() {			 
		// RESIZED AND RELOAD OPENED POPUP
		// TESTED IN IE>5 AND NE>6.2 PC/MAC
		var a=arguments
			pW = eval(a[1]);
			pH = eval(a[2]);
			sW = screen.width;
			sH = screen.height;
	//	    this.window.close(); 

			this.document.location.href = a[0];

			//			location.reload();
			this.window.resizeTo(pW,pH);
			// center
			this.window.moveTo(sW/2-pW/2,sH/2-pH/2);
			this.window.focus();

	}
	function GEE_openpopup() {
		// OPEN A POPUP
		// TESTED IN IE>5 AND NE>6.2 PC/MAC
		
		var a=arguments
		if (myPOPUP != null) {if (myPOPUP.closed == false) myPOPUP.close();	}

		pW = eval(a[1]);
		pH = eval(a[2]);
		sW = screen.width;
		sH = screen.height;
		
		if (is.ie) {

			// Internet Explorer			

			if (is.isMac) {
				// MAC				
	
			} else {
				if (is.NT) {
					// Windows XP oder 2000 NT5.0 oder höher
					pW +=(10+2-1);
					pH +=(30+8-9);	
					//alert(is.temp);
					if (is.temp=='SV1')	{
						pH +=(30);
					}					
				} else {
					pW +=10;
					pH +=30;
				}
			}
		} else {
			// Andere Browser (Netscape)

			if (is.isMac) {
				// MAC												
				pH += 2;
			} else {
				if (is.isNS6) {
					pW += 6;
					pH += 27;	
				} else {
					pW += 6;
					pH += 27;	
				}
			}
		}
		if (pW+10>sW) pW = sW-8;  // 10: Rahmen des Popups (AUSSEN)
		if (pH+30>sH) pH = sH-30; // 30: Rahmen des Popups (AUSSEN) incl. TITLEBAR
				
		// dependent (only Netscape) yes: Schließt das Popup wenn das Elternfenster geschlossen wird.
		f = "dependent=yes; hotkey=no; locationbar=no; menubar=no; resizeable=yes; status=no";
		if (arguments.length>3) {
			f += '; '+a[3];
		}

		myPOPUP = window.open(a[0],'','width='+pW+'; height='+pH+'; '+f);

		// Wenn der Zugriff verweigert wird (Aufruf des Dokumentes),
		// kann anschl. nicht auf das Fenser zugegriffen werden.
		
		myPOPUP.window.resizeTo(pW,pH);

		// center
		myPOPUP.window.moveTo(sW/2-pW/2,sH/2-pH/2);
		// gallery position

		myPOPUP.window.focus();	
		
	}
