
function initMenus() {
			// 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() { MM_swapImage('navnews','','/images/nav_042009/navover_11.gif',1); }
				menu1.ondeactivate = function() { MM_swapImgRestore(); }

				menu2.onactivate = function() { MM_swapImage('navprojects','','/images/nav_042009/navover_13.gif',1); }
				menu2.ondeactivate = function() { MM_swapImgRestore(); }

				menu3.onactivate = function() { MM_swapImage('navbooks','','/images/nav_042009/navover_15.gif',1); }
				menu3.ondeactivate = function() { MM_swapImgRestore(); }

				menu4.onactivate = function() { MM_swapImage('navshop','','/images/nav_042009/navover_17.gif',1); }
				menu4.ondeactivate = function() { MM_swapImgRestore(); }

				menu5.onactivate = function() { MM_swapImage('navabout','','/images/nav_042009/navover_19.gif',1); }
				menu5.ondeactivate = function() { MM_swapImgRestore(); }

				menu6.onactivate = function() { MM_swapImage('navlinks','','/images/nav_042009/navover_21.gif',1); }
				menu6.ondeactivate = function() { MM_swapImgRestore(); }

				menu7.onactivate = function() { MM_swapImage('navblog','','/images/nav_042009/navover_23.gif',1); }
				menu7.ondeactivate = function() { MM_swapImgRestore(); }

				menu8.onactivate = function() { MM_swapImage('navcontact','','/images/nav_042009/navover_25.gif',1); }
				menu8.ondeactivate = function() { MM_swapImgRestore(); }
			}
}

function createMenus() {

	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 ms = new TransMenuSet(TransMenu.direction.down, 1, 0, TransMenu.reference.bottomLeft);

		menu1 = ms.addMenu(document.getElementById("anavnews"));
		menu1.addItem("Crafty Chica Cruise", "http://thecraftychica.blogspot.com/2010/06/5th-annual-crafty-chica-art-cruise.html");
		menu1.addItem("La Casa Murillo", "/news/la_casa_murillo/index.php");
		menu1.addItem("Accolades", "/news/awards.php");
		menu1.addItem("Craft 'n' Chat", "/news/craftnchat.php");
		menu1.addItem("Home Page: Latest Project Ideas", "/index2.php");

		menu2 = ms.addMenu(document.getElementById("anavprojects"));
		menu2.addItem("Crafty Chica's Project Ideas", "http://thecraftychica.blogspot.com");
		menu2.addItem("Crafty Chica's Videos", "http://thecraftychica.blogspot.com/search/label/crafty%20videos");
		menu2.addItem("Crafty Advice", "/projects/craftyadvice.php");

	

		menu4 = ms.addMenu(document.getElementById("anavshop"));
		menu4.addItem("Crafty Chica Products", "/shop/");
		menu4.addItem("Original Artwork", "/shop/originalart.php");


		menu5 = ms.addMenu(document.getElementById("anavabout"));
		menu5.addItem("Who is Crafty Chica?", "/about/");
		menu5.addItem("Crafty Chica's Code of Ethics", "/about/codeofethics.php");
		menu5.addItem("Crafty Chica E-mail News", "/enews/");
		menu5.addItem("Crafty Chica Diary", "http://thecraftychica.blogspot.com/");
		menu5.addItem("Crafty Chica Photo Album", "/about/gallery/");
		menu5.addItem("Press Coverage", "/about/presscoverage.php");
		menu5.addItem("Press Images", "/about/pressimages.php");

		menu6 = ms.addMenu(document.getElementById("anavlinks"));
		menu6.addItem("Chica-Worthy Sites", "/links/");

		menu7= ms.addMenu(document.getElementById("anavblog"));
		menu7.addItem("Diary of a Crafty Chica", "http://thecraftychica.blogspot.com/");
		
		menu8= ms.addMenu(document.getElementById("anavcontact"));
		menu8.addItem("Contact Crafty Chica", "/contact/");
		menu8.addItem("Crafty Chica E-mail News", "/enews/");
		menu8.addItem("Ask Crafty Chica!", "/contact/askcraftychica.php");

		TransMenu.renderAll();
	}
}
