





function agrandir_div(id)
{
	document.getElementById(id).style.height = 'auto';
	document.getElementById(id).style.display = 'block';
}

function reduir_div(id)
{
	document.getElementById(id).style.height = '0px';
	document.getElementById(id).style.display = 'none';
}











function agrandir_admin(id, hmax, i)
{
    if ( i<hmax ){     
        i++;
        document.getElementById(id).style.height = i+'px';
        setTimeout( function() { agrandir_admin(id, hmax, i); }, 2 );  
     }
}
function reduir_admin(id, hmax, i)
{
    if ( hmax > 0 ){     
        i++;
        hmax = hmax-i;
        document.getElementById(id).style.height = hmax+'px';
        setTimeout( function() { reduir_admin(id, hmax, i); }, 1 );  
     }
}





function agrandir_admin_1(id, hmax, i){
    if (hmax <= i){
        i++;
        var delais = 1;
        document.getElementById(id).style.height = i+'px';
        setTimeout("agrandir_admin(id, hmax, i)",delais);
    }
}

function reduir_admin_1(id, hmax, i){
    if (hmax > 0){
        i++;
        hmax = hmax-i;
        var delais = 1;
        document.getElementById(id).style.height = hmax+'px';
        setTimeout("reduir_admin(id, hmax, i)",delais);
    }
}


