// JavaScript Document
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
// Set up the image files to be used.
var theImages = new Array() 
theImages[0] = 'img/home/imgbar1.gif'
theImages[1] = 'img/home/imgbar2.gif'
theImages[2] = 'img/home/imgbar3.gif'
theImages[3] = 'img/home/imgbar-wh.gif'
theImages[4] = 'img/home/imgbar-wh.gif'
theImages[5] = 'img/home/imgbar-wh.gif'

var theLinks = new Array()
theLinks[0] = 'housing.php?cat=2'
theLinks[1] = 'Day_Programs.php?cat=3'
theLinks[2] = 'fitness_first.php?cat=3'
theLinks[3] = 'welcome_home.php?cat=6'
theLinks[4] = 'welcome_home.php?cat=6'
theLinks[5] = 'welcome_home.php?cat=6'
// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<a href="'+theLinks[whichImage]+'"><img src="'+theImages[whichImage]+'" border=0></a>');
}

//  End -->
