function navegadores(){

   this.dom=document.getElementById?1:0

   return this
}
var bw=navegadores()


var speed = 200

var loop, timer

function makeObj(obj,nest){
    nest=(!nest) ? "":'document.'+nest+'.'
   this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
   this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
   this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
   this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
   this.up=goUp;this.down=goDown;
   this.moveIt=moveIt; this.x=0; this.y=0;
    this.obj = obj + "Object"
    eval(this.obj + "=this")
    return this
}

var px = bw.ns4||window.opera?"":"px";

function moveIt(x,y){
   this.x = y
   this.y = y+46
   this.css.left = this.x+px
}

function goDown(move){
   if (this.y>-this.scrollHeight+oCont.clipHeight){
      this.moveIt(0,this.x-move)
         if (loop) setTimeout(this.obj+".down("+move+")",speed)
   }

}
function goUp(move){
   if (this.x<0){
      this.moveIt(0,this.x-move)
      if (loop) setTimeout(this.obj+".up("+move+")",speed)
   }
}

function andaScroll(speed){
   if (scrolltextLoaded){
      loop = true;
      if (speed<0) oScroll.up(speed)
      else oScroll.down(speed)
   }
}

function stop(){
   loop = false
   if (timer) clearTimeout(timer)
}
var scrolltextLoaded = false
function scrolltextInit(){
   oCont = new makeObj('continente')
   oScroll = new makeObj('contenido','continente')
   oScroll.moveIt(0,-8)
   oCont.css.visibility = "visible"
   scrolltextLoaded = true
}

if (bw.bw) onload = scrolltextInit


 function voDown(){if (document.MediaPlayer.volume <= -5000) {document.MediaPlayer.volume+0}
else {document.MediaPlayer.volume=document.MediaPlayer.volume-250;}
timer= setTimeout('voDown()',300)
}

function voUp(){
if (document.MediaPlayer.volume >= -250) {document.MediaPlayer.volume+0;}
else  {document.MediaPlayer.volume=document.MediaPlayer.volume+250; }
timer=setTimeout('voUp()',300)
}

function para(){
   if (timer) clearTimeout(timer)
}
