
// RÉCUPÉRATION DES POINTS ZÉRO X ET Y DE L'IMAGE DE CALAGE
var positionX;
var positionY;
function GetRefPosition() {
	// INTERNET EXPLORER ET NETSCAPE 6
	if (document.all || document.getElementById) {
		thisElmnt = document["calage"];
		thisLeft = document["calage"].offsetLeft; 
		thisTop = document["calage"].offsetTop;
		while (thisElmnt != null) {
			thisLeft += thisElmnt.offsetLeft;
			thisTop += thisElmnt.offsetTop;
			thisElmnt = thisElmnt.offsetParent;
		}
		positionX = thisLeft;
		positionY = thisTop;
		
		if(navigator.appName=="Netscape"){
			positionX = positionX/2;
			positionY = positionY/2;
		}
		//alert("X = "+positionX+" Y = "+positionY);
	}
	// NETSCAPE 4
	if (document.layers) {
		positionX = document["calage"].x;
		positionY = document["calage"].y;
	}
}


// AFFECTATION DES COORDONNÉES AUX CALQUES "FLECHES" et "CONTENTCLIP"
// l'image de calage est positionnée par rapport aux flêches.
// Les variables DivCCDecayX et DivCCDecayY servent à caler le contenu
// scrollable. Les valeurs sont données dans la page, elles sont la distance
// entre le point X (ou Y) du conteneur et le point X (ou Y) des fleches.

function Reget(DecayX, DecayY) {
// APPEL DE LA FONCTION 
GetRefPosition();

// VARIABLE DE DÉCALAGE DU CLIP A SCROLLER / FLECHES

	// POUR INTERNET EXPLORER
	if (document.all) {
		document.all["promo"].style.visibility = 'visible';
		document.all["promo"].style.left = positionX - DecayX;
		document.all["promo"].style.top = positionY - DecayY;
	}
	
	// POUR NETSCAPE 6
	if (document.getElementById) {
		//alert(positionX);
		//alert(DivUpDecayX);
		//alert(positionX - DivUpDecayX);
		document.getElementById("promo").style.visibility = 'visible';
		document.getElementById("promo").style.left = positionX - DecayX +"px";
		document.getElementById("promo").style.top = positionY - DecayY +"px";
	}
	
	// POUR NETSCAPE 4
	if (document.layers) {
		document["promo"].visibility = 'visible';
		document["promo"].left = positionX - DecayX;
		document["promo"].top = positionY - DecayY;
	}
}

function Reset(DecayX) {
// APPEL DE LA FONCTION 
GetRefPosition();

// VARIABLE DE DÉCALAGE DU CLIP A SCROLLER / FLECHES

	// POUR INTERNET EXPLORER
	if (document.all) {
		document.all["promo"].style.visibility = 'visible';
		document.all["promo"].style.left = positionX - DecayX;
	}
	
	// POUR NETSCAPE 6
	if (document.getElementById) {
		document.getElementById("promo").style.visibility = 'visible';
		document.getElementById("promo").style.left = positionX - DecayX +"px";
	}
	
	// POUR NETSCAPE 4
	if (document.layers) {
		document["promo"].visibility = 'visible';
		document["promo"].left = positionX - DecayX;
	}
}