function displayAllPrieurs() {
	dom.style.display='none';
	domall.style.display='block';
	domall.innerHTML = '';
	var suff; var newP; var newT;
	for (var k=0; k < p.length; k++) {
		suff = k % 2 || 2;
		newP = document.createElement('p');
		//newP.setAttribute('class','headlinelist');
		newP.setAttribute('class','headlinelist' + suff); // for firefox
		newP.setAttribute("className","headlinelist" + suff); // for ie
		newT = document.createTextNode(p[k] + msgOf + v[k]);
		newP.appendChild(newT);
		domall.appendChild(newP);
	}
}

function displayPrieurs() {
	dom.style.display='block';
	domall.style.display='none';
	if (i == p.length) {i=0;} // pour fermer la boucle
	if (v[i] == '') {
		headline = p[i];
	}
	else if (v[i] !== undefined) {
		headline = p[i] + msgOf + v[i];
	} else {
		headline = ' ';
	}
	i++;
	setTimeout("displayPrieurs();", 3000);
	// test if it's ie, then do not fade in that case
	if (p.length == 1 || (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent))) {
		dom.innerHTML = headline;
		return;
	} else {
		fade();
	}
}

function fade() {
	level = 1;
	function step() {
		if (level == 25) {
			dom.style.color = '#ffffff';
			dom.innerHTML = headline;
			appear();
		}
		var h = level.toString(16);
		dom.style.color = '#' +h +'0' + h + '0' + h + '0';
		//dom.style.color = '#FFFF' + h +h;
		if (level < 25) {
			level += 1;
			setTimeout(step, 10);
		}
	}
	setTimeout(step, 10);
}

function appear() {
	level = 25;
	function step() {
		var h = level.toString(16);
		dom.style.color = '#' +h +'0' + h + '0' + h + '0';
		//dom.style.color = '#FFFF' + h +h;
		if (level >= 1) {
			level -= 1;
			setTimeout(step, 10);
		}
	}
	setTimeout(step, 10);
}
/*
function showPrieurs(obj){
	if (domall.innerHTML != "")
		obj.href = '#';
}
function showAllPrieurs(){
	return false;
}
*/

