(function($){
        
        $.fn.cornerise = function(options) {
                
                //$(this).each(function(){
                        $(this)
                                .css({
                                        'position' : 'relative'
                                })
                                .append(
                                        $('<img alt="" />')
                                                .attr('src', options.topLeft)
                                                .css({
                                                        'position' : 'absolute',
                                                        'left' : '0px',
                                                        'top' : '0px'
                                                })
                                )
                                .append(
                                        $('<img alt="" />')
                                                .attr('src', options.topRight)
                                                .css({
                                                        'position' : 'absolute',
                                                        'right' : '0px',
                                                        'top' : '0px'
                                                })
                                )
                                .append(
                                        $('<img alt="" />')
                                                .attr('src', options.bottomRight)
                                                .css({
                                                        'position' : 'absolute',
                                                        'right' : '0px',
                                                        'bottom' : '0px'
                                                })
                                )
                                .append(
                                        $('<img alt="" />')
                                                .attr('src', options.bottomLeft)
                                                .css({
                                                        'position' : 'absolute',
                                                        'left' : '0px',
                                                        'bottom' : '0px'
                                                })
                                );
                        
                        
                //});
                
        }
        
})(jQuery);

