/**
 * functions_pe.js
 */

/**
 * make a tab active (and inactivate all other tabs)
 *
 * Ex:  <a href="#" onclick="return active_tab('tabsClass', '37');">This is a link</a>
 *
 * @param string tabsElm is the class of the tabs <ul> container
 * @param string activeElm is the id of the tab to activate, is an <a> within an <li> within the tabs <ul>
 */
function active_tab ( tabsElm, activeElm )
{
	$('ul.' + tabsElm + ' li a').removeClass('active');
	$('#' + activeElm + ' a').addClass('active');
	
	$('ul#meta-products-list li.top-level').hide();
	$('ul#meta-products-list li#tid_' + activeElm).show();
	
	return false;
}

