I'm using a jquery plugin Galleriffic in my page and it shows perfectly in all browsers except IE. The error says: "Object doesn't support this property or method"

The code I use for script activation is:

Code:
<script type="text/javascript">
		$(document).ready(function() {
			
			var gallery = $('#thumbs').galleriffic({
			delay:                     3000, // in milliseconds
			numThumbs:                 2, // The number of thumbnails to show page
			preloadAhead:              2, // Set to -1 to preload all images
			});	
				
		});
	</script>
The line the error points to, as the culprit, is:
Code:
var gallery = $('#thumbs').galleriffic({
Can somebody help?