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();

	bgs.push("/images/backgrounds/ba_background1.jpg");
	bgs.push("/images/backgrounds/ba_background2.jpg");
	bgs.push("/images/backgrounds/ba_background3.jpg");
	bgs.push("/images/backgrounds/ba_background4.jpg");
	bgs.push("/images/backgrounds/ba_background5.jpg");
	bgs.push("/images/backgrounds/ba_background6.jpg");

	document.body.style.backgroundImage = "url(" + bgs[randomize(0, bgs.length-1)] + ")";
}

