// Global variables

var num = 0

// Change picture

function changepic() {

  num++; if (num > 3) {num = 1}
  document.images['anatol'].src = 'img/pes' + num + '.jpg'
  setTimeout("changepic()",4000)
}
