/*
*		Javascript MENU ITEM TEMPLATE ::
*			* Div for BG hover
*			* Image widget thing for item bullet
*			* Href/Link Text
				* menu1[0]='<div class=hoverItem onmouseOver="hoverThis(this,1);" onmouseOut="hoverThis(this,0);">
*				  <img src=/images/hover_widget.gif border=0 align=absMiddle hspace=4>&nbsp;
*				  <a href="#">Advantages</a>
*				  '
*
*/
//Contents for menu 1 -- News
var aboutUs=new Array()
aboutUs[0]='<a href="javascript:openScrapbook();">Earthbound Farm Scrapbook</a><BR>'
aboutUs[1]='<a href="/AboutUs/OurMission.aspx">Our Mission</a><BR>'
aboutUs[2]='<a href="/AboutUs/EnvironmentalStewardship/index.aspx">Environmental Stewardship</a><BR>'
aboutUs[3]='<a href="/AboutUs/GrowSomethingGreen/index.aspx">Grow Something Green</a><BR>'
aboutUs[4]='<a href="/AboutUs/HealthyFamilies.aspx">Healthy Families</a><BR>'
aboutUs[5]='<a href="/AboutUs/GivingBack.aspx">Giving Back</a><BR>'
aboutUs[6]='<a href="/AboutUs/InTheNews.aspx">In the News</a><BR>'
aboutUs[7]='<a href="/AboutUs/MediaKit.aspx">Media Kit</a><BR>'
aboutUs[8]='<a href="/AboutUs/Employment.aspx">Employment</a><BR>'
aboutUs[9]='<a href="/AboutUs/FAQs.aspx">FAQ</a><BR>'
aboutUs[10]='<a href="/AboutUs/ContactUs.aspx">Contact Us</a><BR>'

//Opps
var ourFarmStand=new Array()
ourFarmStand[0]='<a href="/OurFarmStand/VisitOurFarmStand.aspx">Visit Our Farm Stand</a><BR>'
ourFarmStand[1]='<a href="/OurFarmStand/EarthboundFarm-FarmStandEvents-2010.pdf">2010 Saturday Events</a><BR>'
ourFarmStand[2]='<a href="/OurFarmStand/OrganicKitchen.aspx">Organic Kitchen</a><BR>'
ourFarmStand[3]='<a href="/eNews/index.html">Farm Stand eNews</a><BR>'
ourFarmStand[4]='<a href="/OurFarmStand/PumpkinID.aspx">Squash &amp; Pumpkin ID Chart</a><BR>'
ourFarmStand[5]='<a href="http://www.ebfarmstore.com">Shop Online</a><BR>'

//Contents for menu 2, and so on -- About
var whyOrganic=new Array()
whyOrganic[0]='<a href="/WhyOrganic/Organic101.aspx">Organic 101</a><BR>'
whyOrganic[1]='<a href="/WhyOrganic/MeetOurFarmers/index.aspx">Meet Our Farmers</a><BR>'
whyOrganic[2]='<a href="/WhyOrganic/OrganicQuiz.aspx">Test Your Knowledge &amp; Win</a><BR>'
whyOrganic[3]='<a href="/WhyOrganic/OrganicLibrary.aspx">Organic Library</a><BR>'
whyOrganic[4]='<a href="/WhyOrganic/JustForKids.aspx">Just For Kids</a><BR>'
whyOrganic[5]='<a href="javascript:openSlideShow();">Virtual Farm Tour</a><BR>'

