// **************************************************************************
// Copyright 2007 - 2009 Tavs Dokkedahl
// Contact: http://www.jslab.dk/contact.php
//
// This file is part of the JSLab DOM Correction (JDC) Program.
//
// JDC is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// any later version.
//
// JDC is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// ***************************************************************************
// File created 2009-04-22 20:39:20

// JDC Version: 1.0.3
// EPE revision: 92
// UEM revision: 75
// Release date: 2008-09-30
if(document.createEventObject){var EPE={};EPE.CACHE_ELEMENTS=1;EPE.IECreateElement=document.createElement;EPE.createElement=function(tag){tag=tag.toLowerCase();var elm=EPE.tags[tag]?new EPE.tags[tag](tag): new HTMLElement(tag);if(EPE.CACHE_ELEMENTS)EPE.cache.add(elm);return elm;};document.createElement=EPE.createElement;EPE.extend=function(elm,oCon){if(!elm.constructor){if(!oCon)oCon=EPE.tags[elm.tagName.toLowerCase()]?EPE.tags[elm.tagName.toLowerCase()]: HTMLElement;elm.constructor=oCon;if(elm.canHaveChildren){elm._appendChild=elm.appendChild;elm._insertBefore=elm.insertBefore;elm._replaceChild=elm.replaceChild;elm.appendChild=EPE.appendChild;elm.insertBefore=EPE.insertBefore;elm.replaceChild=EPE.replaceChild;}oPro=HTMLElement._prototype;if(elm.nodeName!="OBJECT"&&elm.nodeName!="APPLET"){for(var p in oPro){elm[p]=oPro[p];}}else{for(var p in oPro){try{elm[p]=oPro[p];}catch(ex){}}}var oPro=oCon._prototype;if(elm.nodeName!="OBJECT"&&elm.nodeName!="APPLET"){for(var p in oPro)elm[p]=oPro[p];}else{for(var p in oPro){try{elm[p]=oPro[p];}catch(ex){}}}EPE.PlugIn.executeCreate(elm);EPE.enableWatch(elm);}return elm;};EPE.constructorToString=function(){var s=Function.prototype.toString.apply(this);return s.match(/^function\s(\w+)/)[1];};EPE.init=function(){var a=document.all;var l=a.length;for(var i=0;i<l;i++){if(a[i].tagName!='!'&&a[i].tagName!='epe')EPE.extend(a[i]);}for(var i=0;i<EPE.init.aux.length;i++)EPE.init.aux[i]();if(EPE.__R1)EPE.__R1();};EPE.init.aux=[];EPE.enableWatch=function(elm){elm.attachEvent('onpropertychange',EPE.checkInnerHTML);};EPE.disableWatch=function(elm){elm.detachEvent('onpropertychange',EPE.checkInnerHTML);};EPE.checkInnerHTML=function(){if(event.srcElement&&event.propertyName=='innerHTML'){var elm=event.srcElement;if(elm.childNodes){for(var i=0;i<elm.childNodes.length;i++){if(elm.childNodes[i].tagName)EPE.extendInnerHTML(elm.childNodes[i]);}}}else{if(event.srcElement)EPE.PlugIn.executeChange(event.srcElement,event);else if(this==document)EPE.PlugIn.executeChange(document,event);}};EPE.extendInnerHTML=function(node){if(node.childNodes){for(var i=0;i<node.childNodes.length;i++){if(node.childNodes[i].tagName&&node.childNodes[i].childNodes)EPE.extendInnerHTML(node.childNodes[i]);}}if(node&&node.tagName){EPE.extend(node);EPE.PlugIn.executeAttach(node);/*for(var p in node){if(/^on/i.test(p)&&node[p]&&node[p]!=UEM.wrapper)node.addEventListener(p.substring(2),node[p],false);}*/}};if(EPE.CACHE_ELEMENTS){EPE.cache=EPE.IECreateElement('epe');document.documentElement.childNodes[0].appendChild(EPE.cache);EPE.cache.add=function(elm){if(elm.canHaveChildren){EPE.cache.appendChild(elm);elm.cached=true;}};EPE.cache.remove=function(elm){elm.cached=null;if(elm.childNodes.length){for(var i=0;i<elm.childNodes.length;i++)if(elm.childNodes[i].cached)EPE.cache.remove(elm.childNodes[i]);}EPE.cache.removeChild(elm);};}EPE.PlugIn=function(t){this.con=t?EPE.tags[t.toLowerCase()]: HTMLElement;if(!this.con)throw new Error('EPE.PlugIn: No constructor for tag found.');};EPE.PlugIn.create={};EPE.PlugIn.change={};EPE.PlugIn.attach={};EPE.PlugIn.prototype.addEPEListener=function(t,f){var con=this.con.toString();if(!EPE.PlugIn[t][con]){EPE.PlugIn[t][con]=[];EPE.PlugIn[t][con].push(f);}else{var l=EPE.PlugIn[t][con].length;for(var i=0;i<l;i++){if(EPE.PlugIn[t][con]==f)return;}EPE.PlugIn[t][con].push(f);}};EPE.PlugIn.prototype.removeEPEListener=function(t,f){var con=this.con.toString();if(!EPE.PlugIn[t][con])return;var l=EPE.PlugIn[t][con].length;var n=0;for(var i=0;i<l;i++)EPE.PlugIn[t][con][i]==f?n++: EPE.PlugIn[t][con][i-n]=EPE.PlugIn[t][con][i];EPE.PlugIn[t][con].length=EPE.PlugIn[t][con].length-n;if(!EPE.PlugIn[t][con].length)delete EPE.PlugIn[t][con];};EPE.PlugIn.executeCreate=function(elm){var con=null;if(elm.nodeName!='APPLET'&&elm.nodeName!='OBJECT'){con=elm.constructor.toString();}else{try{con=elm.constructor.toString();}catch(ex){}}if(con!=null&&this.create[con]){if(elm.nodeName!='APPLET'&&elm.nodeName!='OBJECT'){for(var i=0;i<this.create[con].length;i++)this.create[con][i].apply(elm);}else{for(var i=0;i<this.create[con].length;i++)try{this.create[con][i].apply(elm);}catch(ex){}}}else if(this.create['HTMLElement']){for(var i=0;i<this.create['HTMLElement'].length;i++){if(elm.nodeName!='APPLET'&&elm.nodeName!='OBJECT'){this.create['HTMLElement'][i].apply(elm);}else{try{this.create['HTMLElement'][i].apply(elm);}catch(ex){}}}}};EPE.PlugIn.executeChange=function(elm,e){var con=elm.constructor.toString();EPE.disableWatch(elm);if(this.change[con]){for(var i=0;i<this.change[con].length;i++)this.change[con][i].apply(elm,[e]);}else if(this.change['HTMLElement']){for(var i=0;i<this.change['HTMLElement'].length;i++)this.change['HTMLElement'][i].apply(elm,[e]);}EPE.enableWatch(elm);};EPE.PlugIn.executeAttach=function(elm){var con=elm.constructor.toString();EPE.disableWatch(elm);if(this.attach[con]){for(var i=0;i<this.attach[con].length;i++)this.attach[con][i].apply(elm);}if(this.attach['HTMLElement']){for(var i=0;i<this.attach['HTMLElement'].length;i++)this.attach['HTMLElement'][i].apply(elm);}EPE.enableWatch(elm);};EPE.appendChild=function(elm){EPE.extendInnerHTML(elm);if(EPE.CACHE_ELEMENTS&&elm.cached)EPE.cache.remove(elm);return this._appendChild(elm);};EPE.insertBefore=function(newChild,refChild){EPE.extendInnerHTML(newChild);if(EPE.CACHE_ELEMENTS&&newChild.cached)EPE.cache.remove(newChild);return this._insertBefore(newChild,refChild);};EPE.replaceChild=function(newChild,oldChild){EPE.extendInnerHTML(newChild);if(EPE.CACHE_ELEMENTS&&newChild.cached)EPE.cache.remove(newChild);return this._replaceChild(newChild,oldChild);};EPE.insertRow=function(i){var tr=this._insertRow(i);return tr?EPE.extend(tr): null;};EPE.insertCell=function(i){var td=this._insertCell(i);return td?EPE.extend(td): null;};EPE.createCaption=function(){var cap=this._createCaption();return cap?EPE.extend(cap): null;};EPE.createTHead=function(){var th=this._createTHead();return th?EPE.extend(th): null;};EPE.createTFoot=function(){var tf=this._createTFoot();return tf?EPE.extend(tf): null;};if(EPE.ENABLE_HTMLCOLLECTIONS){EPE.getElementsByTagName=function(t){var c=new HTMLCollection(this._getElementsByTagName(t));return c;};}EPE.initPrototype=function(oCon){oCon._prototype=oCon.prototype;oCon.prototype=EPE.IECreateElement('epe');for(var p in oCon._prototype)oCon.prototype[p]=oCon._prototype[p];oCon.prototype.constructor=oCon;oCon.toString=EPE.constructorToString;document.documentElement.childNodes[0].appendChild(oCon.prototype);oCon.prototype.attachEvent('onpropertychange',EPE.updatePrototype);};EPE.updatePrototype=function(){var p=event.propertyName;var src=event.srcElement;src.constructor._prototype[p]=src[p];if(src.constructor==HTMLElement){var a=EPE.uniqueTags;var l=a.length;for(var i=0;i<l;i++){a[i]._prototype[p]=src[p];a[i].prototype.detachEvent('onpropertychange',EPE.updatePrototype);a[i].prototype[p]=src[p];a[i].prototype.attachEvent('onpropertychange',EPE.updatePrototype);}EPE.updateAllElements(p,src[p]);}else{var a=src.constructor.tags;var l=a.length;for(var i=0;i<l;i++)EPE.updateElements(a[i],p,src[p]);}};EPE.updateAllElements=function(p,v){var elms=document.all;var l=elms.length;for(var i=0;i<l;i++){if(elms[i].tagName!='!'&&elms[i].tagName!='epe'){EPE.disableWatch(elms[i]);elms[i][p]=v;EPE.enableWatch(elms[i]);}}};EPE.updateElements=function(tag,p,v){var elms=document.getElementsByTagName(tag);var l=elms.length;for(var i=0;i<l;i++){EPE.disableWatch(elms[i]);elms[i][p]=v;EPE.enableWatch(elms[i]);}};EPE.tags={a: HTMLAnchorElement,applet: HTMLAppletElement,area: HTMLAreaElement,base: HTMLBaseElement,basefont: HTMLBaseFontElement,body: HTMLBodyElement,br: HTMLBRElement,button: HTMLButtonElement,caption: HTMLTableCaptionElement,col: HTMLTableColElement,colgroup: HTMLTableColElement,del: HTMLModElement,dir: HTMLDirectoryElement,div: HTMLDivElement,dl: HTMLDListElement,em: HTMLSpanElement,fieldset: HTMLFieldSetElement,font: HTMLFontElement,form: HTMLFormElement,frame: HTMLFrameElement,frameset: HTMLFrameSetElement,h1: HTMLHeadingElement,h2: HTMLHeadingElement,h3: HTMLHeadingElement,h4: HTMLHeadingElement,h5: HTMLHeadingElement,h6: HTMLHeadingElement,head: HTMLHeadElement,hr: HTMLHRElement,html: HTMLHtmlElement,iframe: HTMLIFrameElement,img: HTMLImageElement,input: HTMLInputElement,ins: HTMLModElement,isindex: HTMLIsIndexElement,label: HTMLLabelElement,legend: HTMLLegendElement,li: HTMLLIElement,link: HTMLLinkElement,map: HTMLMapElement,menu: HTMLMenuElement,meta: HTMLMetaElement,object: HTMLObjectElement,ol: HTMLOListElement,optgroup: HTMLOptGroupElement,option: HTMLOptionElement,p: HTMLParagraphElement,param: HTMLParamElement,pre: HTMLPreElement,q: HTMLQuoteElement,select: HTMLSelectElement,script: HTMLScriptElement,span: HTMLSpanElement,strike: HTMLSpanElement,strong: HTMLSpanElement,style: HTMLStyleElement,table: HTMLTableElement,tbody: HTMLTableSectionElement,td: HTMLTableCellElement,textarea: HTMLTextAreaElement,tfoot: HTMLTableSectionElement,th: HTMLTableCellElement,thead: HTMLTableSectionElement,title: HTMLTitleElement,tr: HTMLTableRowElement,ul: HTMLUListElement};EPE.uniqueTags=[];for(var p in EPE.tags)EPE.uniqueTags.push(EPE.tags[p]);var a=[];var l=EPE.uniqueTags.length;for(var i=0;i<l;i++){for(var j=i+1;j<l;j++){if(EPE.uniqueTags[i]==EPE.uniqueTags[j])j=++i;}a.push(EPE.uniqueTags[i]);}EPE.uniqueTags=a;/*@cc_on function HTMLDocument(){}document.constructor=HTMLDocument;HTMLDocument.toString=EPE.constructorToString;function HTMLElement(t){if(t){var elm=EPE.IECreateElement(t);EPE.extend(elm,arguments.callee);return elm;}}HTMLElement.tags=['all'];function HTMLAnchorElement(){var elm=EPE.IECreateElement('a');EPE.extend(elm,arguments.callee);return elm;}HTMLAnchorElement.tags=['a'];function HTMLAppletElement(){var elm=EPE.IECreateElement('applet');EPE.extend(elm,arguments.callee);return elm;}HTMLAppletElement.tags=['applet'];function HTMLAreaElement(){var elm=EPE.IECreateElement('area');EPE.extend(elm,arguments.callee);return elm;}HTMLAreaElement.tags=['area'];function HTMLBaseElement(){var elm=EPE.IECreateElement('base');EPE.extend(elm,arguments.callee);return elm;}HTMLBaseElement.tags=['base'];function HTMLBaseFontElement(){var elm=EPE.IECreateElement('basefont');EPE.extend(elm,arguments.callee);return elm;}HTMLBaseFontElement.tags=['basefont'];function HTMLBodyElement(){var elm=EPE.IECreateElement('body');EPE.extend(elm,arguments.callee);return elm;}HTMLBodyElement.tags=['body'];function HTMLBRElement(){var elm=EPE.IECreateElement('br');EPE.extend(elm,arguments.callee);return elm;}HTMLBRElement.tags=['br'];function HTMLButtonElement(){var elm=EPE.IECreateElement('button');EPE.extend(elm,arguments.callee);return elm;}HTMLButtonElement.tags=['button'];function HTMLTableCaptionElement(){var elm=EPE.IECreateElement('caption');EPE.extend(elm,arguments.callee);return elm;}HTMLTableCaptionElement.tags=['caption'];function HTMLTableColElement(tag){var elm=EPE.IECreateElement(tag);EPE.extend(elm,arguments.callee);return elm;}HTMLTableColElement.tags=['col','colgroup'];function HTMLDirectoryElement(){var elm=EPE.IECreateElement('dir');EPE.extend(elm,arguments.callee);return elm;}HTMLDirectoryElement.tags=['dir'];function HTMLDivElement(){var elm=EPE.IECreateElement('div');EPE.extend(elm,arguments.callee);return elm;}HTMLDivElement.tags=['div'];function HTMLDListElement(){var elm=EPE.IECreateElement('dl');EPE.extend(elm,arguments.callee);return elm;}HTMLDListElement.tags=['dl'];function HTMLFieldSetElement(){var elm=EPE.IECreateElement('fieldset');EPE.extend(elm,arguments.callee);return elm;}HTMLFieldSetElement.tags=['fieldset'];function HTMLFontElement(){var elm=EPE.IECreateElement('font');EPE.extend(elm,arguments.callee);return elm;}HTMLFontElement.tags=['font'];function HTMLFormElement(){var elm=EPE.IECreateElement('form');EPE.extend(elm,arguments.callee);return elm;}HTMLFormElement.tags=['form'];function HTMLFrameElement(){var elm=EPE.IECreateElement('frame');EPE.extend(elm,arguments.callee);return elm;}HTMLFrameElement.tags=['frame'];function HTMLFrameSetElement(){var elm=EPE.IECreateElement('frameset');EPE.extend(elm,arguments.callee);return elm;}HTMLFrameSetElement.tags=['framset'];function HTMLHeadingElement(t){var elm=EPE.IECreateElement(t);EPE.extend(elm,arguments.callee);return elm;}HTMLHeadingElement.tags=['h1','h2','h3','h4','h5','h6'];function HTMLHeadElement(){var elm=EPE.IECreateElement('head');EPE.extend(elm,arguments.callee);return elm;}HTMLHeadElement.tags=['head'];function HTMLHRElement(){var elm=EPE.IECreateElement('hr');EPE.extend(elm,arguments.callee);return elm;}HTMLHRElement.tags=['hr'];function HTMLHtmlElement(){var elm=EPE.IECreateElement('html');EPE.extend(elm,arguments.callee);return elm;}HTMLHtmlElement.tags=['html'];function HTMLIFrameElement(){var elm=EPE.IECreateElement('iframe');EPE.extend(elm,arguments.callee);return elm;}HTMLIFrameElement.tags=['iframe'];function HTMLImageElement(){var elm=EPE.IECreateElement('img');EPE.extend(elm,arguments.callee);return elm;}HTMLImageElement.tags=['img'];function HTMLInputElement(){var elm=EPE.IECreateElement('input');EPE.extend(elm,arguments.callee);return elm;}HTMLInputElement.tags=['input'];function HTMLModElement(t){var elm=EPE.IECreateElement(t);EPE.extend(elm,arguments.callee);return elm;}HTMLModElement.tags=['del','ins'];function HTMLIsIndexElement(){var elm=EPE.IECreateElement('isindex');EPE.extend(elm,arguments.callee);return elm;}HTMLIsIndexElement.tags=['isindex'];function HTMLLabelElement(){var elm=EPE.IECreateElement('label');EPE.extend(elm,arguments.callee);return elm;}HTMLLabelElement.tags=['label'];function HTMLLegendElement(){var elm=EPE.IECreateElement('legend');EPE.extend(elm,arguments.callee);return elm;}HTMLLegendElement.tags=['legend'];function HTMLLIElement(){var elm=EPE.IECreateElement('li');EPE.extend(elm,arguments.callee);return elm;}HTMLLIElement.tags=['li'];function HTMLLinkElement(){var elm=EPE.IECreateElement('link');EPE.extend(elm,arguments.callee);return elm;}HTMLLinkElement.tags=['link'];function HTMLMapElement(){var elm=EPE.IECreateElement('map');EPE.extend(elm,arguments.callee);return elm;}HTMLMapElement.tags=['map'];function HTMLMenuElement(){var elm=EPE.IECreateElement('menu');EPE.extend(elm,arguments.callee);return elm;}HTMLMenuElement.tags=['menu'];function HTMLMetaElement(){var elm=EPE.IECreateElement('meta');EPE.extend(elm,arguments.callee);return elm;}HTMLMetaElement.tags=['meta'];function HTMLObjectElement(){var elm=EPE.IECreateElement('object');EPE.extend(elm,arguments.callee);return elm;}HTMLObjectElement.tags=['object'];function HTMLOListElement(){var elm=EPE.IECreateElement('ol');EPE.extend(elm,arguments.callee);return elm;}HTMLOListElement.tags=['ol'];function HTMLOptGroupElement(){var elm=EPE.IECreateElement('optgroup');EPE.extend(elm,arguments.callee);return elm;}HTMLOptGroupElement.tags=['optgroup'];function HTMLOptionElement(){var elm=EPE.IECreateElement('option');EPE.extend(elm,arguments.callee);return elm;}HTMLOptionElement.tags=['option'];function HTMLParagraphElement(){var elm=EPE.IECreateElement('p');EPE.extend(elm,arguments.callee);return elm;}HTMLParagraphElement.tags=['p'];function HTMLParamElement(){var elm=EPE.IECreateElement('param');EPE.extend(elm,arguments.callee);return elm;}HTMLParamElement.tags=['param'];function HTMLPreElement(){var elm=EPE.IECreateElement('pre');EPE.extend(elm,arguments.callee);return elm;}HTMLPreElement.tags=['pre'];function HTMLQuoteElement(){var elm=EPE.IECreateElement('q');EPE.extend(elm,arguments.callee);return elm;}HTMLQuoteElement.tags=['q'];function HTMLSelectElement(){var elm=EPE.IECreateElement('select');EPE.extend(elm,arguments.callee);return elm;}HTMLSelectElement.tags=['select'];function HTMLScriptElement(){var elm=EPE.IECreateElement('script');EPE.extend(elm,arguments.callee);return elm;}HTMLScriptElement.tags=['script'];function HTMLSpanElement(t){var elm=EPE.IECreateElement(t);EPE.extend(elm,arguments.callee);return elm;}HTMLSpanElement.tags=['em','span','strike','strong'];function HTMLStyleElement(){var elm=EPE.IECreateElement('style');EPE.extend(elm,arguments.callee);return elm;}HTMLStyleElement.tags=['style'];function HTMLTableElement(){var elm=EPE.IECreateElement('table');EPE.extend(elm,arguments.callee);elm._createTCaption=elm.createTCaption;elm._createTHead=elm.createTHead;elm._createTFoot=elm.createTFoot;elm._insertRow=elm.insertRow;elm.createTCaption=EPE.createTCaption;elm.createTHead=EPE.createTHead;elm.createTFoot=EPE.createTFoot;elm.insertRow=EPE.insertRow;return elm;}HTMLTableElement.tags=['table'];function HTMLTableSectionElement(t){var elm=EPE.IECreateElement(t);EPE.extend(elm,arguments.callee);elm._insertRow=elm.insertRow;elm.insertRow=EPE.insertRow;return elm;}HTMLTableSectionElement.tags=['tbody','tfoot','thead'];function HTMLTableCellElement(t){var elm=EPE.IECreateElement(t);EPE.extend(elm,arguments.callee);return elm;}HTMLTableCellElement.tags=['td','th'];function HTMLTextAreaElement(){var elm=EPE.IECreateElement('textarea');EPE.extend(elm,arguments.callee);return elm;}HTMLTextAreaElement.tags=['textarea'];function HTMLTitleElement(){var elm=EPE.IECreateElement('title');EPE.extend(elm,arguments.callee);return elm;}HTMLTitleElement.tags=['title'];function HTMLTableRowElement(){var elm=EPE.IECreateElement('tr');EPE.extend(elm,arguments.callee);elm._insertCell=elm.insertCell;elm.insertCell=EPE.insertCell;return elm;}HTMLTableRowElement.tags=['tr'];function HTMLUListElement(){var elm=EPE.IECreateElement('ul');EPE.extend(elm,arguments.callee);return elm;}HTMLUListElement.tags=['ul'];@*/ EPE.initPrototype(HTMLElement);var a=EPE.uniqueTags;var l=a.length;for(var i=0;i<l;i++)EPE.initPrototype(a[i]);}if(document.createEventObject&&window.EPE&&false){HTMLElement.prototype.getAttribute=function(a){a=a.toLowerCase();if(a=='style'){var s=this.style.cssText.toLowerCase();return s.charAt(s.length-1)!=';'?s+';' : s;}return this.getAttributeNode(a).nodeValue;};}if(document.createEventObject&&window.EPE){HTMLElement.prototype.hasAttribute=function(a){if(/^on/.test(a))return this[a]&&this[a].constructor==Function?true : false;return this.getAttributeNode(a).specified;};}if(document.createEventObject&&window.EPE){HTMLElement.prototype.hasAttributes=function(){var a=this.attributes;var l=a.length;for(var i=0;i<l;i++){if(!a.item(i).expando&&a.item(i).specified)return true;}return false;};}if(document.createEventObject&&window.EPE){EPE.removeAttribute=function(a){a=a.toLowerCase();if(/^on/.test(a))this[a]=null;else return this._removeAttribute(a);};EPE.PlugIn.RemoveAttribute=new EPE.PlugIn();EPE.PlugIn.RemoveAttribute.addEPEListener('create',function(){if(!(this.constructor==HTMLObjectElement||this.constructor==HTMLAppletElement)){this._removeAttribute=this.removeAttribute;this.removeAttribute=EPE.removeAttribute;}});}if(document.createEventObject&&window.EPE){EPE.removeAttributeNode=function(n){return this.removeAttribute(n.nodeName);};EPE.PlugIn.RemoveAttribute=new EPE.PlugIn();EPE.PlugIn.RemoveAttribute.addEPEListener('create',function(){if(!(this.constructor==HTMLObjectElement||this.constructor==HTMLAppletElement)){this._removeAttributeNode=this.removeAttributeNode;this.removeAttributeNode=EPE.removeAttributeNode;}});}if(document.createEventObject&&window.EPE){EPE.setAttribute=function(a,v){a=a.toLowerCase();if(a=='style'){this.style.cssText=v;return;}else if(/^on/.test(a)){this[a]=new Function(v);return;}else if(/^accesskey/i.test(a))a='accessKey';else if(a=='class')a='className';else if(a=='for')a='htmlFor';this._setAttribute(a,v);};EPE.PlugIn.SetAttribute=new EPE.PlugIn();EPE.PlugIn.SetAttribute.addEPEListener('create',function(){this._setAttribute=this.setAttribute;this.setAttribute=EPE.setAttribute;});}if(document.createEventObject&&window.EPE){EPE.setAttributeNode=function(n){if(n.nodeName=='style'||/^on/.test(n.nodeName))this.setAttribute(n.nodeName,n.nodeValue);else this._setAttributeNode(n);};EPE.PlugIn.SetAttributeNode=new EPE.PlugIn();EPE.PlugIn.SetAttributeNode.addEPEListener('create',function(){this._setAttributeNode=this.setAttributeNode;this.setAttributeNode=EPE.setAttributeNode;});}if(document.createEventObject&&window.EPE){HTMLSelectElement.prototype.add=function(newOption,beforeOption){if(beforeOption){var c=this.options;var l=c.length;var i=0;for(i=0;i<l;i++){if(c[i]==beforeOption)break;}if(i<l){for(var j=l;j>i;j--)c[j]=new Option(c[j-1].text,c[j-1].value,c[j-1].defaultSelected,c[j-1].selected);c[i]=newOption;}else{var ex=new Error("Element not found.");ex.code=8;throw ex;}}else this.options[this.options.length]=newOption;};}if(document.createEventObject){EPE.PlugIn.CssFloat=new EPE.PlugIn();EPE.PlugIn.CssFloat.addEPEListener('attach',function(){if(this.style.cssFloat)this.style.styleFloat=this.style.cssFloat;});EPE.PlugIn.CssFloat.addEPEListener('change',function(e){if(e.propertyName=='style.cssFloat')this.style.styleFloat=this.style.cssFloat;});}if(document.createEventObject){EPE.PlugIn.CssOpacity=new EPE.PlugIn();EPE.PlugIn.CssOpacity.addEPEListener('attach',function(){if(this.style.opacity)this.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+(parseFloat(this.style.opacity)*100)+')';});EPE.PlugIn.CssOpacity.addEPEListener('change',function(e){if(e.propertyName=='style.cssFloat')this.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+(parseFloat(this.style.opacity)*100)+')';});}