(function($) {
    $.fn.tabber=function(){
      init= function(el){
        this.tabs=$(el).find('ul.head li');
        this.tabs.each(function(){
		this.onselectstart = function() {return false;};
                this.unselectable = "on";
                $(this).css('-moz-user-select', 'none');
                
		$(this).bind('mouseover',function(){
                    $(this).not('.active').attr('class','hover');
                }).bind('mouseout',function(){
                    $(this).not('.active').attr('class','');
                }).bind('click',function(){
                    if($(this).attr('class')!='active')
                        show_tab(this);
                });
            });
            show_tab(this.tabs[0]);
      };
      show_tab=function(el){
          this.container=$(el).parents('div.tab_container').attr('id');
          clear_active(this.container);
          this.tab=$(el).attr('class','active').attr('rel');
          $('#'+this.container).find('#'+this.tab).slideDown();
      };
      clear_active=function(el){
          this.tab=$('#'+el+' ul.head  li.active').attr('class','').attr('rel');
          $('#'+el).find('#'+this.tab).slideUp();
      };
      /**/
      init(this);
    }
})(jQuery);
