function Menu()
{
	$('#sidebar1 .navigation > li > a').live('click',function(e)
			{
				e.preventDefault();
				$('ul.navigation>li.active').toggleClass('active')
				$(this).parent().toggleClass('active');
				$(this).parent().children('ul').each(function(index){
					$(this).toggleClass('active');
				});
				
			}
		);
	if (window.location.href.match('search.+catid'))
	{
		var catId = parseInt(window.location.href.substr(window.location.href.indexOf('catid')+6,window.location.href.length));
		$("#menu-"+catId).parent().addClass('active');
		$("#menu-"+catId).parent().parent().parent().addClass('active');
	}
	if ($('#sidebar1 .navigation li.active').size()==0)
	{
		$('#sidebar1 .navigation').children('li').first().addClass('active');
	}
}
