function pan_viewer(datei,text)
{
		var newWindow;
		var props = 'scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width=960,height=580';
		var winnam = datei.substr(5,datei.length-9);
		newWindow = window.open("",winnam, props);
		newWindow.document.write("<html><head><title>Panoramaviewer - PENZING</title></head><body bgcolor='#91C1B1'>");
		newWindow.document.write("<basefont face='Verdana,Arial,Helvetica'><b>" + text + "</b><br>");
		newWindow.document.write("<hr>");
		newWindow.document.write("<DIV ID=\"thedocument\">");
		newWindow.document.write("<center>");
		newWindow.document.write("<applet name=\"ptviewer\" archive=ptviewer.jar code=ptviewer.class width=800 height=400 mayscript=true>");
		newWindow.document.write("<param name=file value=" + datei + ">");
		newWindow.document.write("<param name=cursor value=\"crosshair\">");
		newWindow.document.write("<param name=frame value=\"img/frame1.gif\">");
		newWindow.document.write("<param name=gamma value=\"1\">");
		newWindow.document.write("<param name=exposure value=\"1\">");
		newWindow.document.write("<param name=autorange value=\"1\">");
		newWindow.document.write("<param name=quality value=\"3\">");
		newWindow.document.write("<param name=shotspot0 value=\" x744 y336 a758 b400 u'ptviewer:startAutoPan(0.5,0,1)' \">");
		newWindow.document.write("<param name=shotspot1 value=\" x758 y336 a772 b400 u'ptviewer:stopAutoPan()' \">");
		newWindow.document.write("<param name=shotspot2 value=\" x772 y336 a786 b400 u'ptviewer:startAutoPan(0,0,0.97)' \">");
		newWindow.document.write("<param name=shotspot3 value=\" x786 y336 a800 b400 u'ptviewer:startAutoPan(0,0,1.03)' \">");
		newWindow.document.write("</applet></center>");
		newWindow.document.write("<hr>");
		newWindow.document.write("<table width=\"100%\" border=\"0\"><tr><td>Mit Maus ziehen um zu schwenken<br>");
		newWindow.document.write("dabei mit Shift und Ctrl Tasten zoomen</td><td>");
		newWindow.document.write("oder Tastensteuerung:<br>");
		newWindow.document.write("Schwenken mit Cursortasten, mit + und - Tasten zoomen.");
		newWindow.document.write("</td></tr></table>");
		newWindow.document.write("</DIV>");
		newWindow.document.write("<form><input type='button' value='Panorama schließen' OnClick='window.close()'></form>");
		newWindow.document.write("</body></html>");
}	

