(function($){$.extend({create:function(element,attributes,children,root){if(typeof(root)==='undefined'){root=document;}var key,i,elem;elem=$(root.createElement(element));if(typeof(attributes)==='object'){for(key in attributes){if(typeof(attributes[key])==='string'){elem.attr(key,attributes[key]);}}}if(children!==null){if(typeof(children)==='object'){for(i=0;i<children.length;i+=1){elem.append(children[i]);}}else if(typeof(children)!=='undefined'){elem.text(children.toString());}}return elem;}});})(jQuery);