// ###########################
//
// Javascipt di www.web2net.it
//
// versione:        1.0
// data:        18.01.2004
// autore:        Lukas Obletter
//
// info@web2net.it
//
// ############################

// barra di stato

window.status = "Weihnachtskrippe Bergland - Grödental - Val Gardena - Presepi in legno - Web Design © Copyright by WEB2NET 2006";


// Per aprire un popup


/*
function oeffnefenster (url) {
 fenster=window.open(url, "fenster1", "width=600,height=450,status=no,scrollbars=no,resizable=no,top=0,left=0");
 fenster.focus();
}

*/
function popup(file, larghezza, altezza)
{

        var openpopup = window.open(file,"", "width="+larghezza+", height="+altezza+", toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no");
}


function popup2(file, larghezza, altezza)
{

        var openpopup = window.open(file,"page", "width="+larghezza+", height="+altezza+", toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no");
}

function popup3(file, larghezza, altezza)
{

        var openpopup = window.open(file,"page", "width="+larghezza+", height="+altezza+", toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no");
}

/*
,"toolbar=no, left=2, top=2"

'toolbar=no,left=2,top=2,status=no,directories=no,menubar=no,scrollbars=no,resizable=no'
*/

var ImageListOff=new Array();
var ImageListOn=new Array();

onload=ImagesPreload;

function ImagesPreload(){
        if(document.images){

// bandieres

                ImageListOff[1]= new Image; ImageListOff[1].src='images/cover/gasthof_somont_willkommen.jpg';
                ImageListOn[1] = new Image; ImageListOn[1].src='images/cover/gasthof_somont_willkommen_a.jpg';
                ImageListOff[2]= new Image; ImageListOff[2].src='images/cover/albergo_somont_benvenuti.jpg';
                ImageListOn[2] = new Image; ImageListOn[2].src='images/cover/albergo_somont_benvenuti_a.jpg';
                ImageListOff[3]= new Image; ImageListOff[3].src='images/cover/hotel_somont_welcome.jpg';
                ImageListOn[3] = new Image; ImageListOn[3].src='images/cover/hotel_somont_welcome_a.jpg';

// menu DEU

                ImageListOff[21]= new Image; ImageListOff[21].src='../images/toc/button_weiter.gif';
                ImageListOn[21] = new Image; ImageListOn[21].src='../images/toc/button_weiter_a.gif';
                ImageListOff[22]= new Image; ImageListOff[22].src='../images/toc/button_zurueck.gif';
                ImageListOn[22] = new Image; ImageListOn[22].src='../images/toc/button_zurueck_a.gif';


// menu ENG

                ImageListOff[31]= new Image; ImageListOff[31].src='../images/grafica/juac/menu/eng/welcome.jpg';
                ImageListOn[31] = new Image; ImageListOn[31].src='../images/grafica/juac/menu/eng/welcome_a.jpg';
                ImageListOff[32]= new Image; ImageListOff[32].src='../images/grafica/juac/menu/eng/ambiente.jpg';
                ImageListOn[32] = new Image; ImageListOn[32].src='../images/grafica/juac/menu/eng/ambiente_a.jpg';
                ImageListOff[33]= new Image; ImageListOff[33].src='../images/grafica/juac/menu/eng/restaurant.jpg';
                ImageListOn[33] = new Image; ImageListOn[33].src='../images/grafica/juac/menu/eng/restaurant_a.jpg';
                ImageListOff[34]= new Image; ImageListOff[34].src='../images/grafica/juac/menu/eng/rooms.jpg';
                ImageListOn[34] = new Image; ImageListOn[34].src='../images/grafica/juac/menu/eng/rooms_a.jpg';
   				ImageListOff[35]= new Image; ImageListOff[35].src='../images/grafica/juac/menu/eng/location.jpg';
                ImageListOn[35] = new Image; ImageListOn[35].src='../images/grafica/juac/menu/eng/location_a.jpg';
                ImageListOff[36]= new Image; ImageListOff[36].src='../images/grafica/juac/menu/eng/prices.jpg';
                ImageListOn[36] = new Image; ImageListOn[36].src='../images/grafica/juac/menu/eng/prices_a.jpg';
                ImageListOff[37]= new Image; ImageListOff[37].src='../images/grafica/juac/menu/eng/request.jpg';
                ImageListOn[37] = new Image; ImageListOn[37].src='../images/grafica/juac/menu/eng/request_a.jpg';



}

}

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;
}
