

/**
@brief Configures the treeview display in expanded form
upon loading the document page
*/
$(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
		});
	});


	// third example
	$("#gray").treeview({
		animated: "fast",
		collapsed: false,
		control: "#treecontrol"
	});


});


/**
@brief Configures the 'table' display for elements classified into 'table'
upon loading the document page
*/
$(document).ready(function()
{
  if ($.browser.msie && $.browser.version <=8)
  {
    $(".table-cell").wrap("<td />");
    $(".table-row").wrap("<tr />");
    $(".table").wrapInner("<table />");
  }
});

