

//specify speed of scroll (greater=faster)
var speed=3

function movedown(str)
{
    obj = eval("obj"+str);
    contentheight = eval("contentheight"+str);
    
    if (iens6&&parseInt(obj.style.top)>=(contentheight*(-1)+100))
    obj.style.top=parseInt(obj.style.top)-speed+'px'
    else if (ns4&&obj.top>=(contentheight*(-1)+100))
    obj.top-=speed

    eval("movedownvar"+str+" = setTimeout(\"movedown('"+str+"')\",20)")

}

function moveup(str)
{
    obj = eval("obj"+str);
    contentheight = eval("contentheight"+str);
    
    if (iens6&&parseInt(obj.style.top)<=0)
    obj.style.top=parseInt(obj.style.top)+speed+'px'
    else if (ns4&&obj.top<=0)
    obj.top+=speed

    eval("moveupvar"+str+" = setTimeout(\"moveup('"+str+"')\",20)")


}

function getcontent_height()
{
    if (iens6){
        if( typeof(objAn)!= 'undefined' )
            contentheightAn=objAn.offsetHeight
        if( typeof(objAv)!= 'undefined' )
            contentheightAv=objAv.offsetHeight
    }
    else if (ns4){
        if( typeof(nscontainerAn)!= 'undefined'
            && typeof(nscontentAn)!= 'undefined' )
            document.nscontainerAn.document.nscontentAn.visibility='show'
        if( typeof(nscontainerAv)!= 'undefined'
            && typeof(nscontentAv)!= 'undefined' )
            document.nscontainerAv.document.nscontentAv.visibility='show'
    }
}

window.onload=getcontent_height

