// JavaScript Document
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

function show( id ){
	document.getElementById(id).style.display = 'block';
}

function hide( id ){
	document.getElementById(id).style.display = 'none';
}
function mostrafoto(pict,caminho)
{
	//alert(pict);
	foto.src=caminho+escape(pict);
	descricao.value=(pict.substring(0, (pict.length-4)));
	window.location.href = "#top";
}

function abre_janela(nome, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
	LeftPosition = (screen.width) ? (screen.width-width)/2: 0;
	TopPosition = (screen.height) ? (screen.height-height)/4: 0;
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	window.open(url,nome,'left='+LeftPosition+',top='+TopPosition+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
