function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

popupWindow = null;
opera = navigator.appName.indexOf("Opera") != -1;
img = null;

	function popup2(url, width, height) {
	
		url = location.href.substring(0,location.href.lastIndexOf("/")) + url;
		len = url.length;
		last3 = url.substring(len-3, len);
		
		if (opera) {
			img = new Image();
			img.src = url;
		}
		
		mediaTag = (last3 == "swf") ?
			'<embed width="'+width+'" height="'+height+'" src="'+url+'"></embed>' :
			'<a href="javascript:window.opener.cleanUp();"><img src="'+url+'" width="'+width+'" height="'+height+'" border="0" alt="Fenster schliessen" galleryimg="no"></a>';

		cleanUp();
		popupWindow = window.open('', '', 'width='+ width +',height='+ height);
		pd = popupWindow.document;
		pd.open();
		pd.writeln('<html>');
		pd.writeln('<head></head>');
		pd.writeln('<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
		pd.writeln(mediaTag);
		pd.writeln('</body></html>');
		pd.close();
		pd.title = " FWV :: popup";
		popupWindow.focus();
		
	}
	
	function cleanUp() {
		if ((popupWindow) && (! popupWindow.closed)) popupWindow.close();
	}
