// 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();

	bgs.push("http://www.kippcharlotte.org/themes/ui_themes/kipp1.jpg");
	bgs.push("http://www.kippcharlotte.org/themes/ui_themes/kipp2.jpg");
	bgs.push("http://www.kippcharlotte.org/themes/ui_themes/kipp3.jpg");
	bgs.push("http://www.kippcharlotte.org/themes/ui_themes/kipp4.jpg");
	bgs.push("http://www.kippcharlotte.org/themes/ui_themes/kipp5.jpg");

	document.getElementById("flag").style.backgroundImage = "url(" + bgs[randomize(0, bgs.length-1)] + ") ";
	document.getElementById("flag").style.backgroundRepeat = "no-repeat";
}
