/*
   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['town_impression.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 142 "town_impression.tt"

// FOREACH 
(function() {
    var list = stash.get('impressions');
    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<div class="messageBOX">\n<div class="w1BGt">\n<div class="wTOP">\n<div class="wBOTTOM">\n';
//line 21 "town_impression.tt"
if (stash.get(['i', 0, 'user', 0]) && stash.get(['i', 0, 'user', 0, 'is_deleted', 0])) {
output += '\n\n<dl class="clipANONYMOUS">\n<dt>退会者</dt>\n<dd class="clipANONYMOUSnomember"><img src="/image/common/nomember.gif" width="100" height="75" alt="このメンバーは退会しました" /></dd>\n</dl>\n';
}
else if (stash.get(['i', 0, 'user', 0])) {
output += '\n<h2 class="clipTITLE"><!--img src="/image/common/icn_profile.gif" alt="湘南人" width="17" height="10" /-->湘南人</h2>\n';
//line 14 "town_impression.tt"
if (stash.get(['i', 0, 'is_new', 0])) {
output += '<img src="/image/common/icn_new.gif" alt="NEW!" width="19" height="19" class="newIMG" />';
}

output += '\n';
//line 15 "town_impression.tt"
output += stash.get(['i', 0, 'user', 0]);
output += '\n';
}
else {
output += '\n<dl class="clipANONYMOUS">\n<dt>匿名希望</dt>\n<dd class="clipANONYMOUSanonymous"><img src="/image/common/anonymous.gif" width="100" height="75" alt="匿名希望さん" /></dd>\n</dl>\n';
}

output += '\n</div>\n</div>\n</div>\n <!--memo[-->\n<div class="commentBOX1open" id="cbox_';
//line 26 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '">\n<div class="wBOTTOM">\n<div id="cbttom_';
//line 28 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" class="wTOP">\n<div class="commentAREAbg" id="cb_';
//line 29 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '">\n\n<!--文字制限無し-->\n<div class="commentAREA2">\n\n<!--文字制限無しの件名-->\n<div class="openMESSAGE"><div class="memoTITLE">\n<h4>';
//line 36 "town_impression.tt"

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

output += stash.get(['i', 0, 'title', 0]);

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

output += '</h4>\n<h5>';
//line 37 "town_impression.tt"
output += stash.get(['i', 0, 'date', 0, 'year', 0])  + '年'  + stash.get(['i', 0, 'date', 0, 'month', 0])  + '月'  + stash.get(['i', 0, 'date', 0, 'day', 0])  + '日'  + ' '  + stash.get(['i', 0, 'date', 0, 'hour', 0])  + '時'  + stash.get(['i', 0, 'date', 0, 'minute', 0])  + '分';
output += '</h5>\n</div>\n<dl class="informativeNUM">\n<dt>参考になった人</dt>\n<dd>(<span id="availed2_';
//line 41 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" >';
//line 41 "town_impression.tt"
output += stash.get(['i', 0, 'availed_count', 0]);
output += '</span>)</dd>\n</dl>\n</div>\n<!--文字制限無しのテキスト-->\n<div class="commentTXT">';
//line 45 "town_impression.tt"
output += stash.get(['i', 0, 'content', 0]);
output += '\n\n</div>\n\n<!--画像＆動画-->\n';
//line 65 "town_impression.tt"
if (stash.get(['i', 0, 'infouri', 0])) {
output += '\n<div class="imageMOVIE">\n\n<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="';
//line 53 "town_impression.tt"
output += stash.get(['i', 0, 'width', 0]) || '600';
output += '" height="';
//line 53 "town_impression.tt"
output += stash.get(['i', 0, 'height', 0]) || '135';
output += '" id="AlbumIndex';
//line 53 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" align="middle">\n<param name="allowScriptAccess" value="sameDomain" />\n<param name="movie" value="/swf/AlbumIndex.swf" />\n<param name="quality" value="high" />\n<param name="bgcolor" value="#ffffff" />\n<param name="scale" value="noscale" />\n<param name="wmode" value="transparent" />\n<param name="flashvars" value="stageHeight=';
//line 60 "town_impression.tt"
output += stash.get(['i', 0, 'height', 0]) || '135';
output += '&stageWidth=';
//line 60 "town_impression.tt"
output += stash.get(['i', 0, 'width', 0]) || '600';
output += '&newjp=';
//line 60 "town_impression.tt"
output += stash.get('newjp');
output += '&infourl=';
//line 60 "town_impression.tt"
output += stash.get(['i', 0, 'infouri', 0]);
output += '" />\n<embed src="/swf/AlbumIndex.swf" wmode="transparent" quality="high" bgcolor="#ffffff" scale="noscale" width="';
//line 61 "town_impression.tt"
output += stash.get(['i', 0, 'width', 0]) || '600';
output += '" height="';
//line 61 "town_impression.tt"
output += stash.get(['i', 0, 'height', 0]) || '135';
output += '" name="AlbumIndex" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" flashvars="stageHeight=';
//line 61 "town_impression.tt"
output += stash.get(['i', 0, 'height', 0]) || '135';
output += '&stageWidth=';
//line 61 "town_impression.tt"
output += stash.get(['i', 0, 'width', 0]) || '600';
output += '&newjp=';
//line 61 "town_impression.tt"
output += stash.get('newjp');
output += '&infourl=';
//line 61 "town_impression.tt"
output += stash.get(['i', 0, 'infouri', 0]);
output += '" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n</object>\n\n</div>\n';
}

output += '\n';
//line 94 "town_impression.tt"

// FOREACH 
(function() {
    var list = stash.get(['i', 0, 'postscript', 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['p'] = value;
output += '\n<!--追記-->\n<div class="moreMESSAGE">\n<div class="memoTITLE">\n<h4>';
//line 70 "town_impression.tt"
output += stash.get(['p', 0, 'title', 0]);
output += '</h4>\n<h5>';
//line 71 "town_impression.tt"
output += stash.get(['p', 0, 'date', 0, 'year', 0])  + '年'  + stash.get(['p', 0, 'date', 0, 'month', 0])  + '月'  + stash.get(['p', 0, 'date', 0, 'day', 0])  + '日'  + ' '  + stash.get(['p', 0, 'date', 0, 'hour', 0])  + '時'  + stash.get(['p', 0, 'date', 0, 'minute', 0])  + '分';
output += '</h5>\n</div>\n\n<div class="commentTXT">\n';
//line 75 "town_impression.tt"
output += stash.get(['p', 0, 'content', 0]);
output += '\n</div>\n<!--画像＆動画-->\n';
//line 92 "town_impression.tt"
if (stash.get(['p', 0, 'infouri', 0])) {
output += '\n<div class="imageMOVIE">\n<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="';
//line 80 "town_impression.tt"
output += stash.get(['p', 0, 'width', 0]) || '600';
output += '" height="';
//line 80 "town_impression.tt"
output += stash.get(['p', 0, 'height', 0]) || '135';
output += '" id="AlbumIndex';
//line 80 "town_impression.tt"
output += stash.get(['p', 0, 'id', 0]);
output += '" align="middle">\n<param name="allowScriptAccess" value="sameDomain" />\n<param name="movie" value="/swf/AlbumIndex.swf" />\n<param name="quality" value="high" />\n<param name="bgcolor" value="#ffffff" />\n<param name="scale" value="noscale" />\n<param name="wmode" value="transparent" />\n<param name="flashvars" value="stageHeight=';
//line 87 "town_impression.tt"
output += stash.get(['p', 0, 'height', 0]) || '135';
output += '&stageWidth=';
//line 87 "town_impression.tt"
output += stash.get(['p', 0, 'width', 0]) || '600';
output += '&newjp=';
//line 87 "town_impression.tt"
output += stash.get('newjp');
output += '&infourl=';
//line 87 "town_impression.tt"
output += stash.get(['p', 0, 'infouri', 0]);
output += '" />\n<embed src="/swf/AlbumIndex.swf" wmode="transparent" quality="high" bgcolor="#ffffff" scale="noscale" width="';
//line 88 "town_impression.tt"
output += stash.get(['p', 0, 'width', 0]) || '600';
output += '" height="';
//line 88 "town_impression.tt"
output += stash.get(['p', 0, 'height', 0]) || '135';
output += '" name="AlbumIndex" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" flashvars="stageHeight=';
//line 88 "town_impression.tt"
output += stash.get(['p', 0, 'height', 0]) || '135';
output += '&stageWidth=';
//line 88 "town_impression.tt"
output += stash.get(['p', 0, 'width', 0]) || '600';
output += '&newjp=';
//line 88 "town_impression.tt"
output += stash.get('newjp');
output += '&infourl=';
//line 88 "town_impression.tt"
output += stash.get(['p', 0, 'infouri', 0]);
output += '" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n</object>\n\n</div>\n';
}

output += '\n</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 class="messageMOREbot">\n<!--追記[-->\n';
//line 127 "town_impression.tt"
if (stash.get(['i', 0, 'is_self', 0])) {
output += '\n<div class="messageMORElink">\n<p><a href="/town/impression?town_info=';
//line 99 "town_impression.tt"
output += stash.get(['i', 0, 'town_info', 0]);
output += '" class="arrowRD">追記</a></p>\n</div>\n<!--]追記-->\n';
}
else {
output += '\n<!--参考ボタン[-->\n<div class="informativeBOT">\n';
//line 124 "town_impression.tt"
if (1) {
output += '\n<img src="/image/town/common/memo_informative.gif" alt="この感想メモが参考になった" name="memo_informative_';
//line 106 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" width="238" height="29" class="csrPOINT" id="memo_informative_';
//line 106 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" onmouseover="MM_swapImage(\'memo_informative_';
//line 106 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '\',\'\',\'/image/town/common/memo_informative_f2.gif\',1)" onmouseout="MM_swapImgRestore()" onclick="';
//line 106 "town_impression.tt"
if (1) {
output += 'impression.avail(';
//line 106 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += ')';
}
else {
output += 'impression.login_page(';
//line 106 "town_impression.tt"
output += stash.get(['i', 0, 'town_info', 0]);
output += ', ';
//line 106 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += ')';
}

output += '" /><img src="/image/town/common/memo_informative_finish.gif" alt="投票を反映しました" width="238" height="29" id="memo_informative_';
//line 106 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '_finish" style="display:none" />\n';
}
else {
output += '\n<img src="/image/town/common/memo_informative.gif" alt="この感想メモが参考になった" name="memo_informative_';
//line 108 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" width="238" height="29" class="csrPOINT" id="memo_informative_';
//line 108 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" onmouseover="MM_swapImage(\'memo_informative_';
//line 108 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '\',\'\',\'/image/town/common/memo_informative_f2.gif\',1)" onmouseout="MM_swapImgRestore()" onclick="Clip.Member.hideElementsByClassName(\'noLoginDialog\');$(\'no_login_town_impression_';
//line 108 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '\').show()" />\n<div style="display: none; visibility: inherit;" id="no_login_town_impression_';
//line 109 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" class="noLoginDialog">\n<!--Blue BOX [-->\n<div class="blueBOXwrapper">\n<div class="blueBG">\n<div class="blueCLOSE"><img src="/image/common/blue_close.gif" alt="閉じる" name="blue_close_no_login_';
//line 113 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" id="blue_close_no_login_';
//line 113 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '" onmouseover="MM_swapImage(\'blue_close_no_login_';
//line 113 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '\',\'\',\'/image/common/blue_close_f2.gif\',1)" onmouseout="MM_swapImgRestore()" onclick="$(\'no_login_town_impression_';
//line 113 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '\').hide()" class="csrPOINT" height="24" width="24" /></div>\n<div class="editBODY1" id="edit_1_no_login_';
//line 114 "town_impression.tt"
output += stash.get('no_login_id');
output += '"><p style="padding-bottom:10px;">ログインしてください。</p>\n<ul class="arrowBULE1"><li style="margin-left: 10px;"><a href="javascript:void(0)" onclick="impression.login_page(';
//line 115 "town_impression.tt"
output += stash.get(['i', 0, 'town_info', 0]);
output += ', ';
//line 115 "town_impression.tt"
output += stash.get(['i', 0, 'id', 0]);
output += '); return false;">ログインする</a></li>\n</ul>\n<p style="padding-bottom:10px;padding-top:10px;">ユーザ登録がまだの方は、</p>\n<ul class="arrowBULE1"><li style="margin-left: 10px;"><a href="/member/register">ユーザ登録へ</a></li></ul></div>\n</div>\n</div>\n<!--]Blue BOX-->\n</div>\n\n';
}

output += '\n</div>\n<!--参考ボタン[-->\n';
}

output += '\n</div>\n\n\n<div class="botCLOSE">追記(';
//line 131 "town_impression.tt"
output += stash.get(['i', 0, 'postscript', 0, 'size', 0]);
output += ') 最終更新日 ';
//line 131 "town_impression.tt"
if (stash.get(['i', 0, 'postscript', 0, 'size', 0]) == 0) {
//line 131 "town_impression.tt"
output += stash.get(['i', 0, 'date', 0, 'year', 0])  + '年'  + stash.get(['i', 0, 'date', 0, 'month', 0])  + '月'  + stash.get(['i', 0, 'date', 0, 'day', 0])  + '日'  + ' '  + stash.get(['i', 0, 'date', 0, 'hour', 0])  + '時'  + stash.get(['i', 0, 'date', 0, 'minute', 0])  + '分';
}
else {
//line 131 "town_impression.tt"
stash.set('latest', stash.get(['i', 0, 'postscript', 0, 'size', 0]) - 1);
//line 131 "town_impression.tt"
output += stash.get(['i', 0, 'postscript', 0, stash.get('latest'), 0, 'date', 0, 'year', 0])  + '年'  + stash.get(['i', 0, 'postscript', 0, stash.get('latest'), 0, 'date', 0, 'month', 0])  + '月'  + stash.get(['i', 0, 'postscript', 0, stash.get('latest'), 0, 'date', 0, 'day', 0])  + '日'  + ' '  + stash.get(['i', 0, 'postscript', 0, stash.get('latest'), 0, 'date', 0, 'hour', 0])  + '時'  + stash.get(['i', 0, 'postscript', 0, stash.get('latest'), 0, 'date', 0, 'minute', 0])  + '分';
}

output += '</div>\n\n</div>\n\n</div>\n</div>\n</div>\n</div>\n\n<!--]memo-->\n</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\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

