


function oculta (a,b,c,d){
	if (document.getElementById('op'+a+'f').style.display=='')	
	new Effect.SlideUp('op'+a+'f');
	if (document.getElementById('op'+b+'f').style.display=='')		
	new Effect.SlideUp('op'+b+'f');
	if (document.getElementById('op'+c+'f').style.display=='')		
	new Effect.SlideUp('op'+c+'f');		
	if (document.getElementById('op'+d+'f').style.display=='')		
	new Effect.SlideUp('op'+d+'f');		
}

//"altera('classif','abaclass','artil','cont','bolao','arqui')"


function resetAll(id,id3,id4){
	document.getElementById(id).style.display='none';
	document.getElementById('aba'+id).src='images/aba'+id+'.gif';   		
	document.getElementById(id3).style.display='none';
	document.getElementById('aba'+id3).src='images/aba'+id3+'.gif';   			
	document.getElementById(id4).style.display='none';
	document.getElementById('aba'+id4).src='images/aba'+id4+'.gif';   			
}


function executavideo(){
	if (pe)
	pe.stop();
//	document.getElementById('videos').innnerHTML='Aguarde... Fechando janela...';
	new Effect.BlindUp('videos');
	new Effect.BlindUp('separa2');
}



 function altera(id,id2,id3,id4,cliq)
 {
resetAll(id,id3,id4);		 
new Effect.SlideDown(id);	
if (document.getElementById(id3).style.display!='none') 
{ 
	document.getElementById(id3).style.display='none';
	document.getElementById('aba'+id3).src='images/aba'+id3+'.gif';   	
}
if (document.getElementById(id4).style.display!='none') 
{ 
	document.getElementById(id4).style.display='none';
	document.getElementById('aba'+id4).src='images/aba'+id4+'.gif';   	
}
//  document.getElementById(id).style.display='';
  document.getElementById(id2).src='images/'+id2+'min.gif';
  document.getElementById(cliq).onmouseover=
    
   function altera2() {
  document.getElementById(id).style.display='none';
  document.getElementById(id2).src='images/'+id2+'.gif';   
   document.getElementById(cliq).onclick=function roda() { altera(id,id2,id3,id4, cliq); } ;
   };  
 }

 
function resetAll2(id,id2,id3,id4,cliq,cliq2){
	new Effect.SlideUp(id);
    document.getElementById(cliq2).style.display='';    
    document.getElementById(cliq).style.display='none';    	
	document.getElementById('aba'+id).src='images/aba'+id+'.gif';   		
	document.getElementById(id3).style.display='none';
	document.getElementById('aba'+id3).src='images/aba'+id3+'.gif';   			
	document.getElementById(id4).style.display='none';
	document.getElementById('aba'+id4).src='images/aba'+id4+'.gif';   			
    document.getElementById(id2).src='images/'+id2+'.gif';	
}





if (document.all)
var speed=3
else
var speed=8

var contentheight1;
var contentheight2;
var contentheight3;
var contentheight4;
var contentheight5;
var contentheight6;
var contentheight7;
var contentheight8;

