var Tabber = new Class({
     
      initialize : function(tabs,items,show){
           this.tabs = tabs;
           this.items = items;
           this.active = show || 0;

           this.tabs.each(function(tab,idx){
                 tab.addEvent('click', this.clicked.pass(idx,this) );
           },this);
     },

     'clicked' : function(idx){
            if(this.active != -1) this.items[this.active].setStyle('display','none');
            this.items[idx].setStyle('display','block');
            this.active = idx;
     }

});

window.addEvent('domready',function(){
    new Accordion('#AccordionContainer .AccordionTitle', '#AccordionContainer .AccordionContent',{display : 0});

});