/* =================================================================================================
 * TransMenu 
 * ============================================================================================== */


// 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
		//==================================================================================================

		//TransMenuSet(direction[down/left], left offset, top offset, corner of the actuator from which to measure the offset positions [topLeft/bottomLeft/topRight/bottomRight])	  
		var ms = new TransMenuSet(TransMenu.direction.down, -20, 6, TransMenu.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================

//About me		
		var menu1 = ms.addMenu(document.getElementById("id_trans_meniu_about"));
		menu1.addItem("A few words", "javascript:openLink('about_me.htm','the_iframe','about_me_contents.htm');");		//'javascript:' is needed here
		menu1.addItem("My CV", "javascript:openLink('about_me.htm','the_iframe','about_me_cv.htm');"); 

//My stuff
		var menu2 = ms.addMenu(document.getElementById("id_trans_meniu_stuff"));
		menu2.addItem("Projects", "javascript:openLink('mystuff.htm','the_iframe','mystuff_projects.htm');");
		menu2.addItem("Improve lists", "javascript:openLink('mystuff.htm','the_iframe','mystuff_ilists.htm');");

//Fun Stuff		
		var menu3 = ms.addMenu(document.getElementById("id_trans_meniu_fun"));
		menu3.addItem("Jokes, Bancuri", "javascript:openLink('fun.htm','the_iframe','fun_jokes.htm');");
		     var submenu_fun_bancuri = menu3.addMenu(menu3.items[0]);
		     submenu_fun_bancuri.addItem("English", "javascript:openLink('fun.htm','the_iframe','fun_jokes.htm');");
		     submenu_fun_bancuri.addItem("Romana", "javascript:openLink('fun.htm','the_iframe','fun_bancuri.htm');");
		menu3.addItem("-Proverbe [ro]", "javascript:openLink('fun.htm','the_iframe','fun_contents.htm');");
		menu3.addItem("-Citate [ro]", "javascript:openLink('fun.htm','the_iframe','fun_contents.htm');");
		menu3.addItem("Pictures, galleries", "javascript:openLink('fun.htm','the_iframe','fun_pictures.htm');");
		menu3.addItem("-Videos", "javascript:openLink('fun.htm','the_iframe','fun_contents.htm');");
		menu3.addItem("Numbers semnifications", "javascript:openLink('fun.htm','the_iframe','fun_semnifnr.htm');");

//Encyclopedia
		var menu4 = ms.addMenu(document.getElementById("id_trans_meniu_ency"));
		menu4.addItem("Weblog", "javascript:openLink('encyclopedia.htm','the_iframe','ency_weblog.htm');");
/*          var submenu4_1 = menu3.addMenu(menu3.items[0]);
		  submenu4_1.addItem("Sections", "produse_automobile.htm");
		  submenu4_1.addItem("Bookmarks Interests", "produse_automobile.htm");
 		    var submenu4_1_1 = submenu4_1.addMenu(submenu4_1.items[0]);
		    submenu4_1_1.addItem("Aero", "produse_automobile.htm");
*/
		menu4.addItem("My Interests", "javascript:openLink('encyclopedia.htm','the_iframe','ency_myinterests.htm');");
/*		  var submenu4_2 = menu3.addMenu(menu3.items[0]);
		  submenu4_2.addItem("Sections", "produse_automobile.htm");
		  submenu4_2.addItem("Bookmarks Interests", "produse_automobile.htm");
 		    var submenu4_2_2 = submenu4_2.addMenu(submenu4_2.items[0]);
		    submenu4_2_1.addItem("Aero", "produse_automobile.htm");
*/
//Web Utils
		var ms2 = new TransMenuSet(TransMenu.direction.left, -100, 6, TransMenu.reference.bottomRight);

		var menu_webtools = ms2.addMenu(document.getElementById("id_trans_meniu_web"));
		menu_webtools.addItem("Links [ro]", "javascript:openLink('webutils.htm','the_iframe','webutils_links.htm');");
		menu_webtools.addItem("Sites [ro]", "javascript:openLink('webutils.htm','the_iframe','webutils_sites.htm');");
		menu_webtools.addItem("-Translate", " ");
		menu_webtools.addItem("-Word editor", " ");
		menu_webtools.addItem("-for Webmasters", " ");
		  var submenu_webtools_webmasters = menu_webtools.addMenu(menu_webtools.items[4]);
		  submenu_webtools_webmasters.addItem("-RGB<>Hex Tool", " ");
		  submenu_webtools_webmasters.addItem("-JS inBrowser WinDesktop", " ");

		//==================================================================================================
		// 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();
	}

