$(document).ready(function(){

	$("#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
		});
	});

	$("#red").treeview({
		animated: "fast",
		collapsed: true,
		unique: true,
		control: "#treecontrol",  //this is the html element that has the macro funtionality presently commented out on index file.
		persist: "location"
	});


});
