largeur = 100;
hauteur = 90;
tempspause = 3;

function w(texte) { document.write(texte+"\n"); }

w('<div id="globe" align="center" style="position:relative;width:'+largeur+'px;height:'+hauteur+'px;">');
w('<div id="cadre" align="center" style="position:absolute;width:'+(largeur-8)+'px;height:'+(hauteur-8)+'px;top:4;left:4;clip:rect(0 '+(largeur-8)+'px '+(hauteur-8)+'px 0);">');
w('<div id="img_1" align="center" style="position:absolute;width:'+(largeur-8)+'px;left:0;top:0;">'+imgdef[0]+'</DIV>');
w('<div id="img_2" align="center" style="position:absolute;width:'+(largeur-8)+'px;left:0;top:'+hauteur+'px;">'+imgdef[1]+'</DIV>');
w('</DIV></DIV>');

var1 = 1;
var2 = 0;

function start()    
{
    if(var1 == 1)    {
        div_dav = 'img_1';
        div_dap = 'img_2';
        var1 = 0;
    }else{
        div_dap = 'img_1';
        div_dav = 'img_2';
        var1 = 1;
    }
    nb_img = imgdef.length-1;
    if(var2 == nb_img) {
        next = 0;
    }else {
        next = var2+1;
    }
    if(document.getElementById) {
        document.getElementById(div_dap).innerHTML = imgdef[next];
    }
    auht = 0;
    if(document.getElementById) {
        setTimeout("action()", tempspause*1000);
    }
}

function action() {
    auht -= 1;
    document.getElementById(div_dav).style.top    = auht;
    document.getElementById(div_dap).style.top = auht + hauteur;
    if((auht + hauteur) > 0) {
        setTimeout("action()",10);
    }else{
        stope();
    }
}

function stope() {
    var2 = next;
    start();
}

function returnTrue() {
    return true;
}

window.onload = start;
window.onerror = returnTrue;
