//   Funções que ficam encarregadas a fazer a inicialização de outras funções quando a pagina termina de carregar
	var paginas_carregar = [];
	n = 0;
	function carregar(param){
		n = 0;
		while(param.length>n){
			if((window.onload) && (paginas_carregar.length == 0 && ((window.onload).toString()).indexOf("gerencia_onload")==-1))
              {
				paginas_carregar[paginas_carregar.length] = window.onload;
			  }
			else
              {
			    paginas_carregar[paginas_carregar.length] = param[n];
			  }
			n++;
		}
	}
	function gerencia_onload(){
		onloadManual = "";
		i = 0;
		while(paginas_carregar.length>i){
			onloadManual += paginas_carregar[i];
			i++;
		}
		if(onloadManual != ''){
			if(navigator.appName.toLowerCase().indexOf('microsoft')!=-1){
				window.onload = new function(){
					eval(onloadManual);
				}
			}else{
				window.onload = eval(onloadManual);
			}
		}
	}
jQuery(function($){
gerencia_onload();
$('[png=sim]').each(function(){$('#'+this.id).pngFix();});
// corregindo o lightbox para ie
try
  {
   $('a[@rel*=lightbox]').lightBox({
	overlayOpacity: '0.6',
	imageLoading: 'imagens/loading.gif',
	imageBtnClose: 'imagens/closelabel.gif',
	imageBlank: 'imagens/lightbox-blank.gif',	
	imageBtnPrev: 'imagens/anterior.gif',			// (string) Path and the name of the prev button image
	imageBtnNext: 'imagens/proxima.gif',			// (string) Path and the name of the next button image
	txtImage: 'Foto',	// (string) Specify text "Image"
    txtOf: 'de'
   });   
 if($.browser.msie){
	$(function(){ 
                 $('a[@rel*=lightbox]').each(function(){
                   $(this).click(function() {
                     h = $(document).height();						 
                     $('#jquery-overlay').css({height: h});
				   });	
                  });
				});
   }
}catch(err){}
   
});





