
/* ZARK 2009 
 ease-ing formula borrowed from somewhere a long time ago...*/

jQuery.extend( jQuery.easing,
{
	easeIn: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;

	}
	

})

      $(document).ready(function(){

		$('#btnEnBref').click(function() {
		$('#enbref').slideToggle();
		});

        $('#menu a[href*=#]').click(function() {
			var href = $(this).attr('href').substr(1);	
		
			var h = $("[name='"+href+"']").position().top + $("#scrollDiv").scrollTop();
			$("#scrollDiv").animate({scrollTop: h}, 1000,"easeIn");
			return false;
        });
      });
