<!doctype html>
<html>
<head>
<title>Country Quiz - RJM Programming - January, 2017</title>
<script type='text/javascript'>
var thisq=-1;
var lastq=-1;
var uprefix="http://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?title=My%20World%20Quiz&onclick=y&width=556&height=347&country=Country&popularity=Intensity";
var cscore='';
var tname='';
var okn='';

//002 - Africa 015 - Northern Africa DZ, EG, EH, LY, MA, SD, SS, TN
//011 - Western Africa BF, BJ, CI, CV, GH, GM, GN, GW, LR, ML, MR, NE, NG, SH, SL, SN, TG
//017 - Middle Africa AO, CD, ZR, CF, CG, CM, GA, GQ, ST, TD
//014 - Eastern Africa BI, DJ, ER, ET, KE, KM, MG, MU, MW, MZ, RE, RW, SC, SO, TZ, UG, YT, ZM, ZW
//018 - Southern Africa BW, LS, NA, SZ, ZA
//150 - Europe 154 - Northern Europe GG, JE, AX, DK, EE, FI, FO, GB, IE, IM, IS, LT, LV, NO, SE, SJ
//155 - Western Europe AT, BE, CH, DE, DD, FR, FX, LI, LU, MC, NL
//151 - Eastern Europe BG, BY, CZ, HU, MD, PL, RO, RU, SU, SK, UA
//039 - Southern Europe AD, AL, BA, ES, GI, GR, HR, IT, ME, MK, MT, CS, RS, PT, SI, SM, VA, YU
//019 - Americas 021 - Northern America BM, CA, GL, PM, US
//029 - Caribbean AG, AI, AN, AW, BB, BL, BS, CU, DM, DO, GD, GP, HT, JM, KN, KY, LC, MF, MQ, MS, PR, TC, TT, VC, VG, VI
//013 - Central America BZ, CR, GT, HN, MX, NI, PA, SV
//005 - South America AR, BO, BR, CL, CO, EC, FK, GF, GY, PE, PY, SR, UY, VE
//142 - Asia 143 - Central Asia TM, TJ, KG, KZ, UZ
//030 - Eastern Asia CN, HK, JP, KP, KR, MN, MO, TW
//034 - Southern Asia AF, BD, BT, IN, IR, LK, MV, NP, PK
//035 - South-Eastern Asia BN, ID, KH, LA, MM, BU, MY, PH, SG, TH, TL, TP, VN
//145 - Western Asia AE, AM, AZ, BH, CY, GE, IL, IQ, JO, KW, LB, OM, PS, QA, SA, NT, SY, TR, YE, YD
//009 - Oceania 053 - Australia and New Zealand AU, NF, NZ
//054 - Melanesia FJ, NC, PG, SB, VU
//057 - Micronesia FM, GU, KI, MH, MP, NR, PW
//061 - Polynesia AS, CK, NU, PF, PN, TK, TO, TV, WF, WS

