//Barra de status
statuss();  function statuss() { window.status = ".:: www.riobrancopetroleo.com.br ::."; setTimeout("statuss()", 1); }

//Jogos on-line
function kinuca( url, w, h )
{
	rnd = 'abra' + Math.floor(Math.random()*1000);
	kwin = window.open( 'http://base.desafiando.com.br/sinuca/kinuca.html?' + Math.floor(Math.random()*1000),rnd,'fullscreen=0,toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=0,resizable=0,width=' + 770 + ',height=' + 540 + ',screenx=50,screeny=10,top=10,left=10');
}
function plekos()
{
	rnd = 'abra' + Math.floor(Math.random()*1000);
	pwin = window.open( 'http://base.desafiando.com.br/plekos/plekos.html?' + Math.floor(Math.random()*1000),rnd,'fullscreen=0,toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=0,resizable=0,width=' + 770 + ',height=' + 540 + ',screenx=50,screeny=10,top=10,left=10');
}


//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=no");
}
function janela(popupfile,winheight,winwidth)
{
open(popupfile,"PopupWindow","resizable=no,height=" + winheight + ",width=" + winwidth + ",scrollbars=yes");
}


//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();
 }