Welcome to the Ranch!
Next time please
UseCodeTags and maintain indentation when posting code. I've added your post to add both the code tags and indentation.
One remaining question: which version of IE are you using? I've noticed myself with one of our corporate web applications that IE6 can be very, very slow with JavaScript. Firefox is a lot faster, and Chrome blows both away. I haven't really tested it with IE8 yet.
Edit: Jesper already moved it