// =====  top razdel  =====
var top_count = 0;
var top_value = new Array();
var _d2_child = new Array();
function topOver(_pref,_uid,_class,_name) {
if(_class!='') return;
_brous = _init(_pref+_uid);
eval(_brous+".className='"+_name+"'");
}
function topOut(_pref,_uid,_class,_name) {
if(_class!='') return;
_brous = _init(_pref+_uid);
eval(_brous+".className='"+_name+"'");
}
function toplink(_num, _uid, _title, _link, _lt) {
this.t_num = _num;
this.t_uid = _uid;
this.t_title = _title;
this.t_link = _link;
_lt==1 ? this.t_lt = ' target=new' : this.t_lt = '';
if(linkid==_uid) {this.t_class = 'ak'}
else {this.t_class = ''}
this.show = toplink_show;
}
function toplink_show() {
document.write('<td class=menutop'+this.t_class+' valign=top id=top'+this.t_uid+'><div style="padding-top:3px;"><a href="'+this.t_link+'" '+this.t_lt+' onMouseOver="topOver(\'top\',\''+this.t_uid+'\',\''+this.t_class+'\',\'menutop2\');" onMouseOut="topOut(\'top\',\''+this.t_uid+'\',\''+this.t_class+'\',\'menutop\');">'+this.t_title+'</a></div></td>');
}
// =====  left razdel  =====
var d1_count = 0;
var r_count = new Array();
var d1_value = new Array();
var d2_value = new Array();
var d3_value = new Array();
function d1(_num, _title, _uid, _link, _lt) {
this.d1_num = _num;
this.d1_title = _title;
this.d1_uid = _uid;
this.d1_link = _link;
_num != 1 ? this.d1_start = '<div class=leftLink><img src="http://www.ukrposhta.com/www/upost.nsf/z.gif" width="1" height="4" border="0"></div>' : this.d1_start ='';
_lt==1 ? this.d1_lt = ' target=new' : this.d1_lt = '';
if(linkid == _uid) {this.d1_class = 'ak'}
else {this.d1_class = ''}
this.show = d1_show;
}
function d1_show() {
document.write(this.d1_start);
document.write('<div class=leftTitleBorder><img src="http://www.ukrposhta.com/www/upost.nsf/z.gif" width=1 height=4 border=0></div>');
document.write('<div id=le'+this.d1_uid+' class=leftTitle'+this.d1_class+'><a href="'+this.d1_link+'" '+this.d1_lt+' onMouseOver="topOver(\'le\',\''+this.d1_uid+'\',\''+this.d1_class+'\',\'leftTitleak\');" onMouseOut="topOut(\'le\',\''+this.d1_uid+'\',\''+this.d1_class+'\',\'leftTitle\');">'+this.d1_title+'</a></div>');
}
function d2(_num, _title, _uidr, _uid, _link, _lt, _child) {
var _display;
_d2_child[_uid] = _child;
this.d2_num = _num;
this.d2_title = _title;
this.d2_uidr = _uidr;
this.d2_uid = _uid;
this.d2_link = _link;
this.d2_child = _child;
_lt==1 ? this.d2_lt = ' target=new' : this.d2_lt = '';
linkid == _uid ? this.d2_class = 'ak' : this.d2_class = '';
lid2 == _uid ? _display='inline' : _display='none';
_child != 0 ? this.d2_ch_div = '<div id=d2r'+_uid+' style="display:'+_display+';">' : this.d2_ch_div = '';
this.show = d2_show;
}
function d2_show() {
document.write('<div id=le'+this.d2_uid+' class=leftLink'+this.d2_class+'>');
document.write('<table cellspacing=0 cellpadding=0 border=0>');
document.write('<tr valign=top>');
document.write('<td><img src="http://www.ukrposhta.com/www/upost.nsf/tr1ak.gif" width=3 height=5 border=0 style="margin-top:5px;margin-right:4px;"></td>');
document.write('<td width=165><a href="'+this.d2_link+'" '+this.d2_lt+' onMouseOver="topOver(\'le\',\''+this.d2_uid+'\',\''+this.d2_class+'\',\'leftLinkak\');" onMouseOut="topOut(\'le\',\''+this.d2_uid+'\',\''+this.d2_class+'\',\'leftLink\');">'+this.d2_title+'</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write(this.d2_ch_div);
}
function d3(_num, _title, _uidr, _uid, _link, _lt, _child) {
this.d3_num = _num;
this.d3_title = _title;
this.d3_uidr = _uidr;
this.d3_uid = _uid;
this.d3_link = _link;
this.d3_child = _child;
_lt==1 ? this.d3_lt = ' target=new' : this.d3_lt = '';
if(linkid==_uid) {this.d3_class = 'ak'}
else {this.d3_class = ''}
_d2_child[_uidr] == _num ? this.d3_ch_div_end = '<div class=leftLink2><img src=http://www.ukrposhta.com/www/upost.nsf/z.gif width=1 height=1 border=0></div></div>' : this.d3_ch_div_end = ''
this.show = d3_show;
}
function d3_show() {
document.write('<div id=le'+this.d3_uid+' class=leftLink2'+this.d3_class+'>');
document.write('<table cellspacing=0 cellpadding=0 border=0>');
document.write('<tr valign=top>');
document.write('<td><img src="http://www.ukrposhta.com/www/upost.nsf/z.gif" width=3 height=5 border=0 style="margin-top:5px;margin-right:4px;"></td>');
document.write('<td width=165><a href="'+this.d3_link+'" '+this.d3_lt+' onMouseOver="topOver(\'le\',\''+this.d3_uid+'\',\''+this.d3_class+'\',\'leftLink2ak\');" onMouseOut="topOut(\'le\',\''+this.d3_uid+'\',\''+this.d3_class+'\',\'leftLink2\');">'+this.d3_title+'</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>'+this.d3_ch_div_end);
}
// ===== news  =====
var news_count = 0;
var news_value = new Array();
var newsRazdel = '';
function news(_num, _razdel, _uid, _date, _title, _anonce, _link, _lt, _im) {
this.n_num = _num;
this.n_razdel = _razdel; newsRazdel = _razdel;
this.n_uid = _uid;
this.n_date = _date
this.n_title = _title;
this.n_anonce = _anonce;
this.n_link = _link;
switch(_razdel) {
case 'Àêö³¿' :
 _im != '' ? this.n_im = '<td style=padding-right:20px;><img src='+path+'0/'+_uid+'/$file/'+_im+' border=0></td>' : this.n_im = '';
break;
case 'Íîâèíè' :
 _im != '' ? this.n_im = '<td style=padding-right:16px;><div style="background-color:#F2F3F4; border:1px solid #D3D8DD; padding:4px;"><img src='+path+'0/'+_uid+'/$file/'+_im+' border=0></div></td>' : this.n_im = '';
break;
case 'News' :
 _im != '' ? this.n_im = '<td style=padding-right:16px;><div style="background-color:#F2F3F4; border:1px solid #D3D8DD; padding:4px;"><img src='+path+'0/'+_uid+'/$file/'+_im+' border=0></div></td>' : this.n_im = '';
break;
default : 
this.n_im = '';
break;
}
_lt==1 ? this.n_lt = ' target=new' : this.n_lt = '';
this.show = news_show;
}
function news_show() {
switch(this.n_razdel) {
case 'Àêö³¿' :
if(this.n_num == 1) {
document.write('<div style=margin-bottom:12px;><table cellspacing=0 cellpadding=0 border=0 width=100%><tr valign=bottom><td width=1% style="font:bold 14px trebuchet,arial,sans-serif; color:#0052B0;">Àêö³¿</td><td width=99%><div style="border-bottom:2px solid #DEEAF9;margin-left:12px;margin-bottom:2px;">&nbsp;</div></td></tr></table></div>');
}
document.write('<div style=margin-bottom:12px;><table cellspacing=0 cellpadding=0 border=0><tr valign=top>'+this.n_im+'<td><div><a href='+this.n_link+'>'+this.n_title+'</a></div><div style=margin-top:3px;>'+this.n_anonce+'</div></td></tr></table></div>');
break;
case 'Íîâèíè' :
document.write('<div style=margin-bottom:12px;><table cellspacing=0 cellpadding=0 border=0><tr valign=top>'+this.n_im+'<td><div><span style=font-size:11px;color:#3B85DE;>'+this.n_date+'</span>&nbsp;&nbsp;<a href='+this.n_link+'>'+this.n_title+'</a></div><div style=margin-top:3px;>'+this.n_anonce+'</div></td></tr></table></div>');
break;
case 'News' :
document.write('<div style=margin-bottom:12px;><table cellspacing=0 cellpadding=0 border=0><tr valign=top>'+this.n_im+'<td><div><span style=font-size:11px;color:#3B85DE;>'+this.n_date+'</span>&nbsp;&nbsp;<a href='+this.n_link+'>'+this.n_title+'</a></div><div style=margin-top:3px;>'+this.n_anonce+'</div></td></tr></table></div>');
break;
default : 
document.write('');
break;
}
}
//==== Ban
var ban_count = 0;
var ban_value = new Array();
function ban(_num, _type, _uid, _title, _anonce, _link, _lt, _im) {
this.b_num = _num;
this.b_type = _type;
this.b_uid = _uid;
this.b_title = _title;
this.b_anonce = _anonce;
this.b_link = _link;
_lt==1 ? this.b_lt = ' target=new' : this.b_lt = '';
this.b_im = path+'0/'+_uid+'/$file/'+_im;
_num != 1 ? this.b_td3 = '<td width=9></td>' : this.b_td3 = '';
this.show = ban_show;
}
function ban_show() {
switch(this.b_type) {
case '0' :
document.write('<div style=margin-top:18px;><a href="'+this.b_link+'" '+this.b_lt+'><img src='+this.b_im+' border=0 alt="'+this.b_title+'"></a></div>');
break;
case '1' :
document.write('<td width=10%><a href="'+this.b_link+'" '+this.b_lt+'><img src='+this.b_im+' width=115 height=110 border=0 alt="'+this.b_title+'" style=margin-right:12px;></a></td><td width=20%><div><a href="'+this.b_link+'" '+this.b_lt+' class=reklTitle1>'+this.b_title+'</a></div><div style=margin-top:3px;>'+this.b_anonce+'</div></td>');
break;
case '2' :
document.write('<div style="margin-bottom:9px;padding:4px;background-color:#F2F3F4; border:1px solid #D3D8DD;"><table cellspacing=0 cellpadding=0 border=0><tr><td><a href="'+this.b_link+'" '+this.b_lt+'><img src='+this.b_im+' width=70 height=53 border=0 alt="'+this.b_title+'" style=margin-right:8px;></a></td><td width=150><a href="'+this.b_link+'" '+this.b_lt+' class=reklTitle2>'+this.b_title+'</a></td></tr></table></div>');
break;
case '3' :
document.write(this.b_td3+'<td style="border:1px solid #D3D8DD; background-color:#F2F3F4; padding-top:4px;padding-bottom:4px;"><table cellspacing=0 cellpadding=0 border=0><tr valign=top><td><a href="'+this.b_link+'" '+this.b_lt+'><img src='+this.b_im+' width=65 height=33 border=0 alt="'+this.b_title+'" style=margin-left:4px;></a></td><td><img src='+path+'ban3_tr.gif width=15 height=5 border=0 style=margin-top:5px;></td><td  style=padding-right:2px;><a href="'+this.b_link+'" '+this.b_lt+' class=reklTitle2>'+this.b_title+'</a></td></tr></table></td>');
break;
case '4' :
document.write('<td><a href="'+this.b_link+'" '+this.b_lt+'><img src='+this.b_im+' border=0 alt="'+this.b_title+'" style=margin-left:35px;></a></td>');
break;
default : 
document.write('');
break;
}
}
function _info(_num) {
_br = _init(_num);
eval(_br + ".style.display")=='none' ? eval(_br + ".style.display='inline'") : eval(_br + ".style.display='none'");
}
