//change when DNS propagates live
baseHref = "http://www.flutiefoundation.org/";

	if (DropDown.isSupported()) {
        
		//==================================================================================================
		// create a set of dropdowns
		//==================================================================================================
		// the first param should always be down, as it is here
		//
		// The second and third param are the top and left offset positions of the menus from their actuators
		// respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
		// something like -5, 5
		//
		// The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
		// of the actuator from which to measure the offset positions above. Here we are saying we want the 
		// menu to appear directly below the bottom left corner of the actuator
		//==================================================================================================
		var ms = new DropDownSet(DropDown.direction.down, -2, -6, DropDown.reference.bottomLeft);
                                                        //x , y    
		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		//var topLevelIds = new Array(5963,5964,5965,5966,5967,6062,5968)
		
		var topLevelIds = new Array(5963,5964,5965,5966,5967,6062,5968)
		
		for(index=1; index <= topLevelIds.length; index++){
			
			if (typeof subNavFileName[index] != "undefined"){
				
				if(subNavFileName[index].length>0){
					eval("var menu" + index + " = ms.addMenu(document.getElementById(\"menu" + index + "\"));")
					for(j=0;j<subNavFileName[index].length;j++){
						
						if(subNavInNav[index][j] == "1" && (subNavPrimaryNav[index][j]) == topLevelIds[index-1]){
						
						//second levels
							if(subNavParent[index][j] == ""){
								//add page (title, fielname)
								
								eval("menu" + index + ".addItem(subNavTitle[" + index + "][j], \"\" + baseHref + subNavFileName[" + index + "][j]);")
							} 
						}
					}    
				} else {
					//eval("var menu" + index + " = ms.addMenu(\"\");")
					
				}   
			} else {
				//eval("var menu" + index + " = ms.addMenu(\"\");")
				
			}   
		}	
		
		DropDown.renderAll();
	}

