function nd_LangHeader () {
	document.write('<div id="layer1" style="position: absolute; width: 110px; height: 24px; z-index: 1; left: 866px; top: 13px;">');
	document.write('&nbsp;<font class="lang_title">Region/Language</font><br/>');
	document.write('    <select name="" class="lang_select" onchange="if( this.options[this.selectedIndex].value != '+"'"+"'"+' ) document.location = this.options[this.selectedIndex].value">');
	document.write('	<option selected value="http://www.newdimension.ru/l-en/about.htm">International - English</option>');
	document.write('	<option value="http://www.newdimension.ru/l-ru/index.htm">Kazakhstan - Russian</option>');
	document.write('	<option value="http://www.newdimension.ru/l-ru/index.htm">Russian Federation - Russian</option></select>');
	document.write('</div>');
}

function nd_DataListHeader (level, pos) {
	lvl = '';
	if (level == 1) {lvl = '../'}
	if (level == 2) {lvl = '../../'}
	
	document.write('<table border="0" width="987" id="table2" cellspacing="0" cellpadding="0"  c1lass="style21" align="center">');
	document.write('<tr>');
	document.write('<td rowspan="2" width="163">');
	document.write('<a href="'+lvl+'index.htm"><img border="0" src="'+lvl+'design_images/Trilfoil_130height.png" width="163" height="130" alt="New Dimension"/></a></td>');
	document.write('<td width="824">');
	
	nd_LangHeader ();

	document.write('<img border="0" src="'+lvl+'design_images/ND_824x102.png" width="824" height="102" alt="New Dimension"/></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="824">');
	nd_MainHorMenu(level, pos);
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}

// Горизонтальное меню 
// pos=  1 - About company
//           2 - none (Методы работы)
//           3 - Products & Services (Продукты и услуги)
//           4 - Clients & Partners (Клиенты и партнеры)
//           5 - Our team (Команда)
//           6 - None (Карьера)
//           7 - None (Мой кабинет)
//           9 - Contact (Контакты)
function nd_MainHorMenu (level, pos) {
	lvl = '';
	if (level == 1) {lvl = '../'}
	if (level == 2) {lvl = '../../'}

	document.write('<table width="100%" bgcolor="#78A000" b1order="0" cellspacing="0" cellpadding="0">');
	document.write('<tr>');
	if (pos == 1)
	{
		document.write('<script type="text/javascript" src="'+lvl+'engine/main2_vm1.js"></script>');
		document.write('<td align="center" height="28px"><a href="'+lvl+'about.htm" id="h_menu_inactive">About company</a></td>');
	}
	else
	{
		document.write('<td align="center" height="28px"><a href="'+lvl+'about.htm" id="h_menu_active">About company</a></td>');
	};	
//	
//	if (pos == 2)
//	{
//		document.write('<script type="text/javascript" src="'+lvl+'engine/main2_vm2.js"></script>');
//		document.write('<td align="center"><a href="'+lvl+'Method.htm" id="h_menu_inactive">Методы работы</a></td>');
//	}
//	else
//	{
//		document.write('<td align="center"><a href="'+lvl+'Method.htm" id="h_menu_active">Методы работы</a></td>');
//	};	
	if (pos == 3)
	{
		document.write('<script type="text/javascript" src="'+lvl+'engine/main2_vm3.js"></script>');
		document.write('<td align="center"><a href="'+lvl+'products.htm" id="h_menu_inactive">Products & Services</a></td>');
	}
	else
	{
		document.write('<td align="center"><a href="'+lvl+'products.htm" id="h_menu_active">Products & Services</a></td>');
	};	
	if (pos == 4)
	{
		document.write('<script type="text/javascript" src="'+lvl+'engine/main2_vm4.js"></script>');
		document.write('<td align="center"><a href="'+lvl+'client.htm" id="h_menu_inactive">Clients & Partners</a></td>');
	}
	else
	{
		document.write('<td align="center"><a href="'+lvl+'client.htm" id="h_menu_active">Clients & Partners</a></td>');
	};	
	if (pos == 5)
	{
		document.write('<script type="text/javascript" src="'+lvl+'engine/main2_vm5.js"></script>');
		document.write('<td align="center"><a href="'+lvl+'team.htm" id="h_menu_inactive">Our team</a></td>');
	}
	else
	{
		document.write('<td align="center"><a href="'+lvl+'team.htm" id="h_menu_active">Our team</a></td>');
	};	
//	if (pos == 6)
//	{
//		document.write('<script type="text/javascript" src="'+lvl+'engine/main2_vm6.js"></script>');
//		document.write('<td align="center"><a href="'+lvl+'career.htm" id="h_menu_inactive">Карьера</a></td>');
//	}
//	else
//	{
//		document.write('<td align="center"><a href="'+lvl+'career.htm" id="h_menu_active">Карьера</a></td>');
//	};	
//	if (pos == 8)
//	{
//		document.write('<script type="text/javascript" src="'+lvl+'engine/main2_vm7.js"></script>');
//		document.write('<td align="center"><a href="'+lvl+'mycab.htm" id="h_menu_inactive">Мой кабинет</a></td>');
//	}
//	else
//	{
//		document.write('<td align="center"><a href="'+lvl+'mycab.htm" id="h_menu_active">Мой кабинет</a></td>');
//	};	
	if (pos == 9)
	{
		document.write('<script type="text/javascript" src="'+lvl+'engine/main2_vm9.js"></script>');
		document.write('<td align="center"><a href="'+lvl+'contact.htm" id="h_menu_inactive">Contacts</a></td>');
	}
	else
	{
		document.write('<td align="center"><a href="'+lvl+'contact.htm" id="h_menu_active">Contacts</a></td>');
	};	
	document.write('</tr>');
	document.write('</table>');
};	

function nd_DataListFooter (level) {
		lvl = '';
		if (level == 1) {lvl = '../'}
		if (level == 2) {lvl = '../../'}
		
		document.write('<td width = "45%" align="center">Developed by <a href="'+lvl+'team.htm">New Dimension</a> team</td>');
		document.write('<td align="center"><a href="'+lvl+'sitemaps.htm" title="Site map">Site map</a></td>');
};	

function nd_DataListFooter2 (level) {
		lvl = '';
		if (level == 1) {lvl = '../'}
		if (level == 2) {lvl = '../../'}
		
		document.write('<td colspan="3" class="style89_1">');
		document.write('© 2005-2010 New Dimension. All rights reserved. New Dimension refers to the network of member firms of New Dimension International Limited, each of which is a separate and independent legal entity.');
		document.write('</td>');
};	

	
		 
	
