//Запускает таймер
function go(){
window.timerId = window.setInterval(timer, 1000);
}
function timer(){
if(window.number == undefined || window.number == 3) {
window.number = 1;
} else window.number = window.number + 1;
var img = document.getElementById('img');
img.src = 'smiles/'+window.number+'.png'
}