/************************************************************************* (c) 2008-2009 Martin Wendt *************************************************************************/ $(function(){ // Replace tabs inside
 with 4 spaces, because some browsers display 8
	// characters
	$("pre.codesample, div.codesample pre, pre.prettyprint").each(function(){
		var text = $(this).text();
		text2 = text.replace(/\t/g, "    ");
		$(this).text(text2)
	});

	// Show some elements only, if (not) inside the Example Browser
	if (top.location == self.location)
		$(".hideOutsideFS").hide();
	else
		$(".hideInsideFS").hide();
});


(function($) {

$.widget("ui.toc", {
	init: function() {
		// The widget framework supplies this.element and this.options.
		this.options.event += '.toc'; // namespace event

		// create TOC
		var $this = this.element;
		var opts = this.options;

		// Attach the tree object to parent element
		var id = $this.attr("id");

		$this.addClass(opts.classnames.container);
		$this.append("
" + opts.title + "
"); // var $ul = $this.append("