/* Custom script by: www.jtricks.com
 * Version: 1.0 (26.06.2011)
 */

function Briefly(obj)
{
    if (typeof(obj) == "string" && typeof(obj) != undefined)
        obj = document.getElementById(obj);

    if (obj != undefined && obj.briefly != undefined)
        return obj.briefly;

    var briefly = new Briefly.init(obj);

    if (obj != undefined)
        obj.briefly = briefly;

    return briefly;
};

Briefly.init = function(obj)
{
    this.target = obj;
};

Briefly.init.prototype.appear = function(milliseconds)
{
    if (milliseconds == undefined)
        this.target.style.display = 'block';
    else
    {
        var _this = this;
        setTimeout(function() { _this.appear(); }, milliseconds);
    }

    return this;
};

Briefly.init.prototype.disappear = function(milliseconds)
{
    if (milliseconds == undefined)
        this.target.style.display = 'none';
    else
    {
        var _this = this;
        setTimeout(function() { _this.disappear(); }, milliseconds);
    }

    return this;
};

