var message="animation - sonorisation - spectacle";
var compteur=1;	
var tabPhoto= new Array();
function body_load()
{
	body_load_animation();
	setTimeout("body_load_bannier()",100);
}
function body_load_animation()
{
	var texte=message.substring(0,compteur);
	var num=texte.length;
	compteur++;
	if(texte.substring(num -1, 1) == ' ')
	{
		
		texte=message.substring(0,compteur);
	}
	
	document.getElementById('body_animation').innerHTML = texte;
	setTimeout('body_load_animation()',100);
	
	if (compteur==message.length)
	{
		clearTimeout;
	}

}
function body_load_bannier()
{
	if($('defilement1'))
	{
		var numPhoto=Math.floor(Math.random()*5)+1;
		var numPosition=Math.floor(Math.random()*5)+1;
		
		
		var chemin=document.getElementById('defilement'+numPosition).src;
		
		document.getElementById('defilement'+numPosition).src=chemin.substring(0, chemin.lastIndexOf("/"))+"/"+numPhoto+'.jpg';
		document.getElementById('defilement'+numPosition).setAttribute("width", "170");
		setTimeout("body_load_bannier()",3000);
	}
}
function IdConnexion_onkeyup_affichepasse(TexteId)
{
	if(TexteId.substring(0,2) != 'gd')
	{
		$('TrPasseConnexion').style.display='';
		$('TdPasseConnexion').style.display='';
	}
	else
	{
		$('TrPasseConnexion').style.display='none';
		$('TdPasseConnexion').style.display='none';
	}
}


