var btCookies=btCookies||{};jQuery.expr[":"].focus=function(elem){return elem===document.activeElement&&(elem.type||elem.href)};jQuery.cookie=function(key,value,options){if(arguments.length>1&&String(value)!=="[object Object]"){options=jQuery.extend({},options);if(value===null||value===undefined){options.expires=-1}if(typeof options.expires==="number"){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days)}value=String(value);return(document.cookie=[encodeURIComponent(key),"=",options.raw?value:encodeURIComponent(value),options.expires?"; expires="+options.expires.toUTCString():"",options.path?"; path="+options.path:"",options.domain?"; domain="+options.domain:"",options.secure?"; secure":""].join(""))}options=value||{};var result,decode=options.raw?function(s){return s}:decodeURIComponent;return(result=new RegExp("(?:^|; )"+encodeURIComponent(key)+"=([^;]*)").exec(document.cookie))?decode(result[1]):null};btCookies=function(){function setCookie(newLevel){$.cookie("bt_cookie_level",newLevel,{domain:"bt.com",path:"/",expires:365});$.ajax({url:static_root+"/globalheader/cookies/stmPixel.gif",cache:false,success:function(data){}});if(newLevel<="2"){$("#rememberDisableDiv").hide();$(".remChkBox").hide()}else{$("#rememberDisableDiv").show();$(".remChkBox").show()}}function getCookie(){return $.cookie("bt_cookie_level")}function initLevel(){var currentLevel=getCookie();switch(currentLevel){case"1":case"2":$(".cookieNecessaryPerformance label").click();break;case"3":$(".cookieFunctional label").click();break;case"4":case"5":$(".cookieSharing label").click();break}}function cookieSelection(){var mask=$('
"'),sliderImg=$(''),sliderImgTouch=$(''),duration=250,currentLevel=getCookie();$(mask).insertAfter(".cookieSlider");$(".cookieSlider").clone().appendTo(mask).addClass("cookieSliderActive").removeClass("cookieSlider");$(".cookieSlider").find("label").attr("tabindex","0");$(".cookieSlider input").attr("disabled","disabled");var cloneInputs=$(".cookieSliderActive li input");for(var i=0;i="0"){$(".cookieNecessaryPerformance label").click()}else{if($(mask).width()<="315"&&$(mask).width()>="114"){$(".cookieFunctional label").click()}else{if($(mask).width()<="430"&&$(mask).width()>="316"){$(".cookieSharing label").click()}}}}});$("#details div").hide();switch(currentLevel){case"1":case"2":$("#details .neccesaryPerformanceList").show().children().show();break;case"3":$("#details .functionalList").show().children().show();break;case"4":case"5":$("#details .sharingList").show().children().show();break}$(".cookieSubmit .cookieButton").hover(function(){$(this).addClass("buttonSelectedHover")},function(){$(this).removeClass("buttonSelectedHover")});$(".cookieSubmit p a").click(function(e){e.preventDefault();$("#cboxClose").click()});$(".submitCookie").click(function(e){var levelBefore=getCookie();e.preventDefault();$("#yourCookieSettings").fadeOut();$("#cookieOverlay").fadeOut();currentLevel=($(".cookieSliderActive input:checked").length+2).toString();setCookie(currentLevel);setCookieLevel(currentLevel);setOmniture("Button:Save and close");if(levelBefore!=currentLevel){window.setTimeout(function(){location.reload()},6000)}})}function setOmniture(linkName){if(typeof s_pageName!="undefined"){var level=getCookie();if(typeof s_gi!="undefined"){s=s_gi("btcom");s.linkTrackVars="eVar19,prop50";s.eVar19="Con:Cookies:Lightbox:"+linkName+":"+level;s.prop50="Con:Cookies:Lightbox:"+linkName+":"+level;s.tl(this,"o","Con:Cookies:Lightbox:"+linkName+":"+level)}else{if(typeof s_co!="undefined"){s_linkTrackVars="eVar19,prop50";s_eVar19="Con:Cookies:Lightbox:"+linkName+":"+level;s_prop50="Con:Cookies:Lightbox:"+linkName+":"+level;s_linkType="o";s_linkName="Con:Cookies:Lightbox:"+linkName+":"+level;s_lnk=s_co(this);s_gs("btcom")}}}}function setCookieLevel(currentLevel){if(currentLevel<="2"){$("#rememberDisableDiv").hide();$(".remChkBox").hide()}else{$("#rememberDisableDiv").show();$(".remChkBox").show()}$cookieButtons=$(".x-cookie-container li");$cookieButtons.each(function(i,elem){if(i>=currentLevel){$(elem).addClass("x-disabled")}});$("#cookiesToolbar ul li a").removeClass("active");switch(currentLevel){case"1":$(".iconNeccesary a, .iconPerformance a").addClass("active");break;case"2":$(".iconNeccesary a, .iconPerformance a").addClass("active");break;case"3":$("#cookiesToolbar ul li a").not(":last").addClass("active");break;case"4":$("#cookiesToolbar ul li a").addClass("active");break;case"5":$("#cookiesToolbar ul li a").addClass("active");break}}function cookieNotif(){var $popup=$("#cookieNotification"),currentLevel=getCookie();if(currentLevel!==null){$popup.hide()}else{cookieNotifTimer()}$("#cookieNotification .changeNow").bind("click",function(e){e.preventDefault();$("#cookieNotification").unbind("mouseleave");$popup.hide();currentLevel=4;setCookie(currentLevel);$(".cookieLightbox").click()});$("#cookieNotification .lastButton").bind("click",function(e){e.preventDefault();$("#cookieNotification").unbind("mouseleave");$popup.hide();currentLevel=4;setCookie(currentLevel)})}function cookieNotifTimer(){var $popup=$("#cookieNotification"),onTimeOut=function(){$popup.hide();currentLevel=5;setCookie(currentLevel);$(".cookieLightbox").one("click",function(e){e.preventDefault();currentLevel=4;setCookie(currentLevel)})},timer=setTimeout(onTimeOut,12000);$popup.bind("mouseenter",function(){clearTimeout(timer)}).bind("mouseleave",function(){timer=setTimeout(onTimeOut,12000)})}function openLightbox(){$(".cookieLightbox").bind("click",function(e){setOmniture("Link:Change cookie settings");var $window=$(window),scrollPos=$window.scrollTop(),windowHeight=$window.height(),$docHeight=$(document).height(),lightboxTop=0;e.preventDefault();if($docHeight<1000){$docHeight=900;lightboxTop=50}else{if(scrollPos+windowHeight>=$docHeight-100){lightboxTop=$docHeight-900}else{lightboxTop=scrollPos+50}}if($("#cookieWrapper .mask").length<1){cookieSelection()}initLevel();$("#yourCookieSettings").fadeIn().css({top:lightboxTop});if($(window).width()<768){$("#cookieOverlay").css({width:$(document).width(),height:$(document).height()}).fadeIn();$("#ads-mob-wrapper").css("z-index","9")}else{$("#cookieOverlay").css({width:$(document).width(),height:$(document).height()}).fadeIn()}$("#cookieOverlay").bind("click",function(){$("#yourCookieSettings").find("#close").click()});if($("#yourCookieSettings:visible")){$(document).bind("keydown",function(e){if(e.which==27){$("#yourCookieSettings").find("#close").click()}})}if($(window).width()<768){window.scrollTo(0,1)}});$("#yourCookieSettings").find("#close").bind("click",function(e){setOmniture("Button:Close");e.preventDefault();$("#yourCookieSettings").fadeOut();$("#cookieOverlay").fadeOut();$(".cookieLightbox").focus();if($(window).width()<768){$("#ads-mob-wrapper").css("z-index","999999")}});$("#yourCookieSettings").find(".cookieSubmit a").bind("click",function(e){setOmniture("Link:Cancel");e.preventDefault();$("#yourCookieSettings").fadeOut();$("#cookieOverlay").fadeOut();if($(window).width()<768){$("#ads-mob-wrapper").css("z-index","999999")}})}function addToolbar(){var toolbarHtml='';$("body").append(toolbarHtml)}function addToolbarMobile(){var toolbarHtml='';$("body").append(toolbarHtml);$(".x-cookie-btn").bind("click",function(e){var $this=$(this),$ref=$("#"+$this.attr("href").split("#")[1]),$tipButton=$this.parent(),isActive=$tipButton.hasClass("x-active"),$btnContainer=$tipButton.parent();e.preventDefault();$(".x-cookie-tooltip").removeClass("x-active");$btnContainer.find(".x-active").removeClass("x-active");if(!isActive){$ref.addClass("x-active");$tipButton.addClass("x-active")}if($(".x-cookie-container ul li.x-active").length>0){$("#div-gpt-mob-1").css("top","-194px")}else{$("#div-gpt-mob-1").css("top","-100px")}});$("#footer-wrapper").bind("inview",function(event,visible){if(visible==true){$("#div-gpt-mob-1").css("top","-100px");if($(".x-cookie-container ul li.x-active").length>0){$("#div-gpt-mob-1").css("top","-194px")}}else{$("#div-gpt-mob-1").css("top","auto")}})}function addNotification(){var notifHtml="The cookie settings on this website are set to 'allow all cookies' to give you the very best experience. If you continue without changing these settings, you consent to this - but if you want, you can change your settings at any time at the bottom of this page.
Find out more about Cookies
";$("body").append(notifHtml)}function initTooltips(){var strictlyNeccesaryTooltip='',performanceTooltip=$(''),functionalTooltip=$(''),sharingTooltip=$(''),cookieHelpTooltip=$('');$("body").children().bind("mouseenter",function(e){}).bind("mouseout",function(e){});$("body").append(strictlyNeccesaryTooltip,performanceTooltip,functionalTooltip,sharingTooltip,cookieHelpTooltip);$("#cookiesToolbar").find(".cookieTip").bind("click",function(e){e.preventDefault()}).bind("focusin",function(e){if($(window).width()<768){}var $tooltip=$("#"+$(this).attr("href").split("#")[1]),tooltipHeight=$("#"+$(this).attr("href").split("#")[1]).height(),focusTop=$(this).position().top<500?($("#cookiesToolbar").position().top-110):$(this).position().top-(tooltipHeight+23),focusLeft=$(this).position().left-($(this).width()/2),$windowWidth=$(window).width();topOffset=e.pageY-$tooltip.height()-30;if(focusLeft>$windowWidth-295){focusLeft=focusLeft-237;$tooltip.addClass("leftTip")}else{$tooltip.removeClass("leftTip")}if(focusLeft>$windowWidth-300){focusLeft=$windowWidth-300}$tooltip.css({top:focusTop,left:focusLeft})}).bind("mouseenter",function(e){var $tooltip=$("#"+$(this).attr("href").split("#")[1]),topOffset=0,leftOffset=0,tooltipHeight=$("#"+$(this).attr("href").split("#")[1]).height(),focusTop=$(this).position().top-(tooltipHeight+23),focusLeft=$(this).position().left-($(this).width()/2),$windowWidth=$(window).width();$(".cookieTooltip").css("left","-999em");$(document).bind("mousemove.tooltipPos",function(e){topOffset=e.pageY-$tooltip.height()-30;if(e.pageX>$windowWidth-275){leftOffset=e.pageX-255;$tooltip.addClass("leftTip")}else{leftOffset=e.pageX-20;$tooltip.removeClass("leftTip")}if(leftOffset>$windowWidth-300){leftOffset=$windowWidth-300}$tooltip.css({top:topOffset,left:leftOffset})})}).bind("mouseout focusout",function(){var $tooltip=$("#"+$(this).attr("href").split("#")[1]);$tooltip.css("left","-999em");$(document).unbind("mousemove.tooltipPos")});$("a[rel=cookiePopup]").click(function(){window.open(this.href,"moreAbout","scrollbars=1, width=830, height=600");return false})}function addDetails(){var detailsContainer='',neccesaryPerformance='
',functional='
This website will:
- Remember what is in your shopping basket
- Remember how far you are through an order
- Remember your log-in details
- Make sure you\'re secure when logged in to the website
- Make sure the website looks consistent
- Offer live chat support
This website will not:
- Allow you to share pages with social networks like Facebook
- Allow you to comment on blogs
- Send information to other websites so that advertising is more relevant to you
',sharing='
This website will:
- Remember what is in your shopping basket
- Remember how far you are through an order
- Remember your log-in details
- Make sure your logged in areas are secure
- Offer live chat support
- Make sure the website looks consistent
- Allow you to share pages with social networks like Facebook
- Allow you to comment on blogs
- Send information to other websites so that advertising is more relevant to you
This website will not:
',detailsHtml=detailsContainer+neccesaryPerformance+functional+sharing;$("#cookieWrapper").append(detailsHtml);$("#details h3").bind("click",function(e){e.preventDefault();$(this).toggleClass("x-close")})}function addContainer(){var cookieOverlay='
',cookieSettings='CloseYour cookie settings
',containerHtml=cookieOverlay+cookieSettings+cookieFooter;$("body").append(containerHtml)}function addContainerMobile(){var cookieOverlayMobile='
',cookieSettingsMobile='CloseYour cookie settings
',containerHtmlMobile=cookieOverlayMobile+cookieSettingsMobile+cookieFooterMobile;$("body").append(containerHtmlMobile)}function focusClicks(){$("#cookieWrapper").find("label").bind("focus",function(){$(".cookieSliderActive").find("[for="+$(this).attr("for")+"Clone]").addClass("focused")}).bind("blur",function(){$(".cookieSliderActive").find("[for="+$(this).attr("for")+"Clone]").removeClass("focused")})}return{cookies:(function(){var supportedCookies={necessary:1,performance:2,functional:3,sharing:4,targeting:4},cookiesAPI={getAllPossibleCookieLevels:function(){var listOfCookies=[],cookieName;for(cookieName in supportedCookies){listOfCookies.push(cookieName)}return listOfCookies},getSupportedCookieLevels:function(){var listOfCookies=[],currentCookieLevel=Number(getCookie()),cookieName;for(cookieName in supportedCookies){if(supportedCookies[cookieName]<=currentCookieLevel){listOfCookies.push(cookieName)}}return listOfCookies},hasSupportFor:function(){var supportedCookies=cookiesAPI.getSupportedCookieLevels(),result=true,i;for(i=0;i(top+height)||scrolltop+vpH