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

preload = new Image(); preload.src='/images/button-bgh.png';

function init() {
  $$('.rent_items div, #existing_uploads .upload, #photos div').each(function(e){
    $(e).setStyle({height: 'auto'});
    originalHeight = $(e).ancestors()[0].select('div').map(function(d){
      return d.getHeight();
    }).max();
    $(e).setStyle({paddingTop: (originalHeight - $(e).getHeight())+'px'});
  });
}

Event.observe(window, 'load', init);
