var menuTest = new Array(
		["1","0","<b>Recipe File</b>","#"],
			["1_1","1","Peruvian Cooking","recipesperuvian.asp"],
			["1_2","1","Spirits and Beverages","#"],
				["1_2_1","1_2","Alcoholic","recipesfile.asp?codigo=1"],
				["1_2_2","1_2","Non alcoholic","recipesfile.asp?codigo=2"],
			["1_3","1","Appetizers and Sandwiches","#"],
				["1_3_1","1_3","Cold appetizers","recipesfile.asp?codigo=4"],
				["1_3_2","1_3","Hot appetizers","recipesfile.asp?codigo=5"],
				["1_3_3","1_3","Cold sandwiches","recipesfile.asp?codigo=39"],
				["1_3_4","1_3","Hot sandwiches","recipesfile.asp?codigo=40"],
			["1_4","1","Soups","recipesfile.asp?codigo=35"],
			["1_5","1","Meat and Poultry","#"],
				["1_5_1","1_5","Beef","recipesfile.asp?codigo=6"],
				["1_5_2","1_5","Pork","recipesfile.asp?codigo=7"],
				["1_5_3","1_5","Poultry","recipesfile.asp?codigo=8"],
				["1_5_4","1_5","Others","recipesfile.asp?codigo=9"],
			["1_6","1","Fish and Seafood","#"],
				["1_6_1","1_6","Cold","recipesfile.asp?codigo=10"],
				["1_6_2","1_6","Hot","recipesfile.asp?codigo=11"],
			["1_7","1","Salads and Dressings","#"],
				["1_7_1","1_7","Salads","recipesfile.asp?codigo=36"],
				["1_7_2","1_7","Dressings","recipesfile.asp?codigo=41"],
			["1_8","1","Vegetables, Grains","recipesfile.asp?codigo=37"],
			["1_9","1","Tubers and Eggs","recipe.asp?codigo=37"],
			["1_10","1","Pies, Souffles, Mousses,","recipesfile.asp?codigo=15"],
			["1_11","1","and Others","recipesfile.asp?codigo=15"],
			["1_12","1","Pasta, Crepes and Pizzas","recipesfile.asp?codigo=38"],
			["1_13","1","Rice","#"],
				["1_13_1","1_13","Rice","recipesfile.asp?codigo=16"],
				["1_13_2","1_13","Risottos","recipesfile.asp?codigo=17"],
			["1_14","1","Desserts and Bakery","#"],
				["1_14_1","1_14","Desserts","recipesfile.asp?codigo=26"],
				["1_14_2","1_14","Cookies","recipesfile.asp?codigo=27"],
				["1_14_3","1_14","Cakes","recipesfile.asp?codigo=28"],
				["1_14_4","1_14","Ice cream","recipesfile.asp?codigo=29"],
				["1_14_5","1_14","Sweets","recipesfile.asp?codigo=30"],
				["1_14_6","1_14","Bread","recipesfile.asp?codigo=31"],
				["1_14_7","1_14","Jellies and Marmalades","recipesjellies.asp"],
			["1_15","1","Sauces","#"],
				["1_15_1","1_15","Savory","recipesfile.asp?codigo=32"],
				["1_15_2","1_15","Sweet","recipesfile.asp?codigo=34"],
		["2","0","Weekly Recipes","recipesnews.asp"],
		["3","0","Peruvian Cooking","recipesperuvian.asp"],
		["4","0","Cooking Light","recipeslight.asp"],
		["5","0","Cooking for Two","recipestwo.htm"],
		["6","0","Quick & Easy","recipesquick.asp"],
		["7","0","Budget Cooking ","recipesbudget.asp"],
		["8","0","Grilling","recipesbbq.htm"],
		["9","0","Recipe box","recipesbox.asp"],
		["10","0","Glossary","glossary.asp"],
		["11","0","Conversions","conversions.htm"],
		["12","0","Shopping Guide","shopping_guide.htm"],
		["13","0","Tips","tips.asp"],
		["14","0","Published Articles","articles.htm"],
		["15","0","Testimonials","testimonials.asp"],
		["16","0","Interesting Links","interesting_links.htm"],
		["17","0","<b>Guide to Restaurants</b>",""],
			["17_1","17","Peruvian Cooking",""],
				["17_1_1","17_1","Lima","guide_gourmet10.htm"],
				["17_1_2","17_1","Ancash","guide_gourmet30.htm"],
				["17_1_3","17_1","Arequipa","guide_gourmet31.htm"],
				["17_1_4","17_1","Cajamarca","guide_gourmet32.htm"],
				["17_1_5","17_1","Cusco","guide_gourmet33.htm"],
				["17_1_6","17_1","Ica","guide_gourmet34.htm"],
				["17_1_7","17_1","Junín","guide_gourmet35.htm"],
				["17_1_8","17_1","La Libertad","guide_gourmet36.htm"],
				["17_1_9","17_1","Lambayeque","guide_gourmet37.htm"],
				["17_1_10","17_1","Loreto","guide_gourmet38.htm"],
				["17_1_11","17_1","Piura","guide_gourmet39.htm"],
				["17_1_12","17_1","Puno","guide_gourmet40.htm"],
				["17_1_13","17_1","San Martín","guide_gourmet41.htm"],
				["17_1_14","17_1","Tacna","guide_gourmet42.htm"],
				["17_1_15","17_1","Tumbes","guide_gourmet43.htm"],
			["17_2","17","Food by countries",""],
				["17_2_1","17_2","Argentina","guide_gourmet24.htm"],
				["17_2_2","17_2","Asiática","guide_gourmet21.htm"],
				["17_2_3","17_2","China","guide_gourmet18.htm"],
				["17_2_4","17_2","Española","guide_gourmet25.htm"],
				["17_2_5","17_2","Italiana","guide_gourmet.htm"],
				["17_2_6","17_2","Japonesa","guide_gourmet22.htm"],
				["17_2_7","17_2","Mexicana","guide_gourmet27.htm"],
				["17_2_8","17_2","Suiza","guide_gourmet23.htm"],
				["17_2_9","17_2","Tailandesa","guide_gourmet29.htm"],
			["17_3","17","Coffe Shops / Restaurants / Tapas","guide_gourmet13.htm"],
			["17_4","17","Grilled Meats","guide_gourmet17.htm"],
			["17_5","17","International Cuisine","guide_gourmet3.htm"],
			["17_6","17","Mediterranean Cuisine","guide_gourmet15.htm"],
			["17_7","17","Grilled Food / Grilled Chicken","guide_gourmet19.htm"],
			["17_8","17","Seadfood Cuisine","guide_gourmet7.htm"],
			["17_9","17","Peruvian restaurants abroad","guide.htm"]
		);
	
	function makeMenu(){
		var html = "<div id=\"menuInt\"></div>"
		html+="<div id=\"wrap3\" class=\"menu3\">"
		for (var i=0;i<menuTest.length;i++){
			if(menuTest[i][1]=="0"){
				html+="<div class=\"menu1\">"
				html+="<a id=\"menu"+menuTest[i][0]+"\" href=\""+menuTest[i][3]+"\">"+menuTest[i][2]+"</a>"; 
				html+="</div>";
			}
		}
		html+="</div>";
		document.write(html);html=null;
	}		
	function getItems(mId){
		var items = 0;
		for (var i=0;i<menuTest.length;i++){if(menuTest[i][1]==mId){items+=1;}}
		return items;
	}	
	function init3(){
		var idsProcessed = "";
		if(TransMenu.isSupported()) {
			var ms = new TransMenuSet(TransMenu.direction.left, 0,0, TransMenu.reference.topRight);
			for (var i=0;i<menuTest.length;i++){
				if (getItems(menuTest[i][0])>0){
					if(idsProcessed.indexOf(","+menuTest[i][0]+",")==-1){
						thisMenuId = "menu"+menuTest[i][0];
						if(menuTest[i][1]=="0"){
							eval("var "+thisMenuId+" = ms.addMenu(document.getElementById(\""+thisMenuId+"\"))");		
							lastMainMenu = thisMenuId;
						}else{
							index=parseInt(menuTest[i][0].toString().replace(menuTest[i][1]+"_",""))-1;
							eval("var "+thisMenuId+" = "+lastMainMenu+".addMenu("+lastMainMenu+".items["+index+"],0,0)");
						}
						idsProcessed+=","+menuTest[i][0]+",";
						for (var x=0;x<menuTest.length;x++){
							if (menuTest[x][1]==menuTest[i][0]){
								eval(thisMenuId+".addItem(\""+menuTest[x][2]+"\", \""+menuTest[x][3]+"\", \"0\")");
							}
						}
					}	
				}
			}
			TransMenu.dingbatSize = 0;
			TransMenu.spacerGif = "";
			TransMenu.dingbatOn = "";				// path to the active sub menu dingbat
			TransMenu.dingbatOff = "";
			TransMenu.sub_indicator = false;
			TransMenu.menuPadding = 0;				// padding between menu border and items grid
			TransMenu.itemPadding = 5;				// additional padding around each item
			TransMenu.shadowSize = 0;				// size of shadow under menu
			TransMenu.shadowOffset = 0;				// distance shadow should be offset from leading edge
			TransMenu.shadowColor = "#888";			// color of shadow (transparency is set in CSS)
			TransMenu.shadowPng = "";               // a PNG graphic to serve as the shadow for mac IE5
			TransMenu.backgroundColor = "#EEEEEE";	//color of the background (transparency set in CSS)
			TransMenu.backgroundPng = "";			// a PNG graphic to server as the background for mac IE5
			TransMenu.hideDelay = 500;				// number of milliseconds to wait before hiding a menu
			TransMenu.slideTime = 200;
			TransMenu.modid = 3;
			TransMenu.renderAll();
			
			TransMenu.initialize();
			for (var i=0;i<menuTest.length;i++){
				if(menuTest[i][0]=="0"){
					if (getItems(menuTest[i][0])==true){
						eval("menu"+menuTest[i][0]+".onactivate = function() {document.getElementById(\"menu"+menuTest[i][0]+"\").className = \"hover\";}");
						eval("menu"+menuTest[i][0]+".ondeactivate = function() {document.getElementById(\"menu"+menuTest[i][0]+"\").className = \"\";}");
					}else{
						eval("document.getElementById(\"menu"+menuTest[i][0]+"\").onmouseover=function(){ms.hideCurrent();this.className=\"hover\";}");
						eval("document.getElementById(\"menu"+menuTest[i][0]+"\").onmouseout=function(){this.className=\"\";}");
					}
				}
			}							
		}
	}
	
