function virtualDialog(imagename, title, pan) { 
features = 
   'toolbar=no, location=no, directories=no, status=no, menubar=no, ' +
   'scrollbars=no, resizable=no, width=460, height=280' ; 
dlg = window.open ("","Dialog",features)  ;
dlg.document.write ("<HTML>\n") ;
dlg.document.write ("<head><title>The Last Days of the Raj - Virtual Tour</title></head>\n") ;
dlg.document.write ("<body background='bg50x255.gif'>\n") ; 
dlg.document.write ("<table align=\"center\" width=\"360\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>\n" );    
dlg.document.write ("<applet code='ptviewer.class' width='360' height='240' align='center'>\n") ;
dlg.document.write ("<param name=\"file\" value=\"" + imagename + "\" />\n") ;
dlg.document.write ("<param name=\"fov\" value=\"90\" />\n") ;
dlg.document.write ("<param name=\"pan\" value=\"" + pan + "\" />\n") ;
dlg.document.write ("<param name=\"auto\" value=\"0.2\" />\n") ;
dlg.document.write ("</applet>\n" ) ;
dlg.document.write ("<tr><td>\n" );
dlg.document.write ("</table>") ;    
dlg.document.write ("</body>\n" ) ;
dlg.document.write ("</HTML>\n") ; 
dlg.document.close()
} 

