/* JS menu. LE 8.08.2004 */
var menudata = new Array(
'::МЕНЮ::', '', '',
	'Главная', 'index.php', '',
	'Коммутация', 'index.php?link=21', 'Коммутация',
	'Заказ', 'index.php?link=12', 'Заказ',
	'Сотрудничество', 'index.php?link=15', 'Обратная связь',
	'Реклама', 'index.php?link=17', 'Реклама на сайте',
	'Производители', 'index.php?link=16', 'Ссылки на офицальные сайты производителей',
	'Статьи', 'index.php?link=24', 'Разъемы, соединители, коммутационные устройства',
'Разъемы', '', '',
	'Каталог', 'index.php?link=1', 'Полный каталог разъемов по производителям',
	'Импортные', 'index.php?link=8', 'Разъемы зарубежных производителей',
	'Отечественные', 'index.php?link=9', 'Разъемы отечественных производителей',

'Кабели', '', '',
	'Каталог', 'index.php?link=5', 'Полный каталог кабелей по производителям',
	'Импортные', 'index.php?link=10', 'Кабели зарубежных производителей',
	'Отечественные', 'index.php?link=11', 'Кабели отечественных производителей',
'', '', '');

/* view menu: level = subdir */
function view_menu(level)
{
var i, link, dir;

document.write('<table style="float:left; width: 140px" cellpadding="0" cellspacing="0" border="0"><tr><td><div class="menu"><dl>');
for (i = 0; menudata[i]; i+=3)
	{
	link = menudata[i+1];
	if (link == '') // header
		document.write('<dt><strong>' + menudata[i] + '</strong></dt>');
	else // menu list
		{
		document.write('<dt><a href="');
		if (link.indexOf(':') == -1)
			{ // local link, add path
			for (dir = level; dir > 0; dir--)
				document.write('');
			}
		document.write(link + '" title="' + menudata[i+2] + '">' + menudata[i] + '</a></dt>');
		}
	}
document.write('</dl></div></td></tr></table>');
}

/* start of main text area */
function start_text()
{
document.write('<div style="margin-left: 140px; display: block;">');
}

/* end of main text area */
function end_text()
{
document.write('</div>');
/* scripthost counter */
if (location.protocol == 'http:')
	document.write('<script type="text/javascript" src="http://server.scripthost.com/counter?slava"></script>');
}

