var IlSmoothScroll = function () {
}
IlSmoothScroll.prototype.speed = 500;
IlSmoothScroll.prototype.easing = "linear";
IlSmoothScroll.prototype.target = "a[href*=#]";

IlSmoothScroll.init = function (obj) {
	if (obj.speed != null) {
		IlSmoothScroll.prototype.speed = obj.speed;
	}
	if (obj.easing != null) {
		IlSmoothScroll.prototype.easing = obj.easing;
	}
	if (obj.target != null) {
		IlSmoothScroll.prototype.target = obj.target;
	}
}

$(document).ready(function () {
	var ilSmoothScroll = new IlSmoothScroll();
	$(ilSmoothScroll.target).click(function () {
		var ilSmoothScroll = new IlSmoothScroll();
		$('html, body').animate({scrollTop:$($(this).attr("href")).offset().top}, ilSmoothScroll.speed, ilSmoothScroll.easing);
		return false;
	});
});
