//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=5;
var score=0; scoreMax=20; scoreInc=1; scoreDec=1
var typeGame=2;
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="#FFFFFF"; colorButton="#91962F"; colorText="#000000"; colorSele="#FF8000";
var goURLNext=false; goURLRepeat=false;tiAval=false;
var scoOk=0; scoWrong=0; scoOkDo=1; scoWrongDo=1; 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="WELL DONE!"; messageTime=""; messageError="CHECK THE WRONG ANSWERS!"; 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=['<img class="imaRight" src="fillintheblanks_resources/media/shark.jpg" alt="Ima"  align="right"><p>1.- She <input type="text" name="item1" id="item1" class="ardoraInput"> (SURF) when the shark <input type="text" name="item2" id="item2" class="ardoraInput"> (ATTACK) her </p><p> 2.- Diana and Peter <input type="text" name="item3" id="item3" class="ardoraInput"> (DANCE) at a party when they <input type="text" name="item4" id="item4" class="ardoraInput"> (KISS) for the first time </p><p> 3.- I <input type="text" name="item5" id="item5" class="ardoraInput"> (SEE) my sister while we <input type="text" name="item6" id="item6" class="ardoraInput"> (HAVE) a party </p><p> 4.- Charlie <input type="text" name="item7" id="item7" class="ardoraInput"> (EAT) dinner last night when someone <input type="text" name="item8" id="item8" class="ardoraInput"> (KNOCK) on the door</p>','<img class="imaRight" src="fillintheblanks_resources/media/watchtv.jpg" alt="Ima"  align="right"><p>5.- While I <input type="text" name="item9" id="item9" class="ardoraInput"> (IRON), my wife <input type="text" name="item10" id="item10" class="ardoraInput"> (MAKE) an omelette </p><p> 6.- When Ann <input type="text" name="item11" id="item11" class="ardoraInput"> (FINISH) her assignment, I <input type="text" name="item12" id="item12" class="ardoraInput"> (WATCH) TV </p><p> 7.- As we <input type="text" name="item13" id="item13" class="ardoraInput"> (TRAVEL) from London to Manchester,  we <input type="text" name="item14" id="item14" class="ardoraInput"> (STOP) at a small restaurant to get something to eat.</p>','<p>8.- While I <input type="text" name="item15" id="item15" class="ardoraInput"> (TRY) to paint the ceiling, I <input type="text" name="item16" id="item16" class="ardoraInput"> (FALL) down. </p><p> 9.- When I <input type="text" name="item17" id="item17" class="ardoraInput"> (COME) home, the children <input type="text" name="item18" id="item18" class="ardoraInput"> (SLEEP) </p><p> 10.- He <input type="text" name="item19" id="item19" class="ardoraInput"> (STUDY) when he <input type="text" name="item20" id="item20" class="ardoraInput"> (HEAR) that noise</p>'];
var b=["Mw","OA","MQ","Mg","MTk","MTQ","OQ","MTA","MTE","MTU","NA","MTc","Nw","MjA","NQ","MTg","Ng","MTI","MTY","MTM"];
var c=[12,7,11,8,12,7,11,10,8,10,6,4,10,5,3,13,11,12,4,15];
var answers=["d2VyZSBkYW5jaW5n","a25vY2tlZA","d2FzIHN1cmZpbmc","YXR0YWNrZWQ","d2FzIHN0dWR5aW5n","c3RvcHBlZA","d2FzIGlyb25pbmc","d2FzIG1ha2luZw","ZmluaXNoZWQ","d2FzIHRyeWluZw","a2lzc2Vk","Y2FtZQ","d2FzIGVhdGluZw","aGVhcmQ","c2F3","d2VyZSBzbGVlcGluZw","d2VyZSBoYXZpbmc","d2FzIHdhdGNoaW5n","ZmVsbA","d2VyZSB0cmF2ZWxsaW5n"];
var a=["3","8","1","2","19","14","9","10","11","15","4","17","7","20","5","18","6","12","16","13"];
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="ZmlsbGludGhlYmxhbmtz"; 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 tiUD=true;
