// JavaScript Document

/*
usage:
make sure to use the same id and then add all the randon images in the array list below.
<img class="mainBg" id="randPic" src="img/bg_homemain1.jpg" alt="">
*/
	//had to disable this because of a confliction with another script.
	//window.onload = choosePic;
	//this chooses a random pic for the main page.
	var myPix = new Array("images/bobhiseman_hp.jpg","images/bretmorgan_hp.jpg","images/mikeysanchez_hp.jpg","images/danielboyd_hp.jpg","images/kerryfavero_hp.jpg","images/lyndariley_hp.jpg","images/margaretoler_hp.jpg","images/marycowdin_hp.jpg","images/mikemounteer_hp.jpg","images/rayannastarr_hp.jpg","images/russjansen_hp.jpg","images/sidneymortensen_hp.jpg","images/thomasforsgren_hp.jpg","images/toddcaldwell_hp.jpg","images/vanessamccowan_hp.jpg","images/armstrongfamily_hp.jpg","images/blainetownsend_hp.jpg","images/chisholmfamily_hp.jpg","images/davisfamily_hp.jpg","images/karlmortensen_hp.jpg","images/kevinbaggaley_hp.jpg","images/scottwetzel_hp.jpg","images/tattonfamily_hp.jpg","images/valeriecisneros_hp.jpg","images/melanieallen_hp.jpg","images/tiffanyeckman_hp.jpg","images/larrymartinez_hp.jpg","images/folkmanfamily_hp.jpg");
	
	function choosePic()
	{
		randomNum=Math.floor((Math.random() * myPix.length));
		document.getElementById("randPic").src=myPix[randomNum];
	}
