YAHOO.util.Event.onContentReady("topBar", function () {

	function onMenuBarBeforeRender(p_sType, p_sArgs) {

		var oSubmenuData = {
			 "retailBrands": [

				{ text: "Carmex lip balm", url: "carmex.html" },
				{ text: "Badger balms", url: "badger.html" },
				{ text: "Rose &amp; Co. bath and body", url: "rose&co.html" },
				{ text: "Figs &amp; Rouge", url: "figs&rouge.html" },
				{ text: "Durance en Provence", url: "durance.html" },			
				{ text: "Kneipp herbal remedies", url: "kneipp.html" },		
				{ text: "Herbacin Hand cream", url: "herbacin.html" },			
				{ text: "Naturally Fresh Deodorant", url: "naturallyfresh.html" },			
				{ text: "La Tweez tweezers", url: "latweez.html" },			
				{ text: "Ferity Lip care", url: "ferity.html" },			
				{ text: "Tocola Oral Hygiene", url: "tocola.html" },			
				{ text: "Surgi Wax", url: "surgi.html" }			
			],
	   
			  "professionalBrands": [

				{ text: "Nailtiques Natural manicure", url: "nailtiques.html" },
				{ text: "Orly colour & treatments", url: "orly.html" },
				{ text: "IBD gel & acrylic", url: "ibd.html" },
				{ text: "Clean + Easy wax", url: "clean&easy.html" },
				{ text: "GiGi Wax", url: "gigi.html" },
				{ text: "EzFlow gel and acrylic", url: "ezflow.html" },
				{ text: "Gena manicure & pedicure", url: "gena.html" },
				{ text: "[ comfort zone ] skincare", url: "comfortzone.html" },	
				{ text: "Christmas Gifts", url: "christmasgifts.html" },
				{ text: "Education", url: "education.html" },
				{ text: "Logo Downloads", url: "logodownloads.html" }				
			]
	   
		};

		this.getItem(3).cfg.setProperty("submenu", { id: "retailBrands", itemdata: oSubmenuData["retailBrands"] });
		this.getItem(4).cfg.setProperty("submenu", { id: "professionalBrands", itemdata: oSubmenuData["professionalBrands"] });

	}


	var oMenuBar = new YAHOO.widget.MenuBar("topBar", { autosubmenudisplay: true, showdelay: 250, hidedelay:  750, lazyload: true });
	oMenuBar.beforeRenderEvent.subscribe(onMenuBarBeforeRender);
	oMenuBar.render();            

});
