(Different browsers have slightly different DOM structures at the top levels. Method 1 above is fixed to work with the IE DOM only).