!function(a){a.fn.uitotop=function(b){var c={text:"",min:200,indelay:600,outdelay:400,containerid:"totop",containerhoverid:"totophover",scrollspeed:1200,easingtype:"linear"},d=a.extend(c,b),e="#"+d.containerid,f="#"+d.containerhoverid;a("body").append('
'+totopscreenreadertext.label+""+d.text+"
"),a(e).hide().on("click.uitotop",function(){return a("html, body").animate({scrolltop:0},d.scrollspeed,d.easingtype),a("#"+d.containerhoverid,this).stop().animate({opacity:0},d.indelay,d.easingtype),!1}).prepend('').hover(function(){a(f,this).stop().animate({opacity:1},600,"linear")},function(){a(f,this).stop().animate({opacity:0},700,"linear")}),a(window).scroll(function(){var b=a(window).scrolltop();void 0===document.body.style.maxheight&&a(e).css({position:"absolute",top:b+a(window).height()-50}),b>d.min?a(e).fadein(d.indelay):a(e).fadeout(d.outdelay)})}}(jquery);