var ic = 10;     // Number of alternative images
var xoxo = new Array(ic);  // Array to hold filenames
        
xoxo[0] = "images/ad/1.gif";
xoxo[1] = "images/ad/2.gif";
xoxo[2] = "images/ad/3.gif";
xoxo[3] = "images/ad/4.gif";
xoxo[4] = "images/ad/5.gif";
xoxo[5] = "images/ad/6.gif";
xoxo[6] = "images/ad/7.gif";
xoxo[7] = "images/ad/8.gif";
xoxo[8] = "images/ad/9.gif";
xoxo[9] = "images/ad/10.gif";
//xoxo[10] = "images/ad/11.gif";

function pickRandom(range) {
if (Math.random)
return Math.round(Math.random() * (range-1));
else {
var now = new Date();
return (now.getTime() / 1000) % range;
}
}
var choice = pickRandom(ic);
