document.observe("dom:loaded", function() {

    if ($(document.body).hasClassName("album")) {

        (function() {
            var body = $(document.body);
            body.insert({
                bottom: [
                    '<div class="resizer" style="display: none">',
                        '<p>Hey! Resize me to get bigger pics!</p>',
                    '</div>'
                ].join("\n")
            });
            var resizer = ($$(".resizer")[0]);
            new PeriodicalExecuter(function () {
                if ((screen.width > 1256) && (body.getWidth() < 1256)) {
                    resizer.show();
                } else {
                    resizer.hide();
                }
            }, 0.4);
        })();
        
    }
    
});
