Added full support for IE7 & 8

a few bug fixes and added full support for IE7 and IE8