var content = new Array(

'This new degree of Bachelor of Science does not guarantee that the holder knows any science. It does guarantee that he does not know any Latin.&rdquo; <div class="quoteby">&#150; Dean Briggs, Harvard College (1900)</div>',

'I believe in Christianity as I believe that the sun has risen, not only because I see it, but because by it I see everything else.&rdquo; <div class="quoteby">&#150; C.S. Lewis</div>',

'Small minds are concerned with the extraordinary, great minds with the ordinary.&rdquo; <div class="quoteby">&#150; Blaise Pascal</div>',

'We should love both those whose opinion we follow, and those whose opinion we reject. For both have applied themselves to the quest for the truth, and both have helped us in it.&rdquo; <div class="quoteby">&#150; St. Thomas Aquinas</div>',

'Pragmatism is a matter of human needs; and one of the first of human needs is to be something more than a pragmatist.&rdquo; <div class="quoteby">&#150; G.K. Chesterton</div>',

'They [universities] are not intended to teach the knowledge required to fit men for some special mode of gaining a livelihood. Their object is not to make skilful lawyers or physicians, but capable and cultivated human beings… Education makes a man a more intelligent shoemaker, but not by teaching him how to make shoes.&rdquo; <div class="quoteby">&#150; John Stuart Mills discussing the purpose of universities when becoming the rector of St. Andrews University in 1867</div>',

'A liberal education is a counter poison to mass culture.&rdquo; <div class="quoteby">&#150; Leo Strauss</div>',

'Education is simply the soul of a society as it passes from one generation to another.&rdquo; <div class="quoteby">&#150; G.K. Chesterton</div>',

'It is the happy man who does the useless things; the sick man is not strong enough to be idle.&rdquo; <div class="quoteby">&#150; G.K. Chesterton</div>',

'We are all under the influence of thinkers we do not read.&rdquo; <div class="quoteby">&#150; Bernard Williams</div>',

'If I had more time, I would have written a shorter letter.&rdquo; <div class="quoteby">&#150; Variously attributed to Mark Twain, T. S. Elliot, and Pascal</div>',

'If I read as many books as most men do, I would be as dull-witted as they are.&rdquo; <div class="quoteby">&#150; Thomas Hobbes</div>',

'A liberal education ought to inculcate both respect for facts and some skepticism about the reliability of what is commonly taken to be fact.&rdquo; <div class="quoteby">&#150; Alan Ryan</div>',

'An educational system is not worth a great deal if it teaches young people how to make a living but does not teach them how to make a life.&rdquo; <div class="quoteby">&#150; Author Unknown</div>',

'The filth that our poor, muddled, sincere, resentful enemies fling at the Holy One, either does not stick, or, sticking, turns into glory.&rdquo; <div class="quoteby">&#150; C.S. Lewis</div>',

'A gentleman need not know Latin, but he should at least have forgotten it.&rdquo; <div class="quoteby">&#150; Brander Matthews</div>'


)

// ***** NO NEED TO EDIT BEYOND THIS POINT ***** //

/* Specifies the period of time between updates:
	month - once a month
	date - once per every day of the month (repeats the next month)
	weekday - once per every day of the week (repeats the next week)
	hour - once per hour (repeats the next day)
	request - once per browser request (default)
*/

var updatePeriods = new Array("month","date","weekday","hour","request")

// Invoked to display rotated HTML content in a Web page. The period
// argument should be an element of the updatePeriods array.

function displayRotatedContent(period) {
 var updatePeriod = -1
 for(var i=0;i<content.length;++i) {
	if(period.toLowerCase() == updatePeriods[i].toLowerCase()) {
		updatePeriod = i
	break
	}
 }
 var s = selectHTML(updatePeriod)
 document.write(s)
}

function selectHTML(updatePeriod) {
 var n = 0
 var max = content.length
 var d = new Date()
 switch(updatePeriod) {
	case 0: // Month (0 - 11)
		n = d.getMonth()
	break
	case 1: // Date (1 - 31 scaled to 0 - 30)
		n = d.getDate() - 1
	break
	case 2: // Weekday (0 - 6)
		n = d.getDay()
	break
	case 3: // Hour (0 - 23)
		n = d.getHours()
	break
	case 4: // Request (Default)
	default:
		n = selectRandom(max)
 }
 n %= max 
 return content[n]
}

// Select a random integer that is between 0 (inclusive) and max (exclusive)
function selectRandom(max) {
 var r = Math.random()
 r *= max
 r = parseInt(r)
 if(isNaN(r)) r = 0
 else r %= max
 return r
}

function classChange(id, newClass)
{
	identity=document.getElementById(id);
	identity.className=newClass;
}

function textonstate(divID)
{
	var item = document.getElementById(divID);
	if (item) {
		item.className=(item.className=='qnavoff')?'topnavon':'qnavoff';
	}
}

function bkgonstate(divID)
{
	var item = document.getElementById(divID);
	if (item) {
		item.className=(item.className=='qbkgoff')?'blackbkg':'qbkgoff';
	}
}

window.defaultStatus ="New Saint Andrews College";
