Untitled

 avatar
unknown
plain_text
a year ago
127 kB
2
Indexable
(function () {
    try {
        var debug = 1;
        var variation_name = "";
        window.egCutIcon = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="6 6 20 20" xml:space="preserve"><path d="M17.414,16l4.95,4.95l-1.414,1.414L16,17.414l-4.95,4.95L9.636,20.95l4.95-4.95l-4.95-4.95 l1.414-1.414l4.95,4.95l4.95-4.95l1.414,1.414L17.414,16z" fill="#000000"></path></svg>`;
        window.egCarrot = `<svg role="img" class="icon svg-icon arrow-down" width="10" height="6" aria-hidden="true" tabindex="-1">
                            <title>icon</title>
                            <desc>icon</desc>
                            <use role="img" xlink:href="#arrow-down" alt="icon"></use>
                            </svg>`;
        window.megaMenuData = {
            "des": [
                // Men
                {
                    "id": "eg-men",
                    "featured": {
                        "legend": "Featured",
                        "content": [
                            {
                                "linkText": "New Arrivals",
                                "linkUrl": "https://www.marmot.com/men/new-arrivals/"
                            },
                            {
                                "linkText": "Best Sellers",
                                "linkUrl": "https://www.marmot.com/men/best-sellers/"
                            },
                            {
                                "linkText": "Big & Tall",
                                "linkUrl": "https://www.marmot.com/men/big-and-tall/"
                            },
                            {
                                "linkText": "Jacket Finder",
                                "linkUrl": "https://www.marmot.com/jacketfinder.html"
                            },
                            {
                                "linkText": "Shop by Activity",
                                "linkUrl": "https://www.marmot.com/activity_men.html"
                            },
                            {
                                "linkText": "Shop by Technology",
                                "linkUrl": "https://www.marmot.com/technology.html"
                            },
                        ]
                    },
                    "content": [
                        {
                            "legend": "Jackets & Vests",
                            "legendlinkUrl": "https://www.marmot.com/men/jackets-and-vests/",
                            "content": [
                                {
                                    "linkText": "Insulated and Down",
                                    "linkUrl": "https://www.marmot.com/men/jackets-and-vests/insulated-and-down/"
                                },
                                {
                                    "linkText": "Rainwear",
                                    "linkUrl": "https://www.marmot.com/men/jackets-and-vests/rainwear/"
                                },
                                {
                                    "linkText": "Ski and Snowboard",
                                    "linkUrl": "https://www.marmot.com/men/jackets-and-vests/ski-and-snowboard/"
                                },
                                {
                                    "linkText": "Fleece",
                                    "linkUrl": "https://www.marmot.com/men/jackets-and-vests/fleece/"
                                },
                                {
                                    "linkText": "Softshell",
                                    "linkUrl": "https://www.marmot.com/men/jackets-and-vests/softshell/"
                                },
                                {
                                    "linkText": "Vests",
                                    "linkUrl": "https://www.marmot.com/men/jackets-and-vests/vests/"
                                },
                            ]
                        },
                        {
                            "legend": "Tops",
                            "legendlinkUrl": "https://www.marmot.com/men/tops/",
                            "content": [
                                {
                                    "linkText": "Shirts and Polos",
                                    "linkUrl": "https://www.marmot.com/men/tops/shirts-and-polos/"
                                },
                                {
                                    "linkText": "Sweatshirts and Hoodies",
                                    "linkUrl": "https://www.marmot.com/men/tops/sweatshirts-and-hoodies/"
                                },
                                {
                                    "linkText": "T-Shirts",
                                    "linkUrl": "https://www.marmot.com/men/tops/t-shirts/"
                                }
                            ]
                        },
                        {
                            "legend": "Bottoms",
                            "legendlinkUrl": "https://www.marmot.com/men/bottoms/",
                            "content": [
                                {
                                    "linkText": "Ski and Snowboard",
                                    "linkUrl": "https://www.marmot.com/men/bottoms/ski-and-snowboard/"
                                },
                                {
                                    "linkText": "Hiking Pants",
                                    "linkUrl": "https://www.marmot.com/men/bottoms/hiking-pants/"
                                },
                                {
                                    "linkText": "Rainwear",
                                    "linkUrl": "https://www.marmot.com/men/bottoms/rainwear/"
                                },
                                {
                                    "linkText": "Shorts", // shorts is not in men category
                                    "linkUrl": ""
                                },
                                {
                                    "linkText": "Exofficio Underwear",
                                    "linkUrl": "https://www.marmot.com/men/bottoms/exofficio-underwear/"
                                }
                            ]
                        },
                        {
                            "legend": "Accessories",
                            "legendlinkUrl": "https://www.marmot.com/men/accessories/",
                            "content": [
                                {
                                    "linkText": "Hats, Caps and Beanies",
                                    "linkUrl": "https://www.marmot.com/men/accessories/hats-caps-and-beanies/"
                                },
                                {
                                    "linkText": "Gloves and Mitts",
                                    "linkUrl": "https://www.marmot.com/men/accessories/gloves-and-mitts/"
                                },
                            ]
                        },
                        {
                            "legend": "Find Your Fit",
                            "legendlinkUrl": "https://www.marmot.com/jacketfinder.html",
                            legendImg: 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png',
                            "content": []
                        },
                    ]
                },
                // Women
                {
                    "id": "eg-women",
                    "featured": {
                        "legend": "Featured",
                        "content": [
                            {
                                "linkText": "New Arrivals",
                                "linkUrl": "https://www.marmot.com/women/new-arrivals/"
                            },
                            {
                                "linkText": "Best Sellers",
                                "linkUrl": "https://www.marmot.com/women/best-sellers/"
                            },
                            {
                                "linkText": "Plus Size",
                                "linkUrl": "https://www.marmot.com/women/plus-size/"
                            },
                            {
                                "linkText": "Jacket Finder",
                                "linkUrl": "https://www.marmot.com/jacketfinder.html"
                            },
                            {
                                "linkText": "Shop by Activity",
                                "linkUrl": "https://www.marmot.com/activity_women.html"
                            },
                            {
                                "linkText": "Shop by Technology",
                                "linkUrl": "https://www.marmot.com/technology.html"
                            },
                        ]
                    },
                    "content": [
                        {
                            "legend": "Jackets & Vests",
                            "legendlinkUrl": "https://www.marmot.com/women/jackets-and-vests/",
                            "content": [
                                {
                                    "linkText": "Insulated and Down",
                                    "linkUrl": "https://www.marmot.com/women/jackets-and-vests/insulated-and-down/"
                                },
                                {
                                    "linkText": "Rainwear",
                                    "linkUrl": "https://www.marmot.com/women/jackets-and-vests/rainwear/"
                                },
                                {
                                    "linkText": "Ski and Snowboard",
                                    "linkUrl": "https://www.marmot.com/women/jackets-and-vests/ski-and-snowboard/"
                                },
                                {
                                    "linkText": "Fleece",
                                    "linkUrl": "https://www.marmot.com/women/jackets-and-vests/fleece/"
                                },
                                {
                                    "linkText": "Softshell",
                                    "linkUrl": "https://www.marmot.com/women/jackets-and-vests/softshell/"
                                },
                                {
                                    "linkText": "Vests",
                                    "linkUrl": "https://www.marmot.com/women/jackets-and-vests/vests/"
                                },
                            ]
                        },
                        {
                            "legend": "Tops",
                            "legendlinkUrl": "https://www.marmot.com/women/tops/",
                            "content": [
                                {
                                    "linkText": "Shirts and Polos",
                                    "linkUrl": "https://www.marmot.com/women/tops/shirts/"
                                },
                                {
                                    "linkText": "Sweatshirts and Sweaters",
                                    "linkUrl": "https://www.marmot.com/women/tops/sweatshirts-and-sweaters/"
                                },
                                {
                                    "linkText": "T-Shirts and Tank Tops",
                                    "linkUrl": "https://www.marmot.com/women/tops/t-shirts-and-tank-tops/"
                                }
                            ]
                        },
                        {
                            "legend": "Bottoms",
                            "legendlinkUrl": "https://www.marmot.com/women/bottoms/",
                            "content": [
                                {
                                    "linkText": "Ski and Snowboard",
                                    "linkUrl": "https://www.marmot.com/women/bottoms/ski-and-snowboard/"
                                },
                                {
                                    "linkText": "Hiking Pants",
                                    "linkUrl": "https://www.marmot.com/women/bottoms/hiking-pants/"
                                },
                                {
                                    "linkText": "Rainwear",
                                    "linkUrl": "https://www.marmot.com/women/bottoms/rainwear/"
                                },
                                {
                                    "linkText": "Shorts",
                                    "linkUrl": "https://www.marmot.com/women/bottoms/shorts/"
                                },
                                {
                                    "linkText": "Activewear",
                                    "linkUrl": "https://www.marmot.com/women/bottoms/activewear/"
                                },
                                {
                                    "linkText": "Exofficio Underwear",
                                    "linkUrl": "https://www.marmot.com/women/bottoms/exofficio-underwear/"
                                }
                            ]
                        },
                        {
                            "legend": "Accessories",
                            "legendlinkUrl": "https://www.marmot.com/women/accessories/",
                            "content": [
                                {
                                    "linkText": "Hats, Caps and Beanies",
                                    "linkUrl": "https://www.marmot.com/women/accessories/hats-caps-and-beanies/"
                                },
                                {
                                    "linkText": "Gloves and Mitts",
                                    "linkUrl": "https://www.marmot.com/women/accessories/gloves-and-mitts/"
                                }
                            ]
                        },
                        {
                            "legend": "Find Your Fit",
                            "legendlinkUrl": "https://www.marmot.com/jacketfinder.html",
                            legendImg: 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png',
                            "content": []
                        },
                    ]
                },
                // Equipment
                {
                    "id": "eg-Equipment",
                    "featured": {
                        "legend": "Featured",
                        "content": [
                            {
                                "linkText": "New Arrivals",
                                "linkUrl": "https://www.marmot.com/equipment/new-arrivals/"
                            },
                            {
                                "linkText": "Best Sellers",
                                "linkUrl": "https://www.marmot.com/equipment/best-sellers/"
                            },
                            {
                                "linkText": "Sleeping Bag Finder",
                                "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/"
                            },
                            {
                                "linkText": "Shop by Activity",
                                "linkUrl": "https://www.marmot.com/activity_equipment.html"
                            }
                        ]
                    },
                    "content": [
                        {
                            "legend": "Tents",
                            "legendlinkUrl": "https://www.marmot.com/equipment/tents/",
                            "content": [
                                {
                                    "linkText": "1 Person",
                                    "linkUrl": "https://www.marmot.com/equipment/tents/1-person/"
                                },
                                {
                                    "linkText": "2 Person",
                                    "linkUrl": "https://www.marmot.com/equipment/tents/2-person/"
                                },
                                {
                                    "linkText": "3 Person",
                                    "linkUrl": "https://www.marmot.com/equipment/tents/3-person/"
                                },
                                {
                                    "linkText": "4 Person",
                                    "linkUrl": "https://www.marmot.com/equipment/tents/4-person/"
                                },
                                {
                                    "linkText": "5 Person", // not available
                                    "linkUrl": ""
                                },
                                {
                                    "linkText": "6+ Person",
                                    "linkUrl": "https://www.marmot.com/equipment/tents/6-person/"
                                },
                                {
                                    "linkText": "Foot Prints",
                                    "linkUrl": "https://www.marmot.com/equipment/tents/footprints/"
                                },
                            ]
                        },
                        {
                            "legend": "Sleeping Bags",
                            "legendlinkUrl": "https://www.marmot.com/equipment/sleeping-bags/",
                            "content": [
                                {
                                    "linkText": "Down Bags",
                                    "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/down-bags/"
                                },
                                {
                                    "linkText": "Synthertic",
                                    "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/synthetic/"
                                },
                                {
                                    "linkText": "Camping",
                                    "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/camping/"
                                }
                                ,
                                {
                                    "linkText": "Backpacking",
                                    "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/backpacking/"
                                }
                                ,
                                {
                                    "linkText": "Ultralight",
                                    "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/ultralight/"
                                }
                                ,
                                {
                                    "linkText": "Mountaineering",
                                    "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/mountaineering/"
                                },
                                {
                                    "linkText": "L3 Accessories Link",
                                    "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/accessories/"
                                }
                                ,
                                {
                                    "linkText": "650 Sleeping Bags",
                                    "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/650-sleeping-bags/"
                                }
                            ]
                        },
                        {
                            "legend": "Water Bottle",
                            "legendlinkUrl": "https://www.marmot.com/equipment/water-bottle/",
                            "content": [
                                {
                                    "linkText": "",
                                    "linkUrl": "https://www.marmot.com/equipment/water-bottle/",
                                    "linkImg": "https://marmot.scene7.com/is/image/marmot/40oz_Marmot_Bottle_Team_Red_Front_Lid_On_v2?wid=700&fmt=webp"
                                }
                            ]
                        },
                        {
                            "legend": "",
                            "legendlinkUrl": "",
                            "content": []
                        },
                        {
                            "legend": "Take the Quiz",
                            "legendlinkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                            legendImg: "https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png",
                            "content": []
                        }
                    ]
                },
                // kids
                {
                    "id": "eg-Kids",
                    "featured": {
                        "legend": "Featured",
                        "content": [
                            {
                                "linkText": "New Arrivals",  //not availabe
                                "linkUrl": ""
                            },
                            {
                                "linkText": "Best Sellers",
                                "linkUrl": "https://www.marmot.com/kids/best-sellers/"
                            }
                        ]
                    },
                    "content": [
                        {
                            "legend": "Boys",
                            "legendlinkUrl": "https://www.marmot.com/kids/boys/",
                            "content": [
                                {
                                    "linkText": "Jackets",
                                    "linkUrl": "https://www.marmot.com/kids/boys/jackets/"
                                },
                                {
                                    "linkText": "Bottoms",
                                    "linkUrl": "https://www.marmot.com/kids/boys/bottoms/"
                                }
                            ]
                        },
                        {
                            "legend": "Girls",
                            "legendlinkUrl": "https://www.marmot.com/kids/girls/",
                            "content": [
                                {
                                    "linkText": "Jackets",
                                    "linkUrl": "https://www.marmot.com/kids/girls/jackets/"
                                },
                                {
                                    "linkText": "Bottoms",
                                    "linkUrl": "https://www.marmot.com/kids/girls/bottoms/"
                                }
                            ]
                        },
                        {
                            "legend": "Equipment",
                            "legendlinkUrl": "https://www.marmot.com/kids/equipment/",
                            "content": [
                                {
                                    "linkText": "Sleeping Bags",
                                    "linkUrl": "https://www.marmot.com/kids/equipment/sleeping-bags/"
                                }
                            ]
                        },
                        {
                            "legend": "",
                            "legendlinkUrl": "",
                            "content": []
                        },
                        {
                            "legend": "Take the Quiz",
                            "legendlinkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                            legendImg: "https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png",
                            "content": []
                        }
                    ]
                },
                // Sale
                {
                    "id": "eg-Sale",
                    "featured": {
                        "legend": "Featured",
                        "content": [
                            {
                                "linkText": "New Arrivals", //not availabe
                                "linkUrl": ""
                            },
                            {
                                "linkText": "Best Sellers", //not availabe
                                "linkUrl": ""
                            }
                        ]
                    },
                    "content": [
                        {
                            "legend": "Men",
                            "legendlinkUrl": "https://www.marmot.com/sale/men/",
                            "content": [
                                {
                                    "linkText": "Jackets and Vests",
                                    "linkUrl": "https://www.marmot.com/sale/men/jackets-and-vests/"
                                },
                                {
                                    "linkText": "Tops",
                                    "linkUrl": "https://www.marmot.com/sale/men/tops/"
                                },
                                {
                                    "linkText": "Bottoms",
                                    "linkUrl": "https://www.marmot.com/sale/men/bottoms/"
                                },
                                {
                                    "linkText": "Accessories",
                                    "linkUrl": "https://www.marmot.com/sale/men/accessories/"
                                }
                            ]
                        },
                        {
                            "legend": "Women",
                            "legendlinkUrl": "https://www.marmot.com/sale/women/",
                            "content": [
                                {
                                    "linkText": "Jackets and Vests",
                                    "linkUrl": "https://www.marmot.com/sale/women/jackets-and-vests/"
                                },
                                {
                                    "linkText": "Tops",
                                    "linkUrl": "https://www.marmot.com/sale/women/tops/"
                                },
                                {
                                    "linkText": "Bottoms",
                                    "linkUrl": "https://www.marmot.com/sale/women/bottoms/"
                                },
                                {
                                    "linkText": "Accessories",
                                    "linkUrl": "https://www.marmot.com/sale/women/accessories/"
                                }
                            ]
                        },
                        {
                            "legend": "Equipment",
                            "legendlinkUrl": "https://www.marmot.com/sale/equipment/",
                            "content": [
                                {
                                    "linkText": "Tents",
                                    "linkUrl": "https://www.marmot.com/sale/equipment/tents/"
                                },
                                {
                                    "linkText": "Sleeping Bags",
                                    "linkUrl": "https://www.marmot.com/sale/equipment/sleeping-bags/"
                                }
                            ]
                        },
                        {
                            "legend": "Kids",
                            "legendlinkUrl": "https://www.marmot.com/sale/kids/",
                            "content": [
                                {
                                    "linkText": "Boys",
                                    "linkUrl": "https://www.marmot.com/sale/kids/boys/"
                                },
                                {
                                    "linkText": "Girls",
                                    "linkUrl": "https://www.marmot.com/sale/kids/girls/"
                                }
                            ]
                        },
                        {
                            "legend": "Find Your Fit",
                            "legendlinkUrl": "https://www.marmot.com/jacketfinder.html",
                            legendImg: 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png',
                            "content": []
                        },
                    ]
                },
                // Holiday
                // {
                //     "id": "eg-Holiday",
                //     "featured": {
                //         "legend": "Featured",
                //         "content": [
                //             {
                //                 "linkText": "Gifts Under $100",
                //                 "linkUrl": "https://www.marmot.com/holiday/gifts-under-100/"
                //             },
                //             {
                //                 "linkText": "Gifts Under $300",
                //                 "linkUrl": "https://www.marmot.com/holiday/gifts-under-300/"
                //             },
                //             {
                //                 "linkText": "Gifts Under $500",
                //                 "linkUrl": "https://www.marmot.com/holiday/gifts-under-500/"
                //             },
                //             {
                //                 "linkText": "Holiday Gift Guide",
                //                 "linkUrl": "https://www.marmot.com/holiday-gift-guide.html"
                //             }
                //         ]
                //     },
                //     "content": [
                //         {
                //             "legend": "",
                //             "legendlinkUrl": "",
                //             "content": []
                //         },
                //         {
                //             "legend": "",
                //             "legendlinkUrl": "",
                //             "content": []
                //         },
                //         {
                //             "legend": "",
                //             "legendlinkUrl": "",
                //             "content": []
                //         },
                //         {
                //             "legend": "",
                //             "legendlinkUrl": "",
                //             "content": []
                //         },
                //         {
                //             "legend": "",
                //             "legendlinkUrl": "",
                //             "content": []
                //         }
                //     ]
                // },
                // Explore marmot
                {
                    "id": "eg-Explore-marmot",
                    "featured": {
                        "legend": "Featured",
                        "content": [
                            {
                                "linkText": "Our story",
                                "linkUrl": "https://www.marmot.com/our_story.html"
                            },
                            {
                                "linkText": "Mountain Club Blog",
                                "linkUrl": "https://www.marmot.com/blogs?fdid=the-mountain-club-blog"
                            },
                            {
                                "linkText": "Warranty",
                                "linkUrl": "https://www.marmot.com/warranty-repair.html"
                            }
                        ]
                    },
                    "content": [
                        {
                            "legend": "Technologies",
                            "legendlinkUrl": "https://www.marmot.com/technology.html",
                            "content": [
                                {
                                    "linkText": "Gore-Tex",
                                    "linkUrl": "https://www.marmot.com/gore-tex-waterproof-fabric.html"
                                },
                                {
                                    "linkText": "WarmCube",
                                    "linkUrl": "https://www.marmot.com/warmcube-extreme-cold-weather-insulation.html"
                                },
                                {
                                    "linkText": "Featherless",
                                    "linkUrl": "https://www.marmot.com/featherless-lightweight-insulation-from-cold-weather.html"
                                },
                                {
                                    "linkText": "Recco",
                                    "linkUrl": "https://www.marmot.com/ReccoTechnology.html"
                                },
                                {
                                    "linkText": "View More",
                                    "linkUrl": "https://www.marmot.com/technology.html"
                                }
                            ]
                        },
                        {
                            "legend": "Sustainability",
                            "legendlinkUrl": "https://www.marmot.com/sustainability.html",
                            "content": [
                                {
                                    "linkText": "People",
                                    "linkUrl": "https://www.marmot.com/sustainability_people.html"
                                },
                                {
                                    "linkText": "Product",
                                    "linkUrl": "https://www.marmot.com/sustainability_product.html"
                                },
                                {
                                    "linkText": "Planet",
                                    "linkUrl": "https://www.marmot.com/sustainability_planet.html"
                                }
                            ]
                        },
                        {
                            "legend": "",
                            "legendlinkUrl": "",
                            "content": [

                            ]
                        },
                        {
                            "legend": "",
                            "legendlinkUrl": "",
                            "content": [

                            ]
                        },
                        {
                            "legend": "Join or Sign in to Earn Points",
                            "legendlinkUrl": "https://www.marmot.com/rewards.html",
                            legendImg: 'https://marmot.scene7.com/is/image/marmot/032222_MegaNav_Loyalty?wid=400',
                            "content": []
                        },
                    ]
                },
            ]
        }
        // mobile menus
        window.megaMenuDataMob = [
            // men
            {
                "headerText": "Men",
                "id": "eg-men-stage-1",
                content: [
                    {
                        "linkText": "Shop All Men's",
                        "linkUrl": "https://www.marmot.com/men/",
                        "isMenuCta": false,
                        "linkImg": ""
                    },
                    {
                        "linkText": "Featured",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-men-stage-2'
                    },
                    {
                        "linkText": "Jackets & Vests",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-men-stage-3'
                    },
                    {
                        "linkText": "Tops",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-men-stage-4'
                    },
                    {
                        "linkText": "Bottoms",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-men-stage-5'
                    }
                    ,
                    {
                        "linkText": "Accessories",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-men-stage-6'
                    }
                    ,
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Featured",
                "id": "eg-men-stage-2",
                content: [
                    {
                        "linkText": "New Arrivals",
                        "linkUrl": "https://www.marmot.com/men/new-arrivals/",
                        "isMenuCta": false,
                        "linkImg": ""
                    },
                    {
                        "linkText": "Best Sellers",
                        "linkUrl": "https://www.marmot.com/men/best-sellers/",
                        "isMenuCta": false,
                        "linkImg": ""
                    },
                    {
                        "linkText": "Big & Tall",
                        "linkUrl": "https://www.marmot.com/men/big-and-tall/",
                        "isMenuCta": false,
                        "linkImg": ""
                    },
                    {
                        "linkText": "Jacket Finder",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": ""
                    }
                    ,
                    {
                        "linkText": "Shop by Activity",
                        "linkUrl": "https://www.marmot.com/activity_men.html",
                        "isMenuCta": false,
                        "linkImg": ""
                    },
                    {
                        "linkText": "Shop by Technology",
                        "linkUrl": "https://www.marmot.com/technology.html",
                        "isMenuCta": false,
                        "linkImg": ""
                    }
                    ,
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Jackets & Vests",
                "id": "eg-men-stage-3",
                content: [
                    {
                        "linkText": "Shop All Jackets and Vests",
                        "linkUrl": "https://www.marmot.com/men/jackets-and-vests/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Insulated and Down",
                        "linkUrl": "https://www.marmot.com/men/jackets-and-vests/insulated-and-down/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Rainwear",
                        "linkUrl": "https://www.marmot.com/men/jackets-and-vests/rainwear/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Ski and Snowboard",
                        "linkUrl": "https://www.marmot.com/men/jackets-and-vests/ski-and-snowboard/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Fleece",
                        "linkUrl": "https://www.marmot.com/men/jackets-and-vests/fleece/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Softshell",
                        "linkUrl": "https://www.marmot.com/men/jackets-and-vests/softshell/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Vests",
                        "linkUrl": "https://www.marmot.com/men/jackets-and-vests/vests/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Tops",
                "id": "eg-men-stage-4",
                content: [
                    {
                        "linkText": "Shop All Tops",
                        "linkUrl": "https://www.marmot.com/men/tops/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Shirts and Polos",
                        "linkUrl": "https://www.marmot.com/men/tops/shirts-and-polos/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Sweatshirts and Hoodies",
                        "linkUrl": "https://www.marmot.com/men/tops/sweatshirts-and-hoodies/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "T-Shirts",
                        "linkUrl": "https://www.marmot.com/men/tops/t-shirts/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Bottoms",
                "id": "eg-men-stage-5",
                content: [
                    {
                        "linkText": "Shop All Bottoms",
                        "linkUrl": "https://www.marmot.com/men/bottoms/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Ski and Snowboard",
                        "linkUrl": "https://www.marmot.com/men/bottoms/ski-and-snowboard/",
                        "isMenuCta": false,
                        linkImg: ""
                    },
                    {
                        "linkText": "Hiking Pants",
                        "linkUrl": "https://www.marmot.com/men/bottoms/hiking-pants/",
                        "isMenuCta": false,
                        linkImg: ""
                    },
                    {
                        "linkText": "Rainwear",
                        "linkUrl": "https://www.marmot.com/men/bottoms/rainwear/",
                        "isMenuCta": false,
                        linkImg: ""
                    },
                    {
                        "linkText": "Shorts", // shorts is not in men category
                        "linkUrl": "",
                        "isMenuCta": false,
                        linkImg: ""
                    },
                    {
                        "linkText": "Exofficio Underwear",
                        "linkUrl": "https://www.marmot.com/men/bottoms/exofficio-underwear/",
                        "isMenuCta": false,
                        linkImg: ""
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Accessories",
                "id": "eg-men-stage-6",
                content: [
                    {
                        "linkText": "Shop All Accessories",
                        "linkUrl": "https://www.marmot.com/men/accessories/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Hats, Caps and Beanies",
                        "linkUrl": "https://www.marmot.com/men/accessories/hats-caps-and-beanies/",
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Gloves and Mitts",
                        "linkUrl": "https://www.marmot.com/men/accessories/gloves-and-mitts/"
                        ,
                        "isMenuCta": false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            // women
            {
                "headerText": "Women",
                "id": "eg-women-stage-1",
                content: [
                    {
                        "linkText": "Shop All Women",
                        "linkUrl": "https://www.marmot.com/women/",
                        "isMenuCta": false,
                        "linkImg": ""
                    },
                    {
                        "linkText": "Featured",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-women-stage-2'
                    },
                    {
                        "linkText": "Jackets & Vests",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-women-stage-3'
                    },
                    {
                        "linkText": "Tops",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-women-stage-4'
                    },
                    {
                        "linkText": "Bottoms",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-women-stage-5'
                    }
                    ,
                    {
                        "linkText": "Accessories",
                        "linkUrl": "",
                        "isMenuCta": true,
                        "linkImg": "",
                        showStage: 'eg-women-stage-6'
                    }
                    ,
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Featured",
                "id": "eg-women-stage-2",
                content: [
                    {
                        "linkText": "New Arrivals",
                        "linkUrl": "https://www.marmot.com/women/new-arrivals/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Best Sellers",
                        "linkUrl": "https://www.marmot.com/women/best-sellers/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Plus Size",
                        "linkUrl": "https://www.marmot.com/women/plus-size/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Jacket Finder",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Shop by Activity",
                        "linkUrl": "https://www.marmot.com/activity_women.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Shop by Technology",
                        "linkUrl": "https://www.marmot.com/technology.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Jackets & Vests",
                "id": "eg-women-stage-3",
                content: [
                    {
                        "linkText": "Shop All Jackets and Vests",
                        "linkUrl": "https://www.marmot.com/women/jackets-and-vests/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Insulated and Down",
                        "linkUrl": "https://www.marmot.com/women/jackets-and-vests/insulated-and-down/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Rainwear",
                        "linkUrl": "https://www.marmot.com/women/jackets-and-vests/rainwear/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Ski and Snowboard",
                        "linkUrl": "https://www.marmot.com/women/jackets-and-vests/ski-and-snowboard/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Fleece",
                        "linkUrl": "https://www.marmot.com/women/jackets-and-vests/fleece/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Softshell",
                        "linkUrl": "https://www.marmot.com/women/jackets-and-vests/softshell/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Vests",
                        "linkUrl": "https://www.marmot.com/women/jackets-and-vests/vests/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Tops",
                "id": "eg-women-stage-4",
                content: [
                    {
                        "linkText": "Shop All Tops",
                        "linkUrl": "https://www.marmot.com/women/tops/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Shirts and Polos",
                        "linkUrl": "https://www.marmot.com/women/tops/shirts/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Sweatshirts and Sweaters",
                        "linkUrl": "https://www.marmot.com/women/tops/sweatshirts-and-sweaters/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "T-Shirts and Tank Tops",
                        "linkUrl": "https://www.marmot.com/women/tops/t-shirts-and-tank-tops/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Bottoms",
                "id": "eg-women-stage-5",
                content: [
                    {
                        "linkText": "Shop All Bottoms",
                        "linkUrl": "https://www.marmot.com/women/bottoms/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Ski and Snowboard",
                        "linkUrl": "https://www.marmot.com/women/bottoms/ski-and-snowboard/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Hiking Pants",
                        "linkUrl": "https://www.marmot.com/women/bottoms/hiking-pants/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Rainwear",
                        "linkUrl": "https://www.marmot.com/women/bottoms/rainwear/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Shorts",
                        "linkUrl": "https://www.marmot.com/women/bottoms/shorts/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Activewear",
                        "linkUrl": "https://www.marmot.com/women/bottoms/activewear/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Exofficio Underwear",
                        "linkUrl": "https://www.marmot.com/women/bottoms/exofficio-underwear/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Accessories",
                "id": "eg-women-stage-6",
                content: [
                    {
                        "linkText": "Shop All Accessories",
                        "linkUrl": "https://www.marmot.com/women/accessories/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Hats, Caps and Beanies",
                        "linkUrl": "https://www.marmot.com/women/accessories/hats-caps-and-beanies/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Gloves and Mitts",
                        "linkUrl": "https://www.marmot.com/women/accessories/gloves-and-mitts/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            // equipment
            {
                "headerText": "Equipment",
                "id": "eg-equipment-stage-1",
                content: [
                    {
                        "linkText": "Shop All Equipment",
                        "linkUrl": "https://www.marmot.com/equipment/",
                        "isMenuCta": false,
                        "linkImg": ""
                    },
                    {
                        "linkText": "Featured",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-equipment-stage-2'
                    },
                    {
                        "linkText": "Tents",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-equipment-stage-3'
                    },
                    {
                        "linkText": "Sleeping Bags",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-equipment-stage-4'
                    },
                    ,
                    {
                        "linkText": "Water Bottle",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-equipment-stage-5'
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Featured",
                "id": "eg-equipment-stage-2",
                content: [
                    {
                        "linkText": "New Arrivals",
                        "linkUrl": "https://www.marmot.com/equipment/new-arrivals/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Best Sellers",
                        "linkUrl": "https://www.marmot.com/equipment/best-sellers/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Sleeping Bag Finder",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Shop by Activity",
                        "linkUrl": "https://www.marmot.com/activity_equipment.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Tents",
                "id": "eg-equipment-stage-3",
                content: [
                    {
                        "linkText": "Shop All Tents",
                        "linkUrl": "https://www.marmot.com/equipment/tents/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "1 Person",
                        "linkUrl": "https://www.marmot.com/equipment/tents/1-person/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "2 Person",
                        "linkUrl": "https://www.marmot.com/equipment/tents/2-person/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "3 Person",
                        "linkUrl": "https://www.marmot.com/equipment/tents/3-person/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "4 Person",
                        "linkUrl": "https://www.marmot.com/equipment/tents/4-person/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "5 Person", // not available
                        "linkUrl": "",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "6+ Person",
                        "linkUrl": "https://www.marmot.com/equipment/tents/6-person/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Foot Prints",
                        "linkUrl": "https://www.marmot.com/equipment/tents/footprints/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Sleeping Bags",
                "id": "eg-equipment-stage-4",
                content: [
                    {
                        "linkText": "Shop All Sleeping Bags",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Down Bags",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/down-bags/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Synthertic",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/synthetic/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Camping",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/camping/",
                        isMenuCta: false,
                        linkImg: ''
                    }
                    ,
                    {
                        "linkText": "Backpacking",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/backpacking/",
                        isMenuCta: false,
                        linkImg: ''
                    }
                    ,
                    {
                        "linkText": "Ultralight",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/ultralight/",
                        isMenuCta: false,
                        linkImg: ''
                    }
                    ,
                    {
                        "linkText": "Mountaineering",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/mountaineering/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "L3 Accessories Link",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/accessories/",
                        isMenuCta: false,
                        linkImg: ''
                    }
                    ,
                    {
                        "linkText": "650 Sleeping Bags",
                        "linkUrl": "https://www.marmot.com/equipment/sleeping-bags/650-sleeping-bags/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Water Bottle",
                "id": "eg-equipment-stage-5",
                content: [
                    {
                        "linkText": "",
                        "linkUrl": "https://www.marmot.com/equipment/water-bottle/",
                        "linkImg": "https://marmot.scene7.com/is/image/marmot/40oz_Marmot_Bottle_Team_Red_Front_Lid_On_v2?wid=700&fmt=webp",
                        isMenuCta: false,
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            // kids
            {
                "headerText": "Kids",
                "id": "eg-kids-stage-1",
                content: [
                    {
                        "linkText": "Shop All Kids",
                        "linkUrl": "https://www.marmot.com/kids/",
                        "isMenuCta": false,
                        "linkImg": ""
                    },
                    {
                        "linkText": "Featured",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-kids-stage-2'
                    },
                    {
                        "linkText": "Boys",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-kids-stage-3'
                    },
                    {
                        "linkText": "Girls",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-kids-stage-4'
                    },
                    {
                        "linkText": "Equipment",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-kids-stage-5'
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Featured",
                "id": "eg-kids-stage-2",
                content: [
                    {
                        "linkText": "New Arrivals",  //not availabe
                        "linkUrl": "",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Best Sellers",
                        "linkUrl": "https://www.marmot.com/kids/best-sellers/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Boys",
                "id": "eg-kids-stage-3",
                content: [
                    {
                        "linkText": "Shop All Boys",
                        "linkUrl": "https://www.marmot.com/kids/boys/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Jackets",
                        "linkUrl": "https://www.marmot.com/kids/boys/jackets/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Bottoms",
                        "linkUrl": "https://www.marmot.com/kids/boys/bottoms/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Girls",
                "id": "eg-kids-stage-4",
                content: [
                    {
                        "linkText": "Shop All Girls",
                        "linkUrl": "https://www.marmot.com/kids/girls/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Jackets",
                        "linkUrl": "https://www.marmot.com/kids/girls/jackets/",
                        linkImg: '',
                        isMenuCta: false
                    },
                    {
                        "linkText": "Bottoms",
                        "linkUrl": "https://www.marmot.com/kids/girls/bottoms/",
                        linkImg: '',
                        isMenuCta: false
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Equipment",
                "id": "eg-kids-stage-5",
                content: [
                    {
                        "linkText": "Shop All Equipment",
                        "linkUrl": "https://www.marmot.com/kids/equipment/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Sleeping Bags",
                        "linkUrl": "https://www.marmot.com/kids/equipment/sleeping-bags/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Take the Quiz",
                        "linkUrl": "https://www.marmot.com/sleepingbagfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dwa24c1bc5/Marmot/2023%2010%20OCT/Navigation%20Image/203034613-Marmot_Sleeping-Bag-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            // sale
            {
                "headerText": "Sale",
                "id": "eg-sale-stage-1",
                content: [
                    {
                        "linkText": "Shop All Sale",
                        "linkUrl": "https://www.marmot.com/sale/",
                        "isMenuCta": false,
                        "linkImg": ""
                    },
                    {
                        "linkText": "Featured",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-sale-stage-2'
                    },
                    {
                        "linkText": "Men",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-sale-stage-3'
                    },
                    {
                        "linkText": "Women",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-sale-stage-4'
                    },
                    {
                        "linkText": "Equipment",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-sale-stage-5'
                    },
                    {
                        "linkText": "Kids",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-sale-stage-6'
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Featured",
                "id": "eg-sale-stage-2",
                content: [
                    {
                        "linkText": "New Arrivals", //not availabe
                        "linkUrl": "",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Best Sellers", //not availabe
                        "linkUrl": "",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Men",
                "id": "eg-sale-stage-3",
                content: [
                    {
                        "linkText": "Shop All Men",
                        "linkUrl": "https://www.marmot.com/sale/men/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Jackets and Vests",
                        "linkUrl": "https://www.marmot.com/sale/men/jackets-and-vests/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Tops",
                        "linkUrl": "https://www.marmot.com/sale/men/tops/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Bottoms",
                        "linkUrl": "https://www.marmot.com/sale/men/bottoms/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Accessories",
                        "linkUrl": "https://www.marmot.com/sale/men/accessories/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Women",
                "id": "eg-sale-stage-4",
                content: [
                    {
                        "linkText": "Shop All Women",
                        "linkUrl": "https://www.marmot.com/sale/women/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Jackets and Vests",
                        "linkUrl": "https://www.marmot.com/sale/women/jackets-and-vests/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Tops",
                        "linkUrl": "https://www.marmot.com/sale/women/tops/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Bottoms",
                        "linkUrl": "https://www.marmot.com/sale/women/bottoms/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Accessories",
                        "linkUrl": "https://www.marmot.com/sale/women/accessories/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Equipment",
                "id": "eg-sale-stage-5",
                content: [
                    {
                        "linkText": "Shop All Equipment",
                        "linkUrl": "https://www.marmot.com/sale/equipment/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Tents",
                        "linkUrl": "https://www.marmot.com/sale/equipment/tents/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Sleeping Bags",
                        "linkUrl": "https://www.marmot.com/sale/equipment/sleeping-bags/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            {
                "headerText": "Kids",
                "id": "eg-sale-stage-6",
                content: [
                    {
                        "linkText": "Shop All Kids",
                        "linkUrl": "https://www.marmot.com/sale/kids/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Boys",
                        "linkUrl": "https://www.marmot.com/sale/kids/boys/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Girls",
                        "linkUrl": "https://www.marmot.com/sale/kids/girls/",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Find Your Fit",
                        "linkUrl": "https://www.marmot.com/jacketfinder.html",
                        "isMenuCta": false,
                        "linkImg": 'https://www.marmot.com/on/demandware.static/-/Sites-marmot-Library/default/dw1f1d6cf0/Marmot/2023%2010%20OCT/Navigation%20Image/203034611-Marmot_Jacket-Finder-Quiz_MegNav_256x256_Desktop_v2.png'
                    }
                ]
            },
            // holiday
            // {
            //     "headerText": "Holiday",
            //     "id": "eg-holiday-stage-1",
            //     content: [
            //         {
            //             "linkText": "Shop All Holiday",
            //             "linkUrl": "https://www.marmot.com/holiday-gift-guide.html",
            //             "isMenuCta": false,
            //             "linkImg": ""
            //         },
            //         {
            //             "linkText": "Featured", //not availabe
            //             "linkUrl": "",
            //             isMenuCta: true,
            //             linkImg: '',
            //             showStage: 'eg-holiday-stage-2'
            //         }
            //     ]
            // },
            // {
            //     "headerText": "Featured",
            //     "id": "eg-holiday-stage-2",
            //     content: [
            //         {
            //             "linkText": "Gifts Under $100",
            //             "linkUrl": "https://www.marmot.com/holiday/gifts-under-100/",
            //             isMenuCta: false,
            //             linkImg: ''
            //         },
            //         {
            //             "linkText": "Gifts Under $300",
            //             "linkUrl": "https://www.marmot.com/holiday/gifts-under-300/",
            //             isMenuCta: false,
            //             linkImg: ''
            //         },
            //         {
            //             "linkText": "Gifts Under $500",
            //             "linkUrl": "https://www.marmot.com/holiday/gifts-under-500/",
            //             isMenuCta: false,
            //             linkImg: ''
            //         },
            //         {
            //             "linkText": "Holiday Gift Guide",
            //             "linkUrl": "https://www.marmot.com/holiday-gift-guide.html",
            //             isMenuCta: false,
            //             linkImg: ''
            //         }
            //     ]
            // }
            // explore marmot
            {
                "headerText": "Explore Marmot",
                "id": "eg-explore-marmot-stage-1",
                content: [
                    {
                        "linkText": "Featured",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-explore-marmot-stage-2'
                    },
                    {
                        "linkText": "Technologies",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-explore-marmot-stage-3'
                    },
                    {
                        "linkText": "Sustainability",
                        "linkUrl": "",
                        isMenuCta: true,
                        linkImg: '',
                        showStage: 'eg-explore-marmot-stage-4'
                    },
                    {
                        "linkText": "Join or Sign in to Earn Points",
                        "linkUrl": "https://www.marmot.com/rewards.html",
                        "isMenuCta": false,
                        "linkImg": 'https://marmot.scene7.com/is/image/marmot/032222_MegaNav_Loyalty?wid=400'
                    }
                ]
            },
            {
                "headerText": "Featured",
                "id": "eg-explore-marmot-stage-2",
                content: [
                    {
                        "linkText": "Our story",
                        "linkUrl": "https://www.marmot.com/our_story.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Mountain Club Blog",
                        "linkUrl": "https://www.marmot.com/blogs?fdid=the-mountain-club-blog",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Warranty",
                        "linkUrl": "https://www.marmot.com/warranty-repair.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Join or Sign in to Earn Points",
                        "linkUrl": "https://www.marmot.com/rewards.html",
                        "isMenuCta": false,
                        "linkImg": 'https://marmot.scene7.com/is/image/marmot/032222_MegaNav_Loyalty?wid=400'
                    }
                ]
            },
            {
                "headerText": "Technologies",
                "id": "eg-explore-marmot-stage-3",
                content: [
                    {
                        "linkText": "Shop All Technologies",
                        "linkUrl": "https://www.marmot.com/technology.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Gore-Tex",
                        "linkUrl": "https://www.marmot.com/gore-tex-waterproof-fabric.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "WarmCube",
                        "linkUrl": "https://www.marmot.com/warmcube-extreme-cold-weather-insulation.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Featherless",
                        "linkUrl": "https://www.marmot.com/featherless-lightweight-insulation-from-cold-weather.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Recco",
                        "linkUrl": "https://www.marmot.com/ReccoTechnology.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "View More",
                        "linkUrl": "https://www.marmot.com/technology.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Join or Sign in to Earn Points",
                        "linkUrl": "https://www.marmot.com/rewards.html",
                        "isMenuCta": false,
                        "linkImg": 'https://marmot.scene7.com/is/image/marmot/032222_MegaNav_Loyalty?wid=400'
                    }
                ]
            },
            {
                "headerText": "Sustainability",
                "id": "eg-explore-marmot-stage-4",
                content: [
                    {
                        "linkText": "People",
                        "linkUrl": "https://www.marmot.com/sustainability_people.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Product",
                        "linkUrl": "https://www.marmot.com/sustainability_product.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Planet",
                        "linkUrl": "https://www.marmot.com/sustainability_planet.html",
                        isMenuCta: false,
                        linkImg: ''
                    },
                    {
                        "linkText": "Join or Sign in to Earn Points",
                        "linkUrl": "https://www.marmot.com/rewards.html",
                        "isMenuCta": false,
                        "linkImg": 'https://marmot.scene7.com/is/image/marmot/032222_MegaNav_Loyalty?wid=400'
                    }
                ]
            },
        ]
        window.mobileMenuMain = `
        <div class="eg-mega-menu-mob">
    <div class="eg-mega-menu-mob-container" data-menu-id_="eg-men-stage-0">
        <!-- header -->
        <div class="eg-mega-menu-mob_header">
            <!-- back cta -->
            <span class="eg-mob_header-bck-cta"></span>
            <!-- title -->
            <span class="eg-mob_header-title">Main Menu</span>
            <!-- cut cta -->
            <span class="eg-mob_header-cut">${window.egCutIcon}</span>
        </div>
        <ul class="eg-mega-mob_content">
            <li class="eg-mega-mob_content-item" data-show-stage="eg-men-stage-1">
                <span class="eg-item-text">Men</span>
                <span class="eg-item-forward">
                    ${window.egCarrot}
                </span>
            </li>
            <li class="eg-mega-mob_content-item" data-show-stage="eg-women-stage-1">
                <span class="eg-item-text">Women</span>
                <span class="eg-item-forward">
                    ${window.egCarrot}
                </span>
            </li>
            <li class="eg-mega-mob_content-item" data-show-stage="eg-equipment-stage-1">
                <span class="eg-item-text">Equipment</span>
                <span class="eg-item-forward">
                    ${window.egCarrot}
                </span>
            </li>
            <li class="eg-mega-mob_content-item" data-show-stage="eg-kids-stage-1">
                <span class="eg-item-text">Kids</span>
                <span class="eg-item-forward">
                    ${window.egCarrot}
                </span>
            </li>
            <li class="eg-mega-mob_content-item" data-show-stage="eg-sale-stage-1">
                <span class="eg-item-text">Sale</span>
                <span class="eg-item-forward">
                    ${window.egCarrot}
                </span>
            </li>
            <!-- <li class="eg-mega-mob_content-item" data-show-stage="eg-holiday-stage-1">
                <span class="eg-item-text">Holiday</span>
                <span class="eg-item-forward">
                    ${window.egCarrot}
                </span>
            </li> -->
            <li class="eg-mega-mob_content-item" data-show-stage="eg-explore-marmot-stage-1">
                <span class="eg-item-text">Explore Marmot</span>
                <span class="eg-item-forward">
                    ${window.egCarrot}
                </span>
            </li>
        </ul>
        <ul class="eg-mega-mob_content eg-meg-mob_content-utilities">
            <li class="eg-mega-mob_content-item eg-utility-tab">
                <span class="eg-item-text">Support</span>
                <span class="eg-item-forward">
                    ${window.egCarrot}
                </span>
            </li>
            <div class="eg-mega-mob_content-item eg-content-item-content">
                <a class="eg-utility-tab-link" href="https://www.marmot.com/support/faq">Frequently Asked Questions</a>
                <a class="eg-utility-tab-link" href="https://www.marmot.com/login#tracking">Track Orders</a>
                <a class="eg-utility-tab-link" href="https://returns.narvar.com/marmot/returns?https://www.marmot.com/Support-Show?cfid=returns">Returns</a>
                <a class="eg-utility-tab-link" href="https://www.marmot.com/warranty-repair.html">Warranty</a>
                <a class="eg-utility-tab-link" href="https://www.marmot.com/support/contact-us">Contact Us</a>
            </div>
            <a class="eg-mega-mob_content-item" href="https://www.marmot.com/login#tracking">
                <span class="eg-item-text" >Track Order</span>
            </a>
            <a class="eg-mega-mob_content-item" href="https://www.marmot.com/on/demandware.store/Sites-marmot-Site/default/Page-LoyaltyLanding">
                <span class="eg-item-text">Marmot Rewards</span>
            </a>
        </ul>
    </div>
</div>`;
        window.mobileMenu = window.mobileMenuMain;
        function live(selector, event, callback, context) {
            function addEvent(el, type, handler) {
                if (el.attachEvent) el.attachEvent("on" + type, handler);
                else el.addEventListener(type, handler);
            }
            this.Element &&
                (function (ElementPrototype) {
                    ElementPrototype.matches =
                        ElementPrototype.matches ||
                        ElementPrototype.matchesSelector ||
                        ElementPrototype.webkitMatchesSelector ||
                        ElementPrototype.msMatchesSelector ||
                        function (selector) {
                            var node = this,
                                nodes = (node.parentNode || node.document).querySelectorAll(selector),
                                i = -1;
                            while (nodes[++i] && nodes[i] != node);
                            return !!nodes[i];
                        };
                })(Element.prototype);
            function live(selector, event, callback, context) {
                addEvent(context || document, event, function (e) {
                    var found,
                        el = e.target || e.srcElement;
                    while (el && el.matches && el !== context && !(found = el.matches(selector))) el = el.parentElement;
                    if (el && found) callback.call(el, e);
                });
            }
            live(selector, event, callback, context);
        }
        function waitForElement(selector, trigger, delayInterval, delayTimeout) {
            var interval = setInterval(function () {
                if (
                    document &&
                    document.querySelector(selector) &&
                    document.querySelectorAll(selector).length > 0 &&
                    window.mobileMenu
                ) {
                    clearInterval(interval);
                    trigger();
                }
            }, delayInterval);
            setTimeout(function () {
                clearInterval(interval);
            }, delayTimeout);
        }
        let resizedHeight = 0;
        const checkHeaderResizing = (header) => {
            const resizeObserver = new ResizeObserver(entries => {
                for (let entry of entries) {
                    if (entry.target === header) {
                        const newHeight = entry.contentRect.height;
                        resizedHeight = newHeight;
                        console.log('Header height:', newHeight, 'pixels');
                        waitForElement("html body .eg-mega-menu-mob", function () {
                            document.body.style.cssText = `--removedHeight:${resizedHeight}px !important`;
                        }, 50, 15000);
                    }
                }
            });
            resizeObserver.observe(header);
        }
        const genMobMegaMenu = () => {
            const mobMenuList = window.megaMenuDataMob;
            const html = mobMenuList.reduce(function (th, crrh) {
                const contentMobHTML = crrh.content.reduce(function (thc, crrhc) {
                    const isLink = crrhc.linkUrl !== "" ? `href="${crrhc.linkUrl}"` : "";
                    const isImg = crrhc.linkImg !== "" ? `<img src="${crrhc.linkImg}"/>` : '';
                    const istabcta = crrhc.isMenuCta ? "eg-menu-cta" : "";
                    const isStage = crrhc.isMenuCta ? `data-show-stage="${crrhc.showStage}"` : '';
                    return thc += `
                     <a class="eg-mega-mob_content-item ${istabcta}" ${isLink} ${isStage}>
                        ${isImg}
                        <span class="eg-item-text">${crrhc.linkText}</span>
                        <span class="eg-item-forward">${window.egCarrot}</span>
                    </a>
                    `;
                }, '');
                return th += `
                <div class="eg-mega-menu-mob-container" data-menu-id="${crrh.id}">
                    <!-- header -->
                    <div class="eg-mega-menu-mob_header">
                        <!-- back cta -->
                        <span class="eg-mob_header-bck-cta">${window.egCarrot}</span>
                        <!-- title -->
                        <span class="eg-mob_header-title">${crrh.headerText}</span>
                        <!-- cut cta -->
                        <span class="eg-mob_header-cut">${window.egCutIcon}</span>
                    </div>
                    <ul class="eg-mega-mob_content">
                        ${contentMobHTML}
                    </ul>
                </div>
                `;
            }, '');
            return html;
        }
        const genDesMegaMenusList = () => {
            const megaMenuData = window.megaMenuData.des;
            const htmls = megaMenuData.map(function (crrD) {
                const id = crrD.id;
                const featuredContentsHtml = genDesContentsHTML(crrD.featured.content);
                const featuredHTML = `
                <ul class="eg-mega_sidebar">
                    <li class="eg-mega_sidebar-legend">Featured</li>
                    ${featuredContentsHtml}
                </ul>
                `;
                // megaMenu right side content html
                const rightSidecontents = crrD.content.reduce(function (trd, crd) {
                    const rightSidecontentHTML = genDesContentsHTML(crd.content);
                    let isEmpty = '';
                    if (crd.content.length < 1 && crd.legendlinkUrl == "" && !crd.legendImg && crd.legend === "") {
                        isEmpty = "eg-empty";
                    }
                    const legendImg = crd.legendImg;
                    const legendImgHtml = crd.legendImg ? `<img src="${legendImg}"/>` : '';
                    return trd += `
                    <ul class="eg-mega_content-card ${isEmpty}">
                        <li class="eg-mega_content-card-legend"><a href="${crd.legendlinkUrl}">${legendImgHtml}${crd.legend}</a></li>
                        ${rightSidecontentHTML}
                    </ul>
                    `;
                }, '');
                return `
                <div class="eg-mega-menu-des" id="${id}">
                    <!-- sidebar -->
                    ${featuredHTML}
                    <!-- content -->
                    <div class="eg-mega_content-container">
                        ${rightSidecontents}
                    </div>
                </div>
                `;
            });
            return htmls;
        }
        function genDesContentsHTML(content) {
            const contentHTML = content.reduce(function (tf, crrf) {
                const Img = crrf.linkImg;
                const ImgHtml = Img ? `<img src="${Img}"/>` : ''
                return tf += `<li class="eg-mega-sidebar-link-item"><a href="${crrf.linkUrl}">${ImgHtml}${crrf.linkText}</a></li>`;
            }, '');
            return contentHTML;
        }
        function init() {
            // desktop
            megaMenuDesktop();
            // mobile
            megaMenuMob();
        }
        const desMenusHTMLs = genDesMegaMenusList();
        function megaMenuDesktop() {
            // Target to put mega menu
            waitForElement("header", function () {
                const target = document.querySelector("header");
                if (!document.querySelector(".eg-mega-menu-des")) {
                    const targetsOfDes = [...document.querySelectorAll("#menu-marmot-men,#menu-marmot-women,#menu-marmot-equipment,#menu-marmot-kids,#menu-marmot-sale,#menu-marmot-holiday-favorites,#marmot-explore")];
                    targetsOfDes.forEach((targetOfDes, idx) => {
                        if (targetOfDes) {
                            const targetHTML = desMenusHTMLs[idx];
                            targetOfDes.insertAdjacentHTML("afterend", targetHTML);
                        }
                    })
                }
            }, 50, 15000);

            waitForElement(".header-content", function () {
                const targetsOfDes = [...document.querySelectorAll('html body #list-menu>div>ul>li')];
                if (!document.querySelector(".eg-mega-menu-des")) {
                    targetsOfDes.forEach((targetOfDes, idx) => {
                        if (targetOfDes) {
                            const targetHTML = desMenusHTMLs[idx];
                            targetOfDes.insertAdjacentHTML("beforeend", targetHTML);
                        }
                    });
                    document.body.classList.add("eg-test-activated");
                    const newEvent = new MouseEvent('mouseout', {
                        bubbles: true, // Allow the event to bubble up through the DOM
                        cancelable: true // Allow the event to be canceled
                    });
                    live('[data-element="Overlay"]', 'click', function () {
                        const element = document.querySelector('html body #list-menu>div>ul>li a + a[aria-label*="expanded"]');
                        if (element && element.previousElementSibling) {
                            element.previousElementSibling.dispatchEvent(newEvent);
                            document.body.click();
                        }
                    });
                }
            }, 500, 15000);
            live('html body #list-menu>div>ul>li>div:first-child>a:first-child', 'click', function () {
                // document.body.classList.add("eg-mousedown");
                // document.body.classList.remove("eg-mousedown");
            });
        }

        var stage0Els = [];
        function megaMenuMob() {
            // Target to put mega menu
            const target = document.querySelector("body");
            if (!document.querySelector(".eg-mega-menu-mob")) {
                target.insertAdjacentHTML("beforeend", window.mobileMenu);
                const mobMenus = genMobMegaMenu();
                document.querySelector(".eg-mega-menu-mob").insertAdjacentHTML("beforeend", mobMenus);
                waitForElement('header,#primary_header', function () {
                    // checking header resize
                    const headerTarget = document.querySelector("header") || document.querySelector("#primary_header");
                    checkHeaderResizing(headerTarget);
                }, 150, 15000);
                // Events
                // For react based page
                waitForElement('html body button[data-component="Burger"]', function () {
                    document.querySelector('html body button[data-component="Burger"]').addEventListener('click', function (e) {
                        e.preventDefault();
                        e.stopPropagation();
                        e.target.querySelector('.menu-icon').classList.toggle("open");
                        document.body.classList.toggle('eg-no-scroll');
                        document.querySelector('.eg-show-this-stage')?.classList.remove('eg-show-this-stage');
                        emptyStageEls();
                    });
                }, 50, 15000);
                // For non react based pages
                waitForElement("html body .navbar-header button.navbar-toggler", function () {
                    document.body.classList.add("eg-no-react");
                    // events 
                    document.querySelector('html body .navbar-header button.navbar-toggler').addEventListener("click", function () {
                        document.body.classList.toggle('eg-no-scroll');
                        document.querySelector('.eg-show-this-stage')?.classList.remove('eg-show-this-stage');
                        emptyStageEls();
                    })
                }, 50, 15000);


                // events
                document.querySelector(".eg-utility-tab").addEventListener('click', function () {
                    this.classList.toggle('eg-show');
                });
                // live('.eg-mob_header-cut', 'click', function () {
                //     const closeMenuCta = document.querySelector('html body .navbar-header button.navbar-toggler') || document.querySelector('html body button[data-component="Burger"]');
                //     if (closeMenuCta) {
                //         closeMenuCta.click();
                //     }
                // });
                document.querySelectorAll('.eg-mob_header-cut').forEach(mct => {
                    mct.addEventListener('click', function () {
                        const closeMenuCta = document.querySelector('html body .navbar-header button.navbar-toggler') || document.querySelector('html body button[data-component="Burger"]');
                        if (closeMenuCta) {
                            closeMenuCta.click();
                        }
                    })
                });
                live('[data-show-stage]', 'click', function () {
                    stage0Els.push(this.closest('.eg-mega-menu-mob-container'));
                    const newStageElSel = `[data-menu-id="${this.getAttribute('data-show-stage')}"]`;
                    const newStageEl = document.querySelector(newStageElSel);
                    if (newStageEl) {
                        stage0Els.forEach(stage0El => {
                            stage0El.classList.add('eg-hide-stage-0');
                        });
                        const previousStage = document.querySelector('.eg-show-this-stage');
                        if (previousStage && previousStage !== newStageEl) {
                            previousStage.classList.remove("eg-show-this-stage")
                        }
                        newStageEl.classList.add('eg-show-this-stage');
                    }
                });
                live('.eg-show-this-stage .eg-mob_header-bck-cta', 'click', function () {
                    const thisId = this.closest('.eg-show-this-stage').getAttribute("data-menu-id");
                    var matches = thisId.match(/\d+/);
                    var extractedNumber = parseInt(matches[0]);
                    this.closest('.eg-show-this-stage')?.classList.remove('eg-show-this-stage');
                    if (extractedNumber > 1) {
                        const prevStage0El = stage0Els[1];
                        if (prevStage0El) {
                            prevStage0El.classList.remove('eg-hide-stage-0');
                            prevStage0El.classList.add('eg-show-this-stage');
                        }
                    } else {
                        emptyStageEls();
                    }
                });
            }
        }
        function emptyStageEls() {
            stage0Els.forEach(stage0El => {
                if (stage0El) {
                    stage0El.classList.remove('eg-hide-stage-0');
                }
            });
            stage0Els = [];
        }

        function addStyle() {
            var style = document.createElement('style'); style.type = 'text/css'; style.appendChild(document.createTextNode('@import url(\'https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;700&display=swap\');@import url(\'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap\');@media(min-width:992px) {    html body .eg-mega-sidebar-link-item a:hover,    html body .eg-mega_content-card-legend a:hover {        text-decoration: underline !important;    }    html body.eg-test-activated #list-menu ul.chakra-stack {        position: static !important;    }    html body .eg-mega-menu-des {        position: absolute;        left: 0;    }    /* react pages */    html body .header-content {        height: auto;    }    html body.eg-test-activated #list-menu section[id^="popover-content"] {        display: none !important;    }    /* react pages */    html body .eg-mega-menu-des:empty,    html body header .desktop .menu-link-content,    html body .eg-mega_content-card-legend a:empty {        display: none !important;    }    html body .eg-mega-menu-des {        display: none;        width: 100%;        background: white !important;        padding: 24px 60px;        grid-gap: 16px;    }    html body .page header .main-menu .menu-group>ul.navbar-nav>li.desktop.show [class^="eg-mega-menu-des"],    html body.eg-test-activated #list-menu>div>ul>li>div:nth-child(2)[style*="visibility: visible"]~[class^="eg-mega-menu-des"] {        display: flex !important;    }    html body.eg-mousedown #list-menu {        display: none !important;    }    html body .eg-mega_sidebar {        display: flex;        min-width: 180px;        height: auto;        padding: 8px 16px;        flex-direction: column;        align-items: flex-start;        grid-gap: 16px;        list-style: none !important;        background: #F7F7F7;    }    html body .eg-mega_sidebar-legend {        color: #222;        /* Heading/H6 */        font-size: 18px;        font-style: normal;        font-weight: 700;        line-height: 23px;        /* 127.778% */        font-family: Roboto Slab;        padding-bottom: 14px;        border-bottom: 1px solid #222 !important;    }    html body .eg-mega_sidebar li {        width: 100% !important;    }    html body .eg-mega-sidebar-link-item a {        display: block;        color: #222 !important;        font-family: Roboto;        font-size: 14px;        font-style: normal;        font-weight: 400;        /* 24px */        line-height: 150%;        cursor: pointer;    }    html body .eg-mega_sidebar .eg-mega-sidebar-link-item a {        font-weight: 700 !important;        font-size: 16px !important;    }    html body .eg-mega_content-container {        display: flex;        grid-gap: 16px;        /* Optional gap between grid items */        flex: 1;        flex-wrap: wrap;    }    html body .eg-mega_content-card {        height: max-content;        margin: 0;        display: flex;        padding: 8px;        flex-direction: column;        align-items: flex-start;        grid-gap: 8px;        list-style: none;        min-width: 180px;        max-width: 180px;    }    html body .eg-mega_content-card-legend a {        color: #222 !important;        font-family: Roboto;        font-size: 16px;        font-style: normal;        font-weight: 600;        line-height: 150%;        /* 24px */        padding-bottom: 7px;        border-bottom: 1px solid #222 !important;        cursor: pointer;    }    html body .eg-mega_content-card li,    html body .eg-mega_content-card a {        display: block;        width: 100%;    }    html body .eg-mega_content-card-link a {        color: #222 !important;        font-family: Roboto;        font-size: 14px;        font-style: normal;        font-weight: 400;        line-height: 150%;        /* 21px */        cursor: pointer;    }    html body .eg-mega_content-card:last-child {        height: auto !important;        align-items: flex-end !important;        justify-content: flex-end !important;        max-height: 259px;        padding-left: 0 !important;    }    html body .eg-mega_content-card:last-child .eg-mega_content-card-legend a {        padding-bottom: 0 !important;        border: 0 !important;    }    html body .eg-mega-menu-mob {        display: none !important;    }    html body .eg-mega_content-card li img {        margin-bottom: 14px !important;    }    html body.eg-test-activated #list-menu>div>ul>li>div:first-child>a:last-child {        display: none !important;    }    html body.eg-test-activated #list-menu>div>ul>li>div:nth-child(2) {        display: none !important;    }    html body [data-sticky-name="HeaderContent"]>div>div:nth-child(6) {        display: flex !important;        justify-content: center !important;    }}@media(min-width:1530px) {    html body .eg-mega-menu-des {        justify-content: center !important;    }    html body .eg-mega_content-container {        flex: unset !important;        width: max-content !important;    }}@media(max-width:1296px) {    html body .eg-mega_content-card.eg-empty {        display: none !important;    }}@media (min-width: 991px) and (max-width: 1049px) {    html body .eg-search-box {        max-width: 144px !important;    }}@media (min-width: 1050px) and (max-width: 1260px) {    html body .eg-search-box {        max-width: 190px !important;    }}@media(max-width:1279px) and (min-width:1050px) {    html body .eg-mega_content-card {        min-width: auto !important;        max-width: 172px !important;    }    html body .eg-mega_content-container {        grid-gap: 6px !important;        flex-wrap: nowrap !important;    }    html body .eg-mega-menu-des {        padding-left: 20px !important;        padding-right: 20px !important;    }}/* mobile */@media(max-width:991px) {    html body {        --removedHeight: 0px;    }    html body.eg-menu-show {        height: 100vh;        overflow: hidden;    }    html body .eg-mega-menu-des {        display: none !important;    }    html body .eg-mega-menu-mob {        position: fixed;        top: unset !important;        left: 0;        width: 100%;        height: calc(100% - var(--removedHeight));        overflow-y: auto;        background: rgba(0, 0, 0, 0.40);        z-index: 999999999999 !important;        bottom: 0;        transition: left 0.3s linear;    }    html body .eg-mega-menu-mob-container {        background: white;        min-height: max-content;        overflow-y: auto;        display: flex;        overflow-wrap: anywhere;        flex-direction: column;        position: relative;        transition: left 0.3s linear;    }    html body .eg-mega-menu-mob-container:first-child {        height: 100% !important;    }    html body .eg-mega-menu-mob_header {        justify-content: space-between;        background: white;        padding: 16px 21px !important;        display: flex;        width: 100%;        align-items: center;        cursor: pointer;    }    html body .eg-mob_header-title {        color: #222;        text-align: center;        /* Heading/H6 */        font-family: Roboto Slab;        font-size: 18px;        font-style: normal;        font-weight: 700;        line-height: 23px;        /* 127.778% */    }    html body .eg-mob_header-bck-cta {        transform: rotate(90deg);        width: 16px !important;        height: 16px;    }    html body .eg-mob_header-bck-cta svg,    html body .eg-mob_header-cut svg {        width: 100% !important;        height: 100% !important;        fill: #222 !important;    }    html body .eg-mob_header-cut,    html body .eg-mob_header-bck-cta {        display: flex;        align-items: center;        justify-content: center;    }    html body .eg-mob_header-cut {        width: 20px !important;        height: 20px !important;    }    html body .eg-mega-mob_content {        background: white;        list-style: none;        margin: 0;        padding: 0;        transition: left 0.3s linear;    }    html body .eg-mega-mob_content-item {        padding: 16px 20px 16px 16px;        list-style: none;        display: flex;        justify-content: space-between;        cursor: pointer;        border-top: 1px solid #696158;        align-items: center;    }    html body .eg-mega-mob_content-item .eg-item-text {        color: #222;        /* Body/Body M Bold */        font-family: Roboto;        font-size: 16px;        font-style: normal;        font-weight: 700;        line-height: 24px;        /* 150% */    }    html body .eg-mega-mob_content-item .eg-item-forward {        transform: rotate(-90deg);        width: 16px;        height: 16px;        display: flex;        justify-content: center;        align-items: center;        transition: transform 0.3s linear;    }    html body .eg-mega-mob_content-item .eg-item-forward svg {        width: 100%;        height: 100%;    }    html body .eg-mega-mob_content.eg-meg-mob_content-utilities {        background: #F7F7F7 !important;    }    html body .eg-mega-mob_content.eg-meg-mob_content-utilities .eg-item-forward {        transform: rotate(0deg) !important;    }    html body .eg-mega-mob_content-item.eg-content-item-content {        border-top: 0 !important;        flex-direction: column;        align-items: flex-start !important;        padding: 0 !important;    }    html body .eg-utility-tab-link {        display: flex;        padding: 16px 14px 16px 32px;        align-items: center;        color: #222 !important;        /* Body/Body M Regular */        font-family: Roboto;        font-size: 16px;        font-style: normal;        font-weight: 400;        line-height: 24px;        /* 150% */        width: 100% !important;    }    html body .eg-utility-tab:not(.eg-show)+.eg-content-item-content {        display: none !important;    }    html body .eg-utility-tab.eg-show .eg-item-forward {        transform: rotate(180deg) !important;    }    html body .main-menu {        display: none !important;    }    html body:not(.eg-no-scroll) .eg-mega-menu-mob {        left: -100%;    }    html body [data-menu-id] .eg-mega-mob_content-item:last-child {        flex-direction: column;        align-items: flex-start !important;    }    html body [data-menu-id] .eg-mega-mob_content-item:last-child[data-show-stage="eg-holiday-stage-2"] {        flex-direction: row !important;    }    html body .eg-mega-mob_content .eg-mega-mob_content-item img {        width: 180px !important;        margin-left: auto;        margin-right: auto;    }    html body [data-menu-id] .eg-mega-mob_content-item:last-child img {        width: 180px !important;        margin-bottom: 10px;        margin-left: 0 !important;        margin-right: 0 !important;    }    html body [data-menu-id] .eg-mega-mob_content-item:not(.eg-menu-cta) .eg-item-forward {        display: none !important;    }    html body [data-menu-id] .eg-mega-mob_content-item:not(.eg-menu-cta) .eg-item-text {        font-weight: 400 !important;    }    html body [data-menu-id] .eg-mega-mob_content-item:last-child img+.eg-item-text {        font-weight: 700 !important;    }    html body .eg-mega-menu-mob-container[data-menu-id]:not(.eg-show-this-stage) {        left: -100% !important;        width: 0 !important;        height: 0 !important;    }    html body .eg-mega-menu-mob-container[data-menu-id_].eg-hide-stage-0:first-child {        left: -100% !important;        width: 0 !important;        height: 0 !important;    }    html body button[data-component="Burger"] * {        pointer-events: none !important;    }    html body.eg-no-scroll {        height: 100vh;        overflow: hidden;    }}')); document.head.appendChild(style);
        }
        waitForElement('head', addStyle, 1, 15000);
        waitForElement('body', init, 50, 15000);
    } catch (e) {
        if (debug) console.log(e, "error in Test" + variation_name);
    }
})();


Editor is loading...
Leave a Comment