/*
Facelift Image Replacement v0.2 beta
Facelift was written and is maintained by Wise Engineering.
*/

var Wflir = {
     version: '0.1'

    ,options:
    {
         imgpath: ''
    }

    ,init: function(options)
    {
        this.loadOptions(options);
    }

    ,loadOptions: function(options)
    {
        for(var i in options)
            this.options[i] = options[i];
    }

    ,replace: function(o, options)
    {
        var width = 0;
        var height = 0;

        width = $(o).width();
        height = $(o).height();

        $(o).html('');
        $(o).width(width);
        $(o).height(height);

        for (var field in options)
        {
            $(o).css(field, options[field]);
        }
    }
}