// JavaScript/jQuery source written by Cory Dorning
// Visit www.corydorning.com/blog/jquery-faqs-scroll-and-highlight-tutorial
// for original source code and tutorial

jQuery(document).ready(function() {
  $("#menu_items > li").click(function(e) {
    var qu = $(this).attr("id");
    e.preventDefault();
    location.href="#"+qu
		var an = "#" + qu;
		var un = an.replace("#q","#");
		$.scrollTo(un, {duration: 1500, axis:"xy", onAfter:function(){ 	
			//$(un).effect("highlight", {color: "#ddd"}, 2000); 
			}
		});
  });
	
//	$(".return-top").click(function() { alert("hoo");
//		$.scrollTo("body", {duration: 800, axis:"y"});
//	});
});