	function init()
	{
		//==========================================================================================
		// if supported, initialize TransMenus
		//==========================================================================================
		// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
		// This is better than server-side checking because it will also catch browsers which would
		// normally support the menus but have javascript disabled.
		//
		// If supported, call initialize() and then hook whatever image rollover code you need to do
		// to the .onactivate and .ondeactivate events for each menu.
		//==========================================================================================
		if (TransMenu.isSupported())
		{
			TransMenu.initialize();
			// hook all the highlight swapping of the main toolbar to menu activation/deactivation
			// instead of simple rollover to get the effect where the button stays hightlit until
			// the menu is closed.
			//menu1.onactivate = function() { document.getElementById("img/menu/m03").className = "hover"; };
			//menu1.ondeactivate = function() { document.getElementById("img/menu/m03").className = ""; };
		}
	}

	// 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 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 n=navigator.appName
		var ns=(n=="Netscape")
		var ie=(n=="Microsoft Internet Explorer")
		var moz=(n=="Netscape")
		
		if((navigator.userAgent.indexOf('Mac') != -1)) {
			var ms = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft); /* USE FOR MAC*/
			var msAbout = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft); /* USE FOR MOZILLA*/
			var MsSedes = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft); /* USE FOR MAC*/
			var msPractice = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft); /* USE FOR MAC*/
			var msNews = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft); /* USE FOR MAC*/
			}
		else if (moz)
			{
			var ms = new TransMenuSet(TransMenu.direction.down, 0, 0, TransMenu.reference.bottomLeft); /* USE FOR MOZILLA*/
			var msAbout = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft); /* USE FOR MOZILLA*/
			var MsSedes = new TransMenuSet(TransMenu.direction.down, 0, -1, TransMenu.reference.bottomLeft); /* USE FOR IE */
			var msPractice = new TransMenuSet(TransMenu.direction.down, 0, -1, TransMenu.reference.bottomLeft); /* USE FOR MOZILLA*/
			var msNews = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft); /* USE FOR MOZILLA*/
			}
		else
			{
			var ms = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft); /* USE FOR IE */
			var msAbout = new TransMenuSet(TransMenu.direction.down, -147, 1, TransMenu.reference.bottomLeft); /* USE FOR MOZILLA*/
			var MsSedes = new TransMenuSet(TransMenu.direction.down, -123, 1, TransMenu.reference.bottomLeft); /* USE FOR IE */
			var msPractice = new TransMenuSet(TransMenu.direction.down, -152, 1, TransMenu.reference.bottomLeft); /* USE FOR IE */		
			var msNews = new TransMenuSet(TransMenu.direction.down, -120, 1, TransMenu.reference.bottomLeft); /* USE FOR IE */
			}
		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// Get the list of practice areas
		//==================================================================================================
		var PracticeAreasArr = new Array();


		var EuroArr = new Array();
		/* EuroArr[0] = "5##England"; 
		 EuroArr[1] = "7##France"; 
		 EuroArr[2] = "8##Germany"; 
		 EuroArr[3] = "9##Italy"; 
		 EuroArr[4] = "6##Scotland"; 
		 EuroArr[5] = "10##Spain"; */

//		var menu1 = msAbout.addMenu(document.getElementById("img/menu/m01"));	// Presentacion
	
			
/*
		var menu5 = msNews.addMenu(document.getElementById("img/menu/m05"));	// noticias
			idioma = "cast/";
		    if ((document.location.href.indexOf('cast') > -1) || (document.location.href.indexOf('eng') > -1)) idioma = "";
		    if (document.location.href.indexOf('home_eng.php') > -1) idioma = "eng/";
//			alert(idioma);
			menu5.addItem("Noticias", idioma+"noticias.php?tipo=N");
			menu5.addItem("Publicaciones", idioma+"noticias.php?tipo=P");
*/

		var menu2 = MsSedes.addMenu(document.getElementById("img/menu/m02"));	// Sedes
			idioma = "cast/";
		    if ((document.location.href.indexOf('cast') > -1) || (document.location.href.indexOf('eng') > -1)) idioma = "";
		    if (document.location.href.indexOf('home_eng.php') > -1) idioma = "eng/";
//			alert(idioma);
			menu2.addItem("Barcelona", idioma+"sede_bcn.htm");
			menu2.addItem("Madrid", idioma+"sede_mad.htm");
			menu2.addItem("Valencia", idioma+"sede_val.htm");
			menu2.addItem("Vitoria Gasteiz", idioma+"sede_vit.htm");
			
//		var menu3 = msPractice.addMenu(document.getElementById("img/menu/m04"));	// Abogados
/*			menu3.addItem("Corporate", "practice/corporate/Default.asp");
			menu3.addItem("Employment", "practice/employment/default.asp"); 
			menu3.addItem("Real Estate", "practice/property/Default.asp");
			menu3.addItem("Intellectual Property", "practice/IP/default.asp");
			menu3.addItem("Sport", "practice/sport/Default.asp");
			menu3.addItem("Energy", "practice/energy/Default.asp");
			menu3.addItem("Regulatory/Public Admin", "practice/regulatory/Default.asp");
			menu3.addItem("Finance/Banking", "practice/finance-banking/Default.asp");
			menu3.addItem("Dispute Resolution", "practice/dispute-resolution/Default.asp");
			menu3.addItem("Taxation Law", "practice/tax/Default.asp");
			menu3.addItem("Insurance", "practice/insurance/Default.asp");
			menu3.addItem("Technology Law", "practice/IT/default.asp");
*/
			
//		var menu4 = msNews.addMenu(document.getElementById("img/menu/m05"));	// Noticas
/*			menu4.addItem("News", "news_publications/news-list.asp"); 
			menu4.addItem("Publications &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;", "news_publications/publications-list.asp");
*/
//		var menu5 = msPractice.addMenu(document.getElementById("img/menu/m03"));// Intranet
			

    //Add the Practice Areas to the menu
    for(i=0;i<PracticeAreasArr.length;i++)
    {
      var itemArray = PracticeAreasArr[i].split("##");
      //Check if the name is too long to display on one line
      if(itemArray[1].length > 25)
        itemArray[1] = itemArray[1].substring(0,itemArray[1].lastIndexOf(" ")) + "<br />" + itemArray[1].substring(itemArray[1].lastIndexOf(" ")+1)
      menu1.addItem(itemArray[1],"http://m12003/beauchamps/practiceareas/show_area.asp?id=" + itemArray[0]);
    }

    //Add the Euro Legal Alliances to the menu
    for(i=0;i<EuroArr.length;i++)
    {
      var itemArray = EuroArr[i].split("##");
      //Check if the name is too long to display on one line
      if(itemArray[1].length > 25)
        itemArray[1] = itemArray[1].substring(0,itemArray[1].lastIndexOf(" ")) + "<br />" + itemArray[1].substring(itemArray[1].lastIndexOf(" ")+1)
      menu4.addItem(itemArray[1],"http://m12003/beauchamps/european/default.asp?id=" + itemArray[0]);
    }

		//==================================================================================================
		// 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();
	}
