
// Called like: 
//  new Tabs.test()
var Tabs = Class.create({

    initialize: function () {},

    /* Change the tab to activeElement, hiding all other elements with the class
     * of hideClass
     *   e.g: change('firstTab','userTab');
     */
    change: function(activeElement, hideClass) { 
        Element.getElementsByClassName('document', hideClass).each(function(ele) {
            ele.hide();
        });
        $(activeElement).show();
    },

    test: function() {
        alert("It works");
    }
});

// Singleton
Tabs = new Tabs();

