
startList = function() {
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", "");
   }
   }
  }
 }
}
window.onload=startList;



function MontLista(){
  var target, i, classe, rule, tag, args=MontLista.arguments;
  nomeArquivo = location.pathname;
  var j=0;
  rule = '<ul style="margin:0px; _padding-left: 20px;">';
  for(i=0; i<(args.length); i+=4){

	if (j % 2) {
		classe = "linha01";
	} else {
		classe = "linha02";
	}

   
	if (args[i+1].indexOf('javascript:') > -1) { // se ele encontrar a palavra javascript no array....
		target = '';
	} else if ((args[i].indexOf('pdf') > -1) || (args[i].indexOf('swf') > -1) || (args[i].indexOf('link') > -1)){
		target = 'target="_blank"';
	} else {
		target = '';
	}

	if (args[i]!=""){
		if (args[i+3]==1){ // Titulo 
		  rule += '<li style="list-style: none; border-bottom: 1px solid #000; margin-top: 10px;"><b>'+ args[i] + '</b><\/li>';
		} else if (args[i+1]==""){ // se não tiver link
		  rule += '<li class="'+classe+'" style="list-style-image: url(/imagens/ico_' + args[i] + '.gif);">'+ args[i+2] + '<\/li>';
		  j=j+1;
		} else {
		  rule += '<li class="'+classe+'" style="list-style-image: url(/imagens/ico_' + args[i] + '.gif);"><a href="' + args[i+1] + '" class="vinc" onClick="javascript:urchinTracker (\'' + args[i+1] + '\');" ' + target + '>'+ args[i+2] + '<\/a><\/li>';
		  j=j+1;
		}
    }
  }
    rule += '<\/ul>';
  document.write(rule);
}

/* GALERIA DE FOTOS*/
function galeriaFotos(){
	var legenda = '';
	document.write('<ul class="fotos">');
	for(x = 1; x < fotos.length; x++){
		if (fotos[x] != ''){
			legenda = '<span class="legenda">'+fotos[x]+'</span>';
		} else {
			legenda = '';		
		}
		document.write('<li><a href="#"><img src="seq'+x+'p.gif" alt="" /><span><img src="seq_'+x+'.jpg" alt=""  />'+legenda+'</span></a></li>');
	}
	document.write('</ul>');
}
/* FIM */


function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

// exibe/oculta um Layer
function MM_displayHideLayers() { //v3.0
  var i,p,v,obj,args=MM_displayHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
    if ((obj=MM_findObj(args[i]))!=null) { 
      v=args[i+2];
      if (obj.style) { 
        obj=obj.style; 
        v=(v=='show')?'block':(v=='hide')?'none':v;
      }
      obj.display=v;
    }
}

//javascript:MM_displayHideLayers('popuphome','','hide')

function MM_openBrWindow(theURL,winName,features) { //v2.0
  winName=window.open(theURL,winName,features);
  winName.focus();
}
