/* 
   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['win_body.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<div class="pop" id ="';
//line 1 "win_body.tt"
output += stash.get('id');
output += '_dlg">\n<form style="margin:0px" id="';
//line 2 "win_body.tt"
output += stash.get('id');
output += '_dlgForm">\n<table border="0" cellspacing="0" cellpadding="0">\n<tr>\n<td height="50" class="msg">\n<div class="bar" id="';
//line 6 "win_body.tt"
output += stash.get('id');
output += '_dlgBar">\n<table>\n<tr><th>\n<span id ="';
//line 9 "win_body.tt"
output += stash.get('id');
output += '_dlgTitle">';
//line 9 "win_body.tt"
output += stash.get('title');
output += '</span>\n</th>\n<td><span class="close" id="id0_btn1"></span></td>\n</tr></table>\n</div>\n<div class="body" id="';
//line 14 "win_body.tt"
output += stash.get('id');
output += '_dlgBody">';
//line 14 "win_body.tt"
output += stash.get('body');
output += '</div>\n</td></tr>\n<tr><td class="button" align="center"><div id="';
//line 16 "win_body.tt"
output += stash.get('id');
output += '_dlgBtn">\n';
//line 19 "win_body.tt"

// FOREACH 
(function() {
    var list = stash.get('btnArray');
    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['lib'] = value;
output += '\n<input type="image" id="';
//line 18 "win_body.tt"
output += stash.get('id');
output += '_';
//line 18 "win_body.tt"
output += stash.get(['lib', 0, 'id', 0]);
output += '" src="';
//line 18 "win_body.tt"
output += stash.get(['lib', 0, 'value', 0]);
output += '" >&nbsp;&nbsp;<br>\n';;
            retval = list.get_next();
            var value = retval[0];
            var done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n\n</div></td></tr>\n</table>\n</form>\n</div>\n\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

