//debugger;
$(function() {
	$("#ctl00_uctlGlobalNavControl_txtSearch").mousedown(function() {
		
		$("#cntr_header_search").bind("mouseleave",function() {
			hideSearch();
		}).slideDown();
	});
	
	$(".link_poll_close").click(function() {
		$("#cntr_home_poll_close,#poll_view_results,#cntr_home_poll_select,#cntr_home_poll_results,#cntr_poll_view_results").hide();
		$("#cntr_home_poll_area").slideUp();
		$("#cntr_home_poll_notice").slideDown();
		$("#lnk_poll_vote").fadeIn();
		return false;
	});
	
	$("#lnk_poll_select").click(function() {
		$("#cntr_home_poll_notice").slideUp(function(){$("#cntr_home_poll_area").slideDown(function(){$("#cntr_home_poll_close,#cntr_poll_view_results,#cntr_home_poll_select,#cntr_poll_vote").fadeIn();});});
		return false;
	});
	
	$("#cntr_poll_view_results").click(function() {
		$("#cntr_home_poll_select,#cntr_poll_view_results,#cntr_poll_vote").fadeOut(function(){$("#cntr_home_poll_results").fadeIn();});
		return false;
	});
		
});

function hideSearch() {
	$("#cntr_header_search").slideUp();
}

function showResults() {
	setTimeout("showResultsUi()", 2000);
}

function showResultsUi() {
	$("#cntr_poll_view_results").hide();
	$("#lnk_poll_vote").hide(); 	
	$("#cntr_home_poll_select,#cntr_poll_view_results,#cntr_poll_vote").fadeOut(function(){$("#cntr_home_poll_results").fadeIn();});
	$("#lnk_poll_select").click(function() {
		$("#cntr_home_poll_notice").slideUp(function(){$("#cntr_home_poll_area").slideDown(function(){$("#cntr_home_poll_close,#cntr_poll_view_results,#cntr_home_poll_select,#cntr_poll_vote").fadeIn();});});
		return false;
	});
	$("#cntr_poll_view_results").click(function() {
		$("#cntr_home_poll_select,#cntr_poll_view_results,#cntr_poll_vote").fadeOut(function(){$("#cntr_home_poll_results").fadeIn();});
		return false;
	});
}

function getQueryStringValue(ji) 
{
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i=0;i<gy.length;i++) 
    {
        ft = gy[i].split("=");
        if (ft[0] == ji) 
        {
            return ft[1];
        }   
    }
}

/*
flavor forecast
*/

$(function() {
    flavor_forecast.init();
});

