' var end = '
' var current = 99 var total = 20 var howmany = 0 var mode = "maze" var feedback = "" var answer = "" var ready = "no" var last = "question" var lastCircle = 99 var lastCircleStr = 99 var circleNum = 99 var onLastCircle = "yes" var lastSection = 99 var sectionNum = 99 var passLastSection = "no" function initArray() { this.length = initArray.arguments.length for (var i = 0; i < this.length; i++) this[i+1] = initArray.arguments[i] } numbers = new initArray() numbers[0] = "" numbers[1] = "" numbers[2] = "" numbers[3] = "" numbers[4] = "" numbers[5] = "" circles = new initArray() circles[0] = "a1b3c5d6e7f" circles[1] = "a0b2c4d" circles[2] = "a1b4c" circles[3] = "a0b4c5d6e7f8g" circles[4] = "a1b2c3d7e8f" circles[5] = "a0b3c6d7e9f" circles[6] = "a0b3c5d7e9f" circles[7] = "a0b3c4d5e6f8g" circles[8] = "a3b4c7d11e15f" circles[9] = "a5b6c10d12e13f16g" circles[10] = "a7b9c11d13e" circles[11] = "a7b8c10d14e15f17g" circles[12] = "a9b16c18d" circles[13] = "a9b10c14d16e17f18g19h" circles[14] = "a11b13c16d17e18f19g" circles[15] = "a8b11c17d" circles[16] = "a9b12c13d14e16f17g18h19i" circles[17] = "a12b13c14d15e16f18g19h20i" circles[18] = "a12b13c14d16e17f19g" circles[19] = "a13b14c16d17e18f20g" circles[20] = "a13b14c16d17e18f19g" done = new initArray() done[0] = "" done[1] = "" done[2] = "" done[3] = "" done[4] = "" done[5] = "" done[6] = "" done[7] = "" done[8] = "" done[9] = "" done[10] = "" done[11] = "" done[12] = "" done[13] = "" done[14] = "" done[15] = "" done[16] = "" done[17] = "" done[18] = "" done[19] = "" done[20] = "" function startup() { var now = new Date(); var hour = now.getHours(); var min = now.getMinutes(); var sec = now.getSeconds(); randomNum = ((min * sec) + sec) while(randomNum > total) { randomNum = randomNum - total } var i = 0 var j = randomNum while(i <= total) { if (j > total) { j = 0 } numbers[i] = j i ++ j ++ } current = 0 ready = "yes" } function section(num) { } function question(num) { if (lastCircle != num) { if (onLastCircle == "yes") { if (done[num] != "done") { if (lastCircle == 99 && num != 0 && num != 3 && num != 5 && num != 6 && num != 7) { } else { num2 = "" num2 = num if (lastCircle != 99) { if (lastCircleStr.indexOf(num2) != -1) { passLastSection = "no" lastSection = 0 onLastCircle = "no" mode = "question" feedback = "" frames[0].location = "seasq.html" lastCircle = num lastCircleStr = circles[num] done[num] = "done" } } else { passLastSection = "no" lastSection = 0 onLastCircle = "no" mode = "question" feedback = "" frames[0].location = "seasq.html" lastCircle = num lastCircleStr = circles[num] done[num] = "done" } } } else { onLastCircle = "yes" lastCircle = num lastCircleStr = circles[num] } } } else { if (mode == "section") { onLastCircle = "yes" } } } function right(num) { mode = "section" feedback = "Right!" frames[0].location = "seasr.html" answer = "" current ++ mode = "section" } function wrong(question) { mode = "section" feedback = answer frames[0].location = "seasw.html" answer = "" current ++ } function links() { if (lastCircle == 17 || lastCircle == 20) { if (mode == "section") { frames[0].location = "seasl.html" } } } function nothing() { } // -->