/*######################################################### # Popups V 1.1:                                           ##                                                         ## (c) 2006 by yellowgreen under                           ## GPL http://creativecommons.org/licenses/by-nc-sa/2.0/de ## http://www.yellowgreen.de                               ##########################################################*/// Erweitert durch Uwe Seemann (2006-10-19) Titel und Autor anzeigen//************************// Generate standard popup//************************var pop = null;function popup(obj, name, width, height) {	var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;	if(!url) return true;		if(navigator.appName == "Microsoft Internet Explorer") {		if(pop) pop.close();		pop = window.open(url, name, "left=" + (screen.width - width) / 2 + ", top="+ (screen.height - height) / 2 + ", width=" + width + ", height=" + height + ", menubar=no, locationbar=no, scrollbars=yes, resizable=yes, status=no");	}		else pop = window.open(url, name, "left=" + (screen.width - width) / 2 + ", top="+ (screen.height - height) / 2 + ", width=" + width + ", height=" + height + ", menubar=no, locationbar=no, scrollbars=yes, resizable=yes, status=no");	pop.focus();		return (pop) ? false : true;}// ********************// Generate image popup// ********************function imageStage(obj, name, width, height, title) {	var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;	if(!url) return true;	imageWidth = width;	imageHeight = height;		// SETTINGS: Screen padding in %	resizeToPercent = 10;		// Get screen sizes	screenWidthDeviation = (screen.width * resizeToPercent) / 100;	screenHeightDeviation = (screen.availHeight * resizeToPercent) / 100;	screenWidth = screen.width - screenWidthDeviation;	screenHeight = screen.availHeight - screenHeightDeviation;	// Scale image	if(imageWidth > screenWidth || imageHeight > screenHeight) {		(imageWidth > imageHeight) ? deviationInPercent = (100 * screenWidth) / imageWidth :	deviationInPercent = (100 * screenHeight) / imageHeight;		imageWidth = (imageWidth * deviationInPercent) / 100;		imageHeight = (imageHeight * deviationInPercent) / 100;		message = " (window scaled to screen size)";	}		// add height of caption line	windowHeight = imageHeight + 20;	windowWidth = imageWidth;		// Check for maximum size	positionLeft = (screen.width - imageWidth) / 2;	positionTop = (screen.availHeight - imageHeight) / 2;		// Open window and write source	if(navigator.appName == "Microsoft Internet Explorer") {		if(pop) pop.close();		pop = window.open("", "name", "width=" + windowWidth + ", height=" + windowHeight + ", left=" + positionLeft + ", top=" + positionTop + ", resizable=no, status=no, toolbar=no, menubar=no, locationbar=no, directories=0, scrollbars=no");	}		else pop = window.open("", name, "width=" + windowWidth + ", height=" + windowHeight + ", left=" + positionLeft + ", top=" + positionTop + ", resizable=no, status=no, toolbar=no, menubar=no, locationbar=no, directories=0, scrollbars=no");	pop.document.open("text/html", "replace");	pop.document.write("<html><head><title>" + name + " (" + width + " &times; " + height + ")</title></head><body style=\"margin:0px\" onclick=\"window.close()\">");	pop.document.write("<img src=\"" + obj + "\" width=\"" + imageWidth + "\" height=\"" + imageHeight + "\" alt=\"" + name + "\" title=\"" + title + "\">");	pop.document.write("<p style=\"background-color:#000;color:#a7a7a7;margin:0;padding:1px 6px;font:bold 13px Trebuchet MS, Geneva, Arial, Helvetica, sans-serif;width:" + imageWidth + "px;\">" + title + "</p>");	pop.document.write("</body></html>");	pop.document.close();	pop.moveTo(positionLeft, positionTop);   	pop.focus();		return (pop) ? false : true;}
