
	// level
	document.observe("dom:loaded", function(){

		// add some depth
		addDepth($$('.widget_hier_page')[0],'li',-1);

	});
		
	// add depth
	function addDepth(el,tag,depth){

		// add class to this element
		if($(el).tagName.toLowerCase() == tag.toLowerCase())
			$(el).addClassName('depth-'+depth++);

		// for each child recurse
		$(el).childElements().each(function(child){
			addDepth(child,tag,depth);
		});
	}

	// d
	function d(m){console.log(m)}
	function dd(m){console.dir(m)}
