	var Ajax   			= false;

	var idioma 			= 'pt';

	var pagina 			= 6;

	var lb_path 		= "includes/lightbox/"; 

	var fadeA			= null;

	var categoriaVi 	= "";

	var listaVideosFade = "";

	var fades 			= new Array("", "");

	

	/*

	[0][0] = OBJ meio 1

	[0][1] = ID meio 1

	

	[1][0] = OBJ meio 2

	[1][1] = ID meio 2

	

	[2][0] = OBJ meio 3

	[2][1] = ID meio 3

	

	[3][0] = OBJ SEPARADOR 1

	[3][1] = ID SEPARADOR 1

	

	[4][0] = OBJ SEPARADOR 2

	[4][1] = ID SEPARADOR 2

	

	[5][0] = OBJ SEPARADOR 3

	[5][1] = ID SEPARADOR 3

	

	[6][0] = OBJ barraRodape 1

	[6][1] = ID barraRodape 1

	

	[7][0] = OBJ barraRodape 2

	[7][1] = ID barraRodape 2

	

	[8][0] = OBJ barraRodape 3

	[8][1] = ID barraRodape 3

	

	[9][0] = OBJ menu 1

	[9][1] = ID menu 1

	

	[10][0] = OBJ menu 2

	[10][1] = ID menu 2

	

	[11][0] = OBJ menu 3

	[11][1] = ID menu 3

	

	[12][0] = OBJ item1-1

	[12][1] = ID item1-1

	

	[13][0] = OBJ item1-2

	[13][1] = ID item1-2

	

	[14][0] = OBJ item1-3

	[14][1] = ID item1-3

	

	[15][0] = OBJ item1-4

	[15][1] = ID item1-4

	

	[16][0] = OBJ item1-5

	[16][1] = ID item1-5

	

	[17][0] = OBJ item1-6

	[17][1] = ID item1-6

	*/

function teclas(){
/*
	if(pagina != 4){

		document.onselectstart	= function(){return false;}

		if (window.sidebar){

			document.onmousedown= function(){return false;}

			document.onclick	= function(){return true;}

		}

		document.oncontextmenu  = function(){return false;}

		document.onkeypress 	= function(e){return false;}

		document.onkeydown  	= function(e){return false;}

	}else{

		document.onselectstart	= function(){return true;}

		if (window.sidebar){

			document.onmousedown= function(){return true;}

			document.onclick	= function(){return true;}

		}

		document.oncontextmenu  = function(){return false;}

		document.onkeypress 	= function(e){return true;}

		document.onkeydown  	= function(e){return true;}

	}
*/
}

