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] = "Sit loosely in the saddle of Life<br/>-Robert Lewis Stevenson";
msg[1] = "Take sips of this pure wine being poured.  Don’t mind that you’ve been given a dirty cup. <br/>- Rumi";
msg[2] = "Everything changes, nothing remains without change. <br/>-Buddha";
msg[3] = "This is a giant block of whatever is most difficult for you to carry & trust me on this, you’ll carry it more times than you can count until you decide that’s exactly what you want to do most & then it won’t weigh a thing anymore. <br/>-Brian Andreas";
msg[4] = "A lifetime is not what’s between the moments of birth and death. A lifetime is one moment between my two breaths.  The present, the here, the now, that’s all the life I get, I live each moment in full, in kindness, in peace, without regret. <br/>-Chade Meng";
msg[5] = "The miracle is not to fly in the air, or to walk on the water: but to walk on the earth. <br/>-Chinese Proverb";
msg[6] = "Praying is not about asking; it’s about listening…It is about opening your eyes to see what was there all along. <br/>-Chagdud Tulku Rinpoche";
msg[7] = "I think these difficult times have helped me to understand better than before how infinitely rich and beautiful life is in every way, and that so many things one goes around worrying about are of no importance whatsoever. <br/>-Isak Dinesen (Karen Blixen)";
msg[8] = "We deem those happy who from the experience of life have learned to bear its ills without being overcome by them. <br/>-Carl Jung";
msg[9] = "The only way to make sense out of change is to plunge with it, move with it, and join the dance. <br/>-Alan Watts";
msg[10] = "You must understand the whole of life, not just one little part of it. That is why you must read, that is why you must look at the skies, that is why you must sing and dance, and write poems, and suffer, and understand, for all that is life. <br/>-J. Krishnamurti";
msg[11] = "Learn too with that everything should come to pass exactly as it does <br/>-Epictetus";
msg[12] = "The first rule is to keep an untroubled spirit.  The second is to look things in the face and know them for what they are. <br/>-Marcus Aurelius";
msg[13] = "I could give you no advice but this: to go into yourself and to explore the depths where your life wells forth. <br/>-Rainer Maria Rilke";
msg[14] = "Life consists of what a man is thinking of all day<br/>-R.W. Emerson";
msg[15] = "To be wronged is nothing unless you continue to remember it. <br/>-Confucius ";
msg[16] = "What is to give light must endure burning<br/>-Viktor Frankl";
msg[17] = "Everything that irritates us about others can lead us to an understanding of ourselves. <br/>-Carl Jung";
msg[18] = "If we go down into ourselves we find that we possess exactly what we desire. <br/>-Simone Weil";
msg[19] = "No one binds you so there is no need to be set free. <br/>-zen saying";
msg[20] = "We do not receive wisdom, we must discover it for ourselves, after a journey through the wilderness which no one else can make for us, which no one else can spare us. <br/>-Marcel Proust";
msg[21] = "All human beings should try to learn before they die what they are running from, and to, and why.<br/>-James Thurber";
msg[22] = "Everyone thinks they want happiness, but they might not.  They might rather keep their stories about who they are and about what is impossible. <br/>-John Tarrant";
msg[23] = "Often people attempt to live their lives backwards:  they try to have more things, or more money, in order to do more of what they want, so they will be happier.  The way it actually works is in reverse.  You must first be who you really are, then, do what you need to do, in order to have what you want. <br/>-Margaret Young";
msg[24] = "To decide to be at the level of choice is to take responsibility for your life and to be in control of your life. <br/>-Arbie M. Dale";
msg[25] = "That’s the problem with science.   You’ve got a bunch of empiricists trying to describe things of unimaginable wonder. <br/>-Calvin & Hobbes";
msg[26] = "Nothing ever becomes real till it is experienced.  Even a proverb is no proverb to you till your life has illustrated it. <br/>-John Keats";
msg[27] = "When learning about life and people, make no more assumptions than are absolutely necessary.  Ask and observe.  <br/>-William of Occam";
msg[28] = "No one can make you change.  No one can stop you from changing.  No one really knows how you must change.  Not even you.  Not until you start.  <br/>-Dr. David Viscott";
msg[29] = "It is also helpful to realize that this very body that we have, that’s sitting here right now….with its aches and its pleasures…is exactly what we need to be fully human, fully awake, fully alive.<br/>-Pema Chodron";
msg[30] = "What one understands is only half true.  What one does not understand is the full truth.-Zen saying";
msg[31] = "Learn how to listen as things speak for themselves. <br/>-Basho";
msg[32] = "We win half the battle when we make up our minds to take the world as we find it, including the thorns. <br/>-Orison Marden";
msg[33] = "You are already complete.  You just don’t know it. <br/>-Zen saying";
msg[34] = "A man needs a little madness, or else he never dares cut the rope and be free. <br/>-Nikos Kazantzakis";
msg[35] = "It takes a certain maturity of mind to accept that nature works as steadily in rust as in roses. <br/>- Esther Warner Dendel";
msg[36] = "It is true, we don’t know what is happening in the deepest sense.  And if we can stay with that not knowing, and trust it, and enjoy it, we will be able to experience our life in some fundamentally different way.  That’s our miraculous power. <br/>-Katherine Thanas";
msg[37] = "It’s a bit embarrassing to have been concerned with the human problem all one’s life and find at the end that one has no more to offer by way of advice than ’try to be a little kinder.’ <br/>-Aldous Huxley";
msg[38] = "The greatest thing in the world is to know how to be oneself.  <br/>-Michel de Montaigne";
msg[39] = "The aspects of things that are most important for us are hidden because of their simplicity and familiarity. <br/>-Ludwig Wittgenstein";
msg[40] = "We cannot put off living until we are ready.  The most salient characteristic of life is its urgency, “here and now” without any possible postponement.  Life is fired at us point blank. <br/>-Jose Ortega y Gasset";
msg[41] = "Your enlightenment rests on your own shoulders<br/>-Dalai Lama";
msg[42] = "Inner peace is the key.  If you have inner peace, the external problems do not affect your deep sense of peace and tranquility. <br/>-Dalai Lama";
msg[43] = "To be natural is such a very difficult pose to keep up. <br/>-Oscar Wilde";
msg[44] = "True enlightenment and wholeness arise when we are without anxiety about no perfection. <br/>-The 3rd Patriarch ";
msg[45] = "Tenderness and kindness are not signs of weakness and despair, but manifestations of strength and resolutions. <br/>-Kahlil Gibran";
msg[46] = "By being youself, you put something wonderful in the world that was not there before. <br/>-Edwin Elliot";
msg[47] = "The future is not someplace we are going to, but a place we are creating. the paths to it are not found, they are made. <br/>-Jane Garvey";
msg[48] = "Treasure each other in the recognition that we do not know how long we will have each other. <br/>-Joshua Liebman";
msg[49] = "Within you there is a sanctuary and stillness to which you can retreat at anytime and be yourself. <br/>-Herman Hesse";
msg[50] = "Take the gentle path. <br/>-Gearoge Herbert";
msg[51] = "Do any human beings ever realize life while they live it? every, every minute? <br/>-Thorton Wilder, Our Town";
msg[52] = "Everything is always impossible before it works. <br/>-Hunt Greene";
msg[53] = "Wrong turns are as important as right turns.  more important sometimes. <br/>-Richard Bach";
msg[54] = "We are the hurdles we leap to be ourselves. <br/>-Michael Mcclure";
msg[55] = "Make of yourself a light<br/>-The Buddha";
msg[56] = "These are days of miracle and wonder<br/>-Paul Simon";
msg[57] = "So it goes<br/>-Kurt Vonnegut";
msg[58] = "Listen<br/>Kurt Vonnegut";
msg[59] = "Remember that feelingas a child when you woke up and the morning smiled? It’s time you felt like that again. <br/>-Taj Mahal";
msg[60] = "What is life for? it is for you. <br/>-Abraham Maslow";
msg[61] = "Stop every now and then. just stop and enjoy. Take a deep breath. Relax and take in the abundance of life. <br/>-unknown";
msg[62] = "Life itself is a gift. it’s a compliment just being born: to feel, breathe, think, play, dance, sing, work, and make love for this particular lifetime.";
msg[63] = "Each day comes to me with both hands full of possibilities<br/>-Helen Keller";
msg[64] = "Every singly day do something that makes your heart sing<br/>-Marcia Wieder";
msg[65] = "Never squander an opportunity to tell someone you love or appreciate them. <br/>-Kelly Ann Rothaus";

