// JavaScript Document
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function showquote(page) {
	
	aboutquotes = new Array(5);
	servicesquotes = new Array(5);
	experiencequotes = new Array(5);
	resourcesquotes = new Array(5);
	contactquotes = new Array(5);
	
	aboutquotes[0] = "Change in all things is sweet. <i>~Aristotle</i>";
	aboutquotes[1] = "A wise man can see more from the bottom of a well than a fool can from a mountain top. <i>~unknown</i>";
	aboutquotes[2] = "Design is not just what it looks like and feels like. Design is how it works. <i>~Steve Jobs</i>";
	aboutquotes[3] = "Ability will never catch up with the demand for it. <i>~Malcolm Forbes</i>";
	aboutquotes[4] = "Energy and persistence conquer all things. <i>~Benjamin Franklin</i>";
	
	servicesquotes[0] = "Pleasure in the job puts perfection in the work. <i>~Aristotle"
	servicesquotes[1] = "Nothing astonishes men so much as common sense and plain dealing. <br><i>~Ralph Waldo Emerson</i>";
	servicesquotes[2] = "We are what we repeatedly do. Excellence, then, is not an act, but a habit. <i>~Aristotle</i>";
	servicesquotes[3] = "First, master your instrument. Then forget all that [stuff] and play! <i>~Charlie Parker</i>";
	servicesquotes[4] = "I'm a great believer in luck, and I find the harder I work the more I have of it. <i>~Thomas Jefferson</i>"; 
	
	experiencequotes[0] = "The reward of a thing well done, is to have done it. <i>~Ralph Waldo Emerson</i>";
	experiencequotes[1] = "Opportunity is missed by most people because it is dressed in overalls and looks like work. <i>~Thomas Edison</i>";
	experiencequotes[2] = "Get happiness out of your work, or you may never know what happiness is. <br><i>~Elbert Hubbard</i>";
	experiencequotes[3] = "Intelligence plus character: that is the goal of real education. <i>~Martin Luther King, Jr.</i>";	experiencequotes[4] = "It's not enough that we do our best; sometimes we have to do what's required. <i>~Sir Winston Churchill</i>";
	
	resourcesquotes[0] = "The adventure of knowledge is just as important as the knowledge of adventure. <i>~Delvin Lee</i>";
	resourcesquotes[1] = "Education is what survives when what has been learned has been forgotten. <i>~B.F.Skinner</i>";
	resourcesquotes[2] = "The foundation of every state is the education of its youth. <i>~Diogenes Laertius</i>";
	resourcesquotes[3] = "The great aim of education is not knowledge but action. <i>~Herbert Spencer</i>";
	resourcesquotes[4] = "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information on it. <i>~Samuel Johnson</i>";
	
	contactquotes[0] = "Life moves pretty fast. If you don't stop and look around once in a while, you could miss it. <i>~Ferris Bueller</i>";
	contactquotes[1] = "Only the meek get pinched. The bold survive. <i>~Ferris Bueller</i>";
	contactquotes[2] = "If knowledge can create problems, it is not through ignorance that we can solve them. <i>~Isaac Asimov</i>";
	contactquotes[3] = "Quotation, n: The act of repeating erroneously the words of another.<br><i>~Ambrose Bierce</i>";
	contactquotes[4] = "If computers get too powerful, we can organize them into a committee - that will do them in. <i>~Bradley's Bromide</i>";
	
	var target = document.getElementById('randomquote');
	var rand = Math.floor(Math.random()*5);
	
	if (page=="about") target.innerHTML = aboutquotes[rand];
	if (page=="services") target.innerHTML = servicesquotes[rand];
	if (page=="experience") target.innerHTML = experiencequotes[rand];
	if (page=="resources") target.innerHTML = resourcesquotes[rand];
	if (page=="contact") target.innerHTML = contactquotes[rand];
}
	
	
	

