///////////REDIMENCIONA A JANELA DA IMAGEM/////////////////////////////////////////////////
function display(myimage) {
 html = "<HTML><HEAD><TITLE>Fotografia</TITLE>" +
  "</HEAD><BODY LEFTMARGIN=0 " +
  "MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER>" +
  "<IMG SRC='" + myimage + "' BORDER=0 NAME=image " +
  "onload='window.resizeTo(document.image.width+10,document.image.height+86)'></CENTER>" +
  "</BODY></HTML>";
 popup=window.open
   ('','image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
 popup.document.open();
 popup.document.write(html);
 popup.document.focus();
 popup.document.close()
 };
///////////////////////////////////////////////////////////////////////////////////////////
//////////////////DATA//////////////////////////////////////////////////////////////////////	  
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
//////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////REDERECCIONA////////////////////////////////////////////////////////////
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
///////////////////////////////////////////////////////////////////////////////////////////////
///////////////PEDE CONFIRMAÇÃO////////////////////////////////////////////////////////////////
function MA_popupConfirmMsg(msg,url) { //v1.0
  var conf;
  conf = confirm(msg);
  if (conf) {self.location=url;}
  else document.MM_returnValue = false;
}
///////////////////////////////////////////////////////////////////////////////////////////////
///////////////MENU LISTA//////////////////////////////////////////////////////////////////////
var b = 0;
function lista(id){
	if(b.style != null){
		if(b.style.display == '')
			b.style.display = 'none';
	}
	var o = document.getElementById(id);
	if(o.style.display == 'none')
		o.style.display = '';
	else
		o.style.display = 'none';
	b = o;
}


///////////////////////////////////////////////////////////////////////////////////////////////
///////////////MENU LISTA 2////////////////////////////////////////////////////////////////////
function lista2(id){

	var p = document.getElementById(id);
	if(p.style.display == 'none')
		p.style.display = 'block';
	else
		p.style.display = 'none';

}