BLANK_IMAGE="js/menuimages/b.gif";
//keywords
var code="code";var url="url";var sub="sub";
//define los estilos de cada nivel del menu. COLOR define la base de colores de cada boton
var color = {"border":"#FFFFFF", "shadow":"#DBD8D1", "bgON":"#e0e1e3","bgOVER":"#CC0033"};
var color1 = {"border":"#FFFFFF", "shadow":"#DBD8D1", "bgON":"#444444","bgOVER":"#003333"};
var color2 = {"border":"#FFFFFF", "shadow":"#DBD8D1", "bgON":"#444444","bgOVER":"#CCCCCC"};

//CSS define cual estilo en el archivo .css se aplica a cada estado (on/over), incluyendo font, etc.
var top_css = {"ON":"clsCMTopOn", "OVER":"clsCMTopOver"};
var level1_css = {"ON":"clsCMLevel1On", "OVER":"clsCMLevel1Over"};
var level2_css = {"ON":"clsCMLevel2On", "OVER":"clsCMLevel2Over"};

//STYLE permite controlar los bordes y su ancho, sombras y su tamaño, y liga las dos definiciones anteriores
// de COLOR y CSS a la variable STYLE que es la que se aplica en los itemes directamente.
var STYLE = {"border":1, "shadow":0, "color":color, "css":top_css};
var STYLE1 = {"border":1, "shadow":0, "color":color1, "css":level1_css};
var STYLE2 = {"border":1, "shadow":0, "color":color2, "css":level2_css};

//aqui se definen los botones del menu y sus parametros de formateo
var MENU_ITEMS_STYLING =
[
//Esta primera linea define los parametros generales, en particular el punto de inicio del menu en formato de
//pixeles desde la izquierda y desde arriba (izq,arriba)
	{"pos":[20,219], "itemoff":[0,145], "leveloff":[19,0], "style":STYLE, "size":[19,145]},
	{code:"Home", url:"http://www.hb.co.cr/index.html", "format":{"itemoff":[0,145]}},	
	
	{code:"Accommodations", "format":{"itemoff":[0,145]},
		sub:[
			{"size":[18,145], "style":STYLE1, "leveloff":[18,0]},
			{code:"Rooms & Rates", url:"http://www.hb.co.cr/rooms.html", "format":{"itemoff":[18,0]}},
			{code:"Reservation Form", url:"http://www.hb.co.cr/form.html", "format":{"itemoff":[18,0]}},
			{code:"How to Get Here", url:"http://www.hb.co.cr/getthere.html", "format":{"itemoff":[18,0]}},
			]
	},
		
	{code:"Bougainvillea Essence", "format":{"itemoff":[0,145]},
		sub:[
			{"size":[18,145], "style":STYLE1, "leveloff":[18,0]},
			{code:"Location & Directions", url:"http://www.hb.co.cr/location.html", "format":{"itemoff":[18,0]}},
			{code:"Santo Domingo Town", url:"http://www.hb.co.cr/santodomingo.html", "format":{"itemoff":[18,0]}},
			{code:"Art Treasury", url:"http://www.hb.co.cr/art.html", "format":{"itemoff":[18,0]}},
			{code:"Environmental", url:"http://www.hb.co.cr/environmental.html", "format":{"itemoff":[18,0]}},
			{code:"For the Birds", url:"http://www.hb.co.cr/birds.html", "format":{"itemoff":[18,0]}},
			{code:"Social Responsibility", url:"http://www.hb.co.cr/social.html", "format":{"itemoff":[18,0]}},
			{code:"Guests’ Insights", url:"http://www.hb.co.cr/guest.html", "format":{"itemoff":[18,0]}},
			{code:"Useful Links", url:"http://www.hb.co.cr/links.html", "format":{"itemoff":[18,0]}},
			]	
	},		
		
	{code:"Services & Facilities", "format":{"itemoff":[0,145]},
		sub:[
			{"size":[18,145], "style":STYLE1, "leveloff":[18,0]},
			{code:"Restaurant & Bar", url:"http://www.hb.co.cr/restaurant.html", "format":{"itemoff":[18,0]}},
			{code:"Pool, Gym & Tennis", url:"http://www.hb.co.cr/pool_tennis.html", "format":{"itemoff":[18,0]}},
			{code:"Gardens •", url:"http://www.hb.co.cr/gardens.html", "format":{"itemoff":[18,0]},			
				sub:[
					{"size":[18,145], "style":STYLE2, "leveloff":[0,145]},
					{code:"Frog Ponds", url:"http://www.hb.co.cr/frog_pond.html", "format":{"itemoff":[0,145]}},
					/*{code:"Labyrinth-Maze", url:"labyrinth.html", "format":{"itemoff":[18,0]}},*/
					{code:"Bromeliads", url:"http://www.hb.co.cr/bromeliads.html", "format":{"itemoff":[18,0]}},
					{code:"Orchids", url:"http://www.hb.co.cr/orchids.html", "format":{"itemoff":[18,0]}},
					{code:"Herb & Cactus Garden", url:"http://www.hb.co.cr/herb.html", "format":{"itemoff":[18,0]}},
					/*{code:"Organic Fertilizers", url:"organic.html", "format":{"itemoff":[18,0]}},*/ 
					{code:"Casona Típica", url:"http://www.hb.co.cr/rancho.html", "format":{"itemoff":[18,0]}},
					{code:"Native Trees", url:"http://www.hb.co.cr/native.html", "format":{"itemoff":[18,0]}},
					{code:"Crops of Costa Rica", url:"http://www.hb.co.cr/crops.html", "format":{"itemoff":[18,0]}},
					]	
			},
			{code:"Gift Shop", url:"http://www.hb.co.cr/giftshop.html", "format":{"itemoff":[18,0]}},
			/*{code:"Tour Desk", url:"http://www.hb.co.cr/tourdesk.html", "format":{"itemoff":[18,0]}},*/
			{code:"Internet Access", url:"http://www.hb.co.cr/internet.html", "format":{"itemoff":[18,0]}},
			{code:"Currency & Banks", url:"http://www.hb.co.cr/money.html", "format":{"itemoff":[18,0]}},
			{code:"FAQ", url:"http://www.hb.co.cr/faq.html", "format":{"itemoff":[18,0]}},
			]
		},

	{code:"360º Tours & Gallery", "format":{"itemoff":[0,145]},
		sub:[
			{"size":[18,145], "style":STYLE1, "leveloff":[18,0]},
			{code:"360º Virtual Tour", url:"http://www.hb.co.cr/360tour.html", "format":{"itemoff":[18,0]}},
			{code:"Photo Gallery", url:"http://www.hb.co.cr/gallery.html", "format":{"itemoff":[18,0]}},
			{code:"Art Collection Gallery", url:"http://www.hb.co.cr/art_gallery.html", "format":{"itemoff":[18,0]}},
			]	
	},
	{code:"Corporate Facilities", url:"http://www.hb.co.cr/corporate.html", "format":{"itemoff":[0,145], "size":[19,130]}},
	
	{code:"Versión en Español", url:"http://www.hb.co.cr/inicio.html", "format":{"itemoff":[0,130], "size":[19,130]}},
	
	];	
	

	