currentIndx=0;

MyImages=new Array();

MyImages[0]='images1/brand_images/001.png';

function newImage() {
currentIndx=Math.round(Math.random()*4)
document.getElementById("rotate").style.backgroundImage = "url("+MyImages[currentIndx]+")";

}