var isIE=navigator.userAgent.match(/MSIE/);DomBuilder={IE_TRANSLATIONS:{"class":"className","for":"htmlFor"},ieAttrSet:function(A,C,D){var B;if(B=this.IE_TRANSLATIONS[C]){D[B]=A[C]}else{if(C=="style"){D.style.cssText=A[C]}else{if(C.match(/^on/)){D[C]=typeof A[C]=="function"?A[C]:new Function(A[C])}else{D.setAttribute(C,A[C])}}}},apply:function(D){D=D||{};var B=("p|div|span|strong|em|img|table|tr|td|th|thead|tbody|tfoot|pre|code|iframe|h1|h2|h3|h4|h5|h6|ul|ol|li|form|input|textarea|legend|fieldset|select|option|blockquote|cite|br|hr|dd|dl|dt|address|a|button|abbr|acronym|b|script|link|style|bdo|ins|del|object|param|col|colgroup|optgroup|caption|big|small|label|dfn|kbd|samp|var|center").split("|");var C,A=0;while(C=B[A++]){D[C.toUpperCase()]=DomBuilder.tagFunc(C)}return D},tagFunc:function(A){return function(){var C=arguments,B,D;C.slice=[].slice;if(C.length>0){if(C[0].nodeName||typeof C[0]=="string"){D=C}else{B=C[0];D=C.slice(1)}}return DomBuilder.elem(A,B,D)}},elem:function(D,A,E){A=A||{};E=E||[];var C=document.createElement((isIE&&A.name)?"<"+D+" name="+A.name+">":D);for(var B in A){if(typeof A[B]!="function"){if(isIE){this.ieAttrSet(A,B,C)}else{C.setAttribute(B,A[B])}}}for(var B=0;B<E.length;B++){if(typeof E[B]=="string"){E[B]=document.createTextNode(E[B])}C.appendChild(E[B])}return C}}
