i=0;
vima="imageim1";
imgg=5;

if (screen.width < 1280)
	{
	lex="458px";
	tabpt=["113px","173px","233px","293px","353px","413px"];
	}
	
else if (screen.width >= 1280)
	{
	lex="584px";
	tabpt=["350px","410px","470px","530px","590px","650px"];
	}

tab=[0,0,0,0,0,0,0,0,0,0];
tabimage=[0,0,0,0,0,0];

function change()
	{
	t=Math.round(Math.random()*1000);

	nb=49;
	a=1+Math.round(Math.random()*nb);			
	
	tabpta=Math.round(Math.random()*imgg);

	ima="imageim"+a;

	if(t>333 || (t-1)%2==1)
		{
		document.getElementById(ima).style.left=lex;
		document.getElementById(ima).style.top=tabpt[tabpta];
		document.getElementById(ima).style.display="block";
		vima=tab[tabpta];
		tab[tabpta]=ima;
		tabimage[i]=a;
		if(vima!=0){document.getElementById(vima).style.display="none";}
		}
		
	i++;
	if(i==6){i=0;}
	}
	
function changeimagein(arg)
	{
	if(arg=='pro'){document.getElementById("proph").src="images/prob.jpg";}
	if(arg=='inter'){document.getElementById("interph").src="images/interb.jpg";}
	}	
	
function changeimageout(arg)
	{
	if(arg=='pro'){document.getElementById("proph").src="images/pro.jpg";}
	if(arg=='inter'){document.getElementById("interph").src="images/inter.jpg";}
	}	

function voir(arg)
	{
	document.getElementById(arg).style.display="block";

	}
	
function cache(arg2)
	{
	document.getElementById(arg2).style.display="none";
	}
	
function lancement()
	{
	if (screen.width < 1280)
		{
		setActiveStyleSheet("1024");
		return false;
		}
	
	else if (screen.width >=1280)
		{
		setActiveStyleSheet("1280");
		return false;
		}
	}
	
function menu(a)
	{
	document.getElementById("me"+a).style.color="#a61617";
	}
	
function sousmenu(sm)
	{
	if(sm>0 && sm<5)
		{
		document.getElementById("sm"+sm).style.color="#a61617";
		}
	}
	
function voirsousmenu()
	{
	document.getElementById("sousmenu").style.display="inline";
	}
	
anc=1;
function overliste(a)
	{
	if(a==3 || a==5 || a==8)
		{
		if(a==anc){document.getElementById("souliste"+a).style.display="none";anc=1;}
		else
			{
			if(anc==3 || anc==5 || anc==8){document.getElementById("souliste"+anc).style.display="none";}
			document.getElementById("souliste"+a).style.display="block";
			anc=a;
			}
		}
	}
