function CopyTableData(n){var i=document.getElementById(n),t;document.body.createControlRange&&(t=document.body.createControlRange(),t.addElement(i),t.execCommand("Copy"))}function GetAppClass(){var t=$("meta[name='search.applicationSuite']").attr("content").toLowerCase(),n;switch(t){case"word":n="ocdWordBG";break;case"excel":n="ocdExcelBG";break;case"outlook":n="ocdOutlookBG";break;case"powerpoint":n="ocdPowerpointBG";break;default:n="ocdGrayBG"}return n}function ScrollSection(n,t,i,r){var u=$(window).scrollTop(),f;r+=u<50?50:187,f=n.find("a[name='"+t+"']").next(),u=i>0?$(f).offset().top-r:64,$(window).scrollTop(u)}function ToggleModule(n){var i=$(".ocpOCDContent > section.ocpSection:nth-of-type(1)"),f=$(".ocpOCDContent > section.ocpSection:nth-of-type(2)"),e,t,r,u,o;n&&!locked&&($("#ocMainContent").prepend("<div class='ocdWhiteBG'><\/div>"),$("div.ocContactSearch").addClass("ocdSearchBoxFixed",1e3),e=$("h1"),e.addClass("ocdH1Fixed",1e3),t=e.height(),r=i.find("table"),r.addClass("ocdTOCFixed",1e3),r.css("top",t+90),u=r.height(),o=i.find("table + img + img"),o.addClass("ocdHRFixed",1e3),o.css("top",t+u+110),f.addClass("ocdSection2",1e3),f.css("top",t+u+130),$(".ocdWhiteBG").css("height",t+u+130),locked=!0),!n&&locked&&($("#ocMainContent div.ocdWhiteBG").remove(),$("div.ocContactSearch").removeClass("ocdSearchBoxFixed",1e3),$("h1").removeClass("ocdH1Fixed",1e3),i.find("table").removeClass("ocdTOCFixed",1e3),i.find("table + img + img").removeClass("ocdHRFixed",1e3),f.removeClass("ocdSection2",1e3),locked=!1)}function ClientNavSearch(n){if(typeof n!="undefined"&&n!==null)try{var t={};t["ms.searchtype"]=n.searchType,t["ms.interactiontype"]=n.interaction,t["ms.searchquery"]=n.query,occe.SendWedcsCustom(t)}catch(i){return}}$(document).ready(function(){var r,u,i,t,n;if(window.self!==window.top&&(r=$(".ocgrid"),r.css("margin","0"),u=$(".occontainer"),u.css({margin:"0","max-width":"620px",height:"auto"})),$("#ocpArticleContent img").each(function(){this.alt.length>0&&(this.title=this.alt)}),i=$("article.ocpOCDContent"),i.length==1){t=$(".ocpOCDContent > section.ocpSection:nth-of-type(1)"),t.addClass("ocdSection1");$(window).on("scroll resize",function(){$(window).height()>=700&&$(this).scrollTop()>=50?ToggleModule(!0):ToggleModule(!1)});i.find(".ocpSection:nth-of-type(2n+3)").addClass("ocdEvenSection"),t.find("table a.ocpInlineLink").click(function(n){var u;n.preventDefault();var f=$(this).parents("td").index(),r=this.href.indexOf("#"),e=this.href.substring(r+1);r!==-1&&(u=$("h1").height()+t.height()+85,ScrollSection(i,e,f,u))}),n=t.find("table td"),n.focusin(function(){n.addClass("ocdGrayBG"),$(this).addClass(GetAppClass()),$(this).attr("data-pinned","true")}),n.focusout(function(){$(this).removeClass(),$(this).addClass("ocdGrayBG"),$(this).attr("data-pinned","false")}),n.mouseover(function(){$(this).addClass(GetAppClass())}),n.mouseout(function(){var n=$(this).attr("data-pinned");(n==="false"||typeof n=="undefined")&&($(this).removeClass(),$(this).addClass("ocdGrayBG"))})}}),$(window).load(function(){var i=$("article.ocpOCDContent"),e,o;if(i.length===1){var r=window.location.href,u=r.indexOf("#"),n=$(".ocpOCDContent > section.ocpSection:nth-of-type(1) table"),s=n.find("td");if(s.addClass("ocdGrayBG"),u!==-1){var f=r.substring(u+1),h=n.find("td a[href$='#"+f+"']"),t=h.parents("td");t.addClass(GetAppClass()),t.attr("data-pinned","true"),e=t.index(),o=$("h1").height()+n.height()+130,ScrollSection(i,f,e,o)}}});var locked=!1