$(document).ready(function(){
	//References
	var sections = $("#Map area");
	//var loading = $("#loading");
	var content = $("#dyncontent");
	
	//Manage click events
	sections.click(function(){
		//show the loading bar
		//showLoading();
		//load selected section
		switch(this.id){
			case "corporate":
				//content.slideUp();
				content.load("sections.html #corporate_section");
				//content.slideDown();
				break;
			case "newengland":
				//content.slideUp();
				content.load("sections.html #newengland_section");
				//content.slideDown();
				break;
			case "western":
				//content.slideUp();
				content.load("sections.html #western_section");
				//content.slideDown();
				break;
			case "central":
				//content.slideUp();
				content.load("sections.html #central_section");
				//content.slideDown();
				break;
			case "northeast":
				//content.slideUp();
				content.load("sections.html #northeast_section");
				//content.slideDown();
				break;
			case "midatlantic":
				//content.slideUp();
				content.load("sections.html #midatlantic_section");
				//content.slideDown();
				break;
			case "southeast":
				//content.slideUp();
				content.load("sections.html #southeast_section");
				//content.slideDown();
				break;
			case "westflorida":
				//content.slideUp();
				content.load("sections.html #westflorida_section");
				//content.slideDown();
				break;
			case "southflorida":
				//content.slideUp();
				content.load("sections.html #southflorida_section");
				//content.slideDown();
				break;
			case "nationwide":
				//content.slideUp();
				content.load("sections.html #nationwide_section");
				//content.slideDown();
				break;
			default:
				//hide loading bar if there is no selected section
				//hideLoading();
				break;
		}
	});

//	//show loading bar
//	function showLoading(){
//		loading
//			.css({visibility:"visible"})
//			.css({opacity:"1"})
//			.css({display:"block"})
//		;
//	}
//	//hide loading bar
//	function hideLoading(){
//		loading.fadeTo(1000, 0);
//	};
});