// set up drop downs anywhere in the body of the page. I think the bottom of the page is better..
// but you can experiment with effect on loadtime.
if (TransMenu.isSupported()) {

	//==================================================================================================
	// create a set of dropdowns
	//==================================================================================================
	// the first param should always be down, as it is here
	//
	// The second and third param are the left and top offset positions of the menus from their actuators
	// respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
	// something like -5, 5
	//
	// The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
	// of the actuator from which to measure the offset positions above. Here we are saying we want the
	// menu to appear directly below the bottom left corner of the actuator
	//==================================================================================================
	var ms = new TransMenuSet(TransMenu.direction.down, 0, -5, TransMenu.reference.bottomLeft);

	//==================================================================================================
	// create a dropdown menu
	//==================================================================================================
	// the first parameter should be the HTML element which will act actuator for the menu
	//==================================================================================================
	var menu0 = ms.addMenu(document.getElementById("home"));
	menu0.addItem("О JustEdit", "legal-d.htm");
	menu0.addItem("О <b>vsn</b>", "legal-d-vsn.htm");
	menu0.addItem("Новости", "news-index.htm");
	menu0.addItem("Где купить", "contact.htm");
	//menu0.addItem("Want to be our partner?", "partner.htm");

	var menu1 = ms.addMenu(document.getElementById("highlights"));
	menu1.addItem("Ключевые возможности", "higlight.htm");
	menu1.addItem("Общая информация", "datasheet_rus.pdf");


	var menu2 = ms.addMenu(document.getElementById("newsroom"));
	menu2.addItem("Ввод","ingest.htm");
	menu2.addItem("Редактирование в сети","editing.htm");
	menu2.addItem("Производство новостей","news.htm");
	menu2.addItem("Хранение данных","storage.htm");
	menu2.addItem("Архив и управление контентом","archive.htm");
	menu2.addItem("Вещание","playout-n.htm");
	menu2.addItem("Создание титров","cgnews.htm");
	menu2.addItem("Телесуфлер","prompter.htm");
	menu2.addItem("Вещание на сайте","webp.htm");

	menu2.addItem("Захват с сетевых магнитофонов","shvrting.htm");
	menu2.addItem("Создание прокси-файлов","rezconv.htm");
	menu2.addItem("Пересчет в высокое разрешение","lohicons.htm");
	menu2.addItem("Захват с XDCAM и P2","xdpoxyed.htm");
	menu2.addItem("Мониторинг и обслуживание системы","engin.htm");
	menu2.addItem("Работа с новостными лентами","extwri.htm");

	var menu3 = ms.addMenu(document.getElementById("mastercontrolroom"));
	menu3.addItem("Управление рекламой","publi.htm");
	menu3.addItem("Архив и управление контентом","archive.htm");
	menu3.addItem("Вещание","playout-m.htm");
	menu3.addItem("Планирование вещания","Scheduling-ing.htm");
	menu3.addItem("Наложение титров","cglogos.htm");
	menu3.addItem("Вывод текстовой информации","datacoll1.htm");
	menu3.addItem("Автоматизация вещания","automative.htm");
	menu3.addItem("Управление трафиком вещания","traffic.htm");

	var menu4 = ms.addMenu(document.getElementById("smartsolutions"));
	menu4.addItem("Контроль эфира","legal.htm");
	menu4.addItem("Вещание в интернет","internet.htm");
	menu4.addItem("SMS","sms.htm");
	menu4.addItem("RSS","rss.htm");
	menu4.addItem("Передача данных по IP","ipcontib.htm");



	//var submenu1 = menu1.addMenu(menu1.items[2]);
	//submenu1.addItem("", "");
	//==================================================================================================


	//==================================================================================================
	// write drop downs into page
	//==================================================================================================
	// this method writes all the HTML for the menus into the page with document.write(). It must be
	// called within the body of the HTML page.
	//==================================================================================================
	TransMenu.renderAll();
}

