/**
 * panoWindow open
*/
var swpano = {
		openPanoWindow: function (theURL,winName,features, myWidth, myHeight, isCenter) {
			if(window.screen)if(isCenter)if(isCenter=="true"){
				var myLeft = (screen.width-myWidth)/2;
				var myTop = (screen.height-myHeight)/2;
				features+=(features!='')?',':'';
				features+=',left='+myLeft+',top='+myTop;
			}
			
			panoWin = window.open('',winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
			
				panoWin.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
				panoWin.document.write('<html xmlns="http://www.w3.org/1999/xhtml">');
				panoWin.document.write('<head>');
				panoWin.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />');
				panoWin.document.write('<title>Zentrum der ED Wien für Theologiestudierende</title>');
				panoWin.document.write('<style type="text/css">body {margin: 0px;}</style>');
				panoWin.document.write('</head>');
				panoWin.document.write('<body>');
				panoWin.document.write('<applet name="ptviewer" archive=images/site/pano/res/ptviewer.jar  code=ptviewer.class width=450 height=330>');
				panoWin.document.write('<param name=file        value="images/site/pano/pic/'+theURL+'.jpg">');
				panoWin.document.write('<param name=frame       value="images/site/pano/res/control.gif">');
				panoWin.document.write('<param name=wait        value="images/site/pano/res/wait.gif">');
				panoWin.document.write('<param name=bar_x       value="54">');
				panoWin.document.write('<param name=bar_y       value="195">');
				panoWin.document.write('<param name=bar_width   value="343">');
				panoWin.document.write('<param name=bar_height  value="11">');
				panoWin.document.write('<param name=barcolor    value="FFFFFF">');
				panoWin.document.write('<param name=fov         value="99">');
				panoWin.document.write('<param name=fovmax      value="100">');
				panoWin.document.write('<param name=fovmin      value="70">');
				panoWin.document.write('<param name=tilt        value="-5">');
				panoWin.document.write('<param name=pan         value="100">');
				panoWin.document.write('<param name=quality     value="3">');
				panoWin.document.write('<param name=auto        value="0.2">');
				panoWin.document.write('<param name=cursor      value="MOVE">');
				panoWin.document.write('</applet>');
				panoWin.document.write('</body>');
				panoWin.document.write('</html>');
			
		}
}
