function show_hidden_content(action){
	
	var show_info = document.getElementById('show_info');
	var hide_info = document.getElementById('hide_info');
	var main_section = document.getElementById('hidden_content_container');
	
	if(action=='show'){
		main_section.style.zIndex = 1000;
		$('#hidden_content').slideDown('slow');
		show_info.style.display = 'none';
		hide_info.style.display = 'block';
	}
	
	if(action=='hide'){
		$('#hidden_content').slideUp('slow');
		show_info.style.display = 'block';
		hide_info.style.display = 'none';
		main_section.style.zIndex = 110;
	}
	
}

function show_hidden_restaurant(action){
	
	var show_info = document.getElementById('show_info_restaurant');
	var hide_info = document.getElementById('hide_info_restaurant');
	
	if(action=='show'){
		$('#hidden_menu').slideDown('slow');
		show_info.style.display = 'none';
		hide_info.style.display = 'block';
	}
	
	if(action=='hide'){
		$('#hidden_menu').slideUp('slow');
		show_info.style.display = 'block';
		hide_info.style.display = 'none';
	}
	
}

function tabSwitch(active) {

	var content_prefix = 'content';
	var tab_prefix = 'tab';
	
	var listContainer = document.getElementById("tabs");
	var number = listContainer.getElementsByTagName('li').length;

	for (var i=1; i < number+1; i++) {
	if (i!=active) {
	  $('#'+content_prefix+i).slideUp('slow');
	}
	  document.getElementById(tab_prefix+i).className = '';
	}
	
	$('#'+content_prefix+active).slideDown('slow');
	document.getElementById(tab_prefix+active).className = 'current';	

}

function terrific_open(section){
	$('#race_and_dine_title').slideDown('slow');
	$('#race_and_dine_content').slideUp('slow');
	
	$('#half_price_title').slideDown('slow');
	$('#half_price_content').slideUp('slow');
	
	$('#taxi_title').slideDown('slow');
	$('#taxi_content').slideUp('slow');
	
	$('#'+section+'_title').slideUp('slow');
	$('#'+section+'_content').slideDown('slow');
}

function terrific_close(section){
	$('#'+section+'_title').slideDown('slow');
	$('#'+section+'_content').slideUp('slow');
}

function open_cart(){
	$('#shopping_basket_hidden').toggle('slow');
}

function package_switch(active) {

	var content_prefix = 'content';
	var tab_prefix = 'tab';
	
	var listContainer = document.getElementById("package_list");
	var number = listContainer.getElementsByTagName('li').length;

	for (var i=1; i < number+1; i++) {
	if (i!=active) {
	  $('#'+content_prefix+i).slideUp('slow');
	  $('#wee_bar_thing_'+i).fadeOut('slow');
	}
	  document.getElementById(tab_prefix+i).className = '';
	}
	
	$('#'+content_prefix+active).slideDown('slow');
	$('#wee_bar_thing_'+active).fadeIn('slow');
	document.getElementById(tab_prefix+active).className = 'current';	

}

function christmas_toggle(action){
	var show_info = document.getElementById('dinner_show_btn');
	var hide_info = document.getElementById('dinner_hide_btn');
	
	if(action=='show'){
		show_info.style.display = 'none';
		hide_info.style.display = 'block';
		$('#dinner_menu').slideDown('slow');
	}else{
		show_info.style.display = 'block';
		hide_info.style.display = 'none';
		$('#dinner_menu').slideUp('slow');
	}
	
}

function super_sundays_toggle(action){
	var show_info = document.getElementById('open_sunday_lunch_menu');
	var hide_info = document.getElementById('hide_sunday_lunch_menu');
	
	if(action=='show'){
		show_info.style.display = 'none';
		hide_info.style.display = 'block';
		$('#sunday_lunch_menu').slideDown('slow');
	}else{
		show_info.style.display = 'block';
		hide_info.style.display = 'none';
		$('#sunday_lunch_menu').slideUp('slow');
	}
	
}

function christmas_dates(action){
	var show_info = document.getElementById('christmas_dates_show');
	var hide_info = document.getElementById('christmas_dates_hide');
	
	if(action=='show'){
		show_info.style.display = 'none';
		hide_info.style.display = 'block';
		$('#christmas_dates').slideDown('slow');
	}else{
		show_info.style.display = 'block';
		hide_info.style.display = 'none';
		$('#christmas_dates').slideUp('slow');
	}
}

function homepage_info(action){
	if(action=='hide'){
		$('#find_out_more_hidden').slideUp('slow');
		$('#find_out_more_show').slideDown('slow');
	}else{
		$('#find_out_more_hidden').slideDown('slow');
		$('#find_out_more_show').slideUp('slow');
	}
}
