I have a page that uses the jquery function:
$(document).ready(function() {
<script type="text/jscript">
is probably not going to fire in Firefox: JScript is Internet Explorer's interpretation of JavaScript. Use
<script type="text/javascript">
Other than that, it looks like it should work fine (even though it would be really better and cleaner to have this stuff in the head
part.)