<!-- Script diaporama Partie 1
// Copyright Frank Milard - http://www.asaisir.com/a-la-page
// Vous pouvez utiliser ou modifier ce script librement
// sous reserve de laisser le copyright visible

wipeStop  = 3;
wipeInc  = 2;

wipeImg = new Array ("diapo/home.jpg","diapo/vue1.jpg","diapo/steloi.jpg","diapo/feuart.jpg");

// -->

<!-- Script diaporama Partie 2

NS4 = IE4 = VERSION4 = 0;

function wipeInit () {
        if (VERSION4) {
		if (NS4) {
			wipeImgWidth  = document.images["wipeImg1"].width;
			wipeImgHeight = document.images["wipeImg1"].height;
		}
		if (IE4) {
			wipeImgWidth  = document.all.wipeImg1.width;
			wipeImgHeight = document.all.wipeImg1.height;
		}

		wipeSens = 0;
		wipeCount = 0;
		wipeChangeImage ();
	}
}
// -->

<!-- Script diaporama Partie 3

NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
VERSION4 = (NS4|IE4) ? 1 : 0;

//   Recharger la page en cas de redimensionnement (NS4 uniquement)
if(NS4){oW=innerWidth;oH=innerHeight;onresize=function(){if(innerWidth!=oW||innerHeight!=oH)location.reload()}}

function wipeGetOffset(obj, coord) {
	var val = obj["offset"+coord] ;
	while ((obj = obj.offsetParent )!=null) {
		val += obj["offset"+coord];
		if (obj.border && obj.border != 0) val++;
	}
	return val;
}

function wipeSetOffset () {
	if (NS4) {
		wipeObj = document.wipeN1;
		wipeObj.top = document.images["wipeImg1"].y;
		wipeObj.left = document.images["wipeImg1"].x;
		wipeObj = document.wipeN1.document.wipeN2;
	}
	if (IE4) {
		wipeObj = document.all.wipeN1;
		wipeObj.style.top = wipeGetOffset(document.all.wipeImg1,"Top");
		wipeObj.style.left = wipeGetOffset(document.all.wipeImg1,"Left");
		wipeObj = document.all.wipeN2;
	}
}

function wipeChangeImage () {
	if (++wipeCount >= wipeImg.length) wipeCount=0;
	wipeSens = wipeSens ? 0 : 1 ;

	wipeSetOffset ();

	wipePosition = 0;
	wipeSetClipReg ();
	wipeWrite ('<IMG SRC="'+wipeImg[wipeCount]+'" NAME="wipeImg2" BORDER="0" ALIGN="Top" onLoad="wipeInitwipe ()" onError="setTimeout(\'wipeChangeImage()\',500);">');
}

function wipeWrite (str) {
	if (NS4) {
		with (wipeObj.document) {
			write(str);
			close();
		}
	}
	if (IE4) wipeObj.innerHTML = str;
}

function wipeInitwipe () {
	setTimeout ("wipeWipe()",1000*wipeStop);
}

function wipeWipe () {
	wipePosition += wipeInc;
	if (wipePosition > ((wipeSens) ? wipeImgHeight/2 : wipeImgWidth /2) ) {
		document.images['wipeImg1'].src = wipeImg[wipeCount];
		wipeChangeImage ();
	}
	else {
		wipeSetClipReg ();
		setTimeout ("wipeWipe()",50);
	}
}

function wipeSetClipReg () {
	if (NS4) {
		var obj = document.wipeN1;
		if (wipeSens) {
			obj.clip.top = (wipeImgHeight /2 - wipePosition);
			obj.clip.left = 0;
			obj.clip.bottom = (wipeImgHeight /2 + wipePosition);
			obj.clip.right = wipeImgWidth;
		}
		else {
			obj.clip.top = 0;
			obj.clip.left = (wipeImgWidth /2 - wipePosition);
			obj.clip.bottom = wipeImgHeight;
			obj.clip.right = (wipeImgWidth /2 + wipePosition);
		}
	}
	if (IE4) {
		var obj = document.all.wipeN1;
		if (wipeSens) obj.style.clip = "rect ( "+(wipeImgHeight /2-wipePosition)+"px," + wipeImgWidth + "px,"+(wipeImgHeight /2+wipePosition)+"px,0px)";
		else obj.style.clip = "rect (0px," + (wipeImgWidth /2+wipePosition) + "px," + wipeImgHeight + "px,"+(wipeImgWidth /2-wipePosition)+"px)";
	}
}
// -->

