var MagicoLab;(function(n){var t;(function(n){"use strict";var t=function(){function n(){var n=this;this.getDateAsString=function(n){var t=n.getDate(),i=n.getMonth(),r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][i],u=n.getFullYear();return t+" "+r+" "+u};$(function(){n.initialiseCookiePopUp();n.initialiseCookieActionLinks()})}return n.prototype.initialiseCookiePopUp=function(){var n=this.getCookie("abcCookies_lastUpdated");n==""&&this.showPopup(" \t<h2>&nbsp;<\/h2>        <!-- START COOKIE CONSENT INTRO -->    \t<div id='abcCookieIntro' class='mz_cookieIntro'>            <div>                <p>We use cookies to personalise content and ads, analyse our traffic and share information about site usage with our partners. If you would like to turn off cookies, click <strong>Manage<\/strong> to turn off optional cookies. You can adjust your preferences at any time.<\/p>            <\/div>\t\t\t<ul class='mz_cookieMng'><li><a href='#' class='formBtn_reg abcAction_Cookies_ShowSettings'>Manage<\/a><\/li><li><a href='#' class='formBtn_pri abcAction_Cookies_AcceptAll'>Accept all<\/a><\/li><\/ul>        <\/div>        <!-- END COOKIE CONSENT INTRO -->        <!-- START COOKIE MANAGEMENT SETTINGS -->        <div id='abcCookieSettings' class='mz_cookieSettings' style='display:none'>            <h3>Privacy Preferences<\/h3>            <ul class='mz_cookieMng'><li><a href='#' class='formBtn_reg abcAction_Cookies_SetPref'>Confirm my choices<\/a><\/li><li><a href='#' class='formBtn_pri abcAction_Cookies_AcceptAll'>Accept all<\/a><\/li><\/ul>        \t<fieldset class='mz_switchBox'>                <label for='cookie01' class='mz_switchLbl'>Operational cookies<\/label>                <strong class='mz_alwaysOn'>Always Active<\/strong>                <div class='mz_genAdv_txt'><p>Operational cookies are used to provide our services and cannot be disabled for those purposes. For example:<\/p>                    <ul>                        <li>Recognising you when you sign-in to use our services.<\/li>                        <li>Displaying features, products, and services which might be of interest to you.<\/li>                        <li>Keeping track of items stored in your shopping basket.<\/li>                        <li>Preventing fraudulent activity.<\/li>                        <li>Improving security.<\/li>                        <li>Keeping track of your preferences such as currency and language.<\/li>                    <\/ul>                <p>We also use cookies to understand how customers use our services so we can make improvements.                    For example, we use cookies to measure and understand the performance of our services.<\/p><\/div>            <\/fieldset>        \t<fieldset class='mz_switchBox'>                <label for='abcCookieExternalParties' class='mz_switchLbl'>External Party Cookies<\/label>                <label class='mz_switch'><input type='checkbox' id='abcCookieExternalParties' name='abcCookieExternalParties' /><div class='mz_formToggle'><\/div><\/label>                <div class='mz_genAdv_txt'><p>Our partners provide services like personalising the content of the website to you, recording analytics for how you use the site, and providing add-on services.                    The site can work perfectly without these services so you do not need to turn these on if you don’t want them on.<\/p><\/div>            <\/fieldset>            <ul class='mz_cookieMng'><li><a href='#' class='formBtn_reg abcAction_Cookies_SetPref'>Confirm my choices<\/a><\/li><li><a href='#' class='formBtn_pri abcAction_Cookies_AcceptAll'>Accept all<\/a><\/li><\/ul>        <\/div>        <!-- END COOKIE MANAGEMENT SETTINGS -->                    ")},n.prototype.initialiseCookieActionLinks=function(){var n=this;$(document).on("click",".abcAction_Cookies_AcceptAll",function(t){n.acceptAllCookies();t.preventDefault()});$(document).on("click",".abcAction_Cookies_ShowSettings",function(n){$("#abcCookieIntro").hide();$("#abcCookieSettings").slideDown();n.preventDefault()});$(document).on("click",".abcAction_Cookies_SetPref",function(t){n.setPreferencesCookies();t.preventDefault()});$(document).on("click",".abcAction_Cookies_ClearAll",function(t){n.clearPreferencesCookies();t.preventDefault()})},n.prototype.acceptAllCookies=function(){this.updateCookiesPreferences("Y","N");location.reload()},n.prototype.setPreferencesCookies=function(){var n="N";$("#abcCookieExternalParties").is(":checked")&&(n="Y");this.updateCookiesPreferences("N",n);location.reload()},n.prototype.clearPreferencesCookies=function(){this.clearAllCookies();location.reload()},n.prototype.clearAllCookies=function(){for(var i=document.cookie.split(";"),n=0;n<i.length;n++){var t=i[n],r=t.indexOf("="),u=r>-1?t.substr(0,r):t;/MBDOMV5|MBDARE|MBCURRENCY|MBV5ABTESTGROUP|MBSHIPPINGREGION/.test(u.toUpperCase())==!1&&(document.cookie=u+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/")}},n.prototype.updateCookiesPreferences=function(n,t){var i=90;this.setCookie("abcCookies_lastUpdated",this.getDateAsString(new Date),i);this.setCookie("abcCookies_acceptAll",n,i);this.setCookie("abcCookies_acceptPartners",t,i);this.setCookie_SessionOnly("MBCookiesAccepted","true")},n.prototype.setCookie=function(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toUTCString();document.cookie=n+"="+t+";"+u+";path=/"},n.prototype.setCookie_SessionOnly=function(n,t){document.cookie=n+"="+t+";path=/"},n.prototype.getCookie=function(n){for(var t,r=n+"=",f=decodeURIComponent(document.cookie),u=f.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""},n.prototype.showPopup=function(t){setTimeout(function(){var i=$("#"+n.idForPopup),r=$("#"+n.idForOverlay);r.length===0&&(r=$("                        <div id='"+n.idForOverlay+"' style='display:none'>                            <input type='hidden' id='abcDontHidePopup' name='abcDontHidePopup' value='Y' />                        <\/div>                    "),$("#mz_form").append(r));i.length===0&&(i=$("<div id='"+n.idForPopup+"' style='display:none' class='mz_cookieConsent'><\/div>"),$("#mz_form").append(i));r.fadeIn();i.html(t).fadeIn();i.scrollTop(0)},2e3)},n.idForOverlay="mz_genericOverlay",n.idForPopup="mz_genericPopup",n}();n.Engine=t})(t=n.GdprCookies||(n.GdprCookies={}))})(MagicoLab||(MagicoLab={}));new MagicoLab.GdprCookies.Engine