<!--
/*
  OPENTOUR.JS V 3.00
  (c) 2001 Hudson Digital Services.
*/

function opentour(room)
{
 var startViewerFile=room.toLowerCase().indexOf('&viewerfile=');
 var endViewerFile=room.toLowerCase().indexOf('&',startViewerFile+12);

 if (endViewerFile==-1) endViewerFile=room.length

 if (startViewerFile!=-1)
  {
  viewerFile=room.substr(startViewerFile+12,endViewerFile-startViewerFile-12);
  room=room.substr(0,startViewerFile)+room.substr(endViewerFile,room.length-endViewerFile);
  }
 else
  viewerFile='index.html';

 root=self.location.pathname.substr(0,self.location.pathname.lastIndexOf('/')+1);
 if (root.substr(root.length-4,3)!='360') root=root+'360/';
 var vtour = open(root+viewerFile+'?'+room, 'tour','dependent=no,directories=no,height=410,hotkeys=no,innerHeight=410,innerWidth=400,location=no,menubar=no,personalbar=no,resizable=no,scrollbars=no,status=no,toolbar=no,width=400');
 vtour.focus();
}
//-->
