// from http://www.aspcode.net/JQuery-Curvy-Corners.aspx jQuery.fn.corner = function(options) { var settings = { tl: { radius: 10 }, tr: { radius: 10 }, bl: { radius: 10 }, br: { radius: 10 }, antiAlias: true, autoPad: true, validTags: ["div"] }; if ( options && typeof(options) != 'string' ) { jQuery.extend(settings, options); } return this.each(function() { new curvyObject(settings,this).applyCorners(); //new curvyCorners(settings, this ).applyCornersToAll(); }); };