
function addListener(elemento,baseName,handler) {
    if (elemento.addEventListener)
        elemento.addEventListener(baseName,handler,false);
    else if (elemento.attachEvent)
        elemento.attachEvent('on'+baseName, handler)
}
function remListener(elemento,baseName,handler) {
    if (elemento.removeEventListener)
        elemento.removeEventListener(baseName,handler,false);
    else if (elemento.attachEvent)
        elemento.detachEvent('on'+baseName, handler)
}
       
    function seleziona(prod,sel) {
        var descr=["descr4_1"];
        var selez=["prod4_1"];
        for (var i=0;i<descr.length;++i) {
                document.getElementById(descr[i]).style.display='none';
                document.getElementById("box"+descr[i]).className='descrprod';
                document.getElementById(selez[i]).className='boxprod';   
        }
        if (prod) {        
            document.getElementById(prod).style.display='inline';
            document.getElementById("box"+prod).className="descrprodsel";
            document.getElementById(sel).className="boxprodsel";
            //document.getElementById("descrprod1_1").className="descrprodsel";
        }    
        /*for (var i=0;i<=7;++i) {
            document.getElementById(newsIm[i]).className=newsIm[i]+area;    
        }*/
    }
    
    function descrizioni() {
        var ID_Pag_Hand = new Array(3);
        ID_Pag_Hand[0]=["prod4_1"];
        ID_Pag_Hand[1]=[];
        ID_Pag_Hand[2]=[selProd4_1]
        for (var i=0;i<ID_Pag_Hand[0].length;++i) {
            addListener(document.getElementById(ID_Pag_Hand[0][i]), 'mouseover', ID_Pag_Hand[2][i]);
            addListener(document.getElementById(ID_Pag_Hand[0][i]), 'focus', ID_Pag_Hand[2][i]);
        }    
    }

    function selProd4_1(){  
        seleziona("descr4_1","prod4_1");
    }

               
addListener(window, 'load', descrizioni);            
    

  

