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 f=$(window).scrollTop(),o=55,e,u;r+=f<o?77:214,e=n.find("a[name='"+t+"']").next(),u=$(".ocpOCDContent div.ocdSpacer"),i===0?u.length===0&&e.prepend("<div class='ocdSpacer'><\/div>"):u.length===1&&u.remove(),f=i>0?$(e).offset().top-$(".ocdWhiteBG").height():o,$(window).scrollTop(f)}function ToggleModule(n){var u=$(".ocpOCDContent section.ocpSection table td").closest("section"),h=$(".ocpOCDContent > section.ocpSection:nth-of-type(2)"),y,f,c,e,o,l,a,i,s,t,r;if(n&&!locked&&($("#ocMainContent").prepend("<div class='ocdWhiteBG'><\/div>"),$("div.ocContactSearch").addClass("ocdSearchBoxFixed",1e3),$(window).width()>1162&&(y=parseInt($("#ocMainContent").css("margin-right"))+parseInt($("#ocMainContent").css("padding-right")),$("div.ocContactSearch").css("right",y)),f=100,c=$("h1"),c.addClass("ocdH1Fixed",1e3),e=c.height(),o=u.find("table").first(),o.addClass("ocdTOCFixed",1e3),o.css("top",e+f),l=o.height(),a=u.find("hr").first(),a.addClass("ocdHRFixed",1e3),a.css("top",e+l+f+20),h.addClass("ocdSection2",1e3),h.css("top",e+l+f+20),locked=!0),!n&&locked&&($("#ocMainContent div.ocdWhiteBG").remove(),$("div.ocContactSearch").removeClass("ocdSearchBoxFixed",1e3),$("h1").removeClass("ocdH1Fixed",1e3),u.find("table").removeClass("ocdTOCFixed",1e3).css("top",""),u.find("hr").removeClass("ocdHRFixed",1e3).css("top",""),h.removeClass("ocdSection2",1e3),locked=!1),n&&!locked){for(i=$(".ocdSection1").find("table tr").first(),s=i.find("td"),t=0;t<s.length;t++)$(r).height("auto");i.height("auto"),heightFix=!1}if(!n&&!heightFix){var i=$(".ocdSection1").find("table tr").first(),s=i.find("td"),v=0;for(t=0;t<s.length;t++)r=s.get(t),$(r).height()>v&&(v=$(r).height()),$(r).height("100%");i.height(v),heightFix=!0}}$(document).ready(function(){var i,n,t;if(window.self!==window.top,$("#ocpArticleContent img").each(function(){this.alt.length>0&&(this.title=this.alt)}),i=$("article.ocpOCDContent"),i.length==1){n=$(".ocpOCDContent section.ocpSection table td").closest("section"),n.addClass("ocdSection1");$(window).on("scroll resize",function(){$(window).height()>=700&&$(window).width()>768&&$(this).scrollTop()>=55?ToggleModule(!0):ToggleModule(!1)});n.find("table a.ocpInlineLink").click(function(t){var f=$(this).parents("td").index(),r=this.href.indexOf("#"),e=this.href.substring(r+1),u;r!==-1&&$(window).height()>=700&&$(window).width()>768&&(t.preventDefault(),u=$("h1").height()+n.height()+95,ToggleModule(!0),ScrollSection(i,e,f,u))}),t=n.find("table").first().find("td"),t.focusin(function(){t.addClass("ocdGrayBG"),$(this).addClass(GetAppClass()),$(this).attr("data-pinned","true")}),t.focusout(function(){$(this).removeClass(),$(this).addClass("ocdGrayBG"),$(this).attr("data-pinned","false")}),t.mouseover(function(){$(this).addClass(GetAppClass())}),t.mouseout(function(){var n=$(this).attr("data-pinned");(n==="false"||typeof n=="undefined")&&($(this).removeClass(),$(this).addClass("ocdGrayBG"))}),n.find("table td").click(function(){$(this).find("a").click()})}}),$(window).load(function(){var t=$("article.ocpOCDContent"),i,r,n,f,o,s;if(t.length===1&&(i=window.location.href,r=i.indexOf("#"),t.find(".ocpSection").append("<hr class='ocdHr'/>"),n=$(".ocpOCDContent section.ocpSection table td").closest("section"),f=n.find("table").first().find("td"),f.addClass("ocdGrayBG"),r!==-1)){var e=i.substring(r+1),h=n.find("td a[href$='#"+e+"']"),u=h.parents("td");u.addClass(GetAppClass()),u.attr("data-pinned","true"),o=u.index(),$(window).scrollTop(0),s=$("h1").height()+n.height()+118,ScrollSection(t,e,o,s)}$(".ocpHighResContent").find("img").each(function(){$(this).width($(this).width()/2)})});var locked=!1,heightFix