/****
 *** Vidéo intro
 ***/
/*swfobject.embedSWF("tpl/swf/video_home.swf", "video", "458", "208", "9.0.115", "tpl/swf/expressInstall.swf");*/



/****
 *** Carrousel logos
 ***/
var flashvars = {};
  flashvars.dataPath = "tpl/swf/carousel_asset/data.xml";
var params = {
	wmode : "transparent"
};
var attributes = {};
swfobject.embedSWF("tpl/swf/carrousel.swf", "formations", "315", "150", "9.0.115", "tpl/swf/expressInstall.swf", flashvars, params, attributes);



function openInfobulleFromFlash(idInfoB){
	$("#top .wrapper .infoBulle").fadeOut(100, function(){
		$("#"+idInfoB).fadeIn(500, function () {
		  $(this).removeAttr("style").stop(true);
		});
	});
}





$(window).load(function(){
	 $("#top .wrapper .infoBulle").hide().each(function(){
			$(this).bind("mouseleave", function(){
				 $(this).fadeOut(250);
			});
	 });
});

$(document).ready(function() {

    $('#zen').cycle({
		fx: 'turnDown'
	});
	
	
	
	jQuery('#push').jcarousel({
							  
		vertical: true,
		scroll: 1,
		animation: 1500,
		wrap: 'both',
		auto: 5
  });
  
	jQuery('#shortcuts').jcarousel({
	    vertical: true,
	    scroll: 4,
		animation: 1000,
		wrap: 'both'
  });

	
	$('#news > ul').bxSlider({	
		pager:false,
		controls : true,
		speed: 1000
	});
	
	$('#video ul').bxSlider({	
	pager:false,
	displaySlideQty: 2, 
	controls : true,
	speed: 1000
});
	
	$("a[rel='colorbox']").colorbox();

	
});



