var menu={'left':' <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page2.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it3" class="template-menu1"><div><a href="http://interbudtunnel.com/page2.html">Главная</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page21.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it22" class="template-menu1"><div><a href="http://interbudtunnel.com/page21.html">О компании</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page37.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it38" class="template-menu1"><div><a href="http://interbudtunnel.com/page37.html">Направления деятельности</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table>  	<table width="100%" cellpadding="0" cellspacing="0" border="0"> 	<tr onmouseover="hilitediv(this,1,0)" onclick="opendiv(40);;window.location=relative_path+\'http://interbudtunnel.com/page635.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> 	<td id="it40" class="template-menu1" width="100%"><div><a href="http://interbudtunnel.com/page635.html">Техническая вооруженность   </a></div> 	</td></tr> 	<tr><td class="template-menu-line"></td></tr> 	<tr class="subdiv" id="subdiv40" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page354.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it355" class="template-menu2"><div><a href="http://interbudtunnel.com/page354.html">Производственная база</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page52.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it53" class="template-menu2"><div><a href="http://interbudtunnel.com/page52.html">Технологии</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page56.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it57" class="template-menu2"><div><a href="http://interbudtunnel.com/page56.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"> 	<tr onmouseover="hilitediv(this,1,0)" onclick="opendiv(64);;window.location=relative_path+\'http://interbudtunnel.com/page456.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> 	<td id="it64" class="template-menu1" width="100%"><div><a href="http://interbudtunnel.com/page456.html">Проекты</a></div> 	</td></tr> 	<tr><td class="template-menu-line"></td></tr> 	<tr class="subdiv" id="subdiv64" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page406.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it407" class="template-menu2"><div><a href="http://interbudtunnel.com/page406.html">Строительство дренажно- коммуникационного тоннеля в г. Ашгабате</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page411.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it412" class="template-menu2"><div><a href="http://interbudtunnel.com/page411.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"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page159.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it68" class="template-menu1"><div><a href="http://interbudtunnel.com/page159.html">Фоторепортажи</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table>  	<table width="100%" cellpadding="0" cellspacing="0" border="0"> 	<tr onmouseover="hilitediv(this,1,0)" onclick="opendiv(72);;window.location=relative_path+\'http://interbudtunnel.com/page444.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> 	<td id="it72" class="template-menu1" width="100%"><div><a href="http://interbudtunnel.com/page444.html">Кадровый потенциал  </a></div> 	</td></tr> 	<tr><td class="template-menu-line"></td></tr> 	<tr class="subdiv" id="subdiv72" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page448.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it449" class="template-menu2"><div><a href="http://interbudtunnel.com/page448.html">Кадровая политика</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page91.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it92" class="template-menu2"><div><a href="http://interbudtunnel.com/page91.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"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page75.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it76" class="template-menu1"><div><a href="http://interbudtunnel.com/page75.html">Наши партнеры</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page79.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it80" class="template-menu1"><div><a href="http://interbudtunnel.com/page79.html">Статьи</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=relative_path+\'http://interbudtunnel.com/page83.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it84" class="template-menu1"><div><a href="http://interbudtunnel.com/page83.html">Контакты</a></div></td></tr> <tr><td class="template-menu-line"></td></tr> </table> '};

//menu['left']=menu['left'].replace(/<!--TABLE-->/gim,'<table width="100%" cellpadding="0" cellspacing="0" border="0">');

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 (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="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;
	}
	
}
	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;
