/*
   This JavaScript code was generated by Jemplate, the JavaScript
   Template Toolkit. Any changes made to this file will be lost the next
   time the templates are compiled.

   Copyright 2006 - Ingy döt Net - All rights reserved.
*/

if (typeof(Jemplate) == 'undefined')
    throw('Jemplate.js must be loaded before any Jemplate template files');

Jemplate.templateMap['review.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '  <h2>Reading Section : Review</h2>\n  <table border="0" bordercolor="#333333" cellpadding="0" cellspacing="0">\n  <tbody>\n  <tr>\n    <th class="header">Number</th>\n    <th class="question">Question</th>\n    <th class="header">Status</th>\n  </tr>\n\n  ';
//line 10 "review.tt"
stash.set('current_part', stash.get(['questions', 0, 0, 0, 'part', 0]));
output += '\n  ';
//line 11 "review.tt"
stash.set('current_major', 0);
output += '\n  ';
//line 12 "review.tt"
stash.set('current_minor', 0);
output += '\n\n  ';
//line 44 "review.tt"

// FOREACH 
(function() {
    var list = stash.get(['results', 0, 'minors', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['q'] = value;
output += '\n\n    ';
//line 43 "review.tt"
if (stash.get(['q', 0, 'part', 0]) == stash.get('current_part')) {
output += '\n      ';
//line 22 "review.tt"
if (stash.get(['questions', 0, stash.get('current_minor'), 0, 'major', 0]) != stash.get('current_major')) {
output += '\n  <tr>\n    <th colspan="3">Passage ';
//line 19 "review.tt"
output += stash.get(['questions', 0, stash.get('current_minor'), 0, 'major', 0]);
output += '</th>\n  </tr>\n        ';
//line 21 "review.tt"
stash.set('current_major', stash.get(['questions', 0, stash.get('current_minor'), 0, 'major', 0]));
output += '\n      ';
}

output += '\n  <tr>\n    <th>';
//line 24 "review.tt"
output += stash.get(['questions', 0, stash.get('current_minor'), 0, 'minor', 0]);
output += '</th>\n    <td class="question_area"><a href="#" onclick="javascript:c.notify( \'questionCue\', { num:';
//line 25 "review.tt"
output += stash.get('current_minor') + 1;
output += ' } ); return false;">';
//line 25 "review.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get(['questions', 0, stash.get('current_minor'), 0, 'question_e', 0]);

    return context.filter(output, 'truncate', [ 100 ]);
})();

output += '</a></td>\n\n    ';
//line 39 "review.tt"
if (stash.get(['q', 0, 'saw_solution', 0]) == 1) {
output += '\n    <td style="background-color:yellow;">\n      Saw Solution\n    ';
}
else {
output += '\n    <td>\n      ';
//line 38 "review.tt"
if (stash.get(['q', 0, 'seen', 0]) != 1) {
output += '\n    Not Seen\n      ';
}
else if (stash.get(['q', 0, 'user_answer', 0]) != '') {
output += '\n    Answered\n      ';
}
else {
output += '\n    Not Answered\n      ';
}

output += '\n    ';
}

output += '\n    </td>\n  </tr>\n      ';
//line 42 "review.tt"
stash.set('current_minor', (stash.get('current_minor') + 1));
output += '\n    ';
}

output += '\n  ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n  </tbody>\n  </table>\n  ';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['dev_examlist.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<!-- -*- mode: html+; Encoding: utf8n -*- -->\r\n<h3>debug</h3>\r\n教材一覧<br>\r\n  <input type="text" id="days" name="days" value="1" size="2">日分有効として追加する<br>\r\n  ';
//line 7 "dev_examlist.tt"

// FOREACH 
(function() {
    var list = stash.get('examlist');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['item'] = value;
output += '\r\n  ';
//line 6 "dev_examlist.tt"
output += stash.get(['item', 0, 'title', 0]);
output += ' <a class=\'add_exam\' num=\'';
//line 6 "dev_examlist.tt"
output += stash.get(['item', 0, 'num', 0]);
output += '\' href="';
//line 6 "dev_examlist.tt"
output += stash.get('add_uri')  + stash.get(['item', 0, 'num', 0]);
output += '">(追加)</a><br>\r\n  ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\r\n<hr>\r\n  ';
//line 11 "dev_examlist.tt"

// FOREACH 
(function() {
    var list = stash.get('ownslist');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['item'] = value;
output += '\r\n  ';
//line 10 "dev_examlist.tt"
output += stash.get(['item', 0, 'title', 0]);
output += ' <a class=\'del_exam\' num=\'';
//line 10 "dev_examlist.tt"
output += stash.get(['item', 0, 'num', 0]);
output += '\' href="';
//line 10 "dev_examlist.tt"
output += stash.get('del_uri')  + stash.get(['item', 0, 'num', 0]);
output += '">(削除)</a><br>\r\n  ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\r\n  <script type="text/javascript">\r\n    $("a.add_exam").click(function(){\r\n        var self = this;\r\n        var href = $(this).attr("href");\r\n        $.getJSON(href, {\'days\':$(\'#days\').val()}, function (ret) {\r\n            if (ret.json.status == \'OK\'){\r\n                location.reload();\r\n            }\r\n            $(self).text(ret);\r\n        });\r\n        return false;\r\n    });\r\n    $("a.del_exam").click(function(){\r\n        var self = this;\r\n        var href = $(this).attr("href");\r\n        $.getJSON(href, {}, function (ret) {\r\n            if (ret.json.status == \'OK\'){\r\n                location.reload();\r\n            }\r\n            $(self).text(ret);\r\n        });\r\n        return false;\r\n    });\r\n  </script>\r\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['writing.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '\r\n\r\n            <div id="examIntro" class="slide examIntro">\r\n              <h1>Writing</h1>\r\n              <h2 id="writing';
//line 5 "writing.tt"
if (!(stash.get('isExperienceMode'))) {
//line 5 "writing.tt"
output += stash.get('examNo');
}
else {
output += 'Experience';
}

output += '">Practice Test (Continueボタンをクリックしてください)</h2>\r\n              <div class="disclaimer">\r\n                <p>※このPractice TestはTOEFL(R) iBTの出題形式に準じて開発されていますが、画面のデザインや一部の機能・動作など、実際の試験とは異なる部分があります。</p>\r\n                <p>また、DirectionやHelpなどテストの進行・操作に関する指示は実際のテストでは英語ですが、このPractice Testでは主に日本語で収録しています。</p>\r\n              </div>\r\n            </div>\r\n\r\n            <div id="generalInfo" class="slide generalInfo">\r\n              <h3>General Test Information</h3>\r\n              <p>リーディングセクションでは3～5つのパッセージを読み，設問に答えます。</p>\r\n              <p>リスニングセクションでは，2つの会話と4つの講義を聞き，設問に答えます。</p>\r\n              <p>スピーキングセクションでは，6つの設問に答えます。</p>\r\n              <p>ライティングセクションでは，2つの設問に答えます。</p>\r\n              <p>先に進む場合は<em>Continue</em>ボタンをクリックしてください。</p>\r\n            </div>\r\n\r\n\r\n            <div id="sectionDirection" class="slide sectionDirection">\r\n              <h3>Writing Section Directions</h3>\r\n              <div id="sectionDirection-up" class="sectionDirection-contents">\r\n                <img src="';
//line 25 "writing.tt"
output += stash.get('root');
output += 'static/css/exam/writing/img/phonemans.jpg" alt="ヘッドフォン装着例" height="100" width="100">\r\n                ヘッドフォンがきちんと装着されているか確認してください。\r\n              </div>\r\n              <div class="sectionDirection-contents">\r\n                ライティングセクションには2つの課題があります。<br>\r\n                １つ目の課題では，まずパッセージを読みます。続いて講義を聞き，これらの内容に関する質問に答えます。<br>\r\n                ２つ目の課題では，あなた自身の知識や経験にもとづいて質問に答えます。<br>\r\n                引き続き，１つ目の課題の説明に移ります。\r\n              </div>\r\n            </div>\r\n\r\n            ';
//line 111 "writing.tt"
if (stash.get('question1')) {
output += '\r\n            <div id="directionRl" class="slide directionRl">\r\n              <h3>Writing Based on Reading and Listening Directions</h3>\r\n              <ul>\r\n                <li>１つ目の課題では，まずパッセージを読みます。画面上部の時計は、制限時間を表示します。リーディングの最中、メモをとってもかまいません。続いてパッセージが消え，同じトピックに関する講義を聞きます。リスニングの最中にもメモをとってかまいません。ライティングの際には再びパッセージを参照することが可能です。</li>\r\n                <li>リスニングが終了すると，解答を行うことができます。解答時間は20分です。有効な解答の語数は150～225語です。</li>\r\n                <li>採点はエッセイライティングの質のほか，レクチャーの重要点やレクチャーとパッセージの関係をいかに正確に書けているかにもとづきます。</li>\r\n                <li>では，パッセージを3分間で読んでください。ライティングの際にもう一度確認できることを忘れないでください。リーディングが終了するとすぐにレクチャーが始まりますので，レクチャーが終了するまでヘッドセットは装着した状態でいてください。</li>\r\n              </ul>\r\n            </div>\r\n\r\n\r\n            <div id="passage" class="slide passage">\r\n              <div class="question-directions">\r\n                <p id="question-directions-up" class="question-directions-up">&nbsp;</p>\r\n                <p id="question-directions-down" class="question-directions-down">&nbsp;</p>\r\n              </div>\r\n              <div class="question-text clearfix">\r\n                <div class="question-text-left flo-le">\r\n                  ';
//line 55 "writing.tt"
output += stash.get(['question1', 0, 'issue_r', 0]);
output += '\r\n                </div>\r\n                <div class="question-text-right flo-le">\r\n                  &nbsp;\r\n                </div>\r\n              </div>\r\n            </div>\r\n\r\n\r\n            <div id="listening1" class="slide listening">\r\n              <div id="listening1_FlvPlayer"></div>\r\n            </div>\r\n\r\n\r\n            <div id="preparation" class="slide preparation">\r\n              <img src="';
//line 70 "writing.tt"
output += stash.get('root');
output += 'static/css/exam/writing/img/wGetReady.gif" alt="用意はいいですか？" width="320" height="240">\r\n            </div>\r\n\r\n\r\n            <div id="question1" class="slide questionRl">\r\n              <div class="question-directions clearfix">\r\n                <p class="question-directions-up">\r\n                  <em>Directions:</em>You have 20 minutes to plan and write your response. Your response will be judged on the basis of your writing and on how well your response presents the points in the lecture and their relationship to the reading passage. Typically, an effective response will be 150 to 225 words.\r\n                </p>\r\n                <div class="question-di">\r\n                  <em>Question:</em>';
//line 80 "writing.tt"
output += stash.get(['question1', 0, 'question_e', 0]);
output += '\r\n                </div>\r\n              </div>\r\n              <div class="question-text clearfix">\r\n                <div class="question-text-left flo-le">\r\n                  ';
//line 85 "writing.tt"
output += stash.get(['question1', 0, 'issue_r', 0]);
output += '\r\n                </div>\r\n                <div id="question-text-right1" class="question-text-right flo-le">\r\n                  <div class="user_answer_area">\r\n                    <ul>\r\n                      <li class="flo-le"><a id="copy1" class="copy" alt="copy"><img src="';
//line 90 "writing.tt"
output += stash.get('root');
output += 'static/css/exam/writing/img/btn_copy.gif"></a></li>\r\n                      <li class="flo-le"><a id="cut1" class="cut" alt="cut"><img src="';
//line 91 "writing.tt"
output += stash.get('root');
output += 'static/css/exam/writing/img/btn_cut.gif"></a></li>\r\n                      <li class="flo-le"><a id="put1" class="put" alt="put"><img src="';
//line 92 "writing.tt"
output += stash.get('root');
output += 'static/css/exam/writing/img/btn_paste.gif"></a></li>\r\n                    </ul>\r\n                    Word Count ： <span id="count1">0</span>\r\n                  </div>\r\n                    <textarea id="textedit1" class="textedit" rows="10" cols="10"></textarea>\r\n                </div>\r\n              </div>\r\n            </div>\r\n\r\n\r\n            <div id="checkTime1" class="slide checkTime">\r\n              <p class="checkTime-on">解答時間がまだ残っています。</p>\r\n              <p class="checkTime-off">解答時間が終了しました。 </p>\r\n              <p>\r\n                <em>Return</em>ボタンをクリックして解答画面に戻ることができます。<br>\r\n                <em>Continue</em>ボタンをクリックするとこの画面を終了できます。<br>\r\n              </p>\r\n              <p>一度この画面を終了すると再び解答画面に戻ることはできません。</p>\r\n            </div>\r\n            ';
}

output += '\r\n\r\n            ';
//line 156 "writing.tt"
if (stash.get('question2')) {
output += '\r\n            <div id="directionKe" class="slide directionKe">\r\n              <h3>Writing Based on Knowledge and Experience Directions</h3>\r\n              <p>この課題は，与えられた質問に対するあなたの意見を，提示，説明，裏付けるエッセイを書くものです。解答時間は30分です。<br>\r\n              一般的に効果的なエッセイを書くためには最低300語が必要とされています。エッセイは，ライティングの質に関して採点されます。これには，論理展開の仕方，構成，表現の正確さも含まれます。</p>\r\n              <p id="directionKe-p-down">では，<em>Continue</em>ボタンをクリックして進んでください。</p>\r\n            </div>\r\n\r\n\r\n\r\n            <div id="question2" class="slide questionKe">\r\n              <div class="question-text clearfix">\r\n                <div id="question-text-left2" class="question-text-left flo-le">\r\n                  <p id="question2-directions">\r\n                    <em>Directions:</em>Read the question below. You have 30 minutes to plan. write, and revise your essay. Typically, an effective respose will contain a minimum of 300 words.\r\n                  </p>\r\n                  <p id="question2-question">\r\n                    Question: ';
//line 130 "writing.tt"
output += stash.get(['question2', 0, 'question_e', 0]);
output += '\r\n                  </p>\r\n                </div>\r\n                <div id="question-text-right2" class="question-text-right flo-le">\r\n                  <div class="user_answer_area">\r\n                    <ul>\r\n                      <li class="flo-le"><a id="copy2" class="copy" alt="copy"><img src="';
//line 136 "writing.tt"
output += stash.get('root');
output += 'static/css/exam/writing/img/btn_copy.gif"></a></li>\r\n                      <li class="flo-le"><a id="cut2" class="cut" alt="cut"><img src="';
//line 137 "writing.tt"
output += stash.get('root');
output += 'static/css/exam/writing/img/btn_cut.gif"></a></li>\r\n                      <li class="flo-le"><a id="put2" class="put" alt="put"><img src="';
//line 138 "writing.tt"
output += stash.get('root');
output += 'static/css/exam/writing/img/btn_paste.gif"></a></li>\r\n                    </ul>\r\n                    Word Count ： <span id="count2">0</span></div>\r\n                    <textarea id="textedit2" class="textedit" rows="10" cols="10"></textarea>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n\r\n\r\n            <div id="checkTime2" class="slide checkTime">\r\n              <p class="checkTime-on">解答時間がまだ残っています。</p>\r\n              <p class="checkTime-off">解答時間が終了しました。 </p>\r\n              <p>\r\n                <em>Return</em>ボタンをクリックして解答画面に戻ることができます。<br>\r\n                <em>Continue</em>ボタンをクリックするとこの画面を終了できます。<br>\r\n              </p>\r\n              <p>一度この画面を終了すると再び解答画面に戻ることはできません。</p>\r\n            </div>\r\n            ';
}

output += '\r\n\r\n            ';
//line 175 "writing.tt"
if (stash.get('isExperienceMode')) {
output += '\r\n            <div id="examOutro" class="slide examOutro">\r\n              <p>いかがでしたか？これにて「ライティング模擬試験 体験版」は終了です。<br>旺文社TOEFLiBT大戦略Onlineなら日本語による詳しい解説でしっかりフォローします。<br>TOEFLiBTのトレーニングお役立てください！</p>\r\n              <div id="btn_buy"><a href="../buy.html"><span class="alt">購入する</span></a></div>\r\n              <ul>\r\n                <li><a href="promotion_reading.html">リーディング模擬試験</a>も体験してみる。</li>\r\n                <li><a href="promotion_listenin.html">リスニング模擬試験</a>も体験してみる。</li>\r\n                <li><a href="promotion_speaking.html">スピーキング模擬試験</a>も体験してみる。</li>\r\n              </ul>\r\n            </div>\r\n\r\n\r\n            ';
}
else {
output += '\r\n            <div id="examOutro" class="slide examOutro">\r\n              <h3>End of Test</h3>\r\n              <p>これで、Practice Testは終了です。</p>\r\n            </div>\r\n            ';
}

output += '\r\n\r\n            <div id="pauseTestConfirm" class="floatingWindow flora">\r\n              <p>中断してメニューに戻ります。</p>\r\n              <button onclick="c.notify(\'pauseTest\')">OK</button>\r\n              <button onclick="c.notify(\'closeWindow\')">キャンセル</button>\r\n            </div>\r\n\r\n            <div id="timeOver" class="floatingWindow flora">\r\n              <p>解答時間終了です</p>\r\n              <button onclick="c.notify(\'timeOverIsOk\')">OK</button>\r\n            </div>\r\n\r\n            <div id="helpWindow" class="floatingWindow flora">\r\n              <iframe src="';
//line 189 "writing.tt"
output += stash.get('root');
output += 'static/help/index.html" title="HelpWindow">HELP</iframe>\r\n            </div>\r\n\r\n            <div id="sendingResult" class="floatingWindow flora">\r\n              <h5>成績を送信しています。</h5>\r\n              <p><img src="';
//line 194 "writing.tt"
output += stash.get('root');
output += 'static/img/exam/sending_result.gif" alt="成績送信中..." width="24" height="24"></p>\r\n              <p>送信完了後、次の画面が表示されます。</p>\r\n            </div>\r\n\r\n            <div id="sendingResultFailure" class="floatingWindow flora">\r\n              <h5>成績の送信に失敗しました。</h5>\r\n              <p>インターネットの接続をご確認の上、<br>「再送信」ボタンをクリックしてください。</p>\r\n              <button onclick="c.notify(\'retrySendingResult\')">再送信</button>\r\n              <p>インターネットに正しく接続されているにも関わらず、<br>何度もこのメッセージが表示される場合は、<br><a href="';
//line 202 "writing.tt"
output += stash.get('root');
output += 'mypage/query" target="_blank">こちら</a>からお問い合わせください。</p>\r\n            </div>\r\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['listening_review.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 347 "listening_review.tt"

// FOREACH 
(function() {
    var list = stash.get('questions');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['q'] = value;
output += '\n\n';
//line 3 "listening_review.tt"
stash.set('passage_num', stash.get(['q', 0, 'major', 0]) - 1);
output += '\n';
//line 4 "listening_review.tt"
stash.set('passage', stash.get(['passages', 0, stash.get('passage_num'), 0]));
output += '\n';
//line 5 "listening_review.tt"
stash.set('result_index', stash.get('result_offset') * 1 + stash.get(['loop', 0, 'count', 0]) * 1 - 1);
output += '\n';
//line 6 "listening_review.tt"
stash.set('result', stash.get(['results', 0, stash.get('result_index'), 0]));
output += '\n';
//line 11 "listening_review.tt"
if (stash.get(['result', 0, 'correct_answer', 0]) == stash.get(['result', 0, 'user_answer', 0])) {
output += '\n';
//line 8 "listening_review.tt"
stash.set('status', '<span class=\'maru\'><span class=\'alt\'>○</span></span>');
output += '\n';
}
else {
output += '\n';
//line 10 "listening_review.tt"
stash.set('status', '<span class=\'batsu\'><span class=\'alt\'>×</span></span>');
output += '\n';
}

output += '\n';
//line 12 "listening_review.tt"
stash.set('question_count', stash.get(['loop', 0, 'count', 0]));
output += '\n\n';
//line 346 "listening_review.tt"

    switch(stash.get(['q', 0, 'type', 0])) {
case 't':
output += '\n<div id="question';
//line 16 "listening_review.tt"
output += stash.get('question_count');
output += '" class="slide questionT">\n\n  <div class="q-and-a">\n\n    <p class="status">Status:';
//line 20 "listening_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 22 "listening_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 23 "listening_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n';
//line 25 "listening_review.tt"
stash.set('choices_e', [ stash.get(['q', 0, 'choice1_e', 0]), stash.get(['q', 0, 'choice2_e', 0]), stash.get(['q', 0, 'choice3_e', 0]), stash.get(['q', 0, 'choice4_e', 0]) ]);
output += '\n';
//line 26 "listening_review.tt"
stash.set('choices_j', [ stash.get(['q', 0, 'choice1_j', 0]), stash.get(['q', 0, 'choice2_j', 0]), stash.get(['q', 0, 'choice3_j', 0]), stash.get(['q', 0, 'choice4_j', 0]) ]);
output += '\n\n    <ul class="choices">\n';
//line 35 "listening_review.tt"

// FOREACH 
(function() {
    var list = [ 0, 1, 2, 3 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 30 "listening_review.tt"
stash.set('choice_num', stash.get('i') + 1);
output += '\n      <li';
//line 31 "listening_review.tt"
if (stash.get(['result', 0, 'user_answer', 0]) == stash.get('choice_num')) {
output += ' class="choiced"';
}

output += '>\n        <div class="en';
//line 32 "listening_review.tt"
if (stash.get(['result', 0, 'correct_answer', 0]) == stash.get('choice_num')) {
output += ' correct';
}

output += '">';
//line 32 "listening_review.tt"
output += stash.get(['choices_e', 0, stash.get('i'), 0]);
output += '</div>\n        <div class="jp">';
//line 33 "listening_review.tt"
output += stash.get(['choices_j', 0, stash.get('i'), 0]);
output += '</div>                  \n      </li>\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n  <!-- q-and-a -->\n  </div>\n\n  <div class="p-and-d">\n\n    <h3>音声スクリプト</h3>\n    <div class="passage minor';
//line 44 "listening_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 44 "listening_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 45 "listening_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <div id="question';
//line 48 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player" class="sound-player">question';
//line 48 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player</div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 52 "listening_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n\n<!-- /slide -->\n</div>\n';
break;

case 's':
output += '\n<div id="question';
//line 61 "listening_review.tt"
output += stash.get('question_count');
output += '" class="slide questionS">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 65 "listening_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 67 "listening_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 68 "listening_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n    <p class="listening en">';
//line 70 "listening_review.tt"
output += stash.get(['q', 0, 'quote_e', 0]);
output += '</p>\n    <p class="listening jp">';
//line 71 "listening_review.tt"
output += stash.get(['q', 0, 'quote_j', 0]);
output += '</p>\n\n    <div id="question';
//line 73 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player_s" class="sound-player">question';
//line 73 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player_s</div>\n\n';
//line 75 "listening_review.tt"
stash.set('choices_e', [ stash.get(['q', 0, 'choice1_e', 0]), stash.get(['q', 0, 'choice2_e', 0]), stash.get(['q', 0, 'choice3_e', 0]), stash.get(['q', 0, 'choice4_e', 0]) ]);
output += '\n';
//line 76 "listening_review.tt"
stash.set('choices_j', [ stash.get(['q', 0, 'choice1_j', 0]), stash.get(['q', 0, 'choice2_j', 0]), stash.get(['q', 0, 'choice3_j', 0]), stash.get(['q', 0, 'choice4_j', 0]) ]);
output += '\n\n    <ul class="choices">\n';
//line 85 "listening_review.tt"

// FOREACH 
(function() {
    var list = [ 0, 1, 2, 3 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 80 "listening_review.tt"
stash.set('choice_num', stash.get('i') + 1);
output += '\n      <li';
//line 81 "listening_review.tt"
if (stash.get(['result', 0, 'user_answer', 0]) == stash.get('choice_num')) {
output += ' class="choiced"';
}

output += '>\n        <div class="en';
//line 82 "listening_review.tt"
if (stash.get(['result', 0, 'correct_answer', 0]) == stash.get('choice_num')) {
output += ' correct';
}

output += '">';
//line 82 "listening_review.tt"
output += stash.get(['choices_e', 0, stash.get('i'), 0]);
output += '</div>\n        <div class="jp">';
//line 83 "listening_review.tt"
output += stash.get(['choices_j', 0, stash.get('i'), 0]);
output += '</div>                  \n      </li>\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n  <!-- q-and-a -->\n  </div>\n\n  <div class="p-and-d">\n\n    <h3>音声スクリプト</h3>\n    <div class="passage minor';
//line 94 "listening_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 94 "listening_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 95 "listening_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <div id="question';
//line 98 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player" class="sound-player">question';
//line 98 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player</div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 102 "listening_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n\n<!-- /slide -->\n</div>\n\n';
break;

case 'm':
output += '\n<div id="question';
//line 112 "listening_review.tt"
output += stash.get('question_count');
output += '" class="slide questionM">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 116 "listening_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 118 "listening_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 119 "listening_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n    <p class="instruction en">';
//line 121 "listening_review.tt"
output += stash.get(['q', 0, 'direction_e', 0]);
output += '</p>\n    <p class="instruction jp">';
//line 122 "listening_review.tt"
output += stash.get(['q', 0, 'direction_j', 0]);
output += '</p>\n\n';
//line 124 "listening_review.tt"
stash.set('corrects', stash.get(['q', 0, 'correct_answer', 0, 'split', [ ',' ]]));

output += '\n';
//line 125 "listening_review.tt"
stash.set('correct_table', [ 0, 0, 0, 0 ]);
output += '\n';
//line 133 "listening_review.tt"

// FOREACH 
(function() {
    var list = [ 0, 1, 2, 3 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 132 "listening_review.tt"

// FOREACH 
(function() {
    var list = stash.get('corrects');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n';
//line 128 "listening_review.tt"
stash.set('n', stash.get('c') - 1);
output += '\n';
//line 131 "listening_review.tt"
if (stash.get('i') == stash.get('n')) {
output += '\n';
//line 130 "listening_review.tt"
stash.set(['correct_table', 0, stash.get('i'), 0], 1);
output += '\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n';
//line 135 "listening_review.tt"
stash.set('answers', stash.get(['result', 0, 'user_answer', 0, 'split', [ ',' ]]));

output += '\n';
//line 136 "listening_review.tt"
stash.set('answer_table', [ 0, 0, 0, 0 ]);
output += '\n';
//line 144 "listening_review.tt"

// FOREACH 
(function() {
    var list = [ 0, 1, 2, 3 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 143 "listening_review.tt"

// FOREACH 
(function() {
    var list = stash.get('answers');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['a'] = value;
output += '\n';
//line 139 "listening_review.tt"
stash.set('n', stash.get('a') - 1);
output += '\n';
//line 142 "listening_review.tt"
if (stash.get('i') == stash.get('n')) {
output += '\n';
//line 141 "listening_review.tt"
stash.set(['answer_table', 0, stash.get('i'), 0], 1);
output += '\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n    <ul class="choices">\n';
//line 147 "listening_review.tt"
stash.set('i', 0);
output += '\n';
//line 154 "listening_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n      <li';
//line 149 "listening_review.tt"
if (stash.get(['answer_table', 0, stash.get('i'), 0])) {
output += ' class="choiced"';
}

output += '>\n        <div class="en';
//line 150 "listening_review.tt"
if (stash.get(['correct_table', 0, stash.get('i'), 0])) {
output += ' correct';
}

output += '">';
//line 150 "listening_review.tt"
output += stash.get('c');
output += '</div>\n        <div class="jp">';
//line 151 "listening_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('i'), 0]);
output += '</div>                  \n      </li>\n';
//line 153 "listening_review.tt"
stash.set('i', stash.get('i') + 1);
output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n  <!-- q-and-a -->\n  </div>\n  \n  <div class="p-and-d">\n\n    <h3>音声スクリプト</h3>\n    <div class="passage minor';
//line 163 "listening_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 163 "listening_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 164 "listening_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <div id="question';
//line 167 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player" class="sound-player">question';
//line 167 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player</div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 171 "listening_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n  \n<!-- /slide -->\n</div>\n\n';
break;

case 'c':
output += '\n<div id="question';
//line 181 "listening_review.tt"
output += stash.get('question_count');
output += '" class="slide questionC">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 185 "listening_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 187 "listening_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 188 "listening_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n    <p class="instruction en">';
//line 190 "listening_review.tt"
output += stash.get(['q', 0, 'direction_e', 0]);
output += '</p>\n    <p class="instruction jp">';
//line 191 "listening_review.tt"
output += stash.get(['q', 0, 'direction_j', 0]);
output += '</p>\n\n';
//line 193 "listening_review.tt"
stash.set('matches', stash.get(['q', 0, 'correct_answer', 0, 'match', [ '([0-9,]*)|([0-9,]*)' ]]));
output += '\n';
//line 194 "listening_review.tt"
stash.set('corrects', stash.get(['matches', 0, 0, 0, 'split', [ ',' ]]));
output += '\n\n';
//line 196 "listening_review.tt"
stash.set('correct_table', [ 0, 0, 0, 0, 0 ]);
output += '\n';
//line 206 "listening_review.tt"

// FOREACH 
(function() {
    var list = [ 0, 1, 2, 3, 4 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 198 "listening_review.tt"
stash.set(['correct_table', 0, stash.get('i'), 0], 0);
output += '\n';
//line 205 "listening_review.tt"

// FOREACH 
(function() {
    var list = stash.get('corrects');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n';
//line 200 "listening_review.tt"
stash.set('n', stash.get('c') - 1);
output += '\n';
//line 204 "listening_review.tt"
if (stash.get('n') == stash.get('i')) {
output += '\n';
//line 202 "listening_review.tt"
stash.set(['correct_table', 0, stash.get('i'), 0], 1);
output += '\n';
//line 203 "listening_review.tt"
  retval = list.get_next();
  value = retval[0];
  done = retval[1];
  continue;

output += '\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '  \n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n';
//line 208 "listening_review.tt"
stash.set('splits', stash.get(['result', 0, 'user_answer', 0, 'split', [ '[|]' ]]));
output += '\n';
//line 231 "listening_review.tt"
if (stash.get(['splits', 0, 'size', []]) > 1) {
output += '\n';
//line 210 "listening_review.tt"
stash.set('lefts', stash.get(['splits', 0, 0, 0, 'split', [ ',' ]]));
output += '\n';
//line 211 "listening_review.tt"
stash.set('rights', stash.get(['splits', 0, 1, 0, 'split', [ ',' ]]));
output += '\n\n';
//line 213 "listening_review.tt"
stash.set('checked_table', [ 0, 0, 0, 0, 0 ]);
output += '\n';
//line 230 "listening_review.tt"

// FOREACH 
(function() {
    var list = [ 0, 1, 2, 3, 4 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 215 "listening_review.tt"
stash.set(['checked_table', 0, stash.get('i'), 0], 0);
output += '\n';
//line 222 "listening_review.tt"

// FOREACH 
(function() {
    var list = stash.get('lefts');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['l'] = value;
output += '\n';
//line 217 "listening_review.tt"
stash.set('n', stash.get('l') - 1);
output += '\n';
//line 221 "listening_review.tt"
if (stash.get('n') == stash.get('i')) {
output += '\n';
//line 219 "listening_review.tt"
stash.set(['checked_table', 0, stash.get('i'), 0], 'l');
output += '\n';
//line 220 "listening_review.tt"
  retval = list.get_next();
  value = retval[0];
  done = retval[1];
  continue;

output += '\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '  \n';
//line 229 "listening_review.tt"

// FOREACH 
(function() {
    var list = stash.get('rights');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['r'] = value;
output += '\n';
//line 224 "listening_review.tt"
stash.set('n', stash.get('r') - 1);
output += '\n';
//line 228 "listening_review.tt"
if (stash.get('n') == stash.get('i')) {
output += '\n';
//line 226 "listening_review.tt"
stash.set(['checked_table', 0, stash.get('i'), 0], 'r');
output += '\n';
//line 227 "listening_review.tt"
  retval = list.get_next();
  value = retval[0];
  done = retval[1];
  continue;

output += '\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '  \n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';
}

output += '\n\n\n    <table>\n      <thead>\n        <tr>\n          <th></th>\n          <th>';
//line 238 "listening_review.tt"
output += stash.get(['q', 0, 'col_h_e', 0, 0, 0]);
output += '</th>\n          <th>';
//line 239 "listening_review.tt"
output += stash.get(['q', 0, 'col_h_e', 0, 1, 0]);
output += '</th>\n        </tr>\n      </thead>\n      <tbody>\n';
//line 256 "listening_review.tt"

// FOREACH 
(function() {
    var list = [ 0, 1, 2, 3, 4 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n        <tr>\n          <td>\n            <div class="en">';
//line 246 "listening_review.tt"
output += stash.get(['q', 0, 'row_h_e', 0, stash.get('i'), 0]);
output += '</div>\n            <div class="jp">';
//line 247 "listening_review.tt"
output += stash.get(['q', 0, 'row_h_j', 0, stash.get('i'), 0]);
output += '</div>\n          </td>\n          <td';
//line 249 "listening_review.tt"
if (stash.get(['correct_table', 0, stash.get('i'), 0])) {
output += ' class="correct"';
}

output += '>\n            ';
//line 250 "listening_review.tt"
if (stash.get(['checked_table', 0, stash.get('i'), 0]) == 'l') {
output += '<div class="answered"><span class="alt">V</span></div>';
}
else {
output += '<div>&nbsp;</div>';
}

output += '\n          </td>\n          <td';
//line 252 "listening_review.tt"
if (!(stash.get(['correct_table', 0, stash.get('i'), 0]))) {
output += ' class="correct"';
}

output += '>\n            ';
//line 253 "listening_review.tt"
if (stash.get(['checked_table', 0, stash.get('i'), 0]) == 'r') {
output += '<div class="answered"><span class="alt">V</span></div>';
}
else {
output += '<div>&nbsp;</div>';
}

output += '\n          </td>\n        </tr>\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n      </tbody>\n    </table>\n\n  <!-- q-and-a -->\n  </div>\n  \n  <div class="p-and-d">\n\n    <h3>音声スクリプト</h3>\n    <div class="passage minor';
//line 267 "listening_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 267 "listening_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 268 "listening_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <div id="question';
//line 271 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player" class="sound-player">question';
//line 271 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player</div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 275 "listening_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n  \n<!-- /slide -->\n</div>\n\n';
break;

case 'do':
output += '\n<div id="question';
//line 285 "listening_review.tt"
output += stash.get('question_count');
output += '" class="slide questionDo">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 289 "listening_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 291 "listening_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 292 "listening_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n    <h3>正解</h3>\n\n';
//line 296 "listening_review.tt"
stash.set('corrects', stash.get(['result', 0, 'correct_answer', 0, 'split', [ ',' ]]));
output += '\n';
//line 297 "listening_review.tt"
stash.set('answers', stash.get(['result', 0, 'user_answer', 0, 'split', [ ',' ]]));
output += '\n\n    <ol class="corrects">\n';
//line 306 "listening_review.tt"

// FOREACH 
(function() {
    var list = stash.get('corrects');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 301 "listening_review.tt"
stash.set('choice_num', stash.get('i') * 1 - 1);
output += '\n      <li>\n        <div class="en">';
//line 303 "listening_review.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('choice_num'), 0]);
output += '</div>\n        <div class="jp">';
//line 304 "listening_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('choice_num'), 0]);
output += '</div>\n      </li>\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ol>\n\n    <h3>あなたの答え</h3>\n\n    <ol class="answers">\n';
//line 318 "listening_review.tt"

// FOREACH 
(function() {
    var list = stash.get('answers');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 313 "listening_review.tt"
stash.set('choice_num', stash.get('i') * 1 - 1);
output += '\n      <li>\n        <div class="en">';
//line 315 "listening_review.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('choice_num'), 0]);
output += '</div>\n        <div class="jp">';
//line 316 "listening_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('choice_num'), 0]);
output += '</div>\n      </li>\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ol>\n\n  <!-- q-and-a -->\n  </div>\n  \n  <div class="p-and-d">\n\n    <h3>音声スクリプト</h3>\n    <div class="passage minor';
//line 327 "listening_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 327 "listening_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 328 "listening_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <div id="question';
//line 331 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player" class="sound-player">question';
//line 331 "listening_review.tt"
output += stash.get('question_count');
output += '_MP3Player</div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 335 "listening_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n  \n<!-- /slide -->\n</div>\n\n\n';
break;

case 'ds':
output += ' ds ';
//line 345 "listening_review.tt"
output += stash.get(['q', 0, 'part', 0]);
output += '-';
//line 345 "listening_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '<br>\n';
break;


    }


output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n';
//line 365 "listening_review.tt"
if (stash.get('isExperienceMode')) {
output += '\n<div id="reviewOutro" class="slide reviewOutro">\n  <p>いかがでしたか？これにて「リスニング模擬試験-答えと解説 体験版」は終了です。<br>旺文社TOEFLiBT大戦略Onlineなら日本語による詳しい解説でしっかりフォローします。<br>TOEFLiBTのトレーニングお役立てください！</p>\n\n  <div id="btn_buy"><a href="../buy.html"><span class="alt">購入する</span></a></div>\n\n  <ul>\n    <li><a href="promotion_listening.html">リスニング模擬試験</a>も体験してみる。</li>\n    <li><a href="promotion_review_reading.html">リーディング模擬試験の答えと解説</a>も体験してみる。</li>\n  </ul>\n</div>\n\n<div id="alertForPromotion" class="floatingWindow flora">\n  <p>体験版ではこの機能は利用できません。</p>\n  <button onclick="c.notify(\'closeWindow\')">OK</button>\n</div>\n';
}

output += '\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['writing_review.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '              ';
//line 1 "writing_review.tt"
stash.set('count', 1);
output += '\r\n              ';
//line 2 "writing_review.tt"
stash.set('q_count', 1);
output += '\r\n              ';
//line 93 "writing_review.tt"

// FOREACH 
(function() {
    var list = stash.get('questions');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['q'] = value;
output += '\r\n              ';
//line 4 "writing_review.tt"
stash.set('memo_flg', 0);
output += '\r\n              ';
//line 5 "writing_review.tt"
stash.set('result_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\r\n              ';
//line 6 "writing_review.tt"
stash.set('r', stash.get(['results', 0, stash.get('result_index'), 0]));
output += '\r\n\r\n              <div id="question';
//line 8 "writing_review.tt"
output += stash.get('q_count');
output += '" class="slide">\r\n\r\n                <a class="clear" name="no-';
//line 10 "writing_review.tt"
output += stash.get('count');
output += '"></a>\r\n                <div class="link"><a href="#no-';
//line 11 "writing_review.tt"
output += stash.get('count') + 1;
output += '">模範解答と解説</a><a href="#no-';
//line 11 "writing_review.tt"
output += stash.get('count') + 2;
output += '">あなたの解答</a></div>\r\n                <h3>問題</h3>\r\n                <div class="passage minor major">\r\n\r\n                  ';
//line 22 "writing_review.tt"
if (stash.get(['q', 0, 'issue_r', 0])) {
output += '\r\n                  <h4>Reading：</h4>\r\n                  <div class="sentences">\r\n                    ';
//line 18 "writing_review.tt"
output += stash.get(['q', 0, 'issue_r', 0]);
output += '\r\n                  </div>\r\n                  <div class="memoRLA memoRL"><span class="alt">MEMO</span></div>\r\n                  ';
//line 21 "writing_review.tt"
stash.set('memo_flg', 1);
output += '\r\n                  ';
}

output += '\r\n\r\n                  ';
//line 32 "writing_review.tt"
if (stash.get(['q', 0, 'issue_l', 0])) {
output += '\r\n                  ';
//line 25 "writing_review.tt"
stash.set('memo_flg', 1);
output += '\r\n                  <h4>Listening：</h4>\r\n                  <div id="question1_MP3Player" class="sound-player">question1_MP3Player</div>\r\n                  <div class="sentences">\r\n                    ';
//line 29 "writing_review.tt"
output += stash.get(['q', 0, 'issue_l', 0]);
output += '\r\n                  </div>\r\n                  <div class="memoRLA memoRL"><span class="alt">MEMO</span></div>\r\n                  ';
}

output += '\r\n\r\n                  <h4>Question</h4>\r\n                  <div class="sentences">\r\n                    ';
//line 36 "writing_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '\r\n                  </div>\r\n\r\n                </div>\r\n\r\n                <a class="clear" name="no-';
//line 41 "writing_review.tt"
output += stash.get('count') + 1;
output += '"></a>\r\n                <div class="link"><a href="#no-';
//line 42 "writing_review.tt"
output += stash.get('count');
output += '">問題</a><a href="#no-';
//line 42 "writing_review.tt"
output += stash.get('count') + 2;
output += '">あなたの解答</a></div>\r\n                <h3>模範解答と解説</h3>\r\n                <div class="description clearfix">\r\n\r\n                  <div id="column-top">\r\n                    ';
//line 52 "writing_review.tt"
if (stash.get(['q', 0, 'summary', 0])) {
output += '\r\n                    <h4>要約</h4>\r\n                    <div class="summary">\r\n                      ';
//line 50 "writing_review.tt"
output += stash.get(['q', 0, 'summary', 0]);
output += '\r\n                    </div>\r\n                    ';
}

output += '\r\n                  </div>\r\n\r\n                  <div id="column-left">\r\n                    <h4>模範解答</h4>\r\n                    <div id="question-';
//line 57 "writing_review.tt"
output += stash.get('q_count');
output += '" class="sentences">\r\n                      ';
//line 58 "writing_review.tt"
output += stash.get(['q', 0, 'model_answers', 0]);
output += '\r\n                    </div>\r\n                  </div>\r\n\r\n                  <div id="column-right">\r\n                    <h4>解説</h4>\r\n                    <div class="explanation">\r\n                      ';
//line 65 "writing_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\r\n                    </div>\r\n                    ';
//line 67 "writing_review.tt"
output += stash.get(['q', 0, 'memo', 0]);
output += '\r\n                  </div>\r\n\r\n                </div>\r\n                ';
//line 74 "writing_review.tt"
if (stash.get('memo_flg') == 0) {
output += '\r\n                ';
//line 72 "writing_review.tt"
stash.set('memo_flg', 2);
output += '\r\n                <div class="memoRLA memoA"><span class="alt">MEMO</span></div>\r\n                ';
}

output += '\r\n\r\n                <a class="clear" name="no-';
//line 76 "writing_review.tt"
output += stash.get('count') + 2;
output += '"></a>\r\n                <div class="link"><a href="#no-';
//line 77 "writing_review.tt"
output += stash.get('count');
output += '">問題</a><a href="#no-';
//line 77 "writing_review.tt"
output += stash.get('count') + 1;
output += '">模範解答と解説</a></div>\r\n                <h3>あなたの解答</h3>\r\n                <div class="answer">\r\n                  ';
//line 80 "writing_review.tt"
if (stash.get(['r', 0, 'user_answer', 0])) {
//line 80 "writing_review.tt"
output += stash.get(['r', 0, 'user_answer', 0]);
output += '&nbsp;（';
//line 80 "writing_review.tt"
output += stash.get(['r', 0, 'num_of_words', 0]);
output += ' 語）';
}
else {
output += '－';
}

output += '\r\n                </div>\r\n\r\n              </div>\r\n\r\n              <div id="memoRLA-';
//line 85 "writing_review.tt"
output += stash.get('q_count');
output += '" class="floatingWindow flora memo" title=';
//line 85 "writing_review.tt"
if (stash.get('memo_flg') == 1) {
output += '"課題内容のメモ例"';
}
else if (stash.get('memo_flg') == 2) {
output += '"模範解答の設計図"';
}

output += '>\r\n                <div class="memo-column clearfix">\r\n                  ';
//line 87 "writing_review.tt"
output += stash.get(['q', 0, 'memo', 0]);
output += '\r\n                </div>\r\n              </div>\r\n\r\n              ';
//line 91 "writing_review.tt"
stash.set('q_count', stash.get('q_count') + 1);
output += '\r\n              ';
//line 92 "writing_review.tt"
stash.set('count', stash.get('count') + 3);
output += '\r\n              ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\r\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['reading_review.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 460 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get('questions');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['q'] = value;
output += '\n\n';
//line 3 "reading_review.tt"
stash.set('passage_num', stash.get(['q', 0, 'major', 0]) - 1);
output += '\n';
//line 4 "reading_review.tt"
stash.set('passage', stash.get(['passages', 0, stash.get('passage_num'), 0]));
output += '\n';
//line 5 "reading_review.tt"
stash.set('result_index', stash.get('result_offset') * 1 + stash.get(['loop', 0, 'count', 0]) * 1 - 1);
output += '\n';
//line 6 "reading_review.tt"
stash.set('result', stash.get(['results', 0, stash.get('result_index'), 0]));
output += '\n\n';
//line 14 "reading_review.tt"
if (stash.get(['result', 0, 'saw_solution', 0]) == '1') {
output += '\n';
//line 9 "reading_review.tt"
stash.set('status', '<span class=\'saw_solution\'>SAW SOLUTION</span>');
output += '\n';
}
else if (stash.get(['result', 0, 'correct_answer', 0]) == stash.get(['result', 0, 'user_answer', 0])) {
output += '\n';
//line 11 "reading_review.tt"
stash.set('status', '<span class=\'maru\'><span class=\'alt\'>○</span></span>');
output += '\n';
}
else {
output += '\n';
//line 13 "reading_review.tt"
stash.set('status', '<span class=\'batsu\'><span class=\'alt\'>×</span></span>');
output += '\n';
}

output += '\n\n';
//line 16 "reading_review.tt"
stash.set('question_count', stash.get(['loop', 0, 'count', 0]));
output += '\n\n';
//line 459 "reading_review.tt"

    switch(stash.get(['q', 0, 'type', 0])) {
case 's':
output += '\n<div id="question';
//line 20 "reading_review.tt"
output += stash.get('question_count');
output += '" class="slide questionS">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 24 "reading_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 26 "reading_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 27 "reading_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n';
//line 29 "reading_review.tt"
stash.set('choices_e', [ stash.get(['q', 0, 'choice1_e', 0]), stash.get(['q', 0, 'choice2_e', 0]), stash.get(['q', 0, 'choice3_e', 0]), stash.get(['q', 0, 'choice4_e', 0]) ]);
output += '\n';
//line 30 "reading_review.tt"
stash.set('choices_j', [ stash.get(['q', 0, 'choice1_j', 0]), stash.get(['q', 0, 'choice2_j', 0]), stash.get(['q', 0, 'choice3_j', 0]), stash.get(['q', 0, 'choice4_j', 0]) ]);
output += '\n\n    <ul class="choices">\n';
//line 39 "reading_review.tt"

// FOREACH 
(function() {
    var list = [ 0, 1, 2, 3 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 34 "reading_review.tt"
stash.set('choice_num', stash.get('i') + 1);
output += '\n      <li';
//line 35 "reading_review.tt"
if (stash.get(['result', 0, 'user_answer', 0]) == stash.get('choice_num')) {
output += ' class="choiced"';
}

output += '>\n        <div class="en';
//line 36 "reading_review.tt"
if (stash.get(['result', 0, 'correct_answer', 0]) == stash.get('choice_num')) {
output += ' correct';
}

output += '">';
//line 36 "reading_review.tt"
output += stash.get(['choices_e', 0, stash.get('i'), 0]);
output += '</div>\n        <div class="jp">';
//line 37 "reading_review.tt"
output += stash.get(['choices_j', 0, stash.get('i'), 0]);
output += '</div>                  \n      </li>\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n  <!-- q-and-a -->\n  </div>\n  \n  <div class="p-and-d">\n\n    <h3>パッセージ</h3>\n    <div class="passage minor';
//line 48 "reading_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 48 "reading_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 49 "reading_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 54 "reading_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n  \n<!-- /slide -->\n</div>\n\n';
break;

case 'ss':
output += '   Part';
//line 63 "reading_review.tt"
output += stash.get(['q', 0, 'part', 0]);
output += ' ss<hr>\n';
break;

case 'm':
output += '\n<div id="question';
//line 65 "reading_review.tt"
output += stash.get('question_count');
output += '" class="slide questionM">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 69 "reading_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 71 "reading_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 72 "reading_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n    <p class="instruction en">';
//line 74 "reading_review.tt"
output += stash.get(['q', 0, 'direction_e', 0]);
output += '</p>\n    <p class="instruction jp">';
//line 75 "reading_review.tt"
output += stash.get(['q', 0, 'direction_j', 0]);
output += '</p>\n\n\n';
//line 78 "reading_review.tt"
stash.set('correct_table', [ ]);
output += '\n';
//line 79 "reading_review.tt"
stash.set('answer_table', [ ]);
output += '\n\n';
//line 81 "reading_review.tt"
stash.set('corrects', stash.get(['q', 0, 'correct_answer', 0, 'split', [ ',' ]]));

output += '\n\n';
//line 91 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['choice'] = value;
output += '\n';
//line 84 "reading_review.tt"
stash.set('i', stash.get(['loop', 0, 'index', 0]));
output += '\n';
//line 90 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get('corrects');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n';
//line 86 "reading_review.tt"
stash.set('n', stash.get('c') - 1);
output += '\n';
//line 89 "reading_review.tt"
if (stash.get('i') == stash.get('n')) {
output += '\n';
//line 88 "reading_review.tt"
stash.set(['correct_table', 0, stash.get('i'), 0], 1);
output += '\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n';
//line 93 "reading_review.tt"
stash.set('answers', stash.get(['result', 0, 'user_answer', 0, 'split', [ ',' ]]));

output += '\n\n';
//line 103 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['choice'] = value;
output += '\n';
//line 96 "reading_review.tt"
stash.set('i', stash.get(['loop', 0, 'index', 0]));
output += '\n';
//line 102 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get('answers');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['a'] = value;
output += '\n';
//line 98 "reading_review.tt"
stash.set('n', stash.get('a') - 1);
output += '\n';
//line 101 "reading_review.tt"
if (stash.get('i') == stash.get('n')) {
output += '\n';
//line 100 "reading_review.tt"
stash.set(['answer_table', 0, stash.get('i'), 0], 1);
output += '\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n    <ul class="choices">\n';
//line 106 "reading_review.tt"
stash.set('i', 0);
output += '\n';
//line 113 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n      <li';
//line 108 "reading_review.tt"
if (stash.get(['answer_table', 0, stash.get('i'), 0])) {
output += ' class="choiced"';
}

output += '>\n        <div class="en';
//line 109 "reading_review.tt"
if (stash.get(['correct_table', 0, stash.get('i'), 0])) {
output += ' correct';
}

output += '">';
//line 109 "reading_review.tt"
output += stash.get('c');
output += '</div>\n        <div class="jp">';
//line 110 "reading_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('i'), 0]);
output += '</div>                  \n      </li>\n';
//line 112 "reading_review.tt"
stash.set('i', stash.get('i') + 1);
output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n  <!-- q-and-a -->\n  </div>\n  \n  <div class="p-and-d">\n\n    <h3>パッセージ</h3>\n    <div class="passage minor';
//line 122 "reading_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 122 "reading_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 123 "reading_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 128 "reading_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n  \n<!-- /slide -->\n</div>\n\n';
break;

case 'p':
output += '\n<div id="question';
//line 138 "reading_review.tt"
output += stash.get('question_count');
output += '" class="slide questionP">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 142 "reading_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 144 "reading_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 145 "reading_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n    <h3>正答とあなたの答え</h3>\n\n    <table>\n      <tbody>\n        <tr>\n';
//line 158 "reading_review.tt"

// FOREACH 
(function() {
    var list = [ 1, 2, 3, 4 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n          <td';
//line 153 "reading_review.tt"
if (stash.get('i') == stash.get(['q', 0, 'correct_answer', 0])) {
output += ' class="correct"';
}

output += '><img';
//line 153 "reading_review.tt"
if (stash.get('i') == stash.get(['result', 0, 'user_answer', 0])) {
output += ' class="choiced"';
}

output += ' src="';
//line 153 "reading_review.tt"
output += stash.get('static_path');
output += 'img/exam/';
//line 153 "reading_review.tt"
output += stash.get('exam_id');
output += '-R-';
//line 153 "reading_review.tt"
output += stash.get(['q', 0, 'part', 0]);
output += '-';
//line 153 "reading_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '-';
//line 153 "reading_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '-';
//line 153 "reading_review.tt"
output += stash.get('i');
output += '.jpg" width="120"></td>\n';
//line 157 "reading_review.tt"
if (stash.get(['loop', 0, 'count', 0]) == 2) {
output += '\n        </tr>\n        <tr>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n        </tr>\n      </tbody>\n    </table>\n\n  <!-- q-and-a -->\n  </div>\n  \n  <div class="p-and-d">\n\n    <h3>パッセージ</h3>\n    <div class="passage minor';
//line 169 "reading_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 169 "reading_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 170 "reading_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 175 "reading_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n  \n<!-- /slide -->\n</div>\n\n';
break;

case 'i':
output += '\n<div id="question';
//line 185 "reading_review.tt"
output += stash.get('question_count');
output += '" class="slide questionI">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 189 "reading_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 191 "reading_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 192 "reading_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n    <p class="sentence en">';
//line 194 "reading_review.tt"
output += stash.get(['q', 0, 'ins_s_e', 0]);
output += '</p>\n    <p class="sentence jp">';
//line 195 "reading_review.tt"
output += stash.get(['q', 0, 'ins_s_j', 0]);
output += '</p>\n\n  <!-- q-and-a -->\n  </div>\n  \n  <div class="p-and-d">\n\n    <div class="alt">\n      <div class="correct">';
//line 203 "reading_review.tt"
output += stash.get(['q', 0, 'correct_answer', 0]);
output += '</div>\n      <div class="user_answer">';
//line 204 "reading_review.tt"
output += stash.get(['result', 0, 'user_answer', 0]);
output += '</div>\n    </div>\n\n    <h3>パッセージ</h3>\n    <div class="passage minor';
//line 208 "reading_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 208 "reading_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 209 "reading_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 214 "reading_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n  \n<!-- /slide -->\n</div>\n\n';
break;

case 'd':
output += '\n<div id="question';
//line 224 "reading_review.tt"
output += stash.get('question_count');
output += '" class="slide questionD">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 228 "reading_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 230 "reading_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 231 "reading_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n';
//line 233 "reading_review.tt"
stash.set('options_e', stash.get(['q', 0, 'choice_e', 0, 'replace', [ '[{}]', '' ], 'split', [ '[|]' ]]));
output += '\n';
//line 234 "reading_review.tt"
stash.set('options_j', stash.get(['q', 0, 'choice_j', 0, 'replace', [ '[{}]', '' ], 'split', [ '[|]' ]]));
output += '\n';
//line 235 "reading_review.tt"
stash.set('corrects', stash.get(['q', 0, 'correct_answer', 0, 'split', [ ',' ]]));
output += '\n';
//line 236 "reading_review.tt"
stash.set('user_answers', stash.get(['result', 0, 'user_answer', 0, 'split', [ ',' ]]));
output += '\n\n    <h3>正答</h3>\n\n    <ul class="corrects">\n';
//line 249 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get('options_e');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 242 "reading_review.tt"
stash.set('option_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\n';
//line 248 "reading_review.tt"
if (stash.get(['corrects', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0) {
output += '\n      <li>\n        <div class="en">';
//line 245 "reading_review.tt"
output += stash.get('i');
output += '</div>\n        <div class="jp">';
//line 246 "reading_review.tt"
output += stash.get(['options_j', 0, stash.get('option_index'), 0]);
output += '</div>\n      </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n    <ul class="surpluses-left">\n';
//line 261 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get('options_e');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 260 "reading_review.tt"
if (stash.get(['corrects', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0) {
output += '\n';
}
else {
output += '\n      <li>\n        <div class="en">';
//line 257 "reading_review.tt"
output += stash.get('i');
output += '</div>\n        <div class="jp">';
//line 258 "reading_review.tt"
output += stash.get(['options_j', 0, stash.get('option_index'), 0]);
output += '</div>\n      </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n    <h3>あなたの答え</h3>\n\n    <ul class="choiced">\n';
//line 275 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get('options_e');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 268 "reading_review.tt"
stash.set('option_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\n';
//line 274 "reading_review.tt"
if (stash.get(['user_answers', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0) {
output += '\n      <li>\n        <div class="en">';
//line 271 "reading_review.tt"
output += stash.get('i');
output += '</div>\n        <div class="jp">';
//line 272 "reading_review.tt"
output += stash.get(['options_j', 0, stash.get('option_index'), 0]);
output += '</div>\n      </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n    <ul class="user-surpluses-left">\n';
//line 287 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get('options_e');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n';
//line 286 "reading_review.tt"
if (stash.get(['user_answers', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0) {
output += '\n';
}
else {
output += '\n      <li>\n        <div class="en">';
//line 283 "reading_review.tt"
output += stash.get('i');
output += '</div>\n        <div class="jp">';
//line 284 "reading_review.tt"
output += stash.get(['options_j', 0, stash.get('option_index'), 0]);
output += '</div>\n      </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n\n  <!-- q-and-a -->\n  </div>\n  \n  <div class="p-and-d">\n\n    <h3>パッセージ</h3>\n    <div class="passage minor';
//line 297 "reading_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 297 "reading_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 298 "reading_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 303 "reading_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n  \n<!-- /slide -->\n</div>\n\n\n';
break;

case 'ds':
output += '\n<div id="question';
//line 314 "reading_review.tt"
output += stash.get('question_count');
output += '" class="slide questionDs">\n\n  <div class="q-and-a">\n  \n    <p class="status">Status:';
//line 318 "reading_review.tt"
output += stash.get('status');
output += '</p>\n\n    <p class="question en">';
//line 320 "reading_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</p>\n    <p class="question jp">';
//line 321 "reading_review.tt"
output += stash.get(['q', 0, 'question_j', 0]);
output += '</p>\n\n';
//line 323 "reading_review.tt"
stash.set('splits', stash.get(['q', 0, 'correct_answer', 0, 'split', [ '[|]' ]]));
output += '\n';
//line 324 "reading_review.tt"
stash.set('left_corrects', stash.get(['splits', 0, 0, 0, 'split', [ ',' ]]));
output += '\n';
//line 325 "reading_review.tt"
stash.set('right_corrects', stash.get(['splits', 0, 1, 0, 'split', [ ',' ]]));
output += '\n';
//line 326 "reading_review.tt"
stash.set('corrects', stash.get(['q', 0, 'correct_answer', 0, 'replace', [ '[|]', ',' ], 'split', [ ',' ]]));
output += '\n\n';
//line 328 "reading_review.tt"
stash.set('splits', stash.get(['result', 0, 'user_answer', 0, 'split', [ '[|]' ]]));
output += '\n';
//line 329 "reading_review.tt"
stash.set('left_choiced', stash.get(['splits', 0, 0, 0, 'split', [ ',' ]]));
output += '\n';
//line 330 "reading_review.tt"
stash.set('right_choiced', stash.get(['splits', 0, 1, 0, 'split', [ ',' ]]));
output += '\n';
//line 331 "reading_review.tt"
stash.set('choiced', stash.get(['result', 0, 'user_answer', 0, 'replace', [ '[|]', ',' ], 'split', [ ',' ]]));
output += '\n\n    <h3>正答</h3>\n\n    <ul class="surpluses">\n';
//line 336 "reading_review.tt"
stash.set('choice_count', 0);
output += '\n';
//line 345 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n';
//line 338 "reading_review.tt"
stash.set('choice_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\n';
//line 344 "reading_review.tt"
if (!(stash.get(['corrects', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0)) {
output += '\n        <li>\n          <div class="en">';
//line 341 "reading_review.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('choice_index'), 0]);
output += '</div>\n          <div class="jp">';
//line 342 "reading_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('choice_index'), 0]);
output += '</div>\n        </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n    <div class="correct-left">\n      <h4 class="en">';
//line 349 "reading_review.tt"
output += stash.get(['q', 0, 'cho_a_h_e', 0, 0, 0]);
output += '</h4>\n      <h4 class="jp">';
//line 350 "reading_review.tt"
output += stash.get(['q', 0, 'cho_a_h_j', 0, 0, 0]);
output += '</h4>\n      <div>\n        <ul>\n';
//line 361 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n';
//line 354 "reading_review.tt"
stash.set('choice_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\n';
//line 360 "reading_review.tt"
if (stash.get(['left_corrects', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0) {
output += '\n          <li>\n            <div class="en">';
//line 357 "reading_review.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('choice_index'), 0]);
output += '</div>\n            <div class="jp">';
//line 358 "reading_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('choice_index'), 0]);
output += '</div>\n          </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n        </ul>\n      </div>\n    </div>\n\n    <div class="correct-right">\n      <h4 class="en">';
//line 367 "reading_review.tt"
output += stash.get(['q', 0, 'cho_b_h_e', 0, 0, 0]);
output += '</h4>\n      <h4 class="jp">';
//line 368 "reading_review.tt"
output += stash.get(['q', 0, 'cho_b_h_j', 0, 0, 0]);
output += '</h4>\n      <div>\n        <ul>\n';
//line 379 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n';
//line 372 "reading_review.tt"
stash.set('choice_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\n';
//line 378 "reading_review.tt"
if (stash.get(['right_corrects', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0) {
output += '\n          <li>\n            <div class="en">';
//line 375 "reading_review.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('choice_index'), 0]);
output += '</div>\n            <div class="jp">';
//line 376 "reading_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('choice_index'), 0]);
output += '</div>\n          </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n        </ul>\n      </div>\n    </div>\n\n    <h3>あなたの答え</h3>\n\n    <ul class="user-surpluses">\n';
//line 387 "reading_review.tt"
stash.set('choice_count', 0);
output += '\n';
//line 396 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n';
//line 389 "reading_review.tt"
stash.set('choice_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\n';
//line 395 "reading_review.tt"
if (!(stash.get(['choiced', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0)) {
output += '\n        <li>\n          <div class="en">';
//line 392 "reading_review.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('choice_index'), 0]);
output += '</div>\n          <div class="jp">';
//line 393 "reading_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('choice_index'), 0]);
output += '</div>\n        </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    </ul>\n\n    <div class="choiced-left">\n      <h4 class="en">';
//line 400 "reading_review.tt"
output += stash.get(['q', 0, 'cho_a_h_e', 0, 0, 0]);
output += '</h4>\n      <h4 class="jp">';
//line 401 "reading_review.tt"
output += stash.get(['q', 0, 'cho_a_h_j', 0, 0, 0]);
output += '</h4>\n      <div>\n        <ul>\n';
//line 412 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n';
//line 405 "reading_review.tt"
stash.set('choice_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\n';
//line 411 "reading_review.tt"
if (stash.get(['left_choiced', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0) {
output += '\n          <li>\n            <div class="en">';
//line 408 "reading_review.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('choice_index'), 0]);
output += '</div>\n            <div class="jp">';
//line 409 "reading_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('choice_index'), 0]);
output += '</div>\n          </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n        </ul>\n      </div>\n    </div>\n\n    <div class="choiced-right">\n      <h4 class="en">';
//line 418 "reading_review.tt"
output += stash.get(['q', 0, 'cho_b_h_e', 0, 0, 0]);
output += '</h4>\n      <h4 class="jp">';
//line 419 "reading_review.tt"
output += stash.get(['q', 0, 'cho_b_h_j', 0, 0, 0]);
output += '</h4>\n      <div>\n        <ul>\n';
//line 430 "reading_review.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n';
//line 423 "reading_review.tt"
stash.set('choice_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\n';
//line 429 "reading_review.tt"
if (stash.get(['right_choiced', 0, 'grep', [ stash.get(['loop', 0, 'count', 0]) ]]) > 0) {
output += '\n          <li>\n            <div class="en">';
//line 426 "reading_review.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('choice_index'), 0]);
output += '</div>\n            <div class="jp">';
//line 427 "reading_review.tt"
output += stash.get(['q', 0, 'choice_j', 0, stash.get('choice_index'), 0]);
output += '</div>\n          </li>\n';
}

output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n        </ul>\n      </div>\n    </div>\n\n\n  <!-- q-and-a -->\n  </div>\n  \n  <div class="p-and-d">\n\n    <h3>パッセージ</h3>\n    <div class="passage minor';
//line 442 "reading_review.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += ' major';
//line 442 "reading_review.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '">\n      ';
//line 443 "reading_review.tt"
output += stash.get(['passage', 0, 'text_h', 0]);
output += '\n    </div>\n\n    <h3>解説</h3>\n    <div class="description">\n      ';
//line 448 "reading_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\n    </div>\n\n  <!-- /p-and-d -->\n  </div>\n  \n<!-- /slide -->\n</div>\n\n';
break;

case 'dms':
output += '  Part';
//line 457 "reading_review.tt"
output += stash.get(['q', 0, 'part', 0]);
output += ' dms<hr>\n';
break;

case 'do':
output += '   Part';
//line 458 "reading_review.tt"
output += stash.get(['q', 0, 'part', 0]);
output += ' do<hr>\n';
break;


    }


output += '\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n';
//line 478 "reading_review.tt"
if (stash.get('isExperienceMode')) {
output += '\n<div id="reviewOutro" class="slide reviewOutro">\n  <p>いかがでしたか？これにて「リスニング模擬試験-答えと解説 体験版」は終了です。<br>旺文社TOEFLiBT大戦略Onlineなら日本語による詳しい解説でしっかりフォローします。<br>TOEFLiBTのトレーニングお役立てください！</p>\n\n  <div id="btn_buy"><a href="../buy.html"><span class="alt">購入する</span></a></div>\n\n  <ul>\n    <li><a href="promotion_listening.html">リスニング模擬試験</a>も体験してみる。</li>\n    <li><a href="promotion_reviewreading.html">リーディング模擬試験の答えと解説</a>も体験してみる。</li>\n  </ul>\n</div>\n\n<div id="alertForPromotion" class="floatingWindow flora">\n  <p>体験版ではこの機能は利用できません。</p>\n  <button onclick="c.notify(\'closeWindow\')">OK</button>\n</div>\n';
}

output += '\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['speaking_review.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '              ';
//line 1 "speaking_review.tt"
stash.set('count', 1);
output += '\r\n              ';
//line 2 "speaking_review.tt"
stash.set('q_count', 1);
output += '\r\n              ';
//line 95 "speaking_review.tt"

// FOREACH 
(function() {
    var list = stash.get('questions');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['q'] = value;
output += '\r\n              ';
//line 4 "speaking_review.tt"
stash.set('memo_flg', 0);
output += '\r\n              ';
//line 5 "speaking_review.tt"
stash.set('result_index', stash.get(['loop', 0, 'count', 0]) - 1);
output += '\r\n              ';
//line 6 "speaking_review.tt"
stash.set('r', stash.get(['results', 0, stash.get('result_index'), 0]));
output += '\r\n\r\n              <div id="question';
//line 8 "speaking_review.tt"
output += stash.get('q_count');
output += '" class="slide">\r\n\r\n                <a class="clear" name="no-';
//line 10 "speaking_review.tt"
output += stash.get('count');
output += '"></a>\r\n                <div class="link"><a href="#no-';
//line 11 "speaking_review.tt"
output += stash.get('count') + 1;
output += '">模範解答と解説</a><a href="#no-';
//line 11 "speaking_review.tt"
output += stash.get('count') + 2;
output += '">あなたの解答</a></div>\r\n                <h3>問題</h3>\r\n                <div class="passage minor major">\r\n\r\n                  ';
//line 22 "speaking_review.tt"
if (stash.get(['q', 0, 'issue_r', 0])) {
output += '\r\n                  ';
//line 16 "speaking_review.tt"
stash.set('memo_flg', 1);
output += '\r\n                  <h4>Reading：</h4>\r\n                  <div class="sentences">\r\n                    ';
//line 19 "speaking_review.tt"
output += stash.get(['q', 0, 'issue_r', 0]);
output += '\r\n                  </div>\r\n                  <div class="memoRLA memoRL"><span class="alt">MEMO</span></div>\r\n                  ';
}

output += '\r\n\r\n                  ';
//line 32 "speaking_review.tt"
if (stash.get(['q', 0, 'issue_l', 0])) {
output += '\r\n                  <h4>Listening：</h4>\r\n                  <div id="question';
//line 26 "speaking_review.tt"
output += stash.get('q_count');
output += '_MP3Player" class="sound-player">question_MP3Player</div>\r\n                  <div class="sentences">\r\n                    ';
//line 28 "speaking_review.tt"
output += stash.get(['q', 0, 'issue_l', 0]);
output += '\r\n                  </div>\r\n                  <div class="memoRLA memoRL"><span class="alt">MEMO</span></div>\r\n                  ';
//line 31 "speaking_review.tt"
stash.set('memo_flg', 1);
output += '\r\n                  ';
}

output += '\r\n\r\n                  <h4>Question</h4>\r\n                  <div class="sentences">\r\n                    ';
//line 36 "speaking_review.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '\r\n                  </div>\r\n\r\n                </div>\r\n\r\n                <a class="clear" name="no-';
//line 41 "speaking_review.tt"
output += stash.get('count') + 1;
output += '"></a>\r\n                <div class="link"><a href="#no-';
//line 42 "speaking_review.tt"
output += stash.get('count');
output += '">問題</a><a href="#no-';
//line 42 "speaking_review.tt"
output += stash.get('count') + 2;
output += '">あなたの解答</a></div>\r\n                <h3>模範解答と解説</h3>\r\n                <div class="description clearfix">\r\n\r\n                  <div id="column-top">\r\n                    ';
//line 52 "speaking_review.tt"
if (stash.get(['q', 0, 'summary', 0])) {
output += '\r\n                    <h4>要約</h4>\r\n                    <div class="summary">\r\n                      ';
//line 50 "speaking_review.tt"
output += stash.get(['q', 0, 'summary', 0]);
output += '\r\n                    </div>\r\n                    ';
}

output += '\r\n                  </div>\r\n\r\n                  <div id="column-left">\r\n                    <h4>模範解答</h4>\r\n                    <div id="question-';
//line 57 "speaking_review.tt"
output += stash.get('q_count');
output += '" class="sentences">\r\n                      <div id="question';
//line 58 "speaking_review.tt"
output += stash.get('q_count');
output += '_MP3Player_modelAnswers" class="sound-player">question_MP3Player</div>\r\n                      ';
//line 59 "speaking_review.tt"
output += stash.get(['q', 0, 'model_answers', 0]);
output += '\r\n                    </div>\r\n                  </div>\r\n\r\n                  <div id="column-right">\r\n                    <h4>解説</h4>\r\n                    <div class="explanation">\r\n                      ';
//line 66 "speaking_review.tt"
output += stash.get(['q', 0, 'comment', 0]);
output += '\r\n                    </div>\r\n                    ';
//line 68 "speaking_review.tt"
output += stash.get(['q', 0, 'memo', 0]);
output += '\r\n                  </div>\r\n\r\n                </div>\r\n                ';
//line 75 "speaking_review.tt"
if (stash.get('memo_flg') == 0) {
output += '\r\n                ';
//line 73 "speaking_review.tt"
stash.set('memo_flg', 2);
output += '\r\n                <div class="memoRLA memoA"><span class="alt">MEMO</span></div>\r\n                ';
}

output += '\r\n\r\n                <a class="clear" name="no-';
//line 77 "speaking_review.tt"
output += stash.get('count') + 2;
output += '"></a>\r\n                <div class="link"><a href="#no-';
//line 78 "speaking_review.tt"
output += stash.get('count');
output += '">問題</a><a href="#no-';
//line 78 "speaking_review.tt"
output += stash.get('count') + 1;
output += '">模範解答と解説</a></div>\r\n                <h3>あなたの解答</h3>\r\n                <div class="answer">\r\n                  <div id="FCSPlayback_';
//line 81 "speaking_review.tt"
output += stash.get('q_count');
output += '" class="FCSPlayback">';
//line 81 "speaking_review.tt"
output += stash.get(['r', 0, 'user_answer', 0]);
output += '</div>\r\n                  <div id="elapsed_time">録音時間 ： ';
//line 82 "speaking_review.tt"
output += stash.get(['r', 0, 'elapsed_time', 0]);
output += ' 秒</div>\r\n                </div>\r\n\r\n              </div>\r\n\r\n              <div id="memoRLA-';
//line 87 "speaking_review.tt"
output += stash.get('q_count');
output += '" class="floatingWindow flora memo" title=';
//line 87 "speaking_review.tt"
if (stash.get('memo_flg') == 1) {
output += '"課題内容のメモ例"';
}
else if (stash.get('memo_flg') == 2) {
output += '"模範解答の設計図"';
}

output += '>\r\n                <div class="memo-column clearfix">\r\n                  ';
//line 89 "speaking_review.tt"
output += stash.get(['q', 0, 'memo', 0]);
output += '\r\n                </div>\r\n              </div>\r\n\r\n              ';
//line 93 "speaking_review.tt"
stash.set('q_count', stash.get('q_count') + 1);
output += '\r\n              ';
//line 94 "speaking_review.tt"
stash.set('count', stash.get('count') + 3);
output += '\r\n              ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['speaking.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 370 "speaking.tt"

// FOREACH 
(function() {
    var list = stash.get('questions');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['q'] = value;
output += '\r\n\r\n  ';
//line 123 "speaking.tt"
if (stash.get(['q', 0, 'part', 0]) == 1 && stash.get(['q', 0, 'minor', 0]) == 1) {
output += '\r\n\r\n<div id="examIntro" class="slide examIntro">\r\n  <h1>Speaking</h1>\r\n  <h2 class="speaking';
//line 7 "speaking.tt"
output += stash.get('examNo');
output += '">Practice Test (Continueボタンをクリックしてください)</h2>\r\n  <div class="disclaimer">\r\n    <p>※このPractice TestはTOEFL(R) iBTの出題形式に準じて開発されていますが、画面のデザインや一部の機能・動作など、実際の試験とは異なる部分があります。</p>\r\n    <p>また、DirectionやHelpなどテストの進行・操作に関する指示は実際のテストでは英語ですが、このPractice Testでは主に日本語で収録しています。</p>\r\n  </div>\r\n</div>\r\n\r\n<div id="generalInfo" class="slide generalInfo">\r\n  <h3>General Test Information</h3>\r\n  <p>リーディングセクションでは3～5つのパッセージを読み，設問に答えます。</p>\r\n  <p>リスニングセクションでは，2つの会話と4つの講義を聞き，設問に答えます。</p>\r\n  <p>スピーキングセクションでは，6つの設問に答えます。</p>\r\n  <p>ライティングセクションでは，2つの設問に答えます。</p>\r\n  <p>先に進む場合は<em>Continue</em>ボタンをクリックしてください。</p>\r\n</div>\r\n\r\n<div id="headset" class="slide headset">\r\n  <h3>ヘッドフォンを装着してください。</h3>\r\n  <div class="phoneman">ヘッドフォン装着図</div>\r\n  <p>先に進む場合は<em>Continue</em>ボタンをクリックしてください。</p>\r\n</div>\r\n\r\n<div id="recordingSetting" class="slide recordingSetting">\r\n  <b>音声を録音するための環境を設定します。</b>\r\n  <p>ボタンの上で右クリックしコンテクストメニューを表示させ、「設定」を選択してください。</p>\r\n  <p>（MAC OS Xで右クリック機能のないマウスを使用されている方は、<br/>[Ctrl]キー+クリックでコンテクストメニューを表示させてください） </p>\r\n  <div id="FCSSetting" class="setting_swf_area" style=""><img src="';
//line 33 "speaking.tt"
output += stash.get('root');
output += 'static/img/exam/btn_setting.gif"/></div>\r\n  <p>下記のチェック項目にしたがって設定を確認してください。</p>\r\n  <div class="settings">\r\n    <div class="setting1">\r\n      <h4>CHECK1</h4>\r\n      <img src="';
//line 38 "speaking.tt"
output += stash.get('root');
output += 'static/img/exam/mic_setting01.gif"/>\r\n      <p>「プライバシー」設定パネルで「許可」を<br />\r\n        クリックし、\r\n        さらに「後で確認」<br />\r\n        または「設定を保存」を\r\n        クリックして<br />\r\n        チェックマークを入れてください。\r\n      </p>\r\n    </div>\r\n    <div class="setting2">\r\n      <h4>CHECK2</h4>\r\n      <img src="';
//line 49 "speaking.tt"
output += stash.get('root');
output += 'static/img/exam/mic_setting02.gif"/>\r\n      <p>「マイク」設定パネル<br />\r\n        （マイクマークのタブをクリック）\r\n        では、<br />\r\n        現在使用しているマイクが「マイク」の欄に<br />\r\n        設定されているかどうか確認してください。\r\n      </p>\r\n    </div>\r\n    <p class="settings_footer">準備ができたら<em>Continue</em>ボタンをクリックしてください。</p>\r\n  </div>\r\n</div>\r\n\r\n<div id="rehearsal" class="slide rehearsal">\r\n  <div class="rehearsalArea">\r\n    <h3>Adjusting the Microphone</h3>\r\n    <div class="text_area">\r\n      <p>マイクの音量調節のために，以下のテーマについて，普通に話す調子と音量で話してください。</p>\r\n      <p>話す時間は15秒ですが，早めに終了したら，<em>Stop Recording</em>ボタンをクリックしてください。</p>\r\n      <p>録音が終了しましたら，<em>Playback Response</em>ボタンをクリックして録音した音声を聞いてください。</p>\r\n      <p>音声がはっきりと聞こえない場合は，再度調整してください。</p>\r\n      <p>※インターネットに接続する回線の状態などにより、「ピー」という音の後に若干遅れて実際の録音が開始されることがあります。解答の際は、「ピー」という音が鳴ったら一息置いてからスピーキングを始めるようにしてください。</p>\r\n      <div class="example">\r\n        <p>Describe the city you live in.</p>\r\n      </div>\r\n    </div>\r\n    <div id="FCSRecorder_0"></div>\r\n    <div id="FCSPlayback_0"></div>\r\n';
//line 82 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n    <div style="border:1px solid red; padding:2em;">\r\n      <a href="javascript:c.notify(\'next\')">録音終了イベント</a><br />\r\n      isRcording() is true: <a href="javascript: c.notify(\'next\')">制限時間切れまたは stop recording ボタンクリック</a><br>\r\n      isRcording() is true: <a href="javascript: c.notify(\'next\')">再生終了</a>\r\n    </div>\r\n';
}

output += '\r\n  </div>\r\n</div>\r\n\r\n<div id="rehearsalEnd" class="slide rehearsalEnd">\r\n  <div class="rehearsalArea">\r\n    <div class="text_area">\r\n      <p>録音時間は終了です。話すのを止めてください。</p>\r\n      <p>録音した音声を聞く場合は<span onclick="parent.dispPlaybackSWF();" style="cursor:pointer;"><em>Playback Response</em></span>ボタンをクリックしてください。</p>\r\n      <p>再度，録音をする場合は<span onclick="parent.dispRecSWF();" style="cursor:pointer;"><em>Record Again</em></span>ボタンをクリックしてください。</p>\r\n      <p>解答を終了する場合は、<span onclick="parent.pushOK();" style="cursor:pointer;"><em>Confirm Response</em></span>ボタンをクリックしてください。Confirm Responseをクリックすると、元の問題に戻ることはできません。</p>\r\n      <p>正しく音声が録音されていましたら<span onclick="parent.pushOK();" style="cursor:pointer;"><em>Continue</em></span>ボタンをクリックしてください。次の画面に進みます。</p>\r\n    </div>\r\n    <div class="attention">\r\n      <p>【注意】実際のテストでは、録音を途中で止めたり、聞き直したり、録音し直したりする機能は一切使用できません。</p>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div id="sectionDirection" class="slide sectionDirection">\r\n  <div class="sectionDirectionArea">\r\n    <h2>Speaking Section Directions</h2>\r\n    <div class="text_area">\r\n      <p>スピーキングセクションでは，6題の設問に答えます。</p>\r\n      <p>No.1とNo.2では，身近なトピックについて，自分の考えを話します。</p>\r\n      <p>No.3とNo.4では，同じトピックについてリーディングとリスニングを行い，その内容に関する質問の答えを話します。</p>\r\n      <p>No.5とNo.6では，会話や講義をリスニングし，その内容に関する質問の答えを話します。</p>\r\n      <p>いずれも，質問に対してはっきりと論理的に話す能力を試されます。</p>\r\n      <p>リーディングとリスニングの間にメモを取っても構いません。</p>\r\n      <p>問題の指示文は画面に表示されませんので，注意して聞いてください。</p>\r\n      <p>画面上の時計表示は残り時間を示しています。</p>\r\n    </div>\r\n    <p class="continue_text">準備ができたら<em>Continue</em>ボタンをクリックしてください。</p>\r\n  </div>\r\n';
//line 120 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    <a href="javascript: c.notify(\'sectionDirectionEnd\')">音声終了して待機</a>\r\n  </div>\r\n';
}

output += '\r\n</div>\r\n\r\n  ';
}

output += '\r\n\r\n  ';
//line 348 "speaking.tt"

    switch(stash.get(['q', 0, 'type', 0])) {
case 'tq':
output += '\r\n\r\n<div id="direction';
//line 128 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide direction">\r\n  <div>Please Listen carefully.</div>\r\n  <div class="phoneman">ヘッドフォン装着図</div>\r\n\r\n';
//line 136 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    <a href="javascript: c.notify(\'next\')">音声終了</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n</div>\r\n\r\n<div id="question';
//line 140 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide questionTq">\r\n  <div class="question">\r\n    <div class="question_text">';
//line 142 "speaking.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\r\n    <div class="question_area">\r\n      <table class="recordingtime">\r\n        <tr><td>Preparation Time</td><td>15</td><td>Seconds</td></tr>\r\n        <tr><td>Response Time</td><td>45</td><td>Seconds</td></tr>\r\n      </table>\r\n      <div id="FCSRecorder_';
//line 148 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '"></div>\r\n      <div id="FCSPlayback_';
//line 149 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '"></div>\r\n    </div>\r\n\r\n';
//line 157 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n    <div style="border:1px solid red; padding:2em;">\r\n      isRcording() is true: <a href="javascript: c.notify(\'next\')">制限時間切れまたは stop recording ボタンクリック</a><br>\r\n      isRcording() is true: <a href="javascript: c.notify(\'next\')">再生終了</a>\r\n    </div>\r\n';
}

output += '\r\n  </div>\r\n</div>\r\n\r\n<div id="questionEnd';
//line 161 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide questionEndTq">\r\n';
//line 164 "speaking.tt"
if (stash.get('isExperienceMode')) {
output += '\r\n  <div id="baloon"><span class="alt">こちらのボタンで、録音した音声を聞くことができます。</span></div>\r\n';
}

output += '\r\n  <div class="questionEndArea">\r\n    <div class="text_area">\r\n      <p>録音時間は終了です。話すのを止めてください。</p>\r\n      <p>録音した音声を聞く場合は<span onclick="parent.dispPlaybackSWF();" style="cursor:pointer;"><em>Playback Response</em></span>ボタンをクリックしてください。</p>\r\n      <p>再度，録音をする場合は<span onclick="parent.dispRecSWF();" style="cursor:pointer;"><em>Record Again</em></span>ボタンをクリックしてください。</p>\r\n      <p>解答を終了する場合は、<span onclick="parent.pushOK();" style="cursor:pointer;"><em>Confirm Response</em></span>ボタンをクリックしてください。Confirm Responseをクリックすると、元の問題に戻ることはできません。</p>\r\n      <p>正しく音声が録音されていましたら<span onclick="parent.pushOK();" style="cursor:pointer;"><em>Continue</em></span>ボタンをクリックしてください。次の画面に進みます。</p>\r\n    </div>\r\n    <div class="attention">\r\n      <p>【注意】実際のテストでは、録音を途中で止めたり、聞き直したり、録音し直したりする機能は一切使用できません。</p>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n  ';
break;

case 'tsq':
output += '\r\n\r\n<div id="direction';
//line 181 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide direction">\r\n  <div>Please Listen carefully.</div>\r\n  <div class="phoneman">ヘッドフォン装着図</div>\r\n\r\n';
//line 189 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    <a href="javascript: c.notify(\'next\')">音声終了</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n</div>\r\n\r\n<div id="passage';
//line 193 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide passage">\r\n  <div class="passage_text">';
//line 194 "speaking.tt"
output += stash.get(['q', 0, 'issue_r', 0]);
output += '</div>\r\n\r\n';
//line 201 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    <a href="javascript: c.notify(\'startTimer\')">音声終了</a><br>\r\n    <a href="javascript: c.notify(\'next\')">制限時間切れ</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n</div>\r\n\r\n<div id="listening';
//line 205 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide listening">\r\n  <div id="listening';
//line 206 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_FlvPlayer" class="FlvPlayer"> Flash Movie </div>\r\n\r\n';
//line 212 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    <a href="javascript: c.notify(\'next\')">音声終了</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n</div>\r\n\r\n<div id="preparation';
//line 216 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide preparation">\r\n  <div class="instruction_image">\r\n    <span class="alt">\r\n      Now get ready to answer the questions.\r\n      You may use your notes to help you answer.\r\n    </span>\r\n  </div>\r\n\r\n';
//line 228 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    <a href="javascript: c.notify(\'next\')">一定時間経過</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n</div>\r\n\r\n<div id="question';
//line 232 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide questionTsq">\r\n  <div class="question">\r\n    <div class="question_text">';
//line 234 "speaking.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\r\n    <div class="question_area">\r\n      <table class="recordingtime">\r\n        <tr><td>Preparation Time</td><td>30</td><td>Seconds</td></tr>\r\n        <tr><td>Response Time</td><td>60</td><td>Seconds</td></tr>\r\n      </table>\r\n      <div id="FCSRecorder_';
//line 240 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '"></div>\r\n      <div id="FCSPlayback_';
//line 241 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '"></div>\r\n    </div>\r\n\r\n';
//line 249 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    isRcording() is true: <a href="javascript: c.notify(\'next\')">制限時間切れまたは stop recording ボタンクリック</a><br>\r\n    isRcording() is true: <a href="javascript: c.notify(\'next\')">再生終了</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n  </div>\r\n</div>\r\n\r\n<div id="questionEnd';
//line 254 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide questionEndTsq">\r\n  <div class="questionEndArea">\r\n    <div class="text_area">\r\n      <p>録音時間は終了です。話すのを止めてください。</p>\r\n      <p>録音した音声を聞く場合は<span onclick="parent.dispPlaybackSWF();" style="cursor:pointer;"><em>Playback Response</em></span>ボタンをクリックしてください。</p>\r\n      <p>再度，録音をする場合は<span onclick="parent.dispRecSWF();" style="cursor:pointer;"><em>Record Again</em></span>ボタンをクリックしてください。</p>\r\n      <p>解答を終了する場合は、<span onclick="parent.pushOK();" style="cursor:pointer;"><em>Confirm Response</em></span>ボタンをクリックしてください。Confirm Responseをクリックすると、元の問題に戻ることはできません。</p>\r\n      <p>正しく音声が録音されていましたら<span onclick="parent.pushOK();" style="cursor:pointer;"><em>Continue</em></span>ボタンをクリックしてください。次の画面に進みます。</p>\r\n    </div>\r\n    <div class="attention">\r\n      <p>【注意】実際のテストでは、録音を途中で止めたり、聞き直したり、録音し直したりする機能は一切使用できません。</p>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n\r\n  ';
break;

case 'sq':
output += '\r\n\r\n<div id="direction';
//line 272 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide direction">\r\n  <div>Please Listen carefully.</div>\r\n  <div class="phoneman">ヘッドフォン装着図</div>\r\n\r\n';
//line 280 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    <a href="javascript: c.notify(\'next\')">音声終了</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n</div>\r\n\r\n<div id="listening';
//line 284 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide listening">\r\n  <div id="listening';
//line 285 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_FlvPlayer" class="FlvPlayer"> Flash Movie </div>\r\n\r\n';
//line 291 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    <a href="javascript: c.notify(\'next\')">音声終了</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n</div>\r\n\r\n<div id="preparation';
//line 295 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide preparation">\r\n  <div class="instruction_image">\r\n    <span class="alt">\r\n      Now get ready to answer the questions.\r\n      You may use your notes to help you answer.\r\n    </span>\r\n  </div>\r\n\r\n';
//line 307 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    <a href="javascript: c.notify(\'next\')">一定時間経過</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n</div>\r\n\r\n<div id="question';
//line 311 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide questionSq">\r\n  <div class="question">\r\n    <div class="question_text">';
//line 313 "speaking.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\r\n    <div class="question_area">\r\n      <table class="recordingtime">\r\n        <tr><td>Preparation Time</td><td>20</td><td>Seconds</td></tr>\r\n        <tr><td>Response Time</td><td>60</td><td>Seconds</td></tr>\r\n      </table>\r\n      <div id="FCSRecorder_';
//line 319 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '"></div>\r\n      <div id="FCSPlayback_';
//line 320 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '"></div>\r\n    </div>\r\n\r\n';
//line 328 "speaking.tt"
if (stash.get('debug')) {
output += '\r\n  <div style="border:1px solid red; padding:2em;">\r\n    isRcording() is true: <a href="javascript: c.notify(\'next\')">制限時間切れまたは stop recording ボタンクリック</a><br>\r\n    isRcording() is true: <a href="javascript: c.notify(\'next\')">再生終了</a>\r\n  </div>\r\n';
}

output += '\r\n\r\n  </div>\r\n</div>\r\n\r\n<div id="questionEnd';
//line 333 "speaking.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '" class="slide questionEndSq">\r\n  <div class="questionEndArea">\r\n    <div class="text_area">\r\n      <p>録音時間は終了です。話すのを止めてください。</p>\r\n      <p>録音した音声を聞く場合は<span onclick="parent.dispPlaybackSWF();" style="cursor:pointer;"><em>Playback Response</em></span>ボタンをクリックしてください。</p>\r\n      <p>再度，録音をする場合は<span onclick="parent.dispRecSWF();" style="cursor:pointer;"><em>Record Again</em></span>ボタンをクリックしてください。</p>\r\n      <p>解答を終了する場合は、<span onclick="parent.pushOK();" style="cursor:pointer;"><em>Confirm Response</em></span>ボタンをクリックしてください。Confirm Responseをクリックすると、元の問題に戻ることはできません。</p>\r\n      <p>正しく音声が録音されていましたら<span onclick="parent.pushOK();" style="cursor:pointer;"><em>Continue</em></span>ボタンをクリックしてください。次の画面に進みます。</p>\r\n    </div>\r\n    <div class="attention">\r\n      <p>【注意】実際のテストでは、録音を途中で止めたり、聞き直したり、録音し直したりする機能は一切使用できません。</p>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n  ';
break;


    }


output += '\r\n\r\n\r\n  ';
//line 368 "speaking.tt"
if (stash.get(['loop', 0, 'count', 0]) == stash.get(['loop', 0, 'size', 0])) {
output += '\r\n\r\n<div id="examOutro" class="slide examOutro">\r\n    ';
//line 366 "speaking.tt"
if (stash.get('isExperienceMode')) {
output += '\r\n  <p>いかがでしたか？これにて「スピーキング模擬試験 体験版」は終了です。<br>旺文社TOEFLiBT大戦略Onlineなら日本語による詳しい解説でしっかりフォローします。<br>TOEFLiBTのトレーニングお役立てください！</p>\r\n  <div id="btn_buy"><a href="../buy.html"><span class="alt">購入する</span></a></div>\r\n  <ul>\r\n    <!--<li><a href="promotion_review_speaking.html">スピーキング模擬試験の「答えと解説」</a>も体験してみる。</li>-->\r\n    <li><a href="promotion_reading.html">リーディング模擬試験</a>も体験してみる。</li>\r\n    <li><a href="promotion_listening.html">リスニング模擬試験</a>も体験してみる。</li>\r\n    <li><a href="promotion_writing.html">ライティング模擬試験</a>も体験してみる。</li>\r\n  </ul>\r\n    ';
}
else {
output += '\r\n  <h3>End of Test</h3>\r\n  <p>これで、Practice Testは終了です。</p>\r\n    ';
}

output += '\r\n\r\n  ';
}

output += '\r\n\r\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\r\n\r\n\r\n<div id="pauseTestConfirm" class="floatingWindow flora">\r\n  <p>中断してメニューに戻ります。</p>\r\n  <button onclick="c.notify(\'pauseTest\')">OK</button>\r\n  <button onclick="c.notify(\'closeWindow\')">キャンセル</button>\r\n</div>\r\n\r\n\r\n<div id="sectionExitConfirm" class="floatingWindow flora">\r\n  次のセクションに進みます。\r\n</div>\r\n\r\n\r\n<div id="requiredAnswer" class="floatingWindow flora">\r\n  <h5>Required Answer</h5>\r\n  <p class="bordered-box">\r\n    You must select the EXACT number of choices before you can leave this question.<br>\r\n    Refer to the directions. \r\n  </p>\r\n  <button onclick="c.notify(\'closeWindow\')">RETURN</button>\r\n</div>\r\n\r\n\r\n<div id="helpWindow" class="floatingWindow flora">\r\n  <iframe src="';
//line 396 "speaking.tt"
output += stash.get('root');
output += 'static/help/index.html">HELP</iframe>\r\n</div>\r\n\r\n<div id="sendingResult" class="floatingWindow flora">\r\n  <h5>成績を送信しています。</h5>\r\n  <p><img src="';
//line 401 "speaking.tt"
output += stash.get('root');
output += 'static/img/exam/sending_result.gif" alt="成績送信中..." width="24" height="24"></p>\r\n  <p>送信完了後、次の画面が表示されます。</p>\r\n</div>\r\n\r\n<div id="sendingResultFailure" class="floatingWindow flora">\r\n  <h5>成績の送信に失敗しました。</h5>\r\n  <p>インターネットの接続をご確認の上、<br>「再送信」ボタンをクリックしてください。</p>\r\n  <button onclick="c.notify(\'retrySendingResult\')">再送信</button>\r\n  <p>インターネットに正しく接続されているにも関わらず、<br>何度もこのメッセージが表示される場合は、<br><a href="';
//line 409 "speaking.tt"
output += stash.get('root');
output += 'mypage/query" target="_blank">こちら</a>からお問い合わせください。</p>\r\n</div>\r\n\r\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['examlist.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<!-- -*- mode: html+; Encoding: utf8n -*- -->\r\n';
//line 12 "examlist.tt"

// FOREACH 
(function() {
    var list = stash.get('examlist');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['item'] = value;
output += '\r\n  ';
//line 3 "examlist.tt"
stash.set('is_own', 0);
output += '\r\n  ';
//line 8 "examlist.tt"

// FOREACH 
(function() {
    var list = stash.get('ownslist');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['own'] = value;
output += '\r\n    ';
//line 7 "examlist.tt"
if (stash.get(['item', 0, 'num', 0]) == stash.get(['own', 0, 'num', 0])) {
output += '\r\n      ';
//line 6 "examlist.tt"
stash.set('is_own', 1);
output += '\r\n    ';
}

output += '\r\n  ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\r\n  ';
//line 11 "examlist.tt"
if (stash.get('is_own') == 0) {
output += '\r\n    <li><a href="">';
//line 10 "examlist.tt"
output += stash.get(['item', 0, 'title', 0]);
output += '</a></li>\r\n  ';
}

output += '\r\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\r\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['listening.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 1 "listening.tt"
stash.set('current_major_num', 0);
output += '\n\n';
//line 284 "listening.tt"

// FOREACH 
(function() {
    var list = stash.get('questions');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['q'] = value;
output += '\n';
//line 66 "listening.tt"
if (stash.get(['q', 0, 'part', 0]) == 1 && stash.get(['q', 0, 'minor', 0]) == 1) {
output += '\n\n<div id="examIntro" class="slide examIntro">\n	<h1>初めてのTOEFLテスト完全対策</h1>\n	';
//line 14 "listening.tt"
if (stash.get('isExperienceMode')) {
output += '\n	<h2 class="listeningExperience">学習EXPERIENCEリスニング　(Continueボタンをクリックしてください)</h2>\n	';
}
else if (stash.get('examNo') == 18) {
output += '\n	<h2 class="listening1">Practice Test (Continueボタンをクリックしてください)</h2>\n	';
}
else if (stash.get('examNo') == 19) {
output += '\n	<h2 class="listening2">Practice Test (Continueボタンをクリックしてください)</h2>\n	';
}

output += '\n	<div class="disclaimer">\n		<p>※このPractice TestはTOEFL(R) iBTの出題形式に準じて開発されていますが、画面のデザインや一部の機能・動作など、実際の試験とは異なる部分があります。</p>\n		<p>また、DirectionやHelpなどテストの進行・操作に関する指示は実際のテストでは英語ですが、このPractice Testでは主に日本語で収録しています。</p>\n	</div>\n</div>\n\n<div id="generalInfo" class="slide generalInfo">\n  <h3>General Test Information</h3>\n  <p>リーディングセクションでは3～5つのパッセージを読み，設問に答えます。</p>\n  <p>リスニングセクションでは，2つの会話と4つの講義を聞き，設問に答えます。</p>\n  <p>スピーキングセクションでは，6つの設問に答えます。</p>\n  <p>ライティングセクションでは，2つの設問に答えます。</p>\n  <p>先に進む場合は<em>Continue</em>ボタンをクリックしてください。</p>\n</div>\n\n<div id="headset" class="slide headset">\n  <h3>ヘッドフォンを装着してください。</h3>\n	<div class="phoneman">ヘッドフォン装着図</div>\n  <p>先に進む場合は<em>Continue</em>ボタンをクリックしてください。</p>\n</div>\n\n<div id="volumeCheck" class="slide volumeCheck">\n  <h3>Changing the Volume</h3>\n  <div class="text_area">\n    <p>音量を調節するには、画面上のVolumeボタンをクリックします。音量調節つまみが表示されるので、<br />左右にドラッグして音量を調節してください。</p>\n    <p>もう一度Volumeボタンをクリックすると，調節つまみを閉じます。音量調節は試験時間中も可能です</p>\n  </div>\n  <div class="extention_area">\n    <p>You may now change the volume.</p>\n    <p>When you are finished, click on Continue.</p>\n  </div>\n  <div class="text_area">\n    <p>調節が終わったら<em>Continue</em>ボタンをクリックしてください。</p>\n  </div>\n</div>\n\n<div id="direction" class="slide direction">\n	<h3>Listening Section Directions</h3>\n	<div class="text_area">\n    <p>リスニングセクションでは，会話や講義が出題されます。</p>\n    <p>英文はそれぞれ一度しか放送されません。</p>\n    <p>試験中，メモをとってもかまいません。メモは採点の対象にはなりません。</p>\n    <p>音量を調節するには、画面上の<em>Volume</em>ボタンをクリックします。</p>\n    <p>質問は画面上にも示されます。<span class="icon_headphone"><span class="alt">ヘッドフォンアイコン</span>&nbsp;</span>が表示される問題では，英文の一部を再度聞いて解答します。２つ以上答えを選ぶなどの特別な指示は，画面上，グレーのボックスで示されます。</p>\n    <p>配点は基本的に１問につき1ポイントですが，設問によっては2ポイント以上加算されるものもあります。その場合は問題の指示文に表示されます。</p>\n    <p>解答したら<em>Next</em>ボタンをクリックし，<em>OK</em>ボタンで解答を確定して次の問題に進んでください。<em>OK</em>ボタンをクリックすると，前の問題に戻ることはできません。</p>\n    <p>解答時間は<span id="answeringTime_text">10</span>分で，画面上の時計表示は残り時間を示しています。放送の時間はカウントされません。</p>\n    <div class="skipIntro"><span> >>SKIP</span></div>\n  </div>\n</div>\n\n';
}

output += '\n\n';
//line 84 "listening.tt"
if (stash.get(['q', 0, 'major', 0]) != stash.get('current_major_num')) {
output += '\n<div id="passage';
//line 69 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '" class="slide passage">\n  ';
output += '\n  ';
output += '\n  <div id="passage';
//line 72 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_FlvPlayer" class="FlvPlayer"> Flash Movie </div>\n</div>\n\n<div id="instruction';
//line 75 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '" class="slide instruction">\n  <div class="instruction_image">\n    <span class="alt">\n      Now get ready to answer the questions.\n      You may use your notes to help you answer.\n    </span>\n  </div>\n</div>\n';
//line 83 "listening.tt"
stash.set('current_major_num', stash.get(['q', 0, 'major', 0]));
output += '\n';
}

output += '\n\n';
//line 86 "listening.tt"
stash.set('question_count', stash.get(['loop', 0, 'count', 0]));
output += '\n\n';
//line 252 "listening.tt"

    switch(stash.get(['q', 0, 'type', 0])) {
case 't':
output += '\n<div id="question';
//line 90 "listening.tt"
output += stash.get('question_count');
output += '" class="slide questionT">\n  <div class="question">\n    <div class="question_text">';
//line 92 "listening.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n    <div class="user_answer_area">\n      <ul class="selectlist">\n        <li id="q';
//line 95 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 95 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1">';
//line 95 "listening.tt"
output += stash.get(['q', 0, 'choice1_e', 0]);
output += '</li>\n        <li id="q';
//line 96 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 96 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2">';
//line 96 "listening.tt"
output += stash.get(['q', 0, 'choice2_e', 0]);
output += '</li>\n        <li id="q';
//line 97 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 97 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_3">';
//line 97 "listening.tt"
output += stash.get(['q', 0, 'choice3_e', 0]);
output += '</li>\n        <li id="q';
//line 98 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 98 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_4">';
//line 98 "listening.tt"
output += stash.get(['q', 0, 'choice4_e', 0]);
output += '</li>\n      </ul>\n    </div>\n  </div>\n</div>\n';
break;

case 's':
output += '\n<div id="question';
//line 104 "listening.tt"
output += stash.get('question_count');
output += '" class="slide questionS">\n  <div class="ShortPassageMovie">\n    <div id="question';
//line 106 "listening.tt"
output += stash.get('question_count');
output += '_FlvPlayer" style="margin:10px auto; width:400px;"></div>\n  </div>\n  <div class="question">\n    <div class="question_text">';
//line 109 "listening.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '<span class="headphone_icon"><img src="';
//line 109 "listening.tt"
output += stash.get('root');
output += 'static/css/exam/listening/img/headphone.gif" /></span></div>\n    <div class="user_answer_area">\n      <ul class="selectlist">\n        <li id="q';
//line 112 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 112 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1">';
//line 112 "listening.tt"
output += stash.get(['q', 0, 'choice1_e', 0]);
output += '</li>\n        <li id="q';
//line 113 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 113 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2">';
//line 113 "listening.tt"
output += stash.get(['q', 0, 'choice2_e', 0]);
output += '</li>\n        <li id="q';
//line 114 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 114 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_3">';
//line 114 "listening.tt"
output += stash.get(['q', 0, 'choice3_e', 0]);
output += '</li>\n        <li id="q';
//line 115 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 115 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_4">';
//line 115 "listening.tt"
output += stash.get(['q', 0, 'choice4_e', 0]);
output += '</li>\n      </ul>\n    </div>\n  </div>\n</div>\n';
break;

case 'm':
output += '\n<div id="question';
//line 121 "listening.tt"
output += stash.get('question_count');
output += '" class="slide questionM">\n  <div class="question">\n    <div class="question_text">';
//line 123 "listening.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n    <div class="assist_message">';
//line 124 "listening.tt"
output += stash.get(['q', 0, 'direction_e', 0]);
output += '</div>\n    <div class="user_answer_area">\n      <ul class="multiselectlist">\n        <li id="q';
//line 127 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 127 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1" class="choices check_off">';
//line 127 "listening.tt"
output += stash.get(['q', 0, 'choice_e', 0, 0, 0]);
output += '</li>\n        <li id="q';
//line 128 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 128 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2" class="choices check_off">';
//line 128 "listening.tt"
output += stash.get(['q', 0, 'choice_e', 0, 1, 0]);
output += '</li>\n        <li id="q';
//line 129 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 129 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_3" class="choices check_off">';
//line 129 "listening.tt"
output += stash.get(['q', 0, 'choice_e', 0, 2, 0]);
output += '</li>\n        <li id="q';
//line 130 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 130 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_4" class="choices check_off">';
//line 130 "listening.tt"
output += stash.get(['q', 0, 'choice_e', 0, 3, 0]);
output += '</li>\n      </ul>\n    </div>\n  </div>\n</div>\n';
break;

case 'c':
output += '\n<div id="question';
//line 136 "listening.tt"
output += stash.get('question_count');
output += '" class="slide questionC">\n  <p class="direction"></p>\n  <div class="question">\n    <div class="question_text">';
//line 139 "listening.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n    <div class="assist_message">';
//line 140 "listening.tt"
output += stash.get(['q', 0, 'direction_e', 0]);
output += '</div>\n    <div class="user_answer_area">\n      <table class="checkbox">\n        <tr>\n          <td>&nbsp;</td>\n          <th id="column_header_1"><div>';
//line 145 "listening.tt"
output += stash.get(['q', 0, 'col_h_e', 0, 0, 0]);
output += '</div></th>\n          <th id="column_header_2"><div>';
//line 146 "listening.tt"
output += stash.get(['q', 0, 'col_h_e', 0, 1, 0]);
output += '</div></th>\n        </tr>\n        ';
//line 148 "listening.tt"
stash.set('row_count', 0);
output += '\n        ';
//line 156 "listening.tt"
    
// WHILE
var failsafe = 1000;
while (--failsafe && (stash.get('row_count') < 5)) {
output += '\n        <tr>\n          <td><div class="row_h_text">';
//line 151 "listening.tt"
output += stash.get(['q', 0, 'row_h_e', 0, stash.get('row_count'), 0]);
output += '</div></td>\n          <td><div id="q';
//line 152 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 152 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_';
//line 152 "listening.tt"
output += (stash.get('row_count') + 1);
output += '_1" class="checkarea unselect">&nbsp;</div></td>\n          <td><div id="q';
//line 153 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 153 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_';
//line 153 "listening.tt"
output += (stash.get('row_count') + 1);
output += '_2" class="checkarea unselect">&nbsp;</div></td>\n        </tr>\n          ';
//line 155 "listening.tt"
stash.set('row_count', stash.get('row_count') + 1);
output += '\n        ';
}
if (! failsafe)
    throw("WHILE loop terminated (> 1000 iterations)\n")

output += '\n      </table>\n    </div>\n    <div class="true_answer_area">\n      \n      ';
//line 161 "listening.tt"
stash.set('matches', stash.get(['q', 0, 'correct_answer', 0, 'match', [ '([0-9,]*)|([0-9,]*)' ]]));
output += '\n      ';
//line 162 "listening.tt"
stash.set('corrects', stash.get(['matches', 0, 0, 0, 'split', [ ',' ]]));
output += '\n\n      ';
//line 164 "listening.tt"
stash.set('correct_table', [ 0, 0, 0, 0, 0 ]);
output += '\n\n      ';
//line 175 "listening.tt"

// FOREACH 
(function() {
    var list = [ 0, 1, 2, 3, 4 ];
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['i'] = value;
output += '\n      ';
//line 167 "listening.tt"
stash.set(['correct_table', 0, stash.get('i'), 0], 0);
output += '\n      ';
//line 174 "listening.tt"

// FOREACH 
(function() {
    var list = stash.get('corrects');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n      ';
//line 169 "listening.tt"
stash.set('n', stash.get('c') - 1);
output += '\n      ';
//line 173 "listening.tt"
if (stash.get('n') == stash.get('i')) {
output += '\n      ';
//line 171 "listening.tt"
stash.set(['correct_table', 0, stash.get('i'), 0], 1);
output += '\n      ';
//line 172 "listening.tt"
  retval = list.get_next();
  value = retval[0];
  done = retval[1];
  continue;

output += '\n      ';
}

output += '\n      ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '  \n      ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n      \n      <table class="checkbox">\n        <tr>\n          <td>&nbsp;</td>\n          <th id="column_header_1"><div>';
//line 180 "listening.tt"
output += stash.get(['q', 0, 'col_h_e', 0, 0, 0]);
output += '</div></th>\n          <th id="column_header_2"><div>';
//line 181 "listening.tt"
output += stash.get(['q', 0, 'col_h_e', 0, 1, 0]);
output += '</div></th>\n        </tr>\n        <tr>\n          <td><div class="row_h_text">';
//line 184 "listening.tt"
output += stash.get(['q', 0, 'row_h_e', 0, 0, 0]);
output += '</div></td>\n          <td><div id="a';
//line 185 "listening.tt"
output += stash.get('question_count');
output += '_1_1" class="checkarea ';
//line 185 "listening.tt"
if (!(stash.get(['correct_table', 0, 0, 0]))) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n          <td><div id="a';
//line 186 "listening.tt"
output += stash.get('question_count');
output += '_1_2" class="checkarea ';
//line 186 "listening.tt"
if (stash.get(['correct_table', 0, 0, 0])) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n        </tr>\n        <tr>\n          <td><div class="row_h_text">';
//line 189 "listening.tt"
output += stash.get(['q', 0, 'row_h_e', 0, 1, 0]);
output += '</div></td>\n          <td><div id="a';
//line 190 "listening.tt"
output += stash.get('question_count');
output += '_2_1" class="checkarea ';
//line 190 "listening.tt"
if (!(stash.get(['correct_table', 0, 1, 0]))) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n          <td><div id="a';
//line 191 "listening.tt"
output += stash.get('question_count');
output += '_2_2" class="checkarea ';
//line 191 "listening.tt"
if (stash.get(['correct_table', 0, 1, 0])) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n        </tr>\n        <tr>\n          <td><div class="row_h_text">';
//line 194 "listening.tt"
output += stash.get(['q', 0, 'row_h_e', 0, 2, 0]);
output += '</div></td>\n          <td><div id="a';
//line 195 "listening.tt"
output += stash.get('question_count');
output += '_3_1" class="checkarea ';
//line 195 "listening.tt"
if (!(stash.get(['correct_table', 0, 2, 0]))) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n          <td><div id="a';
//line 196 "listening.tt"
output += stash.get('question_count');
output += '_3_2" class="checkarea ';
//line 196 "listening.tt"
if (stash.get(['correct_table', 0, 2, 0])) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n        </tr>\n        <tr>\n          <td><div class="row_h_text">';
//line 199 "listening.tt"
output += stash.get(['q', 0, 'row_h_e', 0, 3, 0]);
output += '</div></td>\n          <td><div id="a';
//line 200 "listening.tt"
output += stash.get('question_count');
output += '_4_1" class="checkarea ';
//line 200 "listening.tt"
if (!(stash.get(['correct_table', 0, 3, 0]))) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n          <td><div id="a';
//line 201 "listening.tt"
output += stash.get('question_count');
output += '_4_2" class="checkarea ';
//line 201 "listening.tt"
if (stash.get(['correct_table', 0, 3, 0])) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n        </tr>\n        <tr>\n          <td><div class="row_h_text">';
//line 204 "listening.tt"
output += stash.get(['q', 0, 'row_h_e', 0, 4, 0]);
output += '</div></td>\n          <td><div id="a';
//line 205 "listening.tt"
output += stash.get('question_count');
output += '_5_1" class="checkarea ';
//line 205 "listening.tt"
if (!(stash.get(['correct_table', 0, 4, 0]))) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n          <td><div id="a';
//line 206 "listening.tt"
output += stash.get('question_count');
output += '_5_2" class="checkarea ';
//line 206 "listening.tt"
if (stash.get(['correct_table', 0, 4, 0])) {
output += 'un';
}

output += 'select">&nbsp;</div></td>\n        </tr>\n      </table>\n    </div> \n  </div>\n</div>\n';
break;

case 'do':
output += '\n<div id="question';
//line 213 "listening.tt"
output += stash.get('question_count');
output += '" class="slide questionDo">\n  <div class="question">\n    <div class="question_text">';
//line 215 "listening.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n    <div class="assist_message">Click on a word. Then drag it to the answer space where it belongs.<br>Use each word one time only.</div>\n    <div class="user_answer_area">\n      <div id="dropzone_q';
//line 218 "listening.tt"
output += stash.get('question_count');
output += '_0" class="dropzone0">\n        <div id="draggable_q';
//line 219 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 219 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1" class="draggable">';
//line 219 "listening.tt"
output += stash.get(['q', 0, 'choice_e', 0, 0, 0]);
output += '</div>\n        <div id="draggable_q';
//line 220 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 220 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2" class="draggable">';
//line 220 "listening.tt"
output += stash.get(['q', 0, 'choice_e', 0, 1, 0]);
output += '</div>\n        <div id="draggable_q';
//line 221 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 221 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_3" class="draggable">';
//line 221 "listening.tt"
output += stash.get(['q', 0, 'choice_e', 0, 2, 0]);
output += '</div>\n        <div id="draggable_q';
//line 222 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 222 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_4" class="draggable">';
//line 222 "listening.tt"
output += stash.get(['q', 0, 'choice_e', 0, 3, 0]);
output += '</div>\n      </div>\n      <ul class="dropzone_type_do">\n        <li><div id="dropzone_q';
//line 225 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 225 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1" class="dropzone"></div></li>\n        <li><div id="dropzone_q';
//line 226 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 226 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2" class="dropzone"></div></li>\n        <li><div id="dropzone_q';
//line 227 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 227 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_3" class="dropzone"></div></li>\n        <li><div id="dropzone_q';
//line 228 "listening.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 228 "listening.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_4" class="dropzone"></div></li>\n      </ul>\n    </div>\n    <div class="true_answer_area">\n      <div>&nbsp;</div>\n      <ul>\n        ';
//line 234 "listening.tt"
stash.set('mylist', stash.get(['q', 0, 'correct_answer', 0, 'split', [ ',' ]]));
output += '\n        ';
//line 238 "listening.tt"

// FOREACH 
(function() {
    var list = stash.get('mylist');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['tempanswer'] = value;
output += '\n        ';
//line 236 "listening.tt"
stash.set('tempcount', stash.get('tempanswer') * 1 - 1);
output += '\n        <li><div style="text-align:left;">';
//line 237 "listening.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('tempcount'), 0]);
output += '</div></li>\n        ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n      </ul>\n    </div>\n  </div>\n</div>\n';
break;

case 'ds':
output += '\n<!-- not support -->\n<div id="question';
//line 245 "listening.tt"
output += stash.get('question_count');
output += '" class="slide questionDs">\n  type Ds\n  <div class="question"></div>\n  <div class="answer"></div>\n  <div class="answer_ja"></div>\n  </div>\n</div>\n';
break;


    }


output += '\n\n  ';
//line 282 "listening.tt"
if (stash.get(['loop', 0, 'count', 0]) == stash.get(['loop', 0, 'size', 0])) {
output += '\n<div id="partEnd" class="slide partEnd">\n  <p>\n    このパートの出題が終了しました。<br>\n    試験を続けるには <em>Continue</em> ボタンをクリックしてください。\n  </p>\n</div>\n    ';
//line 281 "listening.tt"
if (stash.get('isLastPart')) {
output += '\n      ';
//line 280 "listening.tt"
if (stash.get('isExperienceMode')) {
output += '\n<div id="examOutro" class="slide examOutro">\n  <p>いかがでしたか？これにて「リスニング模擬試験 体験版」は終了です。<br>旺文社TOEFLiBT大戦略Onlineなら日本語による詳しい解説でしっかりフォローします。<br>TOEFLiBTのトレーニングお役立てください！</p>\n\n  <div id="btn_buy"><a href="../buy.html"><span class="alt">購入する</span></a></div>\n\n  <ul>\n    <li><a href="promotion_review_listening.html">リスニング模擬試験の「答えと解説」</a>も体験してみる。</li>\n    <li><a href="promotion_reading.html">リーディング模擬試験</a>も体験してみる。</li>\n    <li><a href="promotion_writing.html">ライティング模擬試験</a>も体験してみる。</li>\n    <li><a href="promotion_speaking.html">スピーキング模擬試験</a>も体験してみる。</li>\n  </ul>\n</div>\n      ';
}
else {
output += '\n<div id="examOutro" class="slide examOutro">\n  <h3>End of Test</h3>\n  <p>これで、Practice Testは終了です。</p>\n</div>\n      ';
}

output += '\n    ';
}

output += '\n  ';
}

output += '\n\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n<div id="pauseTestConfirm" class="floatingWindow flora">\n\n  <p>中断してメニューに戻ります。</p>\n\n  <button onclick="c.notify(\'pauseTest\')">OK</button>\n  <button onclick="c.notify(\'closeWindow\')">キャンセル</button>\n\n</div>\n\n<div id="sectionExitConfirm" class="floatingWindow flora">\n  次のセクションに進みます。\n</div>\n\n<div id="requiredAnswer" class="floatingWindow flora">\n\n  <h5>Required Answer</h5>\n\n  <p class="bordered-box">\n    You must select the EXACT number of choices before you can leave this question.<br>\n    Refer to the directions. \n  </p>\n\n  <button onclick="c.notify(\'closeWindow\')">RETURN</button>\n\n</div>\n\n<div id="helpWindow" class="floatingWindow flora">\n\n  <iframe src="';
//line 314 "listening.tt"
output += stash.get('root');
output += 'static/help/index.html">HELP</iframe>\n\n</div>\n\n<div id="sendingResult" class="floatingWindow flora">\n  <h5>成績を送信しています。</h5>\n  <p><img src="';
//line 320 "listening.tt"
output += stash.get('root');
output += 'static/img/exam/sending_result.gif" alt="成績送信中..." width="24" height="24"></p>\n  <p>送信完了後、次の画面が表示されます。</p>\n</div>\n\n<div id="sendingResultFailure" class="floatingWindow flora">\n  <h5>成績の送信に失敗しました。</h5>\n  <p>インターネットの接続をご確認の上、<br>「再送信」ボタンをクリックしてください。</p>\n  <button onclick="c.notify(\'retrySendingResult\')">再送信</button>\n  <p>インターネットに正しく接続されているにも関わらず、<br>何度もこのメッセージが表示される場合は、<br><a href="';
//line 328 "listening.tt"
output += stash.get('root');
output += 'mypage/query" target="_blank">こちら</a>からお問い合わせください。</p>\n</div>\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['reading.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 1 "reading.tt"
stash.set('current_part_num', 0);
output += '\n';
//line 2 "reading.tt"
stash.set('current_q_count_inpart', 0);
output += '\n';
//line 3 "reading.tt"
stash.set('current_major_num', 0);
output += '\n\n';
//line 378 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get(['results', 0, 'minors', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['r'] = value;
output += '\n\n  ';
//line 375 "reading.tt"
if (stash.get(['questions', 0, 0, 0, 'part', 0]) == stash.get(['r', 0, 'part', 0])) {
output += '\n    ';
output += '\n    ';
//line 9 "reading.tt"
stash.set('q', stash.get(['questions', 0, stash.get('current_q_count_inpart'), 0]));
output += '\n      ';
//line 10 "reading.tt"
stash.set('current_major_num', (stash.get(['q', 0, 'major', 0]) - 1));
output += '\n      ';
//line 49 "reading.tt"
if (stash.get(['q', 0, 'part', 0]) == 1 && stash.get(['q', 0, 'minor', 0]) == 1) {
output += '\n<div id="examIntro" class="slide examIntro">\n	<h1>TOEFL&reg;iBT Plactice Test</h1>\n\n	';
//line 21 "reading.tt"
if (stash.get('isExperienceMode')) {
output += '\n	<h2 class="readingExperience">学習EXPERIENCEリーディング　(Continueボタンをクリックしてください)</h2>\n	';
}
else if (stash.get('examNo') == 16) {
output += '\n	<h2 class="reading1">Practice Test (Continueボタンをクリックしてください)</h2>\n  ';
}
else if (stash.get('examNo') == 17) {
output += '\n	<h2 class="reading2">Practice Test (Continueボタンをクリックしてください)</h2>\n  ';
}

output += '\n	<div class="disclaimer">\n		<p>※このPractice TestはTOEFL(R) iBTの出題形式に準じて開発されていますが、画面のデザインや一部の機能・動作など、実際の試験とは異なる部分があります。</p>\n		<p>また、DirectionやHelpなどテストの進行・操作に関する指示は実際のテストでは英語ですが、このPractice Testでは主に日本語で収録しています。</p>\n	</div>\n</div>\n\n<div id="generalInfo" class="slide generalInfo">\n  <h3>General Test Information</h3>\n  <p>リーディングセクションでは3～5つのパッセージを読み，設問に答えます。</p>\n  <p>リスニングセクションでは，2つの会話と4つの講義を聞き，設問に答えます。</p>\n  <p>スピーキングセクションでは，6つの設問に答えます。</p>\n  <p>ライティングセクションでは，2つの設問に答えます。</p>\n  <p>先に進む場合は<em>Continue</em>ボタンをクリックしてください。</p>\n</div>\n\n<div id="direction" class="slide direction">\n	<h3>Reading Section Directions</h3>\n	<div class="text_area">\n    <p>このPractice Testでは，リーディングセクションは3つのパートに分けられています。 （実際のテストではリーディングのセクションは2つ以上のパートに分けられ，パートごとに時間制限が設けられています）</p>\n    <p>各パートの中では自由に先の問題に進んだり，前の問題に戻ったりすることができます。</p>\n    <p>次の問題に進む場合はNextボタンを，前の問題に戻る場合はBackボタンをクリックします。</p>\n    <p>Reviewボタンをクリックすると問題一覧が表示され、すでに解いた問題とまだ解いていない問題とを確認することができます。</p>\n    <p>配点は基本的に１問につき1ポイントですが，設問によっては2ポイント以上加算されるものもあります。その場合は、問題の指示文で表示されます。</p>\n    <p>このパートでは，20分で1つのパッセージを読み，設問に答えます。</p>\n    <p>先に進む場合はContinueボタンをクリックしてください。</p>\n  </div>\n</div>\n      ';
}

output += '\n\n      ';
//line 67 "reading.tt"
if (stash.get(['q', 0, 'minor', 0]) == 1) {
output += '\n<div id="passage';
//line 52 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '" class="slide passage">\n  <div class="question">\n    <div class="slidearea_left">\n    </div>\n    <div class="slidearea_right">\n      <div>\n        <p class="ScrollStatusBar">Beginning</p>\n        <div class="alltext">\n          ';
//line 60 "reading.tt"
output += stash.get(['passages', 0, stash.get('current_major_num'), 0, 'text_h', 0]);
output += '\n        </div>\n      </div>\n    </div>\n    <br style="clear:both;" />\n  </div>\n</div>\n      ';
}

output += '\n\n      ';
//line 69 "reading.tt"
stash.set('questionNo', stash.get('current_q_count_inpart') + 1);
output += '\n      ';
//line 372 "reading.tt"

    switch(stash.get(['q', 0, 'type', 0])) {
case 's':
output += '\n<div id="question';
//line 72 "reading.tt"
output += stash.get('questionNo');
output += '" class="slide questionS">\n  <div class="question">\n    <div class="slidearea_left" style="float:left;width:49%;">\n      <div class="question_text">';
//line 75 "reading.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n      <div class="user_answer_area">\n        <ul class="selectlist">\n          <li id="q';
//line 78 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 78 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1">';
//line 78 "reading.tt"
output += stash.get(['q', 0, 'choice1_e', 0]);
output += '</li>\n          <li id="q';
//line 79 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 79 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2">';
//line 79 "reading.tt"
output += stash.get(['q', 0, 'choice2_e', 0]);
output += '</li>\n          <li id="q';
//line 80 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 80 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_3">';
//line 80 "reading.tt"
output += stash.get(['q', 0, 'choice3_e', 0]);
output += '</li>\n          <li id="q';
//line 81 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 81 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_4">';
//line 81 "reading.tt"
output += stash.get(['q', 0, 'choice4_e', 0]);
output += '</li>\n        </ul>\n      </div>\n      <div class="direction_text">';
//line 84 "reading.tt"
output += stash.get(['q', 0, 'direction_e', 0]);
output += '</div>\n    </div>\n\n    <div class="slidearea_right">\n      <div>\n        <p class="ScrollStatusBar">&nbsp;</p>\n        <div class="alltext">\n          ';
//line 91 "reading.tt"
output += stash.get(['passages', 0, stash.get('current_major_num'), 0, 'text_h', 0]);
output += '\n        </div>\n      </div>\n    </div>\n    <br style="clear:both;" />\n\n  </div>\n</div>\n      ';
break;

case 'p':
output += '\n<div id="question';
//line 100 "reading.tt"
output += stash.get('questionNo');
output += '" class="slide questionP">\n  <div class="question">\n    <div class="slidearea_left" style="float:left;width:49%;">\n      <div class="question_text">';
//line 103 "reading.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n      <div class="user_answer_area">\n        <div class="selectlist">\n          <div id="q';
//line 106 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 106 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1"><img src="';
//line 106 "reading.tt"
output += stash.get('root');
output += 'static/img/exam/';
//line 106 "reading.tt"
output += stash.get(['q', 0, 'num', 0]);
output += '-R-';
//line 106 "reading.tt"
output += stash.get(['q', 0, 'part', 0]);
output += '-';
//line 106 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '-';
//line 106 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '-1.jpg" /></div>\n          <div id="q';
//line 107 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 107 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2"><img src="';
//line 107 "reading.tt"
output += stash.get('root');
output += 'static/img/exam/';
//line 107 "reading.tt"
output += stash.get(['q', 0, 'num', 0]);
output += '-R-';
//line 107 "reading.tt"
output += stash.get(['q', 0, 'part', 0]);
output += '-';
//line 107 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '-';
//line 107 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '-2.jpg" /></div>\n          <br style="clear:both;"/>\n          <div id="q';
//line 109 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 109 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_3"><img src="';
//line 109 "reading.tt"
output += stash.get('root');
output += 'static/img/exam/';
//line 109 "reading.tt"
output += stash.get(['q', 0, 'num', 0]);
output += '-R-';
//line 109 "reading.tt"
output += stash.get(['q', 0, 'part', 0]);
output += '-';
//line 109 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '-';
//line 109 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '-3.jpg" /></div>\n          <div id="q';
//line 110 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 110 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_4"><img src="';
//line 110 "reading.tt"
output += stash.get('root');
output += 'static/img/exam/';
//line 110 "reading.tt"
output += stash.get(['q', 0, 'num', 0]);
output += '-R-';
//line 110 "reading.tt"
output += stash.get(['q', 0, 'part', 0]);
output += '-';
//line 110 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '-';
//line 110 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '-4.jpg" /></div>\n          <br style="clear:both;"/>\n        </div>\n      </div>\n      <div class="direction_text">';
//line 114 "reading.tt"
output += stash.get(['q', 0, 'direction_e', 0]);
output += '</div>\n    </div>\n\n    <div class="slidearea_right">\n      <div>\n        <p class="ScrollStatusBar">&nbsp;</p>\n        <div class="alltext">\n          ';
//line 121 "reading.tt"
output += stash.get(['passages', 0, stash.get('current_major_num'), 0, 'text_h', 0]);
output += '\n        </div>\n      </div>\n    </div>\n    <br style="clear:both;" />\n\n  </div>\n</div>\n      ';
break;

case 'm':
output += '\n<div id="question';
//line 130 "reading.tt"
output += stash.get('questionNo');
output += '" class="slide questionM">\n  <div class="question">\n    <div class="slidearea_left" style="float:left;width:49%;">\n      <div class="question_text">';
//line 133 "reading.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n      <div class="assist_message">';
//line 134 "reading.tt"
output += stash.get(['q', 0, 'direction_e', 0]);
output += '</div>\n      <div class="user_answer_area">\n        <ul class="multiselectlist">\n          ';
//line 137 "reading.tt"
stash.set('tempcount', 0);
output += '\n          ';
//line 141 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['item'] = value;
output += '\n          <li id="q';
//line 139 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 139 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_';
//line 139 "reading.tt"
output += stash.get(['loop', 0, 'count', 0]);
output += '" class="choices check_off">';
//line 139 "reading.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('tempcount'), 0]);
output += '</li>\n          ';
//line 140 "reading.tt"
stash.set('tempcount', stash.get('tempcount') + 1);
output += '\n          ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n        </ul>\n      </div>\n    </div>\n\n    <div class="slidearea_right">\n      <div>\n        <p class="ScrollStatusBar">&nbsp;</p>\n        <div class="alltext">\n          ';
//line 150 "reading.tt"
output += stash.get(['passages', 0, stash.get('current_major_num'), 0, 'text_h', 0]);
output += '\n        </div>\n      </div>\n    </div>\n    <br style="clear:both;" />\n\n  </div>\n</div>\n      ';
break;

case 'd':
output += '\n<div id="question';
//line 159 "reading.tt"
output += stash.get('questionNo');
output += '" class="slide questionD">\n  <div class="question">\n    <div class="question_text">';
//line 161 "reading.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n    <div class="assist_message">Click on a word. Then drag it to the answer space where it belongs.<br>Use each word one time only.</div>\n    <div class="user_answer_area questionD">\n      <ul class="dropzone_type_d">\n        <li><div id="dropzone_q';
//line 165 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 165 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1" class="dropzone"></div></li>\n        <li><div id="dropzone_q';
//line 166 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 166 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2" class="dropzone"></div></li>\n        <li><div id="dropzone_q';
//line 167 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 167 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_3" class="dropzone"></div></li>\n      </ul>\n      <div id="dropzone_q';
//line 169 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 169 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_0" class="dropzone" style="width:500px; padding:10px; margin-right:auto; margin-left:auto; position:static; display:block;">\n        <div id="draggable_q';
//line 170 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 170 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1" class="draggable">Health care is a minor industry.</div>\n        <div id="draggable_q';
//line 171 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 171 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2" class="draggable">Whether the United States should have universal health care or not is a pressing issue.</div>\n        <div id="draggable_q';
//line 172 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 172 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_3" class="draggable">Economic indicators can present a quantitative analysis of health care that ideology and politics cannot.</div>\n        <div id="draggable_q';
//line 173 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 173 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_4" class="draggable">America does in fact have many publicly funded health programs.</div>\n        <div id="draggable_q';
//line 174 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 174 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_5" class="draggable">In the United States the economic inequities are starker than in many other countries.</div>\n        <div id="draggable_q';
//line 175 "reading.tt"
output += stash.get(['q', 0, 'major', 0]);
output += '_';
//line 175 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_6" class="draggable">The issue of how to best provide health care in the United States is controversial.</div>\n      </div>\n    </div>\n    <div class="true_answer_area">\n      <!--\n        ';
output += '\n        ';
//line 181 "reading.tt"
stash.set('temptemp', stash.get(['q', 0, 'choice_e', 0, 'slice', [ 1, -1 ]]));
output += '\n\n        ';
output += '\n        ';
//line 184 "reading.tt"
stash.set('matches', stash.get(['temptemp', 0, 'split', [ '[\|]' ]]));
output += '\n\n        ';
output += '\n        ';
//line 187 "reading.tt"
stash.set('corrects', stash.get(['q', 0, 'correct_answer', 0, 'split', [ ',' ]]));
output += '\n        ';
//line 188 "reading.tt"
stash.set('correctsheet', [ ]);
output += '\n\n        ';
//line 190 "reading.tt"
stash.set('tempcount', 0);
output += '\n        ';
//line 194 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get('matches');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['item'] = value;
output += '\n        ';
//line 192 "reading.tt"
stash.get(['correctsheet', 0, 'push', [ 0 ]]);
output += '\n        ';
//line 193 "reading.tt"
stash.set('tempcount', stash.get('tempcount') + 1);
output += '\n        ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n        ';
//line 199 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get('corrects');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['correct_no'] = value;
output += '\n        ';
//line 197 "reading.tt"
stash.set('tempcount', (stash.get('correct_no') - 1));
output += '\n        ';
//line 198 "reading.tt"
stash.set(['correctsheet', 0, stash.get('tempcount'), 0], 1);
output += '\n        ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n      -->\n      <ul>\n        ';
//line 202 "reading.tt"
stash.set('tempcount', 0);
output += '\n        ';
//line 208 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get('matches');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['item'] = value;
output += '\n        ';
//line 206 "reading.tt"
if (stash.get(['correctsheet', 0, stash.get('tempcount'), 0]) == 1) {
output += '\n        <li><div style="font-weight:bold;">';
//line 205 "reading.tt"
output += stash.get('item');
output += '</div></li>\n        ';
}

output += '\n        ';
//line 207 "reading.tt"
stash.set('tempcount', stash.get('tempcount') + 1);
output += '\n        ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n      </ul>\n \n      <div style="width:500px; padding:10px; margin-right:auto; margin-left:auto; position:static; display:block;">\n        ';
//line 212 "reading.tt"
stash.set('tempcount', 0);
output += '\n        ';
//line 218 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get('matches');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['item'] = value;
output += '\n        ';
//line 216 "reading.tt"
if (stash.get(['correctsheet', 0, stash.get('tempcount'), 0]) == 0) {
output += '\n        <div style="font-weight:bold;">';
//line 215 "reading.tt"
output += stash.get('item');
output += '</div>\n        ';
}

output += '\n        ';
//line 217 "reading.tt"
stash.set('tempcount', stash.get('tempcount') + 1);
output += '\n        ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n      </div>\n    </div>\n  </div>\n\n  <div class="slidearea_alltext" style="height:90%; width:99%; display:none;">\n    <div>\n      <p class="ScrollStatusBar">&nbsp;</p>\n      <div class="alltext">\n          ';
//line 227 "reading.tt"
output += stash.get(['passages', 0, stash.get('current_major_num'), 0, 'text_h', 0]);
output += '\n      </div>\n    </div>\n  </div>\n</div>\n\n      ';
break;

case 'ds':
output += '\n<div id="question';
//line 234 "reading.tt"
output += stash.get('questionNo');
output += '" class="slide questionDs">\n  <div class="question">\n    <div class="question_text">';
//line 236 "reading.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n\n    <div class="question_instruction">Drag your answer choices to the spaces where they belong.</div>\n\n    <div class="user_answer_area">\n      <div class="dropzone">\n        ';
//line 244 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get(['q', 0, 'choice_e', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['draggable'] = value;
output += '\n        <div id="draggable_q';
//line 243 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_';
//line 243 "reading.tt"
output += stash.get(['loop', 0, 'count', 0]);
output += '" class="draggable" style="cursor:pointer; margin:10px; padding:0px; text-align:left;">';
//line 243 "reading.tt"
output += stash.get('draggable');
output += '</div>\n        ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n      </div>\n\n      <table class="dropzone_table">\n        <tr style="width:50%;">\n          <td style="text-align:center; font-weight:bold;">';
//line 249 "reading.tt"
output += stash.get(['q', 0, 'cho_a_h_e', 0]);
output += '</td>\n          <td>&nbsp;</td>\n          <td style="text-align:center; font-weight:bold;">';
//line 251 "reading.tt"
output += stash.get(['q', 0, 'cho_b_h_e', 0]);
output += '</td>\n        </tr>\n        <tr>\n          <td style="width:50%;">\n            <div id="dropzone_q';
//line 255 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_1" class="dropzone"></div>\n          </td>\n          <td>&nbsp;</td>\n          <td style="width:50%;">\n            <div id="dropzone_q';
//line 259 "reading.tt"
output += stash.get(['q', 0, 'minor', 0]);
output += '_2" class="dropzone"></div>\n          </td>\n        </tr>\n      </table>\n      \n    </div>\n\n    <div class="true_answer_area">\n      <!--\n          ';
//line 268 "reading.tt"
stash.set('boxcount', 0);
output += '\n          ';
//line 269 "reading.tt"
stash.set('answers', [ ]);
output += '\n          ';
//line 270 "reading.tt"
stash.set(['answers', 0, 0, 0], [ ]);
output += '\n          ';
//line 271 "reading.tt"
stash.set('allanswers', [ ]);
output += '\n          ';
//line 272 "reading.tt"
stash.set('tempanswer', stash.get(['q', 0, 'correct_answer', 0, 'split', [ '|' ]]));
output += '\n          ';
//line 282 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get('tempanswer');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['a'] = value;
output += '\n          ';
//line 281 "reading.tt"
if (stash.get('a') == '|') {
output += '\n          ';
//line 275 "reading.tt"
stash.set('boxcount', stash.get('boxcount') + 1);
output += '\n          ';
//line 276 "reading.tt"
stash.get(['answers', 0, 'push', [ [ ] ]]);

output += '\n          ';
}
else if (stash.get('a') == ',') {
output += '\n          ';
}
else {
output += '\n          ';
//line 279 "reading.tt"
stash.get(['answers', 0, stash.get('boxcount'), 0, 'push', [ stash.get('a') ]]);
output += '\n          ';
//line 280 "reading.tt"
stash.get(['allanswers', 0, 'push', [ stash.get('a') ]]);
output += '\n          ';
}

output += '\n          ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n          ';
//line 284 "reading.tt"
stash.get(['allanswers', 0, 'sort', []]);
output += '\n\n          ';
//line 286 "reading.tt"
stash.set('allchoices', [ ]);
output += '\n          ';
//line 287 "reading.tt"
stash.set('i', 0);
output += '\n          ';
//line 291 "reading.tt"
    
// WHILE
var failsafe = 1000;
while (--failsafe && (stash.get('i') < stash.get(['q', 0, 'choice_e', 0, 'size', 0]))) {
output += '\n          ';
//line 289 "reading.tt"
stash.set(['allchoices', 0, stash.get('i'), 0], stash.get(['q', 0, 'choice_e', 0, stash.get('i'), 0]));
output += '\n          ';
//line 290 "reading.tt"
stash.set('i', stash.get('i') + 1);
output += '\n          ';
}
if (! failsafe)
    throw("WHILE loop terminated (> 1000 iterations)\n")

output += '\n\n          ';
//line 293 "reading.tt"
stash.set('i', 0);
output += '\n          ';
//line 294 "reading.tt"
stash.set('tempcount', 0);
output += '\n          ';
//line 302 "reading.tt"
    
// WHILE
var failsafe = 1000;
while (--failsafe && (stash.get('i') < stash.get(['allchoices', 0, 'size', 0]))) {
output += '\n\n          ';
//line 300 "reading.tt"
if (stash.get(['allanswers', 0, stash.get('tempcount'), 0]) == (stash.get('i') + 1)) {
output += '\n          ';
//line 298 "reading.tt"
stash.set(['allchoices', 0, stash.get('i'), 0], 'use');
output += '\n          ';
//line 299 "reading.tt"
stash.set('tempcount', stash.get('tempcount') + 1);
output += '\n          ';
}

output += '\n          ';
//line 301 "reading.tt"
stash.set('i', stash.get('i') + 1);
output += '\n          ';
}
if (! failsafe)
    throw("WHILE loop terminated (> 1000 iterations)\n")

output += '\n      -->\n      <div style="width:500px; padding:5px; margin-right:auto; margin-left:auto; position:static; border:1px solid grey;">\n          ';
//line 309 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get('allchoices');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['a'] = value;
output += '\n            ';
//line 308 "reading.tt"
if (stash.get('a') != 'use') {
output += '\n        <div style="font-weight:bold; margin:10px; padding:0px; text-align:left;">';
//line 307 "reading.tt"
output += stash.get('a');
output += '</div>\n            ';
}

output += '\n          ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n      </div>\n      <div style="width:850px; margin:0px auto;">\n        <div style="margin-left:10px; width:400px; padding:5px; float:left;">\n          <div style="text-align:center; font-weight:bold;">';
//line 313 "reading.tt"
output += stash.get(['q', 0, 'cho_a_h_e', 0]);
output += '</div>\n          <div style="padding:5px; min-height:1em; border:1px solid grey;">\n            ';
//line 318 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get(['answers', 0, 0, 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['a'] = value;
output += '\n            ';
//line 316 "reading.tt"
stash.set('b', (stash.get('a') - 1));
output += '\n            <div class="showSolution">';
//line 317 "reading.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('b'), 0]);
output += '</div>\n            ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n          </div>\n        </div>\n        <div style="margin-right:10px; width:400px; padding:5px; float:right;">\n          <div style="text-align:center; font-weight:bold;">';
//line 322 "reading.tt"
output += stash.get(['q', 0, 'cho_b_h_e', 0]);
output += '</div>\n          <div style="padding:5px; min-height:1em; border:1px solid grey;">\n            ';
output += '\n            ';
//line 328 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get(['answers', 0, 1, 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['a'] = value;
output += '\n            ';
//line 326 "reading.tt"
stash.set('b', (stash.get('a') - 1));
output += '\n            <div class="showSolution">';
//line 327 "reading.tt"
output += stash.get(['q', 0, 'choice_e', 0, stash.get('b'), 0]);
output += '</div>\n            ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n          </div>\n        </div>\n        <br style="clear:both;" />\n\n      </div>\n    </div>\n\n  </div>\n  <div class="slidearea_alltext" style="height:90%; width:99%; display:none;">\n    <div>\n      <p class="ScrollStatusBar">&nbsp;</p>\n      <div class="alltext">\n          ';
//line 341 "reading.tt"
output += stash.get(['passages', 0, stash.get('current_major_num'), 0, 'text_h', 0]);
output += '\n      </div>\n    </div>\n  </div>\n</div>\n      ';
break;

case 'i':
output += '\n<div id="question';
//line 347 "reading.tt"
output += stash.get('questionNo');
output += '" class="slide questionI">\n  <div class="question">\n    <div class="slidearea_left" style="float:left;width:49%;">\n      <div class="question_i">\n        <div class="question_text">';
//line 351 "reading.tt"
output += stash.get(['q', 0, 'question_e', 0]);
output += '</div>\n        <div class="insert_text">';
//line 352 "reading.tt"
output += stash.get(['q', 0, 'ins_s_e', 0]);
output += '</div>\n        <div>Where would the sentence best fit?</div>\n        <div class="assist_message">Click on a square [■] to add the sentence to the passage.</div>\n      </div>\n    </div>\n    <div class="slidearea_right">\n      <div>\n        <p class="ScrollStatusBar">&nbsp;</p>\n        <div class="alltext">\n          ';
//line 361 "reading.tt"
output += stash.get(['passages', 0, stash.get('current_major_num'), 0, 'text_h', 0]);
output += '\n        </div>\n      </div>\n    </div>\n    <br style="clear:both;" />\n  </div>\n</div>\n      ';
break;

default:
output += '\n<div style="padding:10px; border:1px solid red;">\n  [Jemplate is not found!] id = question';
//line 370 "reading.tt"
output += stash.get('questionNo');
output += ' | q_type = ';
//line 370 "reading.tt"
output += stash.get(['q', 0, 'type', 0]);
output += '\n</div>\n      ';
break;

    }


output += '\n\n      ';
//line 374 "reading.tt"
stash.set('current_q_count_inpart', (stash.get('current_q_count_inpart') + 1));
output += '\n    ';
}

output += '\n    ';
output += '\n\n';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n<div id="partEnd" class="slide partEnd">\n  <p>\n    このパートの出題が終了しました。<br>\n    試験を続けるには <em>Continue</em> ボタンをクリックしてください。<br>\n    いったんこのパートを終了すると，前に戻ることはできません。\n  </p>\n</div>\n\n';
//line 408 "reading.tt"
if (stash.get('isLastPart')) {
output += '\n  ';
//line 407 "reading.tt"
if (stash.get('isExperienceMode')) {
output += '\n<div id="examOutro" class="slide examOutro">\n  <p>いかがでしたか？これにて「リーディング模擬試験 体験版」は終了です。<br>旺文社TOEFLiBT大戦略Onlineなら日本語による詳しい解説でしっかりフォローします。<br>TOEFLiBTのトレーニングお役立てください！</p>\n\n  <div id="btn_buy"><a href="../buy.html"><span class="alt">購入する</span></a></div>\n\n  <ul>\n    <li><a href="promotion_review_reading.html">リーディング模擬試験の「答えと解説」</a>も体験してみる。</li>\n    <li><a href="promotion_listening.html">リスニング模擬試験</a>も体験してみる。</li>\n    <li><a href="promotion_writing.html">ライティング模擬試験</a>も体験してみる。</li>\n    <li><a href="promotion_speaking.html">スピーキング模擬試験</a>も体験してみる。</li>\n  </ul>\n</div>\n  ';
}
else {
output += '\n<div id="examOutro" class="slide examOutro">\n  <h3>End of Test</h3>\n  <p>これで、Practice Testは終了です。</p>\n</div>\n  ';
}

output += '\n';
}

output += '\n\n<div id="pauseTestConfirm" class="floatingWindow flora">\n\n  <p>中断してメニューに戻ります。</p>\n\n  <button onclick="c.notify(\'pauseTest\')">OK</button>\n  <button onclick="c.notify(\'closeWindow\')">キャンセル</button>\n\n</div>\n\n<div id="sectionExitConfirm" class="floatingWindow flora">\n  次のセクションに進みます。\n</div>\n\n<div id="requiredAnswer" class="floatingWindow flora">\n\n</div>\n\n<div id="moreText" class="floatingWindow flora">\n\n  <h5>More Text</h5>\n\n  <p class="bordered-box">\n    You should use the scroll bar to read the whole passage before you begin to answer the questions.<br>\n    The passage will appear again with each question.\n  <p>\n\n  <button onclick="c.notify(\'closeWindow\')">RETURN</button>\n\n</div>\n\n<div id="helpWindow" class="floatingWindow flora">\n\n  <iframe src="';
//line 442 "reading.tt"
output += stash.get('root');
output += 'static/help/index.html">HELP</iframe>\n\n</div>\n\n<div id="sendingResult" class="floatingWindow flora">\n  <h5>成績を送信しています。</h5>\n  <p><img src="';
//line 448 "reading.tt"
output += stash.get('root');
output += 'static/img/exam/sending_result.gif" alt="成績送信中..." width="24" height="24"></p>\n  <p>送信完了後、次の画面が表示されます。</p>\n</div>\n\n<div id="sendingResultFailure" class="floatingWindow flora">\n  <h5>成績の送信に失敗しました。</h5>\n  <p>インターネットの接続をご確認の上、<br>「再送信」ボタンをクリックしてください。</p>\n  <button onclick="c.notify(\'retrySendingResult\')">再送信</button>\n  <p>インターネットに正しく接続されているにも関わらず、<br>何度もこのメッセージが表示される場合は、<br><a href="';
//line 456 "reading.tt"
output += stash.get('root');
output += 'mypage/query" target="_blank">こちら</a>からお問い合わせください。</p>\n</div>\n\n<div id="glossary_area">\n  <div class="title_area">\n    <div class="title">Glossary</div>\n    <div class="close_btn">閉</div>\n  </div>\n\n  ';
//line 472 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get('passages');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['temp_passage'] = value;
output += '\n    ';
//line 466 "reading.tt"
stash.set('temp_passage_num', stash.get(['loop', 0, 'count', 0]));
output += '\n    ';
//line 471 "reading.tt"
if (stash.get(['temp_passage', 0, 'glossary', 0, 'size', []]) > 0) {
output += '\n      ';
//line 470 "reading.tt"

// FOREACH 
(function() {
    var list = stash.get(['temp_passage', 0, 'glossary', 0]);
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['glossary'] = value;
output += '\n    <p class="glossary_';
//line 469 "reading.tt"
output += stash.get('temp_passage_num');
output += '_';
//line 469 "reading.tt"
output += stash.get(['loop', 0, 'count', 0]);
output += '">';
//line 469 "reading.tt"
output += stash.get('glossary');
output += '</p>\n      ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n    ';
}

output += '\n  ';;
            retval = list.get_next();
            value = retval[0];
            done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n</div>\n\n<div id="reviewIndex" class="slide reviewIndex">\n  view_result.tt\n</div>\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

