//Canais ViverFeliz
function canais() {
	document.write("<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>")
	document.write("<TR>")
	document.write("<form name=Canais target=_top>")
	document.write("<TD>")
	document.write("<select class=box onChange=window.location=this[this.selectedIndex].value>")
	document.write("<option value=/>Áreas do VF")
	document.write("<option value=/>Página Viverfeliz")
	document.write("<option value=/Cartao/>Cartões")
	document.write("<option value=http://www.effata.org.br>Effata")
	document.write("<option value=/Forum/>Fórum")
	document.write("<option value=/ImgGallery/>Galeria de Fotos")
	document.write("<option value=/Institucional/Pastorais/Vocacional/>Past. Vocacional")
	document.write("<option value=/Institucional/Paroquias>Paróquias do BR")
	document.write("<option value=http://www.cnbbs2.org.br>Regional Sul2")
	document.write("</select>")
	document.write("</TD>")
	document.write("</form>")
	document.write("</TR>")
	document.write("</TABLE>")
}

//Função Data
    days = new Array(7)
    days[1] = "Domingo";
    days[2] = "Segunda";
    days[3] = "Terça"; 
    days[4] = "Quarta";
    days[5] = "Quinta";
    days[6] = "Sexta";
    days[7] = "Sabado";
    months = new Array(12)
    months[1] = "Janeiro";
    months[2] = "Fevereiro";
    months[3] = "Março";
    months[4] = "Abril";
    months[5] = "Maio";
    months[6] = "Junho";
    months[7] = "Julho";
    months[8] = "Agosto";
    months[9] = "Setembro";
    months[10] = "Outubro"; 
    months[11] = "Novembro";
    months[12] = "Dezembro";
    today = new Date(); day = days[today.getDay() + 1]
    month = months[today.getMonth() + 1]
    date = today.getDate()
    year=today.getYear(); 
if (year < 2000)
year = year + 1900;

function write_date(){
    document.write (""+ day + ", " + date + " " + month + " de " + year + "")
}

//Popup normal
function abre(pagina,janela,larg,alt){
window.open(pagina,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+larg+',height='+alt); }


function mOvr(src,clrOver) {
		if (!src.contains(event.fromElement)) {
			src.style.cursor = 'hand';
			src.bgColor = clrOver;
		}
	}
function mOut(src,clrIn) {
		if (!src.contains(event.toElement)) {
			src.style.cursor = 'default';
			src.bgColor = clrIn;
		}
	}
function mClk(src) {
		if(event.srcElement.tagName=='TD'){
			src.children.tags('A')[0].click();
		}
	}

// Alterado em 05.03.2002

function janelanimada(endereco,x,y,winescape) {
		var velocidadev = 15;
		var topo = 5;
		var esquerda = 5;
		var velocidadeh = 5;
		if (document.all) {
			//var tamlar = window.screen.availHeight;
			//var tamjan = window.screen.availWidth;
			var tamlar = y + 50; // Altura
			var tamjan = x + 30; // Largura
			var tamanho = window.open("","","left=" + esquerda + ",top=" + topo + ",width=1,height=1,scrollbars=no");
			for (sizeheight = 1; sizeheight < tamlar; sizeheight += velocidadev) {
				tamanho.resizeTo("1",sizeheight );}
			for (sizewidth = 1; sizewidth < tamjan; sizewidth += velocidadeh) {
				tamanho.resizeTo(sizewidth+6,sizeheight );}

			if (winescape) {
				tamanho.location = escape(endereco);
			} else {
				tamanho.location = endereco;
			}
		}
		else
		window.location = endereco;
}
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}