codice:
var over=0;
function rounder(pos){
var tro=0;
if (over==0 && tro==0){
if (pos==1){
setTimeout(function(){$('#img1').children('a').children('img').animate({ height: '100', left: '0', top: '0', width: '140'}, 100)},4000);
setTimeout(function(){$('#img1').children('a').children('img').animate({ height: '90', left: '0', top: '0', width: '126'}, 100)},8000);
}
}else{
tro=1;
}
if (over==0 && tro==0){
if (pos<=2){
setTimeout(function(){$('#img2').children('a').children('img').animate({ height: '72', left: '0', top: '0', width: '129'}, 100)},8000);
setTimeout(function(){$('#img2').children('a').children('img').animate({ height: '65', left: '0', top: '0', width: '116'}, 100)},12000);
}
}else{
tro=1;
}
if (over==0 && tro==0){
if (pos<=3){
setTimeout(function(){$('#img3').children('a').children('img').animate({ height: '75', left: '0', top: '0', width: '108'}, 100)},12000);
setTimeout(function(){$('#img3').children('a').children('img').animate({ height: '67', left: '0', top: '0', width: '97'}, 100)},16000);
}
}else{
tro=1;
}
if (over==0 && tro==0){
if (pos<=4){
setTimeout(function(){$('#img4').children('a').children('img').animate({ height: '75', left: '0', top: '0', width: '108'}, 100)},16000);
setTimeout(function(){$('#img4').children('a').children('img').animate({ height: '68', left: '0', top: '0', width: '97'}, 100)},20000);
}
}else{
tro=1;
}
if (over==0 && tro==0){
setTimeout(function(){rounder(1);},20000);
}
};