(function(a){a.fn.UItoTop=function(b){var c={text:"^ scroll to top",min:200,inDelay:200,outDelay:200,containerID:"toTop",containerHoverID:"toTopHover",scrollSpeed:1200,easingType:"linear"};var d=a.extend(c,b);var e="#"+d.containerID;a(".colmid").last().append('<a href="#" id="'+d.containerID+'" class="upbar">'+d.text+"</a>");a(e).hide().click(function(){a("html, body").animate({scrollTop:0},d.scrollSpeed,d.easingType);a("#"+d.containerID,this).stop().animate({opacity:0},d.inDelay,d.easingType);return false});a(window).scroll(function(){var b=a(window).scrollTop();if(typeof document.body.style.maxHeight==="undefined"){a(e).css({position:"absolute",top:a(window).scrollTop()+a(window).height()-50})}if(b>d.min)a(e).fadeIn(d.inDelay);else a(e).fadeOut(d.Outdelay)})}})(jQuery);$(document).ready(function(){$().UItoTop({easingType:"easeOutQuart"})})
