{
    invia_adessoon = new Image(); invia_adessoon.src = "images/adesso/bottone_over.gif";
    invia_adessooff = new Image(); invia_adessooff.src = "images/adesso/bottone.gif";

    viaggion = new Image(); viaggion.src = "images/home/offerte/bt-viaggi-hover.jpg";
    viaggioff = new Image(); viaggioff.src = "images/home/offerte/bt-viaggi.jpg";

    acquistion = new Image(); acquistion.src = "images/home/offerte/bt-acquisti-hover.jpg";
    acquistioff = new Image(); acquistioff.src = "images/home/offerte/bt-acquisti.jpg";

    offertissimeon = new Image(); offertissimeon.src = "images/home/offerte/bt-offertissime-hover.jpg";
    offertissimeoff = new Image(); offertissimeoff.src = "images/home/offerte/bt-offertissime.jpg";

    annuncion = new Image(); annuncion.src = "images/home/offerte/bt-annunci-hover.jpg";
    annuncioff = new Image(); annuncioff.src = "images/home/offerte/bt-annunci.jpg";

    servizion = new Image(); servizion.src = "images/home/offerte/bt-servizi-hover.jpg";
    servizioff = new Image(); servizioff.src = "images/home/offerte/bt-servizi.jpg";

    registrazioneon = new Image(); registrazioneon.src = "images/home/offerte/bt-registrazione-hover.jpg";
    registrazioneoff = new Image(); registrazioneoff.src = "images/home/offerte/bt-registrazione.jpg";


}
//FUNZIONI SCAMBIO IMMAGINI
function rollOverObj(imgName,obj) {
    imgOn = eval(imgName + "on.src");
    obj.src = imgOn;
}
function rollOutObj(imgName,obj) {
    imgOff = eval(imgName + "off.src");
    obj.src = imgOff;
}


function rollOver(imgName) {
        imgOn = eval(imgName + "on.src");
        document[imgName].src = imgOn
    }

function rollOut(imgName) {
        imgOff = eval(imgName + "off.src");
        document[imgName].src = imgOff
    }


<!-- Begin
function OpenImage(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+40;
  altez=foto1.height+30;
  
  leftVal = (screen.width - largh) / 2;
  topVal = (screen.height - altez) / 2;
  
  
  stringa="width="+largh+",height="+altez+",resizable=yes,scrollbars=yes,left=" + leftVal + ",top=" + topVal;
  finestra=window.open(img,"",stringa);
}
//  End -->


function handle_div(id_div_to_handle) {
    ref = document.getElementById(id_div_to_handle);

    if (ref.style.display == 'none') {
        ref.style.display = 'block';
    }
    else {
        ref.style.display = 'none';
    }
}

function hide_div(id_div_to_handle) {
    ref = document.getElementById(id_div_to_handle);
    ref.style.display = 'none';
}

function show_div(id_div_to_handle) {
    ref = document.getElementById(id_div_to_handle);
    ref.style.display = 'block';
}



function limitText(limitField, limitNum) {
    if (limitField.value.length > limitNum) {
        limitField.value = limitField.value.substring(0, limitNum);
    }
}




function ChangeClassOver(id,s_ClassName) {
	var obj = document.getElementById(id);
    obj.className = s_ClassName;
}

function ChangeClassOut(id, s_ClassName) {
var obj = document.getElementById(id);
    obj.className = s_ClassName;
} 



 function WindowPopUp_segnala(theURL, winName, w, h) {
            var l = (screen.width - w) / 2;
            var t = (screen.height - h) / 2;

            features = "menubar=no,resizable=yes,dependent=yes,location=no,status=no,scrollbars=yes,directories=no,toolbar=no";
            features = features + ",left=" + l + ",top=" + t + ",height=" + h + ",width=" + w;
            window.open(theURL, winName, features);
		
        }		



// aggiungi a perferiti

function CJL_saveLink(anchorId, linkTitle, url, bookmarkText, tabText) {
    function set(innerHTML, href) {
        elem = document.getElementById(anchorId);

        elem.innerHTML = innerHTML;

        elem.href = "javascript:" + href;
    }

    function quote(s) {
        return "'" + s + "'";
    }

    url = quote(url ? url : location.href);
    linkTitle = quote(linkTitle ? linkTitle : document.title);

    if (window.external && /Win/.test(navigator.userAgent)) {
        set(
        bookmarkText ? bookmarkText : "Aggiungi questa pagina ai Preferiti",
        "external.AddFavorite(" + url + "," + linkTitle + ")"
        );
    }
    else if (window.sidebar && sidebar.addPanel) {
        set(
        tabText ? tabText : "Aggiungi alla Sidebar",
        "sidebar.addPanel(" + linkTitle + "," + url + ",'')"
        );
    }
}

