// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
SPA = {
	centerImagesVertically: function(){
		$$(".image_grid li img").each(function(image){
		image.observe('load',function(event){
			if((height = this.getHeight()) < 200){
				offset = (200 - height) / 2;
				this.setStyle({marginTop: offset + 'px'})
			}
		}.bind(image))
		});
	}
}