$(document).ready(function() {
	
	// Hide all but the links
	$("#right_box_PD > ul#pdlist > li > ul > li > ul > li > a").siblings().hide();
	$("#right_box_PD > ul#pdlist > li > ul > li > a").siblings().hide();
	$("#right_box_PD > ul#pdlist > li > ul").hide();
	
	// Functions to reveal/hide siblings of the links when they are clicked
	$("#right_box_PD > ul#pdlist li > a").click(function() {
		$(this).siblings().toggle(200);
		return false;
	});
	$("#right_box_PD > ul#pdlist li > h2 > a").click(function() {
		$(this).parent().siblings().toggle(200);
		return false;
	});
	
	// Functions to toggle the state of the list arrows to the left of the links
	$("#right_box_PD > ul#pdlist li > a").click(function() {
		$(this).parent().toggleClass("expanded");
		return false;
	});
	$("#right_box_PD > ul#pdlist h2 > a").click(function() {
		$(this).parent().parent().toggleClass("expanded");
		return false;
	});

});