'; //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('','S','A','L','S','A','','','','','','P','A','T','A','T','E','','',''); L[1] = new Array('','','','','O','','F','R','U','T','T','A','','','','','','','',''); L[2] = new Array('C','I','P','O','L','L','A','','V','','','S','E','D','A','N','O','','Z',''); L[3] = new Array('A','','','','E','','G','','A','','','T','','','','','','','U',''); L[4] = new Array('R','','','','','','I','','','','G','A','M','B','O','','','','C',''); L[5] = new Array('O','','P','E','S','T','O','','','','','','','','','A','L','I','C','I'); L[6] = new Array('T','','','','','','L','I','M','O','N','I','','','','','','','H',''); L[7] = new Array('E','','','','','','I','','','','','','','','','','','','I',''); L[8] = new Array('','','','F','O','R','N','A','I','O','','C','','','','M','','','N',''); L[9] = new Array('','M','','I','','','I','','','','','A','','','P','E','S','C','E',''); L[10] = new Array('','E','','N','','','','','S','P','E','S','A','','','N','','I','',''); L[11] = new Array('','R','','O','','C','','M','','A','','T','','F','','T','','P','','K'); L[12] = new Array('','C','','C','','A','','E','','N','','A','V','O','C','A','D','O','','I'); L[13] = new Array('B','A','N','C','A','R','E','L','L','E','','G','','G','','','','L','','W'); L[14] = new Array('','T','','H','','C','','A','','','','N','','L','','D','O','L','C','I'); L[15] = new Array('P','O','L','I','P','I','','N','','S','P','E','Z','I','E','','','I','',''); L[16] = new Array('I','','','O','','O','','Z','','','','','','E','','','','N','',''); L[17] = new Array('Z','','','','','F','','A','R','A','N','C','E','','P','E','P','E','',''); L[18] = new Array('Z','','N','O','C','I','','N','','','','','','','','','','','',''); L[19] = new Array('A','','','','','','P','E','P','E','R','O','N','C','I','N','O','','',''); C = new Array(); C[0] = new Array(0,1,0,0,2,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0); C[1] = new Array(0,0,0,0,0,0,4,0,5,0,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(6,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,8,0); C[3] = new Array(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,0,0,9,0,0,0,0,0,0,0,0,0); C[5] = new Array(0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,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,13,0,0,0,0,0,0,0,14,0,0,0,15,0,0,0,0); C[9] = new Array(0,16,0,0,0,0,0,0,0,0,0,0,0,0,17,0,0,18,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,19,20,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,0,21,0,22,0,0,0,0,0,23,0,0,0,0,0,24); C[12] = new Array(0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,0); C[13] = new Array(26,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,27,0,0,0,0); C[15] = new Array(28,0,0,0,0,0,0,0,0,29,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,0,0); C[17] = new Array(0,0,0,0,0,0,0,30,0,0,0,0,0,0,31,0,0,0,0,0); C[18] = new Array(0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[19] = new Array(0,0,0,0,0,0,33,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('','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='Il condimento della pasta'; A[3]='Si mangia fritta, come puree, al forno'; A[4]='Tutti i prodotti degli alberi che contengono i semi per la riproduzione'; A[6]='Quando si taglia fa piangere'; A[7]='Un ortaggio molto profumato, con poche calorie, verde e lungo'; A[9]='La parte cilindrica, lunga e stretta di un carciofo'; A[10]='Una famosa preparazione genovese con basilico, aglio e parmigiano'; A[11]='Piccoli pesci azzurri spesso conservati nel sale o sott\'olio'; A[12]='Agrumi gialli, aspri'; A[13]='La persona che prepara il pane, la pizza'; A[17]='Gli animali che vivono in mari, fiumi e laghi'; A[19]='Fare la ... significa acquistare il cibo'; A[25]='Frutto tipico del sudamerica con la buccia verde'; A[26]='Le strutture dove si mettono le cassette per vendere frutta e verdura'; A[27]='Preparazioni ricche di zucchero'; A[28]='Animali marini con 8 tentacoli '; A[29]='Sostanze molto aromatiche usate per insaporire i cibi'; A[30]='Agrumi da cui prende nome un colore'; A[31]='Spezia orientale in grani che si macina sopra i cibi'; A[32]='Il frutto con esterno legnoso, con cui si produce un liquore tpico il "nocino"'; A[33]='Frutto di vari colori a forma di cono lungo e molto piccante'; D = new Array(); D[2]='L\'astro che illumina la terra'; D[3]='Il primo piatto degli italiani'; D[4]='Verdura in lunghe stringhe verdi o gialli'; D[5]='Serve per fare il vino'; D[6]='Le radici gialle, o rosse o arancioni dolci a forma di cono'; D[8]='Verdura cilindrica con un fiore commestibile giallo a una estremita\''; D[13]='Pianta col bulbo bianco, foglie molto profumate a forma semisferica'; D[14]='Il frutto marrone che si mangia arrosto di inverno'; D[15]='Un\'erba molto profumata usata per cucinare e anche per bevande'; D[16]='Il luogo all\'aperto dove si comprano frutta e verdura'; D[18]='Piccoli bulbi con un odore molto forte usate come contorno'; D[20]='L\'elemento fondamentale della cucina italiana'; D[21]='Piante con un gambo lungo e foglie verdi. Si mangiare foglia a foglia o si mangia il cuore. '; D[22]='Lunghi ortaggi color viola o bianche molto usate nella cucina italiana '; D[23]='L\'organo respiratorio di una pianta'; D[24]='Frutto con una buccia coperta di peli e dentro di colore verde con molti piccoli semi'; D[28]='Una sfoglia di pasta con mozzarella e pomodoro cotta al forno a legna'; 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...'; } //--> //]]>