$(document).ready(function(){
	  $('#slider').nivoSlider({
        effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
        slices:1,
        animSpeed:500, //Slide transition speed
        pauseTime:6000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:false, //Next & Prev
        directionNavHide:true, //Only show on hover
        controlNav:true, //1,2,3...
        controlNavThumbs:false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:true, //Use left & right arrows
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:0.8, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){
			if($.browser.msie){	$(".nivo-caption").css('filter', 'none');	}
			},
        slideshowEnd: function(){}, //Triggers after all slides have been shown
        lastSlide: function(){}, //Triggers when last slide is shown
        afterLoad: function(){} //Triggers when slider has loaded
    });
	
	
	$('.bloc_actu').mouseover(function(){  $(this).css('background','#c9c9c9');});
	$('.bloc_actu').mouseout(function(){  $(this).css('background','url('+fw_uri+'/templates/defaut/front/images/bg_blocactu.png) repeat-x');});
	
	
	$('.bloc_actu_last').mouseover(function(){  $(this).css('background','#c9c9c9');});
	$('.bloc_actu_last').mouseout(function(){  $(this).css('background','url('+fw_uri+'/templates/defaut/front/images/bg_blocactu.png) repeat-x');});
	
	
	/*$('a.pub').live('click', function() {
		$(this).fancybox({
		'hideOnContentClick':false,
		'width' : 670,
		'height' : 330,
		'overlayOpacity' : 0.9,
		'overlayColor' : '#000',
		'margin' : 0,
		'padding' : 0,
		'scrolling' : 'no',
		'autoScale' : false,
		'centerOnScroll' : false
		});
		
		return false;
	});
	 
	
	$('a.pub').click();
	$('body').append('<a class="pub iframe" href="'+fw_uri+'/index.php?p=index&a=video"></a>');

	$('a.pub').slideDown('fast', function() {
	  $('a.pub').click();
	});*/
	
	
	
});



