document.observe('dom:loaded',function(){
									   
	$("scrollbar_content").removeClassName('hide-overflow');
	$("scrollbar_content").addClassName('scrolling');

	var scrollbar = new Control.ScrollBar('scrollbar_content','scrollbar_track');
	
	var len = document.getElementById('menu-nav').getElementsByTagName('li').length;
	for(var i=1; i < len+i; i++) {		
		var navItem = document.getElementById('menunav_' + i);
		if (navItem != null || typeof(navItem) !== undefined) {
			navItem.onclick = (function(e) {
				try {
					var navSection = document.getElementById('menusection_' + this.getAttribute('id').split('_')[1]);
					scrollbar.scrollTo(navSection, true);
				}
				catch (ex) {
				}
				finally {
					return false;
				}
			});
		}
	}
	
	/*$('menunav_1').observe('click', function(event) {
		scrollbar.scrollTo('menusection_1', true);
		event.stop();
	});*/
});