var url_array=[
uprefix + "&guess=Brazil&question=" + encodeURIComponent("Which country had Tijuana Brass?") + "&data=%20[~Brazil~,66]%20,%20[~Australia~,66],%20[~Norway~,66],%20[~Morocco~,66],%20[~France~,66],%20[~Argentina~,66]",


uprefix + "&guess=United%20States&question=" + encodeURIComponent("Which country is the land of the brave?") + "&data=%20[~United States~,66]%20,%20[~Australia~,66],%20[~China~,66],%20[~Morocco~,66],%20[~Argentina~,66]",
uprefix + "&guess=United%20Kingdom&question=" + encodeURIComponent("Which country was home for William Shakespeare?") + "&data=%20[~United Kingdom~,66]%20,%20[~Russia~,66],%20[~Norway~,66],%20[~Morocco~,66],%20[~Argentina~,66],%20[~Germany~,66]",
uprefix + "&guess=United%20Arab%20Emirates&question=" + encodeURIComponent("Which country has Abu Dhabi as its capital city?") + "&data=%20[~United Arab Emirates~,66]%20,%20[~Russia~,66],%20[~Norway~,66],%20[~Morocco~,66],%20[~Argentina~,66],%20[~Germany~,66]",
uprefix + "&guess=Iran&question=" + encodeURIComponent("Which country here is a member of OPEC?") + "&data=%20[~Iran~,66]%20,%20[~Russia~,66],%20[~Norway~,66],%20[~Morocco~,66],%20[~Argentina~,66],%20[~Germany~,66]",

uprefix + "&guess=Canada&question=" + encodeURIComponent("Which country has a maple leave on its flag?") + "&data=%20[~Iran~,66]%20,%20[~Russia~,66],%20[~Norway~,66],%20[~Morocco~,66],%20[~Canada~,66],%20[~Germany~,66]",

uprefix + "&guess=Jamaica&question=" + encodeURIComponent("Which country has the fastest sprinters of the early 21st century?") + "&data=%20[~Finland~,66],%20[~Hungary~,66]%20,%20[~Brazil~,66],%20[~China~,66],%20[~United States~,66],%20[~Cuba~,66],%20[~Jamaica~,66]",

uprefix.replace('?title=','?title=IT' + encodeURIComponent(';')) + "&guess=Rome&question=" + encodeURIComponent("Which city in Italy has the Colosseum?") + "&data=%20[~Milan~,66]%20,%20[~Turin~,66],%20[~Rome~,66],%20[~Florence~,66],%20[~Genoa~,66],%20[~Naples~,66],%20[~Florence~,66]",
uprefix.replace('?title=','?title=AU' + encodeURIComponent(';')) + "&guess=Brisbane&question=" + encodeURIComponent("Which city has The Gabba?") + "&data=%20[~Canberra~,66]%20,%20[~Melbourne~,66],%20[~Perth~,66],%20[~Adelaide~,66],%20[~Sydney~,66],%20[~Hobart~,66],%20[~Brisbane~,66]",
uprefix.replace('?title=','?title=CN' + encodeURIComponent(';')) + "&guess=Shanghai&question=" + encodeURIComponent("Which city is the Nevernight City?") + "&data=%20[~Chongqing~,66],%20[~Hong Kong~,66],%20[~Tianjin~,66],%20[~Beijing~,66],%20[~Shanghai~,66],%20[~Canton~,66]",
uprefix.replace('?title=','?title=MX' + encodeURIComponent(';')) + "&guess=Mexico%20City&question=" + encodeURIComponent("Which city is the highest city in Mexico out of these?") + "&data=%20[~Cancun~,66],%20[~Mexico City~,66],%20[~Guadalajara~,66],%20[~Tijuana~,66],%20[~Acapulco~,66]",
uprefix.replace('?title=','?title=US' + encodeURIComponent(';')) + "&guess=Los Angeles&question=" + encodeURIComponent("Where is Hollywood?") + "&data=%20[~San%20Francisco~,66],%20[~Chicago~,66],%20[~Los%20Angeles~,66],%20[~Boston~,66],%20[~New York~,66]",
uprefix.replace('?title=','?title=ZA' + encodeURIComponent(';')) + "&guess=Pretoria&question=" + encodeURIComponent("Which city is the administrative capital of South Africa?") + "&data=%20[~Capetown~,66],%20[~Durban~,66],%20[~Pretoria~,66],%20[~Johannesburg~,66]",
uprefix.replace('?title=','?title=GB' + encodeURIComponent(';')) + "&guess=Leicester&question=" + encodeURIComponent("Which city had the football team to win the Champion League in 2016?") + "&data=%20[~London~,66],%20[~Leicester~,66],%20[~Liverpool~,66],%20[~Birmingham~,66],%20[~Manchester~,66]",
uprefix.replace('?title=','?title=RU' + encodeURIComponent(';')) + "&guess=Moscow&question=" + encodeURIComponent("Where is the Kremlim?") + "&data=%20[~Leningrad~,66],%20[~Novosibirsk~,66],%20[~Moscow~,66],%20[~Minsk~,66],%20[~Vladivostok~,66],%20[~Volvograd~,66]",
uprefix.replace('?title=','?title=IN' + encodeURIComponent(';')) + "&guess=Mumbai&question=" + encodeURIComponent("Where is the biggest centre for the movie industry of India?") + "&data=%20[~Chennai~,66],%20[~Kolkata~,66],%20[~New Delhi~,66],%20[~Mumbai~,66],%20[~Jaipur~,66],%20[~Varanasi~,66]",
uprefix.replace('?title=','?title=FR' + encodeURIComponent(';')) + "&guess=Paris&question=" + encodeURIComponent("Where is the Eiffel Tower?") + "&data=%20[~Marseille~,66],%20[~Lyon~,66],%20[~Paris~,66],%20[~Nice~,66],%20[~Nantes~,66],%20[~Toulouse~,66]",
uprefix.replace('?title=','?title=DE' + encodeURIComponent(';')) + "&guess=Munich&question=" + encodeURIComponent("What is the largest city of Bavaria?") + "&data=%20[~Munich~,66],%20[~Frankfurt~,66],%20[~Hamburg~,66],%20[~Cologne~,66],%20[~Nuremburg~,66],%20[~Stuttgart~,66]",
uprefix.replace('?title=','?title=ID' + encodeURIComponent(';')) + "&guess=Medan&question=" + encodeURIComponent("What is the largest city on Sumatra?") + "&data=%20[~Makassar~,66],%20[~Semarang~,66],%20[~Depok~,66],%20[~Bandung~,66],%20[~Jakarta~,66],%20[~Medan~,66]",
uprefix.replace('?title=','?title=NE' + encodeURIComponent(';')) + "&guess=Lagos&question=" + encodeURIComponent("What is the largest city in Nigeria?") + "&data=%20[~Kano~,66],%20[~Benin City~,66],%20[~Lagos~,66],%20[~Kaduna~,66],%20[~Ibadan~,66]",
uprefix.replace('?title=','?title=ES' + encodeURIComponent(';')) + "&guess=Barcelona&question=" + encodeURIComponent("Where is the Sagrada Familia in Spain?") + "&data=%20[~Madrid~,66],%20[~Valencia~,66],%20[~Barcelona~,66],%20[~Seville~,66],%20[~Zaragoza~,66]",
uprefix.replace('?title=','?title=BR' + encodeURIComponent(';')) + "&guess=Manaus&question=" + encodeURIComponent("Where is the remotest Opera House in Brazil?") + "&data=%20[~Brasilia~,66],%20[~Rio de Janeiro~,66],%20[~Manaus~,66],%20[~Recife~,66],%20[~Campinas~,66]",
uprefix.replace('?title=','?title=AR' + encodeURIComponent(';')) + "&guess=Rosario&question=" + encodeURIComponent("Where is the National Flag Memorial?") + "&data=%20[~Buenos Aires~,66],%20[~Rosario~,66],%20[~La%20Plata~,66],%20[~Salta~,66],%20[~Mar%20del%20Plata~,66]",
uprefix.replace('?title=','?title=CA' + encodeURIComponent(';')) + "&guess=Quebec%20City&question=" + encodeURIComponent("Where is the French more likely to be heard?") + "&data=%20[~Montreal~,66],%20[~Quebec%20City~,66],%20[~Toronto~,66],%20[~Vancouver~,66],%20[~Winnipeg~,66]",
uprefix.replace('?title=','?title=GB' + encodeURIComponent(';')) + "&guess=Belfast%20City&question=" + encodeURIComponent("Which airport would you get to to see The Giant Staircase?") + "&data=%20[~Liverpool~,66],%20[~Manchester~,66],%20[~Belfast~,66],%20[~London~,66],%20[~Glasgow~,66]",

uprefix + "&guess=Chad&question=" + encodeURIComponent("Which country has a city called Timbuktu?") + "&data=%20[~Iran~,66]%20,%20[~Niger~,66],%20[~Chad~,66],%20[~Nigeria~,66],%20[~Morocco~,66],%20[~Canada~,66],%20[~Germany~,66]",

uprefix + "&guess=Andorra&question=" + encodeURIComponent("Which of these countries has a mountain range called the Pyrenees?") + "&data=%20[~Andorra~,66]%20,%20[~India~,66],%20[~South Africa~,66],%20[~Nigeria~,66],%20[~Morocco~,66],%20[~Canada~,66],%20[~Germany~,66]",

uprefix + "&guess=New Zealand&question=" + encodeURIComponent("Which country has All Blacks that are all-conquering?") + "&data=%20[~New Zealand~,66]%20,%20[~Australia~,66],%20[~South Africa~,66],%20[~France~,66],%20[~United Kingdom~,66],%20[~Italy~,66],%20[~Argentina~,66]",

uprefix + "&guess=Australia&question=" + encodeURIComponent("Which country has the priviledge of governing the Collingwood Football Club?") + "&data=%20[~New Zealand~,66]%20,%20[~Australia~,66],%20[~South Africa~,66],%20[~France~,66],%20[~United Kingdom~,66],%20[~Italy~,66],%20[~Argentina~,66]",

uprefix + "&guess=Ecuador&question=" + encodeURIComponent("Which country governs the Galapagos Islands?") + "&data=%20[~New Zealand~,66]%20,%20[~Australia~,66],%20[~United States~,66],%20[~Mexico~,66],%20[~Ecuador~,66],%20[~Peru~,66],%20[~Belize~,66],%20[~Uruguay~,66],%20[~Paraguay~,66],%20[~Peru~,66],%20[~Bolivia~,66],%20[~Chile~,66],%20[~Colombia~,66]",

uprefix + "&guess=Spain&question=" + encodeURIComponent("Which country has had a history linked to the Shakespearian character Othello, and his ancestry?") + "&data=%20[~New Zealand~,66]%20,%20[~Australia~,66],%20[~Spain~,66],%20[~France~,66],%20[~United Kingdom~,66],%20[~Italy~,66],%20[~Argentina~,66]",

uprefix + "&guess=Japan&question=" + encodeURIComponent("Which country hosts the Nikkei index?") + "&data=%20[~Japan~,66]%20,%20[~Australia~,66],%20[~China~,66],%20[~France~,66],%20[~United Kingdom~,66],%20[~India~,66],%20[~United States~,66],%20[~Argentina~,66]",

uprefix + "&guess=South Africa&question=" + encodeURIComponent("Which African country hosted a soccer World Cup?") + "&data=%20[~Egypt~,66]%20,%20[~Morocco~,66],%20[~Ethiopia~,66],%20[~South Africa~,66],%20[~Kenya~,66],%20[~Nigeria~,66],%20[~Libya~,66],%20[~Chad~,66],%20[~Tanzania~,66]",

uprefix + "&guess=Vanuatu&question=" + encodeURIComponent("Which of these countries is in the Pacific Ocean?") + "&data=%20[~Jamaica~,60],%20[~Trinidad and Tobago~,66],%20[~Cuba~,66],%20[~Iceland~,66],%20[~Bermuda~,66],%20[~Vanuatu~,66],%20[~Sri Lanka~,66],%20[~Seychelles~,66],%20[~Ireland~,66],%20[~Cyprus~,66],%20[~Malta~,66],%20[~Madagascar~,66]",

uprefix + "&guess=China&question=" + encodeURIComponent("Which country has the largest population?") + "&data=%20[~China~,66]%20,%20[~India~,66],%20[~Pakistan~,66],%20[~Japan~,66],%20[~United States~,66],%20[~Germany~,66],%20[~Indonesia~,66],%20[~Bangladesh~,66],%20[~Russia~,66]",

uprefix + "&guess=Afghanistan&question=" + encodeURIComponent("Which country is not a former Soviet republic?") + "&data=%20[~Armenia~,66]%20,%20[~Azerbaijan~,66],%20[~Georgia~,66],%20[~Turkmenistan~,66],%20[~Tajikistan~,66],%20[~Afghanistan~,66],%20[~Kyrgyzstan~,66],%20[~Uzbekistan~,66],%20[~Russia~,66]",

uprefix + "&guess=Vietnam&question=" + encodeURIComponent("Which country contains the Mekong delta?") + "&data=%20[~Vietnam~,66]%20,%20[~South Korea~,66],%20[~India~,66],%20[~Bangladesh~,66],%20[~Myanmar~,66],%20[~Laos~,66],%20[~Singapore~,66],%20[~Malaysia~,66],%20[~Thailand~,66]",

uprefix + "&guess=Thailand&question=" + encodeURIComponent("Which country shares a border with Malaysia?") + "&data=%20[~Vietnam~,66]%20,%20[~South Korea~,66],%20[~India~,66],%20[~Bangladesh~,66],%20[~Japan~,66],%20[~Laos~,66],%20[~China~,66],%20[~Pakistan~,66],%20[~Thailand~,66]",

uprefix + "&guess=Nepal&question=" + encodeURIComponent("Which of these countries contains Mt Everest?") + "&data=%20[~Vietnam~,66]%20,%20[~South Korea~,66],%20[~Nepal~,66],%20[~Bangladesh~,66],%20[~Germany~,66],%20[~United States~,66],%20[~China~,66],%20[~Pakistan~,66],%20[~Brazil~,66]",

uprefix + "&guess=Sweden&question=" + encodeURIComponent("Which of these countries is at one end of The Bridge?") + "&data=%20[~Finland~,66]%20,%20[~Sweden~,66],%20[~Norway~,66],%20[~Estonia~,66],%20[~Lithuania~,66],%20[~United Kingdom~,66],%20[~France~,66],%20[~Latvia~,66],%20[~Spain~,66],%20[~Colombia~,66]",

uprefix + "&guess=Denmark&question=" + encodeURIComponent("Which country has the krone as its currency?") + "&data=%20[~Finland~,66]%20,%20[~Sweden~,66],%20[~Norway~,66],%20[~Denmark~,66],%20[~Lithuania~,66],%20[~United Kingdom~,66],%20[~Netherlands~,66],%20[~Latvia~,66],%20[~Belarus~,66]",

uprefix + "&guess=Greece&question=" + encodeURIComponent("Which country has a history involving a civilization at Sparta?") + "&data=%20[~Finland~,66]%20,%20[~Sweden~,66],%20[~Norway~,66],%20[~Denmark~,66],%20[~Italy~,66],%20[~Greece~,66],%20[~Macedonia~,66],%20[~Albania~,66],%20[~Ukraine~,66]",

uprefix + "&guess=Australia&question=" + encodeURIComponent("Which country has monotremes, the echidna and the platypus?") + "&data=%20[~China~,66]%20,%20[~Brazil~,66],%20[~South Africa~,66],%20[~Australia~,66],%20[~United States~,66],%20[~Switzerland~,66],%20[~Austria~,66],%20[~Australia~,66],%20[~Argentina~,66]",

uprefix + "&guess=Botswana&question=" + encodeURIComponent("Which country produces diamonds?") + "&data=%20[~Sri Lanka~,66]%20,%20[~United Kingdom~,66],%20[~Egypt~,66],%20[~Algeria~,66],%20[~Spain~,66],%20[~Portugal~,66],%20[~Botswana~,66],%20[~Laos~,66],%20[~Peru~,66]",

uprefix + "&guess=Venezuela&question=" + encodeURIComponent("Which country has Caracas as its capital city?") + "&data=%20[~Ecuador~,66]%20,%20[~Peru~,66],%20[~Mexico~,66],%20[~Costa Rica~,66],%20[~Venezuela~,66],%20[~Bolivia~,66],%20[~Guatemala~,66],%20[~Sudan~,66],%20[~Somalia~,66]",

uprefix + "&guess=Cameroon&question=" + encodeURIComponent("Which country has a port city called Douala?") + "&data=%20[~Chile~,66]%20,%20[~Ecuador~,66],%20[~Mexico~,66],%20[~Panama~,66],%20[~Cameroon~,66],%20[~India~,66],%20[~China~,66],%20[~Burkina Faso~,66],%20[~Ghana~,66]",

uprefix + "&guess=Yemen&question=" + encodeURIComponent("Which country has a coastline bordering the Gulf of Aden?") + "&data=%20[~Chile~,66]%20,%20[~Ecuador~,66],%20[~Mexico~,66],%20[~Panama~,66],%20[~Yemen~,66],%20[~Sudan~,66],%20[~Turkey~,66],%20[~Rwanda~,66],%20[~Ghana~,66]",

uprefix + "&guess=Switzerland&question=" + encodeURIComponent("Which country is landlocked?") + "&data=%20[~Germany~,66]%20,%20[~Switzerland~,66],%20[~Netherlands~,66],%20[~Myanmar~,66],%20[~Belarus~,66],%20[~Ukraine~,66],%20[~Bulgaria~,66],%20[~Romania~,66],%20[~Monaco~,66]",

uprefix + "&guess=Slovenia&question=" + encodeURIComponent("Which country does not have the Danube River flowing through it?") + "&data=%20[~Slovakia~,66]%20,%20[~Slovenia~,66],%20[~Germany~,66],%20[~Austria~,66],%20[~Moldova~,66],%20[~Hungary~,66],%20[~Bulgaria~,66],%20[~Romania~,66],%20[~Ukraine~,66]",

uprefix + "&guess=Norway&question=" + encodeURIComponent("Which country has fjords?") + "&data=%20[~Brazil~,66]%20,%20[~Australia~,66],%20[~Norway~,66],%20[~Morocco~,66],%20[~Argentina~,66]",
uprefix + "&guess=Egypt&question=" + encodeURIComponent("Which country is the land of the pharaohs?") + "&data=%20[~Morocco~,66]%20,%20[~Australia~,66],%20[~China~,66],%20[~Egypt~,66],%20[~Argentina~,66]",
uprefix + "&guess=Russia&question=" + encodeURIComponent("Which country has the Trans-Siberian railway?") + "&data=%20[~Brazil~,66]%20,%20[~Russia~,66],%20[~Norway~,66],%20[~Morocco~,66],%20[~Argentina~,66],%20[~Germany~,66]",
uprefix + "&guess=Germany&question=" + encodeURIComponent("Which country is more likely to have oompah music?") + "&data=%20[~Brazil~,66]%20,%20[~Australia~,66],%20[~Norway~,66],%20[~Morocco~,66],%20[~Russia~,66],%20[~Finland~,66],%20[~Germany~,66],%20[~Argentina~,66]"
];

