<!--

//----------------------------------------------------------------------
// JavaScript code to operate the control buttons for the PTViewer.
//
// You need to include this code only once on your HTML page,
// regardless of how many PTViewers you embed in your page.
//----------------------------------------------------------------------
var isNav = false;
var isIE = false;
var handCursor;

// Figure out which browser is running.

if ((navigator.appName.indexOf("Netscape") != -1) &&
    (parseInt(navigator.appVersion) >= 4)) {
  isNav = true;
} else if ((navigator.appName.indexOf("Microsoft") != -1) &&
           (parseInt(navigator.appVersion) >= 4)) {
  isIE = true;
} else {
}

if (isIE) {
  handCursor = 'hand';
} else {
  handCursor = 'pointer';
}

function ZoomIn(t)
//----------------------------------------------------------------------
// Zoom in on the PTViewer applet. 
//----------------------------------------------------------------------
{
  t.stopAutoPan();
  t.startAutoPan(0, 0, 1.0 / 1.03);
}

function ZoomOut(t)
//----------------------------------------------------------------------
// Zoom out on the PTViewer applet. 
//----------------------------------------------------------------------
{
  t.stopAutoPan();
  t.startAutoPan(0, 0, 1.03);
}

function StopZoom(t)
{
  t.stopAutoPan();
}

function Help(t)
{
  var x, y;
  var w;

  if (isNav) {
    x = window.screenX + 20;
    y = window.screenY + 20;
    w = window.setTimeout(
          'window.open("http://www.fh-furtwangen.de/~dersch/PTVJ/doc.html",' +
          '"PTViewerHelp",' +
          '",screenX=' + x + ',screenY=' + y +
          ',resizable=yes,scrollbars=yes")', 0);
  } else {
    w = window.setTimeout(
          'window.open("http://www.fh-furtwangen.de/~dersch/PTVJ/doc.html",' +
          '"PTViewerHelp",' +
          '",screenX=' + x + ',screenY=' + y +
          ',resizable=yes,scrollbars=yes")', 0);
  }
  return;
}

function Info(t)
{
  alert(t.getAppletInfo());
  return;
}

//-->
