quotes = new Array("A successful man is he who receives a great deal from his fellow man... The value of a man, however, shall be seen in what he gives and not in what he was able to receive.<br /> - Albert Einstein","Always do more than is required of you.<br /> - George S. Patton", "No child should be denied the most fundamental of human rights - to be fed, sheltered and educated, and with the hope that tomorrow will bring a new beginning.", "Picture a world... where work and leisure take their proper place, where faith and hope and love abide and new possibilities forever bloom.<br /> - Thomas Kinkade", "The World Children&rsquo;s Center will serve as a voice for children throughout the world.<br /> - Don Whitney", "The only way to eliminate war is to love our children more than we hate our enemies.<br /> - Golda Meir", "The test of our progress is not whether we add more to the abundance of those who have much. It is whether we provide enough for those who have too little.<br /> - Franklin D. Roosevelt", "No culture can live if it attempts to be exclusive.<br /> - Mahatma Gandhi", "If we truly want peace in the world, let us begin by loving one another in our own families.<br /> - Mother Teresa","Faith makes all things possible. Hope makes all things bright. Love makes all things easy.<br /> - Anonymous","Everyone has the power for greatness, not for fame but for greatness, because greatness is determined by service.<br /> - Martin Luther King, Jr.");

function print_quote(){
	var s = quotes.length;
	var n = Math.floor(Math.random() * s);
	document.write(quotes[n]);
}

function repositionOne()
{
	var newLeft = (((getWindowWidth() / 2) - (contentSize / 2)) + ddOneOffset);
	ddOne.container.style ? ddOne.container.style.left = newLeft + "px" : ddOne.container.left = newLeft;
}
function repositionTwo()
{
	var newLeft = (((getWindowWidth() / 2) - (contentSize / 2)) + ddTwoOffset);
	ddTwo.container.style ? ddTwo.container.style.left = newLeft + "px" : ddTwo.container.left = newLeft;
}

function repositionThree()
{
	var newLeft = (((getWindowWidth() / 2) - (contentSize / 2)) + ddThreeOffset);
	ddThree.container.style ? ddThree.container.style.left = newLeft + "px" : ddThree.container.left = newLeft;
}

function repositionFour()
{
	var newLeft = (((getWindowWidth() / 2) - (contentSize / 2)) + ddFourOffset);
	ddFour.container.style ? ddFour.container.style.left = newLeft + "px" : ddFour.container.left = newLeft;
}

function repositionFive()
{
	var newLeft = (((getWindowWidth() / 2) - (contentSize / 2)) + ddFiveOffset);
	ddFive.container.style ? ddFive.container.style.left = newLeft + "px" : ddFive.container.left = newLeft;
}

function getWindowWidth()
{
	return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
}	

var contentSize = 758;
	
var ddOneOffset = 63;
var ddTwoOffset = 137;
var ddThreeOffset = 224;
var ddFourOffset = 404;
var ddFiveOffset = 502;

var ddOne = new ypSlideOutMenu("menu1", "down", 73, 133, 140, 100);
var ddTwo = new ypSlideOutMenu("menu2", "down", 147, 133, 140, 160);
var ddThree = new ypSlideOutMenu("menu3", "down", 234, 133, 120, 120);
var ddFour = new ypSlideOutMenu("menu4", "down", 338, 133, 150, 60);
var ddFive = new ypSlideOutMenu("menu5", "down", 436, 133, 160, 120);

ddOne.onactivate = repositionOne;
ddTwo.onactivate = repositionTwo;
ddThree.onactivate = repositionThree;
ddFour.onactivate = repositionFour;
ddFive.onactivate = repositionFive;
