<!--
var persistence=0
var xtabids = new Object()
function expandcontentgeral(linkobj){
 var xulid=linkobj.parentNode.parentNode.id 
 var xullist=document.getElementById(xulid).getElementsByTagName("li") 
 for (var xi=0; xi<xullist.length; xi++){
 xullist[xi].className=""
 if (typeof xtabids[xulid][xi]!="undefined")
  document.getElementById(xtabids[xulid][xi]).style.display="none" 
}
linkobj.parentNode.className="selected"  
document.getElementById(linkobj.getAttribute("rel")).style.display="block"
saveselectedtabcontentidgeral(xulid, linkobj.getAttribute("rel"))
}
function expandtabgeral(tabcontentid, tabnumber){ 
var xthetab=document.getElementById(tabcontentid).getElementsByTagName("a")[tabnumber]
 if (xthetab.getAttribute("rel")) {
  expandcontentgeral(xthetab)
 }
}
function savetabcontentidsgeral(xulid, relattribute){
if (typeof xtabids[xulid]=="undefined") 
xtabids[xulid]=new Array()
xtabids[xulid][xtabids[xulid].length]=relattribute
}
function saveselectedtabcontentidgeral(xulid, selectedtabid){ 
if (persistence==1) 
setCookiegeral(xulid, selectedtabid)
}
function makeHyperlinksExternal(){
 var hyperlinks = $$('a');
 hyperlinks.each(function(link){
  if(link.readAttribute('rel') == 'external'){
   link.target = '_blank';
  }
 });
}
function getullistlinkbyIdgeral(xulid, tabcontentid){ 
var xullist=document.getElementById(xulid).getElementsByTagName("li")
for (var xi=0; xi<xullist.length; xi++){
if (xullist[xi].getElementsByTagName("a")[0].getAttribute("rel")==tabcontentid){
return xullist[xi].getElementsByTagName("a")[0]
break
}}}
function initializetabcontentgeral(){
for (var xi=0; xi<arguments.length; xi++){ 
if (persistence==0 && getCookiegeral(arguments[xi])!="") 
setCookiegeral(arguments[xi], "")
var xclickedontab=getCookiegeral(arguments[xi]) 
var xulobj=document.getElementById(arguments[xi])
var xulist=xulobj.getElementsByTagName("li") 
for (var xx=0; xx<xulist.length; xx++){ 
var xulistlink=xulist[xx].getElementsByTagName("a")[0]
if (xulistlink.getAttribute("rel")){
savetabcontentidsgeral(arguments[xi], xulistlink.getAttribute("rel")) 
xulistlink.onclick=function(){
expandcontentgeral(this)
}
if (xulist[xx].className=="selected" && xclickedontab=="") 
expandcontentgeral(xulistlink) 
}
} 
if (xclickedontab!=""){
var xculistlink=getullistlinkbyIdgeral(arguments[xi], xclickedontab)
if (typeof xculistlink!="undefined") 
expandcontentgeral(xculistlink) 
else 
expandcontentgeral(xulist[0].getElementsByTagName("a")[0]) 
}}}
function getCookiegeral(Name){ 
var xre=new RegExp(Name+"=[^;]+", "i"); 
if (document.cookie.match(xre)) 
return document.cookie.match(xre)[0].split("=")[1] 
return ""
}
function setCookiegeral(name, value){
 document.cookie = name+"="+value 
}

function mostrar(id){ 
  if (document.getElementById){ 
   obj = document.getElementById(id); 
    if (obj.style.display == "none"){ 
     obj.style.display = ""; 
    } else { 
     obj.style.display = "none"; 
    } 
  } 
} 


function mostrar_opcoes(nome, valor, id){
 
 if(document.getElementById){ 
  
  if(nome.value.match(valor)) { 
  
    version = 0

    if (navigator.appVersion.indexOf("MSIE")!=-1) {
 
     temp = navigator.appVersion.split("MSIE");
     version = parseFloat(temp[1]);

    }

	if (navigator.userAgent.indexOf('Opera') != -1 || version >= 7) { // &#201; OPERA ou IE>=7
     
     new Effect.toggle(id, 'slide', {duration: 0.5});
     
	} else {
	 
	 new Effect.toggle(id, 'blind', {duration: 0.5});
    
	}
    
  } else {
   
     new Effect.BlindUp(id);
  
  }
 
 } 

}


function pop(url, name, w, h) {
    w += 32;
    h += 96;
    wleft = (screen.width - w) / 2;
    wtop = (screen.height - h) / 2;
    var win = window.open(url,
    name,
    'width=' + w + ', height=' + h + ', ' +
    'left=' + wleft + ', top=' + wtop + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=yes, resizable=no');
    win.resizeTo(w, h);
    win.moveTo(wleft, wtop);
    win.focus();
}

function mostrar_subcats(id){ 

version = 0

if (navigator.appVersion.indexOf("MSIE")!=-1) {
 
 temp = navigator.appVersion.split("MSIE");
 version = parseFloat(temp[1]);

}

	if (navigator.userAgent.indexOf('Opera') != -1 || version >= 7) { // &#201; OPERA ou IE>=7
     
     new Effect.toggle(id, 'slide', {duration: 0.5});
     
    } else {
	 
	 new Effect.toggle(id, 'blind', {duration: 0.5});
    
	}
} 
//-->
