function createButtonPopup(n,t,i,r,u,f){var h,o,l,e,a,s,c,v;arguments.length<4&&(u=!1);functionOnCloseDiv=arguments.length>3?r:"";h=document.getElementById(n);h!=null&&(linkImagePosition=findPos(h));ChangeSelectBoxVisibility("hidden");o="popUpDivFromButton";l='<div id="'+o+'" style="padding:5px;" title="'+i+'"><\/div>';$("#"+o).length>0&&$("#"+o).dialog("destroy").remove();e=$(l);e.appendTo(document.body);a={width:"auto",height:"auto",autoResize:!0,draggable:!0,modal:!0,resizable:!1,fluid:!0,open:function(){t&&$(".ui-widget-overlay").bind("click",function(){removeButtonPopup()})},close:function(){removeButtonPopup()}};e.dialog(a);s=Globals.Utilities.isUndefinedOrNull(f)?{width:480,maxHeight:450}:f;c=$("#"+n);try{c.length>0&&(v={my:"left top",of:c,at:"left bottom"},s.position=v,s.width=480)}catch(y){}return e.dialog(s),$("div.ui-dialog-titlebar-close").hide(),$("div.ui-dialog-titlebar").css("min-height","25px"),u||$(".ui-dialog-titlebar-close").show(),e}function removeButtonPopup(){$("#popUpDivFromButton").length>0&&($("#popUpDivFromButton").html().indexOf("MediaPlayer")!=-1&&MediaPlayer.stop(),$("#popUpDivFromButton").dialog("destroy").remove(),ChangeSelectBoxVisibility("visible"),tryFunctionOnClose())}function createCenteredPopupDiv(n,t,i,r,u,f){var e=null,o;e=arguments.length>3?createButtonPopup("",t,i,r,u,f):createButtonPopup("",t,i);try{if(e.length==0)return null}catch(s){return null}return e.html(n),(typeof f=="undefined"||f===null)&&(o={my:"center",at:"center",of:window},e.dialog("option","position",o)),e}function tryFunctionOnClose(){if(functionOnCloseDiv!=null&&functionOnCloseDiv.length>0)try{eval(functionOnCloseDiv)}catch(Err){}}function findPos(n){if(n==null)return[0,0];var t=0,i=0;if(n.offsetParent)do t+=n.offsetLeft,i+=n.offsetTop;while(n=n.offsetParent);return[i,t]}function paddingFix4Element(n){var t,i;try{t=document.getElementById(n);!1&&document.getElementById("lstElementsFixed").value.indexOf(n)==-1&&(document.getElementById("lstElementsFixed").value+=n+",",i=t.offsetWidth-$("#"+n).width(),$(t).width(t.offsetWidth-i-i))}catch(r){}}function paddingFix(){var i,r,t,n;if(0)for(i=0;i<document.styleSheets.length;i++)for(r=document.styleSheets[i],t=r.cssRules?r.cssRules:r.rules,n=0;n<t.length;n++)!isNaN(parseInt(t[n].style.height))&&t[n].style.height.indexOf("px")>0&&(parseInt(t[n].style.paddingBottom)>0&&!isNaN(parseInt(t[n].style.paddingBottom))&&(t[n].style.height=parseInt(t[n].style.height)-parseInt(t[n].style.paddingBottom)+"px"),parseInt(t[n].style.paddingTop)>0&&!isNaN(parseInt(t[n].style.paddingTop))&&(t[n].style.height=parseInt(t[n].style.height)-parseInt(t[n].style.paddingTop)+"px")),!isNaN(parseInt(t[n].style.width))&&t[n].style.width.indexOf("px")>0&&(parseInt(t[n].style.paddingLeft)>0&&!isNaN(parseInt(t[n].style.paddingLeft))&&(t[n].style.width=parseInt(t[n].style.width)-parseInt(t[n].style.paddingLeft)+"px"),parseInt(t[n].style.paddingRight)>0&&!isNaN(parseInt(t[n].style.paddingRight))&&(t[n].style.width=parseInt(t[n].style.width)-parseInt(t[n].style.paddingRight)+"px"))}function documentBodyFix4Safari(){jQuery?document.readyState!=="complete"&&(document.readyState==="loading"||document.documentElement.doScroll)||documentBodyFix():documentBodyFix()}function documentBodyFix(){var n,t;(navigator.userAgent.toLowerCase().indexOf("playbook")!=-1||navigator.userAgent.toLowerCase().indexOf("ipad")!=-1&&(navigator.userAgent.toLowerCase().indexOf("cpu os 4")!=-1||navigator.userAgent.toLowerCase().indexOf("cpu os 3")!=-1))&&(n=document.getElementById("divDocumentBodyContext"),n!=null&&($(n).width(parseInt($(n).width())-Math.max(10,parseInt($(n).css("padding-left")))-Math.max(10,parseInt($(n).css("padding-right")))-10),t=document.getElementById("divDocumentBody"),$(t).width(parseInt($(t).width())-Math.max(10,parseInt($(t).css("padding-left")))-Math.max(10,parseInt($(t).css("padding-right")))-3)))}function GetString(n){var t=GlobalStrings[n],i="";if(n.length>0&&typeof t!="undefined")if(Globals.Utilities.isArray(t)&&t.length>1)switch(glb_StringCaseType){case Globals.StringCaseType.SentenceCase:i=GlobalStrings[n][1];break;case Globals.StringCaseType.TitleCase:default:i=GlobalStrings[n][0]}else i=Globals.Utilities.isArray(t)&&t.length===1?GlobalStrings[n][0]:GlobalStrings[n];else i="N/A";return i}function UnDecodeHTMLCharacters(n){if(!n||n.length==0)return"";var t=document.createElement("textarea");return n=n.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&amp;#/gi,"&#"),t.innerHTML=n,t.value}function parseAjaxResponse(sThisReqStatusCode,sThisReqResponseText){var oResponse,sTestText;try{oResponse=eval("("+sThisReqResponseText+")")}catch(exc){if(sTestText=sThisReqResponseText.toLowerCase(),sTestText.indexOf('form id="floginhidden"')>=0||sThisReqStatusCode==0&&sTestText.length==0){var reTwoSlash=new RegExp("//"),sLocation=window.location.toString(),i=sLocation.replace(reTwoSlash,"").indexOf("/")+2,sReturnUrl=sLocation.substr(i);return window.location.replace("/Login/Login.aspx?ReturnUrl="+encodeURIComponent(sReturnUrl)),null}}return oResponse}function toLowerCaseExceptFirstCharacter(n){return typeof n=="string"&&n.length>1?n.length==1?n.toUpperCase():n.substring(0,1).toUpperCase()+n.substring(1,n.length).toLowerCase():n}function imgTextMouseOver(n){var t="#img"+n,r=$(t).attr("src").replace("_UP.gif","_OVR.gif"),i;$(t).attr("src",r);i="#txt"+n;$(i).css("text-decoration","underline")}function imgTextMouseOut(n){var t="#img"+n,r=$(t).attr("src").replace("_OVR.gif","_UP.gif"),i;$(t).attr("src",r);i="#txt"+n;$(i).css("text-decoration","none")}function replaceAll(n,t,i){return n.replace(new RegExp(t,"g"),i)}function js_resolveURL(n){return n.replace("~/",glb_ResolveUrlJs_Base)}function getURLParameter(n){var t=new RegExp("[?|&]"+n+"=([^&;]+?)(&|#|;|$)","gi");return decodeURIComponent((t.exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function openDialog(n,t,i,r){var u,f,s,o,e;return msgDialog=document.createElement("div"),msgDialog.id="messageDialog",msgDialog.setAttribute("title",n),msgDialog.innerHTML=t,document.body.appendChild(msgDialog),u=$(msgDialog),u.css("width","440px"),f=u.width(),s=u.height(),msgDialog.scrollWidth>f&&(o=Math.min($(window).width()-100,msgDialog.scrollWidth+10),u.css("width",o.toString()+"px"),f=o),e={width:f+20,resizable:!0,modal:!1},Globals.Utilities.isUndefinedOrNull(i)||(e.modal=i),Globals.Utilities.isUndefinedOrNull(r)||(e.width=r),u.dialog(e),u.parent().height()+10>$(window).height()&&(u.dialog("option","height",$(window).height()-10),u.height($(window).height()-80)),u}function closeDialog(){$("#messageDialog").dialog("close");$("#messageDialog").dialog("destroy").remove()}function openYesNo(n,t,i,r){for(msgDialog=document.createElement("div"),msgDialog.style.fontSize="0.7em",msgDialog.style.paddingLeft="0.5em",msgDialog.setAttribute("title",n),msgDialog.innerHTML=t,document.body.appendChild(msgDialog),$(msgDialog).width(440);$(window).height()<$(msgDialog).height()+100&&$(msgDialog).width()*1.5<$(window).width();)$(msgDialog).width($(msgDialog).width()*1.5);$(msgDialog).dialog({width:$(msgDialog).width()+20,height:$(msgDialog).height()+160,resizable:!0,buttons:{No:r,Yes:i}});$(msgDialog).parent().height()+10>$(window).height()&&($(msgDialog).dialog("option","height",$(window).height()-10),$(msgDialog).height($(window).height()-80))}function LogoutBodyOnload(){StopSessionTrackerTimer();try{Globals.Cookies.deleteCookie("lastViewedMenuTab")}catch(n){}loadPage("/Login/Logout.aspx")}function hideSelectBox(){for(var n=getObj("formSelectBox"),t=1;n;)n.visibility="hidden",t=t+1,n=getObj("formSelectBox"+t)}function restoreSelectBox(){for(var n=getObj("formSelectBox"),t=1;n;)n.visibility="visible",t=t+1,n=getObj("formSelectBox"+t)}function showImage(n){var r=n+"Image",t=document[r].src,i=t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("."));i.indexOf("FX")==-1?document[r].src="/_IncludeFiles/DefinitionFiles_EYO/Images/TopMenu/"+i+"FX.gif":lockedImage=i}function hideImage(n){var i=n+"Image",t=document[i].src,r=t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("FX."));lockedImage.indexOf(r)==-1&&(document[i].src="/_IncludeFiles/DefinitionFiles_EYO/Images/TopMenu/"+r+".gif")}function PopupWindow(pageURL,winName,winDimensions){var toolbarStr,detWin;toolbarStr=PopupWindow.arguments.length==4?PopupWindow.arguments[3]:"toolbar=no,scrollbars=no,resizeable=yes";var winWidth=eval(winDimensions.substring(0,winDimensions.indexOf("x"))),winHeight=eval(winDimensions.substring(winDimensions.indexOf("x")+1,winDimensions.length)),xPos=(screen.availWidth-winWidth)/2,yPos=(screen.availHeight-winHeight)/2;toolbarStr=toolbarStr+",height="+winHeight+",width="+winWidth;detWin=window.open(pageURL,winName,toolbarStr);try{detWin.moveTo(xPos,yPos);detWin.focus()}catch(exc){}}function PopupInWindow(n,t,i){var u,r,o=i.toString(),f="str_SessionTracker_PopupScreenSize",e;Globals.Utilities.isUndefinedOrNull(glb_SiteStyle)||(f="str_SessionTracker_PopupScreenSize_"+glb_SiteStyle,i=GetString(f));u=parseInt(i.substring(0,i.indexOf("x")),10);r=parseInt(i.substring(i.indexOf("x")+1,i.length),10);r=calculateWinHeightForSessionTrackerPopUp(r);e='<iframe id="ifPopupInWin" frameBorder="0" width="'+u+'" height="'+r+'" src="'+n+'"><\/iframe>';createCenteredPopupDiv(e,!1,t,"",!1);$("#ifPopupInWin").on("load",function(){$("#popupHeadingTable .redHeader").html($("#ifPopupInWin")[0].contentWindow.document.title)})}function calculateWinHeightForSessionTrackerPopUp(n){var t=n,i;if($("#hdnUseSiteTheme").val()&&(i=Globals.Utilities.getBrowser(),i.browser==="msie"||i.browser==="ie"))switch(i.version){case 9:case 10:t+=13;break;case 11:t+=10;break;case 12:t+=5}return t}function ShowLoginMessage(n){var t=$("#LoginMessageContainer");t.css("visibility","visible");t.dialog({autoOpen:!1,width:"auto",height:"auto",modal:!0,title:n,close:function(){var n=$("#MediaElement")["0"];typeof n!="undefined"&&n!==null&&n.length!==0&&n.player.pause()},resizable:!1});t.dialog("open");$("video,audio").mediaelementplayer({enableAutosize:!0,plugins:["flash"],pluginPath:"/_IncludeFiles/Scripts/jQuery/MediaElements/",flashName:"flashmediaelement.swf",success:function(n,t){$("#"+t.id+"-mode").html("mode: "+n.pluginType)}});document.readyState!=="complete"&&(document.readyState==="loading"||document.documentElement.doScroll)||($("#me_flash_0").find('param[name="movie"]').val("/IncludeFiles/MediaElements/flashmediaelement.swf?x="+Date.now()),$(".ui-dialog-title").css("width","99.5%").css("text-align","center"),$("span.mejs-offscreen").css("display","none").css("visibility","hidden"))}function closePopupInWin(){$("#popUpDivFromButton").length>0&&$("#popUpDivFromButton").dialog("destroy").remove()}function loadPage(n){var i=new Date,t;t=n.indexOf("?")>=0?n+"&":n+"?";t=t+"nc="+i.getTime();window.location=t}function noFrames(){parent.frames[0]&&(top.location.href=self.location)}function doNothing(){}function printWindow(n){document.submitThisFormToPrint?(document.submitThisFormToPrint.printFriendly.value="2",document.submitThisFormToPrint.target="_blank",document.submitThisFormToPrint.submit()):window.open(n,"","")}function createDelayedEvent(n,t,i){for(var r=0;r<=i;r++)glb_LeftHandNavMenus_iEventDoSoon[r]>0&&window.clearTimeout(glb_LeftHandNavMenus_iEventDoSoon[r]);glb_LeftHandNavMenus_iEventDoSoon[i]=window.setTimeout(n,t)}function LeftHandNavMenus_HighlightItem(n,t){document.all&&(n.style.borderColor="black",t&&(n.style.backgroundColor="#333333"))}function LeftHandNavMenus_UnhighlightItem(n){document.all&&(n.style.borderColor=glb_sPageColor,n.style.backgroundColor=glb_sPageColor)}function LeftHandNavMenus_PopOutIfExists(n){document.all&&document.all["elPopout_"+n]&&LeftHandNavMenus_EnablePopoutMenu(n,event)}function LeftHandNavMenus_UnpopOutIfExists(n){document.all&&document.all["elPopout_"+n]&&LeftHandNavMenus_DisablePopoutMenu()}function LeftHandNavMenus_EnablePopoutMenu(n,t){if(document.all)if(document.all["elPopout_"+n].style.top=="0px"){var i=t.clientY-6+document.body.scrollTop;createDelayedEvent("LeftHandNavMenus_private_hideAllPopoutMenus();LeftHandNavMenus_private_showPopoutMenu('"+n+"', "+i+")",kDelayTimeShow,2)}else createDelayedEvent("LeftHandNavMenus_private_hideAllPopoutMenus();LeftHandNavMenus_private_showPopoutMenu('"+n+"')",kDelayTimeShow,2)}function LeftHandNavMenus_MaintainPopoutMenu(n){document.all&&(createDelayedEvent("LeftHandNavMenus_private_showPopoutMenu('"+n+"')",kDelayTimeShow,2),LeftHandNavMenus_HighlightItem(document.all["LeftHandNavMenu_"+n],!0))}function LeftHandNavMenus_DisablePopoutMenu(){document.all&&createDelayedEvent("LeftHandNavMenus_private_hideAllPopoutMenus()",kDelayTimeHide,0)}function LeftHandNavMenus_private_showPopoutMenu(n){if(document.all){var t=null;LeftHandNavMenus_private_showPopoutMenu.arguments.length>1&&(t=LeftHandNavMenus_private_showPopoutMenu.arguments[1]);document.all["elPopout_"+n]!=null&&(document.all["elPopout_"+n].style.visibility="visible",LeftHandNavMenus_HighlightItem(document.all["LeftHandNavMenu_"+n],!0),glb_LeftHandNavMenus_DisplayedPopoutMenu=n,t!=null&&(document.all["elPopout_"+n].style.left=document.all["elPopout_"+n].style.pixelWidth-7,document.all["elPopout_"+n].style.top=t-5))}}function LeftHandNavMenus_private_hideAllPopoutMenus(){document.all&&glb_LeftHandNavMenus_DisplayedPopoutMenu!=null&&(document.all["elPopout_"+glb_LeftHandNavMenus_DisplayedPopoutMenu].style.visibility="hidden",LeftHandNavMenus_UnhighlightItem(document.all["LeftHandNavMenu_"+glb_LeftHandNavMenus_DisplayedPopoutMenu]),glb_LeftHandNavMenus_DisplayedPopoutMenu=null)}function RememberSelectedText(){var n=Globals.Utilities.getSelectedHtml(),t=$("#rememberFirefoxSelectedText");t.length===0?$("#divOuterDiv").append("<div id='rememberFirefoxSelectedText' style='display:none;'>"+n+"<\/div>"):t.html(n)}function ChangeLanguagePreferenceFromPageNavigation(n){var t;t=location.protocol.toLowerCase().indexOf("https")<0?"/Knowledge/SetOneUserPreference.aspx":"/Login/SetOneUserPreference.aspx";$.ajax(t,{type:"GET",cache:!1,data:{preferenceID:1,newSetting:n},success:function(){window.location.reload(!0)}})}function openTemporaryNewsroomHelpDialog(n){n==null&&(n="<p>Our quick reference guide and FAQs are coming soon. For now, you can request help from <a href='mailto:ustaxalertshelp@ey.com'>ustaxalertshelp@ey.com<\/a>.<\/p>");Globals.UI.showSimpleDialog(n,"Help")}function setCookieAcceptanceCookie(){Globals.Cookies.createCookie("cookieAcceptanceAcknowledged","yes",{NumberOfDays:390,IsPersistent:!0});$("#pageBottomCookieNotificationBanner").remove()}function checkForCookieAcceptanceCookie(){Globals.Cookies.exists("cookieAcceptanceAcknowledged")?$("#pageBottomCookieNotificationBanner").remove():$("#pageBottomCookieNotificationBanner").show()}function callStateManagerFunctionIfExists(n){if(document.k5&&document.k5[n]){var t=document.k5[n].apply(document.k5,[].slice.call(arguments,1));if(typeof t!="undefined")return t}return null}function callKNextStateManagerFunctionIfExists(n,t){Globals.Utilities.isUndefinedOrNull(window.currentPage)||Globals.Utilities.isUndefinedOrNull(window.currentPage[n])||typeof window.currentPage[n][t]!="function"||currentPage[n][t].apply(null,[].slice.call(arguments,2))}function doesKNextStateManagerFunctionExist(n,t){return!Globals.Utilities.isUndefinedOrNull(window.currentPage)&&!Globals.Utilities.isUndefinedOrNull(window.currentPage[n])&&typeof window.currentPage[n][t]=="function"?!0:!1}function getResearchNewslinksAtTopOfDocument(n,t){var f,h,c,l,v,g,o,p,w,s,i;f=n[n.length-1].replace(/'/g,"\\'").replace(/"/g,"&#x22;");f=f.substring(f.indexOf(")")+2);h=document.k5doc.fetchID;c=document.k5doc.documentDate;l=99999999;var r="",a=!0,y="javascript:document.k5doc.downloadNewsDocument("+l.toString()+", '"+f+"', '"+h+"', '"+c+"')",e=!0,u;if(document.k5doc.extraMetadata.IsInternalOnlyContent=="true"&&document.k5doc.extraMetadata.IsExternalAndInternalContent!="true")u=null;else if(document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_alertID]==null)u=null,a=!1,e=!1;else{var b=document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_TwitterLink]?", '"+document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_TwitterLink]+"'":", null",k=document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_LinkedInLink]?", '"+document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_LinkedInLink]+"'":", null",d=document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_FacebookLink]?", '"+document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_FacebookLink]+"'":", null";u="javascript:document.k5doc.emailNewsDocument(false, "+l.toString()+", '"+f+"', '"+h+"', '"+c+"'"+b+k+d+")"}return v="callStateManagerFunctionIfExists('doPrint', 0);",g="",e=u!=null,o="",typeof glb_SiteType!="undefined"&&glb_SiteType==Globals.SiteType.GWTR&&(a=!1,e=!1),r+='<span style=\'white-space:nowrap;\'><a href="javascript:;" onclick="'+v+"\"><img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Print-Small.png' border='0' class='js--img--pnghover'/><\/a>&nbsp;<a href=\"javascript:;\" onclick=\""+v+"\" style='vertical-align:super;'>"+GetString("str_Print_PrintThisDocument")+"<\/a><\/span>",a&&(r+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'><a href=\""+y+"\"><img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Download.png' border='0' class='js--img--pnghover' /><\/a>&nbsp;<a href=\""+y+"\" style='vertical-align:super;'>Download this document<\/a><\/span>"),Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext!==1||Globals.Utilities.isUndefinedOrNull(window.currentPage)||(u="#",o='callKNextStateManagerFunctionIfExists("KnowledgeToolbarBLL", "onShareDocumentClick");'),e&&(p=$("#divSocialMediaButtonFormats").length>0,w=p?"Share this document":GetString("str_Email_EmailThisDocument"),r+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'><a id='showEmailLink' href=\""+u+"\" onclick='"+o+"' ><img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Email-Small.png' border='0' class='js--img--pnghover' /><\/a>&nbsp;<a href=\""+u+"\"  onclick='"+o+"' style='vertical-align:super;'>"+w+"<\/a><\/span>"),s=!1,document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_EditLinks]!=null&&document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_EditLinks].length>0&&(s=!0),i=this.getNewsResearchDocumentLinkThisDocumentLinkInformation(s),Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext!==1||Globals.Utilities.isUndefinedOrNull(window.currentPage)||callKNextStateManagerFunctionIfExists("BLL","saveDocumentLinkInformation",i),i.link!=null&&(r+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'>",i.link2==null?(r+="<a href='"+i.link.target+"' class='js-a-doNotChangeHref' target='_blank'><img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Link-Small.png' border='0' class='js--img--pnghover' /><\/a>&nbsp;<a href='"+i.link.target+"' class='js-a-doNotChangeHref' style='vertical-align:super;' target='_blank'>"+i.link.text+"<\/a>",i.link.description!=null&&i.link.description.length>0&&(r+="<span style='vertical-align:super;'> ("+i.link.description+")<\/span>"),r+="<\/span>"):(r+=i.link.target.includes("loadDocumentByGotoString")?"<img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Link-Small.png' border='0' class='js--img--pnghover' />&nbsp;<span style='vertical-align:super;'>"+i.link.text+": <a href='#' onclick='"+i.link.target+"' class='js-a-doNotChangeHref' target='_blank'>"+i.link.description+"<\/a> | <a href='"+i.link2.target+"' class='js-a-doNotChangeHref' target='_blank'>"+i.link2.description+"<\/a><\/span>":"<img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Link-Small.png' border='0' class='js--img--pnghover' />&nbsp;<span style='vertical-align:super;'>"+i.link.text+": <a href='"+i.link.target+"' class='js-a-doNotChangeHref' target='_blank'>"+i.link.description+"<\/a> | <a href='"+i.link2.target+"' class='js-a-doNotChangeHref' target='_blank'>"+i.link2.description+"<\/a><\/span>",r+="<\/span>")),s&&(r+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'>",r+=document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_EditLinks].replace(/&nbsp;<a /i,"&nbsp;<a style='vertical-align:super;' ")+"<\/span>"),"<div id='linksAtTopOfDocument' class='no-print'>"+r+"<\/div><\/div>"+t}function getNewsResearchDocumentLinkThisDocumentLinkInformation(n){var t={};return t.link={},t.link.Text=null,t.link.Target=null,t.link.Description=null,t.link2=null,t.doShowFIDOText=!1,t.link.target=document.siteConfiguration&&document.siteConfiguration.doPublishStaticPageLinkInArchive?document.k5doc.fetchID?"/news/"+document.k5doc.fetchID.toString():"/Login/ViewEmailDocument.aspx?AlertID="+document.k5doc.fetchID.toString():"/Knowledge/News.aspx?AlertID="+document.k5doc.fetchID.toString(),t.link.text=GetString("str_LinkToThisDocument"),t.link.description="",t.doShowFIDOText=!1,document.siteConfiguration==null||document.siteConfiguration.externalSiteDomain==null||document.siteConfiguration.externalSiteDomain==""||(document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_IsInternalOnlyContent]=="true"&&document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_IsMarkFIDOContent]=="true"&&(t.doShowFIDOText=!0),n?(t.link.target="/Knowledge/Home.aspx?ProductID="+document.k5doc.productID.toString()+"&fetchID="+document.k5doc.fetchID.toString(),document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_IsInternalOnlyContent]=="true"?document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_IsExternalAndInternalContent]=="true"?(t.link.description="internal link",t.link2={},t.link2.description="client link",t.link2.target="https://"+document.siteConfiguration.externalSiteDomain+"/news/"+document.k5doc.fetchID.toString()):t.link.description="internal-only":(t.link.description="internal link",t.link2={},t.link2.description="client link",t.link2.target="https://"+document.siteConfiguration.externalSiteDomain+"/news/"+document.k5doc.fetchID.toString())):document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_IsInternalOnlyContent]=="true"?document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_IsExternalAndInternalContent]=="true"?t.link.target="https://"+document.siteConfiguration.externalSiteDomain+"/news/"+document.k5doc.fetchID.toString():t.link=null:t.link.target="https://"+document.siteConfiguration.externalSiteDomain+"/news/"+document.k5doc.fetchID.toString()),document.k5doc.alertExtraMetadata[Globals.AlertExtraMetadata.Key_alertID]==null&&(t.link=null),t}function createPOSTSubmitFormText(n,t){var r='<form method="POST" action="'+n+'">',i;for(i in t)r+='<input type="hidden" name="'+i+'" value="'+t[i]+'">';return r+"<\/form>"}function CreateFetchLink(n,t,i,r){document.k5doc.createFetchLink(n,t,i,r)}function CreateDocumentLink(n,t,i,r){t.href=n.toLowerCase()=="defn"||n.toLowerCase()=="def"?"javascript:document.k5doc.loadDefinition('"+encodeURIComponent(r).replace(/'/g,"\\'")+"');":"javascript:;"}function CreateAttachmentLink(n,t,i){if(!document.k5doc){n.href="javascript:;";return}n.href="/Knowledge/View/Attachment.aspx?productID="+document.k5doc.productID+"&bookID="+t+"&ftID="+escape(i);n.setAttribute("target","_blank")}function popupFootnote(n,t,i){document.k5doc.displayFootnote(i)}function MDP(n){var t=window.event?window.event.button?window.event.button:window.event.which:arguments.callee.caller.arguments[0].button+1;document.k5doc.mouseDownParagraph(n,t)}function MUP(n){var t=window.event?window.event.button?window.event.button:window.event.which:arguments.callee.caller.arguments[0].button+1;document.k5doc.mouseUpParagraph(n,t)}function MOP(){}function MPP(){}function doFetch(n){var t=window.location.toString().toLowerCase(),i=0;arguments.length==1?t.indexOf("ktype=")>=0&&(i=parseInt(t.substring(t.indexOf("ktype=")+6,t.length),10)):arguments.length==2&&(i=parseInt(arguments[1],10));this.productID==i?this.loadDocumentByGotoString(this.productID,n):loadPage("/Knowledge/Home.aspx?ProductID="+i+"&FetchID="+escape(n))}function ShowAttachment(n,t){CreateAttachmentLink(n,0,unescape(t))}function loadExternalUrl(n){window.open(n)}function popupFootnoteDB(n,t,i,r){this.displayFootnote(r)}function doPopup(n){var t;t=open("","","width=420,height=250,scrollbars=yes");t.document.open();t.document.write(n+"<p>");t.focus()}function CreateAttachmentLinkSpecialAccess(n,t,i,r){r=escape(r);var u=i;t.href="../Login/ViewEmailDocumentAttachment.aspx?productID="+document.iCurrentProductId+"&bookID="+u+"&ftID="+r+"&fnID="+n}function useElasticsearch(n){var t=!1,f=typeof glb_EnableElasticsearch!="undefined"&&glb_EnableElasticsearch==1,u=!1,i,r;return typeof n!="undefined"&&(u=$("#K5TreeViewNode_N"+n).text().trim().indexOf("(Draft)")==0),u||(glb_ShowSearchProviderToggle?(i=0,Globals.Cookies.exists(document.k5doc.SearchPreferenceCookieName)&&(r=Globals.Cookies.readCookie(document.k5doc.SearchPreferenceCookieName),Globals.Utilities.isUndefinedOrNull(r)||(i=r.SearchProvider)),t=i>0):f&&(t=!0),typeof document.k5search!="undefined"&&(t=t&&document.k5search.searchTypeIsHandledByElastic())),t}var functionOnCloseDiv="",lockedImage,KnotiaKnowledge5,glb_StateManager_RequestTimeout,productName;String.prototype.ReplaceAll=function(n,t){for(var i=this,r=i.indexOf(n);r!=-1&&n.length>0;)i=i.substring(0,r)+i.substring(r).replace(n,t),r=i.indexOf(n,r+t.length);return i};(typeof Globals=="undefined"||Globals===null)&&(Globals={});Globals.UI={showSimpleDialog:function(n,t,i,r){var u="simpleDialog_"+(new Date).getTime().toString();return $("body").append("<div id='"+u+"'><\/div>"),this.showjQueryToolbarDialog(u,i,r,t,n,null,null,null,null),u},showjQueryToolbarDialog:function(n,t,i,r,u,f,e,o,s,h){var v="dialog_"+n,c=$("#"+v),y=!1,p,l,a;Globals.Utilities.isUndefinedOrNull(o)||(y=o);c.length!==0?c.dialog("close"):(p=r==null?"":"title='"+r+"'",c=$("<div id='"+v+"' "+p+"><\/div>").appendTo("body"));var w=300,b=Math.ceil($(window).height()*.5);return!Globals.Utilities.isUndefinedOrNull(t)&&t>0&&(w=t),h!=null?l=h:n.indexOf("simpleDialog_")===0?(a=$("#divOuterDiv"),a.length==0&&(a=window),l={my:"center center",at:"center center",of:a}):l={my:"left top",at:"left bottom",of:"#"+n},c.dialog({position:l,width:w,height:"auto",maxHeight:b,modal:!0,close:function(){Globals.Utilities.isUndefinedOrNull(s)||s();$(this).empty().dialog("destroy").remove()},closeText:"",open:function(){y&&$(".ui-widget-overlay").bind("click",function(){Globals.Utilities.isUndefinedOrNull(s)?Globals.UI.closejQueryToolbarDialog(n):Globals.UI.closejQueryToolbarDialog(n,s)});Globals.Utilities.isUndefinedOrNull(f)||f()}}),c.html(u),Globals.UI.modernizeHTMLElements({ElementID:v}),c},closejQueryToolbarDialog:function(n,t){Globals.Utilities.isUndefinedOrNull(t)||t();var i="dialog_"+n;$("#"+i).empty().dialog("destroy").remove()},isJqueryDialogOpen:function(n){var t=!1,i;if(!Globals.Utilities.isUndefinedOrNull(n))try{i=$("#dialog_"+n);i.length>0&&i.dialog("isOpen")&&(t=!0)}catch(r){t=!1}return t},appendTojQueryToolbarDialog:function(n,t){var i="dialog_"+n;i.appendChild(t)},appendWarningTojQueryToolbarDialog:function(n,t){var i="dialog_"+n;$("#"+i+" .js--div--display-warning").length>0?$("#"+i+" .js--div--display-warning").val(t):$("#"+i).append('<div class="js--div--display-warning">'+t+"<\/div>")},addButtonsTojQueryToolbarDialog:function(n,t){var i="dialog_"+n;$("#"+i).dialog("option","buttons",t)},setContentContainerHeight:function(n,t,i,r){var u=parseInt($(window).height(),10)-parseInt($("#"+n).offset().top,10),e,f;if(Globals.Utilities.isArray(t))for(e=t.length,f=0;f<e;f++)u-=parseInt($("#"+t[f]).outerHeight(),10);try{u-=r}catch(o){}try{u=Math.max(u,i)}catch(o){}return $("#"+n).css("height",u+"px"),$("#"+n).css("overflow-y","auto"),{width:$("#"+n).innerWidth(),height:$("#"+n).innerHeight()}},makeCheckboxIntoAllCheckboxForOtherCheckboxes:function(n,t,i){Globals.UI.setAllCheckboxStatusBasedOnOtherCheckboxes(n,t);$(n).on("change",function(){$(this)[0].checked?$(t).prop("checked",!0):$(t).prop("checked",!1);i!=null&&i.call()});$(t).on("change",function(){Globals.UI.setAllCheckboxStatusBasedOnOtherCheckboxes(n,t)})},setAllCheckboxStatusBasedOnOtherCheckboxes:function(n,t){$(t).length==$(t).filter(":checked").length?$(n).prop("checked",!0):$(n).prop("checked",!1)},isElementVisibleInContainer:function(n,t){var u=n,i,r,e,f,o;return Globals.Utilities.isObjectAJQueryObject(n)||(u=$(n)),Globals.Utilities.isUndefinedOrNull(t)?(i=$(window),r=i.scrollTop()):(i=$("#"+t),r=i.offset().top),e=r+i.height(),f=u.offset().top,o=f+u.height(),o<=e&&f>=r},modernizeHTMLElements:function(n){var i=Globals.Utilities.isUndefinedOrNull,r,t;Globals.UI.isSiteThemeEnabled()&&(r=!i(n),t=" ",r&&!i(n.ElementID)&&(t="#"+n.ElementID+" "),Globals.UI.knotiaFlatModernizeStandardElements(t),r&&!i(n.RenderingFunction)&&(i(n.Parameters)?n.RenderingFunction(t):n.RenderingFunction(t,n.Parameters)))},knotiaFlatModernizeStandardElements:function(n){Globals.UI.isSiteThemeEnabled()&&(Globals.UI.knotiaFlatModernizeStandardSelects(n),Globals.UI.knotiaFlatModernizeStandardButtons(n),Globals.UI.knotiaFlatModernizeStandardTextBoxes(n),Globals.UI.knotiaFlatModernizeStandardBulletLinkLists(n),Globals.UI.knotiaFlatModernizeStandardBulletLists(n),Globals.UI.knotiaFlatModernizeStandardLabels(n))},knotiaFlatAttachHoverEvents:function(){if(Globals.UI.isSiteThemeEnabled()){$(document).on("mouseover",".js--img--pnghover",function(n){var t,i;n.stopPropagation();t=$(this);t.length>0&&!Globals.Utilities.isUndefinedOrNull(t.attr("src"))&&t.attr("src").indexOf("-hover")===-1&&(i=t.attr("src").replace(".png","-hover.png"),t.attr("src",i))});$(document).on("mouseout",".js--img--pnghover",function(n){var t,i;n.stopPropagation();t=$(this);t.length>0&&!Globals.Utilities.isUndefinedOrNull(t.attr("src"))&&(i=t.attr("src").replace("-hover.png",".png"),t.attr("src",i))})}},useDivOuterDivElementIDForKnotia:function(n){var t=n;return Globals.Utilities.isNullOrWhitespace(n)&&(t="#divOuterDiv"),t},knotiaFlatModernizeStandardLabels:function(n){var t=Globals.UI.useDivOuterDivElementIDForKnotia(n);Globals.UI.isSiteThemeEnabled()&&($(t).find(".js--td--align-label").attr("align","right"),$(t).find(".js--td--adjust-column-width").attr("width","20%"))},knotiaFlatModernizeStandardBulletLinkLists:function(n){var t=Globals.UI.useDivOuterDivElementIDForKnotia(n);Globals.UI.isSiteThemeEnabled()&&$(t).find(".js--unorderedlist--apply-bullet-style").addClass("arrow-bullet")},knotiaFlatModernizeStandardBulletLists:function(n){var t=Globals.UI.useDivOuterDivElementIDForKnotia(n);Globals.UI.isSiteThemeEnabled()&&(Globals.UI.knotiaFlatModernizeStandardBulletLinkLists(n),$(t).find(".js--listitem--text-only").addClass("black"))},knotiaFlatModernizeStandardSelects:function(n){var t=Globals.UI.useDivOuterDivElementIDForKnotia(n);Globals.UI.isSiteThemeEnabled()&&($(t).find(".js--select--adjust-width").css("width","90%"),$(t).find(".js--select--adjust-width-medium").css("width","50%"),$(t).find(".js--select--adjust-width-small").css("width","25%"))},knotiaFlatModernizeStandardButtons:function(n){var t=Globals.UI.useDivOuterDivElementIDForKnotia(n);Globals.UI.isSiteThemeEnabled()&&($(t).find(".js--button--align-wrapper").css("text-align","right"),$(t).find(".js--button--convert-to-jQuery").button())},knotiaFlatModernizeStandardTextBoxes:function(n){var t=Globals.UI.useDivOuterDivElementIDForKnotia(n);Globals.UI.isSiteThemeEnabled()&&($(t).find(".js--textbox--round-corners").addClass("text ui-widget-content ui-corner-all"),$(t).find(".js--textbox--adjust-width").css("width","90%"),$(t).find(".js--textbox--adjust-width-medium").css("width","50%"),$(t).find(".js--textbox--adjust-width-small").css("width","25%"),$(t).find(".js--textarea--adjust-width").css("width","80%"),Globals.UI.knotiaFlatModernizeDatePickers(n))},knotiaFlatModernizeDatePickersWithJqWidgets:function(n){if(Globals.UI.isSiteThemeEnabled())var t=Globals.UI.useDivOuterDivElementIDForKnotia(n),i=$(t).find(".js--textbox--convert-to-datepicker"),r=i.length,u={width:"100px",height:"25px",formatString:"yyyy-MM-dd",culture:calCultureType}},knotiaFlatModernizeDatePickers:function(n){var i=Globals.UI.useDivOuterDivElementIDForKnotia(n),r,u,t;Globals.UI.isSiteThemeEnabled()&&($.datepicker.setDefaults($.datepicker.regional[GetString("CurrentLanguageAbbr")]),r="yy-mm-dd",document.dateFormat&&document.dateFormat!="dd MMM yyyy"&&(r=document.dateFormat),u={showOn:"both",buttonImage:"/UserControls/Toolbar/Images/KNOTIAFLAT/Icons/Flat-Calendar.png",buttonImageOnly:!0,buttonText:GetString("str_ChooseDate"),dateFormat:r,beforeShow:function(){setTimeout(function(){$(".ui-datepicker").css("z-index","2001")},250)}},$(i).find(".js--textbox--convert-to-datepicker").datepicker(u),t={"vertical-align":"text-bottom"},$(i).find(".hasDatepicker").css(t),t={"vertical-align":"text-bottom",position:"relative",right:"0px"},$(i).find(".ui-datepicker-trigger").css(t))},observeDomChangeAttributeToObjectWithoutParameters:function(n,t){var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,r,u;if(typeof i!="undefined")r=document.querySelector(n),u={attributes:!0,childList:!1,characterDate:!1},document.knotiaObserver=new i(function(n){n.forEach(function(n){n.type=="attributes"&&t()})}),document.knotiaObserver.observe(r,u);else $(n).on("DOMSubtreeModified propertychange",function(){t()})},selectAllTextInSpecifiedDiv:function(n){var t;document.selection?(document.selection.empty(),t=document.body.createTextRange(),t.moveToElementText(document.getElementById(n)),t.select()):window.getSelection&&(window.getSelection().removeAllRanges(),t=document.createRange(),t.selectNode(document.getElementById(n)),window.getSelection().addRange(t))},isSiteThemeEnabled:function(){var t=$("#hdnUseSiteTheme"),n=!1;try{t.length!==0&&parseInt(t.val(),10)>0&&(n=!0)}catch(i){n=!1}return n},displayFadingMessage:function(n,t,i){i==null&&(i=990);var r=$("#"+n);r.html("<span style='font-size:10pt;'>"+t+"<\/span>");r.show();r.animate({opacity:"1"},10).animate({opacity:"1"},i).animate({opacity:"0"},1e3,function(){r.hide()})},fadeOut:function(n){var t=$("#"+n);t.animate({opacity:"0"},1e3,function(){t.hide()})},handleEnterKeyPressInInputField:function(n,t){$("#"+n).on("keypress",function(n){if(n.which&&n.which==13||n.keyCode&&n.keyCode==13)return t.call(),n.stopPropagation(),!1})},showProcessingStatusDialog:function(n,t){var i=$("#processingStatusDialog"),r;if(n==null){this.removeProcessingStatusDialog();return}i.length==0&&(i=$("<div id='processingStatusDialog' title='Processing'><\/div>").appendTo("body"));i.dialog({modal:!0});r="<p style='font-size:10pt;'>"+n+"<\/p>";t&&(r+="<button onclick=\"$('#processingStatusDialog').empty().dialog('destroy').remove();\" style='font-size:10pt'>Close<\/button>");i.html(r)},removeProcessingStatusDialog:function(){var n=$("#processingStatusDialog");n.length>0&&n.empty().dialog("destroy").remove()}};(typeof Globals=="undefined"||Globals===null)&&(Globals={});Globals.LanguageType={Unspecified:-1,en:1,fr:2};Globals.ExtendedCountryPropertyTypeID={NOT_SET:0,Country:1,SpecialCountry:2};Globals.PinboardItemType={NOT_SET:0,Document:1,Search:2,Notes:3};Globals.PinboardSearchType={NOT_SET:0,SearchResultList:1,SelectedSearchDocuments:2};Globals.PinboardStates={Collapsed:0,Expanded:1};Globals.Status={NOT_SET:0,Live:0,Deleted:2};Globals.DoctypeID={NOT_SET:0,IGAANews:6100};Globals.StringCaseType={NOT_SET:0,TitleCase:1,SentenceCase:2};Globals.InteractiveHelpType={NOT_SET:0,SITEWIDE:1,PRODUCTWIDE:2};Globals.InteractiveHelpStatus={NOT_SET:0,DRAFT:1,LIVE:2,ARCHIVED:3,DELETED:4};Globals.LearningMediaType={NOT_SET:0,VIEW_PRESENTATION:1,DOWNLOAD_PRESENTATION:2,DOWNLOAD_SLIDES:3};Globals.MediaSizeOrDurationType={NOT_SET:0,MEGABYTES:1,MINUTES:2};Globals.LearningNewsStatus={NOT_SET:0,NEW:1,SAVED:2,RELEASED:3};Globals.SiteType={NOT_SET:0,EYTaxNavigator:2,EYOnlineUS:3,CCRA:4,EYO_Inactive:5,Knotia:6,EYTaxNavigatorMNP:8,KnotiaCOM_Inactive:9,KnotiaEDU:10,KnotiaCAUBO_Inactive:11,KnotiaIDA:12,CdnTaxLib_Inactive:13,GWTR:14,GrantThornton:15,EYAccountingPortal:16,EYAviation:17,IGAA:18,USTaxNewsExternal:19,USTaxNewsInternal:20,GTNUExternal:21,GTNUInternal:22,CATaxAlerts:23,AUSTaxExchange:27,EXAMREF:29};Globals.HotTopicsViewMode={NOT_SET:0,LIST_VIEW:1,GRID_VIEW:2};Globals.AlertExtraMetadata={Key_EditLinks:0,Key_IsInternalOnlyContent:1,Key_IsExternalAndInternalContent:2,Key_ExternalVersionAlertID:3,Key_IsMarkFIDOContent:4,Key_TwitterLink:5,Key_LinkedInLink:6,Key_FacebookLink:7,Key_PromotionalMaterial:8,Key_alertID:9,Key_IsDocumentSharable:10};lockedImage="NULL";var kDelayTimeShow=250,kDelayTimeHide=450,glb_LeftHandNavMenus_DisplayedPopoutMenu=null,glb_LeftHandNavMenus_iEventDoSoon=[0,0,0];GlobalStrings={CurrentLanguageAbbr:"en",CurrentLanguageID:"1",str_No:"No",str_Yes:"Yes",str_Cancel:"Cancel",str_Start:"Start",str_Stop:"Stop",str_Feedback:"Feedback",str_Questions:"Questions",str_Colon:":",str_Save:"Save",str_Save_Note_Popup:"Save",str_Ok:"OK",str_Go:"Go",str_Note:"Note",str_ChooseDate:"Choose a date",str_Name:"Name",str_Submit:"Submit",str_Company:"Company",str_Email:"Email",str_Country:"Country",str_Reset:"Reset",f:"Select All",str_ClearSelection:"Clear Selection",str_Reload:"Reload",str_Copy:"Copy",str_Download:"Download",str_Increase:"Increase",str_Decrease:"Decrease",str_Comment:"Comment",str_Access:"Access",str_Welcome:"Welcome",str_PleaseSelectAnOptionBelow:"Please select an option below",str_FrequentlyAskedQuestions_Short:"FAQ",str_FrequentlyAskedQuestions:"Frequently asked questions",str_ContinueToHomepage:"Click here to continue to the home page.",str_InvalidLogin:"Invalid login. Please try again.",str_InvalidEmailAddress:"Invalid e-mail address.",str_PasswordRequired:"Password is required.",str_EmailAddressRequired:"Email address is required.",str_EnterEmailAddress:"Enter email address",str_EnterPassword:"Enter password",str_EnterDocumentID:"[enter Document ID]",str_SearchBar_NewsArchive:"News Archive",str_Province:"Province:",str_DocumentType:["Document Type:","Document type:"],str_Matches:"Matches:",str_DocumentID:"Document ID:",str_FetchAssistance:["Fetch Assistance","Fetch assistance"],str_FetchPrefixExamples:["Fetch Prefix Examples","Fetch prefix examples"],str_CopySelectedTextWithContext:["Copy Selected Text with Context","Copy selected text with context"],str_PressCtrlCToCopySelectedText:"Please press &quot;Ctrl + C&quot; to copy the selected text (shown below) to your clipboard.",str_PleaseSelectSomething:"Please select the text you wish to copy.",str_TheFollowingTextWasCopied:"The following text was copied to your clip board:",str_Share_CreateLink:["Create Link to Document","Create link to document"],str_Share_CopyPasteLink:"Please copy and paste the following link",str_DocNav_SearchHit:"Hit",str_DocNav_SearchResults:["Search Results:","Search results:"],str_DocNav_SearchResultsCompressed:["Search Results:","Search results:"],str_DocNav_BackToSearchResults:["Back to Search Results","Back to search results"],str_DocNav_OpenInNewWindow:["Open in New Window","Open in new window"],str_DocNav_Of:" of ",str_DocNav_BriefcaseDocuments:["Briefcase Documents","Briefcase documents"],str_DocNav_NextDocument:"Next",str_DocNav_PreviousDocument:"Previous",str_DocNav_NextSearchHit:["Next Hit","Next hit"],str_DocNav_PreviousSearchHit:["Previous Hit","Previous hit"],str_DocNav_clickToResize:"Click anywhere in the shaded area to resize",str_DocNav_seeFutureApplication:"See Future application below.",str_DocNav_PreviousPageLink:"Previous page link",str_DocNav_NextPageLink:"Next page link",str_DocNav_FirstPageLink:"First page link",str_DocNav_LastPageLink:"Last page link",str_DocNav_Page:["Page","page"],str_DocNav_Link:["Link","link"],str_CreateFolder_CreateFolder:["Create Folder","Create folder"],str_CreateFolder_EnterNewFolderName:"Enter new folder name here",str_CreateFolder_Create:"Create",str_CreateFolder_FolderCreated:"Folder created",str_CreateFolder_UnableToCreateFolder:"Unable to create folder",str_CreateFolder_EnterValidFolderName:"Please enter a valid folder name",str_CreateFolder_FolderExists:"Folder name already exists",str_CreateFolder_BriefcaseFolderError:"Error creating Briefcase folder.",str_Error_WaitTimedOut:"<p class='normalTextResizable'>It appears that an error has occurred while processing your request.<\/p><p class='normalTextResizable'>Please hit CTRL-F5 and then try again.<\/p><p class='normalTextResizable'>If the problem persists, please contact our help desk (see below).<\/p>",str_DelItem_DeleteFolderOrDocuments:["Delete Folder(s)/Document(s)","Delete folder(s)/document(s)"],str_DelItem_ChooseItem:"Please choose an item from the table of contents",str_DelItem_CannotDeleteReadOnly:"You cannot delete a read-only file",str_DelItem_FoldersDeleted:"The following folder(s) will be deleted:",str_DelItem_DocumentsDeleted:"The following document(s) will be deleted:",str_DelItem_Delete:"Delete",str_DelItem_ItemDeleted:"Item(s) deleted",str_DelItem_ErrorDeleted:"Some item(s) could not be deleted",str_MngAccess_Title:["Manage Folder Access","Manage folder access"],str_MngAccess_ChooseFolder:"Please choose a folder:",str_MngAccess_FolderNames:["Folder Names","Folder names"],str_MngAccess_NoFolderToManage:"There are no folders to manage in your Briefcase.",str_MngAccess_Briefcase_ChangeAccessError:"Error changing Briefcase access.",str_MngAccess_Briefcase_GetFoldersError:"Error during get folder Briefcase access.",str_MngAccess_FolderAccessRoles:["Folder Access Roles:","Folder access roles:"],str_MngAccess_ReadOnly:["Read Only","Read only"],str_MngAccess_FullAccess:["Full Access","Full access"],str_MngAccess_AccessChanged:"Your changes have been saved.",str_MngAccess_ErrorChange:"Some user access could not be changed",str_MngAccess_SaveChanges:["Save Changes","Save changes"],str_MngAccess_Reset:"Reset",str_MoveCopyDocs_Title:["Move/Copy Document(s)","Move/copy document(s)"],str_MoveCopyDocs_ChooseItem:"Please choose an item from the table of contents",str_MoveCopyDocs_ChooseDoc:"Please choose at least one document from the table of contents",str_MoveCopyDocs_DocumentsMoved:"The following document(s) will be moved/copied:",str_MoveCopyDocs_MoveDocs:"Move document(s)",str_MoveCopyDocs_CopyDocs:"Copy document(s)",str_MoveCopyDocs:"Move/Copy",str_MoveCopyDocs_ToExistingFolder:"To existing folder:",str_MoveCopyDocs_ToNewFolder:"To new folder:",str_MoveCopyDocs_Save:"Save",str_MoveCopyDocs_CanOnlyCopyReadOnly:"You can only copy a document from a read only folder",str_MoveCopyDocs_ItemMovedCopied:"Item(s) moved/copied",str_MoveCopyDocs_ErrorMoved:"Some items could not be moved/copied",str_MoveCopyDocs_ChooseDestination:["Choose Destination","Choose destination"],str_MoveCopyDocs_ChooseOperation:["Choose Operation","Choose operation"],str_MoveCopyDocs_ChooseFolder:["Choose a Folder","Choose a folder"],str_MoveCopyDocs_EnterNewFolderName:["Enter New Folder Name","Enter new folder name"],str_MoveCopyDocs_BriefcaseMoveError:"Error moving Briefcase item.",str_RenameFolder_Title:["Rename Folder","Rename folder"],str_RenameFolder_Rename:"Rename",str_RenameFolder_FolderRenamed:"Folder renamed",str_RenameFolder_UnableToRename:"Unable to rename folder",str_RenameFolder_FolderToRename:"Select a folder to rename",str_RenameFolder_NoFolderToRename:"There are no folders to rename in your briefcase.",str_RenameFolder_BriefcaseRenameError:"Error renaming Briefcase folder.",str_Print_PrintEnglishHotTopics:"Print English Hot Topics",str_Print_PrintFrenchHotTopics:"Print French Hot Topics",str_Print_PrintOptions:["Print Options","Print options"],str_Print_PrintPage:"Print the contents of the page",str_Print_PrintThisDocument:"Print this document",str_Print_PrintThisDocument_Description:"Print the current document",str_Print_PrintSelectedText:"Print selected text",str_Print_PrintSelectedText_Description:"Print the highlighted text",str_Print_PrintCheckedBoxes:"Print checked boxes",str_Print_PrintCheckedBoxes_Description:"Print the documents selected on the table of contents",str_Print_PrintSearchResultDocuments:"Print search result documents",str_Print_PrintSearchResultDocuments_Description:"Print the documents selected from the search results",str_Print_PrintTableOfContents:"Print table of contents",str_Print_PrintTableOfContents_Description:"Print the entire table of contents",str_Print_PrintTaggedParagraphs:"Print tagged paragraphs",str_Print_PrintTaggedParagraphs_Description:"Print the tagged paragraphs on the current document",str_Print_Preview:"Preview",str_Print_Print:"Print",str_Print_Close:"Close",str_Print_ErrorToManyDocuments:'You have selected too many documents to print. Please select no more than 10 documents. \n(Tip: Uncheck the "What\'s New" box at the top of the table of contents.)',str_Print_ErrorToManyDocumentsNoTip:"You have selected too many documents to print. Please select no more than 10 documents.",str_Print_Footnotes:"Footnotes",str_Word_SaveTaggedParagraphs:"Save tagged paragraphs",str_Email_EmailThisDocument:["Email This Document","Email this document"],str_briefcase:"Briefcase",str_ucTB_SaveDocsToBriefcase:["Save Document(s) to Briefcase","Save document(s) to Briefcase"],str_ucTB_SaveToBriefcase:"Save to Briefcase",str_AddToBriefcase_SaveThisDocument:["Save This Document","Save this document"],str_AddToBriefcase_SaveCheckedBoxes:["Save Checked Boxes","Save checked boxes"],str_AddToBriefcase_SaveSearchResultDocuments:"Save search results documents",str_AddToBriefcase_SaveToBriefcase:"Save to Briefcase",str_AddToBriefcase_ChooseDestination:["Choose Destination","Choose destination"],str_AddToBriefcase_ChooseDestinationDescription:"Please choose the destination to save the document",str_AddToBriefcase_SaveSearch:["Save Search","Save search"],str_AddToBriefcase_SearchNameMessage:"Please enter a search name.",str_AddToBriefcase_ToExistingFolder:"To existing folder",str_AddToBriefcase_ToExistingFolder_Description:"Select an existing folder below to add the document to",str_AddToBriefcase_ToNewFolder:"To new folder",str_AddToBriefcase_ToNewFolder_Description:"Create a new folder to add the document to",str_AddToBriefcase_SaveDocuments:["Save Document(s)","Save document(s)"],str_AddToBriefcase_SuccessfullSave:"Your document(s) have been successfully saved to your briefcase.",str_AddToBriefcase_SearchSuccessfullSave:"Your search has been successfully saved to your briefcase.",str_AddToBriefcase_SearchName:["[Search Name]","[Search name]"],str_AddToBriefcase_FolderName:["[Folder Name]","[Folder name]"],str_AddToBriefcase_AsExistingSearch:["Existing Search","existing search"],str_AddToBriefcase_AsExistingSearch_Description:"Replace previous search query with this one for an existing search name",str_AddToBriefcase_AsNewSearch:["New search","new search"],str_AddToBriefcase_AsNewSearch_Description:"Save search query to a new search name",str_AddToBriefcase_SaveSearchToBriefcase:"Save search to Briefcase",str_AddToBriefcase_ChooseFolder:["Choose a folder","Choose a Folder"],str_AddToBriefcase_EnterNewFolderName:"Enter new folder name",str_AddToBriefcase_SaveSearchResultAs:"Save search results as",str_AddToBriefcase_EnterSearchName:"Enter search name",str_AddToBriefcase_ChooseSearchName:["Choose a Search","Choose a search"],str_MSWord_SaveDocument:["Save to Hard Drive","Save to hard drive"],str_MSWord_SuccessfulSave:"Your text or document(s) have been successfully saved to your hard drive.",str_BriefcaseBody_title:["All Folders","All folders"],str_BriefcaseBody_line1:"Keep track of your research by saving documents to Briefcase folders you create and name. You can also search within your Briefcase folders &#151; creating your own specialized library.",str_BriefcaseBody_line2:"Manage folder access so that others in your organization can view or edit Briefcase folders and documents.",str_BriefcaseBody_line3:"Save searches to your Briefcase and re-run them at a later date against updated content.",str_attachmentWithHits:"Attachments with hits",str_attachmentWithHitsShort:"Attachments",str_search_noResults:"No results.",str_search_folder:"Folder",str_search_product:"Product",str_search_documentType:["Document Type","Document type"],str_search_documentTitle:["Document Title","Document title"],str_search_relevance:"Relevance",str_search_displaying:"Displaying",str_search_toDisplay:" to ",str_search_ofDisplay:" of ",str_search_searchWithinResults:"Search within results",str_search_hits:"Hits",str_search_showSearchHits:"Show Search Hits",str_search_hideSearchHits:"Hide Search Hits",str_search_backToResults:"Back to results",str_search_searchAssistance:["Search Assistance","Search assistance"],str_search_options:["Search Options","Search options"],str_search_advancedSearch:["Advanced Search","Advanced search"],str_search_searchPreferences:["Search Preferences","Search preferences"],str_search_editSearch:["Edit Search","Edit search"],str_search_searchAll:["Search All","Search all"],str_search_searchAllNoProductsSearchable:"You do not have access to any searchable products.",str_search_searchAllNoProductsInList:"Your customized list does not contain any searchable products that you can access.",str_filteredNodes_within:"within",str_searchTip_1:"This is the default behaviour in standard search.",str_searchTip_2:'You can do this in standard search by "surrounding your phrase with quotes".',str_searchTip_3:"You do this in standard search by typing OR between your alternate words.",str_searchTip_4:"You do this in standard search by typing W/# between your words that should be near each other, or PRE/# to specify the order they should appear (# is how far apart the words can appear).",str_searchTip_5:"You can do this in standard search by typing NOT before the word you don't want.",str_searchTip_6:"This setting will be remembered for ALL searches. It can be changed from this page or My Account &gt; Preferences.",str_searchTip_7:"You can change it such that your results list is in table-of-contents order or relevance order under <img id=tempImage align=texttop> Edit search preferences.",str_searchFields_FindDocumentsThatHave:"Find documents that have ...",str_searchFields_allWords:"all these words:",str_searchFields_thisPhrase:"this exact phrase:",str_searchFields_oneOrMoreWords:"one or more of these words:",str_searchFields_wordsNearEachOther:"these words near each other:",str_searchFields_nearWithin:'"near" means within ',str_searchFields_wordsIn:"words in",str_searchFields_order:"order",str_searchFields_dontShow:"But don't show pages that have...",str_searchFields_unwantedWords:"any of these unwanted words:",str_searchFields_clear:"Clear",str_searchFields_search:"Search",str_searchFields_fetch:"Fetch",str_searchFields_searchKeywords:["Search Keywords:","Search keywords:"],str_searchFields_getSearchSyntaxHelp:["Get Search Syntax Help","Get search syntax help"],str_searchFields_turnOffKeywordAssistant:["<br>Turn off<br>Keyword<br>Assistant","<br>Turn off<br>keyword<br>assistant"],str_searchFields_turnOnKeywordAssistant:["<br>Turn on<br>Keyword<br>Assistant","<br>Turn on<br>keyword<br>assistant"],str_searchFields_tip:"tip",str_searchFields_any:"any",str_searchFields_theSpecified:"the specified",str_searchFields_enterOneOrMoreKeywords:"Please enter one or more keywords.",str_searchFields_AND:"AND",str_searchFields_NOT:"NOT",str_searchFields_OR:"OR",str_searchTemplates_caseSearchTemplate:["Case Search Template","Case search template"],str_searchTemplates_casesFrom:["Cases From:","Cases from:"],str_searchTemplates_rulingsSearchTemplate:["Rulings Search Template","Rulings search template"],str_searchTemplates_documentType:["Document Type:","Document type:"],str_searchTemplates_documentTopic:["Document Topic:","Document topic:"],str_searchTemplates_revenueFocus:["Revenue Focus:","Revenue focus:"],str_searchTemplates_countriesAffected:["Countries Affected:","Countries affected:"],str_searchTemplates_subject:"Subject:",str_searchTemplates_documentNumber:["Document Number:","Document number:"],str_searchTemplates_author:"Author:",str_searchTemplates_language:"Language:",str_searchTemplates_documentDate:["Document Date:","Document date:"],str_searchTemplates_caseName:["Case Name:","Case name:"],str_searchTemplates_citation:"Citation:",str_searchTemplates_court:"Court:",str_searchTemplates_courtFileNumber:["Court File Number:","Court file number:"],str_searchTemplates_judge:"Judge:",str_searchTemplates_language:"Language:",str_searchTemplates_both:"Both",str_searchTemplates_french:"French",str_searchTemplates_english:"English",str_searchTemplates_decisionDate:["Decision Date:","Decision date:"],str_searchTemplates_annotationsSearchTemplate:["References Search Template","References search template"],str_searchTemplates_commentarySearchTemplate:["Commentary Search by Section Template","Commentary search by section template"],str_searchTemplates_topicalIndexSearchTemplate1:["Income Tax Topical Index (FITA)","Income tax topical index (FITA)"],str_searchTemplates_topicalIndexSearchTemplate2:["Commentary Topical Index","Commentary topical index"],str_searchTemplates_caseCommentarytopicalIndexSearchTemplate:["Case Commentary Topical Index","Case commentary topical index"],str_searchTemplates_rulingReviewtopicalIndexSearchTemplate:["Ruling Commentary Topical Index","Ruling commentary topical index"],str_searchTemplates_releaseNumber:["Release Number:","Release number:"],str_searchTemplates_category:"Category:",str_searchTemplates_documentCreated:["Document Created:","Document created:"],str_searchTemplates_wealthAndEstatePlanning:["Personal Tax, Wealth, and Estate Planning","Personal tax, wealth, and estate planning"],str_searchTemplates_taxPrecentLetterSearchTemplate:["Tax Precedent Letter Search Template","Tax precedent letter search template"],str_searchTemplates_taxSubjectFileSearchTemplate:["Tax Subject File Search Template","Tax subject file search template"],str_searchTemplates_legislativeReference:["Legislative Reference:","Legislative reference:"],str_searchTemplates_specifyLegislativeReference:"Please specify a legislative reference.",str_searchTemplates_enterASectionOfTheAct:"Please enter a section of the act.",str_searchTemplates_chooseStatute:"Please choose a statute, a regulation, or a treaty from the list.",str_searchTemplates_TempMessage_Rulings1:"<b>Note:<\/b> <span class='red'>Ruling Letters released since --0-- are not included in Ruling Letters search template results.<\/span>",str_searchTemplates_TempMessage_Rulings2:'<b>Searching for recent ruling letters:<\/b> To include the most recent ruling letters in a "regular" search, use the Search box at the top left of your screen and ensure you check the <nobr>What\'s New &gt; Income Tax Rulings<\/nobr> box (as well as the Income Tax Rulings table of contents box).',str_searchTemplates_TempMessage_Cases1:"<b>Note:<\/b> <span class='red'>Cases released since --0-- are not included in Case search template results.<\/span>",str_searchTemplates_TempMessage_Cases2:'<b>Searching for recent cases:<\/b> To include the most recent cases in a "regular" search, use the Search box at the top left of your screen and ensure you check the <nobr>What\'s New &gt; Cases box<\/nobr> (as well as the Case Law table of contents boxes relevant to your search).',str_searchTemplates_topicalIndexInstructions1:"Use this tool to search the income tax topical index for terms in the legislation (<i>Income Tax Act<\/i> and Income Tax Regulations)<span id='templateDescriptionAndCommentary'> and commentary<\/span>.",str_searchTemplates_topicalIndexInstructions2:"To jump to a particular alphabetical listing within the topical index, click on the applicable letter below.",str_searchTemplates_topicalIndexInstructions3:"More commentary is available with <a href='http://www.cpastore.ca/product/federal-income-tax-collection-platinum/637' target='_blank'>FITAC Platinum<\/a>",str_searchTemplates_topicalIndexInstructions4:"A full list of search templates can be found under the <img src='/UserControls/Toolbar/Images/~sitestyle~/Icons/MagnifyingGlass.gif' height='14'> icon above.",str_searchTemplates_topicalIndex_Commentary:"Commentary",str_searchTemplates_topicalIndex_AllCommentary:["All Commentary","All commentary"],str_searchTemplates_topicalIndex_EYCommentary:["EY Commentary","EY commentary"],str_searchTemplates_topicalIndex_ThirdPartyCommentary:["Third Party Commentary","Third party commentary"],str_searchTemplates_topicalIndex_TaxRulesTopicalIndex:["Tax Rules Topical Index","Tax rules topical index"],str_searchTemplates_topicalIndex_T1TopicalIndex:"T1 topical index",str_searchTemplates_topicalIndex_EYGuideToIncomeTax:["EY&rsquo;s Guide to Income Tax","EY&rsquo;s guide to income tax"],str_searchTemplates_topicalIndex_TaxExchangeTopicalIndex:"Tax Exchange Topical Index",str_searchTemplates_topicalIndex_RevenueFocus:"Revenue Focus Topical Index",str_searchTemplates_topicalIndex_TaxPrecedents:"Tax Precedents Topical Index",str_searchTemplates_include:"Include:",str_searchTemplates_keywords:"Keywords:",str_searchTemplates_Title:["Search Tools","Search tools"],str_searchTemplates_searchTemplateSubTitle:["Search Templates","Search templates"],str_searchPreferences_wordsAroundFirstHit:"Words around first hits:",str_searchPreferences_off:"Off",str_searchPreferences_low:"Low",str_searchPreferences_medium:"Medium",str_searchPreferences_high:"High",str_searchPreferences_sortOrder:["Sort Order:","Sort order:"],str_searchPreferences_tableOfContents:["Table of Contents","Table of contents"],str_searchPreferences_relevance:"Relevance",str_searchPreferences_sortOrderDate:"Order By Date",str_useStemming:"Use stemming:",str_searchPreferences_Stemming:"Stemming",str_searchPreferences_Stemming_Description:"Stemming reduces your typed word to the root word to find the content you are looking for. (E.g.  With stemming on, Taxable will also search: Taxing, Tax, Taxes, Taxation, etc.).",str_searchPreferences_Stemming_Enable:"Enable Stemming",str_searchPreferences_SearchResultsSortOrder:"Search Results Sort Order",str_searchPreferences_SearchResultsSortOrder_TOC_Description:"Sort order curated by our content experts that prioritizes the importance of the content",str_searchPreferences_SearchResultsSortOrder_Relevance_Description:"Search engine based relevancy that's more in-line to modern search engines",str_searchPreferences_sortOrderDate_Description:"Sort order showing the most recent documents first",str_searchPreferences_WordsAroundFirstHit:"Words around First Hit",str_searchPreferences_WordsAroundFirstHit_Description:"Words around First Hit controls the amount of words displayed around the found text",str_searchPreferences_WordsAroundFirstHit_Off_Description:"No words",str_searchPreferences_WordsAroundFirstHit_Low_Description:"Few words",str_searchPreferences_WordsAroundFirstHit_Medium_Description:"Up to a sentence worth of words",str_searchPreferences_WordsAroundFirstHit_High_Description:"Up to two lines worth of words",str_searchPreferences_CountryFilter:"Country Filter:",str_searchPreferences_CountryFilter_all:"All",str_searchPreferences_CountryFilter_australia:"Australia",str_searchPreferences_CountryFilter_newzealand:"New Zealand",str_searchAll_search:"Search: ",str_searchAll_all:"All",str_searchAll_allSubscriptions:["All Subscriptions","All subscriptions"],str_searchAll_englishSubscriptions:["English Subscriptions","English subscriptions"],str_searchAll_frenchSubscriptions:["French Subscriptions","French subscriptions"],str_searchAll_customSubscriptions:["Custom Subscriptions","Custom subscriptions"],str_searchAll_editSubscriptions:["Edit Custom Subscriptions","Edit custom subscriptions"],str_searchAll_myList:["My Search List","My search list"],str_searchAll_customizeMyList:["Customize My Search List","Customize my search list"],str_searchAll_myHistory:"My History",str_definitionDiv_error:"Loading of document failed",str_noDocumentInFolder_error:"No documents in this folder",str_savedSearches_NoSearches:"You do not have any saved searches.",str_RenameSearch_Title:["Rename Search","Rename search"],str_RenameSearch_Rename:"Rename",str_RenameSearch_SearchRenamed:"Search renamed",str_RenameSearch_UnableToRename:"Unable to rename search",str_RenameSearch_enterSearchName:"Enter search name here",str_RenameSearch_EnterValidSearchName:"Please enter a valid search name",str_RenameSearch_SearchExists:"Search name already exists",str_DelSearch_DeleteSearch:["Delete Search","Delete search"],str_DelSearch_ChooseSearch:"Please choose a search to delete",str_DelSearch_SearchWillBeDeleted:"The following search(es) will be deleted:",str_DelSearch_Delete:"Delete",str_DelSearch_SearchDeleted:"Search(es) deleted",str_DelSearch_ErrorDeleted:"Some search(es) could not be deleted",str_CommonErrorTitle:"An error has occurred while processing your request",str_CommonErrorMessage:'<p class="MostNormal">An error report has been automatically sent to the site administrators.<\/p><br class="MostNormal"/><p class="MostNormal">We will work to have the problem resolved as soon as possible.<\/p><br class="MostNormal"/>',str_docDeleted:"The document you have selected has been deleted from the collection.",str_footnote_annotationsFor:"Annotations for ",str_footnote_all:"All",str_HotTopics_RemoveTitle:["Remove Topic","Remove topic"],str_HotTopics_RemoveCategory:"Are you sure you want to remove <b>{0}<\/b> from this view?<BR><br>(Note: You can always click <b>View all topics<\/b> at the top of the page to return to the default view.)",str_HotTopics_Remove:"Remove",str_HotTopics_TouchToReadMore:"Touch to read more...",str_CRA_ProgramCheck_select:"Select",str_CRA_ProgramCheck_chooseProgram:["Choose a Branch","Choose a branch"],str_CRA_ProgramCheck_pleaseChoose:"Please choose a Branch.",str_CRA_ProgramCheck_selectProgram:"Select a Branch",str_CRA_ProgramCheck_yourProfileIsCurrentlyIn:'Your profile is currently in "',str_CRA_ProgramCheck_pleaseSelectAProgram:'", please select a Branch',str_ucTB_EditNewsDisplayPrefs:"Edit news display preferences",str_ucTB_ChooseNewsDate:["Choose a News Date","Choose a News date"],str_ucTB_ChooseNewsCollectionDate:["Choose a News Date","Choose a News date"],str_ucTB_NewsArchive:["View News Archive","View News archive"],str_ucTB_EmailDoc:["Email Document","Email document"],str_newsArchive_showAllNewsForPast:"Show all News for the past",str_newsArchive_showAllNewsForRange:"Show all News between",str_newsArchive_choose:"choose",str_newsArchive_lastXDays:"{0} days",str_newsArchive_lastWeek:"1 week",str_newsArchive_lastXWeeks:"{0} weeks",str_newsArchive_lastXMonths:"{0} months",str_newsArchive_lastYear:"1 year",str_LinkToThisDocument:"Link to this document",str_News_FilteredBy:"filtered by",str_News_ChooseRange:["Choose Range","Choose range"],str_News_EmailNews:["Email News","Email news"],str_rxTB_ChooseNewsDate:["Choose Date","Choose date"],str_rxTB_NewsArchive:["View Archive","View archive"],str_rxTB_EmailNews:["Email News","Email news"],str_References:"References",str_Notes:"Notes",str_commentary:"Commentary",str_for:"for",str_All:"All",str_and:"and",str_Purpose:"Purpose",str_Application:"Application",str_ExplanatoryNote:["Consolidated Explanatory Notes","Consolidated explanatory notes"],str_PrintAnnotations1a:["Primary Annotations","Primary annotations"],str_PrintAnnotations2a:"(included in <a href='javascript:;' style='cursor:text; text-decoration:none;' title='References listed under Primary annotations also appear in EY&apos;s print version of the Federal Income Tax Act (FITA). The list is compiled by EY tax professionals and includes only the most relevant, significant, or informative references for particular sections of the Act.'>EY's FITA<\/a>)",str_PrintAnnotations1b:"Print annotations",str_ShowOnlyPrintAnnotations:"Show only primary annotations",str_ShowAllAnnotations:"Show all annotations",str_iboxTabName_Tools:"Tools",str_iboxTabHeading_Tools:"Tools",str_iboxTabName_Solutions:"Solutions",str_iboxTabHeading_Solutions:"Solutions",str_iboxTabName_CTF:"CTF",str_iboxTabHeading_CTF:"Canadian Tax Foundation Articles",str_iboxTabName_APFF:"APFF",str_iboxTabHeading_APFF:"Congrès annuel",str_iboxTabName_Videos:"EY Video Library",str_iboxTabHeading_Videos:"EY Video Library",str_iboxTabName_WCONotes:"WCO Notes",str_iboxTabHeading_WCONotes:"WCO Explanatory Notes",str_iboxTabName_USTariff:"US Tariff",str_iboxTabHeading_USTariff:"US Tariff",str_iboxTabName_WCONotesFrench:"Notes de l'OMD",str_iboxTabHeading_WCONotesFrench:"Notes explicatives de l'OMD",str_iboxTabName_USTariffFrench:"US Tariff",str_iboxTabHeading_USTariffFrench:"US Tariff",str_iboxTabName_FutureRates:"Future Rates",str_iboxTabName_FutureRatesFrench:"Taux futurs",str_iboxTabHeading_FutureRates:"Future Rates",str_iboxTabHeading_FutureRatesFrench:"Taux futurs",str_FutureRates_ViewFullTable:"View full table",str_FutureRatesFrench_ViewFullTable:"Voir tableau au complet",str_FutureRates_for:"for",str_FutureRatesFrench_for:"pour",str_FutureRates_TableFooter:"Note: The rates are based on the enacted relevant staging for each preferential tariff listed, and the enacted MFN rates (static until further WTO negotiations).",str_FutureRatesFrench_TableFooter:"Note : Les taux sont fondés sur les échelonnements pertinents édictés pour chaque tarif de préférence énuméré, et sur les taux édictés de la N.P.F. (statiques jusqu’à d’éventuelles négociations à l’OMC).",str_YourEmail:["Your Email Address","Your email address"],str_ReceipientEmail:["Recipient's Email Address","Recipient's email address"],str_ReceipientEmailNote:"Separate multiple email addresses with commas. Limited to 3 addresses.",str_SendCopy:["Send Me a Copy","Send me a copy"],str_Subject:"Subject",str_PersonalMsg:["Personal Message","Personal message"],str_Optional:"optional",str_NoteEmailMsg:"Email recipients do not require a subscription to access the document link you are sending, which will remain active for 30 days. The email addresses you supply to use this service will not be shared with any third parties.",str_Send:"Send",str_EmailSent:"Your email has been sent to",str_TooManyEmailAddresses:"Please limit the number of recipients to 3 addresses or fewer, separated by commas.",str_BadEmailFormatting:'Please ensure that the address(es) you have entered is properly formatted (e.g. "some.one@email.com, someone.else@email.com") <br> The following address(es) are incorrect:',str_Long_Month_Name:["January","February","March","April","May","June","July","August","September","October","November","December"],str_Short_Month_Name:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],str_PostDayQualifier:"",str_general_preferences:["General Preferences","General preferences"],str_email_preferences:["Email Preferences","Email preferences"],str_sort_preferences:["Sort Preferences","Sort preferences"],str_vacation_mode:["Vacation Mode","Vacation mode"],str_clear_vacation_mode:["Clear Vacation Mode","Clear vacation mode"],str_reset_fields:["Reset Fields","Reset fields"],str_pref_submit_button:"Save",str_news_preference_start_date:["Start Date","Start date"],str_news_preference_end_date:["End Date","End date"],str_email_frequency:["Email Frequency","Email frequency"],str_email_settings:["Email Settings","Email settings"],str_advanced_options:["Advanced Options","Advanced options"],str_news_preferences:["News Preferences","News preferences"],str_show:"show all news",str_hide:"hide all news",str_set_defaults:["Set Defaults","Set defaults"],str_default:"Default",str_turn_off:"Turn off",str_pref_cancel:"Cancel",str_dragdrop_description:"Drag and drop the following headings to customize your news sort order",str_advanced_options_description:"Uncheck all news types that you do not wish to receive news for",str_online_preferences:["Online Preferences","Online preferences"],str_NewsPreferences_EmailDescription:"Expand each section to set your preferences",str_NewsPreferences_OnlineDescription:"Expand each section to set your preferences",str_NewsPreferences_VacationModeDescription:"Enter your vacation period",str_at:"at",str_NewsSearchResults_NoNewsForThisDate:"No news documents were released today.",str_NewsSearchResults_CriteriaYieldedNoHits:"No news documents were found for your search criteria.",str_SessionTracker_Label:"Session Tracker",str_SessionTracker:"Session Tracker",str_SessionTracker_Title:"Start Session Tracker?",str_SessionTracker_CreateClient:["Create Client","Create client"],str_SessionTracker_ClientName:["Client Name","Client name"],str_SessionTracker_RenameClient:["Rename Client","Rename client"],str_SessionTracker_DeleteClient:["Delete Client(s)","Delete client(s)"],str_SessionTracker_AddCommentToSession:"Add a Comment to This Session",str_SessionTracker_AddComment:["Add a Comment","Add a comment"],str_SessionTracker_ChooseClient:["Choose Client","Choose client"],str_SessionTracker_ManageClientList:["Manage Client List","Manage client list"],str_SessionTracker_GenerateReport:["Generate Report","Generate report"],str_SessionTracker_PopupScreenSize:"460x315",str_SessionTracker_PopupScreenSize_KNOTIAROUND:"460x250",str_SessionTracker_PopupScreenSize_KNOTIAFLAT:"460x275",str_SessionTracker_PopupScreenSize_EYEPFLAT:"460x298",str_SessionTracker_PopupScreenSize_EYFLAT:"460x298",str_SessionTracker_PopupScreenSize_EYFLAT:"460x300",str_SessionTracker_PopupScreenSize_TAXNAV:"460x275",str_SessionTracker_StartSession:"Start Session Tracker",str_SessionTracker_StopSession:"Stop Session Tracker",str_SessionTracker_PleaseStopTrackerMessage:'Your Session Tracker is currently on. Please hit "stop" before continuing.',str_Pinboard_HeaderTitle:"My Pinboard",str_Pinboard_PinnedItemAlreadyAdded:"You have already pinned this {0} to your Pinboard",str_Pinboard_ModalDialogTitle_EmptyPinboard:["Empty Your Pinboard","Empty your Pinboard"],str_Pinboard_ModalDialogTitle_DeleteSinglePinboardItem:["Delete This Item","Delete this item"],str_Pinboard_ModalDialogContent_EmptyPinboard:"This will remove all items from your Pinboard. Are you sure?",str_Pinboard_ModalDialogContent_DeleteSinglePinboardItem:"Are you sure you want to remove this {0} from your Pinboard?",str_Pinboard_DisplayTextPinTypeDoc:"document",str_Pinboard_DisplayTextPinTypeSearch:"search",str_Pinboard_EmptyPinboard:"Your pinboard is currently empty",str_Pinboard_Expand:["Expand Your Pinboard","Expand your Pinboard"],str_Pinboard_Collapse:["Collapse Your Pinboard","Collapse your Pinboard"],str_Pinboard_RemovePinnedItem:"Remove this ",str_Pinboard_DeleteAll:"Remove all items from your Pinboard",str_CPE_EnterDate:"Please enter the date for which you earned your CPE hours.",str_CPE_IncorrectDateFormat:"Please use the correct date format: yyyy-mm-dd",str_CPE_InvalidDate:"You have entered an invalid date.",str_CPE_EnterActivity:"Please enter the CPE activity.",str_CPE_EnterProvider:"Please enter the CPE provider.",str_CPE_EnterHour:"Please enter your CPE hours.",str_CPE_EnterOnlyStructuredOrUnstructured:"Please enter only structured or unstructured CPE hours.",str_CPE_InvalidHour:"Invalid CPE hour.",str_CPE_InvalidMinute:"Invalid CPE minute.",str_CPE_ConfirmDelete:"Are you sure you want to delete this entry?",str_CPE_CurrentlyEditingAnotherEntry:"You are currently editing another CPE entry. Please close/save that one first.",str_MyNotes:["My notes","My Notes"],str_LastModified:"Last modified on ",str_HighlightColour:["Highlight Colour: ","Highlight colour: "],str_AccessMyNotesUnderBriefcase:"Access My Notes under the Briefcase tab.",str_Notes_YouAreAboutToDeleteYourNotesAndHighlight:"Your notes and highlights will be removed from the following document(s)",str_Notes_LandingPageMessage1:"Browse your customized collection of notes and highlights using the table of contents pane on the left, or call up a particular note in an instant with the dedicated Search My Notes feature above.",str_Notes_LandingPageMessage2:"You can also edit existing notes by adding or updating text.",str_GoToThisDocumentIn:"Go to this document in",str_BelowAreTheParagraphs:"Below are the paragraphs where you put a note or highlight:",str_WarningTextChange:"Warning! The text of this paragraph has changed since you highlighted it. Consider whether this changes the context.",str_ParagraphContentHasChanged:"Paragraph content has changed",str_TextYouAppliedHasChanged:"The text that you applied your highlight and/or note to has changed.",str_TextOriginallyRead:"The text originally read as follows:",str_YourNoteIs:["Your Note Is:","Your note is:"],str_YourNote:" and your note",str_Colour_None:"None",str_Colour_Yellow:"Yellow",str_Colour_Orange:"Orange",str_Colour_Green:"Green",str_Colour_Blue:"Blue",str_Colour_Purple:"Purple",str_Colour_Red:"Red",str_PleaseSelectText:"Please select some text before adding a note.",str_RemoveHighlight:"Are you sure you want to remove this highlight",str_Notes_UnableToAddNoteAndHighlight:"Unable to add your notes and highlight.",str_Notes_UnableToAddHighlight:"Unable to add your highlight.",str_FATCA_IGA_Baseline_Prefix:"FATCA IGA Baseline ",str_FATCA_Baseline_Tooltip_Text:"FATCA baseline is based on Reciprocal Model 1A Agreement, Pre-existing TIEA or DTC issued on 11/30/2014, United Kingdom FATCA Guidance notes issued on 8/28/2014 and various IRS publications (see country page for more detail).",str_CRS_IGA_Baseline_Prefix:"CRS IGA Baseline ",str_CRS_Baseline_Tooltip_Text:"CRS Basline “CRS baseline is based on the Standard for Automatic Exchange of Financial Account Information issued by OECD on 7/21/2014",str_Downloads_DownloadList:"Download List",str_Downloads_Title:"Title",str_Downloads_DownloadLinks:"Downloads",str_Downloads_AllLanguages:"All Languages",str_Downloads_English:"English",str_Downloads_French:"French",str_Downloads_EmailPreferences:"Email Preferences",str_Downloads_EmailDescription:"Your email preferences have been updated.",str_Downloads_DownloadsEmpty:"You don't have any downloads available in your subscription.",str_InteractiveHelp_Archived:"Archived",str_InteractiveHelp_CreateMessage:"Create Message",str_InteractiveHelp_DateTime:"Date / Time",str_InteractiveHelp_Deleted:"Deleted",str_InteractiveHelp_DeleteEvent:"Delete Event",str_InteractiveHelp_DeleteMessage:"Delete Message",str_InteractiveHelp_Draft:"Draft",str_InteractiveHelp_EditEvent:"Edit Event",str_InteractiveHelp_EditMessage:"Edit Message",str_InteractiveHelp_EndDate:"End Date",str_InteractiveHelp_EndTime:"End Time",str_InteractiveHelp_English:"English",str_InteractiveHelp_Events:"Events",str_InteractiveHelp_EmptyTitle:"Title cannot be empty.",str_InteractiveHelp_EmptyStatus:"Status has not been selected.",str_InteractiveHelp_EmptyPriority:"Priority cannot be empty.",str_InteractiveHelp_EmptyStartDate:"Start date format is incorrect (dd/mm/yyyy).",str_InteractiveHelp_EmptyEndDate:"End date is format incorrect (dd/mm/yyyy).",str_InteractiveHelp_EmptyStartTime:"Start time format is incorrect (hh/mm/ss am/pm).",str_InteractiveHelp_EmptyEndTime:"End time format is incorrect (hh/mm/ss am/pm).",str_InteractiveHelp_EmptyTargetAudience:"Target audience has not been selected.",str_InteractiveHelp_EmptyMessages:'The Status cannot be "live" without at least one english and one french message.',str_InteractiveHelp_EmptyDescription:"Description cannot be empty.",str_InteractiveHelp_EventSaveRequired:"Event must be saved before adding a new message.",str_InteractiveHelp_ErrorMessage:"Error Message",str_InteractiveHelp_ErrorOnSaveEvent:"Please fix the following errors to save the event.",str_InteractiveHelp_ErrorOnSaveMessage:"Please fix the following errors to save the message.",str_InteractiveHelp_ErrorOnCreateMessage:"Please fix the following errors to create a message.",str_InteractiveHelp_French:"French",str_InteractiveHelp_InteractiveHelpEvent:"Interactive Help Event",str_InteractiveHelp_InteractiveHelpEvents:"Interactive Help Events",str_InteractiveHelp_InteractiveHelpMessage:"Interactive Help Message",str_InteractiveHelp_Live:"Live",str_InteractiveHelp_Message:"Message",str_InteractiveHelp_MessageTitle:"Title",str_InteractiveHelp_MessageVideoLink:"Video Link",str_InteractiveHelp_MessageDescription:"Description",str_InteractiveHelp_Messages:"Messages",str_InteractiveHelp_MessageList:"Message List",str_InteractiveHelp_MessageAlreadyExists:"Message Already Exists in the Selected Language.",str_InteractiveHelp_Metadata:"Metadata",str_InteractiveHelp_NewEvent:"New Event",str_InteractiveHelp_NotSet:"Not Set",str_InteractiveHelp_NoMessages:"No Messages",str_InteractiveHelp_NoOptionsAvailable:"No Options Available",str_InteractiveHelp_NoSelectedOptions:"No Selected Options",str_InteractiveHelp_Options:"Options",str_InteractiveHelp_PreviewMessage:"Preview Message",str_InteractiveHelp_Priority:"Priority",str_InteractiveHelp_ProductWide:"Product Wide",str_InteractiveHelp_RefreshEvent:"Refresh Event",str_InteractiveHelp_ReturnToEventList:"Return to Interative Help Event List",str_InteractiveHelp_SaveEvent:"Save Event",str_InteractiveHelp_SaveMessage:"Save Message",str_InteractiveHelp_SelectedOptions:"Selected Options",str_InteractiveHelp_Search:"Search",str_InteractiveHelp_Status:"Status",str_InteractiveHelp_SiteWide:"Site Wide",str_InteractiveHelp_SiteWideorProductWide:"Site Wide or Product Wide",str_InteractiveHelp_StartDate:"Start Date",str_InteractiveHelp_StartTime:"Start Time",str_InteractiveHelp_Status:"Status",str_InteractiveHelp_TargetAudience:"Target Audience",str_InteractiveHelp_Title:"Title",str_Learning:"Learning",str_Learning_more:"More",str_Learning_less:"Less",str_Learning_Year:"Year",str_Learning_Search:"Search",str_Learning_Find:"Find",str_Learning_Find_Presentation:"Find a presentation",str_Learning_Back:"Back to the top",str_Learning_View_Presentation:"View Presentation",str_Learning_Download_Presentation:"Download Presentation",str_Learning_Download_Slides:"Download Slides",str_Learning_Empty:"There are no results based on the year selected and search term.",str_Learning_Add_Media:"Add media to the webcast",str_Learning_Delete_Media_Success:"Media is deleted",str_Learning_Add_Media_Error:"Error occured in adding new media",str_Learning_Add_Media_Success:"New media is added",str_Learning_Update_Media_success:"Media is updated",str_Learning_Empty_Fields:"Empty fields",str_Learning_Empty_Webcast_Name:"Empty webcast name",str_Learning_Empty_Webcast_Date:"Empty webcast date",str_Learning_Empty_Webcast_CPE_Credit:"Empty webcast CPE credit",str_Learning_Empty_Webcast_Description:"Empty webcast description",str_Learning_Incorect_Date_Format:"Date format is incorrect",str_Learning_Update_Webcast_Success:"Webcast changes saved",str_Learning_Update_Webcast_Error:"Error occured in webcast update",str_Learning_Create_Webcast_Error:"Error occured in creating update",str_Learning_Create_Webcast_Success:"Webcast successfully added",str_Learning_Description_Note:"Description goes here",str_Learning_Media_Size_Error:"Media size is not a number",str_Learning_Media_Update:"Update the media",str_MediaSize_Or_Duration_Type_MEGABYTES:"Megabytes",str_MediaSize_Or_Duration_Type_MINUTES:"Minutes",str_Selected:"Selected: ",str_Select_Year:"Please select a year",str_Select_Month:"Please select a month",str_LearningNews_AlertID:"Alert ID",str_LearningNews_EnglishTitle:"English Title",str_LearningNews_EnglishDescription:"English Description",str_LearningNews_FrenchTitle:"French Title",str_LearningNews_FrenchDescription:"French Description",str_LearningNews_CreateTitle:"Create Draft",str_LearningNews_SaveTitle:"Save Draft",str_LearningNews_SavedTitle:"Draft Saved",str_LearningNews_SavedMessage:"The draft has been saved.",str_LearningNews_DeleteTitle:"Delete Draft",str_LearningNews_DeleteMessage:"Are you sure you want to delete the draft?",str_LearningNews_ReleaseTitle:"Release Draft",str_LearningNews_ReleaseMessage:"Are you sure you want to release the draft?",str_LearningNews_ReleasedMessage:"The draft has been released.",str_LearningNews_Preview:"Preview",str_LearningNews_ValidationTitle:"Missing Information",str_LearningNews_ValidationMessage:"Please fill in all of the form.",str_Learning_Service_Prefix:"/Services/LearningService.svc/",str_InteractiveHelp_Select_Sites:"Select the sites",str_InteractiveHelp_Select_Products:"Select the products",str_Feedback_Request:"Please complete the form below to submit a comment or question to the ~SiteName~ team.",str_Comment_Limit:"Please write your comment/question within 2000 characters.",str_Comment_Question:"Comment / Question",str_Response_requested:"Response requested",str_Required_if_request:"Required if response requested",str_HoldingBay_RegistrationApprove:["Registration Approval","Registration approval"],str_HoldingBay_RegistrationApproveButton:["Approve Registration","Approve registration"],str_HoldingBay_RegistrationApprovedMessage_:"Your registration has been approved.",str_HoldingBay_RegistrationApprovedMessage_AUSTaxExchange:"Your registration for Tax Oceania Navigator has been approved. Please [link]click here[end-link] to visit.",str_HoldingBay_RegistrationApprovedMessage_USTaxNewsInternal:"Your registration for US Tax Alerts has been approved. Please [link]click here[end-link] to activate your profile.",str_HoldingBay_RegistrationApprovedMessage_USTaxNewsExternal:"Your registration for US Tax Alerts has been approved. Please [link]click here[end-link] to activate your profile.",str_HoldingBay_RegistrationApprovedMessage_GTNUInternal:"Your registration for Global Tax News has been approved. Please [link]click here[end-link] to activate your profile.",str_HoldingBay_RegistrationApprovedMessage_GTNUExternal:"Your registration for Global Tax News has been approved. Please [link]click here[end-link] to activate your profile.",str_HoldingBay_RegistrationDecline:["Registration Decline","Registration decline"],str_HoldingBay_RegistrationDeclineButton:["Decline Registration","Decline registration"],str_HoldingBay_RegistrationDeclinedMessage_:"Your registration has been declined.",str_HoldingBay_RegistrationDeclinedMessage_AUSTaxExchange:"Your registration for Tax Oceania Navigator has been declined.",str_HoldingBay_RegistrationDeclinedMessage_USTaxNewsInternal:"Your request to be registered to receive EY’s Tax Alerts has been declined based on your company affiliation. If you believe this has been done in error, please send an email to ustaxalertshelp@ey.com with the name of your EY contact who may provide an exception on your behalf. Thank you.",str_HoldingBay_RegistrationDeclinedMessage_USTaxNewsExternal:"Your request to be registered to receive EY’s Tax Alerts has been declined based on your company affiliation. If you believe this has been done in error, please send an email to ustaxalertshelp@ey.com with the name of your EY contact who may provide an exception on your behalf. Thank you.",str_HoldingBay_RegistrationDeclinedMessage_GTNUInternal:"Your request to be registered to receive EY’s Tax Alerts has been declined based on your company affiliation. If you believe this has been done in error, please send an email to globaltaxnewsupdatehelp@ey.com with the name of your EY contact who may provide an exception on your behalf. Thank you.",str_HoldingBay_RegistrationDeclinedMessage_GTNUExternal:"Your request to be registered to receive EY’s Tax Alerts has been declined based on your company affiliation. If you believe this has been done in error, please send an email to globaltaxnewsupdatehelp@ey.com with the name of your EY contact who may provide an exception on your behalf. Thank you.",str_HoldingBay_RegistrationHistory:["History","History"],str_HoldingBay_RegistrationHistoryButton:["View Follow-up Email History","View Follow-up Email History"],str_HoldingBay_RegistrationFollowUp:["Registration Follow-up","Registration follow-up"],str_HoldingBay_RegistrationFollowUpButton:["Send Follow-up Email","Send follow-up email"],str_Profile_FirstName:"First Name",str_Profile_LastName:"Last Name",str_Profile_Password:"Password",str_Profile_Email:"Email",str_Profile_Title:"Title",str_Profile_CpaNum:"CPA Canada Number",str_Profile_CpaMemberType:"Member Type",str_Profile_CpaMemberStatus:"Member Status",str_Profile_GenerateLoginCode:"Generate Login Code",str_Profile_EnterEmailAddress:"Enter email address",str_Packages_AssignPackageTitle:"Assign User Package(s)",str_Packages_AssignPackageInstruction:"Assign package(s) by checking the appropriate box(es) below.",str_Packages_AssignPackageNote:'Note: If you\'re assigning more than package, the user can switch between assigned packages through the "Switch Package" link at the top right corner.',str_Packages_AssignPackageButton:"Assign Package(s)",str_Packages_AssignPackageOnSuccessMessage:"Package changes applied!",str_Packages_MustAssignAtLeastOne:"You must select at least one package.",str_Packages_PackageUserListReportTitle:"Package User List Report",str_Packages_PackageUserListInstructionStart:"Generate a user report by selecting a package from the drop down or you may click ",str_Packages_PackageUserListInstructionEnd:" to export users from all packages into a CSV.",str_Packages_DownloadUsersFromAllPackages:"Download users from all packages",str_Packages_SelectPackageLabel:"Please select a package:",str_Packages_NoUsersAssigned:"No user assigned to this package",str_Packages_DownloadAsCSV:"Download as CSV",str_Component_defaultTextInput:"Text Input",str_Component_defaultPasswordInput:"Password",str_Component_defaultTextArea:"Text Area",str_Component_defaultPhoneInput:"Phone Number",str_Component_placeholderPhoneInput:"Ph. #",str_Component_defaultPhoneAreaCode:"Area Code",str_Component_defaultPhoneExtension:"Ext",str_Component_errorRequired:"Required",str_Component_errorMinLengthText:"Min length is: ",str_Component_errorNotFoundText:"No results found",str_Component_errorRequestTimeout:"Fetch request took too long",str_Component_defaultCheckboxList:"Checkbox List",str_Component_defaultRadioButtonList:"Radiobutton List",str_Component_defaultFilterableSelect:"Filterable Select",str_Component_placeholderFilterableSelect:"Select...",str_Component_defaultAlertBox:"Default: This is a generic alert",str_Component_defaultContentBox:"Content Box",str_Component_defaultContentBox_inputHTML:"Can place another React/HTML component here",str_Component_defaultButton:"Button",str_Component_placeholderTable:"Filter the current page results",str_Component_errorEmailInvalid:"Invalid email address",str_Dummy:"",str_SiteName_EYTaxNavigator:"Tax Navigator",str_SiteName_EYOnlineUS:"Canadian Tax Library",str_EYTaxNavigator_Footer_Copyright:"2001-~yearEnd~, Ernst & Young Electronic Publishing Services, Inc. All rights reserved.",str_EYTaxNavigator_Footer_HelpDeskHours:"Mon-Fri, 8am-6pm ET",str_EYTaxNavigator_Footer_HelpDeskContactInfo:"1-888-352-2228 (in Toronto: 416-943-3999)",str_EYTaxNavigator_Footer_Footnote:"Tax Navigator is the for the exclusive use of EY Partners and staff only.",str_Footer_ContactUs:"Contact Us",str_Footer_ContactUsLink_TaxNav:"mailto:support@taxnavigator.ca",str_Footer_HelpDesk:"Help Desk",str_Header_SearchFetchBar_PlaceHolderInput:"Enter search query or document ID to fetch",str_MyProfile:"My Profile",str_Preferences:"Preferences",str_Logout:"Logout",str_WhatsNewQuestion:"What's New?",str_HomePageTabs_Research:"Research",str_HomePageTabs_News:"News",str_HomePageTabs_Learning:"Learning",str_HomePageTabs_Tools:"Tools",str_HomePageTabs_History:"History",str_PageNavigationTabs_Home:"Home",str_PageNavigationTabs_TaxMaterials:"Tax Materials",str_PageNavigationTabs_News:"News",str_PageNavigationTabs_Research:"Research",str_PageNavigationTabs_Tools:"Tools",str_PageNavigationTabs_Briefcase:"Briefcase",str_PageNavigationTabs_EYDiscover:"EY Discover",str_PageNavigationTabs_Learning:"Learning",str_PageNavigationTabs_Admin:"Admin",str_PageNavigationTabs_Classifier:"Classifiers",str_PageNavigationTabs_CaseFinder:"Case Finders",str_CPE_Tracker:"CPE Tracker",str_CPE_Tracker_Description:"Track the time you spend on continuing professional education (CPE) and development activities, and run a report for any time period to support your CPE requirements.",str_TaxKnowledgeForum_Description:"Tax knowledge forum is a monthly webcast featuring an overview of recent cases, legislation, and rulings.",str_TaxTechnicalUpdate_Description:"Tax technical updates are monthly webcasts on emerging tax topics, presented by senior EY tax professionals.",str_Briefcase_SavedDocuments:"Saved Documents",str_Briefcase_SavedSearches:"Saved Searches",str_Briefcase_ViewMyNotesAndHighlights:"View My Notes and Highlights",str_Briefcase_MyBriefcase:"My Briefcase",str_SearchDropdown_PreviousSearches:"Your Previous Searches in ",str_SearchDropdown_FetchSuggestions:"Fetch Suggestions for",str_SearchDropdown_DocumentSuggestions:"Document Suggestions for",str_SearchDropdown_GoToDocument:"Go to document",str_SearchDropdown_SearchFor:"Search for",str_SearchDropdown_PleaseTypeYourSearchTerm:"Please type your search term",str_SearchDropdown_NoPreviousSearchesIn:"No previous searches in",str_SearchOptionsModal_SearchTools:"Search Tools",str_SearchOptionsModal_Settings:"Settings",str_SearchOptionsModal_Help:"Help",str_SearchOptionsModal_Templates:"Templates",str_SearchOptionsModal_TopicalIndexes:"Topical Indexes",str_SearchOptionsModal_SearchSyntaxHelp:"Search Syntax Help",str_Toolbar_Tag:"Tag",str_Toolbar_CreateLink:"Create Link",str_Toolbar_Highlight:"Highlight",str_Toolbar_Pin:"Pin",str_Toolbar_UserViewCounts:"View Counts",str_Toolbar_Tooltip_Reload:"Reload the page to the default view",str_Toolbar_Tooltip_Copy:"Copy selected text with context",str_Toolbar_Tooltip_ParagraphTagging_On:"Turn Paragraph Tagging Off",str_Toolbar_Tooltip_ParagraphTagging_Off:"Turn Paragraph Tagging On",str_Toolbar_Tooltip_DownloadDocument:"Download document to your device",str_Toolbar_Tooltip_IncreaseFont:"Increase the font size",str_Toolbar_Tooltip_DecreaseFont:"Decrease the font size",str_Toolbar_Tooltip_CreateDocumentLink:"Create link to this document to share with a colleague",str_Toolbar_Tooltip_EmailDocument:"Email this document to a colleague",str_Toolbar_Tooltip_AddToBriefcase:"Save document(s) to Briefcase",str_Toolbar_Tooltip_HighlightDocument:"Add highlights to this document",str_Toolbar_Tooltip_PinThisDocument:"Pin this item to your Pinboard",str_Toolbar_Tooltip_ViewCount:"Show view counts",str_Toolbar_Tooltip_NewsPreference:"Modify your News preferences",str_Toolbar_Tooltip_ChooseNewsDate:"Compile all news articles released on selected date",str_Toolbar_Tooltip_ChooseNewsRange:"Compile previously released articles within the specified range",str_Toolbar_Tooltip_EmailNews:"Email this News item to a colleague",str_Toolbar_Tooltip_CreateBriefcaseFolder:"Create a folder in your Briefcase",str_Toolbar_Tooltip_ModifyBriefcaseFolder:"Rename the selected folder name",str_Toolbar_Tooltip_DeleteBriefcaseItems:"Delete selected Briefcase items",str_Toolbar_Tooltip_MoveBriefcaseItems:"Move or copy selected documents in your Briefcase",str_Toolbar_Tooltip_ManageBriefcaseAccess:"Manage who can access your Briefcase documents",str_Toolbar_Tooltip_RenameSavedSearch:"Rename a previously saved search",str_Toolbar_Tooltip_DeleteSavedSearch:"Delete a prevously saved search",str_Toolbar_FullScreen_Maximize:"Maximize",str_Toolbar_FullScreen_Restore:"Restore",str_Toolbar_Tooltip_FullScreen_Maximize:"Full screen mode hides the website's header to provide you with a larger document viewing experience. You can also press 'F11' in most web browsers to hide all navigation and show even more of the web page",str_Toolbar_Tooltip_FullScreen_Restore:"Restores the website's header so you can search the site, and you can navigate to other parts of the site.",str_KnowledgeAdmin:"Knowledge Admin",str_Admin_EnableCMT:"Enable CMT",str_Admin_CMT_Description:"The CMT(Content Management Tool) allows to make changes to this product.",str_Admin_ViewDocumentCounts:"View Document Counts",str_Admin_HideDocumentCounts:"Hide Document Counts",str_Admin_ViewDocumentCounts_Description:"Shows the number of users who viewed the document/node on the Table of Contents (TOC).",str_DownloadDocument:"Download Document",str_DownloadDocumentModal_Description:"Please choose your options for downloading your content",str_DownloadDocumentModal_CurrentDocument:"Current document",str_DownloadDocumentModal_CurrentDocument_Description:"Downloads the document you are currently viewing",str_DownloadDocumentModal_TOC_Description:"Downloads the selected documents on the table of contents",str_DownloadDocumentModal_SearchResultsDocuments:"Search results documents",str_DownloadDocumentModal_SearchResultsDocuments_Description:"Downloads the selected documents on the search results",str_DownloadDocumentModal_TaggedParagraphs:"Tagged Paragraphs",str_DownloadDocumentModal_TaggedParagraphs_Description:"Downloads all tagged paragraphs in the current document you are viewing",str_SearchSyntaxHelpModal_Example:"Example",str_SearchSyntaxHelpModal_FetchID:"Fetch ID",str_History_RecentlyViewedDocuments:"My Recently Viewed Documents",str_History_RecentSearches:"My Recent Searches",str_TaxSubjectFileSubmission:"Tax Subject File Submission",str_TaxSubjectFile_QuickSubmission_Outlook:"Quick submission using Outlook",str_TaxSubjectFileSubmission_Contribute_Outlook:"Contribute now using Outlook",str_TaxSubjectFileSubmission_Email_Description:"Email our team your document, and we will fill out all of the submission details for you.",str_TaxSubjectFileSubmission_Form:"Tax Subject File submission form",str_TaxSubjectFileSubmission_Form_Description:"Help us by filling out the Tax Subject File submission form.",str_TaxSubjectFileSubmission_Contribute_Form:"Contribute now using the TSF form",str_CommonLinks:"Common Links",str_QuickLinks:"Quick Links",str_OtherResources:"Other Resources",str_SignUpClientsForCTL:"Sign up clients for Canadian Tax Library",str_SignUpForCTL:"Sign up for Canadian Tax Library",str_SignUpClientsForCTLLink:"https://eycanada.sharepoint.com/sites/ConnectourclientstotheCanadianTaxLibrary/SitePages/CollabHome.aspx",str_ChangeNewPreferences:"Change my email notification preferences",str_DownloadAnEbook:"Download an eBook",str_TrainingVideosAndUserGuides:"Training Videos and User Guides",str_ProductSelectionDropdown_Briefcase_SavedDocuments:"Briefcase - Saved Documents",str_ProductSelectionDropdown_Briefcase_SavedSearches:"Briefcase - Saved Searches",str_ProductSelectionDropdown_PleaseSelectAProductToSearchIn:"Please select a product to search in",str_Nav_SkipToDocument:"Skip to Document",str_Nav_SkipToTOC:"Skip to Table of Contents",str_Nav_SkipToPinboard:"Skip to Pinboard",str_Nav_MainContent:"Skip to Main Content",str_History_NoDocumentViews:"We did not find any document views. Click on the Research tab to navigate to our content!",str_History_NoRecentSearches:"We did not find any recent searches. Click on the search bar above to get started!",str_Home_News_CommodityTax:"Your best way to keep up-to-date with the latest important developments in GST/HST, as well as provincial sales taxes, and customs and trade.",str_Home_News_TaxMatters:"TaxMatters@EY is a monthly bulletin that provides a summary of recent income tax news, case developments, publications and upcoming presentations.",str_Home_News_TaxNewsroom:"Contains the archives for Tax Bulletin, Tax News Emails and Learning with EY.",str_Home_News_TaxDevelopments:"Provides  the latest in income tax developments that may affect your quarterly or annual tax provision.",str_Home_News_GlobalDailyTaxUpdates:"Access to the Global Daily Tax Update site.",str_Home_WhatsNew_EmptyState:"Nothing new for today",str_Learning_TechnicalLearning:"Learning",str_Learning_Administrative:"Administrative",str_Learning_GlobalCEPolicy:"Global CE Policy",str_Learning_GetCECredits:"How to get CE credits",str_Learning_SubmitCECredits:"How to submit SuccessFactors Learning requests",str_Learning_LearningWithEY:"Learning with EY",str_Learning_TKF:"Tax Knowledge Forum",str_Learning_TTU:"Tax Technical Updates",str_Learning_TaxNavigatorTraining:"Tax Navigator training",str_Tools_ToolsNavigator:"Tools navigator (internal only)",str_Tools_TaxTechnologyTools:"Tax Technology Tools (internal only)",str_Tools_Calculators:"Calculators and rate cards",str_Tools_TaxRatesAndTools:"Tax rates and tools (research collection)",str_Tools_TaxRatesAtEY:"TaxRates@EY (PDF reference book)",str_Feedback_Title:"We'd love to hear from you.",str_Feedback_HowWasYourExperience:"How was your experience today?",str_Feedback_PleaseShareYourThoughts:"Please share your thoughts.",str_Feedback_ResponseRequired:"Check this box, if you want to hear back from us.",str_Feedback_Tab:"Feedback",str_Feedback_FormSubmitted:"We appreciate your valuable feedback.",str_Feedback_ThankYou:"Thank You",str_SwitchbackToOldUI:"Switchback to Old Look",str_SwitchbackToNewUI:"Switch to New Look",str_UnsupportedBrowser_Title:"Unsupported Browser",str_UnsupportedBrowser_Message:"We have detected that you are using Internet Explorer. Some functionality may not work as expected. For best viewing results, please use Chrome or Microsoft Edge.",str_SomethingWentWrong:"Something went wrong",str_SomethingWentWrongMessage:"You can browse our site or look for something specific",str_VisitOurHomepage:"Visit our homepage",str_CustomizeMySubscriptionList:"Customize My Subscription List",str_ShowCustomizedList:"Show Customized List",str_CustomizeMySubscriptionList_Description:"Select the products that you would like to see on the homepage and Tax Materials Dropdown",str_NoChanges:"No changes",str_changes:"change(s)",str_Apply:["Apply","apply"]};KnotiaKnowledge5={};glb_StateManager_RequestTimeout=495e3;KnotiaKnowledge5.StateManager=function(){this.displayProcessingTimer=0;this.documentContextHeight=navigator.userAgent.indexOf("Safari")!==-1||navigator.userAgent.indexOf("iPhone")!==-1?19:22};KnotiaKnowledge5.StateManager.prototype.updateDocumentBodyToWait=function(){this.searchManager&&this.searchManager.isDailyViewOfNews()||(this.cancelProcessingTimer(),this.displayProcessingTimer=window.setTimeout("document.k5.displayProcessing()",1500))};KnotiaKnowledge5.StateManager.prototype.displayProcessing=function(){this.updateDocumentBody('<table cellpadding=0 cellspacing=0 border=0 align=center><tr><td align=center><p><img src="Images/WaitAnimated.gif"><\/p><\/td><\/tr><\/table>');this.displayProcessingTimer=window.setTimeout("document.k5.displayProcessingFailed()",glb_StateManager_RequestTimeout)};KnotiaKnowledge5.StateManager.prototype.displayProcessingFailed=function(){this.updateDocumentBody('<table cellpadding=0 cellspacing=0 border=0 align=center><tr><td align=center><p><img src="Images/WaitAnimated.gif"><\/p><\/td><\/tr><tr><td>&nbsp;<\/td><\/tr><tr><td><fieldset>'+GetString("str_Error_WaitTimedOut")+"<\/fieldset><\/td><\/tr><\/table>")};KnotiaKnowledge5.StateManager.prototype.cancelProcessingTimer=function(n){this.displayProcessingTimer>0?(window.clearTimeout(this.displayProcessingTimer),this.displayProcessingTimer=0):n};KnotiaKnowledge5.StateManager.prototype.initializeDocumentBody=function(){var i=Globals.Utilities.getURLQueryParameter("NodeID"),t;let n=null;Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext!==1||Globals.Utilities.isUndefinedOrNull(window.currentPage)||(n=currentPage.SiteDAL.getInitialSearchInformationState());document.initWithBookDocumentID!=null?(t=document.initWithBookDocumentID.split("_"),this.documentManager.loadDocumentByBookDocumentID(this.productID,t[0],t[1])):document.initWithFetchID!=null?this.documentManager.loadDocumentByGotoString(this.productID,document.initWithFetchID):Globals.Cookies.readCookie("ShowCMTToolbar")&&i.length==0&&this.collectionType==KnotiaKnowledge5.CollectionType.Collection?document.CMT.ShowWorkbench():document.initWithSearchID!=null?(this.executeNewSearch(KnotiaKnowledge5.SearchType.NotSpecified,!1,"SavedSearchID="+document.initWithSearchID.toString()),this.searchManager.setSearchID(document.initWithSearchID)):document.initWithSearchType!=null?this.executeNewSearch(document.initWithSearchType,!1,document.initWithSearchParameters.split("|")):!Globals.Utilities.isUndefinedOrNull(n)&&n.executeSearch?callKNextStateManagerFunctionIfExists("BLL","onInitialPageLoadExecuteSearch"):document.initWithHotTopicsSubPage!=null?this.landingPageManager.getLandingPageSubPage(document.initWithHotTopicsSubPage):document.initWithSearchTemplate!=null?this.searchManager.showSearchTemplate(this.productID,document.initWithSearchTemplate,!0,document.initWithSearchParameters):document.initWithAlertID!=null?document.initAlertIDAsDocument?(Globals.Utilities.isUndefinedOrNull(document.initWithLanguageID)&&(document.initWithLanguageID=1),this.documentManager.loadAlertByID(document.initWithAlertID,document.initWithLanguageID)):this.executeNewSearch(KnotiaKnowledge5.SearchType.ChooseAlertLoadNews,!1,"AlertID="+document.initWithAlertID):document.initWithPrintAnnotations!=null?this.annotationsBoxManager.showPrintAnnotations(document.initWithPrintAnnotations):document.initWithNodeID!=null?this.documentManager.loadDocumentByNodeID(this.productID,document.initWithNodeID):document.initWithBriefcaseNodeID!=null?this.documentManager.loadDocumentFromBriefcase(document.initWithBriefcaseNodeID):this.landingPageManager&&(Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext!==1||Globals.Utilities.isUndefinedOrNull(window.currentPage)||!doesKNextStateManagerFunctionExist("BLL","initialPageLoadDefaultSearch")?this.landingPageManager.getPageBodyDefaultPage():callKNextStateManagerFunctionIfExists("BLL","initialPageLoadDefaultSearch"))};KnotiaKnowledge5.StateManager.prototype.updateDocumentBody=function(n,t){var i,u,e,r,f;this.cancelProcessingTimer();$(".tooltip").hide();$("#elAttachmentsWithHits").remove();i=this.documentManager.contextControlJqueryObject;t==null||t.toString().length==0?(i.height(0),i.hide(),i.empty()):(i.height(this.documentContextHeight),i.show(),i.html(t));u=$("#divDocumentBody");this.isInDocumentOnlyView||$("#divTOC").css("display")!="none"&&(e=$("#divTOC").height(),u.height(e-this.documentContextHeight));u.css("padding","10px");$("#divCopyright").show();r=$("#divBodyContent");f=document.createElement("div");f.innerHTML=n;r.empty();r.off();r.append(f);Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext!==1||Globals.Utilities.isUndefinedOrNull(window.currentPage)||callKNextStateManagerFunctionIfExists("BLL","onDocumentLoaded");setTimeout(function(){callStateManagerFunctionIfExists("scrollToTop")},0);this.treeviewManager&&this.treeviewManager.unMarkMarkedDocument();$("#divDocumentBody").css("height",$("#divTOC").height()-$("#divDocumentBodyContext").height()+"px");GenerateExpandableSections();callStateManagerFunctionIfExists("removeGutterForUserNotes")};KnotiaKnowledge5.StateManager.prototype.scrollToTop=function(){var n=$("#divBodyContent");n.length>0&&n.scrollTop(0).scrollLeft(0)};KnotiaKnowledge5.StateManager.prototype.removeAllChildNodes=function(n){Globals.Utilities.isUndefinedOrNull(n)||$(n).empty()};KnotiaKnowledge5.StateManager.prototype.nullIfNotDefined=function(n){return n?n:null};KnotiaKnowledge5.StateManager.prototype.getDynamicStylesheet=function(n){var t=$(".js-link-css"+n);return t[0]};KnotiaKnowledge5.StateManager.prototype.isInDocumentOnlyView=function(){return!0};KnotiaKnowledge5.StateManager.prototype.initializeCollection=function(){};KnotiaKnowledge5.StateManagerOnlineViewerOnly=function(n,t,i){this.collectionType=n;this.productID=t;this.siteStyle=i;this.displayProcessingTimer=0};KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype=new KnotiaKnowledge5.StateManager;KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype.constructor=KnotiaKnowledge5.StateManagerOnlineViewerOnly;KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype.initializeStateManager=function(n,t,i){this.navigationManager=new KnotiaKnowledge5.NavigationManager(this.documentContextHeight);this.navigationManager.initializeContentDivs(this.siteStyle);this.navigationManager.initNavigation(this.siteStyle,this.productID,n,t,i);this.collectionType==KnotiaKnowledge5.CollectionType.SavedSearches?this.landingPageManager=new KnotiaKnowledge5.LandingPageManagerSavedSearches($("#divDocumentBody")):this.collectionType==KnotiaKnowledge5.CollectionType.MyNotes&&(this.landingPageManager=new KnotiaKnowledge5.LandingPageManagerMyNotes($("#divDocumentBody")),this.briefcaseManager=new KnotiaKnowledge5.BriefcaseManager);this.documentManager=new KnotiaKnowledge5.DocumentManager($("#divDocumentBody"),$("#divDocumentBodyContext"),this.collectionType);$("#divTOC").hide();$("#divSplitterBar").hide();typeof KnotiaUserControls!="undefined"&&(typeof KnotiaUserControls.Toolbar!="undefined"&&(this.toolbar=new KnotiaUserControls.Toolbar),typeof KnotiaUserControls.SearchBar!="undefined"&&(this.searchbar=new KnotiaUserControls.SearchBar))};KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype.initializeCollection=function(){this.initializeDocumentBody()};KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype.setTsiClass=function(n,t){this.toolbar.setTsiClass(n,t)};KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype.emailNewsDocument=function(n,t){var i=new KnotiaKnowledge5.EmailDocumentManager;i.showEmailDocumentForm(n,t,null)};KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype.downloadNewsDocument=function(n,t,i,r){var f=new KnotiaKnowledge5.DocumentManager,u={alertID:n,alertTitle:t,alertNumber:i,alertDate:r};Globals.Ajax.postRequest("/Services/NewsServiceNotLoggedIn.svc/DownloadNewsDocument",u,this.downloadNewsDocument_success,this.downloadNewsDocument_error,null)};KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype.downloadNewsDocument_success=function(n){if(n=n.d,n){var i={filePath:n},t=$(createPOSTSubmitFormText("/Information/NewsExportNotLoggedIn.aspx",i));$("body").append(t);t.submit();t.remove()}};KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype.downloadNewsDocument_error=function(){};KnotiaKnowledge5.StateManagerOnlineViewerOnly.prototype.updateDocumentProductLanguage=function(n){document.ProductLanguage=n};KnotiaKnowledge5.NavigationManager=function(n){this.windowWidth=640;this.windowHeight=480;this.useDocumentContextHeight=n;this.jqueryOuterDiv=$("#divOuterDiv");this.jqueryContentWrapper=$("#divContentWrapper");this.jquerySearchBar=$("#divSearchBar");this.jqueryTOC=$("#divTOC");this.jquerySplitterBar=$("#divSplitterBar");this.jqueryDocumentBody=$("#divDocumentBody");this.jqueryDocumentBodyContext=$("#divDocumentBodyContext");this.jqueryPageHeader=$("#divPageHeader");this.jqueryWindow=$(window);document.k5nav=this};KnotiaKnowledge5.NavigationManager.prototype.initializeContentDivs=function(n,t){var s=this.getWindowSize(),i,r,u,f,e,o;this.windowWidth=parseInt(s.width,10);this.windowHeight=parseInt(s.height,10);t==null&&(t=.3);i=166;i=n=="EYO"||n=="TAXNAV"?217:164;r=!0;this.jqueryPageHeader.length===0?r=!1:this.jqueryPageHeader.is(":visible")||(r=!1);r||(i-=95);u=!0;this.jquerySearchBar.length===0?u=!1:this.jquerySearchBar.is(":visible")||(u=!1);u||(i-=n=="KNOTIA"?34:34);this.windowWidth<1014&&!callStateManagerFunctionIfExists("isInDocumentOnlyView")?(this.windowWidth=1014,this.jqueryOuterDiv.width(this.windowWidth)):this.jqueryOuterDiv.width("100%");this.windowHeight<300&&(this.windowHeight=300);f=this.windowHeight-i;e=0;this.jqueryTOC.length>0&&(e=Math.floor(this.windowWidth*t),this.jqueryTOC.css("width",e),this.jqueryTOC.height(f),this.jquerySplitterBar.height(f));o=0;this.jqueryDocumentBodyContext.height()===0?(this.jqueryDocumentBodyContext.height(0),this.jqueryDocumentBodyContext.hide()):(o=this.useDocumentContextHeight,this.jqueryDocumentBodyContext.height(this.useDocumentContextHeight),this.jqueryDocumentBodyContext.show());this.jqueryDocumentBody.height(f-o);this.jqueryContentWrapper.css("display","inline");this.jqueryContentWrapper.css("visibility","visible");this.setDocumentBodyWidth(e);glb_bIsInitializingDivs=!1;documentBodyFix4Safari()};KnotiaKnowledge5.NavigationManager.prototype.setDocumentBodyWidth=function(n){var t=this.windowWidth-n;this.jquerySplitterBar.length>0&&(t-=this.jquerySplitterBar.outerWidth(!1));Globals.Utilities.isIE()||this.jqueryContentWrapper.width(t);this.jqueryDocumentBodyContext.width(t);this.jqueryDocumentBody.width(t)};KnotiaKnowledge5.NavigationManager.prototype.initNavigation=function(n,t,i,r){if(Globals.Utilities.isIE()&&parseInt(Globals.Utilities.browserVersion(),10)==6)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(u){}callStateManagerFunctionIfExists("initializeSplitterBar");this.scrollBodyToCoords();typeof initializePage=="function"&&initializePage(!0,!0,r)};KnotiaKnowledge5.NavigationManager.prototype.getWindowSize=function(){var n=parseInt(this.jqueryWindow.width(),10),t=parseInt(this.jqueryWindow.height(),10);return{width:n,height:t}};KnotiaKnowledge5.NavigationManager.prototype.getAltDocumentBody=function(n){var t='<br /><blockquote><img src="/Knowledge/Images/CanadianTaxFoundation.png" alt="Canadian Tax Foundation" /><p>This Canadian Tax Foundation document can be accessed through your Folio Views subscription to TaxFind.<\/p><p><table><tr><td style="vertical-align:middle">';return t+='<a target="_blank" href="/Knowledge/RenderBatchFile.aspx?fetchID='+n+'"><img border="0" src="/Knowledge/Images/FolioViewsButton.png" alt="open document in Folio Views" /><\/a><\/td><td style="vertical-align:middle" class="normalTextResizable"> (Note: when prompted to Run or Save, ',t+"choose Run)<\/td><\/tr><\/table><\/p><p>If you need assistance, please contact our help desk at:<br /><br />support@knotia.ca<br />1-888-352-2228<br >Mon-Fri, 8am-6pm ET<\/p><\/blockquote>"};KnotiaKnowledge5.NavigationManager.prototype.scrollBodyToCoords=function(){window.setTimeout("document.k5nav.delayInitialScroll()",50)};KnotiaKnowledge5.NavigationManager.prototype.delayInitialScroll=function(){var n,t;try{n=document.getElementById("divPageBody");this.jqueryWindow.width()<1e3&&(n=document.body);t=parseInt(document.getElementById("yCoordHolder").value);t>0&&(n.scrollTop=t);this.captureBodyCoords()}catch(i){}};KnotiaKnowledge5.NavigationManager.prototype.captureBodyCoords=function(){try{var n=document.getElementById("divPageBody");this.jqueryWindow.width()<1e3&&(n=document.body);document.getElementById("xCoordHolder").value=n.scrollLeft.toString();document.getElementById("yCoordHolder").value=n.scrollTop.toString();window.setTimeout("document.k5nav.captureBodyCoords()",200)}catch(t){}};(typeof KnotiaKnowledge5=="undefined"||KnotiaKnowledge5===null)&&(KnotiaKnowledge5={});KnotiaKnowledge5.CollectionType={Collection:1,SearchAll:2,Briefcase:3,News:4,SavedSearches:5,MyNotes:6};KnotiaKnowledge5.PageType={Document:10,SearchResults:20,Other:999};KnotiaKnowledge5.SearchType={Simple:1,Advanced:2,SearchAll:3,Rulings:4,TaxSubjectFile:5,ProvincialCase:6,TaxPrecedentLetter:7,Case:8,Annotations:9,SearchBriefcase:10,BrowseBriefcase:11,MostEmailed:14,Commentary:18,ITATopicalIndex:19,NewsSearch:20,NewsSearchMostRecentDate:21,ChooseDateNews:22,SimpleNews:23,AdvancedNews:24,ChooseAlertLoadNews:25,NewsSearchPastNDays:26,CaseCommentaryTopicalIndex:27,RulingReviewTopicalIndex:28,ITACommentaryTopicalIndex:29,ETATopicalIndex:30,ETACommentaryTopicalIndex:31,NewsSearchDateRange:32,TaxRulesTopicalIndex:33,T1TopicalIndex:34,PurposeNotesTopicalIndex:35,HeuristicAnswerLibrary:36,SearchMyNotes:37,WealthAndEstatePlanning:38,TEXDocumentType:39,TEXMarketSegmentType:40,TEXDocumentTopic:41,TEXCountry:42,TEXTopicalIndex:43,TEXRevenueFocusTopicalIndex:44,TEXTaxPrecendentsTopicalIndex:45,TaxRatesAndTools:46,EnableFilterSearchByDocDate:47,EYNotesAndAnnotationsTool:48,NewsroomArchive:49,NotSpecified:0};KnotiaKnowledge5.TopicalIndexType={IncomeTax:1,TaxKnowledgeLibrary:2,CaseCommentary:3,RulingsReview:4,CaseCommentaryFrench:5,RulingsReviewFrench:6,Excise:7,ExciseCommentary:8,TaxRules:9,T1:10,PurposeNotes:11,TaxExchange:12,TaxExchangeRevenueFocus:13,TaxExchangeTaxPrecedent:14,NotSpecified:0};KnotiaKnowledge5.PinnedItemType={NOT_SET:0,Document:1,Search:2,Notes:3};NodeDataType={Unspecified:0,SearchResults:1,ViewCounts:2};KnotiaKnowledge5.AutomaticEmailNewsType={Disabled:0,PublishNewByDefaultUpdatesOnRequest:1,PublishAllByDefault:2,PublishAllOnRequest:3};KnotiaKnowledge5.DocumentManager=function(n,t,i,r){this.controlJqueryObject=n;this.contextControlJqueryObject=t;this.collectionType=i;this.productID=r;this.bookID;this.documentID;this.fetchID;this.isBilingual;this.stylesheet;this.pageHTML;this.documentFooter;this.tocContext=[];this.footnotes={};this.resolvedLinks={};this.purposeNoteLinks={};this.canEditDocument;this.isMouseDown=!1;this.mouseDownParagraphID="";this.overrideServerIsSearchDeclare=!1;this.tryNewsOnFailure=!1;this.previousDocumentBookID;this.previousDocumentID;this.previousDocumentTitle;this.nextDocumentBookID;this.nextDocumentID;this.nextDocumentTitle;this.documentHitNumber=-1;this.specifiedHitParagraphs=[];this.specialJumpToInformation;this.extraMetadata={};this.documentDate;this.alertExtraMetadata={};this.isTaggingEnabled=!1;this.taggedRecordsList="";this.suppressScrollOfInlineDocument=!1;this.tryFetchesIfAlertFails=[];this.suppressAutoScrollToHitHighlight=!1;this.SearchPreferenceCookieName="ElasticsearchSearchPreferenceCookie";document.k5doc=this};KnotiaKnowledge5.DocumentManager.prototype.loadDocumentByBookDocumentID=function(n,t,i,r){if(this.productID=n,typeof t!="undefined"&&t!==null&&parseInt(t,10)===999)return this.loadAlertByID(i,Globals.Utilities.getCurrentSiteLanguage()),!1;callStateManagerFunctionIfExists("saveHistoryPoint","document.k5doc.loadDocumentByBookDocumentID",arguments);var u;r!=null?u=r:(u=this.processLoadedDocument,this.startProcessingImage());useElasticsearch()?Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentByBookDocumentIDFromElastic",{iProductID:n,iBookID:t,iDocumentID:i},u,null,"KnotiaKnowledge5.DocumentManager.loadDocumentByBookDocumentID",this):Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentByBookDocumentID",{iProductID:n,iBookID:t,iDocumentID:i},u,null,"KnotiaKnowledge5.DocumentManager.loadDocumentByBookDocumentID",this)};KnotiaKnowledge5.DocumentManager.prototype.loadDocumentByNodeID=function(n,t,i,r,u){var f,o,s,h,e;this.productID=n;f=[];f[0]=t;o=!1;r&&(o=!0);callStateManagerFunctionIfExists("saveHistoryPoint","document.k5doc.loadDocumentByNodeID",arguments);this.startProcessingImage();o?(s="/Services/NewsService.svc/GetKnotiaDocumentByNewsletterTreeviewNodeID",h={NodeID:t,Language:Globals.Utilities.getCurrentSiteLanguage(),DoForceNonInline:u},Globals.Ajax.postRequest(s,h,this.processLoadedDocuments,null,null,this)):i?(e=callStateManagerFunctionIfExists("getCurrentSearchTypeAndParameters"),e.searchType==KnotiaKnowledge5.SearchType.SearchMyNotes?this.loadDocumentFromBriefcase(t):this.loadDocumentsByNodeIDsInSearch(n,f,e.searchType,e.parameters)):useElasticsearch(t)?Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentsByNodeIDsFromElastic",{iProductID:n,nodeIDList:f},this.processLoadedDocuments,null,"KnotiaKnowledge5.DocumentManager.loadDocumentByNodeID",this):Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentsByNodeIDs",{iProductID:n,nodeIDList:f},this.processLoadedDocuments,null,"KnotiaKnowledge5.DocumentManager.loadDocumentByNodeID",this)};KnotiaKnowledge5.DocumentManager.prototype.loadDocumentByGotoString=function(n,t,i,r,u,f,e){var o,s,h,c;$(".ui-dialog-content").dialog("close");(Globals.Utilities.isUndefinedOrNull(n)||n.length===0)&&(n=0);(Globals.Utilities.isUndefinedOrNull(i)||i.length===0)&&(i=0);(Globals.Utilities.isUndefinedOrNull(f)||f.length===0)&&(f=0);e&&document.KnotiaInsightsTracker.SaveClickedItemDetail("FetchBox",t);this.tryNewsOnFailure=u;o=!0;callStateManagerFunctionIfExists("isInDocumentOnlyView")?o=!1:this.collectionType==KnotiaKnowledge5.CollectionType.Briefcase||this.collectionType==KnotiaKnowledge5.CollectionType.News?o=!0:r==null&&(o=!1,s=!0,document.getElementById("divSearchBar")==null?s=!1:document.getElementById("divSearchBar").style.display=="none"&&(s=!1),i>0&&(document.ProductBooks==null||document.ProductBooks[i]==null)?o=!0:s||Globals.Cookies.readCookie("ShowCMTToolbar")==!0||(o=!0));this.fetchID=t;o?(h="/Knowledge/Viewer.aspx?ProductID="+n.toString()+"&FetchID="+encodeURIComponent(t)+"&BookID="+i.toString(),r!=null&&(h=h+"&Key="+r),window.open(h,"viewerWindow","width=800,height=600,toolbars,statusbar,resizable,scrollbars")):(callStateManagerFunctionIfExists("saveHistoryPoint","document.k5doc.loadDocumentByGotoString",arguments),this.productID=n,r==null?callStateManagerFunctionIfExists("isInSearch")?(this.overrideServerIsSearchDeclare=!0,c=callStateManagerFunctionIfExists("getCurrentSearchTypeAndParameters"),this.loadDocumentByGotoStringInSearch(n,t,i,c.searchType,c.parameters)):useElasticsearch()?Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentByGotoStringFromElastic",{iProductID:n,sGotoString:t,iBookID:i,fromBookID:f},this.processLoadedDocument,null,null,this):Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentByGotoString",{iProductID:n,sGotoString:t,iBookID:i,fromBookID:f},this.processLoadedDocument,null,null,this):useElasticsearch()?Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetSpecialDocumentByGotoStringFromElastic",{iProductID:n,sGotoString:t,sKeyForBypassingProductCheck:r},this.processLoadedDocument,null,null,this):Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetSpecialDocumentByGotoString",{iProductID:n,sGotoString:t,sKeyForBypassingProductCheck:r},this.processLoadedDocument,null,null,this))};KnotiaKnowledge5.DocumentManager.prototype.loadDocumentFromSearch=function(n,t,i,r,u,f,e,o,s,h,c){var w=this.collectionType==KnotiaKnowledge5.CollectionType.News,l,a,v,y,p;if(this.specifiedHitParagraphs=[],this.documentHitNumber=e==null?1:e,this.suppressScrollOfInlineDocument=c,!Globals.Utilities.isUndefinedOrNull(o)&&!Globals.Utilities.isUndefinedOrNull(o.Details)&&(l=o.Details,l.indexOf("ApplyRowNumber")>0))for(this.documentHitNumber=0;l.length>0;)a=l.indexOf("ApplyRowNumber"),a>0?(a+=16,v=l.indexOf(")",a),y=parseInt(l.substring(a,v),10),y==f&&(this.documentHitNumber=this.specifiedHitParagraphs.length),Globals.Utilities.arrayPush(this.specifiedHitParagraphs,y),l=l.substring(v)):l="";this.productID=n;callStateManagerFunctionIfExists("isInDocumentOnlyView")||callStateManagerFunctionIfExists("saveHistoryPoint","document.k5doc.loadDocumentFromSearch",arguments,s,h);w?(p={AlertID:i,SearchParameters:u,Language:Globals.Utilities.getCurrentSiteLanguage()},Globals.Ajax.postRequest("/Services/NewsService.svc/GetAlertFromSearch",p,this.processLoadedDocuments,null,null,this)):(this.startProcessingImage(),useElasticsearch()?Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentFromSearchFromElastic",{iProductID:n,iBookID:t,iDocumentID:i,objSearchType:r,sSearchParameters:u},this.processLoadedDocument,null,null,this):Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentFromSearch",{iProductID:n,iBookID:t,iDocumentID:i,objSearchType:r,sSearchParameters:u},this.processLoadedDocument,null,null,this))};KnotiaKnowledge5.DocumentManager.prototype.loadDocumentByGotoStringInSearch=function(n,t,i,r,u){useElasticsearch()?Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentByGotoStringInSearchFromElastic",{iProductID:n,sGotoString:t,iBookID:i,fromBookID:0,objSearchType:r,sSearchParameters:u},this.processLoadedDocument,null,null,this):Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentByGotoStringInSearch",{iProductID:n,sGotoString:t,iBookID:i,fromBookID:0,objSearchType:r,sSearchParameters:u},this.processLoadedDocument,null,null,this)};KnotiaKnowledge5.DocumentManager.prototype.loadDocumentsByNodeIDsInSearch=function(n,t,i,r){useElasticsearch()?Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentsByNodeIDsInSearchFromElastic",{iProductID:n,nodeIDList:t,objSearchType:i,sSearchParameters:r},this.processLoadedDocuments,null,null,this):Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentsByNodeIDsInSearch",{iProductID:n,nodeIDList:t,objSearchType:i,sSearchParameters:r},this.processLoadedDocuments,null,null,this)};KnotiaKnowledge5.DocumentManager.prototype.loadDocumentFromBriefcase=function(n){callStateManagerFunctionIfExists("isInDocumentOnlyView")||callStateManagerFunctionIfExists("saveHistoryPoint","document.k5doc.loadDocumentFromBriefcase",arguments);this.startProcessingImage();callStateManagerFunctionIfExists("setActiveBriefcaseTreeviewDocumentNodeID",n);useElasticsearch()?Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentFromBriefcaseFromElastic",{nodeID:n},this.processLoadedDocument,null,null,this):Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDocumentFromBriefcase",{nodeID:n},this.processLoadedDocument,null,null,this)};KnotiaKnowledge5.DocumentManager.prototype.startProcessingImage=function(){callStateManagerFunctionIfExists("updateDocumentBodyToWait")};KnotiaKnowledge5.DocumentManager.prototype.processLoadedDocument=function(n){var t,r,i,u,e,o,f,s;if(n.d&&(n=n.d),n!=null){n.ProductID>0&&this.productID>0&&n.ProductID!=this.productID&&n.ErrorCode===0&&window.open("Viewer.aspx?ProductID="+n.ProductID.toString()+"&FetchID="+escape(n.FetchID));typeof Glb_IGAA_DocumentCountryID!="undefined"&&(Glb_IGAA_DocumentCountryID=n.CountryID);t=n.IsSearchDocument;try{this.overrideServerIsSearchDeclare&&(this.overrideServerIsSearchDeclare=!1,t=!1)}catch(h){t=!1}if(r=!0,typeof glb_SiteType!="undefined"&&glb_SiteType==Globals.SiteType.GWTR&&(r=!1),n.ErrorCode!==0){if(callStateManagerFunctionIfExists("checkLeftHandTocFreshness",n.WCFServerProductFreshness),this.tryNewsOnFailure){this.tryNewsOnFailure=!1;this.loadOldNewsDocument();return}if(n.ErrorCode==-6){i=null;t&&(i=callStateManagerFunctionIfExists("getCurrentSearchTypeAndParameters"));i!=null?this.loadSecureDocument(n.ProductID,n.BookID,n.DocumentID,i.searchType,i.parameters):this.loadSecureDocument(n.ProductID,n.BookID,n.DocumentID,0,"");return}if(n.ErrorCode==-4){if(callStateManagerFunctionIfExists("isInDocumentOnlyView")){u=[];u[0]=GetString("str_CommonErrorTitle");e="<p class=medium>"+GetString("str_docDeleted")+"<\/p>";this.displayLoadedDocument(0,0,0,!1,"",e,"","",0,"","",u,"",null,null,null,0,0,"",0,0,"","",!0,1,null,null);return}o=n.PageHTML.substring(9);callStateManagerFunctionIfExists("processFetchAssistanceRequestInterface",o);return}if((n.ErrorCode==-2||n.ErrorCode==-8)&&r){f="/Information/Bing.aspx?ProductID="+n.ProductID.toString();n.FetchID!=null&&n.FetchID.length>0&&(f+="&FetchID="+encodeURIComponent(n.FetchID));s=window.open(f);try{s.focus()}catch(h){}return}}callStateManagerFunctionIfExists("setUserHighlightingPermitted",n.ProductSupportsUserNotes);document.cookie="CurrentProductID="+n.ProductID.toString();this.displayLoadedDocument(n.ProductID,n.BookID,n.DocumentID,t,n.Stylesheet,n.PageHTML,n.DocumentLanguageFlipLink,n.DocumentFooter,n.JumpToParagraphID,n.JumpToFetchID,n.TOCContext,n.TOCContextDescription,n.FetchID,n.Footnotes,n.ResolvedLinks,n.PurposeNotesForLinks,n.PreviousDocumentBookID,n.PreviousDocumentID,n.PreviousDocumentTitle,n.NextDocumentBookID,n.NextDocumentID,n.NextDocumentTitle,n.EditLinks,n.DoForceLoadNonInline,n.ProductLanguage,n.ExtraMetadata,n.DocumentDate,n.AlertExtraMetadata)}};KnotiaKnowledge5.DocumentManager.prototype.processLoadedDocuments=function(n){if(n!=null){if(n.d&&(n=n.d),n.ErrorCode!==0&&this.tryFetchesIfAlertFails.length>0){var t=this.tryFetchesIfAlertFails[0],i=this.tryFetchesIfAlertFails[1];this.tryFetchesIfAlertFails=this.tryFetchesIfAlertFails.slice(2);this.loadDocumentByGotoString(t,i);return}$.isArray(n)?this.processLoadedDocument(n[0]):this.processLoadedDocument(n)}};KnotiaKnowledge5.DocumentManager.prototype.createFetchLink=function(n,t,i,r){var f,h,i,e,s,o,c;if(this.purposeNoteLinks[i]){var u=this.purposeNoteLinks[i],l=new RegExp("<\/p>","gi"),a=new RegExp("<[^>]*>","g");u=u.replace(l,"\n\n");u=u.replace(a,"");u=$.trim(u);n.title=u;$(n).tooltip()}if(parseInt(t,10)===0&&this.resolvedLinks&&(f=this.resolvedLinks[i],f!=null&&(f.indexOf(" ")>0?(h=f.split(" ")[0],i=f.substring(h.length).trim(),t=parseInt(h,10)):t=parseInt(f,10))),e=i.replace(/'/g,"\\'"),s=!0,document.getElementById("divSearchBar")==null?s=!1:document.getElementById("divSearchBar").style.display=="none"&&(s=!1),r=r?"true":"false",t>0&&(document.ProductBooks==null||document.ProductBooks[t]==null))o="javascript:document.k5doc.loadDocumentByGotoString(0, '"+e+"', "+t.toString()+", null, "+r+")",n.href=o;else if(s){c=this.bookID==null?"null":this.bookID.toString();n.href="javascript:document.k5doc.loadDocumentByGotoString("+this.productID.toString()+", '"+e+"', "+t.toString()+", null, "+r+", "+c+")";try{n.addEventListener("contextmenu",function(n){document.k5doc.displayContextMenu(e);n.preventDefault()});n.removeEventListener("mouseover")}catch(v){}$(n).removeAttr("target")}else o="javascript:document.k5doc.loadDocumentByGotoString("+this.productID.toString()+", '"+e+"', "+t.toString()+", null, "+r+")",n.href=o};KnotiaKnowledge5.DocumentManager.prototype.displayLoadedDocument=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et){var ri,ni,ui,fi,ei,vt,kt,di,dt,gi,pr,oi,si,nr,tr,ir,rr,ur,fr,ti,hi,gt,ht,er,ct,ci,yt,li,ii,or,wr,ai,bt,sr,lt,hr,vi,br,cr,pt,yi,at,lr,pi;this.productID=n;this.bookID=t;this.documentID=i;this.fetchID=a;this.isBilingual=!1;this.stylesheet=u;this.pageHTML=f;this.documentFooter=o;this.tocContext=l;this.canEditDocument=!1;this.previousDocumentBookID=w;this.previousDocumentID=b;this.previousDocumentTitle=k;this.nextDocumentBookID=d;this.nextDocumentID=g;this.nextDocumentTitle=nt;this.documentDate=ft;Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext!==1||Globals.Utilities.isUndefinedOrNull(window.currentPage)||callKNextStateManagerFunctionIfExists("BLL","clearDocumentState");n>0&&(this.footnotes=Globals.Json.translateWCFHTToJSHT(v),this.resolvedLinks=Globals.Json.translateWCFHTToJSHT(y),this.purposeNoteLinks=Globals.Json.translateWCFHTToJSHT(p));ut!=null&&(this.extraMetadata=Globals.Json.translateWCFHTToJSHT(ut));et!=null&&(this.alertExtraMetadata=Globals.Json.translateWCFHTToJSHT(et));rt!=null&&(this.productLanguage=rt);l==null&&c==null&&(l=[],c=[]);ri=!1;l[0]=="Canadian Tax Foundation Materials"&&n==1189&&(f=getAltDocumentBody(this.fetchID),ri=!0);var wi=this.collectionType==KnotiaKnowledge5.CollectionType.News,bi=$("#documentBodyForAlert_"+this.documentID.toString()),wt=!it&&bi.length>0,ot=f,ki="";try{$(ot).each(function(){var n=$(this);n.attr("id")=="doNotPrintLinksAtDocumentTop"&&(ki+="<span style='white-space:nowrap;'>"+n.html()+"<\/span>")})}catch(kr){}var st="<div id='doNotPrintLinksAtDocumentTop' class='showScreenHidePrint js--keep-this-one'>"+ki;if(n==3&&(st+="<span id='statusMessageITORS' class='showStatusMessageITORS'>Please note that EY's International Tax Online Reference Service (ITORS) is no longer being updated. The tool was last updated as of Q4 2020(31 December 2020).<\/span>"),wi){if(this.extraMetadata.AlertTitle&&this.extraMetadata.AlertTitle&&this.extraMetadata.AlertTitle?(ni=this.extraMetadata.AlertTitle.replace(/'/g,"\\'").replace(/"/g,"&#x22;"),ui=this.extraMetadata.AlertNumber,fi=this.extraMetadata.AlertDate):l.length>0&&(ni=l[l.length-1].replace(/'/g,"\\'").replace(/"/g,"&#x22;")),ei="javascript:document.k5doc.downloadNewsDocument("+this.documentID.toString()+", '"+ni+"', '"+ui+"', '"+fi+"')",document.k5doc.extraMetadata.IsInternalOnlyContent=="true"&&document.k5doc.extraMetadata.IsExternalAndInternalContent!="true")vt=null;else{var ar=this.extraMetadata.TwitterLink?", '"+this.extraMetadata.TwitterLink+"'":", null",vr=this.extraMetadata.LinkedInLink?", '"+this.extraMetadata.LinkedInLink+"'":", null",yr=this.extraMetadata.FacebookLink?", '"+this.extraMetadata.FacebookLink+"'":", null";vt="javascript:document.k5doc.emailNewsDocument(false, "+this.documentID.toString()+", '"+ni+"', '"+ui+"', '"+fi+"'"+ar+vr+yr+")"}kt=wt?"document.k5doc.printInlineNewsDocument("+this.documentID+");":"callStateManagerFunctionIfExists('doPrint', 0);";pr="";Globals.UI.isSiteThemeEnabled()?((wt||callStateManagerFunctionIfExists("useBucketTreeview"))&&(oi=$("#divDownloadButtonFormats").length>0,si=vt!=null,typeof glb_SiteType!="undefined"&&glb_SiteType==Globals.SiteType.GWTR&&(oi=!1,si=!1),st+='<span style=\'white-space:nowrap;\'><a href="javascript:;" onclick="'+kt+"\"><img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Print-Small.png' border='0' class='js--img--pnghover'/><\/a>&nbsp;<a href=\"javascript:;\" onclick=\""+kt+"\" style='vertical-align:super;'>"+GetString("str_Print_PrintThisDocument")+"<\/a><\/span>",oi&&(st+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'><a href=\""+ei+"\"><img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Download.png' border='0' class='js--img--pnghover' /><\/a>&nbsp;<a href=\""+ei+"\" style='vertical-align:super;'>Download this document<\/a><\/span>"),si&&(nr=$("#divSocialMediaButtonFormats").length>0,tr=nr?"Share this document":GetString("str_Email_EmailThisDocument"),st+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'><a href=\""+vt+"\"><img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Email-Small.png' border='0' class='js--img--pnghover' /><\/a>&nbsp;<a href=\""+vt+"\" style='vertical-align:super;'>"+tr+"<\/a><\/span>"),callStateManagerFunctionIfExists("useBucketTreeview")&&(gt=tt.length>0,ht=this.getNewsDocumentLinkThisDocumentLinkInformation(gt),ht.link!=null&&(st+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'>",ht.link2==null?(st+="<a href='"+ht.link.target+"' class='js-a-doNotChangeHref' target='_blank'><img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Link-Small.png' border='0' class='js--img--pnghover' /><\/a>&nbsp;<a href='"+ht.link.target+"' class='js-a-doNotChangeHref' style='vertical-align:super;' target='_blank'>"+ht.link.text+"<\/a>",ht.link.description!=null&&ht.link.description.length>0&&(st+="<span style='vertical-align:super;'> ("+ht.link.description+")<\/span>"),st+="<\/span>"):(st+="<img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Link-Small.png' border='0' class='js--img--pnghover' />&nbsp;<span style='vertical-align:super;'>"+ht.link.text+": <a href='"+ht.link.target+"' class='js-a-doNotChangeHref' target='_blank'>"+ht.link.description+"<\/a> | <a href='"+ht.link2.target+"' class='js-a-doNotChangeHref' target='_blank'>"+ht.link2.description+"<\/a><\/span>",st+="<\/span>")))),e.length>0&&(di="<img src='/UserControls/Toolbar/Images/"+window.glb_SiteStyle+"/Icons/Flat-Link-Small.png' border='0' class='js--img--pnghover' />",dt=e.indexOf(">"),gi=e.substr(0,dt+1)+di+"<\/a>&nbsp;",e=gi+e.substr(0,dt)+" style='vertical-align:super;'"+e.substr(dt),st+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'>"+e+"<\/span>"),tt.length>0&&(dt=tt.indexOf(">",tt.indexOf(">")),st+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'>"+tt+"<\/span>")):(st='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\'white-space:nowrap;\'><a href="javascript:;" onclick="'+kt+"\"><img src='/Images/Icons/Common/Icon_Print.gif' border='0' /><\/a>&nbsp;<a href=\"javascript:;\" onclick=\""+kt+"\" style='vertical-align:super;'>"+GetString("str_Print_PrintThisDocument")+"<\/a><\/span>",st+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'><a href=\""+vt+"\"><img src='/UserControls/Toolbar/Images/KNOTIAROUND/Icons/Envelope.gif' border='0' /><\/a>&nbsp;<a href=\""+vt+"\" style='vertical-align:super;'>"+GetString("str_Email_EmailThisDocument")+"<\/a><\/span>",e.length>0&&(ir=new RegExp("<a([^>]*)>[^<]*<\/a>"),rr=e.replace(ir,"<a$1><img src='/UserControls/Toolbar/Images/KNOTIA/Icons/Link.gif' border='0' class='js--img--pnghover' /><\/a>&nbsp;"),e=e.replace(/>/," style='vertical-align:super;'>"),e=e.replace(/.<\/a>/,"<\/a>"),st+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'>"+rr+e+"<\/span>"),tt.length>0&&(st+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='white-space:nowrap;'>"+tt+"<\/span>"));ot=st+"<\/div>"+ot}else ur=!0,this.collectionType==KnotiaKnowledge5.CollectionType.Collection&&(this.productID==27||this.productID==29||this.productID==28||this.productID==30)&&ur?(fr=getResearchNewslinksAtTopOfDocument(l,ot,tt),ot=fr):(this.productID===645&&(ot=ot.replace(/<P CLASS='Left10[a-z][a-z]'><A HREF=.*?<\/A><\/P>/g,"")),this.productID===645&&this.fetchID==="ITA"&&(ot=ot.replace(/For more details on each of these proposed amendments, see the.*?table./,"")),this.collectionType==KnotiaKnowledge5.CollectionType.MyNotes&&this.productID!=0&&(ti=callStateManagerFunctionIfExists("getProductNameForMyNotesDocument"),ti==null&&(ti="",window.setTimeOut(function(){document.k5doc.delayedDisplayProductName()},500)),st+="<p class='small' style='white-space:nowrap;'><a href='Home.aspx?ProductID="+this.productID.toString()+"&FetchID="+encodeURIComponent(this.fetchID)+"'><img src='/UserControls/Toolbar/Images/KNOTIAFLAT/Icons/Flat-Link-Small.png' border=0 /><\/a>&nbsp;&nbsp;<a style='vertical-align:super;' href='Home.aspx?ProductID="+this.productID.toString()+"&FetchID="+encodeURIComponent(this.fetchID)+"'>"+GetString("str_GoToThisDocumentIn")+" <span id='productNameForLinkToCollection'>"+ti+"<\/span><\/a><\/p>"),e.length>0&&this.productID!==645&&(st+="<p class='small' style='white-space:nowrap;'>"+e+"<\/p>"),tt.length>0&&(st+="<p class='small' style='white-space:nowrap;'>"+tt.replace(/&nbsp;<a /i,"&nbsp;<a style='vertical-align:super;' ")+"<\/p>"),st+="<\/div>",ot=st+ot);if(o!=null&&(ot=ot+"<p class=medium>&nbsp;<\/p><p class=medium>"+o+"<\/p>"),hi=!1,this.collectionType==KnotiaKnowledge5.CollectionType.News?(gt=tt.length>0,ht=this.getNewsDocumentLinkThisDocumentLinkInformation(gt),ht.doShowFIDOText&&(er=new RegExp("<p","i"),ot=ot.replace(er,"<p class='small noPadding' style='margin-top:0px;'>FOR INTERNAL DISTRIBUTION ONLY<\/p><p")),callStateManagerFunctionIfExists("useBucketTreeview")||(ot+="<p class='medium'><a href=\""+ht.link.target+"\" class='js-a-doNotChangeHref' style=\"text-decoration:none;\" target='_blank'>"+ht.link.text+"<\/a>"+ht.link.description+"<\/span><\/p>"),document.siteConfiguration.isTabularNewsResultsLists&&(ot="<div class='newsDocumentBody'>"+ot+"<\/div>")):callStateManagerFunctionIfExists("isInDocumentOnlyView")?ot="<p class='medium' align='right' id='pLinkToNavigation'><a href='/Knowledge/Home.aspx?ProductID="+this.productID.toString()+"&FetchID="+encodeURIComponent(this.fetchID)+"'>Show product navigation<\/a><\/p>"+ot:(this.fetchID!=null&&(ot+="<p class=medium>&nbsp;<\/p><p class=medium><span class=graymedium>"+GetString("str_DocumentID")+' <a href="/Knowledge/Home.aspx?ProductID='+this.productID.toString()+"&FetchID="+encodeURIComponent(this.fetchID)+'"  style="text-decoration:none;" class=graymedium>'+this.fetchID+"<\/a><\/span><\/p>"),hi=!0),ct="",ci=l.length,Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext!==1||Globals.Utilities.isUndefinedOrNull(window.currentPage)){if(l!=null&&l.length>0){for(lt=0;lt<ci;lt++)ct=ct+l[lt]+" &gt;&gt; ";ct=ct.substring(0,ct.length-10);ct="<div class='document-title-wrapper'><span title=\""+ct+'" class="DocumentContext">'+ct+"<\/span><\/div>"}}else if(l!=null&&l.length>0){for(yt="",lt=0;lt<ci;lt++)ct=ct+l[lt]+' <i class="fal fa-angle-double-right"><\/i> ',yt=yt+l[lt]+" &gt;&gt; ";ct=ct.substring(0,ct.length-42);yt=yt.substring(0,yt.length-10);ct="<div class='document-title-wrapper'><span title=\""+yt+'" class="DocumentContext">'+ct+"<\/span><\/div>"}if(u&&!this.elementExists('link[href="'+u+'"]')&&(li=callStateManagerFunctionIfExists("getDynamicStylesheet","DocumentStylesheet"),u.length>0&&u!=li.href.toString()&&(li.href=u)),wt||this.contextControlJqueryObject.show(),callStateManagerFunctionIfExists("setDocumentPageType"),wt?this.displayDocumentAsInlineSearchResult(bi,ot,c):(callStateManagerFunctionIfExists("updateDocumentBody",ot,ct),ii=!0,document.getElementById("divSearchBar")==null?ii=!1:document.getElementById("divSearchBar").style.display=="none"&&(ii=!1),ii||this.removeAnnotationsLinks()),$("p#doNotPrintLinksAtDocumentTop").remove(),wi&&(or=$("#divBodyContent").find("a[href*='/news/']"),or.each(function(){var n,t,i,r;$(this).hasClass("js-a-doNotChangeHref")||(n=$(this).attr("href"),n!=null&&(n=n.split("/"),n[2].toLowerCase().indexOf(".ey.com")>=0&&(n[2].toLowerCase().indexOf("taxnews.ey.com")>=0&&(glb_SiteType==2||glb_SiteType==6||glb_SiteType==14||glb_SiteType==18)||(t=n[n.length-1],i=t.indexOf("-",t.indexOf("-")+1),i!=-1&&(t=t.substring(0,i)),r="",r=Globals.Utilities.isUndefinedOrNull(document.initAlertIsExternal)?"doNewsSearchByNumber":"doNewsSearchByExternalNumber",$(this).attr("href","#"),$(this).attr("onClick","javascript:callStateManagerFunctionIfExists('"+r+"', '"+t+"');"),$(this).removeAttr("target")))))})),$("#nameOfJavascriptFunctionToExecuteAfterDocumentLoad").length>0?window.setTimeout($("#nameOfJavascriptFunctionToExecuteAfterDocumentLoad").text(),1):$(".oneOfManyJavascriptFunctionsToExecuteAfterDocumentLoad").length>0&&(wr=$("a[name=para_"+s.toString()+"]"),ai=$("#divBodyContent").find("a[name=para_"+s.toString()+"]").offset().top,$(".oneOfManyJavascriptFunctionsToExecuteAfterDocumentLoad").each(function(){if($(this).offset().top>=ai){var n=$(this).text();window.setTimeout(n,1);ai=999999999;$(this).after("<p>The link was opened in a new browser tab or window (unless it was blocked by a popup blocker).<\/p>")}})),ri||this.createHistoryBlocks(),this.collectionType==KnotiaKnowledge5.CollectionType.Briefcase||this.collectionType==KnotiaKnowledge5.CollectionType.MyNotes)callStateManagerFunctionIfExists("setActiveTreeviewNode");else if(c.length>0){if(bt=[],Globals.Utilities.arrayPush(bt,-1e3),this.collectionType==KnotiaKnowledge5.CollectionType.SearchAll){for(Globals.Utilities.arrayPush(bt,this.productID*1e10),sr=c.length,lt=0;lt<sr;lt++)Globals.Utilities.arrayPush(bt,c[lt]+this.productID*1e10);c=bt}else c=bt.concat(c);callStateManagerFunctionIfExists("setActiveTreeviewNode",c)}callStateManagerFunctionIfExists("createDisplayedDocumentNavigation");r||wt?(useElasticsearch()?Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext!==1||Globals.Utilities.isUndefinedOrNull(window.currentPage)?this.createDocumentSearchNavigationElastic():document.k5search.checkAndUpdateSearchResultNavigationAndCallNewUX():Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext!==1||Globals.Utilities.isUndefinedOrNull(window.currentPage)||document.k5search.searchType!==KnotiaKnowledge5.SearchType.NewsSearchDateRange&&document.k5search.searchType!==KnotiaKnowledge5.SearchType.SimpleNews&&document.k5search.searchType!==KnotiaKnowledge5.SearchType.NewsSearchPastNDays&&document.k5search.searchType!==KnotiaKnowledge5.SearchType.AdvancedNews?this.createDocumentSearchNavigation():callKNextStateManagerFunctionIfExists("BLL","renderSearchHitsNavigation"),callStateManagerFunctionIfExists("addToViewedSearchResults",this.bookID,this.documentID)):this.collectionType==KnotiaKnowledge5.CollectionType.MyNotes?(hr=callStateManagerFunctionIfExists("isInSearch")?useElasticsearch()?callStateManagerFunctionIfExists("createMyNotesSearchNavigationElastic",this.bookID,this.documentID,this.specifiedHitParagraphs):callStateManagerFunctionIfExists("createMyNotesSearchNavigation",this.bookID,this.documentID,this.specifiedHitParagraphs):this.createMyNotesDocumentNavigation(),callStateManagerFunctionIfExists("updateDocumentBodyNavigation",hr),delegateSwipeEvent(this.controlJqueryObject.attr("id"),"prevDocument","nextDocument")):this.collectionType==KnotiaKnowledge5.CollectionType.Briefcase?this.createBriefcaseNavigation():this.createDocumentNavigation();wt?this.scrollToTopOfInlineSearchResult():s>1?this.jumpAfterImagesLoaded(s,h):this.specifiedHitParagraphs.length>0?this.jumpAfterImagesLoaded():document.getElementById("hh_1")==null||this.suppressAutoScrollToHitHighlight?this.jumpAfterImagesLoaded(1):this.jumpAfterImagesLoaded();this.displayExistingTagsForActiveDocument();Globals.Utilities.isIE()?$(".hoverMetadata").css("display","inline"):$(".hoverMetadata").css("display","inline-block");this.hideInaccessibleLinks();vi=!1;for(br in this.purposeNoteLinks){vi=!0;break}if(vi&&$("#divBodyContent").find("a[onmouseover^='CreateFetchLink']").tooltip(),this.controlJqueryObject.show(),callStateManagerFunctionIfExists("annotationsBoxInit",!1),$(window).resize(function(){callStateManagerFunctionIfExists("annotationsBoxInit",!0)}),hi&&callStateManagerFunctionIfExists("enableHighlightingNotes",this.productID,this.bookID,this.documentID,this.specialJumpToInformation),this.collectionType==KnotiaKnowledge5.CollectionType.News&&(cr=callStateManagerFunctionIfExists("isMobileNewsBehaviour"),cr&&($(".newsResultHeader").hide(),$(".newsResultSystemLevelHeaderTitle").hide(),$(".newsResultSubCategoryHeaderTitle").hide(),pt=$(".newsResultDocTitle"),pt.find("img").remove(),pt.off("mouseover"),pt.off("mouseout"),pt.css("text-indent","0px"),pt.find("span").css("cursor","auto"),yi=pt.find(".clickableNewsResultDocTitle"),yi.removeAttr("onclick"),yi.removeClass("clickableNewsResultDocTitle")),this.controlJqueryObject.find("a[href^='/news/']").each(function(){if(!$(this).hasClass("js-a-doNotChangeHref")){var t=$(this).attr("href").substr(6),n=t.split("-");n.length>=2&&$(this).attr("href","javascript:callStateManagerFunctionIfExists('doNewsSearchByNumber', '"+n[0]+"-"+n[1]+"');")}})),at=$(".JS-IMG-Icon"),at.length>0&&(at.attr("title",GetString("str_DocNav_seeFutureApplication")),at.tooltip(),at.parent()[0].tagName.toLowerCase()=="a")){lr=parseInt(at.parent().parent().parent().attr("id").substr(4),10);at.parent().attr("href","javascript:;");at.parent().on("click",function(n){document.k5doc.scrollToNextFutureApplication(n,lr)})}window.setTimeout(function(){document.k5doc.balanceFixedTdWidths()},100);pi=$(".js--activateInteractiveFormula");pi.length>0&&activateInteractiveFormulas(pi)};KnotiaKnowledge5.DocumentManager.prototype.balanceFixedTdWidths=function(){var u,f,e,o,t,i,s,n,h,r;if(tablesToRebalanceWidthsFor={},f=this.controlJqueryObject.find("table[width='100%']"),!(f.length<=1)){e=function(n,t){return n+t};f.each(function(){var o,n,t,i,r,f;u=$(this).width();o=$(this).find("tr").filter(":first");n=[];o.find("td").each(function(){var t=parseInt($(this).attr("width"),10);n.push(t)});t=n.reduce(e);t!=NaN&&(t>u?(i=n.join("_"),tablesToRebalanceWidthsFor[i]||(tablesToRebalanceWidthsFor[i]=[]),tablesToRebalanceWidthsFor[i].push($(this))):t<u&&(r=parseInt($(this).attr("cellpadding"),10),r==NaN&&(r=0),f=parseInt($(this).attr("border"),10),f==NaN&&(f=0),t=t+r*n.length*2+f*n.length*2))});for(o in tablesToRebalanceWidthsFor){for(t=o.split("_"),n=0;n<t.length;n++)t[n]=parseInt(t[n],10);if(i=tablesToRebalanceWidthsFor[o],i.length>1)for(s=t.reduce(e),n=0;n<t.length;n++)for(h=100*t[n]/s,r=0;r<i.length;r++)i[r].find("tr td:nth-child("+(n+1).toString()+")").width(h.toString()+"%")}}};KnotiaKnowledge5.DocumentManager.prototype.scrollToNextFutureApplication=function(n,t){for(var i=t+1,r,u;$("#el_P"+i.toString()).length>0;){if(r=$("#js-p-showHide1Paragraph-"+i.toString()),r.length>0){u=r.offset().top-$("#el_P"+t.toString()).offset().top;this.controlJqueryObject.scrollTop(this.controlJqueryObject.scrollTop()+u);return}i+=1}};KnotiaKnowledge5.DocumentManager.prototype.elementExists=function(n){return $(n).length>1};productName=callStateManagerFunctionIfExists("getProductNameForMyNotesDocument");productName==null&&(KnotiaKnowledge5.DocumentManager.prototype.delayedDisplayProductName=function(){window.setTimeout(function(){document.k5doc.delayedDisplayProductName()},500);return},$("#productNameForLinkToCollection").text(productName));KnotiaKnowledge5.DocumentManager.prototype.downloadNewsDocument=function(n,t,i,r){callStateManagerFunctionIfExists("downloadNewsDocument",n,t,i,r)};KnotiaKnowledge5.DocumentManager.prototype.emailNewsDocument=function(n,t,i,r,u,f,e,o){callStateManagerFunctionIfExists("emailNewsDocument",n,t,i,r,u,f,e,o)};KnotiaKnowledge5.DocumentManager.prototype.jumpAfterImagesLoaded=function(n,t){var i=this;$("#divBodyContent").waitForImages(function(){i.pauseBeforeJumping(n,t)})};KnotiaKnowledge5.DocumentManager.prototype.pauseBeforeJumping=function(n,t){var i,r;if(n==null){this.jumpToFirstHit();return}i=!1;t!=null&&(i=this.jumpToAnchor(t));i||(n==1?this.controlJqueryObject.scrollTop(0).scrollLeft(0):this.jumpToAnchor("el_P"+n.toString()));r=callStateManagerFunctionIfExists("getHistoryCursorScrollPosition");r!=null&&this.controlJqueryObject.scrollTop(r)};KnotiaKnowledge5.DocumentManager.prototype.jumpToAnchor=function(n){var i=document.k5doc,t;if(Globals.Utilities.isUndefinedOrNull(n))return!1;if(n.indexOf("el_P")===0)t=$("#"+n);else if(t=$("a[name='"+n.replace(new RegExp("'","g"),"\\'")+"']").last(),t.length===0)return!1;return i.controlJqueryObject.scrollTop(0),i.controlJqueryObject.scrollLeft(0),setTimeout(function(){try{document.k5doc.controlJqueryObject.scrollTop(t.position().top)}catch(n){}},500),window.scrollTo(0,0),!0};KnotiaKnowledge5.DocumentManager.prototype.jumpToFirstHit=function(){this.jumpToNextHit(0);this.controlJqueryObject.scrollLeft(0);window.scrollTo(0,0)};KnotiaKnowledge5.DocumentManager.prototype.jumpToNextHit=function(n){var u,s,f,t,i,e,o,r;if(this.documentHitNumber>0&&(u=document.getElementById("hh_"+this.documentHitNumber.toString()),u!=null&&(u.className="HitHighlight")),parseInt(n,10)===0||(n>0?this.documentHitNumber==-1?this.documentHitNumber=1:this.documentHitNumber+=1:this.documentHitNumber-=1),this.specifiedHitParagraphs.length>0){if(this.documentHitNumber<this.specifiedHitParagraphs.length&&(s=this.specifiedHitParagraphs[this.documentHitNumber],f=document.getElementById("el_P"+s.toString()),f!=null)){f.scrollIntoView();this.disableNextHitLink(!1,parseInt(this.documentHitNumber,10)===0);this.disableNextHitLink(!0,this.documentHitNumber==this.specifiedHitParagraphs.length-1);return}}else if(t=$("#hh_"+this.documentHitNumber.toString()),t.length>0){i=t.closest("div").attr("id");i&&i.indexOf("documentFootnote_")==0?(e=i.split("_")[1],o=$("a.pLink").filter("[href $= ',"+e+")']"),o.length>0&&o[0].scrollIntoView(),this.displayFootnote(e)):(t[0].scrollIntoView(),t[0].className="HitHighlightOn");this.disableNextHitLink(!1,this.documentHitNumber==1);this.disableNextHitLink(!0,document.getElementById("hh_"+(this.documentHitNumber+1).toString())==null);return}if(n>0)r=$("#linkNextSearchDocument");else if(n<0)r=$("#linkPrevSearchDocument");else return;r!=null&&r.trigger("click")};KnotiaKnowledge5.DocumentManager.prototype.createHistoryBlocks=function(){var y=null,p=null,w=null,n=this.bookID%1e3,v,g,nt,d,c,tt,l,it;if(n>=102&&n<=104)y="Click here to view point-in-time legislation.",p="/Knowledge/Home.aspx?ProductID=1133";else if(n>=152&&n<=154)y="Cliquez ici pour visualiser la l&eacute;gislation telle qu'elle se lisait &agrave; divers moments dans le pass&eacute;.",p="/Knowledge/Home.aspx?ProductID=1139";else if(n!=198&&n!=250&&n!=527&&n!=556&&n!=558&&n!=566&&n!=568&&n!=648&&n!=645&&n!=646&&n!=647&&n!=649&&n!=653&&n!=655&&n!=650&&n!=651&&n!=652&&n!=111&&n!=199&&n!=301&&n!=302&&n!=303&&n!=351&&n!=352&&n!=353&&n!=245&&n!=247&&n!=287&&n!=288&&n!=311&&n!=368&&n!=306&&n!=307&&n!=356&&n!=357&&n!=201&&n!=202&&n!=207&&n!=251&&n!=252&&n!=252&&n!=256&&n!=531&&n!=532&&n!=751&&n!=752&&n!=753&&n!=755&&n!=756&&n!=757&&n!=758&&n!=759&&(!(n>=403)||!(n<=415))&&(!(n>=456)||!(n<=457)))if(n==183||n==570)w="History and Technical explanation";else if(n==189)w="Historique et Explication technique";else return;for(var i=1,t,a,r=-1,s=!1,u=!1,h=!1,e=!1,o=!1,b=-1,f=!1,k=-1;(t=document.getElementById("el_P"+i.toString()))!=null;)h=/P class=['\"]?Generatedbold['\"]>Jurisprudence|P class=['\"]?Generatedbold['\"]>Cases cit/i.test(t.innerHTML),e=/P class=['\"]?History/i.test(t.innerHTML),o=/P class=['\"]?Future/i.test(t.innerHTML),f=/P class=['\"]?Origin/i.test(t.innerHTML),(o||f)&&(e=!0),u=h||u,v=!1,f&&/P class=['\"]?Originheading/i.test(t.innerHTML)&&r>0&&(v=!0,u=!1),(h||!e)&&r>0?v=!0:e&&(o&&b==0||!o&&b==1||f&&k==0||!f&&k==1)&&(v=!0),v&&(u||this.updateParagraphHTML(a,a.innerHTML+"<br /><hr width='40%' size='1' color='black' /><br />"),s||(g=this.showHistoryBlock(r,!1,u),Globals.Utilities.isUndefinedOrNull(g)||$("#el_P"+i.toString()).find("p:first").prepend(g)),r=-1,s=!1),(h||e&&r<0)&&(nt="",h&&(nt="class='black'"),d="<a "+nt+" id='js-a-showHide1Link-"+i.toString()+"' href='javascript:document.k5doc.showHistoryBlock("+i.toString()+", false, "+u.toString()+");'>",h?t.innerHTML="<p class='ShowHide2Shown'>"+d+"<span class='MinusIcon'> <\/span><\/a> "+d+"<b>"+(document.all?t.innerText:t.textContent)+"<\/b><\/a><\/p>":(tt=this.productLanguage?this.productLanguage:document.ProductLanguage?document.ProductLanguage:1,o?c=tt==2?"Application future":"Future application":f?(c=t.innerText,t.innerHTML="<div style='display:none;'>"+t.innerHTML+"<\/div>"):c=w!=null?w:tt==2?"Historique":"History",l=$("#el_P"+i.toString()),l.before("<p class='ShowHide1Shown' id='js-p-showHide1Paragraph-"+i.toString()+"'>"+d+"<span class='MinusIcon' id='js-span-showHide1Icon-"+i.toString()+"'> <\/span> <b>"+c+"<\/b><\/a><\/p>"),l.text()==c&&(it=new RegExp(c,"gi"),l.html(l.html().replace(it,""))),y==null||o||f||this.productID===645||l.prepend("<p class='Historyleft'><a href='"+p+"' target='_blank'><img src='/UserControls/Toolbar/Images/KNOTIAFLAT/Icons/Flat-Arrow-History.png' class='js--img--pnghover' style='vertical-align:middle;' /><\/a> <a href='"+p+"' target='_blank'>"+y+"<\/a><\/p>")),r=i),e&&($("#el_P"+i.toString()).find("span.Arialbold9pt:first").remove(),$("#el_P"+i.toString()).find("span.Arialbold:first").remove()),!s&&r>0&&(t.innerHTML.indexOf("class=HitHighlight")>=0||t.innerHTML.indexOf('class="HitHighlight')>=0?s=!0:t.innerHTML.indexOf("userHighlightNoteID_")>=0&&(s=!0)),i++,a=t,e?(b=o?1:0,k=f?1:0):(b=-1,k=-1);r>0&&(u||this.updateParagraphHTML(a,a.innerHTML+"<br /><hr width='40%' size='1' color='black' /><br />"),s||this.showHistoryBlock(r,!1,u))};KnotiaKnowledge5.DocumentManager.prototype.updateParagraphHTML=function(n,t){try{n.innerHTML=t}catch(i){return}};KnotiaKnowledge5.DocumentManager.prototype.showHistoryBlock=function(n,t,i){var y=/P class=['\"]?History/i,e,r,f,p,l,u,v;if(i)for(f=n;(r=document.getElementById("el_P"+f.toString()))!=null;){if(/P class=['\"]?ShowHide2/i.test(r.innerHTML))try{p=document.all?r.innerText:r.textContent;l="<a class='black' href='javascript:document.k5doc.showHistoryBlock("+f.toString()+", "+(!t).toString()+", true);'>";r.innerHTML="<p class='ShowHide2"+(t?"Shown":"Hidden")+"'>"+l+"<span class='"+(t?"Minus":"Plus")+"Icon'> <\/span><\/a> "+l+"<b>"+p+"<\/b><\/a><\/p>"}catch(b){return e}else{if(/P class=['\"]?History-CasesCitedHead/i.test(r.innerHTML))return e;if(y.test(r.innerHTML))r.style.display=t?"":"none";else return e}f++}else{u=$("#js-p-showHide1Paragraph-"+n.toString());u.removeClass("ShowHide1Shown");u.removeClass("ShowHide1Hidden");u.addClass("ShowHide1"+(t?"Shown":"Hidden"));u=$("#js-span-showHide1Icon-"+n.toString());u.removeClass("MinusIcon");u.removeClass("PlusIcon");u.addClass((t?"Minus":"Plus")+"Icon");u=$("#js-a-showHide1Link-"+n.toString());u.attr("href","javascript:document.k5doc.showHistoryBlock("+n.toString()+", "+(!t).toString()+", false);");for(var f=n,c=-1,s=-1,w=!1;(r=document.getElementById("el_P"+f.toString()))!=null;){var a=y.test(r.innerHTML),h=/P class=['\"]?Future/i.test(r.innerHTML),o=/P class=['\"]?Origin/i.test(r.innerHTML);if((h||o)&&(a=!0),o&&(w=/P class=['\"]?Originheading/i.test(r.innerHTML)),h&&c==0||!h&&c==1||o&&s==0||!o&&s==1||o&&s==1&&w)return e;if(a)r.style.display=t?"":"none",h&&(v=$("#el_P"+f.toString()).find("span.insightLinkContainer"),v.length>0&&(e=v.detach()));else return e;f++;a?(c=h?1:0,s=o?1:0,wasHistoryMatch=o?1:0):(c=-1,s=-1,wasHistoryMatch=-1)}return e}};KnotiaKnowledge5.DocumentManager.prototype.displayExistingTagsForActiveDocument=function(){var i=this.bookID.toString()+"_"+this.documentID.toString(),f=document.getElementById("elTaggingLinkText"),r=this.taggedRecordsList.split("|"),u,t,n;if(this.isTaggingEnabled){for(u=r.length,t=0;t<u;t++)n=r[t],n.indexOf(i+"_")==0&&(n=n.substring(i.length+1,n.length),this.showTaggingIndicator($("#el_P"+n)));document.body.onmousedown=document.k5doc.registerMouseDown;document.body.onmouseup=document.k5doc.registerMouseUp}};KnotiaKnowledge5.DocumentManager.prototype.enableTagging=function(){this.isTaggingEnabled=!0;this.taggedRecordsList=""};KnotiaKnowledge5.DocumentManager.prototype.disableTagging=function(){var i,r,u,t,n;for(this.isTaggingEnabled=!1,i=this.taggedRecordsList.split("|"),this.taggedRecordsList="",r=this.bookID.toString()+"_"+this.documentID.toString(),u=i.length,t=0;t<u;t++)n=i[t],n.indexOf(r+"_")==0&&(n=n.substring(r.length+1,n.length),this.hideTaggingIndicator($("#el_P"+n)))};KnotiaKnowledge5.DocumentManager.prototype.isParagraphTagged=function(n){var t=n.id,i;return t=t.substr(4,t.length-4),t=this.bookID.toString()+"_"+this.documentID.toString()+"_"+t,i="|"+this.taggedRecordsList+"|",i.indexOf("|"+t+"|")>=0};KnotiaKnowledge5.DocumentManager.prototype.mouseDownParagraph=function(n,t){callStateManagerFunctionIfExists("isInDocumentOnlyView")||this.isTaggingEnabled&&t==1&&(this.mouseDownParagraphID=n.id,this.isMouseDown=!0)};KnotiaKnowledge5.DocumentManager.prototype.mouseUpParagraph=function(n,t){var i,r,f,u;if(!callStateManagerFunctionIfExists("isInDocumentOnlyView")&&this.isTaggingEnabled){if(t==1){if(n.id==this.mouseDownParagraphID)this.tagParagraph(n);else for(i=parseInt(n.id.replace(/el_P/i,""),10),r=parseInt(this.mouseDownParagraphID.replace(/el_P/i,""),10),i>r&&(f=i,i=r,r=f),u=i;u<=r;u++)this.tagParagraph(document.getElementById("el_P"+u.toString()));this.mouseDownParagraphID="";this.isMouseDown=!1}document.selection?document.selection.empty():window.getSelection().removeAllRanges()}};KnotiaKnowledge5.DocumentManager.prototype.registerMouseDown=function(){this.mouseDown=!0};KnotiaKnowledge5.DocumentManager.prototype.registerMouseUp=function(){this.mouseDownParagraphID="";this.mouseDown=!1};KnotiaKnowledge5.DocumentManager.prototype.tagParagraph=function(n){var t,i,r,u;this.isTaggingEnabled&&(t=this.taggedRecordsList+"|",t.length>1&&(t="|"+t),i=n.id,i=i.substr(4,i.length-4),i=this.bookID.toString()+"_"+this.documentID.toString()+"_"+i,r=t.indexOf("|"+i+"|"),r>=0?(this.hideTaggingIndicator($("#"+n.id)),u=i.length+1,t=t.substr(0,r)+t.substr(r+u,t.length-r-u),t=t.substr(1,t.length-2),this.taggedRecordsList=t):(this.showTaggingIndicator($("#"+n.id)),t=t.substring(1)+i,this.taggedRecordsList=t))};KnotiaKnowledge5.DocumentManager.prototype.showTaggingIndicator=function(n){n.css("background-image","url(View/_IncludeFiles/Images/TaggedParagraphOn.gif)");n.css("background-repeat","repeat-y")};KnotiaKnowledge5.DocumentManager.prototype.hideTaggingIndicator=function(n){n.css("background-image","")};KnotiaKnowledge5.DocumentManager.prototype.hideInaccessibleLinks=function(){var n=this;$("a.fitaLink").each(function(){var i,t,u,r;$(this).trigger("mouseover");typeof $(this).attr("href")!="undefined"&&(i=$(this).attr("href").split(","),t=$.trim(i[1]),t=t.substring(1,t.length-1),u=parseInt($.trim(i[2]),10),n.resolvedLinks[t]&&(r=$(this).text(),$(this).replaceWith(r)))})};KnotiaKnowledge5.DocumentManager.prototype.createDocumentNavigation=function(){var n="";Globals.UI.isSiteThemeEnabled()?(n="<div style='padding-top:4px; padding-right:8px;'><table cellpadding=0 cellspacing=0 border=0><tr>",n+="<td>",n+=this.previousDocumentBookID>0?"<a id=\"prevDocument\" href='javascript:;' onclick='document.k5doc.loadDocumentByBookDocumentID("+this.productID.toString()+", "+this.previousDocumentBookID.toString()+", "+this.previousDocumentID.toString()+")' title='"+this.previousDocumentTitle.replace(/'/g,"&#x27;")+"'><img class='js--img--pnghover' src='/UserControls/Toolbar/Images/"+glb_SiteStyle+"/Icons/Flat-Arrow-Thin-Left.png' border=0><\/a>":"<img class='disabledIcon' src='/UserControls/Toolbar/Images/"+glb_SiteStyle+"/Icons/Flat-Arrow-Thin-Left.png' border=0>",n+="<\/td><td class='navBarSectionLabel'>&nbsp; Document &nbsp;<\/td><td>",n+=this.nextDocumentBookID>0?"<a id=\"nextDocument\" href='javascript:;' onclick='document.k5doc.loadDocumentByBookDocumentID("+this.productID.toString()+", "+this.nextDocumentBookID.toString()+", "+this.nextDocumentID.toString()+")' title='"+this.nextDocumentTitle.replace(/'/g,"&#x27;")+"'><img class='js--img--pnghover' src='/UserControls/Toolbar/Images/"+glb_SiteStyle+"/Icons/Flat-Arrow-Thin-Right.png' border=0><\/a>":"<img class='disabledIcon' src='/UserControls/Toolbar/Images/"+glb_SiteStyle+"/Icons/Flat-Arrow-Thin-Right.png' border=0>",n+="<\/td><\/tr><\/table><\/div>"):(n="<table cellpadding=0 cellspacing=0 border=0><tr><td colspan=2 style='height:10px;'><\/td><\/tr><tr>",n+="<td>",n+=this.previousDocumentBookID>0?"<a id=\"prevDocument\" href='javascript:;' onclick='document.k5doc.loadDocumentByBookDocumentID("+this.productID.toString()+", "+this.previousDocumentBookID.toString()+", "+this.previousDocumentID.toString()+")' title='"+this.previousDocumentTitle.replace(/'/g,"&#x27;")+"'><img src='Images/Button_LeftArrowBlue.gif' border=0><\/a>":"<img src='Images/Button_LeftArrowGreyedOut.gif' border=0>",n+="<\/td><td class='navBarSectionLabel'>&nbsp; Document &nbsp;<\/td><td>",n+=this.nextDocumentBookID>0?"<a id=\"nextDocument\" href='javascript:;' onclick='document.k5doc.loadDocumentByBookDocumentID("+this.productID.toString()+", "+this.nextDocumentBookID.toString()+", "+this.nextDocumentID.toString()+")' title='"+this.nextDocumentTitle.replace(/'/g,"&#x27;")+"'><img src='Images/Button_RightArrowBlue.gif' border=0><\/a>":"<img src='Images/Button_RightArrowGreyedOut.gif' border=0>",n+="<\/td><td>&nbsp; &nbsp;<\/td><\/tr><\/table>");callStateManagerFunctionIfExists("updateDocumentBodyNavigation",n);delegateSwipeEvent(this.controlJqueryObject.attr("id"),"prevDocument","nextDocument")};KnotiaKnowledge5.DocumentManager.prototype.createMyNotesDocumentNavigation=function(){var n=callStateManagerFunctionIfExists("getNextAndPreviousDocumentsFromTreeview"),t="<div style='padding-top:4px; padding-right:8px;'><table cellpadding=0 cellspacing=0 border=0><tr>";return t+="<td>",t+=Globals.Utilities.isUndefinedOrNull(n.previousDocument)?"<img class='disabledIcon' src='/UserControls/Toolbar/Images/KNOTIAFLAT/Icons/Flat-Arrow-Thin-Left.png' border=0>":"<a id=\"prevDocument\" href='javascript:;' onclick=\"callStateManagerFunctionIfExists('fireTreeviewTextClick', "+n.previousDocument.nodeID+")\" title='"+n.previousDocument.documentTitle+"'><img class='js--img--pnghover' src='/UserControls/Toolbar/Images/KNOTIAFLAT/Icons/Flat-Arrow-Thin-Left.png' border=0><\/a>",t+="<\/td><td class='navBarSectionLabel'>&nbsp; Document &nbsp;<\/td><td>",t+=Globals.Utilities.isUndefinedOrNull(n.nextDocument)?"<img class='disabledIcon' src='/UserControls/Toolbar/Images/KNOTIAFLAT/Icons/Flat-Arrow-Thin-Right.png' border=0>":"<a id=\"nextDocument\" href='javascript:;' onclick=\"callStateManagerFunctionIfExists('fireTreeviewTextClick', "+n.nextDocument.nodeID+")\" title='"+n.nextDocument.documentTitle+"'><img class='js--img--pnghover' src='/UserControls/Toolbar/Images/KNOTIAFLAT/Icons/Flat-Arrow-Thin-Right.png' border=0><\/a>",t+"<\/td><\/tr><\/table><\/div>"};KnotiaKnowledge5.DocumentManager.prototype.createBriefcaseNavigation=function(){var t=callStateManagerFunctionIfExists("getNeighbouringBriefcaseTreeviewNodeID",-1),i=callStateManagerFunctionIfExists("getNeighbouringBriefcaseTreeviewNodeID",1),n="";glb_SiteStyle!=null?(n="<div style='padding-top:4px; padding-right:8px;'><table cellpadding=0 cellspacing=0 border=0><tr><td>",n+=t>0?"<a id=\"prevDocument\" href='javascript:;' onclick='document.k5doc.loadDocumentFromBriefcase("+t.toString()+")'><img class='js--img--pnghover' src='/UserControls/Toolbar/Images/"+glb_SiteStyle+"/Icons/Flat-Arrow-Thin-Left.png' border=0><\/a>":"<img class='disabledIcon' src='/UserControls/Toolbar/Images/"+glb_SiteStyle+"/Icons/Flat-Arrow-Thin-Left.png' border=0>",n+="<\/td><td class='navBarSectionLabel'>&nbsp; "+GetString("str_DocNav_BriefcaseDocuments")+" &nbsp;<\/td><td>",n+=i>0?"<a id=\"nextDocument\" href='javascript:;' onclick='document.k5doc.loadDocumentFromBriefcase("+i.toString()+")'><img class='js--img--pnghover' src='/UserControls/Toolbar/Images/"+glb_SiteStyle+"/Icons/Flat-Arrow-Thin-Right.png' border=0><\/a>":"<img class='disabledIcon' src='/UserControls/Toolbar/Images/"+glb_SiteStyle+"/Icons/Flat-Arrow-Thin-Right.png' border=0>",n+="<\/td><\/tr><\/table><\/div>"):(n="<table cellpadding=0 cellspacing=0 border=0><tr><td colspan=2 style='height:10px;'><\/td><\/tr><tr><td>",n+=t>0?"<a id=\"prevDocument\" href='javascript:;' onclick='document.k5doc.loadDocumentFromBriefcase("+t.toString()+")'><img src='Images/Button_LeftArrowBlue.gif' border=0><\/a>":"<img src='Images/Button_LeftArrowGreyedOut.gif' border=0>",n+="<\/td><td class='navBarSectionLabel'>&nbsp; "+GetString("str_DocNav_BriefcaseDocuments")+" &nbsp;<\/td><td>",n+=i>0?"<a id=\"nextDocument\" href='javascript:;' onclick='document.k5doc.loadDocumentFromBriefcase("+i.toString()+")'><img src='Images/Button_RightArrowBlue.gif' border=0><\/a>":"<img src='Images/Button_RightArrowGreyedOut.gif' border=0>",n+="<\/td><td>&nbsp; &nbsp;<\/td><\/tr><\/table>");callStateManagerFunctionIfExists("updateDocumentBodyNavigation",n);delegateSwipeEvent(this.controlJqueryObject.attr("id"),"prevDocument","nextDocument")};KnotiaKnowledge5.DocumentManager.prototype.createDocumentSearchNavigation=function(){var i=callStateManagerFunctionIfExists("createDocumentSearchNavigation",this.bookID,this.documentID,this.specifiedHitParagraphs),n,t;callStateManagerFunctionIfExists("updateDocumentBodyNavigation",i);n=callStateManagerFunctionIfExists("isDailyViewOfNews");n?(t=$("#tsi_docs_collapse").parent().parent().parent().parent().clone(),$("#collapseAllInlineDocumentsLink").append(t)):delegateSwipeEvent(this.controlJqueryObject.attr("id"),"linkPrevSearchDocument","linkNextSearchDocument")};KnotiaKnowledge5.DocumentManager.prototype.createDocumentSearchNavigationElastic=function(){var i=callStateManagerFunctionIfExists("createDocumentSearchNavigationElastic",this.bookID,this.documentID,this.specifiedHitParagraphs),n,t;callStateManagerFunctionIfExists("updateDocumentBodyNavigation",i);n=callStateManagerFunctionIfExists("isDailyViewOfNews");n?(t=$("#tsi_docs_collapse").parent().parent().parent().parent().clone(),$("#collapseAllInlineDocumentsLink").append(t)):delegateSwipeEvent(this.controlJqueryObject.attr("id"),"linkPrevSearchDocument","linkNextSearchDocument")};KnotiaKnowledge5.DocumentManager.prototype.scrollToTopOfInlineSearchResult=function(){this.suppressScrollOfInlineDocument||this.controlJqueryObject.scrollTop(this.controlJqueryObject.scrollTop()+$("#RL"+this.documentID.toString()).position().top)};KnotiaKnowledge5.DocumentManager.prototype.removeAnnotationsLinks=function(){};KnotiaKnowledge5.DocumentManager.prototype.printInlineNewsDocument=function(n){$("#documentBodyForAlert_"+n.toString()).addClass("thisIsTheDivToPrint");callStateManagerFunctionIfExists("doPrint",-999)};KnotiaKnowledge5.DocumentManager.prototype.disableNextHitLink=function(n,t){var r,u,e,i,f,o;(n?(r=$("#imgNextHitLink"),u=$("#imgNextDocLink")):(r=$("#imgPrevHitLink"),u=$("#imgPrevDocLink")),r.length!==0&&u.length!==0)&&(i=r.attr("src"),f=i.substring(i.lastIndexOf("/")),i=i.substring(0,i.lastIndexOf("/")),e=t&&u.attr("src").indexOf("Grey")>0?f.replace(/Blue/,"GreyedOut"):f.replace(/GreyedOut/,"Blue"),e!=f&&(o=new Image,o.src=i+e,r.attr("src",o.src)))};KnotiaKnowledge5.DocumentManager.prototype.loadSecureTaggedRecords=function(n){this.loadSecureData("taggedRecords="+n)};KnotiaKnowledge5.DocumentManager.prototype.loadSecureDocument=function(n,t,i,r,u){this.startProcessingImage();var f={productID:n,bookID:t,documentID:i};this.loadSecureDocuments([f],!1,r,u)};KnotiaKnowledge5.DocumentManager.prototype.loadSecureDocuments=function(n,t,i,r){for(var f="",e=n.length,u=0;u<e;u++)f+="productID"+u.toString()+"="+n[u].productID.toString()+"&bookID"+u.toString()+"="+n[u].bookID.toString()+"&documentID"+u.toString()+"="+n[u].documentID.toString()+"&";!Globals.Utilities.isUndefinedOrNull(t)&&t&&(f+="&forPrint=1");Globals.Utilities.isUndefinedOrNull(i)||parseInt(i,10)===0||(f+="&searchType="+i.toString()+"&searchParameters="+encodeURIComponent(r));this.loadSecureData(f)};KnotiaKnowledge5.DocumentManager.prototype.loadSecureData=function(n){var i="https://"+window.location.toString().split("/")[2]+"/Knowledge/SSLLoader.aspx?"+n,t=document.createElement("script");t.setAttribute("type","text/javascript");t.setAttribute("src",i);document.getElementsByTagName("head")[0].appendChild(t)};KnotiaKnowledge5.DocumentManager.prototype.buildLinkToCopyForm=function(){document.getElementById("tsi_share_copylink_lnk").style.cursor="wait";document.getElementById("tsi_share_copylink_img").style.cursor="wait";Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/BuildLinkToCopyForm",{iProductID:this.productID,fetchID:this.fetchID,iDocumentID:this.documentID,iBookID:this.bookID},this.presentLinkToCopy,null,null,this)};KnotiaKnowledge5.DocumentManager.prototype.presentLinkToCopy=function(n){var t,i;Globals.Utilities.isUndefinedOrNull(n)||n.length===0||(t="<div id='divLinkToDocument' class='normal-text-resizable'>",t+=GetString("str_Share_CopyPasteLink")+GetString("str_Colon"),t+="<input type='text' class='normal-fixed js--textbox--adjust-width js--textbox--round-corners' value='"+n.d+"' />",t+="<\/div>",Globals.UI.showjQueryToolbarDialog("tsi_share_copylink",350,175,GetString("str_Share_CreateLink"),t),i=[{id:"btnClose",text:GetString("str_Print_Close"),"class":"normal-text-resizable",click:function(){Globals.UI.closejQueryToolbarDialog("tsi_share_copylink")}}],Globals.UI.addButtonsTojQueryToolbarDialog("tsi_share_copylink",i))};KnotiaKnowledge5.DocumentManager.prototype.buildEmailDocumentForm=function(){(Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext===0||Globals.Utilities.isUndefinedOrNull(window.currentPage))&&(document.getElementById("tsi_share_emaildocument_lnk").style.cursor="wait",document.getElementById("tsi_share_emaildocument_img").style.cursor="wait");Globals.Ajax.postRequest("/Services/ResearchService.svc/Emailer/BuildEmailDocumentForm",{productID:this.productID,bookID:this.bookID,documentID:this.documentID,gotoStr:this.fetchID},this.presentEmailDocumentForm,null,null,this)};KnotiaKnowledge5.DocumentManager.prototype.presentEmailDocumentForm=function(result){(Globals.Utilities.isUndefinedOrNull(glb_EnableKnotiaNext)||glb_EnableKnotiaNext===0||Globals.Utilities.isUndefinedOrNull(window.currentPage))&&(document.getElementById("tsi_share_emaildocument_lnk").style.cursor="pointer",document.getElementById("tsi_share_emaildocument_img").style.cursor="pointer");eval(result.d)};KnotiaKnowledge5.DocumentManager.prototype.submitEmailDocumentForm=function(n,t,i,r){Globals.Ajax.postRequest("/Services/ResearchService.svc/Emailer/SubmitEmailDocumentForm",{emailAddresses:n,sendMeCopy:t,emailMessage:i,productID:this.productID,bookID:this.bookID,documentID:this.documentID,gotoStr:this.fetchID,subjectTxt:r},this.onSubmittedEmailDocumentForm,null,null,this)};KnotiaKnowledge5.DocumentManager.prototype.onSubmittedEmailDocumentForm=function(result){eval(result.d)};KnotiaKnowledge5.DocumentManager.prototype.createFetchLinkForCurrentAlert=function(n,t,i){n.href="javascript:document.k5doc.loadDocumentByGotoString(0, '"+encodeURIComponent(i)+"', "+t.toString()+", null, false);"};KnotiaKnowledge5.DocumentManager.prototype.loadAlertByID=function(n,t,i){var r,u,f;callStateManagerFunctionIfExists("isInDocumentOnlyView")||callStateManagerFunctionIfExists("saveHistoryPoint","document.k5doc.loadAlertByID",arguments);i||(r=$("#documentBodyForAlert_"+(this.documentID?this.documentID.toString():"0")),u=r.length>0,u||this.startProcessingImage());f={AlertID:n,Language:t};Globals.Ajax.postRequest("/Services/NewsService.svc/GetAlertByAlertIDAndLanguage",f,this.processLoadedDocuments,null,null,this)};KnotiaKnowledge5.DocumentManager.prototype.displayDocumentAsInlineSearchResult=function(n,t,i){var r,u;$("#synopsisForAlertID_"+this.documentID.toString()).hide();n.empty();n.html(t);n.show();n.removeClass("inlineBodyHidden");n.addClass("inlineBodyShown");callStateManagerFunctionIfExists("enableMouseOverActivationOfOpenInlineSearchResults",n,i);n.css("margin","5px 30px");Globals.Utilities.isIE9OrLess()&&n.width(n.width()-60);r="";r=Globals.UI.isSiteThemeEnabled()?"/Resources/Images/minus.gif":"Images/ArticleTwistyOpen.png";$("#articleTwisty_"+this.documentID.toString()).attr("src",r);u=$("#newsResultDocTitle_"+this.documentID.toString());u.hasClass("newsTitleVisited")||u.addClass("newsTitleVisited")};KnotiaKnowledge5.DocumentManager.prototype.createAttachmentLinkForCurrentAlert=function(n,t){if(t.charAt(0)=="."?t=this.documentID.toString()+t:(t.indexOf("_1.")==0||t.indexOf("_2.")==0)&&(t=this.documentID.toString()+t),callStateManagerFunctionIfExists("isInDocumentOnlyView")){var r,i;if(this.documentID&&this.EncryptedUserID)r=this.documentID,i=this.EncryptedUserID;else if(r=document.urlAlertID&&document.urlAlertID!=0&&document.urlAlertID!=null?document.urlAlertID:getURLParameter("AlertID"),i=getURLParameter("uAlertID"),i==null&&(i=getURLParameter("uID")),r==null){CreateAttachmentLink(n,this.bookID%1e3,t);return}n.href="/Login/ViewNewsAttachment.aspx?AlertID="+r+"&AttachmentName="+encodeURIComponent(t)+"&ualertID="+encodeURIComponent(i)}else this.collectionType==KnotiaKnowledge5.CollectionType.News?n.href="NewsAttachment.aspx?ProductID="+this.productID.toString()+"&AlertID="+this.documentID.toString()+"&AttachmentName="+encodeURIComponent(t):CreateAttachmentLink(n,this.bookID%1e3,t);return!1};KnotiaKnowledge5.DocumentManager.prototype.loadAlertIDElseFetchID=function(n){var i,t;if(callStateManagerFunctionIfExists("isInDocumentOnlyView"))window.location="/Login/DirectToClientPortalLoginWithOIDParam.aspx?newsletterID="+n.toString();else{for(this.collectionType!=KnotiaKnowledge5.CollectionType.News&&(n=-1),this.tryFetchesIfAlertFails=[],i=arguments.length,t=1;t<i;t++)this.tryFetchesIfAlertFails[t-1]=arguments[t];this.loadAlertByID(n,1,!0)}};KnotiaKnowledge5.DocumentManager.prototype.displayContextMenu=function(n){var t=document.getElementById("divFetchContextMenu");return t==null&&(t=document.createElement("div"),t.id="divFetchContextMenu",t.style.position="absolute",t.style.zIndex=9999,t.style.backgroundColor="white",t.style.border="solid 1px #aca899",t.style.padding="4px 16px",document.body.appendChild(t)),t.style.display="",t.style.left=(event.clientX-24).toString()+"px",t.style.top=(event.clientY-10).toString()+"px",t.onmouseout=document.k5doc.hideContextMenu,t.innerHTML='<a target=_blank style="color:black;font-size:8pt;" href="Viewer.aspx?ProductID='+this.productID.toString()+"&FetchID="+escape(n)+'">'+GetString("str_DocNav_OpenInNewWindow")+"<\/a>",!1};KnotiaKnowledge5.DocumentManager.prototype.hideContextMenu=function(){var n=document.getElementById("divFetchContextMenu");n.style.display="none"};KnotiaKnowledge5.DocumentManager.prototype.displayFootnote=function(n){var i,t,r,u;callStateManagerFunctionIfExists("isTaggingEnabled")||(t=$("#documentFootnote_"+n.toString()),i=t.length>0?t.html():this.footnotes[n],r='<div id="definitionDiv" style="width:460px; padding-top:4px;">'+i+"<\/div>",u=createCenteredPopupDiv(r,!0,""))};KnotiaKnowledge5.DocumentManager.prototype.getAllFootnotesForHTML=function(n){for(var f=new RegExp("plink[^<>]*javascript:popupFootnote([^,]+,[^,]+,([^)]+))","gi"),t="",r=!1,u,i;(u=f.exec(n))!=null;)i=this.footnotes[u[2].toString().trim()],t=t+'<div style="padding:0px 10px 0px 10px;" >'+i+"<\/div>",i.indexOf("showScreenHidePrint")===-1&&(r=!0);return t.length>0&&(t=r?"<hr/><h1>"+GetString("str_Print_Footnotes")+"<\/h1>"+t:'<hr class="showScreenHidePrint"/><h1 class="showScreenHidePrint">'+GetString("str_Print_Footnotes")+"<\/h1>"+t),t};KnotiaKnowledge5.DocumentManager.prototype.loadDefinition=function(n){var t=createCenteredPopupDiv('<div id="definitionDiv" style="width:460px; padding-top:4px;"><img src="../Knowledge/Images/WaitAnimated.gif" border="0"><\/div>',!0,n,null,!1,{width:600,maxHeight:450});Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetDefinition",{iProductId:this.productID,sGotoStr:n},this.displayDefinition,null,null,this)};KnotiaKnowledge5.DocumentManager.prototype.displayDefinition=function(n){var t,i,r;n!=null&&(t=$("#definitionDiv"),t.length>0&&(t.html(n.d),i=$("#popUpDivFromButton"),r={my:"center",at:"center",of:window},i.dialog("option","position",r)),callStateManagerFunctionIfExists("showNoteIconsInDefinitions"))};KnotiaKnowledge5.DocumentManager.prototype.loadPreview=function(n,t,i){var r=$("#searchPreviewDiv"),u;r.length===0&&(this.controlJqueryObject.append("<div id='searchPreviewDiv' style='position:absolute; width:650px; height:650px; overflow:scroll; background-color:white; z-index:999999; zoom:50%; border:solid 1px black;'><\/div>"),r=$("#searchPreviewDiv"));u=$("#previewIcon_"+n.toString()+"_"+t.toString()+"_"+i.toString()).offset();r.css("top",u.top-20+this.controlJqueryObject.scrollTop()*2);r.css("left",u.left+355);r.html("<img src='/Knowledge/Images/WaitAnimated.gif' border='0'>");this.loadDocumentByBookDocumentID(n,t,i,this.showPreview)};KnotiaKnowledge5.DocumentManager.prototype.showPreview=function(n){var t=$("#searchPreviewDiv");t.html(n.d.PageHTML.replace(/<a[^>]*>/gi,""))};KnotiaKnowledge5.DocumentManager.prototype.loadOldNewsDocument=function(){callStateManagerFunctionIfExists("cancelProcessingTimer");Globals.Ajax.postRequest("/Services/ResearchService.svc/Document/GetOldNewsDocument",{iProductID:this.productID,sFetchID:this.fetchID},this.onGetOldNewsDocument,null,null,this)};KnotiaKnowledge5.DocumentManager.prototype.onGetOldNewsDocument=function(n){if(n==null)this.loadDocumentByGotoString(this.productID,this.fetchID);else{var t=n.d.split("_");window.open("/Knowledge/View/Detail.cfm?ProductID="+t[0]+"&DocID="+t[1])}};KnotiaKnowledge5.DocumentManager.prototype.confirmDeleteThisDocument=function(n,t){var f=confirm("Are you sure you want to permanenly remove this document?\n\nTHIS CANNOT BE UNDONE."),u;if(f){var i=window.location.toString(),r=i.indexOf("//")+2,e=i.indexOf("/",r);i=i.substr(r,e-r);u="https://"+i+"/KnowledgeAdmin/EditDocument/DeleteDocumentImmediately.aspx?bookID="+n+"&documentID="+t;window.open(u)}};KnotiaKnowledge5.DocumentManager.prototype.getNewsDocumentLinkThisDocumentLinkInformation=function(n){var t={};return t.link={},t.link.Text=null,t.link.Target=null,t.link.Description=null,t.link2=null,t.doShowFIDOText=!1,t.link.target=document.siteConfiguration&&document.siteConfiguration.doPublishStaticPageLinkInArchive?this.extraMetadata.AlertNumber?"/news/"+this.extraMetadata.AlertNumber:"/Login/ViewEmailDocument.aspx?AlertID="+this.documentID.toString():"/Knowledge/News.aspx?AlertID="+this.documentID.toString(),t.link.text=GetString("str_LinkToThisDocument"),t.link.description="",t.doShowFIDOText=!1,document.siteConfiguration.externalSiteDomain==null||document.siteConfiguration.externalSiteDomain==""||(this.extraMetadata.IsInternalOnlyContent=="true"&&this.extraMetadata.IsMarkFIDOContent=="true"&&(t.doShowFIDOText=!0),n?(t.link.target="/Knowledge/News.aspx?AlertID="+this.documentID.toString(),this.extraMetadata.IsInternalOnlyContent=="true"?this.extraMetadata.IsExternalAndInternalContent=="true"?(t.link.description="internal link",t.link2={},t.link2.description="client link",t.link2.target="https://"+document.siteConfiguration.externalSiteDomain+"/news/"+this.extraMetadata.AlertNumber):t.link.description="internal-only":(t.link.description="internal link",t.link2={},t.link2.description="client link",t.link2.target="https://"+document.siteConfiguration.externalSiteDomain+"/news/"+this.extraMetadata.AlertNumber)):this.extraMetadata.IsInternalOnlyContent=="true"?this.extraMetadata.IsExternalAndInternalContent=="true"?t.link.target="https://"+document.siteConfiguration.externalSiteDomain+"/news/"+this.extraMetadata.AlertNumber:t.link=null:t.link.target="https://"+document.siteConfiguration.externalSiteDomain+"/news/"+this.extraMetadata.AlertNumber),t};KnotiaKnowledge5.DocumentManager.prototype.createPOSTSubmitFormText=function(n,t){var r='<form method="POST" action="'+n+'">',i;for(i in t)r+='<input type="hidden" name="'+i+'" value="'+t[i]+'">';return r+"<\/form>"};KnotiaKnowledge5.DocumentManager.prototype.downloadNewsDocument_onclick=function(n,t,i,r){n==null&&(n=document.k5doc.documentID);t==null&&(t=document.k5doc.extraMetadata.AlertTitle);i==null&&(i=document.k5doc.extraMetadata.AlertNumber);r==null&&(r=document.k5doc.extraMetadata.AlertDate);var u={alertID:n,alertTitle:t,alertNumber:i,alertDate:r};Globals.Ajax.postRequest("/Services/NewsService.svc/DownloadNewsDocument",u,this.downloadNewsDocument_success,this.downloadNewsDocument_error,null)};KnotiaKnowledge5.DocumentManager.prototype.downloadNewsDocument_success=function(n){if(n=n.d,n){var i={filePath:n},t=$(createPOSTSubmitFormText("/Knowledge/NewsExport.aspx/",i));$("body").append(t);t.submit();t.remove()}};KnotiaKnowledge5.DocumentManager.prototype.downloadNewsDocument_error=function(){};KnotiaKnowledge5.EmailDocumentManager=function(){this.rememberedUserEmail=null;this.rememberdDialogID=null;document.k5email=this};KnotiaKnowledge5.EmailDocumentManager.prototype.showEmailDocumentForm=function(n,t){var r=GetString("str_ReceipientEmailNote"),u=this.getForwardEmailToAddressCountLimit(),i;u!=3&&(r=r.replace(/ 3 /," "+u.toString()+" "));i='<form id="emailNewsDocForm">';i+='<input type="hidden" id="hdnAlertID" value="'+n.toString()+'" />';i+='<input type="hidden" id="hdnUserEmail" value="" />';i+='<div id="emailNewsDoc">';i+='<table padding="1px" id="emailTable">';i+='<tr><td class="formLabel" style="text-align:right; height:25px; width:200px;">';i+=GetString("str_YourEmail")+GetString("str_Colon")+"<\/td>";i+='<td class="MostNormal" id="displayUserEmail"><\/td><\/tr>';i+='<tr valign="top"><td class="formLabel" style="text-align:right; height:50px;">';i+=GetString("str_ReceipientEmail")+GetString("str_Colon")+"<\/td>";i+='<td id="tdEmailRecipients"><textarea id="emailRecipients" style="width:220px; height:38px;" class="normalFixed js--textbox--adjust-width js--textbox--round-corners"><\/textarea>';i+='<br><span class="formNote" style="width:200px;">';i+=r+"<\/span><\/td><\/tr>";i+='<tr> <td class="formLabel" style="text-align:right; height:25px;">';i+=GetString("str_SendCopy")+GetString("str_Colon")+"<\/td>";i+='<td><input type="checkbox" id="sendMeCopy" /><\/td><\/tr>';i+='<tr valign="top"><td class="formLabel" style="text-align:right;">';i+=GetString("str_Subject")+GetString("str_Colon")+"<\/td>";i+='<td><textarea id="emailSubject" style="width:220px; height:38px;" class="normalFixed js--textbox--adjust-width js--textbox--round-corners">';i+=t+"<\/textarea><\/td><\/tr>";i+='<tr valign="top"><td class="formLabel" style="text-align:right;">';i+=GetString("str_PersonalMsg")+GetString("str_Colon")+"<br/>(";i+=GetString("str_Optional")+")<\/td><td>";i+='<textarea id="emailMessage" style="width:220px; height:38px;" class="normalFixed js--textbox--adjust-width js--textbox--round-corners"><\/textarea><\/td><\/tr>';i+='<tr><td class="formLabel js--button--align-wrapper" style="text-align:right;" colspan="2">';i+='<input type="button" id="btnSendEmail" class="normalFixed js--button--convert-to-jQuery" ';i+='style="width:z75px;margin-top:20px; margin-right:5px;" onclick="document.k5email.handleSendEmailClick()" value="';i+=GetString("str_Send")+'" />';i+='<input type="button" id="btnCancelEmail" class="normalFixed js--button--convert-to-jQuery" style="width:75px;margin-top:20px;" ';i+='onclick="document.k5email.handleCancelEmailClick()" value="';i+=GetString("str_Cancel")+'" /><\/td><\/tr><\/table>';i+='<p class="formNote"><b>Note'+GetString("str_Colon")+" <\/b>"+GetString("str_NoteEmailMsg")+"<\/p>";i+="<\/div><\/form>";this.rememberdDialogID=Globals.UI.showSimpleDialog(i,GetString("str_ucTB_EmailDoc"),620,388);Globals.UI.knotiaFlatModernizeStandardButtons("#emailNewsDoc");this.rememberedUserEmail==null?Globals.Ajax.postRequest("/Services/NewsService.svc/GetUserEmailAddress",null,this.rememberUserEmail,this.displayUserEmailField,null,this,null,!0):this.displayUserEmail()};KnotiaKnowledge5.EmailDocumentManager.prototype.rememberUserEmail=function(n){this.rememberedUserEmail=n.d;this.displayUserEmail()};KnotiaKnowledge5.EmailDocumentManager.prototype.displayUserEmail=function(){$("#hdnUserEmail").val(this.rememberedUserEmail);$("#displayUserEmail").text(this.rememberedUserEmail)};KnotiaKnowledge5.EmailDocumentManager.prototype.displayUserEmailField=function(){var n=$("#hdnUserEmail").remove();$("#displayUserEmail").html(n);$("#hdnUserEmail").attr("type","text");$("#hdnUserEmail").width($("#emailRecipients").width())};KnotiaKnowledge5.EmailDocumentManager.prototype.showEmailDocumentFormError=function(n){var t=$("#errorText");$("#emailRecipients").css({border:"1px solid red"});t.length>0?t.html(n):(t=$("<p id='errorText' class='formError' style='text-align:center;'>"+n+"<\/p>"),$("#tdEmailRecipients").append(t))};KnotiaKnowledge5.EmailDocumentManager.prototype.handleSendEmailClick=function(){var r=$("#emailRecipients").val(),t=r.split(","),i=!0,n,u,f;for(r.length===0&&(i=!1),n=0;n<t.length&&i===!0;n++)t[n]=t[n].replace(" ",""),/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(t[n])||(this.showEmailDocumentFormError(GetString("str_BadEmailFormatting")+t[n]),i=!1);if(u=this.getForwardEmailToAddressCountLimit(),f=GetString("str_TooManyEmailAddresses"),u!=3&&(f=f.replace(/ 3 /," "+u.toString()+" ")),t.length>u&&(this.showEmailDocumentFormError(f),i=!1),i){var e=$("#hdnAlertID").val(),r=$("#emailRecipients").val(),o=$("#emailSubject").val(),s=$("#emailMessage").val(),h=$("#sendMeCopy").is(":checked");this.emailNewsDocument(e,r,o,s,h)}};KnotiaKnowledge5.EmailDocumentManager.prototype.handleCancelEmailClick=function(){this.rememberdDialogID!=null?Globals.UI.closejQueryToolbarDialog(this.rememberdDialogID):Globals.UI.closejQueryToolbarDialog("tsi_share_emaildocument")};KnotiaKnowledge5.EmailDocumentManager.prototype.emailNewsDocument=function(n,t,i,r,u){var f,e,o;$("#btnSendEmail").attr("disabled","disabled");$("#btnCancelEmail").attr("disabled","disabled");f="";e=$("input[type=text]#hdnUserEmail");e.length>0&&(f=e.val());o={alertID:n,emailRecipients:t,emailSubject:i,emailMessage:r,bSendMeACopy:u,emailSender:f};Globals.Ajax.postRequest("/Services/NewsServiceNotLoggedIn.svc/EmailNewsDocument",o,this.emailNewsDocument_success,this.emailNewsDocument_error,"/Services/NewsService.svc/EmailNewsDocument")};KnotiaKnowledge5.EmailDocumentManager.prototype.emailNewsDocument_success=function(n){var f=document.k5email,r=n.d[0],u=n.d[1],t="",i;if(r!=null&&r.length>0){for(t+="<p class='MostNormal'><b>"+GetString("str_EmailSent")+GetString("str_Colon")+"<\/b><br/>",i=0;i<r.length;i++)t+=r[i]+"<br/>";t+="<\/p>"}if(u!=null&&u.length>0){for(t+="<p class='MostNormal'><b>This internal-only alert could not be delivered to these external addresses:<\/b><br/>",i=0;i<u.length;i++)t+=u[i]+"<br/>";t+="<\/p>"}t+='<p style="text-align:right;"><input type="button" id="btnOK" class="normalFixed js--button--convert-to-jQuery" style="width:75px;" onclick="document.k5email.handleCancelEmailClick()" value="';t+=GetString("str_Print_Close")+'"/><\/p>';$("#emailNewsDoc").html(t);Globals.UI.knotiaFlatModernizeStandardButtons("#emailNewsDoc")};KnotiaKnowledge5.EmailDocumentManager.prototype.emailNewsDocument_error=function(n){Svc_Global_Error(n,"document.k5toolbar.newsButtons.emailNewsDocument",!1);Globals.UI.closejQueryToolbarDialog("tsi_share_emaildocument")};KnotiaKnowledge5.EmailDocumentManager.prototype.getForwardEmailToAddressCountLimit=function(){var n=callStateManagerFunctionIfExists("useBucketTreeview");return n==null?20:n?20:3}