Fixed some CSS transition issues with IE.
Consolidated some code.