/**
 * @name jQuery radioReplace
 * @version 0.1
 * @author Jason Garber
 * @copyright (cc) Jason Garber (http://sixtwothree.org and http://www.viget.com)
 * 
 * Licensed under the CC-GNU GPL (http://creativecommons.org/licenses/GPL/2.0/)
 */

(function(a){a.fn.radioReplace=function(){return this.each(function(){var c=a(this),b=c.parents("label");b.prepend('<span class="radio-wrapper"></span>');c.bind("click",function(){a(':radio[name="'+c.attr("name")+'"]').parents("label").removeClass("checked");b.addClass("checked");});if(c.attr("checked")){b.addClass("checked");}});};})(jQuery);
