An attempt at cross-browser support... Not much luck.