// ###########################
//
// Javascipt di www.web2net.it
//
// versione:        1.0
// data:        18.01.2004
// autore:        Laurin Moroder
//
// info@web2net.it
//
// ############################

// barra di stato

window.status = "Apartments Clivia *** - Selva / Wolkenstein - Val Gardena / Gröden - Dolomiti";


// Per aprire un popup


function popup(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");
}



// Images Preloader


var ImageListOff=new Array();
var ImageListOn=new Array();

onload=ImagesPreload;

function ImagesPreload(){
        if(document.images){

                ImageListOff[1]= new Image; ImageListOff[1].src='../images/menu/menu_appartamenti_off.jpg';
                ImageListOn[1] = new Image; ImageListOn[1].src='../images/menu/menu_appartamenti_on.jpg';
                ImageListOff[2]= new Image; ImageListOff[2].src='../images/menu/menu_noi_off.jpg';
                ImageListOn[2] = new Image; ImageListOn[2].src='../images/menu/menu_noi_on.jpg';
                ImageListOff[3]= new Image; ImageListOff[3].src='../images/menu/menu_posizione_off.jpg';
                ImageListOn[3] = new Image; ImageListOn[3].src='../images/menu/menu_posizione_on.jpg';
	 			ImageListOff[4]= new Image; ImageListOff[4].src='../images/menu/menu_prezzi_off.jpg';
                ImageListOn[4] = new Image; ImageListOn[4].src='../images/menu/menu_prezzi_on.jpg';
                ImageListOff[5]= new Image; ImageListOff[5].src='../images/menu/menu_prenotazione_off.jpg';
                ImageListOn[5] = new Image; ImageListOn[5].src='../images/menu/menu_prenotazione_on.jpg';
                ImageListOff[6]= new Image; ImageListOff[6].src='../images/menu/menu_comearrivare_off.jpg';
                ImageListOn[6] = new Image; ImageListOn[6].src='../images/menu/menu_comearrivare_on.jpg';
                ImageListOff[7]= new Image; ImageListOff[7].src='../images/menu/menu_cosmea_off.jpg';
                ImageListOn[7] = new Image; ImageListOn[7].src='../images/menu/menu_cosmea_on.jpg';
                
                ImageListOff[71]= new Image; ImageListOff[71].src='images/menu/menu_appartamenti_off.jpg';
                ImageListOn[71] = new Image; ImageListOn[71].src='images/menu/menu_appartamenti_on.jpg';
                ImageListOff[72]= new Image; ImageListOff[72].src='images/menu/menu_noi_off.jpg';
                ImageListOn[72] = new Image; ImageListOn[72].src='images/menu/menu_noi_on.jpg';
                ImageListOff[73]= new Image; ImageListOff[73].src='images/menu/menu_posizione_off.jpg';
                ImageListOn[73] = new Image; ImageListOn[73].src='images/menu/menu_posizione_on.jpg';
	 			ImageListOff[74]= new Image; ImageListOff[74].src='images/menu/menu_prezzi_off.jpg';
                ImageListOn[74] = new Image; ImageListOn[74].src='images/menu/menu_prezzi_on.jpg';
                ImageListOff[75]= new Image; ImageListOff[75].src='images/menu/menu_prenotazione_off.jpg';
                ImageListOn[75] = new Image; ImageListOn[75].src='images/menu/menu_prenotazione_on.jpg';
                ImageListOff[76]= new Image; ImageListOff[76].src='images/menu/menu_comearrivare_off.jpg';
                ImageListOn[76] = new Image; ImageListOn[76].src='images/menu/menu_comearrivare_on.jpg';
                ImageListOff[77]= new Image; ImageListOff[77].src='images/menu/menu_cosmea_off.jpg';
                ImageListOn[77] = new Image; ImageListOn[77].src='images/menu/menu_cosmea_on.jpg';
                ImageListOff[78]= new Image; ImageListOff[78].src='../images/menu/menu_cosmea2_off.jpg';
                ImageListOn[78] = new Image; ImageListOn[78].src='../images/menu/menu_cosmea2_on.jpg';
                
                ImageListOff[28]= new Image; ImageListOff[28].src='../images/menu/menu_wohnung_off.jpg';
                ImageListOn[28] = new Image; ImageListOn[28].src='../images/menu/menu_wohnung_on.jpg';
                ImageListOff[29]= new Image; ImageListOff[29].src='../images/menu/menu_wir_off.jpg';
                ImageListOn[29] = new Image; ImageListOn[29].src='../images/menu/menu_wir_on.jpg';
                ImageListOff[30]= new Image; ImageListOff[30].src='../images/menu/menu_lage_off.jpg';
                ImageListOn[30] = new Image; ImageListOn[30].src='../images/menu/menu_lage_on.jpg';
	 			ImageListOff[31]= new Image; ImageListOff[31].src='../images/menu/menu_preise_off.jpg';
                ImageListOn[31] = new Image; ImageListOn[31].src='../images/menu/menu_preise_on.jpg';
                ImageListOff[32]= new Image; ImageListOff[32].src='../images/menu/menu_anfrage_off.jpg';
                ImageListOn[32] = new Image; ImageListOn[32].src='../images/menu/menu_anfrage_on.jpg';
                ImageListOff[33]= new Image; ImageListOff[33].src='../images/menu/menu_anreise_off.jpg';
                ImageListOn[33] = new Image; ImageListOn[33].src='../images/menu/menu_anreise_on.jpg';
                ImageListOff[34]= new Image; ImageListOff[34].src='../images/menu/menu_cosmea_off.jpg';
                ImageListOn[34] = new Image; ImageListOn[34].src='../images/menu/menu_cosmea_on.jpg';
                ImageListOff[35]= new Image; ImageListOff[35].src='../images/header_1_deu.jpg';
                ImageListOn[35] = new Image; ImageListOn[35].src='../images/header_1_deu_over.jpg';

                
                ImageListOff[8]= new Image; ImageListOff[8].src='../images/header_1.jpg';
                ImageListOn[8] = new Image; ImageListOn[8].src='../images/header_1_over.jpg';                
                ImageListOff[81]= new Image; ImageListOff[81].src='images/header_1.jpg';
                ImageListOn[81] = new Image; ImageListOn[81].src='images/header_1_over.jpg';
                                
                
                ImageListOff[36]= new Image; ImageListOff[36].src='../images/menu/menu_apartments_off.jpg';
                ImageListOn[36] = new Image; ImageListOn[36].src='../images/menu/menu_apartments_on.jpg';
                ImageListOff[37]= new Image; ImageListOff[37].src='../images/menu/menu_aboutus_off.jpg';
                ImageListOn[37] = new Image; ImageListOn[37].src='../images/menu/menu_aboutus_on.jpg';
                ImageListOff[38]= new Image; ImageListOff[38].src='../images/menu/menu_location_off.jpg';
                ImageListOn[38] = new Image; ImageListOn[38].src='../images/menu/menu_location_on.jpg';
                ImageListOff[39]= new Image; ImageListOff[39].src='../images/menu/menu_prices_off.jpg';
                ImageListOn[39] = new Image; ImageListOn[39].src='../images/menu/menu_prices_on.jpg';
                ImageListOff[40]= new Image; ImageListOff[40].src='../images/menu/menu_howto_off.jpg';
                ImageListOn[40] = new Image; ImageListOn[40].src='../images/menu/menu_howto_on.jpg';
                ImageListOff[41]= new Image; ImageListOff[41].src='../images/menu/menu_booking_contact_off.jpg';
                ImageListOn[41] = new Image; ImageListOn[41].src='../images/menu/menu_booking_contact_on.jpg';

                

                
             /*   ImageListOff[9]= new Image; ImageListOff[9].src='../images/appartamenti_1_out.jpg';
                ImageListOn[9] = new Image; ImageListOn[9].src='../images/appartamenti_1_1.jpg';
                ImageListOff[10]= new Image; ImageListOff[10].src='../images/appartamenti_1_out.jpg';
                ImageListOn[10] = new Image; ImageListOn[10].src='../images/appartamenti_1_2.jpg';
                ImageListOff[11]= new Image; ImageListOff[11].src='../images/appartamenti_2_out.jpg';
                ImageListOn[11] = new Image; ImageListOn[11].src='../images/appartamenti_2_1.jpg';
                ImageListOff[12]= new Image; ImageListOff[12].src='../images/appartamenti_2_out.jpg';
                ImageListOn[12] = new Image; ImageListOn[12].src='../images/appartamenti_2_2.jpg'; */
                
                
             /*   ImageListOff[13]= new Image; ImageListOff[13].src='../images/popups/3A_d.jpg';
                ImageListOn[13] = new Image; ImageListOn[13].src='../images/popups/3A_d_o.jpg';
                ImageListOff[14]= new Image; ImageListOff[14].src='../images/popups/3A_i.jpg';
                ImageListOn[14] = new Image; ImageListOn[14].src='../images/popups/3A_i_o.jpg';
                ImageListOff[15]= new Image; ImageListOff[15].src='../images/popups/3A_e.jpg';
                ImageListOn[15] = new Image; ImageListOn[15].src='../images/popups/3A_e_o.jpg';
	 			ImageListOff[16]= new Image; ImageListOff[16].src='../images/popups/3B_d.jpg';
                ImageListOn[16] = new Image; ImageListOn[16].src='../images/popups/3B_d_o.jpg';
                ImageListOff[17]= new Image; ImageListOff[17].src='../images/popups/3B_i.jpg';
                ImageListOn[17] = new Image; ImageListOn[17].src='../images/popups/3B_i_o.jpg';
                ImageListOff[18]= new Image; ImageListOff[18].src='../images/popups/3B_e.jpg';
                ImageListOn[18] = new Image; ImageListOn[18].src='../images/popups/3B_e_o.jpg';
                ImageListOff[19]= new Image; ImageListOff[19].src='../images/popups/4A_d.jpg';
                ImageListOn[19] = new Image; ImageListOn[19].src='../images/popups/4A_d_o.jpg';
                ImageListOff[20]= new Image; ImageListOff[20].src='../images/popups/4A_i.jpg';
                ImageListOn[20] = new Image; ImageListOn[20].src='../images/popups/4A_i_o.jpg';
                ImageListOff[21]= new Image; ImageListOff[21].src='../images/popups/4A_e.jpg';
                ImageListOn[21] = new Image; ImageListOn[21].src='../images/popups/4A_e_o.jpg';
                ImageListOff[22]= new Image; ImageListOff[22].src='../images/popups/4B_d.jpg';
                ImageListOn[22] = new Image; ImageListOn[22].src='../images/popups/4B_d_o.jpg';
                ImageListOff[23]= new Image; ImageListOff[23].src='../images/popups/4B_i.jpg';
                ImageListOn[23] = new Image; ImageListOn[23].src='../images/popups/4B_i_o.jpg';
                ImageListOff[24]= new Image; ImageListOff[24].src='../images/popups/4B_e.jpg';
                ImageListOn[24] = new Image; ImageListOn[24].src='../images/popups/4B_e_o.jpg';
                ImageListOff[25]= new Image; ImageListOff[25].src='../images/popups/clivia_deu.jpg';
                ImageListOn[25] = new Image; ImageListOn[25].src='../images/popups/clivia_deu_o.jpg';
                ImageListOff[26]= new Image; ImageListOff[26].src='../images/popups/clivia_ita.jpg';
                ImageListOn[26] = new Image; ImageListOn[26].src='../images/popups/clivia_ita_o.jpg';
                ImageListOff[27]= new Image; ImageListOff[27].src='../images/popups/clivia_eng.jpg';
                ImageListOn[27] = new Image; ImageListOn[27].src='../images/popups/clivia_eng_o.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;
}


