// JavaScript Document
<!--
var rI = {
	addImg:function() {
		rI.imgList.push(arguments[0]);
		rI.altList.push(arguments[1]);
	},
	showImg:function() {
		var j=parseInt(Math.random()*rI.imgList.length);
		j=(isNaN(j))?0:j;
		newImg=document.createElement("img");
		newImg.src=rI.imgList[j];
		newImg.alt=rI.altList[j];
		obj=document.getElementById("randomImage");
		obj.appendChild(newImg);
	},
	addEvent: function(obj,evt, fn) {
		if (obj.addEventListener) {obj.addEventListener(evt, fn, false);
		} else if (obj.attachEvent) {obj.attachEvent('on'+evt, fn);
		} else {obj['on'+evt]=fn;}
	},	
	imgList:[],
	altList:[]
}

rI.addImg("images/ChangingLives.jpg","Changing Lives");
rI.addImg("images/Environment.jpg","Helping You, Help the Environment");
rI.addImg("images/GetHealthyTogether.jpg","Get Healthy Together");
rI.addImg("images/GoodStateHealth.jpg","Spring into a Good State of Health");
rI.addImg("images/HealthierHappier.jpg","Committed to Healthier & Happier Members");
rI.addImg("images/Information.jpg","Putting Information at Your Fingertips");
rI.addImg("images/LiveWell.jpg","Live Well");
rI.addImg("images/MaximizeHealthSavings.jpg","Pursuing Methods to Maximize Health Savings");
rI.addImg("images/OurFocus.jpg","Your Life, Our Focus");
rI.addImg("images/OurMission.jpg","Our Mission:  Quality Health Care");
rI.addImg("images/ProductsPrograms.jpg","Excellence in Service, Products and Programs");
rI.addImg("images/QualityHealthcareQualityLife.jpg","Quality Health Care for Quality Life");
rI.addImg("images/QualityValue.jpg","Options that Provide Quality & Value");
rI.addImg("images/TakingCareFamily.jpg","Taking Care of Your Family");
rI.addImg("images/WhatMattersMost.jpg","Taking Care of What Matters Most");

rI.addEvent(window,'load',rI.showImg);
