

			// JavaScript Document - These are the menu definitions
	// 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 XXXX WRONG--->top and left
		//                                    xxxx RIGHT--->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,0, TransMenu.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act as actuator for the menu
		//==================================================================================================

		//==================================================================================================
		//								listings
		//==================================================================================================

		var menu1 = ms.addMenu(document.getElementById("listings"));
		menu1.addItem("Перевод", "ru_translations.cfm");
		menu1.addItem("Поиск недвижимости", "ru_property-search.cfm");
		menu1.addItem("Кондоминиумы", "ru_property-search.cfm?ptype=Condos");
		menu1.addItem("Коммерческая недвижимость", "ru_property-search.cfm?ptype=Commercial");
		menu1.addItem("Земля", "ru_property-search.cfm?ptype=Land");	
		menu1.addItem("Виллы и Таунхаусы", "ru_property-search.cfm?ptype=Villas %26 Townhouses");

		
/* there are no submenus
    var submenu00 = submenu0.addMenu(submenu0.items[0]);
    submenu00.addItem("foo");
    submenu00.addItem("bar");           */
	
	
		//==================================================================================================
		//								rentals
		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("rentals"));
		menu2.addItem("Обзор арендной недвижимости", "ru_property-list.cfm?start=1&page=1&ptype=rentals");
		menu2.addItem("Перевод", "ru_translations.cfm");
		

/*  there are no submenus...
		var submenu1 = menu2.addMenu(menu2.items[0]);             */

		//==================================================================================================
		//								buyers / sellers
		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("buyerssellers"));
		menu3.addItem("Покупатели", "ru_buying-a-property.cfm");
		menu3.addItem("Продавцы", "ru_selling-your-property.cfm");

		var submenu2 = menu3.addMenu(menu3.items[0]); // buyers has submenu
		var submenu3 = menu3.addMenu(menu3.items[1]); // sellers has submenu
                    // buyers submenu items....
		submenu2.addItem("Покупка недвижимости", "ru_buying-a-property.cfm");
		submenu2.addItem("Агент покупателей", "ru_buyers-agent.cfm");
		submenu2.addItem("Налоги", "ru_taxes.cfm");
		submenu2.addItem("Инвестирование / Инвестиционный портфель", "ru_investment-investors-portfolio.cfm");
		submenu2.addItem("Страхование", "ru_insurance.cfm");
		submenu2.addItem("Финансирование", "ru_financing.cfm");
		submenu2.addItem("Адвокаты", "ru_buyers-lawyers.cfm");
		submenu2.addItem("Аренда инвестиционной недвижимости", "ru_renting-your-investment.cfm");
		submenu2.addItem("Архитекторы / строители", "ru_architects-builders.cfm");
		submenu2.addItem("Управление проектом ", "ru_project-management.cfm");
		submenu2.addItem("Земля и строительство", "ru_land-and-construction.cfm");

					// sellers submenu items...
		submenu3.addItem("Продажа Вашей собственности", "ru_selling-your-property.cfm");
		submenu3.addItem("Адвокаты", "ru_sellers-lawyers.cfm");
		submenu3.addItem("Подготовка Вашего дома к продаже", "ru_getting-ready.cfm");

		//==================================================================================================
		//						about us
		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("aboutus"));
		menu4.addItem("Наша компания", "ru_about-us.cfm");
		menu4.addItem("Наши агенты", "ru_our-agents.cfm");
		
/* there are no submenus....
		var submenu4 = menu4.addMenu(menu4.items[0]);
		var submenu5 = menu4.addMenu(menu4.items[1]);                      */
		
		//==================================================================================================
		//						general information
		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("theislandmap"));
		menu5.addItem("История", "ru_history.cfm");
		menu5.addItem("Поселки и города", "");        /* towns & cities menu item */
		menu5.addItem("Жизнь в Доминиканской республике", "ru_living-in-DR.cfm");
		menu5.addItem("Как сюда добраться", "ru_getting-here.cfm");
		menu5.addItem("Погода", "ru_weather.cfm");
		menu5.addItem("Школы", "ru_schools.cfm");
		menu5.addItem("Карты", "ru_maps.cfm");
		menu5.addItem("Медицина", "ru_medical.cfm");
		menu5.addItem("Чем заняться", "ru_what-to-do.cfm");
		menu5.addItem("Религия", "ru_religion.cfm");
		menu5.addItem("Гольф", "ru_golf.cfm");

					// towns & cities submenu items...
		var submenu6 = menu5.addMenu(menu5.items[1]);
		submenu6.addItem("Северное побережье", "ru_north-coast.cfm");
		submenu6.addItem("Восточное побережье", "ru_east-coast.cfm");

		//==================================================================================================

		//==================================================================================================
		// 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();
	}

