1// This function is used for the Suckerfish (flyout) menus 2 3sfHover = function() { 4 var sfEls = document.getElementById("dropnav").getElementsByTagName("LI"); 5 for (var i=0; i<sfEls.length; i++) { 6 sfEls[i].onmouseover=function() { 7 this.className+=" sfhover"; 8 } 9 sfEls[i].onmouseout=function() { 10 this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); 11 } 12 } 13} 14if (window.attachEvent) window.attachEvent("onload", sfHover); 15 16 17 18// menuExpandable.js - implements an expandable menu based on a HTML list 19// Author: Dave Lindquist (http://www.gazingus.org) 20 21if (!document.getElementById) 22 document.getElementById = function() { return null; } 23 24function initializeMenu(menuId, actuatorId) { 25 var menu = document.getElementById(menuId); 26 var actuator = document.getElementById(actuatorId); 27 28 if (menu == null || actuator == null) return; 29 30 //if (window.opera) return; // I'm too tired 31 32 actuator.parentNode.style.background = "url(../img/arrow-down-sm.gif) 90% 10px no-repeat"; 33 actuator.onclick = function() { 34 var display = menu.style.display; 35 this.parentNode.style.background = 36 (display == "block") ? "url(../img/arrow-down-sm.gif) 90% 10px no-repeat" : "url(../img/arrow-up-sm.gif) 90% 10px no-repeat"; 37 menu.style.background = "url(/images/square.gif)"; 38 menu.style.display = (display == "block") ? "none" : "block"; 39 40 return false; 41 } 42} 43 44 45// Preload images 46 47function Preload() { 48 var args = simplePreload.arguments; 49 document.imageArray = new Array(args.length); 50 for(var i=0; i<args.length; i++) { 51 document.imageArray[i] = new Image; 52 document.imageArray[i].src = args[i]; 53 } 54 }
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.