//Barra de status
function statuss() { window.status = ".:: www.JornalAraxa.com.br - A notícia com credibilidade em tempo real ::.";setTimeout("statuss()", 2);}
statuss();

//Adicionar aos favoritos
var url_site="http://www.jornalaraxa.com.br/" 
var titulo_site="JornalAraxa - A notícia com credibilidade em tempo real" 
function adiciona_bookmark(){if (document.all)window.external.AddFavorite(url_site,titulo_site)
} 


//Navegador
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}


//Jump links
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


//Pesquisa no Google
function google(){
	var newpg = "http://www.google.com/search?q=" + document.forms["goo"].q.value + "&hl=pt&btnG=Pesquisar";
	resultado=window.open(newpg,'google')
}


//Janelas pop up
function abrir(popupfile,winheight,winwidth)
{
open(popupfile,"PopupWindow","resizable=no,height=" + winheight + ",width=" + winwidth + ",scrollbars=yes");
}
function janela(popupfile,winheight,winwidth)
{
open(popupfile,"PopupWindow","resizable=no,height=" + winheight + ",width=" + winwidth + ",scrollbars=yes");
}
function AbreJanelaGaleria(URL) {

  var width = 740;

  var height = 450;

  var left = 50;

  var top = 10

  window.open(URL, 'ema3', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');

}

function abrirNovo(caminho){
		window.open(caminho);
	}




//Pop up de publicidade
function popup(){
window.opener.location = "http://www.jornalaraxa.com.br/www/pub/anunciar.asp";
}


//Alpha em imagem
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
 if (!document.all)
	return
    if (object != "[object]"){
      setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
      return;
    }
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
			    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;
	
    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}


//Cor na tabela onmouseover
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();
 }