/* 
   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['inline_browser_inline_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;padding:0px" id="';
//line 2 "win_body.tt"
output += stash.get('id');
output += '_dlgForm" onsubmit="return false;">\n<table border="0" style="margin:0px;padding:0px;background-color:#FFFFFF" cellspacing="0" cellpadding="0">\n<tr>\n<td height="199" class="msg">\n';
output += '<div class="button">';

// 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 class="btn_m" type="button" id="';
//line 18 "win_body.tt"
output += stash.get('id');
output += '_';
//line 18 "win_body.tt"
output += stash.get(['lib', 0, 'id', 0]);
output += '" value="';
//line 18 "win_body.tt"
output += stash.get(['lib', 0, 'value', 0]);
output += '" >&nbsp;&nbsp;\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 += '</div><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><div class="button" id="';
//line 16 "win_body.tt"
output += stash.get('id');
output += '_dlgBtn">\n';
//line 19 "win_body.tt"

// FOREACH 
(function() {
    var list = stash.get('btnArray2');
    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 class="btn_m" type="button" id="';
//line 18 "win_body.tt"
output += stash.get('id');
output += '_';
//line 18 "win_body.tt"
output += stash.get(['lib', 0, 'id', 0]);
output += '" value="';
//line 18 "win_body.tt"
output += stash.get(['lib', 0, 'value', 0]);
output += '" >&nbsp;&nbsp;\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;
}


