
function startOpen()
{
    var div1 = EL("warning-message");

    div1.style.display = "block";
    actif              = window.setInterval("decreaseOpen()",1);
}

function decreaseOpen()
{
    var div1   = EL("warning-message");
    var height = div1.style.height.substring(0,	div1.style.height.length-2);

    if (height < 120)
    {
        height            = (height*1) + 1;
        div1.style.height = height + "px";
    }
    else
    {
        window.clearInterval(actif);
    }
}

function startClose()
{
    actif = window.setInterval("decreaseClose()",1);
}

function decreaseClose()
{
    var div1   = EL("warning-message");
    var height = div1.style.height.substring(0,	div1.style.height.length-2);

    if (height > 0)
    {
        height            = (height*1) - 1;
        div1.style.height = height + "px";
    }
    else
    {
        div1.style.display = "none";

        window.clearInterval(actif);
    }
}

function startDecrease(heightAsk)
{
    div1                = EL("warning-message");
    div1.style.display  = "block";
    var speed           = 0.3;

    if (navigator.appName == "Microsoft Internet Explorer")
    {
        speed = 1;
    }

    actif = window.setInterval("decrease("+ heightAsk +")",speed);
}
    
function decrease(heightAsk)
{
    div1   = EL("warning-message");
    height = div1.style.height.substring(0,	div1.style.height.length-2);

    if (height < heightAsk)
    {
        height            = (height*1) + 1;
        div1.style.height = height + "px";
    }
    else if (height > heightAsk)
    {
        height            = (height*1) - 1;
        div1.style.height = height + "px";
    }
    else
    {
        window.clearInterval(actif);

        if (heightAsk == 0)
        {
            div1.style.display = "none";
        }
    }
}