function renderRoot_top() {
	var str='<table border=0 cellspacing=0 cellpadding=0 width=430 height=17><tr>',
		event, target, m=itemsList['t'], count=1,
		x=(isOpera)?'"p.x-3"':'"p.x"',
		y=(isNN4)?'"131"':(isOpera)?'"p.y+p.h-3"':'"p.y+p.h"';
	for (var i in m) {
		if (m[i].level==0) {
			event=' onmouseover=over("'+m[i].id+'",event,'+m[i].level+','+x+','+y+') onmouseout=out("'+m[i].id+'")';
			(m[i].inNewWindow=='true') ? target=' target=_blank' : target='';
			if (m[i].text=="ÊÎÍÒÀÊÒÛ"){			
				str+='<td width=30% id='+top+m[i].id+event+' class=topmenu2>';}
			else {			
				str+='<td width=30% id='+top+m[i].id+event+' class=topmenu2>';}
				str+='<div class=sub2><a class=menuup'+target+event+' href="'+m[i].url+'">'+m[i].text+'</a></div>';
				str+='</td>';
				count++;
			}
		}
		str+='</tr></table>';
		document.write(str);
	}

function renderSub_top() {
	var str, event, target, row, list, isPar, p1='<img src=img/1x1.gif width=1 height=1>', m=itemsList['t'], count,
		x=(isNN4)?'"p.x+50"':(isOpera)?'"p.x+p.w-2"':'"p.x+p.w"',
		y=(isOpera)?'"p.y-3"':'"p.y-1"';
	for (var i in m) {
		if (m[i].children.length>0) {
			list=m[i].children;
			row=list.length*2+1;
			count=1;
			str='<div id='+sub+m[i].id+' class=popup>';
			str+='<table border=0 cellspacing=0 cellpadding=0 width=140><tr>';
			for (var j=0; j<list.length; j++) {

				isPar=m[list[j]].children.length;
				(m[list[j]].inNewWindow=='true') ? target=' target=_blank' : target='';
				event=' onmouseover=over("'+m[list[j]].id+'",event,'+m[list[j]].level+','+x+','+y+') onmouseout=out("'+m[list[j]].id+'")';
				str+='<tr><td id='+top+m[list[j]].id+event+' class=submenu>';
				if (isPar>0) str+='<table border=0 cellspacing=0 cellpadding=0 background=img/1x1.gif><tr><td width=155>';
				str+='<div class=sub><a class=menuup1'+target+event+' href="'+m[list[j]].url+'">'+m[list[j]].text+'</a></div>';
				if (isPar>0) str+='</td><td width=6 valign=top><img src=img/sub.gif width=6 height=6></td></tr></table>';
				str+='</td></tr>';
				count++;
			}
			str+='</table>';
			str+='</div>';
			document.write(str);
		}
	}
}

