
//Конец контента и Main раздела
document.write("</div></div>");

document.write("<div ID='l_footer'><div style='position: absolute; top: 5px; left: 5px'>Вопросы, замечания по сайту: <a href='mailto:web@remex.ru'>web@remex.ru</a><br>&copy; Remex IT, 1994-2012</div>");
document.write("<center><table border='0' width='400' cellspacing='0' cellpadding='0' style='margin-top: 10px;'><tr><td width='100' align='center'>");

document.write("<a href='http://top100.rambler.ru/top100/'> <img src='http://top100-images.rambler.ru/top100/banner-88x31-rambler-gray2.gif' alt='Rambler's Top100' width=88 height=31 border=0 /></a>");
document.write("<a href='http://top100.rambler.ru/top100/'> <img src='http://counter.rambler.ru/top100.cnt?387238' width=1 height=1 border=0 alt=''/></a></td>");
document.write("<td width='100' align='center'><a target=_top href='http://top.mail.ru/jump?from=416241'> <img src='http://top.list.ru/counter?id=416241;t=84;l=1' border=0 height=18 width=88 alt='Рейтинг@Mail.ru' /></a>");
document.write("<img height=1 width=1 src='http://top.list.ru/counter?id=416241' alt='' /></td>");

document.write("<td width='100' align='center'><a href='http://u7080.23.spylog.com/cnt?cid=708023&f=3&p=0' target='_blank'><img src='http://u7080.23.spylog.com/cnt?cid=708023&p=0' alt='SpyLOG' border='0' width=88 height=31></a></td>");
//document.write("<td width='100' align='center'> <a href='http://www.yandex.ru/cy?base=0&host=www.remex.ru'> <img src='http://www.yandex.ru/cycounter?www.remex.ru' width=88 height=31 alt='Яндекс цитирования' border=0 /></a></td></tr></table></center></div>");

var strCommand = "var trgLayr = document.getElementById('l_main');\nvar dChkHgt = 0;\nvar dNewHgt = 0;\nvar dFootHgt = document.getElementById('l_footer').offsetHeight;\nvar dHeadHgt = document.getElementById('l_header').offsetHeight;\nvar dWinHgt = window.innerHeight;\n\nif (dWinHgt == undefined) {\ndWinHgt=document.body.clientHeight;\n};\n\nif (trgLayr.hasChildNodes())\n {\n   var children = trgLayr.childNodes;\n   for (var i = 0; i < children.length; i++) \n   {\n   	dChkHgt = children[i].offsetTop + children[i].offsetHeight;\n	 if (dChkHgt + 20 > dNewHgt) {\n	 	dNewHgt = dChkHgt + 20;\n	 };\n   };\n };\n \nif (dNewHgt + dFootHgt + dHeadHgt < dWinHgt) {\n		dNewHgt = dWinHgt - dFootHgt - dHeadHgt - 4;\n};\n\ndocument.getElementById('l_main').style.height  = dNewHgt + 'px';\n"

eval(strCommand);

document.write("<script>\nfunction winresize() { \n");
document.write(strCommand);
document.write("};\nwindow.onresize=winresize; \nwindow.document.onreadystatechange=winresize; \nwindow.document.onload=winresize; </script>");


