//Creado con Ardora - www.webardora.net
//bajo licencia Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)
//para otros usos contacte con el autor
var timeAct=360; timeIni=360; timeBon=0;
var successes=0; successesMax=20; attempts=0; attemptsMax=3;
var score=0; scoreMax=20; scoreInc=1; scoreDec=1
var typeGame=0;
var tiTime=false;
var tiTimeType=0;
var tiButtonTime=false;
var textButtonTime="Start";
var tiSuccesses=false;
var tiAttempts=true;
var tiScore=true;
var startTime;
var colorBack="#FFFDFD"; colorButton="#91962F"; colorText="#000000"; colorSele="#FF8000";
var goURLNext=false; goURLRepeat=false;tiAval=false;
var scoOk=0; scoWrong=0; scoOkDo=0; scoWrongDo=0; scoMessage=""; scoPtos=10;
var fMenssage="Verdana, Geneva, sans-serif";
var fActi="Verdana, Geneva, sans-serif";
var fEnun="Verdana, Geneva, sans-serif";
var timeOnMessage=3; messageOk="BRAVO!!!"; messageTime=""; messageError="TRY AGAIN!!"; messageAttempts="START AGAIN!!"; isShowMessage=false;
var urlOk=""; urlTime=""; urlError=""; urlAttempts="";
var goURLOk="_blank"; goURLTime="_blank"; goURLAttempts="_blank"; goURLError="_blank"; 
var consolidateSuccess=0; var consolidateScore=0;
borderOk="#008000"; borderTime="#FF0000";borderError="#FF0000"; borderAttempts="#FF0000";
var indexTXT=0; var txtC=['<p>Ferdinand II <input type="text" name="item1" id="item1" class="ardoraDropInput" readonly> on March 10, 1452. He <input type="text" name="item2" id="item2" class="ardoraDropInput" readonly> the son of King John II of Aragon and Juana Enríquez, both of Castilian origin.  He <input type="text" name="item3" id="item3" class="ardoraDropInput" readonly> Infanta Isabella, the half-sister and heiress of Henry IV of Castile, on 19 October 1469 in Valladolid, Kingdom of Castile and Leon. Isabella also belonged to the royal House of Trastámara, and the two were cousins by descent from John I of Castile. They <input type="text" name="item4" id="item4" class="ardoraDropInput" readonly> with a clear prenuptial agreement on sharing power That way, he <input type="text" name="item5" id="item5" class="ardoraDropInput" readonly> King of Castile when Isabella succeeded her deceased brother in 1474 to be crowned as Queen Isabella I of Castile. </p><p> </p>','<p>When Ferdinand succeeded his father as King of Aragon in 1479, the <input type="text" name="item6" id="item6" class="ardoraDropInput" readonly> of Castile and the various territories of the Crown of <input type="text" name="item7" id="item7" class="ardoraDropInput" readonly> were united in a personal union. For the first time since the 8th century, this union created a single <input type="text" name="item8" id="item8" class="ardoraDropInput" readonly> unit referred to as España (Spain), the root of which is the ancient name Hispania. They saw the Spanish conquest of the Nasrid dynasty of the <input type="text" name="item9" id="item9" class="ardoraDropInput" readonly> of Granada (Moorish Kingdom of Granada), the last Islamic al-Andalus entity on the Iberian <input type="text" name="item10" id="item10" class="ardoraDropInput" readonly>, completed in 1492. </p><p> </p>','<p>In March 1492, the monarchs issued the Edict of Expulsion of the <input type="text" name="item11" id="item11" class="ardoraDropInput" readonly>, also called the Alhambra Decree, a document which ordered all Jews either to be <input type="text" name="item12" id="item12" class="ardoraDropInput" readonly> and convert to Christianity or to leave the <input type="text" name="item13" id="item13" class="ardoraDropInput" readonly>. 1492 was also the year in which the monarchs commissioned Christopher Columbus to find a westward maritime <input type="text" name="item14" id="item14" class="ardoraDropInput" readonly> for access to Asia, which resulted in the Spanish arrival in the Americas. In 1494 the Treaty of <input type="text" name="item15" id="item15" class="ardoraDropInput" readonly> divided the entire world beyond Europe between Portugal and Castile. </p><p>  </p><p> </p>','<p>Ferdinand forced all <input type="text" name="item16" id="item16" class="ardoraDropInput" readonly> in Castile and Aragon to convert, converso <input type="text" name="item17" id="item17" class="ardoraDropInput" readonly>, to Catholicism, or else be expelled. Some of the Muslims who remained were mudéjar artisans, who could design and build in the Moorish style.  </p><p> After Isabella&#39;s <input type="text" name="item18" id="item18" class="ardoraDropInput" readonly> in 1504, her kingdom went to their daughter Joanna. Soon, Ferdinand was replaced with Joanna&#39;s husband, who <input type="text" name="item19" id="item19" class="ardoraDropInput" readonly> Philip I of Castile. After Philip&#39;s death in 1506, he assumed the <input type="text" name="item20" id="item20" class="ardoraDropInput" readonly>. Ferdinand died on 23 January 1516. </p><p>  </p><p> </p>'];
var answers=["Crown","Muslims","was","was born","country","Tordesillas","Jews","Emirate","route","death","Moriscos","became","Regency","baptised","married","got married","Aragón","political","peninsula","became"];
var a=["Ng","MTY","Mg","MQ","MTM","MTU","MTE","OQ","MTQ","MTg","MTc","MTk","MjA","MTI","Mw","NA","Nw","OA","MTA","NQ"];
var itemCorr=["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"];
var itemHelp=["","","","","","","","","","","","","","","","","","","",""];
var animationX=[]; animationY=[]; animationPosX=[]; animationPosY=[]; animationLetter=[];
var wordsGame="Y2F0aG9saWNtb25hcmNocw"; wordsStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
function giveZindex(typeElement){var valueZindex=0; capas=document.getElementsByTagName(typeElement);
for (i=0;i<capas.length;i++){if (parseInt($(capas[i]).css("z-index"),10)>valueZindex){valueZindex=parseInt($(capas[i]).css("z-index"),10);}}return valueZindex;}
var fHelp="Verdana, Geneva, sans-serif";
colorText="#000000";colorButton="#CC9900";colorBack="#FFFFFF";colorSele="#808040";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
