anchor.diff:  }
   
   activate_links = function(element){
  -	element.getElementsBySelector('.remove').each(function(link){  
  -		link.observe('click', NestedAttributesJs.remove);  
  +	$(element).find('.remove').each(function(link){  
  +		$(link).click(NestedAttributesJs.remove);  
   	});
  -	element.getElementsBySelector('.add').each(function(link){  
  -			link.observe('click', NestedAttributesJs.add);  
  +	$(element).find('.add').each(function(link){  
  +			$(link).click(NestedAttributesJs.add);  
   	});
  -	element.getElementsBySelector('.add_nested').each(function(link){  
  -			link.observe('click', NestedAttributesJs.add_nested);  
  +	$(element).find('.add_nested').each(function(link){  
  +			$(link).click(NestedAttributesJs.add_nested);  
   	});
  -	element.getElementsBySelector('.pull_nested').each(function(link){  
  -		link.observe('click', NestedAttributesJs.start_throbber);
  -		link.observe('ajax:before', NestedAttributesJs.add_live_value_to_query);
  -		link.observe('ajax:success', NestedAttributesJs.pull_nested);
  +	$(element).find('.pull_nested').each(function(link){  
  +		$(link).click(NestedAttributesJs.start_throbber);
  +		$(link).ajaxSend(NestedAttributesJs.add_live_value_to_query);
  +		$(link).ajaxSuccess(NestedAttributesJs.pull_nested);
   	});
   
  -    element.getElementsBySelector('.combobox').each(function(e){
  -       e.observe('change', NestedAttributesJs.toggle_comboform_input.bindAsEventListener(this, e));
  +    $(element).find('.combobox').each(function(e){
  +       e.change(NestedAttributesJs.toggle_comboform_input.bindAsEventListener(this, e));
       });
   }
   
  
positive.code: //= require jquery
  //= require jquery_ujs
  //= require_self
  
  // Place your application-specific JavaScript functions and classes here
  // This file is automatically included by javascript_include_tag :defaults
  
negative.code: function clean_defaults(content, oldfield, oldtab){  
      newfields = content.select('input,textarea');
      newfields.each(function(newfield) {
          if (newfield.val() == "") { newfield.setValue($F(oldfield)); }
      });
      oldfield.setValue("");
      //oldfield.remove();
      //oldtab.remove();
  }
  