var menu={'left':' 	<table width="100%" cellpadding="0" cellspacing="0" border="0"> 	<tr onmouseover="hilitediv(this,1,0)" onclick="opendiv(105);" onmouseout="hilitediv(this,0,0)"> 	<td id="it105" class="template-menu1" width="100%"><div><span>Система администрирования</span></div> 	</td></tr> 	 	<tr class="subdiv" id="subdiv105" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://webcommander.com.ua/intro.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it293" class="template-menu2"><div><a href="http://webcommander.com.ua/intro.html">Вводная информация</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://webcommander.com.ua/page5890.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it5989" class="template-menu2"><div><a href="http://webcommander.com.ua/page5890.html">Комплектация системы</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://webcommander.com.ua/ideology.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it329" class="template-menu2"><div><a href="http://webcommander.com.ua/ideology.html">Идеология</a></div></td></tr>  </table>  	<table width="100%" cellpadding="0" cellspacing="0" border="0"> 	<tr onmouseover="hilitediv(this,1,1)" onclick="opendiv(761);;window.location=\'http://webcommander.com.ua/key_sections.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> 	<td id="it761" class="template-menu2" width="100%"><div><a href="http://webcommander.com.ua/key_sections.html">Ключевые зоны системы</a></div> 	</td></tr> 	 	<tr class="subdiv" id="subdiv761" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page920.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it1488" class="template-menu3"><div><a href="http://webcommander.com.ua/page920.html">Рабочая зона &quot;Страницы&quot;</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page984.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it1490" class="template-menu3"><div><a href="http://webcommander.com.ua/page984.html">Рабочая зона &quot;Меню&quot;</a></div></td></tr>  </table> </td></tr></table> 	<table width="100%" cellpadding="0" cellspacing="0" border="0"> 	<tr onmouseover="hilitediv(this,1,1)" onclick="opendiv(314);" onmouseout="hilitediv(this,0,1)"> 	<td id="it314" class="template-menu2" width="100%"><div><span>Типы страниц</span></div> 	</td></tr> 	 	<tr class="subdiv" id="subdiv314" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/types/content.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it343" class="template-menu3"><div><a href="http://webcommander.com.ua/types/content.html">Тип «Контент»</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/types/photogallery.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it344" class="template-menu3"><div><a href="http://webcommander.com.ua/types/photogallery.html">Тип «Фотогалерея»</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/types/vacancies.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it345" class="template-menu3"><div><a href="http://webcommander.com.ua/types/vacancies.html">Тип «Вакансии» </a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/types/catalogue.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it346" class="template-menu3"><div><a href="http://webcommander.com.ua/types/catalogue.html">Тип «Каталог» </a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page5128.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it5129" class="template-menu3"><div><a href="http://webcommander.com.ua/page5128.html">Тип &quot;Объекты&quot;</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/types/news.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it349" class="template-menu3"><div><a href="http://webcommander.com.ua/types/news.html">Тип «Новости» </a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/types/form.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it741" class="template-menu3"><div><a href="http://webcommander.com.ua/types/form.html">Тип «Форма» </a></div></td></tr>  </table> </td></tr></table> 	<table width="100%" cellpadding="0" cellspacing="0" border="0"> 	<tr onmouseover="hilitediv(this,1,1)" onclick="opendiv(4037);" onmouseout="hilitediv(this,0,1)"> 	<td id="it4037" class="template-menu2" width="100%"><div><span>Дополнительно встраиваемые модули</span></div> 	</td></tr> 	 	<tr class="subdiv" id="subdiv4037" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4074.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4075" class="template-menu3"><div><a href="http://webcommander.com.ua/page4074.html">Модуль &quot;Поиск по сайту&quot;</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4657.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4658" class="template-menu3"><div><a href="http://webcommander.com.ua/page4657.html">Модуль авторизации</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4100.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4101" class="template-menu3"><div><a href="http://webcommander.com.ua/page4100.html">Модуль смены шаблонов для страниц сайта</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4108.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4109" class="template-menu3"><div><a href="http://webcommander.com.ua/page4108.html">Модуль публикации баннеров</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4041.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4042" class="template-menu3"><div><a href="http://webcommander.com.ua/page4041.html">Модуль управления рассылками</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4118.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4119" class="template-menu3"><div><a href="http://webcommander.com.ua/page4118.html">Модуль детальной статистики посещений</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4134.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4135" class="template-menu3"><div><a href="http://webcommander.com.ua/page4134.html">Модуль &quot;Опросник&quot;</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page5112.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it5113" class="template-menu3"><div><a href="http://webcommander.com.ua/page5112.html">Модуль &quot;Вопросы и ответы&quot;</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page5123.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it5124" class="template-menu3"><div><a href="http://webcommander.com.ua/page5123.html">Модуль &quot;Статьи&quot;</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4126.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4127" class="template-menu3"><div><a href="http://webcommander.com.ua/page4126.html">Модуль &quot;Гостевая книга&quot;</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4335.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4336" class="template-menu3"><div><a href="http://webcommander.com.ua/page4335.html">Модуль &quot;Форум&quot;</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page5118.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it5119" class="template-menu3"><div><a href="http://webcommander.com.ua/page5118.html">Модуль &quot;Офисы&quot;</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,2)" onclick="window.location=\'http://webcommander.com.ua/page4142.html\'+query_str;return false;" onmouseout="hilitediv(this,0,2)"> <td id="it4143" class="template-menu3"><div><a href="http://webcommander.com.ua/page4142.html">Модуль &quot;Версия для печати&quot;</a></div></td></tr>  </table> </td></tr></table> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://webcommander.com.ua/news.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it1521" class="template-menu2"><div><a href="http://webcommander.com.ua/news.html">Новости</a></div></td></tr>  </table> </td></tr></table> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=\'http://webcommander.com.ua/our_clients.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it2466" class="template-menu1"><div><a href="http://webcommander.com.ua/our_clients.html">Наши клиенты</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=\'http://webcommander.com.ua/order.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> <td id="it7" class="template-menu1"><div><a href="http://webcommander.com.ua/order.html">Заказать сайт</a></div></td></tr>  </table>  	<table width="100%" cellpadding="0" cellspacing="0" border="0"> 	<tr onmouseover="hilitediv(this,1,0)" onclick="opendiv(218);" onmouseout="hilitediv(this,0,0)"> 	<td id="it218" class="template-menu1" width="100%"><div><span>Авторы</span></div> 	</td></tr> 	 	<tr class="subdiv" id="subdiv218" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://webcommander.com.ua/about.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it226" class="template-menu2"><div><a href="http://webcommander.com.ua/about.html">О нас</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://webcommander.com.ua/job.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it225" class="template-menu2"><div><a href="http://webcommander.com.ua/job.html">Предлагаем сотрудничество</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://webcommander.com.ua/contacts.html\'+query_str;return false;" onmouseout="hilitediv(this,0,1)"> <td id="it285" class="template-menu2"><div><a href="http://webcommander.com.ua/contacts.html">Контакты</a></div></td></tr>  </table> </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;

