﻿var Login = new Class({
    Implements: [Options, Events],
    options: {
        defaultWidth: 500,
        defaultHeight: 300,
        id: '',
        transDuration: 500
    },
    initialize: function(options) {
        this.setOptions(options);
        this.currentObj = $(this.options.id);
    },
    currentObj: null,
    adjustHeight: function(newHeight) {
        this.currentObj.set('morph', { duration: this.options.transDuration
                            , transition: Fx.Transitions.Expo.easeOut
                            , link: 'chain'
        });
        this.currentObj.morph({ 'height': newHeight });
    },
    resizeObject: function(width, height) {
        this.currentObj.set('morph', { duration: this.options.transDuration
                                , transition: Fx.Transitions.Expo.easeOut
                                , link: 'chain'
        });
        this.currentObj.morph({ 'height': height, 'width': width });
    },
    onComplete: function() { }
});

