function watch_main_pane_updaters(e){
  $(e).select('.ajax_update_main_pane').each(function(element){
    element.observe('ajax:before', function(event){
      $('main_pane').hide();
    })
    element.observe('ajax:complete', function(event){
      $('main_pane').update(event.memo.responseText);
      watch_events("events");
      watch_main_pane_updaters(e);
      $('main_pane').appear();
    })
  })
}

document.observe("dom:loaded", function(){
  watch_main_pane_updaters("main_container");
  if ($('q')) {
    $('q').activate();
    if ($('search_extended')) {
      $('search_extended').observe("click", function(event){
        $('search_form').submit();
      })
    }
  }
  $('person_photo').down('img').observe("load", function(event){
    event.findElement('img').appear();
  })
  $('person_photo').down('img').observe("mouseover", function(event){
    event.findElement('img').shake({distance : 2});
  })
  $$('.timetable_event').each(function(e){
    e.observe('mouseover', function(event){
      event.findElement('.timetable_event').addClassName('extended')
    })
    e.observe('mouseout', function(event){
      event.findElement('.timetable_event').removeClassName('extended')
    })
  })
})

@@ -1,413 +1,4 @@
-function watch_main_pane_updaters(e)%7B%0A  $(e).select('.ajax_update_main_pane').each(function(element)%7B%0A    element.observe('ajax:before', function(event)%7B%0A      $('main_pane').hide();%0A    %7D)%0A    element.observe('ajax:complete', function(event)%7B%0A      $('main_pane').update(event.memo.responseText);%0A      watch_events(%22events%22);%0A      watch_main_pane_updaters(e);%0A      $('main_pane').appear();%0A    %7D)%0A  %7D)%0A%7D%0A%0A
 docu

Clean unneeded js