if (typeof HTMLElement != 'undefined') { 
function findDOMClass(tagName) { var klass; var trans = { "OPTGROUP": "OptGroup", "TEXTAREA": "TextArea", "P": "Paragraph", "FIELDSET": "FieldSet", "UL": "UList", "OL": "OList", "DL": "DList", "DIR": "Directory", "H1": "Heading", "H2": "Heading", "H3": "Heading", "H4": "Heading", "H5": "Heading", "H6": "Heading", "Q": "Quote", "INS": "Mod", "DEL": "Mod", "A": "Anchor", "IMG": "Image", "CAPTION": "TableCaption", "COL": "TableCol", "COLGROUP": "TableCol", "THEAD": "TableSection", "TFOOT": "TableSection", "TBODY": "TableSection", "TR": "TableRow", "TH": "TableCell", "TD": "TableCell", "FRAMESET": "FrameSet", "IFRAME": "IFrame" }; if (trans[tagName]) klass = 'HTML' + trans[tagName] + 'Element'; if (window[klass]) return window[klass]; klass = 'HTML' + tagName + 'Element'; if (window[klass]) return window[klass]; klass = 'HTML' + tagName.capitalize() + 'Element'; if (window[klass]) return window[klass];  window[klass] = {}; window[klass].prototype = document.createElement(tagName).__proto__; return window[klass]; }  if (F.ElementExtensions) { 
Element.addMethods = function(methods) {  Object.extend(Element.Methods, methods || {});    function copy(methods, destination, onlyIfAbsent) {    onlyIfAbsent = onlyIfAbsent || false;    var cache = Element.extend.cache;    for (var property in methods) {      var value = methods[property];      if (!onlyIfAbsent || !(property in destination))        destination[property] = cache.findOrStore(value);    }  }    if (typeof HTMLElement != 'undefined') {    copy(Element.Methods, HTMLElement.prototype);    copy(Element.Methods.Simulated, HTMLElement.prototype, true);    copy(Form.Methods, HTMLFormElement.prototype);    [HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement].each(function(klass) {      copy(Form.Element.Methods, klass.prototype);    });    _nativeExtensions = true;  }}
5582	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5582/7044da813866e625d8222c98d811cae0aa6bccd4/dom.js/buggy/src/dom.js