	$(document).ready(function(){
		$('#vnav a').click(function() {
		$(this).blur().parents('li').siblings('li:has(.active)').find('a').removeClass('active').end().end().end().addClass('active');
	  	});
		
		//at first hide the sub lists (if javascript is disabled all sublists remain usable)
		$("#vnav>ul>li>ul").hide();
		//when a link (that is a child of #vnav) is clicked call a function
		$("#vnav a").click(function(){
			//if the clicked link has a sibling ul, stop following the link and slide open (or close) the ul
			if($(this).next("ul").length > 0) {
				$(this).next("ul").slideToggle();
				
			}
		});
		
		return false;
		
	});



