// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function sizePhotoHolder() {
	var total_width = 0;
	$$('#photo-holder img').each(function(img) { total_width += img.getWidth(); });
	$('photo-holder').setStyle({width: total_width + 15 + 'px'});
}

function init() {
	if ($('photo-holder')) { sizePhotoHolder(); }
}

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