Working in IE7! (with a bunch of silly alert statements left in)