aba_atual = 'regional';

function aba_onfocus(aba){
    if(aba==aba_atual) return false;
    document.getElementById(aba+'aba').style.color = '#FFCA00';
}

function aba_offocus(aba){
    if(aba==aba_atual) return false;
    document.getElementById(aba+'aba').style.color = '#666666';
}

function aba_action(aba)
{
    if(aba==aba_atual) return false;
    document.getElementById(aba_atual+'aba').style.color = '#666666';
    document.getElementById(aba_atual+'aba').style.background = 'none';
    document.getElementById(aba_atual).style.display = 'none';
    aba_atual = aba;
    document.getElementById(aba_atual+'aba').style.color = '#FFCA00';
    document.getElementById(aba_atual+'aba').style.backgroundImage = "url('img/aba_ativa.jpg')";
    document.getElementById(aba_atual+'aba').style.backgroundRepeat = 'no-repeat';
    document.getElementById(aba_atual).style.display = 'block';
}

function paginar(aba,pag)
{
    i=1;
    while(document.getElementById(aba+i)!=null){
        document.getElementById(aba+i).style.display = 'none';
        document.getElementById(aba+i+'link').style.border = '1px solid #444';
        document.getElementById(aba+i+'link').style.color = '#666';
        i++;
    }
    document.getElementById(aba+pag).style.display = 'block';
    document.getElementById(aba+pag+'link').style.border = '0';
    document.getElementById(aba+pag+'link').style.color = '#FC6';
}
