
	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("Adopt", "http://www.adoptaturkey.org/aat/adopt/index.html");
        menu1.addItem("Sponsor a Turkey", "http://www.adoptaturkey.org/aat/adopt/sponsor.html");
		menu1.addItem("Turkey Express Adoptions", "http://www.adoptaturkey.org/aat/adopt/express.html");
        
        var menu2 = ms.addMenu(document.getElementById("menu2"));
        menu2.addItem("Factory Farming", "http://www.adoptaturkey.org/aat/issues/index.html");
        menu2.addItem("Free Range/Organic", "http://www.adoptaturkey.org/aat/issues/freerange.html");
        menu2.addItem("Investigations", "http://www.adoptaturkey.org/aat/issues/investigations.html");
        menu2.addItem("History of Thanksgiving", "http://www.adoptaturkey.org/aat/issues/thanksgiving.html");        
        
        var menu3 = ms.addMenu(document.getElementById("menu3"));
        menu3.addItem("Action Alerts", "http://www.adoptaturkey.org/aat/take_action/index.html");
		menu3.addItem("Vegan Potluck", "http://www.adoptaturkey.org/aat/take_action/potlucks.html");
        menu3.addItem("Letters for Turkeys", "http://www.adoptaturkey.org/aat/take_action/letters.html");
        menu3.addItem("Ad Sponsorships", "http://www.adoptaturkey.org/aat/take_action/ads.html");   
		menu3.addItem("PSA Placements", "http://www.adoptaturkey.org/aat/take_action/psa.html");
		menu3.addItem("Order Literature", "http://www.adoptaturkey.org/aat/take_action/literature.html");		
        
        var menu4 = ms.addMenu(document.getElementById("menu4"));
        menu4.addItem("Press Releases", "http://www.adoptaturkey.org/aat/media_center/index.html");
        menu4.addItem("FAQ", "http://www.adoptaturkey.org/aat/media_center/faq.html");
        menu4.addItem("About the Project", "http://www.adoptaturkey.org/aat/media_center/about.html");
		menu4.addItem("Rescue Stories", "http://www.adoptaturkey.org/aat/media_center/rescue.html");
		menu4.addItem("Celebrity Endorsements", "http://www.adoptaturkey.org/aat/media_center/celebrity.html");
		menu4.addItem("Photos", "http://www.adoptaturkey.org/aat/media_center/photos.html");
		menu4.addItem("Videos & PSAs", "http://www.adoptaturkey.org/aat/media_center/video.html");
		menu4.addItem("Ads", "http://www.adoptaturkey.org/aat/media_center/ads.html");
        
        var menu5 = ms.addMenu(document.getElementById("menu5"));
        menu5.addItem("Introduction", "http://www.adoptaturkey.org/aat/recipes/index.html");
		menu5.addItem("Appetizers", "http://www.adoptaturkey.org/aat/recipes/appetizers.html");
        menu5.addItem("Main Dishes", "http://www.adoptaturkey.org/aat/recipes/mains.html");
        menu5.addItem("Side Dishes", "http://www.adoptaturkey.org/aat/recipes/sides.html");
		menu5.addItem("Gravies & Dressings", "http://www.adoptaturkey.org/aat/recipes/gravies.html");
		menu5.addItem("Desserts", "http://www.adoptaturkey.org/aat/recipes/desserts.html");
        
        var menu6 = ms.addMenu(document.getElementById("menu6"));
		menu6.addItem("Attend a Celebration", "http://www.adoptaturkey.org/aat/celebration/index.html");
		menu6.addItem("Acton, CA Celebration", "http://animalacres.org/events/");
		menu6.addItem("Watkins Glen, NY Celebration", "http://www.farmsanctuary.org/farm/calendar/celebrations/ny.html");
		menu6.addItem("Orland, CA Celebration", "http://www.farmsanctuary.org/farm/calendar/celebrations/ca.html");
		
        
            
    
        
        //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();
	}

