function IsIE() { return window.navigator.userAgent.indexOf("MSIE") > 0;}function viewvr(num) {if (IsIE()) {self.location=location.pathname+'?'+num}else document.ptviewer.newPanoFromList(num);}var data = location.search;data = data.substring(1,data.length);pano_start=0;if (data.length>0) pano_start=data;s="'";document.write('<applet name="ptviewer" archive="images/ptviewer.jar" code="ptviewer.class" width="320" height="230" mayscript="true">\n');document.write('<param name="frame" value="images/p2.gif"><param name="sound0" value="images/sound.au">\n');document.write('<param name="bar_x" value="90"><param name="bar_y" value="172"><param name="bar_width" value="145"><param name="bar_height" value="2"><param name="barcolor" value="ffcc00">\n');document.write('<param name="shotspot0" value=" x288 y201 a312 b230 u'+s+'ptviewer:startAutoPan( 0.5, 0.0, 1.0)'+s+' ">\n');document.write('<param name="shotspot1" value=" x259 y201 a283 b230 u'+s+'ptviewer:stopAutoPan()'+s+' ">\n');document.write('<param name="shotspot2" value=" x126 y201 a153 b230 u'+s+'ptviewer:startAutoPan(0,0,0.90)'+s+' ">\n');document.write('<param name="shotspot3" value=" x172 y201 a198 b230 u'+s+'ptviewer:startAutoPan(0,0,1.1)'+s+' ">\n');for (var i=0;i<=panon.length;i++) {document.write('<param name="pano'+i+'" value={file=images/'+panon[i]+'.jpg}{fov=80}{fovmax=120}{fovmin=50}{auto=0.7}');if (!IsIE()) document.write('{psize=80000}');document.write('">\n');}document.write('<param name="wait" value="images/wait.gif"><param name="file" value="ptviewer:'+pano_start+'"></applet>');