function popupWindow(pictureURL) {
    var newwindow = window.open("","myWin","width=200, height=300, titlebar=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,location=no");
    with (newwindow)
    {
        var contents="<HTML><HEAD><TITLE>Webcam vue sur la Chaîne des Aravis</TITLE></HEAD><BODY BGCOLOR='#FFFFFF' TEXT='#99CC00' LEFTMARGIN=0 TOPMARGIN=0> \
        <IMG SRC='" + pictureURL + "'onLoad='javascript:window.resizeTo(this.width+10,this.height+30);'> \
        </BODY></HTML>";
        document.open("text/html");
        document.write(contents);
        document.close();
    }
    newwindow.focus();
}

  function makearray(n) {
    this.length = n;
    for (i=1; i<=n; i++)
      this[i] = 0;
    return this;
  }

function init() {
    t = new makearray(10);
    t[0] = new Image(); t[0].src = "http://www.bornaillon.net/fichiers/webcam/live_h07.jpg";
    t[1] = new Image(); t[1].src = "http://www.bornaillon.net/fichiers/webcam/live_h08.jpg";
    t[2] = new Image(); t[2].src = "http://www.bornaillon.net/fichiers/webcam/live_h09.jpg";
    t[3] = new Image(); t[3].src = "http://www.bornaillon.net/fichiers/webcam/live_h10.jpg";
    t[4] = new Image(); t[4].src = "http://www.bornaillon.net/fichiers/webcam/live_h11.jpg";
    t[5] = new Image(); t[5].src = "http://www.bornaillon.net/fichiers/webcam/live_h12.jpg";
    t[6] = new Image(); t[6].src = "http://www.bornaillon.net/fichiers/webcam/live_h13.jpg";
    t[7] = new Image(); t[7].src = "http://www.bornaillon.net/fichiers/webcam/live_h14.jpg";
    t[8] = new Image(); t[8].src = "http://www.bornaillon.net/fichiers/webcam/live_h15.jpg";
    t[9] = new Image(); t[9].src = "http://www.bornaillon.net/fichiers/webcam/live_h16.jpg";
    t[10] = new Image(); t[10].src = "http://www.bornaillon.net/fichiers/webcam/live_h17.jpg";
  }

  function picture(n) {
    document.images['evolution'].src = t[n].src;
  }

  function go() { i = 0; go2(); }

  function go2() {
    if (i < 13) {
      document.images['evolution'].src = t[i++].src;
      timerId = setTimeout("go2()", 800);
    }
}