function switchTab(activeTab)
{
	//show correct link
	$('.widget-tabs').children('div').each( function(i) { 
		/* should be active */
		var current = $(this);
//		console.log(current);
		/* not the tab that should be active */
		var id = current.attr('id');
		if( id != activeTab)
		{
			current.removeClass('tab-' + id + '-active');
			$('#tab-' + id).hide();
		}else{
			if(!current.hasClass('tab-' + id + '-active'))
			{
				current.addClass('tab-' + id + '-active');
				$('#tab-' + id).show();
			}
		}
	});
}
