var menu_array={'3':{'desc':'О компании'},'33':{'desc':'Объекты социальной сферы'},'60':{'desc':'Заказчики'},'12':{'desc':'Виды деятельности'},'252':{'desc':'Объекты жилищного строительства'},'91':{'desc':'Лицензии'},'20':{'desc':'Производственная база'},'44':{'desc':'Объекты промышленного назначения'},'70':{'desc':'Субподрядчики'},'27':{'desc':'Выполненные объекты'},'56':{'desc':'Наши партнеры'},'76':{'desc':'Контакты'},'84':{'desc':'Карта сайта'}};
menu_array[-1]='';
var menu_pages_divs={'278':'279','11':'12','19':'20','0':'56','98':'33','251':'252','43':'44','59':'60','69':'70','75':'76','83':'84','90':'91','329':'330'};
var menu_pages={'278':{'0':'3','1':'279'},'98':{'0':'33'},'59':{'0':'60'},'11':{'0':'12'},'251':{'0':'252'},'90':{'0':'91'},'329':{'0':'330'},'19':{'0':'20'},'43':{'0':'44'},'69':{'0':'70'},'75':{'0':'76'},'83':{'0':'84'}};
var menu={'left':' 	<table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> 	<tr onmouseover="hilitediv(this,1,0)" onclick="opendiv(3);;window.location=\'http://zlatoust.sdv.com.ua/page278.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> 	<td id="it3" class="template-menu1" width="100%"><div><a href="http://zlatoust.sdv.com.ua/page278.html">О компании</a></div> 	</td></tr> 	<tr><td class="template-menu-line"></td></tr> 	<tr class="subdiv" id="subdiv3" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page90.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it91" class="template-menu2"><div><a href="http://zlatoust.sdv.com.ua/page90.html">Лицензии</a></div></td></tr>  </table> <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="template-menu-line"></td></tr></table></td></tr></table> <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page11.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it12" class="template-menu1"><div><a href="http://zlatoust.sdv.com.ua/page11.html">Виды деятельности</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page19.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it20" class="template-menu1"><div><a href="http://zlatoust.sdv.com.ua/page19.html">Производственная база</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table>  	<table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> 	<tr onmouseover="hilitediv(this,1,0)" onclick="opendiv(27);" onmouseout="hilitediv(this,0,0)"> 	<td id="it27" class="template-menu1" width="100%"><div><span>Выполненные объекты</span></div> 	</td></tr> 	<tr><td class="template-menu-line"></td></tr> 	<tr class="subdiv" id="subdiv27" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page98.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it33" class="template-menu2"><div><a href="http://zlatoust.sdv.com.ua/page98.html">Объекты социальной сферы</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page251.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it252" class="template-menu2"><div><a href="http://zlatoust.sdv.com.ua/page251.html">Объекты жилищного строительства</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page43.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it44" class="template-menu2"><div><a href="http://zlatoust.sdv.com.ua/page43.html">Объекты промышленного назначения</a></div></td></tr>  </table> <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="template-menu-line"></td></tr></table></td></tr></table> 	<table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> 	<tr onmouseover="hilitediv(this,1,0)" onclick="opendiv(56);" onmouseout="hilitediv(this,0,0)"> 	<td id="it56" class="template-menu1" width="100%"><div><span>Наши партнеры</span></div> 	</td></tr> 	<tr><td class="template-menu-line"></td></tr> 	<tr class="subdiv" id="subdiv56" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page59.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it60" class="template-menu2"><div><a href="http://zlatoust.sdv.com.ua/page59.html">Заказчики</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page69.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it70" class="template-menu2"><div><a href="http://zlatoust.sdv.com.ua/page69.html">Субподрядчики</a></div></td></tr>  </table> <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="template-menu-line"></td></tr></table></td></tr></table> <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page75.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it76" class="template-menu1"><div><a href="http://zlatoust.sdv.com.ua/page75.html">Контакты</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=\'http://zlatoust.sdv.com.ua/page83.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it84" class="template-menu1"><div><a href="http://zlatoust.sdv.com.ua/page83.html">Карта сайта</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table> '};

mn_top='';mn_top1='';
function show_path(arr,page){
var res=menu['left'].match(/class="subdiv_expand" id="subdiv(.*)"/);
var to_expand={};
var j=0;
if (res){
	for (var k=1;k<=res.length;k++){
		if (typeof(res[k])!="undefined"){
			to_expand[res[k]]=1;
		}
	}
}
for (i in arr){
	j++;
	if (typeof(menu_pages[page][1])!='undefined' && typeof(menu_array[menu_pages_divs[page]])!='undefined')
		menu['top2']=menu_array[menu_pages_divs[page]]['desc'];
	else if (typeof(menu_array[menu_pages[page][0]])!='undefined')
		menu['top2']=menu_array[menu_pages[page][0]]['desc'];
	else
		menu['top2']='&nbsp;';
	if (i==0){
		str='"opendiv\\('+arr[i]+'\\);" onmouseout="[^"]+">\\s*<td class="[^"]+"';
		pat= new RegExp(str,"i");
		menu['left']=menu['left'].replace(pat,'"opendiv\('+arr[i]+'\);" onmouseout="hilitediv\(this,3,1\)">'+'<td class="template-menu-current1"');
		str='onmouseout="[^"]+">\\s*<td id="it'+arr[i]+'" class="[^"]+"';
		pat= new RegExp(str,"i");
		menu['left']=menu['left'].replace(pat,'onmouseout="hilitediv\(this,3,0\)"> <td id="it'+arr[i]+'" class="template-menu-current1"');
	}

	//str='id="img'+arr[i]+'" src="[^"]+"';
	//pat= new RegExp(str,"i");
	//menu['left']=menu['left'].replace(pat,'src="pics/menu_dot_a.gif"');
	str='id="it'+arr[i]+'" class="template-menu[^"]+"';
	pat= new RegExp(str,"i");
	menu['left']=menu['left'].replace(pat,'class="template-menu-current'+((j>1)?(Math.min(3,j)):'1')+'"');

	if (typeof(to_expand[arr[i]])=="undefined"){
		pat='id="subdiv'+arr[i]+'"';
		menu['left']=menu['left'].replace(pat,pat+'style="display:'+((is.ie4)?'block':'table-row')+';"');
	}else{
		break;
	}
	
	mn_top+=mn_top1;
	mn_top1=((mn_top1!='')?'->':'')+((typeof(menu_array[arr[i]])!='undefined') ? menu_array[arr[i]]['desc']:'&nbsp;');
}
	menu['top1']=mn_top;
	document.write(menu['left']);
if (res){
	for (var j=1;j<=res.length;j++ ){
		for (k in arr){
			if (arr[k]==res[j]){
				opendiv(res[j],1);
			}
		}
	}
}
}
var ext_menu=1;

