function add_film () {
    UIPage.addMethods({
      post_init: function ($super) {
        if ($super) { $super(); }
        $('random_film').observe('click', function (e) {
            this.reload_film();
            e.stop();
        }.bindAsEventListener(this));
      },
      reload_film: function() {
        this.fetch(this.cnf.film_url, function (json) {
            if (json.film) {
                json.film.each(function (item, index) {
                   $('photo'+index).down().src = this.cnf.base + 'static/images/film/' + item[0];
                   $('photo'+index).down().title = item[2] + (item[1]?' ('+item[1]+')':'');
                }.bind(this));
            }
        }.bind(this));
      }
    });
}