/*
* Called when DOM is ready.
*
*/
$(function() {
	//set click event.
	$("#expandForbiddenIslandLink").click(function(evt) {
		evt.preventDefault();
		
		expandSection("forbiddenIslandLongVersionContainer", "forbiddenIslandShortVersionContainer")
	});
	
	//set click event.
	$("#expandSchedulePricesLink").click(function(evt) {
		evt.preventDefault();
		
		expandSection("schedulePricesLongVersionContainer", "schedulePricesShortVersionContainer")
	});
});


/*
* Expand one section and hide another section.
*
* @param {Object} sectionToExpand
* @param {Object} sectionToHide
*/
function expandSection(sectionToExpand, sectionToHide) {
	//hide section.
	$("#" + sectionToHide).hide("slow");
	
	//display section.
	$("#" + sectionToExpand).show("slow");
}