/*FONCTIONS POUR CALCULER LA POSITION DE L'ANCRE DANS LA PAGE*/
function getLeft(MyObject){
	if (MyObject.offsetParent) return (MyObject.offsetLeft + getLeft(MyObject.offsetParent));
	else return (MyObject.offsetLeft);
}

function anchorLeft(ID_Anchor,Name_Anchor)  {
	pos=(document.all)?document.all[ID_Anchor]:(document.layers)?document.anchors[Name_Anchor]:document.getElementById(ID_Anchor);
	DivLeft=(document.layers)?pos.x:getLeft(pos);
	return DivLeft;
}

function IS(m, n, o) {
    if (ready) {
        cpt = 60;
        plouf = eval("timg[" + m + "].i" + m + "_" + n);
        plouf.src = eval("i" + m + "_" + n + "_" + teta[o] + ".src");
        oups = o;
    }
}

function show(s) {
    if (ready){
        roll(s);
        cache();
        tdiv[s].visibility = "visible";
        cpt = 60;
        oups = 1;
        defo();
    }
}

function iout() {
    oups = 0;
}

function defo(){ 
	if (!yo) { 
	if (cpt < 0 && !oups) {
		cache();
		roll(def);
		yo = true;
	} else {
		cpt--;
		setTimeout('defo()', 20);}
	}
}


