/*********************************************************\*                                                         ** pop.js - Pop-up window script                           **                                                         *************************************************************                                                         ** Takes an url, name, height and width as parameters      ** Centers the window on the screen                        **                                                         ** Author: Christian Doeleman (dmk@doeleman.dk)            ** Copyright (c) 2000 by Christian Doeleman                **                                                         *\*********************************************************/function pop(url, name, height, width, scrollbars) {	/*	if (document.all) {		// browser is ie4 or better		var xMax = screen.width, yMax = screen.height;	} else if (document.layers) {		// browser is ns4 or better		var xMax = window.outerWidth, yMax = window.outerHeight;	} else {		var xMax = 640, yMax = 480;	}	*/    if (self.screen.availWidth && self.screen.availHeight) {    	var xMax = self.screen.availWidth;    	var yMax = self.screen.availHeight;    } else if (self.screen.width && self.screen.height) {		var xMax = self.screen.width;		var yMax = self.screen.height;	} else {		var xMax = 800;		var yMax = 600;	}		var xPlacering = Math.max((xMax - width)/2, 0);	var yPlacering = Math.max((yMax - (height+36))/2, 0);		var features=		"location=0"+		",directories=0"+		",copyhistory=0"+		",menubar=0"+		",resizable=1"+		",scrollbars="+scrollbars+		",status=0"+		",toolbar=0"+		",height="+height+		",width="+width+		",screenX="+xPlacering+		",screenY="+yPlacering+		",left="+xPlacering+		",top="+yPlacering;		// open & focus	name = window.open(url, name, features);	if (window.focus) {name.focus()}		return name;}function fullscreen(url, name, height, width, scrollbars) {	if (self.screen.height && self.screen.width) {		fullscreen = window.open(url, name, 'scrollbars=no,fullscreen=yes');		return fullscreen;	}}function _fullscreen(image) {    if (self.screen.height && self.screen.width) {        fullscreen = window.open('', 'fullscreen', 'fullscreen=yes,scrollbars=no');        fullscreen.document.write('<html>');        fullscreen.document.write('<head>');        fullscreen.document.write('<title>Fullscreen</title>');        fullscreen.document.write('<style>body { margin: 0px; padding: 0px; overflow: hidden } img { border-width: 0px }</style>');        fullscreen.document.write('</head>');        fullscreen.document.write('<body>');        fullscreen.document.write('<a href="javascript:self.close()"><img src="/images/fullscreen.php?file='+image+'&height='+self.screen.height+'&width='+self.screen.width+'" height="'+self.screen.height+'" width="'+self.screen.width+'"></a>');        fullscreen.document.write('</body>')        fullscreen.document.write('</html>');        fullscreen.document.close();    } else {        return false;    }}
