/*
Para incluir novas abas proceda da seguinte forma:
	
1º duplique as variaveis referentes a aba e abatit.
2º duplique  uma linha referente a titulo e uma linha referente a aba em todos os if´s.
3º inclua mais um if mudando o nomedo i == X
4º no html duplique um h2 uma div#aba alterando os respectivos valores
5º no css crie os novos titulos com sinal de mais e sinal de menos
	
OBS.: em todos os casos mantenha o padrao dos nomes
*/
function displayAbas(i) {
    var aba01 = document.getElementById('aba01');
    var aba01tit = document.getElementById('aba01-tit');

    var aba02 = document.getElementById('aba02');
    var aba02tit = document.getElementById('aba02-tit');

    var aba03 = document.getElementById('aba03');
    var aba03tit = document.getElementById('aba03-tit');

    var aba04 = document.getElementById('aba04');
    var aba04tit = document.getElementById('aba04-tit');

    var aba05 = document.getElementById('aba05');
    var aba05tit = document.getElementById('aba05-tit');

    var aba06 = document.getElementById('aba06');
    var aba06tit = document.getElementById('aba06-tit');

    var aba07 = document.getElementById('aba07');
    var aba07tit = document.getElementById('aba07-tit');

    var aba08 = document.getElementById('aba08');
    var aba08tit = document.getElementById('aba08-tit');

    var aba09 = document.getElementById('aba09');
    var aba09tit = document.getElementById('aba09-tit');

    var aba10 = document.getElementById('aba10');
    var aba10tit = document.getElementById('aba10-tit');

    var aba11 = document.getElementById('aba11');
    var aba11tit = document.getElementById('aba11-tit');

    var aba12 = document.getElementById('aba12');
    var aba12tit = document.getElementById('aba12-tit');

    var aba13 = document.getElementById('aba13');
    var aba13tit = document.getElementById('aba13-tit');

    var aba14 = document.getElementById('aba14');
    var aba14tit = document.getElementById('aba14-tit');

    if (i == 1) {
        aba01tit.className = 'tit-aba01-on';
        aba02tit.className = 'tit-aba02-off';
        aba03tit.className = 'tit-aba03-off';

        aba01.style.display = 'block';
        aba02.style.display = 'none';
        aba03.style.display = 'none';
    }
    if (i == 2) {
        aba01tit.className = 'tit-aba01-off';
        aba02tit.className = 'tit-aba02-on';
        aba03tit.className = 'tit-aba03-off';

        aba01.style.display = 'none';
        aba02.style.display = 'block';
        aba03.style.display = 'none';
    }
    if (i == 3) {
        aba01tit.className = 'tit-aba01-off';
        aba02tit.className = 'tit-aba02-off';
        aba03tit.className = 'tit-aba03-on';

        aba01.style.display = 'none';
        aba02.style.display = 'none';
        aba03.style.display = 'block';
    }
    if (i == 4) {
        aba07tit.className = 'tit-aba07-off';
        aba06tit.className = 'tit-aba06-off';
        aba05tit.className = 'tit-aba05-off';
        aba04tit.className = 'tit-aba04-on';

        aba07.style.display = 'none';
        aba06.style.display = 'none';
        aba05.style.display = 'none';
        aba04.style.display = 'block';

    }
    if (i == 5) {
        aba07tit.className = 'tit-aba07-off';
        aba06tit.className = 'tit-aba06-off';
        aba05tit.className = 'tit-aba05-on';
        aba04tit.className = 'tit-aba04-off';

        aba07.style.display = 'none';
        aba06.style.display = 'none';
        aba05.style.display = 'block';
        aba04.style.display = 'none';

    }
    if (i == 6) {
        aba07tit.className = 'tit-aba07-off';
        aba06tit.className = 'tit-aba06-on';
        aba05tit.className = 'tit-aba05-off';
        aba04tit.className = 'tit-aba04-off';

        aba07.style.display = 'none';
        aba06.style.display = 'block';
        aba05.style.display = 'none';
        aba04.style.display = 'none';


    }
    if (i == 7) {
        aba07tit.className = 'tit-aba07-on';
        aba06tit.className = 'tit-aba06-off';
        aba05tit.className = 'tit-aba05-off';
        aba04tit.className = 'tit-aba04-off';


        aba07.style.display = 'block';
        aba06.style.display = 'none';
        aba05.style.display = 'none';
        aba04.style.display = 'none';


    }
    if (i == 8) {
        aba08tit.className = 'tit-aba08-on';
        aba09tit.className = 'tit-aba09-off';
        aba10tit.className = 'tit-aba10-off';


        aba08.style.display = 'block';
        aba09.style.display = 'none';
        aba10.style.display = 'none';
    }
    if (i == 9) {
        aba08tit.className = 'tit-aba08-off';
        aba09tit.className = 'tit-aba09-on';
        aba10tit.className = 'tit-aba10-off';


        aba08.style.display = 'none';
        aba09.style.display = 'block';
        aba10.style.display = 'none';
    }
    if (i == 10) {
        aba08tit.className = 'tit-aba08-off';
        aba09tit.className = 'tit-aba09-off';
        aba10tit.className = 'tit-aba10-on';


        aba08.style.display = 'none';
        aba09.style.display = 'none';
        aba10.style.display = 'block';
    }
    if (i == 11) {
        aba11tit.className = 'tit-aba11-on';
        aba12tit.className = 'tit-aba12-off';
        aba13tit.className = 'tit-aba13-off';
        aba14tit.className = 'tit-aba14-off';

        aba11.style.display = 'block';
        aba12.style.display = 'none';
        aba13.style.display = 'none';
        aba14.style.display = 'none';
    }
    if (i == 12) {
        aba11tit.className = 'tit-aba11-off';
        aba12tit.className = 'tit-aba12-on';
        aba13tit.className = 'tit-aba13-off';
        aba14tit.className = 'tit-aba14-off';

        aba11.style.display = 'none';
        aba12.style.display = 'block';
        aba13.style.display = 'none';
        aba14.style.display = 'none';
    }
    if (i == 13) {
        aba11tit.className = 'tit-aba11-off';
        aba12tit.className = 'tit-aba12-off';
        aba13tit.className = 'tit-aba13-on';
        aba14tit.className = 'tit-aba14-off';

        aba11.style.display = 'none';
        aba12.style.display = 'none';
        aba13.style.display = 'block';
        aba14.style.display = 'none';
    }
    if (i == 14) {
        aba11tit.className = 'tit-aba11-off';
        aba12tit.className = 'tit-aba12-off';
        aba13tit.className = 'tit-aba13-off';
        aba14tit.className = 'tit-aba14-on';

        aba11.style.display = 'none';
        aba12.style.display = 'none';
        aba13.style.display = 'none';
        aba14.style.display = 'block';
    }
    //jQuery(document).ready(function() {
        jQuery('.aba:visible > ul.jcarousel-skin-tango').jcarousel({
            scroll: 1,
            itemFallbackDimension: 588
        });
    //});
}


window.onload = function() {
    //ancora = location.href;
    //ancora = ancora.split("#anc");
    // displayAbas(null);   
}


