var re = /\w/;

var quotes = new Array();
quotes[0] = "Perhaps we can bring the day when children will learn from their earliest days that being fully man and fully woman means to give one's life to the liberation of the brother/sister who suffer. It is up to each one of us. It won't happen unless we decide to use our lives to show the way.<br /><em class='author'>-Cesar Chevaz</em>"
quotes[1] = "All truth passes through three stages. First, it is ridiculed. Second, it is violently opposed. Third, it is accepted as being self-evident.<br /><em class='author'>-Arthur Schopenhauer</em>"
quotes[2] = "If you're not outraged, you're not paying attention.<br /><em class='author'>-anonymous</em>"
quotes[3] = "You must be the change you wish to see in the world.<br /><em class='author'>Ghandi</em>"
quotes[4] = "Although social change cannot come overnight, we must always work as though it were a possibility in the morning.<br /><em class='author'>-Martin Luther King, Jr.</em>"
quotes[5] = "Where justice is denied, where poverty is enforced, where ignorance prevails, and where any one class is made to feel that society is in an organized conspiracy to oppress, rob, and degrade them, neither persons nor property will be safe.<br /><em class='author'>-Frederick Douglas</em>"
quotes[6] = "In a time of universal deceit, telling the truth becomes a revolutionary act.<br /><em class='author'>-George Orwell</em>"
quotes[7] = "Tell me and I forget. Show me and I remember. Involve me and I understand.<br /><em class='author'>-Chinese proverb</em>"
quotes[8] = "When will our consciences grow so tender that we will act to prevent human misery rather than avenge it?<br /><em class='author'>-Eleanor Roosevelt</em>"
quotes[9] = "A lot of people are waiting for Martin Luther King or Mahatma Gandhi to come back -- but they are gone. We are it. It is up to us. It is up to you.<br /><em class='author'>-Marian Wright Edelman</em>"
quotes[10] = "As a country, we are in a state of denial about issues of race and racism. And too many of our leaders have concluded that the way to remedy racism is to simply stop talking about race.<br /><em class='author'>-Lani Guinier</em>"
quotes[11] = "I would not give a fig for the simplicity this side of complexity. But I would give my life for the simplicity on the other side of complexity.<br /><em class='author'>-Oliver Wendall Holmes</em>"
quotes[12] = "It is axiomatic that if we do not define ourselves for ourselves, we will be defined by others -- for their use and to our detriment.<br /><em class='author'>-Audre Lorde</em>"
quotes[13] = "If you're going to hold someone down you're going to have to hold on by the other end of the chain. You are confined by your own repression.<br /><em class='author'>-Toni Morrison</em>"
quotes[14] = "Stereotypes abound when there is distance. They are an invention, a pretense that one knows when the steps that would make real knowing possible cannot be taken or are not allowed.<br /><em class='author'>-Bell Hooks</em>"
quotes[15] = "A lot of people are waiting for Martin Luther King or Mahatma Gandhi to come back -- but they are gone. We are it. It is up to us. It is up to you.<br /><em class='author'>-Marian Wright Edelman</em>"

function randomOrder(a, b) {
	return (Math.round(Math.random()) - 0.5);	
}

var currentQuote = 0;
function quote() {
	var quoteID = "thequote";
	var theQuote = document.getElementById(quoteID);
	qu.hide();
	
	currentQuote++;
	if (currentQuote >= quotes.length) currentQuote = 0;
	//alert("currentQuote: " + currentQuote);
	theQuote.innerHTML = quotes[currentQuote];
	qu.toggle();
}

var currentSlide = 1;
function slide(imageID) {
	var currentImage = document.getElementById(imageID);
	ph.hide();
	var num = (!re.test(currentSlide)) ? 1 : parseInt(currentSlide) + 1;

	if (num > 5) num = 1;
	currentSlide = num;
	var imageName = (imageID.indexOf("sub") != -1) ? "./images/subpage.picture" : "./images/picture";
	currentImage.src = imageName + num + ".jpg";
	ph.toggle();
}

