

//<![CDATA[

<!--


function Client(){
//if not a DOM browser, hopeless
	this.min = false; if (document.getElementById){this.min = true;};

	this.ua = navigator.userAgent;
	this.name = navigator.appName;
	this.ver = navigator.appVersion;  

//Get data about the browser
	this.mac = (this.ver.indexOf('Mac') != -1);
	this.win = (this.ver.indexOf('Windows') != -1);

//Look for Gecko
	this.gecko = (this.ua.indexOf('Gecko') > 1);
	if (this.gecko){
		this.geckoVer = parseInt(this.ua.substring(this.ua.indexOf('Gecko')+6, this.ua.length));
		if (this.geckoVer < 20020000){this.min = false;}
	}
	
//Look for Firebird
	this.firebird = (this.ua.indexOf('Firebird') > 1);
	
//Look for Safari
	this.safari = (this.ua.indexOf('Safari') > 1);
	if (this.safari){
		this.gecko = false;
	}
	
//Look for IE
	this.ie = (this.ua.indexOf('MSIE') > 0);
	if (this.ie){
		this.ieVer = parseFloat(this.ua.substring(this.ua.indexOf('MSIE')+5, this.ua.length));
		if (this.ieVer < 5.5){this.min = false;}
	}
	
//Look for Opera
	this.opera = (this.ua.indexOf('Opera') > 0);
	if (this.opera){
		this.operaVer = parseFloat(this.ua.substring(this.ua.indexOf('Opera')+6, this.ua.length));
		if (this.operaVer < 7.04){this.min = false;}
	}
	if (this.min == false){
		alert('Your browser may not be able to handle this page.');
	}
	
//Special case for the horrible ie5mac
	this.ie5mac = (this.ie&&this.mac&&(this.ieVer<6));
}

var C = new Client();

//for (prop in C){
//	alert(prop + ': ' + C[prop]);
//}



//CODE FOR HANDLING NAV BUTTONS AND FUNCTION BUTTONS

//[strNavBarJS]
function NavBtnOver(Btn){
	if (Btn.className != 'NavButtonDown'){Btn.className = 'NavButtonUp';}
}

function NavBtnOut(Btn){
	Btn.className = 'NavButton';
}

function NavBtnDown(Btn){
	Btn.className = 'NavButtonDown';
}
//[/strNavBarJS]

function FuncBtnOver(Btn){
	if (Btn.className != 'FuncButtonDown'){Btn.className = 'FuncButtonUp';}
}

function FuncBtnOut(Btn){
	Btn.className = 'FuncButton';
}

function FuncBtnDown(Btn){
	Btn.className = 'FuncButtonDown';
}

function FocusAButton(){
	if (document.getElementById('CheckButton1') != null){
		document.getElementById('CheckButton1').focus();
	}
	else{
		if (document.getElementById('CheckButton2') != null){
			document.getElementById('CheckButton2').focus();
		}
		else{
			document.getElementsByTagName('button')[0].focus();
		}
	}
}




//CODE FOR HANDLING DISPLAY OF POPUP FEEDBACK BOX

var topZ = 1000;

function ShowMessage(Feedback){
	var Output = Feedback + '<br /><br />';
	document.getElementById('FeedbackContent').innerHTML = Output;
	var FDiv = document.getElementById('FeedbackDiv');
	topZ++;
	FDiv.style.zIndex = topZ;
	FDiv.style.top = TopSettingWithScrollOffset(30) + 'px';
//IE can't focus a hidden div; Moz needs to focus before display to avoid jumping
	if (C.gecko){
		document.getElementById('FeedbackOKButton').focus();
	}
	FDiv.style.display = 'block';

	ShowElements(false, 'input');
	ShowElements(false, 'select');
	ShowElements(false, 'object');
	if (C.ie){
		document.getElementById('FeedbackOKButton').focus();
	}
	
//
}

function ShowElements(Show, TagName){
//Special for IE bug -- hide all the form elements that will show through the popup
	if (C.ie){
		var Els = document.getElementsByTagName(TagName);
		for (var i=0; i<Els.length; i++){
			if (Show == true){
				Els[i].style.display = 'inline';
			}
			else{
				Els[i].style.display = 'none';
			}
		}
	} 
}

function HideFeedback(){
	document.getElementById('FeedbackDiv').style.display = 'none';
	ShowElements(true, 'input');
	ShowElements(true, 'select');
	ShowElements(true, 'object');
	if (Finished == true){
		Finish();
	}
}


//GENERAL UTILITY FUNCTIONS AND VARIABLES

//PAGE DIMENSION FUNCTIONS
function PageDim(){
//Get the page width and height
	this.W = 600;
	this.H = 400;
	this.W = document.getElementsByTagName('body')[0].clientWidth;
	this.H = document.getElementsByTagName('body')[0].clientHeight;
}

var pg = null;

function GetPageXY(El) {
	var XY = {x: 0, y: 0};
	while(El){
		XY.x += El.offsetLeft;
		XY.y += El.offsetTop;
		El = El.offsetParent;
	}
	return XY;
}

function GetScrollTop(){
	if (document.documentElement && document.documentElement.scrollTop){
		return document.documentElement.scrollTop;
	}
	else{
		if (document.body){
 			return document.body.scrollTop;
		}
		else{
			return window.pageYOffset;
		}
	}
}

function GetViewportHeight(){
	if (window.innerWidth){
		return window.innerWidth;
	}
	else{
		return document.getElementsByTagName('body')[0].clientHeight;
	}
}

function TopSettingWithScrollOffset(TopPercent){
	var T = Math.floor(GetViewportHeight() * (TopPercent/100));
	return GetScrollTop() + T; 
}

//CODE FOR AVOIDING LOSS OF DATA WHEN BACKSPACE KEY INVOKES history.back()
var InTextBox = false;

function SuppressBackspace(e){ 
	if (InTextBox == true){return;}
	if (C.ie) {
		thisKey = window.event.keyCode;
	}
	else {
		thisKey = e.keyCode;
	}

	var Suppress = false;

	if (thisKey == 8) {
		Suppress = true;
	}

	if (Suppress == true){
		if (C.ie){
			window.event.returnValue = false;	
			window.event.cancelBubble = true;
		}
		else{
			e.preventDefault();
		}
	}
}

if (C.ie){
	document.attachEvent('onkeydown',SuppressBackspace);
	window.attachEvent('onkeydown',SuppressBackspace);
}
else{
	window.addEventListener('keypress',SuppressBackspace,false);
}

function ReduceItems(InArray, ReduceToSize){
	var ItemToDump=0;
	var j=0;
	while (InArray.length > ReduceToSize){
		ItemToDump = Math.floor(InArray.length*Math.random());
		InArray.splice(ItemToDump, 1);
	}
}

function Shuffle(InArray){
	Temp = new Array();
	var Len = InArray.length;

	var j = Len;

	for (var i=0; i<Len; i++){
		Temp[i] = InArray[i];
	}

	for (i=0; i<Len; i++){
		Num = Math.floor(j  *  Math.random());
		InArray[i] = Temp[Num];

		for (var k=Num; k < j; k++) {
			Temp[k] = Temp[k+1];
		}
		j--;
	}
	return InArray;
}

function WriteToInstructions(Feedback) {
//	Feedback = '<span class="FeedbackText">' + Feedback + '</span>';
	document.getElementById('InstructionsDiv').innerHTML = Feedback;

}




