// effetto di blend al rollover delle immafunction high(which2){    theobject=which2    highlighting=setInterval("highlightit(theobject)",40)}function highlightit(cur2){    if (cur2.style.MozOpacity>0.6)        cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)-0.1    else if (cur2.filters&&cur2.filters.alpha.opacity>60)        cur2.filters.alpha.opacity-=10    else if (window.highlighting)    clearInterval(highlighting)}function low(which2){    clearInterval(highlighting)    if (which2.style.MozOpacity)        which2.style.MozOpacity=1.0    else if (which2.filters)        which2.filters.alpha.opacity=100}// funzioni per l'accensione del div a ttt schermo con flashfunction accendi(oggetto,lar,alt,colore) {    document.getElementById('flash').style.visibility= "visible";    // posiziono il cont_flash    target = document.getElementById("cont_flash");    target.style.visibility= "visible";    target.style.width = lar;    target.style.height = alt;    target.style.marginLeft = -lar/2;    target.style.marginTop = -alt/2;    if (colore != undefined) {        target.style.backgroundColor = colore;    } else {        target.style.backgroundColor = "#FFFFFF";    }        //posiziono il chiudi_flash    target_chiudi = document.getElementById("chiudi_flash");    target_chiudi.style.marginLeft = (lar/2)-50    target_chiudi.style.marginTop = (alt/2)+5    blend(oggetto,lar,alt,colore);}function blend(oggetto,lar,alt,colore) {    var1 = oggetto;    var2 = lar;    var3 = alt;    var4 = colore;    lancio=setInterval("anima(var1,var2,var3,var4)",40)}function anima(flash,lar,alt,colore){    var_col = (colore != undefined) ? colore : "#FFFFFF";    target = document.getElementById("cont_flash");    if (target.style.MozOpacity < 1.0) {        target.style.MozOpacity=parseFloat(target.style.MozOpacity)+0.1    } else if (target.filters&&target.filters.alpha.opacity <100) {        target.filters.alpha.opacity+=10      } else if (target.style.opacity < 1.0) {        target.style.opacity = parseFloat(target.style.opacity)+0.1    } else if (window.lancio) {        document.getElementById('chiudi_flash').style.visibility = "visible";        if (flash.substr(flash.indexOf(".")) == ".swf") {			put_flash(flash, 'flash',lar,alt,'6.0',var_col,'',target,'ita');        } else if (flash.substr(flash.indexOf(".")) == ".mov") {            put_video ="<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\" height=\""+alt+"\" width=\""+lar+"\">";            put_video += "<param name=\"cache\" value=\"true\">";            put_video += "<param name=\"src\" value=\""+flash+"\">";            put_video += "<param name=\"autoplay\" value=\"true\">";            put_video += "<param name=\"controller\" value=\"true\">";            put_video += "<param name=\"volume\" value=\"30\">";            put_video += "<param name=\"scale\" value=\"noscale\">";            put_video += "<param name=\"bgcolor\" value=\""+var_col+"\">";            put_video += "<embed ";            put_video += "height=\""+alt+"\"";            put_video += "pluginspage=\"http://www.apple.com/quicktime/download/\" ";            put_video += "src=\""+flash+"\" ";            put_video += "type=\"video/quicktime\"";             put_video += "width=\""+lar+"\"";            put_video += "controller=\"true\"";            put_video += "autoplay=\"true\"";            put_video += "volume=\"30\"";            put_video += "scale=\"noscale\"";            put_video += "cache=\"true\"";            put_video += "bgcolor=\""+var_col+"\">";            put_video += "</object>";            target.innerHTML = put_video;        }        clearInterval(lancio)    }}function spegni() {    document.getElementById('chiudi_flash').style.visibility= "hidden";    var target = document.getElementById("cont_flash");    target.innerHTML = "";    if (target.style.MozOpacity) {        target.style.MozOpacity = 0.0;    } else if (target.style) {        target.style.opacity = 0;    }else if (target.filters || target.filters.alpha.opacity) {                target.filters.alpha.opacity= 0;    }    document.getElementById('cont_flash').style.visibility= "hidden";    document.getElementById('flash').style.visibility= "hidden";}// funzione inserimento flashfunction put_flash (file, descrizione, lar, alt, versione, fondo, style,div_dest,lang)  {    var so = new SWFObject(file, descrizione, lar, alt, versione, fondo, style,lang);    so.write(div_dest);}
