$(document).ready(function(){
	// reset all tabs on start
	$('.tabset').find('a.tab').each(function(){
		if($(this).is('.active')){
			$($(this).attr('href')).show();
		} else {
			$($(this).attr('href')).hide();
		}
	});
	$('.tabset').find('a.tab').click(function(){
		$(this).parent().parent().find('a.tab').each(function(){
			$(this).removeClass('active');
			$($(this).attr('href')).hide();
		});
		$(this).addClass('active');
		$($(this).attr('href')).show();
		return false;
	});
});