img = new Array(5);  //tu określ ilość elementów do rotacji 

img[0] = "<img src='templates/top/top_cult_01.jpg' border='0' />";  //top 1 

img[1] = "<img src='templates/top/top_cult_02.jpg' border='0' />";  //top 2 

img[2] = "<img src='templates/top/top_cult_03.jpg' border='0' />";  //top 3 

img[3] = "<img src='templates/top/top_cult_04.jpg' border='0' />";  //top 4 

img[4] = "<img src='templates/top/top_cult_05.jpg' border='0' />";  //top 5 




index = Math.floor(Math.random() * img.length); 
document.write( img[index] );