Refactored applying styles and scroll position. Fixed missing button border in IE 6.