var Prototype={Version:"1.5.0",BrowserFeatures:{XPath:!!document.evaluate},ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)",emptyFunction:function(){},K:function(b){return b}};var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};var $A=Array.from=function(g){if(!g){return[]}if(g.toArray){return g.toArray()}else{var e=[];for(var f=0,h=g.length;f<h;f++){e.push(g[f])}return e}};var Abstract=new Object();Object.extend=function(e,f){for(var d in f){e[d]=f[d]}return e};Object.extend(Object,{inspect:function(d){try{if(d===undefined){return"undefined"}if(d===null){return"null"}return d.inspect?d.inspect():d.toString()}catch(c){if(c instanceof RangeError){return"..."}throw c}},keys:function(e){var d=[];for(var f in e){d.push(f)}return d},values:function(d){var e=[];for(var f in d){e.push(d[f])}return e},clone:function(b){return Object.extend({},b)},isFunction:function(b){return typeof b=="function"},isUndefined:function(b){return typeof(b=="undefined")}});Function.prototype.bind=function(){var e=this,f=$A(arguments),d=f.shift();return function(){if(typeof $A=="function"){return e.apply(d,f.concat($A(arguments)))}}};Function.prototype.bindAsEventListener=function(f){var e=this,d=$A(arguments),f=d.shift();return function(a){if(typeof $A=="function"){return e.apply(f,[(a||window.event)].concat(d).concat($A(arguments)))}}};Object.extend(Number.prototype,{toColorPart:function(){var b=this.toString(16);if(this<16){return"0"+b}return b},succ:function(){return this+1},times:function(b){$R(0,this,true).each(b);return this}});var Try={these:function(){var j;for(var e=0,i=arguments.length;e<i;e++){var g=arguments[e];try{j=g();break}catch(h){}}return j}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(c,d){this.callback=c;this.frequency=d;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},stop:function(){if(!this.timer){return}clearInterval(this.timer);this.timer=null},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.callback(this)}finally{this.currentlyExecuting=false}}}};String.interpret=function(b){return b==null?"":String(b)};Object.extend(String.prototype,{gsub:function(h,j){var g="",i=this,f;j=arguments.callee.prepareReplacement(j);while(i.length>0){if(f=i.match(h)){g+=i.slice(0,f.index);g+=String.interpret(j(f));i=i.slice(f.index+f[0].length)}else{g+=i,i=""}}return g},sub:function(f,e,d){e=this.gsub.prepareReplacement(e);d=d===undefined?1:d;return this.gsub(f,function(a){if(--d<0){return a[0]}return e(a)})},scan:function(c,d){this.gsub(c,d);return this},truncate:function(c,d){c=c||30;d=d===undefined?"...":d;return this.length>c?this.slice(0,c-d.length)+d:this},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var c=new RegExp(Prototype.ScriptFragment,"img");var d=new RegExp(Prototype.ScriptFragment,"im");return(this.match(c)||[]).map(function(a){return(a.match(d)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)})},escapeHTML:function(){var c=document.createElement("div");var d=document.createTextNode(this);c.appendChild(d);return c.innerHTML},unescapeHTML:function(){var b=document.createElement("div");b.innerHTML=this.stripTags();return b.childNodes[0]?(b.childNodes.length>1?$A(b.childNodes).inject("",function(a,d){return a+d.nodeValue}):b.childNodes[0].nodeValue):""},toQueryParams:function(c){var d=this.strip().match(/([^?#]*)(#.*)?$/);if(!d){return{}}return d[1].split(c||"&").inject({},function(b,a){if((a=a.split("="))[0]){var h=decodeURIComponent(a[0]);var g=a[1]?decodeURIComponent(a[1]):undefined;if(b[h]!==undefined){if(b[h].constructor!=Array){b[h]=[b[h]]}if(g){b[h].push(g)}}else{b[h]=g}}return b})},toArray:function(){return this.split("")},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1)},camelize:function(){var g=this.split("-"),f=g.length;if(f==1){return g[0]}var h=this.charAt(0)=="-"?g[0].charAt(0).toUpperCase()+g[0].substring(1):g[0];for(var e=1;e<f;e++){h+=g[e].charAt(0).toUpperCase()+g[e].substring(1)}return h},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()},underscore:function(){return this.gsub(/::/,"/").gsub(/([A-Z]+)([A-Z][a-z])/,"#{1}_#{2}").gsub(/([a-z\d])([A-Z])/,"#{1}_#{2}").gsub(/-/,"_").toLowerCase()},dasherize:function(){return this.gsub(/_/,"-")},inspect:function(c){var d=this.replace(/\\/g,"\\\\");if(c){return'"'+d.replace(/"/g,'\\"')+'"'}else{return"'"+d.replace(/'/g,"\\'")+"'"}}});String.prototype.gsub.prepareReplacement=function(c){if(typeof c=="function"){return c}var d=new Template(c);return function(a){return d.evaluate(a)}};String.prototype.parseQuery=String.prototype.toQueryParams;var Template=Class.create();Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;Template.prototype={initialize:function(d,c){this.template=d.toString();this.pattern=c||Template.Pattern},evaluate:function(b){return this.template.gsub(this.pattern,function(a){var d=a[1];if(d=="\\"){return a[2]}return d+String.interpret(b[a[3]])})}};var $break=new Object();var $continue=new Object();var Enumerable={each:function(d){var e=0;try{this._each(function(b){try{d(b,e++)}catch(a){if(a!=$continue){throw a}}})}catch(f){if(f!=$break){throw f}}return this},eachSlice:function(j,f){var g=-j,i=[],h=this.toArray();while((g+=j)<h.length){i.push(h.slice(g,g+j))}return i.map(f)},all:function(c){var d=true;this.each(function(a,b){d=d&&!!(c||Prototype.K)(a,b);if(!d){throw $break}});return d},any:function(c){var d=false;this.each(function(a,b){if(d=!!(c||Prototype.K)(a,b)){throw $break}});return d},collect:function(c){var d=[];this.each(function(a,b){d.push((c||Prototype.K)(a,b))});return d},detect:function(c){var d;this.each(function(a,b){if(c(a,b)){d=a;throw $break}});return d},findAll:function(c){var d=[];this.each(function(a,b){if(c(a,b)){d.push(a)}});return d},grep:function(f,d){var e=[];this.each(function(a,b){var c=a.toString();if(c.match(f)){e.push((d||Prototype.K)(a,b))}});return e},include:function(d){var c=false;this.each(function(a){if(a==d){c=true;throw $break}});return c},inGroupsOf:function(c,d){d=d===undefined?null:d;return this.eachSlice(c,function(a){while(a.length<c){a.push(d)}return a})},inject:function(d,c){this.each(function(a,b){d=c(d,a,b)});return d},invoke:function(c){var d=$A(arguments).slice(1);return this.map(function(a){return a[c].apply(a,d)})},max:function(c){var d;this.each(function(a,b){a=(c||Prototype.K)(a,b);if(d==undefined||a>=d){d=a}});return d},min:function(c){var d;this.each(function(a,b){a=(c||Prototype.K)(a,b);if(d==undefined||a<d){d=a}});return d},partition:function(f){var d=[],e=[];this.each(function(a,b){((f||Prototype.K)(a,b)?d:e).push(a)});return[d,e]},pluck:function(c){var d=[];this.each(function(a,b){d.push(a[c])});return d},reject:function(c){var d=[];this.each(function(a,b){if(!c(a,b)){d.push(a)}});return d},sortBy:function(b){return this.map(function(d,a){return{value:d,criteria:b(d,a)}}).sort(function(a,g){var h=a.criteria,i=g.criteria;return h<i?-1:h>i?1:0}).pluck("value")},toArray:function(){return this.map()},zip:function(){var d=Prototype.K,e=$A(arguments);if(typeof e.last()=="function"){d=e.pop()}var f=[this].concat(e).map($A);return this.map(function(a,b){return d(f.pluck(b))})},size:function(){return this.toArray().length},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse){Array.prototype._reverse=Array.prototype.reverse}Object.extend(Array.prototype,{_each:function(d){for(var e=0,f=this.length;e<f;e++){d(this[e])}},clear:function(){this.length=0;return this},first:function(){return this[0]},last:function(){return this[this.length-1]},compact:function(){return this.select(function(b){return b!=null})},flatten:function(){return this.inject([],function(c,d){return c.concat(d&&d.constructor==Array?d.flatten():[d])})},without:function(){var b=$A(arguments);return this.select(function(a){return !b.include(a)})},indexOf:function(e){for(var d=0,f=this.length;d<f;d++){if(this[d]==e){return d}}return -1},reverse:function(b){return(b!==false?this:this.toArray())._reverse()},reduce:function(){return this.length>1?this:this[0]},uniq:function(){return this.inject([],function(c,d){return c.include(d)?c:c.concat([d])})},clone:function(){return[].concat(this)},size:function(){return this.length},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"}});Array.prototype.toArray=Array.prototype.clone;function $w(b){b=b.strip();return b?b.split(/\s+/):[]}if(window.opera){Array.prototype.concat=function(){var h=[];for(var f=0,j=this.length;f<j;f++){h.push(this[f])}for(var f=0,j=arguments.length;f<j;f++){if(arguments[f].constructor==Array){for(var g=0,i=arguments[f].length;g<i;g++){h.push(arguments[f][g])}}else{h.push(arguments[f])}}return h}}var Hash=function(b){Object.extend(this,b||{})};Object.extend(Hash,{toQueryString:function(c){var d=[];this.prototype._each.call(c,function(a){if(!a.key){return}if(a.value&&a.value.constructor==Array){var b=a.value.compact();if(b.length<2){a.value=b.reduce()}else{key=encodeURIComponent(a.key);b.each(function(f){f=f!=undefined?encodeURIComponent(f):"";d.push(key+"="+encodeURIComponent(f))});return}}if(a.value==undefined){a[1]=""}d.push(a.map(encodeURIComponent).join("="))});return d.join("&")}});Object.extend(Hash.prototype,Enumerable);Object.extend(Hash.prototype,{_each:function(e){for(var f in this){var h=this[f];if(h&&h==Hash.prototype[f]){continue}var g=[f,h];g.key=f;g.value=h;e(g)}},keys:function(){return this.pluck("key")},values:function(){return this.pluck("value")},merge:function(b){return $H(b).inject(this,function(a,d){a[d.key]=d.value;return a})},remove:function(){var f;for(var e=0,h=arguments.length;e<h;e++){var g=this[arguments[e]];if(g!==undefined){if(f===undefined){f=g}else{if(f.constructor!=Array){f=[f]}f.push(g)}}delete this[arguments[e]]}return f},toQueryString:function(){return Hash.toQueryString(this)},inspect:function(){return"#<Hash:{"+this.map(function(b){return b.map(Object.inspect).join(": ")}).join(", ")+"}>"}});function $H(b){if(b&&b.constructor==Hash){return b}return new Hash(b)}ObjectRange=Class.create();Object.extend(ObjectRange.prototype,Enumerable);Object.extend(ObjectRange.prototype,{initialize:function(f,e,d){this.start=f;this.end=e;this.exclusive=d},_each:function(d){var c=this.start;while(this.include(c)){d(c);c=c.succ()}},include:function(b){if(b<this.start){return false}if(this.exclusive){return b<this.end}return b<=this.end}});var $R=function(f,e,d){return new ObjectRange(f,e,d)};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(b){this.responders._each(b)},register:function(b){if(!this.include(b)){this.responders.push(b)}},unregister:function(b){this.responders=this.responders.without(b)},dispatch:function(g,e,h,f){this.each(function(b){if(typeof b[g]=="function"){try{b[g].apply(b,[e,h,f])}catch(a){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(b){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:""};Object.extend(this.options,b||{});this.options.method=this.options.method.toLowerCase();if(typeof this.options.parameters=="string"){this.options.parameters=this.options.parameters.toQueryParams()}}};Ajax.Request=Class.create();Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Request.prototype=Object.extend(new Ajax.Base(),{_complete:false,initialize:function(c,d){this.transport=Ajax.getTransport();this.setOptions(d);this.request(c)},request:function(e){this.url=e;this.method=this.options.method;var g=this.options.parameters;if(!["get","post"].include(this.method)){g._method=this.method;this.method="post"}g=Hash.toQueryString(g);if(g&&/Konqueror|Safari|KHTML/.test(navigator.userAgent)){g+="&_="}if(this.method=="get"&&g){this.url+=(this.url.indexOf("?")>-1?"&":"?")+g}try{Ajax.Responders.dispatch("onCreate",this,this.transport);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous){setTimeout(function(){this.respondToReadyState(1)}.bind(this),10)}this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();var f=this.method=="post"?(this.options.postBody||g):null;this.transport.send(f);if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange()}}catch(h){this.dispatchException(h)}},onStateChange:function(){var b=this.transport.readyState;if(b>1&&!((b==4)&&this._complete)){this.respondToReadyState(this.transport.readyState)}},setRequestHeaders:function(){var h={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){h["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){h.Connection="close"}}if(typeof this.options.requestHeaders=="object"){var j=this.options.requestHeaders;if(typeof j.push=="function"){for(var f=0,i=j.length;f<i;f+=2){h[j[f]]=j[f+1]}}else{$H(j).each(function(a){h[a.key]=a.value})}}for(var g in h){this.transport.setRequestHeader(g,h[g])}},success:function(){return !this.transport.status||(this.transport.status>=200&&this.transport.status<300)},respondToReadyState:function(g){var j=Ajax.Request.Events[g];var h=this.transport,e=this.evalJSON();if(j=="Complete"){try{this._complete=true;(this.options["on"+this.transport.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(h,e)}catch(i){this.dispatchException(i)}if((this.getHeader("Content-type")||"text/javascript").strip().match(/^(text|application)\/(x-)?(java|ecma)script(;.*)?$/i)){this.evalResponse()}}try{(this.options["on"+j]||Prototype.emptyFunction)(h,e);Ajax.Responders.dispatch("on"+j,this,h,e)}catch(i){this.dispatchException(i)}if(j=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction}},getHeader:function(d){try{return this.transport.getResponseHeader(d)}catch(c){return null}},evalJSON:function(){try{var json=this.getHeader("X-JSON");return json?eval("("+json+")"):null}catch(e){return null}},evalResponse:function(){try{return eval(this.transport.responseText)}catch(e){this.dispatchException(e)}},dispatchException:function(b){(this.options.onException||Prototype.emptyFunction)(this,b);Ajax.Responders.dispatch("onException",this,b)}});Ajax.Updater=Class.create();Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(f,h,e){this.container={success:(f.success||f),failure:(f.failure||(f.success?null:f))};this.transport=Ajax.getTransport();this.setOptions(e);var g=this.options.onComplete||Prototype.emptyFunction;this.options.onComplete=(function(a,b){this.updateContent();g(a,b)}).bind(this);this.request(h)},updateContent:function(){var c=this.container[this.success()?"success":"failure"];var d=this.transport.responseText;if(!this.options.evalScripts){d=d.stripScripts()}if(c=$(c)){if(this.options.insertion){new this.options.insertion(c,d)}else{c.update(d)}}if(this.success()){if(this.onComplete){setTimeout(this.onComplete.bind(this),10)}}}});Ajax.PeriodicalUpdater=Class.create();Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base(),{initialize:function(e,f,d){this.setOptions(d);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=e;this.url=f;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(b){if(this.options.decay){this.decay=(b.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=b.responseText}this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});function $(e){if(arguments.length>1){for(var f=0,g=[],h=arguments.length;f<h;f++){g.push($(arguments[f]))}return g}if(typeof e=="string"){e=document.getElementById(e)}return Element.extend(e)}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(i,h){var l=[];var j=document.evaluate(i,$(h)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var g=0,k=j.snapshotLength;g<k;g++){l.push(j.snapshotItem(g))}return l}}document.getElementsByClassName=function(o,j){if(Prototype.BrowserFeatures.XPath){var l=".//*[contains(concat(' ', @class, ' '), ' "+o+" ')]";return document._getElementsByXPath(l,j)}else{var p=($(j)||document.body).getElementsByTagName("*");var m=[],k;for(var i=0,n=p.length;i<n;i++){k=p[i];if(Element.hasClassName(k,o)){m.push(Element.extend(k))}}return m}};if(!window.Element){var Element=new Object()}Element.extend=function(j){if(!j||_nativeExtensions||j.nodeType==3){return j}if(!j._extended&&j.tagName&&j!=window){var f=Object.clone(Element.Methods),g=Element.extend.cache;if(j.tagName=="FORM"){Object.extend(f,Form.Methods)}if(["INPUT","TEXTAREA","SELECT"].include(j.tagName)){Object.extend(f,Form.Element.Methods)}Object.extend(f,Element.Methods.Simulated);for(var h in f){var i=f[h];if(typeof i=="function"&&!(h in j)){j[h]=g.findOrStore(i)}}}j._extended=true;return j};Element.extend.cache={findOrStore:function(b){return this[b]=this[b]||function(){return b.apply(null,[this].concat($A(arguments)))}}};Element.Methods={visible:function(b){return $(b).style.display!="none"},toggle:function(b){b=$(b);Element[Element.visible(b)?"hide":"show"](b);return b},hide:function(b){$(b).style.display="none";return b},show:function(b){$(b).style.display="";return b},remove:function(b){b=$(b);b.parentNode.removeChild(b);return b},update:function(c,d){d=typeof d=="undefined"?"":d.toString();$(c).innerHTML=d.stripScripts();setTimeout(function(){d.evalScripts()},10);return c},replace:function(f,d){f=$(f);d=typeof d=="undefined"?"":d.toString();if(f.outerHTML){f.outerHTML=d.stripScripts()}else{var e=f.ownerDocument.createRange();e.selectNodeContents(f);f.parentNode.replaceChild(e.createContextualFragment(d.stripScripts()),f)}setTimeout(function(){d.evalScripts()},10);return f},inspect:function(c){c=$(c);var d="<"+c.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(a){var b=a.first(),h=a.last();var g=(c[b]||"").toString();if(g){d+=" "+h+"="+g.inspect(true)}});return d+">"},recursivelyCollect:function(e,f){e=$(e);var d=[];while(e=e[f]){if(e.nodeType==1){d.push(Element.extend(e))}}return d},ancestors:function(b){return $(b).recursivelyCollect("parentNode")},descendants:function(b){return $A($(b).getElementsByTagName("*"))},immediateDescendants:function(b){if(!(b=$(b).firstChild)){return[]}while(b&&b.nodeType!=1){b=b.nextSibling}if(b){return[b].concat($(b).nextSiblings())}return[]},previousSiblings:function(b){return $(b).recursivelyCollect("previousSibling")},nextSiblings:function(b){return $(b).recursivelyCollect("nextSibling")},siblings:function(b){b=$(b);return b.previousSiblings().reverse().concat(b.nextSiblings())},match:function(c,d){if(typeof d=="string"){d=new Selector(d)}return d.match($(c))},up:function(d,f,e){return Selector.findElement($(d).ancestors(),f,e)},down:function(d,f,e){return Selector.findElement($(d).descendants(),f,e)},previous:function(d,f,e){return Selector.findElement($(d).previousSiblings(),f,e)},next:function(d,f,e){return Selector.findElement($(d).nextSiblings(),f,e)},getElementsBySelector:function(){var d=$A(arguments),c=$(d.shift());return Selector.findChildElements(c,d)},getElementsByClassName:function(d,c){return document.getElementsByClassName(c,d)},readAttribute:function(h,f){h=$(h);if(document.all&&!window.opera){var e=Element._attributeTranslations;if(e.values[f]){return e.values[f](h,f)}if(e.names[f]){f=e.names[f]}var g=h.attributes[f];if(g){return g.nodeValue}}return h.getAttribute(f)},getHeight:function(b){return $(b).getDimensions().height},getWidth:function(b){return $(b).getDimensions().width},classNames:function(b){return new Element.ClassNames(b)},hasClassName:function(e,d){if(!(e=$(e))){return}var f=e.className;if(f.length==0){return false}if(f==d||f.match(new RegExp("(^|\\s)"+d+"(\\s|$)"))){return true}return false},addClassName:function(d,c){if(!(d=$(d))){return}Element.classNames(d).add(c);return d},removeClassName:function(d,c){if(!(d=$(d))){return}Element.classNames(d).remove(c);return d},toggleClassName:function(d,c){if(!(d=$(d))){return}Element.classNames(d)[d.hasClassName(c)?"remove":"add"](c);return d},observe:function(){Event.observe.apply(Event,arguments);return $A(arguments).first()},stopObserving:function(){Event.stopObserving.apply(Event,arguments);return $A(arguments).first()},cleanWhitespace:function(d){d=$(d);var f=d.firstChild;while(f){var e=f.nextSibling;if(f.nodeType==3&&!/\S/.test(f.nodeValue)){d.removeChild(f)}f=e}return d},empty:function(b){return $(b).innerHTML.match(/^\s*$/)},descendantOf:function(c,d){c=$(c),d=$(d);while(c=c.parentNode){if(c==d){return true}}return false},scrollTo:function(d){d=$(d);var c=Position.cumulativeOffset(d);window.scrollTo(c[0],c[1]);return d},getStyle:function(e,h){e=$(e);if(["float","cssFloat"].include(h)){h=(typeof e.style.styleFloat!="undefined"?"styleFloat":"cssFloat")}h=h.camelize();var g=e.style[h];if(!g){if(document.defaultView&&document.defaultView.getComputedStyle){var f=document.defaultView.getComputedStyle(e,null);g=f?f[h]:null}else{if(e.currentStyle){g=e.currentStyle[h]}}}if((g=="auto")&&["width","height"].include(h)&&(e.getStyle("display")!="none")){g=e["offset"+h.capitalize()]+"px"}if(window.opera&&["left","top","right","bottom"].include(h)){if(Element.getStyle(e,"position")=="static"){g="auto"}}if(h=="opacity"){if(g){return parseFloat(g)}if(g=(e.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){if(g[1]){return parseFloat(g[1])/100}}return 1}return g=="auto"?null:g},setStyle:function(e,h){e=$(e);for(var f in h){var g=h[f];if(f=="opacity"){if(g==1){g=(/Gecko/.test(navigator.userAgent)&&!/Konqueror|Safari|KHTML/.test(navigator.userAgent))?0.999999:1;if(/MSIE/.test(navigator.userAgent)&&!window.opera){e.style.filter=e.getStyle("filter").replace(/alpha\([^\)]*\)/gi,"")}}else{if(g===""){if(/MSIE/.test(navigator.userAgent)&&!window.opera){e.style.filter=e.getStyle("filter").replace(/alpha\([^\)]*\)/gi,"")}}else{if(g<0.00001){g=0}if(/MSIE/.test(navigator.userAgent)&&!window.opera){e.style.filter=e.getStyle("filter").replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+g*100+")"}}}}else{if(["float","cssFloat"].include(f)){f=(typeof e.style.styleFloat!="undefined")?"styleFloat":"cssFloat"}}e.style[f.camelize()]=g}return e},getDimensions:function(p){p=$(p);var l=$(p).getStyle("display");if(l!="none"&&l!=null){return{width:p.offsetWidth,height:p.offsetHeight}}var i=p.style;var m=i.visibility;var o=i.position;var j=i.display;i.visibility="hidden";i.position="absolute";i.display="block";var k=p.clientWidth;var n=p.clientHeight;i.display=j;i.position=o;i.visibility=m;return{width:k,height:n}},makePositioned:function(d){d=$(d);var c=Element.getStyle(d,"position");if(c=="static"||!c){d._madePositioned=true;d.style.position="relative";if(window.opera){d.style.top=0;d.style.left=0}}return d},undoPositioned:function(b){b=$(b);if(b._madePositioned){b._madePositioned=undefined;b.style.position=b.style.top=b.style.left=b.style.bottom=b.style.right=""}return b},makeClipping:function(b){b=$(b);if(b._overflow){return b}b._overflow=b.style.overflow||"auto";if((Element.getStyle(b,"overflow")||"visible")!="hidden"){b.style.overflow="hidden"}return b},undoClipping:function(b){b=$(b);if(!b._overflow){return b}b.style.overflow=b._overflow=="auto"?"":b._overflow;b._overflow=null;return b}};Object.extend(Element.Methods,{childOf:Element.Methods.descendantOf});Element._attributeTranslations={};Element._attributeTranslations.names={colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",datetime:"dateTime",accesskey:"accessKey",tabindex:"tabIndex",enctype:"encType",maxlength:"maxLength",readonly:"readOnly",longdesc:"longDesc"};Element._attributeTranslations.values={_getAttr:function(d,c){return d.getAttribute(c,2)},_flag:function(d,c){return $(d).hasAttribute(c)?c:null},style:function(b){return b.style.cssText.toLowerCase()},title:function(d){var c=d.getAttributeNode("title");return c.specified?c.nodeValue:null}};Object.extend(Element._attributeTranslations.values,{href:Element._attributeTranslations.values._getAttr,src:Element._attributeTranslations.values._getAttr,disabled:Element._attributeTranslations.values._flag,checked:Element._attributeTranslations.values._flag,readonly:Element._attributeTranslations.values._flag,multiple:Element._attributeTranslations.values._flag});Element.Methods.Simulated={hasAttribute:function(d,f){var e=Element._attributeTranslations;f=e.names[f]||f;return $(d).getAttributeNode(f).specified}};if(document.all&&!window.opera){Element.Methods.update=function(h,e){h=$(h);e=typeof e=="undefined"?"":e.toString();var f=h.tagName.toUpperCase();if(["THEAD","TBODY","TR","TD"].include(f)){var g=document.createElement("div");switch(f){case"THEAD":case"TBODY":g.innerHTML="<table><tbody>"+e.stripScripts()+"</tbody></table>";depth=2;break;case"TR":g.innerHTML="<table><tbody><tr>"+e.stripScripts()+"</tr></tbody></table>";depth=3;break;case"TD":g.innerHTML="<table><tbody><tr><td>"+e.stripScripts()+"</td></tr></tbody></table>";depth=4}$A(h.childNodes).each(function(a){h.removeChild(a)});depth.times(function(){g=g.firstChild});$A(g.childNodes).each(function(a){h.appendChild(a)})}else{h.innerHTML=e.stripScripts()}setTimeout(function(){e.evalScripts()},10);return h}}Object.extend(Element,Element.Methods);var _nativeExtensions=false;if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){["","Form","Input","TextArea","Select"].each(function(d){var f="HTML"+d+"Element";if(window[f]){return}var e=window[f]={};e.prototype=document.createElement(d?d.toLowerCase():"div").__proto__})}Element.addMethods=function(d){Object.extend(Element.Methods,d||{});function c(i,k,l){l=l||false;var j=Element.extend.cache;for(var a in i){var b=i[a];if(!l||!(a in k)){k[a]=j.findOrStore(b)}}}if(typeof HTMLElement!="undefined"){c(Element.Methods,HTMLElement.prototype);c(Element.Methods.Simulated,HTMLElement.prototype,true);c(Form.Methods,HTMLFormElement.prototype);[HTMLInputElement,HTMLTextAreaElement,HTMLSelectElement].each(function(a){c(Form.Element.Methods,a.prototype)});_nativeExtensions=true}};var Toggle=new Object();Toggle.display=Element.toggle;Abstract.Insertion=function(b){this.adjacency=b};Abstract.Insertion.prototype={initialize:function(e,h){this.element=$(e);this.content=h.stripScripts();if(this.adjacency&&this.element.insertAdjacentHTML){try{this.element.insertAdjacentHTML(this.adjacency,this.content)}catch(g){var f=this.element.tagName.toUpperCase();if(["TBODY","TR"].include(f)){this.insertContent(this.contentFromAnonymousTable())}else{throw g}}}else{this.range=this.element.ownerDocument.createRange();if(this.initializeRange){this.initializeRange()}this.insertContent([this.range.createContextualFragment(this.content)])}setTimeout(function(){h.evalScripts()},10)},contentFromAnonymousTable:function(){var b=document.createElement("div");b.innerHTML="<table><tbody>"+this.content+"</tbody></table>";return $A(b.childNodes[0].childNodes[0].childNodes)}};var Insertion=new Object();Insertion.Before=Class.create();Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){this.range.setStartBefore(this.element)},insertContent:function(b){b.each((function(a){this.element.parentNode.insertBefore(a,this.element)}).bind(this))}});Insertion.Top=Class.create();Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(true)},insertContent:function(b){b.reverse(false).each((function(a){this.element.insertBefore(a,this.element.firstChild)}).bind(this))}});Insertion.Bottom=Class.create();Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(this.element)},insertContent:function(b){b.each((function(a){this.element.appendChild(a)}).bind(this))}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){this.range.setStartAfter(this.element)},insertContent:function(b){b.each((function(a){this.element.parentNode.insertBefore(a,this.element.nextSibling)}).bind(this))}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(b){this.element=$(b)},_each:function(b){this.element.className.split(/\s+/).select(function(a){return a.length>0})._each(b)},set:function(b){this.element.className=b},add:function(b){if(this.include(b)){return}this.set($A(this).concat(b).join(" "))},remove:function(b){if(!this.include(b)){return}this.set($A(this).without(b).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);var Selector=Class.create();Selector.prototype={initialize:function(b){this.params={classNames:[]};this.expression=b.toString().strip();this.parseExpression();this.compileMatcher()},parseExpression:function(){function j(a){throw"Parse error in selector: "+a}if(this.expression==""){j("empty expression")}var k=this.params,l=this.expression,h,i,m,n;while(h=l.match(/^(.*)\[([a-z0-9_:-]+?)(?:([~\|!]?=)(?:"([^"]*)"|([^\]\s]*)))?\]$/i)){k.attributes=k.attributes||[];k.attributes.push({name:h[2],operator:h[3],value:h[4]||h[5]||""});l=h[1]}if(l=="*"){return this.params.wildcard=true}while(h=l.match(/^([^a-z0-9_-])?([a-z0-9_-]+)(.*)/i)){i=h[1],m=h[2],n=h[3];switch(i){case"#":k.id=m;break;case".":k.classNames.push(m);break;case"":case undefined:k.tagName=m.toUpperCase();break;default:j(l.inspect())}l=n}if(l.length>0){j(l.inspect())}},buildMatchExpression:function(){var h=this.params,i=[],j;if(h.wildcard){i.push("true")}if(j=h.id){i.push('element.readAttribute("id") == '+j.inspect())}if(j=h.tagName){i.push("element.tagName.toUpperCase() == "+j.inspect())}if((j=h.classNames).length>0){for(var g=0,f=j.length;g<f;g++){i.push("element.hasClassName("+j[g].inspect()+")")}}if(j=h.attributes){j.each(function(b){var a="element.readAttribute("+b.name.inspect()+")";var c=function(d){return a+" && "+a+".split("+d.inspect()+")"};switch(b.operator){case"=":i.push(a+" == "+b.value.inspect());break;case"~=":i.push(c(" ")+".include("+b.value.inspect()+")");break;case"|=":i.push(c("-")+".first().toUpperCase() == "+b.value.toUpperCase().inspect());break;case"!=":i.push(a+" != "+b.value.inspect());break;case"":case undefined:i.push("element.hasAttribute("+b.name.inspect()+")");break;default:throw"Unknown operator "+b.operator+" in selector"}})}return i.join(" && ")},compileMatcher:function(){this.match=new Function("element","if (!element.tagName) return false;       element = $(element);       return "+this.buildMatchExpression())},findElements:function(i){var j;if(j=$(this.params.id)){if(this.match(j)){if(!i||Element.childOf(j,i)){return[j]}}}i=(i||document).getElementsByTagName(this.params.tagName||"*");var f=[];for(var g=0,h=i.length;g<h;g++){if(this.match(j=i[g])){f.push(Element.extend(j))}}return f},toString:function(){return this.expression}};Object.extend(Selector,{matchElements:function(d,f){var e=new Selector(f);return d.select(e.match.bind(e)).map(Element.extend)},findElement:function(d,f,e){if(typeof f=="number"){e=f,f=false}return Selector.matchElements(d,f||"*")[e||0]},findChildElements:function(d,c){return c.map(function(a){return a.match(/[^\s"]+(?:"[^"]*"[^\s"]+)*/g).inject([null],function(g,b){var h=new Selector(b);return g.inject([],function(e,f){return e.concat(h.findElements(f||d))})})}).flatten()}});function $$(){return Selector.findChildElements(document,$A(arguments))}var Form={reset:function(b){$(b).reset();return b},serializeElements:function(f,e){var d=f.inject({},function(h,b){if(!b.disabled&&b.name){var c=b.name,a=$(b).getValue();if(a!=undefined){if(h[c]){if(h[c].constructor!=Array){h[c]=[h[c]]}h[c].push(a)}else{h[c]=a}}}return h});return e?d:Hash.toQueryString(d)}};Form.Methods={serialize:function(c,d){return Form.serializeElements(Form.getElements(c),d)},getElements:function(b){return $A($(b).getElementsByTagName("*")).inject([],function(a,d){if(Form.Element.Serializers[d.tagName.toLowerCase()]){a.push(Element.extend(d))}return a})},getInputs:function(l,p,o){l=$(l);var j=l.getElementsByTagName("input");if(!p&&!o){return $A(j).map(Element.extend)}for(var n=0,k=[],m=j.length;n<m;n++){var i=j[n];if((p&&i.type!=p)||(o&&i.name!=o)){continue}k.push(Element.extend(i))}return k},disable:function(b){b=$(b);b.getElements().each(function(a){a.blur();a.disabled="true"});return b},enable:function(b){b=$(b);b.getElements().each(function(a){a.disabled=""});return b},findFirstElement:function(b){return $(b).getElements().find(function(a){return a.type!="hidden"&&!a.disabled&&["input","select","textarea"].include(a.tagName.toLowerCase())})},focusFirstElement:function(b){b=$(b);b.findFirstElement().activate();return b}};Object.extend(Form,Form.Methods);Form.Element={focus:function(b){$(b).focus();return b},select:function(b){$(b).select();return b}};Form.Element.Methods={serialize:function(e){e=$(e);if(!e.disabled&&e.name){var d=e.getValue();if(d!=undefined){var f={};f[e.name]=d;return Hash.toQueryString(f)}}return""},getValue:function(d){d=$(d);var c=d.tagName.toLowerCase();return Form.Element.Serializers[c](d)},clear:function(b){$(b).value="";return b},present:function(b){return $(b).value!=""},activate:function(b){b=$(b);b.focus();if(b.select&&(b.tagName.toLowerCase()!="input"||!["button","reset","submit"].include(b.type))){b.select()}return b},disable:function(b){b=$(b);b.disabled=true;return b},enable:function(b){b=$(b);b.blur();b.disabled=false;return b}};Object.extend(Form.Element,Form.Element.Methods);var Field=Form.Element;var $F=Form.Element.getValue;Form.Element.Serializers={input:function(b){switch(b.type.toLowerCase()){case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(b);default:return Form.Element.Serializers.textarea(b)}},inputSelector:function(b){return b.checked?b.value:null},textarea:function(b){return b.value},select:function(b){return this[b.type=="select-one"?"selectOne":"selectMany"](b)},selectOne:function(c){var d=c.selectedIndex;return d>=0?this.optionValue(c.options[d]):null},selectMany:function(i){var g,h=i.length;if(!h){return null}for(var j=0,g=[];j<h;j++){var f=i.options[j];if(f.selected){g.push(this.optionValue(f))}}return g},optionValue:function(b){return Element.extend(b).hasAttribute("value")?b.value:b.text}};Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={initialize:function(e,d,f){this.frequency=d;this.element=$(e);this.callback=f;this.lastValue=this.getValue();this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},onTimerEvent:function(){var d=this.getValue();var c=("string"==typeof this.lastValue&&"string"==typeof d?this.lastValue!=d:String(this.lastValue)!=String(d));if(c){this.callback(this.element,d);this.lastValue=d}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.serialize(this.element)}});Abstract.EventObserver=function(){};Abstract.EventObserver.prototype={initialize:function(d,c){this.element=$(d);this.callback=c;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()}else{this.registerCallback(this.element)}},onElementEvent:function(){var b=this.getValue();if(this.lastValue!=b){this.callback(this.element,b);this.lastValue=b}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback.bind(this))},registerCallback:function(b){if(b.type){switch(b.type.toLowerCase()){case"checkbox":case"radio":Event.observe(b,"click",this.onElementEvent.bind(this));break;default:Event.observe(b,"change",this.onElementEvent.bind(this));break}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.serialize(this.element)}});if(!window.Event){var Event=new Object()}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,element:function(b){return b.target||b.srcElement},isLeftClick:function(b){return(((b.which)&&(b.which==1))||((b.button)&&(b.button==1)))},pointerX:function(b){return b.pageX||(b.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))},pointerY:function(b){return b.pageY||(b.clientY+(document.documentElement.scrollTop||document.body.scrollTop))},stop:function(b){if(b.preventDefault){b.preventDefault();b.stopPropagation()}else{b.returnValue=false;b.cancelBubble=true}},findElement:function(f,d){var e=Event.element(f);while(e.parentNode&&(!e.tagName||(e.tagName.toUpperCase()!=d.toUpperCase()))){e=e.parentNode}return e},observers:false,_observeAndCache:function(g,h,e,f){if(!this.observers){this.observers=[]}if(g.addEventListener){this.observers.push([g,h,e,f]);g.addEventListener(h,e,f)}else{if(g.attachEvent){this.observers.push([g,h,e,f]);g.attachEvent("on"+h,e)}}},unloadCache:function(){if(!Event.observers){return}for(var d=0,c=Event.observers.length;d<c;d++){Event.stopObserving.apply(this,Event.observers[d]);Event.observers[d][0]=null}Event.observers=false},observe:function(g,h,e,f){g=$(g);f=f||false;if(h=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||g.attachEvent)){h="keydown"}Event._observeAndCache(g,h,e,f)},stopObserving:function(i,j,e,g){i=$(i);g=g||false;if(j=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||i.detachEvent)){j="keydown"}if(i.removeEventListener){i.removeEventListener(j,e,g)}else{if(i.detachEvent){try{i.detachEvent("on"+j,e)}catch(h){}}}}});if(navigator.appVersion.match(/\bMSIE\b/)){Event.observe(window,"unload",Event.unloadCache,false)}var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},realOffset:function(d){var e=0,f=0;do{e+=d.scrollTop||0;f+=d.scrollLeft||0;d=d.parentNode}while(d);return[f,e]},cumulativeOffset:function(d){var e=0,f=0;do{e+=d.offsetTop||0;f+=d.offsetLeft||0;d=d.offsetParent}while(d);return[f,e]},positionedOffset:function(e){var f=0,g=0;do{f+=e.offsetTop||0;g+=e.offsetLeft||0;e=e.offsetParent;if(e){if(e.tagName=="BODY"){break}var h=Element.getStyle(e,"position");if(h=="relative"||h=="absolute"){break}}}while(e);return[g,f]},offsetParent:function(b){if(b.offsetParent){return b.offsetParent}if(b==document.body){return b}while((b=b.parentNode)&&b!=document.body){if(Element.getStyle(b,"position")!="static"){return b}}return document.body},within:function(d,e,f){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(d,e,f)}this.xcomp=e;this.ycomp=f;this.offset=this.cumulativeOffset(d);return(f>=this.offset[1]&&f<this.offset[1]+d.offsetHeight&&e>=this.offset[0]&&e<this.offset[0]+d.offsetWidth)},withinIncludingScrolloffsets:function(e,f,g){var h=this.realOffset(e);this.xcomp=f+h[0]-this.deltaX;this.ycomp=g+h[1]-this.deltaY;this.offset=this.cumulativeOffset(e);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+e.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+e.offsetWidth)},overlap:function(c,d){if(!c){return 0}if(c=="vertical"){return((this.offset[1]+d.offsetHeight)-this.ycomp)/d.offsetHeight}if(c=="horizontal"){return((this.offset[0]+d.offsetWidth)-this.xcomp)/d.offsetWidth}},page:function(g){var f=0,h=0;var e=g;do{f+=e.offsetTop||0;h+=e.offsetLeft||0;if(e.offsetParent==document.body){if(Element.getStyle(e,"position")=="absolute"){break}}}while(e=e.offsetParent);e=g;do{if(!window.opera||e.tagName=="BODY"){f-=e.scrollTop||0;h-=e.scrollLeft||0}}while(e=e.parentNode);return[h,f]},clone:function(l,j){var h=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});l=$(l);var k=Position.page(l);j=$(j);var i=[0,0];var g=null;if(Element.getStyle(j,"position")=="absolute"){g=Position.offsetParent(j);i=Position.page(g)}if(g==document.body){i[0]-=document.body.offsetLeft;i[1]-=document.body.offsetTop}if(h.setLeft){j.style.left=(k[0]-i[0]+h.offsetLeft)+"px"}if(h.setTop){j.style.top=(k[1]-i[1]+h.offsetTop)+"px"}if(h.setWidth){j.style.width=l.offsetWidth+"px"}if(h.setHeight){j.style.height=l.offsetHeight+"px"}},absolutize:function(g){g=$(g);if(g.style.position=="absolute"){return}Position.prepare();var k=Position.positionedOffset(g);var i=k[1];var j=k[0];var l=g.clientWidth;var h=g.clientHeight;g._originalLeft=j-parseFloat(g.style.left||0);g._originalTop=i-parseFloat(g.style.top||0);g._originalWidth=g.style.width;g._originalHeight=g.style.height;g.style.position="absolute";g.style.top=i+"px";g.style.left=j+"px";g.style.width=l+"px";g.style.height=h+"px"},relativize:function(e){e=$(e);if(e.style.position=="relative"){return}Position.prepare();e.style.position="relative";var f=parseFloat(e.style.top||0)-(e._originalTop||0);var d=parseFloat(e.style.left||0)-(e._originalLeft||0);e.style.top=f+"px";e.style.left=d+"px";e.style.height=e._originalHeight;e.style.width=e._originalWidth}};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){Position.cumulativeOffset=function(d){var e=0,f=0;do{e+=d.offsetTop||0;f+=d.offsetLeft||0;if(d.offsetParent==document.body){if(Element.getStyle(d,"position")=="absolute"){break}}d=d.offsetParent}while(d);return[f,e]}}Element.addMethods();
