function keep_size(){
    width = 0;
    $("#photos > img").each(function(){
        width = width + $(this).outerWidth();
    });
    
    $("#photos").width(width);
    $("#photos_container").width($(window).width() - 20);
	
	topval=($(window).height() - $("#header").outerHeight() - $("#content").outerHeight()) / 2.5;
	$("#content").css("top",topval >= 0 ? topval : 0);
}

$(function(){
    keep_size();
    $(window).resize(function(){
        keep_size();
    });
});
