/*
 Milonic DHTML Website Navigation Menu - Version 3.5
 Written by Andy Woolley - Copyright 2002 (c) Milonic Solutions Limited. All Rights Reserved.
 Please visit http://www.milonic.co.uk/menu or e-mail menu3@milonic.com for more information.
 
 The Free use of this menu is only available to Non-Profit, Educational & Personal web sites.
 Commercial and Corporate licenses  are available for use on all other web sites & Intranets.
 All Copyright notices MUST remain in place at ALL times and, please keep us informed of your 
 intentions to use the menu and send us your URL.
*/


//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.



////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"


timegap=500			// The time delay for menus to remain visible
followspeed=5		// Follow Scrolling speed
followrate=40		// Follow Scrolling Rate
suboffset_top=1;	// Sub menu offset Top position 
suboffset_left=-1;	// Sub menu offset Left position
closeOnClick = true

addmenu(menu=[		// This is the array that contains your menu properties and details
"mainmenu",			// Menu Name - This is needed in order for the menu to be called
20,					// Menu Top - The Top position of the menu in pixels
200,				// Menu Left - The Left position of the menu in pixels
,					// Menu Width - Menus width in pixels
1,					// Menu Border Width 
,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,				// Properties Array - this is set higher up, as above
0,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,				// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,					// Position of TOP sub image left:center:right
,					// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Background image for menu when BGColor set to transparent.
,					// Scrollable Menu
,					// Reserved for future use
,"Dummy Menu Item 1","# ",,,0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Dummy Menu Item 2","# ",,,0
,"Dummy Menu Item 3","# ",,,0
])

	var dir_about_syn = "";

	addmenu(menu=["menu1",
	88,175,121,1,"",style1,,"left",,,,,,,,,,,,,
	,"Historia",dir_about_syn+"historia.aspx",,,0
	,"Visi&oacute;n",dir_about_syn+"vision.aspx",,,0
	,"Presencia internacional","show-menu=submenu1_1",dir_about_syn+"presencia.aspx",,0
	,"Organizaci&oacute;n",dir_about_syn+"personal.aspx",,,0
	])

		addmenu(menu=["submenu1_1",
		,,140,1,"",style1,,"left",,,,,,,,,,,,,
		,"Africa",dir_about_syn+"mapas.aspx?Continente=af",,,0
		,"Am&eacute;rica del Norte ",dir_about_syn+"mapas.aspx?Continente=amn",,,0
		,"Am&eacute;rica Central ",dir_about_syn+"mapas.aspx?Continente=amc",,,0
		,"Am&eacute;rica del Sur ",dir_about_syn+"mapas.aspx?Continente=ams",,,0
		,"Asia",dir_about_syn+"mapas.aspx?Continente=as",,,0
		,"Europa",dir_about_syn+"mapas.aspx?Continente=eu",,,0
		,"Ocean&iacute;a",dir_about_syn+"mapas.aspx?Continente=oc",,,0
		])
		

	var dir_partner = "";
	
	addmenu(menu=["menu2",
	88,295,122,1,"",style1,,"left",,,,,,,,,,,,,
	,"Historia",dir_partner+"historiadistri.aspx",,,0
	,"Visi&oacute;n",dir_partner+"visiondistri.aspx",,,0
	,"Organizaci&oacute;n",dir_partner+"personaldistri.aspx",,,0
	,"Representantes de Zona",dir_partner+"mapadistri.aspx",,,0
	])

	var directory_prod_serv = "";
	
	// DISTINTOS MENUES DE PRODUCTOS Y SERVICIOS PARA URUGUAY Y EL RESTO DE LOS PAISES	
	if (window.document.all._PaisHiddenId_.value == "1"){
		addmenu(menu=["menu3",
		88,416,122,1,"",style1,,"left",,,,,,,,,,,,,
		//,"Cultivos","show-menu=submenu3_1",directory_prod_serv+"cultivos.aspx",,0
		//,"Productos","show-menu=submenu3_2",directory_prod_serv+"productoslista.aspx",,0
		//,"Problemas",directory_prod_serv+"problemas.aspx",,,0
		//,"Uso Seguro",directory_prod_serv+"usoseguro.aspx",,,0
		//,"Promociones",directory_prod_serv+"promociones.aspx",,,0
		//,"Soluciones por Cultivo",directory_prod_serv+"documentos.aspx?TipoArchivo=3",,,0
		,"Folletos",directory_prod_serv+"documentos.aspx?TipoArchivo=1",,,0
		,"Hojas de Seguridad",directory_prod_serv+"documentos.aspx?TipoArchivo=2",,,0
		,"Clima","http://cultivar.grupomaccio.com/clima.php?gmempresa=cultivar",,,0
		,"Clientes","http://cultivar.grupomaccio.com/clientes.php",,,0
		])
	} else {
		addmenu(menu=["menu3",
		88,416,122,1,"",style1,,"left",,,,,,,,,,,,,
		,"Cultivos","show-menu=submenu3_1",directory_prod_serv+"cultivos.aspx",,0
		,"Productos","show-menu=submenu3_2",directory_prod_serv+"productoslista.aspx",,0
		,"Problemas",directory_prod_serv+"problemas.aspx",,,0
		,"Uso Seguro",directory_prod_serv+"usoseguro.aspx",,,0
		,"Promociones",directory_prod_serv+"promociones.aspx",,,0
		,"Soluciones por Cultivo",directory_prod_serv+"documentos.aspx?TipoArchivo=3",,,0
		,"Folletos",directory_prod_serv+"documentos.aspx?TipoArchivo=1",,,0
		,"Hojas de Seguridad",directory_prod_serv+"documentos.aspx?TipoArchivo=2",,,0
		])
		
		addmenu(menu=["submenu3_1",
		,,140,1,"",style1,,"left",,,,,,,,,,,,,
		,"Soja",directory_prod_serv+"productos.aspx?cultivo=10",,,0
		,"Ma&iacute;z",directory_prod_serv+"productos.aspx?cultivo=11",,,0
		,"Trigo",directory_prod_serv+"productos.aspx?cultivo=12",,,0
		,"Algod&oacute;n",directory_prod_serv+"productos.aspx?cultivo=13",,,0
		,"Girasol",directory_prod_serv+"productos.aspx?cultivo=17",,,0
		,"Hort&iacute;colas",directory_prod_serv+"productos.aspx?cultivo=14",,,0
		,"Frutales",directory_prod_serv+"productos.aspx?cultivo=15",,,0
		,"Otros",directory_prod_serv+"productos.aspx?cultivo=16",,,0
		])
		
		addmenu(menu=["submenu3_2",
		,,140,1,"",style1,,"left",,,,,,,,,,,,,
		,"Curasemillas",directory_prod_serv+"productos.aspx?clase=7",,,0
		,"Herbicidas",directory_prod_serv+"productos.aspx?clase=8",,,0
		,"Fungicidas",directory_prod_serv+"productos.aspx?clase=9",,,0
		,"Insecticidas",directory_prod_serv+"productos.aspx?clase=10",,,0
		,"Otros",directory_prod_serv+"productos.aspx?clase=11",,,0
		])	
	}	

	var directory_notes = "";
	
	addmenu(menu=["menu4",
	88,537,122,1,"",style1,,"left",,,,,,,,,,,,,
	,"Entrevistas al agricultor / notas de inter&eacute;s",directory_notes+"entrevistas.aspx",,,0
	,"Noticias","show-menu=submenu4_1",,,0
	])
	
		addmenu(menu=["submenu4_1",,,140,1,,style1,0,"left",,0,,,,,,,,,,,
		,"Actuales",directory_notes+"notas.aspx?NOTA_Actual=1",,,0
		,"Anteriores",directory_notes+"notas.aspx?NOTA_Actual=0",,,0
		])


	// DISTINTOS MENUES DE CENTINELA PARA URUGUAY Y EL RESTO DE LOS PAISES
	if (window.document.all._PaisHiddenId_.value == "1"){
		addmenu(menu=["menu5",
		88,658,116,1,"",style1,,"left",,,,,,,,,,,,,
		,"","",,,0 //link anterior: http://cultivar.grupomaccio.com/centinelaverano.php
		," ","",,,0 //link anterior: http://cultivar.grupomaccio.com/plancentinela.php
		])	
	} else {
		var directory_centinela = "";

		if (CENTINELA_OPCION == 1) {
			addmenu(menu=["menu5",
			88,658,116,1,"",style1,,"left",,,,,,,,,,,,,
			,"Centinela Soja ",directory_centinela+"centinelasoja.aspx",,,0
			,"Centinela Trigo ",directory_centinela+"centinelatrigo.aspx",,,0
			])	
		} else if(CENTINELA_OPCION == 2){
			addmenu(menu=["menu5",
			88,658,116,1,"",style1,,"left",,,,,,,,,,,,,
			,"Centinela Soja ",directory_centinela+"centinelasoja.aspx",,,0
			])	
		} else {
			addmenu(menu=["menu5",
			88,658,116,1,"",style1,,"left",,,,,,,,,,,,,
			,"Centinela Trigo ",directory_centinela+"centinelatrigo.aspx",,,0
			])	
		}
	}

dumpmenus()
