var undefined;if(window.siAutoTracer==void 0)window.siAutoTracer=!0;
var siBaseDirectory="/si",siTaggingServer="analytics.hse.gov.uk",siCookieName="SITESERVER",siTracerCookieName="SITRACER",siLinkAttribute="id",siCookieQPName="simigvis",siCookiePath="/",siCookieTimeout=31536E7,siTracerTimeout=1E3,siDomainList=[".gov.uk",".co.uk",".com",".org",".net",".org.uk"],siCentralCookie=!1,siCentralReqName="req",siCentralRefName="refer",siCentralURL="",siTrackerUrl=siBaseDirectory+"/track.gif",siTrackerVersion="5.1.14",siIsCookieNew="N",siCookieValue=null,siExtClickID="t"+(new Date).getTime()+
"h"+window.history.length,siClickedLinkID="",siRefClickID="",siTracerPath="",siTracerQuery="",siSendParams="",siTracerCookieIdx=0,siImageSet=Array(1),siReferrer=document.referrer,siRequest=document.URL,siPageIDAttrName="si:pageID",siTagType="",siFormQueryLimit=1200,siSentPageTag=!1,siSyncTracersOutstanding=0,siSyncFinishedAction=null;
function SiInternalGetLinkClickingClosure(a){var b=a.href,c=a.getAttribute("target");if(!c||c=="_self")return function(){location.href=b};else if(c.length>0&&c.substring(0,1)=="_")return function(){window.open(b,c)};else{var d=top.frames[c];return d?function(){d.location.href=b}:function(){window.open(b,c)}}}
function SiEncodeString(a){if(!a)return"";for(var b="",c=0;c<a.length;c+=3){var d=a.length-c,f=0,f=a.charCodeAt(c)<<16&16711680;f|=d>1?a.charCodeAt(c+1)<<8&65280:0;f|=d>2?a.charCodeAt(c+2)&255:0;b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((f&16515072)>>18);b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((f&258048)>>12);b+=d>1?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((f&4032)>>6):"_";b+=d>2?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f&
63):"_"}return b}
function SiEncodeDetails(a){for(var b="",c=0;c<a.length;c++){var d;switch(a.charAt(c)){case "r":d=siReferrer;break;case "p":d=siRequest;break;case "d":d=screen.availWidth+"x"+screen.availHeight+"x"+screen.colorDepth+"."+navigator.javaEnabled();navigator.plugins&&(d+="."+navigator.plugins.length);break;case "c":d=siCookieValue;break;case "u":d=window.history.length+"."+Math.random()*1E3+"."+(new Date).getTime();break;case "t":d=siExtClickID;break;case "f":d=siTracerPath;break;case "q":d=siTracerQuery;
break;case "g":d=SiCollateTagData();break;case "w":d=siIsCookieNew;break;case "y":d=siTagType}b+=SiEncodeString(d)+"*"}return b}
function SiCollateTagData(){var a="";a+="co="+window.screen.colorDepth;a+="&sr="+window.screen.width+"x"+window.screen.height;today=new Date;null!=today&&(a+="&lt="+SiFormatDate(today));a+=navigator.javaEnabled()?"&jv=1":"&jv=0";a+=SiCollatePageRules();if(document.body){var b=document.body.getAttribute(siPageIDAttrName);b&&(a+="&req="+b)}siClickedLinkID&&siClickedLinkID.length>0&&(a+="&rl="+siClickedLinkID);siRefClickID.length>0&&(a+="&rcid="+siRefClickID);return a}
function SiCollatePageRules(){var a="";window.siIsFrameset&&(a+="&page:fset");window.siIsMenu&&(a+="&page:menu");window.siIsExtraFrame&&(a+="&page:x-frame");window.siIsRedirection&&(a+="&page:redir");window.siIsPopup&&(a+="&page:popup");return a}function SiIsMenu(){window.siIsMenu=!0}function SiIsFrameset(){window.siIsFrameset=!0}function SiIsExtraFrame(){window.siIsExtraFrame=!0}function SiIsRedirection(){window.siIsRedirection=!0}function SiIsPopup(){window.siIsPopup=!0}
function SiSetPageID(a){document.body.setAttribute(siPageIDAttrName,a)}function SiFormatDate(a){var b="";b+=a.getFullYear()+"";b+="-";b+=leadingZero(a.getMonth()+1);b+="-";b+=leadingZero(a.getDate());b+="T";b+=leadingZero(a.getHours());b+=":";b+=leadingZero(a.getMinutes());b+=":";b+=leadingZero(a.getSeconds());return b}function leadingZero(a){if(a<1)return"00";return(a>9?"":"0")+a}
function SiGetDomain(){var a=null,b=document.location.hostname;if(b!=null){var c;for(c=0;c<siDomainList.length&&a==null;c++){var d=b.lastIndexOf(siDomainList[c]);d>0&&(a=b.lastIndexOf(".",d-1),a=a>=0?b.substring(a):"."+b)}}return a}function SiTrackLink(a){try{return siTagType="trace",siClickedLinkID=/string/.test(typeof a)?a:a.getAttribute(siLinkAttribute),SiInternalTrackLink(),!0}catch(b){return SiInternalError(b)}}function SiInternalTrackLink(){SiInternalDoLinkTrack(SiDeferTracer)}
function SiInternalTrackLinkImmediate(){SiInternalDoLinkTrack(SiSyncTracer)}function SiInternalTrackLinkPassiveSend(){SiInternalDoLinkTrack(SiSendTracer)}function SiInternalTrackLinkWait(){SiInternalDoLinkTrack(SiSendTracerWithWait)}function SiInternalTrackLinkViaSynchronousSend(a,b){b||(b=SiInternalGetLinkClickingClosure(a));SiInternalDoLinkTrack(SiSyncTracer,b,siTracerTimeout)}
function SiInternalDoLinkTrack(a,b,c){siRefClickID=siExtClickID;siTracerPath="http://"+document.location.hostname+siBaseDirectory+"/link";siTracerQuery="";b?c?a("fctgy","fdtgy",b,c):a("fctgy","fdtgy",b):a("fctgy","fdtgy");siTracerPath=siRefClickID=siClickedLinkID=""}function SiTrackEvent(a){try{siTagType="trace",siClickedLinkID=/string/.test(typeof a)?a:a.getAttribute(siLinkAttribute),SiInternalTrackLinkPassiveSend()}catch(b){SiInternalError(b)}}
function SiTrackExternalLink(a,b){try{return siTagType="trace",siClickedLinkID=/string/.test(typeof a)?a:a.getAttribute(siLinkAttribute),SiInternalTrackLinkViaSynchronousSend(a,b),!1}catch(c){return SiInternalError(c)}}
function SiTrackLinkToUntagged(a){try{siClickedLinkID=a.getAttribute(siLinkAttribute);siTagType="trace";SiInternalTrackLinkImmediate();siTagType="page";siTracerPath=a.href;if(siTracerPath.indexOf("://")==-1){if(siTracerPath.substring(0,1)!="/"){var b=document.location.pathname.lastIndexOf("/");siTracerPath=document.location.pathname.substring(0,b+1)+siTracerPath}siTracerPath.substring(0,2)!="//"&&(siTracerPath="//"+document.location.hostname+siTracerPath);siTracerPath=document.location.protocol+siTracerPath}var c=
SiInternalGetLinkClickingClosure(a);SiSyncTracer("fctgy","fdtgy",c,siTracerTimeout);return!1}catch(d){return SiInternalError(d)}}function SiTrackData(a){siTracerPath="http://"+document.location.hostname+siBaseDirectory+"/data";siTracerQuery=a;siTagType="extra";SiSendTracer("fqcty","fqdty")}function SiAddTrackParam(a,b){try{siSendParams!=""&&(siSendParams+="&"),siSendParams+=escape(a)+"="+escape(b),siSendParams.length>=512&&SiSendTrackParams()}catch(c){SiInternalError(c)}}
function SiSendTrackParams(){siSendParams!=""&&(SiTrackData(siSendParams),siSendParams="")}function SiSetCookie(a,b,c){var d=new Date;d.setTime(d.getTime()+c);c=SiGetDomain();c=a+"="+b+(siCookiePath?"; path="+siCookiePath:"")+(c?"; domain="+c:"");document.cookie=c+"; expires="+d.toGMTString();if(SiGetCookie(a)!=b)document.cookie=c}function SiGetCookie(a){return SiExtractPart(a,document.cookie,";")}
function SiExtractPart(a,b,c){var d=a+"=",f=null,e=b.indexOf(d);if(e!=-1&&a.length>0){a=b.indexOf(c,e);if(a==-1)a=b.length;f=b.substring(e+d.length,a)}return f}function SiDeleteCookie(a,b,c){var d=new Date;d.setTime(d.getTime()-1);b||(b=siCookiePath);c||(c=SiGetDomain());document.cookie=a+"=null"+(b?"; path="+b:"")+(c?"; domain="+c:"")+"; expires="+d.toGMTString()}
function SiBuildCookie(){var a=SiExtractPart(siCookieQPName,document.URL,"&");if(a!=null)SiSetCookie(siCookieName,a,siCookieTimeout),siCentralCookie&&(a=SiExtractPart(siCentralRefName,document.URL,"&"),a!=null&&(siReferrer=unescape(a)),a=SiExtractPart(siCentralReqName,document.URL,"&"),a!=null&&(siRequest=unescape(a)));else if(a=SiGetCookie(siCookieName),a==null&&(a=SiEncodeDetails("u"),siIsCookieNew="Y",SiSetCookie(siCookieName,a,siCookieTimeout),siCentralCookie&&(a=SiGetCookie(siCookieName),a!=
null)))a=siCentralURL,a+=siCentralURL.indexOf("?")==-1?"?":"&",a+=siCentralReqName+"="+escape(document.URL)+"&"+siCentralRefName+"="+escape(document.referrer),siAutoTracer=!1,document.location=a;return a=SiGetCookie(siCookieName)}function SiMigrateCookie(a){var b=SiGetCookie(siCookieName);if(b!=null)a.href=a.href+(a.href.indexOf("?")>0?"&":"?")+siCookieQPName+"="+b;return!0}
function SiMigrateCookieForm(a){var b=SiGetCookie(siCookieName);if(b!=null)if(a.method.toUpperCase()=="GET")try{try{var c=document.createElement('<input name="'+siCookieQPName+'" type="hidden" value="'+b+'" />')}catch(d){c=document.createElement("input"),c.setAttribute("name",siCookieQPName),c.setAttribute("type","hidden"),c.setAttribute("value",b)}a.appendChild(c)}catch(f){}else a.action=a.action+(a.action.indexOf("?")>0?"&":"?")+siCookieQPName+"="+b;return!0}
function SiProcessTracer(a,b,c){a=siCookieValue==null?siTaggingServer+siTrackerUrl+"?f="+b+"&d="+SiEncodeDetails(b):siTaggingServer+siTrackerUrl+"?f="+a+"&d="+SiEncodeDetails(a);siTagType="";c(a)}function SiSendTracer(a,b){SiProcessTracer(a,b,function(a){var b=new Image;b.src=a;siImageSet[siImageSet.length]=b})}
function SiSyncTracer(a,b,c,d){SiProcessTracer(a,b,function(a){var b=new Image;if(c&&(siSyncFinishedAction=c,d)){var g=function(){if(siSyncFinishedAction){var a=siSyncFinishedAction;siSyncFinishedAction=null;a()}};g.toString=function(){return"var exec = siSyncFinishedAction; siSyncFinishedAction = null; exec();"};var h=window.setTimeout(g,d)}g=function(){if(b.complete&&--siSyncTracersOutstanding==0&&siSyncFinishedAction){h&&window.clearTimeout(h);var a=siSyncFinishedAction;siSyncFinishedAction=null;
a()}};try{b.addEventListener?b.addEventListener("load",g,!1):b.attachEvent("onreadystatechange",g)}catch(i){}++siSyncTracersOutstanding;b.src=a;siImageSet[siImageSet.length]=b})}function SiDeferTracer(a,b){siTracerCookieIdx<25&&SiProcessTracer(a,b,function(a){siTracerCookieIdx>0&&SiGetCookie(siTracerCookieName+(siTracerCookieIdx-1))==null&&(siTracerCookieIdx=0);var b=siTracerCookieName+siTracerCookieIdx++;SiSetCookie(b,a,18E5)})}function SiTrackFormData(a,b){return SiTrackForm(null,a,b)}
function SiTrackExternalFormData(a,b,c){try{return siTracerPath="http://"+document.location.hostname+siBaseDirectory+"/form",siTagType="extra",c||(c=function(){a.submit()}),SiInternalBuildAndSendFormTracerQuery(a,function(){SiSyncTracer("fqcty","fqdty",c,siTracerTimeout)},b),!1}catch(d){return SiInternalError(d)}}
function SiTrackForm(a,b,c){try{return siTracerPath="http://"+document.location.hostname+(a==null?siBaseDirectory+"/form":a),siTagType="extra",SiInternalBuildAndSendFormTracerQuery(b,function(){SiDeferTracer("fqcty","fqdty")},c),!0}catch(d){return SiInternalError(d)}}
function SiActiveTrackForm(a,b){try{if(a.elements&&a.elements.length>0){a.siFilledFields=[];for(var c=0;c<a.elements.length;c++){var d=a.elements[c];if(d.name){var f=b==null;if(b!=null)for(var e=0;!f&&e<b.length;e++)d.name==b[e]&&(f=!0);if(f){var g=d.onblur;d.onblur=function(){g&&g();SiInternalActiveTrackElement(a,this)}}}}}}catch(h){SiInternalError(h)}}
function SiInternalActiveTrackElement(a,b){if(b.name&&(b.type=="radio"||b.type=="checkbox"?b.checked!=b.defaultChecked:b.value!=b.defaultValue)){for(var c=a.siFilledFields,d=0;d<c.length;d++)if(b.name==c[d])return;d=escape("siform:"+b.name)+"=Y";siTracerPath="http://"+document.location.hostname+siBaseDirectory+"/formfield";siTracerQuery=d;siTagType="extra";SiSendTracer("fqcty","fqdty");c[c.length]=b.name}}
function SiInternalBuildAndSendFormTracerQuery(a,b,c){siTracerQuery="";if(a.elements&&a.elements.length>0){for(var d=!1,f=0;f<a.elements.length;f++){var e=a.elements[f];if(e.name){var g=c==null;if(c!=null)for(var h=0;!g&&h<c.length;h++)e.name==c[h]&&(g=!0);if(g&&e.type=="radio")g=e.checked;e.type=="file"&&(g=!1);e.type=="submit"&&(g=e==a.siActivatedSubmit);g&&(e=escape(e.name)+"="+(e.type=="checkbox"?e.checked?"true":"false":escape(e.value)),siTracerQuery.length+e.length>siFormQueryLimit&&(b(),siTracerQuery=
"",d=!1),d&&(siTracerQuery+="&"),siTracerQuery+=e,d=!0)}}b()}}function SiTrackTracer(a,b){try{SiInternalTrackTracer(a,b,null)}catch(c){SiInternalError(c)}}function SiSendAdditionalTracer(a,b){try{SiInternalTrackTracer(a,b,"trace")}catch(c){SiInternalError(c)}}function SiInternalTrackTracer(a,b,c){a.substring(0,1)=="/"&&(a=document.location.protocol+"//"+document.location.hostname+a);siTracerPath=a;siTracerQuery=b;siTagType=c;SiSendTracer("fqcty","fqdty")}
function SiTrackPage(a){try{a!=void 0&&(a.indexOf("://")==-1&&(a.substring(0,1)!="/"&&(a="/"+a),a=document.location.protocol+"//"+document.location.hostname+a),siRequest=a.indexOf("?")==-1?a+window.location.search:a+"&"+window.location.search.substring(1)),siTagType="page",SiSendTracer("pcrtgy","pdrtgy")}catch(b){SiInternalError(b)}}
function SiRegisterForms(){try{for(var a=function(){this.form.siActivatedSubmit=this},b=0;b<document.forms.length;b++)for(var c=document.forms[b],d=0;d<c.elements.length;d++)if(c.elements[d].type=="submit"){var f=c.elements[d],e=f.onclick;e?function(){var a=e;f.onclick=function(){this.form.siActivatedSubmit=this;a()}}():f.onclick=a}}catch(g){SiInternalError(g)}}
function SiInitPage(){try{siTaggingServer==null?siTaggingServer=document.location.protocol+"//"+document.location.hostname+":"+document.location.port:siTaggingServer.substring(0,4)!="http"&&(siTaggingServer=document.location.protocol+"//"+siTaggingServer+":"+document.location.port),siCookieValue=SiBuildCookie(),SiSendDeferredTracers()}catch(a){SiInternalError(a)}}
function SiSendDeferredTracers(){for(var a=0,b=siTracerCookieName+a++,c=SiGetCookie(b);c;){if(c.substring(0,c.indexOf(":")+1)==document.location.protocol){var d=new Image;d.src=c;siImageSet[siImageSet.length]=d}SiDeleteCookie(b);b=siTracerCookieName+a++;c=SiGetCookie(b)}}function SiNewPageContext(){siExtClickID="t"+(new Date).getTime()+"h"+window.history.length}function SiInternalError(){return!0}SiInitPage();window.siAutoTracer&&SiTrackPage();


