// animate roll-ups
var Rollupdown = new Class({
    Implements: [Options],
    options: {
        div1: 'realcontent',
        div2: 'realcontent',
        offset: 0,
        duration: '500'
    },
    initialize: function(options) {
        this.setOptions(options);
        var h1 = Window.getHeight() - 270;
        var h2 = $(this.options.div1).getScrollSize().y;
        this.h = (h1 > h2) ? h2: h1;
    },
    start: function() {
        $(this.options.div2).animate().tween('height', this.h + this.options.offset, {
            transition: this.options.transition,
            duration: this.options.duration
        }).start();
    }
});

window.onresize = function() {
    window.location.href = window.location.href;
};
