jQuery(document).ready(function($){
	$('ul li:first-child').addClass('first')
	$('ul li:last-child').addClass('last')
	
	$('dl dt:first-child').addClass('first')
	
	$('#top-menu ul li.parent').hover(
		function() {
			$(this).addClass("actives");
			$(this).find('> ul').stop(false, true).fadeIn();
			$(this).find('>ul ul').stop(false, true).fadeOut('fast');
			Cufon.refresh();
		},
		function() {
			$(this).removeClass("actives");        
			$(this).find('ul').stop(false, true).fadeOut('fast');
			Cufon.refresh();
	});
		
	$('.moduletable h3').wrapInner('<span></span>');
	$('h2').wrapInner('<span></span>');
	$('#member-registration legend').wrapInner('<span></span>');
	
	$('#slider .bannergroup').nivoSlider({
		effect:'fade', // Specify sets like: 'fold,fade,sliceDown'
        slices:3, // For slice animations
        boxCols: 4, // For box animations
        boxRows: 3, // For box animations
        animSpeed:600, // Slide transition speed
        pauseTime:5000, // How long each slide will show
        startSlide:0, // Set starting Slide (0 index)
        directionNav:true, // Next & Prev navigation
        directionNavHide:true, // Only show on hover
        controlNav:false, // 1,2,3... navigation
        pauseOnHover:true, // Stop animation while hovering
        prevText: '&lt;', // Prev directionNav text
        nextText: '&gt;' // Next directionNav text
		});
});
