   function switchImage(i){
        if(i=='prev') i=active-1;
        if(i=='next') i=active+1;
        if( i<min ) i=min;
        if( i>max ) i=max;
        if(i!=active){
            clearTimeout(t);
            // desactiva actual
            document.getElementById('div_'+active).className="hide";
            document.getElementById('thumb_'+active).className="entrada_off";
            // activa nova
            document.getElementById('div_'+i).className="show";
            document.getElementById('thumb_'+i).className="entrada_active";
            active=i;
        /*    t=setTimeout('redirect()',10000);*/
        }
    }
    
 /*   var t=setTimeout('redirect()',10000);
    function redirect(){
        location.href='/index.php';
    }*/
