 /***********************************************
*	(c) Ger Versluis 2000 version 9.50 24 July 2003	          *
*	You may use this script on non commercial sites.	          *
*	www.burmees.nl/menu			          *
*	You may remove all comments for faster loading	          *		
************************************************/
	var NoOffFirstLineMenus=18;			// Number of main menu  items
						// Colorvariables:
						// Color variables take HTML predefined color names or "#rrggbb" strings
						//For transparency make colors and border color ""
	var LowBgColor="006CDE";			// Background color when mouse is not over
	var HighBgColor="003399";			// Background color when mouse is over
	var FontLowColor="white";			// Font color when mouse is not over
	var FontHighColor="white";			// Font color when mouse is over
	var BorderColor="black";			// Border color
	var BorderWidthMain=1;			// Border width main items
	var BorderWidthSub=1;			// Border width sub items
 	var BorderBtwnMain=1;			// Border between elements main items 1 or 0
	var BorderBtwnSub=1;		// Border between elements sub items 1 or 0
	var FontFamily="verdana";	// Font family menu items
	var FontSize=8;				// Font size menu items
	var FontBold=1;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered="center";		// Item text position left, center or right
	var MenuCentered="left";			// Menu horizontal position can be: left, center, right, justify,
						//  leftjustify, centerjustify or rightjustify. PartOfWindow determines part of window to use
	var MenuVerticalCentered="top";		// Menu vertical position top, middle,bottom or static
	var ChildOverlap=.2;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=18;				// Menu offset x coordinate
	var StartLeft=0;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=0;				// Left padding
	var TopPaddng=7;				// Top padding
	var FirstLineHorizontal=0;			// First level items layout horizontal 1 or 0
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=1000;			// delay before menu folds in
	var UnfoldDelay=100;			// delay before sub unfolds	
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame="";			// Frame where first level appears
	var SecLineFrame="";			// Frame where sub levels appear
	var DocTargetFrame="";			// Frame where target documents appear
	var TargetLoc="MenuPos";				// span id for relative positioning
	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var BottomUp=0;				// enables/ disables Bottom up unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var BaseHref="";				// BaseHref lets you specify the root directory for relative links. 
						// The script precedes your relative links with BaseHref
						// For instance: 
						// when your BaseHref= "http://www.MyDomain/" and a link in the menu is "subdir/MyFile.htm",
						// the script renders to: "http://www.MyDomain/subdir/MyFile.htm"
						// Can also be used when you use images in the textfields of the menu
						// "MenuX=new Array("<img src=\""+BaseHref+"MyImage\">"
						// For testing on your harddisk use syntax like: BaseHref="file:///C|/MyFiles/Homepage/"

	var Arrws=[BaseHref+"tri.gif",5,10,BaseHref+"tridown.gif",10,5,BaseHref+"trileft.gif",5,10,BaseHref+"triup.gif",10,5];

						// Arrow source, width and height.
						// If arrow images are not needed keep source ""

	var MenuUsesFrames=0;			// MenuUsesFrames is only 0 when Main menu, submenus,
						// document targets and script are in the same frame.
						// In all other cases it must be 1

	var RememberStatus=0;			// RememberStatus: When set to 1, menu unfolds to the presetted menu item. 
						// When set to 2 only the relevant main item stays highligthed
						// The preset is done by setting a variable in the head section of the target document.
						// <head>
						//	<script type="text/javascript">var SetMenu="2_2_1";</script>
						// </head>
						// 2_2_1 represents the menu item Menu2_2_1=new Array(.......

	var PartOfWindow=.7;			// PartOfWindow: When MenuCentered is justify, sets part of window width to stretch to

						// Below some pretty useless effects, since only IE6+ supports them
						// I provided 3 effects: MenuSlide, MenuShadow and MenuOpacity
						// If you don't need MenuSlide just leave in the line var MenuSlide="";
						// delete the other MenuSlide statements
						// In general leave the MenuSlide you need in and delete the others.
						// Above is also valid for MenuShadow and MenuOpacity
						// You can also use other effects by specifying another filter for MenuShadow and MenuOpacity.
						// You can add more filters by concanating the strings
	var BuildOnDemand=0;			// 1/0 When set to 1 the sub menus are build when the parent is moused over

	var MenuSlide="";
	var MenuSlide="progid:DXImageTransform.Microsoft.RevealTrans(duration=.5, transition=19)";
	var MenuSlide="progid:DXImageTransform.Microsoft.GradientWipe(duration=.5, wipeStyle=1)";

	var MenuShadow="";
	var MenuShadow="progid:DXImageTransform.Microsoft.DropShadow(color=00366A, offX=0, offY=0, positive=0)";
	var MenuShadow="progid:DXImageTransform.Microsoft.Shadow(color=00366A, direction=0, strength=0)";

	var MenuOpacity="";
	var MenuOpacity="progid:DXImageTransform.Microsoft.Alpha(opacity=100)";

	function BeforeStart(){return}
	function AfterBuild(){FrstCntnr.className="NoPrint";}
	function BeforeFirstOpen(){return}
	function AfterCloseAll(){return}

// Menu tree:
// MenuX=new Array("ItemText","Link","background image",number of sub elements,height,width,"bgcolor","bghighcolor",
//	"fontcolor","fonthighcolor","bordercolor","fontfamily",fontsize,fontbold,fontitalic,"textalign","statustext");
// Color and font variables defined in the menu tree take precedence over the global variables
// Fontsize, fontbold and fontitalic are ignored when set to -1.
// For rollover images ItemText format is:  "rollover?"+BaseHref+"Image1.jpg?"+BaseHref+"Image2.jpg" 
Menu1=new Array("Home","index.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Home Page");

