$(function() {
	
	if ($('#firstSlider').length > 0) {
	
		$('#firstSlider').anythingSlider({
			startStopped: false, // If autoPlay is on, this can force it to start stopped
			width: 980, // Override the default CSS width
			height: 350,
			resizeContents: true,
			easing: 'swing',
			animationTime: 500,
			autoPlay: true,
			autoPlayLocked: true, // If true, user changing slides will not stop the slideshow
			resumeDelay: 20, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
			buildArrows: true,
			toggleControls: false,
		
			navigationFormatter : function(index, panel) { // Format navigation labels with text
				return ['Partenaire de votre vie de famille', 'De la photographie au contenu média'][index - 1];
			}
		});
	
		$('#topBar2').hover(function() {
			$(this).find('.arrow').css('z-index', '9999').fadeIn(500);
		}, function() {
			$(this).find('.arrow').fadeOut(500);
		});
	
		$('#marque-carousel').carousel({
			dispItems: 3,
			prevBtn: '<a href="javascript:return false;" class="navLeft"></a>',
			nextBtn: '<a href="javascript:return false;" class="navRight"></a>'
		});
	
	}
	
});
	
$(document).ready(function() {
	$('a#example2').fancybox({
		'overlayShow': true,
		'transitionIn': 'fade',
		'transitionOut': 'fade',
		'overlayColor': '#242424'
	});
});

$(function() {

	$('.tab_container ul li a').click(function() {
	
		var tab = $(this).attr('href').substr(1);
	
		$('.tab_content').hide();
		$('#' + tab).fadeIn();
		
		$('.tab_container ul li').removeClass('active');
		$(this).parent().addClass('active');
		
		return false;
		
	});
	
	$('input, textarea, select, button').uniform();

});


