//---------------------------------------------------------------------------------------------------------------
//This is for the ROTATING TEXT and GRAPHIC
//Right now this code just randomly loads one each time the page loads.
//---------------------------------------------------------------------------------------------------------------
function loadRandomGraphicAndText() {
	
	if (typeof list_graphic_dest == "undefined") return;
	if (typeof list_text_dest == "undefined") return;

	i = Math.round(Math.random() * (list_graphics.length-1));
	
	var j;
	//Handle rotating text if we need it
	if (list_text_dest != "none") {
		if (list_linked[i] == true) {
			j = i;
		}
		else j = Math.round(Math.random() * (list_text.length-1));
		if ( (div = document.getElementById(list_text_dest)) ) {
			div.innerHTML = list_text[j];
		}
	}

	if ( (graphic = document.getElementById(list_graphic_dest)) ) {
		graphic.src = list_graphics[i];
	}
	
}
<!-- Set up the initialization routine -->
if (!document.all) {
	//FIREFOX IS BEING USED
	window.addEventListener("load",loadRandomGraphicAndText,false);
}
else {
	//INTERNET EXPLORER IS BEING USED
	window.attachEvent("onload", loadRandomGraphicAndText);
}