Menu2=new Array("What's New","whatsnew.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - What's New");

Menu3=new Array("Objectives","objectives.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Objectives");

Menu4=new Array("Location","location.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Farm Location");

Menu5=new Array("Projects","","",2,28,120,"","","","","","",-1,-1,-1,"","CACDI - Research and Demonsration Projects");
	Menu5_1=new Array("On-Farm","on-Farm.htm","",0,28,120,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Projects On-Farm");
	Menu5_2=new Array("Environment","environmental.htm","",0,28,120,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Projects Environmental");

Menu6=new Array("Farm Layout","layout.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Farm Layout");

Menu7=new Array("Flow Measurement","","",8,40,120,"","","","","","",-1,-1,-1,"","CACDI - Flow Measurement Test Facility");
	Menu7_1=new Array("The Facility","water_measurement_testing_facility.htm","",0,28,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Flow Measurement Test Facility");
	Menu7_2=new Array("Detailed Layout","mappage.htm","",0,28,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Flow Measurement Test Facility");
	Menu7_3=new Array("2010 Water Measurement Workshop","2010WaterMeasurementWorkshop.htm","",0,52,150,"006CDE","003399","white","white","","",-1,-1,-1,"","2010 Water Measurement Workshop");
	Menu7_4=new Array("2009 Flow Measurement Field Day","2009FlowMeasurementFacilityFieldDay.htm","",0,52,150,"006CDE","003399","white","white","","",-1,-1,-1,"","2009 Flow measurement Facilty Field Day");
	Menu7_5=new Array("2008 Water Measurement Workshop","2008WaterManagementWorkshop.htm","",0,52,150,"006CDE","003399","white","white","","",-1,-1,-1,"","2008 Water Measurement Workshop");
	Menu7_6=new Array("2006 Acoustic Doppler Field Day","AcousticDopplerFieldDay2006.htm","",0,40,150,"006CDE","003399","white","white","","",-1,-1,-1,"","Acoustic Doppler Field Day");
	Menu7_7=new Array("Wireless Telemetry","WirelessTelemetry.htm","",0,28,150,"006CDE","003399","white","white","","",-1,-1,-1,"","Wireless Telemetry");
	Menu7_8=new Array("Technical Reports","democanaltechnicalreports.htm","",0,28,150,"006CDE","003399","white","white","","",-1,-1,-1,"","Technical Reports");

Menu8=new Array("Field Day","","",2,28,120,"","","","","","",-1,-1,-1,"","CACDI - Field Day");
	Menu8_1=new Array("Field Day 2008","fieldday_2008.htm","",0,28,120,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Field Day - 2008");
	Menu8_2=new Array("Field Day 2007","fieldday_2007.htm","",0,28,120,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Field Day - 2007");

Menu9=new Array("Irrigation Energy Calculator","energycalculator.htm","",0,40,120,"","","","","","",-1,-1,-1,"","CACDI - Energy Calculator");

Menu10=new Array("Irrigation Management","irrigationmanagement.htm","",0,40,120,"","","","","","",-1,-1,-1,"","CACDI - Irrigation Management");

Menu11=new Array("Crop ET Data","cropetdata.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Daily & Seasonal Crop ET Values");

Menu12=new Array("Irrigation Conferences","","",10,40,120,"","","","","","",-1,-1,-1,"","CACDI - Irrigation Conferences");
	Menu12_1=new Array("Irrigated Crop Production Update Conference 2012","2012_ICPUC.htm","",0,52,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Irrigated Crop Production Update Conference 2012");
	Menu12_2=new Array("Water, Agriculture & the Environment Conference 2011","Water_Ag_Env-conf11.htm","",0,52,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Water, Agriculture & the Environment Conference 2011");
	Menu12_3=new Array("Irrigation Technical Conference 2011","irr-tech-conf2011.htm","",0,40,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Irrigation Technical Conference - 2011");
	Menu12_4=new Array("Irrigation Technical Conference 2010","irr-tech-conf2010.htm","",0,40,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Irrigation Technical Conference - 2010");
	Menu12_5=new Array("Irrigated Crop Production Update Conference 2010","2010_ICPUC.htm","",0,52,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Irrigated Crop Production Update Conference 2010");
	Menu12_6=new Array("Water, Agriculture & the Environment Conference 2008","Water_Ag_Env-conf08.htm","",0,52,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Water, Agriculture & the Environment Conference 2008");
	Menu12_7=new Array("Irrigation Technical Conference 2008","irr-tech-conf08.htm","",0,40,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Irrigation Technical Conference - 2008");
	Menu12_8=new Array("Irrigation Technical Conference 2007","irr-tech-conf07.htm","",0,40,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Irrigation Technical Conference - 2007");
	Menu12_9=new Array("Irrigation Technical Conference 2006","irr-tech-conf06.htm","",0,40,150,"006CDE","003399","white","white","","",-1,-1,-1,"","CACDI - Irrigation Technical Conference - 2006");
	Menu12_10=new Array("Sustainable Irrigation for the Prairies Conference 2006","sustainable-irr-conf06.htm","",0,52,175,"006CDE","003399","white","white","","",-1,-1,-1,"","Sustainable Irrigation for the Prairies Conference 2006");

Menu13=new Array("Image Library","images.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Image Library");

Menu14=new Array("Water Hauler's Bulletin","water_haulers.htm","",0,40,120,"","","","","","",-1,-1,-1,"","CACDI - Water Hauler's Bulletin");

Menu15=new Array("Tours","tours.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Tours");

Menu16=new Array("Partners","partners.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Industry Partners");

Menu17=new Array("Links","links.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Links");

Menu18=new Array("Contact Us","contact.htm","",0,28,120,"","","","","","",-1,-1,-1,"","CACDI - Contact Information");
