var rimages=new Array(4);for (i=1; i<5; i++) {rimages[i] = new Image();rimages[i].src = '../images/web/picture-footer'+i+'.png';}
function random_img() {var ry=Math.floor(Math.random()*3+1);document.getElementById('randomimage').src=rimages[ry].src;}
