/*  Prototype JavaScript framework, version 1.4.0 *  (c) 2005 Sam Stephenson <sam@conio.net> * *  THIS FILE IS AUTOMATICALLY GENERATED. When sending patches, please diff *  against the source tree, available from the Prototype darcs repository. * *  Prototype is freely distributable under the terms of an MIT-style license. * *  For details, see the Prototype web site: http://prototype.conio.net/ */*--------------------------------------------------------------------------*//*Compressed version.... */var Prototype={Version:"1.4.0",ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:</script>)",emptyFunction:function(){},K:function(x){return x;}};var Class={create:function(){return function(){this.initialize.apply(this,arguments);};}};var Abstract=new Object();Object.extend=function(_2,_3){for(property in _3){_2[property]=_3[property];}return _2;};Object.inspect=function(_4){try{if(_4==undefined){return "undefined";}if(_4==null){return "null";}return _4.inspect?_4.inspect():_4.toString();}catch(e){if(e instanceof RangeError){return "...";}throw e;}};Function.prototype.bind=function(){var _5=this,args=$A(arguments),object=args.shift();return function(){return _5.apply(object,args.concat($A(arguments)));};};Function.prototype.bindAsEventListener=function(_6){var _7=this;return function(_8){return _7.call(_6,_8||window.event);};};Object.extend(Number.prototype,{toColorPart:function(){var _9=this.toString(16);if(this<16){return "0"+_9;}return _9;},succ:function(){return this+1;},times:function(_a){$R(0,this,true).each(_a);return this;}});var Try={these:function(){var _b;for(var i=0;i<arguments.length;i++){var _d=arguments[i];try{_b=_d();break;}catch(e){}}return _b;}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(_e,_f){this.callback=_e;this.frequency=_f;this.currentlyExecuting=false;this.registerCallback();},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000);},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.callback();}finally{this.currentlyExecuting=false;}}}};function $(){var _10=new Array();for(var i=0;i<arguments.length;i++){var _12=arguments[i];if(typeof _12=="string"){_12=document.getElementById(_12);}if(arguments.length==1){return _12;}_10.push(_12);}return _10;}Object.extend(String.prototype,{stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"");},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"");},extractScripts:function(){var _13=new RegExp(Prototype.ScriptFragment,"img");var _14=new RegExp(Prototype.ScriptFragment,"im");return (this.match(_13)||[]).map(function(_15){return (_15.match(_14)||["",""])[1];});},evalScripts:function(){return this.extractScripts().map(eval);},escapeHTML:function(){var div=document.createElement("div");var _17=document.createTextNode(this);div.appendChild(_17);return div.innerHTML;},unescapeHTML:function(){var div=document.createElement("div");div.innerHTML=this.stripTags();return div.childNodes[0]?div.childNodes[0].nodeValue:"";},toQueryParams:function(){var _19=this.match(/^\??(.*)$/)[1].split("&");return _19.inject({},function(_1a,_1b){var _1c=_1b.split("=");_1a[_1c[0]]=_1c[1];return _1a;});},toArray:function(){return this.split("");},camelize:function(){var _1d=this.split("-");if(_1d.length==1){return _1d[0];}var _1e=this.indexOf("-")==0?_1d[0].charAt(0).toUpperCase()+_1d[0].substring(1):_1d[0];for(var i=1,len=_1d.length;i<len;i++){var s=_1d[i];_1e+=s.charAt(0).toUpperCase()+s.substring(1);}return _1e;},inspect:function(){return "'"+this.replace("\\","\\\\").replace("'","\\'")+"'";}});String.prototype.parseQuery=String.prototype.toQueryParams;var $break=new Object();var $continue=new Object();var Enumerable={each:function(_21){var _22=0;try{this._each(function(_23){try{_21(_23,_22++);}catch(e){if(e!=$continue){throw e;}}});}catch(e){if(e!=$break){throw e;}}},all:function(_24){var _25=true;this.each(function(_26,_27){_25=_25&&!!(_24||Prototype.K)(_26,_27);if(!_25){throw $break;}});return _25;},any:function(_28){var _29=true;this.each(function(_2a,_2b){if(_29=!!(_28||Prototype.K)(_2a,_2b)){throw $break;}});return _29;},collect:function(_2c){var _2d=[];this.each(function(_2e,_2f){_2d.push(_2c(_2e,_2f));});return _2d;},detect:function(_30){var _31;this.each(function(_32,_33){if(_30(_32,_33)){_31=_32;throw $break;}});return _31;},findAll:function(_34){var _35=[];this.each(function(_36,_37){if(_34(_36,_37)){_35.push(_36);}});return _35;},grep:function(_38,_39){var _3a=[];this.each(function(_3b,_3c){var _3d=_3b.toString();if(_3d.match(_38)){_3a.push((_39||Prototype.K)(_3b,_3c));}});return _3a;},include:function(_3e){var _3f=false;this.each(function(_40){if(_40==_3e){_3f=true;throw $break;}});return _3f;},inject:function(_41,_42){this.each(function(_43,_44){_41=_42(_41,_43,_44);});return _41;},invoke:function(_45){var _46=$A(arguments).slice(1);return this.collect(function(_47){return _47[_45].apply(_47,_46);});},max:function(_48){var _49;this.each(function(_4a,_4b){_4a=(_48||Prototype.K)(_4a,_4b);if(_4a>=(_49||_4a)){_49=_4a;}});return _49;},min:function(_4c){var _4d;this.each(function(_4e,_4f){_4e=(_4c||Prototype.K)(_4e,_4f);if(_4e<=(_4d||_4e)){_4d=_4e;}});return _4d;},partition:function(_50){var _51=[],falses=[];this.each(function(_52,_53){((_50||Prototype.K)(_52,_53)?_51:falses).push(_52);});return [_51,falses];},pluck:function(_54){var _55=[];this.each(function(_56,_57){_55.push(_56[_54]);});return _55;},reject:function(_58){var _59=[];this.each(function(_5a,_5b){if(!_58(_5a,_5b)){_59.push(_5a);}});return _59;},sortBy:function(_5c){return this.collect(function(_5d,_5e){return {value:_5d,criteria:_5c(_5d,_5e)};}).sort(function(_5f,_60){var a=_5f.criteria,b=_60.criteria;return a<b?-1:a>b?1:0;}).pluck("value");},toArray:function(){return this.collect(Prototype.K);},zip:function(){var _62=Prototype.K,args=$A(arguments);if(typeof args.last()=="function"){_62=args.pop();}var _63=[this].concat(args).map($A);return this.map(function(_64,_65){_62(_64=_63.pluck(_65));return _64;});},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});var $A=Array.from=function(_66){if(!_66){return [];}if(_66.toArray){return _66.toArray();}else{var _67=[];for(var i=0;i<_66.length;i++){_67.push(_66[i]);}return _67;}};Object.extend(Array.prototype,Enumerable);Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{_each:function(_69){for(var i=0;i<this.length;i++){_69(this[i]);}},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(_6b){return _6b!=undefined||_6b!=null;});},flatten:function(){return this.inject([],function(_6c,_6d){return _6c.concat(_6d.constructor==Array?_6d.flatten():[_6d]);});},without:function(){var _6e=$A(arguments);return this.select(function(_6f){return !_6e.include(_6f);});},indexOf:function(_70){for(var i=0;i<this.length;i++){if(this[i]==_70){return i;}}return -1;},reverse:function(_72){return (_72!==false?this:this.toArray())._reverse();},shift:function(){var _73=this[0];for(var i=0;i<this.length-1;i++){this[i]=this[i+1];}this.length--;return _73;},inspect:function(){return "["+this.map(Object.inspect).join(", ")+"]";}});var Hash={_each:function(_75){for(key in this){var _76=this[key];if(typeof _76=="function"){continue;}var _77=[key,_76];_77.key=key;_77.value=_76;_75(_77);}},keys:function(){return this.pluck("key");},values:function(){return this.pluck("value");},merge:function(_78){return $H(_78).inject($H(this),function(_79,_7a){_79[_7a.key]=_7a.value;return _79;});},toQueryString:function(){return this.map(function(_7b){return _7b.map(encodeURIComponent).join("=");}).join("&");},inspect:function(){return "#<Hash:{"+this.map(function(_7c){return _7c.map(Object.inspect).join(": ");}).join(", ")+"}>";}};function $H(_7d){var _7e=Object.extend({},_7d||{});Object.extend(_7e,Enumerable);Object.extend(_7e,Hash);return _7e;}ObjectRange=Class.create();Object.extend(ObjectRange.prototype,Enumerable);Object.extend(ObjectRange.prototype,{initialize:function(_7f,end,_81){this.start=_7f;this.end=end;this.exclusive=_81;},_each:function(_82){var _83=this.start;do{_82(_83);_83=_83.succ();}while(this.include(_83));},include:function(_84){if(_84<this.start){return false;}if(this.exclusive){return _84<this.end;}return _84<=this.end;}});var $R=function(_85,end,_87){return new ObjectRange(_85,end,_87);};if(!window.Element){var Element=new Object();}Object.extend(Element,{visible:function(_88){return $(_88).style.display!="none";},toggle:function(){for(var i=0;i<arguments.length;i++){var _8a=$(arguments[i]);Element[Element.visible(_8a)?"hide":"show"](_8a);}},hide:function(){for(var i=0;i<arguments.length;i++){var _8c=$(arguments[i]);_8c.style.display="none";}},show:function(){for(var i=0;i<arguments.length;i++){var _8e=$(arguments[i]);_8e.style.display="";}},remove:function(_8f){_8f=$(_8f);_8f.parentNode.removeChild(_8f);},update:function(_90,_91){$(_90).innerHTML=_91.stripScripts();setTimeout(function(){_91.evalScripts();},10);},getHeight:function(_92){_92=$(_92);return _92.offsetHeight;},classNames:function(_93){return new Element.ClassNames(_93);},hasClassName:function(_94,_95){if(!(_94=$(_94))){return;}return Element.classNames(_94).include(_95);},addClassName:function(_96,_97){if(!(_96=$(_96))){return;}return Element.classNames(_96).add(_97);},removeClassName:function(_98,_99){if(!(_98=$(_98))){return;}return Element.classNames(_98).remove(_99);},cleanWhitespace:function(_9a){_9a=$(_9a);for(var i=0;i<_9a.childNodes.length;i++){var _9c=_9a.childNodes[i];if(_9c.nodeType==3&&!/\S/.test(_9c.nodeValue)){Element.remove(_9c);}}},empty:function(_9d){return $(_9d).innerHTML.match(/^\s*$/);},scrollTo:function(_9e){_9e=$(_9e);var x=_9e.x?_9e.x:_9e.offsetLeft,y=_9e.y?_9e.y:_9e.offsetTop;window.scrollTo(x,y);},getStyle:function(_a0,_a1){_a0=$(_a0);var _a2=_a0.style[_a1.camelize()];if(!_a2){if(document.defaultView&&document.defaultView.getComputedStyle){var css=document.defaultView.getComputedStyle(_a0,null);_a2=css?css.getPropertyValue(_a1):null;}else{if(_a0.currentStyle){_a2=_a0.currentStyle[_a1.camelize()];}}}if(window.opera&&["left","top","right","bottom"].include(_a1)){if(Element.getStyle(_a0,"position")=="static"){_a2="auto";}}return _a2=="auto"?null:_a2;},setStyle:function(_a4,_a5){_a4=$(_a4);for(name in _a5){_a4.style[name.camelize()]=_a5[name];}},getDimensions:function(_a6){_a6=$(_a6);if(Element.getStyle(_a6,"display")!="none"){return {width:_a6.offsetWidth,height:_a6.offsetHeight};}var els=_a6.style;var _a8=els.visibility;var _a9=els.position;els.visibility="hidden";els.position="absolute";els.display="";var _aa=_a6.clientWidth;var _ab=_a6.clientHeight;els.display="none";els.position=_a9;els.visibility=_a8;return {width:_aa,height:_ab};},makePositioned:function(_ac){_ac=$(_ac);var pos=Element.getStyle(_ac,"position");if(pos=="static"||!pos){_ac._madePositioned=true;_ac.style.position="relative";if(window.opera){_ac.style.top=0;_ac.style.left=0;}}},undoPositioned:function(_ae){_ae=$(_ae);if(_ae._madePositioned){_ae._madePositioned=undefined;_ae.style.position=_ae.style.top=_ae.style.left=_ae.style.bottom=_ae.style.right="";}},makeClipping:function(_af){_af=$(_af);if(_af._overflow){return;}_af._overflow=_af.style.overflow;if((Element.getStyle(_af,"overflow")||"visible")!="hidden"){_af.style.overflow="hidden";}},undoClipping:function(_b0){_b0=$(_b0);if(_b0._overflow){return;}_b0.style.overflow=_b0._overflow;_b0._overflow=undefined;}});var Toggle=new Object();Toggle.display=Element.toggle;Abstract.Insertion=function(_b1){this.adjacency=_b1;};Abstract.Insertion.prototype={initialize:function(_b2,_b3){this.element=$(_b2);this.content=_b3.stripScripts();if(this.adjacency&&this.element.insertAdjacentHTML){try{this.element.insertAdjacentHTML(this.adjacency,this.content);}catch(e){if(this.element.tagName.toLowerCase()=="tbody"){this.insertContent(this.contentFromAnonymousTable());}else{throw e;}}}else{this.range=this.element.ownerDocument.createRange();if(this.initializeRange){this.initializeRange();}this.insertContent([this.range.createContextualFragment(this.content)]);}setTimeout(function(){_b3.evalScripts();},10);},contentFromAnonymousTable:function(){var div=document.createElement("div");div.innerHTML="<table><tbody>"+this.content+"</tbody></table>";return $A(div.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(_b5){_b5.each((function(_b6){this.element.parentNode.insertBefore(_b6,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(_b7){_b7.reverse(false).each((function(_b8){this.element.insertBefore(_b8,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(_b9){_b9.each((function(_ba){this.element.appendChild(_ba);}).bind(this));}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){this.range.setStartAfter(this.element);},insertContent:function(_bb){_bb.each((function(_bc){this.element.parentNode.insertBefore(_bc,this.element.nextSibling);}).bind(this));}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(_bd){this.element=$(_bd);},_each:function(_be){this.element.className.split(/\s+/).select(function(_bf){return _bf.length>0;})._each(_be);},set:function(_c0){this.element.className=_c0;},add:function(_c1){if(this.include(_c1)){return;}this.set(this.toArray().concat(_c1).join(" "));},remove:function(_c2){if(!this.include(_c2)){return;}this.set(this.select(function(_c3){return _c3!=_c2;}).join(" "));},toString:function(){return this.toArray().join(" ");}};Object.extend(Element.ClassNames.prototype,Enumerable);var Field={clear:function(){for(var i=0;i<arguments.length;i++){$(arguments[i]).value="";}},focus:function(_c5){$(_c5).focus();},present:function(){for(var i=0;i<arguments.length;i++){if($(arguments[i]).value==""){return false;}}return true;},select:function(_c7){$(_c7).select();},activate:function(_c8){_c8=$(_c8);_c8.focus();if(_c8.select){_c8.select();}}};var Form={serialize:function(_c9){var _ca=Form.getElements($(_c9));var _cb=new Array();for(var i=0;i<_ca.length;i++){var _cd=Form.Element.serialize(_ca[i]);if(_cd){_cb.push(_cd);}}return _cb.join("&");},getElements:function(_ce){_ce=$(_ce);var _cf=new Array();for(tagName in Form.Element.Serializers){var _d0=_ce.getElementsByTagName(tagName);for(var j=0;j<_d0.length;j++){_cf.push(_d0[j]);}}return _cf;},getInputs:function(_d2,_d3,_d4){_d2=$(_d2);var _d5=_d2.getElementsByTagName("input");if(!_d3&&!_d4){return _d5;}var _d6=new Array();for(var i=0;i<_d5.length;i++){var _d8=_d5[i];if((_d3&&_d8.type!=_d3)||(_d4&&_d8.name!=_d4)){continue;}_d6.push(_d8);}return _d6;},disable:function(_d9){var _da=Form.getElements(_d9);for(var i=0;i<_da.length;i++){var _dc=_da[i];_dc.blur();_dc.disabled="true";}},enable:function(_dd){var _de=Form.getElements(_dd);for(var i=0;i<_de.length;i++){var _e0=_de[i];_e0.disabled="";}},findFirstElement:function(_e1){return Form.getElements(_e1).find(function(_e2){return _e2.type!="hidden"&&!_e2.disabled&&["input","select","textarea"].include(_e2.tagName.toLowerCase());});},focusFirstElement:function(_e3){Field.activate(Form.findFirstElement(_e3));},reset:function(_e4){$(_e4).reset();}};Form.Element={serialize:function(_e5){_e5=$(_e5);var _e6=_e5.tagName.toLowerCase();var _e7=Form.Element.Serializers[_e6](_e5);if(_e7){var key=encodeURIComponent(_e7[0]);if(key.length==0){return;}if(_e7[1].constructor!=Array){_e7[1]=[_e7[1]];}return _e7[1].map(function(_e9){return key+"="+encodeURIComponent(_e9);}).join("&");}},getValue:function(_ea){_ea=$(_ea);var _eb=_ea.tagName.toLowerCase();var _ec=Form.Element.Serializers[_eb](_ea);if(_ec){return _ec[1];}}};Form.Element.Serializers={input:function(_ed){switch(_ed.type.toLowerCase()){case "submit":case "hidden":case "password":case "text":return Form.Element.Serializers.textarea(_ed);case "checkbox":case "radio":return Form.Element.Serializers.inputSelector(_ed);}return false;},inputSelector:function(_ee){if(_ee.checked){return [_ee.name,_ee.value];}},textarea:function(_ef){return [_ef.name,_ef.value];},select:function(_f0){return Form.Element.Serializers[_f0.type=="select-one"?"selectOne":"selectMany"](_f0);},selectOne:function(_f1){var _f2="",opt,index=_f1.selectedIndex;if(index>=0){opt=_f1.options[index];_f2=opt.value;if(!_f2&&!("value" in opt)){_f2=opt.text;}}return [_f1.name,_f2];},selectMany:function(_f3){var _f4=new Array();for(var i=0;i<_f3.length;i++){var opt=_f3.options[i];if(opt.selected){var _f7=opt.value;if(!_f7&&!("value" in opt)){_f7=opt.text;}_f4.push(_f7);}}return [_f3.name,_f4];}};var $F=Form.Element.getValue;Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={initialize:function(_f8,_f9,_fa){this.frequency=_f9;this.element=$(_f8);this.callback=_fa;this.lastValue=this.getValue();this.registerCallback();},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000);},onTimerEvent:function(){var _fb=this.getValue();if(this.lastValue!=_fb){this.callback(this.element,_fb);this.lastValue=_fb;}}};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(_fc,_fd){this.element=$(_fc);this.callback=_fd;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks();}else{this.registerCallback(this.element);}},onElementEvent:function(){var _fe=this.getValue();if(this.lastValue!=_fe){this.callback(this.element,_fe);this.lastValue=_fe;}},registerFormCallbacks:function(){var _ff=Form.getElements(this.element);for(var i=0;i<_ff.length;i++){this.registerCallback(_ff[i]);}},registerCallback:function(_101){if(_101.type){switch(_101.type.toLowerCase()){case "checkbox":case "radio":Event.observe(_101,"click",this.onElementEvent.bind(this));break;case "password":case "text":case "textarea":case "select-one":case "select-multiple":Event.observe(_101,"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,element:function(_102){return _102.target||_102.srcElement;},isLeftClick:function(_103){return (((_103.which)&&(_103.which==1))||((_103.button)&&(_103.button==1)));},pointerX:function(_104){return _104.pageX||(_104.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_105){return _105.pageY||(_105.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},stop:function(_106){if(_106.preventDefault){_106.preventDefault();_106.stopPropagation();}else{_106.returnValue=false;_106.cancelBubble=true;}},findElement:function(_107,_108){var _109=Event.element(_107);while(_109.parentNode&&(!_109.tagName||(_109.tagName.toUpperCase()!=_108.toUpperCase()))){_109=_109.parentNode;}return _109;},observers:false,_observeAndCache:function(_10a,name,_10c,_10d){if(!this.observers){this.observers=[];}if(_10a.addEventListener){this.observers.push([_10a,name,_10c,_10d]);_10a.addEventListener(name,_10c,_10d);}else{if(_10a.attachEvent){this.observers.push([_10a,name,_10c,_10d]);_10a.attachEvent("on"+name,_10c);}}},unloadCache:function(){if(!Event.observers){return;}for(var i=0;i<Event.observers.length;i++){Event.stopObserving.apply(this,Event.observers[i]);Event.observers[i][0]=null;}Event.observers=false;},observe:function(_10f,name,_111,_112){var _10f=$(_10f);_112=_112||false;if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_10f.attachEvent)){name="keydown";}this._observeAndCache(_10f,name,_111,_112);},stopObserving:function(_113,name,_115,_116){var _113=$(_113);_116=_116||false;if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_113.detachEvent)){name="keydown";}if(_113.removeEventListener){_113.removeEventListener(name,_115,_116);}else{if(_113.detachEvent){_113.detachEvent("on"+name,_115);}}}});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(_117){var _118=0,valueL=0;do{_118+=_117.scrollTop||0;valueL+=_117.scrollLeft||0;_117=_117.parentNode;}while(_117);return [valueL,_118];},cumulativeOffset:function(_119){var _11a=0,valueL=0;do{_11a+=_119.offsetTop||0;valueL+=_119.offsetLeft||0;_119=_119.offsetParent;}while(_119);return [valueL,_11a];},positionedOffset:function(_11b){var _11c=0,valueL=0;do{_11c+=_11b.offsetTop||0;valueL+=_11b.offsetLeft||0;_11b=_11b.offsetParent;if(_11b){p=Element.getStyle(_11b,"position");if(p=="relative"||p=="absolute"){break;}}}while(_11b);return [valueL,_11c];},offsetParent:function(_11d){if(_11d.offsetParent){return _11d.offsetParent;}if(_11d==document.body){return _11d;}while((_11d=_11d.parentNode)&&_11d!=document.body){if(Element.getStyle(_11d,"position")!="static"){return _11d;}}return document.body;},within:function(_11e,x,y){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(_11e,x,y);}this.xcomp=x;this.ycomp=y;this.offset=this.cumulativeOffset(_11e);return (y>=this.offset[1]&&y<this.offset[1]+_11e.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+_11e.offsetWidth);},withinIncludingScrolloffsets:function(_121,x,y){var _124=this.realOffset(_121);this.xcomp=x+_124[0]-this.deltaX;this.ycomp=y+_124[1]-this.deltaY;this.offset=this.cumulativeOffset(_121);return (this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+_121.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+_121.offsetWidth);},overlap:function(mode,_126){if(!mode){return 0;}if(mode=="vertical"){return ((this.offset[1]+_126.offsetHeight)-this.ycomp)/_126.offsetHeight;}if(mode=="horizontal"){return ((this.offset[0]+_126.offsetWidth)-this.xcomp)/_126.offsetWidth;}},clone:function(_127,_128){_127=$(_127);_128=$(_128);_128.style.position="absolute";var _129=this.cumulativeOffset(_127);_128.style.top=_129[1]+"px";_128.style.left=_129[0]+"px";_128.style.width=_127.offsetWidth+"px";_128.style.height=_127.offsetHeight+"px";},page:function(_12a){var _12b=0,valueL=0;var _12c=_12a;do{_12b+=_12c.offsetTop||0;valueL+=_12c.offsetLeft||0;if(_12c.offsetParent==document.body){if(Element.getStyle(_12c,"position")=="absolute"){break;}}}while(_12c=_12c.offsetParent);_12c=_12a;do{_12b-=_12c.scrollTop||0;valueL-=_12c.scrollLeft||0;}while(_12c=_12c.parentNode);return [valueL,_12b];},clone:function(_12d,_12e){var _12f=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});_12d=$(_12d);var p=Position.page(_12d);_12e=$(_12e);var _131=[0,0];var _132=null;if(Element.getStyle(_12e,"position")=="absolute"){_132=Position.offsetParent(_12e);_131=Position.page(_132);}if(_132==document.body){_131[0]-=document.body.offsetLeft;_131[1]-=document.body.offsetTop;}if(_12f.setLeft){_12e.style.left=(p[0]-_131[0]+_12f.offsetLeft)+"px";}if(_12f.setTop){_12e.style.top=(p[1]-_131[1]+_12f.offsetTop)+"px";}if(_12f.setWidth){_12e.style.width=_12d.offsetWidth+"px";}if(_12f.setHeight){_12e.style.height=_12d.offsetHeight+"px";}},absolutize:function(_133){_133=$(_133);if(_133.style.position=="absolute"){return;}Position.prepare();var _134=Position.positionedOffset(_133);var top=_134[1];var left=_134[0];var _137=_133.clientWidth;var _138=_133.clientHeight;_133._originalLeft=left-parseFloat(_133.style.left||0);_133._originalTop=top-parseFloat(_133.style.top||0);_133._originalWidth=_133.style.width;_133._originalHeight=_133.style.height;_133.style.position="absolute";_133.style.top=top+"px";_133.style.left=left+"px";_133.style.width=_137+"px";_133.style.height=_138+"px";},relativize:function(_139){_139=$(_139);if(_139.style.position=="relative"){return;}Position.prepare();_139.style.position="relative";var top=parseFloat(_139.style.top||0)-(_139._originalTop||0);var left=parseFloat(_139.style.left||0)-(_139._originalLeft||0);_139.style.top=top+"px";_139.style.left=left+"px";_139.style.height=_139._originalHeight;_139.style.width=_139._originalWidth;}};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){Position.cumulativeOffset=function(_13c){var _13d=0,valueL=0;do{_13d+=_13c.offsetTop||0;valueL+=_13c.offsetLeft||0;if(_13c.offsetParent==document.body){if(Element.getStyle(_13c,"position")=="absolute"){break;}}_13c=_13c.offsetParent;}while(_13c);return [valueL,_13d];};}
