var currItem, 
currItem=-1

var quote=new Array(15)
quote[0]="1. In Chinese, the words for \"understanding principles\" and for \"fame and benefit\" sound alike, but they could not be more opposed. Therefore, the true disciple strives for understanding, not for fame and benefit."
quote[1]="2. Children are like trees; when they are young, they are easy to shape in the right way. You must prune the horizontal branches so the main trunk can be straight and useful for beams in the future."
quote[2]="3. Young friends! Do you know what is the root of being a human? It is the Eight Virtues. They are: filiality, brotherhood, loyalty, trustworthiness, propriety, righteousness, incorruptibility, and a sense of shame."
quote[3]="4. Why is the world inundated with problems of juvenile delinquency? Simply because the parents only bear the children and do not provide them with adequate discipline and education."
quote[4]="5. Our human greed is higher than the sky, thicker than the earth, and deeper than the ocean. It is a bottomless pit, which at all times can never be filled up."
quote[5]="6. If one does not have morality, he is truly poor."
quote[6]="7. If anyone seeks Dharma from me, I will tell him to, \"Eat less, wear less, sleep less.\" This is because, \"Wearing less increases one\'s blessings, eating less increases one\'s life span, and sleeping less increases one\'s wealth.\""
quote[7]="8. People do not live to eat. They live to benefit society with their merit, benefit others with their virtue, and help the entire world. People should \"with kindness and compassion proclaim and transform on behalf of heaven, with upright loyalty rescue the citizens for the sake of the country.\""
quote[8]="9. Throughout my life I am never busy for myself, I am only busy for others. I never bother with my stinking skin bag."
quote[9]="10. Why does the world become worse daily? It\'s because everyone fights -- for fame, advantages, power and status. The worst thing is fighting for desire."
quote[10]="11. I wish to ask for a big gift from all of you. I ask for your temper, ignorance, afflictions, and hatred."
quote[11]="12. Natural disasters are not suffered by Nature. Nature has no disasters. It is the human species which suffers disasters. Man-made calamities are disasters which we bring upon ourselves."
quote[12]="13. Where should we start in order to propagate the Buddhadharma? In my opinion, we should start with education."
quote[13]="14. If we start with education, children will be able to understand the teachings and when they grow up, they can promote them."
quote[14]="15. If you do ghostly things, you are a ghost. If you act like a human being, you\'re a human being. If you do the deeds of Buddhas, you\'re a Buddha."

function ShowItem(itemNo) {
	switch(itemNo) {
		case -2:
			currItem = 0;
			break;
		case -1:
			currItem = currItem - 1;
			if (currItem < 0)
				currItem = 0;
			break;
		case 1:
			currItem = currItem + 1;
			if (currItem > quote.length-1)
				currItem = quote.length-1;
			break;
		case 2:
			currItem = quote.length-1;
			break;
		default:
			break;
	}
	document.quote.text.value=quote[currItem]
}
