Well, it could get ugly in real life but, limited testing shows that removing the:
from the body tag and placing this script right after the body tag, like so, may do the trick:
HTML Code:
<body>
<script type="text/javascript">
init()
</script>
I have my doubts though, as it may not give the script time enough to load before calling the init function. It may work for you, locally, or if you have the script cached, but not for first time visitors to your live page. To test, go live and empty your cache first. You may be able to find, by trial and error, a spot further down your page that will give it enough time. If so, I'd move it on down below another element or two just to be on the safe side. In any case, I am not recommending this as foolproof, by any means.
Bookmarks