var Progress = Class.create({
    progessNode: null,
    containerNode: null,

    initialize: function(args){
        Object.extend(this, args);
    },
    start: function() {
        if ((typeof this.containerNode !== "undefined") &&
            (typeof this.progressNode !== "undefined")) {
            this.containerNode.hide();
            this.progressNode.show();
        }
    },
    revert: function() {
        if ((typeof this.containerNode !== "undefined") &&
            (typeof this.progressNode !== "undefined")) {
            this.progressNode.hide();
            this.containerNode.show();
        }
    },
    onComplete: function() {
        this.clear();
    },
    onException: function() {
        this.clear();
    },
    onFailure: function() {
        this.clear();
    },
    onTimeout: function() {
        this.clear();
    }
});


