imgPath = new Array;
SiClickGoTo = new Array;
if (document.images)
	{/*affectation des valeurs aux tableaux*/
	i0 = new Image; 
	i0.src = 'images/pub/mag981.jpg';
	SiClickGoTo[0] = "";
	imgPath[0] = i0.src;
	i1 = new Image;
	i1.src = 'images/pub/mag982.jpg';
	SiClickGoTo[1] = "";
	imgPath[1] = i1.src;
	i2 = new Image;
	i2.src = 'images/pub/mag983.jpg';
	SiClickGoTo[2] = "";
	imgPath[2] = i2.src;
	i3 = new Image;
	i3.src = 'images/pub/mag984.jpg';
	SiClickGoTo[3] = "";
	imgPath[3] = i3.src;
	i4 = new Image; 
	i4.src = 'images/pub/mag985.jpg';
	SiClickGoTo[4] = "";
	imgPath[4] = i4.src;
	}
a = 0;
function ejs_img_fx(img)
	{
	if(img && img.filters && img.filters[0])
		{
		img.filters[0].apply();
		img.filters[0].play();
		}
	}

function DebutAnim()
	{
	if (document.images)
		{

		document.write('<A HREF="#" onclick="ImgDest();return(false)"><IMG SRC="images/pub/mag981.jpg" BORDER=0 ALT=Nos magazines NAME=defil style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=10,Duration=1)"></A>');
		defilimg()
		}
	else
		{
		document.write('<A HREF="#"><IMG SRC="images/pub/mag981.jpg" BORDER=0></A>')
		}
	}
function ImgDest()
	{
	window.open(SiClickGoTo[a-1],'mainFrame'); /*destination*/
	}
function defilimg()
	{
	if (a == 5) /*nombre d'images*/
		{
		a = 0;
		}
	if (document.images)
		{
		ejs_img_fx(document.defil)
		document.defil.src = imgPath[a];
		tempo3 = setTimeout("defilimg()",5000);
		a++;
		}
	}