Trying fixes for Safari's odd onload behaviour.