// Random image selector

// number of pics in the directory
var numofpics = 12;

var random_num, pic;

// Choose random image
random_num = Math.round((Math.random() * (numofpics - 1)) + 1);

// Draws the image
document.write('<img src="./images/random/' + random_num + '.jpg" width="150" alt="random_pic" border="0" />');