$(window).load(function(){
	
	$('.list li:has(ul)').addClass("nonselected");
	
	$('.list li').click(function(){
		$(this).toggleClass('selected');
		$(this).siblings("li").removeClass('selected');
		$(this).find("ul").slideToggle("slow");
		$('.list li:not(.selected)').find("ul").slideUp("slow");
	});
	var body_height = $("#content").height();
	var col_height = $(".container").height();
	if(col_height + 115 < body_height){
	$(".container").css({"height" : body_height-115});
	}
	
	var left_h = $("#left_col").height();
	var right_h = $("#right_col").height();
	if(left_h < right_h){
 		$("#left_col").height(right_h);
 	}
	else{
		$("#right_col").height(left_h);	
	}
	
});
