// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

/***** Content types menu *****************************************************/

document.observe('dom:loaded', function() {
  if (! $('content_types')) { return };
  $('content_types').setStyle({width: $('add_new').getWidth() + 'px'});
  
  Event.observe('add_new', 'click', function(event) {
    $('content_types').toggle();
    Event.stop(event);
  });
});

