added IE compatibility resize event
added init() to onLoad