﻿/// <reference path="jquery-1.3.1.js" />

function EZProgress(target, divContainer) {
    this.target = target;
    this.divContainer = divContainer;
}

EZProgress.prototype.create = function() {

    $('#' + this.divContainer).append("<div id=\"" + this.divContainer + "Progress\"" + "class=\"EZLoader\"><img id=\"imgProgress\" class=\"imgLoader\" src=\"Resources/Images/EZLoader.gif\" alt=\"\" /></div>");
    //$('#' + this.divContainer).find("#" + this.divContainer + "Progress").stop().animate({ width: $("#" + this.target).width() + 10, height: $("#" + this.target).height() + 10, opacity: 0.5 });
    $('#' + this.divContainer).find("#" + this.divContainer + "Progress").stop().animate({ width: $("#" + this.target).width() + 10, height: $("#" + this.target).height() + 10, opacity: 0.5 });
};

EZProgress.prototype.remove = function() {
    $("#" + this.divContainer + "Progress").remove();
}
