// JavaScript Document
function getNumAleat(num, pos){
	hoje = new Date();
    segundos = hoje.getSeconds();
    return ((segundos % num)+1)*pos; 
}
function getImg(pos){  
  document.write('<img src="_img/fotos/foto' + getNumAleat(18,pos) + '.JPG" alt="" border="0" />');
}