function DoAutorotationStart(){
	document.ptviewer.startAutoPan( 0.058, 0.0, 1.0 );
}
function DoAutorotationStop(){
	document.ptviewer.stopAutoPan();
}
function DoZoomIn(){
	document.ptviewer.startAutoPan( 0.0, 0.0, 1.0/1.03 );
}
function DoZoomOut(){
	document.ptviewer.startAutoPan( 0.0, 0.0, 1.03 );
}
function DoShowHideHotspots(){
	document.ptviewer.toggleHS();
}
function DoReset(){
	document.ptviewer.gotoView( -45, 0, 80 );
}
function DisplayPan(){
	status = document.ptviewer.pan().toString();
}
function DisplayTilt(){
	status = document.ptviewer.tilt().toString();
}
function DisplayFov(){
	status = document.ptviewer.fov().toString();
}
function mousehs(n){
	if( n== -1 )
		document.cn.hsnum.value = "---";
	else
		document.cn.hsnum.value = n;
}
function getview(p,t,f){
document.cn.pan.value = p;
document.cn.tilt.value = t;
document.cn.fov.value = f;
}
function LoadNewPano(fileName){
	document.ptviewer.newPano('{file=' + fileName + '}');

	DoAutorotationStart();
}
function NewPano(){
	document.ptviewer.newPanoFromList(0);
}