var IE6 = false;
var strChUserAgent = navigator.userAgent;
var intSplitStart = strChUserAgent.indexOf("(",0);
var intSplitEnd = strChUserAgent.indexOf(")",0);
var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
function AfficheTexte(hauteur,location,location1,location2,location3,location4) {
	
	if(strChMid.indexOf("MSIE 6") != -1)
	{
	document.getElementById("contenu").style.height=hauteur; // Pour afficher la bonne hauteur si le texte d&#65533;passe le footer (postion absolute du div contenu)
	
	document.getElementById(location).style.display = 'block';
	
	document.getElementById(location1).style.display = 'none';
	document.getElementById(location2).style.display = 'none';
	document.getElementById(location3).style.display = 'none';
	document.getElementById(location4).style.display = 'none';
		
		if (document.getElementById('defaut').style.display = 'block')
		{
		document.getElementById('defaut').style.display = 'none';
		}
	}
    
	else {
	document.getElementById("contenu").style.height=hauteur; // Pour afficher la bonne hauteur si le texte d&#65533;passe le footer (postion absolute du div contenu)
	
	// Fonction d'affichage des textes
	$(document).ready(function()
	{
	$("#"+location+":hidden").fadeIn(200);
	
		if (document.getElementById("defaut").style.display == 'block') // Suppression du texte par d&#65533;faut si affich&#65533;
			{
			$("#defaut").fadeOut(200);
			}
	});
	
	// Fonction permettant d'effacer le bloc pr&#65533;c&#65533;dent
	$(document).ready(function()
	{
	$("#"+location1).fadeOut(50);
	$("#"+location2).fadeOut(50);
	$("#"+location3).fadeOut(50);
	$("#"+location4).fadeOut(50);
	});
	}
}
