// JavaScript Document

//Defilement d'images + animation
imgPath = new Array;
if (document.images)
	{
	i0 = new Image;
	i0.src = 'design/1/images_defile/01.jpg';
	imgPath[0] = i0.src;
	i1 = new Image;
	i1.src = 'design/1/images_defile/02.jpg';
	imgPath[1] = i1.src;
	i2 = new Image;
	i2.src = 'design/1/images_defile/03.jpg';
	imgPath[2] = i2.src;
	}
a = 0;
function ejs_img_fx(img)
	{
	if(img && img.filters && img.filters[0])
		{
		img.filters[0].apply();
		img.filters[0].play();
		}
	}

function StartAnim()
	{
	if (document.images)
		{
		document.write('<IMG SRC="images_defile/01.jpg" BORDER=0 ALT="..." NAME=defil style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=100,Duration=1)">');
		defilimg()
		}
	else
		{
		document.write('<IMG SRC="images_defile/01.jpg" BORDER=0>')
		}
	}
function defilimg()
	{
	if (a == 3)
		{
		a = 0;
		}
	if (document.images)
		{
		ejs_img_fx(document.defil)
		document.defil.src = imgPath[a];
		tempo3 = setTimeout("defilimg()",10000);
		a++;
		}
	}