function main_random_image()
{
	var BasePath='http://www.bhccu.org/';
	var randomnumber=Math.floor(Math.random()*4);
	
	imgArray = new Array(3);
	imgArray[0] = "<img src='"+BasePath+"images/main/lifestyle1.jpg' width='585' height='208' border='0' alt=''>"
	imgArray[1] = "<img src='"+BasePath+"images/main/lifestyle2.jpg' width='585' height='208' border='0' alt=''>"
	imgArray[2] = "<img src='"+BasePath+"images/main/lifestyle3.jpg' width='585' height='208' border='0' alt=''>"
	imgArray[3] = "<img src='"+BasePath+"images/main/lifestyle4.jpg' width='585' height='208' border='0' alt=''>"

	document.write(imgArray[randomnumber]);

}

function whats_new_rotator()
{
	var BasePath='http://www.bhccu.org/';
	var randomnumber=Math.floor(Math.random()*3);
	
	imgArray = new Array(2);
	imgArray[0] = "<img src='"+BasePath+"images/BlackhawkCarloanBannerAd2.JPG' width='449' height='512' border='0' alt=''>"
	imgArray[1] = "<img src='"+BasePath+"images/BlackhawkBoatBannerAd.png' width='449' height='512' border='0' alt=''>"
	imgArray[2] = "<img src='"+BasePath+"images/BlackhawkmotorcycleBannerAd.png' width='449' height='512' border='0' alt=''>"

	document.write(imgArray[randomnumber]);
}

function other_random_image()
{
	var BasePath='http://www.bhccu.org/';
	imgArray = new Array(48);
	imgArray[0] = "<img src='"+BasePath+"images/other/car_ride.jpg' width='585' height='99' border='0' alt=''>"
	imgArray[12] = "<img src='"+BasePath+"images/other/computer_woman.jpg' width='585' height='99' border='0' alt=''>"
	imgArray[24] = "<img src='"+BasePath+"images/other/computer_woman.jpg' width='585' height='99' border='0' alt=''>"
	imgArray[36] = "<img src='"+BasePath+"images/other/shopper_female.jpg' width='585' height='99' border='0' alt=''>"
	imgArray[48] = "<img src='"+BasePath+"images/other/shopper_male.jpg' width='585' height='99' border='0' alt=''>"

	var imgTime = new Date();
	var seconds = imgTime.getSeconds();
	
	var i=0;
	while (i <= 48)
	{
		if ((seconds >= i) && (seconds <= i+11))
			document.write(imgArray[i]);
		i=i+12
	}
}

