// 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.noConflict();

jQuery(function($) {
  $("#questions > li").click(function() {
    var qu = $(this).attr("id");
		var an = "#" + qu.replace("q","a");

		$.scrollTo(an, {duration: 800, axis:"y", onAfter:function(){
		//$(an).effect("highlight", { color: "#F4F4F4" }, 1250);
		  }
		});
  });
	
	$(".return-top").click(function() {
		$.scrollTo("#wrapper", {duration: 800, axis:"y"});
	});
});