/*document.onkeyup = function(){

	if(document.all){  

                 var key = event.keyCode;  

             }  

             else{  

                 var key = e.which;  

             }  

alert(key);

};



document.onkeypress=function(ObjEvent){

     var Code;

     if (navigator.appName == 'Microsoft Internet Explorer') {  

         Code = event.keyCode; 

		  if(event.ctrlKey){

			ObjEvent.returnValue = false;

		 }

     } else if (navigator.appName == 'Netscape') {  

         Code = ObjEvent.which;   

		 if(ObjEvent.ctrlKey){

			ObjEvent.ctrlKey = false;

		 }

     }  

   

     //alert(Code); 

}

*/
	bodyOnReady(

		function(){

			var brownser = verBrownser();
			fade0();

		}

	);

	function carregando(){
		pageNewsOk = false;
		switch(idioma){

			case "pt":

				return "<center style='font-famly:verdana; font-size:10px; color:237b38;padding-top:100px;'>Aguarde, Carregando...</center>";

			break;

			case "en":

				return "<center style='font-famly:verdana; font-size:10px; color:237b38;padding-top:100px;'>Wait a moment, Loading...</center>";

			break;

		}
		
		

	}

	function carregando2(){

		switch(idioma){

			case "pt":

				return "<span style='font-famly:verdana; font-size:12px; color:237b38;'>Aguarde, Carregando...</span>";

			break;

			case "en":

				return "<span style='font-famly:verdana; font-size:12px; color:237b38;'>Wait a moment, Loading...</span>";

			break;

		}

		

	}

	/*

	function addLoadEvent(func) {

		var oldonload = window.onload;

		if (typeof window.onload != 'function') {

			window.onload = func;

		}else{

			window.onload = function() {

			oldonload();

				func();

			}

		}

	}

	*/

	function URLencode(sStr) {

		return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27').replace(/\//g,'%2F');

	}

	function verBrownser(){

		var nVer = navigator.appVersion;

		var nAgt = navigator.userAgent;

		var browserName  = '';

		var fullVersion  = 0; 

		var majorVersion = 0;



		if ((verOffset=nAgt.indexOf("MSIE"))!=-1) {

		 browserName  = "Microsoft Internet Explorer";

		 fullVersion  = parseFloat(nAgt.substring(verOffset+5));

		 majorVersion = parseInt(''+fullVersion);

		}else if ((verOffset=nAgt.indexOf("Opera"))!=-1) {

		 browserName  = "Opera";

		 fullVersion  = parseFloat(nAgt.substring(verOffset+6));

		 majorVersion = parseInt(''+fullVersion);

		}else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) {

		 browserName  = "Firefox";

		 fullVersion  = parseFloat(nAgt.substring(verOffset+8));

		 majorVersion = parseInt(''+fullVersion);

		}else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < (verOffset=nAgt.lastIndexOf('/')) ) {

		 browserName  = nAgt.substring(nameOffset,verOffset);

		 fullVersion  = parseFloat(nAgt.substring(verOffset+1));

		 if (!isNaN(fullVersion)) majorVersion = parseInt(''+fullVersion);

		 else {fullVersion  = 0; majorVersion = 0;}

		}



		if (browserName.toLowerCase() == browserName.toUpperCase() || fullVersion==0 || majorVersion == 0 ){

		 browserName  = navigator.appName;

		 fullVersion  = parseFloat(nVer);

		 majorVersion = parseInt(nVer);

		}

		return new Array(browserName, majorVersion);

		//alert('Browser name  = '+browserName+' \n Full version  = '+fullVersion + '\n Major version = ' + majorVersion +'\n navigator.appName = '+navigator.appName+'\n navigator.userAgent = '+navigator.userAgent);

	}

	function bodyOnReady(func){

		done = false

		init = function(){ if(!done) { done=true; func() } }

		var d=document;

		//pra quem tem o DOMContent (FF)

		if(document.addEventListener){ d.addEventListener("DOMContentLoaded", init, false );}

		if( /msie/i.test( navigator.userAgent ) ){ //IE

			(function () {

				try {

					d.documentElement.doScroll("left");

				} catch (e) {

					setTimeout(arguments.callee, 10); return;

				}

				init();

			})();

		}

		if ( window.opera ){

			d.addEventListener( "DOMContentLoaded", function () {

				if (done) return;

				//no opera, os estilos só são habilitados no fim do DOMready

				for (var i = 0; i < d.styleSheets.length; i++){

					if (d.styleSheets[i].disabled)

						setTimeout( arguments.callee, 10 ); return;

				}

				// fire

				init();

			}, false);

		}

		if (/webkit/i.test( navigator.userAgent )){ //safari's

			if(done) return;

			//testando o readyState igual a loaded ou complete

			if ( /loaded|complete/i.test(d.readyState)===false ) {

				setTimeout( arguments.callee, 10 );    return;

			}

			init();

		}

		//if(!done) window.onload = init

	}

	
	
	
	function fade(id, velo){
		
		verificaIdFade(id);
		
		velo = (velo != null) ? velo : 1;
		
		if(fades[id][0] != ""){

			fades[id][0].zera();

			fades[id][0] = "";

		}

		fades[id][0] = new totalFade(fades[id][1], true, velo, 0);

	}

	function paraFade(id, velo, poeFade){

		verificaIdFade(id);
	
		fades[id][0].zera();

		fades[id][0] = "";

		if(poeFade == true){
			
			fades[id][1] = id;
			
			fade(id, velo);
		}

	}

	function fadeMenu(id){
		
		verificaIdFade(id);
		
		if(fades[id][0] == ""){
		   
		   fades[id][1] = id;
			
		   fade(id);

		}else{
			
			fades[id][0].zera();
		
			fades[id][0] = "";

		}

	}
	
	function fadeMeio(id_cont){
		//fadePreto();
		fadeConteudo();
	}
	function fadePreto(){
		id = "fundo_preto";
		
		verificaIdFade(id);
		
		if(fades[id][0] == ""){
		   
		   fades[id] [1] = id;
			
		   fade(id, 1);

		}else{

			fades[id] [0].zera();
			fades[id] [0] = "";
			
			fadeMeio();

		}
	}
	function fadeConteudo(){
		
		id = "conteudo";
		
		verificaIdFade(id);
		
		if(fades[id][0] == ""){
		   
		   fades[id] [1] = id;
			
		   fade(id, 6);

		}else{

			fades[id] [0].zera();
			fades[id] [0] = "";
			
			fadeMeio();

		}
	}
	function fade0(){
		/*
		fade(3, 2);

		fade(4, 2);

		fade(5, 2);

		

		fadeMeio();

		

		fade(6, 2);

		fade(7, 2);

		fade(8, 2);

		

		fade(9, 3);

		fade(10, 2);

		fade(11, 3);

		*/
		
		conteudo();

	}	
	
	function sobreFoto(id, poeFade){
		
		verificaIdFade(id);
		
		fades[id][1] = id;

		if(poeFade == true){

			fade(id);

		}

	}

	function foraFoto(id, poeFade){
		
		verificaIdFade(id);
		
		var elemento = document.getElementById(id);

		elemento.style.border = '0px none';

		if(poeFade == true){

			fade(id);

		}

	}

	function sobreFoto2(id, poeFade){
		
		verificaIdFade(id);
		
		var elemento = document.getElementById(id);

		fades[id][1] = id;

		//elemento.style.border='2px solid #ccc';

		if(poeFade == true){

			fade2(id);

		}

	}

	function foraFoto2(id, poeFade){
	
		verificaIdFade(id);
		
		fades[id][1] = id;

		var elemento = document.getElementById(id);

		//elemento.style.border='0px none';

		if(poeFade == true){

			fadeOut(id, 1);

		}

	}

	function fade2(id, velo){
		
		verificaIdFade(id);
		
		velo = (velo != null) ? velo : 1;
		
		if(fades[id][0] != ""){

			fades[id][0].zera();

			fades[id][0] = "";

		}
		
		fades[id][0] = new totalFade(fades[id][1], true, velo, 30, 100);

	}

	function fadeOut(id, velo){
		
		verificaIdFade(id);
		
		velo = (velo != null) ? velo : 1;
	
		if(fades[id][0] != ""){

			fades[id][0].zera();

			fades[id][0] = "";

		}

		fades[id][0] = new totalFade(fades[id][1], false, velo, 100, 30);

	}

	function fadeTemp(id){
		
		verificaIdFade(id);
		
		fades[id][1] = id;

		fade(id, 1);

	}
	
	function verificaIdFade(id){
	
		if(!fades[id]){
		
			fades[id] = new Array("", id);
			
		}
		
	}
