//---------------------------------------------------------------------------------------------------------------
//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;
	if (list_linked[i] == true) {
		j = i;
	}
	else j = Math.round(Math.random() * (list_text.length-1));
	window.defaultStatus = j;
	if ( (graphic = document.getElementById(list_graphic_dest)) ) {
		graphic.src = list_graphics[i];
	}
	if ( (div = document.getElementById(list_text_dest)) ) {
		div.innerHTML = list_text[j];
	}
}
<!-- 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);
}