// Data //
month = new Array()    
month[0]="Janeiro"    
month[1]="Fevereiro"    
month[2]="Março"    
month[3]="Abril"    
month[4]="Maio"    
month[5]="Junho"    
month[6]="Julho"    
month[7]="Agosto"    
month[8]="Setembro"    
month[9]="Outubro"    
month[10]="Novembro"    
month[11]="Dezembro"  
today=new Date()  
mon=today.getMonth()  
date=today.getDate()  
year=(today.getYear())

// FAVORITOS
function add_bookmark() {
var browsName = navigator.appName; 
if (browsName == "Microsoft Internet Explorer") { 
window.external.AddFavorite('http://www.arcanjomiguel.net','-=Sao Miguel Arcanjo=- Principe dos Anjos');
} else 
if (browsName == "Netscape") {
alert ("\nPara adicionar essa página ao seu BookMark aperte CTRL+D");
}
}

// INDIQUE LINKWS
function openLinkIndic() {window.open('http://www.linkws.com/webservices/li/link_indic.jsp?userProductID=2888&url=' + escape(location.href),'Link_Indic','height=295,width=340,scrolling=no')}

// VOLTAR PÁGINA
function volta()
{
history.back();
}
// -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// HORA
function hora(){
var fecha = new Date()
var hora = fecha.getHours()
var minuto = fecha.getMinutes()
var segundo = fecha.getSeconds()
if (hora < 10) {hora = "0" + hora}
if (minuto < 10) {minuto = "0" + minuto}
if (segundo < 10) {segundo = "0" + segundo}
var horita = hora + ":" + minuto + ":" + segundo
document.getElementById('hora').firstChild.nodeValue = horita
tiempo = setTimeout('hora()',1000)
}
function inicio(){
document.write('<span id="hora">')
document.write ('000000</span>')
hora()
}


// AUMENTAR A FONTE
<!-- //

var tgs = new Array( 'p','div','span' );


var szs = new Array( '11px','12px','14px','16px','18px','20px','22px' );
var startSz = 1;

function ts( trgt,inc ) {
if (!document.getElementById) return
var d = document,cEl = null,sz = startSz,i,j,cTags;
sz += inc;
if ( sz < 0 ) sz = 0;
if ( sz > 6 ) sz = 6;
startSz = sz;
if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

cEl.style.fontSize = szs[ sz ];

for ( i = 0; i < tgs.length; i++ ) {
cTags = cEl.getElementsByTagName( tgs[ i ] );
for ( j = 0; j < cTags.length; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
}
}
// -->




// AJUSTA O FRAME AUTOMATICAMENTE

function reSize()
{
try
{ 
if(document.all)/* Verifica se é o IE */
{
var oBody = ifrm.document.body;
var oFrame = document.all("ifrm");

oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight);
oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth);
}
else /* Para FF e Opera */
{
var tamanho = parent.document.getElementById('ifrm').contentDocument.body.scrollHeight;
parent.document.getElementById('ifrm').style.height = (tamanho+10)+'px';
}
}
catch(e)
{
alert('Error: ' + e.number + '; ' + e.description);
}
}



