$(document).ready(function(){
	
	if(document.getElementById('formulaire')){
		$('.frm-text input').example(function() {
		  return $(this).attr('title');
		},{className: 'dfv'});
		$('.frm-text textarea').example('Type your message here',{className: 'dfv'});
	}
	
	$(".pathways-fiche-gallery a").fancybox({
		'zoomSpeedIn': 300,
		'zoomSpeedOut': 300
	});
	
	$('a.fancybox').fancybox();
	
	$("a.commingsoon").fancybox({
		'padding': 0
	});
	
	if(document.getElementById('video')){
		
		
		$('.video-link').css('cursor','pointer').hover(function(){
				$(this).addClass('video-link-hover');
			},	function(){
				$(this).removeClass('video-link-hover');
			}).click(function () {
				$('#video li').hide();
				$('.video-link').removeClass('video-link-open');
				$(this).addClass('video-link-open');
				$($(this).find('a:last').attr('href')).show();
				return false;
			}
		);
		
		$('#video li').hide();
		$('#video').find('li:first').show();
		$('#link-video').find('.video-link:first').addClass('video-link-open');
	}
});

