// Copyright Marcus Haas
function check(){
	if (document.getElementsByTagName("IMG")[0]) {
		var images = document.getElementsByTagName("IMG");
		for ( var i=0; i<images.length; i++ ) {
			if (images[i].parentNode.nodeName != "A") {
				images[i].onclick = function () {showimg(this.src,this.alt)};
				images[i].style.cursor="pointer";
			}
		}
	}
}
function showimg(src,alt) {
	var bild_window = window.open("","Bild","toolbar=no,width=800,height=600,directories=no,scrollbars,status=no,menubar=no,resizable=yes");
	bild_window.document.writeln('<html><head>');
	bild_window.document.writeln('<title>'+alt+'</title>');
	bild_window.document.writeln('</head><body onblur="self.close()" style="height:100%;background: url('+src+') no-repeat center">');
	bild_window.document.writeln('<div style="position:absolute;right:3px;bottom:3px;"><a href="javascript:" onclick="self.close()">Schließen</a></div>');
	bild_window.document.writeln('</body></html>');
	bild_window.document.close();
	bild_window.focus();
}
