// TODO: cookie detection doesn't seem to be working

function togglebar(){
	$j('#searchbar').toggle();
	$j('#persistenttoolbar').slideToggle();

}
	
function toggleMenu(){
	$j('#locationMenu').slideToggle();
	$j('#pickbutton').toggle();
	$j('#pickclosebutton').toggle();
}

function toggleSearch(){		
	$j('#searchMenu').slideToggle();
}


function toggleFeedback(){
	$j('#feedback_form').toggle();
}

function resetShowInfoCenters(){
	$j('#tourdetails').hide();
	$j('#scheduler').hide();
	$j('#infocenterdetails').fadeIn();
	$j('#btnTourInfo').hide();			
	$j('#toolbar').fadeIn();
}

function resetScheduler(){
	$j('#tourdetails').fadeIn();
	$j('#scheduler').hide();
	$j('#infocenterdetails').hide();
	$j('#btnInfoCenter').show();
	$j('#btnTourInfo').hide();
	$j('#toolbar').fadeIn();				
}

function showInfoCenters(){
	$j('#tourdetails').hide();
	$j('#scheduler').hide();			
	$j('#btnInfoCenter').hide();
	$j('#btnTourInfo').show();
	$j('#infocenterdetails').fadeIn();
}

function showScheduleTour(){
	$j('#toolbar').hide();			
	$j('#tourdetails').hide();
	$j('#infocenterdetails').hide();
	$j('#btnInfoCenter').show();
	$j('#btnTourInfo').hide();			
	$j('#scheduler').fadeIn();
}