var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); var k2Search = { setup: function(url, searchprompt) { k2Search.url = url; k2Search.searchPrompt = searchprompt; k2Search.input = jQuery('input#s'); var submitButton = jQuery('#searchform input[@type=submit]'); // Insert reset and loading elements submitButton.before(''); k2Search.reset = jQuery('#searchreset'); k2Search.loading = jQuery('#searchload'); k2Search.input.addClass('livesearch').val(k2Search.searchPrompt) submitButton.hide(); k2Search.loading.hide(); k2Search.reset.show().fadeTo('fast', 0.3); // Bind events to the search input k2Search.input.focus(function() { if (k2Search.input.val() == k2Search.searchPrompt) { k2Search.input.val(''); } }) .blur(function() { if (k2Search.input.val() == '') { k2Search.input.val(k2Search.searchPrompt); } }) .keyup(function(event) { var code = event.keyCode; if (k2Search.input.val() == '') { return false; } else if (code == 27) { k2Search.input.val(''); } else if (code != 13) { if (k2Search.timer) { clearTimeout(k2Search.timer); } k2Search.timer = setTimeout(k2Search.doSearch, 500); } }); }, doSearch: function() { if (k2Search.input.val() == k2Search.prevSearch) return; k2Search.reset.fadeTo('fast', 0.3); k2Search.loading.fadeIn('fast'); if (!k2Search.active) { k2Search.active = true; if (jQuery('div#rollingarchives').length) { k2Rolling.saveState(); } } k2Search.prevSearch = k2Search.input.val(); K2.ajaxGet(k2Search.url, k2Search.input.serialize() + '&k2dynamic=init', function(data) { jQuery('#current-content').hide(); jQuery('#dynamic-content').show().html(data); k2Search.loading.fadeOut('fast'); k2Search.reset.click(k2Search.resetSearch).fadeTo('fast', 1.0).css('cursor', 'pointer'); } ); }, resetSearch: function() { k2Search.active = false; k2Search.prevSearch = ''; k2Search.input.val(k2Search.searchPrompt); k2Search.reset.unbind('click').fadeTo('fast', 0.3).css('cursor', 'default'); if ( jQuery('#current-content').length ) { jQuery('#dynamic-content').hide().html(''); jQuery('#current-content').show(); } else { k2Rolling.restoreState(); } } }; } /* FILE ARCHIVED ON 09:07:56 Feb 13, 2008 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:16:28 Nov 27, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.806 exclusion.robots: 0.076 exclusion.robots.policy: 0.06 esindex: 0.013 cdx.remote: 9.631 LoadShardBlock: 193.475 (3) PetaboxLoader3.datanode: 146.23 (4) PetaboxLoader3.resolve: 128.612 (2) load_resource: 186.419 */