/*efeito browser*/

			
			browser_version= parseInt(navigator.appVersion);
			browser_type = navigator.appName;

			if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4)) {						
							document.write("<link rel='stylesheet' href='css/style_IE.css' type='text/css'> </link>");
			} 
			else if (browser_type == "Netscape" && (browser_version >= 4)) {
							document.write("<link rel='stylesheet' href='css/style_FF.css' type='text/css'> </link>");
					}
	
			
/*efeito data e hora */			
function carrega(pagina, local, parametros, voltar) {
	var xhr = null;
	var metodo = "GET";
	if (local == undefined  || local == '') {
    	local = "centro1";
    }
	if (parametros != undefined) {
		metodo = "POST";
	}
	
	if (pagina.indexOf('?') == -1) {
		pagina = pagina + "?&sid=" + Math.random();
	} else if (parametros == undefined) {
		pagina = pagina + "&sid=" + Math.random();
	}
	
	if (parametros == undefined) {
		parametros = null;
	}
	
    if (window.XMLHttpRequest) {
        xhr = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
        if (xhr == null) {
            xhr = new ActiveXObject("Msxml2.XML");
        }
    }
    if (xhr != null) {
        xhr.onreadystatechange = mudancaEstado;
        xhr.open(metodo, pagina, true);
		if (metodo == "POST") {
			xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
            xhr.setRequestHeader("Content-length", parametros.length);
            xhr.setRequestHeader("Connection", "close");
		}
        xhr.send(parametros);
    }
    else {
        alert('O seu navegador não suporta todos os recursos deste site.\nSe quiser visualizar o site com 100% de compatibilidade use um navegador mais novo ou tente outro navegador.');
    }
    function mudancaEstado() {
		if (xhr.readyState != 4) {
			document.getElementById(local).innerHTML = "<br /><br /><center><img src='imagens/ajax-loader.gif'></img></center>";
		}
        if (xhr.readyState == 4) {
            if (xhr.status == 200) {
               document.getElementById(local).innerHTML = xhr.responseText;
            }
            else {
//                document.getElementById(local).innerHTML = "<center><img src='Cz-Error.png' width=50% height=50%></img><br /><b>Houve um erro ao tentar carregar a p&aacute;gina requisitada.</b></center>";
                document.getElementById(local).innerHTML = "<center><b>Houve um erro ao tentar carregar a p&aacute;gina requisitada.</b></center>";
			}
        }
    }

	window.scrollTo(0,700);
	}

/*-------------------------------------------------*/	
/*Referente a saudacao*/	
d = new Date();
function mostraData(){
var saudacao,hora, min, seg;
hour = d.getHours();
min = d.getMinutes();
seg = d.getSeconds()


if(hour < 12)
   saudacao="Bom Dia";
else
if(hour < 18)
{
saudacao="Boa Tarde";
}
else
{
   saudacao="Boa noite";
}


mydate = new Date();
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
ano= mydate.getYear();
weekday= myweekday; 


/*referente aos dias da semana */

if(myday == 0){
   day=" Domingo , ";
}

else if(myday == 1){
   day = " Segunda - Feira , "; 
	}
else if(myday == 2){
  day = " Ter&ccedil;a - Feira, "; 
	}
else if(myday == 3){
 if (l=="pt") day = " Quarta - Feira,  "; 
	else day = " Mi&eacute;rcoles, "; 
}
else if(myday == 4){
day = " Quinta - Feira, "; 
}
else if(myday == 5){
 day = " Sexta - Feira, "; 
}
else if(myday == 6){
 day = " S&aacute;bado, "; 
}

/* referente aos meses*/
if(mymonth == 0)
{
month = "01 "; 
}


else if(mymonth ==1)
{
 month = "02 "; 
}

else if(mymonth ==2)
{
month = "03"; 
} 

else if(mymonth ==3)
{
month = "04 "; 

}

else if(mymonth ==4)
{
 month = "05 "; 

}

else if(mymonth ==5)
{
 month = "06 "; 
}

else if(mymonth ==6)
{
month = "07 "; 

}

else if(mymonth ==7)
{
 month = "08"; 
} 

else if(mymonth ==8)
{
month = " 09"; 
}

else if(mymonth ==9)
{
	month = "10 "; 

}

else if(mymonth ==10)
{
month = "11 "; 

}

else if(mymonth ==11)
{
	month = "12 "; 
	
}
/* - - - - - - - - - - - - - - - - -- - - - - - -*/
if (ano < 200)
ano=1900+ano;




var f;
f=1;
saudacao=day +" "+myweekday+" / "+month+ "/"+ano+" - ";

h = new Date();
hour = h.getHours();
min = h.getMinutes();
seg = h.getSeconds()
if(hour<=9)
hour="0"+hour;
if(min<=9)
min="0"+min;
if(seg<=9)
seg="0"+seg;
document.getElementById("/*nome div*/").innerHTML=saudacao+hour+":"+min;
}


