Updated for IE6, 7 & 8