	var IE = document.all?true:false
	var cadicionar	= "Adicionar à sua lista de amigos?";
	var remover	= "Remover da sua lista de amigos?";
	var recados	= "Apagar este recado?";
	var mural	= "Remover este recado do mural?";
	var endereco	= "Você está abrindo uma página que não faz parte do portal do Effatá e que por isso pode não ser segura.\n Deseja continuar?";
	var aguarde	= "Por favor, aguarde o carregamento da página por completo!";
	
	function $(ID){
		 return document.getElementById(ID);
	}

	function offsetLeft(what){
		var pos=0;
		do{
			pos+=what.offsetLeft;
			what=what.offsetParent;
		}while(what!=null);
		return pos;
	}
	function offsetTop(what){
		var pos=0;
		do{
			pos+=what.offsetTop;
			what=what.offsetParent;
		}while(what!=null);
		return pos;
	}

	var tmp, aux;
	function abre(obj,pai){
		if(pai){
			obj.style.width	= pai.offsetWidth + 'px';
			obj.style.left	= offsetLeft(pai) + 'px';
			obj.style.top	= (offsetTop(pai) + pai.offsetHeight) + 'px';
		}
		if(aux){
			clearTimeout(tmp);
			aux.style.visibility = "hidden";
		}
		obj.style.visibility = "visible";
	}
	function fecha(obj){
		aux = obj;
		tmp = setTimeout('aux.style.visibility = "hidden";', 250);
	}
	
	function _abre(pai){
		obj=pai.getElementsByTagName("ul");
		clearTimeout(tmp);
		if(aux){
			aux.style.visibility="hidden";
		}
		obj[0].style.width=pai.offsetWidth+'px';
		obj[0].style.left=offsetLeft(pai)+'px';
		obj[0].style.top=(offsetTop(pai)+pai.offsetHeight)+'px';
		obj[0].style.visibility="visible";
	}
	function _fecha(pai){
		obj=pai.getElementsByTagName("ul");
		aux=obj[0];
		tmp=setTimeout('aux.style.visibility="hidden";', 250);
	}

	function go2print(a){
		var popup = window.open(a.href,'effata_print','width=770,height=550,menubar=yes,scrollbars=yes,top=10,left=10');
		return !( popup == null || popup.closed == true );
	}
	
	function radinho2(){
		var U = "/utilitarios/radinho/radinhoWEB.php";
		var W = IE?160:164;
		var H = IE?400:404;
		window.open(U,'Radinho','left=550,top=120,width='+W+',height='+H+',toolbar=no,resizable=no,location=no');
	}
/*
	document.createStyleSheet().addRule("embed","visibility:hidden");
	function ActiveContent()
	{
		if(!/msie/.test(navigator.userAgent.toLowerCase()) || !document.getElementsByTagName){ return false };
		var i = 0
		var objects = document.getElementsByTagName("EMBED");
		while(i < objects.length)
		{
			(objects[i].outerHTML ? (objects[i].outerHTML = objects[i].outerHTML, objects[i].style.visibility = "visible") : null);
			i++;
		}
	}
*/	
