
/*
* thx 2 panoflex for detect.js
*/

function winOpts() {
 if (bName == "NN") {
  b=screen.availWidth -10;
  h=screen.availHeight-30;
  x=0;
  y=0;
  strWinOpts='width='+b+',height='+h+',screenX='+x+',screenY='+y;
 } else {
  strWinOpts= 'scrollbars=0,fullscreen=1';
 }
 return strWinOpts;
}

function panomic( pano, what ) {
  if( what == 1 ) { 
    url = "/int/de/img/vollbildpanoramen/panomic/" + pano + ".html";
    features = 'width=354,height=300,top='+((screen.height/2)-(366/2))+',left='+((screen.width/2)-(354/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no';
    window.open(url,'panomic', features); 
  }
  else if( what == 2 ) {
    switch(state3z) {
      case "noqt":
        alert('Die Vollbildfunktion ist auf diesem Rechner nicht ohne die QuickTime 5-Software möglich.');
        break;
      case "qtax":
        window.open('/int/es/img/vollbildpanoramen/panomic'+'/qtax/frame1/'+pano+'.htm','panomic360',winOpts());
        break;
      case "qtbed":
        window.open('/int/es/img/vollbildpanoramen/panomic'+'/qtbed/frame1/'+pano+'.htm','panomic360',winOpts());
        break;
      default:
        alert("Es konnte nicht festgestellt werden, ob die QuickTime 5-Software und somit die Panorama-Vollbild-Funktion auf diesem Rechner verfügbar ist.");
        break;
    } 
  }
}

function panoReset() {
  document.ptviewer.gotoView( 160, 0, 80 );
  document.ptviewer.stopAutoPan();
}
function panoMove(pan, tilt) {
  document.ptviewer.startAutoPan( pan, tilt, 1.0 );
}
function panoStop() {
  document.ptviewer.stopAutoPan();
}
function panoZoom(zoomFactor) {
  document.ptviewer.startAutoPan( 0, 0, zoomFactor );
}

