Question : Function Undefined Error in Wordpress

I keep having a "function undefined" error in wordpress.

I am attempting to use this script:
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

When I put it into an html site it works fine, but when I place it in wordpress it breaks and I get this wired "function undefined" error in firebug.

I have included the javascript below.
Here is the site: http://bit.ly/9nAAgg

1:
2:
3:
4:
5:
6:
7:
8:
9:
<script type="text/javascript">
animatedcollapse.addDiv('jason', 'fade=1,height=auto')
animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}
animatedcollapse.init()
</script>

Answer : Function Undefined Error in Wordpress

i just open the source code on mozilla and tryed to open the script
Random Solutions  
 
programming4us programming4us