function DoAutorotationStart() {
	document.ptviewer.startAutoPan( 0.5, 0.0, 1.0 );
}
function DorevrotationStart() {
	document.ptviewer.startAutoPan( -0.5, 0.0, 1.0 );
}
function DoAutorotationStop() {
    document.ptviewer.stopAutoPan();
}
function DoZoomIn() {
	document.ptviewer.startAutoPan( 0.0, 0.0, 1.0/1.05 );
    document.ptviewer.stopAutoPan();
}
function DoZoomOut() {
	document.ptviewer.startAutoPan( 0.0, 0.0, 1.05 );
    document.ptviewer.stopAutoPan();
}
function DoPanUp() {
	document.ptviewer.startAutoPan( 0.0, 1.0/1.05, 1.0);
}
function DoPanDown() {
	document.ptviewer.startAutoPan( 0.0, -1.0/1.05, 1.0 );
}
function DoShowHideHotspots() {
	document.ptviewer.toggleHS();
}
function DoReset() {
	document.ptviewer.gotoView( 0, 0, 80 );
	DoAutorotationStop();
}
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 newPanoFromList(panoI) {
	pano = panoI.options[panoI.selectedIndex].value;
	document.ptviewer.newPanoFromList(pano);
	document.ptviewer.start();
}
function newPanoFromImage(pano) {
	document.ptviewer.newPanoFromList(pano);
	document.ptviewer.start();
}
function loadplan(value)
{
	if(value == "1")
	{
		document.getElementById('blueprint').src="panos/2-17-07/print-garage.jpg";
		document.getElementById('blueprint').useMap="#main_floorplan_Map";
		newPanoFromImage('0');
	}
	if(value == "2")
	{
		document.getElementById('blueprint').src="panos/2-17-07/print-deck.jpg";
		document.getElementById('blueprint').useMap="#level2_floorplan_Map";
		newPanoFromImage('7');
}
}
