MooTools with BlogEngine?

Topics: Themes
Aug 14, 2008 at 1:32 AM
Edited Aug 14, 2008 at 1:33 AM

Being relatively weak in JavaScript I was hoping that someone could help me understand how MooTools can be used in BlogEngine.NET. I have been playing around with it but can't seem to get the scripts to load correctly...  I have added the JavaScript files into into the head of my site.master

<script src="js/mootools.v1.11.js" type="text/javascript"></script>
<script src="js/autoaccordion.js" type="text/javascript"></script>
<script src="js/cookieautoaccordion.js" type="text/javascript"></script>

And added the  windows.addEvent code to the footer of my site.master:

<script type="text/javascript">
    window.addEvent('load', function () {
    var demo = new CookieAutoAccordion($('.handle', 'accordion'), $('.drawer', 'accordion'));
  });
</script>

But each time my page loads I get the error this.options is undefined (mootools.v1.11.js)...  Any help would be appreciated...

Oh, by the way...  A good example page that has what I am trying to accomplish is http://creativepony.com/demos/cookieautoaccordion/...

Chris