function DoAutorotationStart(objectid) {
	document.getElementById(objectid).gotoView( 10, -20, 80 );
  document.getElementById(objectid).startAutoPan( 0.3, 0.0, 1.0 );
}
function DoAutorotationStop(objectid) {
        document.getElementById(objectid).stopAutoPan();
}
function DoZoomIn() {
	document.getElementById(objectid).startAutoPan( 0.0, 0.0, 1.0/1.03 );
}
function DoZoomOut(objectid) {
	document.getElementById(objectid).startAutoPan( 0.0, 0.0, 1.03 );
}

var cur_objectid = "";
var b_panMousedown 	= 0;

function ZoomIn(objectid){
  if(typeof objectid != 'undefined') cur_objectid = objectid;

	if(b_panMousedown) {
	  document.getElementById(cur_objectid).ZoomIn();
		setTimeout("ZoomIn()",30)
	}
}
function ZoomOut(objectid) {
  if(typeof objectid != 'undefined') cur_objectid = objectid;

  if(b_panMousedown){
	  document.getElementById(cur_objectid).ZoomOut();
		setTimeout("ZoomOut()",30)
	}
}
function DoShowHideHotspots(objectid) {
	document.getElementById(objectid).toggleHS();
}
function DoReset(objectid) {
	document.getElementById(objectid).gotoView( -45, -60, 80 );
}

function DoPanLeft(objectid) {
  document.getElementById(objectid).startAutoPan( -0.3, 0.0, 1.0 );
}

function DoPanRight(objectid) {
  document.getElementById(objectid).startAutoPan( 0.3, 0.0, 1.0 );
}