function _createHtmlElement(o){var k;var p=window.document;var j={};var c=[];for(k=1;k<arguments.length;k++){var s=arguments[k];if(s){if(s.nodeType&&s.nodeType==9){p=s}else{if(typeof(s)=="string"||(s.nodeType&&(s.nodeType==1||s.nodeType==3))){c.push(s)}else{if(Object.isArray(s)){c=s}else{j=s}}}}}var g=(j.attributes||{});var r=(j.styles||{});var q=(j.events||{});var f=(j.classes||[]);var d;if((Prototype.Browser.IE6||Prototype.Browser.IE7||Prototype.Browser.IE8)&&((o=="td"&&g.colspan)||(o=="input"&&g.type&&(g.type=="checkbox"||g.type=="radio")))){var h="";for(a in g){h+=a+"='"+g[a]+"' "}d=p.createElement("<"+o+" "+h+"/>")}else{d=p.createElement(o)}d=$(d);if(o=="textarea"&&Prototype.Browser.IE8){d.observe("keydown",function(e){d.style.visibility="visible";return true})}if(g.type){d.setAttribute("type",g.type)}for(var m in g){if(m=="type"||m=="extend"&&typeof(g[m])=="function"){continue}if(m=="checked"&&o=="input"){d.defaultChecked=true}d.setAttribute(m,g[m])}for(var b in r){if(b=="extend"&&typeof(r[b])=="function"){continue}d.style[""+b]=""+r[b]}for(var n in q){if(n=="extend"&&typeof(q[n])=="function"){continue}d[n]=q[n]}d.className=f.join(" ");for(k=0;k<c.length;k++){if(c[k]){try{if(typeof(c[k])=="string"){d.appendChild(TEXT(p,c[k]))}else{d.appendChild(c[k])}}catch(l){alert("Error: "+o+" "+c[k])}}}return d}var HTMLTAGS=["A","B","BR","BODY","BUTTON","CENTER","COL","COLGROUP","DIV","EMBED","FONT","FORM","FRAME","FRAMESET","H1","H2","H3","H4","H5","H6","HEAD","HTML","I","IFRAME","IMG","INPUT","LABEL","LI","NOBR","OBJECT","OL","OPTION","P","PARAM","PRE","SCRIPT","SELECT","S","SPAN","STYLE","TEXTAREA","TABLE","TBODY","TFOOT","THEAD","TITLE","TR","TD","TH","U","UL"];HTMLTAGS.each(function(b){window[b.toUpperCase()]=function(){return _createHtmlElement.apply(null,[b.toLowerCase()].concat($A(arguments)))}});function TEXT(e,c){var b,d;if(e){if(e.getElementById){b=e;d=(c||"")}else{b=window.document;d=e}}else{b=window.document;d=(c||"")}return b.createTextNode(d)};