var plc=function(){var A=true;var C=null;var B=[];function D(){var E="./services/web/html/resource/resource.xml";if(B.locale.toUpperCase()==="US"){E="./services/web-us/html/resource/resource.xml";}PLC.xhr.request(E,{format:"XML",onSuccess:function(F,G){C=PLC.util.xml.parse(G);}});}return{debug:function(){return A;},log:function(H,G,F){var E="";if(F){E+="["+F.toUpperCase()+"]: ";}if(G){E+=G+": ";}E+=H;if(plc.debug()){if(window.console){console.log(E);}else{window.alert(E);}}},setEnv:function(F){for(var E=0;E<F.length;E++){if(!B[F[E].name]){B[F[E].name]=F[E].value;}}},getEnv:function(){return B;},getResourceFile:function(){if(!C&&B.locale){D();}return C;}};}();function hideHeader(B,A){if(!PLC.g(B)){return ;}if(A){PLC.g(B).style.display="none";}else{PLC.g(B).style.display="block";}}function moveDCForm(B,C){var D=PLC.g("dCommentForm");var A=null;if(B!==null){A=PLC.g("dc"+B);}else{A=PLC.g("replyToResForm");}D.parentNode.removeChild(D);A.appendChild(D);if(C===null){PLC.g("submitReply").focus();
PLC.g("addCommentArea").focus();}}function submitDCReply(){var A=document.dCommentForm;A.c.value=A.addCommentArea.value.trim();A.cName.value=A.cName.value.trim();if(A.c.value!==""&&A.isSubmitted.value!="true"){if(A.cName.value===""){alert("Your name or nickname is required.");return ;}A.isSubmitted.value="true";A.submit();}}function replyToComment(A){moveDCForm(A);document.dCommentForm.p.value=A;PLC.g("cancelReply").style.display="block";}function replyToRes(A){if(document.dCommentForm.p.value!="0"){moveDCForm(null,A);document.dCommentForm.p.value="0";PLC.g("cancelReply").style.display="none";}else{PLC.g("submitReply").focus();PLC.g("addCommentArea").focus();}}function cancelReply(){replyToRes(false);document.dCommentForm.addCommentArea.value="";}var menu=null;function displayOptions(F,G){var B=F.split("|");var H=[];for(var E=0;E<B.length-1;E++){H[E]=B[E].split(",");}if(menu===null){menu=document.createElement("div");menu.className="primarySourceLink";document.body.appendChild(menu);}else{menu.style.display="block";
}var A="<div style='float:right'><a href='javascript:void(0)' onclick='showPrimaryLinkHelp()'>help</a> / <a href='javascript:void(0)' onclick='menu.style.display=&quot;none&quot;'>close</a></div>";for(var C=0;C<H.length;C++){A+="<a style='font-weight:bold' href='"+H[C][0]+"' target='_blank'>"+H[C][1]+"</a>";A+=(C!=H.length-1?"<br />":"");}var D="<div class='primaryLinkHelpText' id='linkHelp' style='display:none'>Before relying on any legislative source you are advised to check whether it is consolidated and, if so, whether the consolidation is up-to-date.</div>";menu.innerHTML=A+D;menu.style.top=plc.window.mouseY+"px";menu.style.left=plc.window.mouseX+"px";}function showPrimaryLinkHelp(){var A=document.getElementById("linkHelp");A.style.display="block";}plc.askPlcComments=function(){function E(Q){var O=[];O.push(/\s/);O.push(/&nbsp;/);O.push(/<p>((&nbsp;)|\s)+<\/p>/);for(var P=0;P<O.length;){if(Q.search(O[P])===0){Q=Q.replace(O[P],"");}else{P++;}}var N=Q.length;while(N>0&&Q.charAt(N-1)===" "){N--;
}Q=Q.substring(0,N);return Q;}function A(R){R=R.replace(/<!--.*?>.*?<!\[endif\]-->/g,"");var O=R.match(/<\/?.*?>/g);for(var N=0;O&&N<O.length;N++){if(!(O[N].search(/<\/?[buipa]|(ol|li|ul|strong|em)>/)>-1)){R=R.replace(O[N],"");}}var Q=[];Q.push(/<em>((&nbsp;)|\s)*<\/em>/);Q.push(/<u>((&nbsp;)|\s)*<\/u>/);Q.push(/<i>((&nbsp;)|\s)*<\/i>/);Q.push(/<strong>((&nbsp;)|\s)*<\/strong>/);Q.push(/<b>((&nbsp;)|\s)*<\/b>/);Q.push(/<li>((&nbsp;)|\s)*<\/li>/);Q.push(/<ul>((&nbsp;)|\s)*<\/ul>/);Q.push(/<ol>((&nbsp;)|\s)*<\/ol>/);Q.push(/<p>((&nbsp;)|\s)*<\/p>/);for(var P=0;P<Q.length;){if(R.search(Q[P])>-1){R=R.replace(Q[P],"");}else{P++;}}return R;}function C(S){var U=S.match(/http:\/\/[a-zA-Z\.\?\/&0-9%\-_~#\!,\|\=\+;]+/gi);for(var R=0;U&&R<U.length;R++){var T=false;if(R>0){for(var Q=0;Q<R;Q++){if(U[Q]===U[R]){T=true;break;}}}if(!T){var V=U[R].replace((/&nbsp;.*/),"");var N=encodeURIComponent(V);var P=encodeURIComponent(S);var O=new RegExp(N,"g");S=decodeURIComponent(P.replace(O,'<a href="'+V+'" target="_blank">'+V+"</a>"));
}}return S;}function L(N){N=N.replace(/target=('|").*?('|")/gi,"");N=N.replace(/<a /gi,'<a target="_blank" ');return N;}function I(){var O=PLC.g("commentTermsAccepted").checked;var N=PLC.g("error2").style.display!="none";if(N&&O){PLC.g("error2").style.display="none";}}function G(N){return N&&N.length!==0;}function F(){var O=true;var N=PLC.g("commentTermsAccepted").checked;if(!N){PLC.g("error2").style.display="";O=false;}var P=PLC.g("comments").value;P=A(E(P));if(!G(P)){PLC.g("error1").style.display="";O=false;}return O;}function K(){PLC.g("error1").style.display="none";}function J(){K();PLC.g("error2").style.display="none";}function H(){J();PLC.g("comments").value=tinyMCE.getContent();if(F()){var N=PLC.g("comments").value;N=E(A(N));N=L(N);PLC.g("comments").value=N;if(!PLC.g("url").value||PLC.g("url").value===""){PLC.g("url").value=window.location;}PLC.g("commentReplyForm").submit();}}function D(O){var P=confirm("Are you sure you want to delete this comment?");if(P){var N="&url="+encodeURIComponent(window.location);
window.location="/cs/spring/removeComment?commentId="+O+N;}return false;}function M(P){var N=P.substring(5);PLC.g("addReplyHeader").style.display="none";PLC.g("editReplyHeader").style.display="block";PLC.g("postAnonymouslyOptions").style.display="none";PLC.g("cancelEditComment").style.display="inline";PLC.g("commentReplyForm").action="/cs/spring/addComment";PLC.g("comment_id").value=N;var Q=PLC.g("comment_"+N).innerHTML;tinyMCE.setContent(Q);var O=""+window.location;PLC.g("commentTermsAccepted").focus();}function B(){PLC.g("addReplyHeader").style.display="block";PLC.g("editReplyHeader").style.display="none";PLC.g("postAnonymouslyOptions").style.display="block";PLC.g("cancelEditComment").style.display="none";PLC.g("commentReplyForm").action="/cs/spring/addComment";tinyMCE.setContent(" ");PLC.g("commentTermsAccepted").checked=false;PLC.g("comment_id").value="";}return{confirmDelete:D,submitComment:H,enableEditPost:M,cancelEditPost:B,acceptTerms:I,clearEmptyCommentError:K};}();function Pager(B,A){this.ul_ID=B;
this.itemsPerPage=A;this.currentPage=1;this.pages=0;this.inited=false;this.showRecords=function(F,E){var D=document.getElementById(B).getElementsByTagName("li");for(var C=0;C<D.length;C++){if(C<F||C>E){D[C].style.display="none";}else{D[C].style.display="";}}};this.showPage=function(C){if(!this.inited){return ;}var G=document.getElementById("pg"+this.currentPage);G.className="pg-normal";this.currentPage=C;var D=document.getElementById("pg"+this.currentPage);D.className="pg-selected";var F=(C-1)*A;var E=F+A-1;this.showRecords(F,E);document.getElementById("pre_btn").style.display="";document.getElementById("next_btn").style.display="";if(C==1){document.getElementById("pre_btn").style.display="none";}else{if(C==this.pages){document.getElementById("next_btn").style.display="none";}}};this.prev=function(){if(this.currentPage>1){this.showPage(this.currentPage-1);}};this.next=function(){if(this.currentPage<this.pages){this.showPage(this.currentPage+1);}};this.init=function(){var D=document.getElementById(B).getElementsByTagName("li");
var C=D.length;this.pages=Math.ceil(C/A);this.inited=true;};this.showPageNav=function(E,C){if(!this.inited){return ;}var D=document.getElementById(C);var F='<span id="pre_btn" onclick="'+E+'.prev();" class="pg-normal">Previous</span>';for(var G=1;G<=this.pages;G++){F+='<span id="pg'+G+'" class="pg-normal" onclick="'+E+".showPage("+G+');">'+G+"</span>";}F+='<span id="next_btn" onclick="'+E+'.next();" class="pg-normal">Next</span>';D.innerHTML=F;};}plc.behaviours=function(){var A=null;function C(M,L,J){switch(J){case"topic-tree-branch":plc.window.toggleTopicTreeBranch(L);L.killEvent=true;break;case"expandable":if(L.tagName.toUpperCase()==="LI"){if(PLC.dom.findParentNode({leaf:L,tagName:"UL",className:"expandable-tree"})){PLC.classes.toggle(L,"expanded");L.killEvent=true;var K=PLC.elements({root:L,tagName:"a"});for(var I=0;I<K.length;I++){PLC.event.add(K[I],"click",PLC.event.stopPropagation);}}}break;case"topic-index-link":plc.window.toggleTopicIndex(L);L.killEvent=true;break;case"keyword-finder-link":plc.widget.keywordFinder.focusKeyword(L);
L.killEvent=true;break;case"contentsLink":plc.window.scrollToAnchor(M,L);L.killEvent=true;break;case"draftingNoteTop":plc.window.toggleNote(L.parentNode);L.killEvent=true;break;case"draftingNoteClose":plc.window.toggleNote(L.parentNode.parentNode,true);L.killEvent=true;break;case"plc-validation-submit":plc.widget.validation.validate(M,L);L.killEvent=true;break;case"localeMessageDisableLink":plc.window.disableLocaleWarning(M,L);L.killEvent=true;break;case"setPreferredLocaleLink":plc.window.setPreferredLocaleLink(M,L);L.killEvent=true;break;case"draftingNoteControlLink":PLC.event.preventDefault(M);break;case"meta-display-link":plc.window.displayMeta(M,L);L.killEvent=true;break;case"meta-history-link":plc.window.displayMeta(M,L,"meta-history-");L.killEvent=true;break;case"speedread-link":plc.window.toggleSpeedread(M,L);L.killEvent=true;break;case"login-restricted-action":alert("Please login to access this content");break;case"user-feedback-link":PLC.event.preventDefault(M);plc.window.openFeedbackWindow(M,L);
L.killEvent=true;break;case"embedded-resources-link":plc.window.toggleEmbeddedResources(M,L);L.killEvent=true;break;case"glossary-item-link":plc.window.toggleGlossaryItem(M,L);PLC.event.preventDefault(M);L.killEvent=true;break;case"meta-print-link":if(window.event){PLC.event.preventDefault(M);}window.print();L.killEvent=true;return false;case"inline-image-popup":window.open(L.src,"image","toolbar=0,location=0");L.killEvent=true;break;case"history-link-back":history.go(-1);L.killEvent=true;break;case"has-sub-menu":PLC.event.preventDefault(M);plc.widget.submenu.showTopicSubMenu(M,L);L.killEvent=true;break;case"qa-question-link":plc.window.qaQuestionLink(M,L);L.killEvent=true;break;case"country-list-jump":PLC.event.preventDefault(M);plc.widget.countrypopup.gotoAnchor(L);L.killEvent=true;break;case"country-list-jump-top":PLC.event.preventDefault(M);plc.widget.countrypopup.gotoTop();L.killEvent=true;break;case"dialogBtnClose":L.killEvent=false;if(A){var H=PLC.g("country_list"),N="";N=H.parentNode.innerHTML;
H.parentNode.innerHTML="";A.innerHTML=N;}break;case"email-prefs-multi-select":plc.widget.emailprefs.selectAll(L);L.killEvent=true;break;case"askPlcDeleteComment":plc.askPlcComments.confirmDelete(L.id);break;case"askPlcEditComment":plc.askPlcComments.enableEditPost(L.id);PLC.event.preventDefault(M);L.killEvent=true;break;}}function B(M,L){var J=L.tagName.toUpperCase();if(J==="A"){if(L.href.indexOf("#")!=-1&&L.href.indexOf("#null")===-1){var K=PLC.g(L.href.split("#")[1]);if(K){var I=PLC.dom.findParentNode({leaf:K,tagName:"div",className:"draftingNote"});if(I){if(PLC.classes.has(I,"draftingNote")){plc.window.toggleNote(I);L.killEvent=true;}}}}}if(J==="BODY"){if(PLC.g("switch_search_link_new")){var N=PLC.g("switch_search_link_new");if(N.tt){N.tt.hide();}}if(PLC.g("switch_search_link_old")){var H=PLC.g("facetedsearch_container");if(H&&H.tt){H.tt.hide();}}}}function G(N,M){switch(M.id){case"dnote_action_dn":PLC.g("resource_note_actions").className="dnote-control-dn";PLC.g("resource_content").className="viewingDocAndNotes";
M.killEvent=true;break;case"dnote_action_d":PLC.g("resource_note_actions").className="dnote-control-d";PLC.g("resource_content").className="viewingDocument";M.killEvent=true;break;case"dnote_action_n":PLC.g("resource_note_actions").className="dnote-control-n";PLC.g("resource_content").className="viewingNotes";M.killEvent=true;break;case"dnote_action_show":PLC.classes.toggle(M,"dnote-display-show");plc.window.toggleAllNotes(N,M);M.killEvent=true;break;case"fastdraft_message_go":var L=PLC.g("fastdraft_integration_form");if(L){L.submit();}M.killEvent=true;break;case"fastdraft_user_home_link":var K=PLC.g("fastdraft_integration_form");if(K){K.fdAction.value="fdUserHome";K.submit();}M.killEvent=true;break;case"qanda_select_questions":plc.window.qandaSelect("questions",true);break;case"qanda_deselect_questions":plc.window.qandaSelect("questions");break;case"qanda_select_jurisdictions":plc.window.qandaSelect("jurisdictions",true);break;case"qanda_deselect_jurisdictions":plc.window.qandaSelect("jurisdictions");
break;case"cpd_answer":var J=confirm("Is this your final answer ?");if(J){PLC.g("cpd_answer_from").submit();}M.killEvent=true;break;case"switch_button_old":window.location.href="/?view=cselement:PLC/Search/Search";break;case"switch_button_new":window.location.href="/5-502-9982";break;case"switch_search_link_old":PLC.event.preventDefault(N);var I=PLC.g("facetedsearch_container");if(!I.tt){I.tt=new PLC.Tooltip({html:"If you'd like to switch to our old standard search, please click the button below. Note: this will take you to the old search page. You will need to re-enter your search term and search again.<br/><button id='switch_button_old'>Switch to old standard search</button>",id:"switch_link_tool_tip",width:355,yOffset:0,xOffset:-150});}setTimeout(function(){I.tt.showBy(M);},100);M.killEvent=true;break;case"switch_search_link_new":PLC.event.preventDefault(N);if(M.tt){M.tt.showBy(M);}else{M.tt=new PLC.Tooltip({html:"This search will help you refine your search results more quickly. You can find out more about faceted search and use this new search function by clicking on the button below.<br/><button id='switch_button_new'>Switch to new faceted search</button>",id:"switch_link_tool_tip",width:350});
setTimeout(function(){M.tt.showBy(M);},100);}M.killEvent=true;break;case"button_more_countries":var H=PLC.g("country_list");var O="";if(H){if(!A){A=H.parentNode;}O=A.innerHTML;A.innerHTML="";plc.widget.countrypopup.show(O);M.killEvent=true;PLC.event.preventDefault(N);}break;case"commentSubmit":plc.askPlcComments.submitComment();break;case"commentTermsAccepted":plc.askPlcComments.acceptTerms();break;case"cancelEditComment":plc.askPlcComments.cancelEditPost();break;}}function E(K,J){J=J||K.target||K.srcElement;if(J){if(J.killEvent){J.killEvent=null;}if(J.id){G(K,J);}if(!J.killEvent){var I=J.className.split(" ");for(var H=0;H<I.length;H++){C(K,J,I[H]);}B(K,J);if(J!==document.body&&!J.killEvent&&J.parentNode){E(K,J.parentNode);}}}}function D(){if(PLC.g("intpn_jurisdiction_filter")){PLC.event.add(PLC.g("intpn_jurisdiction_filter"),"change",plc.window.changeIntPNJurisdiction);}else{if(PLC.g("updates_timeperiod_filter")){PLC.event.add(PLC.g("updates_timeperiod_filter"),"change",plc.window.submitFormOnChange);
}}if(PLC.g("service_nav_home_uk")){var H=PLC.g("service_nav_list");PLC.event.add(PLC.g("service_nav_home_uk"),"mouseover",function(I){plc.window.showMenuLink(H);return ;});PLC.event.add(PLC.g("service_nav_list"),"mouseover",function(I){plc.window.showMenu(H);return ;});PLC.event.add(PLC.g("service_nav_list"),"mouseout",function(I){plc.window.hideMenu(H);return ;});if(PLC.g("commentReplyForm")){PLC.event.add(PLC.g("comments"),"focus",function(I){plc.askPlcComments.clearEmptyCommentError();return ;});}}if(PLC.g("service_nav_home_us")){PLC.event.add(PLC.g("service_nav_home_us"),"click",function(J){var I=J||window.event;plc.window.slideText(I,true);PLC.event.preventDefault(I);});PLC.event.add(document.body,"click",function(I){plc.window.slideText(I||window.event);});}if(PLC.g("header_search_field")){PLC.event.add(PLC.g("header_search_field"),"focus",plc.window.showSearchTips);PLC.event.add(PLC.g("header_search_field"),"blur",plc.window.hideSearchTips);}}function F(){PLC.event.add(document.body,"click",E);
D();}return{init:function(){PLC.event.add(window,"load",F);}};}();plc.behaviours.init();plc.commentsModeration=function(){function C(){var M=PLC.g("daySelection");var N=PLC.g("serviceSelection");var O=M.options[M.selectedIndex].value;var L=(N.options.length>0)?encodeURIComponent(N.options[N.selectedIndex].value):"none";return"?view=cselement:CommentsAdmin&daysSince="+O+"&service="+L;}function D(M){var O=M;var L=PLC.g("daySelection");L.selectedIndex=0;for(var N=0;N<L.options.length;N++){if(O===L.options[N].value){L.selectedIndex=N;break;}}}function J(){var L=PLC.g("serviceSelection");for(var M=0;M<L.options.length;M++){PLC.g(L.options[M].value).style.display="none";}}function I(M){J();var L=PLC.g("serviceSelection");if(L.options.length>0){PLC.g(L.options[M].value).style.display="block";}}function H(){var M=""+window.location;var N=M.match(/service=[a-zA-Z0-9\%\-_]*/);var L="";if(N){L=decodeURIComponent(N[0].replace("service=",""));}return L;}function G(){var M=0;var O=H();if(O!==""){var L=PLC.g("serviceSelection");
for(var N=0;N<L.options.length;N++){if(L.options[N].value===O){M=N;L.selectedIndex=N;break;}}}I(M);}function B(N,M){var O=confirm("Are you sure you want to delete this comment?");if(O){M=M.match(/#.*/)[0];var L="&url="+encodeURIComponent("http://"+window.location.host+"/"+C()+M);window.location="/cs/spring/removeComment?commentId="+N+L;return true;}return false;}function A(){window.location=C();}function E(){var L=PLC.g("serviceSelection");I(L.selectedIndex);}function F(O,N){N=N||O.target||O.srcElement;if(N){var M=N.className.split(" ");for(var L=0;L<M.length;L++){if(M[L]==="moderationDelete"){B(N.id,""+N.href);break;}}}}function K(L){PLC.event.add(PLC.g("daySelection"),"change",A);PLC.event.add(PLC.g("serviceSelection"),"change",E);PLC.event.add(PLC.g("commentsModerationContainer"),"click",F);D(L);G();}return{init:K};}();plc.facetedsearch=function(){function B(){document.cookie="disable_facetedsearch=true;domain=practicallaw.com;path=/";if(location.href.indexOf("/facetedsearch?")!=-1){location.href="/?view=cselement:PLC/Search/Search";
}else{window.location.reload();}}function A(){document.cookie="disable_facetedsearch=false;domain=practicallaw.com;path=/";if(location.pathname!="facetedsearch"){location.href="/facetedsearch";}else{window.location.reload();}}return{switch_standard:B,switch_faceted:A};}();plc.inlineValidation=function(){var C=function(I,G){var F=[];var E=document.getElementById(G);if(!E){E=document;}var J=E.getElementsByTagName("*");for(var H=0;H<J.length;H++){if(J[H].className!==null&&(I==J[H].className||PLC.classes.has(J[H],I))){F.push(J[H]);}}return F;};var B=function(E,F,H){try{E.addEventListener(F,H,true);}catch(G){E.attachEvent("on"+F,H);}};var D=function(H,I,F){var G=document.createElement("ul");G.className="messages";if(F){G.className=F;}var E=document.createElement("li");E.innerHTML=I;G.appendChild(E);H.parentNode.appendChild(G);};var A=function(G){var E=G.parentNode.getElementsByTagName("ul");for(var F=0;F<E.length;F++){if(E[F].className=="messages"){G.parentNode.removeChild(E[F]);}}};this.enable=function(){var F=C("required");
for(var H=0;H<F.length;H++){B(F[H],"change",this.validateInputFunc(F[H],this.validationFunctions));B(F[H],"blur",this.validateInputFunc(F[H],this.validationFunctions));B(F[H],"keyup",this.validateInputFunc(F[H],this.validationFunctions));B(F[H],"change",this.enableGatekeepersFunc);B(F[H],"blur",this.enableGatekeepersFunc);B(F[H],"keyup",this.enableGatekeepersFunc);PLC.classes.add(F[H].parentNode,"unvalidated");}var E=C("gatekeeper");for(var G=0;G<E.length;G++){E[G].disabled=true;}};this.validateInputFunc=function(E,F){return function(H){if(!H){H=window.event;}if(H&&H.type==="keyup"){if(H.which===9||H.keyCode===9){return ;}}var G=C("required");for(var K=0;K<G.length;K++){var L="valid";var J="invalid";if(!PLC.classes.has(G[K].parentNode,"hidden")){A(G[K]);for(var I=0;I<F.length;I++){var M=F[I](G[K]).message;if(M){L="invalid";J="valid";D(G[K],M);break;}}PLC.classes.add(G[K].parentNode,L);PLC.classes.remove(G[K].parentNode,J);PLC.classes.remove(G[K].parentNode,"unvalidated");}if(E==G[K]){break;
}}};};this.enableGatekeepersFunc=function(){return function(){var I=C("required");var J=false;for(var G=0;G<I.length;G++){var H=I[G].parentNode;if((PLC.classes.has(H,"invalid")||PLC.classes.has(H,"invalidother")||PLC.classes.has(H,"unvalidated"))&&!PLC.classes.has(H,"hidden")){J=true;break;}}var E=C("gatekeeper");for(var F=0;F<E.length;F++){E[F].disabled=J;}};}();this.validationFunctions=[];return{enable:this.enable,enableGatekeepersFunc:this.enableGatekeepersFunc,validateInputFunc:this.validateInputFunc,validationFunctions:this.validationFunctions,displayErrorMessage:D};}();plc.postpone=function(){var A=function(C){var E=document.cookie;var B=E.indexOf(C);if(B>-1){var D=E.indexOf(";",B);if(D<0){D=E.length;}return E.substring(B+C.length+1,D);}else{return null;}};this.shouldDisplayPostpone=function(){var B=parseInt(A("plc-postpone"),10);return(isNaN(B)||B<3);};this.renderPostpone=function(C,D){var B=PLC.dom.create({tagName:"A",id:"postponeLink",className:"postponeLink",attributes:{href:"#"},innerHTML:"Postpone",appendTo:PLC.g(C)});
PLC.event.add(B,"click",this.postponeFunction(D));};this.postponeFunction=function(B){return function(){var D=Number(A("plc-postpone"));if(!D||D=="NaN"){D=0;}D=D+1;var C=new Date();C=new Date(C.setFullYear(C.getFullYear()+1));document.cookie="plc-postpone="+D+";expires="+C.toGMTString()+";domain=.practicallaw.com";document.cookie="plc-postpone-ticket=true;domain=.practicallaw.com";window.location=B;};};this.enable=function(B,C){if(this.shouldDisplayPostpone()){this.renderPostpone(B,C);}};return this;}();plc.resource=function(){function C(G,F){var E=PLC.g(G);var D=PLC.g(F);if(E&&D){D.innerHTML=E.innerHTML;D.style.display="block";}}function B(){C("resource_history_data","resource_history");C("resource_note_data","resource_note_actions");C("book_navigation_data","alternativeTitle");}function A(){PLC.event.add(window,"load",B);}return{init:A};}();plc.servicePage=function(){var C=null;function A(F,J,E){var I=(J==="*"&&F.all)?F.all:F.getElementsByTagName(J);var L=[];E=E.replace(/\-/g,"\\-");var K=new RegExp("(^|\\s)"+E+"(\\s|$)");
var H;for(var G=0;G<I.length;G++){H=I[G];if(K.test(H.className)){L.push(H);}}return(L);}function B(F,E,G){F.style.background="url('"+C.items[G].image+"')";F.style.backgroundPosition="right center";F.style.backgroundRepeat="no-repeat";F.innerHTML=C.items[G].title;E.innerHTML="<a href="+C.items[G].link+' alt="">'+C.items[G].content+"</a>";}function D(K){if(!K){return ;}C=K;if(!PLC.g(C.target)){return ;}var F=[];for(var I=0;I<C.items.length;I++){F[I]=I;}F.sort(function(){return(Math.round(Math.random())-0.5);});var E=PLC.g(C.target);var J=A(E,"div","ad-header");var G=A(E,"div","ad-content");for(var H=0;H<G.length;H++){if(G.length>C.items.length){F=F.concat(F);}B(J[H],G[H],F[H]);}}return{init:D};}();plc.util=function(){var D={encodeUTF8:function(H){H=H.replace(/\r\n/g,"\n");var G="";for(var J=0;J<H.length;J++){var I=H.charCodeAt(J);if(I<128){G+=String.fromCharCode(I);}else{if((I>127)&&(I<2048)){G+=String.fromCharCode((I>>6)|192);G+=String.fromCharCode((I&63)|128);}else{G+=String.fromCharCode((I>>12)|224);
G+=String.fromCharCode(((I>>6)&63)|128);G+=String.fromCharCode((I&63)|128);}}}return G;},decodeUTF8:function(G){var I="";var K=0;var M=0;var L=0;var J=0;var H=0;while(K<G.length){M=G.charCodeAt(K);if(M<128){I+=String.fromCharCode(M);K++;}else{if((M>191)&&(M<224)){J=G.charCodeAt(K+1);I+=String.fromCharCode(((M&31)<<6)|(J&63));K+=2;}else{J=G.charCodeAt(K+1);H=G.charCodeAt(K+2);I+=String.fromCharCode(((M&15)<<12)|((J&63)<<6)|(H&63));K+=3;}}}return I;}};function A(O){var H=[];var L=O.childNodes;var G=L.length;for(var M=0;M<G;M++){if(L[M].nodeType===1){H[H.length]=[];var I=H[H.length];I.name=L[M].tagName;var N=L[M].childNodes;if(N){var K=N.length;for(var J=0;J<K;J++){if(N[J].childNodes.length){if(N[J].childNodes[0].nodeType===1){I[N[J].tagName]=A(N[J]);}else{if(N[J].childNodes[0].nodeType===3){I[N[J].tagName]=N[J].childNodes[0].nodeValue;}}}}}}}return H;}function F(H,J,K){var I=H.split("?");if(I.length==1){return H+"?"+J+"="+K;}else{var G=I[I.length-1].split("#");G[0]+="&"+J+"="+K;I[I.length-1]=G.join("");
return I.join("?");}}var B={article:{render:function(H,L){var J="",K=null,M=null,G=PLC.dom.getElements({tagName:"abstract",document:H}),I=null;if(G){J=plc.util.flattenXml(G[0]);}else{K=PLC.dom.getElements({tagName:"description",document:H});if(K){J=plc.util.flattenXml(K[K.length-1]);}else{M=PLC.dom.getElements({tagName:"errors",document:H});if(M){J=plc.util.flattenXml(M[0]);}}}if(!J&&this.id.indexOf("metadata-preload")!==-1){I=PLC.g("metadata:"+this.id.split("metadata-preload:")[1]);if(I){J=I.childNodes[0].data;}}if(J!==this.tt.node.innerHTML){this.tt.update(J);}},baseUrl:"?pagename=XMLWrapper&childpagename=PLC/PLC_Doc_C/ResourceXMLView&c=PLC_Doc_C&cid="},topic:{render:function(H,K){var J="",G=PLC.dom.getElements({tagName:"editorial",document:H}),I=null;if(G){J=plc.util.flattenXml(G[0]);}if(!J&&this.id.indexOf("metadata-preload")!==-1){I=PLC.g("metadata:"+this.id.split("metadata-preload:")[1]);if(I){J=I.childNodes[0].data;}}if(J!==this.tt.node.innerHTML){this.tt.update(J);}},baseUrl:"?pagename=XMLWrapper&childpagename=PLC/PLC_Doc_C/ResourceXMLView&c=PLC_Doc_C&cid="},glossitem:{render:function(G,K){var J="",I=PLC.dom.getElements({tagName:"glossdef",document:G}),H=null;
if(I){J=plc.util.flattenXml(I[0]);}if(!J&&this.id.indexOf("metadata-preload")!==-1){H=PLC.g("metadata:"+this.id.split("metadata-preload:")[1]);if(H){J=H.childNodes[0].data;}}if(J!==this.tt.node.innerHTML){this.tt.update(J);}},baseUrl:"?pagename=XMLWrapper&childpagename=PLC/PLC_Doc_C/ResourceXMLView&c=PLC_Doc_C&cid="},external:{render:function(G,L){var K="",J=PLC.dom.getElements({tagName:"identifier",document:G}),I=null;if(J){var H=J[0].childNodes[0].data;K="<p><strong>"+K+"</strong></p>";K+='<p><a href="'+H+'">'+H+"</a></p>";}if(!K&&this.id.indexOf("metadata-preload")!==-1){I=PLC.g("metadata:"+this.id.split("metadata-preload:")[1]);if(I){K=I.childNodes[0].data;}}if(K!==this.tt.node.innerHTML){this.tt.update(K);}},baseUrl:"?pagename=XMLWrapper&childpagename=PLC/PLC_Doc_C/ResourceXMLView&c=PLC_Doc_C&cid="}};function C(){var O={};var T=0;var H={};var N={};var Q=0;this.last_run=null;function R(){T++;return T;}function L(U){O[U].run();N[U]=O[U];delete O[U];}function M(){this.last_run=new Date().toString();
if(Q<=T){if(Q>0){L(Q);}if(Q<T){var U=O[Q+1].delay||1;H[Q+1]={timeout:setTimeout(function(){M();},U),timestamp:new Date().toString()};Q++;}}}function K(U){clearTimeout(H[U].timeout);delete H[U];}function P(){for(var U in H){if(H.hasOwnProperty(U)){K(U);}}}function J(U){if(O.hasOwnProperty(U)){delete O[U];}}function G(){P();for(var U in O){if(O.hasOwnProperty(U)){J(U);}}}function I(V){var Z=R();this.func=V.func;this.delay=V.delay;this.runtime=null;function X(){this.runtime=new Date().toString();if(typeof this.func==="function"){this.func();}}function Y(){K(Z);}function W(a){this.delay=a;}function U(){P();L(Z);M();}return{id:Z,abort:Y,delay:this.delay,wait:W,push:U,func:this.func,run:X,runtime:this.runtime};}function S(U){var V=new I(U);O[V.id]=V;}return{add:S,remove:J,purge:G,run:M,stop:P,items:O,history:N,timers:H,last_run:this.last_run};}var E=function(){function G(O){if(!O.url){return ;}if(O.beforerequest){if(typeof O.beforerequest==="function"){O.beforerequest();}}O.method=O.method||"GET";
var H=false;try{H=new ActiveXObject("Msxml2.XMLHTTP");}catch(N){try{H=new ActiveXObject("Microsoft.XMLHTTP");}catch(M){H=false;}}if(!H&&typeof XMLHttpRequest!="undefined"){H=new XMLHttpRequest();}function K(){if(H.readyState===4){if(H.status===200){if(O.success){O.success(H);}}else{if(O.failure){O.failure(H);}}}}var L="";if(O.params){for(var J in O.params){if(O.params.hasOwnProperty(J)){L+="&"+J+"="+O.params[J];}}}if(O.nocache){L+="&_dc="+new Date().getTime();}if(L.charAt(0)==="&"){L="?"+L.substring(1,L.length);}O.url+=L;H.open(O.method,O.url,true);if(O.headers){for(var I in O.headers){if(O.headers.hasOwnProperty(I)){H.setRequestHeader(I,O.headers[I]);}}}H.onreadystatechange=K;H.send(null);}return{request:G};}();return{flattenXml:function(L){var K="";if(L.childNodes){var I=L.childNodes;var J=I.length;for(var H=0;H<J;H++){var G=I[H];if(G.nodeType===1){K+=this.flattenXml(G)+" ";}else{if(G.nodeType===3){K+=G.nodeValue;}}}}return K;},getRemoteData:function(I,G,K){var H="";if(K.renderer){if(K.renderer.baseUrl){H=K.renderer.baseUrl;
}}if(K.url){H+=K.url;}var J=I.getUpdater();if(K.renderer){if(G){K.renderer.srcEl=G;}J.setRenderer(K.renderer);}J.update({url:H,callback:K.callback});},getRenderer:function(G){return B[G];},parseXml:function(G){return A(G);},encodeUTF8:D.encodeUTF8,decodeUTF8:D.decodeUTF8,Queue:C,ajax:E,addParamToURL:F};}();plc.widget=function(){function B(K){var F=K||{};var E=null;var J="Error with UI Service: ";switch(E){case"nowidget":J+="Cannot load widget ("+F.widgetName+")";break;case"nowidgetservice":J+="Cannot load widget service";break;case"nouiservice":J+="Cannot connect to UI Service";break;default:J+="Unexpected error";break;}if(F.showError){var I=(F.showError.appendChild?F.showError:PLC.g(F.showError));if(I.appendChild){var H=PLC.dom.create({tagName:"DIV",className:"uiserviceError",innerHTML:J});I.appendChild(H);}else{alert(J);}}else{var G=PLC.dom.create({tagName:"COMMENT",innerHTML:J,appendTo:document.body});}return false;}function D(E){return(E?(PLC.g(E)?PLC.g(E):E):PLC.g("mainContent")||document.body);
}function C(){plcui.widget.ipregistration.resetPassword();}function A(E,F){if(!E){return ;}if(typeof E==="string"){E=PLC.g(E);}if(!E||typeof E!="object"){return ;}E.scrollTop=F;}return{checkUIService:B,getRenderTarget:D,ipRegPasswordReset:C,gotoScrollPosition:A};}();plc.widget.keywordFinder=function(){var R=null;var P=0,E=1,B=2;var O=P;var A=null;var N=0;var I=[];var M=PLC.g("content_main")||document.body;var G=10;var F=35;var L=null;function D(){A.className=(O&E)?((O&B)?"keyword_finder_results":"keyword_finder_open"):"keyword_finder_collapsed";}function S(e,i){var a=e.className||"";if(a!="commentsContainer"&&e.id!="fdiRedirect"&&a.indexOf("noteTitleIndex")===-1&&a.indexOf("noteTitlePrint")===-1&&a.indexOf("searchTips")===-1&&e.id!=="advanced_search_form"&&e.id!=="topicSearchArea"&&e.parentNode.style.display!="none"){if(e.hasChildNodes){var g;for(g=0;g<e.childNodes.length;g++){S(e.childNodes[g],i);}}if(e.nodeType===3){var c=e.nodeValue.toLowerCase();var b=i.toLowerCase();if(c.indexOf(b)!=-1){var h=e.parentNode;
if(h.className!="printLink"&&h.className!=="searchword"){var k=e.nodeValue;var W=c.indexOf(b);var d=document.createTextNode(k.substr(0,W));var X=k.substr(W,i.length);var V=document.createTextNode(k.substr(W+i.length));var T=document.createTextNode(X);var Y=document.createElement("span");var f="";var Z="";var j="";Y.className="searchword";Y.id="XYklw3_"+N;Y.appendChild(T);h.insertBefore(d,e);h.insertBefore(Y,e);h.insertBefore(V,e);h.removeChild(e);var U=(N%2===0?"keyword-finder-alt":"");if(d.parentNode.nodeName==="B"){if(d.parentNode.previousSibling){f=d.parentNode.previousSibling;if(f.nodeType===3){j+='<div class="'+U+" keyword-finder-link keyword:XYklw3_"+N+'">'+f.nodeValue.substring(f.nodeValue.length-G,f.nodeValue.length)+'<span class="searchword">'+X+"</span>";}}else{j+='<div class="'+U+" keyword-finder-link keyword:XYklw3_"+N+'"><span class="searchword">'+X+"</span>";}if(d.parentNode.nextSibling){Z=d.parentNode.nextSibling;if(Z.nodeType===3){j+=Z.nodeValue.substring(0,F)+'"...</div>';
}else{j+=V.nodeValue.substring(0,F)+'"...</div>';}}else{j+=V.nodeValue.substring(0,F)+'"...</div>';}I[N]=j;}else{I[N]='<div class="'+U+" keyword-finder-link keyword:XYklw3_"+N+'">'+d.nodeValue.substring(d.nodeValue.length-G,d.nodeValue.length)+'<span class="searchword">'+X+"</span>"+V.nodeValue.substring(0,F)+'"...</div>';}N++;}}}}}function C(W){if(W.className!="commentsContainer"){if(W.hasChildNodes){var V;for(V=0;V<W.childNodes.length;V++){C(W.childNodes[V]);}}if(W.nodeType===3){var T=W.parentNode;if(PLC.classes.has(T,"searchword")){var U=T.previousSibling;var X=T.nextSibling;X.nodeValue=U.nodeValue+W.nodeValue+X.nodeValue;U.nodeValue="";W.nodeValue="";T.id="";T.parentNode.removeChild(T);}}}}function K(U){var W=PLC.g("keyword_finder_results");if(!document.createElement){return ;}if(U===""||U==="*"){return ;}var X=" "+U;U=X;if(U===""){return ;}var V=U.replace(/\+/g," ").split(/\"/);var b=V.length;for(var T=0;T<b;T++){if(V[T]===""){continue;}var Z=null;if(T%2===0){Z=V[T].replace(/([+,()]|%(29|28)|\W+(AND|OR)\W+)/g," ").split(/\s+/);
}else{Z=[1];Z[0]=V[T];}var Y=Z.length;for(var a=0;a<Y;a++){if(Z[a]===""){continue;}S(M,Z[a]);}}O=(N>0)?(O|B):(O&~(B));D();W.innerHTML=I.join("");PLC.g("noOfResults").innerHTML=" Found: "+N;N=0;}function H(U){U=U.replace(/[\[]/,"\\\\[").replace(/[\]]/,"\\\\]");var T="[\\?&]"+U+"=([^&#]*)";var W=new RegExp(T);var V=W.exec(window.location.href);if(V===null){return"";}else{return V[1];}}function Q(V,U,T){if(U!==null&&U.length>0){V+='"'+U+'"';}if(T!==null&&T.length>0){V+=" "+T;}if(V!==null&&V.length>0){O|=E;K(decodeURIComponent(V));}L.value=decodeURIComponent(V.replace(new RegExp(/\%20|\+/g)," "));}function J(U,V,W){R=W||{};var T='<div id="keyword_finder_caption">Keyword finder</div><div id="keyword_finder_panel">    <div id="keyword_finder_content">        <input  id="keywordFinderField" value="" title="When searching for a phrase use double quotes around the phrase. ie. &quot;your search phrase&quot;" >        <button id="search_button"          >Search</button>        <button id="removehighlights_button">Remove highlight</button>        <p id="noOfResults">&nbsp;</p>    </div>    <div id="keyword_finder_results"></div></div>';
A=PLC.dom.create({tagName:"div",id:"keyword_finder",className:"keyword_finder_collapsed",innerHTML:T,appendTo:U,attributes:{title:"Click to open/close this panel"}});PLC.event.add(PLC.g("keyword_finder_caption"),"click",function(){O^=E;D();});PLC.event.add(PLC.g("keywordFinderField"),"keypress",function(X){plc.widget.keywordFinder.checkEnter(X||window.event);});PLC.event.add(PLC.g("search_button"),"click",function(){plc.widget.keywordFinder.doSearch(false);});PLC.event.add(PLC.g("removehighlights_button"),"click",function(){plc.widget.keywordFinder.doSearch(true);});L=PLC.g("keywordFinderField");if(!R.disableAutoFind){Q(H("q"),H("qp"),H("qo"));}}return{doSearch:function(Y,W){var f=PLC.g("keyword_finder_results"),b=PLC.g("noOfResults");I=[];N=0;PLC.classes.remove(f,"visible");f.innerHTML="";b.innerHTML="";var e=W||L.value;var a=new RegExp('"');var Z="";if(e.search(a)===-1){Z='"'+e+'"';}else{Z="";}var T=Z+" "+e;if(!Y){C(M);K(unescape(T));}else{if(R.noUnhighlightReload){C(M);L.value="";L.focus();
O=O&~B;D();}else{var V=H("q");var c=H("qp");var d=H("qo");var X=H("qe");var U=window.location.href;U=U.replace("&q="+V,"");U=U.replace("&qp="+c,"");U=U.replace("&qo="+d,"");U=U.replace("&qe="+X,"");U=U.replace("?q="+V,"");U=U.replace("?qp="+c,"");U=U.replace("?qo="+d,"");U=U.replace("?qe="+X,"");U=U.replace("#top","");U=U.replace("#resource_content","");location.replace(U);}}},checkEnter:function(T){var U=T.keyCode||T.which||T.charCode;if(U===13){var V=L.value;L.value="Searching...";plc.widget.keywordFinder.doSearch(false,V);L.value=V;return false;}return true;},focusKeyword:function(W){var V=PLC.g(W.className.split("keyword:")[1].split(" ")[0]);var T=PLC.dom.findParentNode({leaf:V,tagName:"div",className:"draftingNote"});if(T){var U=PLC.dom.findParentNode({leaf:V,tagName:"span",className:"fullNoteTitle"});if((PLC.classes.has(T,"draftingNote")&&!U)||(U&&!PLC.classes.has(T,"draftingNote"))){plc.window.toggleNote(T);}}window.scrollTo(0,PLC.dom.locate(V).y-100);PLC.fx.highlight(V,"#FF0000","#FFFF00",1000);
},init:function(T,U,V){J(T,U,V);}};}();plc.widget.submenu=function(){function A(G,F){var J=PLC.g("subElements");var D=J.getElementsByTagName("DIV");var K=D.length;var H=13;var C=F.id;var I=PLC.dom.locate(F);for(var E=0;E<K;E++){D[E].style.display=(D[E].id==="subMenu"+C?"block":"none");}J.style.left=(I.x+H)+"px";J.style.top=(I.y+H)+"px";J.style.display="block";}function B(E,D){var C=E.target||E.srcElement;if(!PLC.classes.has(C,"has-sub-menu")){if(PLC.g("subElements")){PLC.g("subElements").style.display="none";}}}return{showTopicSubMenu:A,hideTopicSubMenu:B};}();plc.widget.displayOptions=function(){var A=null;var G,F;function E(J){if(J===null){J=document.createElement("div");J.className="primarySourceLink";J.id="primaryLinkWindow";document.body.appendChild(J);}else{J.style.display="block";}return J;}function B(K,J){var L=PLC.dom.locate(J);K.style.top=(L.y+13)+"px";K.style.left=(L.x+13)+"px";}function I(O,P){var K=O.split("|");var Q=[];for(var N=0;N<K.length-1;N++){Q[N]=K[N].split(",");}A=E(A);
A.style.width="200px";var J="<div style='float:right;font-size:10px;margin-bottom:-5px;margin-top:-5px'><a href='javascript:void(0)' onclick='javascript:plc.widget.displayOptions.showPrimaryLinkHelp()'>help</a> / <a href='javascript:void(0)' onclick='plc.widget.displayOptions.closeMenu();'>close</a></div>";J+="<div style='margin-top:20px'>";for(var L=0;L<Q.length;L++){J+="<a style='font-weight:bold' href='"+Q[L][0]+"' target='_blank'>"+Q[L][1]+"</a>";J+=(L!=Q.length-1?"<div style='line-height:5px;'>&nbsp;</div>":"");}J+="&nbsp;</div>";var M="<div class='primaryLinkHelpText' id='linkHelp' style='display:none'>Before relying on any legislative source you are advised to check whether it is consolidated and, if so, whether the consolidation is up-to-date.</div>";A.innerHTML=J+M;B(A,P);}function D(){var J=PLC.g("primaryLinkWindow");J.style.display="none";}function C(){var J=PLC.g("linkHelp");J.style.display="block";}function H(K,L){A=E(A);A.style.width="340px";var J="<div style='float:right;font-size:10px;margin-right:15px'><a href='javascript:void(0)' onclick='plc.widget.displayOptions.closeMenu();'>close</a></div>";
J+="<div class='primaryLinkHelpText'>This link is currently unavailable.<br/>Please inform us of the problem via the <a target='_blank' href='"+L+"'>feedback form</a>.</div>";A.innerHTML=J;B(A,K);}return{showErr:H,showMenu:I,closeMenu:D,showPrimaryLinkHelp:C};}();plc.widget.toolbar=function(){function C(D){if(D.offsetTop+D.offsetHeight!==document.documentElement.clientHeight){PLC.classes.add(D,"toolbar_unfixed");PLC.classes.add(document.body,"toolbar_unfixed");}}function B(H){var I=PLC.dom.create({tagName:"a",id:"btnTop",className:"toolbarButton",attributes:{href:"#top"},innerHTML:"Top",appendTo:H}),J=null,D=null,G=PLC.elements({tagName:"A",name:"contentsLink"}),E=G?G[0]:PLC.g("contentsLink"),F=PLC.g("contents");if(F&&E&&F.style.display!=="none"){J=PLC.dom.create({tagName:"a",id:"btnContent",className:"toolbarButton",attributes:{href:"#contentsLink"},innerHTML:"Contents",appendTo:H});}if(PLC.g("comment1")){D=PLC.dom.create({tagName:"a",id:"btnNotes",className:"toolbarButton",attributes:{href:"#CommentSaveForm"},innerHTML:"Notes",appendTo:H});
}}function A(E){var D;E=E||{};E.keywordFinder=E.keywordFinder||{};E.buttons=E.buttons||{};PLC.dom.create({tagName:"div",id:"plc_toolbar_spacer",appendTo:document.body});D=PLC.dom.create({tagName:"div",id:"plc_toolbar",appendTo:document.body});C(D);if(!E.keywordFinder.disabled){E.keywordFinder.renderTo="plc_toolbar";plc.widget.keywordFinder.init(D,plc.widget.toolbar.panels,E.keywordFinder);}if(!E.buttons.disabled){B(D);}}return{panels:{},buttons:{},buildToolbar:A,init:function(D){PLC.event.add(window,"load",function(){A(D);});}};}();plc.widget.searchForm=function(){var E=null;var A=null;var B=null;var C=null;var D=null;function G(){var L=(A.tagName==="SELECT"?A.options[A.selectedIndex]:A);var H=L.className;var K=D;var I="q";var J="";if(H.indexOf("sv_path:")!=-1){K=H.split("sv_path:")[1].split(";")[0];I="searchTerm";if(H.indexOf("sv_type:")!=-1){J=H.split("sv_type:")[1];}}E.action=K;B.name=I;if(K!=D){E.searchType.value=J;E.searchType.disabled=false;E.view.disabled=true;}else{E.searchType.value="";
E.searchType.disabled=true;E.view.disabled=false;}}function F(){E=PLC.g("header_search_form");if(E){D=E.action;B=PLC.g("header_search_field");A=PLC.g("header_search_service");C=PLC.g("header_search_type");if(A){PLC.event.add(A,"change",G);PLC.event.add(A,"mouseup",G);PLC.event.add(A,"blur",G);}G();}}return{init:F};}();plc.widget.ustrialsignup=function(){return{control:null,init:function(B){var A=B||{};PLC.event.add(window,"load",function(){plcui.ustrialsignup.init({renderTo:(A.renderTo?(PLC.g(A.renderTo)?PLC.g(A.renderTo):A.renderTo):PLC.g("mainContent")||document.body),binding:plc.widget.ustrialsignup,domainStatus:A.domainStatus,fields:A.fields,tcId:A.tcId,signupType:A.signupType,rAddr:A.rAddr});});},initActivation:function(B){var A=B||{};plcui.ustrialsignup.activation.init({userId:B.userId,renderTo:(A.renderTo?(PLC.g(A.renderTo)?PLC.g(A.renderTo):A.renderTo):PLC.g("mainContent")||document.body)});}};}();plc.widget.ustrialinvite=function(){return{control:null,init:function(B){var A=B||{};
PLC.event.add(window,"load",function(){plcui.ustrialinvite.init({renderTo:(A.renderTo?(PLC.g(A.renderTo)?PLC.g(A.renderTo):A.renderTo):PLC.g("mainContent")||document.body),binding:plc.widget.ustrialinvite,fields:A.fields});});}};}();plc.widget.ipregistration=function(){return{control:null,init:function(C){var A=C||{};var B=plc.widget.getRenderTarget(A.renderTo);if(!plc.widget.checkUIService({widgetName:"ipregistration",showError:B})){return ;}PLC.event.add(window,"load",function(){plcui.widget.ipregistration.init({renderTo:B,binding:plc.widget.ipregistration,successMessage:A.successMessage,successCallback:A.successCallback,resetMessage:(A.resetMessage&&A.resetMessage!==""?A.resetMessage:null),resetSuccessMessage:(A.resetSuccessMessage&&A.resetSuccessMessage!==""?A.resetSuccessMessage:null)});});}};}();plc.widget.validation=function(){function A(D,E){var C=null;if(PLC.classes.has(E.nextSibling,"plc-validation-error")){C=E.nextSibling;C.innerHTML=D;}else{C=PLC.dom.create({tagName:"div",className:"plc-validation-error",innerHTML:D});
E.parentNode.insertBefore(C,E.nextSibling);}}function B(H,G){var F=G.form;if(!F){return ;}var E=PLC.dom.getElements({root:F,tagName:"input",className:"plc-validation-newPassword"}),D=PLC.dom.getElements({root:F,tagName:"input",className:"plc-validation-confirmPassword"});if(E.length===0||D.length===0){return ;}var I=E[0].value,C=D[0].value;if(I!==C||I===""){PLC.event.preventDefault(H);A((I===""?"Invalid new password":"Passwords do not match"),G);return false;}}return{validate:B};}();plc.widget.primarysource=function(){var H="plcprimarysourcelink";var V="psexternallink";var G="primaryLink";var R=function(h){if(!h){return null;}var i={x:0,y:0};while(h.offsetParent&&h.offsetParent.tagName!="HTML"){i.x+=h.offsetLeft;i.y+=h.offsetTop;h=h.offsetParent;}return i;};function c(h){var m="";var n=[];for(var l=0;l<h.length-1;l++){n[l]=h[l].split(",");}if(h.length){for(var k=0;k<h.length-1;k++){m+='<li><a href="'+unescape(n[k][0])+'" name="'+V+'" target="_blank">'+n[k][1]+"</a></li>";}}return m;}function C(k){var h=k.split("|");
var j=PLC.g("ps_list_container");var i="";i+='<ul class="primary-source-list" id="ps_links">';i+=c(h);i+="</ul>";j.innerHTML=i;}function E(h){var i="";i+='<p class="primary-source-subheading">PLC Know-how</p>';i+='<ul class="primary-source-list"><li><a id="'+H+'" href="'+h+'?source=pspopup" target="_blank">PLC coverage of this primary source reference</a></li></ul>';return i;}function f(j,l,h){var k="";var i;var m=R(l);k+='<div class="primary-source-container">';k+='<div class="primary-source-controls" id="primary_link_controls_showhelp">';k+='<span><a href="#null" onclick="plc.widget.primarysource.showPrimaryLinkHelp()">Help</a> | <a href="#null" onclick="plc.widget.primarysource.closeMenu()">Close</a></span>';k+="</div>";k+='<div class="primary-source-controls" style="display:none" id="primary_link_controls_hidehelp">';k+='<span><a href="#null"onclick="plc.widget.primarysource.hidePrimaryLinkHelp()">Hide Help</a> | <a href="#null" onclick="plc.widget.primarysource.closeMenu()">Close</a></span>';
k+="</div>";k+='<div class="primary-source-help" id="primary_link_help" style="display:none">';k+='<p class="primary-source-help-heading">What is this box?</p>';k+="<p>This box provides links to:<ul>";k+="<li>External providers of primary source materials.</li>";k+="<li>PLC know-how related to this primary source.</li></ul></p>";k+="<p>Legislation.gov.uk and EUR-lex are free and do not require a subscription. For information relating to Westlaw UK subscriptions, please see further details, below.</p>";k+="<p>Before relying on any source of legislation, check whether it is consolidated and, if so, whether the consolidation is up-to-date.</p>";k+='<p><a href="/about/primarysources">Further details</a>.</p>';k+="</div>";k+='<p class="primary-source-heading">';k+="Primary sources </p>";k+="<div id=ps_list_container>";k+='<img class="primary-source-popup-loading" src="/presentation/images/common/loading.gif" alt="loading...">';k+="</div>";if(h==="true"){k+='<div id="ps_pssection_container">';
k+=E(j);k+="</div>";}i=PLC.create({tagName:"div",className:"primary-source-popup",id:"primary_source_popup",innerHTML:k,style:{top:(m.y+13)+"px",left:(m.x+13)+"px"},appendTo:document.body});l.psLink=i;}function I(h){var i=new RegExp("\\w{1}-\\d{3}-\\d{4}");return i.exec(h);}function M(){var i=PLC.g(H);var h=i.getAttribute("href");return I(h);}function W(h){var i=I(h);if(i!==""){return("&psplcref="+i);}else{return"";}}function Q(h){var i=M();var j="";j=j+"&psplcref="+i;j=j+"&extenallinktype=primarysource";j=j+"&psprovider="+h;return j;}function S(l,k,j){plc.widget.primarysource.hidePrimaryLinkHelp();var n=PLC.g("ps_list_container");var m="";m+='<img class="primary-source-popup-loading"  src="/presentation/images/common/loading.gif" alt="loading...">';n.innerHTML=m;if(j==="true"){var h=PLC.g("ps_pssection_container");m="";m+=E(l);h.innerHTML=m;}var i=PLC.g("primary_source_popup");var o=R(k);i.style.top=(o.y+13)+"px";i.style.left=(o.x+13)+"px";i.style.display="block";}function X(){var h=PLC.g("primary_source_popup");
h.style.display="none";}function Z(){var j=PLC.g("primary_link_help");j.style.display="block";var i=PLC.g("primary_link_controls_hidehelp");i.style.display="block";var h=PLC.g("primary_link_controls_showhelp");h.style.display="none";}function U(){var j=PLC.g("primary_link_help");j.style.display="none";var i=PLC.g("primary_link_controls_hidehelp");i.style.display="none";var h=PLC.g("primary_link_controls_showhelp");h.style.display="block";}function Y(s){var k=[];var o=s.childNodes;var h=o.length;for(var p=0;p<h;p++){if(o[p].nodeType===1){var l=[];k[k.length]=l;l.name=o[p].tagName;var r=o[p].childNodes;if(r){var n=r.length;for(var m=0;m<n;m++){var q=r[m];if(q.nodeType===3){l.value=q.nodeValue;}else{if(q.childNodes.length){if(q.childNodes[0].nodeType===1){l[q.tagName]=Y(q);}else{if(q.childNodes[0].nodeType===3){l[q.tagName]=q.childNodes[0].nodeValue;}}}}}}}}return k;}function P(i,h){var j=[];for(var k in i){if(i[k].name===h){j[j.length]=i[k];}}return j;}function d(k){var j="";for(var h=0;h<k.length;
h++){j+=(k[h].url+","+k[h].provider+"|");}return j;}function g(i){var h=window.open(i.url,"_blank");h.focus();}function J(k){if(k.responseXML===null){return ;}var l=k.responseXML.getElementsByTagName("primarysourcelinks");if(l===null){return ;}var h=Y(l.item(0));var i=P(h,"isauthenticated");var j=P(h,"pslink");if(i.length===0||i[0].value==="false"){return plc.widget.displayOptions.showErr(this.caller,this.feedbackUrl);}if(j.length>0){if(this.isMenu||j.length>1){return plc.widget.displayOptions.showMenu(d(j),this.caller);}else{return g(j[0]);}}return plc.widget.displayOptions.showErr(this.caller,this.feedbackUrl);}function F(j){if(j.responseXML===null){return ;}var k=j.responseXML.getElementsByTagName("primarysourcelinks");if(k===null){return ;}var l=null;if(k.item(0)!==null){l=k.item(0).getAttribute("provider");}else{return plc.widget.primarysource.reportErrorOnPopUp(j);}if(l!==null){}else{return plc.widget.primarysource.reportErrorOnPopUp(j);}var h=Y(k.item(0));var i=P(h,"pslink");if(i.length>0){return C(d(i));
}return plc.widget.primarysource.reportErrorOnPopUp(j);}function N(k){var i=PLC.g("ps_list_container");var h="";h+='<div id="ps_links">';var j=k.responseXML.getElementsByTagName("exception");if(j.length>0){h+="<p>"+j[0].firstChild.data+"</p>";}else{h+="<p>Links to primary source materials currently unavailable.</p>";}h+="</div>";i.innerHTML=h;return true;}function D(h){return plc.widget.primarysource.reportErrorOnPopUp(h);}function A(h){return plc.widget.displayOptions.showErr(this.caller,this.feedbackUrl);}var a=null;function O(h){a=h;}var e=null;function K(h){e=h;}var B=null;function L(i,h){B="/?assetId="+i+"&assetType="+h+"&view=cselement:PLC%2FCommon%2FSubscriberFeedback&pagename=PLCWrapper";}function T(){if(PLC.g("ps_list_container")!==null){this.get(this,true,I(window.location.href),"justcite",false,true);}}function b(k,o,j,n,i,m){var l={};l.caller=k;l.isMenu=o;if(n==="justcite"){l.url=e;var h=PLC.g("primary_source_popup");if(!m){if(h===null){f(j,k,i);}else{S(j,k,i);}}}else{l.url=a;
}l.feedbackUrl=B;if(n==="justcite"){l.success=F;l.failure=D;}else{l.success=J;l.failure=A;}l.url+="&sectionid="+j;plc.util.ajax.request(l);}return{get:b,setPSUrl:O,setPSUrlJustcite:K,setFeedback:L,showPrimaryLinkHelp:Z,hidePrimaryLinkHelp:U,closeMenu:X,reportErrorOnPopUp:N,getPopUpQueryExt:W,getExternalLinkQueryExt:Q,primaryPopUpLink:G,psexternallink:V,loadAndShowLinks:T};}();plc.widget.countrypopup=function(){function B(D){PLC.dialog.show(900,"70%",D);}function C(H){var G=PLC.g("country_list");var D=PLC.dialog.getContainer();var E=H.id+"_target";var F=PLC.g(E);if(!F||!D){return ;}plc.widget.gotoScrollPosition(D,F.offsetTop-G.offsetTop);}function A(){var D=PLC.dialog.getContainer();if(!D){return ;}plc.widget.gotoScrollPosition(D,0);}return{show:B,gotoAnchor:C,gotoTop:A};}();plc.widget.emailprefs=function(){function A(D){var E=D.parentNode.parentNode;var C=E.getElementsByTagName("INPUT");for(var B=C.length-1;B>=0;B--){C[B].checked=D.checked;}}return{selectAll:A};}();plc.widget.scrollingUpdates=function(){return{init:function(){var D=PLC.g("scrolling_updates"),A=D&&PLC.elements({tagName:"A",root:D}),C=-1,B=0;
if(!D){return ;}if(A.length>0){C=-1;for(B=0;B<A.length;B++){if(A[B].style.display==="block"){A[B].style.display="none";C=B;break;}}A[(C+1)%A.length].style.display="block";setTimeout(arguments.callee,5000);}}};}();plc.window=function(){var AD=700;var T=365*Date.DAY;var V=null;var x=100;var AC;var u=null;var o=false;var G=null;var n=null;function AB(){return Math.round(this.width()*0.3);}function e(){return this.width()-this.leftColWidth();}function s(){return AD;}function I(AE){AD=AE;}function Z(){if(document.documentElement.offsetWidth<AD+30){document.body.style.width=AD+"px";}else{if(document.body.style.width!="auto"){document.body.style.width="auto";}}}function w(){var AE=PLC.g("contents");u=PLC.g("service_nav_list");if(AE){x=PLC.dom.locate(AE).y;}G=PLC.g("search_tips");Z();}function y(){clearTimeout(V);V=setTimeout(Z,5);}function B(AF,AG){var AE=AF.getElementsByTagName(AG)[0].childNodes[0].data;return AE;}function p(AE){n=window.open(AE,"primarySourceWindow");n.focus();}function Y(AG,AJ,AE){function AF(AL,AM){return AL.getElementsByTagName(AM)[0].childNodes[0].data;
}function AH(AQ,AN){var AL="<div style='float:left; clear:both'>";AL+="<img style='float:left' src='./services/common/html/images/justCite.gif'/>";AL+="<span style='float:right'>";AL+="<a href='#null' onclick='showPrimaryLinkHelp()'>help</a>";AL+=" / ";AL+="<a href='#null' onclick='menu.style.display=&quot;none&quot;'>close</a>";AL+="</span>";AL+="</div>";if(AQ){if(AQ.length===0){AL+="<div style='clear:both'><p>No sources found</p></div>";}else{AL+="<p class='primarySourceHeading'>Primary Sources</p>";AL+="<ul style='clear:both'>";for(var AP=0;AP<AQ.length;AP++){var AR=AF(AQ[AP],"siteId");var AS=AF(AQ[AP],"isFree");AL+="<li>";AL+="<a ";if(AR===4){AL+="style='font-weight:bold'";}var AM=AF(AQ[AP],"sourceUrl");AL+='href="#null" onclick="plc.window.openPrimarySourceWindow(\''+AM+"')\">"+AF(AQ[AP],"source");if(AS==="true"){AL+=" <b>(free)</b>";}AL+="</a>";AL+="</li>";}AL+="</ul>";}}else{if(AN){AL+="<div style='float:left'><p>"+AN+"</p></div>";}else{AL+="<img style='float:left' src='./services/common/html/images/mediumLoading.gif'/>";
}}var AO="<div class='primaryLinkHelpText' id='linkHelp' style='display:none; float:left; clear:both'>";AO+="<p style='font-weight:bold'>What's this box?</p>";AO+="<p>This box provides links to primary sources via JustCite, an independent publisher.";AO+=" JustCite supplies, on a provider-neutral basis, content from a range of publishers.</p>";AO+="<p>Some of the links require a subscription others are free.</p>";AO+="<p style='font-weight:bold'>What do you mean by 'primary source'?</p>";AO+="<p>Primary sources include";AO+="<ul style='clear:both'>";AO+="<li>UK and EU cases</li>";AO+="<li>UK and EU legislation</li>";AO+="<li>UK court rules and practice directions</li>";AO+="</ul>";AO+="<p><a target='_blank' href='http://www.justcite.com/about/titles-indexed.html'>Further details</a></p>";if(AE.indexOf("Case")<0){AO+="<p>Before relying on any legislative source you are advised to check whether it is consolidated and, if so, whether the consolidation is up-to-date and in force.</p>";}AO+="</div>";
if(!AC){AC=PLC.create({tagName:"DIV",className:"primarySourceLink",style:{width:"300px"},appendTo:document.body});}AC.innerHTML=AL+AO;AC.style.display="block";if(!AQ||AJ.primarySourceResults){AC.style.top=plc.window.mouseY+"px";AC.style.left=plc.window.mouseX+"px";}if(AQ){AJ.primarySourceResults=AQ;}}function AK(AN,AO){var AL=AN.documentElement;var AM=AL.getElementsByTagName("sourceSearchResult");AH(AM);}function AI(){AH(null,"Error getting primary sources");}if(!AJ.primarySourceResults){AH(null);PLC.xhr.request(AG,{method:"POST",format:"XML",onSuccess:AK,onFailure:AI});}else{AH(AJ.primarySourceResults);}}function b(AE){location.replace(AE);}function M(AF,AH){var AE=new Date();AE.setTime(AE.getTime());var AI=new Date(AE.getTime()+(T));var AG=AF+"="+escape(AH)+";expires="+AI.toGMTString()+";domain=practicallaw.com;path=/";document.cookie=AG;}function f(AF){var AG=AF||window.event,AE=AG.pageX||(AG.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),AH=AG.pageY||(AG.clientY+document.body.scrollTop+document.documentElement.scrollTop);
plc.window.mouseX=AE;plc.window.mouseY=AH;}function a(AI){var AK=AI.id;var AG=AK.substr(AK.lastIndexOf("imageref[")).replace("imageref[","").replace("]","").replace(" ","");var AH="asset";var AJ=/[0-9]{1}\-[0-9]{3}\-[0-9]{4}/;var AF=/\:[0-9]{1,}/;if(AG.match(AJ)){AH="plcreference";}else{if(AG.match(AF)){AH="poid";AG=AG.replace(":","");}}var AE="/?pagename=PLC/Media_C/RemoteImage&c=Media_C&"+(AH==="asset"?"cid":"imageref")+"="+AG;PLC.xhr.request(AE,{onSuccess:function(AO,AP){var AM=PLC.dom.create({tagName:"DIV",innerHTML:AP});var AL=PLC.dom.getElements({tagName:"IMG",root:AM});if(AL){var AN=AL[0];if(AN){if(AI.width>1){AN.width=AI.width;}if(AI.height>1){AN.height=AI.height;}if(AI.getAttribute("alt")){AN.setAttribute("alt",AI.getAttribute("alt"));}AI.parentNode.replaceChild(AN,AI);}}}});}function c(){var AE=PLC.elements({tagName:"IMG",className:"remote-image"});if(AE){var AG=AE.length;for(var AF=0;AF<AG;AF++){a(AE[AF]);}}}function j(AH,AE){var AG=AH.id;for(var AF=0;AF<AE.length;AF++){if(AG.indexOf(AE[AF].id)!=-1){AE[AF].src=AH.src;
return ;}}}function P(){var AF=PLC.elements({tagName:"IMG",className:"docbook_image_source"});var AE=PLC.elements({tagName:"IMG",className:"docbook_image_target"});if(AF&&AE){for(var AH=0,AG=AF.length;AH<AG;AH++){j(AF[AH],AE);}}}function d(AF,AE,AG){AG=AG||"meta-tool-item-";PLC.classes.toggle(AE.parentNode,AG+"expanded");}function U(AH,AG){var AF=PLC.g("speedread");var AE=PLC.g("speedread_intro");if(AF&&AE){if(PLC.classes.has(AF,"speedread-open")){PLC.classes.remove(AF,"speedread-open");PLC.classes.remove(AE,"speedread-open");}else{PLC.classes.add(AF,"speedread-open");PLC.classes.add(AE,"speedread-open");}}}function E(AG,AF){var AE=PLC.g("resource_content");if(AE){PLC.classes.toggle(AE,"hidden-embedded-resources");AF.innerHTML=(PLC.classes.has(AE,"hidden-embedded-resources")?"Show individual cases":"Hide individual cases");}}function C(AF,AE){PLC.classes.toggle(AE,"show-mode");}function L(AF,AE){window.open(AE.href,"","toolbar=no,scrollbars=yes,resizable=yes,width=700,height=500");PLC.event.preventDefault(AF);
}function r(AI,AE){var AH=PLC.g("qanda_options_"+AI);if(AH){var AF=AH.getElementsByTagName("INPUT");for(var AG=AF.length-1;AG>=0;AG--){AF[AG].checked=(AE?"checked":"");}}}function q(AI,AH){var AG=AH.parentNode;if(AG.className.indexOf("glossary-item-expanded")!=-1){AG.className="glossary-item";}else{var AF=AG.getElementsByTagName("DIV")[0];if(AF.className.indexOf("glossary-item-loaded")===-1){AF.innerHTML="<span class='loading-text'>Loading...</span>";var AE="?pagename=PLCWrapper&childpagename=PLC/PLC_Doc_C/ResourceFragment&c=PLC_Doc_C&cid="+AH.className.split("resource-id:")[1].split(" ")[0];PLC.xhr.request(AE,{onSuccess:function(AK,AL){var AJ=AL;if(AJ===""){AJ="(No more information)";}AF.innerHTML=AJ;AF.className="glossary-item-abstract glossary-item-loaded";},onFailure:function(){AF.innerHTML="(Could not retrieve information)";AF.className="glossary-item-abstract glossary-item-loaded";}});}AG.className="glossary-item glossary-item-expanded";}}function X(){PLC.g("intpn_jurisdiction_form").submit();
}function h(AF){var AE=AF.target||AF.srcElement;AE.form.submit();}function R(AE){AE=PLC.g(AE)||AE;AE.style.display=(AE.style.display==="none"?"":"none");}function t(AE){AE.style.display="block";o=true;}function O(AE){if(!o){AE.style.display="none";o=false;}else{setTimeout(function(){if(!o){setTimeout(function(){O(AE);},500);}},1000);o=false;}}function Q(AE){AE.style.display="block";setTimeout(function(){if(!o){O(AE);}},2000);}function J(AI,AF){var AG=AI||window.event,AH=AG.srcElement||AG.target,AE=PLC.g("service_nav_list");if(PLC.dom.findParentNode({leaf:AH,id:"service_nav_list"})){return false;}if(AF){PLC.event.stopPropagation(AG);}if(AF&&AE.style.visibility!=="visible"){PLC.event.preventDefault(AG);PLC.fx.slide({element:AE,duration:0.5,direction:"down"});}else{if(AE.style.visibility==="visible"){PLC.fx.slide({element:AE,duration:0.5,direction:"up"});}}return false;}function AA(AF){if(G){var AE=AF.target||AF.srcElement,AG=PLC.dom.dimensions(AE);G.style.left=AG.left+"px";G.style.top=(AG.top+AG.height+5)+"px";
G.style.display="block";}}function v(){if(G){G.style.display="none";}}function m(AE){var AF=location.hash;document.write('<script  type="text/javascript">if(location.hash != "'+AF+'") {window.location.hash = "'+AF+'";}<\/script>'+AE);document.close();}function K(AE){PLC.xhr.request(AE,{onSuccess:function(AF,AG){m(AG);}});}function l(AK,AJ){var AH=new RegExp("Question\\s+(\\d+)\\D*","i");var AG=AJ.innerHTML;var AE=AH.exec(AG);if(AG&&AE){PLC.event.preventDefault(AK);var AL=AE[1];var AF="W_q"+AL;var AI="qaq="+AF;if(window.location.search.indexOf(AI)!=-1){window.location.hash=AF;}else{window.location.href=window.location.pathname+window.location.search+"&"+AI+"#"+AF;}}}function N(AO){var AG=AO.className.split("metadata-target:")[1].split(" ")[0],AH=AO.className.split("resource-id:")[1].split(" ")[0],AM=plc.util.getRenderer(AG),AE="files/uk.practicallaw.com.xml",AF=(AM.baseUrl||""),AL=AE+AF+AO.className.split("resource-id:")[1].split(" ")[0],AJ=1500,AN=null,AI={method:"GET",format:"XML",scope:AO,onSuccess:AM.render,onFailure:function(){this.tt.destroy();
}},AK={width:500};if((AO.id||"").indexOf("metadata-preload")!==-1){AN=PLC.g("metadata:"+AO.id.split("metadata-preload:")[1]);AK.html=AN.innerHTML;}else{AK.html="<div class='loading-indicator'>Loading...</div>";}AO.tt=new PLC.Tooltip(AK);PLC.event.add(AO,"mouseover",function(){AO.tt.hover=true;setTimeout(function(){if(AO.tt.hover){AO.tt.showBy(AO);if(!AO.tt.node.getAttribute("updated")){PLC.xhr.request(AL,AI);}}},AJ);});PLC.event.add(AO,"mouseout",function(){AO.tt.hover=false;AO.tt.hide();});}function A(AI){AI=AI||document.body;var AE=PLC.dom.getElements({tagName:"A",root:AI});var AH=AE.length;for(var AG=0;AG<AH;AG++){var AF=AE[AG];if(AF.className&&AF.className.indexOf("metadata-target")!==-1&&AF.className.indexOf("metadata-target:topic")===-1){N(AF);}}}function H(AG,AF,AH){var AE=AF.href;if(AE){if(AE.indexOf("#")!==-1){AF=PLC.g(AE.split("#")[1]);}}if(AF){PLC.g(document.documentElement).scrollTop=PLC.g(AF).offsetTop;}}function D(AE,AG){var AF=AE.offsetHeight;PLC.classes.toggle(AE,"draftingNoteExpanded");
if(AG){document.documentElement.scrollTop-=(AF-AE.offsetHeight);}}function F(AH,AG){AH=AH||event;var AF=plc.window.noteElements||PLC.dom.getElements({root:PLC.g("resource_content"),tagName:"DIV"});if(!plc.window.noteElements){plc.window.noteElements=[];}for(var AE=AF.length-1;AE>=0;AE--){if(AF===plc.window.noteElements||PLC.classes.has(AF[AE],"draftingNote")||PLC.classes.has(AF[AE],"draftingNoteExpanded")){if(AF!==plc.window.noteElements){plc.window.noteElements[plc.window.noteElements.length]=AF[AE];}if(!plc.window.allNotesOpen){AF[AE].className="draftingNote draftingNoteExpanded";}else{AF[AE].className="draftingNote";}}}plc.window.allNotesOpen=(!plc.window.allNotesOpen);PLC.event.preventDefault(AH);}function z(AF,AE){AF=AF||event;switch(AE){case 2:plc.window.mainContent.className="viewingNotes";PLC.g("tools").className="plcActions-viewingNotes";break;case 3:plc.window.mainContent.className="viewingDocument";PLC.g("tools").className="plcActions-viewingDocument";break;default:plc.window.mainContent.className="";
PLC.g("tools").className="";break;}PLC.event.preventDefault(AF);}function i(AE){PLC.classes.toggle(AE.parentNode,"topic-tree-collapsed");Z();}function S(AE){var AF=PLC.g("topic_tree_content");if(PLC.classes.has(AF,"topic-tree-unfiltered")){PLC.classes.remove(AF,"topic-tree-unfiltered");AE.innerHTML="Show full topic index";}else{PLC.classes.add(AF,"topic-tree-unfiltered");AE.innerHTML="Hide full topic index";}Z();}function k(AH,AG){function AF(){M("UserPrfeferencesGuid",Math.random());M("DISPLAY_LOCALE_WARNING","N");if(AG.parentNode.className.indexOf("localeMessage")!=-1){AG.parentNode.style.display="none";}}function AE(){PLC.dom.create({tagName:"SPAN",className:"localeWarningFailure",appendTo:AG.parentNode});}if(PLC.g("userPreferencesForm")){return false;}PLC.event.preventDefault(AH);PLC.xhr.request("userPreferences.ajax?prefName=DISPLAY_LOCALE_WARNING&prefValue=N'",{onSuccess:AF,onFailure:AE});}function g(){var AG=location.href;if(AG.indexOf("#")!=-1){var AF=PLC.g(AG.split("#")[1].split("?")[0]);
if(AF){var AE=PLC.dom.findParentNode({leaf:AF,tagName:"div",className:"draftingNote"});if(AE){if(PLC.classes.has(AE,"draftingNote")){D(AE);if(document.body.scrollTop===0){location.replace(location.href);}}}}}}function W(){g();c();P();A();w();PLC.event.add(document,"mousemove",f);PLC.event.add(window,"resize",y);}return{panels:{},mainContent:null,noteElements:null,toggleObj:R,submitFormOnChange:h,addTooltips:A,scrollToAnchor:H,toggleNote:D,toggleAllNotes:F,toggleNoteView:z,toggleTopicTreeBranch:i,toggleTopicIndex:S,disableLocaleWarning:k,mouseY:0,mouseX:0,leftColWidth:AB,rightColWidth:e,getMinimumWidth:s,setMinimumWidth:I,resizeContent:Z,displayMeta:d,toggleSpeedread:U,openFeedbackWindow:L,toggleEmbeddedResources:E,qandaSelect:r,toggleGlossaryItem:q,changeIntPNJurisdiction:X,showMenu:t,showMenuLink:Q,hideMenu:O,slideText:J,hideSearchTips:v,showSearchTips:AA,rewriteFromRemoteSource:K,qaQuestionLink:l,init:function(){PLC.event.add(window,"load",W);PLC.event.add(window,"load",plc.widget.searchForm.init);
}};}();var theMenu;var destination;var interval;var entered=false;var counter=0;function dropDowns(C){if(PLC.g("group")){var A=[PLC.g("group"),PLC.g("jurisdictionIdb"),PLC.g("specialisationIdb")];for(var B=0;B<A.length;B++){A[B].style.visibility=C;}}}function checkMenu(){if(theMenu.style.display==="block"&&!entered){theMenu.style.display="none";dropDowns("visible");}counter++;}function hideMenuGecko(A){destination=A.relatedTarget;if(destination!="undefined"){if(destination.id.slice(0,4)!="link"&&destination.id.slice(0,4)!="drop"&&destination.parentNode!=theMenu){theMenu.style.display="none";entered=false;dropDowns("visible");}}}function hideMenuIE(){if(window.navigator.product!="Gecko"){destination=window.event.toElement.id.slice(0,4);if(destination!="link"&&destination!="drop"&&!PLC.dom.findParentNode({leaf:window.event.toElement,node:theMenu})){theMenu.style.display="none";entered=false;dropDowns("visible");}}}function setupMenu(){if(window.navigator.product==="Gecko"){PLC.g("dropDownMenu").onmouseout=hideMenuGecko;
}}function showMenu(){dropDowns("hidden");theMenu=PLC.g("dropDownMenu");theMenu.style.top="90px";theMenu.style.right="10px";theMenu.style.display="block";interval=setTimeout(checkMenu,2000);}// Google analytics - 20/05/2008

var _gat=new Object({c:"length",p:"cookie",b:undefined,bb:function(d,a){this.wb=d;this.Hb=a},o:"__utma=",W:"__utmb=",ma:"__utmc=",Ta:"__utmk=",na:"__utmv=",oa:"__utmx=",Sa:"GASO=",X:"__utmz=",fc:"http://www.google-analytics.com/__utm.gif",gc:"https://ssl.google-analytics.com/__utm.gif",Wa:"utmcid=",Ya:"utmcsr=",$a:"utmgclid=",Ua:"utmccn=",Xa:"utmcmd=",Za:"utmctr=",Va:"utmcct=",Db:false,_gasoDomain:undefined,_gasoCPath:undefined,t:function(d){var a=1,c=0,h,o;if(!_gat.m(d)){a=0;for(h=d[_gat.c]-1;h>=0;h--){o=d.charCodeAt(h);a=(a<<6&268435455)+o+(o<<14);c=a&266338304;a=c!=0?a^c>>21:a}}return a},B:function(d,a,c){var h=_gat,o="-",j,m,r=h.m;if(!r(d)&&!r(a)&&!r(c)){j=h.v(d,a);if(j>-1){m=d.indexOf(c,j);if(m<0)m=d[h.c];o=h.D(d,j+h.v(a,"=")+1,m)}}return o},Ea:function(d){var a=false,c=0,h,o;if(!_gat.m(d)){a=true;for(h=0;h<d[_gat.c];h++){o=d.charAt(h);c+="."==o?1:0;a=a&&c<=1&&(0==h&&"-"==o||_gat.O(".0123456789",o))}}return a},d:function(d,a){var c=encodeURIComponent;return c instanceof Function?(a?encodeURI(d):
c(d)):escape(d)},z:function(d,a){var c=decodeURIComponent,h;d=d.split("+").join(" ");if(c instanceof Function)try{h=a?decodeURI(d):c(d)}catch(o){h=unescape(d)}else h=unescape(d);return h},Ab:function(d){return d&&d.hash?_gat.D(d.href,_gat.v(d.href,"#")):""},m:function(d){return _gat.b==d||"-"==d||""==d},Fb:function(d){return d[_gat.c]>0&&_gat.O(" \n\r\t",d)},O:function(d,a){return _gat.v(d,a)>-1},g:function(d,a){d[d[_gat.c]]=a},S:function(d){return d.toLowerCase()},w:function(d,a){return d.split(a)},
v:function(d,a){return d.indexOf(a)},D:function(d,a,c){c=_gat.b==c?d[_gat.c]:c;return d.substring(a,c)},mc:function(){var d=_gat.b,a=window;if(a&&a.gaGlobal&&a.gaGlobal.hid)d=a.gaGlobal.hid;else{d=Math.round(Math.random()*2147483647);a.gaGlobal=a.gaGlobal?a.gaGlobal:{};a.gaGlobal.hid=d}return d},wa:function(){return Math.round(Math.random()*2147483647)}});_gat.bc=function(){var d=this,a=_gat.bb;function c(h,o){return new a(h,o)}d.cb="utm_campaign";d.db="utm_content";d.eb="utm_id";d.fb="utm_medium";d.gb="utm_nooverride";d.hb="utm_source";d.ib="utm_term";d.jb="gclid";d.pa=0;d.H=0;d.ub="15768000";d.Nb="1800";d.ea=[];d.ga=[];d.fa=[c("google","q"),c("yahoo","p"),c("msn","q"),c("aol","query"),c("aol","encquery"),c("lycos","query"),c("ask","q"),c("altavista","q"),c("netscape","query"),c("cnn","query"),c("looksmart","qt"),c("about","terms"),c("mamma","query"),
c("alltheweb","q"),c("gigablast","q"),c("voila","rdata"),c("virgilio","qs"),c("live","q"),c("baidu","wd"),c("alice","qs"),c("yandex","text"),c("najdi","q"),c("aol","q"),c("club-internet","query"),c("mama","query"),c("seznam","q"),c("search","q"),c("wp","szukaj"),c("onet","qt"),c("netsprint","q"),c("google.interia","q"),c("szukacz","q"),c("yam","k"),c("pchome","q"),c("kvasir","searchExpr"),c("sesam","q"),c("ozu","q"),c("terra","query"),c("nostrum","query"),c("mynet","q"),c("ekolay","q")];d.J=[];d.l=
"/";d.ha=100;d.Da="/__utm.gif";d.ta=1;d.ua=1;d.F="|";d.sa=1;d.qa=1;d.nb=1;d.f="auto";d.C=1;d.Ga=1000;d.Mc=10;d.hc=10;d.Nc=0.2};_gat.Y=function(d,a){var c,h,o,j,m,r,p,f=this,n=_gat,t=n.m,y=n.c,g,B=a;f.a=d;function q(k){var b=k instanceof Array?k.join("."):"";return t(b)?"-":b}function u(k,b){var e=[],i;if(!t(k)){e=n.w(k,".");if(b)for(i=0;i<e[y];i++)if(!n.Ea(e[i]))e[i]="-"}return e}function x(){return z(63072000000)}function z(k){var b=new Date,e=new Date(b.getTime()+k);return"expires="+e.toGMTString()+"; "}function l(k,b){f.a[n.p]=k+"; path="+B.l+"; "+b+f.sc()}function v(k,b,e){var i=f.U,s;for(s=0;s<i[y];s++)i[s][2](n.B(k,
i[s][0]+b,e))}f.Eb=function(){return n.b==g||g==f.t()};f.Ba=function(){return m?m:"-"};f.Qb=function(k){m=k};f.Ma=function(k){g=n.Ea(k)?k*1:"-"};f.Aa=function(){return q(r)};f.Na=function(k){r=u(k)};f.wc=function(){return g?g:"-"};f.sc=function(){return t(B.f)?"":"domain="+B.f+";"};f.ya=function(){return q(c)};f.Ob=function(k){c=u(k,1)};f.I=function(){return q(h)};f.La=function(k){h=u(k,1)};f.za=function(){return q(o)};f.Pb=function(k){o=u(k,1)};f.Ca=function(){return q(j)};f.Rb=function(k){j=u(k);
for(var b=0;b<j[y];b++)if(b<4&&!n.Ea(j[b]))j[b]="-"};f.tc=function(){return p};f.Ic=function(k){p=k};f.ic=function(){c=[];h=[];o=[];j=[];m=n.b;r=[];g=n.b};f.t=function(){var k="",b;for(b=0;b<f.U[y];b++)k+=f.U[b][1]();return n.t(k)};f.Ha=function(k){var b=f.a[n.p],e=false;if(b){v(b,k,";");f.Ma(f.t());e=true}return e};f.Ec=function(k){v(k,"","&");f.Ma(n.B(k,n.Ta,"&"))};f.Kc=function(){var k=f.U,b=[],e;for(e=0;e<k[y];e++)n.g(b,k[e][0]+k[e][1]());n.g(b,n.Ta+f.t());return b.join("&")};f.Pc=function(k,
b){var e=f.U,i=B.l,s;f.Ha(k);B.l=b;for(s=0;s<e[y];s++)if(!t(e[s][1]()))e[s][3]();B.l=i};f.Yb=function(){l(n.o+f.ya(),x())};f.Pa=function(){l(n.W+f.I(),z(B.Nb*1000))};f.Zb=function(){l(n.ma+f.za(),"")};f.Ra=function(){l(n.X+f.Ca(),z(B.ub*1000))};f.$b=function(){l(n.oa+f.Ba(),x())};f.Qa=function(){l(n.na+f.Aa(),x())};f.Qc=function(){l(n.Sa+f.tc(),"")};f.U=[[n.o,f.ya,f.Ob,f.Yb],[n.W,f.I,f.La,f.Pa],[n.ma,f.za,f.Pb,f.Zb],[n.oa,f.Ba,f.Qb,f.$b],[n.X,f.Ca,f.Rb,f.Ra],[n.na,f.Aa,f.Na,f.Qa]]};_gat.dc=function(d){var a=this,c=_gat,h=d,o,j=function(){},m=function(r){var p=(new Date).getTime(),f;f=(p-r[3])*(h.Nc/1000);if(f>=1){r[2]=Math.min(Math.floor(r[2]*1+f),h.hc);r[3]=p}return r};a.N=function(r,p,f,n,t,y){var g,B=h.C,q=f.location;if(!o)o=new c.Y(f,h);o.Ha(n);g=c.w(o.I(),".");if(g[1]<500||t){if(y)g=m(g);if(t||!y||g[2]>=1){if(!t&&y)g[2]=g[2]*1-1;g[1]=g[1]*1+1;r="?utmwv=4.1&utmn="+c.wa()+(c.m(q.hostname)?"":"&utmhn="+c.d(q.hostname))+(h.ha==100?"":"&utmsp="+c.d(h.ha))+r;if(0==B||2==B){var u=
new Image(1,1);u.src=h.Da+r;u.onload=function(){j()}}if(1==B||2==B){var x=new Image(1,1);x.src=("https:"==q.protocol?c.gc:c.fc)+r+"&utmac="+p+"&utmcc="+a.nc(f,n);x.onload=function(){j()}}}}o.La(g.join("."));o.Pa()};a.nc=function(r,p){var f=[],n=[c.o,c.X,c.na,c.oa],t,y=r[c.p],g;for(t=0;t<n[c.c];t++){g=c.B(y,n[t]+p,";");if(!c.m(g))c.g(f,n[t]+g+";")}return c.d(f.join("+"))}};_gat.h=function(){this.la=[]};_gat.h.ab=function(d,a,c,h,o,j){var m=this;m.Xb=d;m.Oa=a;m.K=c;m.qb=h;m.Jb=o;m.Kb=j};_gat.h.ab.prototype.R=function(){var d=this,a=_gat.d;return"&"+["utmt=item","utmtid="+a(d.Xb),"utmipc="+a(d.Oa),"utmipn="+a(d.K),"utmiva="+a(d.qb),"utmipr="+a(d.Jb),"utmiqt="+a(d.Kb)].join("&")};_gat.h.$=function(d,a,c,h,o,j,m,r){var p=this;p.u=d;p.mb=a;p.Wb=c;p.Vb=h;p.Sb=o;p.sb=j;p.Ub=m;p.vb=r;p.ca=[]};_gat.h.$.prototype.kb=function(d,a,c,h,o){var j=this,m=j.Bb(d),r=j.u,p=_gat;if(p.b==
m)p.g(j.ca,new p.h.ab(r,d,a,c,h,o));else{m.Xb=r;m.Oa=d;m.K=a;m.qb=c;m.Jb=h;m.Kb=o}};_gat.h.$.prototype.Bb=function(d){var a,c=this.ca,h;for(h=0;h<c[_gat.c];h++)a=d==c[h].Oa?c[h]:a;return a};_gat.h.$.prototype.R=function(){var d=this,a=_gat.d;return"&"+["utmt=tran","utmtid="+a(d.u),"utmtst="+a(d.mb),"utmtto="+a(d.Wb),"utmttx="+a(d.Vb),"utmtsp="+a(d.Sb),"utmtci="+a(d.sb),"utmtrg="+a(d.Ub),"utmtco="+a(d.vb)].join("&")};_gat.h.prototype.lb=function(d,a,c,h,o,j,m,r){var p=this,f=_gat,n=p.xa(d);if(f.b==
n){n=new f.h.$(d,a,c,h,o,j,m,r);f.g(p.la,n)}else{n.mb=a;n.Wb=c;n.Vb=h;n.Sb=o;n.sb=j;n.Ub=m;n.vb=r}return n};_gat.h.prototype.xa=function(d){var a,c=this.la,h;for(h=0;h<c[_gat.c];h++)a=d==c[h].u?c[h]:a;return a};_gat.ac=function(d){var a=this,c="-",h=_gat,o=d;a.Ja=screen;a.ob=!self.screen&&self.java?java.awt.Toolkit.getDefaultToolkit():h.b;a.a=document;a.V=window;a.n=navigator;a.Ka=c;a.Mb=c;a.rb=c;a.Ib=c;a.Gb=1;a.yb=c;function j(){var m,r,p,f,n="ShockwaveFlash",t="$version",y=a.n?a.n.plugins:h.b;if(y&&y[h.c]>0)for(m=0;m<y[h.c]&&!p;m++){r=y[m];if(h.O(r.name,"Shockwave Flash"))p=h.w(r.description,"Shockwave Flash ")[1]}else{n=n+"."+n;try{f=new ActiveXObject(n+".7");p=f.GetVariable(t)}catch(g){}if(!p)try{f=
new ActiveXObject(n+".6");p="WIN 6,0,21,0";f.AllowScriptAccess="always";p=f.GetVariable(t)}catch(B){}if(!p)try{f=new ActiveXObject(n);p=f.GetVariable(t)}catch(B){}if(p){p=h.w(h.w(p," ")[1],",");p=p[0]+"."+p[1]+" r"+p[2]}}return p?p:c}a.oc=function(){var m;if(self.screen){a.Ka=a.Ja.width+"x"+a.Ja.height;a.Mb=a.Ja.colorDepth+"-bit"}else if(a.ob)try{m=a.ob.getScreenSize();a.Ka=m.width+"x"+m.height}catch(r){}a.Ib=h.S(a.n&&a.n.language?a.n.language:(a.n&&a.n.browserLanguage?a.n.browserLanguage:c));a.Gb=
a.n&&a.n.javaEnabled()?1:0;a.yb=o?j():c;a.rb=h.d(a.a.characterSet?a.a.characterSet:(a.a.charset?a.a.charset:c))};a.Lc=function(){return"&"+["utmcs="+h.d(a.rb),"utmsr="+a.Ka,"utmsc="+a.Mb,"utmul="+a.Ib,"utmje="+a.Gb,"utmfl="+h.d(a.yb)].join("&")}};_gat.k=function(d,a,c,h,o){var j=this,m=_gat,r=m.m,p=m.b,f=m.O,n=m.B,t=m.S,y=m.w,g=m.c;j.a=a;j.e=d;j.Lb=c;j.ja=h;j.r=o;function B(q){return r(q)||"0"==q||!f(q,"://")}j.vc=function(q){var u=j.Cb(),x=j.r;return new m.k.q(n(q,x.eb+"=","&"),n(q,x.hb+"=","&"),n(q,x.jb+"=","&"),j.ba(q,x.cb,"(not set)"),j.ba(q,x.fb,"(not set)"),j.ba(q,x.ib,u&&!r(u.Q)?m.z(u.Q):p),j.ba(q,x.db,p))};j.Cb=function(){var q,u,x=j.Lb,z,l,v=j.r.fa;if(B(x))return;q=t(y(x,"://")[1]);if(f(q,"/"))q=y(q,"/")[0];for(z=0;z<v[g];z++){l=
v[z];if(f(q,t(l.wb))){x=y(x,"?").join("&");if(f(x,"&"+l.Hb+"=")){u=y(x,"&"+l.Hb+"=")[1];if(f(u,"&"))u=y(u,"&")[0];return new m.k.q(p,l.wb,p,"(organic)","organic",u,p)}}}};j.ba=function(q,u,x){var z=n(q,u+"=","&"),l=!r(z)?m.z(z):(!r(x)?x:"-");return l};j.Bc=function(q){var u=j.r.ea,x=false,z,l;if(q&&"organic"==q.da){z=t(m.z(q.Q));for(l=0;l<u[g];l++)x=x||t(u[l])==z}return x};j.uc=function(){var q="",u="",x=j.Lb;if(B(x))return;q=t(y(x,"://")[1]);if(f(q,"/")){u=m.D(q,m.v(q,"/"));if(f(u,"?"))u=y(u,"?")[0];
q=y(q,"/")[0]}if(0==m.v(q,"www."))q=m.D(q,4);return new m.k.q(p,q,p,"(referral)","referral",p,u)};j.kc=function(q){var u="";if(j.r.pa){u=m.Ab(q);u=""!=u?u+"&":u}u+=q.search;return u};j.qc=function(){return new m.k.q(p,"(direct)",p,"(direct)","(none)",p,p)};j.Cc=function(q){var u=false,x,z,l=j.r.ga;if(q&&"referral"==q.da){x=t(m.d(q.ia));for(z=0;z<l[g];z++)u=u||f(x,t(l[z]))}return u};j.T=function(q){return p!=q&&q.Fa()};j.pc=function(q,u){var x="",z="-",l,v,k=0,b,e,i=j.e;if(!q)return"";e=j.a[m.p]?j.a[m.p]:
"";x=j.kc(j.a.location);if(j.r.H&&q.Eb()){z=q.Ca();if(!r(z)&&!f(z,";")){q.Ra();return""}}z=n(e,m.X+i,";");l=j.vc(x);if(j.T(l)){v=n(x,j.r.gb+"=","&");if("1"==v&&!r(z))return""}if(!j.T(l)){l=j.Cb();if(!r(z)&&j.Bc(l))return""}if(!j.T(l)&&u){l=j.uc();if(!r(z)&&j.Cc(l))return""}if(!j.T(l))if(r(z)&&u)l=j.qc();if(!j.T(l))return"";if(!r(z)){var s=y(z,"."),w=new m.k.q;w.zb(s.slice(4).join("."));b=t(w.ka())==t(l.ka());k=s[3]*1}if(!b||u){var A=n(e,m.o+i,";"),D=A.lastIndexOf("."),F=D>9?m.D(A,D+1)*1:0;k++;F=0==
F?1:F;q.Rb([i,j.ja,F,k,l.ka()].join("."));q.Ra();return"&utmcn=1"}else return"&utmcr=1"}};_gat.k.q=function(d,a,c,h,o,j,m){var r=this;r.u=d;r.ia=a;r.ra=c;r.K=h;r.da=o;r.Q=j;r.tb=m};_gat.k.q.prototype.ka=function(){var d=this,a=_gat,c=[],h=[[a.Wa,d.u],[a.Ya,d.ia],[a.$a,d.ra],[a.Ua,d.K],[a.Xa,d.da],[a.Za,d.Q],[a.Va,d.tb]],o;if(d.Fa())for(o=0;o<h[a.c];o++)if(!a.m(h[o][1]))a.g(c,h[o][0]+a.d(a.z(h[o][1])));return c.join("|")};_gat.k.q.prototype.Fa=function(){var d=this,a=_gat.m;return!(a(d.u)&&a(d.ia)&&
a(d.ra))};_gat.k.q.prototype.zb=function(d){var a=this,c=_gat,h=function(o){return c.z(c.B(d,o,"|"))};a.u=h(c.Wa);a.ia=h(c.Ya);a.ra=h(c.$a);a.K=h(c.Ua);a.da=h(c.Xa);a.Q=h(c.Za);a.tb=h(c.Va)};_gat.Z=function(){var d=this,a=_gat,c={},h="k",o="v",j=[h,o],m="(",r=")",p="*",f="!",n="'",t={};t[n]="'0";t[r]="'1";t[p]="'2";t[f]="'3";var y=1;function g(l,v,k,b){if(a.b==c[l])c[l]={};if(a.b==c[l][v])c[l][v]=[];c[l][v][k]=b}function B(l,v,k){if(a.b!=c[l]&&a.b!=c[l][v])return c[l][v][k];else return a.b}function q(l,v){if(a.b!=c[l]&&a.b!=c[l][v]){c[l][v]=a.b;var k=true,b;for(b=0;b<j[a.c];b++)if(a.b!=c[l][j[b]]){k=false;break}if(k)c[l]=a.b}}function u(l){var v="",k=false,b,e;for(b=0;b<j[a.c];b++){e=
l[j[b]];if(a.b!=e){if(k)v+=j[b];v+=x(e);k=false}else k=true}return v}function x(l){var v=[],k,b;for(b=0;b<l[a.c];b++)if(a.b!=l[b]){k="";if(b!=y&&a.b==l[b-1]){k+=b.toString();k+=f}k+=z(l[b]);a.g(v,k)}return m+v.join(p)+r}function z(l){var v="",k,b,e;for(k=0;k<l[a.c];k++){b=l.charAt(k);e=t[b];if(a.b!=e)v+=e;else v+=b}return v}d.yc=function(l){return a.b!=c[l]};d.M=function(){var l=[],v;for(v in c)if(a.b!=c[v])a.g(l,v.toString()+u(c[v]));return l.join("")};d.Fc=function(l){if(l==a.b)return d.M();var v=
[l.M()],k;for(k in c)if(a.b!=c[k]&&!l.yc(k))a.g(v,k.toString()+u(c[k]));return v.join("")};d._setKey=function(l,v,k){if(typeof k!="string")return false;g(l,h,v,k);return true};d._setValue=function(l,v,k){if(typeof k!="number"&&(a.b==Number||!(k instanceof Number)))return false;if(Math.round(k)!=k||k==NaN||k==Infinity)return false;g(l,o,v,k.toString());return true};d._getKey=function(l,v){return B(l,h,v)};d._getValue=function(l,v){return B(l,o,v)};d._clearKey=function(l){q(l,h)};d._clearValue=function(l){q(l,
o)}};_gat.cc=function(d,a){var c=this;c.Wc=a;c.Dc=d;c._trackEvent=function(h,o,j){return a._trackEvent(c.Dc,h,o,j)}};_gat.ec=function(d){var a=this,c=_gat,h=c.b,o=c.m,j=c.v,m=c.D,r=c.B,p=c.O,f=c.w,n="location",t=c.c,y=h,g=new c.bc,B=false;a.a=document;a.V=window;a.ja=Math.round((new Date).getTime()/1000);a.G=d;a.va=h;a.i=h;a.Hc=c.wa();a.A=h;a.L=false;a.aa=h;a.pb="";a.j=h;a.xb=h;a.e=h;a.s=h;function q(){if("auto"==g.f){var b=a.a.domain;if("www."==m(b,0,4))b=m(b,4);g.f=b}g.f=c.S(g.f)}function u(){var b=g.f,e=j(b,"www.google.")*j(b,".google.")*j(b,"google.");return e||"/"!=g.l||j(b,"google.org")>-1}function x(b,e,
i){if(o(b)||o(e)||o(i))return"-";var s=r(b,c.o+a.e,e),w;if(!o(s)){w=f(s,".");w[5]=w[5]?w[5]*1+1:1;w[3]=w[4];w[4]=i;s=w.join(".")}return s}function z(){return"file:"!=a.a[n].protocol&&u()}function l(b){if(!b||""==b)return"";while(c.Fb(b.charAt(0)))b=m(b,1);while(c.Fb(b.charAt(b[t]-1)))b=m(b,0,b[t]-1);return b}function v(b,e,i){if(!o(b())){e(c.z(b()));if(!p(b(),";"))i()}}function k(b){var e,i=""!=b&&a.a[n].host!=b;if(i)for(e=0;e<g.J[t];e++)i=i&&j(c.S(b),c.S(g.J[e]))==-1;return i}a.rc=function(){if(!g.f||
""==g.f||"none"==g.f){g.f="";return 1}q();if(g.nb)return c.t(g.f);else return 1};a.lc=function(b,e){if(o(b))b="-";else{e+=g.l&&"/"!=g.l?g.l:"";var i=j(b,e);b=i>=0&&i<=8?"0":("["==b.charAt(0)&&"]"==b.charAt(b[t]-1)?"-":b)}return b};a.Ia=function(b){var e="",i=a.a;e+=a.aa?a.aa.Lc():"";e+=g.qa?a.pb:"";e+=g.ta&&!o(i.title)?"&utmdt="+c.d(i.title):"";e+="&utmhid="+c.mc()+"&utmr="+a.va+"&utmp="+a.Gc(b);return e};a.Gc=function(b){var e=a.a[n];b=h!=b&&""!=b?c.d(b,true):c.d(e.pathname+unescape(e.search),true);
return b};a.Oc=function(b){if(a.P()){var e="";if(a.j!=h&&a.j.M().length>0)e+="&utme="+c.d(a.j.M());e+=a.Ia(b);y.N(e,a.G,a.a,a.e)}};a.jc=function(){var b=new c.Y(a.a,g);return b.Ha(a.e)?b.Kc():h};a._getLinkerUrl=function(b,e){var i=f(b,"#"),s=b,w=a.jc();if(w)if(e&&1>=i[t])s+="#"+w;else if(!e||1>=i[t])if(1>=i[t])s+=(p(b,"?")?"&":"?")+w;else s=i[0]+(p(b,"?")?"&":"?")+w+"#"+i[1];return s};a.Tb=function(){var b;if(a.A&&a.A[t]>=10&&!p(a.A,"=")){a.s.Ic(a.A);a.s.Qc();c._gasoDomain=g.f;c._gasoCPath=g.l;b=
a.a.createElement("script");b.type="text/javascript";b.id="_gasojs";b.src="https://www.google.com/analytics/reporting/overlay_js?gaso="+a.A+"&"+c.wa();a.a.getElementsByTagName("head")[0].appendChild(b)}};a.xc=function(){var b=a.a[c.p],e=a.ja,i=a.s,s=a.e+"",w=a.V,A=w?w.gaGlobal:h,D,F=p(b,c.o+s),I=p(b,c.W+s),J=p(b,c.ma+s),E,C=[],G="",H;b=o(b)?"":b;if(g.H){D=c.Ab(a.a[n]);if(g.pa&&!o(D))G=D+"&";G+=a.a[n].search;if(!o(G)&&p(G,c.o)){i.Ec(G);if(!i.Eb())i.ic();E=i.ya()}v(i.Ba,i.Qb,i.$b);v(i.Aa,i.Na,i.Qa)}if(!o(E))if(o(i.I())||
o(i.za())){E=x(G,"&",e);a.L=true}else{C=f(i.I(),".");s=C[0]}else if(F)if(!I||!J){E=x(b,";",e);a.L=true}else{E=r(b,c.o+s,";");C=f(r(b,c.W+s,";"),".")}else{E=[s,a.Hc,e,e,e,1].join(".");a.L=true}E=f(E,".");if(w&&A){E[4]=A.sid?A.sid:E[4];if(A.vid){H=f(A.vid,".");E[1]=H[0];E[2]=H[1]}}i.Ob(E.join("."));C[0]=s;C[1]=C[1]?C[1]:0;C[2]=undefined!=C[2]?C[2]:g.Mc;C[3]=C[3]?C[3]:(new Date).getTime();i.La(C.join("."));i.Pb(s);if(!o(i.wc()))i.Ma(i.t());i.Yb();i.Pa();i.Zb()};a.zc=function(){y=new c.dc(g)};a._initData=
function(){var b;if(!B){a.zc();a.e=a.rc();a.s=new c.Y(a.a,g)}if(z())a.xc();if(!B){if(z()){a.va=a.lc(a.a.referrer,a.a.domain);if(g.sa){a.aa=new c.ac(g.ua);a.aa.oc()}if(g.qa){b=new c.k(a.e,a.a,a.va,a.ja,g);a.pb=b.pc(a.s,a.L)}}a.j=new c.Z;a.xb=new c.Z;B=true}if(!c.Db)a.Ac()};a._visitCode=function(){a._initData();var b=r(a.a[c.p],c.o+a.e,";"),e=f(b,".");return e[t]<4?"":e[1]};a._cookiePathCopy=function(b){a._initData();if(a.s)a.s.Pc(a.e,b)};a.Ac=function(){var b=a.a[n].hash,e;e=b&&""!=b&&0==j(b,"#gaso=")?
r(b,"gaso=","&"):r(a.a[c.p],c.Sa,";");if(e[t]>=10){a.A=e;if(a.V.addEventListener)a.V.addEventListener("load",a.Tb,false);else a.V.attachEvent("onload",a.Tb)}c.Db=true};a.P=function(){return a._visitCode()%10000<g.ha*100};a.Jc=function(){var b,e,i=a.a.links;for(b=0;b<i[t]&&(g.Ga==-1||b<g.Ga);b++){e=i[b];if(k(e.host))if(!e.gatcOnclick){e.gatcOnclick=e.onclick;e.onclick=function(s){a._trackOutboundUrl(this.href);if(this.gatcOnclick)return this.gatcOnclick(s)}}}};a._trackPageview=function(b){if(z()){a._initData();
if(g.J&&g.J[t]>0)a.Jc();a.Oc(b);a.L=false}};a._trackTrans=function(){var b=a.e,e=[],i,s,w,A;a._initData();if(a.i&&a.P()){for(i=0;i<a.i.la[t];i++){s=a.i.la[i];c.g(e,s.R());for(w=0;w<s.ca[t];w++)c.g(e,s.ca[w].R())}for(A=0;A<e[t];A++)y.N(e[A],a.G,a.a,b,true)}};a._setTrans=function(){var b=a.a,e,i,s,w,A=b.getElementById?b.getElementById("utmtrans"):(b.utmform&&b.utmform.utmtrans?b.utmform.utmtrans:h);a._initData();if(A&&A.value){a.i=new c.h;w=f(A.value,"UTM:");g.F=!g.F||""==g.F?"|":g.F;for(e=0;e<w[t];e++){w[e]=
l(w[e]);i=f(w[e],g.F);for(s=0;s<i[t];s++)i[s]=l(i[s]);if("T"==i[0])a._addTrans(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8]);else if("I"==i[0])a._addItem(i[1],i[2],i[3],i[4],i[5],i[6])}}};a._addTrans=function(b,e,i,s,w,A,D,F){a.i=a.i?a.i:new c.h;return a.i.lb(b,e,i,s,w,A,D,F)};a._addItem=function(b,e,i,s,w,A){var D;a.i=a.i?a.i:new c.h;D=a.i.xa(b);if(!D)D=a._addTrans(b,"","","","","","","");D.kb(e,i,s,w,A)};a._setVar=function(b){if(b&&""!=b&&u()){var e=new c.Y(a.a,g),i=a.e;e.Na(i+"."+c.d(b));e.Qa();if(a.P())y.N("&utmt=var",
a.G,a.a,a.e)}};a._link=function(b,e){if(g.H&&b){a._initData();a.a[n].href=a._getLinkerUrl(b,e)}};a._linkByPost=function(b,e){if(g.H&&b&&b.action){a._initData();b.action=a._getLinkerUrl(b.action,e)}};a._setXKey=function(b,e,i){a.j._setKey(b,e,i)};a._setXValue=function(b,e,i){a.j._setValue(b,e,i)};a._getXKey=function(b,e){return a.j._getKey(b,e)};a._getXValue=function(b,e){return a.j.getValue(b,e)};a._clearXKey=function(b){a.j._clearKey(b)};a._clearXValue=function(b){a.j._clearValue(b)};a._createXObj=
function(){a._initData();return new c.Z};a._sendXEvent=function(b){var e="";a._initData();if(a.P()){e+="&utmt=event&utme="+c.d(a.j.Fc(b))+a.Ia();y.N(e,a.G,a.a,a.e,false,true)}};a._createEventTracker=function(b){a._initData();return new c.cc(b,a)};a._trackEvent=function(b,e,i,s){var w=true,A=a.xb;if(h!=b&&h!=e&&""!=b&&""!=e){A._clearKey(5);A._clearValue(5);w=A._setKey(5,1,b)?w:false;w=A._setKey(5,2,e)?w:false;w=h==i||A._setKey(5,3,i)?w:false;w=h==s||A._setValue(5,1,s)?w:false;if(w)a._sendXEvent(A)}else w=
false;return w};a._trackOutboundUrl=function(b){a._initData();if(a.P()){var e=new c.Z;e._setKey(6,1,b);y.N("&utmt=event&utme="+c.d(e.M())+a.Ia(),a.G,a.a,a.e,false,true)}};a._setDomainName=function(b){g.f=b};a.Rc=function(){return g.f};a._addOrganic=function(b,e){c.g(g.fa,new c.bb(b,e))};a._clearOrganic=function(){g.fa=[]};a.Vc=function(){return g.fa};a._addIgnoredOrganic=function(b){c.g(g.ea,b)};a._clearIgnoredOrganic=function(){g.ea=[]};a.Sc=function(){return g.ea};a._addIgnoredRef=function(b){c.g(g.ga,
b)};a._clearIgnoredRef=function(){g.ga=[]};a.Tc=function(){return g.ga};a._setAllowHash=function(b){g.nb=b?1:0};a._setCampaignTrack=function(b){g.qa=b?1:0};a._setClientInfo=function(b){g.sa=b?1:0};a._getClientInfo=function(){return g.sa};a._setCookiePath=function(b){g.l=b};a._setTransactionDelim=function(b){g.F=b};a._setCookieTimeout=function(b){g.ub=b};a._setDetectFlash=function(b){g.ua=b?1:0};a._getDetectFlash=function(b){return g.ua};a._setDetectTitle=function(b){g.ta=b?1:0};a._getDetectTitle=
function(){return g.ta};a._setLocalGifPath=function(b){g.Da=b};a._getLocalGifPath=function(){return g.Da};a._setLocalServerMode=function(){g.C=0};a._setRemoteServerMode=function(){g.C=1};a._setLocalRemoteServerMode=function(){g.C=2};a.Uc=function(){return g.C};a._getServiceMode=function(){return g.C};a._setSampleRate=function(b){g.ha=b};a._setSessionTimeout=function(b){g.Nb=b};a._setAllowLinker=function(b){g.H=b?1:0};a._setAllowAnchor=function(b){g.pa=b?1:0};a._setCampNameKey=function(b){g.cb=b};
a._setCampContentKey=function(b){g.db=b};a._setCampIdKey=function(b){g.eb=b};a._setCampMediumKey=function(b){g.fb=b};a._setCampNOKey=function(b){g.gb=b};a._setCampSourceKey=function(b){g.hb=b};a._setCampTermKey=function(b){g.ib=b};a._setCampCIdKey=function(b){g.jb=b};a._getAccount=function(){return a.G};a._getVersion=function(){return"4.1"};a.Xc=function(b){g.J=b};a.Yc=function(b){g.Ga=b}};_gat._getTracker=function(d){var a=new _gat.ec(d);return a};

/* here's the code that actually instatiates the tracker */

var pageTracker = _gat._getTracker("UA-1970577-5");
pageTracker._setDomainName("practicallaw.com");
pageTracker._initData();
pageTracker._trackPageview();
