var TireTabs = Class.create();
TireTabs.prototype = {


// Reference to the tool bar's tabs.
tabs : null,


// Initializer.
//
initialize : function() {

	var url = window.location.href;
	var urlParams = url.toQueryParams();
	var tabIndex = urlParams.tab;
	if ( tabIndex == undefined || isNaN( tabIndex ) ) tabIndex = 1;

	// Initialize the tabs.
	this.tabs = new Tabs( 'tireTabs_tabContainer' );
	this.selectTab( tabIndex );

}, // End initialize().

selectTab : function( tabIndex ) {

	this.tabs.selectTab( tabIndex - 1 );

} // End selectTab().

} // End class TireTabs.

var tireTabs = new TireTabs();

