image3 = new Image();
image3.src="/img_pr/box_p_pr.gif";
image4 = new Image();
image4.src="/img_pr/box_q_pr.gif";
image1 = new Image();
image1.src="/img_pr/bott_ver-disp_pr.gif";

// funzione per cambiare colore alla celle di una tabella con mousover/out
function cambia(identificatore) {	
		if (document.getElementById(identificatore).className == "primo")
		{
			document.getElementById(identificatore).className = "st_cel_pr";
			document.getElementById('link_'+identificatore).className = "reg_lk_pr";
			
		}
		else
		{ // hover
			document.getElementById(identificatore).className = "primo";
			document.getElementById('link_'+identificatore).className = "reg_lk2_pr";
		}	
}

// funzione per le foto dell'hotel
function changefoto(foto_id){
	var img = document.getElementById('fotoHotel');
	img.src = foto_id
}


// questa funzione gestisce l'apertura e la chiusura delle
// finestrine nella pagina disponibilita
// EFFETTUARE LA PRENOTAZIONE e CONDIZIONI GENERALI
function change_sp(nameobj, nameobj2,stato){

	if (document.all[stato].value == "0"){
		document.all[nameobj].style.visibility = 'visible';
		document.all[nameobj].style.position = 'relative';
		document.all[nameobj2].style.visibility = 'hidden';
		document.all[nameobj2].style.position = 'absolute';
		document.all[stato].value = "1";
	}
	else if (document.all[stato].value == "1"){
		document.all[nameobj].style.visibility = 'hidden';
		document.all[nameobj].style.position = 'absolute';
		document.all[stato].value = "0";		
	}
	
}
