
function visPopupOriz(strUrl)
{		
var sFeature = "fullscreen=no,scrollbars=no,toolbar=no,location=no,status=yes,menubar=no,resizable=no,width=550, height=400,left=10,top=10", screenx=0,screeny=73;
var newWin = window.open(strUrl,'fotoOr',sFeature);
newWin.focus();
return true;
}
function visPopupVert(strUrl)
{		
var sFeature = "fullscreen=no,scrollbars=no,toolbar=no,location=no,status=yes,menubar=no,resizable=no,width=400, height=550,left=10,top=10", screenx=0,screeny=73;
var newWin = window.open(strUrl,'fotoVe',sFeature);
newWin.focus();
return true;
}
function apriScheda(strUrl)
{
var sFeature = "fullscreen=no,scrollbars=yes,toolbar=no,location=no,status=yes,menubar=no,resizable=no,width=700, height=500,left=10,top=10", screenx=0,screeny=73;
var newWin = window.open(strUrl,'scheda',sFeature);
newWin.focus();
return true;
}
function getRequestParameterCamera (name)
{	 
loc = window.location.toString(); 
var ind=loc.indexOf(name); 
if (ind==-1 || name=="") return null; 
var ind1=loc.indexOf('&',ind); 
if (ind1==-1) ind1=loc.length; 
var valore= unescape(loc.substring(ind+name.length+1,ind1)); 	
if(valore=='cm4')
visualizzaCamera('camera4');
} 
function getRequestParameter (name)
{	 
loc = window.location.toString(); 
var ind=loc.indexOf(name); 
if (ind==-1 || name=="") return null; 
var ind1=loc.indexOf('&',ind); 
if (ind1==-1) ind1=loc.length; 
var valore= unescape(loc.substring(ind+name.length+1,ind1)); 	
caricaFoto(valore);
} 
function caricaFoto(image)
{
document.getElementById("foto").src =image;		
}
var mj = -240;
var int_open, int_close;
var velocita = 10;
function MJ_OpenMenu()
{
window.clearInterval(int_close);
int_open = window.setInterval("MJ_Open()", 15);
}
function MJ_CloseMenu()
{
window.clearInterval(int_open);
int_close = window.setInterval("MJ_Close()", 15);
}
function MJ_Open()
{
if (mj < 0)
{
mj = mj + velocita;
document.getElementById("Menu").style.left = mj+'px';
}
}
function MJ_Close()
{
if (mj > -230)
{
mj = mj - velocita;
document.getElementById("Menu").style.left = mj+'px';
}
}
function visualizzaCamera(tipo){
document.getElementById("camera1").style.display ='none';
document.getElementById("camera1Menu").className ='';
document.getElementById("camera2").style.display ='none';
document.getElementById("camera2Menu").className ='';
document.getElementById("camera3").style.display ='none';
document.getElementById("camera3Menu").className ='';
document.getElementById("camera4").style.display ='none';
document.getElementById("camera4Menu").className ='';
document.getElementById(tipo).style.display ='block';
document.getElementById(tipo+"Menu").className ='focus';
}
function visualizzaCameraVista(){		
document.location.href= 'camere.html?vis=cm4';			
	}