gsDom=function(){return{appendChild:function(b,a){b.appendChild(a);return this},tagFunc:function(a){try{return function(){var c,d;if(arguments.length>0){if(arguments[0].nodeName||typeof arguments[0]=="string"){d=arguments}else{c=arguments[0];d=Array.prototype.slice.call(arguments,1)}}return gsDom.create(a,c,d)}}catch(b){alert(b+" Dom tagFunc()")}},create:function(b,c,f){try{c=c||{};f=f||{};var g=document.createElement(b);var e=null;for(var a in c){e=a;if(e.substr(0,1)=="_"){e=e.substr(1)}g.setAttribute(e,c[a].toString())}for(var d=0;d<f.length;d++){if(typeof f[d]=="string"){f[d]=document.createTextNode(f[d])}g.appendChild(f[d])}return g}catch(h){alert(h.message+" DOM create()"+b+""+a)}}}}();(function(){var b=("table|tr|th|td|thead|tfoot|tbody|frm|img|br|span|a|h1|h2|h3|h4|h4|h6|hr|ul|li|form|label|p|fieldset|legend|option|textarea|select|form|div|input|fieldset").split("|");var c,a=0;while(c=b[a++]){window["$"+c]=gsDom.tagFunc(c)}})();
