$j = jQuery.noConflict();
var menuOpened = true;

$j(document).ready ( function () {
	$j('ul.dropdownList').each(function() {
		var parent = this;	
		$j('li', this).each(function() {
			var li = this;
			
			$j('h3.title a', this).click(function() {
				if (!$j(li).hasClass('opened')) {
					$j('li.opened',parent).removeClass('opened').addClass('closed');						   
					$j(li).removeClass('closed').addClass('opened');
				}
				else {
					$j('li.opened',parent).removeClass('opened').addClass('closed');
				}
				resetHasLayout();
			});
			
		});
	});
});
