use scrollBy instead of scrollTop+=

Setting scrollTop doesn't do anything in Firefox or IE, so use window.scrollBy which is supported everywhere.