// Quotes - alternates quotes displayed on pages on a set interval


var arrQuotes=[
	'We must support as much as possible the child\'s desires for activity.',
	'The exercises of practical life are formative activities, a work of adaptation to the environment.<br /> \
		Such adaptation to the environment and efficient functioning therein is the very essence <br /> \
		of a useful education.',
	'The real preparation for education is the study of one\'s self.',
	'It is self-evident that the possession of and contact with real things brings, above all, <br /> \
			a real quantity of knowledge.',
	'Our aim is not only to make the child understand, and still less to force him to memorize, <br /> \
			but so to touch his imagination as to enthuse him to his innermost core.',
	'The secret of good teaching is to regard the child\'s intelligence as a fertile field<br /> \
			in which seeds may be sown, to grow under the heat of flaming imagination.',
	'Education starts at birth.',
	'Establishing lasting peace is the work of education.',
	'It is necessary for the teacher to guide the child without letting him feel her presence too much, \
		so that she may always be ready to supply the desired help, but may never be the obstacle between the child and his experience.',
	'A child is a discoverer. He is an amorphous, splendid being <br /> \
			in search of his own proper form.',
	'Our schools show that children of different ages help one another. There are many things which no teacher \
		can convey to a child of three, but a child of five can do it with ease.',
	'Free choice is one of the highest of all the mental processes.',
	'Imitation is the first instinct of the awakening mind.',
	'If the idea of the universe is presented to the child in the right way, <br> \
		it will do more for him than just arouse his interest; it will create in him admiration and wonder, <br> \
		a feeling loftier than any interest and more satisfying.'
];

var quoteIntervalId = 0;

function displayQuote ( )
{ 
    quoteIntervalId = setInterval ( "showQuote()", 20000 );
}

function showQuote ( )
{
	var randnumber=Math.random ( )*1000;
	randnumber=parseInt(randnumber);
	var count_quotes=arrQuotes.length;
	var quoteindex=randnumber%count_quotes;
	document.getElementById("apQuote").innerHTML = '\"' + arrQuotes[quoteindex] + '\"  &mdash; Maria Montessori';
}

