var _tabs = Array(
'search',
'archives',
'subscribe'
);

function selectTab( tabId )
{
	// hide all blocks and set all tabs to non-active
	for ( var b = 0; b < _tabs.length; b++ )
	{
  
  
  
    document.getElementById('tabpane-archives').style.display = 'none';
    
    
    
    document.getElementById( 'tabpane-'+ _tabs[ b ] ).style.display = 'none';
    document.getElementById( 'tabpane-tab-'+ _tabs[ b ] ).className = '';
	}
	// show the specified block
	document.getElementById( 'tabpane-'+ tabId ).style.display = 'block';
	document.getElementById( 'tabpane-tab-'+ tabId ).className = 'active';
}

