document.observe('dom:loaded', function(e) {
	var root_ul = $('menu-root-ul');

	var sub_ul = $$('.menu-root-ul .menu-sub-ul');
	
	sub_ul.each(function(s) {
		s.getOffsetParent().hide();
	});
	
	var root_li = $$('.menu-root-ul .menu-root-li');
	
	root_li.each(function(s) {
		s.observe('click', function(e) {
			var element = e.element();
			var sub_li = element.nextSiblings()[0];
	
			sub_li.toggle();
		});
	});
});

