Completely rewritten. Firefox compatibility and ability to add multiple Trend columns