window.status="RESIDENCE VILLA BRUNA - CASSONE DI MALCESINE - LAGO DI GARDA - GARDASEE - LAKE GARDA";

OP = (window.opera) ? 1:0; 
IE4 = (document.all && !OP) ? 1:0; 
IE5 = (IE4 && document.getElementById) ? 1:0; 
NN4 = (document.layers) ? 1:0; 
NN6 = (!IE4 && !NN4 && document.getElementById) ? 1:0; 
NOT = (!OP && !IE4 && !IE5 && !NN4 && !NN6) ? 1:0;

if (OP){
document.write('<link rel=stylesheet href="home2.css" type="text/css">'); 
} 
else if(IE4 || IE5) { 
document.write('<link rel=stylesheet href="home2.css" type="text/css">'); 
} 
else if (NN4){
document.write('<link rel=stylesheet href="home2netscape4.css" type="text/css">'); 
}
else if (NN6){
document.write('<link rel=stylesheet href="home2.css" type="text/css">');
}
else{ // Tutti gli altri Browser
document.write('<link rel=stylesheet href="home2.css" type="text/css">'); 
}

function esistevalore() {

	var blocca = 0;
	var vuoto = "";

	if (document.prenotare.cognome.value == vuoto) {
	alert("The input is not correct");
	return false;
	}	

	if (document.prenotare.nome.value == vuoto) {
	alert("The input is not correct");
	return false;
	}	

	if (document.prenotare.email.value.length < 7) {
	alert("The input is not correct");
	return false;
	}	
		

	for (var i=0; i<document.prenotare.email.value.length; i++) {
	if (document.prenotare.email.value.charAt(i) == "@") {
	
	for (var j=0; j<document.prenotare.email.value.length; j++) {
	if (document.prenotare.email.value.charAt(j) == ".") {	
	var blocca = 1; }
		}
	    }
	

	if (document.prenotare.email.value.charAt(i) == " ") {
	alert("The input is not correct");
	return false;
	}
	}

	if ( blocca == 0) {
	alert("The input is not correct");
	return false;
	}

	return true; 
	}

function openwindow(theURL,winName,misure) { //v2.0
  window.open(theURL,winName,misure);
}

/*
<a href="paesi" onMouseOver="showImage('immagini/paesim_on.gif')" onMouseOut="showImage('immagini/paesim.gif')"><img border="0" name="PAESI" src="immagini/paesim.gif"></a>
*/
var bufferImage = new Array();

function Buffer(filename) {
    var i = bufferImage.length;
    bufferImage[i] = new Image();
    bufferImage[i].src = filename;
    }

function showImage(filename) {
    document.images[Image_Name].src = filename;
    }

Image_Name = "HOME";

function ashowImage(filename) {
    document.images[aImage_Name].src = filename;
    }

aImage_Name = "PHOTO";

function bshowImage(filename) {
    document.images[bImage_Name].src = filename;
    }

bImage_Name = "FACILITIES";

function cshowImage(filename) {
    document.images[cImage_Name].src = filename;
    }

cImage_Name = "MAP";

function dshowImage(filename) {
    document.images[dImage_Name].src = filename;
    }

dImage_Name = "PRICE";

function eshowImage(filename) {
    document.images[eImage_Name].src = filename;
    }

eImage_Name = "INFO";

function fshowImage(filename) {
    document.images[fImage_Name].src = filename;
    }

fImage_Name = "LAST";

Buffer("img/home.gif");
Buffer("img/home_on.gif");
Buffer("img/photo.jpg");
Buffer("img/photo_on.jpg");
Buffer("img/facilities.gif");
Buffer("img/facilities_on.gif");
Buffer("img/map.gif");
Buffer("img/map_on.gif");
Buffer("img/price.gif");
Buffer("img/price_on.gif");
Buffer("img/info.gif");
Buffer("img/info_on.gif");
Buffer("img/last.gif");
Buffer("img/last_on.gif");