If I look at :
The position of where you place your script may be the problem.
For instance with scripts like these I usually prefer to place my script tagas right under
Hope this helps
also as a tip
<script type="text/JScript"> </script>