var tabs = {
    init : function () {
        $("#navi").addClass("navi_js");
        this.switch_to($("#navi li:first-child a").get(0), 1);
    },

    switch_to : function (obj, target) {
        $("#navi li").removeClass("active");
        $(obj).parent().addClass('active');
        $(".content").hide();
        $("#c" + target).show();
    }
}

$(document).ready(function() { tabs.init() });

