

$(document).ready( function () {
	
	if ($('#images_defil').attr('id') != undefined)
	$('#images_defil').animatedinnerfade({
		speed: 1000,
		timeout: 5000,
		type: 'sequence',
		containerheight: '244px',
		containerwidth: '197px',
		animationSpeed: 3000,
		animationtype: 'fade',
		bgFrame: 'none',
		controlBox: 'none',
		displayTitle: 'none'
	});
	
	
	if ($('#containerAnim').attr('id') != undefined) {
		var so = new SWFObject("accueil.swf", "animation", "800", "600", "9", "#333333");
		so.write("containerAnim");
	}
	
	if ($('#containLogo	').attr('id') != undefined) {
		var so = new SWFObject("c2f_magnetisme.swf", "flash_logo", "450", "200", "9", "#ffffff");
		so.addParam("wmode", "transparent");
		so.write("containLogo");
	}
	
	
	if ($('#container_bulles_titre	').attr('id') != undefined) {
		var so = new SWFObject("bulles_menu.swf", "flash_bulles_titre", "52", "30", "9", "#ffffff");
		so.addParam("wmode", "transparent");
		so.write("container_bulles_titre");
	}
				
});


runOnLoad(function(){
	
	//$('#backgroundBulles').ifixpng();
	$('.sousmenu').ifixpng();
	$('.menu').ifixpng();
	$('.titreParagraphe').ifixpng();
	$('#containCertif img').ifixpng();
	
	
	$('.menu').css('opacity',0.8);
	//$('#backgroundBulles').css('opacity',0.2);
	
	
	$('.menu').hover(function(event){
			$(this).css("opacity","1");
		},function(event){
			$(this).css("opacity","0.8");
	});
});