//função que abre a tabela e fecha
function sub1_abre(tabela){
    tabela = document.getElementById(tabela);
    if(tabela.style.display=="none"){
        tabela.style.display="block";
    } else {
        tabela.style.display="none";
    }
}

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];}}
}

//flash
function flash(arquivo, largura, altura)
{
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='" + largura + "' height='" + altura + "' ID=flashad>")
    document.write("<param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + arquivo + "'>")
    document.write("<param name='quality' value='high'><param name='wmode' value='transparent' />")
    document.write("<embed src='" + arquivo + "' quality='best' wmode='transparent'  bgcolor='#ffffff' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + largura + "' height='" + altura + "'></embed>")
    document.write("</object>")
}

function startList () {
		if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onmouseover=function() {
		this.className+=" over";
		  }
		  node.onmouseout=function() {
		  this.className=this.className.replace
			(" over", "");
		   }
		   }
		  }
		 }
		 if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav2");
		for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onmouseover=function() {
		this.className+=" over";
		  }
		  node.onmouseout=function() {
		  this.className=this.className.replace
			(" over", "");
		   }
		   }
		  }
		 }
		  if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav3");
		for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onmouseover=function() {
		this.className+=" over";
		  }
		  node.onmouseout=function() {
		  this.className=this.className.replace
			(" over", "");
		   }
		   }
		  }
		 }
		 if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav4");
		for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onmouseover=function() {
		this.className+=" over";
		  }
		  node.onmouseout=function() {
		  this.className=this.className.replace
			(" over", "");
		   }
		   }
		  }
		 }
		 if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav5");
		for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onmouseover=function() {
		this.className+=" over";
		  }
		  node.onmouseout=function() {
		  this.className=this.className.replace
			(" over", "");
		   }
		   }
		  }
		 }
		}
