function tabs( buttonContainerClass, tabContentClass )
{
	var btnContainers = jQuery( '.' + buttonContainerClass  + ' li' );
	var buttons = jQuery( '.' + buttonContainerClass  + ' a' );
	var contentDivs = jQuery( '.' + tabContentClass );

	jQuery( buttons ).click(
		function ()
		{
			var href = this.getAttribute( 'href' );
			var id = href.substr( href.indexOf('#') );
			jQuery( contentDivs ).not( id ).hide();
			if ( jQuery( id ).css( 'display' ) == 'none' )
			{
				jQuery( id ).fadeIn( 'fast' );
			}
			jQuery( btnContainers ).not( this.parentNode ).removeClass( 'current' );
			jQuery( this.parentNode ).addClass( 'current' );
			//return false;
		}
	);
	
	if ( location.href.indexOf( '#' ) != -1 )
	{
		var currentTabId = location.href.substr( location.href.indexOf( '#' ) );
		var tabToHide = jQuery( contentDivs ).filter( currentTabId ).eq(0).length;
		//alert( tabToHide );
		if ( tabToHide )
		{
			jQuery( 'a[href="'+ currentTabId +'"]' ).parent('li').eq(0).addClass( 'current' );
			jQuery( contentDivs ).not( currentTabId ).hide();
		}
		else
		{
			jQuery( btnContainers ).filter( ':first' ).addClass( 'current' );
			jQuery( contentDivs ).not( ':first' ).hide();
		}
	}
	else
	{
		jQuery( btnContainers ).filter( ':first' ).addClass( 'current' );
		jQuery( contentDivs ).not( ':first' ).hide();
	}
}
