var Bgmorph = new Class({
    Implements : Options,
    options : {
        'color_in' : '#f00',
        'color_out' : '#00f'
    },
    initialize : function(elements, options) {

        this.setOptions(options);

        elements.each(function(el){
            if(el.getElement('img'))
                el.getElement('img').addEvents({
                    'mouseover' : function() {
                        el.morph({'background-color' : this.options.color_in});
                    }.bind(this),
                    'mouseout' : function() {
                        (function() {
                            el.morph({'background-color' : this.options.color_out});
                        }).delay(200,this);
                    }.bind(this)
                });
            }.bind(this));
    }
});
