No offense, but the script above is 'half-baked' in style, and not worth fixing as imho you can replace it with ease - You'll find plenty of similar 'coloured popups stuff' by strolling some script-hosting webpages.