    var ic = 20;
    var map = new Array(ic);
        
map[0] = "images/arena_rotate.jpg";
map[1] = "images/armedready_rotate.jpg";
map[2] = "images/backattack_rotate.jpg";
map[3] = "images/bridgefar_rotate.jpg";
map[4] = "images/devilislands_rotate.jpg";
map[5] = "images/in4kill_rotate.jpg";
map[6] = "images/killme_rotate.jpg";
map[7] = "images/nosanctuary_rotate.jpg";
map[8] = "images/nowayout_rotate.jpg";
map[9] = "images/run4cover_rotate.jpg";
map[10] = "images/taketop_rotate.jpg";
map[11] = "images/trenchfoot_rotate.jpg";
map[12] = "images/neversaydie_rotate.jpg";
map[13] = "images/destinycalls_rotate.jpg";
map[14] = "images/thinredline_rotate.jpg";
map[15] = "images/pointofview_rotate.jpg";
map[16] = "images/arenaspecial_rotate.jpg";
map[17] = "images/pointofview_ctf_rotate.jpg";
map[18] = "images/fishingvillage_rotate.jpg";
map[19] = "images/bollox2_rotate.jpg";

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);