function JS_Refresh1() {
  if(SaveWindow.closed == true) location.reload();
  else window.setTimeout("JS_Refresh1()",500);
}
function JS_Refresh2() {
  if(cPicType=="jpegserverpush") {
    if(SaveWindow.closed == true) {
      window.document.view.src = cPicSizeName + ".push?sleep=20&camera="  + nCamNr + "newurl=" + Math.random();
    }
    else window.setTimeout("JS_Refresh2()",100);
  }
}
function JS_SnapShot() {
  var cFrame = "http://195.70.110.33/fullsize.jpg?camera=" + nCamNr + "&quality=10000&newurl=" + Math.random();
  SaveWindow = open(cFrame,"Window2","width=450,height=350,screenX=200,screenY=200,dependent=yes,resizable=no");
  JS_Refresh2();
}
function JS_ChangeValues() {
  var cFrame = "/config/setting/ccamera/delayvalues.htm";
  SaveWindow = open(cFrame,"Window","width=320,height=350,screenX=200,screenY=200,dependent=yes,resizable=no");
  JS_Refresh1();
}
function JS_PanoNewPic() {
  window.document.panpic1.src = "panorama.jpg?index=-2&camera=" + nCamNr + "newurl=" + Math.random();
  window.document.panpic2.src = "panorama.jpg?index=-1&camera=" + nCamNr + "newurl=" + Math.random();
  window.document.panpic3.src = "panorama.jpg?index=0&camera="  + nCamNr + "newurl=" + Math.random();
  window.document.panpic4.src = "panorama.jpg?index=1&camera="  + nCamNr + "newurl=" + Math.random();
  window.document.panpic5.src = "panorama.jpg?index=2&camera="  + nCamNr + "newurl=" + Math.random();
  window.document.view.src = "fullsize.push?sleep=20&camera="  + nCamNr + "newurl=" + Math.random();
}
function JS_PanoNew() {
  if(nTourRunning == 0) {
    parent.down.location.href="panorama.jpg?index=NEW&camera=" + nCamNr;
    window.setTimeout("JS_PanoNewPic()",25000);
  }
  else alert("No Function - Camera tour is running!");
}
function JS_ReloadJpeg() {
  window.document.view.src = "fullsize.jpg?camera=" + nCamNr + "newurl=" + Math.random();
  if(window.document.view.complete == true) window.setTimeout("JS_ReloadJpeg()",1000);
}




