var t;
function animate_AvansSearch()
{
    var obj = document.getElementById("c_a_box");
    if (obj.style.display == "none")
    {
        obj.style.display = "block";
        showBox();
    }
    else
    {
        hideBox();
    }
}
function showBox()
{
    var obj = document.getElementById("c_a_box");
    var help = obj.style.height;
    var tocheckheight = parseInt(help.substring(0, help.length))
    if (tocheckheight <= "150" || obj.style.height == "")
    {
        if (obj.style.height == "")
        {
            obj.style.height = "5px";
        }
        else
        {
            var h = obj.style.height;
            var h2 = h.substring(0, h.length-2);
            var h3 = parseInt(h2);
            h3 += 5;
            obj.style.height = h3+"px";
        }
        //alert(h3+" - "+obj.style.height);
        var show=setTimeout("showBox()",10);
    }
    else
    {
        clearTimeout(show);
        obj.style.overflow = "none";
    }
}
function hideBox()
{
    var obj = document.getElementById("c_a_box");
    var help = obj.style.height;
    var tocheckheight = parseInt(help.substring(0, help.length))
    //alert(tocheckheight);
    if (tocheckheight > "0" || obj.style.height == "")
    {
        //alert("checkpoint");
        if (obj.style.height == "")
        {
            obj.style.height = "5px";
        }
        else
        {
            var h = obj.style.height;
            var h2 = h.substring(0, h.length-2);
            var h3 = parseInt(h2);
            h3 -= 5;
            obj.style.height = h3+"px";
        }
        //alert(h3+" - "+obj.style.height);
        var hide=setTimeout("hideBox()",10);
    }
    else
    {
        //alert("vege");
        obj.style.overflow = "hidden";
        document.getElementById("c_a_box").style.display="none";
        clearTimeout(hide);
    }
}



