
	if (DropDown.isSupported()) {
        //alert("hi");
		//==================================================================================================
		// 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, 5, 0, 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 menu1 = ms.addMenu(document.getElementById("menu1"));
        menu1.addItem("New York", "http://www.farmsanctuary.org/farm/newyork/index.html");
        menu1.addItem("California", "http://www.farmsanctuary.org/farm/ca/index.html");
		menu1.addItem("Virtual Experience", "http://action.farmsanctuary.org/site/PageServer?pagename=VirtualExperience");
		menu1.addItem("Calendar Of Events", "http://www.farmsanctuary.org/farm/calendar/index.html");
        
        var menu2 = ms.addMenu(document.getElementById("menu2"));
        menu2.addItem("Farm Animal Stories", "http://www.farmsanctuary.org/rescue/rescues/index.html");
        menu2.addItem("Home Adoption &amp; Placement", "http://www.farmsanctuary.org/rescue/adoption.html");
        menu2.addItem("Establishing a Sanctuary", "http://www.farmanimalshelters.org/shelter_establish.htm");
        menu2.addItem("Farm Animal Care", "http://www.farmsanctuary.org/rescue/care.html");        
        
        var menu3 = ms.addMenu(document.getElementById("menu3"));
        menu3.addItem("Current Campaigns", "http://www.farmsanctuary.org/issues/campaigns/");
		menu3.addItem("Factory Farming", "http://www.farmsanctuary.org/issues/factoryfarming/");
        menu3.addItem("Proposed Legislation and Public Policy", "http://www.farmsanctuary.org/issues/legislation/");
        menu3.addItem("Litigation", "http://www.farmsanctuary.org/issues/litigation/");    
        
        var menu4 = ms.addMenu(document.getElementById("menu4"));
        menu4.addItem("Donate Now", "http://www.farmsanctuary.org/get_involved/index.html");
        menu4.addItem("Action Alerts", "http://www.farmsanctuary.org/get_involved/actionalerts.html");
        menu4.addItem("Advocacy Campaign Team", "http://www.farmsanctuary.org/act/");
		menu4.addItem("Jobs/Internships", "http://www.farmsanctuary.org/get_involved/jobs/");
        
        var menu5 = ms.addMenu(document.getElementById("menu5"));
        menu5.addItem("Contact Us", "http://www.farmsanctuary.org/about/contact/");
		menu5.addItem("Rescue", "http://www.farmsanctuary.org/about/rescue/");
        menu5.addItem("Education", "http://www.farmsanctuary.org/about/education/");
        menu5.addItem("Advocacy", "http://www.farmsanctuary.org/about/advocacy/");
		menu5.addItem("Leadership", "http://www.farmsanctuary.org/about/leadership.html");
		menu5.addItem("Financial Statements", "http://www.farmsanctuary.org/about/financial/");
		menu5.addItem("Position Statements", "http://www.farmsanctuary.org/about/position/");
		menu5.addItem("Victories and Milestones", "http://www.farmsanctuary.org/about/milestones/");        
        
        var menu6 = ms.addMenu(document.getElementById("menu6"));
        menu6.addItem("Press Releases", "http://www.farmsanctuary.org/mediacenter/index.html");
        menu6.addItem("In The News", "http://www.farmsanctuary.org/mediacenter/inthenews.html");
        menu6.addItem("Videos", "http://www.farmsanctuary.org/mediacenter/videos.html");
		menu6.addItem("Photos", "http://www.farmsanctuary.org/issues/factoryfarming/photos/");
        menu6.addItem("PSAs", "http://www.farmsanctuary.org/mediacenter/psas.html");
        menu6.addItem("Ads", "http://www.farmsanctuary.org/mediacenter/ads.html");
		menu6.addItem("Publications", "http://www.farmsanctuary.org/mediacenter/publications.html");
		menu6.addItem("Research Reports", "http://www.farmsanctuary.org/mediacenter/reports.html");
        
        var menu7 = ms.addMenu(document.getElementById("menu7"));
		
	
        
            
    
        
        //third Level
        //comment out these lines to remove level
        //var subMenu1 = menu2.addMenu(menu2.items[3]);
		//subMenu1.addItem("sub sub", "#");
		//subMenu1.addItem("Sub Sub Two", "#");
		//subMenu1.addItem("Sub Sub Three", "#");
		//subMenu1.addItem("Sub Sub Four", "#");


		
		








		 
		//==================================================================================================
		// write drop downs into page
		//==================================================================================================
		// this method writes all the HTML for the menus into the page with document.write(). It must be
		// called within the body of the HTML page.
		//==================================================================================================
		DropDown.renderAll();
	}
