moved body.onload to window.onload because firefox compatibility