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();

			}

		);

		

	$('#top-menu ul li:nth-child(4n)').addClass('st-4');

	$('#top-menu ul li:nth-child(4n-1)').addClass('st-3');

	$('#top-menu ul li:nth-child(4n-2)').addClass('st-2');

	$('#top-menu ul li:nth-child(4n-3)').addClass('st-1');
	
	$('#nivo-slider').nivoSlider({
        effect:'sliceDown', // Specify sets like: 'fold,fade,sliceDown'
        slices:8, // For slice animations
        boxCols: 4, // For box animations
        boxRows: 2, // For box animations
        animSpeed:500, // 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
        captionOpacity:0.8, // Universal caption opacity
        prevText: 'Prev', // Prev directionNav text
        nextText: 'Next' // Next directionNav text
	});
		

});
