//*** PTViewer built-in functions ***/

// control bar functions
function DoReset()
{
  document.ptviewer.gotoView(0,0,70);
}

function DoAuto()
{
  document.ptviewer.startAutoPan( 0.5, 0.0, 1.0 );
}
function DoUp()
{
  document.ptviewer.startAutoPan( 0.0, 0.1, 1.0 );
}
function DoDown()
{
  document.ptviewer.startAutoPan( 0.0, -0.1, 1.0 );
}
function DoLeft()
{
  document.ptviewer.startAutoPan( -1, 0.0, 1.0 );
}
function DoRight()
{
  document.ptviewer.startAutoPan( 1, 0.0, 1.0 );
}
function DoLeftAuto()
{
  document.ptviewer.startAutoPan( -0.1, 0.0, 1.0 );
}
function DoRightAuto()
{
  document.ptviewer.startAutoPan( 0.1, 0.0, 1.0 );
}
function DoZoomOut()
{
  document.ptviewer.startAutoPan( 0.0, 0.0, 1.025 );
}
function DoZoomIn()
{
  document.ptviewer.startAutoPan( 0.0, 0.0, 1.0/1.025 );
}
function DoStop()
{
  document.ptviewer.stopAutoPan();
}

// mouse over tour menu images
function over() {
    window.event.srcElement.style.filter = "alpha(opacity=100)";
}

function out() {
    window.event.srcElement.style.filter = "alpha(opacity=50)";
}


// preload viewer menu images
vMenu1 = new Image();
vMenu1.src = "../_images/vt_bar1dw.gif";

vMenu2 = new Image();
vMenu2.src = "../_images/vt_bar2dw.gif";

vMenu3 = new Image();
vMenu3.src = "../_images/vt_bar3.gif";

vMenu4 = new Image();
vMenu4.src = "../_images/vt_bar4dw.gif";

vMenu5 = new Image();
vMenu5.src = "../_images/vt_bar5dw.gif";

vMenu6 = new Image();
vMenu6.src = "../_images/vt_bar6dw.gif";

vMenu7 = new Image();
vMenu7.src = "../_images/vt_bar7dw.gif";

vMenu8 = new Image();
vMenu8.src = "../_images/vt_bar8dw.gif";

