var gen_razdel = new Array();
var gen_razdel_count = 0;
var nw_count = 0;
var nw_value = new Array();
var nw_view;
var d1_value = new Array();
var d1_count = 0;
var d2_value = new Array();
var d2_count = 0;
var d3_value = new Array();
var d3_count = 0;
function _init(x) {
	if(document.all) {return 'document.all["'+x+'"]'}
	else if(document.getElementById) {return 'document.getElementById("'+x+'")'}
}
function r_links(_pltext,_uid) {
if(_pltext==0) { window.location.href = path+'0/'+razdel_link["1"+_uid]+'?OpenDocument&Expand=1&'; }
else {window.location.href = path+'0/'+_uid+'?OpenDocument';}
}
function topMenu(_pos,_title,_pltext,_uid) {
this._pos = _pos;
this._title = _title;
this._pltext = _pltext;
this._uid = _uid;
_pos != 1 ? this._line = '<td class="tabLine" align="center" width="1">|</td>' : this._line ='';
if(_uid == razdel) {this._classtab = 'ak'; this._classlink = 'ak';}
else {this._classtab = ''; this._classlink = '';}
this.show=show_topMenu;
}
function show_topMenu() {
document.write(this._line+'<td nowrap class="tabGen'+this._classtab+'" align="center"><a href="javascript:r_links('+this._pltext+',\''+this._uid+'\');" class=gen'+this._classlink+'>'+this._title+'</a></td>');
}
function doc1(_pos,_title,_uid,_resp,_link,_lt) {
this.d1_title = _title;
this.d1_lt = _link;
this.d1_uid = _uid;
_link == 0 ? this.d1_link = path+'0/'+_uid+'?OpenDocument&Expand='+_pos+'&' : this.d1_link =_link;
(_lt != 0)&&(_link != 0) ?  this.d1_lt = ' target=new' : this.d1_lt = '';
_resp!=0 ? _im = "trak" : _im = "tr";
if((_uid == lid1)||(_uid==typenews)) {this.d1_class = "ak"; this.d1_im = "<div style=float:left;><img align=bottom src="+path+_im+".gif width=11 height=9 border=0 style=margin-top:4px;margin-right:8px;></div>"; this.d1_ml = "";}
else {this.d1_class = ""; this.d1_im = ""; this.d1_ml = "margin-left:19px;";}
this.show=show_d1;
}
function show_d1() {
if(this.d1_uid==newsleftid) {return}
document.write('<div style="clear:left; margin-top:9px; margin-bottom:7px;'+this.d1_ml+'">'+this.d1_im+'<div style="float:left;"><a href='+this.d1_link+' class=gen1'+this.d1_class+this.d1_lt+'>'+this.d1_title+'</a></div></div>');
}
function doc2(_pos,_num,_title,_uid,_resp,_link,_lt) {
this.d2_title = _title;
_link == 0 ? this.d2_link = path+'0/'+_uid+'?OpenDocument&Expand='+_pos+'.'+_num+'&' : this.d2_link =_link;
(_lt != 0)&&(_link != 0) ?  this.d2_lt = ' target=new' : this.d2_lt = '';
_resp!=0 ? _im = "trak" : _im = "tr";
if(_uid == lid2) {this.d2_class = "ak"; this.d2_im = "<img align=bottom src="+path+_im+".gif width=11 height=9 border=0 style=margin-top:4px;margin-right:8px;>"; this.d2_ml = "24";}
else {this.d2_class = ""; this.d2_im = ""; this.d2_ml = "44";}
this.show=show_d2;
}
function show_d2() {
document.write('<div style="margin-top:9px; margin-bottom:5px; margin-left:'+this.d2_ml+'px; clear:left;"><table cellspacing=0 cellpadding=0 border=0><tr><td valign=top>'+this.d2_im+'</td><td><a href='+this.d2_link+' class=gen2'+this.d2_class+this.d2_lt+'>'+this.d2_title+'</a></td></tr></table></div>');
}
function doc3(_pos,_num,_rnum,_title,_uid,_link,_lt) {
this.d3_title = _title;
this.d3_uid = _uid;
_link == 0 ? this.d3_link = path+'0/'+_uid+'?OpenDocument&Expand='+_pos+'.'+_num+'.'+_rnum+'&' : this.d3_link =_link;
(_lt != 0)&&(_link != 0) ?  this.d3_lt = ' target=new' : this.d3_lt = '';
if(_uid == lid3) {this.d3_class = "ak"; this.d3_im = "<img align=absmiddle src="+path+"tr.gif width=11 height=9 border=0 style=margin-right:10px;>"; this.d3_ml = "49";}
else {this.d3_class = ""; this.d3_im = ""; this.d3_ml = "70";}
this.show=show_d3;
}
function show_d3() {
document.write('<div style="margin-top:7px; margin-bottom:3px; margin-left:'+this.d3_ml+'px;"><table cellspacing=0 cellpadding=0 border=0><tr><td valign=top>'+this.d3_im+'</td><td><a href='+this.d3_link+' class=gen2'+this.d3_class+this.d3_lt+'>'+this.d3_title+'</a></td></table></div>');
}
function nw(_num, _uid, _date, _anonce, _title, _link, _lt, _im_type, _im_name, _y, _m, _chdate, _chtitle, _chanonce, _chdokl, _newstype) {
this.nw_num = _num;
this.nw_uid = _uid;
_link == 0 ? this.nw_link = path+'0/'+_uid+'?OpenDocument&year='+_y+'&month='+_m+'&nt='+_newstype+'&' : this.nw_link =_link;
(_lt != 0)&&(_link != 0) ?  this.nw_lt = ' target=new' : this.nw_lt = '';
if(_im_type == 1) {this.nw_im = '';}
else if(_im_name != '') {this.nw_im = '<a href='+this.nw_link+'><img src='+path+'0/'+_uid+'/$file/'+_im_name+' align=left border=0 style=margin-left:0px;margin-right:10px;></a>';}
else if(_im_name == '') {this.nw_im = '';}
_chdate=='1' ? this.nw_date='<div class=datenews style=margin-bottom:3px;><img src='+path+'ball.gif width=7 height=6 border=0 align=absmiddle style=margin-right:4px;>'+_date+'</div>' : this.nw_date='';
_chtitle=='1' ? this.nw_title='<div class=t><a href="'+this.nw_link+'"'+this.nw_lt+' style=color:#000000;text-decoration:none;><b>'+_title+'</b></a></div>' : this.nw_title='';
_chanonce=='1' ? this.nw_anonce='<div style=margin-top:2px;><a href="'+this.nw_link+'"'+this.nw_lt+' style="font: 11px Tahoma; color:#666666;text-decoration:none;">'+_anonce+'</a></div>' : this.nw_anonce='';
_chdokl=='1' ? this.nw_dokl='<div style=margin-top:2px;><a href='+this.nw_link+this.nw_lt+' class=m2>докладн&#1110;ше</a></div>' : this.nw_dokl='';
this.nw_im_type = _im_type;
this.nw_im_name = _im_name;
this.show = nw_show;
}
function nw_show() {
document.write('<div style=margin-bottom:9px;>');
document.write('<table cellspacing=0 cellpadding=0 border=0><tr>');
document.write('<td valign=top>'+ this.nw_im + this.nw_date + this.nw_title + this.nw_anonce + this.nw_dokl +'</td>');
document.write('</tr></table>');
document.write('</div>');
}