var flavor_forecast = {
    pairings: [
		{
		    description: "<b>Exciting layers of spicy and sour.</b> The combination of roasted ginger and rhubarb shakes up traditional barbecue sauces or chunky chutneys for roasted meats. Their tangy punch also accents grilled fish preparations and updated takes on favorite desserts.",
		    url: "/Recipes/Main-Dish/Hot-and-Sour-Tilapia-with-Gingered-Rhubarb-Sauce.aspx?icid=FF2010_Roasted-Ginger-and-Rhubarb_Hot-Sour-Tilapia-with-Gingered-Rhubarb-Sauce",
		    links: [
				{
				    text: "Roasted Ginger and Rhubarb Upside Down Cake",
				    url: "/Recipes/Desserts/Roasted-Ginger-and-Rhubarb-Upside-Down-Cake.aspx?icid=FF2010_Roasted-Ginger-and-Rhubarb_Roasted-Ginger-and-Rhubarb-Upside-Down-Cake"
				},
				{
				    text: "Hot &amp; Sour Tilapia with Gingered Rhubarb Sauce",
				    url: "/Recipes/Main-Dish/Hot-and-Sour-Tilapia-with-Gingered-Rhubarb-Sauce.aspx?icid=FF2010_Roasted-Ginger-and-Rhubarb_Hot-Sour-Tilapia-with-Gingered-Rhubarb-Sauce"
				}
			],
		    caption: "Hot &amp; Sour Tilapia with Gingered Rhubarb Sauce"
		},
		{
		    description: "<b>A sweet, refreshing balance.</b> A watermelon margarita spiked with Thai basil is a refreshing way to start a meal. Savor a cucumber, watermelon and Thai basil gazpacho or fresh salad, accented by salty feta cheese. Try intensifying the melon&rsquo;s sweetness even further by an unexpected quick trip to the grill, where watermelon accents light proteins like shrimp and fish.",
		    url: "/Recipes/Beverages/Thai-Basil-and-Watermelon-Slushie.aspx?icid=FF2010_Thai-Basil-and-Watermelons_Thai-Basil-and-Watermelon-Slushie",
		    links: [
				{
				    text: "Grilled Watermelon and Shrimp Skewers",
				    url: "/Recipes/Appetizers-Snacks/Grilled-Watermelon-and-Shrimp-Skewers.aspx?icid=FF2010_Thai-Basil-and-Watermelons_Grilled-Watermelon-and-Shrimp-Skewers"
				},
				{
				    text: "Thai Basil and Watermelon Slushie",
				    url: "/Recipes/Beverages/Thai-Basil-and-Watermelon-Slushie.aspx?icid=FF2010_Thai-Basil-and-Watermelons_Thai-Basil-and-Watermelon-Slushie"
				},
				{
				    text: "Watermelon Salad with Thai Basil and Feta",
				    url: "/Recipes/Salads/Watermelon-Salad-with-Thai-Basil-and-Feta.aspx?icid=FF2010_Thai-Basil-and-Watermelons_Watermelon-Salad-with-Thai-Basil-and-Feta"
				}				
			],
		    caption: ""
		},
		{
		    description: "<b>North meets South for a distinctive peppery bite.</b> Discover this combination in the company of grains or beans, in soups and stews, or in a brisket with caraway and horseradish. A quick saut&eacute; of just-wilted greens with garlic and olive oil makes a simple and satisfying side dish. Or, a peach and caraway-spiked dressing is a perfect match for a salad of grilled radicchio and endive.",
		    url: "/Recipes/Salads/Grilled-Bitter-Greens-with-Caraway-and-Peach.aspx?icid=FF2010_Caraway-and-Bitter-Greens_Grilled-Bitter-Greens-with-Caraway-Peach",
		    links: [
				{
				    text: "Arugula-Caraway Pesto Pasta",
				    url: "/Recipes/Main-Dish/Arugula-Caraway-Pesto-Pasta.aspx?icid=FF2010_Caraway-and-Bitter-Greens_Arugula-Caraway-Pesto-Pasta"
				},
				{
				    text: "Caraway Corn Risotto with Bitter Greens",
				    url: "/Recipes/Main-Dish/Caraway-Corn-Risotto-with-Bitter-Greens.aspx?icid=FF2010_Caraway-and-Bitter-Greens_Caraway-Corn-Risotto-with-Bitter-Greens"
				},
				{
				    text: "Grilled Bitter Greens with Caraway & Peach",
				    url: "/Recipes/Salads/Grilled-Bitter-Greens-with-Caraway-and-Peach.aspx?icid=FF2010_Caraway-and-Bitter-Greens_Grilled-Bitter-Greens-with-Caraway-Peach"
				}
			],
		    caption: "Grilled Bitter Greens with Caraway and Peach"
		},
		{
		    description: "<b>Slowly coaxed flavor worth the wait.</b> Perfect in a braised tagine or simple roast chicken, this duo is also beautiful with seafood, pasta and grains. Equally appealing in sweet applications, bay leaves are a subtle complement to preserved lemon gelato or rice pudding.",
		    url: "/Recipes/Main-Dish/Lemon-Bay-Tortellini-with-Spinach-and-Wild-Mushrooms.aspx?icid=FF2010_Bay-Leaf-and-Preserved-Lemon_Lemon-Bay-Tortellini-with-Spinach-Wild-Mushrooms",
		    links: [
				{
				    text: "Bay Leaf-Infused Preserved Lemons",
				    url: "/Recipes/Gravy-Sauce-Condiment/Bay-Leaf-Infused-Preserved-Lemons.aspx?icid=FF2010_Bay-Leaf-and-Preserved-Lemon_Bay-Leaf-Infused-Preserved-Lemons"
				},
				{
				    text: "Lemon Twist Rice Pudding",
				    url: "/Recipes/Desserts/Lemon-Twist-Rice-Pudding.aspx?icid=FF2010_Bay-Leaf-and-Preserved-Lemon_Lemon-Twist-Rice-Pudding"
				},
				{
				    text: "Simmered Moroccan Chicken with Preserved Lemon",
				    url: "/Recipes/Main-Dish/Simmered-Moroccan-Chicken-with-Preserved-Lemon.aspx?icid=FF2010_Bay-Leaf-and-Preserved-Lemon_Simmered-Moroccan-Chicken-with-Preserved-Lemon"
				},
				{
				    text: "Preserved Lemon Couscous",
				    url: "/Recipes/Side-Dish/Preserved-Lemon-Couscous.aspx?icid=FF2010_Bay-Leaf-and-Preserved-Lemon_Preserved-Lemon-Couscous"
				},
				{
				    text: "Roast Chicken with Preserved Lemon &amp; Bay Leaves",
				    url: "/Recipes/Main-Dish/Roast-Chicken-with-Preserved-Lemon-and-Bay-Leaves.aspx?icid=FF2010_Bay-Leaf-and-Preserved-Lemon_Roast-Chicken-with-Preserved-Lemon-Bay-Leaves"
				},
				{
				    text: "Lemon-Bay Tortellini with Spinach &amp; Wild Mushrooms",
				    url: "/Recipes/Main-Dish/Lemon-Bay-Tortellini-with-Spinach-and-Wild-Mushrooms.aspx?icid=FF2010_Bay-Leaf-and-Preserved-Lemon_Lemon-Bay-Tortellini-with-Spinach-Wild-Mushrooms"
				}
			],
		    caption: "Lemon-Bay Tortellini with Spinach &amp; Wild Mushrooms"
		},
		{
		    description: "<b>A congenial and cozy pair.</b> Blurring the lines between barroom and kitchen, the twosome works well together in any course &mdash; from cocktails and salads to meat entr&eacute;es and desserts. Chef-inspired interpretations include a gutsy marinade for pork and chicken, a lush twist for baked apples and even a grown-up almond-ale milkshake.",
		    url: "/Recipes/Main-Dish/Sloppy-Joe-Sliders.aspx?icid=FF2010_Almond-and-Ale_Sloppy-Joe-Sliders",
		    links: [
				{
				    text: "Almond-Ale Roasted Apples",
				    url: "/Recipes/Desserts/Ale-Almond-Roasted-Apples.aspx?icid=FF2010_Almond-and-Ale_Almond-Ale-Roasted-Apples"
				},
				{
				    text: "Almond-Ale Spritzer",
				    url: "/Recipes/Beverages/Almond-Ale-Spritzer.aspx?icid=FF2010_Almond-and-Ale_Almond-Ale-Spritzer"
				},
				{
				    text: "Sloppy Joe Sliders",
				    url: "/Recipes/Main-Dish/Sloppy-Joe-Sliders.aspx?icid=FF2010_Almond-and-Ale_Sloppy-Joe-Sliders"
				}
			],
		    caption: ""
		},
		{
		    description: "<b>A colorful, healthful blend that&rsquo;s always in season.</b> Incorporate this functional pairing in a turmeric-spiced grilled chicken topped with Indian-style tomato salsa, or make turmeric mayonnaise for a memorable BLT. Turmeric-tomato sauce adds a vibrant, nourishing layer on globally inspired flatbreads.",
		    url: "/Recipes/Main-Dish/Turmeric-Spiced-Chicken-with-Tomato-Avocado-Salsa.aspx?icid=FF2010_Turmeric-and-Vine-Ripened-Tomatoes_Turmeric-Spiced-Chicken-with-Tomato-Avocado-Salsa",
		    links: [
				{
				    text: "Grilled Indian-Spiced Flatbread",
				    url: "/Recipes/Main-Dish/Grilled-Indian-Spiced-Flatbread.aspx?icid=FF2010_Turmeric-and-Vine-Ripened-Tomatoes_Grilled-Indian-Spiced-Flatbread"
				},
				{
				    text: "Turmeric-Roasted Cauliflower and Tomatoes",
				    url: "/Recipes/Vegetables/Turmeric-Roasted-Cauliflower-and-Tomatoes.aspx?icid=FF2010_Turmeric-and-Vine-Ripened-Tomatoes_Turmeric-Roasted-Cauliflower-and-Tomatoes"
				},
				{
				    text: "Turmeric-Spiced Chicken with Tomato-Avocado Salsa",
				    url: "/Recipes/Main-Dish/Turmeric-Spiced-Chicken-with-Tomato-Avocado-Salsa.aspx?icid=FF2010_Turmeric-and-Vine-Ripened-Tomatoes_Turmeric-Spiced-Chicken-with-Tomato-Avocado-Salsa"
				}
			],
		    caption: "Turmeric-Spiced Chicken with Tomato-Avocado Salsa"
		},
		{
		    description: "<b>Comfortably exotic.</b> Chefs and home cooks like the duo&rsquo;s broad possibilities in a range of soups, sauces and sweets. On the grill, they&rsquo;re a full-bodied marinade for a Caribbean twist on chicken. For dessert, they offer a new take on mousse, cheesecake or bread pudding.",
		    url: "/Recipes/Desserts/Mix-and-Match-Spiced-Mousse-Minis.aspx?icid=FF2010_Pumpkin-Pie-Spice-and-Coconut-Milk_Mix-and-Match-Spiced-Mousse-Minis",
		    links: [
		        {
		            text: "Caribbean Chicken with Mango Coconut Sauce ",
		            url: "/Recipes/Main-Dish/Caribbean-Chicken-with-Mango-Coconut-Sauce.aspx?icid=FF2010_Pumpkin-Pie-Spice-and-Coconut-Milk_Caribbean-Chicken-with-Mango-Coconut-Sauce"
		        },
		         {
		             text: "Coconut Tres Leches Cake ",
		             url: "/Recipes/Desserts/Coconut-Tres-Leches-Cake.aspx?icid=FF2010_Pumpkin-Pie-Spice-and-Coconut-Milk_Coconut-Tres-Leches-Cake"
		         },
		          {
		              text: "Mix-and-Match Spiced Mousse Minis",
		              url: "/Recipes/Desserts/Mix-and-Match-Spiced-Mousse-Minis.aspx?icid=FF2010_Pumpkin-Pie-Spice-and-Coconut-Milk_Mix-and-Match-Spiced-Mousse-Minis"
		          },
		           {
		               text: "Spiced Hot Chocolate with Coconut Milk",
		               url: "/Recipes/Beverages/Spiced-Hot-Chocolate-with-Coconut-Milk.aspx?icid=FF2010_Pumpkin-Pie-Spice-and-Coconut-Milk_Spiced-Hot-Chocolate-with-Coconut-Milk"
		           },
		            {
		                text: "Warm Oatmeal with Pumpkin Pie Spice and Coconut Milk",
		                url: "/Recipes/Breakfast-Brunch/Warm-Oatmeal-with-Pumpkin-Pie-Spice-and-Coconut-Milk.aspx?icid=FF2010_Pumpkin-Pie-Spice-and-Coconut-Milk_Warm-Oatmeal-with-Pumpkin-Pie-Spice-and-Coconut-Milk"
		            },	
				{
				    text: "Pumpkin Pie Spiced Pina Colada ",
				    url: "/Recipes/Beverages/Pumpkin-Pie-Spiced-Pina-Colada.aspx?icid=FF2010_Pumpkin-Pie-Spice-and-Coconut-Milk_Pumpkin-Pie-Spiced-Pina-Colada"
				}
			],
		    caption: "Mix-and-Match Spiced Mousse Minis"
		},
		{
		    description: "<b>A warm and earthy Mediterranean duet.</b> Beyond playing an indispensible role in hummus and Indian curries, this globetrotting duo reinvents everything from French cassoulet to all-American pork and beans. Vegetarian dishes like a warm chickpea salad with roasted cumin vinaigrette or a cumin-spiked lentil and chickpea soup are a deeply satisfying main course.",
		    url: "/Recipes/Casseroles/Shepherds-Pie-with-Cumin-and-Smashed-Chickpeas.aspx?icid=FF2010_Roasted-Cumin-and-Chickpeas_Shepherds-Pie-with-Cumin-Smashed-Chickpeas",
		    links: [
				{
				    text: "Roasted Cumin and Chickpea Cassoulet",
				    url: "/Recipes/Main-Dish/Roasted-Cumin-and-Chickpea-Cassoulet.aspx?icid=FF2010_Roasted-Cumin-and-Chickpeas_Roasted-Cumin-and-Chickpea-Cassoulet"
				},
				{
				    text: "Warm Roasted Cumin &amp; Chickpea Salad",
				    url: "/Recipes/Salads/Warm-Roasted-Cumin-and-Chickpea-Salad.aspx?icid=FF2010_Roasted-Cumin-and-Chickpeas_Warm-Roasted-Cumin-Chickpea-Salad"
				},
				{
				    text: "Shepherd&rsquo;s Pie with Cumin &amp; Smashed Chickpeas",
				    url: "/Recipes/Casseroles/Shepherds-Pie-with-Cumin-and-Smashed-Chickpeas.aspx?icid=FF2010_Roasted-Cumin-and-Chickpeas_Shepherds-Pie-with-Cumin-Smashed-Chickpeas"
				}
			],
		    caption: "Shepherd&rsquo;s Pie with Cumin & Smashed Chickpeas"
		},
		{
		    description: "<b>Vibrant spirit of the Gulf Coast.</b> Swirling a bit of Creole mustard into batter for fried shellfish adds a welcome kick. Simply mixed with olive oil, lemon juice, honey and a few drops of hot sauce, a Creole mustard dressing is a knockout in a southern style ceviche. It also adds a zesty twist to reinterpretations of southern staples like fried green tomatoes.",
		    url: "/Recipes/Appetizers-Snacks/Fried-Green-Tomatoes-with-Crab-and-Creole-Mustard.aspx?icid=FF2010_Creole-Mustard-and-Shellfish_Fried-Green-Tomatoes-with-Crab-Creole-Mustard",
		    links: [
				{
				    text: "Shrimp with Remoulade Dipping Sauce",
				    url: "/Recipes/Appetizers-Snacks/Shrimp-with-Remoulade-Dipping-Sauce.aspx?icid=FF2010_Creole-Mustard-and-Shellfish_Shrimp-with-Remoulade-Dipping-Sauce"
				},
				{
				    text: "Big Easy Shrimp with Creamy Creole Mustard Sauce",
				    url: "/Recipes/Main-Dish/Big-Easy-Shrimp-with-Creamy-Creole-Mustard-Sauce.aspx?icid=FF2010_Creole-Mustard-and-Shellfish_Big-Easy-Shrimp-with-Creamy-Creole-Mustard-Sauce"
				},
				{
				    text: "Fried Green Tomatoes with Crab &amp; Creole Mustard",
				    url: "/Recipes/Appetizers-Snacks/Fried-Green-Tomatoes-with-Crab-and-Creole-Mustard.aspx?icid=FF2010_Creole-Mustard-and-Shellfish_Fried-Green-Tomatoes-with-Crab-Creole-Mustard"
				}
			],
		    caption: "Fried Green Tomatoes with Crab &amp; Creole Mustard"
		},
		{
		    description: "<b>Savory fusion of French and Asian cuisines.</b> Noodle bowls and marinades or dipping sauces for meat skewers are a natural choice to marry fish sauce and a liberal helping of chives. The pair also put a dynamic spin on red wine vinaigrette for fresh vegetable salads or drizzled on simply steamed fish.",
		    url: "/Recipes/Gravy-Sauce-Condiment/Thai-Style-Bolognese.aspx?icid=FF2010_Chives-and-Fish-Sauce_Thai-Style-Bolognese",
		    links: [
				{
				    text: "Asian Vegetables and Noodles with Peanut Sauce",
				    url: "/Recipes/Main-Dish/Asian-Vegetables-and-Noodles-with-Peanut-Sauce.aspx?icid=FF2010_Chives-and-Fish-Sauce_Asian-Vegetables-and-Noodles-with-Peanut-Sauce"
				},
				{
				    text: "Deconstructed Spring Roll Salad",
				    url: "/Recipes/Appetizers-Snacks/Deconstructed-Spring-Roll-Salad.aspx?icid=FF2010_Chives-and-Fish-Sauce_Deconstructed-Spring-Roll-Salad"
				},
				{
				    text: "Thai-Style &ldquo;Bolognese&rdquo;",
				    url: "/Recipes/Gravy-Sauce-Condiment/Thai-Style-Bolognese.aspx?icid=FF2010_Chives-and-Fish-Sauce_Thai-Style-Bolognese"
				}
			],
		    caption: ""
		}
	],
    init: function() {
        this.bind();
    },
    bind: function() {
        this.toggle();
    },
    toggle: function() {
        var obj = this;

        $("div#flavor_forecast div.left_ff ul a").mouseover(function() {
            var id = $(this).attr("id");
            id = id.split("pairing_item_");
            id = parseInt(id[1]) - 1;

            var links = "";

            for (var i = 0; obj.pairings[id].links[i]; i++)
                links += "<li><a href=\"" + obj.pairings[id].links[i].url + "\">" + obj.pairings[id].links[i].text + "</a></li>";

            $("#flavor_forecast .left_ff ul a").removeClass();
            $(this).addClass("active");

            $("div#flavor_forecast div#pairings").removeClass();
            $("div#flavor_forecast div#pairings").addClass("scheme_" + (id + 1)); //switch color scheme

            $("div#flavor_forecast div#pairings div#description div.top img").attr("src", "/MCC/images/flavor_forecast/title_" + (id + 1) + ".gif"); //switch title image
            $("div#flavor_forecast div#pairings div#description div.middle p").html(obj.pairings[id].description); //switch pairing description
            $("div#flavor_forecast div#pairings div#description div.bottom_ff ul").html(links); //switch pairing links

            $("div#flavor_forecast div#pairings div#image div.top a").attr("href", obj.pairings[id].url);           
            $("div#flavor_forecast div#pairings div#image div.top a img").attr("src", "/MCC/images/flavor_forecast/pairing_" + (id + 1) + ".jpg"); //switch recipe image
            $("div#flavor_forecast div#pairings div#image div.caption a").attr("href", obj.pairings[id].url);
            $("div#flavor_forecast div#pairings div#image div.caption a p").html(obj.pairings[id].caption) //switch recipe image caption
        });
    }
}

