// ****************************************************
// ****************************************************
// *** Preloader and rollover script                ***
// ****************************************************
//Create on array
var onImage = new Array()
//Pre-Cache images of the page
onImage[7] = new Image(110,20)
onImage[7].src = "http://www.cchouse.org/images/nav/oa002.gif"
onImage[8] = new Image(110,20)
onImage[8].src = "http://www.cchouse.org/images/nav/op002.gif"
onImage[9] = new Image(110,20)
onImage[9].src = "http://www.cchouse.org/images/nav/ow002.gif"
onImage[10] = new Image(110,20)
onImage[10].src = "http://www.cchouse.org/images/nav/od002.gif"
onImage[11] = new Image(110,20)
onImage[11].src = "http://www.cchouse.org/images/nav/oc002.gif"
//Pre-Cache images for the rollover effect
var offImage = new Array()
offImage[7] = new Image(110,20)
offImage[7].src = "http://www.cchouse.org/images/nav/oa001.gif"
offImage[8] = new Image(110,20)
offImage[8].src = "http://www.cchouse.org/images/nav/op001.gif"
offImage[9] = new Image(110,20)
offImage[9].src = "http://www.cchouse.org/images/nav/ow001.gif"
offImage[10] = new Image(110,20)
offImage[10].src = "http://www.cchouse.org/images/nav/od001.gif"
offImage[11] = new Image(110,20)
offImage[11].src = "http://www.cchouse.org/images/nav/oc001.gif"
// Swaps the images
function imageOn(i)
{
document.images[i].src = onImage[i].src
}
function imageOff(i)
{
document.images[i].src = offImage[i].src
}
//sets the message in the status bar
function setMsg(msg)
{
window.status = msg
return true
}


// ****************************************************
// ****************************************************
// *** Date writer prep script                      ***
// ****************************************************
dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
monName = new Array ("January", "February", "March", "April", "May","June","July",
"August","September","October","November","December");
now = new Date();

function writeDate() {
	document.write("<B><i><font face=times size=2 color=#404040>cchouse.org | " + monName[now.getMonth()] + " " +
	now.getDate() + ", " + now.getFullYear() + "</font>");
}
