function Zoom(obj)
{
    this.obj = obj;
    this.width = 0;
    this.height = 0;
    this.setSize = zoomSetSize;
    this.show = zoomShow;
    this.resize = zoomResize;
}

function zoomSetSize(width, height)
{
    this.width = width;
    this.height = height;
}

function zoomShow()
{
    this.obj.style.display = "block";
}

function zoomResize()
{
    if (this.width > 0 && this.obj.width > this.width)
    {
        this.obj.width = this.width;
    }
    if (this.height > 0 && this.obj.height > this.height)
    {
        this.obj.height = this.height;
    }
}

function setMinSize(obj, width, height)
{
    var zoom = new Zoom(obj);
    zoom.setSize(width, height);
    zoom.show();
    zoom.resize();
    var uid = Math.round(Math.random() * 10000);
    eval("zoom_" + uid + " = zoom;");
    setTimeout("zoom_" + uid + ".resize()", 100);
    setTimeout("zoom_" + uid + ".resize()", 500);
    setTimeout("zoom_" + uid + ".resize()", 1000);
}
