
    // JavaScript to interpolate random images into a page.
    var ic = 11;     // Number of alternative images
    var xoxo = new Array(ic);  // Array to hold filenames
        
xoxo[0] = "random-images/8-2012.jpg";
xoxo[1] = "random-images/6-2012.jpg";
xoxo[2] = "random-images/5-2012.jpg";
xoxo[3] = "random-images/4-2012.jpg";
xoxo[4] = "random-images/7-2012.jpg";
xoxo[5] = "random-images/3-2012.jpg";
xoxo[6] = "random-images/9-2012.jpg";
xoxo[7] = "random-images/10-2012.jpg";
xoxo[8] = "random-images/2-2012.jpg";
xoxo[9] = "random-images/1-2012.jpg";
xoxo[10] = "random-images/11-2012.jpg"

function pickRandom(range) {
if (Math.random)
return Math.round(Math.random() * (range-1));
else {
var now = new Date();
return (now.getTime() / 1000) % range;
}
}
// Write out an IMG tag, using a randomly-chosen image name.
var choice = pickRandom(ic);

