check for existence of Window for Safari < 5.1