	// 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 (mtDropDown.isSupported()) {

		//==================================================================================================
		// create a set of dropdowns
		//==================================================================================================
		// the first param should always be down, as it is here
		//
		// The second and third param are the top and left 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 mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		var menu1 = ms.addMenu(document.getElementById("menu1"));

		menu1.addItem("- Visão, Missão e Valores", "http://www.cprating.pt/1.0apres/index.asp"); // send no URL if nothing should happen onclick
		menu1.addItem("- Mensagem do Presidente", "http://www.cprating.pt/1.0apres/1.2mensagem.asp"); // send no URL if nothing should happen onclick
		menu1.addItem("- História e Accionistas", "http://www.cprating.pt/1.0apres/1.3accionistas.asp"); // send no URL if nothing should happen onclick
		menu1.addItem("- Cons. de Administração", "http://www.cprating.pt/1.0apres/1.4conselho.asp"); // send no URL if nothing should happen onclick
		menu1.addItem("- Código de Conduta", "http://www.cprating.pt/1.0apres/1.5etica.asp"); // send no URL if nothing should happen onclick
		//==================================================================================================

		//==================================================================================================
		// add a sub-menu
		//==================================================================================================
		// to add a sub menu to an existing menu object, call it's addMenu method and pass it the item from
		// the parent menu which should act as it's actuator. To add a submenu to the fourth item of a menu
		// called "theMenu", you would do theMenu.addMenu(theMenu.items[3])
		//==================================================================================================


		// menu : A CPR
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("- Definição de <em>Rating</em>", "http://www.cprating.pt/2.0info/index.asp");
		menu2.addItem("- Origem da Actividade", "http://www.cprating.pt/2.0info/2.2origem.asp");
		menu2.addItem("- Enquadramento Legal", "http://www.cprating.pt/2.0info/2.3enqlegal.asp");
		menu2.addItem("- Vantagens do <em>Rating</em>", "http://www.cprating.pt/2.0info/2.4vantagens.asp");
		menu2.addItem("- Tabelas de Notações", "#");
		
		// submenu : Vantagens do Rating		
		var subMenu2 = menu2.addMenu(menu2.items[3]);
		subMenu2.addItem("· Vantagens do <em>Rating</em>", "http://www.cprating.pt/2.0info/2.4vantagens.asp");
		subMenu2.addItem("· Opiniões dos Nossos Clientes", "http://www.cprating.pt/2.0info/2.4.1opinioes.asp");

		// submenu : Tabelas de Notações		
		var subMenu3 = menu2.addMenu(menu2.items[4]);
		subMenu3.addItem("· Curto Prazo", "#");
		subMenu3.addItem("· Médio e Longo Prazo", "#");
		subMenu3.addItem("· Seguros", "http://www.cprating.pt/2.0info/2.5.3seguros.asp");
		subMenu3.addItem("· Fundos", "http://www.cprating.pt/2.0info/2.5.4fundos.asp");

		var subMenu4 = subMenu3.addMenu(subMenu3.items[0]);
		subMenu4.addItem("· Emissões", "http://www.cprating.pt/2.0info/2.5.1.1emissoes.asp");
		subMenu4.addItem("· Emitente", "http://www.cprating.pt/2.0info/2.5.1.2emitentes.asp");
		
		var subMenu5 = subMenu3.addMenu(subMenu3.items[1]);
		subMenu5.addItem("· Emissões", "http://www.cprating.pt/2.0info/2.5.2.1emissoesmlp.asp");
		subMenu5.addItem("· Emitente", "http://www.cprating.pt/2.0info/2.5.2.2emitentesmlp.asp");
		
			var subMenu6 = subMenu3.addMenu(subMenu3.items[3]);
			subMenu6.addItem("· Obrigações", "http://www.cprating.pt/2.0info/2.5.4.0obrigacoes.asp");
			subMenu6.addItem("· Tesouraria e Mercado Monetário", "http://www.cprating.pt/2.0info/2.5.4.3fundostes.asp");
		
		
		// menu
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("- Metodologia", "http://www.cprating.pt/3.0emit/index.asp");
		menu3.addItem("- Processo de <em>Rating</em>", "http://www.cprating.pt/3.0emit/3.2processo.asp");
		menu3.addItem("- Vantagens do <em>Rating</em>", "http://www.cprating.pt/3.0emit/3.3vantagens.asp");
		menu3.addItem("- Tabelas de Notações", "#");

		var subMenu8 = menu3.addMenu(menu3.items[2]);
		subMenu8.addItem("· Vantagens do <em>Rating</em>", "http://www.cprating.pt/3.0emit/3.3vantagens.asp");
		subMenu8.addItem("· Opiniões dos Nossos Clientes", "http://www.cprating.pt/3.0emit/3.3.1opinioes.asp");		

		// submenu : Tabelas de Notações		
		var subMenu9 = menu3.addMenu(menu3.items[3]);
		subMenu9.addItem("· Curto Prazo", "#");
		subMenu9.addItem("· Médio e Longo Prazo", "#");
		subMenu9.addItem("· Seguros", "http://www.cprating.pt/3.0emit/3.4.3seguros.asp");
		subMenu9.addItem("· Fundos", "http://www.cprating.pt/3.0emit/3.4.4fundos.asp");

		var subMenu10 = subMenu9.addMenu(subMenu8.items[0]);
		subMenu10.addItem("· Emissões", "http://www.cprating.pt/3.0emit/3.4.1.1emissoescp.asp");
		subMenu10.addItem("· Emitente", "http://www.cprating.pt/3.0emit/3.4.1.2emitentescp.asp");
		
		var subMenu11 = subMenu9.addMenu(subMenu8.items[1]);
		subMenu11.addItem("· Emissões", "http://www.cprating.pt/3.0emit/3.4.2.1emissoesmlp.asp");
		subMenu11.addItem("· Emitente", "http://www.cprating.pt/3.0emit/3.4.2.2emitentesmlp.asp");

			var subMenu12 = subMenu9.addMenu(subMenu9.items[3]);
			subMenu12.addItem("· Obrigações", "http://www.cprating.pt/3.0emit/3.4.4.0obrigacoes.asp");
			subMenu12.addItem("· Tesouraria e Mercado Monetário", "http://www.cprating.pt/3.0emit/3.4.4.3fundostes.asp");

		

		// menu
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("- Últimas Notações Atribuídas", "http://www.cprating.pt/4.0inve/index.asp");
		menu4.addItem("- Lista dos <em>Ratings</em> Públicos", "http://www.cprating.pt/4.0inve/4.6ratingspublicos.asp");
		menu4.addItem("- Encomenda de Relatórios", "http://www.cprating.pt/4.0inve/4.2encomenda.asp");
		menu4.addItem("- <em>Mailing List</em>", "http://www.cprating.pt/4.0inve/4.3newsletter.asp");
		menu4.addItem("- Vantagens do <em>Rating</em>", "http://www.cprating.pt/3.0emit/3.3vantagens.asp");
		menu4.addItem("- Tabelas de Notações", "#");

		var subMenu13 = menu4.addMenu(menu4.items[3]);
		subMenu13.addItem("· Vantagens do <em>Rating</em>", "http://www.cprating.pt/4.0inve/4.4vantagens.asp");
		subMenu13.addItem("· Opiniões dos Nossos Clientes", "http://www.cprating.pt/4.0inve/4.4.1opinioes.asp");

		var subMenu14 = menu4.addMenu(menu4.items[5]);
		subMenu14.addItem("· Curto Prazo", "#");
		subMenu14.addItem("· Médio e Longo Prazo", "#");
		subMenu14.addItem("· Seguros", "http://www.cprating.pt/4.0inve/4.5.3seguros.asp");
		subMenu14.addItem("· Fundos", "http://www.cprating.pt/4.0inve/4.5.4fundos.asp");

		var subMenu15 = subMenu14.addMenu(subMenu14.items[0]);
		subMenu15.addItem("· Emissões", "http://www.cprating.pt/4.0inve/4.5.1.1emissoescp.asp");
		subMenu15.addItem("· Emitente", "http://www.cprating.pt/4.0inve/4.5.1.2emitentescp.asp");
		
		var subMenu16 = subMenu14.addMenu(subMenu14.items[1]);
		subMenu16.addItem("· Emissões", "http://www.cprating.pt/4.0inve/4.5.2.1emissoesmlp.asp");
		subMenu16.addItem("· Emitente", "http://www.cprating.pt/4.0inve/4.5.2.2emitentesmlp.asp");

			var subMenu17 = subMenu14.addMenu(subMenu14.items[3]);
			subMenu17.addItem("· Obrigações", "http://www.cprating.pt/4.0inve/4.5.4.0obrigacoes.asp");
			subMenu17.addItem("· Tesouraria e Mercado Monetário", "http://www.cprating.pt/4.0inve/4.5.4.3fundostes.asp");
				

		//==================================================================================================
		// 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.
		//==================================================================================================
		mtDropDown.renderAll();
	}
