function CaixaDestaqueEspecial(){
	if (nIndice > nTotMat)
	    nIndice = 0;
	else
		if (nIndice < 0)
			nIndice = nTotMat;	    
			
    $('.navLnk').removeAttr('style');			
    $('#n' + (nIndice+1)).css('background-color','#336633');
    $('#n' + (nIndice+1)).css('color','#fff');
			
	Tit     = document.getElementById("matTit");
	mLnk    = document.getElementById("matLnk");
	Res     = document.getElementById("matRes");
	Dat     = document.getElementById("matDat");
	Sec     = document.getElementById("matSec");
	Leg     = document.getElementById("matLeg");
		
	if (aMatLeg[nIndice] != "" )
	{
		mLnk.title 	= aMatLeg[nIndice];
		Leg.innerHTML   = "» " + aMatLeg[nIndice];	
	}
	else
	{
		mLnk.title 	= aMatTit[nIndice];
		Leg.innerHTML   = aMatLeg[nIndice];	
	}

	Tit.innerHTML	= aMatTit[nIndice];
	Res.innerHTML	= aMatRes[nIndice];
	Dat.innerHTML	= aMatDat[nIndice];

    Tit.href        = aMatLnk[nIndice];
	mLnk.href		= aMatLnk[nIndice];
	
	mLnk.style.background = "url('" + aMatImg[nIndice] + "') no-repeat";
	
	Sec.href        = aSecLnk[nIndice];
	if (isIE)
	    Sec.innerText = aMatSec[nIndice];
	else
	    Sec.textContent = aMatSec[nIndice];
	nIndice++;
}
//......
function IrPara(n){
	clearInterval(timeoutID);
	nIndice = (n-1);
	CaixaDestaqueEspecial();
	timeoutID = setInterval('CaixaDestaqueEspecial()', time );
}
// ============================================
function CentralDeNoticias(){	
	if (nIndiceCN > nTotMatCN){
		nIndiceCN = 0;
		}
	mCN = document.getElementById("matCN");
	mCN.href = aMCNLnk[nIndiceCN];
	if (isIE)
	    mCN.innerText = aMCNTit[nIndiceCN];
	else
	    mCN.textContent = aMCNTit[nIndiceCN];
	nIndiceCN++;
}


//==========================================
// JQUERY....

$(document).ready(function() {

    $('.navLnk').click(function(){
        IrPara($(this).html());
	clearInterval(timeoutID)
    });
    //......
    $('#n1').css('background-color','#336633');
    $('#n1').css('color','#fff');
});
