
function changeColor(id, color) { 


for (var x = 1; x <= 131; x++)
   {
   
var element = document.getElementById(x);
var e = (window.event) ? window.event : x;

e.cancelBubble = true; 

var browserName=navigator.appName; 
if (browserName=="Netscape")
{ 
var OldColor = eval('document.defaultView.getComputedStyle(element, null).background');
element.style.background ="#f3f7fd";
}

else {

oldColor = element.currentStyle.background; 
element.style.background = "#f3f7fd"; 
} }


var element = document.getElementById(id);
e.cancelBubble = true; 

var browserName=navigator.appName; 
if (browserName=="Netscape")
{ 
var OldColor = eval('document.defaultView.getComputedStyle(element, null).background');
element.style.background = color;
}

else {

oldColor = element.currentStyle.background; 
element.style.background = color; 
	  } 
}

//-->fim


//-->inicio

function openModal(pUrl, pWidth, pHeight) {
	if (window.showModalDialog) {
		return window.showModalDialog(pUrl, window,
		  "dialogWidth:"+ pWidth + "px;dialogHeight:"+ pHeight + "px");
	} else {
		try {
			netscape.security.PrivilegeManager.enablePrivilege(
			  "UniversalBrowserWrite");
			window.open(pUrl, "wndModal", "width="+ pWidth
			  + ",height="+ pHeight + ",resizable=no,modal=yes");
			return true;
		}
		catch (e) {
			alert("Script não confiável, não é possível abrir janela modal.");
			return false;
		}
	}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->


//-->
function ObjAjax(){
  try{return new XMLHttpRequest()}
  catch(e){try{return new ActiveXObject("Msxml2.XMLHTTP")}
  catch(e){return new ActiveXObject("Microsoft.XMLHTTP")}}
  return null;
}

function navegar(page){
  ajax = new ObjAjax();
  var div = document.getElementById("center");

  ajax.onreadystatechange = function(){
    if(ajax.readyState == 1){div.innerHTML="Carregando...";}
    if(ajax.readyState == 4){div.innerHTML=ajax.responseText;}

  }
  ajax.open("GET",page,true);
  ajax.send(null);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->


//----> inicio

function teste_start() {clearInterval(teste.sttm);teste_init();if (arguments.length>0) teste_init2(arguments[0]);teste.sttm=setInterval ("doEffect('teste')",10);}

function teste_stop() {clearInterval(teste.sttm);window.status="";}



teste_init();

function teste_init() {teste={stel:0,stft:"",stec:1,stcel:1,stce:-1,stcl:-1,stls:-1,stcs:0,sttg:0,stea:["Não somos classificados. Divulgamos empresas prestadoras de serviço e comércio em geral.            ",0,15,10]};}

function teste_init2 (en) {teste.stea=[teste.stea[(en-1)*4],teste.stea[(en-1)*4+1],teste.stea[(en-1)*4+2],teste.stea[(en-1)*4+3]];teste.stec=1;teste.stel=0;}

function doEffect(es) {var s=eval(es);if (s.stce==s.stec) {if (s.stcel==s.stel) {clearInterval(s.sttm);window.status=s.stft;return;} else {if (s.stel>0) s.stcel++;s.stce=-1;s.stcl=s.stls;}}if (s.stcl==s.stls) {s.stce++;s.sttx=s.stea[s.stce*4];s.sttp=s.stea[s.stce*4+1];s.stsd=s.stea[s.stce*4+2];s.stls=s.stea[s.stce*4+3];s.stcl=0;s.stsp=1;s.sttg=0;}if (21-s.stsd-s.sttg==0) {var stres=eval("stEffect"+s.sttp+"(s.sttx,s.stsp++,es);");s.sttg=0;if (stres!="") window.status=stres;else {s.stcl++;s.stsp=1;}}s.sttg++;}

function stEffect0(text,step){if (step>text.length) return "";else return text.substring(0,step);}

teste_start();

//----> fim

   


