function ShowTDTContent(num) {
	var tdts = $('.tdtContent');
	$('.tdtContent').hide();
	$(tdts[num-1]).show();
}

function ShowTabContent(num) {
	var tabs = $('.tabsContent');
	$('.tabsContent').hide();
	$(tabs[num-1]).show();
}

$(document).ready( function() {
	// for the daily takeaway numbered list
	$('#tdtHeader a.tab').click( function() {
		ShowTDTContent($(this).html());
		$('#tdtHeader a.tab').removeClass('active');
		$(this).addClass('active');
		return false;
	});
	
	// for the lower tabs on the home page
	$('#tabs a.tab').click( function() {
		ShowTabContent($(this).parent('li').attr('class').substr(3,1));
		return false;
	});
	
	$('#ea').focus( function() {
		this.select();
		return true;
	});
});