/* ==== library ==== */
var current="";
var IsEnCoursFilInfo=false;
var table_Com= new Array();
table_Com[0]='1';
table_Com[1]='2';
table_Com[2]='3';
table_Com[3]='4';
table_Com[4]='5';
table_Com[5]='6';
table_Com[6]='7';
table_Com[7]='8';
table_Com[8]='9';
table_Com[9]='10';
table_Com[10]='11';
table_Com[11]='12';
table_Com[12]='13';
table_Com[13]='14';
table_Com[14]='15';
table_Com[15]='16';
table_Com[16]='17';
table_Com[17]='18';
table_Com[18]='19';
table_Com[19]='20';
table_Com[20]='21';
table_Com[21]='unclick';
table_Com[22]='logo';
table_Com[23]='equipe';
table_Com[24]='engagement';
table_Com[25]='job';
table_Com[26]='flash';

var table_contenu= new Array();
table_contenu[0]='divunclick';
table_contenu[1]='frameWhiteContain';

function goPageCom()
{	
	$('apFooter').style.visibility='hidden';
	$('apFooterTwitter').style.visibility='hidden';		
	/*var myEffect = new Fx.Morph($('flash'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 185,'left':250});
	var myEffect = new Fx.Morph($('job'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 95,'left':270});				
	
	var myEffect = new Fx.Morph($('unclick'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 185,'left':140});	
	var myEffect = new Fx.Morph($('engagement'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 60,'left':140});
	var myEffect = new Fx.Morph($('equipe'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 185,'left':30});*/
	var myEffect = new Fx.Morph($('logo'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 60,'left':10});		
	var myEffect = new Fx.Morph($("flash"), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'visibility':'hidden'});
	
	var myEffect = new Fx.Morph($("job"), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'visibility':'hidden'});
	
	var myEffect = new Fx.Morph($("unclick"), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'visibility':'hidden'});
	
	var myEffect = new Fx.Morph($("engagement"), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'visibility':'hidden'});
	
	var myEffect = new Fx.Morph($("equipe"), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'visibility':'hidden'});
	
	var myEffect = new Fx.Morph($("fermer"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'-moz-opacity':0,'opacity': 0,'visibility':'hidden','filter':'alpha(opacity=0)'});
										
	
			
	var myEffect = new Fx.Morph($('frameWhiteContain'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'visibility':'hidden','display':'none'}).chain(function()
	{	
		
		$('pageContainer').style.background="none";
		$('pageContainer').style.overflow="visible";
		var myEffect = new Fx.Morph($('pageContainer'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'left':0,'top':-19,'-moz-opacity':1,'opacity': 1, 'z-index':0,'visibility':'visible'})
		.chain(function()
		{				
		
			$('pageContainer').style.width="100%";
			$('pageContainer').style.height="100%";
			/*var myEffect = new Fx.Morph($('divunclick'), {duration: 50, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'visibility':'visible','display':'block'});*/
	
			
			$('divunclick').style.width="100%";
			$('divunclick').style.height="100%";
			var myEffect = new Fx.Morph($('divunclick'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'-moz-opacity':1,'opacity': 1, 'z-index':-1,'visibility':'visible','display':'block','overflow':'hidden'});
		});
	});

}

