jQuery.extend( jQuery.easing,
{ easeInBack: function (x, t, b, c, d, s) {
	if (s == undefined) s = 1.70158;
	return c*(t/=d)*t*((s+1)*t - s) + b;
  }
});

(function($){$.fn.extend({scrollToTop:function(options){var defaults={speed:"slow",ease:"jswing",start:0}
var options=$.extend(defaults,options);return this.each(function(){var o=options;var scrollDiv=$(this);$(this).hide().removeAttr("href").css("cursor","pointer");if($(window).scrollTop()>o.start){$(this).fadeIn("slow");}$(window).scroll(function(){if($(window).scrollTop()>o.start){$(scrollDiv).fadeIn("slow");}else{$(scrollDiv).fadeOut("slow");}});scrollDiv.click(function(event){$("html, body").animate({scrollTop:"0px"},o.speed,o.ease);});});}});})(jQuery);

/* remove Opacity-Filter in ie */
function removeFilter(element) {
	if(element.style.removeAttribute){
		element.style.removeAttribute('filter');
	}
}

/* new window */
(function($){$.fn.newWin=function(){return this.each(function(){if((this.protocol=='http:'||this.protocol=='https:')&&this.hostname!=location.hostname){$(this).click(function(){open(this.href);return false;});}});};})(jQuery);

$(document).ready(function () { 
// $('a').newWin();
  $("#toTop").scrollToTop({speed:1000,ease:"easeInBack",start:200});
});
