// anoter

function posppage()
{
    for (i=0;i<6;i++)
    {
    z=(document.getElementById('info').style.top.charAt(i));
    if (z == "p")
        {
        p=i;
        }
    }
return p;           
}

function defilpage() //idem defilpageh()  et dehilpagehL()
{
p=posppage();
v=1;
    x=document.getElementById('info').offsetHeight;
    y=document.getElementById('cadre').offsetHeight;
    h=(document.getElementById('info').style.top.substr(0,p));
    tpage=setTimeout('defilpage()',50);
    
    //alert(" info= "+x+" cadre= "+y+" décalage= "+h);;
    if ((parseInt(h)+parseInt(x))<= 0 )
    {
     clearTimeout(tpage);
     document.getElementById("info").style.top = 0+"px";
    
    }
    else
    {
     document.getElementById("info").style.top = (parseInt(h)- parseInt(v))+"px";
    }
}


function defilpageh()
{
p=posppage();
v=1;
    clearTimeout(tpage);
    x=document.getElementById('info').offsetHeight;
    y=document.getElementById('cadre').offsetHeight;
    h=(document.getElementById('info').style.top.substr(0,p));
    tpage=setTimeout('defilpageh()',50);
    
        
        //alert(" x= "+x+" y= "+y+" h= "+h);;
    if ((parseInt(h)+parseInt(x))<= 0)
    {
     clearTimeout(tpage);
     document.getElementById("info").style.top = 0+"px";
    
    }
    else
    {
     document.getElementById("info").style.top = (parseInt(h)- parseInt(v))+"px";
    }
}

function defilpagehL()
{
p=posppage();
v=1;
    clearTimeout(tpage);
    x=document.getElementById('info').offsetHeight;
    y=document.getElementById('cadre').offsetHeight;
    h=(document.getElementById('info').style.top.substr(0,p));
    tpage=setTimeout('defilpagehL()',50);
    
        
        //alert(" x= "+x+" y= "+y+" h= "+h);;
    if ((parseInt(h)+parseInt(x))<= 0)
    {
     clearTimeout(tpage);
     document.getElementById("info").style.top = 0+"px";
    
    }
    else
    {
     document.getElementById("info").style.top = (parseInt(h)- parseInt(v))+"px";
    }
}

function defilpagehV()
{
p=posppage();
v=5;
    clearTimeout(tpage);
    x=document.getElementById('info').offsetHeight;
    y=document.getElementById('cadre').offsetHeight;
    h=(document.getElementById('info').style.top.substr(0,p));
    tpage=setTimeout('defilpagehV()',10);
    
            
        //alert(" x= "+x+" y= "+y+" h= "+h);;
    if ((parseInt(h)+parseInt(x))<= 0)
    {
     clearTimeout(tpage);
     document.getElementById("info").style.top = 0+"px";
    }
    else
    {
     document.getElementById("info").style.top = (parseInt(h)- parseInt(v))+"px";
    }

}

function defilpageb()      //idem defilpagebL()
{
p=posppage();
v=1;
    clearTimeout(tpage);
    x=document.getElementById('info').offsetHeight;
    h=(document.getElementById('info').style.top.substr(0,p));
    tpage=setTimeout('defilpageb()',50);
    

        //alert(" x= "+x+" y= "+y+" h= "+h);
    if ((parseInt(h))>=0)
    {
     clearTimeout(tpage);
     
    }
    else
    {
     document.getElementById("info").style.top = (parseInt(h)+ parseInt(v))+"px";
    }

}

function defilpagebL()
{
p=posppage();
v=1;
    clearTimeout(tpage);
    x=document.getElementById('info').offsetHeight;
    h=(document.getElementById('info').style.top.substr(0,p));
    tpage=setTimeout('defilpagebL()',50);
    

        //alert(" x= "+x+" y= "+y+" h= "+h);
    if ((parseInt(h))>=0)
    {
     clearTimeout(tpage);
     
    }
    else
    {
     document.getElementById("info").style.top = (parseInt(h)+ parseInt(v))+"px";
    }

}

function defilpagebV()
{
p=posppage();
v=5;
    clearTimeout(tpage);
    x=document.getElementById('info').offsetHeight;
    h=(document.getElementById('info').style.top.substr(0,p));
    tpage=setTimeout('defilpagebV()',10);
    

        //alert(" x= "+x+" y= "+y+" h= "+h);
    if ((parseInt(h))>=0)
    {
     clearTimeout(tpage);
     
    }
    else
    {
     document.getElementById("info").style.top = (parseInt(h)+ parseInt(v))+"px";
    }

}
