// Image Array
var backgrounds = new Array("tkmaxx", "home", "mercedes");

// Get the Random Number
var rn = Math.floor(Math.random() * 3);

// Random Image
document.getElementById('bd').setAttribute("class", backgrounds[rn]); // firefox code
document.getElementById('bd').setAttribute("className", backgrounds[rn]); // ie code