Tweak z-index for FF
Make location safe for IE