		function mostrar_ocultar_bloco(bloco) { 	
			if (document.getElementById(bloco).style.display == "block") {
				document.getElementById(bloco).style.display = "none";
	
			} else {
				document.getElementById(bloco).style.display = "block";
			}
			autofitIframe('conteudos');
		}
		
function autofitIframe(id){
scroll(0,0);
 if (!window.opera && !document.mimeType && document.all && document.getElementById){
	 parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";
 }
 else if(document.getElementById) {
 	parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px"
 }
}

function pop(janela,altura,largura,scrolls){
	window.open(janela,"pop","left=100,top=100,width="+largura+",height="+altura+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scrolls+",resizable=0");
}
var wwnd;
function ver_foto(url){
	imgVar = new Image();
	imgVar.src = url;
	
	if (wwnd!=undefined && !wwnd.closed) wwnd.window.close();
	wwnd=window.open("","Imagens","left=0,width=50,height=50,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1");
	
	wwnd.document.write("<html><head><title>PSD</title><script language='JavaScript' type='text/javascript'>");
	wwnd.document.write("function tamanho(){");
	wwnd.document.write("if(document.images[\"img_principal\"]==undefined) {window.close();}");
	wwnd.document.write("else{ window.resizeTo(document.images[\"img_principal\"].width+30, document.images[\"img_principal\"].height+60); window.focus();}");
	wwnd.document.write(" }");
	wwnd.document.write("</");wwnd.document.write("script>");
	wwnd.document.write("</head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
	wwnd.document.write("<table width=\"100%\" height=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><center><img src=\"" + url + "\" border=\"0\" name=\"img_principal\" onLoad=\"tamanho();\" onDblClick=\"window.close();\"></center></td></tr></table>");
	wwnd.document.write("</body></html>");
	
}