function InitTheShowButton()
{
	var mover = new Fx.Move($("1"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("2"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("3"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("4"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("5"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("6"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("7"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("8"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("9"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("10"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("11"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("12"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("13"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("14"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();
	var mover = new Fx.Move($("15"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("16"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("17"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("18"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("19"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("20"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("21"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("unclick"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("equipe"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("engagement"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("job"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("logo"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();	
	var mover = new Fx.Move($("flash"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: '0'});
	mover.start();
	
			
			
}
function playAnimShowBouton(theDuration)
{
	for (i=0; i<27; i++)
	{
		if(table_Com[i]>0)
		{
	
				var myEffect = new Fx.Morph($(table_Com[i]), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'visibility':'visible','display':'block','-moz-opacity':0.6,'opacity': 0.6,'filter':'alpha(opacity=60)'});
		}else{
				var myEffect = new Fx.Morph($(table_Com[i]), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'visibility':'visible','display':'block','-moz-opacity':1,'opacity': 1,'filter':'alpha(opacity=100)'});
		}
	
	} 
	var divFlash = $('flash');
	//divFlash.style.zIndex="-50000";
	divFlash.style.width="150px";
	divFlash.style.height="150px";
		
	var mover = new Fx.Move($("1"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -70, y:-170},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("2"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 390, y:-40},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("3"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -310, y:-120},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("4"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 280, y:10},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("5"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -240, y:-60},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("6"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -360, y:20},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("7"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 410, y:100},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("8"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 440, y:0},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("9"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -320, y:100},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("10"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -400, y:0},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("11"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -150, y:-140},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("12"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 10, y:-140},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("13"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -230, y:100},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("14"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 340, y:-20},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("15"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 360, y:60},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("16"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -310, y:0},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("17"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 170, y:100},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("18"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 270, y:100},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("19"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -140, y:150},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("20"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 240, y:-80},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("21"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -220, y:20},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("unclick"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -120, y:-40},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("equipe"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 30, y:120},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("engagement"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 130, y:-30},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("job"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: -110, y:60},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("logo"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: theDuration});
	mover.start();
	var mover = new Fx.Move($("flash"),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 120, y:-170},duration: theDuration});
	mover.start();	
}
window.addEvent("resize", function()
{
	if(current!="com")
	{
		gestionFooter();
	}
	if(current=="")
	{
		playAnimShowBouton('700');
	}
});

function naviguation_frame(targetItem,srcItem)
{
	$(targetItem).src=srcItem;
}
function goToMosaique(){
	if(current!="com")
	{
		$('pageContainer').style.background="#FFFFFF";
	
	}
	$('pageContainer').style.overflow="hidden";
	$('pageContainer').style.width="500px";
	$('divunclick').style.overflow="visible";
	var myEffect = new Fx.Morph($('divunclick'), {duration: 300, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'-moz-opacity':0,'opacity': 0});
	var myEffect = new Fx.Morph($('pageContainer'), {duration: 1000, transition:  Fx.Transitions.Sine.easeOut});
	myEffect.start({'-moz-opacity':0,'opacity': 0,'filter':'alpha(opacity=0)'});
	var mover = new Fx.Move($("pageContainer"),{relativeTo: $("body"),position: 'center', edge: "topLeft",offset: {x: 0, y:0},duration: '1100'});
	mover.start(); 
	
	var myEffect = new Fx.Morph($('pageContainer'), {duration: 900, transition: Fx.Transitions.linear.easeIn});
	myEffect.start({'height': 100,'width': 100,'z-index':-600000}).chain(function(){
		gestionFooter();
		$("bodyContainer").style.display="none";
		InitTheShowButton();
		playAnimShowBouton('700');
		current="";
	});										
	var myEffect = new Fx.Morph($("fermer"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'-moz-opacity':0,'opacity': 0,'visibility':'hidden','filter':'alpha(opacity=0)'});
	 	var divFlash = $('flash');
		divFlash.style.width="150px";
		divFlash.style.height="150px";
		var mover = new Fx.Move(divFlash, {relativeTo: $('pageContainer'),position: "center", offset: {x: 0, y: 0}});
		mover.start().chain(function(){
				
		});
								
		for (i=0; i<27; i++)
		{
			var mover = new Fx.Move($(table_Com[i]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start();
		} 			
		for (var i = 0, dv; dv = table_contenu[i]; i++)
		{
			var myEffect = new Fx.Morph($(dv), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'visibility':'hidden','display':'none'});
		}
							
					
}
function goPage()
{	
	
	gestionFooter();
	var myEffect = new Fx.Morph($('flash'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 50,'left':980});
	var myEffect = new Fx.Morph($('job'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 450,'left':150});				
	var myEffect = new Fx.Morph($('logo'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 60,'left':15});		
	var myEffect = new Fx.Morph($('unclick'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 340,'left':240});	
	var myEffect = new Fx.Morph($('engagement'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 110,'left':250});
	var myEffect = new Fx.Morph($('equipe'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'top': 235,'left':200});
	if((current!="unclick")&&(current!="job"))
	{
		targetDiv="frameWhiteContain";
		var myEffect = new Fx.Morph($('divunclick'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'visibility':'hidden','display':'none'});
		
	}else{
		
		targetDiv='divunclick';
		var myEffect = new Fx.Morph($('frameWhiteContain'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'visibility':'hidden','display':'none'});
	}

	var flashDiv=$('flash');
	
	flashDiv.style.width="150px";
	flashDiv.style.height="150px";
	
	var myEffect = new Fx.Morph($('pageContainer'), {duration: 'long', transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'height': 520,'width': 520,'left':420,'top':60,'-moz-opacity':1,'opacity': 1, 'z-index':80,'visibility':'visible'})
	.chain(function()
	{			
		if((current!="logo")&&(current!="all_contenu"))
		{
			var mover = new Fx.Move($(current), {
				relativeTo: $('pageContainer'),
			position: "upperLeft", 
			//edge: "center",
			offset: {x: 50, y: 50}
			});
			mover.start(); 
		}				
		
		var myEffect = new Fx.Morph($(targetDiv), {duration: 50, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'visibility':'visible','display':'block'});
		if((current!="unclick")&&(current!="job"))
		{
			$('pageContainer').style.background="#FFFFFF";
			$('pageContainer').style.overflow="hidden";
			
			size=520;
			var myEffect = new Fx.Morph($("unclick"), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'-moz-opacity':1,'opacity': 1,'filter':'alpha(opacity=100)','overflow':'hidden'});
			var myEffect = new Fx.Morph($("job"), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'-moz-opacity':1,'opacity': 1,'filter':'alpha(opacity=100)','overflow':'hidden'});
			myHeight=500;
		}else{
		
			$('pageContainer').style.background="none";
			$('pageContainer').style.overflow="visible";
			size=700;
			var myEffect = new Fx.Morph($(current), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0,'opacity': 0,'filter':'alpha(opacity=0)','overflow':'visible'});
			if(current=="unclick")
			{
					var myEffect = new Fx.Morph($("job"), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'-moz-opacity':1,'opacity': 1,'filter':'alpha(opacity=100)','overflow':'hidden'});
			}else{
				var myEffect = new Fx.Morph($("unclick"), {duration: 'short', transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'-moz-opacity':1,'opacity': 1,'filter':'alpha(opacity=100)','overflow':'hidden'});
			}
			myHeight=500;
		}
		var myEffect = new Fx.Morph($(targetDiv), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'height':myHeight ,'width': size,'left':420,'top':200,'-moz-opacity':1,'opacity': 1, 'z-index':80,'visibility':'visible','display':'block'})
	
	});


}

function cacherCacheDiv()
{
	s=$('cache');
	s.id="cacheDiv";
}
function afficheCacheDiv()
{
	s=$('cacheDiv');
	s.id="cache";
	
	
}
function clWindow()
{

	$('fermerVignette').style.visibility="hidden";
	cacherCacheDiv();
	$('detailCasCliImg').innerHTML="";
	var myEffect = new Fx.Morph( $('detailVignette'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({ '-moz-opacity':0, 'opacity': 0,'visibility':'hidden','display':'none','filter':'alpha(opacity=0)'});
	
}

function empilerImage(cible){
	if(current=="")
	{
		var myEffect = new Fx.Morph($("fermer"), 
										{duration: 0, transition: Fx.Transitions.Sine.easeOut});
										myEffect.start({'-moz-opacity':1,'opacity': 1,'visibility':'visible','filter':'alpha(opacity=100)'});
			var divFlash = $('flash');
		//divFlash.style.zIndex="-50000";
		divFlash.style.width="150px";
		divFlash.style.height="150px";
		//	var mover = new Fx.Move($("pageContainer"),{relativeTo: $("body"),position: 'center', edge: "bottomRight",offset: {x: 0, y:0},duration: '0'});
		//	mover.start();
		for (i=0; i<27; i++)
		{
			
			if(!(table_Com[i]>0))
			{
				var mover = new Fx.Move($(table_Com[i]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
				mover.start();
			}else{
				//alert(table_Com[i]);
				var mover = new Fx.Move($(table_Com[i]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
				mover.start();	
			}
		
		} 
		
	}
	switch(cible)
	{
		case "engagement":
			current="engagement";
			var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					
						
					}
				
				} $("bodyContainer").style.display="block";
				
				naviguation_frame('frameWhite','engagement/engagement.php');
				goPage();	
			});
		break;
		case "unclick":
			current="unclick";
			var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					
						
					}
				
				} $("bodyContainer").style.display="block";
				
				naviguation('divunclick','unclick/index.php');
				goPage();	
			});
		break;
		case "job":
			current="job";
			var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					}
				
				} $("bodyContainer").style.display="block";
				
				naviguation('divunclick','team/index.php');
				goPage();	
			});
		break;
		case "equipe":
			current="equipe";
			var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					
						
					}
				
				} $("bodyContainer").style.display="block";
				
				//naviguation_frame('frameWhite','http://www.publi-info-online.com/aressy/equipe/trombi.php');
				naviguation_frame('frameWhite','equipe/trombi_new.php');
				goPage();	
			});
		break;
		case "comEntreprise":
			if(current!="com")
			{
				var myEffect = new Fx.Morph($('divunclick'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0,'opacity': 0});
				current="com";
			}else{
				var myEffect = new Fx.Morph($('divunclick'), {duration: 700, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0,'opacity': 0});
			}
			var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					}
				} 
				$("bodyContainer").style.display="block";
			 	naviguation("divunclick","com/com_entreprise.html");
				goPageCom();
			});
		break;
		case "comCom":
			if(current!="com")
			{
				var myEffect = new Fx.Morph($('divunclick'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0,'opacity': 0});
				current="com";
			}else{
				var myEffect = new Fx.Morph($('divunclick'), {duration: 700, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0,'opacity': 0});
			}
			var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					}
				
				} $("bodyContainer").style.display="block";
				
			 	naviguation("divunclick","com/com_commerciale.html");
				goPageCom();	
			});
		break;
		case "comReseau":
			if(current!="com")
			{
				var myEffect = new Fx.Morph($('divunclick'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0,'opacity': 0});
				current="com";
			}else{
				var myEffect = new Fx.Morph($('divunclick'), {duration: 700, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0,'opacity': 0});
			}
			var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					}
				
				} 
				$("bodyContainer").style.display="block";
			 	naviguation("divunclick","com/com_reseau.html");
				goPageCom();
			});
		break;
		
		case "comRH":
			if(current!="com")
			{
				var myEffect = new Fx.Morph($('divunclick'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0,'opacity': 0});
				current="com";
			}else{
				var myEffect = new Fx.Morph($('divunclick'), {duration: 700, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0,'opacity': 0});
			}
			var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					}
				} 
				$("bodyContainer").style.display="block";
			 	naviguation("divunclick","com/com_rh.html");
				goPageCom();	
			});
		break;
		case "contact":
			current="logo";
		var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
		
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					}
				
				} 
				$("bodyContainer").style.display="block";
				naviguation_frame('frameWhite',"contacts/index.php");
				goPage();
			});
		break;
		case "mag":
			current="logo";
		var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
		
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					
						
					}
				
				} $("bodyContainer").style.display="block";
				naviguation_frame('frameWhite',"http://www.publi-info-online.com/outils/eMailMaster/web/aressy/magaressy/?v=--072b03@4");
				goPage();
			});
		break;
		case  "emarketAcceder":
		current="logo";
		var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
		
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					
						
					}
				
				} $("bodyContainer").style.display="block";
				naviguation_frame('frameWhite',"e_marketing/acceder.php");
				goPage();
			});
		break;
		case  "emarketPresentation":
		current="logo";
		var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					
						
					}
				
				} $("bodyContainer").style.display="block";
				naviguation_frame('frameWhite',"e_marketing/index.php");
				goPage();
			});
		break;
		case "fermer":
			goToMosaique();
		break;
		case "logo":
		if(current=="")
		{
			current="logo";
			var mover = new Fx.Move($(table_Com[0]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 600});
			mover.start().chain(function()
			{
				for (i=0; i<27; i++)
				{
					
					if((table_Com[i]>0))
					{
						var myEffect = new Fx.Morph($(table_Com[i]), {duration: 300});
						myEffect.start({'-moz-opacity':0,'opacity': 0});
					
						
					}
				
				} $("bodyContainer").style.display="block";
				
				naviguation_frame('frameWhite','aressy/aressy.php');
				goPage();	
			});
		}else{
			goToMosaique();
		}
		break;
	}
	
}