function paq() {
pickaquestion(false);
}

function startyt() {
var was=document.title;
if (was.indexOf('Country ') != 0) document.title='Country ' + was;
document.getElementById('tdmydiv').style.width='800px;'
document.getElementById('tdmydiv').style.height='720px;'
document.getElementById('mydiv').style.width='800px;'
document.getElementById('mydiv').style.height='720px;'
document.getElementById('mydiv').innerHTML=document.getElementById('mydiv').innerHTML.split('<br>')[0] + '<br><iframe style="width:800px;height:700px;" src="http://www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?vid=' + encodeURIComponent(' ' + tname) + '" title="' + okn + '"></iframe>';
}

function checkit() {
var one_thousand=1000;
if (document.getElementById('score').innerHTML != cscore) {
tname=decodeURIComponent(url_array[lastq].split('&guess=')[1].split('&')[0]);
okn='YouTube videos related to ' + decodeURIComponent(url_array[lastq].split('&guess=')[1].split('&')[0]);
if (document.getElementById("oura")) {
document.getElementById('oura').title=okn;
document.getElementById('oura').innerHTML=okn;
} else {
document.getElementById('mydiv').innerHTML='<a id="oura" onclick="startyt();" style="padding:5px 5px 5px 5px;border:3px solid orange;background-color:yellow;cursor:pointer;text-decoration:underline;" title="' + okn + '">' + okn + '</a><br>';
}
cscore=document.getElementById('score').innerHTML;
if (1 == 1) {
one_thousand=3000;
setTimeout(paq,2500);
} else {
pickaquestion(false);
}
}
setTimeout(checkit,one_thousand);
}

function pickaquestion(first_time) {
while (thisq == lastq) {
thisq=Math.floor(Math.random() * url_array.length);
}
if (first_time) {
cscore=document.getElementById('score').innerHTML;
setTimeout(checkit,1000);
}
document.getElementById('myquiziframe').style.display='block';
document.getElementById('myquiziframe').src=url_array[thisq];
lastq=thisq;
}

</script>
</head>
<body onload=' pickaquestion(true); ' style='background-color:cyan;'>
<table cellspacing=20 cellpadding=20><tbody><tr><td style='width:560px;'>
<h1>Your Worldwide Country Quiz</h1>
<h2>RJM Programming - January, 2017</h2>
<h4 id='score'>Score: 0/0</h4>
<iframe style='display:none;width:556px;height:700px;' src='about:blank' id='myquiziframe'></iframe>
</td><td id='tdmydiv' style='vertical-align:top;'><div id='mydiv'></div></td></tr></tbody></table>
</body>
</html>