function TermsChangeBanner(n,t,i,r,u,f,e,o){this.cookieName=n;this.todayDate=t;this.banner1Date=i;this.banner2Date=r;this.banner1ExpiryDate=u;this.banner2ExpiryDate=f;this.updatingTerms=e;this.updatedTerms=o}var slide,videoConfigObj;resize=globalExceptionHandler.exceptionHandler(function(){return});homePageResize=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){setHomeMainSectionHeightWidth();$(window).bind("resize",function(){setHomeMainSectionHeightWidth()})});homePageOpenLinkInSameTab=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n,t,i){typeof i=="undefined"&&(i=t);surveyVariables.isBodyClicked=!0;performAjaxCallCustomValues("TrackWithEmptyResponse",null,null,null,null,ClientSideMetricUtil.getHomePageOpenLink(i));window.location.href=n;homePageOpenLinkLog(t)});homePageOpenLinkInNewTab=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n,t){window.open(n,"_blank");homePageOpenLinkLog(t)});homePageOpenLinkLog=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n){LogJavaScriptMessageWithTracker("Home Page Links",n,n+" Link Clicked ")});setHomeMainSectionHeightWidth=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){var n=$(window).height(),t=$(window).width(),i=$(".homePageMainDivStatic").height();$(".homepageMainDivList").css("display")!="none"&&t>700?n<t?n>400?$(".mainImageContent").css("height",n-200):$(".mainImageContent").css("height",n-80):$(".mainImageContent").css("height",.4*t):$(".mainImageContent").css("height","auto");$(".headerSize").height($(".header").height());$("#video-div").height($(".mainImageContent").height())});bannerClose=globalExceptionHandler.exceptionHandler(function(){$("#CouponsBanner").hide();$(".headerSize").height($(".header").height())});readcookie=globalExceptionHandler.exceptionHandler(function(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return parseInt(t.substring(r.length,t.length))}return null});createCookie=globalExceptionHandler.exceptionHandler(function(n,t,i){var r="; expires="+i;document.cookie=n+"="+t+r+"; path=/"});parseDate=function(n){var t=n.split(";"),r=parseInt(t[0]),u=parseInt(t[1]),f=parseInt(t[2]),i=new Date;return i.setFullYear(r,u,f),i.setHours(0,0,0),i};TermsChangeBanner.prototype.Dismiss=function(){$("#TermsChange").addClass("termsChangeHide");var n=todayDate.getTime()<this.banner2Date.getTime()?this.banner2Date:this.banner2ExpiryDate;createCookie(this.cookieName,n.getTime(),this.banner2ExpiryDate);$(".headerSize").height($(".header").height())};TermsChangeBanner.prototype.OpenTermsPage=function(){var n=window.open("https://go.microsoft.com/fwlink/?LinkID=2092201","_blank");this.Dismiss()};TermsChangeBanner.prototype.ShowOrHide=function(){var t=this.todayDate.getTime(),u=this.banner1ExpiryDate.getTime(),f=this.banner2ExpiryDate.getTime(),i,r,e,n;if(t>=u&&t<this.banner2Date.getTime()||t>=f){$("#TermsChange").addClass("termsChangeHide");return}if(i=readcookie(this.cookieName),i==null&&(createCookie(this.cookieName,this.banner1Date.getTime(),this.bannerExpiryDate),i=this.banner1Date.getTime()),t<i){$("#TermsChange").addClass("termsChangeHide");return}r=this.banner2Date.getTime();e=t<r?this.updatingTerms:this.updatedTerms;$("#TermsChangeDeclaration").text(e);$("#TermsChange").removeClass("termsChangeHide");n=new Date;t<r?(n.setDate(n.getDate()+7),n=n.getTime()<u?n:this.banner2Date):t>=r&&t<=f&&n.setDate(n.getDate()+1);createCookie(this.cookieName,n.getTime(),this.bannerExpiryDate)};mouseoverOnTermsChange=globalExceptionHandler.exceptionHandler(function(n){$(n).css("background-color","#ffa615");$(n).css("cursor","pointer");$(n).css("cursor","hand")});slideShowStart=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){slide=setInterval(changeNextMainDiv,1e4)});slideShowStop=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){clearInterval(slide)});changeHopePageMainDivSlide=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n,t){$(".homepageMainSection > ul.homepageMainDivList > li.homepageMainDivShow").fadeOut(t).removeClass("homepageMainDivShow").addClass("homepageMainDivHide");$(".homepageMainSection > ul.homepagePagination > li.selectedPagination").removeClass("selectedPagination").addClass("unselectedPagination");$(".homepageMainSection > ul.homepageMainDivList > li").eq(n).fadeIn(t).addClass("homepageMainDivShow").removeClass("homepageMainDivHide");$(".homepageMainSection > ul.homepagePagination > li").eq(n).removeClass("unselectedPagination").addClass("selectedPagination")});changeNextMainDiv=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){var n=$(".homepageMainSection > ul.homepageMainDivList > li").index($(".homepageMainSection > ul.homepageMainDivList > li.homepageMainDivShow")),t;n=n<0?0:n;t=(n+1)%$(".homepageMainSection > ul.homepageMainDivList > li").length;changeHopePageMainDivSlide(t,3500)});homePageScroll=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){var t,n;homeDivInFocus("#homePageMainSection");nextDivInFocus("#homePage3rdSection");nextDivInFocus("#homePage2ndSection");t=$(window).scrollTop();$(".mainImageContent").css("background-position","center "+t+"px");n=$("#bigFooter").offset().top+$("#bigFooter").outerHeight(!0)-10;$("#bigFooter").css("display")=="none"&&(n=$(".smallFooter").offset().top);$(window).scrollTop()+$(window).height()>=n?toggelScrollButton(!0):toggelScrollButton(!1)});homeDivInFocus=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n){var n="#homePageMainSection",r=$(window).width(),i=$(window).height(),t=$(document).scrollTop(),u=t,f=t+i,e=$(n).offset();elementHeight=$(n).height();t!=0?slideShowStop():(slideShowStop(),slideShowStart(),toggelScrollButton(!1))});gotoHome=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n){var n="#Main",i=$(window).width(),t=$(n).offset();scrollToPosition(t);toggelScrollButton(!1)});gotoNextDiv=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){var f=$(window).height(),i=$(".header").height(),r=$(document).scrollTop(),u=$("#Second").offset(),n,t;u.top-=i;n=$("#Third").offset();n.top-=i;t=$(".homePageSeparator3").offset();t.top-=i;r<u.top-10?scrollToPosition(u):r<n.top-20?scrollToPosition(n):r<t.top-10&&(scrollToPosition(t),toggelScrollButton(!0))});nextDivInFocus=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n){var e=$(window).width(),f=$(window).height(),u=$(document).scrollTop(),i=u,r=u+f,t=$(n).offset();elementHeight=$(n).height();t.top>i&&t.top<r-200?($(n+".homePage2ndSection .homePageContent > h3").addClass("homePage2ndSectionh3Zoom"),$(n+".homePage3rdSection .homePageContent > h3").addClass("homePage3rdSectionh3Zoom")):($(n+".homePage2ndSection .homePageContent > h3").removeClass("homePage2ndSectionh3Zoom"),$(n+".homePage3rdSection .homePageContent > h3").removeClass("homePage3rdSectionh3Zoom"));(t.top>i&&t.top<r||t.top+elementHeight>i&&t.top+elementHeight<r)&&(verticalVisible=t.top>=i&&t.top+elementHeight<=r?elementHeight:t.top<i?elementHeight-(i-t.top):r-t.top)});toggelScrollButton=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n){n?($("#pagination_Arrow2").hide(),$("#pagination_Arrow").show()):($("#pagination_Arrow").hide(),$("#pagination_Arrow2").show())});scrollToPosition=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n){$("html,body").animate({scrollTop:n.top,scrollLeft:n.left},1e3)});submitResponse=globalExceptionHandler.exceptionHandler(function(){LogJavaScriptMessageWithTracker("Survey leavingHomePage Question",$("#OptionNoSelected:checked").val(),$("#OtherComments").val());hidePopUp()});dismiss=globalExceptionHandler.exceptionHandler(function(){LogJavaScriptMessageWithTracker("Survey leavingHomePage Question","user_dismissed",$("#OtherComments").val());hidePopUp()});setUpHomePageVideo=globalExceptionHandler.exceptionHandler(function(){videoConfigObj=new videoConfigClass("homePage_PitchVideo","homePageVideo","100%","100%","https://bpmediaservice.streaming.mediaservices.windows.net/c58edba8-61be-4aea-bfea-fbd17a286506/BingPlaces_ValueProp_Final_July2016.ism/Manifest","",!1,videoClassCallback);myPlayer=OpenVideo(videoConfigObj)});videoClassCallback=function(n){videoControl=new videoControlClass(n,[function(){checkForAnnotationPitchVideo(videoControl)},pauseVideoOnSmallScreen,adjustCloseButton],$("#video-div"),videoConfigObj);videoControl.showVideo();n.addEventListener("loadeddata",function(){adjustCloseButton();n.addEventListener(amp.eventName.timeupdate,function(){checkForAnnotationPitchVideo(videoControl)});n.play()})};pauseVideoOnSmallScreen=globalExceptionHandler.exceptionHandler(function(){videoControl.pauseVideoOnSmallScreen(900)});adjustCloseButton=globalExceptionHandler.exceptionHandler(function(){videoControl.adjustCloseButtonOnVideo(10,10)})