1var nav_Navigation6 = new Object(); 2 3nav_Navigation6.underline="false"; 4nav_Navigation6.justification="center"; 5nav_Navigation6.textFont="Trebuchet MS"; 6nav_Navigation6.selectedUnderline="false"; 7nav_Navigation6.accentStyle="Arrow"; 8nav_Navigation6.funButton="Arts_and_Crafts"; 9nav_Navigation6.mouseoverBgcolor=""; 10nav_Navigation6.darkButton="Basic_Black"; 11nav_Navigation6.mouseoverBold="true"; 12nav_Navigation6.buttonCategory="basic"; 13nav_Navigation6.italic="false"; 14nav_Navigation6.importedImageMouseOver=""; 15nav_Navigation6.textSize="11"; 16nav_Navigation6.tabCategory="basic"; 17nav_Navigation6.style="text"; 18nav_Navigation6.selectedBgcolor=""; 19nav_Navigation6.accentColor="Black"; 20nav_Navigation6.graphicSelected="true"; 21nav_Navigation6.hasLinks="true"; 22nav_Navigation6.selectedTextcolor="#FCA705"; 23nav_Navigation6.basicButton="Gray"; 24nav_Navigation6.accentType=""; 25nav_Navigation6.graphicMouseover="true"; 26nav_Navigation6.horizontalSpacing="14"; 27nav_Navigation6.lineWidth="2"; 28nav_Navigation6.selectedEffect="true"; 29nav_Navigation6.lineColor="#000000"; 30nav_Navigation6.modernButton="Basic_Black"; 31nav_Navigation6.border=""; 32nav_Navigation6.simpleButton="Autumn_Leaves"; 33nav_Navigation6.type="Navigation"; 34nav_Navigation6.bold="true"; 35nav_Navigation6.sophisticatedButton="Antique"; 36nav_Navigation6.verticalSpacing="5"; 37nav_Navigation6.basicTab="White"; 38nav_Navigation6.selectedBold="true"; 39nav_Navigation6.mouseoverEffect="true"; 40nav_Navigation6.navID="nav_Navigation6"; 41nav_Navigation6.mouseoverTextcolor="#D36100"; 42nav_Navigation6.imageHeight="31"; 43nav_Navigation6.mouseoverUnderline="false"; 44nav_Navigation6.texturedButton="Brick"; 45nav_Navigation6.selectedItalic="false"; 46nav_Navigation6.brightButton="Chicky"; 47nav_Navigation6.importedImageSelected=""; 48nav_Navigation6.dirty="false"; 49nav_Navigation6.squareTab="Camel"; 50nav_Navigation6.horizontalWrap="5"; 51nav_Navigation6.numLinks="4"; 52nav_Navigation6.imageWidth="114"; 53nav_Navigation6.mouseoverItalic="false"; 54nav_Navigation6.importedImage=""; 55nav_Navigation6.background=""; 56nav_Navigation6.shinyButton="Shiny_Aqua"; 57nav_Navigation6.version="5"; 58nav_Navigation6.orientation="horizontal"; 59nav_Navigation6.textColor="#FFFFFF"; 60nav_Navigation6.holidayButton="Christmas_Ornaments"; 61nav_Navigation6.width="360"; 62nav_Navigation6.height="18"; 63 64nav_Navigation6.navName = "Navigation6"; 65nav_Navigation6.imagePath = "null"; 66nav_Navigation6.selectedImagePath = "/~media/elements/LayoutClipart/"; 67nav_Navigation6.mouseOverImagePath = "/~media/elements/LayoutClipart/"; 68nav_Navigation6.imageWidth = "16"; 69nav_Navigation6.imageHeight = "16"; 70nav_Navigation6.fontClass = "size11 TrebuchetMS11"; 71nav_Navigation6.fontFace = "'Trebuchet MS', Arial, Helvetica, sans-serif"; 72 73 74var baseHref = ''; 75// this will only work if getElementsByTagName works 76if (document.getElementsByTagName) 77{ 78 // this will only work if we can find a base tag 79 var base = document.getElementsByTagName('base'); 80 // Verify that the base object exists 81 if (base && base.length > 0) 82 { 83 // if you don't specify a base href, href comes back as undefined 84 if (base[0].href != undefined) 85 { 86 // get the base href 87 baseHref = base[0].href; 88 // add a trailing slash if base href doesn't already have one 89 if (baseHref != '' && baseHref.charAt(baseHref.length - 1) != '/') 90 { 91 baseHref += '/'; 92 } 93 } 94 } 95} 96 97 98nav_Navigation6.links=new Array(4); 99var nav_Navigation6_Link1 = new Object(); 100nav_Navigation6_Link1.type = "existing"; 101nav_Navigation6_Link1.displayName = "Site Map"; 102nav_Navigation6_Link1.linkWindow = "_self"; 103nav_Navigation6_Link1.linkValue = "SiteIndecks.html"; 104nav_Navigation6_Link1.linkIndex = "1"; 105nav_Navigation6.links[0] = nav_Navigation6_Link1; 106var nav_Navigation6_Link2 = new Object(); 107nav_Navigation6_Link2.type = "existing"; 108nav_Navigation6_Link2.displayName = "Site News"; 109nav_Navigation6_Link2.linkWindow = "_self"; 110nav_Navigation6_Link2.linkValue = "SiteNews.html"; 111nav_Navigation6_Link2.linkIndex = "2"; 112nav_Navigation6.links[1] = nav_Navigation6_Link2; 113var nav_Navigation6_Link3 = new Object(); 114nav_Navigation6_Link3.type = "existing"; 115nav_Navigation6_Link3.displayName = "Sources of Info"; 116nav_Navigation6_Link3.linkWindow = "_self"; 117nav_Navigation6_Link3.linkValue = "SourceOfInformation.html"; 118nav_Navigation6_Link3.linkIndex = "3"; 119nav_Navigation6.links[2] = nav_Navigation6_Link3; 120var nav_Navigation6_Link4 = new Object(); 121nav_Navigation6_Link4.type = "existing"; 122nav_Navigation6_Link4.displayName = "Specialty Pages"; 123nav_Navigation6_Link4.linkWindow = "_self"; 124nav_Navigation6_Link4.linkValue = "SpecialtyPages.html"; 125nav_Navigation6_Link4.linkIndex = "4";
126nav_Navigation6.links[3] = nav_Navigation6_Link4; 127function backgroundMouseOn(tdElement, newColor) 128{ 129 if(tdElement != null) { 130 tdElement.oldBGColor = tdElement.style.backgroundColor; 131 tdElement.style.backgroundColor = newColor; 132 } 133} 134function backgroundMouseOff(tdElement) 135{ 136 if(tdElement != null) { 137 tdElement.style.backgroundColor = tdElement.oldBGColor; 138 } 139} 140 141function doMouseChange(Navigation,tdElement,linkIndex,bisMouseOver) { 142 if (Navigation.mouseoverEffect != 'true') { 143 return; 144 } 145 var link = Navigation.links[linkIndex-1]; 146 var bIsCurrentPage = isCurrentPage(link); 147 var bShowMouseoverBg = !(bIsCurrentPage 148 && 'true' == Navigation.selectedEffect && Navigation.selectedBgcolor); 149 var fontElement = getLinkFontElement(tdElement); 150 if(fontElement != null) { 151 doFontChange(Navigation,fontElement,bIsCurrentPage,bisMouseOver); 152 } 153 154 if (Navigation.mouseoverBgcolor && bShowMouseoverBg) { 155 if(bisMouseOver) { 156 backgroundMouseOn(tdElement,Navigation.mouseoverBgcolor); 157 } else { 158 backgroundMouseOff(tdElement); 159 } 160 } 161} 162function addStyle(Navigation, Link, tdElement,vNavTrElement) { 163 if (tdElement == null) { 164 return; 165 } 166 var strFontColor = Navigation.textColor; 167 if ('true' == Navigation.selectedEffect) { 168 if (Navigation.selectedTextcolor) { 169 strFontColor = Navigation.selectedTextcolor; 170 } 171 if (Navigation.selectedBgcolor) { 172 if (Navigation.orientation == 'horizontal') { 173 tdElement.style.backgroundColor = Navigation.selectedBgcolor; 174 } else { 175 if (vNavTrElement != null) { 176 vNavTrElement.style.backgroundColor = Navigation.selectedBgcolor; 177 } 178 } 179 } 180 } 181 var fontElement = getLinkFontElement(tdElement); 182 if (fontElement != null) { 183 fontElement.style.color = strFontColor; 184 } 185 tdElement.style.color = strFontColor; 186 if ('true' == Navigation.selectedEffect) { 187 if ('true' == Navigation.selectedBold) { 188 tdElement.style.fontWeight = "bold"; 189 } 190 if ('true' == Navigation.selectedItalic) { 191 tdElement.style.fontStyle = "italic"; 192 } 193 if ('true' == Navigation.selectedUnderline) { 194 tdElement.style.textDecoration = "underline"; 195 } 196 } 197} 198 199// Combined escape html and javascript 200function escapeHtmlInlineScript(s, escapeSingleQuotes, escapeDoubleQuotes){ 201 return htmlEncode(escapeScript(s, escapeSingleQuotes, escapeDoubleQuotes)); 202} 203 204function htmlEncode(s){ 205 if (typeof(s) != "string") return ""; 206 207 var result = ""; 208 for (var i = 0; i < s.length; i++) { 209 var ch = s.charAt(i); 210 switch (ch) { 211 case '<': 212 result += "<"; 213 break; 214 case '>': 215 result += ">"; 216 break; 217 case '&': 218 result += "&"; 219 break; 220 case '"': 221 result += """; 222 break; 223 case "'": 224 result += "'"; 225 break; 226 default: 227 result += ch; 228 } 229 } 230 return result; 231} 232 233/* escapes slashes and quotes. the default is to escape quotes, 234 * but this can be turned off. 235 * this function is used for javascript and also for escaping urls 236 * within background-image css. 237 */ 238function escapeScript(s, escapeSingleQuotes, escapeDoubleQuotes){ 239 if (typeof(s) != "string") return ""; 240 241 var result = ""; 242 for (var i = 0; i < s.length; i++) { 243 var ch = s.charAt(i); 244 switch (ch) { 245 case '\'': 246 if (escapeSingleQuotes == null || escapeSingleQuotes) 247 result += "\\\'"; 248 break; 249 case '\"': 250 if (escapeDoubleQuotes == null || escapeDoubleQuotes) 251 result += "\\\""; 252 break; 253 case '\\': 254 result += "\\\\"; 255 break; 256 default: 257 result += ch; 258 } 259 } 260 return result; 261} 262 263// 264// This .js file includes utility functions used by both graphical and text navs 265// in their rendering. User pages including a nav element will import this file, along 266// with TextNavigation.js and GraphicNavigation.js. The functions within will 267// be called by the [navname].js file generated at publish time. 268 269function fixLinkValue(Link) 270{ 271 if(Link.type!='existing') 272 { 273 return Link.linkValue; 274 } 275 else 276 { 277 return baseHref + strRelativePathToRoot + Link.linkValue; 278 } 279} 280 281function isCurrentPage(Link) 282{ 283 if(Link.type!='existing') 284 { 285 return false; 286 } 287 var strLinkValue = Link.linkValue.toLowerCase(); 288 return (strRelativePagePath == strLinkValue); 289} 290 291function toggleOnMouseChange(fontElement,newColor, bold, underline, italic) 292{ 293 if(fontElement == null) { 294 return; 295 } 296 if(newColor) 297 { 298 fontElement.style.color=newColor; 299 } 300 fontElement.style.fontWeight = (bold=='true' ? 'bold' : 'normal'); 301 fontElement.style.textDecoration = (underline=='true' ? 'underline' : 'none'); 302 fontElement.style.fontStyle = (italic=='true' ? 'italic' : 'normal'); 303 304} 305 306function doFontChange(Navigation,fontElement,bIsCurrentPage,bisMouseOver) { 307 if(fontElement == null) { 308 return; 309 } 310 var textColor; 311 var baseTextColor = Navigation.textColor; 312 var bold; 313 var baseBold = Navigation.bold; 314 var underline; 315 var baseUnderline = Navigation.underline; 316 var italic;
317 var baseItalic = Navigation.italic; 318 if (bIsCurrentPage && 'true' == Navigation.selectedEffect) { 319 textColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor 320 : (Navigation.mouseoverTextColor ? Navigation.mouseoverTextcolor 321 : Navigation.textColor); 322 baseTextColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor 323 : Navigation.textColor; 324 baseBold = bold = Navigation.selectedBold; 325 baseUnderline = underline = Navigation.selectedUnderline; 326 baseItalic = italic = Navigation.selectedItalic; 327 } else { 328 textColor = Navigation.mouseoverTextcolor ? Navigation.mouseoverTextcolor 329 : Navigation.textColor; 330 bold = Navigation.mouseoverBold; 331 underline = Navigation.mouseoverUnderline; 332 italic = Navigation.mouseoverItalic; 333 } 334 335 if(bisMouseOver) { 336 toggleOnMouseChange(fontElement,textColor,bold,underline,italic); 337 } else { 338 toggleOnMouseChange(fontElement,baseTextColor,baseBold,baseUnderline,baseItalic); 339 } 340 341 342} 343 344function addMouseAndStyleSupportNavigation6(Navigation,navTbId) { 345 var startNode; 346 347 if(typeof(nav_element_id) != 'undefined' && document.getElementById(nav_element_id) != null) { 348 startNode = document.getElementById(nav_element_id); 349 350 } else if(navTbId != null) { 351 startNode = document.getElementById(navTbId); 352 353 } 354 355 if(startNode != null) { 356 searchForCurrentPageTd(Navigation,startNode); 357 } 358 359 360} 361 362function searchForCurrentPageTd(Navigation,startNode) { 363 364 if(startNode.childNodes != null) { 365 for(var i=0;i<startNode.childNodes.length;i++){ 366 if(addStyleForCurrentPageTd(Navigation,startNode.childNodes[i])){ 367 return; 368 } else { 369 searchForCurrentPageTd(Navigation,startNode.childNodes[i]); 370 } 371 } 372 } 373 374} 375 376function addStyleForCurrentPageTd(Navigation,currentNode) { 377 if(Navigation.orientation == 'horizontal') { 378 if(currentNode.tagName == 'TD' && currentNode.id != '' && currentNode.id.indexOf(Navigation.navName+navTDLinkPart) != -1){ 379 var currentTDIdPrefix = Navigation.navName+navTDLinkPart; 380 var linkId = currentNode.id.substring(currentTDIdPrefix.length,currentNode.id.length); 381 if(isCurrentPage(Navigation.links[linkId-1]) == true) { 382 addStyle(Navigation, Navigation.links[linkId-1],currentNode); 383 return true; 384 } 385 } 386 } else { 387 if(currentNode.tagName == 'TR' && currentNode.id != '' && currentNode.id.indexOf(navTRLinkPrefix) != -1){ 388 var currentTRIdPrefix = navTRLinkPrefix+Navigation.navName; 389 var linkId = currentNode.id.substring(currentTRIdPrefix.length,currentNode.id.length); 390 if(isCurrentPage(Navigation.links[linkId-1]) == true && currentNode.childNodes != null) { 391 var currentPageTd; 392 for(var i=0;currentNode.childNodes.length;i++) { 393 if(typeof(currentNode.childNodes[i].tagName) != 'undefined' && currentNode.childNodes[i].tagName == 'TD' && currentNode.childNodes[i].id.indexOf(Navigation.navName+navTDLinkPart) != -1) { 394 currentPageTd = currentNode.childNodes[i]; 395 addStyle(Navigation, Navigation.links[linkId - 1],currentPageTd,currentNode); 396 return true; 397 } 398 } 399 } 400 } 401 } 402 return false; 403} 404 405function getChildElementFromTree(startNode,nodesToTraverse) { 406 var currentChildNode = startNode; 407 408 for(var n= 0;n<nodesToTraverse.length;n++) { 409 currentChildNode = getMatchingChildByTag(currentChildNode.childNodes,nodesToTraverse[n]); 410 } 411 412 return currentChildNode; 413} 414 415 416function getMatchingChildByTag(childNodes,tagName) { 417 var child; 418 for(var i=0;childNodes.length;i++) { 419 if(childNodes[i].tagName == tagName) { 420 child = childNodes[i]; 421 break; 422 } 423 } 424 return child; 425} 426function getLinkFontElement(tdElement){ 427 var fontElement; 428 var aElement = getChildElementFromTree(tdElement,['A']); 429 for(var i=0;i < aElement.childNodes.length;i++) { 430 if(aElement.childNodes[i].tagName == 'DIV') { 431 fontElement = getChildElementFromTree(aElement.childNodes[i],['FONT']); 432 break; 433 } else if(aElement.childNodes[i].tagName == 'FONT'){ 434 fontElement = aElement.childNodes[i]; 435 break; 436 } 437 438 } 439 return fontElement; 440} 441 442 443 444 if(typeof(navTRLinkPrefix) == 'undefined') { 445 navTRLinkPrefix = 'vNavTR_Link_'; 446 } 447 if(typeof(navTDLinkPart) == 'undefined') { 448 navTDLinkPart = '_Link'; 449 } 450 if(document.getElementById('nav_version') == null) { 451 if (typeof(navTBSuffix) == 'undefined') { 452 navTBSuffix = 0; 453 } else {navTBSuffix++;}
454 document.write('<TABLE ID="ntb'+navTBSuffix+'" CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\" ><TR ALIGN=\"CENTER\" VALIGN=\"MIDDLE\"><TD><TABLE CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\"><TR><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"Navigation6_Link1\" style=\"cursor: pointer;cursor: hand;color:#FFFFFF;font-size: 1px; line-height: 1px;font-weight: bold;\" onmouseover=\"doMouseChange(nav_Navigation6,this,\'1\',true);\" onmouseout=\"doMouseChange(nav_Navigation6,this,\'1\',false);\"><A HREF=\"\/SiteIndecks.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Site Map\"><FONT ID=\"Navigation6_f1\" FACE=\"\'Trebuchet MS\', Arial, Helvetica, sans-serif\" CLASS=\"size11 TrebuchetMS11\" STYLE=\"color:#FFFFFF\">Site Map<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"7.0\" HEIGHT=\"1\" BORDER=\"0\"><\/A><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"Navigation6_Link2\" style=\"cursor: pointer;cursor: hand;color:#FFFFFF;font-size: 1px; line-height: 1px;font-weight: bold;\" onmouseover=\"doMouseChange(nav_Navigation6,this,\'2\',true);\" onmouseout=\"doMouseChange(nav_Navigation6,this,\'2\',false);\"><A HREF=\"\/SiteNews.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Site News\"><IMG SRC=\"\/tp.gif\" WIDTH=\"7.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"Navigation6_f2\" FACE=\"\'Trebuchet MS\', Arial, Helvetica, sans-serif\" CLASS=\"size11 TrebuchetMS11\" STYLE=\"color:#FFFFFF\">Site News<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"7.0\" HEIGHT=\"1\" BORDER=\"0\"><\/A><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"Navigation6_Link3\" style=\"cursor: pointer;cursor: hand;color:#FFFFFF;font-size: 1px; line-height: 1px;font-weight: bold;\" onmouseover=\"doMouseChange(nav_Navigation6,this,\'3\',true);\" onmouseout=\"doMouseChange(nav_Navigation6,this,\'3\',false);\"><A HREF=\"\/SourceOfInformation.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Sources of Info\"><IMG SRC=\"\/tp.gif\" WIDTH=\"7.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"Navigation6_f3\" FACE=\"\'Trebuchet MS\', Arial, Helvetica, sans-serif\" CLASS=\"size11 TrebuchetMS11\" STYLE=\"color:#FFFFFF\">Sources of Info<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"7.0\" HEIGHT=\"1\" BORDER=\"0\"><\/A><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"Navigation6_Link4\" style=\"cursor: pointer;cursor: hand;color:#FFFFFF;font-size: 1px; line-height: 1px;font-weight: bold;\" onmouseover=\"doMouseChange(nav_Navigation6,this,\'4\',true);\" onmouseout=\"doMouseChange(nav_Navigation6,this,\'4\',false);\"><A HREF=\"\/SpecialtyPages.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Specialty Pages\"><IMG SRC=\"\/tp.gif\" WIDTH=\"7.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"Navigation6_f4\" FACE=\"\'Trebuchet MS\', Arial, Helvetica, sans-serif\" CLASS=\"size11 TrebuchetMS11\" STYLE=\"color:#FFFFFF\">Specialty Pages<\/FONT><\/A><\/TD><\/TR><\/TABLE><\/TD><\/TR><\/TABLE><script type="text/javascript">addMouseAndStyleSupportNavigation6(nav_Navigation6,"ntb'+navTBSuffix+'");'+'</scri'+'pt>'); 455 } 456
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.