function naviguation(target,page)
	{
	//var demo_path = window.demo_path;
	// --
	//$(target).set('text', 'The request failed.');
	//$(target).set('text', 'Chargement ... ');
	//We can use one Request object many times.
	
		var req = new Request({method: 'get', url: page, evalScripts:true,
		
			onSuccess: function(html) {
			
			$(target).set('html',html);
			if(target=="contenuFil")
			{
				$('dateMajFil').innerHTML=$('dateBuffMajFil').innerHTML;
				$('btMoinsMajFil').innerHTML=$('btMoinsBuffMajFil').innerHTML;
				$('btPlusMajFil').innerHTML=$('btPlusBuffMajFil').innerHTML;
				
				
			}
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
			onFailure: function() {
			$(target).set('text', 'The request failed.');
			
		}
	});
	
	
	req.send();
	
	
}


function gestionBouton(idBt)
	{
	if(idBt>0 )
		{
		afficheCacheDiv();
		var largeur=parseInt($(idBt).width);
		
		$('detailVignetteImg').innerHTML="<img src='"+$(idBt).src.replace('casclient_mini','vignette')+"' id='vignetteEncours'   style='visibility:hidden;' />";
		$('detailCasCliImg').innerHTML="<img src='"+$(idBt).src.replace('casclient_mini','vignette_large')+"' id='vignetteCasCliEnCours' style='visibility:hidden; display:none;' />";
		
		//var mover = new Fx.Move($('detailVignette'), {relativeTo: $("body"),position: 'center',edge: "center",offset: {x: 0, y: 0},duration: 0});
	//	mover.start().chain(function()
		//	{
				
			var myEffect = new Fx.Morph( $('detailVignette'), {duration: 0, transition: 'none'});
			myEffect.start({ '-moz-opacity':0, 'opacity': 0,'visibility':'visible','display':'block','filter':'alpha(opacity=0)'});
		
			var myEffect = new Fx.Morph($('vignetteEncours'), {duration: 1200, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'-moz-opacity':1,'opacity': 1,'z-index':1,'visibility':'visible','filter':'alpha(opacity=100)'})
			.chain(function()
				{
					ff=$('menu');
				
					$('vignetteEncours').style.visibility="visible";
				
				var myEffect = new Fx.Morph(ff, {duration: 0, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'width':$('vignetteEncours').width, 'height':0,'-moz-opacity':1,'opacity': 1,'z-index':1,'visibility':'visible','filter':'alpha(opacity=100)'})
				.chain(function()
					{
						var mover = new Fx.Move($('detailVignette'), {relativeTo: $("body"),position: 'center',edge: "center",offset: {x: 0, y: 0},duration: 0});
				mover.start().chain(function()
				{
						var myEffect = new Fx.Morph( $('detailVignette'), {duration: 'long', transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({ '-moz-opacity':1, 'opacity': 1,'filter':'alpha(opacity=100)'}).chain(function()
				{
						var mover = new Fx.Move(ff, {relativeTo: $("detailVignetteImg"),position: 'bottomLeft',
					edge: "bottomLeft",offset: {x: 0, y: -5},duration: 0});
					mover.start();
					var myEffect = new Fx.Morph(ff, {duration: 600, transition: Fx.Transitions.Sine.easeOut});
					myEffect.start({'height':40});
					});
			});
				});
			});
		//});
		}else{
		//toutEmpiler();
	
			empilerImage(idBt);
		
	}
	
}
function goToMyMosaique()
	{
		$('imageScreen').style.visibility='visible';
		$('imageScreen').style.display='block';
		playAnimShowBouton('1500');
	}
	function gestionFooterTwitter()
	{
		var mover = new Fx.Move($("apFooterTwitter"), {
				relativeTo: $('apFooter'),
			position: "bottomLeft", 
			edge: "bottomLeft",
			offset: {x: 40, y: -50},duration: 0
			});
			mover.start().chain(function(){
				$('apFooter').style.visibility='visible';
					$('apFooterTwitter').style.visibility='visible';
						$('apTop').style.visibility='visible';
			});
					if(IsEnCoursFilInfo==true)
					{
						var mover = new Fx.Move($('tooltip'),{relativeTo: $("btFilInfo"),position: 'center', edge: "bottomLeft",offset: {x:  -40, y:-50},duration: 0});
					mover.start();
					}
	}
	function gestionFooter(){
		$('apFooter').style.visibility='hidden';
		
		$('apFooterTwitter').style.visibility='hidden';
		
		
		
			
	var mover = new Fx.Move($("apFooter"), {
				relativeTo: $('body'),
			position: "bottomLeft", 
			edge: "bottomLeft",
			offset: {x: 0, y: -25},duration: 0
			});
			mover.start().chain(function(){
										 
					
					//alert(parseInt($("apFooter").style.top.replace('px','')));
					if((parseInt($("apFooter").style.top.replace('px',''))<605)&&(current!=""))
					{
						$("apFooter").style.top="655px";
						//$("apFooterTwitter").style.top="635px";
						
					}else{
						if((parseInt($("apFooter").style.top.replace('px',''))<455)&&(current==""))
						{
							$("apFooter").style.top="405px";
							//$("apFooterTwitter").style.top="385px";
						}
					}
					
				window.setTimeout("gestionFooterTwitter();",300);
				
			});
			
	
		
}
function toutEmpiler()
	{
	for (i=0; i<26; i++)
		{
		var mover = new Fx.Move($(table_Com[i]),{relativeTo: $("body"),position: 'center', edge: "center",offset: {x: 0, y:0},duration: 300});
		mover.start();
		
	}
}
	window.addEvent('domready', function() {
	//dans TPL
	InitTheShowButton();
	/*for (i=0; i<27; i++)
		{
		
				var myEffect = new Fx.Morph($(table_Com[i]), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
					myEffect.start({'-moz-opacity':1,'opacity': 1,'filter':'alpha(opacity=100)'});
		
		} */
	var myMenu = new MenuMatic();
	window.setTimeout("goToMyMosaique();",700);
	
	window.setTimeout("gestionFooter();",1600);

	
	$('fermer').addEvent( 'click',function (e)
	{
		//e.stop();
		empilerImage("fermer");
		
	});
	
		$('bt_contact').addEvent( 'click',function (e)
	{
		e.stop();
		empilerImage("contact");
		
	});
		$('bt_mag').addEvent( 'click',function (e)
	{
		e.stop();
		empilerImage("mag");
		
	});
		
		
	$('btFilInfo').addEvent( 'click',function (e)
	{
			IsEnCoursFilInfo=true;
			var mover = new Fx.Move($('tooltip'),{relativeTo: $("btFilInfo"),position: 'center', edge: "bottomLeft",offset: {x: -40, y:-50},duration: 0});
			mover.start().chain(function(){
			var myEffect = new Fx.Morph($('tooltip'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'visibility':'visible','display':'block'}).chain(function(){
			//var myEffect = new Fx.Morph($('tooltip'), {duration: 5000, transition: Fx.Transitions.Sine.easeOut});
			//myEffect.start({'width':200,'height':250})	;			 
																												 });
										 });
			
			//http://www.e-mailmaster.com/aressy/magaressy/?v=cfcd208495d5-cfcd20-072b03@4
		
			
				
		
	});
	$('btFilInfoClose').addEvent( 'click',function (e)
	{
			IsEnCoursFilInfo=false;
			var myEffect = new Fx.Morph($('tooltip'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'visibility':'hidden','display':'none'});
		
	});
	
	$('emarketAcceder').addEvent( 'click',function (e)
	{
		e.stop();
		empilerImage("emarketAcceder");
		
	});
	$('emarketPresentation').addEvent( 'click',function (e)
	{
		e.stop();
		empilerImage("emarketPresentation");
		
	});
	
	$('BTcomEntreprise').addEvent( 'click',function (e)
	{
		e.stop();
		empilerImage("comEntreprise");
		
	});
	$('BTcomCom').addEvent( 'click',function (e)
	{
		e.stop();
			empilerImage("comCom");
		
	});
	$('BTcomRH').addEvent( 'click',function (e)
	{
		e.stop();
	empilerImage("comRH");
		
	});
	$('BTcomReseau').addEvent( 'click',function (e)
	{
		e.stop();
	empilerImage("comReseau");
		
	});
	

	$('BTcomEntreprise').addEvent( 'mouseover',function (e)
	{
		var myEffect = new Fx.Morph($("DivBTcomEntreprise"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'background-image':'url(images/menu_top/fond_over_entrerprise.jpg)'});
		
		
	});
	$('BTcomEntreprise').addEvent( 'mouseout',function (e)
	{
		var myEffect = new Fx.Morph($("DivBTcomEntreprise"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'background-image':'url(images/spacer.gif)'});
		
		
	});
	$('BTcomCom').addEvent( 'mouseover',function (e)
	{
		var myEffect = new Fx.Morph($("DivBTcomCom"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'background-image':'url(images/menu_top/fond_over.jpg)'});
		
		
	});
	$('BTcomCom').addEvent( 'mouseout',function (e)
	{
		var myEffect = new Fx.Morph($("DivBTcomCom"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'background-image':'url(images/spacer.gif)'});
		
		
	});
	$('BTcomRH').addEvent( 'mouseover',function (e)
	{
		var myEffect = new Fx.Morph($("DivBTcomRH"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'background-image':'url(images/menu_top/fond_over_rh.jpg)'});
		
	});
	$('BTcomRH').addEvent( 'mouseout',function (e)
	{
		var myEffect = new Fx.Morph($("DivBTcomRH"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'background-image':'url(images/spacer.gif)'});
		
	});
	$('BTcomReseau').addEvent( 'mouseover',function (e)
	{
		var myEffect = new Fx.Morph($("DivBTcomReseau"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'background-image':'url(images/menu_top/fond_over_reseau.jpg)'});
		
	});
	$('BTcomReseau').addEvent( 'mouseout',function (e)
	{
		var myEffect = new Fx.Morph($("DivBTcomReseau"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'background-image':'url(images/spacer.gif)'});
		
	});
	//fin dans TPL
/*	var dock = new MacStyleDock(
	document.getElementById('dock'),
	[
		{
		name      : 'images/menu_top/top_com_entreprise',
		extension : '.png',
		sizes     : [160, 180],
			onclick   : function(){
			//current="comEntreprise";
			// naviguation("divunclick","com/index.php");
			empilerImage("comEntreprise");
		}
	},
		{
		name      : 'images/menu_top/top_com_com',
		extension : '.png',
		sizes     : [160, 180],
			onclick   : function(){
			//current="comCom";
			// naviguation("divunclick","com/index.php");
			empilerImage("comCom");
		}
	}
	,
		{
		name      : 'images/menu_top/top_com_reseau',
		extension : '.png',
		sizes     : [160, 180],
			onclick   : function(){
		//	current="comReseau";
			// naviguation("divunclick","com/index.php");
			empilerImage("comReseau");
		}
	}
	,
		{
		name      : 'images/menu_top/top_com_rh',
		extension : '.png',
		sizes     : [160, 180],
			onclick   : function(){
		//	current="comRH";
			// naviguation("divunclick","com/index.php");
			empilerImage("comRH");
		}
	}
	],
	160,
	180,
	1);*/

	var testNavOk=naviguation("contenuFil","flux_twitter.php?idFil=1");
		
	  window.setTimeout("flotteBtLogo();",3000);
	 // window.setTimeout("goFilInfo();",3000);
	for (i=0; i<26; i++)
		{
		
	
		///a ressortirt
		$(table_Com[i]).addEvent( 'click',function (e)
		{
			e.stop();
			gestionBouton(this.id);
		});
				//fin a ressosrti
		if(table_Com[i]>0)
		{				
			$(table_Com[i]).addEvent( 'mouseover',function (e)
				{
				var myEffect = new Fx.Morph( $(this.id), {duration: 300, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':1, 'opacity': 1,'filter':'alpha(opacity=100)'});
			});
			
			$(table_Com[i]).addEvent( 'mouseout',function (e)
				{
				var myEffect = new Fx.Morph( $(this.id), {duration: 300, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':0.6, 'opacity': 0.6,'filter':'alpha(opacity=60)'});
			});
		}
	}
	
	var savoirPlus = $('btSavoirplus');
	savoirPlus.onclick = function ()
		{
			$('detailVignetteImg').innerHTML=" ";
			ff=$('menu');
			ff.style.visibility='hidden';
		
			
			var myEffect = new Fx.Morph( $('vignetteCasCliEnCours'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
			myEffect.start({'display':'block','visibility':'visible','-moz-opacity':0, 'opacity': 0,'filter':'alpha(opacity=0)'}).chain(function(){
			var mover = new Fx.Move($('detailVignette'), {relativeTo: $("body"),position: 'center',edge: "center",offset: {x: 0, y: 0},duration: 0});
				mover.start();
				var myEffect = new Fx.Morph( $('vignetteCasCliEnCours'), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
					myEffect.start({'display':'block','visibility':'visible','-moz-opacity':1, 'opacity': 1,'filter':'alpha(opacity=100)'}).chain(function(){
					
					var mover = new Fx.Move($("fermerVignette"),
					{relativeTo: $("vignetteCasCliEnCours"),position: 'topRight', edge: "topRight",offset: {x: -10, y:10},duration: '0'});
						mover.start().chain(function(){
						var myEffect = new Fx.Morph($("fermerVignette"), {duration: 0, transition: Fx.Transitions.Sine.easeOut});
						myEffect.start({'visibility':'visible','display':'block','-moz-opacity':1, 'opacity': 1,'filter':'alpha(opacity=100)'});
			});});
		});
		
	}
	
	$("fermerVignette").onclick=function()
		{
		clWindow();
	}
	var closeWin = $('btClose');
	closeWin.onclick = function ()
		{
		
		
		//$('menuContainer').className="menuContainerNoIndex";
		
		/* ==== zoom out ==== */
		
		cacherCacheDiv();
		ff=$('menu');
		ff.style.visibility='hidden';
		$('detailVignetteImg').innerHTML="";
		
		$('detailVignette').style.visibility='hidden';
		//on fait disparaitre la fenetre
		/*var myEffect = new Fx.Morph($(tv.grid.current), {duration: 300, transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({'-moz-opacity':0.6,'opacity': 0.6});
		for (var i = 0, o; o = tv.O[i]; i++)
			{
			//on remet l'alpha uniquement pour les boutons de nav
			if((!(o.id>0)))
				{
				var myEffect = new Fx.Morph(o,
				{duration: 0, transition: Fx.Transitions.Sine.easeOut});
				myEffect.start({'-moz-opacity':1, 'opacity': 1,'filter':'alpha(opacity=100)'});
			}
		}	*/
	}
	
	
	
});


	function goFilInfo(){
	
	//alert("step1");
		var myFx = new Fx.Scroll('apFooterFil', {
		transition: Fx.Transitions.linear,
		duration:0,
			offset: {
			'x': 0,
			'y': 0
		}
	});
	myFx.toLeft();
		var myFx = new Fx.Scroll('apFooterFil', {
		transition: Fx.Transitions.linear,
		duration:800000,
			offset: {
			'x': 0,
			'y': 0
		}
	});
	
	
	
		myFx.toRight().chain(function(){
		//  alert("step2");
			var myFx2 = new Fx.Scroll('apFooterFil', {
			duration:0,
				offset: {
				'x': 0,
				'y': 0
			}
		});
			myFx2.toLeft().chain(function(){
			//	alert("step3");
			window.setTimeout("goFilInfo();",3000);
		});
	});
}
function flotteBtLogo(){
	
	var myEffect = new Fx.Morph($('logo'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 7,'margin-left':8}).chain(function(){
				var myEffect = new Fx.Morph($('logo'), {duration: 900, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 0,'margin-left':0}).chain(function(){
												 
													  });				  
						});
	var myEffect = new Fx.Morph($('unclick'), {duration: 1200, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 5,'margin-left':4}).chain(function(){
				var myEffect = new Fx.Morph($('unclick'), {duration: 1200, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 0,'margin-left':0}).chain(function(){
												//flotteBtunclick();	  
													  });				  
						});
	
	var myEffect = new Fx.Morph($('equipe'), {duration: 'long', transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 6,'margin-left':-7}).chain(function(){
				var myEffect = new Fx.Morph($('equipe'), {duration: 'long', transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 0,'margin-left':0}).chain(function(){
											//	flotteBtequipe();	  
													  });				  
						});
	
	var myEffect = new Fx.Morph($('engagement'), {duration: 1100, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 4,'margin-left':6}).chain(function(){
				var myEffect = new Fx.Morph($('engagement'), {duration: 1100, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 0,'margin-left':0}).chain(function(){
											//	flotteBtengagement();	  
													  });				  
						});
	/*var myEffect = new Fx.Morph($('flash'), {duration: 800, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 8}).chain(function(){
				var myEffect = new Fx.Morph($('flash'), {duration: 800, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 0}).chain(function(){
											//	flotteBtflash();	  
													  });				  
						});*/
	var myEffect = new Fx.Morph($('job'), {duration: 1200, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 3,'margin-left':-3}).chain(function(){
				var myEffect = new Fx.Morph($('job'), {duration: 1200, transition: Fx.Transitions.Sine.easeOut});
	myEffect.start({'margin-top': 0,'margin-left':0}).chain(function(){
									//			flotteBtjob();	 
									window.setTimeout("flotteBtLogo();",3000);
													  });				  
						});
	
	
}