/*
Use the following code as a template for creating a quiz with questions, answers, and scores 

var oQ; 
var oA; 
var oS; 

var oQuiz = new Quiz(); 

	oQuiz.SetQuestionNumberStyle();			// "1" or "A" or "a" or "." or ""
	oQuiz.SetQuestionNumberCssClass();			// CSS class name
	oQuiz.SetRequireAllGuesses();				// true or false 
	oQuiz.SetNeedAllGuessesCssClass();			// CSS class name
	oQuiz.SetNeedAllGuessesHTML();				// ex: "You must answer all questions." 
	oQuiz.SetScoreByPercentage();				// true or false (defaults to false)
	oQuiz.SetScoreCssClass("score");			// CSS class name
	
	// Repeat this indented block for each question 
	oQ = new Question(); 
		oQ.SetQuestionHTML();					// ex: "What is 2 + 2 ?" 
		oQ.SetQuestionCssClass();				// CSS class name 
		oQ.SetCorrectGuessHTML();				// ex: "Correct. Unless you are in Room 101 in the Ministry of Truth (with apologies to George Orwell)." 
		oQ.SetCorrectGuessCssClass();			// CSS class name 
		oQ.SetIncorrectGuessHTML();				// ex: "Incorrect. Practice your addition." 
		oQ.SetIncorrectGuessCssClass();			// CSS class name 
		oQ.SetQuestionType();					// "TF" or "MC" or "MS" :: TF = True/False; MC = Multiple Choice; MS = Multiple Selection 
		oQ.SetQuestionNumber();					// ex: 1 
		oQ.SetRequireAllOrNothing();			// true or false; determines whether Multiple Selection allows partial points for some but not all correct.
		oQ.SetAnswerNumberStyle();				// "1" or "A" or "a" or "." or ""
		oQ.SetAnswerNumberCssClass();			// CSS class name
		oQ.SetPossiblePoints();					// ex: 1
		
		// Repeat this indented block for each answer 
		oA = new Answer(); 
			oA.SetAnswerHTML();					// ex: "4" 
			oA.SetAnswerCssClass();				// CSS class name 
			oA.SetAnswerNumber();				// ex: 1 

			oA.SetPointsForCorrectGuess();		// defaults to 1; ex: 1 
			oA.SetCorrect();					// true or false (defaults to false)
			
			oQ.AddAnswer(oA);
			
		// Optional 
		oQ.RandomizeAnswers(); 
		
		oQuiz.AddQuestion(oQ); 
		
	//Repeat this indented block for each score range 
	oS = new Score(); 
		oS.SetScoreHTML();						// ex: "<b>Expert</b>: You really know your math!" 
		oS.SetMinScore();						// ex: 9 (for points) or 90 (for percent)
		
		oQuiz.AddScore(oS); 
		
	// Optional 
	oQuiz.RandomizeQuestions(); 
	
	// This line actually writes the functioning quiz to the document 
	oQuiz.Render();
*/

var oQ2; 
var oA2; 
var oS2; 

var oQuiz2 = new Quiz(); 
	oQuiz2.SetQuestionNumberStyle("1");
	oQuiz2.SetQuestionNumberCssClass("qnumber");
	oQuiz2.SetRequireAllGuesses(true);
	oQuiz2.SetNeedAllGuessesHTML("Please answer all questions first.");
	oQuiz2.SetNeedAllGuessesCssClass("requireall");
	oQuiz2.SetScoreByPercentage(true);
	oQuiz2.SetScoreCssClass("score");

	// Repeat this indented block for each question 
		
	oQ2 = new Question(); 
		oQ2.SetQuestionHTML("The Minnesota population of people of color did not change much since 2000 and that population will continue to reside mainly in urban areas.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Incorrect: Minnesota is changing. By 2030, at least 16% of Minnesota's population will be people of color, up from 9% in 2000 that population growth will not center in the urban areas of Minneapolis and St. Paul but in suburban and Greater Minnesota's communities.");	
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: Minnesota is changing. By 2030, at least 16% of Minnesota's population will be people of color, up from 9% in 2000, and that population growth will not center in the urban areas of Minneapolis and St. Paul but in suburban and Greater Minnesota's communities.");
		oQ2.SetCorrectGuessCssClass("correct");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(1);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);


	oQ2 = new Question(); 
		oQ2.SetQuestionHTML("White students in the Twin Cities are more than twice as likely as students of color to meet state standards for eleventh grade math scores.");
		oQ2.SetQuestionCssClass("question");
		
		oQ2.SetIncorrectGuessHTML("Correct: In 2007, 42% of white students met or exceeded the state standards (MCA-II test), while just 17% of students of color did.");
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: In 2007, 42% of white students met or exceeded the state standards (MCA-II test), while just 17% of students of color did.");
		oQ2.SetCorrectGuessCssClass("incorrect");
		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(2);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					




		// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2); 


oQ2 = new Question(); 
		oQ2.SetQuestionHTML("White students are approximately twice as likely to graduate from high school within four years as black students.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: Only 43% of black students graduate from high school within four years, a rate less than a half of white students' 87% rate.");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: Only 43% of black students graduate from high school within four years, a rate less than a half of white students' 87% rate.");
		oQ2.SetCorrectGuessCssClass("incorrect");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(3);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);



oQ2 = new Question(); 
		oQ2.SetQuestionHTML("Blacks have an unemployment rate three times higher than whites.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct:  The unemployment rate among whites is 4.3%. Blacks have an unemployment rate that is three times higher (12.9%) than whites, Latinos have an unemployment rate of 6.4%, and the rate among Asian-Pacific Islanders is 5%. ");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: The unemployment rate among whites is 4.3%. Blacks have an unemployment rate that is three times higher (12.9%) than whites, Latinos have an unemployment rate of 6.4%, and the rate among Asian-Pacific Islanders is 5%. ");
		oQ2.SetCorrectGuessCssClass("incorrect");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(4);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);





oQ2 = new Question(); 
		oQ2.SetQuestionHTML("People of color are stopped and searched by police more often than white people.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: People of color are stopped and searched by police with greater frequency, despite data which shows that people of color are less likely than white drivers to be found with contraband when searched. ");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: People of color are stopped and searched by police at greater rates, despite data which shows that people of color are less likely than white drivers to be found with contraband when searched. ");
		oQ2.SetCorrectGuessCssClass("incorrect");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(5);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);





oQ2 = new Question(); 
		oQ2.SetQuestionHTML("People of color are disproportionally represented in Minnesota prisons.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: People of color comprise 14% of the general population yet over 35% of the adult male prison population in Minnesota.");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: People of color comprise 14% of the general population yet over 35% of the adult male prison population in Minnesota. ");
		oQ2.SetCorrectGuessCssClass("incorrect");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(6);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);





// This is optional 
oQuiz2.RandomizeQuestions();		

