// JavaScript Document

function ScrollPage(n) {
/*
	Deplace = new Fx.Style("pages", 'marginLeft', {
		duration: 500, 
		transition: Fx.Transitions.expoInOut  	   	 
	});

	Deplace.start(-((n-1)*600));
*/	





nav=document.getElementById('Nav');
nb=nav.getElementsByTagName('img');

for(i=1;i<=nb.length-1;i++)
	{
	bouton = document.getElementById('page'+i);
	bouton.src = "../images/commun/rondPage/"+i+".jpg";
	}	



$("pages").effect('marginLeft',{
		duration: 500,
		transition: Fx.Transitions.linear
	}).start((1-n)*710);	
	
	
	
 
boutonOn = document.getElementById('page'+n);
boutonOn.src = "../images/commun/rondPage/"+n+"On.jpg";


}


