// JavaScript Document
$(document).ready(function(){
	
	//hide map_body after the first one
	$(".map_list .map_body:gt(0)").hide();
	
	//hide map li after the 5th
	$(".map_list li:gt(4)").hide();

	
	//toggle map_body
	$(".map_head").click(function(){
		$(this).next(".map_body").slideToggle(500)
		return false;
	});

	//collapse all maps
	$(".collpase_all_map").click(function(){
		$(".map_body").slideUp(500)
		return false;
	});

	//show all maps
	$(".show_all_map").click(function(){
		$(this).hide()
		$(".show_recent_only").show()
		$(".map_list li:gt(4)").slideDown()
		return false;
	});

	//show recent maps only
	$(".show_recent_only").click(function(){
		$(this).hide()
		$(".show_all_map").show()
		$(".map_list li:gt(4)").slideUp()
		return false;
	});

});

