// JavaScript Document


/*---------------------------------------------------
Criado:				RODRIGO KULB (rodrigo@levitron.com.br)
Data:				22/04/2008 - 15:12
Intenção:			SUBSTITUI O DOCUMET.GETELEMENTBYID PELA VARIAVEL $D
Chamada em:		(Todos JS)
{
-----------------------------------------------------*/ 
var  $D = function(id) 
{
	//alert(id);
	return document.getElementById(id);
}

///////////////////////////////////////////////////////////////////
// função relogio index///////////////////////////////////////////
/////////////////////////////////////////////////////////////////

function Relogio() { 
  
data = new Date() 
    
var horas= data.getHours() 
var minutos= data.getMinutes() 
var segundos= data.getSeconds() 
    

if (horas < 10) 
{ 
horas = "0" +  horas 
} 
if (minutos < 10) 
{ 
minutos = "0" + minutos 
} 
if (segundos < 10) 
{ 
segundos = "0" + segundos 
} 

    
  var rellx=  document.theClock.theTime.value = "" 
                                   + horas + ":" 
                                   + minutos + ":" 
                                   + segundos; 
                                    
                                
    

 var Actualizar =setTimeout("Relogio()",  "1000"); 

} 


///////////////////////////////////////////////////////////////////
// função abre fecha//////////////////////////////////////////////
/////////////////////////////////////////////////////////////////


function abreFecha(obj) {
	
		var el = document.getElementById(obj);
		if ( el.style.display != "none" ) {
			el.style.display = 'none';
		}
		else {
			el.style.display = '';
		}
	}

///////////////////////////////////////////////////////////////////
// opacidade no botao/////////////////////////////////////////////
/////////////////////////////////////////////////////////////////


function opacBtn(id)
{
	$D(id).style.opacity="0.4";
	$D(id).style.filter="alpha(opacity=40)";

}

function opacBtnNo(id)
{
	$D(id).style.opacity="";
	$D(id).style.filter="";
}
