
$(document).ready(function(){

    $('form:not(.custom)').corner()
    
    //$('img:not(.custom)').load(function() {
    
    $('img:not(.custom)').each(function(i) {

        var img = $(this);
        
        var width = this.getAttribute('width');
        
        if (width) { 
            
            img.wrap("<div></div>").wrap("<div></div>")
                    
            img.parent().parent().css({
                        'background': '#e7e7e7',
                        'padding': '4px',
                        'width': img.width(),
                    }).corner("round 15px");
            
            img.parent().css({
                        'padding': 0,
                        'margin': 0,
                        'background': '#ffffff',
                    }).corner("round 11px");
        }
        
    });
});
