// deixa o png transparente no IE 6
$(document).ready(function(){ 
	$(document).pngFix(); 	
}); 

// acesso rápido
$(document).ready(function(){ 
	//
	$("select").change(function(){ 		
		$("#botao_ok input").attr({ title: this.value });
	}); 
	$("#botao_ok input").click(function(){ 
		location.href = this.title;
	});	
	$("#list_links").change(function() {
		if (this.value != "") {
	 		location.href = this.value;
		}
	});
	
	// faz o include da coluna direita
	if (document.getElementById("dois")){
		document.getElementById("dois").innerHTML = "";
		$("#dois").load("/content/aplicacao/internet/principal/enviados/inc_direita.asp",
			{limit: 25},
			function() {				
				var conteudoRight = document.getElementById("dois").innerHTML;
				document.getElementById("dois").innerHTML = "";
				$("#conteudo").append(conteudoRight);
				
				$('div#banner').cycle({
					fx:      'fade',
					pager:  '#num_banner',
					delay:  3500
				});
			}	
		);
	}
	
	// faz o include da coluna esquerda
	var conteudoMenuLeft = document.getElementById("MenuBar").innerHTML;

	if (document.getElementById("agenda")){
		document.getElementById("agenda").innerHTML = "";
		$("#agenda").load("/content/aplicacao/internet/principal/enviados/inc_orgaos_acesso_rapido.asp",
			{limit: 25},
			function() {
				var MenuBar = new Spry.Widget.MenuBar("MenuBar",{});
			}	
		);
	}
	
	var strRodape = document.getElementById("rodape").innerHTML
	document.getElementById("rodape").innerHTML = document.getElementById("rodape").innerHTML
	$("#rodape").remove();	
	$("#geral").append("<div id='rodape'>" + strRodape + "</div>");
	
}); 


function abrejanela(url){
	window.open(url);
}
