function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function ClientNavSearch(n){if(typeof n!="undefined"&&n!==null)try{occe.WedcsSearchEvent(n)}catch(t){return}}var occe,$ocGuided,ocpubStep,FireStepEvent,imgSwap;if(function(){"use strict";Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var r,f,u,i;if(this==null)throw new TypeError('"this" is null or not defined');if((f=Object(this),u=f.length>>>0,u===0)||(i=+t||0,Math.abs(i)===Infinity&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);r<u;){if(r in f&&f[r]===n)return r;r++}return-1}),Array.isArray||(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"}),Date.now||(Date.now=function(){return+new Date}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),Array.prototype.forEach||(Array.prototype.forEach=function(n,t){var u,i,r,f,e;if(this==null)throw new TypeError(" this is null or not defined");if(r=Object(this),f=r.length>>>0,typeof n!="function")throw new TypeError(n+" is not a function");for(arguments.length>1&&(u=t),i=0;i<f;)i in r&&(e=r[i],n.call(u,e,i,r)),i++}),String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})})}(),occe={},occe.constants={},occe.constants.metaMsEnv="ms.env",occe.constants.metaMsEnvProd="prod",occe.constants.metaMsEnvDev="dev",occe.constants.events={CLICK_EVENT_TYPE:"click",ENTER_KEYCODE:13,ESC_KEYCODE:27,DOWN_KEYCODE:40,UP_KEYCODE:38},occe.constants.fadeInTimeoutInMs=10,occe.constants.wedcs={componentGroup:{outcomeDrivenHelp:"ODH",cssControl:"CSSControl"},interactionType:{formSubmit:"2",samePage:"11",completedFinalStepInSeries:"22"},coreEventType:{pageView:"0",anchorLinkClick:"1",imageLinkClick:"2",imageAreaClick:"3",imputClick:"4",customEvent:"5",pageUnload:"11"},endActionAction:{goto:"Goto",send:"Send"},endActionOffer:{phone:"PHN",contact:"Contact"}},occe.eventHelpers={eventIsClick:function(n){return n.type===occe.constants.events.CLICK_EVENT_TYPE},eventIsEnterKeypress:function(n){return(n.which||n.keyCode)===occe.constants.events.ENTER_KEYCODE},eventIsEscKeypress:function(n){return(n.which||n.keyCode)===occe.constants.events.ESC_KEYCODE},eventIsDownKeypress:function(n){return(n.which||n.keyCode)===occe.constants.events.DOWN_KEYCODE},eventIsUpKeypress:function(n){return(n.which||n.keyCode)===occe.constants.events.UP_KEYCODE}},occe.pushOntoExecutionStack=function(n,t){var i=Array.prototype.slice.call(arguments,2);return setTimeout(function(){n.apply(t,i)},0)},occe.sendWedcsPv=function(n,t){var i=window.location.host.toLowerCase();((i.indexOf("office.com")!==-1||i.indexOf("live.com")!==-1||i.indexOf("microsoft.com")!==-1)&&i.indexOf("edog.")===-1&&i.indexOf("corp.")===-1&&i.indexOf("int.")===-1?occe.setMetaTag(occe.constants.metaMsEnv,occe.constants.metaMsEnvProd):occe.setMetaTag(occe.constants.metaMsEnv,occe.constants.metaMsEnvDev),typeof n!="undefined"&&n!==null&&$.each(n,function(n,t){occe.setMetaTag(n,t)}),typeof MscomSendPageView!="undefined"&&MscomSendPageView(),t!==!1)&&typeof n!="undefined"&&n!==null&&$.each(n,function(n){occe.removeMetaTag(n)})},occe.SendWedcsCustom=function(n){var t=[];typeof n!="undefined"&&n!==null&&$.each(n,function(n,i){t.push(n),t.push(i)}),typeof MscomCustomEvent!="undefined"&&MscomCustomEvent.apply(window,t)},occe.getMetaTagValue=function(n){var t=$("meta[name='"+n+"']");return t.length===0?null:t.attr("content")},occe.setMetaTag=function(n,t){var i=$("meta[name='"+n+"']");i.length===0&&$('<meta name="'+n+'" content="'+t+'"/>').appendTo("head"),i.attr("content",t)},occe.removeMetaTag=function(n){var t=$("meta[name='"+n+"']");t.length>0&&t.remove()},occe.setPreviousAssetId=function(){var t="prevAssetDKey",n;typeof Storage!="undefined"&&(n=occe.GetSessionValue(t),n!==null&&occe.setMetaTag("ms.ocpub.previousassetID",n))},occe.setSessionAssetValue=function(){var t="prevAssetDKey",n=occe.getMetaTagValue("ms.ocpub.assetID");n&&n.toLowerCase().indexOf("s.cl.nav")===-1&&typeof Storage!="undefined"&&occe.TrySetSessionValue(t,n,!0)},occe.GetQueryStringParam=function(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]"+n+"=([^&#]*)","i"),i=r.exec(location.search),t;try{t=i===null?"":decodeURIComponent(i[1].replace(/\+/g," "))}catch(u){try{t=unescape(i[1].replace(/\+/g," "))}catch(f){t=""}}return t},occe.toggleAttribute=function(n,t){function f(){n.data(i,r)}function e(){var r=n.data(i);n.attr(t,r)}var r=n.attr(t),i="toggledAttribute"+t+"Value",u;typeof r!="undefined"?(f(),n.removeAttr(t)):(u=n.data(i),typeof u!="undefined"?e():n.attr(t,""))},occe.EncodeText=function(n){return $("<div/>").text(n).html()},occe.DecodeText=function(n){return $("<div/>").html(n).text()},occe.GetCookie=function(n){var t=document.cookie,i,r;return n+="=",t.length>0&&(i=t.indexOf(n),i!==-1)?(i+=n.length,r=t.indexOf(";",i),r===-1&&(r=t.length),decodeURIComponent(t.substring(i,r))):void 0},occe.SetCookie=function(n,t,i){var f=n+"="+t+"; ",r,u;typeof i!="undefined"&&(r=new Date,r.setTime(r.getTime()+i),u="expires="+r.toUTCString(),document.cookie=n+"="+t+"; "+u,f+=u),document.cookie=f+"; path=/"},occe.TrySetSessionValue=function(n,t,i){if(!window.Modernizr||!Modernizr.sessionStorage)return!1;if(!i){var r=occe.GetSessionValue(n);if(r!==null)return!1}return sessionStorage.setItem(n,t),!0},occe.GetSessionValue=function(n){return window.Modernizr&&Modernizr.sessionStorage?sessionStorage.getItem(n):null},occe.ProcessMessage=function(n){if(OOGlobal!==null&&OOGlobal.BaseDomain!==null&&n.origin.toLowerCase()===OOGlobal.BaseDomain.toLowerCase())try{var t=n.data.func;window[t](n.data.funcData)}catch(i){return}},window.addEventListener?window.addEventListener("message",occe.ProcessMessage,!1):window.attachEvent("onmessage",occe.ProcessMessage),occe.updateQueryStringParameter=function(n,t,i){var r,u;return(typeof i!="undefined"&&i||(i=window.location.href),typeof t=="undefined"||t===null)?i:(r=new RegExp("([?&])"+n+"=.*?(&|#|$)(.*)","gi"),r.test(i)?i.replace(r,"$1"+n+"="+t+"$2$3"):(u=i.indexOf("?")!==-1?"&":"?",i.replace(/(#|$)/,u+n+"="+t+"$1")))},occe.colorNameToHex=function(n){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return!!n&&typeof t[n.toLowerCase()]!="undefined"?t[n.toLowerCase()]:!1},occe.colorToHex=function(n){function t(n){return("0"+parseInt(n,10).toString(16)).substr(-2)}return/^#[0-9A-F]{6}$/i.test(n)?n:/^#[0-9A-F]{3}$/i.test(n)?n.replace(/([^#])/g,"$1$1"):occe.colorNameToHex(n)?occe.colorNameToHex(n):(n=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*\d(?:\.\d+)?)?\)$/i),"#"+t(n[1])+t(n[2])+t(n[3]))},occe.relativeLuminance=function(n){function t(n){return n<=10?n/3294:Math.pow(n/269+.0513,2.4)}return.2126*t(n[0])+.7152*t(n[1])+.0722*t(n[2])},occe.luminanceRatio=function(n,t){function u(n){var r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*\d(?:\.\d+)?)?\)$/i,t;if(r.test(n))return t=n.match(r),[t[1],t[2],t[3]];occe.colorNameToHex(n)&&(n=occe.colorNameToHex(n));var i=parseInt(n.substring(1),16),u=i>>16&255,f=i>>8&255,e=i&255;return[u,f,e]}n=u(n),t=u(t);var i=occe.relativeLuminance(n),r=occe.relativeLuminance(t);return i>r?(i+.05)/(r+.05):(r+.05)/(i+.05)},occe.shadeColor=function(n,t){var i=parseInt(n.slice(1),16),r=t<0?0:255,u=Math.abs(t),f=i>>16,e=i>>8&255,o=i&255;return"#"+(16777216+(Math.round((r-f)*u)+f)*65536+(Math.round((r-e)*u)+e)*256+(Math.round((r-o)*u)+o)).toString(16).slice(1)},occe.emulatePageviewEvent=function(n){function t(){var n=window.location.host.toLowerCase();return(n.indexOf("office.com")!==-1||n.indexOf("live.com")!==-1||n.indexOf("microsoft.com")!==-1)&&n.indexOf("edog.")===-1&&n.indexOf("corp.")===-1&&n.indexOf("int.")===-1}t()?occe.setMetaTag(occe.constants.metaMsEnv,occe.constants.metaMsEnvDevProd):occe.setMetaTag(occe.constants.metaMsEnv,occe.constants.metaMsEnvDev),typeof MscomResetArrays!="undefined"&&MscomResetArrays(),typeof MscomSetSharedData!="undefined"&&MscomSetSharedData(0),wcs["wcs.et"]=0,wcs["wcs.r"]=n,typeof MscomBeacon!="undefined"&&MscomBeacon()},occe.isUndefinedNullOrWhitespace=function(n){return typeof n!="string"||!$.trim(n)},occe.isOnMobileView=function(){return $("#ocMobileIndicator").is(":visible")},occe.isInViewport=function(n){var r=$(window).height(),t=$(window).scrollTop(),i=$(n).offset().top,u=i+$(n).height(),f=i<r+t,e=u>t;return f&&e},occe.windowIsTabletSizeOrSmaller=function(){var n=768;return $(window).width()<=n},function(n,t){occe.Resources=function(){function u(n){var t;if(n)for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t])}function f(n){return i[n]}function e(n){var t;if(n)for(t in n)n.hasOwnProperty(t)&&(r[t]=n[t])}function o(n){return r[n]}function s(i){var r='meta[name="{0}"]'.format(i);return t(n).find(r).attr("content")}var i={},r={};return{addLocalizedStrings:u,getLocalizedString:f,addSettings:e,getSetting:o,getMetadata:s}}()}(document,jQuery),occe.registerArticleControlStateSuspensionFunction=function(n){occe.articleControlStateSuspensionFunctions=occe.articleControlStateSuspensionFunctions||[],occe.articleControlStateSuspensionFunctions.indexOf(n)<0&&occe.articleControlStateSuspensionFunctions.push(n)},occe.suspendStateOfContents=function(n){if(typeof occe.articleControlStateSuspensionFunctions!="undefined")for(var t=0;t<occe.articleControlStateSuspensionFunctions.length;t++)occe.articleControlStateSuspensionFunctions[t](n)},occe.WedcsSearchEvent=function(n){var t="searchbox",i=2,r="serp";n||(n={}),n["ms.interactiontype"]||(n["ms.interactiontype"]=i),n["ms.searchtype"]||(n["ms.searchtype"]=t),$("meta[name='ms.pagetype']").attr("content").toLowerCase()===r&&(n["ms.searchpg"]=occe.pageParam),occe.SendWedcsCustom(n)},occe.bindExpando=function(n,t){$(n).click(function(n){n.preventDefault();var i=$(this),r=i.next(),u=i.hasClass("opened");u&&occe.suspendStateOfContents(r),i.toggleClass("opened"),u?(r.find(t).slideUp(150),i.find("i").removeClass("ms-Icon--chevronThinUp").addClass("ms-Icon--chevronThinDown"),i.find("a").attr("aria-expanded","false")):(r.find(t).slideDown(150),i.find("i").removeClass("ms-Icon--chevronThinDown").addClass("ms-Icon--chevronThinUp"),i.find("a").attr("aria-expanded","true"))})},occe.pageParam=encodeURIComponent(occe.GetQueryStringParam("p")),occe.searchQuery=encodeURIComponent(occe.GetQueryStringParam("query")),occe.appSearchFilter=encodeURIComponent(occe.GetQueryStringParam("AppSearchFilter")),$ocGuided="#ocGuided",$($ocGuided).is($ocGuided)){$("#ocIGWMac").attr("href","#ocGuidedMacPer"),$("#ocGuidedMacPer").removeClass("ocIGWHide"),ocpubStep="ms.ocpub.step",FireStepEvent=function(n){var t={};t["ms.interactiontype"]="4",t[ocpubStep]=n,$("#ocForum,#ocChat,#ocCall,#ocCallMobile,#ocMop,#ocSocial").attr(ocpubStep,n),occe.SendWedcsCustom(t)},$("#ocForum,#ocChat,#ocCall,#ocCallMobile,#ocMop,#ocSocial").attr(ocpubStep,"Landing Page"),imgSwap=function(n,t){var i="";$(n).hover(function(){i=$(this).find("img").attr("src"),$(this).find("img").attr("src",t)},function(){$(this).find("img").attr("src",i)})},$(".ocHelpHide").before("<div class='ocSpacer'><\/div>");function ocAutoHeight(n){var t=window.innerHeight,i=n;return t-i-140+"px"}function elemPush(n){return n}var igwNewScreen=function(n,t,i,r,u){$(r).hide(),$(n).removeClass("ocHide"),$(n).fadeIn(function(){var t=$(n).height();$(".ocSpacer").css("height",ocAutoHeight(t)),$("html, body").animate({scrollTop:$(n+" h2").first().offset().top},750),$(this).find(".ocULRow li:first-child a").focus(),u!==13&&$(this).find(".ocULRow li:first-child a").css("outline",0).focusout(function(){$(this).removeAttr("style"),$(this).focus(),$(this).unbind("focusout")})}),$(".ocHelpHide").fadeIn(),$("#guided-type").val()==="commercial"&&(i+=" (Commercial)"),FireStepEvent(i)},switchCustomerType=function(n,t,i){$(n).each(function(){$(this).attr(i,$(this).attr(t))})},displayAccountPrep=function(n,t){var r=n.attr("href");$("#ocGuidedJump a.grnBtn").attr("href",r),$("#ocGuidedJump a.grnBtn").attr("ms.ea_offer",n.attr("data-consumer-jump-ms.ea_offer")),igwNewScreen("#ocGuidedJump",600,n.attr("ms.ocpub.step"),".ocIGWHide",t.which)};imgSwap("#ocIGWWin","https://support.content.office.net/en-US/media/522cab37-0a34-48c0-8fa3-f5826aa1f573.png"),imgSwap("#ocIGWMac","https://support.content.office.net/en-US/media/e42af494-9cf9-40ed-9721-02b372ff0419.png"),imgSwap("#ocIGWMobile","https://support.content.office.net/en-US/media/41a53d29-c51d-40b8-9ec4-7cee8d284c8a.png"),imgSwap("#ocIGWAndroid","https://support.content.office.net/en-US/media/ca53833e-b216-46e2-8260-ee250567a0d3.png"),imgSwap("#ocIGWIphone","https://support.content.office.net/en-US/media/a44bd5eb-fcee-4c43-b152-cff296a5f25a.png"),imgSwap("#ocIGWTablet","https://support.content.office.net/en-US/media/6d92e2bd-2dd0-4ce9-8249-366bc12a010f.png"),imgSwap("#ocIGWIpad","https://support.content.office.net/en-US/media/60a136cd-cc95-410d-9d42-7893bc637db2.png");$("#ocIGWHome").on("click keypress",function(n){(n.which===13||n.type==="click")&&(n.preventDefault(),igwNewScreen("#ocGuidedSecond",600,"Where Install",".ocIGWHide, #ocGuidedMacPer, #ocGuidedMobile",n.which),switchCustomerType("a","data-consumer-href","href"),switchCustomerType("a","data-consumer-ms.ocpub.step","ms.ocpub.step"),switchCustomerType("a","data-consumer-ms.ea_offer","ms.ea.offer"),switchCustomerType("a","data-consumer-ms.ocpub.stepaction","ms.ocpub.stepaction"),switchCustomerType("a","data-consumer-ms.interactiontype","ms.interactiontype"),$("#guided-type").val("consumer"))});$("#ocIGWCom").on("click keypress",function(n){(n.which===13||n.type==="click")&&(n.preventDefault(),igwNewScreen("#ocGuidedSecond",600,"Where Install",".ocIGWHide, #ocGuidedMacPer, #ocGuidedMobile",n.which),switchCustomerType("a","data-commercial-href","href"),switchCustomerType("a","data-commercial-ms.ocpub.step","ms.ocpub.step"),switchCustomerType("a","data-commercial-ms.ea_offer","ms.ea.offer"),switchCustomerType("a","data-commercial-ms.ocpub.stepaction","ms.ocpub.stepaction"),switchCustomerType("a","data-commercial-ms.interactiontype","ms.interactiontype"),$("#guided-type").val("commercial"))});$("#ocIGWMobile").on("click keypress",function(n){(n.which===13||n.type==="click")&&$(this).attr("href").indexOf("http")===-1&&(n.preventDefault(),igwNewScreen("#ocGuidedMobile",1200,"Choose Device",".ocIGWHide, #ocGuidedMacPer",n.which))});$("#ocIGWAndroid").on("click keypress",function(n){if(n.which===13||n.type==="click")if($(this).attr("href").indexOf("#")!==-1)n.preventDefault(),igwNewScreen("#ocGuidedAndroid",1620,"Android Phone Install",".ocIGWHide",n.which);else return!0});$("#ocIGWIphone").on("click keypress",function(n){if(n.which===13||n.type==="click")if($(this).attr("href").indexOf("#")!==-1)n.preventDefault(),igwNewScreen("#ocGuidedIphone",1620,"iPhone Install",".ocIGWHide",n.which);else return!0});$("#ocIGWIpad").on("click keypress",function(n){if(n.which===13||n.type==="click")if($(this).attr("href").indexOf("#")!==-1)n.preventDefault(),igwNewScreen("#ocGuidedIpad",1620,"iPad Install",".ocIGWHide",n.which);else return!0});$("#ocIGWAndroidTablet").on("click keypress",function(n){if(n.which===13||n.type==="click")if($(this).attr("href").indexOf("#")!==-1)n.preventDefault(),igwNewScreen("#ocGuidedAndroidTablet",1620,"Android Tablet Install",".ocIGWHide",n.which);else return!0});$("#ocIGWMac").on("click keypress",function(n){(n.which===13||n.type==="click")&&$(this).attr("href").indexOf("http")===-1&&(n.preventDefault(),igwNewScreen("#ocGuidedMacPer",900,"Which Office for Mac",".ocIGWHide, #ocGuidedMobile",n.which))});$("#ocIGWMac2011").on("click keypress",function(n){(n.which===13||n.type==="click")&&(n.preventDefault(),igwNewScreen("#ocGuidedMacPK",2e3,"Mac Product Key Prep",".ocIGWHide, #ocGuidedJump, #ocGuidedMacPK",n.which))});$(".ocGuidedJump").on("click keypress",function(n){(n.which===13||n.type==="click")&&$("#guided-type").val()==="consumer"&&(n.preventDefault(),$(this).attr("id")!="ocIGWMac365"?$(".ocIGWHide, #ocGuidedJump, #ocGuidedMacPK, #ocGuidedMacPer").hide():$(".ocIGWHide, #ocGuidedJump, #ocGuidedMacPK").hide(),displayAccountPrep($(this),n))});$("html").hasClass("flexboxlegacy")?$("#ocGuided ul.ocULRow").each(function(){$(this).addClass("flexboxlegacy")}):$("#ocGuided ul.ocULRow").each(function(){$(this).addClass("no-flexboxlegacy")})}$(function(){var n=$(".ocSearchBox"),t=$("#ocSearchDefaultText");n.attr("placeholder")!==t.val()&&n.attr("placeholder")===n.val()&&n.val(t.val());var r=t.val(),o=function(){var t={},i="ms.ocpub.ea_exists",n="";return($("a#ocChat").length>0&&(n+="CHT,"),$("a#ocSocial").length>0&&(n+="SOC,"),$("a#ocForum").length>0&&(n+="FRM,"),$("#ocCall").length>0&&(n+="PHN,"),$("#ocMop").length>0&&(n+="MOP,"),n==="")?null:(n=n.substring(0,n.length-1),t[i]=n,t)},i=function(n){var i="bicmp-",u=n.closest("[class^='"+i+"'],[class*=' "+i+"']"),r,t;if(u.length>0){for(r=u.attr("class").toString().split(" "),t=0;t<r.length;t++)if(r[t].indexOf(i)!==-1){n.attr("ms.cmpgrp",r[t].replace(i,""));break}}else n.attr("ms.cmpgrp","content")},s=function(n,t){var r,i,u;return n&&n.indexOf("#")!==-1?(r=/[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}/i,i=r.exec(n),i)?(u=i[0].toLowerCase(),u===t.toLowerCase()):!0:!1},h=function(){var n=occe.getMetaTagValue("ms.ocpub.assetID"),t,r;$("a,img").each(function(){var t=$(this),r=t.attr("id"),f=t.attr("href"),u;typeof r!="undefined"&&r!==null?r.toLowerCase()==="occhat"?t.attr("ms.cmpgrp","CSSControl").attr("ms.ea_action","Goto").attr("ms.ea_offer","CHT"):r.toLowerCase()==="ocsocial"?t.attr("ms.cmpgrp","CSSControl").attr("ms.ea_action","Goto").attr("ms.ea_offer","SOC"):r.toLowerCase()==="ocforum"?t.attr("ms.cmpgrp","CSSControl").attr("ms.ea_action","Goto").attr("ms.ea_offer","FRM"):r.toLowerCase()==="occall"?t.attr("ms.cmpgrp","CSSControl").attr("ms.ea_action","Goto").attr("ms.ea_offer","PHN"):r.toLowerCase()==="ocmop"?t.attr("ms.cmpgrp","CSSControl").attr("ms.ea_action","Goto").attr("ms.ea_offer","MOP"):r.toLowerCase()==="ocfacebookbutton"||r.toLowerCase()==="octwitterbutton"||r.toLowerCase()==="ocemailbutton"?t.attr("ms.cmpgrp","Share").attr("ms.ea_action","Goto").attr("ms.ea_offer","SOC"):i(t):typeof f!="undefined"&&f!==null?f.toLowerCase().indexOf("#odh_")!==-1?t.attr("ms.cmpgrp","ODH"):i(t):i(t),t.closest(".headBar").length?t.attr("ms.pgarea","Header"):t.closest(".swBar").length?t.attr("ms.pgarea","AppDropdown"):t.closest(".footerContainer").length?t.attr("ms.pgarea","Footer"):t.attr("ms.pgarea","Body"),u=t.attr("href"),typeof u!="undefined"&&u.length&&u.indexOf(".")===-1&&(s(u,n)||u.indexOf("javascript:void(0)")!==-1)&&(typeof t.attr("ms.interactiontype")=="undefined"||typeof t.attr("id")!="undefined"&&t.attr("id").indexOf("shell")!==-1)&&t.attr("ms.interactiontype","11"),t.prop("tagName").toLowerCase()==="img"&&t.closest("a").length===0&&typeof t.attr("ms.interactiontype")=="undefined"&&t.attr("ms.interactiontype","500")}),function(){var t=$(".shell-category-header"),i,n;t.length&&(t.find("a").removeAttr("ms.title"),t.find("a,div").removeAttr("ms.cmpgrp"),t.find("ul").removeAttr("ms.cmpnm"),t.attr("ms.pgarea","Header")),i=$(".shell-header-actions"),i.length&&(i.removeAttr("ms.cmpgrp"),i.find(".shell-search").removeAttr("ms.cmpnm")),n=$(".shell-footer"),n.length&&(n.find("a").removeAttr("ms.title"),n.find("a,div").removeAttr("ms.cmpgrp"),n.find("div").removeAttr("ms.cmpnm"),n.attr("ms.pgarea","Footer"))}(),t=$("meta[name='ms.pagetype']").attr("content"),typeof t!="undefined"&&t!==null&&t.toLowerCase()!=="serp"&&typeof n!="undefined"&&n!==null&&n.toLowerCase()!=="s.hp.phone"&&n.toLowerCase()!=="s.cl.nav"&&(r=o(),occe.sendWedcsPv(r,!1),occe.removeMetaTag("ms.ocpub.step"))};$(".ocFBRadioBtnAnchor").on("click keydown",function(n){if(n.type==="click"||n.which===13||n.which===32){n.preventDefault();var t=$(".ocFBRadioBtnAnchor"),i=$(this);t.removeClass("selected"),i.addClass("selected"),t.attr("aria-checked",!1),i.attr("aria-checked",!0),$("#ocFBReply").removeClass("ocHidden")}});$(".ocFBSubmit").on("keypress click",function(n){var t={},i;t["ms.cmpgrp"]="FeedbackControl",t["ms.pgarea"]="body",t["ms.ea_offer"]="article",t["ms.svi"]="1",t["ms.interactiontype"]="2",t["ms.ea_action"]="Comment",t["ms.svq"]="2",t["ms.svv"]=occe.EncodeText($("#FeedbackText").val()),n.type==="keypress"?(i=n.keyCode?n.keyCode:n.which,i===13&&occe.SendWedcsCustom(t)):occe.SendWedcsCustom(t)});window.countDown=function(n,t,i){var u=n.value.length,f=n.value,r=document.getElementById(i);r.style.display="",r.innerHTML=t-u,u>=t-10?(r.style.color="red",u>t&&(n.innerHTML=f.substring(0,t),r.innerHTML=t-n.value.length)):r.style.color=""},$(".ocFBSubmit").click(function(){$("#ocFBReply").add("#ocFBBegin").remove(),$("#ocFBFinal").show()}),n.focus(function(){n.val()===r&&n.val("")}),n.focusout(function(){$.trim(n.val())===""&&n.val(r)});var u=!1,f=!1,e=function(){var t,i="searchbox",r=2;t=n.length?n.val():$("#socNavSearchBox").val(),f||(occe.WedcsSearchEvent({"ms.interactiontype":r,"ms.searchtype":i,"ms.searchtext":encodeURIComponent(t)}),f=!0)};$("#ocSearchForm, #socNavSearchForm").on("keypress click","#ocSearchButton, #ocSearchBox, #socNavSearchButton, #socNavSearchBox",function(n){var t,i;$("#ocSearchIFrame").length||(t=$(this),n.type==="keypress"?(i=n.keyCode?n.keyCode:n.which,i===13&&(t.attr("id")==="ocSearchBox"||t.attr("id")==="socNavSearchBox"||t.attr("id")==="ocSearchButton"||t.attr("id")==="socNavSearchButton")&&(u=!0,e())):t.attr("id")!=="ocSearchButton"&&t.attr("id")!=="socNavSearchButton"||u||e())});(function(){var i=window.location.href,n=$("#locale-picker-link"),t=n.attr("href");if(t)n.on("click keypress",function(n){if(n.preventDefault(),occe.eventHelpers.eventIsClick(n)||occe.eventHelpers.eventIsEnterKeypress(n)){var r=occe.updateQueryStringParameter("returnURL",encodeURIComponent(i),t);window.location.href=r}})})(),occe.setPreviousAssetId(),occe.setSessionAssetValue(),h()}),$("#ocCall[data-callRoute='call'],#ocCallMobile[data-callRoute='call']").click(function(n){n.preventDefault();var t;t=typeof OOGlobal!="undefined"&&OOGlobal.Culture&&OOGlobal.Culture.toLowerCase()==="en-us"?"/home/chat?referrer="+encodeURIComponent(window.location):$("#ocCall[data-callRoute='call']").data("answerdesk"),window.open(t,"contactSupport","width=350,height=570,scrollbars=yes,resize=yes",!0)}),$(function(){var n=occe.GetQueryStringParam("supportmode");$("#b_content a, #ocpArticleContent a").each(function(){$(this).click(function(t){n&&(t.preventDefault(),window.location.href=occe.updateQueryStringParameter("supportmode",n,this.href))})}),$(".ocArticle .ocpSection .ocpExpandoBody").each(function(){var n=$(this).parent().prev();n.hasClass("ocpExpandoHead")||$(this).css("display","block")})});$("#ocSearchNavHome").on("click",function(){var n=document.getElementById("ocSearchIFrame");n!==null&&(n.contentWindow.location=HomeInfo.HomeUrl.replace(/&amp;/g,"&"))});$(".ocClient")&&($(".ocpClientHome").is(".ocpClientHome")||$("#ocFB").show(),occe.bindExpando(".ocpExpandoHead",".ocpExpandoBody")),function(){var n=function(){var n=occe.GetQueryStringParam("query");n&&$("#cli_shellHeaderSearchInput").val(n)};document.addEventListener?document.addEventListener("DOMContentLoaded",n):document.attachEvent&&document.attachEvent("DOMContentLoaded",n)}(),$(function(){function i(){var r=$(document).height(),u;t>r&&(t=r),u={"wcs.cot":occe.constants.wedcs.coreEventType.pageUnload,"ms.scrolldepth":t+"/"+r},occe.SendWedcsCustom(u),n.off("beforeunload",i)}if($(document.body).data("scroll-depth-tracking")){var t=window.innerHeight,n=$(window);if(typeof n!="undefined"&&n!==null){n.scroll(function(){if(typeof n!="undefined"&&n!==null){var i=n.height()+n.scrollTop();t=Math.max(t,i)}}).on("beforeunload",i);try{window.external.RegisterUIEventHandler("onpanehide",i)}catch(r){}}}}),$(function(){if($("#supExperimentationScriptTag").data("experiment-tracking-wedcs")&&window.optimizely&&$.isArray(optimizely.activeExperiments)&&optimizely.activeExperiments.length>0){var n=optimizely.activeExperiments,t=$.map(n,function(n){return optimizely.variationNamesMap[n]}),i={"ms.experimentId":n.join("; "),"ms.variationName":t.join("; ")};occe.SendWedcsCustom(i)}}),jQuery(function(n){"use strict";function r(){function f(n,f){var o=n.attr("data-videoid").match(r),e=n.attr("data-llcc").toLowerCase();return{videoWidth:u?"490":"100%",videoHeight:"",playerConfigId:"unknown",videoContainerId:t+f,defaultVideo:"videobyuuids.aspx?uuids="+o,playerChannel:n.attr("data-player"),playerLocation:"mpl_"+e+"_MOD_OfficeCom__pl_"+e+"_"+i,occsid:"ux-cms-"+e+"-msoffice"}}function o(){var n=!1,t;return typeof OOGlobal.Platform!="undefined"&&OOGlobal.Platform!=null&&(n=OOGlobal.Platform.toLowerCase().indexOf("ipad")>-1),t=window.location.href.toLowerCase().indexOf("client")>-1,n&&t}var i=n("meta[name='ms.ocpub.assetID']").attr("content")||"0",r=/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/,u=o();e.each(function(t){var r=n(this),i=f(r,t),u=r.find("meta");r.attr("id",i.videoContainerId),MsnVideoUx.render(i.playerConfigId,i.videoContainerId,{"ocVideo.Width":i.videoWidth,"ocVideo.Height":i.videoHeight,"ocVideo.DefaultVideo":i.defaultVideo,"ocVideo.PlayerChannel":i.playerChannel,"ocVideo.PlayerLocation":i.playerLocation},{csid:i.occsid}).then(function(n){occe.registryOfVideoControllersInArticle[r.attr("id")]=n}),r.prepend(u)})}var t="ocpVideo",e=n("."+t),u,f;occe.registryOfVideoControllersInArticle=occe.registryOfVideoControllersInArticle||[],r(),occe.pauseVideosInsideElement=function(n){var i=n.find("."+t);i.each(function(n,t){var i=occe.registryOfVideoControllersInArticle[t.id];typeof i!="undefined"&&i.pause()})},occe.registerArticleControlStateSuspensionFunction(occe.pauseVideosInsideElement),occe.Controls=occe.Controls||{},occe.Controls.Carousel={},occe.Controls.Carousel.setupCarousel=function(){var i=n(this),c=i.prev("."+t).detach(),f,o;i.wrap('<div class="trainingCont"><\/div>'),i.before(c),f=n("html").attr("dir")==="rtl",i.before('<div class="'+(f?"ocNext ms-Icon--chevronThinRight":"ocPrev inactive ms-Icon--chevronThinLeft")+'"><\/div>'),i.after('<div class="'+(f?"ocPrev inactive ms-Icon--chevronThinLeft":"ocNext ms-Icon--chevronThinRight")+'"><\/div>'),i.wrap('<div id="ocpCarousel"><\/div>'),i.children("li:first-child").addClass("selected"),i.children("li").each(function(t){n(this).find("ul").find("li:first-child").after('<li class="ocpCarouselN">'+(t+1)+"<\/li>");var u=n(this).find("a").attr("data-videoid");n(this).click(function(t){t.preventDefault(),i.children("li").removeClass("selected"),n(this).addClass("selected"),c.attr("data-videoid",u),r()})});var l=i.children("li").width(),u=l+11,s=i.children("li").length,h=!1,e=!1;s<=4&&(n(".ocNext").addClass("inactive"),e=!0),o=f?"left":"right",n(".ocNext").click(function(){var t=i.css(o).replace(/[px]/g,""),r;(t<(s-4)*u||t.toString()==="auto")&&!e?(e=!0,r=f?{left:"+="+u+"px"}:{right:"+="+u+"px"},n(".ocPrev").removeClass("inactive"),i.animate(r,function(){e=!1}),t=i.css(o).replace(/[px]/g,""),t>=(s-5)*u&&n(this).addClass("inactive")):n(this).addClass("inactive")}),n(".ocPrev").click(function(){var t=i.css(o).replace(/[px]/g,""),r;t>0&&!h&&(h=!0,r=f?{left:"-="+u+"px"}:{right:"-="+u+"px"},n(".ocNext").removeClass("inactive"),i.animate(r,function(){h=!1}),n(this).removeClass("inactive")),t-u==0&&n(this).addClass("inactive")})},u="ocpCarousel",f=n("."+u),f.each(occe.Controls.Carousel.setupCarousel);var i="ocpMix",o=n("."+i).is("."+i),s=function(){var t=!1,r;typeof OOGlobal.Platform!="undefined"&&OOGlobal.Platform!==null&&(t=OOGlobal.Platform.toLowerCase().indexOf("ipad")>-1),r=window.location.href.toLowerCase().indexOf("client")>-1,n("."+i).each(function(u){var f=n(this),o,e,s;f.attr("id",i+u),o=f.attr("data-videoid"),e=t&&r?"490":f.width(),s=OOGlobal.MixWatchUrl+o,n.ajax({type:"GET",dataType:"jsonp",url:OOGlobal.MixOembedUrl,data:{url:s,maxheight:e,maxwidth:e}}).done(function(n){f.children("img:first").remove(),f.append(n.html.toString())})})};o&&s()})