/*
Dirty Javascript Image Randomization
	author: Jeremy Kleindl September 2006
	very verbose and bulky - but it works
*/
function randBanner(){
	return (Math.round(Math.random())-0.5);
}
function rotateDisplay(){
/* 	set variables for the DOM objects and their dynamic values */
	var bannerImg, signupBg, ban, sif;
	
/*	Grab the DOM elements by their ID's to prepare for the random class value insertion */
	bannerImg=document.getElementById('banner');
	stayInformedImg=document.getElementById('stay_informed');

/*	array of classes with corresponding backgorund images that are specified in the fla_dems.css files */
	bannerArray = new Array('banner_1','banner_2','banner_3','banner_4','banner_5','banner_6');
	sifArray = new Array('america_flag', 'florida_flag')

/*	sort array and supply first value from the jumbled array as the class to set on the DOM object when the page loads */
	ban=bannerArray.sort( randBanner );
	bannerImg.className=ban[0];
	
	sif=sifArray.sort( randBanner );
	stayInformedImg.className=sif[0];

}
window.onload=function(){
 rotateDisplay();
}
