// __________________________________________________________________________________________________________________________________________

	Spry.Utils.addLoadListener(function()
	{
		// Attach the sliding panels behavior to the topicSlider markup.
		var slider = new Spry.Widget.SlidingPanels("topic_slider");

		// Now add a click handler to the topic links so that they tell
		// the sliding panels what panel to show.

		Spry.$$("#topic_tabs a").addEventListener("click", function()
		{
			Spry.$$("#topic_tabs li").removeClassName("selected_tab");
			Spry.Utils.addClassName(Spry.Utils.getAncestor(this, "li"), "selected_tab");
			slider.showPanel(this.href.replace(/.*#/, "")); return false;
		}, false);
		
	});
