1var objDataTarget; 2 3function drawCalendar(formAndField) { 4 var Nav4 = ((navigator.appName == "Netscape")); 5 if (!Nav4) { 6 document.write('<img align="absmiddle" border="0" height="22" hspace="5" onMouseUp="dateMousedownEvent(event, '); 7 document.write('\''); 8 document.write(formAndField); 9 document.write('\')" '); 10 document.write('src="/images/html/calendar/calendar.gif" style="cursor:hand;"/>'); 11 } 12} 13 14function dateMousedownEvent(event, objInputTarget) { 15 var posX = event.screenX; 16 var posY = event.screenY; 17 var Nav4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4)) 18 objDataTarget = objInputTarget; 19 if (!Nav4) { 20 var objMD = 21 showModalDialog( 22 "/images/html/calendar/calendarPopup.html", 23 window, 24 "status:no;resizable:no;dialogWidth:203px;dialogHeight:235px;dialogLeft:" + posX + "px;dialogTop:" + posY + "px;" 25 ); 26 } else { 27 alert("The calendar popup only works with Internet Explorer"); 28 } 29} 30 31function HelpWindow(title, message, height, width) { 32 var output = ""; 33 34 if (height == null) height = 200; 35 if (width == null) width = 350; 36 37 var left = (screen.width - width) / 2; 38 var top = (screen.height - height) / 2; 39 40 var newWindow = window.open( 41 "", 42 "HelpWindow", 43 "height=" + height + ",width=" + width + ",top=" + top + ",left=" + left + ",centered=yes,toolbar=no,directories=no,menubar=no,resizable=yes" 44 ); 45 46 if (newWindow == null) { 47 newWindow.opener = self; 48 } 49 50 output += '<form>'; 51 output += '<table>' + '<tr>' + '<td width="200">'; 52 output += '<b>' + title + '</b>' + '<br />' + '<hr />'; 53 output += '</td>' + '</tr>' + '<tr>' + '<td>'; 54 output += message; 55 output += '</td>' + '</tr>'; 56 output += '<tr>' + '<td align="right">'; 57 output += '<br />' + '<input type="button" value="Close" onClick="self.close()" />'; 58 output += '</td>' + '</tr>' + '</table>'; 59 output += '</form>'; 60 61 newWindow.document.write(output); 62 newWindow.document.close(); 63 64 return false; 65} 66 67function submitPage() { 68 if (dirty) { 69 return confirm("If you have made changes, they will be lost ... Are you sure?"); 70 } 71 72 return true; 73} 74 75/******************************************************************* 76 * Simulated PROGRESS bar. 77 * This works in conjunction with the pml-messages xsl template 78 * Call this method onSubmit of your form or on your button action 79 * handler. 80 *******************************************************************/ 81function showActivity(frm) { 82 var pmlmessages = document.getElementById('pmlmessages'); 83 if (pmlmessages != null) { 84 pmlmessages.style.display = 'none'; 85 } 86 var activityElement = document.getElementById('activity'); 87 if (activityElement != null) { 88 activityElement.style.display = 'block'; 89 } 90} 91 92/******************************************************************* 93 * soopa-rollovers.js 94 * 7/28/2001 95 * www.youngpup.net 96 * 97 * easiest rollovers on earth, baby! 98 * see www.youngpup.net for documentation. 99 *******************************************************************/ 100function soopaSetup() { 101 var img, sh, sn, sd,lnk,al; 102 103 for (var i = 0; (lnk = document.links[i]); i++) { 104 if (lnk.getAttribute) { 105 al = lnk.getAttribute("alt"); 106 if (al == null || al == "") { 107 al = lnk.getAttribute("name"); 108 }
109 if (al != null && al != "") { 110 lnk.onmouseover = soopaASwapOn; 111 lnk.onmouseout = soopaASwapOff; 112 } 113 } 114 } 115 116 117 for (var i = 0; (img = document.images[i]); i++) { 118 if (img.getAttribute) { 119 120 sn = img.getAttribute("src"); 121 sh = img.getAttribute("hsrc"); 122 sd = img.getAttribute("dsrc"); 123 124 if (sn != "" && sn != null) { 125 img.n = new Image(); 126 img.n.src = img.src; 127 128 if (sh != "" && sh != null) { 129 img.h = new Image(); 130 img.h.src = sh; 131 img.onmouseover = soopaSwapOn 132 img.onmouseout = soopaSwapOff 133 } 134 135 if (sd != "" && sd != null) { 136 img.d = new Image(); 137 img.d.src = sd; 138 img.onmousedown = soopaSwapDown 139 } 140 } 141 } 142 } 143} 144 145function soopaASwapOn() { 146 var al = this.getAttribute("alt"); 147 if (al == null || al == "") { 148 al = this.getAttribute("name"); 149 } 150 151 var e = document.getElementById("rolloverText"); 152 if (e != null) e.innerHTML = al; 153 154 window.status = al; 155 return true; 156} 157 158function soopaASwapOff() { 159 var e = document.getElementById("rolloverText"); 160 if (e != null) { 161 e.innerHTML = ''; 162 var originalText = e.getAttribute("original"); 163 if (originalText != null) { 164 e.innerHTML = originalText; 165 } else { 166 e.innerHTML = ''; 167 } 168 } 169 window.status = ''; 170 return true; 171} 172 173 174 175function soopaSwapOn() { 176 this.src = this.h.src; 177 var e = document.getElementById("rolloverText"); 178 if (e != null) e.innerHTML = this.alt; 179 window.status = this.alt; 180 return true; 181} 182 183function soopaSwapOff() { 184 this.src = this.n.src; 185 var e = document.getElementById("rolloverText"); 186 //if (e!= null) e.innerHTML = 'Rollover Icon for Description -->'; 187 if (e != null) { 188 var originalText = e.getAttribute("original"); 189 if (originalText != null) { 190 e.innerHTML = originalText; 191 } else { 192 e.innerHTML = ''; 193 } 194 } 195 window.status = ''; 196 197 return true; 198} 199 200function soopaSwapDown() { 201 this.src = this.d.src; 202 this.temp = typeof(document.onmouseup) != 'undefined' && typeof(document.onmouseup) != 'unknown' ? document.onmouseup : ""; 203 soopaSwapUp.img = this; 204 document.onmouseup = soopaSwapUp; 205} 206 207function soopaSwapUp() { 208 var ths = soopaSwapUp.img; 209 ths.src = ths.n.src; 210 if (ths.temp) document.onmouseup = ths.temp; 211} 212 213function getDiv_dom(name) { 214 return document.getElementById(name); 215} 216 217function getDiv_ie4(name) { 218 return document.all[subdiv]; 219} 220 221function getDiv_ns4(name,nest) { 222 return nest?document[nest].document[name] : document[name]; 223} 224 225function getMouseEvent_ie() { 226 var me = new Object(); 227 me.x = window.event.clientX; 228 me.y = window.event.clientY; 229 me.documentX = window.event.clientX + document.body.scrollLeft; 230 me.documentY = window.event.clientY + document.body.scrollTop; 231 return me; 232} 233 234function getMouseEvent_ns(e) { 235 e.x = e.pageX; 236 e.y = e.pageY; 237 e.documentX = e.x;// + window.pageXOffset; 238 e.documentY = e.y;// + window.pageYOffset; 239 return e; 240} 241 242function Browser() { 243 this.ver=navigator.appVersion 244 245 this.description = "(" + navigator.appVersion +")"; 246 this.dom=document.getElementById?1:0 247 248 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 249 this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 250 if (this.ns5) this.description += " NS5"; 251 this.ie4=(document.all && !this.dom)?1:0; 252 this.ns4=(document.layers && !this.dom)?1:0; 253 this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5); 254 this.width=screen.width; 255 if (this.ns4) { 256 this.getDiv = getDiv_ns4; 257 this.description = " NS4"; 258 } 259 if (this.ver.indexOf("MSIE") > -1) 260 this.getMouseEvent = getMouseEvent_ie; 261 else 262 this.getMouseEvent = getMouseEvent_ns; 263 264 if (this.ie4) { 265 this.getDiv = getDiv_ie4; 266 this.description += " IE4" 267 } 268 if (this.dom) { 269 this.getDiv = getDiv_dom; 270 this.description += " Supports DOM"; 271 } 272 273 return this; 274} 275function togglePopupDiv(e,subdiv) 276{ 277 var bw = new Browser(); 278 var obj = bw.getMouseEvent(e); 279 280 var div = bw.getDiv('hd_' + subdiv); 281 282 var sty = div.style; 283 if (sty.visibility == 'hidden') 284 sty.visibility = 'visible'; 285 else 286 sty.visibility = 'hidden'; 287} 288 289function toggleDiv(e,subdiv,show) 290{ 291 var bw = new Browser(); 292 var obj = bw.getMouseEvent(e); 293 294 var div = bw.getDiv('hd_' + subdiv); 295 if (div == null) return; 296 297 if (self.innerWidth) 298 { 299 frameWidth = self.innerWidth;
300 frameHeight = self.innerHeight; 301 } 302 else if (document.documentElement && document.documentElement.clientWidth) 303 { 304 frameWidth = document.documentElement.clientWidth; 305 frameHeight = document.documentElement.clientHeight; 306 } 307 else if (document.body) 308 { 309 frameWidth = document.body.clientWidth; 310 frameHeight = document.body.clientHeight; 311 } 312 313 if (div.innerWidth) 314 { 315 divWidth = div.innerWidth; 316 divHeight = div.innerHeight; 317 } 318 else if (div.clientWidth) 319 { 320 divWidth = div.clientWidth; 321 divHeight = div.clientHeight; 322 } else { 323 divWidth = 200; 324 divHeight = 100; 325 } 326 327 var sty = div.style; 328 /* alert("divHeight=" + divHeight + ", client width = " + divWidth + ", x = " + obj.x + ", framewidth = " + frameWidth); */ 329 330 var offset = 5; 331 sty.left = (obj.documentX + offset + divWidth + 20) > frameWidth ? obj.documentX - divWidth - offset : obj.documentX + offset ; 332 sty.top = obj.documentY - divHeight - offset - 20 < 0 ? obj.documentY + offset : obj.documentY - divHeight - offset; 333 334 if (show == null) { 335 if (sty.visibility == 'hidden') 336 sty.visibility = 'visible'; 337 else 338 sty.visibility = 'hidden'; 339 } else { 340 if (show) 341 sty.visibility = 'visible'; 342 else 343 sty.visibility = 'hidden'; 344 } 345 346 347 var iframe = bw.getDiv('if_' + subdiv); 348 if (iframe) { 349 var sty = iframe.style; 350 351 sty.left = div.style.left; 352 sty.top = div.style.top; 353 sty.width = 200; 354 sty.height = divHeight + 2; 355 if (sty.visibility == 'hidden') 356 sty.visibility = 'visible'; 357 else 358 sty.visibility = 'hidden'; 359 } 360 361} 362 363function popUp(URL) { 364 day = new Date(); 365 id = day.getTime(); 366 eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480,left = 465,top = 262');"); 367} 368 369jQuery(document).ready(function(){ 370 if (window.location.pathname === '/accessibility-statement.pml') { 371 jQuery('#infoDiv').addClass('accessibility-body'); 372 } 373});
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.