$(document).ready(function(){
		
	// first example
	$("#navigation").treeview({
		collapsed: true,
		unique: true,
		persist: "location"
	});

	
	// second example
	$("#browser").treeview({
		animated:"normal",
		persist: "cookie"
	});

	$("#samplebutton").click(function(){
		var branches = $("<li><span class='folder'>New Sublist</span><ul>" + 
			"<li><span class='file'>Item1</span></li>" + 
			"<li><span class='file'>Item2</span></li></ul></li>").appendTo("#browser");
		$("#browser").treeview({
			add: branches
		});
	});


	// professional example
	$("#professional").treeview({
		animated: "fast",
		collapsed: true,
		control: "#treecontrol"
	});
	
	// student example
	$("#student").treeview({
		animated: "fast",
		collapsed: true,
		control: "#treecontrol"
	});
	
	// rules and formats example
	$("#rulesandformats").treeview({
		animated: "fast",
		collapsed: true,
		control: "#treecontrol"
	});
    
    // FAQ
	$(".msg_body").hide();
	$(".msg_head").click(function(){
		$(this).next(".msg_body").slideToggle(100);
        return false;
	});


});