function sdiv (content, id, clss) {         return '<div ' + nz2 (id, '', 'id="' + id + '"') +                  + nz2(clss, '', ' class="' + clss + '"') + '>'                 + nz2 (content, '&nbsp;') + '</div>';} function td (content, width, height, backgroundImageUrl,              backgroundRepeat, backgroundPosition, extra)/*   \u0421\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 <td style="..." extra>content</td>.    \u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B - \u043E\u0434\u043D\u043E\u0438\u043C\u0435\u043D\u043D\u044B\u0435 \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E\u0449\u0438\u0435 \u0441\u0442\u0438\u043B\u044F (\u043A\u0440\u043E\u043C\u0435 content \u0438 extra).   \u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0441\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u043C null \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u043E\u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u044B (\u043A\u0440\u043E\u043C\u0435 content, \u0432\u043C\u0435\u0441\u0442\u043E   null-\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430 \u0441\u0442\u0440\u043E\u043A\u0430 "&nbsp;".      \u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0435\u043A\u0441\u0442-\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430.*/{ var stl =   nz2 (width, "", "width: " + width + "; ")           + nz2 (height, "", "height: " + height + "; ")           + nz2 (backgroundImageUrl, "", " background-image: url(" + backgroundImageUrl + "); ")           + nz2 (backgroundRepeat, "", " background-repeat: " + backgroundRepeat + "; ")           + nz2 (backgroundPosition, "", " background-position: " + backgroundPosition + "; ");        if (stl == "") stl = null;        return '<td ' + nz2 (stl, '', 'style="' + stl + '" ') + nz2 (extra, '') + '>'         + nz2 (content, '&nbsp;') + '</td>';    }function rf (w, h, bgs, cnt, xtras, classprefix, bgprefix, bgsuffix, rows, idprefix) /* \u0420\u0438\u0441\u0443\u0435\u0442 \u0440\u0430\u043C\u043A\u0443 \u0438\u0437 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0442\u0430\u0431\u043B\u0438\u0446\u044B (document.write).    \u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B:   w - \u043C\u0430\u0441\u0441\u0438\u0432-\u0448\u0438\u0440\u0438\u043D\u0430 (\u043B\u0435\u0432\u043E\u0439 \u0433\u0440\u0430\u043D\u0438\u0446\u044B, \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430, \u043F\u0440\u0430\u0432\u043E\u0439 \u0433\u0440\u0430\u043D\u0438\u0446\u044B),   h - \u043C\u0430\u0441\u0441\u0438\u0432-\u0432\u044B\u0441\u043E\u0442\u0430 (\u0432\u0435\u0440\u0445\u043D\u0435\u0439 \u0433\u0440\u0430\u043D\u0438\u0446\u044B, \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430, \u043D\u0438\u0436\u043D\u0435\u0439 \u0433\u0440\u0430\u043D\u0438\u0446\u044B),    (\u0432\u0441\u0435 \u0432\u044B\u0448\u0435\u043F\u0440\u0438\u0432\u0435\u0434\u0435\u043D\u043D\u044B\u0435 \u0440\u0430\u0437\u043C\u0435\u0440\u044B - \u0432 \u0442\u0435\u0440\u043C\u0438\u043D\u043E\u043B\u043E\u0433\u0438\u0438 CSS, \u0442.\u0435. 69px, 100% \u0438 \u0442.\u0434.;         \u0435\u0441\u043B\u0438 \u0442\u0440\u0435\u0442\u0438\u0439 \u0440\u0430\u0437\u043C\u0435\u0440 \u043C\u0430\u0441\u0441\u0438\u0432\u0430 \u043E\u043F\u0443\u0449\u0435\u043D, \u043E\u043D \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044F \u0440\u0430\u0432\u043D\u044B\u043C \u043F\u0435\u0440\u0432\u043E\u043C\u0443)      bgs - \u043C\u0430\u0441\u0441\u0438\u0432 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0439 \u0444\u043E\u043D\u043E\u0432\u044B\u0445 \u0440\u0438\u0441\u0443\u043D\u043E\u0432,   cnt - \u043C\u0430\u0441\u0441\u0438\u0432 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 (\u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 td),   xtras - \u043C\u0430\u0441\u0441\u0438\u0432 \u0434\u043E\u043F. \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043E\u0432 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 td \u0438 table (\u0431\u0443\u0434\u0443\u0442 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u044B \u0432     \u0441\u0442\u0430\u0440\u0442\u043E\u0432\u044B\u0439 \u0442\u044D\u0433 \u0432 \u0447\u0438\u0441\u0442\u043E\u043C \u0432\u0438\u0434\u0435, \u043D\u0430\u043F\u0440. 'onmouseover="..."' \u0442.\u0434.      \u0412 \u0442\u0440\u0435\u0445 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0445 \u0432\u044B\u0448\u0435 \u043C\u0430\u0441\u0441\u0438\u0432\u0430\u0445 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0438\u043D\u0434\u0435\u043A\u0441\u044B \u0434\u043B\u044F \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u044F     \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432, \u0432 \u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043C\u0430\u0441\u0441\u0438\u0432\u0430:         'lu'     'th'     'ru'         'lv'     'c'      'rv'         'lb'     'bh'     'rb'    \u0430 \u0442\u0430\u043A\u0436\u0435 'w' \u0434\u043B\u044F \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u044F \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 table.        classprefix - \u0435\u0441\u043B\u0438 \u043D\u0435 \u0440\u0430\u0432\u0435\u043D null, \u0432 \u043A\u0430\u0436\u0434\u044B\u0439 \u0438\u0437 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432, \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u043C\u043E\u0436\u043D\u043E     \u0441\u043E\u0441\u043B\u0430\u0442\u044C\u0441\u044F \u0438\u0437 \u043C\u0430\u0441\u0441\u0438\u0432\u0430, \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u0430\u0442\u0440\u0438\u0431\u0443\u0442 class \u0441\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u043C      classprefix + index, \u0433\u0434\u0435 index - \u0438\u043D\u0434\u0435\u043A\u0441 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 (\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0438\u0441\u0430\u043D\u044B\u043C      \u0432\u044B\u0448\u0435 \u043F\u0440\u0438\u043D\u0446\u0438\u043F\u043E\u043C).        rows - \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0440\u043E\u043A (1 - \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A, 2 - \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0438 \u043A\u043E\u043D\u0442\u0435\u043D\u0442,     3 - \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A, \u043A\u043E\u043D\u0435\u043D\u0442 \u0438 \u043F\u043E\u0434\u0432\u0430\u043B; \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043C\u0435\u043D\u044C\u0448\u0435 1 \u0438 \u0431\u043E\u043B\u044C\u0448\u0435 3 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u044E\u0442\u0441\u044F     \u0440\u0430\u0432\u043D\u044B\u043C\u0438 1 \u0438 3 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E). \u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E - 3.              \u0415\u0441\u043B\u0438 rows - \u043C\u0430\u0441\u0441\u0438\u0432, \u0432\u044B\u0432\u043E\u0434\u044F\u0442\u0441\u044F \u0441\u0442\u0440\u043E\u043A\u0438 \u0441 \u043D\u043E\u043C\u0435\u0440\u0430\u043C\u0438, \u043F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u043C\u0438 \u0432 \u043C\u0430\u0441\u0441\u0438\u0432\u0435.           bgprefix - \u0435\u0441\u043B\u0438 \u043D\u0435 \u0440\u0430\u0432\u0435\u043D null, \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u0444\u043E\u043D\u043E\u0432\u044B\u0445 \u0440\u0438\u0441\u0443\u043D\u043E\u0432 \u043D\u0430\u0437\u043D\u0430\u0447\u0430\u044E\u0442\u0441\u044F              \u043F\u043E \u043F\u0440\u0438\u043D\u0446\u0438\u043F\u0443 bgprefix + \u0438\u043D\u0434\u0435\u043A\u0441 (\u0441\u043C. classprefix) + bgsuffix;                 idprefix - \u0435\u0441\u043B\u0438 \u043D\u0435 \u0440\u0430\u0432\u0435\u043D null, \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u043C \u043D\u0430\u0437\u043D\u0430\u0447\u0430\u044E\u0442\u0441\u044F \u0441\u0432\u043E\u0438 id \u043F\u043E \u0442\u043E\u043C\u0443 \u0436\u0435    \u043F\u0440\u0438\u043D\u0446\u0438\u043F\u0443, \u0447\u0442\u043E \u0438 classprefix...       */{   // \u041F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u043E\u0432\u043E\u043C\u0443 \u043D\u043E\u043C\u0435\u0440\u0443 \u0432\u044B\u0432\u043E\u0434\u0438\u043C\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 td \u0431\u0443\u0434\u0435\u043C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0442\u044C \u0435\u0433\u043E \u0438\u0434\u0435\u043D\u0442.   var td_id = new Array ('w',                          'lu', 'th', 'ru',                          'lv', 'c',  'rv',                          'lb', 'bh', 'rb');                             var rept = new Array ('no-repeat', 'repeat-x', 'no-repeat',                         'repeat-y',     null,    'repeat-y',                         'no-repeat', 'repeat-x', 'no-repeat');                            var bpos = new Array ('bottom right', 'bottom', 'bottom left',                         'right',         null,    'left',                         'top right',    'top',    'top left');                                         // \u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F   rows = nz2 (rows, 3);   bgs = nz2 (bgs, new Array());   cnt = nz2 (cnt, new Array());    var _rows = new Array();    if (typeof (rows) == "number") {    var numrows;       var nr;     numrows = rows;       numrows = (rows < 1)? 1: rows;     numrows = (rows > 3)? 3: rows;       for (nr = 0; nr < numrows; nr++) _rows[_rows.length] = nr;    } else _rows = rows;      function cpx (idx) {            k = (xtras != null)? xtras[td_id[idx]] : null;             return   nz2 (classprefix, '', 'class="' + classprefix + td_id[idx] + '"')                   + nz2 (idprefix, '', ' id="' + idprefix + td_id[idx] + '"')                   + ' ' + nz2 (k, '') + ' ' ;   }       w[2] = nz2 (w[2], w[0]);   h[2] = nz2 (h[2], h[0]);      var s = '';      s+=('<table ' + cpx(0) + ' cellspacing="0" cellpadding="0"  border="0" rows="' + numrows + '"  cols="3">\n' );   s+= (' <colgroup>\n');   s+= ('  <col style="width: ' + w[0] + '" />\n');   s+= ('  <col style="width: ' + w[1] + '" />\n');   s+= ('  <col style="width: ' + w[2] + '" />\n');   s+= (' </colgroup>\n');      for (j = 0; j < 3; j++) if (keyOf(_rows, j) != null) {      s+= ('<tr>\n');       for (i = 0; i < 3; i++) {           tdcr = j*3 + i + 1;        bkg = ((bgs[td_id[tdcr]] == null) && (bgprefix != null)) ?                bgprefix + td_id[tdcr] + nz2 (bgsuffix, '') : bgs[td_id[tdcr]];          s+= td (cnt[td_id[tdcr]], w[i], h[j], bkg,                 rept[tdcr-1], bpos[tdcr - 1], cpx(tdcr)) + '\n';        }         s+= ('</tr>\n');   }   s+= ('</table>\n');    return (s);}function m (idprefix, alwaysOn, isButton) {  var s;    if (!isButton)  s = alwaysOn? "" : "activate ('"+ idprefix + "aww', '" + idprefix + "pww'); return true;";  else s = alwaysOn? "" : "activate ('"+ idprefix + "wbaw', '" + idprefix + "wbw'); return true;";    if (!isButton) return (alwaysOn ? "" : mp (s, idprefix + 'pw'))                  + ma (null, idprefix + 'aw');   else return mbtn (s, idprefix + 'wb') + mbta (s, idprefix + 'wba');}function hintw (idprefix, imgdir) { var imd = imgdir? imgdir : 'images/';   var hintf = '<form><input type="submit" value="Ok" onclick="' + "hintOff(null, null); return false;"+'" /></form>'; return rf (new Array ('16px', '300px'),       new Array ('14px'),       {'c' : imd + 'yellow.gif'},      {'c' : sdiv('', 'hintext') + sdiv (hintf) },      {'c' : 'valign="top"',       'w' : ''},       'hint', imd + 'hint_', '.gif', 3, idprefix); }var tohide = null;function showhint (text, element, _tohide) {     var hintw;          tohide = _tohide? _tohide : null;     if (tohide) tohide.style.visibility = 'hidden';      if (hintw = ge('hintw')) {        hintw.style.display = 'block';        ge('hintext').innerHTML = '<p class="hinthead">\u041F\u043E\u043C\u043E\u0449\u044C</p><div class="hintext">' + text + "</div>";         setGlobalLeft (hintw, document.documentElement.offsetWidth/2 - hintw.offsetWidth/2);        setGlobalTop (hintw, document.documentElement.offsetHeight/2 - hintw.offsetHeight/2);        /*setGlobalTop (hintw, globalTop(element) - hintw.offsetHeight / 2);        setGlobalLeft (hintw, globalLeft(element) - hintw.offsetWidth);*/     }}function hintOff(parent, event) {     if (event) {       var te = (document.all)? window.event.toElement : event.relatedTarget;       if (te == ge('hintw') || isparent (te, ge('hintw'))) return false;     }            if (tohide) {tohide.style.visibility = 'visible'; tohide=null;}     ge ('hintw').style.display = 'none';}function render_content () {  dw ('     <table style="position: relative; left: 157px; top: 0px; height: 100%" ');  dw ('               cellpadding="0" cellspacing="0" border="0"> ');  dw ('        <tr> ');  dw ('            <td style="height: 73px">&nbsp;</td> ');  dw ('        </tr> ');  dw ('        <tr> ');  dw ('            <td style="height: 100%" valign="top"> ');  var cnt = ge ('content');  dw (rcont(head, cnt.innerHTML));  ge("plain").removeChild (cnt);  dw ('            </td> ');  dw ('        </tr> ');  dw ('        <tr> ');  dw ('            <td style="height: 16px"> ');  dw ('               <div style="position: relative"> ');   dw ('                <div id="copy">&copy;2004 \u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E &#171;\u041C\u0435\u0442\u0430\u043B\u043B-\u041A\u0443\u0440\u044C\u0435\u0440&#187;</div> ');  dw ('                <div id="up" onclick="window.scrollTo(0,0); return false;">\u0412\u0432\u0435\u0440\u0445</div> ');  dw ('               </div> ');  dw ('            </td> ');  dw ('        </table> '); }//------------------------------------------------------------------------------  var defel = null;  var afel = null;    function selp (elem, event, override) {         window.clearInterval(idefTimerId);      /* \u0443\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442 \u0432\u044B\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u0435\u043C \u0432 \u0431\u043B\u043E\u043A\u0435 As */         if (!override && (elem == afel || elem.parentNode && elem.parentNode == afel)) return false;         sl = ge('sel');         sl.style.visibility = isVis (elem) ? 'visible' : 'hidden';         if (!elem) return false;         var gt = globalTop(elem) + elem.offsetHeight - 8;         setGlobalTop (sl, gt);         afel = elem;         return false;  }  function seldef (elem, event) {         te = (document.all)? window.event.toElement : event.relatedTarget;         sl = ge ('sel');             if (te != elem && !isparent (te, elem) && te != sl && !isparent (te, sl) ) {                  selDefMndDelay(500);         }   }          var idefTimerId = null;        function selDefMndDelay (delay) {          iv = delay? delay : 100;                window.clearInterval(idefTimerId);          idefTimerId = window.setInterval ("selp(defel, null, true); window.clearInterval(idefTimerId);", iv);}//--------------------------------------------------------------------------------      function inme (ct, elem) {                  var src = ct;//         var src = (document.all)? window.event.toElement : event.currentTarget;         while (src != null && src != elem) {            src = src.parentElement;            }         return (src == elem);      }      //--------------------------------------------------------------------------------   var active = null;   var passive = null;//--------------------------------------------------------------------------------   function activate (a_id, p_id) {            deactivate();      active = a_id;      passive = p_id;      disp (passive, 'none');      disp (active, 'block');      disp ('menu', 'none');      disp ('menu', 'block');      //selp (defel, null);      selDefMndDelay();      return false;   }//--------------------------------------------------------------------------------   function deactivate () {      var s = '';      el = ge (active);      if (!el || el.className.indexOf ('menuAo') == -1) {       if (passive) disp (passive, 'block');       if (active) disp (active, 'none');      }      selDefMndDelay();      return false;   }//--------------------------------------------------------------------------------
