anchor.diff: -<% content_for :javascript do %>
  -  $(document).ready(function() {
  -  	$("#change-event").effect("highlight", {color:"#F5DF51"}, 3000);
  -  })
  -  
  +<% content_for :javascript do %>  
     $("#organizers_name").fcbkcomplete({
   	cache: true,
               filter_case: false,
  
positive.code: 	 <div>
  	       	
  	 </div>	
  	<%end%>	
  	<div>
    </div>
  	<div class="margin-up">
  
negative.code:             maxshownitems: 4
    });
    
    template = "<%= t('user.invitation.message') %>\n<%= t('user.invitation.sign',:username=>current_user.login) %>";
    $("#event_name").blur(function(){
      replace_invitation();
    });
    
    function replace_invitation(){
      if(edited_msg==true)
        return;
  	
      invitation_text = template;
      if($("#event_name").val()!=""){
       invitation_text = invitation_text.replace('event_name',$("#event_name").val());
      }
     if($("#start_datepicker").val()!=""){
       invitation_text = invitation_text.replace('event_date',$("#start_datepicker").val() + " at " + $("#start_timepicker").val());
     }  
     $("#invite_msg").val(invitation_text);
    };
    
    
    //we detect the user editing the invitation message
    old_text = "";
    edited_msg = false;
    $("#invite_msg").focus(function(){
      old_text = $("#invite_msg").val();
    });
    
    $("#invite_msg").blur(function(){
      if( $("#invite_msg").val() != old_text)
  	{
  	  edited_msg = true;
  	}
    });
    
    $(document).ready(function() {
    	$("#change-event").effect("highlight", {color:"#F5DF51"}, 3000);
    	 replace_invitation();
    });
  <% end %>
  <% content_for :headers do  -%>
    <%= javascript_include_tag 'jquery.fcbkcomplete'%>
  