-->
//window.dataLayer = window.dataLayer || [];
//function gtag(){dataLayer.push(arguments);}
//gtag('js', new Date());
//gtag('config', 'G-LB6HH8THFH');
// content element that will be wrapped
var campaignContent = document.querySelector('section.p2a-campaign-content');
// create content wrapper container
var campaignContentWrapper = document.createElement('div');
campaignContentWrapper.classList.add('p2a-campaign-content-wrap')
// insert content wrapper before content element in the DOM tree
campaignContent.parentNode.insertBefore(campaignContentWrapper, campaignContent);
// move content element into content wrapper
campaignContentWrapper.appendChild(campaignContent);
// form element that will be wrapped
var campaignForm = document.querySelector('section.p2a-campaign-action');
// create form wrapper container
var campaignFormWrapper = document.createElement('div');
campaignFormWrapper.classList.add('p2a-campaign-action-wrap')
// insert form wrapper before form element in the DOM tree
campaignForm.parentNode.insertBefore(campaignFormWrapper, campaignForm);
// move form element into form wrapper
campaignFormWrapper.appendChild(campaignForm);
// move mobile description before tabs
var campaignAction = document.querySelector('section.p2a-campaign-action');
var actionHeading = document.querySelector('h2.p2a-action-heading');
var mobileDescription = document.querySelector('section.p2a-content-mobile');
campaignAction.parentNode.insertBefore(mobileDescription, campaignAction);
campaignAction.parentNode.insertBefore(actionHeading, mobileDescription);
// add class to campaign content if tabs exist
var hasTwoTabs = document.querySelector('ul.halves');
var hasThreeTabs = document.querySelector('ul.thirds');
setTimeout(() => {
if(hasTwoTabs || hasThreeTabs){
campaignContent.classList.add("has-tabs")
}
}, 1000);
var toggleButton = mobileDescription.firstElementChild;
var mobileDescriptionContent = mobileDescription.lastElementChild;
mobileDescription.insertBefore(mobileDescriptionContent, toggleButton);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-2228733-25');