$(document).ready(function(){var t=$("#jumpTo").css("height"),n,i;t=t.substring(0,t.length-2),$("#jumpTo").css("max-height",parseInt(t)),n=$("#jumpTo .jumpToHeader").css("height"),n=n.substring(0,n.length-2),$("#jumpTo .jumpToHeader").css("max-height",parseInt(n)),$(document).height()-$(document).scrollTop()-$("#jumpTo").height()<250?($("#jumpTo").hide(),$("#jumpToScroll").hide(),$("#jumpToBottom").show()):$(document).scrollTop()>120&&($("#jumpTo").hide(),$("#jumpToScroll").show(),$("#jumpToBottom").hide()),$("#jumpTo").height()>$(window).height()&&(i=$(window).height()-parseInt(n)-14,$(".jumpToCats").css("height",i),$(".jumpToCats").css("overflow-y","scroll")),$("#jumpToBottom").css("top",$(document).height()-(250+$("#jumpTo").height()))}),$(window).scroll(function(){$(document).height()-$(document).scrollTop()-$("#jumpTo").height()<250?($("#jumpTo").hide(),$("#jumpToScroll").hide(),$("#jumpToBottom").show()):$(document).scrollTop()>120?($("#jumpTo").hide(),$("#jumpToScroll").show(),$("#jumpToBottom").hide(),$("#jumpToScroll").offset({left:10})):($("#jumpTo").show(),$("#jumpToScroll").hide(),$("#jumpToBottom").hide())}),$(window).resize(function(){var t=$("#jumpTo").css("max-height"),n,i;t=t.substring(0,t.length-2),parseInt(t)>$(window).height()?(n=$("#jumpTo .jumpToHeader").css("max-height"),n=n.substring(0,n.length-2),i=$(window).height()-parseInt(n)-14,$(".jumpToCats").css("height",i),$(".jumpToCats").css("overflow-y","scroll")):($(".jumpToCats").css("height",""),$(".jumpToCats").css("overflow-y","")),$("#jumpToBottom").css("top",$(document).height()-(250+$("#jumpTo").height()))})