document.observe('dom:loaded',function(){
var tab2 = new Control.Tabs('tab2',{  
    afterChange: function(new_container){  
        $A($('tab2_select').options).each(function(option,i){  
            if(option.value == new_container.id){  
                $('tab2_select').options.selectedIndex = i;  
                throw $break;  
            }  
        });  
    }  
});  
$('tab2_select').observe('change',function(){  
    tab2.setActiveTab($('tab2_select').value);  
});  
$('tab2_first').observe('click',function(event){  
    this.first();  
    Event.stop(event);  
}.bindAsEventListener(tab2));  
$('tab2_previous').observe('click',function(event){  
    this.previous();  
    Event.stop(event);  
}.bindAsEventListener(tabs_example_two));  
$('tabs_example_two_next').observe('click',function(event){  
    this.next();  
    Event.stop(event);  
}.bindAsEventListener(tab2));  
$('tab2_last').observe('click',function(event){  
    this.last();  
    Event.stop(event);  
}.bindAsEventListener(tab2));  
});

