// JavaScript Document

$(function() {

	

	// easeOutExpo
	jQuery.easing.expo = function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	};

	//smooth scroll
	$('a.scroll').click(
		function() {
			if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname)
			var target = $(this.hash);
			target = target.length && target;
			if (target.length)
				var sclpos = 30;
				var scldurat = 900;
				var targetOffset = target.offset().top - sclpos;
				$('html,body').animate({scrollTop: targetOffset}, {duration: scldurat, easing: "expo"});
				return false;
			}
		);
	$('input').keypress(function (e) {
		if((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)){
			return false;
		}
	});


});
