function _init(x) {
	if(document.all) {return 'document.all["'+x+'"]'}
	else if(document.getElementById) {return 'document.getElementById("'+x+'")'}
}
function _roll_photo(_num) {
_br = _init('bgphoto');
eval(_br + ".src='"+_phBig[_num].src+"'");
}
// =====  left razdel  =====
var d1_count = 0;
var r_count = new Array();
var d1_value = new Array();
var d2_value = new Array();
var _d2_child = 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_cols = '' : this.d1_cols = '<tr><td colspan=2 height=20>&nbsp;</td></tr>';
_lt==1 ? this.d1_lt = ' target=new' : this.d1_lt = '';
if(lid1 == _uid) {this.d1_class = '_act'; this.d1_im = '<img src="'+path+'menu_link_act.gif" width=5 height=7 border=0>'; this.d1_div = 'inline';}
else {this.d1_class = ''; this.d1_im = '<img src="'+path+'menu_link_notact.gif" width=5 height=7 border=0>'; this.d1_div = 'none';}
this.show = d1_show;
}
function d1_show() {
document.write('</div><table width=100% cellspacing=0 cellpadding=0 border=0>'+this.d1_cols+'<tr valign=top><td width=50 style="padding-left:18;padding-right:10;padding-top:5px;">'+this.d1_im+'</td><td width=100% style="font-weight:bold;font-family:Verdana;"><a href="'+this.d1_link+'" '+this.d1_lt+' class=a_menu'+this.d1_class+'>'+this.d1_title+'</a></td></tr></table>');
document.write('<div id=d1'+this.d1_uid+' style="display:'+this.d1_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 = '';
lid2 == _uid ? _display='inline' : _display='none';
if(lid2 == _uid) {
this.d2_class = '_act'; 
_child != 0 ? this.d2_im = '<img src="'+path+'menu_link_child.gif" width=5 height=3 border=0 style="margin-top:8px;">' : this.d2_im = '<img src="'+path+'menu_link.gif" width=3 height=5 border=0 style="margin-top:7px;">';
}
else {this.d2_class = ''; this.d2_im = '<img src="'+path+'p.gif" width=5 height=3 border=0 style="margin-top:7px;">';}
_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 style="margin-left:30px;margin-top:7px;width:100%;"><table width=100% cellspacing=0 cellpadding=0 border=0><tr><td width=15 style="padding-left:5;" valign=top>'+this.d2_im+'</td><td valign="top" style="padding-top:2;padding-bottom:2;"><a href="'+this.d2_link+'" class=a_menu_child'+this.d2_class+'>'+this.d2_title+'</a></td></tr></table></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(lid3 == _uid) {
this.d3_class = '_act'; 
_child != 0 ? this.d3_im = '<img src="'+path+'menu_link_child.gif" width=5 height=3 border=0 style="margin-top:8px;">' : this.d3_im = '<img src="'+path+'menu_link.gif" width=3 height=5 border=0 style="margin-top:9px;">';
}
else {this.d3_class = ''; this.d3_im = '<img src="'+path+'p.gif" width=5 height=3 border=0 style="margin-top:7px;">';}
_d2_child[_uidr] == _num ? this.d3_ch_div_end = '</div>' : this.d3_ch_div_end = ''
this.show = d3_show;
}
function d3_show() {
document.write('<div style="margin-left:47px;width:100%;"><table width=100% cellspacing=0 cellpadding=0 border=0><tr><td width=15 style="padding-left:5;" valign=top>'+this.d3_im+'</td><td valign="top" style="padding-top:4;padding-bottom:3;"><a href="'+this.d3_link+'" class=a_menu_child'+this.d3_class+'>'+this.d3_title+'</a></td></tr></table></div>');
document.write(this.d3_ch_div_end);
}
// ===== news  =====
if(_r == 'Новини') {
lid1 = '2E9EF33EF4C79194C2257457004BDB8F';
lid2 = '9F08C2E0B8E55FAFC2257457004D8F0A';
}
else if(_r == 'Персональні вітання') {
lid1 = '2E9EF33EF4C79194C2257457004BDB8F';
lid2 = '056E617C92E1926DC2257457004D9202';
lid3 = '24C7E2B40B08540CC225745D002D7CFA';
}
else if(_r == 'Державні та професійні свята') {
lid1 = '2E9EF33EF4C79194C2257457004BDB8F';
lid2 = '056E617C92E1926DC2257457004D9202';
lid3 = '790C649C3EB5BDD2C225745D002D8100';
}
else if(_r == 'Анонси, оголошення') {
lid1 = '2E9EF33EF4C79194C2257457004BDB8F';
lid2 = '3A30A814D8AAE659C2257457004D973C';
}
else if(_r == 'Прес-релізи') {
lid1 = '2E9EF33EF4C79194C2257457004BDB8F';
lid2 = '53929F29A6D6294DC2257457004D9AA4';
}
else if(_r == 'Інтерв`ю та виступи керівників') {
lid1 = '60BCDD2600B7344BC2257457004BDF61';
lid2 = 'B813785991A64382C2257457004DA690';
}
else if(_r == 'Публікації у ЗМІ') {
lid1 = '60BCDD2600B7344BC2257457004BDF61';
lid2 = '42E081C21EEE94EFC2257457004DA994';
}
var news_count = 0;
var news_value = new Array();
var newsRazdel = '';
function news(_num, _razdel, _uid, _date, _title, _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_link = _link;
_lt==1 ? this.n_lt = ' target=new' : this.n_lt = '';
 _im != '' ? this.n_im = '<img src='+path+'0/'+_uid+'/$file/'+_im+' width=50 height=50 border=0>' : this.n_im = '<img src='+path+'noimg.gif width=50 height=50 border=0>';
this.show = news_show;
}
function news_show() {
document.write('<div style=margin-bottom:15px;><table cellspacing=0 cellpadding=0 border=0><tr valign=top><td style="padding-top:3px;padding-left:10px;padding-right:10px;">'+this.n_im+'</td><td><div class="data_1">'+this.n_date+'</div><div style=margin-bottom:6px;><a class="a_menu_child" href="'+this.n_link+'" '+this.n_lt+'>'+this.n_title+'</a></div></td></tr></table></div>');
}