/*
flavor forecast 2011
*/

$(function() {
    flavor_forecast_2011.init();
});

var flavor_forecast_2011 = {
    pairings_2011: [
		{
		    description: "<b>Perfectly preserved flavor.</b> This dynamic pair serves up bright layers of tang and spice. Rooted in the renaissance of all things pickled, the aromatic two-some lends itself to much more than pickling. ",
		    url: "http://www.mccormick.com/Recipes/Appetizers-Snacks/Marinated-Shrimp-with-Mango-and-Radishes.aspx",
		    links: [
				{
				    text: "Asian Refrigerator Pickles",
				    url: "http://www.mccormick.com/Recipes/Gravy-Sauce-Condiment/Asian-Refrigerator-Pickles.aspx?icid=FF2011_Asian_Refrigerator_Pickles"
				},
				{
				    text: "Bahn Mi",
				    url: "http://www.mccormick.com/Recipes/Main-Dish/Bahn-Mi.aspx?icid=FF2011_Bahn_Mi"
				},
				{
				    text: "Marinated Shrimp with Mango and Radishes",
				    url: "http://www.mccormick.com/Recipes/Appetizers-Snacks/Marinated-Shrimp-with-Mango-and-Radishes.aspx?icid=FF2011_Marinated_Shrimp_with_Mango_and_Radishes"
				},
				{
				    text: "Quick-Brined Pork Chops and Apple Slaw",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Quick-Brined-Pork-Chops-and-Apple-Slaw.aspx?icid=FF2011_Quick_Brined_Pork_Chops_and_Apple_Slaw"
				},
				{
				    text: "Slow Cooker Asian-Style Sour Beef Short Ribs",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Slow-Cooker-Asian-Style-Sour-Beef-Short-Ribs.aspx?icid=FF2011_Slow_Cooker_Asian_Style_Sour_Beef_Short_Ribs"
				}
			],
		    caption: "Marinated Shrimp with Mango and Radishes"
		},
		{
		    description: "<b>A global rush for the senses.</b> Fennel is a cool counterpoint to the fiery kick of peri-peri (or piri-piri). As the desire for bold flavor adventure builds, this Mediterranean-African combo hits the mark.",
		    url: "javascript:void(0);",
		    links: [
				{
				    text: "Clams and Mussels Peri-Peri",
				    url: "http://www.mccormick.com/Recipes/Main-Dish/Clams-and-Mussels-Peri-Peri.aspx?icid=FF2011_Clams_and_Mussels_Peri_Peri"
				},
				{
				    text: "Fennel Lamb Burgers with Peri-Peri Romesco Sauce",
				    url: "http://www.mccormick.com/Recipes/Main-Dish/Fennel-Lamb-Burgers-with-Peri-Peri-Romesco-Sauce.aspx?icid=FF2011_Fennel_Lamb_Burgers_with_Peri_Peri_Romesco_Sauce"
				},
				{
				    text: "Peri-Peri Chicken Wings with Dipping Sauce",
				    url: "http://www.mccormickgourmet.com/Recipes/Appetizers-Snacks/Peri-Peri-Chicken-Wings-with-Dipping-Sauce.aspx?icid=FF2011_Peri_Peri_Chicken_Wings_with_Dipping_Sauce"
				},
				{
				    text: "Peri-Peri Fennel Bloody Mary with Vodka-Infused Tomatoes",
				    url: "http://www.mccormick.com/Recipes/Beverages/Peri-Peri-Fennel-Bloody-Mary-with-Vodka-Infused-Tomatoes.aspx?icid=FF2011_Peri_Peri_Fennel_Bloody_Mary_with_Vodka_Infused_Tomatoes"
				},
				{
				    text: "Peri-Peri and Fennel Spiced Nuts with Dried Fruits",
				    url: "http://www.mccormickgourmet.com/Recipes/Appetizers-Snacks/Peri-Peri-and-Fennel-Spiced-Nuts-with-Dried-Fruits.aspx?icid=FF2011_Peri_Peri_and_Fennel_Spiced_Nuts_with_Dried_Fruits"
				}
			],
		    caption: ""
		},
		{
		    description: "<b>A rich and earthy goodness.</b> This \"meaty\" match brings well-traveled tastes back home and delivers a powerful hit of umami<spam style='font-size:10pt;font-family:Arial;'>&ndash;</spam>versatile, nourishing and substantial enough to sit at the center of the plate.",
		    url: "http://www.mccormickgourmet.com/Recipes/Appetizers-Snacks/Curried-Chicken-and-Mushroom-Spring-Rolls.aspx",
		    links: [
				{
				    text: "Wild Mushroom Ragu with Pasta",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Wild-Mushroom-Ragu-with-Pasta.aspx?icid=FF2011_Wild_Mushroom_Ragu_with_Pasta"
				},
				{
				    text: "Curried Shrimp with Wild Mushrooms and Grits",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Curried-Shrimp-with-Wild-Mushrooms-and-Grits.aspx?icid=FF2011_Curried_Shrimp_with_Wild_Mushrooms_and_Grits"
				},
				{
				    text: "Curried Chicken &amp; Mushroom Spring Rolls",
				    url: "http://www.mccormickgourmet.com/Recipes/Appetizers-Snacks/Curried-Chicken-and-Mushroom-Spring-Rolls.aspx?icid=FF2011_Curried_Chicken_and_Mushroom_Spring_Rolls"
				},
				{
				    text: "Curried Wild Mushroom Samosas",
				    url: "http://www.mccormick.com/Recipes/Appetizers-Snacks/Curried-Wild-Mushroom-Samosas.aspx?icid=FF2011_Curried_Wild_Mushroom_Samosas"
				},
				{
				    text: "Curried Mushroom and Spinach Quesadillas",
				    url: "http://www.mccormickgourmet.com/Recipes/Appetizers-Snacks/Curried-Mushroom-and-Spinach-Quesadillas.aspx?icid=FF2011_Curried_Mushroom_and_Spinach_Quesadillas"
				}
			],
		    caption: "Curried Chicken &amp; Mushroom Spring Rolls"
		},
		{
		    description: "<b>Naturally complex and robust.</b> While this marriage of flavors may be a relatively new one to Western palates, it is rooted in the honest integrity of ingredients appreciated in many parts of the world.",
		    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Sweet-and-Smoky-Pork-and-Beans.aspx",
		    links: [
				{
				    text: "Sweet &amp; Smoky \"Pork and Beans\"",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Sweet-and-Smoky-Pork-and-Beans.aspx?icid=FF2011_Sweet_and_Smoky_Pork_and_Beans"
				},
				{
				    text: "Baklava Bites",
				    url: "http://www.mccormickgourmet.com/Recipes/Desserts/Baklava-Bites.aspx?icid=FF2011_Baklava_Bites"
				},
				{
				    text: "Aztecan-Style Adzuki Bean Soup with Roasted Chiles and Mexican Crema",
				    url: "http://www.mccormickgourmet.com/Recipes/Soups/Aztecan-Style-Adzuki-Bean-Soup-with-Roasted-Chiles-and-Mexican-Crema.aspx?icid=FF2011_Aztecan_Style_Adzuki_Bean_Soup_with_Roasted_Chiles_and_Mexican_Crema"
				}
			],
		    caption: "Sweet &amp; Smoky \"Pork and Beans\""
		},
		{
		    description: "<b>Vitality in bloom.</b> This energetic duo is a feast for the eyes and the taste buds. Tart, floral notes of exotic hibiscus, alongside the lingering heat of ancho chile pepper, create a lively Latin combo. ",
		    url: "http://www.mccormickgourmet.com/Recipes/Beverages/Ancho-Hibiscus-Sparkling-Sangria.aspx",
		    links: [
				{
				    text: "Hibiscus Ancho Sorbet",
				    url: "http://www.mccormickgourmet.com/Recipes/Desserts/Hibiscus-Ancho-Sorbet.aspx?icid=FF2011_Hibiscus_Ancho_Sorbet"
				},
				{
				    text: "Ancho-Hibiscus Sparkling Sangria",
				    url: "http://www.mccormickgourmet.com/Recipes/Beverages/Ancho-Hibiscus-Sparkling-Sangria.aspx?icid=FF2011_Ancho_Hibiscus_Sparkling_Sangria"
				},
				{
				    text: "Ancho Chile &amp; Hibiscus BBQ Brisket",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Ancho-Chile-and-Hibiscus-BBQ-Brisket.aspx?icid=FF2011_Ancho_Chile_and_Hibiscus_BBQ_Brisket"
				},
				{
				    text: "Chocolate Fudge Ancho Cupcakes with Hibiscus Buttercream Frosting",
				    url: "http://www.mccormickgourmet.com/Recipes/Desserts/Chocolate-Fudge-Ancho-Cupcakes-with-Hibiscus-Buttercream-Frosting.aspx?icid=FF2011_Chocolate_Fudge_Ancho_Cupcakes_with_Hibiscus_Buttercream_Frosting"
				}
			],
		    caption: "Ancho-Hibiscus Sparkling Sangria"
		},
		{
		    description: "<b>An exhilarating alliance.</b> With a tantalizing burst of refreshment, the minty character of adaptable thyme makes it a perfect partner for the sweet and sour flavors of stone fruits.",
		    url: "http://www.mccormick.com/Recipes/Main-Dish/Peach-and-Prosciutto-Panini-with-Thyme-Aioli.aspx",
		    links: [
				{
				    text: "Peach and Prosciutto Panini with Thyme Aioli",
				    url: "http://www.mccormick.com/Recipes/Main-Dish/Peach-and-Prosciutto-Panini-with-Thyme-Aioli.aspx?icid=FF2011_Peach_and_Prosciutto_Panini_with_Thyme_Aioli"
				},
				{
				    text: "Plum &amp; Brie Dessert Panini",
				    url: "http://www.mccormick.com/Recipes/Desserts/Plum-and-Brie-Dessert-Panini.aspx?icid=FF2011_Plum_and_Brie_Dessert_Panini"
				},
				{
				    text: "Peach-Gin Cocktail with Thyme Syrup",
				    url: "http://www.mccormick.com/Recipes/Beverages/Peach-Gin-Cocktail-with-Thyme-Syrup.aspx?icid=FF2011_Peach_Gin_Cocktail_with_Thyme_Syrup"
				},
				{
				    text: "Braised Chicken with Dried Plums, Olives and Capers",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Braised-Chicken-with-Dried-Plums-Olives-and-Capers.aspx?icid=FF2011_Braised_Chicken_with_Dried_Plums_Olives_and_Capers"
				}
			],
		    caption: "Peach and Prosciutto Panini with Thyme Aioli"
		},
		{
		    description: "<b>Cozy, retro charm.</b> These well-bred ingredients bring a graceful elegance and warmth. Echoing the spirit of French bistro chic, the \"old school cool\" couple goes contemporary in the hands of today's chefs.",
		    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Dirty-Martini-Steak-Kabobs.aspx",
		    links: [
				{
				    text: "Braised Lamb Shanks with Mustard, Fennel and Sweet Vermouth",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Braised-Lamb-Shanks-with-Mustard-Fennel-and-Sweet-Vermouth.aspx?icid=FF2011_Braised_Lamb_Shanks_with_Mustard_Fennel_and_Sweet_Vermouth"
				},
				{
				    text: "Mustard Seed Crusted Chicken with Vermouth Sauce",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Mustard-Seed-Crusted-Chicken-with-Vermouth-Sauce.aspx?icid=FF2011_Mustard_Seed_Crusted_Chicken_with_Vermouth_Sauce"
				},
				{
				    text: "Dirty Martini Steak Kabobs",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Dirty-Martini-Steak-Kabobs.aspx?icid=FF2011_Dirty_Martini_Steak_Kabobs"
				}
			],
		    caption: "Dirty Martini Steak Kabobs"
		},
		{
		    description: "<b>Feel-good, fresh comfort.</b> This ethnically diverse duo cuts a wide culinary swath across the globe<spam style='font-size:10pt;font-family:Arial;'>&ndash;</spam>with a taste that's simultaneously sweet and savory, hearty and herbaceous.",
		    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Coconut-Almond-Chicken-Stew-with-Cilantro.aspx",
		    links: [
				{
				    text: "Coconut - Almond Chicken Stew with Cilantro",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Coconut-Almond-Chicken-Stew-with-Cilantro.aspx?icid=FF2011_Coconut_Almond_Chicken_Stew_with_Cilantro"
				},
				{
				    text: "Chicken and Cilantro Pesto Pasta",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Chicken-and-Cilantro-Pesto-Pasta.aspx?icid=FF2011_Chicken_and_Cilantro_Pesto_Pasta"
				},
				{
				    text: "Spiced Jasmine Rice with Macadamia Nut Butter and Cilantro",
				    url: "http://www.mccormickgourmet.com/Recipes/Sides/Spiced-Jasmine-Rice-with-Macadamia-Nut-Butter-and-Cilantro.aspx?icid=FF2011_Spiced_Jasmine_Rice_with_Macadamia_Nut_Butter_and_Cilantro"
				},
				{
				    text: "Coffee-Rubbed Ribs with Mole Mop Sauce",
				    url: "http://www.mccormickgourmet.com/Recipes/Main-Dishes/Coffee-Rubbed-Ribs-with-Mole-Mop-Sauce.aspx?icid=FF2011_Coffee_Rubbed_Ribs_with_Mole_Mop_Sauce"
				}
			],
		    caption: "Coconut - Almond Chicken Stew with Cilantro"
		},
		{
		    description: "<b>A playful, worldly pop.</b> When a taste for fun meets a craving for crunch, this mash-up delivers in spades. The snack food staple is elevated to new culinary heights when paired with this aromatic Proven&ccedil;al blend.",
		    url: "http://www.mccormickgourmet.com/Recipes/Desserts/Cheesecake-Tart-with-Popcorn-Crust-and-Berries.aspx",
		    links: [
				{
				    text: "Cheesecake Tart with Popcorn Crust and Berries",
				    url: "http://www.mccormickgourmet.com/Recipes/Desserts/Cheesecake-Tart-with-Popcorn-Crust-and-Berries.aspx?icid=FF2011_Cheesecake_Tart_with_Popcorn_Crust_and_Berries"
				},
				{
				    text: "Salmon and Scallop Ceviche with Herbes de Provence Popcorn",
				    url: "http://www.mccormickgourmet.com/Recipes/Appetizers-Snacks/Salmon-and-Scallop-Ceviche-with-Herbes-de-Provence-Popcorn.aspx?icid=FF2011_Salmon_and_Scallop_Ceviche_with_Herbes_de_Provence_Popcorn"
				},
				{
				    text: "White Chocolate Caramel Popcorn",
				    url: "http://www.mccormickgourmet.com/Recipes/Appetizers-Snacks/White-Chocolate-Caramel-Popcorn.aspx?icid=FF2011_White_Chocolate_Caramel_Popcorn"
				}
			],
		    caption: "Cheesecake Tart with Popcorn Crust and Berries"
		},
		{
		    description: "<b>Creamy, tangy and piquant.</b> The delicate bite of lively green peppercorns is a pleasing and colorful contrast to lush and ultra-creamy goat's milk<spam style='font-size:10pt;font-family:Arial;'>&ndash;</spam>a farm-fresh duet that's full of subtle surprises.",
		    url: "http://www.mccormickgourmet.com/Recipes/Breakfast-Brunch/Baked-Eggs-with-Goat-Cheese-and-Green-Peppercorns.aspx",
		    links: [
				{
				    text: "Baked  Eggs with Goat Cheese and Green Peppercorns",
				    url: "http://www.mccormickgourmet.com/Recipes/Breakfast-Brunch/Baked-Eggs-with-Goat-Cheese-and-Green-Peppercorns.aspx?icid=FF2011_Breakfast_Brunch/Baked_Eggs_with_Goat_Cheese_and_Green_Peppercorns"
				},
				{
				    text: "Green Peppercorn Crusted Goat Cheese",
				    url: "http://www.mccormickgourmet.com/Recipes/Appetizers-Snacks/Green-Peppercorn-Crusted-Goat-Cheese.aspx?icid=FF2011_Green_Peppercorn_Crusted_Goat_Cheese"
				},
				{
				    text: "Green Peppercorn and Goat Cheese Wafers",
				    url: "http://www.mccormickgourmet.com/Recipes/Appetizers-Snacks/Green-Peppercorn-and-Goat-Cheese-Wafers.aspx?icid=FF2011_Green_Peppercorn_and_Goat_Cheese_Wafers"
				},
				{
				    text: "Creamy Goat Cheese Salad Dressing",
				    url: "http://www.mccormickgourmet.com/Recipes/Gravy-Sauce-Condiment/Creamy-Goat-Cheese-Salad-Dressing.aspx?icid=FF2011_Creamy_Goat_Cheese_Salad_Dressing"
				}			
			],
		    caption_2011: "Baked  Eggs with Goat Cheese and Green Peppercorns"
		}
	],
    init: function() {
        this.bind();
    },
    bind: function() {
        this.toggle();
    },
    toggle: function() {
        var obj = this;

        $("div#flavor_forecast_2011 div.left_ff_2011 ul li a").mouseover(function() {
            var id = $(this).attr("id");
            id = id.split("pairing_item_");
	
            id = parseInt(id[1]) - 1 ;
            var links = "";
//alert(obj.pairings_2011[id].links[0]);

            for (var i = 0; obj.pairings_2011[id].links[i]; i++)
                links += "<li><a href=\"" + obj.pairings_2011[id].links[i].url + "\">" + obj.pairings_2011[id].links[i].text + "</a></li>";

            $("#flavor_forecast_2011 .left_ff_2011 ul li a").removeClass();
            $(this).addClass("active");

            $("div#flavor_forecast_2011 div#pairings_2011").removeClass();
            $("div#flavor_forecast_2011 div#pairings_2011").addClass("scheme_" + (id + 1) + "_2011"); //switch color scheme

            $("div#flavor_forecast_2011 div#pairings_2011 div#description_2011 div.top_2011 img").attr("src", "/MCC/images/flavor_forecast2011/title_" + (id + 1) + ".gif"); //switch title image
            $("div#flavor_forecast_2011 div#pairings_2011 div#description_2011 div.middle_2011 p").html(obj.pairings_2011[id].description); //switch pairing description
            $("div#flavor_forecast_2011 div#pairings_2011 div#description_2011 div.bottom_ff_2011 ul").html(links); //switch pairing links

            $("div#flavor_forecast_2011 div#pairings_2011 div#image_2011 div.top_2011 a").attr("href", obj.pairings_2011[id].url);           
            $("div#flavor_forecast_2011 div#pairings_2011 div#image_2011 div.top_2011 a img").attr("src", "/MCC/images/flavor_forecast2011/pairing_" + (id + 1) + ".jpg"); //switch recipe image
            $("div#flavor_forecast_2011 div#pairings_2011 div#image_2011 div.caption_2011 a").attr("href", obj.pairings_2011[id].url);
            $("div#flavor_forecast_2011 div#pairings_2011 div#image_2011 div.caption_2011 a").html(obj.pairings_2011[id].caption); //switch recipe image caption
			//alert(obj.pairings_2011[id].caption);
        });
    }
}
