var browserVersion=0;

if (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion)  >= 3 )) ||
    ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))
        browserVersion = 3;

// neues fenster öffnen ...
// aufruf mit e.g. ... onclick="popup('the_film.html','600','360');return false" ... 
if (browserVersion==3) {
        function popup(url,pwidth,pheight)
                { 
                window.open(url +'','popup','toolbar=no,menubar=no,pageYOffset=10,pageXOffset=10,resizable=no,scrollbars=no,width=' + pwidth + ',height=' + pheight);
                }
	
}

// the netscape bugfix "resize'it" ...
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);

function popopen(pic_filename, width, height, popup_title, popup_alt){ 
	window.open('/popup02.php?pic_filename=' + pic_filename + '&pic_width=' + width + '&pic_height=' + height + '&popup_title=' + popup_title + '&popup_alt=' + popup_alt + '', 'zoom', 'toolbar=no, menubar=no, sreenY=10, screenX=10, left=10, top=10, resizable=no, scrollbars=no, width=580, height=620');
}

function popopen03(pic_filename, width, height, popup_title, popup_alt){ 
	window.open('/popup03.php?pic_filename=' + pic_filename + '&pic_width=' + width + '&pic_height=' + height + '&popup_title=' + popup_title + '&popup_alt=' + popup_alt + '', 'zoom', 'toolbar=no, menubar=no, sreenY=10, screenX=10, left=10, top=10, resizable=no, scrollbars=no, width=' + width + ', height=' + height + '');
}


