This is caused by Mootools not being included properly in your template. The most common cause of this is that your template is missing the standard Joomla Head Inclusion code. This would also cause the style sheet to not be included either.
Your template should contain the following:
<jdoc:include type="head" />
Creating a basic Template