function EscapeDoubleQuotes(InString){
	return InString.replace(/"/g, '&quot;')
}

function FocusAButton(){
	if (document.getElementById('CheckButton1') != null){
		document.getElementById('CheckButton1').focus();
	}
	else{
		document.getElementsByTagName('button')[0].focus();
	}
}

function TrimString(InString){
        var x = 0;

        if (InString.length != 0) {
                while ((InString.charAt(InString.length - 1) == '\u0020') || (InString.charAt(InString.length - 1) == '\u000A') || (InString.charAt(InString.length - 1) == '\u000D')){
                        InString = InString.substring(0, InString.length - 1)
                }

                while ((InString.charAt(0) == '\u0020') || (InString.charAt(0) == '\u000A') || (InString.charAt(0) == '\u000D')){
                        InString = InString.substring(1, InString.length)
                }

                while (InString.indexOf('  ') != -1) {
                        x = InString.indexOf('  ')
                        InString = InString.substring(0, x) + InString.substring(x+1, InString.length)
                 }

                return InString;
        }

        else {
                return '';
        }
}

function FindLongest(InArray){
	if (InArray.length < 1){return -1;}

	var Longest = 0;
	for (var i=1; i<InArray.length; i++){
		if (InArray[i].length > InArray[Longest].length){
			Longest = i;
		}
	}
	return Longest;
}

//UNICODE CHARACTER FUNCTIONS
function IsCombiningDiacritic(CharNum){
	var Result = (((CharNum >= 0x0300)&&(CharNum <= 0x370))||((CharNum >= 0x20d0)&&(CharNum <= 0x20ff)));
	Result = Result || (((CharNum >= 0x3099)&&(CharNum <= 0x309a))||((CharNum >= 0xfe20)&&(CharNum <= 0xfe23)));
	return Result;
}

function IsCJK(CharNum){
	return ((CharNum >= 0x3000)&&(CharNum < 0xd800));
}

//SETUP FUNCTIONS
//BROWSER WILL REFILL TEXT BOXES FROM CACHE IF NOT PREVENTED
function ClearTextBoxes(){
	var NList = document.getElementsByTagName('input');
	for (var i=0; i<NList.length; i++){
		if ((NList[i].id.indexOf('Guess') > -1)||(NList[i].id.indexOf('Gap') > -1)){
			NList[i].value = '';
		}
		if (NList[i].id.indexOf('Chk') > -1){
			NList[i].checked = '';
		}
	}
}

//EXTENSION TO ARRAY OBJECT
function Array_IndexOf(Input){
	var Result = -1;
	for (var i=0; i<this.length; i++){
		if (this[i] == Input){
			Result = i;
		}
	}
	return Result;
}
Array.prototype.indexOf = Array_IndexOf;

//IE HAS RENDERING BUG WITH BOTTOM NAVBAR
function RemoveBottomNavBarForIE(){
	if ((C.ie)&&(document.getElementById('Reading') != null)){
		if (document.getElementById('BottomNavBar') != null){
			document.getElementById('TheBody').removeChild(document.getElementById('BottomNavBar'));
		}
	}
}




//HOTPOTNET-RELATED CODE

var HPNStartTime = (new Date()).getTime();
var SubmissionTimeout = 30000;
var Detail = ''; //Global that is used to submit tracking data

function Finish(){
//If there's a form, fill it out and submit it
	if (document.store != null){
		Frm = document.store;
		Frm.starttime.value = HPNStartTime;
		Frm.endtime.value = (new Date()).getTime();
		Frm.mark.value = Score;
		Frm.detail.value = Detail;
		Frm.submit();
	}
}



//JQUIZ CORE JAVASCRIPT CODE

var CurrQNum = 0;
var CorrectIndicator = ':-)';
var IncorrectIndicator = 'X';
var YourScoreIs = 'Your score is ';
var ContinuousScoring = true;
var CorrectFirstTime = 'Questions answered correctly first time: ';
var ShowCorrectFirstTime = false;
var ShuffleQs = true;
var ShuffleAs = true;
var DefaultRight = 'Correct!';
var DefaultWrong = 'Sorry! Try again.';
var QsToShow = 10;
var Score = 0;
var Finished = false;
var Qs = null;
var QArray = new Array();
var ShowingAllQuestions = false;
var ShowAllQuestionsCaption = 'Show all questions';
var ShowOneByOneCaption = 'Show questions one by one';
var State = new Array();
var Feedback = '';
var TimeOver = false;

//The following variable can be used to add a message explaining that
//the question is finished, so no further marking will take place.
var strQuestionFinished = '';

function CompleteEmptyFeedback(){
	var QNum, ANum;
	for (QNum=0; QNum<I.length; QNum++){
//Only do this if not multi-select
		if (I[QNum][2] != '3'){
  		for (ANum = 0; ANum<I[QNum][3].length; ANum++){
  			if (I[QNum][3][ANum][1].length < 1){
  				if (I[QNum][3][ANum][2] > 0){
  					I[QNum][3][ANum][1] = DefaultRight;
  				}
  				else{
  					I[QNum][3][ANum][1] = DefaultWrong;
  				}
  			}
  		}
		}
	}
}

function SetUpQuestions(){
	var AList = new Array(); 
	var QList = new Array();
	var i, j;
	Qs = document.getElementById('Questions');
	while (Qs.getElementsByTagName('li').length > 0){
		QList.push(Qs.removeChild(Qs.getElementsByTagName('li')[0]));
	}
	var DumpItem = 0;
	while (QsToShow < QList.length){
		DumpItem = Math.floor(QList.length*Math.random());
		for (j=DumpItem; j<(QList.length-1); j++){
			QList[j] = QList[j+1];
		}
		QList.length = QList.length-1;
	}
	if (ShuffleQs == true){
		QList = Shuffle(QList);
	}
	if (ShuffleAs == true){
		var As;
		for (var i=0; i<QList.length; i++){
			As = QList[i].getElementsByTagName('ol')[0];
			if (As != null){
  			AList.length = 0;
				while (As.getElementsByTagName('li').length > 0){
					AList.push(As.removeChild(As.getElementsByTagName('li')[0]));
				}
				AList = Shuffle(AList);
				for (j=0; j<AList.length; j++){
					As.appendChild(AList[j]);
				}
			}
		}
	}
	
	for (i=0; i<QList.length; i++){
		Qs.appendChild(QList[i]);
		QArray[QArray.length] = QList[i];
	}

//Show the first item
	QArray[0].style.display = '';
	
//Now hide all except the first item
	for (i=1; i<QArray.length; i++){
		QArray[i].style.display = 'none';
	}		
	SetQNumReadout();
}

function ChangeQ(ChangeBy){
	if (((CurrQNum + ChangeBy) < 0)||((CurrQNum + ChangeBy) >= QArray.length)){return;}
	QArray[CurrQNum].style.display = 'none';
	CurrQNum += ChangeBy;
	QArray[CurrQNum].style.display = '';
	SetQNumReadout();
//if there's a textbox, set the focus in it
	if (QArray[CurrQNum].getElementsByTagName('input')[0] != null){
		QArray[CurrQNum].getElementsByTagName('input')[0].focus();
	}
}

function SetQNumReadout(){
	document.getElementById('QNumReadout').innerHTML = (CurrQNum+1) + ' / ' + QArray.length;
}

I=new Array();
I[0]=new Array();I[0][0]=100;
I[0][1]='';
I[0][2]='0';
I[0][3]=new Array();
I[0][3][0]=new Array('A Sovereign State','Right!  This is the legal definition of a nation which administers its own government, and is not dependent upon, or subject to, another power.',1,100,1);
I[0][3][1]=new Array('An Independent State','Close, but not quite correct.  Being independent does speak to the first condition, that of being free of foreign control, but not all independent states are capable of conducting their own business on an international scale.',0,0,1);
I[0][3][2]=new Array('A Republic','Nope.  A Republic is a political system in which the supreme power lies in a body of citizens who can elect people to represent them.  It is a form of government, not the legal name of a nation free of foreign control and able to conduct its own business. ',0,0,1);
I[0][3][3]=new Array('A Constitutional Democracy','Sorry.  This term refers simply to a form of government, a democracy, which is governed by a formal, legal document known as a constitution.  It doesn\'t speak to that nation\'s ability to conduct its own business or whether it is free of foreign control.',0,0,1);
I[0][3][4]=new Array('A Commonwealth','Sorry.  A Commonwealth is simply a nation or state governed by the people.  This term says nothing about that nation\'s ability to be free of foreign control or its ability to conduct its own business.',0,0,1);
I[1]=new Array();I[1][0]=100;
I[1][1]='';
I[1][2]='0';
I[1][3]=new Array();
I[1][3][0]=new Array('Ambassadors','Correct!  These are accredited persons who represent our government in the capitals of foreign countries around the world.',1,100,1);
I[1][3][1]=new Array('The Defense Department','Sorry.  Treaties, negotiations and business matters between the U.S. and foreign nations are not the responsibilities of the Defense Department.',0,0,1);
I[1][3][2]=new Array('The New York Stock Exchange','Nope.  While the New York Stock Exchange, one of the many trading and stock exchanges world-wide, is concerned with business on a global scale, the NYSE does not conduct the negotiations and exchanges between the U.S. and foreign nations.',0,0,1);
I[1][3][3]=new Array('The Vice President','Nope.  This is not one of the many functions of the Vice President.',0,0,1);
I[1][3][4]=new Array('The Secretary of Commerce','Sorry.  While the Secretary of Commerce is certainly concerned with business relationships and transactions between the U.S. and other countries, it is not the Secretary of Commerce that generally conducts the vast majority of this business.',0,0,1);
I[2]=new Array();I[2][0]=100;
I[2][1]='';
I[2][2]='0';
I[2][3]=new Array();
I[2][3][0]=new Array('Negotiations','Right!  The purpose of these talks, or negotiations, is to come up with treaties of friendship, military alliances, and commercial agreements that are mutually beneficial to both countries.',1,100,1);
I[2][3][1]=new Array('Treaties','Nope.  Treaties are legal documents between governments that confer specific rights and obligations on both parties. ',0,0,1);
I[2][3][2]=new Array('Conventions','Nope.  In the context of International Relations, conventions can be thought of as the normal behavior and rules that describe how nations act towards one another in everyday practice.  It can also refer to a set of specific agreements between nations.',0,0,1);
I[2][3][3]=new Array('Diplomacy','Sorry.  This is defined by the <em>Oxford English Dictionary</em> as "the management of international relations by negotiation, and the method by which these relations are adjusted and managed by ambassadors and envoys."',0,0,1);
I[2][3][4]=new Array('Embassies','Nope.  An embassy is a building containing the offices of an ambassador and his or her staff.  Embassies are generally held to be the same as the "home soil" of the country they represent.',0,0,1);
I[3]=new Array();I[3][0]=100;
I[3][1]='';
I[3][2]='0';
I[3][3]=new Array();
I[3][3][0]=new Array('International Law','Correct!  International Law is divided into public and private bodies of law.  The former deals with relations between sovereign states, and the latter with relations between individuals in different countries.',1,100,1);
I[3][3][1]=new Array('The Rule of Law','Sorry.  This term refers to the principle that every member of a society, even a ruler, must follow the law. ',0,0,1);
I[3][3][2]=new Array('Civil Law','Nope.  Civil law covers suits of one party by another for such matters as breach of contract or negligence.  ',0,0,1);
I[3][3][3]=new Array('Diplomatic Law','Nope.  There was no such term used in the reading or in class.',0,0,1);
I[3][3][4]=new Array('Diplomacy','Sorry.  This is defined by the <em>Oxford English Dictionary</em> as "the management of international relations by negotiation, and the method by which these relations are adjusted and managed by ambassadors and envoys."',0,0,1);
I[4]=new Array();I[4][0]=100;
I[4][1]='';
I[4][2]='0';
I[4][3]=new Array();
I[4][3][0]=new Array('Public Law','Right!  Public Law is the main focus of this Unit and Chapter.',1,100,1);
I[4][3][1]=new Array('Private Law','Sorry.  Private Law is the part of International Law that deals with relations between individuals in different countries.',0,0,1);
I[4][3][2]=new Array('Civil Law','Sorry.  Civil law deals with private offenses, such as violations of contracts, and failure of professional duty.',0,0,1);
I[4][3][3]=new Array('Criminal Law','Nope.  Criminal Law is the body of the law that deals with conduct considered so harmful to society as a whole that it is prohibited by statute, prosecuted and punished by the government. ',0,0,1);
I[4][3][4]=new Array('Diplomatic Law','Nope.  There was no such term used in the reading or in class.',0,0,1);
I[5]=new Array();I[5][0]=100;
I[5][1]='';
I[5][2]='0';
I[5][3]=new Array();
I[5][3][0]=new Array('Private Law','Right!  This part of International Law is generally handled by consular services.',1,100,1);
I[5][3][1]=new Array('Public Law','Sorry.  Public Law deals with the relations between sovereign states.',0,0,1);
I[5][3][2]=new Array('Civil Law','Sorry.  Civil law deals with private offenses, such as violations of contracts, and failure of professional duty, but only in regards to relations between individuals within the same country.',0,0,1);
I[5][3][3]=new Array('Criminal Law','Nope.  Criminal Law is the body of the law that deals with conduct considered so harmful to society as a whole that it is prohibited by statute, prosecuted and punished by the government. ',0,0,1);
I[5][3][4]=new Array('Common Law','Nope.  Common Law is an unwritten body of law based on general custom in England and used to an extent in the United States.  ',0,0,1);
I[6]=new Array();I[6][0]=100;
I[6][1]='';
I[6][2]='0';
I[6][3]=new Array();
I[6][3][0]=new Array(' Bureaucratic','Right!  Good bureaucracy does not equate to strong diplomacy.',1,100,1);
I[6][3][1]=new Array('Military','Sorry.  A strong military is an important consideration in the mind of the country you are dealing with, whether or not the threat or implied threat of using that force plays into the talks.  This strengthens your diplomatic efforts.  With a weak military, your diplomacy suffers.',0,0,1);
I[6][3][2]=new Array('Economic','Sorry.  Without a strong economic base, diplomacy fails.  It needs to be understood that you have the material resources as a nation to see your desires through.',0,0,1);
I[6][3][3]=new Array('Moral','Nope.  If your people are not behind you, the chances are you will not succeed in negotiations.  During the latter part of the Vietnam War, for example, the U.S. had the economic and military strength necessary to enable strong diplomacy, but lacked the moral strength of a population supporting the war.',0,0,1);
I[6][3][4]=new Array('Allied','Nope.  The allies that you have and the strength of those alliances can hurt or help your overall diplomatic efforts.',0,0,1);
I[7]=new Array();I[7][0]=100;
I[7][1]='';
I[7][2]='0';
I[7][3]=new Array();
I[7][3][0]=new Array('The Greek city-states','Correct!  The Peloponnesian Wars between Athens and Sparta lasted over an extended period of time and allowed for a number of advancements in International Law and negotiations.',1,100,1);
I[7][3][1]=new Array('Egypt','Sorry.  While Egypt is discussed as the first time we see a written record of specific International Law writings, the development of international arbitration did not appear at that time.',0,0,1);
I[7][3][2]=new Array('Babylon','Sorry.  It doesn\'t go that far back.  You may be thinking of the civil Code of Hammurabi I, from 1,700 BC.  That is the earliest known example of a written Civil Law.',0,0,1);
I[7][3][3]=new Array('France','Nope.  These innovations in International Law came well before the establishment of France as a independent state.',0,0,1);
I[7][3][4]=new Array('Rome','Nope.  We did discuss the contributions of Justinian I in regards to the codification of civil law, but that was under the Military Law section.',0,0,1);
I[8]=new Array();I[8][0]=100;
I[8][1]='';
I[8][2]='0';
I[8][3]=new Array();
I[8][3][0]=new Array('Embassies','Right.  The ?Embassy? of one country is that country&#x2019;s main diplomatic office that is physically located in another nation.',1,100,1);
I[8][3][1]=new Array('City-States','Sorry.  The term "City-states" refers to small nations that have existed throughout history which are small geographically but exist as independent, sovereign nations.',0,0,1);
I[8][3][2]=new Array('Councils','Nope.  Councils are assemblies of people meeting to consult, deliberate, or advise on a certain issue.',0,0,1);
I[8][3][3]=new Array('Missions','Sorry.  Missions can be used by ambassadors in this manner, but they can also be headed by a <em>charges d affaires</em>',0,0,1);
I[8][3][4]=new Array('Legations','Nope.  While a legation is a permanent diplomatic mission headed by a minister, it is not a name for the same thing headed by an ambassador.',0,0,1);
I[9]=new Array();I[9][0]=100;
I[9][1]='';
I[9][2]='0';
I[9][3]=new Array();
I[9][3][0]=new Array('Venice','Right!  This happened late in the fifteenth century.',1,100,1);
I[9][3][1]=new Array('Florence','Sorry.  Florence, the home of Niccolo Machiavelli, was a key city-state at this time but it wasn&#x2019;t the nation that first established permanent resident embassies in other nations.',0,0,1);
I[9][3][2]=new Array('Genoa','Sorry.  While Genoa was one of the powerful city-states at this time, it wasn\'t the first to establish permanent resident embassies.',0,0,1);
I[9][3][3]=new Array('Rome','Nope, it wasn\'t Rome.  Think even further North!',0,0,1);
I[9][3][4]=new Array('Naples','Nope, it wasn\'t Naples.  Think farther North!',0,0,1);
I[10]=new Array();I[10][0]=100;
I[10][1]='';
I[10][2]='0';
I[10][3]=new Array();
I[10][3][0]=new Array('Trade and commerce matters','Right.  This is still the main focus of Consular Services today.',1,100,1);
I[10][3][1]=new Array('Political matters','Sorry.  This was the focus of the Diplomatic Service, which began at approximately the same time.',0,0,1);
I[10][3][2]=new Array('Military matters','Sorry.  Military affairs were not the focus of the Consular Services.',0,0,1);
I[10][3][3]=new Array('City council matters','Nope.  Sounds like it might be the case but it is not.  Consular Services deal with International Law matters, not local city council matters.',0,0,1);
I[10][3][4]=new Array('International Criminal Law','Nope.  While this has been a growing part of International Law today, it wasn\'t a separate part of International Law at this time and is not something the Consular Services were designed to deal with.',0,0,1);
I[11]=new Array();I[11][0]=100;
I[11][1]='';
I[11][2]='0';
I[11][3]=new Array();
I[11][3][0]=new Array('Niccolo Machiavelli','Right.  Machiavelli\'s detailed descriptions of the unscrupulous practices that were common in the politics of the time created the term <em>Machiavellian</em>, used to this day to describe unethical political activities.',1,100,1);
I[11][3][1]=new Array('Hugo Grotius','Sorry.  Hugo Grotius, considered to be the Father of International Law, wrote his text, <em>On the Law of War and Peace</em>, in the early 17th century.  This was well after the timeframe when <em>The Prince</em> was written.',0,0,1);
I[11][3][2]=new Array('Plato','Nope.  Plato lived at a time when many changes were occurring to International Law, but this was around 400 BC and not in the early 16th century.',0,0,1);
I[11][3][3]=new Array('Dean Rusk','Nope.  Dean Rusk was the U.S. Secretary of State from 1961 - 1969. ',0,0,1);
I[11][3][4]=new Array('Justinian I','Sorry.  During Justinian\'s reign, Roman Civil Law was <a href="javascript:alert(\'enacted by a legislative body\')">codified</a>, but this was done many hundreds of years earlier than the 16th century.',0,0,1);
I[12]=new Array();I[12][0]=100;
I[12][1]='';
I[12][2]='0';
I[12][3]=new Array();
I[12][3][0]=new Array('Hugo Grotius','Right!  Grotius book, <em>On the Law of War and Peace</em>, is still considered to be an important reference on international law today.',1,100,1);
I[12][3][1]=new Array('Niccolo Machiavelli','Sorry.  Machiavelli was a student of politics and of international law, publishing the book &#x003C;em&#x003E;The Prince&#x003C;/em&#x003E; to detail his observations of the unethical political activities common to medieval courts and city-states during the 16th century.  He is not, however, considered to be the father of international law.',0,0,1);
I[12][3][2]=new Array('Dean Rusk','Sorry.  Dean Rusk  was the U.S. Secretary of State from 1961 - 1969.   He was a student of international law and had some important observations about it, but he is not considered the father of international law.',0,0,1);
I[12][3][3]=new Array('Aristotle ','Nope.  While Aristotle did write on and about International Relations and International Law, he is not remembered as being the father of international law.',0,0,1);
I[12][3][4]=new Array('Carl Von Clausewitz','Nope.  Clausewitz\'s book, <em>The Art of War</em>, is studied to this day for it\'s theory and application to military strategy and tactics, but he is not considered as the father of international law.',0,0,1);
I[13]=new Array();I[13][0]=100;
I[13][1]='';
I[13][2]='0';
I[13][3]=new Array();
I[13][3][0]=new Array('A treaty or convention.','Right.  Treaties and conventions are sources of law that bind countries together just as a contract binds the parties to it under national law.',1,100,1);
I[13][3][1]=new Array('A referendum','Sorry.  A referendum refers to the submission of a law, proposed or already in effect, to a direct vote of the people.  ',0,0,1);
I[13][3][2]=new Array('A proclamation','Nope.  A proclamation is a formal public statement, particularly from the Government, and not a contract between independent nations. ',0,0,1);
I[13][3][3]=new Array('International Law','Nope.  The term International Law refers to the system of rules and principles, founded on treaty, custom precedent, and consensus, which civilized sovereign nations recognize as binding on the mutual relations between them.',0,0,1);
I[13][3][4]=new Array('A Legation','Nope.  A Legation is a permanent diplomatic mission headed by a minister.',0,0,1);
I[14]=new Array();I[14][0]=100;
I[14][1]='';
I[14][2]='0';
I[14][3]=new Array();
I[14][3][0]=new Array('Country','Right!  Under International Law, the term "Country" only pertains to these things and not the political entity that governs that country or the people within that country.',1,100,1);
I[14][3][1]=new Array('Nation','Sorry.  The term "Nation" refers to people of common blood ties, language, customs and, perhaps, religion.',0,0,1);
I[14][3][2]=new Array('State','Sorry.  The term "State" refers to the governmental authority of a particular political entity.  Think of it in terms of the form of government a particular Sovereign State may have.',0,0,1);
I[14][3][3]=new Array('Area','Nope.  The term "Area" can be used when describing territorial limits but it is not limited to just this use and does not have a specific definition under International Law.',0,0,1);
I[14][3][4]=new Array('Confines','Nope.  While the term confines can refer to geographic boundaries on a map, it can also refer to much smaller areas, such as the inside of a building or dwelling.  This is not the term used to describe territorial limits under International Law.',0,0,1);
I[15]=new Array();I[15][0]=100;
I[15][1]='';
I[15][2]='0';
I[15][3]=new Array();
I[15][3][0]=new Array('Nation','Correct!  Nations of people may or may not have their own Sovereign State.  The Cherokee Nation, for example, is a common people connected through blood ties, language, customs and religion, yet they do not have their own Sovereign State under International Law.',1,100,1);
I[15][3][1]=new Array('State','Sorry.  Under International Law, the term "State" refers to the governmental authority of a particular political entity.  Think of it in terms of the form of government a particular Sovereign State may have.',0,0,1);
I[15][3][2]=new Array('Country','Sorry.  Under International Law, the term "Country" refers to  territorial limits or geographic boundaries on a map.',0,0,1);
I[15][3][3]=new Array('Population','Nope.  Population generally refers to numbers of people and is not used in International Law to refer to common ties such as languages and customs.',0,0,1);
I[15][3][4]=new Array('Demographics','Nope.  Demographics are statistics or objective and quantifiable characteristics of an audience or population. Demographic designators might include age, marital status, income, family size, occupation, and personal or household characteristics such as age, sex, income, or educational level.',0,0,1);
I[16]=new Array();I[16][0]=100;
I[16][1]='';
I[16][2]='0';
I[16][3]=new Array();
I[16][3][0]=new Array('State','Correct!  Specifically, it is a politically organized body of people under a single government.',1,100,1);
I[16][3][1]=new Array('Country','Sorry.  Under International Law, the term "Country" refers to  territorial limits or geographic boundaries on a map.',0,0,1);
I[16][3][2]=new Array('Nation','Sorry.  The term "Nation" refers to people of common blood ties, language, customs and, perhaps, religion.',0,0,1);
I[16][3][3]=new Array('Republic','Nope.  A Republic is a form of government, but not the only type of governmental authority.  There is another term listed that refers to all forms of governmental authority.',0,0,1);
I[16][3][4]=new Array('Governing Council','Nope.  While a governing council is a type of governmental authority, it is not the only type of governmental authority.  There is another term listed that refers to all forms of governmental authority.',0,0,1);
I[17]=new Array();I[17][0]=100;
I[17][1]='';
I[17][2]='0';
I[17][3]=new Array();
I[17][3][0]=new Array('Its geographic size must meet an agreed upon minimum.','Right.  There is no minimum size requirement.  Luxembourg and Monaco are examples of this.',1,100,1);
I[17][3][1]=new Array('It is a permanently organized legal society or government.','Sorry.  Until a permanent, stable government is in place, International Law will not recognize it as a separate Sovereign State.',0,0,1);
I[17][3][2]=new Array('It is a fixed territory, free from control of any other state.','Sorry.  Until a state is in complete control of it\'s borders and internal affairs, they cannot be considered a Sovereign State under International Law.',0,0,1);
I[17][3][3]=new Array('It has the ability to enter into associations with other states.','Sorry.  In order to be considered a Sovereign State and enter into international agreements, the entity has to have the capability to engage in official negotiations and formalize treaties with other states.',0,0,1);
I[17][3][4]=new Array('All of the listed characteristics are required before recognition as a Sovereign State under International Law.','Nope.  One of those listed is not a specific requirement.',0,0,1);
I[18]=new Array();I[18][0]=100;
I[18][1]='';
I[18][2]='0';
I[18][3]=new Array();
I[18][3][0]=new Array('Switzerland','Right!  Switzerland has held this status since the Congress of Vienna in 1815.',1,100,1);
I[18][3][1]=new Array('Belgium','Sorry.  While often declaring itself a neutral state, as in World Wars I and II, Belgium is not a neutralized state and is, in fact, an active member of the NATO alliance.',0,0,1);
I[18][3][2]=new Array('Canada','Sorry.  Canada is not a neutralized state and has taken part in many conflicts, most recently as a part of the coalition forces that defeated the Taliban in Afghanistan.',0,0,1);
I[18][3][3]=new Array('Monaco','Nope.  While small in size and often neutral in international conflicts, Monaco is not a neutralized state.',0,0,1);
I[18][3][4]=new Array('Denmark','Nope.  Denmark is not a neutralized state and is an active member of NATO.',0,0,1);
I[19]=new Array();I[19][0]=100;
I[19][1]='';
I[19][2]='0';
I[19][3]=new Array();
I[19][3][0]=new Array('The British Commonwealth of Nations','Right!  This group of over 50 States enjoy complete sovereignty and independence in their internal and external affairs, but acknowledge an ideological allegiance to the British Crown.',1,100,1);
I[19][3][1]=new Array('The North Atlantic Treaty Organization (NATO)','Sorry.  India is not a member of NATO.  NATO is made up of North Atlantic and European States. ',0,0,1);
I[19][3][2]=new Array('The European Union','Nope.  India is not a part of the EU and is not in the same geographic region.',0,0,1);
I[19][3][3]=new Array('The Trust Territories of the Pacific Islands','Nope.  These trust territories were established after the U.S. took control of these islands, some 2,100, after the defeat of the Japanese at the end of World War II.  The United Nations formally dissolved this organization in 1990 and it became the Commonwealth of the Northern Marianas.',0,0,1);
I[19][3][4]=new Array('The Commonwealth of the Northern Marianas.','Sorry.  This Commonwealth is made up of the Pacific Ocean Micronesian islands that had formerly been known as the Trust Territories of the Pacific Islands.  The U.S. retains responsibility for the security of this Commonwealth.',0,0,1);
I[20]=new Array();I[20][0]=100;
I[20][1]='';
I[20][2]='0';
I[20][3]=new Array();
I[20][3][0]=new Array('Japan','Right.  Japan had gained possession of these islands from the Germans following World War I.  Japan\'s defeat in World War II led to their establishment as trust territories, administered by the United States.',1,100,1);
I[20][3][1]=new Array('The United States','Sorry.  The United States assumed administrative and defensive control of these islands once there were established as Trust Territories, but not before.',0,0,1);
I[20][3][2]=new Array('Great Britain','Sorry.  While Great Britain had explored these islands, and even claimed some of them much earlier in history, they were not the nation that controlled them prior to their establishment as trust territories.',0,0,1);
I[20][3][3]=new Array('Canada','Nope.  Canada never had control over of significant interest in these islands.',0,0,1);
I[20][3][4]=new Array('Australia','Nope.  While Australia is geographically close to this area, it is not the country that had control of these islands prior to their establishment as trust territories.',0,0,1);
I[21]=new Array();I[21][0]=100;
I[21][1]='';
I[21][2]='0';
I[21][3]=new Array();
I[21][3][0]=new Array('The United States','Right.  When the United Nations formally dissolved the Trust Territories of the Pacific Islands in 1990, this group of some 2,100 islands was reorganized as the Commonwealth of the Northern Marianas and given U.S. citizenship.',1,100,1);
I[21][3][1]=new Array('Great Britain','Sorry.  These islands and these people are not a part of the British Commonwealth of Nations and do not hold British citizenship.',0,0,1);
I[21][3][2]=new Array('Japan','Nope.  Had Japan won World War II, this probably would have been the case.',0,0,1);
I[21][3][3]=new Array('The United Nations','Nope.  The United Nations does not grant citizenship in it\'s name.',0,0,1);
I[21][3][4]=new Array('They do not hold formal citizenship','Sorry.  They are considered citizens of one of the States listed.',0,0,1);
I[22]=new Array();I[22][0]=100;
I[22][1]='';
I[22][2]='0';
I[22][3]=new Array();
I[22][3][0]=new Array('The right to engage in preventative war','Correct.  Preventive war is considered illegal under International Law, since it is based on presumption and not proof.',1,100,1);
I[22][3][1]=new Array('The right of independence','Sorry.  The right and guarantee of independence is a fundamental right of all sovereign states.',0,0,1);
I[22][3][2]=new Array('The right of freedom from interference or intervention','Nope.  International Law requires that other states not interfere in the internal affairs of any sovereign state.',0,0,1);
I[22][3][3]=new Array('The right of continued existence','Sorry.  The fundamental right of any sovereign state to continued existence is guaranteed under International Law.  Until lately, this has hampered peace efforts in the Middle East when the Palestinian State refused to recognize Israel\'s right to existence.',0,0,1);
I[22][3][4]=new Array('The right of self-defense','Nope.  Every sovereign state has the fundamental right to defend its people and its borders from outside threat.',0,0,1);
I[23]=new Array();I[23][0]=100;
I[23][1]='';
I[23][2]='0';
I[23][3]=new Array();
I[23][3][0]=new Array('Belligerents','Right.  Belligerents engaged in a legal war have specific duties under International Law, including observing treaties, care for prisoners of war, following the rules of warfare, protecting aliens and protecting human rights.',1,100,1);
I[23][3][1]=new Array('Contestants','Sorry.  Perhaps you are thinking of game shows.  This is not the term used under International Law.',0,0,1);
I[23][3][2]=new Array('Criminal','Nope.  Under International Law there are legal wars and this is not the term used to describe sovereign states involved in a legal war.',0,0,1);
I[23][3][3]=new Array('Neutralized','Sorry.  Remember, a neutralized state is one where there has been an international recognition of a particular state a permanently neutral in all conflicts.  Presently, Switzerland is the only formally recognized neutralized state.',0,0,1);
I[23][3][4]=new Array('Opponents',' Nope.  While they would be opponents in common language, this is not the legal term used under International Law.',0,0,1);
I[24]=new Array();I[24][0]=100;
I[24][1]='';
I[24][2]='0';
I[24][3]=new Array();
I[24][3][0]=new Array('The right of self-defense.','Correct.  This is not a responsibility of belligerents but a fundamental right of all sovereign states.',1,100,1);
I[24][3][1]=new Array('The care of prisoners of war','Sorry.  International Law (the Geneva Conventions, for example) specifically addresses the care and treatment of prisoners of war and belligerent states must comply with these rules to the greatest degree possible.',0,0,1);
I[24][3][2]=new Array('The protection of aliens','Nope.  Aliens here mean neutral or third-country nationals, not little green men.  Aliens and other non-combatants have rights under International Law that must be respected by the belligerent states at war.',0,0,1);
I[24][3][3]=new Array('The protection of human rights','Nope.  Failure to observe and protect basic human rights is considered illegal even in a legal war between belligerents.',0,0,1);
I[24][3][4]=new Array('The responsibility to follow rules of warfare.','Sorry.  In a legal war, there are internationally accepted rules of warfare that belligerents must observe.',0,0,1);
I[25]=new Array();I[25][0]=100;
I[25][1]='';
I[25][2]='0';
I[25][3]=new Array();
I[25][3][0]=new Array('The right of legation','Correct!  It also guarantees the right to receive similar representatives from others for the same purposes.',1,100,1);
I[25][3][1]=new Array('The right of litigation','Sorry.  Litigation is the process of bringing a law suit to court, and not a specific right under International Law dealing with official representation. ',0,0,1);
I[25][3][2]=new Array('The right of self-defense','Sorry.  Although this is a fundamental right of all sovereign states recognized under International Law, it has nothing to do with representation and diplomatic negotiations between two sovereign states.',0,0,1);
I[25][3][3]=new Array('The right of ambassadors','Nope.  Although ambassadors do have specific rights under International Law, this is not the term that refers to the right of a sovereign state to have representatives, such as ambassadors, in another sovereign state.',0,0,1);
I[25][3][4]=new Array('Diplomatic Immunity','Nope.  Diplomatic Immunity refers to the exemption from taxation or normal processes of law that is offered to diplomatic personnel in a foreign country ',0,0,1);
I[26]=new Array();I[26][0]=100;
I[26][1]='';
I[26][2]='0';
I[26][3]=new Array();
I[26][3][0]=new Array('Attach\u00E9s accredited to heads of state','Right!  while Attach\u00E9s are assigned to diplomatic posts, they cannot act as the head of a diplomatic mission.',1,100,1);
I[26][3][1]=new Array('Ambassadors accredited to heads of state','Sorry.  Ambassadors is considered to be the personal representative of the head of sate for his or her country and the highest rank of a head of a mission.',0,0,1);
I[26][3][2]=new Array('Envoys accredited to heads of state','Nope.  The title of Envoy is one of the three recognized diplomatic titles which can head up a diplomatic mission.',0,0,1);
I[26][3][3]=new Array('Ministers accredited to heads of state','Nope.  The title of Minister is one of the three recognized diplomatic titles which can head up a diplomatic mission.',0,0,1);
I[26][3][4]=new Array('Charg\u00E9s d\u2019 Affairs accredited to ministers for foreign affairs','Sorry.  Charg\u00E9s d\u2019 Affairs is one of the three classes and is the lowest rank of a head of a mission.',0,0,1);
I[27]=new Array();I[27][0]=100;
I[27][1]='';
I[27][2]='0';
I[27][3]=new Array();
I[27][3][0]=new Array('The Vienna Convention on Diplomatic Relations','Right!  This important Convention formally established the three classes which are currently accepted by the United states and most other nations.',1,100,1);
I[27][3][1]=new Array('The United Nations Treaty on Diplomatic Representation','Nope.  There was no such United Nations Treaty.',0,0,1);
I[27][3][2]=new Array('The Geneva Conventions on Diplomatic Missions','Sorry.  The Geneva Conventions did not discuss specific titles and classes of heads of diplomatic missions.',0,0,1);
I[27][3][3]=new Array('The Law of the Seas Conventions','Sorry.  The Law of the Seas Conventions are an important and ongoing example of international negotiations but they are not concerned with diplomatic representations and procedures.',0,0,1);
I[27][3][4]=new Array('The Organization of American States Representation Convention','Nope.  There was not such Convention by the OAS.',0,0,1);
I[28]=new Array();I[28][0]=100;
I[28][1]='';
I[28][2]='0';
I[28][3]=new Array();
I[28][3][0]=new Array('Charg\u00E9s d\u2019 Affairs accredited to ministers for foreign affairs','Correct!  Although considered equal when service as heads of missions, they are not considered to be the personal representative of a head of state, such as an ambassador is.  Also, they take the lowest precedence during ceremonies at official functions.',1,100,1);
I[28][3][1]=new Array('Ministers accredited to heads of state','Sorry.  Ministers are closer to the top of the rankings rather than at the bottom.',0,0,1);
I[28][3][2]=new Array('Envoys accredited to heads of state','Nope.  Envoys fit somewhere in the middle of the rankings.',0,0,1);
I[28][3][3]=new Array('Ambassadors accredited to heads of state','Nope.  An Ambassador is the highest ranking official at a diplomatic mission, not the lowest.',0,0,1);
I[28][3][4]=new Array('Attach\u00E9s accredited to heads of state','Sorry.  Attach\u00E9s are assigned to embassies and diplomatic missions, but they cannot head them.',0,0,1);
I[29]=new Array();I[29][0]=100;
I[29][1]='';
I[29][2]='0';
I[29][3]=new Array();
I[29][3][0]=new Array('A democratic form of government.','Right!  The U.S. has no requirement as to the type of government of that state so long as the will of the people is reflected in that style of government.',1,100,1);
I[29][3][1]=new Array('Control of the territory claimed.','Nope.  In order to be granted diplomatic recognition by the U.S., they must be able to prove undeniable and undisputed control of their country.',0,0,1);
I[29][3][2]=new Array('The will of the people reflected in the government.','Sorry.  This is one of the main sticking points for recognition and prevents dictators and other non-representative leaders from obtaining formal recognition by the U.S.',0,0,1);
I[29][3][3]=new Array('The preparedness of the new state to honor international obligations','Sorry.  The new state must be capable and agreeable to honor its obligations under International Law.',0,0,1);
I[29][3][4]=new Array('These are all requirements placed on states by the U.S. in order to obtain formal diplomatic recognition.','Nope.  There is one on the list that is not a requirement.',0,0,1);
I[30]=new Array();I[30][0]=100;
I[30][1]='';
I[30][2]='0';
I[30][3]=new Array();
I[30][3][0]=new Array('De facto','Right!  Several states which have diplomatic recognition within the United Nations, including Cuba, Laos, North Korea and Cambodia, are only given de facto recognition by the U.S. and not the "by law" or "de jure" recognition afforded to other states.',1,100,1);
I[30][3][1]=new Array('De Jure','Sorry.  De Jure means "By Law" and has the exact opposite meaning than the correct term.',0,0,1);
I[30][3][2]=new Array('Di Journo','Nope.  This is, of course, a type of pizza and not a term under International Law.',0,0,1);
I[30][3][3]=new Array('Non Grata','Nope.  "Personal non grata" is a term that is used when an host government declares a representative from another country not acceptable and demands his or her removal.',0,0,1);
I[30][3][4]=new Array('En Hecho','Sorry.  This does mean "In Fact" in Spanish, but this is not the correct term under International Law.',0,0,1);
I[31]=new Array();I[31][0]=100;
I[31][1]='';
I[31][2]='0';
I[31][3]=new Array();
I[31][3][0]=new Array('They are selected by the Department of Defense and assigned by their Services.','Right!  Exactly the opposite is true.  They are assigned by the Department of Defense and selected by their Services.',1,100,1);
I[31][3][1]=new Array('They have the same diplomatic immunities and protection s the ambassador.','Sorry.  They do enjoy these same privileges and protections.  If they break local laws, however, host governments can declare them "Personal non grata" and demand their removal.',0,0,1);
I[31][3][2]=new Array('The senior attach\u00E9, regardless of Service, is called the Military Attach\u00E9.','Nope.  No matter which Service he or she is from, the senior attach\u00E9 at a Mission or Embassy is referred to as the Military Attach\u00E9.',0,0,1);
I[31][3][3]=new Array('Their primary duty is collecting information of intelligence value.','Sorry.  The collection of such information and the forwarding of it to the Department of Defense is their primary duty.',0,0,1);
I[31][3][4]=new Array('They are regarded as high-ranking members of the ambassador\'s official staff.','Nope.  They are, in fact, regarded as such at embassies throughout the world.',0,0,1);
I[32]=new Array();I[32][0]=100;
I[32][1]='';
I[32][2]='0';
I[32][3]=new Array();
I[32][3][0]=new Array('The League of Nations','Right!  Although the league failed to preserve peace and was ultimately disbanded, it provided the world with valuable experience in the association of states to settle political, economic, and social problems by peaceful means.',1,100,1);
I[32][3][1]=new Array('The United Nations','Sorry.  The United Nations has the same mission, but it was founded after World War II, not World War I.',0,0,1);
I[32][3][2]=new Array('The Organization of American States','Sorry.  The Organization of American States was established for a similar purpose but it wasn\'t founded until 1948.',0,0,1);
I[32][3][3]=new Array('The North Atlantic Treaty Organization','Nope.  NATO was formed after World War II to counter the influence of the Soviet Union in Europe and the North Atlantic.',0,0,1);
I[32][3][4]=new Array('The Congress of Vienna','Nope.  While an important milestone in International Law, this Congress met in 1815 following the abdication of Napoleon Bonaparte in 1814.  This was a hundred years before the end of World War I.',0,0,1);
I[33]=new Array();I[33][0]=100;
I[33][1]='';
I[33][2]='0';
I[33][3]=new Array();
I[33][3][0]=new Array('India','Right!  Although a nuclear power (an important characteristic when the Security Council was formed), it is not a permanent member of the Council.',1,100,1);
I[33][3][1]=new Array('France','Nope.  Believe it or not, France is a permanent member of the Security Council.',0,0,1);
I[33][3][2]=new Array('Britain','Sorry.  Britain has been one of the five permanent members since the foundation of the Security Council.',0,0,1);
I[33][3][3]=new Array('Russia','Nope.  Initially it held this position as the Soviet Union, but retained this permanent spot on the Security Council following the bread-0up of the Soviet Union in the early 1990s.',0,0,1);
I[33][3][4]=new Array('China','Sorry.  China has always had a major role in the Security Council and is  one of the five permanent members.',0,0,1);
I[34]=new Array();I[34][0]=100;
I[34][1]='';
I[34][2]='0';
I[34][3]=new Array();
I[34][3][0]=new Array('Ten, Two-years','Correct!  Procedural matters acted on by the council require at least nine affirmative votes for passage.',1,100,1);
I[34][3][1]=new Array('Ten, Three years','Sorry.  You are right on one count but wrong on the other.',0,0,1);
I[34][3][2]=new Array('Ten, Four years','Sorry.  You are right on one count but wrong on the other.',0,0,1);
I[34][3][3]=new Array('Seven, Three years','Nope.  You are wrong on both counts here.',0,0,1);
I[34][3][4]=new Array('Seven, Four years','Nope.  Unfortunately you are wrong on both counts!',0,0,1);
I[35]=new Array();I[35][0]=100;
I[35][1]='';
I[35][2]='0';
I[35][3]=new Array();
I[35][3][0]=new Array('Nine affirmative votes from any of the Council members.','Correct!  In this case the permanent members\' affirmative vote is not a factor.  It is, however, when the measure is deemed substantive.',1,100,1);
I[35][3][1]=new Array('Nine, but they must include those of the five permanent powers.','Sorry.  The permanent members\' affirmative vote is only a factor in substantive measures, not non-substantive measures.',0,0,1);
I[35][3][2]=new Array('Seven, but they must include those of the five permanent powers.','Nope.  The requirement is higher and in this case the permanent powers are not an issue.',0,0,1);
I[35][3][3]=new Array('Seven affirmative votes from any of the Council members.','Sorry.  The requirement is higher than that.',0,0,1);
I[35][3][4]=new Array('A simple majority of 8 of the 15 Council members.','Nope.  The requirement is higher than that.',0,0,1);
I[36]=new Array();I[36][0]=100;
I[36][1]='';
I[36][2]='0';
I[36][3]=new Array();
I[36][3][0]=new Array('The Yalta Formula','Right!  This was based on the assumption that if the Security council was to carry out its responsibility effectively in the United Nations, agreement of the five major world powers was essential for any real action.',1,100,1);
I[36][3][1]=new Array('The Potsdam Formula','Sorry.  While the meetings at Potsdam during World War II did discuss post-war issues, the formation of the United Nations and the Security Council were not among them.',0,0,1);
I[36][3][2]=new Array('The Geneva Conventions','Sorry.  The Geneva Conventions covered many things, including the treatment of Prisoners of War during conflicts, but this was before the formation of the United Nations and the Security Council.',0,0,1);
I[36][3][3]=new Array('The Congress of Vienna','Nope.  The congress of Vienna was an important step forward in International Law and occurred in 1814 following the 1814 abdication of Napoleon Bonaparte.',0,0,1);
I[36][3][4]=new Array('The Big Five Veto','Nope.  While the permanent members of the UN Security Council are known as the "Big Five" and do exercise veto power, this is not the name given to this voting arrangement.',0,0,1);
I[37]=new Array();I[37][0]=100;
I[37][1]='';
I[37][2]='0';
I[37][3]=new Array();
I[37][3][0]=new Array('Operation Enduring Freedom','Right.  This operation to eliminate the Taliban and the Al Quida terrorist organization they hosted did not come from a UN mandate, but was the result of an international coalition organized by the U.S.',1,100,1);
I[37][3][1]=new Array('The Korean War','Sorry.  The Soviet Union was boycotting the U.N. at this time and the remaining members of the Security Council authorized the use of force to remove North Korean troops from South Korea.',0,0,1);
I[37][3][2]=new Array('Operation Desert Storm','Nope.  This operation to liberate Kuwait from Iraqi Forces was given a full U.N. mandate.',0,0,1);
I[37][3][3]=new Array('Operation Desert Shield','Nope.  This initial operation to defend Saudi Arabia was endorsed and fully supported by the U.N.',0,0,1);
I[37][3][4]=new Array('The Bosnian Conflict','Sorry.  The UN, as well as NATO, was very much involved in trying to prevent and then limit the scope of this conflict.  Several cities within Bosnia were designated as UN safe havens or enclaves.',0,0,1);
I[38]=new Array();I[38][0]=100;
I[38][1]='';
I[38][2]='0';
I[38][3]=new Array();
I[38][3][0]=new Array('The supported the U.S. invasion of Grenada in 1984.','Right!  This was one instance where the opinion of the majority of nations within the OAS differed from that of the U.S.',1,100,1);
I[38][3][1]=new Array('They supported the U.S. intervention in the Dominican Republic in 1965.','Sorry.  The OAS fully supported the successful U.S. intervention in and stabilization of the Dominican Republic in 1965.',0,0,1);
I[38][3][2]=new Array('They supported the 1962 quarantine of Cuba during the Cuban Missile Crisis.','Nope.  The OAS did support this quarantine.',0,0,1);
I[38][3][3]=new Array('Cuba dropped out of the organization in 1962.','Sorry.  Cuba dropped out of the organization in 1962 due to the organization\'s anti-communist stance and for its support of the U.S. quarantine of Cuba during the Cuban Missile Crisis.',0,0,1);
I[38][3][4]=new Array('The organization is largely anti-communist in its philosophy.','Nope.  It has generally leaned against communism both when founded in 1948 and in most of its decisions and actions since.',0,0,1);
I[39]=new Array();I[39][0]=100;
I[39][1]='';
I[39][2]='0';
I[39][3]=new Array();
I[39][3][0]=new Array('Mutual Assistance','Correct.  The best example of this is a the NATO countries\' making available areas for United States overseas bases.  This is an extremely valuable contribution to the mutual defense effort.',1,100,1);
I[39][3][1]=new Array('Collective Bargaining','Nope.  This is a term generally refers to negotiations between labor union representatives and employers to reach agreement on a contract describing such matters as wages, hours and working conditions.  ',0,0,1);
I[39][3][2]=new Array('Collective Security','Sorry.  You are close.  While defense agreements are generally collective security agreements, there is a better term to describe the involvement of countries besides the U.S. in these instances.',0,0,1);
I[39][3][3]=new Array('Bipartisan Politics','Nope.  Bipartisan politics is a term used to refer to an effort endorsed by both political parties or a group composed of members of both political parties.  It is generally used for politics within a single sovereign state, and not between states.',0,0,1);
I[39][3][4]=new Array('Collaboration','Sorry.  While collaboration can be seen as joint efforts to achieve common purposes, it is not the term used to describe assisting and contribution to common defense.',0,0,1);
I[40]=new Array();I[40][0]=100;
I[40][1]='';
I[40][2]='0';
I[40][3]=new Array();
I[40][3][0]=new Array('Switzerland','Correct!  As a permanently neutralized state, Switzerland cannot enter into regional defense pacts such as NATO.',1,100,1);
I[40][3][1]=new Array('Denmark','Nope.  Denmark is a long-standing member of NATO.',0,0,1);
I[40][3][2]=new Array('Poland','Sorry.  While a relatively new entry into the organization, Poland is a member of NATO.',0,0,1);
I[40][3][3]=new Array('Hungary','Sorry.  Hungary is another of the newer members of NATO, having formally been a member of the Warsaw Pact during the Cold War years.',0,0,1);
I[40][3][4]=new Array('Spain','Nope.  Spain is a long-standing member of NATO.',0,0,1);
I[41]=new Array();I[41][0]=100;
I[41][1]='';
I[41][2]='0';
I[41][3]=new Array();
I[41][3][0]=new Array('Asylum','Right!  The right of asylum is a basic and fundamental human right and it is fully recognized under International Law.',1,100,1);
I[41][3][1]=new Array('Diplomacy','Sorry.  Diplomacy, in its simplest form, is negotiation between nations.',0,0,1);
I[41][3][2]=new Array('Arbitration','Sorry.  Arbitration is the hearing and determination of a dispute by an impartial referee agreed to by both parties.',0,0,1);
I[41][3][3]=new Array('Sovereignty','Nope.  Sovereignty is defined as government free from external control.',0,0,1);
I[41][3][4]=new Array('Legation','Nope.  A legation is a permanent diplomatic mission headed by an envoy or minister.',0,0,1);
I[42]=new Array();I[42][0]=100;
I[42][1]='';
I[42][2]='0';
I[42][3]=new Array();
I[42][3][0]=new Array('Reciprocity','Right!  The negotiation of reciprocal agreements is the foundation of international diplomacy.',1,100,1);
I[42][3][1]=new Array('Diplomacy','Sorry.  Diplomacy, in its simplest form, is negotiation between nations., but it is not always cooperative and may not involve the exchange of favors or privileges.',0,0,1);
I[42][3][2]=new Array('Legation','Nope.  A legation is a permanent diplomatic mission headed by an envoy or minister.',0,0,1);
I[42][3][3]=new Array('Recognition','Nope.  Recognition of one sovereign state by another is a diplomatic process whereby these things can occur, but it does not have to be mutual or cooperative.',0,0,1);
I[42][3][4]=new Array('Collective','Sorry.  The word "Collective" is used in International Law to describe agreed upon action by a group of states, but it is not used in the context of the question asked above.',0,0,1);


function StartUp(){
	RemoveBottomNavBarForIE();

//If there's only one question, no need for question navigation controls
	if (QsToShow < 2){
		document.getElementById('QNav').style.display = 'none';
	}
	

	

	
	CompleteEmptyFeedback();

	SetUpQuestions();
	ClearTextBoxes();
	CreateStatusArray();
	

	
//Check search string for q parameter
	if (document.location.search.length > 0){
		if (ShuffleQs == false){
			var JumpTo = parseInt(document.location.search.substring(1,document.location.search.length))-1;
			if (JumpTo <= QsToShow){
				ChangeQ(JumpTo);
			}
		}
	}
}

function ShowHideQuestions(){
	FuncBtnOut(document.getElementById('ShowMethodButton'));
	document.getElementById('ShowMethodButton').style.display = 'none';
	if (ShowingAllQuestions == false){
		for (var i=0; i<QArray.length; i++){
				QArray[i].style.display = '';
			}
		document.getElementById('Questions').style.listStyleType = 'decimal';
		document.getElementById('OneByOneReadout').style.display = 'none';
		document.getElementById('ShowMethodButton').innerHTML = ShowOneByOneCaption;
		ShowingAllQuestions = true;
	}
	else{
		for (var i=0; i<QArray.length; i++){
				if (i != CurrQNum){
					QArray[i].style.display = 'none';
				}
			}
		document.getElementById('Questions').style.listStyleType = 'none';
		document.getElementById('OneByOneReadout').style.display = '';
		document.getElementById('ShowMethodButton').innerHTML = ShowAllQuestionsCaption;
		ShowingAllQuestions = false;	
	}
	document.getElementById('ShowMethodButton').style.display = 'inline';
}

function CreateStatusArray(){
	var QNum, ANum;
//For each item in the item array
	for (QNum=0; QNum<I.length; QNum++){
//Check if the question still exists (hasn't been nuked by showing a random selection)
		if (document.getElementById('Q_' + QNum) != null){
			State[QNum] = new Array();
			State[QNum][0] = -1; //Score for this q; -1 shows question not done yet
			State[QNum][1] = new Array(); //answers
			for (ANum = 0; ANum<I[QNum][3].length; ANum++){
				State[QNum][1][ANum] = 0; //answer not chosen yet; when chosen, will store its position in the series of choices
			}
			State[QNum][2] = 0; //tries at this q so far
			State[QNum][3] = 0; //incrementing percent-correct values of selected answers
			State[QNum][4] = 0; //penalties incurred for hints
			State[QNum][5] = ''; //Sequence of answers chosen by number
		}
		else{
			State[QNum] = null;
		}
	}
}



function CheckMCAnswer(QNum, ANum, Btn){
//if question doesn't exist, bail
	if (State[QNum].length < 1){return;}
	
//Get the feedback
	Feedback = I[QNum][3][ANum][1];
	
//Now show feedback and bail if question already complete
	if (State[QNum][0] > -1){
//Add an extra message explaining that the question
// is finished if defined by the user
		if (strQuestionFinished.length > 0){Feedback += '<br />' + strQuestionFinished;}
//Show the feedback
		ShowMessage(Feedback);
		return;
	}
	
//Hide the button while processing
	Btn.style.display = 'none';

//Increment the number of tries
	State[QNum][2]++;
	
//Add the percent-correct value of this answer
	State[QNum][3] += I[QNum][3][ANum][3];
	
//Store the try number in the answer part of the State array, for tracking purposes
	State[QNum][1][ANum] = State[QNum][2];
	State[QNum][5] += String.fromCharCode(65+ANum) + ',';
	
//Should this answer be accepted as correct?
	if (I[QNum][3][ANum][2] < 1){
//It's wrong

//Mark the answer
		Btn.innerHTML = IncorrectIndicator;
		
//Check whether this leaves just one MC answer unselected, in which case the Q is terminated
		var RemainingAnswer = FinalAnswer(QNum);
		if (RemainingAnswer > -1){
//Behave as if the last answer had been selected, but give no credit for it
//Increment the number of tries
			State[QNum][2]++;		
		
//Calculate the score for this question
			CalculateMCQuestionScore(QNum);

//Get the overall score and add it to the feedback
			CalculateOverallScore();
			if ((ContinuousScoring == true)||(Finished == true)){
				Feedback += '<br />' + YourScoreIs + ' ' + Score + '%.';
				WriteToInstructions(YourScoreIs + ' ' + Score + '%.');
			}
		}
	}
	else{
//It's right
//Mark the answer
		Btn.innerHTML = CorrectIndicator;
				
//Calculate the score for this question
		CalculateMCQuestionScore(QNum);

//Get the overall score and add it to the feedback
		if (ContinuousScoring == true){
			CalculateOverallScore();
			if ((ContinuousScoring == true)||(Finished == true)){
				Feedback += '<br />' + YourScoreIs + ' ' + Score + '%.';
				WriteToInstructions(YourScoreIs + ' ' + Score + '%.');
			}
		}
	}
	
//Show the button again
	Btn.style.display = 'inline';
	
//Finally, show the feedback	
	ShowMessage(Feedback);
	
//Check whether all questions are now done
	CheckFinished();
}

function CalculateMCQuestionScore(QNum){
	var Tries = State[QNum][2] + State[QNum][4]; //include tries and hint penalties
	var PercentCorrect = State[QNum][3];
	var TotAns = GetTotalMCAnswers(QNum);
	var HintPenalties = State[QNum][4];
	
//Make sure it's not already complete

	if (State[QNum][0] < 0){
//Allow for Hybrids
		if (HintPenalties >= 1){
			State[QNum][0] = 0;
		}
		else{
//This line calculates the score for this question
			State[QNum][0] = ((TotAns-((Tries*100)/State[QNum][3]))/(TotAns-1));
		}
		if (State[QNum][0] < 0){
			State[QNum][0] = 0;
		}
	}
}

function GetTotalMCAnswers(QNum){
	var Result = 0;
	for (var ANum=0; ANum<I[QNum][3].length; ANum++){
		if (I[QNum][3][ANum][4] == 1){ //This is an MC answer
			Result++;
		}
	}
	return Result;
}

function FinalAnswer(QNum){
	var UnchosenAnswers = 0;
	var FinalAnswer = -1;
	for (var ANum=0; ANum<I[QNum][3].length; ANum++){
		if (I[QNum][3][ANum][4] == 1){ //This is an MC answer
			if (State[QNum][1][ANum] < 1){ //This answer hasn't been chosen yet
				UnchosenAnswers++;
				FinalAnswer = ANum;
			}
		}
	}
	if (UnchosenAnswers == 1){
		return FinalAnswer;
	}
	else{
		return -1;
	}
}





function CalculateOverallScore(){
	var TotalWeighting = 0;
	var TotalScore = 0;
	
	for (var QNum=0; QNum<State.length; QNum++){
		if (State[QNum] != null){
			if (State[QNum][0] > -1){
				TotalWeighting += I[QNum][0];
				TotalScore += (I[QNum][0] * State[QNum][0]);
			}
		}
	}
	Score = Math.floor((TotalScore/TotalWeighting)*100);
}

function CheckFinished(){
	var FB = '';
	var AllDone = true;
	for (var QNum=0; QNum<State.length; QNum++){
		if (State[QNum] != null){
			if (State[QNum][0] < 0){
				AllDone = false;
			}
		}
	}
	if (AllDone == true){
	
//Report final score and submit if necessary
		CalculateOverallScore();
		FB = YourScoreIs + ' ' + Score + '%.';
		if (ShowCorrectFirstTime == true){
			var CFT = 0;
			for (QNum=0; QNum<State.length; QNum++){
				if (State[QNum] != null){
					if (State[QNum][0] >= 1){
						CFT++;
					}
				}
			}
			FB += '<br />' + CorrectFirstTime + ' ' + CFT + '/' + QsToShow;
		}
		WriteToInstructions(FB);
		
		Finished == true;

		TimeOver = true;
		Locked = true;
		


		Finished = true;
		Detail = '<?xml version="1.0"?><hpnetresult><fields>';
		for (QNum=0; QNum<State.length; QNum++){
			if (State[QNum] != null){
				if (State[QNum][5].length > 0){
					Detail += '<field><fieldname>Question #' + (QNum+1) + '</fieldname><fieldtype>question-tracking</fieldtype><fieldlabel>Q ' + (QNum+1) + '</fieldlabel><fieldlabelid>QuestionTrackingField</fieldlabelid><fielddata>' + State[QNum][5] + '</fielddata></field>';
				}
			}
		}
		Detail += '</fields></hpnetresult>';
		setTimeout('Finish()', SubmissionTimeout);
	}
}










//-->

//]]>


