'; //Write it to the frame TopFrame.document.clear(); TopFrame.document.open(); TopFrame.document.write(OutString); TopFrame.document.close(); } function DisplayExercise(){ //Build the output string var OutString = ''; OutString += ''; OutString += ''; OutString += '
'; OutString += TitleCode; OutString += Buttons1; OutString += BuiltExercise; OutString += Buttons2; OutString += BuiltClues; OutString += NavBar; OutString += '
'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame BottomFrame.document.clear(); BottomFrame.document.open(); BottomFrame.document.write(OutString); BottomFrame.document.close(); } function BuildClue(ClueNum,x,y,Across){ var OutString = ''; if (Across == true){ if (ClueNum >= A.length){ return ''; } if (A[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + A[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BA'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (j= D.length){ return ''; } if (D[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i 0){ OutString += ' '; } OutString = OutString + 'Down: ' + ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i-1){ FirstBit = InString.substring(0, i); LastBit = InString.substring(i + Token.length, InString.length); InString = FirstBit + Replacement + LastBit; i = InString.indexOf(Token); } return InString; } L = new Array(); L[0] = new Array('','','','','A','','F','','','','','','','D','','','','A','C','Q','U','A','','',''); L[1] = new Array('','S','P','O','G','L','I','A','T','O','I','','','O','','','F','','','','','','G','','F'); L[2] = new Array('','A','','','R','','N','','','','M','','','P','A','N','O','R','A','M','A','','I','','O'); L[3] = new Array('','C','U','P','O','L','A','','','','P','','','O','','','R','','','','','','A','','R'); L[4] = new Array('','R','','','','','L','','A','','R','','I','','A','','T','','','T','','A','R','C','O'); L[5] = new Array('','A','','P','A','L','E','S','T','R','E','','M','A','R','C','E','L','L','O','','','D','',''); L[6] = new Array('','','','','R','','','','T','','S','','P','','I','','Z','','','S','A','B','I','N','E'); L[7] = new Array('','I','M','P','E','R','A','T','O','R','E','','E','','A','','Z','','','C','','','N','',''); L[8] = new Array('','M','','','N','','N','','R','','','','R','','','M','A','S','S','A','G','G','I','','A'); L[9] = new Array('O','P','E','R','A','','T','R','I','O','N','F','O','','','O','','','','','','','','','D'); L[10] = new Array('','O','','','','','I','','','','','','','','','N','E','R','O','N','E','','','','R'); L[11] = new Array('O','N','O','R','E','','C','A','P','I','T','A','L','E','','U','','','','','','','C','H','I'); L[12] = new Array('','E','','','','','H','','','','R','','','','','M','A','U','S','O','L','E','O','','A'); L[13] = new Array('','N','','','','B','I','B','L','I','O','T','E','C','H','E','','','','','','','S','','N'); L[14] = new Array('','T','','','','','','','','','N','','','','','N','','','','T','E','A','T','R','O'); L[15] = new Array('C','E','S','T','I','O','','','S','','O','','S','T','A','T','U','A','','','','','A','',''); L[16] = new Array('','','','E','','R','','','C','','','','','','','I','','','C','O','L','O','N','N','E'); L[17] = new Array('','P','I','R','A','M','I','D','E','','','','','','','','','V','','','','','T','',''); L[18] = new Array('','R','','M','','A','','','N','','T','','','F','U','N','Z','I','O','N','A','R','I','O',''); L[19] = new Array('','I','','E','G','I','Z','I','A','N','O','','R','','','','','A','','','','','N','','A'); L[20] = new Array('','G','','','','','','','','','M','I','O','','','C','O','L','O','S','S','E','O','','L'); L[21] = new Array('P','I','S','C','I','N','E','','','','B','','V','','','O','','E','','A','','','','','C'); L[22] = new Array('','O','','','','U','','','G','I','A','N','I','C','O','L','O','','','U','','','D','','U'); L[23] = new Array('','N','','','','D','','','','','','','N','','','L','','P','A','N','T','H','E','O','N'); L[24] = new Array('T','E','M','P','I','O','','C','A','P','I','T','E','L','L','I','','','','E','','','I','','I'); C = new Array(); C[0] = new Array(0,0,0,0,1,0,2,0,0,0,0,0,0,3,0,0,0,4,0,0,0,0,0,0,0); C[1] = new Array(0,5,0,0,0,0,0,0,0,0,6,0,0,0,0,0,7,0,0,0,0,0,8,0,9); C[2] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,0,0,12,0,0,0,13,0,14,0,0,0,0,15,0,16,0,0,0); C[5] = new Array(0,0,0,17,18,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,0,0,0,0,0); C[7] = new Array(0,21,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,24); C[9] = new Array(25,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,0,0,0,0,0,0,0,0,0); C[11] = new Array(28,0,0,0,0,0,29,0,0,0,30,0,0,0,0,0,0,0,0,0,0,0,31,0,0); C[12] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0); C[15] = new Array(35,0,0,36,0,37,0,0,38,0,0,0,39,0,0,0,0,0,0,0,0,0,0,0,0); C[16] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0); C[17] = new Array(0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,42,0,0,0,0,0,0,0); C[18] = new Array(0,0,0,0,0,0,0,0,0,0,43,0,0,44,0,0,0,0,0,0,0,0,0,0,0); C[19] = new Array(0,0,0,45,0,0,0,0,0,0,0,0,46,0,0,0,0,0,0,0,0,0,0,0,47); C[20] = new Array(0,0,0,0,0,0,0,0,0,0,48,0,0,0,0,49,0,0,0,50,0,0,0,0,0); C[21] = new Array(51,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[22] = new Array(0,0,0,0,0,0,0,0,53,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0); C[23] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,0,0,0,0,0,0,0); C[24] = new Array(56,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); G = new Array(); G[0] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[1] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[2] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[3] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[4] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[5] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[6] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[7] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[8] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[9] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[10] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[11] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[12] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[13] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[14] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[15] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[16] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[17] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[18] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[19] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[20] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[21] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[22] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[23] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); G[24] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[4]='Liquido potabile'; A[5]='Camere per cambiare gli abiti'; A[10]='Veduta vasta'; A[11]='Copertura semisferica'; A[16]='Monumento celebrativo di una vittoria militare'; A[17]='Luoghi per praticare la ginnastica'; A[19]='Teatro romano vicino al Campidoglio'; A[20]='Le donne rapite dai romani'; A[21]='Il re dei re'; A[23]='Pressione sui muscoli'; A[25]='Tipico spettacolo italiano'; A[26]='Vittorie'; A[27]='Imperatore romano famoso '; A[28]='Tributo prestato ai vincitori'; A[29]='La città sede del governo di un paese'; A[31]='Pronome interrogativo di persona'; A[32]='Tomba di grandi dimensioni'; A[33]='Locali per la conservazione e lettura di libri'; A[34]='Locale per rappresentazioni'; A[35]='Nome di un funzionario romano legato a una piramide romana'; A[39]='Scultura raffigurante una persona'; A[40]='Sostegni cilindrici di un soffitto '; A[41]='Costruzione con base larga e cima a punta'; A[44]='Impiegato'; A[45]='Abitante della terra del Nilo'; A[48]='Appartiene a me'; A[49]='Teatro romano famoso per le lotte dei gladiatori'; A[51]='Locali con vasche per nuotare'; A[53]='Colle romano con veduta sulla città'; A[55]='Il tempio di tutti gli dei'; A[56]='Costruzione religiosa dedicata agli dei'; A[57]='Parti terminali di una colonna'; D = new Array(); D[1]='Nome della campagna di Roma'; D[2]='Terminale'; D[3]='Poi'; D[5]='La via che attraversa il Foro'; D[6]='Azione militari di un condottiero'; D[7]='Costruzione per la difesa'; D[8]='Zone verdi artificialmente create dall\'uomo'; D[9]='Il centro della vita pubblica a Roma antica'; D[12]='Quelli che rappresentano spettacoli'; D[13]='Vasto territorio controllato da un potere centrale'; D[14]='La canta una diva'; D[15]='Opera lirica ambientata a Castel Sant\'Angelo'; D[18]='Teatro aperto'; D[21]='Grandioso'; D[22]='Vecchi'; D[23]='Strutture onorofiche'; D[24]='Famoso imperatore romano'; D[30]='La sedia dell\'imperatore'; D[31]='Famoso imperatore romano'; D[36]='Strutture con ambienti destinati alle cure del corpo'; D[37]='A questo punto'; D[38]='Una azione in un teatro'; D[41]='Struttura a carattere punitivo'; D[42]='Strada alberata'; D[43]='Costruzione che ospita le spoglie di una persona'; D[46]='Costruzioni decadute '; D[47]='Non tutti'; D[49]='A Roma sette sono famosi'; D[50]='Stanze ad alta temperatura per sudare'; D[52]='Raffigurazione di una persona senza abiti'; D[54]='Divinità'; function StartUp(){ BuildExercise(); WriteFeedback(Instructions); DisplayExercise(); } function CheckAnswers(){ var AllCorrect = true; var TotLetters = 0; var CorrectLetters = 0; //Check each letter for (var i=0; i©Half-Baked Software. Loading...'; } //--> //]]>