1 2// ========================= 3// * common.js 4// ========================= 5 6// mouseover 7function smartRollover() { 8 if(document.getElementsByTagName) { 9 var images = document.getElementsByTagName("img"); 10 for(var i=0; i < images.length; i++) { 11 if(images[i].getAttribute("src").match("_off.")){ 12 images[i].onmouseover = function() { 13 this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on.")); 14 } 15 images[i].onmouseout = function() { 16 this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off.")); 17 } 18 } 19 } 20 var images = document.getElementsByTagName("input"); 21 for(var i=0; i < images.length; i++) { 22 if ( !images[i].getAttribute("src") ) { continue; } 23 if(images[i].getAttribute("src").match("_off.")){ 24 images[i].onmouseover = function() { 25 this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on.")); 26 } 27 images[i].onmouseout = function() { 28 this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off.")); 29 } 30 } 31 } 32 } 33} 34if(window.addEventListener) { 35 window.addEventListener("load", smartRollover, false); 36} 37else if(window.attachEvent) { 38 window.attachEvent("onload", smartRollover); 39} 40 41 42// scrollTop 43jQuery.easing.quart = function (x, t, b, c, d) { 44 return -c * ((t=t/d-1)*t*t*t - 1) + b; 45}; 46 47jQuery(document).ready(function(){ 48 jQuery('a[href*=#]').click(function() { 49 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 50 var $target = jQuery(this.hash); 51 $target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) +']'); 52 if ($target.length) { 53 var targetOffset = $target.offset().top; 54 jQuery('html,body').animate({ scrollTop: targetOffset }, 1200, 'quart'); 55 return false; 56 } 57 } 58 }); 59})
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.