// ***********************
// Copyright by GardenaNet
// ***********************
// info@gardena.net 
// ***********************



//************************
// Apertura di una nuova finestra senza toolbar ecc.
//
// PARAMETRI:
// 		file 		nome pagina da aprire
// 		breite, hoehe 	dimensioni finestra

var page;

function opennew(file, breite, hoehe){
 page = window.open(file,"page","width="+breite+", height="+hoehe+", toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no");
        }


// *************************
// chiude le finestre aperte
// *************************


function check_popup() {
	if (page) {
		page.close();
	}
}



//************************
// Preloader per Imagini


var ImageListOff=new Array();
var ImageListOn= new Array();

onload=ImagesPreload;

function ImagesPreload(){
	if(document.images){
		ImageListOff[0]= new Image; ImageListOff[0].src='images/ita-off.gif';
		ImageListOn[0] = new Image; ImageListOn[0].src='images/ita-on.gif';		

		ImageListOff[1]= new Image; ImageListOff[1].src='images/deu-off.gif';
		ImageListOn[1] = new Image; ImageListOn[1].src='images/deu-on.gif';

		ImageListOff[2]= new Image; ImageListOff[2].src='images/eng-off.gif';
		ImageListOn[2] = new Image; ImageListOn[2].src='images/eng-on.gif';

	}
}





// Cambio Mouseover

function ImageOn(NumeroImage,NomeImage){
	if (ImageListOn[NumeroImage])
		document[NomeImage].src=ImageListOn[NumeroImage].src;
}

function ImageOff(NumeroImage,NomeImage){
	if (ImageListOff[NumeroImage])
		document[NomeImage].src=ImageListOff[NumeroImage].src;
}
	


