var  answers = {
    showEl : null,
    showAnswer: function (el) {
        if(this.showEl) {
            this.hideAnswer(this.showEl);
        }
        if(el==this.showEl) {
            this.showEl = null;
            return;
        }
        this.showEl = el;
        $(el).parent().addClass('opend');
        $(el).next('ul').show('fast');
        return false;
    },
    hideAnswer : function(el)
    {
        $('.opend > ul').hide('fast');
        $('.opend').removeClass('opend');
        return false;
    }
}

var tabs = null;
function initAbout() {
    tabs = $("#tab_init > ul").tabs({
        fx: {
            height: "toggle",
            opacity: "toggle"
        },
        selected : 1,
        select: function (e, ui) {
            if(ui.index==0) {
                location.href = $.data(ui.tab, 'load.tabs');
                return false;
            }
        },
        show: function(e, ui) {
            setTitleBox(ui.tab.text)
        }
    });

    $('.faqs > li > a').click(
        function () {
            answers.showAnswer(this);
            return false;
        })
}

function setTitleBox(txt) {
    
    $('#content_big > div.box > h3').html(txt);
//title(txt);
}