	function DoAutorotationStartl() {
			document.ptviewer.startAutoPan( -0.5, 0.0, 1.0 );
	}
	function DoAutorotationStartu() {
			document.ptviewer.startAutoPan( 0.0, 0.5, 1.0 );
	}
	function DoAutorotationStartd() {
			document.ptviewer.startAutoPan( 0.0, -0.5, 1.0 );
	}
	function DoAutorotationStartr() {
			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.03 );
	}
	function DoZoomOut() {
		document.ptviewer.startAutoPan( 0.0, 0.0, 1.03 );
	}
	function DoShowHideHotspots() {
		document.ptviewer.toggleHS();
	}
	function DoReset() {
		document.ptviewer.gotoView( 0, 0, 100 );
	}
	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 startPano(n) {
		n = parseInt(n);
		document.ptviewer.newPanoFromList(n);
	}

	function changePosition(n) {
		n = parseInt(n);
		document.ptviewer.newPanoFromList(n);
		document.ptviewer.showHS();
		locazione.options.value = n;
		document.guida.SetVariable("stanza", n);
	}


function popup_foto(foto){	// Foto delle ragazze in dentro il pop up
							// 1 - Simona
							// 2 - Michela
							// 3 - Gaia
							// 4 - Paola
	foto = parseInt(foto);
	if (foto == 1)
		{ foto = 'fabiana.htm';	}
	else if (foto == 2)
		{ foto = 'paola.htm'; }
	else if (foto == 3)
		{ foto = 'esther.htm'; }
	else if (foto == 4)
		{ foto = 'michela.htm'; }
	else if (foto == 5)
		{ foto = 'daniela.htm'; }
	window.open("tour/"+foto,"Lunicoffee","width=300,height=370,titlebar=no,menubar=no,scrollbars=no");
	return false;
}
