(function(a){a.fn.extend({roundedCorners:function(){this.each(function(){var d=a(this).attr("class");var f="";var g="";var c=false;var b=false;var e=false;if(a(this).children().is("h2")){b=true}if(d.match(/\bsame-height\b/)){g+=" same-height"}if(d.match(/\bfixed-height\b/)){g+=" fixed-height"}if(d.match(/\btransparent\b/)){f+=" transparent";g+=" transparent"}if(d.match(/\btl\b/)){e=true;if(b){f+=" tl";g+=" none"}else{g+=" tl"}}if(d.match(/\btr\b/)){e=true;if(b){f+=" tr";g+=" none"}else{g+=" tr"}}if(d.match(/\bbl\b/)){e=true;f+=" none";g+=" bl"}if(d.match(/\bbr\b/)){e=true;f+=" none";g+=" br"}if(d.match(/\bbottom\b/)){e=true;if(b){f+=" none"}g+=" bottom"}if(d.match(/\bleft\b/)){e=true;if(b){f+=" tl";g+=" bl"}else{g+=" left"}}if(d.match(/\btop\b/)){e=true;if(b){f+=" top";g+=" none"}else{g+=" top"}}if(d.match(/\bright\b/)){e=true;if(b){f+=" tr";g+=" br"}else{g+=" right"}}if(d.match(/\bnone\b/)){e=true;f+=" none";g+=" none"}if(d.match(/\bsmall\b/)){f+=" small";g+=" small";c=true}if(d.match(/\bnormal\b/)){f+=" normal";g+=" normal";c=true}if(d.match(/\bbig\b/)){f+=" big";g+=" big";c=true}if(!c){f+=" big";g+=" big"}if(!e){if(b){f+=" top";g+=" bottom"}}if(b){a("h2",this).nifty(f)}a(this).nifty(g)});return this}});a(function(){a(".jqRounded").roundedCorners()})})(jQuery);