PageSourceSearch

https://www.warnergoodman.co.uk/cdn/cms4/js/cms_core.js

js warnergoodman.co.uk collected 2026-10-05 22:34:44 UTC 31,766 bytes, 5 lines download raw bytes

1function newPagination(a,i,n,r,e){if(0==i&&1==n)return"";for(var t=i-5+1,f=t<=0?1:t,o=10+f-1,c=n>=o?o:n,g="",l=(r=r||"",a=a?"#"+a:"",f-1);l<c;l++){g+='<li class="pagination-page'+(l===i?" active":"")+'"><a href="'+r+"?id="+e+"&pa="+l+a+'">'+(l+1)+"</a></li>"}return g}function _CMSTrackingEnabled(cookieGroup) {var pPref=getCookie("privacy_cookie_status");if (!pPref) {pPref=getCookie("privacy_preference")}if (pPref) {$('#cookieValue').html(pPref)};if ( $("meta[property='cms:privacy-version']").attr("content") ) {console.log('New Style Privacy'); }else {console.log('Old Style Privacy');}if ( cookieGroup ) {if ( pPref && pPref.indexOf('allow'+cookieGroup)!=-1 ) {console.log(cookieGroup+' Tracking Enabled');return 1}}if (pPref && pPref.indexOf('deny')>-1 || ( (!pPref || typeof pPref == 'undefined' || pPref.indexOf('unspecified')>-1) && $("meta[property='cms:privacy-version']").attr("content") ) ) {console.log((cookieGroup?cookieGroup+' ':'')+'Tracking Disabled');return 0};console.log((cookieGroup?cookieGroup+' ':'')+'Tracking Enabled');return 1};
2function _CMSInit() {setDevice();_CMSTrackingEnabled('GA');_CMSTrackingEnabled('TP')};
3function setDevice(){var _cmsUA=navigator.userAgent;var i=getCookie("_cmsdevice");isMobile=(i=='M'?true:false);isDesktop=false;isTablet=false;var wNav=window.navigator.userAgent;if (wNav.indexOf('MSIE')>0){var __c='ie';if ( wNav.indexOf('7')>0 ) {__c+=' ie7 ie-legacy'}else if ( wNav.indexOf('8')>0 ) {__c+=' ie8 ie-legacy'}else if ( wNav.userAgent.indexOf('9')>0 ) {myclass+=' ie9'}$('html').addClass(__c)}if ( wNav.indexOf('Phone')>0){isMobile=true}if ( (_cmsUA.indexOf('Macintosh')>0 || _cmsUA.indexOf('Windows')>0 || _cmsUA.indexOf('Linux')>0 ) && !( _cmsUA.indexOf('Android')>0 || _cmsUA.indexOf('Maemo')>0) ) { isDesktop=true;isMobile=false;}
4if (!isMobile && !isDesktop){isTablet = true}console.log('Device?'+i+' Mobile ?'+isMobile+' Desktop '+isDesktop+' Tablet ?'+isTablet)};
5function mobiOn(e){setCookie("mobPref","on","","/","",""),e&&(window.location=window.location.protocol+"//"+e)}function mobiOff(){document.getElementById("mobileSplashOuter")&&(document.getElementByid("mobileSplashOuter").style.display="none");var e=new Date,t=new Date(e.getTime()+36e5);setCookie("mobPref","off",t,"/","","")}function myVoid(){}function trim(e){for(;" "==e.substring(0,1);)e=e.substring(1,e.length);for(;" "==e.substring(e.length-1,e.length);)e=e.substring(0,e.length-1);return e}function trackDocument(e,t){if(!e)return 1;var n=typeof pageTracker;if("object"!=n)return 1==t&&alert("No GA Object"),1;var i=getCookie("privacy_cookie_status");if (!i){i=getCookie("privacy_preference")}return i.indexOf("deny")>-1?(1==t&&alert("Cookies disabled"),1):(pageTracker._trackPageview(e),1==t&&alert("Logged"),1)}function setFontSize(e,t,n){if(document.getElementById){var i,o,a,r=document,l=null,s=startSz;cookieSize="","ABS"==n?cookieSize=t:(s+=t,0>s&&(s=0),s>3&&(s=3),startSz=s,cookieSize=szs[s]);var d=new Date,c=new Date(d.getTime()+864e5);if(cookieSize||(c=new Date(d.getTime()-864e5)),setCookie("fontSize",cookieSize,c,"/"),(l=r.getElementById(e))||(l=r.getElementsByTagName(e)[0]),"relative"==n||"ABS"==n)for(l.style.fontSize=cookieSize,i=0;i<tgs.length;i++)for(a=l.getElementsByTagName(tgs[i]),o=0;o<a.length;o++)a[o].style.fontSize=cookieSize;else for(l.style.fontSize=parseInt(l.style.fontSize)+t+"em",i=0;i<tgs.length;i++)for(a=l.getElementsByTagName(tgs[i]),o=0;o<a.length;o++)a[o].style.fontSize=t+"em"}}function newPopUp(e,t,n){var i=n.substr(n.indexOf("width=")+6,3),o=n.substr(n.indexOf("height=")+7,3);!newwindow.closed&&newwindow.location?(newwindow.location.href=e,newwindow.resizeTo(i,o),newwindow.focus()):(newwindow=window.open(e,t,n),newwindow.opener||(newwindow.opener=self)),window.focus&&newwindow.focus()}function superPopUp(e,t,n){e.resizeTo(t,n)}function pagination(e,t,n,o){var a="";if(0==t&&1==n)return"";for(i=0;i<n;i++)i==t?a=a+" "+(i+1):(o||(o=""),a=a+' <a href="'+o+"?pa="+i+"#"+e+'">'+(i+1)+"</a>");return a}function newFlag(e,t,n){var i=new Date,o=864e5,a="yyyy-MM-dd HH:mm",r=new Date(getDateFromFormat(e,a)),l=new Date(getDateFromFormat(t,a)),s=Math.ceil((i.getTime()-r.getTime())/o),d=Math.ceil((i.getTime()-l.getTime())/o);if(n){var c=new Date(getDateFromFormat(n,"yyyy-MM-dd HH:mm")),u=Math.ceil((i.getTime()-c.getTime())/o);if(30>u)return'<span class="newarticle">New!</span>';if(l>=c&&30>s&&u>s)return'<span class="newarticle">Updated!</span>'}return 30>s?CrtdDysOld<30||s>=d?'<span class="newarticle">New!</span>':'<span class="newarticle">Updated!</span>':""}function getCalendarDate(){var e=new Array("January","February","March","April","May","June","July","August","September","October","November","December"),t=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
5ay","Saturday"),n=new Date,i=n.getMonth(),o=e[i],a=n.getDate(),r=t[n.getDay()],l=n.getYear();2e3>l&&(l+=1900);var s="&#xA0;",d=r+s+o+s+a+s+l;return d}function getClockTime(){var e=new Date,t=e.getHours(),n=e.getMinutes(),i="AM";t>11&&(i="PM"),t>12&&(t-=12),0==t&&(t=12),10>n&&(n="0"+n);var o=t+":"+n+" "+i;return o}function doDate(e,t,n){var i=new Date(getDateFromFormat(e,"yyyy-MM-dd HH:mm"));t||(t="d NNN y");var o="&#xA0;";return n&&(o=""),o+formatDate(i,t)+o}function initTab(e){this.obj=e,this.aNodes=[]}function tabNode(e,t,n,i){this.id=e,this.name=t,this.url=n,this.title=i}function changePage(e,t,n){var o=-1,a=e.getElementsByClass(n);for(i=0;i<a.length;i++)a[i].style.display="none",a[i].id==t&&(o=i);return e.getElementById("tab"+o+"l")&&(e.getElementsByTagName("body").item(0).id="body_tab"+o),e.getElementById(t).style.display="block",!1}function profile_switch(){var e=document,t=e.getElementById("professional_biography"),n=e.getElementById("personal_biography"),i=e.getElementById("staffPhoto"),o=e.getElementById("staffPhotoPersonal"),a=e.getElementById("staff_professional_image"),r=e.getElementById("staff_personal_image"),l=e.getElementById("profile_switcher");t&&"none"!=t.style.display?(i&&o&&(i.style.display="none"),o&&(o.style.display="block"),t.style.display="none",n.style.display="block",a&&(a.style.display="none",r.style.display="block"),l.value="View Professional Profile"):(i&&(i.style.display="block"),o&&(o.style.display="none"),t.style.display="block",n.style.display="none",a&&(a.style.display="block",r.style.display="none"),l.value="View Personal Profile")}function showPopUpAt(e,t,n,i,o){n.style;e.getElementById(t).style.left=i+"px",e.getElementById(t).style.top=o+"px",e.getElementById(t).style.display="block"}function showPopUpAtElement(e,t,n,i){var o=getAbsolutePos(n),a=o.y+n.offsetHeight;0==i&&(a=o.y),showPopUpAt(e,t,n,o.x,a)}function getAbsolutePos(e){var t={x:e.offsetLeft,y:e.offsetTop};if(e.offsetParent){var n=getAbsolutePos(e.offsetParent);t.x+=n.x,t.y+=n.y}return t}function showPopOverHelp(e,t,n){if(!e.getElementById("popOverHelp"))return 0;var i,o,a=e.getElementById("popOverHelp"),r=e.getElementById("popupmenushadow");return e.all?(i=window.event.clientX+document.body.scrollLeft,o=window.event.clientY+document.body.scrollTop):(i=t.pageX,o=t.pageY),a.style.left=i+15+"px",a.style.top=o+15+"px",null!=n&&(a.innerHTML=n),a.style.width="auto",myWidth()-parseInt(a.style.left)<100&&(a.style.left=parseInt(a.style.left)-100+"px",a.style.width="50px"),myHeight()-parseInt(a.style.top)<100&&(a.style.top=parseInt(a.style.top)-100+"px"),a.style.display="block",r&&(r.style.left=parseInt(a.style.left)+25+"px",r.style.top=parseInt(a.style.top)+25+"px",myWidth()-parseInt(r.style.left)<100&&(r.style.left=parseInt(r.style.left)-100+"px",r.style.width="15px"),myHeight()-parseInt(r.style.top)<100&&(r.style.top=parseInt(r.style.top)-100+"px"),r.style.display="block"),!0}function hidePopOverHelp(e){return e.getElementById("popOverHelp")&&(e.getElementById("popOverHelp").style.display="none"),hideSubMenu(e),!0}function hideSubMenu(e){return e.getElementById("submenu")&&(e.getElementById("submenu").style.display="none"),!0}function pageList(e,t,n,o,a){var r="";if(0==t&&1==n)return"";var l="pagination-page";for(i=0;i<n;i++)l="pagination-page",i==t&&(l="pagination-page active"),o||(o=""),r=e?r+'<li class="'+l+'"> <a href="'+o+"?id="+a+"&pa="+i+"#"+e+'">'+(i+1)+"</a></li>":r+' <li class="'+l+'"><a href="'+o+"?id="+a+"&pa="+i+'">'+(i+1)+"</a></li>";return r}function e_de_code(e,t,n){if(n=n?"?"+n:"",e&&e.length&&t&&t.length){var i="mailto:";
5document.write('<a href="'+i+e+n+'">'+t+"</a>")}else if(e&&e.length)return e}function leftAngletag(){var e="<";return e}function rightAngletag(){var e=">";return e}function u_de_code(e,t,n){e||(e=""),t&&t.length&&document.write('<a href="'+e+t+'">'+n+"</a>")}function elink(e,t,n,i){var o=t.split("/"),a=o.join(".");return i?e+"@"+a:void document.write('<a href="mailto:'+e+"@"+a+'?subject=WWW-Email:">'+n+"</a>")}function fos(e,t,n,i,o,a){if(n){var r=document,l=r.createElement("a");l.className="icon-link";var s=html_entity_decode(e+" "+t),d="mailto:"+e_de_code(n)+"?subject=Email%20from%20website:";if(l.setAttribute("href",d),o&&""!=o){var c=r.createElement("img");c.style.border="none",c.src=o,c.alt=e_de_code(n),c.title=c.alt,l.appendChild(c)}else span1=r.createElement("span"),a?("default"==a&&(a="Send an email"),text1=r.createTextNode(a)):text1=r.createTextNode(s),span1.appendChild(text1),l.appendChild(span1);r.getElementById(i).appendChild(l)}}function html_entity_decode(e){var t=document.createElement("textarea");return t.innerHTML=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t.value}function ord(e){return(e+"").charCodeAt(0)}function emailCheck(e){var t=/^(.+)@(.+)$/,n='\\(\\)<>@,;:\\\\\\"\\.\\[\\]',i="[^\\s"+n+"]",o='("[^"]*")',a=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/,r=i+"+",l="("+r+"|"+o+")",s=new RegExp("^"+l+"(\\."+l+")*$"),d=new RegExp("^"+r+"(\\."+r+")*$"),c=e.match(t);if(null==c)return!1;var u=c[1],g=c[2];if(null==u.match(s))return!1;var m=g.match(a);if(null!=m){for(var h=1;4>=h;h++)if(m[h]>255)return!1;return!0}var f=g.match(d);if(null==f)return!1;var y=new RegExp(r,"g"),p=g.match(y),v=p.length;if(p[p.length-1].length<2||p[p.length-1].length>24)return!1;if(2>v){return!1}return!0}function highlight(e,t){var n="formInputMissing";if("text"==t&&(n="formInputMissingTxt"),e.className){var i=e.className;-1==i.indexOf(n)&&(e.className=e.className+" "+n)}else e.className=n}function unhighlight(e,t){var n=/formInputMissing/;if("text"==t&&(n=/formInputMissingTxt/),e.className){var i=e.className;i=i.replace(n,""),e.className=i}}function highlightLabel(e){var t="formLabelError";if(document.getElementById(e.id+"Label")&&document.getElementById(e.id+"Label").className){var n=document.getElementById(e.id+"Label").className;-1==n.indexOf(t)&&(document.getElementById(e.id+"Label").className=e.className+" "+t)}else document.getElementById(e.id+"Label")&&(document.getElementById(e.id+"Label").className=t)}function unhighlightLabel(e){var t=/formLabelError/;if(document.getElementById(e.id+"Label")){var n=document.getElementById(e.id+"Label").className;if(n=n.replace(t,""),n.indexOf("formInputMissing")>-1){var t=/formInputMissing/;n=n.replace(t,"")}document.getElementById(e.id+"Label").className=n}}function validateForm(e,t,n,i,o){if(!e&&(e=document.getElementById("thisForm"),!e))return alert("Form Not Specified in call to validateForm"),0;if(e.form_node_uri){var a=getCookie("Apache");e.form_node_uri.value=a}var r=t.length;if(!r)return 1;document.getElementById(e.id+"Errors")&&(document.getElementById(e.id+"Errors").style.display="none");var l,s=0,d=new Array,c=new Array;for(s=0;r>s;s++){l=t[s];var u=l.tagName;switch(unhighlight(l),unhighlightLabel(l,u),u||(u="[object NodeList]"),u){case"TEXTAREA":l.value.length<=0&&(d[d.length]=l.id,highlight(l),document.getElementById(l.id+"Label")?(c[c.length]=document.getElementById(l.id+"Label").innerHTML+" is a required field",highlightLabel(l,u)):c[c.length]=l.id+" is a required field");continue;case"INPUT":if(l.type&&"checkbox"==l.type){if(unhighlight(l.parentNode),!l.checked)if(d[d.length]=l,highlight(l.parentNode),document.getElementById(l.id+"Label"))highlightLabel(l,u),c[c.length]="Please check "+document.getElementById(l.id+"Label").innerHTML;else{var g=l.parentNode.innerHTML,m=g.split("<input ");c[c.length]="Please check "+m[0]}continue}l.value.length<=0&&(d[d.length]=l.id,highlight(l),document.getElementById(l.id+"Label")?(highlightLabel(l,u),c[c.length]=document.getElementById(l.id+"Label").innerHTML+" is a required field"):c[c.length]=l.id+" is a required field");continue;case"checkbox":0==l.selectedIndex&&(d[d.length]=l,highlight(l),document.getElementById(l.id+"Label")&&(highlightLabel(l,u),c[c.length]=document.getElementById(l.id+"Label").innerHTML));continue;case"SELECT":(-1==l.selectedIndex||""==l.options[l.selectedIndex].value)&&(highlight(l),d[d.length]=l,document.getElementById(l.id+"Label")?(highlightLabel(l,u),c[c.length]=document.getElementById(l.id+"Label").innerHTML+" is a required field"):c[c.length]=l.id+" is a required field");continue;case"[object NodeList]":var h=l.length;if(h){var f=0,y="",p="/";for(unhighlight(l[0].parentNode),E=0;h>E;E++)l[E].checked?f=1:(E>0&&(y+="/"),y+=l[E].value);if(!f)if(highlight(l[0].parentNode),d[d.length]=l,o="survey"){if(document.getElementById(l.item(0).id)){var v=document.getElementById(l.item(0).id+"Label").innerHTML;v.length&&(c[c.length]=v)}else if(document.getElementById(l[0].id+"Label")){var v=document.getElementById(l[0].id+"Label").innerHTML,w=v.split(".");c[c.length]=w[0].length?"Choose an option for question "+w[0]:"Choose an option for Question "+v,document.getElementById(l[0].id+"Label").className+=" SurveyError"}}else c[c.length]="Choose an option from the following "+y}continue}}var b=getFormElementsByClass(document,"emailAddressField","input");if(b.length){var E=0;for(E=0;E<b.length;E++)l=b[E],unhighlight(l),l.form==e&&l.value&&!emailCheck(l.value)&&(d[d.length]=l.id,highlight(l),document.getElementById(l.id+"Label")?(highlightLabel(l,u),c[c.length]=document.getElementById(l.id+"Label").innerHTML+" is not a valid email address"):c[c.length]=l.id+" is not a valid email address")}if(d.length>0){var y="",p="",M="\n";for(document.getElementById(e.id+"Errors")&&(p="<li>",M="</li>"),E=0;E<d.length;E++)y+=p+c[E]+M;return document.getElementById(e.id+"Errors")&&(document.getElementById(e.id+"Errors").innerHTML="<br/><br/>Please check and fix the following problems with the information entered.</br><ul>"+y+"</ul>",document.getElementById(e.id+"Errors").style.display="block"),document.location="#thisFormErrors",document.getElementById(e.id+"Errors")&&(document.location="#"+e.id+"Errors"),0}return i||e.submit(),1}function getFormElementsByClass(e,t,n){n||(n="*");var i=e.getElementsByTagName(n),o=new Array,a=0,r=0;for(a=0,r=0;a<i.length;a++){var l=" "+i[a].className+" ";-1!=l.indexOf(" "+t+" ")&&(o[r++]=i[a])}return o}function add_tracking(){var e=new Querystring,t=document,n=e.get("qid");if(n){var o=t.getElementsByTagName("A");for(i=0,j=0;i<o.length;i++)o[i].href.indexOf("/cms/billpay/")>0&&("/"==o[i].href.substring(1,o[i].href.length)&&(o[i].href+="/"),o[i].href+=n)}}function print_quote(){var e=new Querystring,t=e.get("print");if(!t)return alert("There was an error printing this page. Quote Reference Number is missing."),0;var n=e.get("email");if(!n)return alert("There was an error printing this page. Email address does not match."),0;var i=window.open("/cms/calculator/?print="+t+"&email="+n,"Print","top=-100, left=-200, width=1, height=1, scrollbars=no, resizable=no, menubar=no,toolbar=no,status=no");i.blur()}function Querystring(e){if(this.params=new Object,this.get=Querystring_get,null==e&&(e=location.search.substring(1,location.search.length)),0!=e.length){e=e.replace(/\+/g," ");for(var t=e.split("&"),n=0;n<t.length;n++){var i,o=t[n].split("="),a=unescape(o[0]);i=2==o.length?unescape(o[1]):a,this.params[a]=i}}}function Querystring_get(e,t){null==t&&(t=null);var n=this.params[e];return null==n&&(n=t),n}function popup_window(e,t){if(e){if(t){var n=confirm("The link you have followed belongs to an external website.\n and will open in a new window.\nWe are not responsible for the content of external internet sites.\nSelect OK to continue or Cancel to stop.\n");if(!n)return!1}return window.open(e.href,"_blank","top=160, left=20, width=700, height=550, scrollbars=yes, resizable=yes"),!1}}function initFontSize(){if(document.getElementById){var e,t,n,i="body",o=document,a=null;(a=o.getElementById(i))||(a=o.getElementsByTagName(i)[0]);var r=getCookie("fontSize");if(r){switch(r){case"x-small":startSz=0;break;case"small":startSz=1;break;case"medium":startSz=2;break;case"large":startSz=3}var l=new Array("body");for(a.style.fontSize=r,e=0;e<l.length;e++)for(n=a.getElementsByTagName(l[e]),t=0;t<n.length;t++)n[t].style.fontSize=r}}}function LZ(e){return(0>e||e>9?"":"0")+e}function isDate(e,t){var n=getDateFromFormat(e,t);return 0==n?!1:!0}function compareDates(e,t,n,i){var o=getDateFromFormat(e,t),a=getDateFromFormat(n,i);return 0==o||0==a?-1:o>a?1:0}function formatDate(e,t){t+="";var n,i="",o=0,a="",r="",l=e.getYear()+"",s=e.getMonth()+1,d=e.getDate(),c=e.getDay(),n=e.getHours(),u=e.getMinutes(),g=e.getSeconds(),m=new Object;for(l.length<4&&(l=""+(l-0+1900)),m.y=""+l,m.yyyy=l,m.yy=l.substring(2,4),m.M=s,m.MM=LZ(s),m.MMM=MONTH_NAMES[s-1],m.NNN=MONTH_NAMES[s+11],m.d=d,m.dd=LZ(d),m.E=DAY_NAMES[c+7],m.EE=DAY_NAMES[c],m.H=n,m.HH=LZ(n),m.h=0==n?12:n>12?n-12:n,m.hh=LZ(m.h),m.K=n>11?n-12:n,m.k=n+1,m.KK=LZ(m.K),m.kk=LZ(m.k),m.a=n>11?"PM":"AM",m.m=u,m.mm=LZ(u),m.s=g,m.ss=LZ(g);o<t.length;){for(a=t.charAt(o),r="";t.charAt(o)==a&&o<t.length;)r+=t.charAt(o++);i+=null!=m[r]?m[r]:r}return i}function _isInteger(e){for(var t="1234567890",n=0;n<e.length;n++)if(-1==t.indexOf(e.charAt(n)))return!1;return!0}function _getInt(e,t,n,i){for(var o=i;o>=n;o--){var a=e.substring(t,t+o);if(a.length<n)return null;if(_isInteger(a))return a}return null}function getDateFromFormat(e,t){e+="",t+="";for(var n,i,o=0,a=0,r="",l="",s=new Date,d=s.getYear(),c=s.getMonth()+1,u=1,g=s.getHours(),m=s.getMinutes(),h=s.getSeconds(),f="";a<t.length;){for(r=t.charAt(a),l="";t.charAt(a)==r&&a<t.length;)l+=t.charAt(a++);if("yyyy"==l||"yy"==l||"y"==l){if("yyyy"==l&&(n=4,i=4),"yy"==l&&(n=2,i=2),"y"==l&&(n=2,i=4),d=_getInt(e,o,n,i),null==d)return 0;o+=d.length,2==d.length&&(d=d>70?1900+(d-0):2e3+(d-0))}else if("MMM"==l||"NNN"==l){c=0;for(var y=0;y<MONTH_NAMES.length;y++){var p=MONTH_NAMES[y];if(e.substring(o,o+p.length).toLowerCase()==p.toLowerCase()&&("MMM"==l||"NNN"==l&&y>11)){c=y+1,c>12&&(c-=12),o+=p.length;break}}if(1>c||c>12)return 0}else if("EE"==l||"E"==l)for(var y=0;y<DAY_NAMES.length;y++){var v=DAY_NAMES[y];if(e.substring(o,o+v.length).toLowerCase()==v.toLowerCase()){o+=v.length;break}}else if("MM"==l||"M"==l){if(c=_getInt(e,o,l.length,2),null==c||1>c||c>12)return 0;o+=c.length}else if("dd"==l||"d"==l){if(u=_getInt(e,o,l.length,2),null==u||1>u||u>31)return 0;o+=u.length}else if("hh"==l||"h"==l){if(g=_getInt(e,o,l.length,2),null==g||1>g||g>12)return 0;o+=g.length}else if("HH"==l||"H"==l){if(g=_getInt(e,o,l.length,2),null==g||0>g||g>23)return 0;o+=g.length}else if("KK"==l||"K"==l){if(g=_getInt(e,o,l.length,2),null==g||0>g||g>11)return 0;o+=g.length}else if("kk"==l||"k"==l){if(g=_getInt(e,o,l.length,2),null==g||1>g||g>24)return 0;o+=g.length,g--}else if("mm"==l||"m"==l){if(m=_getInt(e,o,l.length,2),null==m||0>m||m>59)return 0;o+=m.length}else if("ss"==l||"s"==l){if(h=_getInt(e,o,l.length,2),null==h||0>h||h>59)return 0;o+=h.length}else if("a"==l){if("am"==e.substring(o,o+2).toLowerCase())f="AM";else{if("pm"!=e.substring(o,o+2).toLowerCase())return 0;f="PM"}o+=2}else{if(e.substring(o,o+l.length)!=l)return 0;o+=l.length}}if(o!=e.length)return 0;if(2==c)if(d%4==0&&d%100!=0||d%400==0){if(u>29)return 0}else if(u>28)return 0;if((4==c||6==c||9==c||11==c)&&u>30)return 0;12>g&&"PM"==f?g=g-0+12:g>11&&"AM"==f&&(g-=12);var w=new Date(d,c-1,u,g,m,h);return w.getTime()}function parseDate(e){var t=2==arguments.length?arguments[1]:!1;generalFormats=new Array("y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d"),monthFirst=ne
5w Array("M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d"),dateFirst=new Array("d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M");for(var n=new Array("generalFormats",t?"dateFirst":"monthFirst",t?"monthFirst":"dateFirst"),i=null,o=0;o<n.length;o++)for(var a=window[n[o]],r=0;r<a.length;r++)if(i=getDateFromFormat(e,a[r]),0!=i)return new Date(i);return null}function isChild(e,t){var n=0;for(n=0;n<e.childNodes.length;n++)if(e.childNodes[n]==t||isChild(e.childNodes[n],t))return!0;return!1}function isParent(e,t){return t==e.parentNode?!0:"BODY"==e.parentNode.tagName?!1:isParent(e.parentNode,t)}function isSibling(e,t){var n=0,i=null;if(null==e||null==t)return!1;if("BODY"==e.tagName||"BODY"==t.tagName)return!1;for(i=e.parentNode,n=0;n<i.childNodes.length;n++)if(i.childNodes[n]==t)return!0;return!1}function isString(e){return"string"==typeof e}function isObject(e){return"object"==typeof e&&!!e||isFunction(e)}function isNumber(e){return"number"==typeof e&&isFinite(e)}function isNull(e){return"object"==typeof e&&!e}function AttachEvent(e,t,n,i){return i||(i=!1),e.addEventListener?(e.addEventListener(t,n,i),!0):e.attachEvent?e.attachEvent("on"+t,n):(MyAttachEvent(e,t,n),void(e["on"+t]=function(){MyFireEvent(e,t)}))}function MyAttachEvent(e,t,n){e.myEvents||(e.myEvents={}),e.myEvents[t]||(e.myEvents[t]=[]);var i=e.myEvents[t];i[i.length]=n}function MyFireEvent(e,t){if(e&&e.myEvents&&e.myEvents[t])for(var n=e.myEvents[t],i=0,o=n.length;o>i;i++)n[i]()}function slidedown_showHide(e,t){document.getElementById("footer")&&-1!=navigator.userAgent.indexOf("MSIE")&&(document.getElementById("footer").style.zIndex=-1),slidedown_direction[e]||(slidedown_direction[e]=1),slideDownInitHeight[e]||(slideDownInitHeight[e]=0),slidedown_direction[e]=0==slideDownInitHeight[e]?slidedownSpeed:-1*slidedownSpeed,activefaqID&&document.getElementById(activefaqID)&&(document.getElementById(activefaqID).className="faqLink");for(var n=getElementsByClass(document,"faq_contentBox","div"),i=0;i<n.length;i++)"visible"==n[i].style.visibility&&slidedownContentBox.id!=e&&(n[i].style.visibility="hidden",slidedown_direction[n[i].id]=0,slideDownInitHeight[n[i].id]=0);slidedownContentBox=document.getElementById(e);for(var o=slidedownContentBox.getElementsByTagName("DIV"),i=0;i<o.length;i++)"faq_content"==o[i].className&&(slidedownContent=o[i]);contentHeight=slidedownContent.offsetHeight,document.getElementById(t)&&(activefaqID=t,document.getElementById(t).className="faqLinkActive"),slidedownContentBox.style.visibility="visible",slidedownActive=!0,slidedown_showHide_start(slidedownContentBox,slidedownContent)}function slidedown_showHide_start(e,t){slidedownActive&&(slideDownInitHeight[e.id]=slideDownInitHeight[e.id]/1+slidedown_direction[e.id],slideDownInitHeight[e.id]<=0&&(slidedownActive=!1,e.style.visibility="hidden",slideDownInitHeight[e.id]=0),slideDownInitHeight[e.id]>contentHeight&&(slidedownActive=!1),e.style.height=slideDownInitHeight[e.id]+"px",t.style.top=slideDownInitHeight[e.id]-contentHeight+"px",setTimeout('slidedown_showHide_start(document.getElementById("'+e.id+'"),document.getElementById("'+t.id+'"))',slidedownTimer))}function setSlideDownSpeed(e){slidedownSpeed=e}function getElementsByClass(e,t,n){n||(n="*");var i=e.getElementsByTagName("div"),o=new Array,a=0,r=0;for(a=0,r=0;a<i.length;a++){var l=" "+i[a].className+" ";-1!=l.indexOf(" "+t+" ")&&(o[r++]=i[a])}return o}function link_popup(e){var t=window.open(e.getAttribute("href"),"_blank","width=400,height=250,left=200,top=100,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0");return t.focus(),t}function domReady(){if(document.getElementById("cookieValue")){var e="none",t=document.getElementById("cookieValue").innerHTML;if(t.indexOf("deny")>-1?(e="deny",document.getElementById("cookies-date-denied").innerHTML=cookFormatDate(t)):t.indexOf("allow")>-1&&(e="allow",document.getElementById("cookies-date-allowed").innerHTML=cookFormatDate(t)),document.getElementById("current_privacy_settings")&&document.getElementById("cookies")){var n=document.getElementById("cms_cookiesEnabled"),i=document.getElementById("cms_cookiesDisabled");"allow"==e?(n.style.display="none",i.style.display="block"):"deny"==e?(n.style.display="block",i.style.display="none"):(n.style.display="none",i.style.display="none")}if("active"!=getCookie("cookie_option_shown")&&"none"==e){var o=new Date,a=new Date(o.getTime()+31536e3);setCookie("cookie_option_shown","active",a,"/")}}}function disableCookies(){window.location.href="/cms/cookieprivacy/deny"}function cookFormatDate(e){if(e)var t=e.substring(6,8),n=e.substring(4,6),i=e.substring(0,4);else{e=new Date;var t=e.getDate(),n=e.getMonth()+1,i=e.getFullYear()}return 1==n?n="Jan":2==n?n="Feb":3==n?n="Mar":4==n?n="Apr":5==n?n="May":6==n?n="Jun":7==n?n="Jul":8==n?n="Aug":9==n?n="Sep":10==n?n="Oct":11==n?n="Nov":12==n&&(n="Dec"),e=t+" "+n+" "+i}var newwindow="";document.getElementsByClass=function(e){var t=document.getElementsByTagName("*"),n=new Array,i=0,o=0;for(i=0,o=0;i<t.length;i++){var a=" "+t[i].className+" ";-1!=a.indexOf(" "+e+" ")&&(n[o++]=t[i])}return n};var tgs=new Array("body"),szs=new Array("x-small","small","medium","large","x-large");initTab.prototype.add=function(e,t,n,i){this.aNodes[this.aNodes.length]=new tabNode(e,t,n,i)},initTab.prototype.dumpTabs=function(){var e="";for(n=0;n<this.aNodes.length;n++)e=e+'<li id="tab'+this.aNodes[n].id+'l"><a name="tab'+this.aNodes[n].id+'" href="#" id="tab'+this.aNodes[n].id+'r" onclick="'+this.aNodes[n].url+'">'+this.aNodes[n].title+"</a></li>\n";return e},initTab.prototype.doTabs=function(e){outputStr='<ul id="mb1" style="margin:0px;padding:0px;top:0px;left:0px;vertical-align:top;">'+initialTab.dumpTabs()+"</ul>",e.innerHTML=outputStr},clearCookie=function(){var e=new Date,t=new Date(e.getTime()-864e5);this.setCookie("co"+this.obj,"cookieValue",t),this.setCookie("cs"+this.obj,"cookieValue",t)}
5,setCookie=function(e,t,n,i,o,a){console.log('SetCookie :'+window.location.protocol+' A : '+a);if(window.location.protocol=="https:"&&!a){a=true};document.cookie=escape(e)+"="+escape(t)+(n?"; expires="+n.toGMTString():"")+(i?"; path="+i:"")+(o?"; domain="+o:"")+(a?"; secure":"")},getCookie=function(e){var t="",n=document.cookie.indexOf(escape(e)+"=");if(-1!=n){var i=n+(escape(e)+"=").length,o=document.cookie.indexOf(";",i);t=unescape(-1!=o?document.cookie.substring(i,o):document.cookie.substring(i))}return t};var startSz=1;window.attachEvent?window.attachEvent("onload",initFontSize):window.addEventListener("load",initFontSize,!0);var MONTH_NAMES=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"),DAY_NAMES=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");Date.MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.DAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Date.SUFFIXES=["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],Date.prototype.format=function(e){var t,n=null!=e?e:"DD-MMM-YY",i="DMYHdhmst".split(""),o=new Array,a=0,r=/\[(\d+)\]/,l=this.getDay(),s=this.getDate(),d=this.getMonth(),c=this.getFullYear().toString(),u=this.getHours(),g=this.getMinutes(),m=this.getSeconds(),h=new Object;h.D=s,h.d=s+Date.SUFFIXES[s-1],h.DD=10>s?"0"+s:s,h.DDD=Date.DAYS[l].substring(0,3),h.DDDD=Date.DAYS[l],h.M=d+1,h.MM=10>d+1?"0"+(d+1):d+1,h.MMM=Date.MONTHS[d].substring(0,3),h.MMMM=Date.MONTHS[d],h.Y="0"==c.charAt(2)?c.charAt(3):c.substring(2,4),h.YY=c.substring(2,4),h.YYYY=c,h.H=u,h.HH=10>u?"0"+u:u,h.h=u>12||0==u?Math.abs(u-12):u,h.hh=h.h<10?"0"+h.h:h.h,h.m=g,h.mm=10>g?"0"+g:g,h.s=m,h.ss=10>m?"0"+m:m,h.t=12>u?"A":"P",h.tt=12>u?"AM":"PM";for(var f=0;f<i.length;f++)for(t=new RegExp("("+i[f]+"+)");t.test(n);)o[a]=RegExp.$1,n=n.replace(RegExp.$1,"["+a+"]"),a++;for(;r.test(n);)n=n.replace(r,h[o[RegExp.$1]]);return n},document.getElementsByClass=function(e){var t=document.getElementsByTagName("*"),n=new Array,i=0,o=0;for(i=0,o=0;i<t.length;i++){var a=" "+t[i].className+" ";-1!=a.indexOf(" "+e+" ")&&(n[o++]=t[i])}return n};var slideDownInitHeight=new Array,slidedown_direction=new Array,activefaqID="",slidedownActive=!1,contentHeight=!1,slidedownSpeed=40,slidedownTimer=1;document.addEventListener?document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,!1),domReady()},!1):document.attachEvent&&document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",arguments.callee),domReady())}
5),$(function(){var e=$("#cookies");$("#cookies-allow").find("a").on("click",function(t){t.preventDefault(),e.removeClass("cookies-none cookies-denied").addClass("cookies-allowed"),$.ajax({url:"/cms/cookieprivacy/allow/ajax",cache:!1,async:!1,dataType:"html",success:function(){var e=typeof pageTracker;"object"==e&&(pageTracker._trackPageview("/site/help/cookies_enabled.html"),pageTracker._trackPageview("/cms/photo/misc/cookies_enabled.jpg")),document.getElementById("cookies-date-allowed").innerHTML=cookFormatDate(!1)}})}),$("#cookies-deny").find("a").on("click",function(t){t.preventDefault(),e.removeClass("cookies-none cookies-allowed").addClass("cookies-denied"),$.ajax({url:"/cms/cookieprivacy/deny/ajax",cache:!1,async:!1,dataType:"html",success:function(){var e=typeof pageTracker;"object"==e&&(pageTracker._trackPageview("/site/help/cookies_disabled.html"),pageTracker._trackPageview("/cms/photo/misc/cookies_disabled.jpg")),document.getElementById("cookies-date-denied").innerHTML=cookFormatDate(!1)}})})}),!function(e,t){"function"==typeof define&&define.amd?define([],function(){return e.svg4everybody=t()}):"object"==typeof exports?module.exports=t():e.svg4everybody=t()}(this,function(){function e(e,t){if(t){var n=!e.getAttribute("viewBox")&&t.getAttribute("viewBox"),i=document.createDocumentFragment(),o=t.cloneNode(!0);for(n&&e.setAttribute("viewBox",n);o.childNodes.length;)i.appendChild(o.firstChild);e.appendChild(i)}}function t(t){t.onreadystatechange=function(){if(4===t.readyState){var n=document.createElement("x");n.innerHTML=t.responseText,t.s.splice(0).map(function(t){e(t[0],n.querySelector("#"+t[1].replace(/(\W)/g,"\\$1")))})}},t.onreadystatechange()}function n(n){function i(){for(var n;n=a[0];){var u=n.parentNode;if(u&&/svg/i.test(u.nodeName)){var g=n.getAttribute("xlink:href");if(o){var m=new Image,h=u.getAttribute("width"),f=u.getAttribute("height");m.src=r(g,u,n),h&&m.setAttribute("width",h),f&&m.setAttribute("height",f),u.replaceChild(m,n)}else if(l&&(!s||s(g,u,n))){var y=g.split("#"),p=y[0],v=y[1];if(u.removeChild(n),p.length){var w=c[p]=c[p]||new XMLHttpRequest;w.s||(w.s=[],w.open("GET",p),w.send()),w.s.push([u,v]),t(w)}else e(u,document.getElementById(v))}}}d(i,17)}n=n||{};var o,a=document.getElementsByTagName("use"),r=n.fallback||function(e){return e.replace(/\?[^#]+/,"").replace("#",".").replace(/^\./,"")+".png"+(/\?[^#]+/.exec(e)||[""])[0]};o="nosvg"in n?n.nosvg:/\bMSIE [1-8]\b/.test(navigator.userAgent),o&&(document.createElement("svg"),document.createElement("use"));var l="polyfill"in n?n.polyfill:o||/\bEdge\/12\b|\bMSIE [1-8]\b|\bTrident\/[567]\b|\bVersion\/7.0 Safari\b/.test(navigator.userAgent)||(navigator.userAgent.match(/AppleWebKit\/(\d+)/)||[])[1]<537,s=n.validate,d=window.requestAnimationFrame||setTimeout,c={};l&&i()}return n}),svg4everybody();$('document').ready(function(){_CMSInit();});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.