// JavaScript Document
	  function openImage( uri, width, height){
	    var attrs = "width=850, height=550" ;
	    attrs += ", left=" + Math.floor((screen.availWidth-850)/2);
	    attrs += ", top=" + Math.floor((screen.availHeight-650)/2);
	    attrs += ", location=0, menubar=0, scrollbars=0, resizable=0, status=0, toolbar=0";
	    window.open(uri, null, attrs);
	  }
	  function openImage2( uri, width, height){
	    var attrs = "width=900, height=600" ;
	    attrs += ", left=" + Math.floor((screen.availWidth-850)/2);
	    attrs += ", top=" + Math.floor((screen.availHeight-650)/2);
	    attrs += ", location=0, menubar=0, scrollbars=0, resizable=0, status=0, toolbar=0";
	    window.open(uri, null, attrs);
	  }
  //<![CDATA[
  
  // create a new viewer object:
  var header=new PTGuiViewer();
  
  // point to the location of the flash viewer (PTGuiViewer.swf)
  // this should be relative to the location of the current HTML document
  header.setSwfUrl("PTGuiViewer.swf");
  
  // if both Flash and the native viewer can be used, prefer the native viewer:
  // (use viewer.preferFlashViewer() if you prefer Flash) 
  header.preferHtmlViewer();
  
  // set parameters for the viewer:
  header.setVars({
    pano: "olomouc_centrum_1-low_",
    format: "14faces",
    pan: 0,
    minpan: -180,
    maxpan: 180,
    tilt:0,
    mintilt: -40,
    maxtilt: 90,
    fov: 90,
    minfov: 10,
    maxfov: 120,
    autorotatespeed: 5,
    autorotatedelay: 10
  });
  
  // and embed the viewer
  // The remainder of this HTML document should contain an element with the id mentioned here
  // (e.g. <div id="..."> )
  // The viewer will be embedded as a child of that element
  
  header.embed("panorama");
  
  //]]>

// message to scroll in text field 
var msg = "Virtuální prohlídky - Hotely - Restaurace - Hrady - Zámky - Zoo - Města - Sportovní areály                                                   ";
var spacer = "";
// current message position
var pos = 0;
//flag to control message
function ScrollMessage() {
document.form1.text1.value = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos);
pos++;
if (pos > msg.length) pos = 0;
// set timeout for next update
window.setTimeout("ScrollMessage()",200);
}
// Display a link help message
function LinkMessage(text) {
window.status = text;
} 
