var autocompleters = new Array();

function additionalFieldForItem(form_id, fs_or_ec_id){
    var elements =  $(form_id).getElements();
    var item;
    var substance_autocomplete;
    for (var i=0;i<elements.length;i++)
    {
      var id = elements[i].id;
      if (id.match('measured_item_id'))
        item = elements[i];
      if (id.match('autocomplete_input'))
        substance_autocomplete = elements[i];
    }

    //check if the selected item is concentration
    var selectedIndex = item.selectedIndex;
    var option_select = item.options[selectedIndex];

    if (option_select.text == 'concentration'){
        substance_autocomplete.disabled = false;
        Effect.Fade(fs_or_ec_id + 'growth_medium_or_buffer_description', { duration: 0.5 });
        Effect.Appear(fs_or_ec_id + 'substance_condition_factor', { duration: 4 });
    }
    else if (option_select.text == 'growth medium' || option_select.text == 'buffer'){
        Effect.Fade(fs_or_ec_id + 'substance_condition_factor', { duration: 0.5 });
        Effect.Appear(fs_or_ec_id + 'growth_medium_or_buffer_description', { duration: 4 });
    }
    else{
        Effect.Fade(fs_or_ec_id + 'substance_condition_factor', { duration: 1 });
        Effect.Fade(fs_or_ec_id + 'growth_medium_or_buffer_description', { duration: 0.5 });
    }
}

@@ -664,32 +664,25 @@
 se;%0A        
-Effect.F
+f
 ade(fs_or_ec
@@ -724,37 +724,17 @@
 ription'
-, %7B duration: 0.5 %7D);
+)
 %0A       
@@ -730,32 +730,25 @@
 n')%0A        
-Effect.A
+a
 ppear(fs_or_
@@ -783,35 +783,17 @@
 _factor'
-, %7B duration: 4 %7D);
+)
 %0A    %7D%0A 
@@ -882,32 +882,25 @@
 ')%7B%0A        
-Effect.F
+f
 ade(fs_or_ec
@@ -933,37 +933,17 @@
 _factor'
-, %7B duration: 0.5 %7D);
+)
 %0A       
@@ -947,16 +947,9 @@
     
-Effect.A
+a
 ppea
@@ -1005,27 +1005,9 @@
 ion'
-, %7B duration: 4 %7D);
+)
 %0A   
@@ -1023,32 +1023,25 @@
 se%7B%0A        
-Effect.F
+f
 ade(fs_or_ec
@@ -1078,27 +1078,9 @@
 tor'
-, %7B duration: 1 %7D);
+)
 %0A   
@@ -1088,16 +1088,9 @@
     
-Effect.F
+f
 ade(
@@ -1140,16 +1140,83 @@
 ription'
+)%0A    %7D%0A%7D%0A%0Afunction appear(element_id)%7B%0A   Effect.Appear(element_id
 , %7B dura
@@ -1225,20 +1225,90 @@
 on: 
-0.5
+4
  %7D);%0A
-    %7D
+%7D%0A%0Afunction fade(element_id)%7B%0A   Effect.Fade(element_id, %7B duration: 0.25 %7D);
 %0A%7D%0A

change the fading duration to 0.25