function showPic(url, w, h, text)
{
	var tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+w+",height="+h+",left="+screen.availWidth/4+",top="+screen.availHeight/4;
	newWin = window.open(url, 'newWin', tools);
	newWin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">');
	newWin.document.writeln('<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">');
	newWin.document.writeln('<meta http-equiv="imagetoolbar" content="no">');
	newWin.document.writeln('<title> &Ouml;BS GmbH - '+text+' </title>');
	newWin.document.writeln('<base href="http://www.oebs-gmbh.de/" />');
	newWin.document.writeln('<style type="text/css">');
	newWin.document.writeln('<!--');
	newWin.document.writeln('body { margin: 0; padding: 0; color: #fff; background: #000; font: 11px Verdana, Arial, sans-serif; }');
	newWin.document.writeln('img { margin: 0 auto; padding: 0; border: none; }');
	newWin.document.writeln('p.text { padding: 0 10px; text-align: center; width: '+w+'px; }');
	newWin.document.writeln('-->');
	newWin.document.writeln('</style> </head>');
	newWin.document.write('<body> <p>');
	newWin.document.write('<a href="#" onclick="javascript:window.close();" title="Klicken zum Schliessen"> <img src="'+url+'" alt="'+text+'"> </a>');
	newWin.document.writeln('</p>');
	newWin.document.writeln('<p class="text">'+text+'</p>');
	newWin.document.writeln('</body>');
	newWin.document.write('</html>');
	newWin.document.close();
	newWin.focus();
	return false;
}

function popFormat()
{
	var tools = "resizable,toolbar=no,location=no,scrollbars=yes,width=820,height=600,left="+screen.availWidth/4+",top="+screen.availHeight/4;
	newWin = window.open("./files/formatuebersicht.html", 'newWin', tools);
	newWin.document.close();
	newWin.focus();
	return false;
}

myHover = function() 
{
	var els = document.getElementById("topnav").getElementsByTagName("LI");
			
	for (var i=0; i<els.length; i++) 
	{
		els[i].onmouseover=function()
		{
			this.className+=" over";
		}
		els[i].onmouseout=function()
		{
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
		
if (window.attachEvent) window.attachEvent("onload", myHover);
