// @author : Prashant Kommireddi
// @company: UPSI, ASU
// @Date   : 11/15/2007 
// Revised: 09/19/08 (BW)


// Tutorial : Changes to be made to add new quotes
//            1. increase numQuotes by the number of quotes being added
//			  2. set quotes[] array to the new quotes in the function getaQuote(i)
//			  3. set author[] array to the names of respective auhors in the function getAuthor(i)

var numQuotes = 8;

function get_random()
{
    var ranNum= Math.floor(Math.random()*numQuotes);
    return ranNum;
}

function getaQuote(i)
{
     var quote=new Array(numQuotes)
	 
     quote[0] = '"This is a great school, because I like when they make problems and let us solve it in a fun way. I really want to show my family that I can do cursive, but my teacher hasn\'t taught me yet."';
	quote[1] = '"I love Polytechnic Elementary. I\'m learning a whole lot of new stuff.  Some things I am learning are, Grading, Mode, Mean, Median, and Math World Problems.  I\'ve also learned a lot in Writing and Reading.  We do shared inquiry and a dictation test. I\'m learning how to be a leader. I gave a speech in front of my whole class. And now I\'m on Student Council."';
	quote[2] = '"I like Polytechnic Elementary - it\'s hard - it\'s fun - it\'s never boring.  I\'m learning to multiply and how to divide.  I\'m learning different strategies to solve a problem.  I\'m learning about Arizona history. I have Carl Hayden on my desk, so we have to make a Journey Map."';
	quote[3] = '"I think school is wonderful, even though I would rather be playing at home.  I am learning Spanish. My favorite thing about Polytechnic Elementary is P.E. because we get to go outside. I also like Reading."';
	quote[4] = '"I like Polytechnic Elementary School because we don\'t do many worksheets.  I like reading because...well, I like to read."';
	quote[5] = '"What I like about Polytechnic is P.E. and the laptops. We learned to skipcount by 4s, 5s, 3s and 2s. What I like about the school is that we have 2 classrooms stuck together and that we have lots of people in the classroom."';
	quote[6] = '"I like my classroom because it\'s so huge! I\'m learning 2 digit multiplication, it\'s no sweat."';
	quote[7] = '"I like this school because they give you more than 1 lesson on something. And at my old school they gave you 1 lesson and you were on your own. I am also learning to divide better at this school."';
  
   return quote[i];
  }
  
function getAuthor(i)
{
		var author = new Array(numQuotes);
		
		author[0] = '-Cassidy';
		author[1] = '-Emily';
		author[2] = '-Trevor';
		author[3] = '-Grace';
		author[4] = '-Michael';
		author[5] = '-Nate';
		author[6] = '-Sammy';
		author[7] = '-Drew';
	
	return author[i];
}
function quoteBoxText() {
	
	var whichQuote=get_random();
	
	document.getElementById('boxContent').innerHTML = getaQuote(whichQuote);
	document.getElementById('last').innerHTML = getAuthor(whichQuote);
	
	setTimeout("quoteBoxText()",180000);
	
}

