// siteMap.js
//
//Following are functions used by the siteMap to expand and collapse.
//
var sitemap = new function(){
	
	this.init = function(){
		var $lists = $("#content ul ul");
		$("#content .expand")
			.click(function (){
				$lists.hide();
				$(this)
					.siblings("ul").show().end()
					.parents("ul").show().end()
					.parents("ul").siblings("ul").show().end();
				})
			.hover(function(){$(this).addClass("hover");},function(){$(this).removeClass("hover");})
			.disableSelection();
	}
}

$(function(){sitemap.init()});