var ie=document.all?1:0,
n=(navigator.appName=="Netscape"),
n4=(n && parseInt(navigator.appVersion)<5);

timSpeed=1
contHeight=100

function hazScrollObj(obj,nest){var o;
        nest=(!nest) ? '':'document.'+nest+'.'
        this.css=(n4) ? eval(nest+'document.'+obj):(o=window.document.getElementById(obj)).style
        this.scrollHeight=n4?this.css.document.height:o.offsetHeight
        return this
}
//Variables
var scrollTim,oScroll;
var active=0;
function scroll(speed){var t=(n) ? oScroll[active].css.top : oScroll[active].css.pixelTop;
if(!t)t=0;else t=parseInt(t);
        clearTimeout(scrollTim)
        way=speed>0?1:0
        if((!way && t>-oScroll[active].scrollHeight+contHeight) || (way && t<0)){
                oScroll[active].css.top=t+speed
                scrollTim=setTimeout("scroll("+speed+")",timSpeed)
        }
}
function noScroll(){
        clearTimeout(scrollTim)
}
function scrollInicia(){
        oScroll=new Array()
        oScroll[0]=new  hazScrollObj('texto','Contenido')
        oScroll[0].css.visibility='visible'
}