function movedown1(){
var crossobj=document.getElementById("i0");
getcontent_height(crossobj);
if (parseInt(crossobj.style.top)>=(contentheight1*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
movedownvar=setTimeout("movedown1()",20)
}

function moveup1(){
var crossobj=document.getElementById("i0");
getcontent_height(crossobj);
if (parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
moveupvar=setTimeout("moveup1()",20)
}


function movedown2(){
var crossobj=document.getElementById("i0m");
getcontent_height2(crossobj);
if (parseInt(crossobj.style.top)>=(contentheight2*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
movedownvar=setTimeout("movedown2()",20)
}

function moveup2(){
var crossobj=document.getElementById("i0m");
getcontent_height2(crossobj);
if (parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
moveupvar=setTimeout("moveup2()",20)
}

function movedown3(){
var crossobj=document.getElementById("i0c");
getcontent_height3(crossobj);
if (parseInt(crossobj.style.top)>=(contentheight3*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
movedownvar=setTimeout("movedown3()",20)
}

function moveup3(){
var crossobj=document.getElementById("i0c");
getcontent_height3(crossobj);
if (parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
moveupvar=setTimeout("moveup3()",20)
}

function movedown4(){
var crossobj=document.getElementById("i0d");
getcontent_height4(crossobj);
if (parseInt(crossobj.style.top)>=(contentheight4*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
movedownvar=setTimeout("movedown4()",20)
}

function moveup4(){
var crossobj=document.getElementById("i0d");
getcontent_height4(crossobj);
if (parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
moveupvar=setTimeout("moveup4()",20)
}

function movedown5(){
var crossobj=document.getElementById("reljogadores");
getcontent_height5(crossobj);
if (parseInt(crossobj.style.top)>=(contentheight5*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
movedownvar=setTimeout("movedown5()",20)
}

function moveup5(){
var crossobj=document.getElementById("reljogadores");
getcontent_height5(crossobj);
if (parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
moveupvar=setTimeout("moveup5()",20)
}

function movedown6(){
var crossobj=document.getElementById("i0f");
getcontent_height6(crossobj);
if (parseInt(crossobj.style.top)>=(contentheight6*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
movedownvar7=setTimeout("movedown6()",20)
}

function moveup6(){
var crossobj=document.getElementById("i0f");
getcontent_height6(crossobj);
if (parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
moveupvar7=setTimeout("moveup6()",20)
}

function movedown7(){
var crossobj=document.getElementById("mensagens");
getcontent_height7(crossobj);
if (parseInt(crossobj.style.top)>=(contentheight7*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
movedownvar=setTimeout("movedown7()",20)
}

function moveup7(){
var crossobj=document.getElementById("mensagens");
getcontent_height7(crossobj);
if (parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
moveupvar=setTimeout("moveup7()",20)
}

function movedown8(){
var crossobj=document.getElementById("i0d");
getcontent_height8(crossobj);
if (parseInt(crossobj.style.top)>=(contentheight8*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
movedownvar8=setTimeout("movedown8()",20)
}

function moveup8(){
var crossobj=document.getElementById("i0d");
getcontent_height8(crossobj);
if (parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
moveupvar8=setTimeout("moveup8()",20)
}

function getcontent_height(crossobj){
contentheight1=crossobj.offsetHeight;
}

function getcontent_height2(crossobj){
contentheight2=crossobj.offsetHeight;
}

function getcontent_height3(crossobj){
contentheight3=crossobj.offsetHeight;
}

function getcontent_height4(crossobj){
contentheight4=crossobj.offsetHeight;
}

function getcontent_height5(crossobj){
contentheight5=crossobj.offsetHeight;
}

function getcontent_height6(crossobj){
contentheight6=crossobj.offsetHeight;
}

function getcontent_height7(crossobj){
contentheight7=crossobj.offsetHeight;
}
function getcontent_height8(crossobj){
contentheight8=crossobj.offsetHeight;
}

function TextScroll(scrollname, div_name, up_name, down_name)
{
    this.div_name = div_name;
    this.name = scrollname;
    this.scrollCursor = 0;
    this.speed = 5;
    this.timeoutID = 0;
    this.div_obj = null;
    this.up_name = up_name;
    this.dn_name = down_name;

{
        if (document.getElementById) {
            div_obj = document.getElementById(this.div_name);
            if (div_obj) {
                this.div_obj = div_obj;
                this.div_obj.style.overflow = 'hidden';
            }
            div_up_obj = document.getElementById(this.up_name);
            div_dn_obj = document.getElementById(this.dn_name);
            if (div_up_obj && div_dn_obj) {
                div_up_obj.setAttribute("onmouseover", scrollname + ".scrollUp();")
                div_up_obj.setAttribute("onmouseout", scrollname + ".stopScroll();")

div_dn_obj.setAttribute("onmouseover", scrollname + ".scrollDown();")
                div_dn_obj.setAttribute("onmouseout", scrollname + ".stopScroll();")
            }
        }
    }

this.stopScroll = function() {
        clearTimeout(this.timeoutID);
    }

this.scrollUp = function() {
        if (this.div_obj) {
            this.scrollCursor = (this.scrollCursor - this.speed) < 0 ? 0 : this.scrollCursor - this.speed;
            this.div_obj.scrollTop = this.scrollCursor;
            this.timeoutID = setTimeout(this.name + ".scrollUp()", 60);
        }
    }

this.scrollDown = function() {
        if (this.div_obj) {
            this.scrollCursor += this.speed;
            this.div_obj.scrollTop = this.scrollCursor;
            this.timeoutID = setTimeout(this.name + ".scrollDown()", 60);
        }
    }

this.resetScroll = function() {
        if (this.div_obj) {
            this.div_obj.scrollTop = 0;
            this.scrollCursor = 0;
        }
    }
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}