 this.dom_options.getElements("input[type=checkbox]").each( function(item,index) { var me = this; item.onclick = function() { me.setOption(this.value, this.ckecked != ""); };  this.setOption( item.value, this.options[item.value] ); }, this );  
	initialize: function(options) {		console.debug("new Regexpresso(",options,")");		this.setOptions(options);		// output div : where to print the results		this.dom_output_count = $(this.options.output[0]);		this.dom_results_menus = this.options.output[1];		this.dom_output_result = $(this.options.output[2]);		// exact input values from which to compute the results		this.dom_subject = $(this.options['subject'][0]);		this.dom_subject.makeResizable({			handle: $(this.options['subject'][1]),			modifiers:{x: false, y:'height'} /*limit the sizing to vertical*/		});		this.dom_regex = $(this.options['regex'][0]);		// widgets to help the user to type the regular expression in input		this.widget_search = {			0: $(this.options['search'][0]),			'i': $(this.options['search'][1]),			'g': $(this.options['search'][2]),			'm': $(this.options['search'][3])		};		this.widget_replace = {			0: $(this.options['replace'][0]),			1: $(this.options['replace'][1]),			'i': $(this.options['replace'][2]),			'g': $(this.options['replace'][3]),			'm': $(this.options['replace'][4])		};		this.widget_expert = {			0: $(this.options['expert'][0])		};		// the div where to print the options		this.dom_options = $(this.options['options'][0]);		// Tabs have to be initialized before accordion so the accordion		// opens with the right size when it opens itself.		// Actually, the accordion seems to use the size of the selected tab		// so it has to be the largest one...		this.tabs_regex = new tabSwapper({			initPanel: 0,			selectedClass: "on",			deselectedClass: "off",			tabSelector: "#section_regex .tab",			sectionSelector: "#section_regex .tabbed_panel",			/*remember which tab the user clicked last*/			/*cookieName: "regexpresso",*/			/*use transitions to fade across*/			smooth: this.options['smoothTransitions']			});		// accordion 'titles' have CSS class 'accordion_toggler'		// accordion 'content panes' have CSS class 'accordion_stretcher'		// active accordion title has CSS class 'on'		this.accordion = new MultipleOpenAccordion( $$(".accordion_toggler"), $$(".accordion_stretcher"), {			openAll: false,			firstElementsOpen: [2],			opacity: this.options['smoothTransitions'],			onActive: function(toggler,el) { toggler.addClass("on"); },			onBackground: function(toggler,i) { toggler.removeClass("on") }			} );		this.worker = null;		// Apply common properties / methods to objects.		// what follows is more or less a patch for IE to simulate ':hover' with the class '.hover'		// it enables the retractible menu to work with IE		// note : *[hover=on] doesn't work, but div[hover=on] does, so I choosed .hover as the selector		$$(".hoverme").each( function(item,index) {		item.addEvent( "mouseenter", function(){ this.addClass("hover") } );		item.addEvent( "mouseleave", function(){ this.removeClass("hover") } );		} );		// auto-select the text in the input fields when focused		$$(".input[type=text]",".input[type=password]","textarea.input").each( function(el,p) {			el.onfocus = function() { this.select(); };		} );		// registers this object as the listener to 'onchange' events on the following fields		$$(".input").each( function(item,index) {			var me = this;			item.onchange = function() { me.onFieldUpdate(this); };			item.onkeyup = item.onchange;		}, this );	} // end of initialize
10215	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10215/04bee043755dbb5afd739bfcb33e66aafc6b4ea9/regexpresso.js/buggy/trunk/src/regexpresso.js