function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		home_over = newImage("images/home_hot.gif");
		contact_us_over = newImage("images/contact_us_hot.gif");
		staff_profiles_over = newImage("images/staff_profiles_hot.gif");
		our_philosophy_over = newImage("images/our_philosophy_hot.gif");
		resources_over = newImage("images/resources_over.gif");
		preloadFlag = true;
	}
}

var menu = '';
function setMenuHighlight()
{
	if (document.getElementById(menu))
	{
		var menuImg = document.getElementById(menu);
		menuImg.src = "images/" + menu + "_hot.gif";
		menuImg.onmouseout = "";
	}
	if (menu == "home")
	{
	  document.getElementById("fade2").innerHTML = msg[randomnumber];
	}
}

preloadImages();

function addLoadEvent(fn) {
    if (window.addEventListener) window.addEventListener("load", fn, false);
    else if (window.attachEvent) window.attachEvent("onload", fn);
}
addLoadEvent(setMenuHighlight);

var randomnumber = Math.floor(Math.random()*24);

var msg = new Array();
msg[0] = "The only courage that matters is the kind that gets you from one moment to the next.<br/>-Mignon McLaughlin";
msg[1] = "Listen to your life. See it for the fathomless mystery that it is.  In the boredom and in the pain of it, no less than in the excitement and gladness: touch and taste your way to the holy and hidden heart of it because in the last analysis all moments are key moments, and life itself is grace.<br/>-Buechner, 1987";
msg[2] = "Tell me, what is it you plan to do<br/>With your one wild and precious life?<br/>-Mary Oliver";
msg[3] = "We could never learn to be brave and patient, if there were only joy in the world.<br/>-Helen Keller";
msg[4] = "In the external scheme of things, shining moments area as brief as the twinkling of an eye, yet such twinklings are what eternity is made of---moments when we humans beings ca say, “I love you,” “I’m proud of you,” “I forgive you,” I am grateful for you.”  That’s what eternity is made of: invisible, imperishable good stuff.<br/>-Fred Rogers";
msg[5] = "Sometimes even to live is an act of courage.<br/>-Seneca";
msg[6] = "And the time came when the risk to remain tight in a bud was more painful than the risk it took to blossom.<br/>-Anais Nin";
msg[7] = "To be nobody but myself – in a world which is doing its best night and day, to make you everybody else – means to fight the hardest battle which any human being can fight, and never stop fighting.<br/>-E. E. Cummings";
msg[8] = "Let yourself be open and life will be easier.  A spoon of salt in a glass of water makes the water undrinkable.  A spoon of salt in a lake is almost unnoticed.<br/>-Buddha";
msg[9] = "Rest is not idleness, and to lie sometimes on the grass under trees on a summers’ day, listening to the murmur of the water, or watching the clouds float across the sky, is my no means a waste of time.<br/>-Sir John Lubbock";
msg[10] = "I always wanted to invent something that would move around and make funny noises and would change the world as we knew it and I forgot about all that until we had kids and now I see I came pretty close.<br/>-Brian Andreas";
msg[11] = "The person who says it cannot be done should not interrupt the person doing it.<br/>-Chinese Proverb";
msg[12] = "Faith is not being sure where you are going but going anyway.<br/>-Frederick Buechner";
msg[13] = "It often takes more courage to be a passenger than a driver.<br/>-E.I. Konigsburg";
msg[14] = "Grown-ups like numbers.  When you tell them about a new friend, they never ask question about what really matters.  They never ask: “What does his voice sound like?” “What game does he like best” “Does he collect butterflies?”  They ask “How old is he?” “How many brothers does he have?” “How much money does his father make?” Only then do they think they know him.<br/>-Antoine de Saint-Exupery";
msg[15] = "Happiness is not what happens when everything goes the way you think it should go; happiness happens when you decide to be happy.<br/>-Marianne Williamson";
msg[16] = "A great deal of talent is lost to the world for want of a little courage.<br/>-John Lennon";
msg[17] = "Let it be.<br/>-Paul McCartney";
msg[18] = "It ain’t no sin to be glad you’re alive<br/>-Bruce Springsteen";
msg[19] = "Say yes to Life even though you know it may devour you.<br/>-Stephen Larson";
msg[20] = "Live to the point of tears<br/>-Camus";
msg[21] = "Believe that your life is worth living, and your belief will create the fact<br/>-William James";
msg[22] = "She said she usually cried at least once each day not because she was sad, but because the world was so beautiful and life was so short.<br/>-Brian Andreas";
msg[23] = "I used to wait for a sign, she said, before I did anything.  Then one night I had a dream and an angel in black tights came to me and said, You can start and time now, and then I asked is this a sign? And the angel started laughing and I woke up.  Now I think the whole world is filled with signs, but if there’s no laughter, I know they’re not for me.<br/>-Brian Andreas";

