if (navigator.userAgent.indexOf('MSIE') != -1) {

document.write('<div id="tickertape"><div id="subtickertape" class="subtickertapefont">Initializing...</div></div>');

var speed = 10000;
var news = new Array();

news[0] = '<a href="http://www.informatux.com/xpetitions/modules/smartsection/category.php?categoryid=3">T&eacute;l&eacute;charger XPETITIONS</a>';
news[1] = '<a href="http://www.informatux.com/xpetitions/modules/smartsection">Projet XPETITIONS</a>';
news[2] = '<a href="http://www.informatux.com/xpetitions/modules/newbb">Forum XPETITIONS</a>';
news[3] = '<a href="http://www.informatux.com/xpetitions/modules/smartsection/category.php?categoryid=6">FAQ XPETITIONS</a>';
news[4] = '<a href="http://www.informatux.com/xpetitions/modules/liaise">Participer au d&eacute;veloppement de XPETITIONS</a>';

var i = 0;

if (document.all)
	tickerobject=document.all.subtickertape.style;
else if(document.getElementById)
	tickerobject=document.getElementById("subtickertape").style;
else
	tickerobject=document.tickertape.document;

function start()
	{
	if (document.all||document.layers||document.getElementById)
		{
		regenerate2();
		update();
		}
	}
function regenerate()
	{
	window.location.reload();
	}

function regenerate2()
	{
	if (document.layers)
		setTimeout("window.onresize=regenerate",450);
	}

function update()
	{
//  	BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10);
	if (document.layers)
		{
		document.tickertape.document.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>');
		document.tickertape.document.subtickertape.document.close();
		}
	else if(document.getElementById)
		{
		document.getElementById("subtickertape").innerHTML=news[i];
		}
	else
		document.all.subtickertape.innerHTML=news[i];
	if (i<news.length-1)
		i++;
	else
		i=0;
	setTimeout("update()",speed);
	}
function BgFade(red1, grn1, blu1, red2, grn2, blu2, steps) 
	{
	sred = red1; sgrn = grn1; sblu = blu1;
	ered = red2; egrn = grn2; eblu = blu2;
 	inc = steps;
 	step = 0;
 	RunFader();
 	}

function RunFader()
	{
		var epct = step/inc;
 	var spct = 1 - epct;
 	if (document.layers)
 		tickerobject.bgColor = Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct);
 	else
 		tickerobject.backgroundColor = Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct);
 	if ( step < inc )
 		setTimeout('RunFader()',50);
 	step++;
 	}
}