//-- Browwse
var products=new Array()
products[0]='<a href="/Products/QualityFoodSafety.aspx">Quality &amp; Food Safety</a><BR>'
products[1]='<a href="/Products/FreeStuffAndMore.aspx">Free Stuff &amp; More</a><BR>'
products[2]='<a href="/Products/KidsQuoteContest.aspx">Kids&rsquo; Quote Contest</a><BR>'
products[3]='<a href="/Products/PocketGuide.aspx">Pocket Guide</a><BR>'
products[4]='<a href="/Products/NewProducts/index.aspx">New Products</a><BR>'
products[5]='<a href="/Products/Salad/index.aspx">Organic Salads</a><BR>'
products[6]='<a href="/Products/Vegetables/index.aspx">Organic Vegetables</a><BR>'
products[7]='<a href="/Products/Fruit/index.aspx">Organic Fruit</a><BR>'
products[8]='<a href="/Products/DriedFruit/index.aspx">Organic Dried Fruit</a><BR>'
products[9]='<a href="/Products/Snacks/index.aspx">Organic Snacks</a><BR>'
products[10]='<a href="/Products/CookiesGranola/index.aspx">Organic Cookies &amp; Granola</a><BR>'
products[11]='<a href="/Products/Juice/index.aspx">Organic Juice</a><BR>'
products[12]='<a href="/Products/ProductStorage.aspx">Product Storage</a><BR>'
products[13]='<a href="/Products/WhereToBuy.aspx">Where to Buy</a><BR>'
products[14]='<a href="/Products/Feedback.aspx">Product Feedback</a><BR>'

// Fans
var recipes=new Array()
recipes[0]='<a href="/Recipes/TheEarthboundCook.aspx">NEW! Cookbooks</a><BR>'
recipes[1]='<a href="/Recipes/AskAshley.aspx">Ask Ashley, Registered Dietitian</a><BR>'
recipes[2]='<a href="/Recipes/IngredientArchive.aspx">Ingredient Archive</a><BR>'
recipes[3]='<a href="/Recipes/CookingAndKids.aspx">Cooking and Kids</a><BR>'
recipes[4]='<a href="/Recipes/EverydayOrganicVideo.aspx">Everyday Organic Video</a><BR>'
recipes[5]='<a href="/Recipes/CookingTips.aspx">Cooking Tips</a><BR>'
recipes[6]='<a href="/Recipes/FeaturedChefs.aspx">Featured Chefs</a><BR>'
recipes[7]='<a href="/Recipes/SaladID.aspx">Salad ID Chart</a><BR>'
recipes[8]='<a href="/Recipes/HerbID.aspx">Herb ID Chart</a><BR>'

// Bands
var trade=new Array()
trade[0]='<a href="http://www.ebfarmtrade.com">Trade Site</a><BR>'
trade[1]='<a href="/Trade/FoodserviceProducts.aspx">Foodservice Products</a><BR>'
trade[2]='<a href="/Trade/SalesContacts.aspx">Sales Contacts</a><BR>'
trade[3]='<a href="/Trade/ShippingInformation.aspx">Shipping Information</a><BR>'

//************************These are functions for some of the menu item js calls


var context = (location.href.indexOf('staging') != -1) ? "/staging" : "";
var newWindow;

function openScrapbook(URLtoOpen, windowName, windowFeatures) {
if (newWindow && !newWindow.closed) {newWindow.focus();}
else {newWindow=window.open(context+'/scrapbook/index.aspx', 'scrapbook', 'height=478,width=781,toolbar=no,scrollbars=no');
if (!newWindow) location.href = context+"/popWarning.htm";}
}

var regularWindow;

function openSlideShow(height, width) {
	if (!height) height = 536;
	if (!width) width = 746;
	xLeft = (screen.width) ? (screen.width-width)/2 : 0;
	yTop = (screen.height) ? (screen.height-height)/2 : 0;
	if (regularWindow && !regularWindow.closed) {
		regularWindow.focus();
	} else {
		regularWindow = 'window.open(context+"/slideShow/slideShow.htm", "regularWindow", "height='+height+',width='+width+',' +
		'status=no,scrollbars=no,resizable=no,toolbar=no,copyhistory=no,location=no,left='+xLeft+',top='+yTop+',screenX='+xLeft+',screenY='+yTop+'")';
		regularWindow = eval(regularWindow);
		if (regularWindow == null) {
			//alert("Please disable popup blocking for this site to view this feature.");
			location.href = context+"/popWarning.htm";
		} else {
			regularWindow.focus();
		}
	}
}


