// JavaScript Document

<!-- Script para abrir popups dinamicamente-->


function getObj(id){
	if(document.getElementById){
		//NE
		return document.getElementById(id);
	}else{
		if (document.all) {
			//IE5+
			return document.all(id);	
		}else{
			//IE5-
			return document(id);	
		}
		
	}
}

function resizeWindowByImage(ImageId){
	var myImage = getObj(ImageId);
	window.resizeTo(myImage.width+25, myImage.height+50);
}

/* No link coloque como no exemplo:
	
	<a href="javascript:void(window.open('/pasta/pop.asp?imagem=pasta/arquivo.jpg','','scrollbars=no,status=no,width=50,height=50,resizable'));">
		link para o popup</a>*/
		
		<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function visivel(show,id){
	if(show)
		getObj(id).style.visibility="visible";
	else
		getObj(id).style.visibility="hidden";
}


function abre_swf(titulo,nome,largura,altura) {
	nova=window.open('about:blank','janela','width='+largura+',height='+altura+'');
	nova.document.write('<html><head><title>'+titulo+'</title><body topmargin=0 leftmargin=0><embed src="'+nome+'" width="'+largura+'" height="'+altura+'" border=0></embed></body></html>')
}