function CheckCookie(){var n=navigator.cookieEnabled?!0:!1,t;if(typeof navigator.cookieEnabled!="undefined"||n||(document.cookie="testCookies",n=document.cookie.indexOf("testCookies")!=-1?!0:!1),n){if(document.cookie.indexOf("acceptCookies")!=-1)return;t=document.getElementById("CookiePolicy");t.style.visibility="visible"}else return}function WriteCookie(n,t,i){var r;i!=""?(r=new Date,r.setTime(r.getTime()+i*6e4),document.cookie=n+"="+t+";expires="+r.toGMTString()):document.cookie=n+"="+t}function CookieAccept(){WriteCookie("acceptCookies","Accepted Cookie Policy",525600);var n=document.getElementById("CookiePolicy");n.style.visibility="hidden"}function PageOnLoad(){StripeTable();typeof UserOnLoad=="function"&&UserOnLoad()}function MenuHighlight(n,t){n.className=t?"menuItemOn":"menuItemOff"}function ButtonHighlight(n,t){n.className=t!=-1?"button"+t:"buttonHightlight"}function StripeTable(){for(var r,u,n,i=document.getElementsByTagName("table"),t=0;t<i.length;t++)if(r=i[t],r.className=="USER_StrippedTable")for(u=r.getElementsByTagName("tr"),n=0;n<u.length;n++)u[n].className=n%2==0?"USER_StripeOn":"USER_StripeOff"}function ACPO_TreeHighlight(n,t){n.className=t?"ACPO_MenuItem":"ACPO_MenuItemOver"}function ShowFeed(n,t,i){var r=document.getElementById(t);if(r==null){alert("Error can't find id "+t);return}i?(r.style.left=n.left-300+"px",r.style.top=n.top+"px",r.style.display="inline"):r.style.display="none"}function showDiv(n){for(var i=n.getElementsByTagName("div"),t=0;t<i.length;t++)i[t].style.display=i[t].style.display=="none"?"inline":"none"}function MobileMenu(){var n=document.getElementById("TreeView"),t=document.getElementById("header"),i=!1;switch(n.style.display){case"inline":n.style.display="none";n.style.height=0;t.style.height="14em";i=!0;break;default:n.style.display="inline";n.style.maxHeight="none";n.style.height="auto";t.style.height="unset"}}function OpenMenu(n){window.open(n,"_self");CancelBubble()}function CancelBubble(){typeof event.stopPropagation=="function"?(event.stopPropagation(),event.preventDefault()):window.event&&window.event.cancelBubble&&(window.event.cancelBubble=!0)}