function getHash(url)
{
	if(url == "current") //current URL
	{
		var r = window.location.href;
	}
	else //used passed in URL
	{
		var r = url;
	}
	
	var i = r.indexOf("#");
	
	return (i >= 0? r.substr(i+1) : "");
}

$(document).ready(function()
{
	//Assign click functions to links
	$('a#past-education-link').click(function() 
	{
		$('#past-education').slideToggle("slow");
	});
	$('a#past-therapy-link').click(function() 
	{
		$('#past-therapy').slideToggle("slow");
	}); 
	
	//Check if one of the above lists is already expanded
	if(getHash("current") == "past-education-place")
	{
		$('#past-education').toggle();
	}
	else if(getHash("current") == "past-therapy-place")
	{
		$('#past-therapy').toggle();
	}
});
