function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function initScrollers(){
	initScroller();
	initScroller2();
}


var speed=50   // speed of scroller
var step=1     // smoothness of movement
var y, scroll, hb, hs, h


function initScroller(){
	//rotateImage('rImage');
  if (document.getElementById && document.createElement && document.body.appendChild) {
	document.getElementById('noticia').style.width='220px'
	document.getElementById('noticia').style.height='60px'
    document.getElementById('control').style.display='block'
	
    hb=document.getElementById('board').offsetHeight
    //hc=document.getElementById('control').offsetHeight
    //hs=hb-6-hc
    hs=hb+12 //aqui era 12
    document.getElementById('scrollcontent').style.height=hs+'px'
    document.getElementById('scrollcontent').style.width='94%'
    tp=hs-(hs/3)
    document.getElementById('news').style.top=tp+'px'
    y=tp
    scroll=setTimeout('startScroller()',50)
  }
}


function startScroller(){	
  h=document.getElementById('news').offsetHeight
  y-=step
  if (y<-h) {y=hs}
  document.getElementById('news').style.top=y+'px'
  scroll=setTimeout('startScroller()',50)
}

function stopScroller(){clearTimeout(scroll)}

function scrollUp(){
  if (document.getElementById) {
    y-=step*20
    if (y<-h) {y=hs}
    document.getElementById('news').style.top=y+'px'
  }
}

function scrollDown(){
  if (document.getElementById) {
    y+=step*50
    if (y>h) {y=h}
    document.getElementById('news').style.top=y+'px'
  }
}



var speed2=50   // speed of scroller
var step2=1     // smoothness of movement
var y2, scroll2, hb2, hs2, h2

function initScroller2(){

  if (document.getElementById && document.createElement && document.body.appendChild) {
	  document.getElementById('documento').style.width='220px'
      document.getElementById('documento').style.height='60px'
	document.getElementById('control2').style.display='block' 
	
    hb2=document.getElementById('board2').offsetHeight
   // hc2=document.getElementById('control2').offsetHeight
    //hs2=hb2-6-hc2
	hs2=hb2+12
    document.getElementById('scrollcontent2').style.height=hs2+'px'
	document.getElementById('scrollcontent2').style.width='94%'
    tp2=hs2-(hs2/3)
    document.getElementById('news2').style.top=tp2+'px'
    y2=tp2
    scroll2=setTimeout('startScroller2()',50)
  }
}


function startScroller2(){	
  h2=document.getElementById('news2').offsetHeight
  y2-=step2
  if (y2<-h2) {y2=hs2}
  document.getElementById('news2').style.top=y2+'px'
  scroll2=setTimeout('startScroller2()',50)
}

function stopScroller2(){clearTimeout(scroll2)}

function scrollUp2(){
  if (document.getElementById) {
    y2-=step2*20
    if (y2<-h2) {y2=hs2}
    document.getElementById('news2').style.top=y2+'px'
  }
}

function scrollDown2(){
  if (document.getElementById) {
    y2+=step2*50
    if (y2>h2) {y2=h2}
    document.getElementById('news2').style.top=y2+'px'
  }
}



