.docxpressoPlugin { font-size: 83.35%; } .h5p_layout { box-sizing: content-box !important; } .h5p_layout *{ float: none; text-align: initial; box-sizing: border-box; } /*to make sure that floating elements are always inside the document bounds*/ .h5p_layout:after { content: " "; display: block; height: 0; clear: both; visibility: hidden; } /* a default layout for documents without maste styles */ .h5p_default_layout { margin-top: 3.6rem; margin-left: 8.50464rem; margin-bottom: 3.6rem; margin-right: 8.50464rem; writing-mode: lr-tb; } /*hack for IE */ wbr:after { content: "\00200B"; } /*hack to get some extra top margin for anchors if needed*/ .h5p_layout span[id^="_Toc"]{ padding-top: 10px; margin-top: -10px; } /* Remove unwanted numbering styles */ .h5p_layout .removeNumbering:before{ content: initial !important; display: none; all: initial !important; } /* give zero default top and bottom paddings for paragraphs*/ .h5p_layout p { color: #000000; line-height: 1; margin-top: 0; margin-bottom: 0; } .h5p_layout span { color: #000000; font-weight: normal; } .h5p_layout span.dropcap { color: inherit; } .h5p_layout h1, .h5p_layout h2, .h5p_layout h3, .h5p_layout h4, .h5p_layout h5, .h5p_layout h6 { margin-top: 0; margin-bottom: 0; font-weight: 500; line-height: 1; color: inherit; } /* give zero default top and bottom paddings for paragraphs in tables*/ .h5p_layout table p { margin-top: 0; margin-bottom: 0; } .h5p_layout ul, .h5p_layout ol { list-style-type: none; margin-top: 0; margin-bottom: 0.5em; padding-left: 0; } .h5p_layout ul li, .h5p_layout ol li { list-style-type: none; margin-top: 0; margin-bottom: 0.5em; } .h5p_layout li p { margin-top: 0; margin-bottom: 0; } .h5p_layout table { border: none; } .h5p_layout td { vertical-align: top; border: none; } .h5p_layout th { vertical-align: top; border: none; } .h5p_layout div { margin-bottom: 10pt; } .h5p_layout img { margin: 0; padding: 0; } .h5p_layout ul ul { margin-top: 0; margin-bottom: 0; } .h5p_layout li { margin-top: 0; margin-bottom: 0; list-style-type: none !important; } .h5p_layout ul, .h5p_layout ol { list-style-type: none !important; } .h5p_layout td[data-sorting] p:before, .h5p_layout th[data-sorting] p:before { content: ' '; padding-right: 16px; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALAQMAAACTYuVlAAAAA3NCSVQICAjb4U/gAAAABlBMVEUjLTD////tm/tRAAAACXBIWXMAAAsSAAALEgHS3X78AAAAFnRFWHRDcmVhdGlvbiBUaW1lADAyLzEwLzE2RFpLjQAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAAAI0lEQVR4nGP4/4Dh9wOGjw8YHjxgOJDA8B9MPgCLAMX/PwAANZUStiyS6NsAAAAASUVORK5CYII=); background-position: left center; background-repeat: no-repeat; } .sortDecorator { border-bottom: 3px solid #b70000 !important; } /* This is a spacial class designed to remove unwanted bullets when a li has ul as its first child*/ .h5p_layout .removeBullet:before { content: none !important; } /*responsive tables*/ .h5p_layout div.dxoResponsiveTable{ margin: 0 !important; padding: 0 !important; overflow-x: auto !important; overflow-y: hidden; } /* chart tooltips */ .c3-tooltip-container td.name { white-space: nowrap; } /* External services*/ .h5p_layout iframe { resize: vertical; border: 1px solid #fff; } .h5p_layout div.youtube { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; background-color: transparent; } .h5p_layout div.youtube iframe { resize: none; position:absolute; top:0; left:0; width:100%; height:100%; } div#h5p_67e20903ea5a4 p.P1 {break-before: page !important;font-size: 11pt;} div#h5p_67e20903ea5a4 p.P1 span {hyphenate: false;font-weight: bold;font-size: 18pt;} div#h5p_67e20903ea5a4 p.P2 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P2 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P3 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P3 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P4 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P4 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P5 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P5 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P6 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P6 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P7 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P7 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P8 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P8 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P9 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P9 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P10 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P10 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P11 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P11 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P12 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P12 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P13 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P13 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P14 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P14 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P15 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P15 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P16 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P16 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P17 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P17 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P18 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P18 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P19 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P19 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P20 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P20 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P21 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P21 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P22 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P22 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P23 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P23 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P24 {text-align: center !important;font-size: 11pt;} div#h5p_67e20903ea5a4 p.P24 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P25 {text-align: center !important;font-size: 11pt;} div#h5p_67e20903ea5a4 p.P25 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P26 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P26 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P27 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P27 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P28 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P28 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P29 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P29 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P30 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P30 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P31 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P31 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P32 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P32 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P33 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P33 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P34 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P34 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P35 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P35 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P36 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P36 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P37 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P37 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P38 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P38 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P39 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P39 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P40 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P40 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P41 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P41 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P42 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P42 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P43 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P43 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P44 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P44 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P45 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P45 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P46 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P46 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P47 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P47 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P48 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P48 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P49 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P49 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P50 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P50 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P51 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P51 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P52 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P52 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P53 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P53 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 span.T54 {font-weight: bold !important;font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T55 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 p.P56 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P56 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 span.T57 {font-weight: bold !important;font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T58 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T59 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T60 {font-weight: bold !important;font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T61 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T62 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T63 {font-weight: bold !important;font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T64 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T65 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T66 {font-weight: bold !important;font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T67 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T68 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T69 {font-weight: bold !important;font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T70 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 span.T71 {font-size: 14pt !important;} div#h5p_67e20903ea5a4 p.P72 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P72 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P73 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P73 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P74 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P74 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P75 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P75 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P76 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P76 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P77 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P77 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P78 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P78 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P79 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P79 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P80 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P80 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P81 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P81 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P82 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P82 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P83 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P83 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P84 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P84 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P85 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P85 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P86 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P86 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P87 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P87 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P88 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P88 span {hyphenate: false;font-weight: bold;font-size: 16pt;} div#h5p_67e20903ea5a4 p.P89 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P89 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P90 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P90 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P91 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P91 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P92 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P92 span {hyphenate: false;font-weight: bold;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P93 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P93 span {hyphenate: false;font-weight: bold;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P94 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P94 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P95 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P95 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P96 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P96 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P97 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P97 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P98 {font-size: 11pt;} div#h5p_67e20903ea5a4 p.P98 span {hyphenate: false;font-size: 14pt;} div#h5p_67e20903ea5a4 p.P99 {text-align: center !important;font-size: 11pt;} div#h5p_67e20903ea5a4 p.P99 span {hyphenate: false;font-weight: bold;font-size: 14pt;} div#h5p_67e20903ea5a4 p.Normal {font-size: 11pt;} div#h5p_67e20903ea5a4 p.Normal span {hyphenate: false;font-size: 11pt;} div#h5p_67e20903ea5a4 span.DefaultParagraphFont {font-size: 11pt;} div#h5p_67e20903ea5a4 div {font-size: 11pt;} div#h5p_67e20903ea5a4 table {margin-left: 0in;border-collapse: collapse;writing-mode: lr-tb;font-size: 11pt;} div#h5p_67e20903ea5a4 table tr {height: 0in;keep-together: auto;font-size: 11pt;} div#h5p_67e20903ea5a4 table td, table th {background-color: transparent;vertical-align: top;wrap-option: wrap;font-size: 11pt;} div#h5p_67e20903ea5a4 p {keep-with-next: auto;keep-together: auto;widows: 2;orphans: 2;break-before: auto;border: none;text-align: left;writing-mode: lr-tb;vertical-align: auto;margin-bottom: 0.1111in;line-height: 1;background-color: transparent;font-size: 11pt;} div#h5p_67e20903ea5a4 p span {font-weight: normal;font-style: normal;text-transform: none;font-variant: normal;letter-spacing: normal;font-size: 11pt;background-color: transparent;text-decoration: none;text-decoration-color: font-color;language: en;country: US;hyphenate: true;}

TOWN OFFICERS

SELECTMEN

Dennis Brawn: ​​ Term Expires 2028

Kyle McKenney: ​​ Term Expires 2026

Mike Perigo: ​​ Term Expires 2027

ROAD COMMISSIONER

Seth Elderkin: ​​ Term Expires 2026

DIRECTORS OF SAD #4

Tedianne Thurlow: ​​ Term Expires 2028

Carl O’Donnell: ​​ Term Expires 2026

Jennifer Perigo: ​​ Term Expires 2027

HARVEY MEMORIAL LIBRARY TRUSTEES

Shirley Hersey: ​​ Term Expires 2028

Rita Bagliani: ​​ Term Expires 2026

Ann Clifford: ​​ Term Expires 2027

PLANNING BOARD

Paul Yale: ​​ Term Expires 2027

Christian McGinn (associate): ​​ Term Expires 2028

Scott Raymond: ​​ Term Expires 2027

Robert Maynard: ​​ Term Expires 2026

Thomas Sawyer: ​​ Term Expires 2029

Nicole Johnston (associate): ​​ Term Expires 2030

Tricia Elderkin: ​​ Term Expires 2030

 

 

 

APPEALS BOARD

Donald Pepin: ​​ Term Expires 2027

Matthew Griffith: ​​ Term Expires 2028

Steven Hartford: ​​ Term Expires 2029

Starre White: ​​ Term Expires 2030

Mark Melia: ​​ Term Expires 2026

BUDGET COMMITTEE

David Hession    

Matthew Griffith

Donald Pepin    

Carl O’Donnell

Merrill Bridges    

Scott Raymond

Timothy Johnston    

Tricia Elderkin

Jennifer Perigo   

Robert Maynard

Steven Hartford    

Barry Ellis

Thomas Cyr    

Seth Elderkin

Hugh Landry

 

 

 

 

APPOINTED TOWN OFFICERS

Town Clerk, Treasurer, Tax Collector, Registrar of Voters​​ 

Brenda Hartford​​    Kylee Coburn (Deputy)

Cemetery Attendant: ​​ Kyle McKenney

Cemetery Sexton: ​​ Robert Panciera

Plumbing Inspector: ​​ Lance Johnson

Forest Fire Warden: ​​ Pam Sukis & Danny White

Animal Control Officer: ​​ Sonia Sanborn

BALLOT CLERKS

Shirley Hersey (R)     Vicki Rollins (R)

Barbara Raymond (R)    Mark Melia (U)

Megan Walsh (D)     Donna Bellace (R)

Yvonne Davis (R)     Emma Calnan (U)

Alma Ryan (D)     Patricia Haggstrom (R)

Richard Ryan (U)     Julie Harrington (D)

Lori Gilbert (D)     Amanda Kain (R)

Kylee Coburn (R)

Anita Libby-Kain (D)

CODE ENFORCEMENT OFFICER

Lance Johnson: ​​ Term Expires 2026

LOCAL HEALTH OFFICER

Tracy Wing: ​​ Term Expires 2028

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(function( $ ) { //footnotes $('.defaultNote').children(":first").css('cursor', 'pointer'); $('.defaultNote').children(":first").click(function(){ var gotoID = '#' + $(this).parent().attr('id'); $('html, body').animate( { scrollTop: $('a[href="' + gotoID + '"]').offset().top - 60, }, 250, 'linear' ) }); }(jQuery)); var numFormat = ".,"; (function( $ ) { "use strict"; //do some cleaning on load var sortCells = $('td[data-sorting], th[data-sorting]'); sortCells.each(function(){ var first = $(this).text().trim().charAt(0); if (first == '@'){ var oldHTML = $(this).html(); var newHTML = oldHTML.replace('@', ''); $(this).html(newHTML); } }); function sortingTable(node, pos, ordBy){ var rows = node.children('tbody').children('tr').get(); rows.sort(function(a, b) { var X = $(a).children('td').eq(pos).text().toUpperCase(); var Y = $(b).children('td').eq(pos).text().toUpperCase(); if (numFormat != '.,'){ //we are dealing with a different locale and we need to do some //transformation in numbers X = convert2number(X); Y = convert2number(Y); } else { X = X.replace(/,/g, '').replace(/ /g, ''); Y = Y.replace(/,/g, '').replace(/ /g, ''); } var currencies = ['$', '¥', '£', '€']; var arrayLength = currencies.length; var XX = X; var YY = Y; for (var i = 0; i < arrayLength; i++) { XX = XX.replace(currencies[i], ''); YY = YY.replace(currencies[i], ''); } if (!isNaN(XX) && !isNaN(YY)){ var floatXX = parseFloat(XX); var floatYY = parseFloat(YY); return -(floatYY-floatXX) * ordBy; } else if (!isNaN(XX) && isNaN(YY)){ return -1 * ordBy; } else if (isNaN(XX) && !isNaN(YY)){ return ordBy; } else { if(X Y) { return 1 * ordBy; } return 0; } }); $.each(rows, function(index, row) { node.children('tbody').append(row); }); } function removeTableCellDecoration() { $("td[data-sorting], th[data-sorting]").removeClass('sortDecorator'); } //unbind the click event just in case we are loading more than one document $("td[data-sorting], th[data-sorting]").off('click'); $("td[data-sorting], th[data-sorting]").click(function(){ removeTableCellDecoration(); $(this).addClass('sortDecorator'); //get desired ordering var ordering = $(this).attr('data-sortOrdering'); if (ordering == 'ASC'){ var ordBy = -1; $(this).attr('data-sortOrdering', 'DESC'); } else { var ordBy = 1; $(this).attr('data-sortOrdering', 'ASC'); } var cellPosition = $(this).prevAll().length; var table = $(this).parents('table:first'); sortingTable(table, cellPosition, ordBy); }); function convert2number(str) { str = str.trim(); if (str.match(/^\d+/)) { //we have to take special care when the thousand separators are '.' var result_0 = str.replace(/\./g, '_@_'); var result_1 = result_0.replace(window.numFormat[0], '.'); var result = result_1.replace(/_@_/g, ''); result .replace(/ /g, ''); return result; } else { return str; } } }(jQuery));