Added some legacy support. Still need IE7 fixes as well as window resize handlers.