var menu_array={'1239':{'desc':'Про компанію'},'1254':{'desc':'Про нас'},'1260':{'desc':'Промо-акції'},'1263':{'desc':'Спеціальні події'},'1242':{'desc':'Послуги'},'1265':{'desc':'Мерчандайзинг'},'1267':{'desc':'PR'},'1245':{'desc':'Фотоальбом'},'1269':{'desc':'Direct Marketing'},'1251':{'desc':'Контакти'},'1248':{'desc':'Карта сайту'}};
menu_array[-1]='';
var menu_pages_divs={'1233':'1245','1232':'1242','1229':'1239','1205':'1248','1234':'1251','1279':'1254','1283':'1256','1287':'1260','1291':'1263','1296':'1265','1299':'1267','1302':'1269'};
var menu_pages={'1229':{'0':'1239'},'1279':{'0':'1254'},'1287':{'0':'1260'},'1283':{'0':'1256'},'1291':{'0':'1263'},'1232':{'0':'1242'},'1296':{'0':'1265'},'1299':{'0':'1267'},'1233':{'0':'1245'},'1302':{'0':'1269'},'1234':{'0':'1251'},'1205':{'0':'1248'}};
menu={'left':' 	<table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> 	<tr onmouseover="hilitediv(this,1,0)" onclick="opendiv(1239);;window.location=\'http://www.agroup.com.ua/site/page1229.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> 	<td id="it1239" class="template-menu1" width="100%"><div><a href="http://www.agroup.com.ua/site/page1229.html">Про компанію</a></div> 	</td></tr> 	 	<tr class="subdiv" id="subdiv1239" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://www.agroup.com.ua/site/page1279.html\';return false;" onmouseout="hilitediv(this,0,1)"> <td id="it1254" class="template-menu2"><div><a href="http://www.agroup.com.ua/site/page1279.html">Про нас</a></div></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(1242);;window.location=\'http://www.agroup.com.ua/site/page1232.html\'+query_str;return false;" onmouseout="hilitediv(this,0,0)"> 	<td id="it1242" class="template-menu1" width="100%"><div><a href="http://www.agroup.com.ua/site/page1232.html">Послуги</a></div> 	</td></tr> 	 	<tr class="subdiv" id="subdiv1242" ><td> <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,1)" onclick="window.location=\'http://www.agroup.com.ua/site/page1287.html\';return false;" onmouseout="hilitediv(this,0,1)"> <td id="it1260" class="template-menu2"><div><a href="http://www.agroup.com.ua/site/page1287.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://www.agroup.com.ua/site/page1291.html\';return false;" onmouseout="hilitediv(this,0,1)"> <td id="it1263" class="template-menu2"><div><a href="http://www.agroup.com.ua/site/page1291.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://www.agroup.com.ua/site/page1296.html\';return false;" onmouseout="hilitediv(this,0,1)"> <td id="it1265" class="template-menu2"><div><a href="http://www.agroup.com.ua/site/page1296.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://www.agroup.com.ua/site/page1299.html\';return false;" onmouseout="hilitediv(this,0,1)"> <td id="it1267" class="template-menu2"><div><a href="http://www.agroup.com.ua/site/page1299.html">PR</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://www.agroup.com.ua/site/page1302.html\';return false;" onmouseout="hilitediv(this,0,1)"> <td id="it1269" class="template-menu2"><div><a href="http://www.agroup.com.ua/site/page1302.html">Direct Marketing</a></div></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://www.agroup.com.ua/site/page1233.html\';return false;" onmouseout="hilitediv(this,0,0)"> <td id="it1245" class="template-menu1"><div><a href="http://www.agroup.com.ua/site/page1233.html">Фотоальбом</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=\'http://www.agroup.com.ua/site/page1234.html\';return false;" onmouseout="hilitediv(this,0,0)"> <td id="it1251" class="template-menu1"><div><a href="http://www.agroup.com.ua/site/page1234.html">Контакти</a></div></td></tr>  </table>  <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="menu"> <tr onmouseover="hilitediv(this,1,0)" onclick="window.location=\'http://www.agroup.com.ua/site/page1205.html\';return false;" onmouseout="hilitediv(this,0,0)"> <td id="it1248" class="template-menu1"><div><a href="http://www.agroup.com.ua/site/page1205.html">Карта сайту</a></div></td></tr>  </table> '};

mn_top='';mn_top1='';j=0;
function show_path(arr,page){
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-current"');
		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-current"');
	}

	//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(4,j)):'')+'"');
	pat='id="subdiv'+arr[i]+'"';
	menu['left']=menu['left'].replace(pat,pat+'style="display:'+((is.ie4)?'block':'table-row')+';"');
	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']);
}
var ext_menu=1;

