

(function($) {
	$.fn.slideIntoView = function(sConfig){
		var effect;
		var top = this.offset().top, height = this.outerHeight(), bottom = top + height;
		var viewTop = $(window).scrollTop(), viewHeight = $(window).height(), viewBottom = viewTop + viewHeight;
		if (top < viewTop || bottom > viewBottom) {
			$.scrollTo(this,300);
		}
		return this;
	}
})(jQuery);
