// JavaScript Document
function randomize(min, max) {
if (!min)
min = 0;
if (!max)
max = 1;
return Math.floor(Math.random()*(max+1)+min);
}
function randomBg() {
var bgs = new Array();
// I took these images from a site with a similar script already only to get example images
// I wrote this script myself
bgs.push("http://www.getsquirly.com/bg/squirly-bg01.jpg");
bgs.push("http://www.getsquirly.com/bg/squirly-bg02.jpg");
bgs.push("http://www.getsquirly.com/bg/squirly-bg03.jpg");
document.body.style.backgroundImage = "url(" + bgs[randomize(0, bgs.length-1)] + ")";
}