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 opener = _____WB$wombat$assign$function_____("opener");

Event.onDOMReady(function() {
	
	var inputs = document.getElementsByTagName('input');
	
	for (var i = 0; i < inputs.length; i++) {
		var input = $(inputs[i])
		if(input.hasClassName('prettysearch')) {
			
			var options = {};
			
			//these are unique autosave names for globally used
			//autosave collections
			
			//after decoration you can simply:
			//	field.setAttribute('autosave', 'autosaveName');
			
			if(input.hasClassName('applesearch')) {
				options.autosave = 'Apple.com';
			} else if (input.hasClassName('reseller')) {
				options.autosave = 'Apple.com Reseller';
			}
			
			if(input.parentNode.tagName == 'LABEL') {
				
				var placeholderText = "";
				
				var labelElement = input.up().getElementsByClassName('prettyplaceholder')[0];
				
				//either grab text in a classed element
				if(labelElement) {
					placeholderText = labelElement.innerHTML;
				
				//or grab text from right inside the label
				} else {
					placeholderText = input.parentNode.firstChild.nodeValue;
					input.parentNode.firstChild.nodeValue = '';
				}
				
				placeholderText = placeholderText.split('\n')[0];
				options.placeholder = placeholderText;

			}
			
			AC.decorateSearchInput(input, options);
		}
	}	
});


}
/*
     FILE ARCHIVED ON 19:19:32 May 14, 2008 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 04:29:28 Dec 03, 2024.
     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.524
  exclusion.robots: 0.02
  exclusion.robots.policy: 0.011
  esindex: 0.009
  cdx.remote: 5.633
  LoadShardBlock: 179.265 (6)
  PetaboxLoader3.datanode: 163.245 (7)
  load_resource: 124.771
  PetaboxLoader3.resolve: 87.937
*/