diff --git a/config.ini b/config.ini index b15d0ae..1ff7843 100644 --- a/config.ini +++ b/config.ini @@ -10,20 +10,29 @@ file = "jq-132.js" tests = "jq" -[jQuery 1.4.1] - file = "jq-141.js" +[jQuery 1.4.4] + file = "jq-144.js" tests = "jq" -[Prototype 1.6.0.3] - file = "proto-1603.js" +[Prototype 1.6.1.0] + file = "proto-1610.js" + tests = "proto" + +[Prototype 1.7.0.0] + file = "proto-1700.js" tests = "proto" ; [MooTools 1.2.1] ; file = "moo-121.js" ; tests = "moo" ; -[MooTools 1.2.2] - file = "moo-122.js" + +;[MooTools 1.2.2] +; file = "moo-122.js" +; tests = "moo" + +[MooTools 1.3.0] + file = "moo-130.js" tests = "moo" [qooxdoo 0.8.2] diff --git a/frameworks/jq-144.js b/frameworks/jq-144.js new file mode 100644 index 0000000..2bd4cbb --- /dev/null +++ b/frameworks/jq-144.js @@ -0,0 +1,167 @@ +/*! + * jQuery JavaScript Library v1.4.4 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Thu Nov 11 19:04:53 2010 -0500 + */ +(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h= +h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;kd)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La, +"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this, +e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a, +"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+ +a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/, +C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j, +s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this, +j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length}, +toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j=== +-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false; +if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload", +b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&& +!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&& +l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H
a";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"), +k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false, +scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent= +false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom= +1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="
";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="
t
";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display= +"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h= +c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando); +else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one"; +if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true}, +attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&& +b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0}; +c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem, +arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid= +d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+ +c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType=== +8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k=== +"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+ +d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired= +B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type=== +"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]=== +0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}}); +(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3]; +break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr, +q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h= +l;g.sort(w);if(h)for(var i=1;i0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n, +m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled=== +true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"=== +g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return in[3]-0},nth:function(g,i,n){return n[3]- +0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()=== +i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]]; +if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m, +g);else if(typeof g.length==="number")for(var p=g.length;n";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g); +n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&& +function(){var g=k,i=t.createElement("div");i.innerHTML="

";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F|| +p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g= +t.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition? +function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n0)for(var h=d;h0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h= +h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context): +c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a, +2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a, +b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&& +e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/\s]+\/)>/g,P={option:[1, +""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null; +else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1>");try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append", +prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument|| +b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]===""&&!x?r.childNodes:[];for(o=k.length- +1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script")))); +d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i, +jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true, +zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b), +h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b); +if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f= +d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left; +e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/)<[^<]*)*<\/script>/gi, +ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b=== +"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("
").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&& +!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})}, +getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html", +script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data|| +!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache= +false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset; +A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type", +b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&& +c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d|| +c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]= +encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess", +[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"), +e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}}); +if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show", +3),a,b,d);else{d=0;for(var e=this.length;d=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b, +d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a* +Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)} +var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true; +this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide|| +this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a= +c.timers,b=0;b-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a, +e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&& +c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase(); +c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+ +b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window); \ No newline at end of file diff --git a/frameworks/moo-130.js b/frameworks/moo-130.js new file mode 100755 index 0000000..a37e26f --- /dev/null +++ b/frameworks/moo-130.js @@ -0,0 +1,211 @@ +/* +--- +MooTools: the javascript framework + +web build: + - http://mootools.net/core/7c56cfef9dddcf170a5d68e3fb61cfd7 + +packager build: + - packager build Core/Core Core/Array Core/String Core/Number Core/Function Core/Object Core/Event Core/Browser Core/Class Core/Class.Extras Core/Slick.Parser Core/Slick.Finder Core/Element Core/Element.Style Core/Element.Event Core/Element.Dimensions Core/Fx Core/Fx.CSS Core/Fx.Tween Core/Fx.Morph Core/Fx.Transitions Core/Request Core/Request.HTML Core/Request.JSON Core/Cookie Core/JSON Core/DOMReady Core/Swiff + +/* +--- + +name: Core + +description: The heart of MooTools. + +license: MIT-style license. + +copyright: Copyright (c) 2006-2010 [Valerio Proietti](http://mad4milk.net/). + +authors: The MooTools production team (http://mootools.net/developers/) + +inspiration: + - Class implementation inspired by [Base.js](http://dean.edwards.name/weblog/2006/03/base/) Copyright (c) 2006 Dean Edwards, [GNU Lesser General Public License](http://opensource.org/licenses/lgpl-license.php) + - Some functionality inspired by [Prototype.js](http://prototypejs.org) Copyright (c) 2005-2007 Sam Stephenson, [MIT License](http://opensource.org/licenses/mit-license.php) + +provides: [Core, MooTools, Type, typeOf, instanceOf, Native] + +... +*/ +(function(){this.MooTools={version:"1.3",build:"a3eed692dd85050d80168ec2c708efe901bb7db3"};var a=this.typeOf=function(l){if(l==null)return"null";if(l.$family)return l.$family();if(l.nodeName){if(l.nodeType==1)return"element";if(l.nodeType==3)return/\S/.test(l.nodeValue)?"textnode":"whitespace"}else if(typeof l.length=="number"){if(l.callee)return"arguments";if("item"in l)return"collection"}return typeof l},c=this.instanceOf=function(l,p){if(l==null)return false;for(var r=l.$constructor||l.constructor;r;){if(r=== +p)return true;r=r.parent}return l instanceof p},d=this.Function,e=true,g;for(g in{toString:1})e=null;if(e)e=["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];d.prototype.overloadSetter=function(l){var p=this;return function(r,s){if(r==null)return this;if(l||typeof r!="string"){for(var x in r)p.call(this,x,r[x]);if(e)for(var t=e.length;t--;){x=e[t];r.hasOwnProperty(x)&&p.call(this,x,r[x])}}else p.call(this,r,s);return this}};d.prototype.overloadGetter= +function(l){var p=this;return function(r){var s,x;if(l||typeof r!="string")s=r;else if(arguments.length>1)s=arguments;if(s){x={};for(var t=0;t-1:this.indexOf(a)>-1},trim:function(){return this.replace(/^\s+|\s+$/g,"")},clean:function(){return this.replace(/\s+/g," ").trim()},camelCase:function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/[A-Z]/g,function(a){return"-"+a.charAt(0).toLowerCase()})},capitalize:function(){return this.replace(/\b[a-z]/g, +function(a){return a.toUpperCase()})},escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},toInt:function(a){return parseInt(this,a||10)},toFloat:function(){return parseFloat(this)},hexToRgb:function(a){var c=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return c?c.slice(1).hexToRgb(a):null},rgbToHex:function(a){var c=this.match(/\d{1,3}/g);return c?c.rgbToHex(a):null},substitute:function(a,c){return this.replace(c||/\\?\{([^{}]+)\}/g,function(d,e){if(d.charAt(0)=="\\")return d.slice(1); +return a[e]!=null?a[e]:""})}});Number.implement({limit:function(a,c){return Math.min(c,Math.max(a,this))},round:function(a){a=Math.pow(10,a||0).toFixed(a<0?-a:0);return Math.round(this*a)/a},times:function(a,c){for(var d=0;d1?Array.slice(arguments,1):null;return function(){if(!d&&!arguments.length)return c.call(a);if(d&&arguments.length)return c.apply(a,d.concat(Array.from(arguments)));return c.apply(a,d||arguments)}},pass:function(a,c){var d=this;if(a!=null)a=Array.from(a);return function(){return d.apply(c,a||arguments)}},delay:function(a,c,d){return setTimeout(this.pass(d, +c),a)},periodical:function(a,c,d){return setInterval(this.pass(d,c),a)}});delete Function.prototype.bind; +Function.implement({create:function(a){var c=this;a=a||{};return function(d){var e=a.arguments;e=e!=null?Array.from(e):Array.slice(arguments,a.event?1:0);if(a.event)e=[d||window.event].extend(e);var g=function(){return c.apply(a.bind||null,e)};if(a.delay)return setTimeout(g,a.delay);if(a.periodical)return setInterval(g,a.periodical);if(a.attempt)return Function.attempt(g);return g()}},bind:function(a,c){var d=this;if(c!=null)c=Array.from(c);return function(){return d.apply(a,c||arguments)}},bindWithEvent:function(a, +c){var d=this;if(c!=null)c=Array.from(c);return function(e){return d.apply(a,c==null?arguments:[e].concat(c))}},run:function(a,c){return this.apply(c,Array.from(a))}});var $try=Function.attempt; +Object.extend({subset:function(a,c){for(var d={},e=0,g=c.length;e]*>([\s\S]*?)<\/script>/gi,function(v,y){m+=y+"\n";return""});if(j===true)b.exec(m);else typeOf(j)=="function"&&j(m,u);return u});b.extend({Document:this.Document,Window:this.Window,Element:this.Element,Event:this.Event});this.Window=this.$constructor=new Type("Window",function(){});this.$family=Function.from("window").hide(); +Window.mirror(function(j,m){c[j]=m});this.Document=a.$constructor=new Type("Document",function(){});a.$family=Function.from("document").hide();Document.mirror(function(j,m){a[j]=m});a.html=a.documentElement;a.head=a.getElementsByTagName("head")[0];if(a.execCommand)try{a.execCommand("BackgroundImageCache",false,true)}catch(f){}if(this.attachEvent&&!this.addEventListener){var k=function(){this.detachEvent("onunload",k);a.head=a.html=a.window=null};this.attachEvent("onunload",k)}var n=Array.from;try{n(a.html.childNodes)}catch(o){Array.from= +function(j){if(typeof j!="string"&&Type.isEnumerable(j)&&typeOf(j)!="array"){for(var m=j.length,u=Array(m);m--;)u[m]=j[m];return u}return n(j)};var q=Array.prototype,i=q.slice;["pop","push","reverse","shift","sort","splice","unshift","concat","join","slice"].each(function(j){var m=q[j];Array[j]=function(u){return m.apply(Array.from(u),i.call(arguments,1))}})}if(b.Platform.ios)b.Platform.ipod=true;b.Engine={};g=function(j,m){b.Engine.name=j;b.Engine[j+m]=true;b.Engine.version=m};if(b.ie){b.Engine.trident= +true;switch(b.version){case 6:g("trident",4);break;case 7:g("trident",5);break;case 8:g("trident",6)}}if(b.firefox){b.Engine.gecko=true;b.version>=3?g("gecko",19):g("gecko",18)}if(b.safari||b.chrome){b.Engine.webkit=true;switch(b.version){case 2:g("webkit",419);break;case 3:g("webkit",420);break;case 4:g("webkit",525)}}if(b.opera){b.Engine.presto=true;if(b.version>=9.6)g("presto",960);else b.version>=9.5?g("presto",950):g("presto",925)}if(b.name=="unknown")switch((e.match(/(?:webkit|khtml|gecko)/)|| +[])[0]){case "webkit":case "khtml":b.Engine.webkit=true;break;case "gecko":b.Engine.gecko=true}this.$exec=b.exec})(); +Event=new Type("Event",function(a,c){c||(c=window);var d=c.document;a=a||c.event;if(a.$extended)return a;this.$extended=true;for(var e=a.type,g=a.target||a.srcElement,h={},b={};g&&g.nodeType==3;)g=g.parentNode;if(e.indexOf("key")!=-1){var f=a.which||a.keyCode,k=Object.keyOf(Event.Keys,f);if(e=="keydown"){d=f-111;if(d>0&&d<13)k="f"+d}k||(k=String.fromCharCode(f).toLowerCase())}else if(e.test(/click|mouse|menu/i)){d=!d.compatMode||d.compatMode=="CSS1Compat"?d.html:d.body;h={x:a.pageX!=null?a.pageX: +a.clientX+d.scrollLeft,y:a.pageY!=null?a.pageY:a.clientY+d.scrollTop};b={x:a.pageX!=null?a.pageX-c.pageXOffset:a.clientX,y:a.pageY!=null?a.pageY-c.pageYOffset:a.clientY};if(e.test(/DOMMouseScroll|mousewheel/))var n=a.wheelDelta?a.wheelDelta/120:-(a.detail||0)/3;var o=a.which==3||a.button==2,q=null;if(e.test(/over|out/)){q=a.relatedTarget||a[(e=="mouseover"?"from":"to")+"Element"];d=function(){for(;q&&q.nodeType==3;)q=q.parentNode;return true};q=(Browser.firefox2?d.attempt():d())?q:null}}else if(e.test(/gesture|touch/i)){this.rotation= +a.rotation;this.scale=a.scale;this.targetTouches=a.targetTouches;this.changedTouches=a.changedTouches;if((d=this.touches=a.touches)&&d[0]){b=d[0];h={x:b.pageX,y:b.pageY};b={x:b.clientX,y:b.clientY}}}return Object.append(this,{event:a,type:e,page:h,client:b,rightClick:o,wheel:n,relatedTarget:document.id(q),target:document.id(g),code:f,key:k,shift:a.shiftKey,control:a.ctrlKey,alt:a.altKey,meta:a.metaKey})});Event.Keys={enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46}; +Event.Keys=new Hash(Event.Keys);Event.implement({stop:function(){return this.stopPropagation().preventDefault()},stopPropagation:function(){if(this.event.stopPropagation)this.event.stopPropagation();else this.event.cancelBubble=true;return this},preventDefault:function(){if(this.event.preventDefault)this.event.preventDefault();else this.event.returnValue=false;return this}}); +(function(){var a=this.Class=new Type("Class",function(h){if(instanceOf(h,Function))h={initialize:h};var b=function(){d(this);if(b.$prototyping)return this;this.$caller=null;var f=this.initialize?this.initialize.apply(this,arguments):this;this.$caller=this.caller=null;return f}.extend(this).implement(h);b.$constructor=a;b.prototype.$constructor=b;b.prototype.parent=c;return b}),c=function(){if(!this.$caller)throw Error('The method "parent" cannot be called.');var h=this.$caller.$name,b=this.$caller.$owner.parent; +b=b?b.prototype[h]:null;if(!b)throw Error('The method "'+h+'" has no parent.');return b.apply(this,arguments)},d=function(h){for(var b in h){var f=h[b];switch(typeOf(f)){case "object":var k=function(){};k.prototype=f;h[b]=d(new k);break;case "array":h[b]=f.clone()}}return h},e=function(h,b,f){if(f.$origin)f=f.$origin;var k=function(){if(f.$protected&&this.$caller==null)throw Error('The method "'+b+'" cannot be called.');var n=this.caller,o=this.$caller;this.caller=o;this.$caller=k;var q=f.apply(this, +arguments);this.$caller=o;this.caller=n;return q}.extend({$owner:h,$origin:f,$name:b});return k},g=function(h,b,f){if(a.Mutators.hasOwnProperty(h)){b=a.Mutators[h].call(this,b);if(b==null)return this}if(typeOf(b)=="function"){if(b.$hidden)return this;this.prototype[h]=f?b:e(this,h,b)}else Object.merge(this.prototype,h,b);return this};a.implement("implement",g.overloadSetter());a.Mutators={Extends:function(h){this.parent=h;h.$prototyping=true;var b=new h;delete h.$prototyping;this.prototype=b},Implements:function(h){Array.from(h).each(function(b){b= +new b;for(var f in b)g.call(this,f,b[f],true)},this)}}})(); +(function(){this.Chain=new Class({$chain:[],chain:function(){this.$chain.append(Array.flatten(arguments));return this},callChain:function(){return this.$chain.length?this.$chain.shift().apply(this,arguments):false},clearChain:function(){this.$chain.empty();return this}});var a=function(c){return c.replace(/^on([A-Z])/,function(d,e){return e.toLowerCase()})};this.Events=new Class({$events:{},addEvent:function(c,d,e){c=a(c);if(d==$empty)return this;this.$events[c]=(this.$events[c]||[]).include(d);if(e)d.internal= +true;return this},addEvents:function(c){for(var d in c)this.addEvent(d,c[d]);return this},fireEvent:function(c,d,e){c=a(c);c=this.$events[c];if(!c)return this;d=Array.from(d);c.each(function(g){e?g.delay(e,this,d):g.apply(this,d)},this);return this},removeEvent:function(c,d){c=a(c);var e=this.$events[c];if(e&&!d.internal){var g=e.indexOf(d);g!=-1&&delete e[g]}return this},removeEvents:function(c){var d;if(typeOf(c)=="object"){for(d in c)this.removeEvent(d,c[d]);return this}if(c)c=a(c);for(d in this.$events)if(!(c&& +c!=d))for(var e=this.$events[d],g=e.length;g--;)this.removeEvent(d,e[g]);return this}});this.Options=new Class({setOptions:function(){var c=this.options=Object.merge.apply(null,[{},this.options].append(arguments));if(!this.addEvent)return this;for(var d in c)if(!(typeOf(c[d])!="function"||!/^on[A-Z]/.test(d))){this.addEvent(d,c[d]);delete c[d]}return this}})})(); +(function(){function a(m,u,v,y,z,l,p,r,s,x,t,w,D,B,E){if(u||d===-1){c.expressions[++d]=[];e=-1;if(u)return""}if(v||y||e===-1){v=v||" ";m=c.expressions[d];if(g&&m[e])m[e].reverseCombinator=n(v);m[++e]={combinator:v,tag:"*"}}v=c.expressions[d][e];if(z)v.tag=z.replace(f,"");else if(l)v.id=l.replace(f,"");else if(p){p=p.replace(f,"");if(!v.classList)v.classList=[];if(!v.classes)v.classes=[];v.classList.push(p);v.classes.push({value:p,regexp:RegExp("(^|\\s)"+q(p)+"(\\s|$)")})}else if(w){E=(E=E||B)?E.replace(f, +""):null;if(!v.pseudos)v.pseudos=[];v.pseudos.push({key:w.replace(f,""),value:E})}else if(r){r=r.replace(f,"");t=(t||"").replace(f,"");var C,F;switch(s){case "^=":F=RegExp("^"+q(t));break;case "$=":F=RegExp(q(t)+"$");break;case "~=":F=RegExp("(^|\\s)"+q(t)+"(\\s|$)");break;case "|=":F=RegExp("^"+q(t)+"(-|$)");break;case "=":C=function(A){return t==A};break;case "*=":C=function(A){return A&&A.indexOf(t)>-1};break;case "!=":C=function(A){return t!=A};break;default:C=function(A){return!!A}}if(t==""&& +/^[*$^]=$/.test(s))C=function(){return false};C||(C=function(A){return A&&F.test(A)});if(!v.attributes)v.attributes=[];v.attributes.push({key:r,operator:s,value:t,test:C})}return""}var c,d,e,g,h={},b={},f=/\\/g,k=function(m,u){if(m==null)return null;if(m.Slick===true)return m;m=(""+m).replace(/^\s+|\s+$/g,"");var v=(g=!!u)?b:h;if(v[m])return v[m];c={Slick:true,expressions:[],raw:m,reverse:function(){return k(this.raw,true)}};for(d=-1;m!=(m=m.replace(i,a)););c.length=c.expressions.length;return v[m]= +g?o(c):c},n=function(m){return m==="!"?" ":m===" "?"!":/^!/.test(m)?m.replace(/^!/,""):"!"+m},o=function(m){for(var u=m.expressions,v=0;v+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|:+(+)(?:\\((?:(?:([\"'])([^\\12]*)\\12)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(//, +"["+q(">+~`!@$%^&={}\\;/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(//g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),j=this.Slick||{};j.parse=function(m){return k(m)};j.escapeRegExp=q;if(!this.Slick)this.Slick=j}).apply(typeof exports!="undefined"?exports:this); +(function(){var a={};a.isNativeCode=function(b){return/\{\s*\[native code\]\s*\}/.test(""+b)};a.isXML=function(b){return!!b.xmlVersion||!!b.xml||Object.prototype.toString.call(b)==="[object XMLDocument]"||b.nodeType===9&&b.documentElement.nodeName!=="HTML"};a.setDocument=function(b){if(b.nodeType!==9)if(b.ownerDocument)b=b.ownerDocument;else if(b.navigator)b=b.document;else return;if(this.document!==b){this.document=b;var f=this.root=b.documentElement;this.isXMLDocument=this.isXML(b);this.brokenStarGEBTN= +this.starSelectsClosedQSA=this.idGetsName=this.brokenMixedCaseQSA=this.brokenGEBCN=this.brokenCheckedQSA=this.brokenEmptyAttributeQSA=this.isHTMLDocument=false;var k,n,o,q,i,j,m=b.createElement("div");f.appendChild(m);try{j="slick_getbyid_test";m.innerHTML='';this.isHTMLDocument=!!b.getElementById(j)}catch(u){}if(this.isHTMLDocument){m.style.display="none";m.appendChild(b.createComment(""));n=m.getElementsByTagName("*").length>0;try{m.innerHTML="foo";k=(i=m.getElementsByTagName("*"))&& +i.length&&i[0].nodeName.charAt(0)=="/"}catch(v){}this.brokenStarGEBTN=n||k;if(m.querySelectorAll)try{m.innerHTML="foo";this.starSelectsClosedQSA=(i=m.querySelectorAll("*"))&&i.length&&i[0].nodeName.charAt(0)=="/"}catch(y){}try{j="slick_id_gets_name";m.innerHTML='';this.idGetsName=b.getElementById(j)===m.firstChild}catch(z){}try{m.innerHTML='';this.brokenMixedCaseQSA=!m.querySelectorAll(".MiXedCaSe").length}catch(l){}try{m.innerHTML= +'';m.getElementsByClassName("b");m.firstChild.className="b";q=m.getElementsByClassName("b").length!=2}catch(p){}try{m.innerHTML='';o=m.getElementsByClassName("a").length!=2}catch(r){}this.brokenGEBCN=q||o;try{m.innerHTML='';this.brokenCheckedQSA=m.querySelectorAll(":checked").length==0}catch(s){}try{m.innerHTML='';this.brokenEmptyAttributeQSA=m.querySelectorAll('[class*=""]').length!= +0}catch(x){}}f.removeChild(m);m=null;this.hasAttribute=f&&this.isNativeCode(f.hasAttribute)?function(t,w){return t.hasAttribute(w)}:function(t,w){t=t.getAttributeNode(w);return!!(t&&(t.specified||t.nodeValue))};this.contains=f&&this.isNativeCode(f.contains)?function(t,w){return t.contains(w)}:f&&f.compareDocumentPosition?function(t,w){return t===w||!!(t.compareDocumentPosition(w)&16)}:function(t,w){if(w){do if(w===t)return true;while(w=w.parentNode)}return false};this.documentSorter=f.compareDocumentPosition? +function(t,w){if(!t.compareDocumentPosition||!w.compareDocumentPosition)return 0;return t.compareDocumentPosition(w)&4?-1:t===w?0:1}:"sourceIndex"in f?function(t,w){if(!t.sourceIndex||!w.sourceIndex)return 0;return t.sourceIndex-w.sourceIndex}:b.createRange?function(t,w){if(!t.ownerDocument||!w.ownerDocument)return 0;var D=t.ownerDocument.createRange(),B=w.ownerDocument.createRange();D.setStart(t,0);D.setEnd(t,0);B.setStart(w,0);B.setEnd(w,0);return D.compareBoundaryPoints(Range.START_TO_END,B)}: +null;this.getUID=this.isHTMLDocument?this.getUIDHTML:this.getUIDXML}};a.search=function(b,f,k,n){var o=this.found=n?null:k||[];if(!b)return o;if(b.navigator)b=b.document;else if(!b.nodeType)return o;var q=this.uniques={};if(this.document!==(b.ownerDocument||b))this.setDocument(b);var i=!!(k&&k.length);if(i)for(k=o.length;k--;)this.uniques[this.getUID(o[k])]=true;if(typeof f=="string"){for(k=this.overrides.length;k--;){var j=this.overrides[k];if(j.regexp.test(f)){j=j.method.call(b,f,o,n);if(j!==false){if(j=== +true)return o;return j}}}f=this.Slick.parse(f);if(!f.length)return o}else if(f==null)return o;else if(f.Slick)f=f;else{if(this.contains(b.documentElement||b,f))o?o.push(f):o=f;return o}this.posNTH={};this.posNTHLast={};this.posNTHType={};this.posNTHTypeLast={};this.push=!i&&(n||f.length==1&&f.expressions[0].length==1)?this.pushArray:this.pushUID;if(o==null)o=[];var m,u,v,y,z,l,p,r,s,x,t,w=f.expressions;k=0;a:for(;t=w[k];k++)for(j=0;s=t[j];j++){v="combinator:"+s.combinator;if(!this[v])continue a;y= +this.isXMLDocument?s.tag:s.tag.toUpperCase();z=s.id;l=s.classList;p=s.classes;r=s.attributes;s=s.pseudos;m=j===t.length-1;this.bitUniques={};if(m){this.uniques=q;this.found=o}else{this.uniques={};this.found=[]}if(j===0){this[v](b,y,z,p,r,s,l);if(n&&m&&o.length)break a}else if(n&&m){m=0;for(u=x.length;m1)this.sort(o);return n?o[0]||null:o};a.uidx= +1;a.uidk="slick:uniqueid";a.getUIDXML=function(b){var f=b.getAttribute(this.uidk);if(!f){f=this.uidx++;b.setAttribute(this.uidk,f)}return f};a.getUIDHTML=function(b){return b.uniqueNumber||(b.uniqueNumber=this.uidx++)};a.sort=function(b){if(!this.documentSorter)return b;b.sort(this.documentSorter);return b};a.cacheNTH={};a.matchNTH=/^([+-]?\d*)?([a-z]+)?([+-]\d+)?$/;a.parseNTHArgument=function(b){var f=b.match(this.matchNTH);if(!f)return false;var k=f[2]||false,n=f[1]||1;if(n=="-")n=-1;f=+f[3]||0; +f=k=="n"?{a:n,b:f}:k=="odd"?{a:2,b:1}:k=="even"?{a:2,b:0}:{a:0,b:n};return this.cacheNTH[b]=f};a.createNTHPseudo=function(b,f,k,n){return function(o,q){var i=this.getUID(o);if(!this[k][i]){var j=o.parentNode;if(!j)return false;j=j[b];var m=1;if(n){var u=o.nodeName;do if(j.nodeName===u)this[k][this.getUID(j)]=m++;while(j=j[f])}else{do if(j.nodeType===1)this[k][this.getUID(j)]=m++;while(j=j[f])}}q=q||"n";m=this.cacheNTH[q]||this.parseNTHArgument(q);if(!m)return false;j=m.a;m=m.b;i=this[k][i];if(j== +0)return m==i;if(j>0){if(i":function(b,f,k,n, +o,q){if(b=b.firstChild){do b.nodeType===1&&this.push(b,f,k,n,o,q);while(b=b.nextSibling)}},"+":function(b,f,k,n,o,q){for(;b=b.nextSibling;)if(b.nodeType===1){this.push(b,f,k,n,o,q);break}},"^":function(b,f,k,n,o,q){if(b=b.firstChild)b.nodeType===1?this.push(b,f,k,n,o,q):this["combinator:+"](b,f,k,n,o,q)},"~":function(b,f,k,n,o,q){for(;b=b.nextSibling;)if(b.nodeType===1){var i=this.getUID(b);if(this.bitUniques[i])break;this.bitUniques[i]=true;this.push(b,f,k,n,o,q)}},"++":function(b,f,k,n,o,q){this["combinator:+"](b, +f,k,n,o,q);this["combinator:!+"](b,f,k,n,o,q)},"~~":function(b,f,k,n,o,q){this["combinator:~"](b,f,k,n,o,q);this["combinator:!~"](b,f,k,n,o,q)},"!":function(b,f,k,n,o,q){for(;b=b.parentNode;)b!==this.document&&this.push(b,f,k,n,o,q)},"!>":function(b,f,k,n,o,q){b=b.parentNode;b!==this.document&&this.push(b,f,k,n,o,q)},"!+":function(b,f,k,n,o,q){for(;b=b.previousSibling;)if(b.nodeType===1){this.push(b,f,k,n,o,q);break}},"!^":function(b,f,k,n,o,q){if(b=b.lastChild)b.nodeType===1?this.push(b,f,k,n,o, +q):this["combinator:!+"](b,f,k,n,o,q)},"!~":function(b,f,k,n,o,q){for(;b=b.previousSibling;)if(b.nodeType===1){var i=this.getUID(b);if(this.bitUniques[i])break;this.bitUniques[i]=true;this.push(b,f,k,n,o,q)}}},d;for(d in c)a["combinator:"+d]=c[d];c={empty:function(b){var f=b.firstChild;return!(f&&f.nodeType==1)&&!(b.innerText||b.textContent||"").length},not:function(b,f){return!this.matchNode(b,f)},contains:function(b,f){return(b.innerText||b.textContent||"").indexOf(f)>-1},"first-child":function(b){for(;b= +b.previousSibling;)if(b.nodeType===1)return false;return true},"last-child":function(b){for(;b=b.nextSibling;)if(b.nodeType===1)return false;return true},"only-child":function(b){for(var f=b;f=f.previousSibling;)if(f.nodeType===1)return false;for(b=b;b=b.nextSibling;)if(b.nodeType===1)return false;return true},"nth-child":a.createNTHPseudo("firstChild","nextSibling","posNTH"),"nth-last-child":a.createNTHPseudo("lastChild","previousSibling","posNTHLast"),"nth-of-type":a.createNTHPseudo("firstChild", +"nextSibling","posNTHType",true),"nth-last-of-type":a.createNTHPseudo("lastChild","previousSibling","posNTHTypeLast",true),index:function(b,f){return this["pseudo:nth-child"](b,""+f+1)},even:function(b){return this["pseudo:nth-child"](b,"2n")},odd:function(b){return this["pseudo:nth-child"](b,"2n+1")},"first-of-type":function(b){for(var f=b.nodeName;b=b.previousSibling;)if(b.nodeName===f)return false;return true},"last-of-type":function(b){for(var f=b.nodeName;b=b.nextSibling;)if(b.nodeName===f)return false; +return true},"only-of-type":function(b){for(var f=b,k=b.nodeName;f=f.previousSibling;)if(f.nodeName===k)return false;for(b=b;b=b.nextSibling;)if(b.nodeName===k)return false;return true},enabled:function(b){return b.disabled===false},disabled:function(b){return b.disabled===true},checked:function(b){return b.checked||b.selected},focus:function(b){return this.isHTMLDocument&&this.document.activeElement===b&&(b.href||b.type||this.hasAttribute(b,"tabindex"))},root:function(b){return b===this.root},selected:function(b){return b.selected}}; +for(var e in c)a["pseudo:"+e]=c[e];a.attributeGetters={"class":function(){return"className"in this?this.className:this.getAttribute("class")},"for":function(){return"htmlFor"in this?this.htmlFor:this.getAttribute("for")},href:function(){return"href"in this?this.getAttribute("href",2):this.getAttribute("href")},style:function(){return this.style?this.style.cssText:this.getAttribute("style")}};a.getAttribute=function(b,f){var k=this.attributeGetters[f];if(k)return k.call(b);return(k=b.getAttributeNode(f))? +k.nodeValue:null};a.overrides=[];a.override=function(b,f){this.overrides.push({regexp:b,method:f})};var g=/\[.*[*$^]=(?:["']{2})?\]/;a.override(/./,function(b,f,k){if(!this.querySelectorAll||this.nodeType!=9||!a.isHTMLDocument||a.brokenMixedCaseQSA||a.brokenCheckedQSA&&b.indexOf(":checked")>-1||a.brokenEmptyAttributeQSA&&g.test(b)||h.disableQSA)return false;var n;try{if(k)return this.querySelector(b)||null;else n=this.querySelectorAll(b)}catch(o){return false}var q=!!f.length;if(a.starSelectsClosedQSA)for(k= +0;b=n[k++];){if(b.nodeName>"@"&&(!q||!a.uniques[a.getUIDHTML(b)]))f.push(b)}else for(k=0;b=n[k++];)if(!q||!a.uniques[a.getUIDHTML(b)])f.push(b);q&&a.sort(f);return true});a.override(/^[\w-]+$|^\*$/,function(b,f,k){if(b=="*"&&a.brokenStarGEBTN)return false;b=this.getElementsByTagName(b);if(k)return b[0]||null;var n,o=!!f.length;for(k=0;n=b[k++];)if(!o||!a.uniques[a.getUID(n)])f.push(n);o&&a.sort(f);return true});a.override(/^\.[\w-]+$/,function(b,f,k){if(!a.isHTMLDocument||!this.getElementsByClassName&& +this.querySelectorAll)return false;var n,o,q=!!(f&&f.length),i=b.substring(1);if(this.getElementsByClassName&&!a.brokenGEBCN){b=this.getElementsByClassName(i);if(k)return b[0]||null;for(o=0;n=b[o++];)if(!q||!a.uniques[a.getUIDHTML(n)])f.push(n)}else{var j=RegExp("(^|\\s)"+h.escapeRegExp(i)+"(\\s|$)");b=this.getElementsByTagName("*");for(o=0;n=b[o++];)if((i=n.className)&&j.test(i)){if(k)return n;if(!q||!a.uniques[a.getUIDHTML(n)])f.push(n)}}q&&a.sort(f);return k?null:true});a.override(/^#[\w-]+$/, +function(b,f,k){if(!a.isHTMLDocument||this.nodeType!=9)return false;var n=b.substring(1);b=this.getElementById(n);if(!b)return f;if(a.idGetsName&&b.getAttributeNode("id").nodeValue!=n)return false;if(k)return b||null;k=!!f.length;if(!k||!a.uniques[a.getUIDHTML(b)])f.push(b);k&&a.sort(f);return true});typeof document!="undefined"&&a.setDocument(document);var h=a.Slick=this.Slick||{};h.version="0.9dev";h.search=function(b,f,k){return a.search(b,f,k)};h.find=function(b,f){return a.search(b,f,null,true)}; +h.contains=function(b,f){a.setDocument(b);return a.contains(b,f)};h.getAttribute=function(b,f){return a.getAttribute(b,f)};h.match=function(b,f){if(!(b&&f))return false;if(!f||f===b)return true;if(typeof f!="string")return false;a.setDocument(b);return a.matchNode(b,f)};h.defineAttributeGetter=function(b,f){a.attributeGetters[b]=f;return this};h.lookupAttributeGetter=function(b){return a.attributeGetters[b]};h.definePseudo=function(b,f){a["pseudo:"+b]=function(k,n){return f.call(k,n)};return this}; +h.lookupPseudo=function(b){var f=a["pseudo:"+b];if(f)return function(k){return f.call(this,k)};return null};h.override=function(b,f){a.override(b,f);return this};h.isXML=a.isXML;h.uidOf=function(b){return a.getUIDHTML(b)};if(!this.Slick)this.Slick=h}).apply(typeof exports!="undefined"?exports:this); +Element=function(a,c){var d=Element.Constructors[a];if(d)return d(c);if(typeof a!="string")return document.id(a).set(c);c||(c={});if(!a.test(/^[\w-]+$/)){d=Slick.parse(a).expressions[0][0];a=d.tag=="*"?"div":d.tag;if(d.id&&c.id==null)c.id=d.id;var e=d.attributes;if(e)for(var g=0,h=e.length;g=this.length;)delete this[h--];return this}.protect());Elements.implement(Array.prototype);Array.mirror(Elements);var d;try{d=document.createElement("").name=="x"}catch(e){}var g=function(h){return(""+h).replace(/&/g,"&").replace(/"/g,""")};Document.implement({newElement:function(h,b){if(b&&b.checked!= +null)b.defaultChecked=b.checked;if(d&&b){h="<"+h;if(b.name)h+=' name="'+g(b.name)+'"';if(b.type)h+=' type="'+g(b.type)+'"';h+=">";delete b.name;delete b.type}return this.id(this.createElement(h)).set(b)}})})(); +Document.implement({newTextNode:function(a){return this.createTextNode(a)},getDocument:function(){return this},getWindow:function(){return this.window},id:function(){var a={string:function(c,d,e){return(c=Slick.find(e,"#"+c.replace(/(\W)/g,"\\$1")))?a.element(c,d):null},element:function(c,d){$uid(c);!d&&!c.$family&&!/^object|embed$/i.test(c.tagName)&&Object.append(c,Element.Prototype);return c},object:function(c,d,e){if(c.toElement)return a.element(c.toElement(e),d);return null}};a.textnode=a.whitespace= +a.window=a.document=function(c){return c};return function(c,d,e){if(c&&c.$family&&c.uid)return c;var g=typeOf(c);return a[g]?a[g](c,d,e||document):null}}()});window.$==null&&Window.implement("$",function(a,c){return document.id(a,c,this.document)});Window.implement({getDocument:function(){return this.document},getWindow:function(){return this}}); +[Document,Element].invoke("implement",{getElements:function(a){return Slick.search(this,a,new Elements)},getElement:function(a){return document.id(Slick.find(this,a))}}); +(function(a,c,d){this.Selectors={};var e=this.Selectors.Pseudo=new Hash,g=function(){for(var h in e)if(e.hasOwnProperty(h)){Slick.definePseudo(h,e[h]);delete e[h]}};Slick.search=function(h,b,f){g();return a.call(this,h,b,f)};Slick.find=function(h,b){g();return c.call(this,h,b)};Slick.match=function(h,b){g();return d.call(this,h,b)}})(Slick.search,Slick.find,Slick.match); +window.$$==null&&Window.implement("$$",function(a){var c=new Elements;if(arguments.length==1&&typeof a=="string")return Slick.search(this.document,a,c);for(var d=Array.flatten(arguments),e=0,g=d.length;e1)i=j=document.createDocumentFragment();for(var v=0;v"))[0])},getLast:function(i){return document.id(Slick.search(this,q(i,">")).getLast())},getParent:function(i){return document.id(Slick.find(this,q(i,"!")))},getParents:function(i){return Slick.search(this,q(i,"!"),new Elements)},getSiblings:function(i){return Slick.search(this, +q(i,"~~"),new Elements)},getChildren:function(i){return Slick.search(this,q(i,">"),new Elements)},getWindow:function(){return this.ownerDocument.window},getDocument:function(){return this.ownerDocument},getElementById:function(i){return document.id(Slick.find(this,"#"+(""+i).replace(/(\W)/g,"\\$1")))},getSelected:function(){return new Elements(Array.from(this.options).filter(function(i){return i.selected}))},toQueryString:function(){var i=[];this.getElements("input, select, textarea").each(function(j){var m= +j.type;if(!(!j.name||j.disabled||m=="submit"||m=="reset"||m=="file"||m=="image")){m=j.get("tag")=="select"?j.getSelected().map(function(u){return document.id(u).get("value")}):(m=="radio"||m=="checkbox")&&!j.checked?null:j.get("value");Array.from(m).each(function(u){typeof u!="undefined"&&i.push(encodeURIComponent(j.name)+"="+encodeURIComponent(u))})}});return i.join("&")},clone:function(i,j){i=i!==false;var m=this.cloneNode(i),u=function(p,r){j||p.removeAttribute("id");if(Browser.ie){p.clearAttributes(); +p.mergeAttributes(r);p.removeAttribute("uid");if(p.options)for(var s=p.options,x=r.options,t=s.length;t--;)s[t].selected=x[t].selected}if((s=d[r.tagName.toLowerCase()])&&r[s])p[s]=r[s]},v;if(i){var y=m.getElementsByTagName("*"),z=this.getElementsByTagName("*");for(v=y.length;v--;)u(y[v],z[v])}u(m,this);if(Browser.ie){u=this.getElementsByTagName("object");y=m.getElementsByTagName("object");z=u.length;var l=y.length;for(v=0;v
"}),c=document.createElement("div"),d={table:[1,"
","
"],select:[1,""],tbody:[2,"","
"],tr:[3,"","
"]};d.thead=d.tfoot=d.tbody;var e={set:function(){var g=Array.flatten(arguments).join(""),h=!a&&d[this.get("tag")];if(h){var b=c;b.innerHTML=h[1]+g+h[2];for(g=h[0];g--;)b=b.firstChild; +this.empty().adopt(b.childNodes)}else this.innerHTML=g}};e.erase=e.set;return e}(); +(function(){var a=document.html;Element.Properties.styles={set:function(h){this.setStyles(h)}};var c=a.style.opacity!=null,d=/alpha\(opacity=([\d.]+)\)/i,e=function(h,b){if(!h.currentStyle||!h.currentStyle.hasLayout)h.style.zoom=1;if(c)h.style.opacity=b;else{b=b==1?"":"alpha(opacity="+b*100+")";var f=h.style.filter||h.getComputedStyle("filter")||"";h.style.filter=f.test(d)?f.replace(d,b):f+b}};Element.Properties.opacity={set:function(h){var b=this.style.visibility;if(h==0&&b!="hidden")this.style.visibility= +"hidden";else if(h!=0&&b!="visible")this.style.visibility="visible";e(this,h)},get:c?function(){var h=this.style.opacity||this.getComputedStyle("opacity");return h==""?1:h}:function(){var h,b=this.style.filter||this.getComputedStyle("filter");if(b)h=b.match(d);return h==null||b==null?1:h[1]/100}};var g=a.style.cssFloat==null?"styleFloat":"cssFloat";Element.implement({getComputedStyle:function(h){if(this.currentStyle)return this.currentStyle[h.camelCase()];var b=Element.getDocument(this).defaultView; +return(b=b?b.getComputedStyle(this,null):null)?b.getPropertyValue(h==g?"float":h.hyphenate()):null},setOpacity:function(h){e(this,h);return this},getOpacity:function(){return this.get("opacity")},setStyle:function(h,b){switch(h){case "opacity":return this.set("opacity",parseFloat(b));case "float":h=g}h=h.camelCase();if(typeOf(b)!="string"){var f=(Element.Styles[h]||"@").split(" ");b=Array.from(b).map(function(k,n){if(!f[n])return"";return typeOf(k)=="number"?f[n].replace("@",Math.round(k)):k}).join(" ")}else if(b== +String(Number(b)))b=Math.round(b);this.style[h]=b;return this},getStyle:function(h){switch(h){case "opacity":return this.get("opacity");case "float":h=g}h=h.camelCase();var b=this.style[h];if(!b||h=="zIndex"){b=[];for(var f in Element.ShortStyles)if(h==f){for(var k in Element.ShortStyles[f])b.push(this.getStyle(k));return b.join(" ")}b=this.getComputedStyle(h)}if(b){b=String(b);if(f=b.match(/rgba?\([\d\s,]+\)/))b=b.replace(f[0],f[0].rgbToHex())}if(Browser.opera||Browser.ie&&isNaN(parseFloat(b))){if(h.test(/^(height|width)$/)){var n= +0;(h=="width"?["left","right"]:["top","bottom"]).each(function(o){n+=this.getStyle("border-"+o+"-width").toInt()+this.getStyle("padding-"+o).toInt()},this);return this["offset"+h.capitalize()]-n+"px"}if(Browser.opera&&String(b).indexOf("px")!=-1)return b;if(h.test(/(border(.+)Width|margin|padding)/))return"0px"}return b},setStyles:function(h){for(var b in h)this.setStyle(b,h[b]);return this},getStyles:function(){var h={};Array.flatten(arguments).each(function(b){h[b]=this.getStyle(b)},this);return h}}); +Element.Styles={left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)", +zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"};Element.Styles=new Hash(Element.Styles);Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};["Top","Right","Bottom","Left"].each(function(h){var b=Element.ShortStyles,f=Element.Styles;["margin","padding"].each(function(i){var j=i+h;b[i][j]=f[j]="@px"});var k="border"+h;b.border[k]=f[k]="@px @ rgb(@, @, @)";var n=k+"Width",o=k+"Style",q=k+"Color";b[k]={};b.borderWidth[n]=b[k][n]=f[n]="@px"; +b.borderStyle[o]=b[k][o]=f[o]="@";b.borderColor[q]=b[k][q]=f[q]="rgb(@, @, @)"})})(); +(function(){Element.Properties.events={set:function(d){this.addEvents(d)}};[Element,Window,Document].invoke("implement",{addEvent:function(d,e){var g=this.retrieve("events",{});g[d]||(g[d]={keys:[],values:[]});if(g[d].keys.contains(e))return this;g[d].keys.push(e);var h=d,b=Element.Events[d],f=e,k=this;if(b){b.onAdd&&b.onAdd.call(this,e);if(b.condition)f=function(q){if(b.condition.call(this,q))return e.call(this,q);return true};h=b.base||h}var n=function(){return e.call(k)},o=Element.NativeEvents[h]; +if(o){if(o==2)n=function(q){q=new Event(q,k.getWindow());f.call(k,q)===false&&q.stop()};this.addListener(h,n)}g[d].values.push(n);return this},removeEvent:function(d,e){var g=this.retrieve("events");if(!g||!g[d])return this;var h=g[d],b=h.keys.indexOf(e);if(b==-1)return this;g=h.values[b];delete h.keys[b];delete h.values[b];if(h=Element.Events[d]){h.onRemove&&h.onRemove.call(this,e);d=h.base||d}return Element.NativeEvents[d]?this.removeListener(d,g):this},addEvents:function(d){for(var e in d)this.addEvent(e, +d[e]);return this},removeEvents:function(d){var e;if(typeOf(d)=="object"){for(e in d)this.removeEvent(e,d[e]);return this}var g=this.retrieve("events");if(!g)return this;if(d){if(g[d]){g[d].keys.each(function(h){this.removeEvent(d,h)},this);delete g[d]}}else{for(e in g)this.removeEvents(e);this.eliminate("events")}return this},fireEvent:function(d,e,g){var h=this.retrieve("events");if(!h||!h[d])return this;e=Array.from(e);h[d].keys.each(function(b){g?b.delay(g,this,e):b.apply(this,e)},this);return this}, +cloneEvents:function(d,e){d=document.id(d);var g=d.retrieve("events");if(!g)return this;if(e)g[e]&&g[e].keys.each(function(b){this.addEvent(e,b)},this);else for(var h in g)this.cloneEvents(d,h);return this}});try{if(typeof HTMLElement!="undefined")HTMLElement.prototype.fireEvent=Element.prototype.fireEvent}catch(a){}Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2, +keyup:2,orientationchange:2,touchstart:2,touchmove:2,touchend:2,touchcancel:2,gesturestart:2,gesturechange:2,gestureend:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:2,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1};var c=function(d){d=d.relatedTarget;if(d==null)return true;if(!d)return false;return d!=this&&d.prefix!="xul"&&typeOf(this)!="document"&&!this.contains(d)};Element.Events={mouseenter:{base:"mouseover",condition:c},mouseleave:{base:"mouseout", +condition:c},mousewheel:{base:Browser.firefox?"DOMMouseScroll":"mousewheel"}};Element.Events=new Hash(Element.Events)})(); +(function(){function a(b){return h(b,"-moz-box-sizing")=="border-box"}function c(b){return h(b,"border-top-width").toInt()||0}function d(b){return h(b,"border-left-width").toInt()||0}function e(b){return/^(?:body|html)$/i.test(b.tagName)}function g(b){b=b.getDocument();return!b.compatMode||b.compatMode=="CSS1Compat"?b.html:b.body}Element.implement({scrollTo:function(b,f){if(e(this))this.getWindow().scrollTo(b,f);else{this.scrollLeft=b;this.scrollTop=f}return this},getSize:function(){if(e(this))return this.getWindow().getSize(); +return{x:this.offsetWidth,y:this.offsetHeight}},getScrollSize:function(){if(e(this))return this.getWindow().getScrollSize();return{x:this.scrollWidth,y:this.scrollHeight}},getScroll:function(){if(e(this))return this.getWindow().getScroll();return{x:this.scrollLeft,y:this.scrollTop}},getScrolls:function(){for(var b=this.parentNode,f={x:0,y:0};b&&!e(b);){f.x+=b.scrollLeft;f.y+=b.scrollTop;b=b.parentNode}return f},getOffsetParent:function(){var b=this;if(e(b))return null;if(!Browser.ie)return b.offsetParent; +for(;b=b.parentNode;)if(h(b,"position")!="static"||e(b))return b;return null},getOffsets:function(){if(this.getBoundingClientRect&&!Browser.Platform.ios){var b=this.getBoundingClientRect(),f=document.id(this.getDocument().documentElement),k=f.getScroll(),n=this.getScrolls(),o=h(this,"position")=="fixed";return{x:b.left.toInt()+n.x+(o?0:k.x)-f.clientLeft,y:b.top.toInt()+n.y+(o?0:k.y)-f.clientTop}}b=this;f={x:0,y:0};if(e(this))return f;for(;b&&!e(b);){f.x+=b.offsetLeft;f.y+=b.offsetTop;if(Browser.firefox){if(!a(b)){f.x+= +d(b);f.y+=c(b)}if((k=b.parentNode)&&h(k,"overflow")!="visible"){f.x+=d(k);f.y+=c(k)}}else if(b!=this&&Browser.safari){f.x+=d(b);f.y+=c(b)}b=b.offsetParent}if(Browser.firefox&&!a(this)){f.x-=d(this);f.y-=c(this)}return f},getPosition:function(b){if(e(this))return{x:0,y:0};var f=this.getOffsets(),k=this.getScrolls();f={x:f.x-k.x,y:f.y-k.y};if(b&&(b=document.id(b))){k=b.getPosition();return{x:f.x-k.x-d(b),y:f.y-k.y-c(b)}}return f},getCoordinates:function(b){if(e(this))return this.getWindow().getCoordinates(); +b=this.getPosition(b);var f=this.getSize();b={left:b.x,top:b.y,width:f.x,height:f.y};b.right=b.left+b.width;b.bottom=b.top+b.height;return b},computePosition:function(b){return{left:b.x-(h(this,"margin-left").toInt()||0),top:b.y-(h(this,"margin-top").toInt()||0)}},setPosition:function(b){return this.setStyles(this.computePosition(b))}});[Document,Window].invoke("implement",{getSize:function(){var b=g(this);return{x:b.clientWidth,y:b.clientHeight}},getScroll:function(){var b=this.getWindow(),f=g(this); +return{x:b.pageXOffset||f.scrollLeft,y:b.pageYOffset||f.scrollTop}},getScrollSize:function(){var b=g(this),f=this.getSize(),k=this.getDocument().body;return{x:Math.max(b.scrollWidth,k.scrollWidth,f.x),y:Math.max(b.scrollHeight,k.scrollHeight,f.y)}},getPosition:function(){return{x:0,y:0}},getCoordinates:function(){var b=this.getSize();return{top:0,left:0,bottom:b.y,right:b.x,height:b.y,width:b.x}}});var h=Element.getComputedStyle})();Element.alias({position:"setPosition"}); +[Window,Document,Element].invoke("implement",{getHeight:function(){return this.getSize().y},getWidth:function(){return this.getSize().x},getScrollTop:function(){return this.getScroll().y},getScrollLeft:function(){return this.getScroll().x},getScrollHeight:function(){return this.getScrollSize().y},getScrollWidth:function(){return this.getScrollSize().x},getTop:function(){return this.getPosition().y},getLeft:function(){return this.getPosition().x}}); +(function(){var a=this.Fx=new Class({Implements:[Chain,Events,Options],options:{fps:50,unit:false,duration:500,link:"ignore"},initialize:function(g){this.subject=this.subject||this;this.setOptions(g)},getTransition:function(){return function(g){return-(Math.cos(Math.PI*g)-1)/2}},step:function(){var g=Date.now();if(g=(7-4*d)/11){c=e*e-Math.pow((11-6*d-11*a)/4,2);break}return c},Elastic:function(a,c){return Math.pow(2,10*--a)*Math.cos(20*a*Math.PI*(c&&c[0]||1)/3)}}); +["Quad","Cubic","Quart","Quint"].each(function(a,c){Fx.Transitions[a]=new Fx.Transition(function(d){return Math.pow(d,[c+2])})}); +(function(){var a="onprogress"in new Browser.Request,c=this.Request=new Class({Implements:[Chain,Events,Options],options:{url:"",data:"",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*"},async:true,format:false,method:"post",link:"ignore",isSuccess:null,emulation:true,urlEncoded:true,encoding:"utf-8",evalScripts:false,evalResponse:false,timeout:0,noCache:false},initialize:function(e){this.xhr=new Browser.Request;this.setOptions(e);this.headers= +this.options.headers},onStateChange:function(){var e=this.xhr;if(!(e.readyState!=4||!this.running)){this.running=false;this.status=0;Function.attempt(function(){var g=e.status;this.status=g==1223?204:g}.bind(this));e.onreadystatechange=function(){};clearTimeout(this.timer);this.response={text:this.xhr.responseText||"",xml:this.xhr.responseXML};this.options.isSuccess.call(this,this.status)?this.success(this.response.text,this.response.xml):this.failure()}},isSuccess:function(){var e=this.status;return e>= +200&&e<300},isRunning:function(){return!!this.running},processScripts:function(e){if(this.options.evalResponse||/(ecma|java)script/.test(this.getHeader("Content-type")))return Browser.exec(e);return e.stripScripts(this.options.evalScripts)},success:function(e,g){this.onSuccess(this.processScripts(e),g)},onSuccess:function(){this.fireEvent("complete",arguments).fireEvent("success",arguments).callChain()},failure:function(){this.onFailure()},onFailure:function(){this.fireEvent("complete").fireEvent("failure", +this.xhr)},loadstart:function(e){this.fireEvent("loadstart",[e,this.xhr])},progress:function(e){this.fireEvent("progress",[e,this.xhr])},timeout:function(){this.fireEvent("timeout",this.xhr)},setHeader:function(e,g){this.headers[e]=g;return this},getHeader:function(e){return Function.attempt(function(){return this.xhr.getResponseHeader(e)}.bind(this))},check:function(){if(!this.running)return true;switch(this.options.link){case "cancel":this.cancel();return true;case "chain":this.chain(this.caller.pass(arguments, +this))}return false},send:function(e){if(!this.check(e))return this;this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.running=true;var g=typeOf(e);if(g=="string"||g=="element")e={data:e};g=this.options;e=Object.append({data:g.data,url:g.url,method:g.method},e);g=e.data;var h=String(e.url);e=e.method.toLowerCase();switch(typeOf(g)){case "element":g=document.id(g).toQueryString();break;case "object":case "hash":g=Object.toQueryString(g)}if(this.options.format){var b="format="+this.options.format; +g=g?b+"&"+g:b}if(this.options.emulation&&!["get","post"].contains(e)){e="_method="+e;g=g?e+"&"+g:e;e="post"}if(this.options.urlEncoded&&["post","put"].contains(e))this.headers["Content-type"]="application/x-www-form-urlencoded"+(this.options.encoding?"; charset="+this.options.encoding:"");if(!h)h=document.location.pathname;b=h.lastIndexOf("/");if(b>-1&&(b=h.indexOf("#"))>-1)h=h.substr(0,b);if(this.options.noCache)h+=(h.contains("?")?"&":"?")+String.uniqueID();if(g&&e=="get"){h+=(h.contains("?")?"&": +"?")+g;g=null}var f=this.xhr;if(a){f.onloadstart=this.loadstart.bind(this);f.onprogress=this.progress.bind(this)}f.open(e.toUpperCase(),h,this.options.async,this.options.user,this.options.password);if(this.options.user&&"withCredentials"in f)f.withCredentials=true;f.onreadystatechange=this.onStateChange.bind(this);Object.each(this.headers,function(k,n){try{f.setRequestHeader(n,k)}catch(o){this.fireEvent("exception",[n,k])}},this);this.fireEvent("request");f.send(g);this.options.async||this.onStateChange(); +if(this.options.timeout)this.timer=this.timeout.delay(this.options.timeout,this);return this},cancel:function(){if(!this.running)return this;this.running=false;var e=this.xhr;e.abort();clearTimeout(this.timer);e.onreadystatechange=e.onprogress=e.onloadstart=function(){};this.xhr=new Browser.Request;this.fireEvent("cancel");return this}}),d={};["get","post","put","delete","GET","POST","PUT","DELETE"].each(function(e){d[e]=function(g){return this.send({data:g,method:e})}});c.implement(d);Element.Properties.send= +{set:function(e){this.get("send").cancel().setOptions(e);return this},get:function(){var e=this.retrieve("send");if(!e){e=new c({data:this,link:"cancel",method:this.get("method")||"post",url:this.get("action")});this.store("send",e)}return e}};Element.implement({send:function(e){var g=this.get("send");g.send({data:this,url:e||g.options.url});return this}})})(); +Request.HTML=new Class({Extends:Request,options:{update:false,append:false,evalScripts:true,filter:false,headers:{Accept:"text/html, application/xml, text/xml, */*"}},success:function(a){var c=this.options,d=this.response;d.html=a.stripScripts(function(e){d.javascript=e});if(a=d.html.match(/]*>([\s\S]*?)<\/body>/i))d.html=a[1];a=(new Element("div")).set("html",d.html);d.tree=a.childNodes;d.elements=a.getElements("*");if(c.filter)d.tree=d.elements.filter(c.filter);if(c.update)document.id(c.update).empty().set("html", +d.html);else c.append&&document.id(c.append).adopt(a.getChildren());c.evalScripts&&Browser.exec(d.javascript);this.onSuccess(d.tree,d.elements,d.html,d.javascript)}});Element.Properties.load={set:function(a){this.get("load").cancel().setOptions(a);return this},get:function(){var a=this.retrieve("load");if(!a){a=new Request.HTML({data:this,link:"cancel",update:this,method:"get"});this.store("load",a)}return a}}; +Element.implement({load:function(){this.get("load").send(Array.link(arguments,{data:Type.isObject,url:Type.isString}));return this}});if(!this.JSON)this.JSON={};JSON=new Hash({stringify:JSON.stringify,parse:JSON.parse}); +Object.append(JSON,{$specialChars:{"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(a){return JSON.$specialChars[a]||"\\u00"+Math.floor(a.charCodeAt()/16).toString(16)+(a.charCodeAt()%16).toString(16)},encode:function(a){switch(typeOf(a)){case "string":return'"'+a.replace(/[\x00-\x1f\\"]/g,JSON.$replaceChars)+'"';case "array":return"["+String(a.map(JSON.encode).clean())+"]";case "object":case "hash":var c=[];Object.each(a,function(d,e){var g= +JSON.encode(d);g&&c.push(JSON.encode(e)+":"+g)});return"{"+c+"}";case "number":case "boolean":return String(a);case "null":return"null"}return null},decode:function(a,c){if(typeOf(a)!="string"||!a.length)return null;if(c&&!/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/.test(a.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"")))return null;return eval("("+a+")")}}); +Request.JSON=new Class({Extends:Request,options:{secure:true},initialize:function(a){this.parent(a);Object.append(this.headers,{Accept:"application/json","X-Request":"JSON"})},success:function(a){var c=this.options.secure,d=this.response.json=Function.attempt(function(){return JSON.decode(a,c)});d==null?this.onFailure():this.onSuccess(d,a)}}); +var Cookie=new Class({Implements:Options,options:{path:"/",domain:false,duration:false,secure:false,document:document,encode:true},initialize:function(a,c){this.key=a;this.setOptions(c)},write:function(a){if(this.options.encode)a=encodeURIComponent(a);if(this.options.domain)a+="; domain="+this.options.domain;if(this.options.path)a+="; path="+this.options.path;if(this.options.duration){var c=new Date;c.setTime(c.getTime()+this.options.duration*24*60*60*1E3);a+="; expires="+c.toGMTString()}if(this.options.secure)a+= +"; secure";this.options.document.cookie=this.key+"="+a;return this},read:function(){var a=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.escapeRegExp()+"=([^;]*)");return a?decodeURIComponent(a[1]):null},dispose:function(){(new Cookie(this.key,Object.merge({},this.options,{duration:-1}))).write("");return this}});Cookie.write=function(a,c,d){return(new Cookie(a,d)).write(c)};Cookie.read=function(a){return(new Cookie(a)).read()};Cookie.dispose=function(a,c){return(new Cookie(a,c)).dispose()}; +(function(a,c){var d,e,g=[],h,b,f=true;try{f=a.frameElement!=null}catch(k){}var n=function(){clearTimeout(b);if(!d){Browser.loaded=d=true;c.removeListener("DOMContentLoaded",n).removeListener("readystatechange",o);c.fireEvent("domready");a.fireEvent("domready")}},o=function(){for(var j=g.length;j--;)if(g[j]()){n();return true}return false},q=function(){clearTimeout(b);o()||(b=setTimeout(q,10))};c.addListener("DOMContentLoaded",n);var i=c.createElement("div");if(i.doScroll&&!f){g.push(function(){try{i.doScroll(); +return true}catch(j){}return false});h=true}c.readyState&&g.push(function(){var j=c.readyState;return j=="loaded"||j=="complete"});if("onreadystatechange"in c)c.addListener("readystatechange",o);else h=true;h&&q();Element.Events.domready={onAdd:function(j){d&&j.call(this)}};Element.Events.load={base:"load",onAdd:function(j){e&&this==a&&j.call(this)},condition:function(){if(this==a){n();delete Element.Events.load}return true}};a.addEvent("load",function(){e=true})})(window,document); +(function(){var a=this.Swiff=new Class({Implements:Options,options:{id:null,height:1,width:1,container:null,properties:{},params:{quality:"high",allowScriptAccess:"always",wMode:"window",swLiveConnect:true},callBacks:{},vars:{}},toElement:function(){return this.object},initialize:function(c,d){this.instance="Swiff_"+e++;this.setOptions(d);d=this.options;var e=this.id=d.id||this.instance,g=document.id(d.container);a.CallBacks[this.instance]={};var h=d.params,b=d.vars,f=d.callBacks,k=Object.append({height:d.height, +width:d.width},d.properties),n=this,o;for(o in f){a.CallBacks[this.instance][o]=function(j){return function(){return j.apply(n.object,arguments)}}(f[o]);b[o]="Swiff.CallBacks."+this.instance+"."+o}h.flashVars=Object.toQueryString(b);if(Browser.ie){k.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";h.movie=c}else k.type="application/x-shockwave-flash";k.data=c;e=''; +e+="";this.object=(g?g.empty():new Element("div")).set("html",e).firstChild},replaces:function(c){c=document.id(c,true);c.parentNode.replaceChild(this.toElement(),c);return this},inject:function(c){document.id(c,true).appendChild(this.toElement());return this},remote:function(){return a.remote.apply(a,[this.toElement()].extend(arguments))}});a.CallBacks={};a.remote=function(c,d){var e=c.CallFunction(''+__flash__argumentsToXML(arguments,2)+""); +return eval(e)}})(); \ No newline at end of file diff --git a/frameworks/proto-1610.js b/frameworks/proto-1610.js new file mode 100755 index 0000000..fd15c81 --- /dev/null +++ b/frameworks/proto-1610.js @@ -0,0 +1,179 @@ +/* Prototype JavaScript framework, version 1.6.1 + * (c) 2005-2009 Sam Stephenson + * + * Prototype is freely distributable under the terms of an MIT-style license. + * For details, see the Prototype web site: http://www.prototypejs.org/ + * + *--------------------------------------------------------------------------*/ + +var Prototype={Version:"1.6.1",Browser:function(){var a=navigator.userAgent,b=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!b,Opera:b,WebKit:a.indexOf("AppleWebKit/")>-1,Gecko:a.indexOf("Gecko")>-1&&a.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(a)}}(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:function(){var a=window.Element||window.HTMLElement;return!!(a&&a.prototype)}(), +SpecificElementExtensions:function(){if(typeof window.HTMLDivElement!=="undefined")return true;var a=document.createElement("div"),b=document.createElement("form"),c=false;if(a.__proto__&&a.__proto__!==b.__proto__)c=true;return c}()},ScriptFragment:"]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari)Prototype.BrowserFeatures.SpecificElementExtensions=false; +var Abstract={},Try={these:function(){for(var a,b=0,c=arguments.length;b1?h.join("="):h[0];if(i!=undefined)i=decodeURIComponent(i);if(g in f){Object.isArray(f[g])|| +(f[g]=[f[g]]);f[g].push(i)}else f[g]=i}return f})}return{gsub:function(d,e){var f="",h=this,g;e=a(e);if(Object.isString(d))d=RegExp.escape(d);if(!(d.length||d.source)){e=e("");return e+h.split("").join(e)+e}for(;h.length>0;)if(g=h.match(d)){f+=h.slice(0,g.index);f+=String.interpret(e(g));h=h.slice(g.index+g[0].length)}else{f+=h;h=""}return f},sub:function(d,e,f){e=a(e);f=Object.isUndefined(f)?1:f;return this.gsub(d,function(h){if(--f<0)return h[0];return e(h)})},scan:function(d,e){this.gsub(d,e); +return String(this)},truncate:function(d,e){d=d||30;e=Object.isUndefined(e)?"...":e;return this.length>d?this.slice(0,d-e.length)+e:String(this)},strip:String.prototype.trim?String.prototype.trim:b,stripTags:function(){return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"")},stripScripts:function(){return this.replace(RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var d=RegExp(Prototype.ScriptFragment,"im");return(this.match(RegExp(Prototype.ScriptFragment,"img"))|| +[]).map(function(e){return(e.match(d)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(function(d){return eval(d)})},escapeHTML:function(){return this.replace(/&/g,"&").replace(//g,">")},unescapeHTML:function(){return this.stripTags().replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},toQueryParams:c,parseQuery:c,toArray:function(){return this.split("")},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length- +1)+1)},times:function(d){return d<1?"":Array(d+1).join(this)},camelize:function(){var d=this.split("-"),e=d.length;if(e==1)return d[0];for(var f=this.charAt(0)=="-"?d[0].charAt(0).toUpperCase()+d[0].substring(1):d[0],h=1;h-1},startsWith:function(d){return this.indexOf(d)===0},endsWith:function(d){var e=this.length-d.length;return e>=0&&this.lastIndexOf(d)===e},empty:function(){return this==""},blank:function(){return/^\s*$/.test(this)}, +interpolate:function(d,e){return(new Template(this,e)).evaluate(d)}}}()); +var Template=Class.create({initialize:function(a,b){this.template=a.toString();this.pattern=b||Template.Pattern},evaluate:function(a){if(a&&Object.isFunction(a.toTemplateReplacements))a=a.toTemplateReplacements();return this.template.gsub(this.pattern,function(b){if(a==null)return b[1]+"";var c=b[1]||"";if(c=="\\")return b[2];var d=a,e=b[3],f=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;b=f.exec(e);if(b==null)return c;for(;b!=null;){var h=b[1].startsWith("[")?b[2].replace(/\\\\]/g,"]"):b[1];d=d[h];if(null== +d||""==b[3])break;e=e.substring("["==b[3]?b[1].length:b[0].length);b=f.exec(e)}return c+String.interpret(d)})}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/; +var $break={},Enumerable=function(){function a(g,i){g=g||Prototype.K;var j=true;this.each(function(l,n){j=j&&!!g.call(i,l,n);if(!j)throw $break;});return j}function b(g,i){g=g||Prototype.K;var j=false;this.each(function(l,n){if(j=!!g.call(i,l,n))throw $break;});return j}function c(g,i){g=g||Prototype.K;var j=[];this.each(function(l,n){j.push(g.call(i,l,n))});return j}function d(g,i){var j;this.each(function(l,n){if(g.call(i,l,n)){j=l;throw $break;}});return j}function e(g,i){var j=[];this.each(function(l, +n){g.call(i,l,n)&&j.push(l)});return j}function f(g){if(Object.isFunction(this.indexOf))if(this.indexOf(g)!=-1)return true;var i=false;this.each(function(j){if(j==g){i=true;throw $break;}});return i}function h(){return this.map()}return{each:function(g,i){var j=0;try{this._each(function(n){g.call(i,n,j++)})}catch(l){if(l!=$break)throw l;}return this},eachSlice:function(g,i,j){var l=-g,n=[],q=this.toArray();if(g<1)return q;for(;(l+=g)=j)j=l});return j},min:function(g,i){g=g||Prototype.K;var j;this.each(function(l,n){l=g.call(i,l,n);if(j==null||lq?1:0}).pluck("value")},toArray:h,entries:h,zip:function(){var g=Prototype.K,i=$A(arguments);if(Object.isFunction(i.last()))g=i.pop();var j=[this].concat(i).map($A);return this.map(function(l,n){return g(j.pluck(n))})},size:function(){return this.toArray().length},inspect:function(){return"#"},find:d}}();function $A(a){if(!a)return[];if("toArray"in Object(a))return a.toArray();for(var b=a.length||0,c=Array(b);b--;)c[b]=a[b];return c}function $w(a){if(!Object.isString(a))return[];return(a=a.strip())?a.split(/\s+/):[]}Array.from=$A; +(function(){function a(i){for(var j=0,l=this.length;j"},toJSON:function(){return Object.toJSON(this.toObject())},clone:function(){return new Hash(this)}}}());Hash.from=$H; +Object.extend(Number.prototype,function(){return{toColorPart:function(){return this.toPaddedString(2,16)},succ:function(){return this+1},times:function(a,b){$R(0,this,true).each(a,b);return this},toPaddedString:function(a,b){var c=this.toString(b||10);return"0".times(a-c.length)+c},toJSON:function(){return isFinite(this)?this.toString():"null"},abs:function(){return Math.abs(this)},round:function(){return Math.round(this)},ceil:function(){return Math.ceil(this)},floor:function(){return Math.floor(this)}}}()); +function $R(a,b,c){return new ObjectRange(a,b,c)} +var ObjectRange=Class.create(Enumerable,function(){return{initialize:function(a,b,c){this.start=a;this.end=b;this.exclusive=c},_each:function(a){for(var b=this.start;this.include(b);){a(b);b=b.succ()}},include:function(a){if(a1&&!(a==4&&this._complete)&&this.respondToReadyState(this.transport.readyState)},setRequestHeaders:function(){var a={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){a["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)a.Connection="close"}if(typeof this.options.requestHeaders=="object"){var b=this.options.requestHeaders;if(Object.isFunction(b.push))for(var c=0,d=b.length;c=200&&a<300},getStatus:function(){try{return this.transport.status|| +0}catch(a){return 0}},respondToReadyState:function(a){a=Ajax.Request.Events[a];var b=new Ajax.Response(this);if(a=="Complete"){try{this._complete=true;(this.options["on"+b.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(b,b.headerJSON)}catch(c){this.dispatchException(c)}var d=b.getHeader("Content-type");if(this.options.evalJS=="force"||this.options.evalJS&&this.isSameOrigin()&&d&&d.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))this.evalResponse()}try{(this.options["on"+ +a]||Prototype.emptyFunction)(b,b.headerJSON);Ajax.Responders.dispatch("on"+a,this,b,b.headerJSON)}catch(e){this.dispatchException(e)}if(a=="Complete")this.transport.onreadystatechange=Prototype.emptyFunction},isSameOrigin:function(){var a=this.url.match(/^\s*https?:\/\/[^\/]*/);return!a||a[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""})},getHeader:function(a){try{return this.transport.getResponseHeader(a)|| +null}catch(b){return null}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON())}catch(a){this.dispatchException(a)}},dispatchException:function(a){(this.options.onException||Prototype.emptyFunction)(this,a);Ajax.Responders.dispatch("onException",this,a)}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"]; +Ajax.Response=Class.create({initialize:function(a){this.request=a;a=this.transport=a.transport;var b=this.readyState=a.readyState;if(b>2&&!Prototype.Browser.IE||b==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(a.responseText);this.headerJSON=this._getHeaderJSON()}if(b==4){a=a.responseXML;this.responseXML=Object.isUndefined(a)?null:a;this.responseJSON=this._getResponseJSON()}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus, +getStatusText:function(){try{return this.transport.statusText||""}catch(a){return""}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders()}catch(a){return null}},getResponseHeader:function(a){return this.transport.getResponseHeader(a)},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders()},_getHeaderJSON:function(){var a=this.getHeader("X-JSON");if(!a)return null;a=decodeURIComponent(escape(a));try{return a.evalJSON(this.request.options.sanitizeJSON|| +!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}},_getResponseJSON:function(){var a=this.request.options;if(!a.evalJSON||a.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json")||this.responseText.blank())return null;try{return this.responseText.evalJSON(a.sanitizeJSON||!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}}}); +Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,b,c,d){this.container={success:b.success||b,failure:b.failure||(b.success?null:b)};d=Object.clone(d);var e=d.onComplete;d.onComplete=function(f,h){this.updateContent(f.responseText);Object.isFunction(e)&&e(f,h)}.bind(this);$super(c,d)},updateContent:function(a){var b=this.container[this.success()?"success":"failure"],c=this.options;c.evalScripts||(a=a.stripScripts());if(b=$(b))if(c.insertion)if(Object.isString(c.insertion)){var d= +{};d[c.insertion]=a;b.insert(d)}else c.insertion(b,a);else b.update(a)}}); +Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,b,c,d){$super(d);this.onComplete=this.options.onComplete;this.frequency=this.options.frequency||2;this.decay=this.options.decay||1;this.updater={};this.container=b;this.url=c;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(a){if(this.options.decay){this.decay=a.responseText==this.lastText?this.decay*this.options.decay:1;this.lastText=a.responseText}this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}}); +function $(a){if(arguments.length>1){for(var b=0,c=[],d=arguments.length;b';delete e.name;return Element.writeAttribute(document.createElement(d),e)}f[d]||(f[d]=Element.extend(document.createElement(d))); +return Element.writeAttribute(f[d].cloneNode(false),e)};Object.extend(a.Element,c||{});if(c)a.Element.prototype=c.prototype})(this);Element.cache={};Element.idCounter=1; +Element.Methods={visible:function(a){return $(a).style.display!="none"},toggle:function(a){a=$(a);Element[Element.visible(a)?"hide":"show"](a);return a},hide:function(a){a=$(a);a.style.display="none";return a},show:function(a){a=$(a);a.style.display="";return a},remove:function(a){a=$(a);a.parentNode.removeChild(a);return a},update:function(){var a=function(){var d=document.createElement("select"),e=true;d.innerHTML='';if(d.options&&d.options[0])e=d.options[0].nodeName.toUpperCase()!== +"OPTION";return e}(),b=function(){try{var d=document.createElement("table");if(d&&d.tBodies){d.innerHTML="test";return typeof d.tBodies[0]=="undefined"}}catch(e){return true}}(),c=function(){var d=document.createElement("script"),e=false;try{d.appendChild(document.createTextNode(""));e=!d.firstChild||d.firstChild&&d.firstChild.nodeType!==3}catch(f){e=true}return e}();return function(d,e){d=$(d);if(e&&e.toElement)e=e.toElement();if(Object.isElement(e))return d.update().insert(e); +e=Object.toHTML(e);var f=d.tagName.toUpperCase();if(f==="SCRIPT"&&c){d.text=e;return d}if(a||b)if(f in Element._insertionTranslations.tags){for(;d.firstChild;)d.removeChild(d.firstChild);Element._getContentFromAnonymousElement(f,e.stripScripts()).each(function(h){d.appendChild(h)})}else d.innerHTML=e.stripScripts();else d.innerHTML=e.stripScripts();e.evalScripts.bind(e).defer();return d}}(),replace:function(a,b){a=$(a);if(b&&b.toElement)b=b.toElement();else if(!Object.isElement(b)){b=Object.toHTML(b); +var c=a.ownerDocument.createRange();c.selectNode(a);b.evalScripts.bind(b).defer();b=c.createContextualFragment(b.stripScripts())}a.parentNode.replaceChild(b,a);return a},insert:function(a,b){a=$(a);if(Object.isString(b)||Object.isNumber(b)||Object.isElement(b)||b&&(b.toElement||b.toHTML))b={bottom:b};var c,d,e,f;for(f in b){c=b[f];f=f.toLowerCase();d=Element._insertionTranslations[f];if(c&&c.toElement)c=c.toElement();if(Object.isElement(c))d(a,c);else{c=Object.toHTML(c);e=(f=="before"||f=="after"? +a.parentNode:a).tagName.toUpperCase();e=Element._getContentFromAnonymousElement(e,c.stripScripts());if(f=="top"||f=="after")e.reverse();e.each(d.curry(a));c.evalScripts.bind(c).defer()}}return a},wrap:function(a,b,c){a=$(a);if(Object.isElement(b))$(b).writeAttribute(c||{});else b=Object.isString(b)?new Element(b,c):new Element("div",b);a.parentNode&&a.parentNode.replaceChild(b,a);b.appendChild(a);return b},inspect:function(a){a=$(a);var b="<"+a.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(c){var d= +c.first();c=c.last();if(d=(a[d]||"").toString())b+=" "+c+"="+d.inspect(true)});return b+">"},recursivelyCollect:function(a,b){a=$(a);for(var c=[];a=a[b];)a.nodeType==1&&c.push(Element.extend(a));return c},ancestors:function(a){return Element.recursivelyCollect(a,"parentNode")},descendants:function(a){return Element.select(a,"*")},firstDescendant:function(a){for(a=$(a).firstChild;a&&a.nodeType!=1;)a=a.nextSibling;return $(a)},immediateDescendants:function(a){if(!(a=$(a).firstChild))return[];for(;a&& +a.nodeType!=1;)a=a.nextSibling;if(a)return[a].concat($(a).nextSiblings());return[]},previousSiblings:function(a){return Element.recursivelyCollect(a,"previousSibling")},nextSiblings:function(a){return Element.recursivelyCollect(a,"nextSibling")},siblings:function(a){a=$(a);return Element.previousSiblings(a).reverse().concat(Element.nextSiblings(a))},match:function(a,b){if(Object.isString(b))b=new Selector(b);return b.match($(a))},up:function(a,b,c){a=$(a);if(arguments.length==1)return $(a.parentNode); +var d=Element.ancestors(a);return Object.isNumber(b)?d[b]:Selector.findElement(d,b,c)},down:function(a,b,c){a=$(a);if(arguments.length==1)return Element.firstDescendant(a);return Object.isNumber(b)?Element.descendants(a)[b]:Element.select(a,b)[c||0]},previous:function(a,b,c){a=$(a);if(arguments.length==1)return $(Selector.handlers.previousElementSibling(a));var d=Element.previousSiblings(a);return Object.isNumber(b)?d[b]:Selector.findElement(d,b,c)},next:function(a,b,c){a=$(a);if(arguments.length== +1)return $(Selector.handlers.nextElementSibling(a));var d=Element.nextSiblings(a);return Object.isNumber(b)?d[b]:Selector.findElement(d,b,c)},select:function(a){var b=Array.prototype.slice.call(arguments,1);return Selector.findChildElements(a,b)},adjacent:function(a){var b=Array.prototype.slice.call(arguments,1);return Selector.findChildElements(a.parentNode,b).without(a)},identify:function(a){a=$(a);var b=Element.readAttribute(a,"id");if(b)return b;do b="anonymous_element_"+Element.idCounter++;while($(b)); +Element.writeAttribute(a,"id",b);return b},readAttribute:function(a,b){a=$(a);if(Prototype.Browser.IE){var c=Element._attributeTranslations.read;if(c.values[b])return c.values[b](a,b);if(c.names[b])b=c.names[b];if(b.include(":"))return!a.attributes||!a.attributes[b]?null:a.attributes[b].value}return a.getAttribute(b)},writeAttribute:function(a,b,c){a=$(a);var d={},e=Element._attributeTranslations.write;if(typeof b=="object")d=b;else d[b]=Object.isUndefined(c)?true:c;for(var f in d){b=e.names[f]|| +f;c=d[f];if(e.values[f])b=e.values[f](a,c);if(c===false||c===null)a.removeAttribute(b);else c===true?a.setAttribute(b,b):a.setAttribute(b,c)}return a},getHeight:function(a){return Element.getDimensions(a).height},getWidth:function(a){return Element.getDimensions(a).width},classNames:function(a){return new Element.ClassNames(a)},hasClassName:function(a,b){if(a=$(a)){var c=a.className;return c.length>0&&(c==b||RegExp("(^|\\s)"+b+"(\\s|$)").test(c))}},addClassName:function(a,b){if(a=$(a)){Element.hasClassName(a, +b)||(a.className+=(a.className?" ":"")+b);return a}},removeClassName:function(a,b){if(a=$(a)){a.className=a.className.replace(RegExp("(^|\\s+)"+b+"(\\s+|$)")," ").strip();return a}},toggleClassName:function(a,b){if(a=$(a))return Element[Element.hasClassName(a,b)?"removeClassName":"addClassName"](a,b)},cleanWhitespace:function(a){a=$(a);for(var b=a.firstChild;b;){var c=b.nextSibling;b.nodeType==3&&!/\S/.test(b.nodeValue)&&a.removeChild(b);b=c}return a},empty:function(a){return $(a).innerHTML.blank()}, +descendantOf:function(a,b){a=$(a);b=$(b);if(a.compareDocumentPosition)return(a.compareDocumentPosition(b)&8)===8;if(b.contains)return b.contains(a)&&b!==a;for(;a=a.parentNode;)if(a==b)return true;return false},scrollTo:function(a){a=$(a);var b=Element.cumulativeOffset(a);window.scrollTo(b[0],b[1]);return a},getStyle:function(a,b){a=$(a);b=b=="float"?"cssFloat":b.camelize();var c=a.style[b];if(!c||c=="auto")c=(c=document.defaultView.getComputedStyle(a,null))?c[b]:null;if(b=="opacity")return c?parseFloat(c): +1;return c=="auto"?null:c},getOpacity:function(a){return $(a).getStyle("opacity")},setStyle:function(a,b){a=$(a);var c=a.style;if(Object.isString(b)){a.style.cssText+=";"+b;return b.include("opacity")?a.setOpacity(b.match(/opacity:\s*(\d?\.?\d*)/)[1]):a}for(var d in b)if(d=="opacity")a.setOpacity(b[d]);else c[d=="float"||d=="cssFloat"?Object.isUndefined(c.styleFloat)?"cssFloat":"styleFloat":d]=b[d];return a},setOpacity:function(a,b){a=$(a);a.style.opacity=b==1||b===""?"":b<1.0E-5?0:b;return a},getDimensions:function(a){a= +$(a);var b=Element.getStyle(a,"display");if(b!="none"&&b!=null)return{width:a.offsetWidth,height:a.offsetHeight};b=a.style;var c=b.visibility,d=b.position,e=b.display;b.visibility="hidden";if(d!="fixed")b.position="absolute";b.display="block";var f=a.clientWidth;a=a.clientHeight;b.display=e;b.position=d;b.visibility=c;return{width:f,height:a}},makePositioned:function(a){a=$(a);var b=Element.getStyle(a,"position");if(b=="static"||!b){a._madePositioned=true;a.style.position="relative";if(Prototype.Browser.Opera){a.style.top= +0;a.style.left=0}}return a},undoPositioned:function(a){a=$(a);if(a._madePositioned){a._madePositioned=undefined;a.style.position=a.style.top=a.style.left=a.style.bottom=a.style.right=""}return a},makeClipping:function(a){a=$(a);if(a._overflow)return a;a._overflow=Element.getStyle(a,"overflow")||"auto";if(a._overflow!=="hidden")a.style.overflow="hidden";return a},undoClipping:function(a){a=$(a);if(!a._overflow)return a;a.style.overflow=a._overflow=="auto"?"":a._overflow;a._overflow=null;return a}, +cumulativeOffset:function(a){var b=0,c=0;do{b+=a.offsetTop||0;c+=a.offsetLeft||0;a=a.offsetParent}while(a);return Element._returnOffset(c,b)},positionedOffset:function(a){var b=0,c=0;do{b+=a.offsetTop||0;c+=a.offsetLeft||0;if(a=a.offsetParent){if(a.tagName.toUpperCase()=="BODY")break;if(Element.getStyle(a,"position")!=="static")break}}while(a);return Element._returnOffset(c,b)},absolutize:function(a){a=$(a);if(Element.getStyle(a,"position")=="absolute")return a;var b=Element.positionedOffset(a),c= +b[1];b=b[0];var d=a.clientWidth,e=a.clientHeight;a._originalLeft=b-parseFloat(a.style.left||0);a._originalTop=c-parseFloat(a.style.top||0);a._originalWidth=a.style.width;a._originalHeight=a.style.height;a.style.position="absolute";a.style.top=c+"px";a.style.left=b+"px";a.style.width=d+"px";a.style.height=e+"px";return a},relativize:function(a){a=$(a);if(Element.getStyle(a,"position")=="relative")return a;a.style.position="relative";var b=parseFloat(a.style.top||0)-(a._originalTop||0),c=parseFloat(a.style.left|| +0)-(a._originalLeft||0);a.style.top=b+"px";a.style.left=c+"px";a.style.height=a._originalHeight;a.style.width=a._originalWidth;return a},cumulativeScrollOffset:function(a){var b=0,c=0;do{b+=a.scrollTop||0;c+=a.scrollLeft||0;a=a.parentNode}while(a);return Element._returnOffset(c,b)},getOffsetParent:function(a){if(a.offsetParent)return $(a.offsetParent);if(a==document.body)return $(a);for(;(a=a.parentNode)&&a!=document.body;)if(Element.getStyle(a,"position")!="static")return $(a);return $(document.body)}, +viewportOffset:function(a){var b=0,c=0,d=a;do{b+=d.offsetTop||0;c+=d.offsetLeft||0;if(d.offsetParent==document.body&&Element.getStyle(d,"position")=="absolute")break}while(d=d.offsetParent);d=a;do if(!Prototype.Browser.Opera||d.tagName&&d.tagName.toUpperCase()=="BODY"){b-=d.scrollTop||0;c-=d.scrollLeft||0}while(d=d.parentNode);return Element._returnOffset(c,b)},clonePosition:function(a,b,c){c=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},c||{});b=$(b); +var d=Element.viewportOffset(b);a=$(a);var e=[0,0],f=null;if(Element.getStyle(a,"position")=="absolute"){f=Element.getOffsetParent(a);e=Element.viewportOffset(f)}if(f==document.body){e[0]-=document.body.offsetLeft;e[1]-=document.body.offsetTop}if(c.setLeft)a.style.left=d[0]-e[0]+c.offsetLeft+"px";if(c.setTop)a.style.top=d[1]-e[1]+c.offsetTop+"px";if(c.setWidth)a.style.width=b.offsetWidth+"px";if(c.setHeight)a.style.height=b.offsetHeight+"px";return a}}; +Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});Element._attributeTranslations={write:{names:{className:"class",htmlFor:"for"},values:{}}}; +if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(a,b,c){switch(c){case "left":case "top":case "right":case "bottom":if(a(b,"position")==="static")return null;case "height":case "width":if(!Element.visible(b))return null;var d=parseInt(a(b,c),10);if(d!==b["offset"+c.capitalize()])return d+"px";return(c==="height"?["border-top-width","padding-top","padding-bottom","border-bottom-width"]:["border-left-width","padding-left","padding-right","border-right-width"]).inject(d, +function(e,f){var h=a(b,f);return h===null?e:e-parseInt(h,10)})+"px";default:return a(b,c)}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(a,b,c){if(c==="title")return b.title;return a(b,c)})}else if(Prototype.Browser.IE){Element.Methods.getOffsetParent=Element.Methods.getOffsetParent.wrap(function(a,b){b=$(b);var c=b.getStyle("position");if(c!=="static")return a(b);b.setStyle({position:"relative"});var d=a(b);b.setStyle({position:c});return d});$w("positionedOffset viewportOffset").each(function(a){Element.Methods[a]= +Element.Methods[a].wrap(function(b,c){c=$(c);var d=c.getStyle("position");if(d!=="static")return b(c);var e=c.getOffsetParent();e&&e.getStyle("position")==="fixed"&&e.setStyle({zoom:1});c.setStyle({position:"relative"});e=b(c);c.setStyle({position:d});return e})});Element.Methods.cumulativeOffset=Element.Methods.cumulativeOffset.wrap(function(a,b){return a(b)});Element.Methods.getStyle=function(a,b){a=$(a);b=b=="float"||b=="cssFloat"?"styleFloat":b.camelize();var c=a.style[b];if(!c&&a.currentStyle)c= +a.currentStyle[b];if(b=="opacity"){if(c=(a.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/))if(c[1])return parseFloat(c[1])/100;return 1}if(c=="auto"){if((b=="width"||b=="height")&&a.getStyle("display")!="none")return a["offset"+b.capitalize()]+"px";return null}return c};Element.Methods.setOpacity=function(a,b){a=$(a);var c=a.currentStyle;if(c&&!c.hasLayout||!c&&a.style.zoom=="normal")a.style.zoom=1;c=a.getStyle("filter");var d=a.style;if(b==1||b===""){(c=c.replace(/alpha\([^\)]*\)/gi,""))? +d.filter=c:d.removeAttribute("filter");return a}else if(b<1.0E-5)b=0;d.filter=c.replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+b*100+")";return a};Element._attributeTranslations=function(){var a="className",b="for",c=document.createElement("div");c.setAttribute(a,"x");if(c.className!=="x"){c.setAttribute("class","x");if(c.className==="x")a="class"}c=null;c=document.createElement("label");c.setAttribute(b,"x");if(c.htmlFor!=="x"){c.setAttribute("htmlFor","x");if(c.htmlFor==="x")b="htmlFor"}c=null; +return{read:{names:{"class":a,className:a,"for":b,htmlFor:b},values:{_getAttr:function(d,e){return d.getAttribute(e)},_getAttr2:function(d,e){return d.getAttribute(e,2)},_getAttrNode:function(d,e){var f=d.getAttributeNode(e);return f?f.value:""},_getEv:function(){var d=document.createElement("div");d.onclick=Prototype.emptyFunction;d=d.getAttribute("onclick");var e;if(String(d).indexOf("{")>-1)e=function(f,h){h=f.getAttribute(h);if(!h)return null;h=h.toString();h=h.split("{")[1];h=h.split("}")[0]; +return h.strip()};else if(d==="")e=function(f,h){h=f.getAttribute(h);if(!h)return null;return h.strip()};d=null;return e}(),_flag:function(d,e){return $(d).hasAttribute(e)?e:null},style:function(d){return d.style.cssText.toLowerCase()},title:function(d){return d.title}}}}}();Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(a,b){a.checked=!!b},style:function(a,b){a.style.cssText= +b?b:""}}};Element._attributeTranslations.has={};$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc frameBorder").each(function(a){Element._attributeTranslations.write.names[a.toLowerCase()]=a;Element._attributeTranslations.has[a.toLowerCase()]=a});(function(a){Object.extend(a,{href:a._getAttr2,src:a._getAttr2,type:a._getAttr,action:a._getAttrNode,disabled:a._flag,checked:a._flag,readonly:a._flag,multiple:a._flag,onload:a._getEv,onunload:a._getEv,onclick:a._getEv, +ondblclick:a._getEv,onmousedown:a._getEv,onmouseup:a._getEv,onmouseover:a._getEv,onmousemove:a._getEv,onmouseout:a._getEv,onfocus:a._getEv,onblur:a._getEv,onkeypress:a._getEv,onkeydown:a._getEv,onkeyup:a._getEv,onsubmit:a._getEv,onreset:a._getEv,onselect:a._getEv,onchange:a._getEv})})(Element._attributeTranslations.read.values);Prototype.BrowserFeatures.ElementExtensions&&function(){Element.Methods.down=function(a,b,c){a=$(a);if(arguments.length==1)return a.firstDescendant();var d;if(Object.isNumber(b)){d= +a.getElementsByTagName("*");for(var e=[],f=0,h;h=d[f];f++)h.tagName!=="!"&&e.push(h);d=e[b]}else d=Element.select(a,b)[c||0];return d}}()}else if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent))Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=b==1?0.999999:b===""?"":b<1.0E-5?0:b;return a};else if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=b==1||b===""?"":b<1.0E-5?0:b;if(b==1)if(a.tagName.toUpperCase()=="IMG"&&a.width){a.width++; +a.width--}else try{var c=document.createTextNode(" ");a.appendChild(c);a.removeChild(c)}catch(d){}return a};Element.Methods.cumulativeOffset=function(a){var b=0,c=0;do{b+=a.offsetTop||0;c+=a.offsetLeft||0;if(a.offsetParent==document.body)if(Element.getStyle(a,"position")=="absolute")break;a=a.offsetParent}while(a);return Element._returnOffset(c,b)}} +if("outerHTML"in document.documentElement)Element.Methods.replace=function(a,b){a=$(a);if(b&&b.toElement)b=b.toElement();if(Object.isElement(b)){a.parentNode.replaceChild(b,a);return a}b=Object.toHTML(b);var c=a.parentNode,d=c.tagName.toUpperCase();if(Element._insertionTranslations.tags[d]){var e=a.next();d=Element._getContentFromAnonymousElement(d,b.stripScripts());c.removeChild(a);e?d.each(function(f){c.insertBefore(f,e)}):d.each(function(f){c.appendChild(f)})}else a.outerHTML=b.stripScripts(); +b.evalScripts.bind(b).defer();return a};Element._returnOffset=function(a,b){var c=[a,b];c.left=a;c.top=b;return c};Element._getContentFromAnonymousElement=function(a,b){var c=new Element("div"),d=Element._insertionTranslations.tags[a];if(d){c.innerHTML=d[0]+b+d[1];d[2].times(function(){c=c.firstChild})}else c.innerHTML=b;return $A(c.childNodes)}; +Element._insertionTranslations={before:function(a,b){a.parentNode.insertBefore(b,a)},top:function(a,b){a.insertBefore(b,a.firstChild)},bottom:function(a,b){a.appendChild(b)},after:function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},tags:{TABLE:["","
",1],TBODY:["","
",2],TR:["","
",3],TD:["
","
",4],SELECT:["",1]}}; +(function(){var a=Element._insertionTranslations.tags;Object.extend(a,{THEAD:a.TBODY,TFOOT:a.TBODY,TH:a.TD})})();Element.Methods.Simulated={hasAttribute:function(a,b){b=Element._attributeTranslations.has[b]||b;var c=$(a).getAttributeNode(b);return!!(c&&c.specified)}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods); +(function(a){if(!Prototype.BrowserFeatures.ElementExtensions&&a.__proto__){window.HTMLElement={};window.HTMLElement.prototype=a.__proto__;Prototype.BrowserFeatures.ElementExtensions=true}})(document.createElement("div")); +Element.extend=function(){function a(e,f){for(var h in f){var g=f[h];if(Object.isFunction(g)&&!(h in e))e[h]=g.methodize()}}var b=function(e){if(typeof window.Element!="undefined"){var f=window.Element.prototype;if(f){var h="_"+(Math.random()+"").slice(2);e=document.createElement(e);f[h]="x";e=e[h]!=="x";delete f[h];return e}}return false}("object");if(Prototype.BrowserFeatures.SpecificElementExtensions){if(b)return function(e){if(e&&typeof e._extendedByPrototype=="undefined"){var f=e.tagName;if(f&& +/^(?:object|applet|embed)$/i.test(f)){a(e,Element.Methods);a(e,Element.Methods.Simulated);a(e,Element.Methods.ByTag[f.toUpperCase()])}}return e};return Prototype.K}var c={},d=Element.Methods.ByTag;b=Object.extend(function(e){if(!e||typeof e._extendedByPrototype!="undefined"||e.nodeType!=1||e==window)return e;var f=Object.clone(c),h=e.tagName.toUpperCase();d[h]&&Object.extend(f,d[h]);a(e,f);e._extendedByPrototype=Prototype.emptyFunction;return e},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(c, +Element.Methods);Object.extend(c,Element.Methods.Simulated)}}});b.refresh();return b}();Element.hasAttribute=function(a,b){if(a.hasAttribute)return a.hasAttribute(b);return Element.Methods.Simulated.hasAttribute(a,b)}; +Element.addMethods=function(a){function b(i){i=i.toUpperCase();Element.Methods.ByTag[i]||(Element.Methods.ByTag[i]={});Object.extend(Element.Methods.ByTag[i],a)}function c(i,j,l){l=l||false;for(var n in i){var q=i[n];if(Object.isFunction(q))if(!l||!(n in j))j[n]=q.methodize()}}function d(i){var j,l={OPTGROUP:"OptGroup",TEXTAREA:"TextArea",P:"Paragraph",FIELDSET:"FieldSet",UL:"UList",OL:"OList",DL:"DList",DIR:"Directory",H1:"Heading",H2:"Heading",H3:"Heading",H4:"Heading",H5:"Heading",H6:"Heading", +Q:"Quote",INS:"Mod",DEL:"Mod",A:"Anchor",IMG:"Image",CAPTION:"TableCaption",COL:"TableCol",COLGROUP:"TableCol",THEAD:"TableSection",TFOOT:"TableSection",TBODY:"TableSection",TR:"TableRow",TH:"TableCell",TD:"TableCell",FRAMESET:"FrameSet",IFRAME:"IFrame"};if(l[i])j="HTML"+l[i]+"Element";if(window[j])return window[j];j="HTML"+i+"Element";if(window[j])return window[j];j="HTML"+i.capitalize()+"Element";if(window[j])return window[j];i=document.createElement(i);return i.__proto__||i.constructor.prototype} +var e=Prototype.BrowserFeatures,f=Element.Methods.ByTag;if(!a){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{FORM:Object.clone(Form.Methods),INPUT:Object.clone(Form.Element.Methods),SELECT:Object.clone(Form.Element.Methods),TEXTAREA:Object.clone(Form.Element.Methods)})}if(arguments.length==2){var h=a;a=arguments[1]}if(h)Object.isArray(h)?h.each(b):b(h);else Object.extend(Element.Methods,a||{});h=window.HTMLElement?HTMLElement.prototype: +Element.prototype;if(e.ElementExtensions){c(Element.Methods,h);c(Element.Methods.Simulated,h,true)}if(e.SpecificElementExtensions)for(var g in Element.Methods.ByTag){e=d(g);Object.isUndefined(e)||c(f[g],e.prototype)}Object.extend(Element,Element.Methods);delete Element.ByTag;Element.extend.refresh&&Element.extend.refresh();Element.cache={}}; +document.viewport={getDimensions:function(){return{width:this.getWidth(),height:this.getHeight()}},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)}}; +(function(a){function b(){if(d.WebKit&&!e.evaluate)return document;if(d.Opera&&window.parseFloat(window.opera.version())<9.5)return document.body;return document.documentElement}function c(g){f||(f=b());h[g]="client"+g;a["get"+g]=function(){return f[h[g]]};return a["get"+g]()}var d=Prototype.Browser,e=document,f,h={};a.getWidth=c.curry("Width");a.getHeight=c.curry("Height")})(document.viewport);Element.Storage={UID:1}; +Element.addMethods({getStorage:function(a){if(a=$(a)){if(a===window)a=0;else{if(typeof a._prototypeUID==="undefined")a._prototypeUID=[Element.Storage.UID++];a=a._prototypeUID[0]}Element.Storage[a]||(Element.Storage[a]=$H());return Element.Storage[a]}},store:function(a,b,c){if(a=$(a)){arguments.length===2?Element.getStorage(a).update(b):Element.getStorage(a).set(b,c);return a}},retrieve:function(a,b,c){if(a=$(a)){a=Element.getStorage(a);var d=a.get(b);if(Object.isUndefined(d)){a.set(b,c);d=c}return d}}, +clone:function(a,b){if(a=$(a)){var c=a.cloneNode(b);c._prototypeUID=void 0;if(b)for(var d=Element.select(c,"*"),e=d.length;e--;)d[e]._prototypeUID=void 0;return Element.extend(c)}}}); +var Selector=Class.create({initialize:function(a){this.expression=a.strip();if(this.shouldUseSelectorsAPI())this.mode="selectorsAPI";else if(this.shouldUseXPath()){this.mode="xpath";this.compileXPathMatcher()}else{this.mode="normal";this.compileMatcher()}},shouldUseXPath:function(){var a=function(){var b=false;if(document.evaluate&&window.XPathResult){b=document.createElement("div");b.innerHTML="
";b=document.evaluate(".//*[local-name()='ul' or local-name()='UL']//*[local-name()='li' or local-name()='LI']", +b,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength!==2}return b}();return function(){if(!Prototype.BrowserFeatures.XPath)return false;var b=this.expression;if(Prototype.Browser.WebKit&&(b.include("-of-type")||b.include(":empty")))return false;if(/(\[[\w-]*?:|:checked)/.test(b))return false;if(a)return false;return true}}(),shouldUseSelectorsAPI:function(){if(!Prototype.BrowserFeatures.SelectorsAPI)return false;if(Selector.CASE_INSENSITIVE_CLASS_NAMES)return false;if(!Selector._div)Selector._div= +new Element("div");try{Selector._div.querySelector(this.expression)}catch(a){return false}return true},compileMatcher:function(){var a=this.expression,b=Selector.patterns,c=Selector.criteria,d,e,f=b.length,h;if(Selector._cache[a])this.matcher=Selector._cache[a];else{for(this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.handlers, c = false, n;"];a&&d!=a&&/\S/.test(a);){d=a;for(var g=0;g"}});if(Prototype.BrowserFeatures.SelectorsAPI&&document.compatMode==="BackCompat")Selector.CASE_INSENSITIVE_CLASS_NAMES=function(){var a=document.createElement("div"),b=document.createElement("span");a.id="prototype_test_id";b.className="Test";a.appendChild(b);return a.querySelector("#prototype_test_id .test")!==null}(); +Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:"/following-sibling::*",tagName:function(a){if(a[1]=="*")return"";return"[local-name()='"+a[1].toLowerCase()+"' or local-name()='"+a[1].toUpperCase()+"']"},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1}']",attrPresence:function(a){a[1]=a[1].toLowerCase();return(new Template("[@#{1}]")).evaluate(a)},attr:function(a){a[1]=a[1].toLowerCase();a[3]=a[5]||a[6]; +return(new Template(Selector.xpath.operators[a[2]])).evaluate(a)},pseudo:function(a){var b=Selector.xpath.pseudos[a[1]];if(!b)return"";if(Object.isFunction(b))return b(a);return(new Template(Selector.xpath.pseudos[a[1]])).evaluate(a)},operators:{"=":"[@#{1}='#{3}']","!=":"[@#{1}!='#{3}']","^=":"[starts-with(@#{1}, '#{3}')]","$=":"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']","*=":"[contains(@#{1}, '#{3}')]","~=":"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]","|=":"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"}, +pseudos:{"first-child":"[not(preceding-sibling::*)]","last-child":"[not(following-sibling::*)]","only-child":"[not(preceding-sibling::* or following-sibling::*)]",empty:"[count(*) = 0 and (count(text()) = 0)]",checked:"[@checked]",disabled:"[(@disabled) and (@type!='hidden')]",enabled:"[not(@disabled) and (@type!='hidden')]",not:function(a){for(var b=a[6],c=Selector.patterns,d=Selector.xpath,e,f,h=c.length,g=[];b&&e!=b&&/\S/.test(b);){e=b;for(var i=0;i= 0)]")).evaluate({fragment:a,a:d,b:c})}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c); c = false;',className:'n = h.className(n, r, "#{1}", c); c = false;',id:'n = h.id(n, r, "#{1}", c); c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}", c); c = false;',attr:function(a){a[3]=a[5]||a[6];return(new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;')).evaluate(a)}, +pseudo:function(a){if(a[6])a[6]=a[6].replace(/"/g,'\\"');return(new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;')).evaluate(a)},descendant:'c = "descendant";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:[{name:"laterSibling",re:/^\s*~\s*/},{name:"child",re:/^\s*>\s*/},{name:"adjacent",re:/^\s*\+\s*/},{name:"descendant",re:/^\s/},{name:"tagName",re:/^\s*(\*|[\w\-]+)(\b|$)?/},{name:"id",re:/^#([\w\-\*]+)(\b|$)/},{name:"className",re:/^\.([\w\-\*]+)(\b|$)/}, +{name:"pseudo",re:/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/},{name:"attrPresence",re:/^\[((?:[\w-]+:)?[\w-]+)\]/},{name:"attr",re:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/}],assertions:{tagName:function(a,b){return b[1].toUpperCase()==a.tagName.toUpperCase()},className:function(a,b){return Element.hasClassName(a,b[1])},id:function(a,b){return a.id===b[1]},attrPresence:function(a,b){return Element.hasAttribute(a, +b[1])},attr:function(a,b){var c=Element.readAttribute(a,b[1]);return c&&Selector.operators[b[2]](c,b[5]||b[6])}},handlers:{concat:function(a,b){for(var c=0,d;d=b[c];c++)a.push(d);return a},mark:function(a){for(var b=Prototype.emptyFunction,c=0,d;d=a[c];c++)d._countedByPrototype=b;return a},unmark:function(){return function(){var a=document.createElement("div"),b=false;a._countedByPrototype="x";return b=a.getAttribute("_countedByPrototype")==="x"}()?function(a){for(var b=0,c;c=a[b];b++)c.removeAttribute("_countedByPrototype"); +return a}:function(a){for(var b=0,c;c=a[b];b++)c._countedByPrototype=void 0;return a}}(),index:function(a,b,c){a._countedByPrototype=Prototype.emptyFunction;if(b){a=a.childNodes;b=a.length-1;for(var d=1;b>=0;b--){var e=a[b];if(e.nodeType==1&&(!c||e._countedByPrototype))e.nodeIndex=d++}}else{b=0;d=1;for(a=a.childNodes;e=a[b];b++)if(e.nodeType==1&&(!c||e._countedByPrototype))e.nodeIndex=d++}},unique:function(a){if(a.length==0)return a;for(var b=[],c,d=0,e=a.length;d0?[b]:[];return $R(1,c).inject([],function(d,e){0==(e-b)%a&&(e-b)/a>=0&&d.push(e);return d})},nth:function(a, +b,c,d,e){if(a.length==0)return[];if(b=="even")b="2n+0";if(b=="odd")b="2n+1";c=Selector.handlers;var f=[],h=[],g;c.mark(a);g=0;for(var i;i=a[g];g++)if(!i.parentNode._countedByPrototype){c.index(i.parentNode,d,e);h.push(i.parentNode)}if(b.match(/^\d+$/)){b=Number(b);for(g=0;i=a[g];g++)i.nodeIndex==b&&f.push(i)}else if(g=b.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(g[1]=="-")g[1]=-1;b=Selector.pseudos.getIndices(g[1]?Number(g[1]):1,g[2]?Number(g[2]):0,a.length);g=0;for(d=b.length;i=a[g];g++)for(e=0;e+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(c){b.push(c[1].strip())});return b},matchElements:function(a,b){var c=$$(b),d=Selector.handlers;d.mark(c);for(var e=0,f=[],h;h=a[e];e++)h._countedByPrototype&&f.push(h);d.unmark(c);return f},findElement:function(a,b,c){if(Object.isNumber(b)){c=b;b=false}return Selector.matchElements(a,b||"*")[c||0]},findChildElements:function(a,b){b=Selector.split(b.join(","));for(var c=[],d=Selector.handlers,e=0,f=b.length,h;e1?d.unique(c):c}});Prototype.Browser.IE&&Object.extend(Selector.handlers,{concat:function(a,b){for(var c=0,d;d=b[c];c++)d.tagName!=="!"&&a.push(d);return a}});function $$(){return Selector.findChildElements(document,$A(arguments))} +var Form={reset:function(a){a=$(a);a.reset();return a},serializeElements:function(a,b){if(typeof b!="object")b={hash:!!b};else if(Object.isUndefined(b.hash))b.hash=true;var c,d,e=false,f=b.submit,h=a.inject({},function(g,i){if(!i.disabled&&i.name){c=i.name;d=$(i).getValue();if(d!=null&&i.type!="file"&&(i.type!="submit"||!e&&f!==false&&(!f||c==f)&&(e=true)))if(c in g){Object.isArray(g[c])||(g[c]=[g[c]]);g[c].push(d)}else g[c]=d}return g});return b.hash?h:Object.toQueryString(h)}}; +Form.Methods={serialize:function(a,b){return Form.serializeElements(Form.getElements(a),b)},getElements:function(a){a=$(a).getElementsByTagName("*");for(var b,c=[],d=Form.Element.Serializers,e=0;b=a[e];e++)c.push(b);return c.inject([],function(f,h){d[h.tagName.toLowerCase()]&&f.push(Element.extend(h));return f})},getInputs:function(a,b,c){a=$(a);a=a.getElementsByTagName("input");if(!b&&!c)return $A(a).map(Element.extend);for(var d=0,e=[],f=a.length;d=0}).sortBy(function(c){return c.tabIndex}).first();return b?b:a.find(function(c){return/^(?:input|select|textarea)$/i.test(c.tagName)})}, +focusFirstElement:function(a){a=$(a);a.findFirstElement().activate();return a},request:function(a,b){a=$(a);b=Object.clone(b||{});var c=b.parameters,d=a.readAttribute("action")||"";if(d.blank())d=window.location.href;b.parameters=a.serialize(true);if(c){if(Object.isString(c))c=c.toQueryParams();Object.extend(b.parameters,c)}if(a.hasAttribute("method")&&!b.method)b.method=a.method;return new Ajax.Request(d,b)}}; +Form.Element={focus:function(a){$(a).focus();return a},select:function(a){$(a).select();return a}}; +Form.Element.Methods={serialize:function(a){a=$(a);if(!a.disabled&&a.name){var b=a.getValue();if(b!=undefined){var c={};c[a.name]=b;return Object.toQueryString(c)}}return""},getValue:function(a){a=$(a);var b=a.tagName.toLowerCase();return Form.Element.Serializers[b](a)},setValue:function(a,b){a=$(a);var c=a.tagName.toLowerCase();Form.Element.Serializers[c](a,b);return a},clear:function(a){$(a).value="";return a},present:function(a){return $(a).value!=""},activate:function(a){a=$(a);try{a.focus(); +if(a.select&&(a.tagName.toLowerCase()!="input"||!/^(?:button|reset|submit)$/i.test(a.type)))a.select()}catch(b){}return a},disable:function(a){a=$(a);a.disabled=true;return a},enable:function(a){a=$(a);a.disabled=false;return a}};var Field=Form.Element,$F=Form.Element.Methods.getValue; +Form.Element.Serializers={input:function(a,b){switch(a.type.toLowerCase()){case "checkbox":case "radio":return Form.Element.Serializers.inputSelector(a,b);default:return Form.Element.Serializers.textarea(a,b)}},inputSelector:function(a,b){if(Object.isUndefined(b))return a.checked?a.value:null;else a.checked=!!b},textarea:function(a,b){if(Object.isUndefined(b))return a.value;else a.value=b},select:function(a,b){if(Object.isUndefined(b))return this[a.type=="select-one"?"selectOne":"selectMany"](a); +else for(var c,d,e=!Object.isArray(b),f=0,h=a.length;f=0?this.optionValue(a.options[b]):null},selectMany:function(a){var b,c=a.length;if(!c)return null;var d=0;for(b=[];d=this.offset[1]&&c=this.offset[0]&&b= +this.offset[1]&&this.ycomp=this.offset[0]&&this.xcomp0})._each(a)},set:function(a){this.element.className=a},add:function(a){this.include(a)||this.set($A(this).concat(a).join(" "))},remove:function(a){this.include(a)&&this.set($A(this).without(a).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable); \ No newline at end of file diff --git a/frameworks/proto-1700.js b/frameworks/proto-1700.js new file mode 100755 index 0000000..2dfe00e --- /dev/null +++ b/frameworks/proto-1700.js @@ -0,0 +1,198 @@ +/* Prototype JavaScript framework, version 1.7 + * (c) 2005-2010 Sam Stephenson + * + * Prototype is freely distributable under the terms of an MIT-style license. + * For details, see the Prototype web site: http://www.prototypejs.org/ + * + *--------------------------------------------------------------------------*/ + +var Prototype={Version:"1.7",Browser:function(){var a=navigator.userAgent,b=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!b,Opera:b,WebKit:a.indexOf("AppleWebKit/")>-1,Gecko:a.indexOf("Gecko")>-1&&a.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile/.test(a)}}(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:function(){var a=window.Element||window.HTMLElement;return!!(a&&a.prototype)}(),SpecificElementExtensions:function(){if(typeof window.HTMLDivElement!== +"undefined")return true;var a=document.createElement("div"),b=document.createElement("form"),d=false;if(a.__proto__&&a.__proto__!==b.__proto__)d=true;return d}()},ScriptFragment:"]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari)Prototype.BrowserFeatures.SpecificElementExtensions=false; +var Abstract={},Try={these:function(){for(var a,b=0,d=arguments.length;b1?i.join("="):i[0];if(u!=undefined)u=decodeURIComponent(u);if(o in f){Object.isArray(f[o])|| +(f[o]=[f[o]]);f[o].push(u)}else f[o]=u}return f})}function g(c){var e=this.unfilterJSON(),f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(f.test(e))e=e.replace(f,function(o){return"\\u"+("0000"+o.charCodeAt(0).toString(16)).slice(-4)});try{if(!c||e.isJSON())return eval("("+e+")")}catch(i){}throw new SyntaxError("Badly formed JSON string: "+this.inspect());}function l(){var c=this.unfilterJSON();return JSON.parse(c)}var j=window.JSON&& +typeof JSON.parse==="function"&&JSON.parse('{"test": true}').test;return{gsub:function(c,e){var f="",i=this,o;e=a(e);if(Object.isString(c))c=RegExp.escape(c);if(!(c.length||c.source)){e=e("");return e+i.split("").join(e)+e}for(;i.length>0;)if(o=i.match(c)){f+=i.slice(0,o.index);f+=String.interpret(e(o));i=i.slice(o.index+o[0].length)}else{f+=i;i=""}return f},sub:function(c,e,f){e=a(e);f=Object.isUndefined(f)?1:f;return this.gsub(c,function(i){if(--f<0)return i[0];return e(i)})},scan:function(c,e){this.gsub(c, +e);return String(this)},truncate:function(c,e){c=c||30;e=Object.isUndefined(e)?"...":e;return this.length>c?this.slice(0,c-e.length)+e:String(this)},strip:String.prototype.trim||b,stripTags:function(){return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"")},stripScripts:function(){return this.replace(RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var c=RegExp(Prototype.ScriptFragment,"im");return(this.match(RegExp(Prototype.ScriptFragment,"img"))||[]).map(function(e){return(e.match(c)|| +["",""])[1]})},evalScripts:function(){return this.extractScripts().map(function(c){return eval(c)})},escapeHTML:function(){return this.replace(/&/g,"&").replace(//g,">")},unescapeHTML:function(){return this.stripTags().replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},toQueryParams:d,parseQuery:d,toArray:function(){return this.split("")},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1)},times:function(c){return c< +1?"":Array(c+1).join(this)},camelize:function(){return this.replace(/-+(.)?/g,function(c,e){return e?e.toUpperCase():""})},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()},underscore:function(){return this.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/-/g,"_").toLowerCase()},dasherize:function(){return this.replace(/_/g,"-")},inspect:function(c){var e=this.replace(/[\x00-\x1f\\]/g,function(f){if(f in +String.specialChar)return String.specialChar[f];return"\\u00"+f.charCodeAt().toPaddedString(2,16)});if(c)return'"'+e.replace(/"/g,'\\"')+'"';return"'"+e.replace(/'/g,"\\'")+"'"},unfilterJSON:function(c){return this.replace(c||Prototype.JSONFilter,"$1")},isJSON:function(){var c=this;if(c.blank())return false;c=c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@");c=c.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");c=c.replace(/(?:^|:|,)(?:\s*\[)+/g,"");return/^[\],:{}\s]*$/.test(c)}, +evalJSON:j?l:g,include:function(c){return this.indexOf(c)>-1},startsWith:function(c){return this.lastIndexOf(c,0)===0},endsWith:function(c){var e=this.length-c.length;return e>=0&&this.indexOf(c,e)===e},empty:function(){return this==""},blank:function(){return/^\s*$/.test(this)},interpolate:function(c,e){return(new Template(this,e)).evaluate(c)}}}()); +var Template=Class.create({initialize:function(a,b){this.template=a.toString();this.pattern=b||Template.Pattern},evaluate:function(a){if(a&&Object.isFunction(a.toTemplateReplacements))a=a.toTemplateReplacements();return this.template.gsub(this.pattern,function(b){if(a==null)return b[1]+"";var d=b[1]||"";if(d=="\\")return b[2];var g=a,l=b[3],j=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;b=j.exec(l);if(b==null)return d;for(;b!=null;){var c=b[1].startsWith("[")?b[2].replace(/\\\\]/g,"]"):b[1];g=g[c];if(null== +g||""==b[3])break;l=l.substring("["==b[3]?b[1].length:b[0].length);b=j.exec(l)}return d+String.interpret(g)})}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/; +var $break={},Enumerable=function(){function a(e,f){e=e||Prototype.K;var i=true;this.each(function(o,u){i=i&&!!e.call(f,o,u);if(!i)throw $break;});return i}function b(e,f){e=e||Prototype.K;var i=false;this.each(function(o,u){if(i=!!e.call(f,o,u))throw $break;});return i}function d(e,f){e=e||Prototype.K;var i=[];this.each(function(o,u){i.push(e.call(f,o,u))});return i}function g(e,f){var i;this.each(function(o,u){if(e.call(f,o,u)){i=o;throw $break;}});return i}function l(e,f){var i=[];this.each(function(o, +u){e.call(f,o,u)&&i.push(o)});return i}function j(e){if(Object.isFunction(this.indexOf))if(this.indexOf(e)!=-1)return true;var f=false;this.each(function(i){if(i==e){f=true;throw $break;}});return f}function c(){return this.map()}return{each:function(e,f){var i=0;try{this._each(function(u){e.call(f,u,i++)})}catch(o){if(o!=$break)throw o;}return this},eachSlice:function(e,f,i){var o=-e,u=[],y=this.toArray();if(e<1)return y;for(;(o+=e)=i)i=o});return i},min:function(e,f){e=e||Prototype.K;var i;this.each(function(o,u){o=e.call(f,o,u);if(i==null||oy?1:0}).pluck("value")},toArray:c,entries:c,zip:function(){var e=Prototype.K,f=$A(arguments);if(Object.isFunction(f.last()))e=f.pop();var i=[this].concat(f).map($A);return this.map(function(o,u){return e(i.pluck(u))})},size:function(){return this.toArray().length},inspect:function(){return"#"},find:g}}();function $A(a){if(!a)return[];if("toArray"in Object(a))return a.toArray();for(var b=a.length||0,d=Array(b);b--;)d[b]=a[b];return d}function $w(a){if(!Object.isString(a))return[];return(a=a.strip())?a.split(/\s+/):[]}Array.from=$A; +(function(){function a(f,i){for(var o=0,u=this.length>>>0;o"},toJSON:a,clone:function(){return new Hash(this)}}}());Hash.from=$H; +Object.extend(Number.prototype,function(){return{toColorPart:function(){return this.toPaddedString(2,16)},succ:function(){return this+1},times:function(a,b){$R(0,this,true).each(a,b);return this},toPaddedString:function(a,b){var d=this.toString(b||10);return"0".times(a-d.length)+d},abs:function(){return Math.abs(this)},round:function(){return Math.round(this)},ceil:function(){return Math.ceil(this)},floor:function(){return Math.floor(this)}}}());function $R(a,b,d){return new ObjectRange(a,b,d)} +var ObjectRange=Class.create(Enumerable,function(){return{initialize:function(a,b,d){this.start=a;this.end=b;this.exclusive=d},_each:function(a){for(var b=this.start;this.include(b);){a(b);b=b.succ()}},include:function(a){if(a1&&!(a==4&&this._complete)&&this.respondToReadyState(this.transport.readyState)},setRequestHeaders:function(){var a={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){a["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)a.Connection="close"}if(typeof this.options.requestHeaders=="object"){var b=this.options.requestHeaders;if(Object.isFunction(b.push))for(var d=0,g=b.length;d=200&&a<300||a==304},getStatus:function(){try{if(this.transport.status=== +1223)return 204;return this.transport.status||0}catch(a){return 0}},respondToReadyState:function(a){a=Ajax.Request.Events[a];var b=new Ajax.Response(this);if(a=="Complete"){try{this._complete=true;(this.options["on"+b.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(b,b.headerJSON)}catch(d){this.dispatchException(d)}var g=b.getHeader("Content-type");if(this.options.evalJS=="force"||this.options.evalJS&&this.isSameOrigin()&&g&&g.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))this.evalResponse()}try{(this.options["on"+ +a]||Prototype.emptyFunction)(b,b.headerJSON);Ajax.Responders.dispatch("on"+a,this,b,b.headerJSON)}catch(l){this.dispatchException(l)}if(a=="Complete")this.transport.onreadystatechange=Prototype.emptyFunction},isSameOrigin:function(){var a=this.url.match(/^\s*https?:\/\/[^\/]*/);return!a||a[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""})},getHeader:function(a){try{return this.transport.getResponseHeader(a)|| +null}catch(b){return null}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON())}catch(a){this.dispatchException(a)}},dispatchException:function(a){(this.options.onException||Prototype.emptyFunction)(this,a);Ajax.Responders.dispatch("onException",this,a)}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"]; +Ajax.Response=Class.create({initialize:function(a){this.request=a;a=this.transport=a.transport;var b=this.readyState=a.readyState;if(b>2&&!Prototype.Browser.IE||b==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(a.responseText);this.headerJSON=this._getHeaderJSON()}if(b==4){a=a.responseXML;this.responseXML=Object.isUndefined(a)?null:a;this.responseJSON=this._getResponseJSON()}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus, +getStatusText:function(){try{return this.transport.statusText||""}catch(a){return""}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders()}catch(a){return null}},getResponseHeader:function(a){return this.transport.getResponseHeader(a)},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders()},_getHeaderJSON:function(){var a=this.getHeader("X-JSON");if(!a)return null;a=decodeURIComponent(escape(a));try{return a.evalJSON(this.request.options.sanitizeJSON|| +!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}},_getResponseJSON:function(){var a=this.request.options;if(!a.evalJSON||a.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json")||this.responseText.blank())return null;try{return this.responseText.evalJSON(a.sanitizeJSON||!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}}}); +Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,b,d,g){this.container={success:b.success||b,failure:b.failure||(b.success?null:b)};g=Object.clone(g);var l=g.onComplete;g.onComplete=function(j,c){this.updateContent(j.responseText);Object.isFunction(l)&&l(j,c)}.bind(this);$super(d,g)},updateContent:function(a){var b=this.container[this.success()?"success":"failure"],d=this.options;d.evalScripts||(a=a.stripScripts());if(b=$(b))if(d.insertion)if(Object.isString(d.insertion)){var g= +{};g[d.insertion]=a;b.insert(g)}else d.insertion(b,a);else b.update(a)}}); +Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,b,d,g){$super(g);this.onComplete=this.options.onComplete;this.frequency=this.options.frequency||2;this.decay=this.options.decay||1;this.updater={};this.container=b;this.url=d;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(a){if(this.options.decay){this.decay=a.responseText==this.lastText?this.decay*this.options.decay:1;this.lastText=a.responseText}this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}}); +function $(a){if(arguments.length>1){for(var b=0,d=[],g=arguments.length;b');return g.tagName.toLowerCase()==="input"&&g.name==="x"}catch(l){return false}}(),d=a.Element;a.Element=function(g,l){l=l||{};g=g.toLowerCase();var j=Element.cache;if(b&&l.name){g="<"+g+' name="'+l.name+'">';delete l.name;return Element.writeAttribute(document.createElement(g),l)}j[g]||(j[g]=Element.extend(document.createElement(g)));var c;c=g==="select"?false:"type"in l?false:true;j=c?j[g].cloneNode(false):document.createElement(g); +return Element.writeAttribute(j,l)};Object.extend(a.Element,d||{});if(d)a.Element.prototype=d.prototype})(this);Element.idCounter=1;Element.cache={};Element._purgeElement=function(a){var b=a._prototypeUID;if(b){Element.stopObserving(a);a._prototypeUID=void 0;delete Element.Storage[b]}}; +Element.Methods={visible:function(a){return $(a).style.display!="none"},toggle:function(a){a=$(a);Element[Element.visible(a)?"hide":"show"](a);return a},hide:function(a){a=$(a);a.style.display="none";return a},show:function(a){a=$(a);a.style.display="";return a},remove:function(a){a=$(a);a.parentNode.removeChild(a);return a},update:function(){var a=function(){var j=document.createElement("select"),c=true;j.innerHTML='';if(j.options&&j.options[0])c=j.options[0].nodeName.toUpperCase()!== +"OPTION";return c}(),b=function(){try{var j=document.createElement("table");if(j&&j.tBodies){j.innerHTML="test";return typeof j.tBodies[0]=="undefined"}}catch(c){return true}}(),d=function(){try{var j=document.createElement("div");j.innerHTML="";return j.childNodes.length===0}catch(c){return true}}(),g=a||b||d,l=function(){var j=document.createElement("script"),c=false;try{j.appendChild(document.createTextNode(""));c=!j.firstChild||j.firstChild&&j.firstChild.nodeType!== +3}catch(e){c=true}return c}();return function(j,c){j=$(j);for(var e=Element._purgeElement,f=j.getElementsByTagName("*"),i=f.length;i--;)e(f[i]);if(c&&c.toElement)c=c.toElement();if(Object.isElement(c))return j.update().insert(c);c=Object.toHTML(c);e=j.tagName.toUpperCase();if(e==="SCRIPT"&&l){j.text=c;return j}if(g)if(e in Element._insertionTranslations.tags){for(;j.firstChild;)j.removeChild(j.firstChild);Element._getContentFromAnonymousElement(e,c.stripScripts()).each(function(o){j.appendChild(o)})}else if(d&& +Object.isString(c)&&c.indexOf("-1){for(;j.firstChild;)j.removeChild(j.firstChild);Element._getContentFromAnonymousElement(e,c.stripScripts(),true).each(function(o){j.appendChild(o)})}else j.innerHTML=c.stripScripts();else j.innerHTML=c.stripScripts();c.evalScripts.bind(c).defer();return j}}(),replace:function(a,b){a=$(a);if(b&&b.toElement)b=b.toElement();else if(!Object.isElement(b)){b=Object.toHTML(b);var d=a.ownerDocument.createRange();d.selectNode(a);b.evalScripts.bind(b).defer();b=d.createContextualFragment(b.stripScripts())}a.parentNode.replaceChild(b, +a);return a},insert:function(a,b){a=$(a);if(Object.isString(b)||Object.isNumber(b)||Object.isElement(b)||b&&(b.toElement||b.toHTML))b={bottom:b};var d,g,l,j;for(j in b){d=b[j];j=j.toLowerCase();g=Element._insertionTranslations[j];if(d&&d.toElement)d=d.toElement();if(Object.isElement(d))g(a,d);else{d=Object.toHTML(d);l=(j=="before"||j=="after"?a.parentNode:a).tagName.toUpperCase();l=Element._getContentFromAnonymousElement(l,d.stripScripts());if(j=="top"||j=="after")l.reverse();l.each(g.curry(a));d.evalScripts.bind(d).defer()}}return a}, +wrap:function(a,b,d){a=$(a);if(Object.isElement(b))$(b).writeAttribute(d||{});else b=Object.isString(b)?new Element(b,d):new Element("div",b);a.parentNode&&a.parentNode.replaceChild(b,a);b.appendChild(a);return b},inspect:function(a){a=$(a);var b="<"+a.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(d){var g=d.first();d=d.last();if(g=(a[g]||"").toString())b+=" "+d+"="+g.inspect(true)});return b+">"},recursivelyCollect:function(a,b,d){a=$(a);d=d||-1;for(var g=[];a=a[b];){a.nodeType== +1&&g.push(Element.extend(a));if(g.length==d)break}return g},ancestors:function(a){return Element.recursivelyCollect(a,"parentNode")},descendants:function(a){return Element.select(a,"*")},firstDescendant:function(a){for(a=$(a).firstChild;a&&a.nodeType!=1;)a=a.nextSibling;return $(a)},immediateDescendants:function(a){var b=[];for(a=$(a).firstChild;a;){a.nodeType===1&&b.push(Element.extend(a));a=a.nextSibling}return b},previousSiblings:function(a){return Element.recursivelyCollect(a,"previousSibling")}, +nextSiblings:function(a){return Element.recursivelyCollect(a,"nextSibling")},siblings:function(a){a=$(a);return Element.previousSiblings(a).reverse().concat(Element.nextSiblings(a))},match:function(a,b){a=$(a);if(Object.isString(b))return Prototype.Selector.match(a,b);return b.match(a)},up:function(a,b,d){a=$(a);if(arguments.length==1)return $(a.parentNode);var g=Element.ancestors(a);return Object.isNumber(b)?g[b]:Prototype.Selector.find(g,b,d)},down:function(a,b,d){a=$(a);if(arguments.length==1)return Element.firstDescendant(a); +return Object.isNumber(b)?Element.descendants(a)[b]:Element.select(a,b)[d||0]},previous:function(a,b,d){a=$(a);if(Object.isNumber(b)){d=b;b=false}Object.isNumber(d)||(d=0);return b?Prototype.Selector.find(a.previousSiblings(),b,d):a.recursivelyCollect("previousSibling",d+1)[d]},next:function(a,b,d){a=$(a);if(Object.isNumber(b)){d=b;b=false}Object.isNumber(d)||(d=0);if(b)return Prototype.Selector.find(a.nextSiblings(),b,d);else{Object.isNumber(d);return a.recursivelyCollect("nextSibling",d+1)[d]}}, +select:function(a){a=$(a);var b=Array.prototype.slice.call(arguments,1).join(", ");return Prototype.Selector.select(b,a)},adjacent:function(a){a=$(a);var b=Array.prototype.slice.call(arguments,1).join(", ");return Prototype.Selector.select(b,a.parentNode).without(a)},identify:function(a){a=$(a);var b=Element.readAttribute(a,"id");if(b)return b;do b="anonymous_element_"+Element.idCounter++;while($(b));Element.writeAttribute(a,"id",b);return b},readAttribute:function(a,b){a=$(a);if(Prototype.Browser.IE){var d= +Element._attributeTranslations.read;if(d.values[b])return d.values[b](a,b);if(d.names[b])b=d.names[b];if(b.include(":"))return!a.attributes||!a.attributes[b]?null:a.attributes[b].value}return a.getAttribute(b)},writeAttribute:function(a,b,d){a=$(a);var g={},l=Element._attributeTranslations.write;if(typeof b=="object")g=b;else g[b]=Object.isUndefined(d)?true:d;for(var j in g){b=l.names[j]||j;d=g[j];if(l.values[j])b=l.values[j](a,d);if(d===false||d===null)a.removeAttribute(b);else d===true?a.setAttribute(b, +b):a.setAttribute(b,d)}return a},getHeight:function(a){return Element.getDimensions(a).height},getWidth:function(a){return Element.getDimensions(a).width},classNames:function(a){return new Element.ClassNames(a)},hasClassName:function(a,b){if(a=$(a)){var d=a.className;return d.length>0&&(d==b||RegExp("(^|\\s)"+b+"(\\s|$)").test(d))}},addClassName:function(a,b){if(a=$(a)){Element.hasClassName(a,b)||(a.className+=(a.className?" ":"")+b);return a}},removeClassName:function(a,b){if(a=$(a)){a.className= +a.className.replace(RegExp("(^|\\s+)"+b+"(\\s+|$)")," ").strip();return a}},toggleClassName:function(a,b){if(a=$(a))return Element[Element.hasClassName(a,b)?"removeClassName":"addClassName"](a,b)},cleanWhitespace:function(a){a=$(a);for(var b=a.firstChild;b;){var d=b.nextSibling;b.nodeType==3&&!/\S/.test(b.nodeValue)&&a.removeChild(b);b=d}return a},empty:function(a){return $(a).innerHTML.blank()},descendantOf:function(a,b){a=$(a);b=$(b);if(a.compareDocumentPosition)return(a.compareDocumentPosition(b)& +8)===8;if(b.contains)return b.contains(a)&&b!==a;for(;a=a.parentNode;)if(a==b)return true;return false},scrollTo:function(a){a=$(a);var b=Element.cumulativeOffset(a);window.scrollTo(b[0],b[1]);return a},getStyle:function(a,b){a=$(a);b=b=="float"?"cssFloat":b.camelize();var d=a.style[b];if(!d||d=="auto")d=(d=document.defaultView.getComputedStyle(a,null))?d[b]:null;if(b=="opacity")return d?parseFloat(d):1;return d=="auto"?null:d},getOpacity:function(a){return $(a).getStyle("opacity")},setStyle:function(a, +b){a=$(a);var d=a.style;if(Object.isString(b)){a.style.cssText+=";"+b;return b.include("opacity")?a.setOpacity(b.match(/opacity:\s*(\d?\.?\d*)/)[1]):a}for(var g in b)if(g=="opacity")a.setOpacity(b[g]);else d[g=="float"||g=="cssFloat"?Object.isUndefined(d.styleFloat)?"cssFloat":"styleFloat":g]=b[g];return a},setOpacity:function(a,b){a=$(a);a.style.opacity=b==1||b===""?"":b<1.0E-5?0:b;return a},makePositioned:function(a){a=$(a);var b=Element.getStyle(a,"position");if(b=="static"||!b){a._madePositioned= +true;a.style.position="relative";if(Prototype.Browser.Opera){a.style.top=0;a.style.left=0}}return a},undoPositioned:function(a){a=$(a);if(a._madePositioned){a._madePositioned=undefined;a.style.position=a.style.top=a.style.left=a.style.bottom=a.style.right=""}return a},makeClipping:function(a){a=$(a);if(a._overflow)return a;a._overflow=Element.getStyle(a,"overflow")||"auto";if(a._overflow!=="hidden")a.style.overflow="hidden";return a},undoClipping:function(a){a=$(a);if(!a._overflow)return a;a.style.overflow= +a._overflow=="auto"?"":a._overflow;a._overflow=null;return a},clonePosition:function(a,b,d){d=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},d||{});b=$(b);var g=Element.viewportOffset(b),l=[0,0],j=null;a=$(a);if(Element.getStyle(a,"position")=="absolute"){j=Element.getOffsetParent(a);l=Element.viewportOffset(j)}if(j==document.body){l[0]-=document.body.offsetLeft;l[1]-=document.body.offsetTop}if(d.setLeft)a.style.left=g[0]-l[0]+d.offsetLeft+"px";if(d.setTop)a.style.top= +g[1]-l[1]+d.offsetTop+"px";if(d.setWidth)a.style.width=b.offsetWidth+"px";if(d.setHeight)a.style.height=b.offsetHeight+"px";return a}};Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});Element._attributeTranslations={write:{names:{className:"class",htmlFor:"for"},values:{}}}; +if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(a,b,d){switch(d){case "height":case "width":if(!Element.visible(b))return null;var g=parseInt(a(b,d),10);if(g!==b["offset"+d.capitalize()])return g+"px";return(d==="height"?["border-top-width","padding-top","padding-bottom","border-bottom-width"]:["border-left-width","padding-left","padding-right","border-right-width"]).inject(g,function(l,j){var c=a(b,j);return c===null?l:l-parseInt(c,10)})+"px";default:return a(b, +d)}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(a,b,d){if(d==="title")return b.title;return a(b,d)})}else if(Prototype.Browser.IE){Element.Methods.getStyle=function(a,b){a=$(a);b=b=="float"||b=="cssFloat"?"styleFloat":b.camelize();var d=a.style[b];if(!d&&a.currentStyle)d=a.currentStyle[b];if(b=="opacity"){if(d=(a.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/))if(d[1])return parseFloat(d[1])/100;return 1}if(d=="auto"){if((b=="width"||b=="height")&&a.getStyle("display")!= +"none")return a["offset"+b.capitalize()]+"px";return null}return d};Element.Methods.setOpacity=function(a,b){a=$(a);var d=a.currentStyle;if(d&&!d.hasLayout||!d&&a.style.zoom=="normal")a.style.zoom=1;d=a.getStyle("filter");var g=a.style;if(b==1||b===""){(d=d.replace(/alpha\([^\)]*\)/gi,""))?g.filter=d:g.removeAttribute("filter");return a}else if(b<1.0E-5)b=0;g.filter=d.replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+b*100+")";return a};Element._attributeTranslations=function(){var a="className",b= +"for",d=document.createElement("div");d.setAttribute(a,"x");if(d.className!=="x"){d.setAttribute("class","x");if(d.className==="x")a="class"}d=null;d=document.createElement("label");d.setAttribute(b,"x");if(d.htmlFor!=="x"){d.setAttribute("htmlFor","x");if(d.htmlFor==="x")b="htmlFor"}d=null;return{read:{names:{"class":a,className:a,"for":b,htmlFor:b},values:{_getAttr:function(g,l){return g.getAttribute(l)},_getAttr2:function(g,l){return g.getAttribute(l,2)},_getAttrNode:function(g,l){var j=g.getAttributeNode(l); +return j?j.value:""},_getEv:function(){var g=document.createElement("div"),l;g.onclick=Prototype.emptyFunction;g=g.getAttribute("onclick");if(String(g).indexOf("{")>-1)l=function(j,c){c=j.getAttribute(c);if(!c)return null;c=c.toString();c=c.split("{")[1];c=c.split("}")[0];return c.strip()};else if(g==="")l=function(j,c){c=j.getAttribute(c);if(!c)return null;return c.strip()};g=null;return l}(),_flag:function(g,l){return $(g).hasAttribute(l)?l:null},style:function(g){return g.style.cssText.toLowerCase()}, +title:function(g){return g.title}}}}}();Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(a,b){a.checked=!!b},style:function(a,b){a.style.cssText=b?b:""}}};Element._attributeTranslations.has={};$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc frameBorder").each(function(a){Element._attributeTranslations.write.names[a.toLowerCase()]= +a;Element._attributeTranslations.has[a.toLowerCase()]=a});(function(a){Object.extend(a,{href:a._getAttr2,src:a._getAttr2,type:a._getAttr,action:a._getAttrNode,disabled:a._flag,checked:a._flag,readonly:a._flag,multiple:a._flag,onload:a._getEv,onunload:a._getEv,onclick:a._getEv,ondblclick:a._getEv,onmousedown:a._getEv,onmouseup:a._getEv,onmouseover:a._getEv,onmousemove:a._getEv,onmouseout:a._getEv,onfocus:a._getEv,onblur:a._getEv,onkeypress:a._getEv,onkeydown:a._getEv,onkeyup:a._getEv,onsubmit:a._getEv, +onreset:a._getEv,onselect:a._getEv,onchange:a._getEv})})(Element._attributeTranslations.read.values);Prototype.BrowserFeatures.ElementExtensions&&function(){Element.Methods.down=function(a,b,d){a=$(a);if(arguments.length==1)return a.firstDescendant();var g;if(Object.isNumber(b)){g=a.getElementsByTagName("*");for(var l=[],j=0,c;c=g[j];j++)c.tagName!=="!"&&l.push(c);g=l[b]}else g=Element.select(a,b)[d||0];return g}}()}else if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent))Element.Methods.setOpacity= +function(a,b){a=$(a);a.style.opacity=b==1?0.999999:b===""?"":b<1.0E-5?0:b;return a};else if(Prototype.Browser.WebKit)Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=b==1||b===""?"":b<1.0E-5?0:b;if(b==1)if(a.tagName.toUpperCase()=="IMG"&&a.width){a.width++;a.width--}else try{var d=document.createTextNode(" ");a.appendChild(d);a.removeChild(d)}catch(g){}return a}; +if("outerHTML"in document.documentElement)Element.Methods.replace=function(a,b){a=$(a);if(b&&b.toElement)b=b.toElement();if(Object.isElement(b)){a.parentNode.replaceChild(b,a);return a}b=Object.toHTML(b);var d=a.parentNode,g=d.tagName.toUpperCase();if(Element._insertionTranslations.tags[g]){var l=a.next();g=Element._getContentFromAnonymousElement(g,b.stripScripts());d.removeChild(a);l?g.each(function(j){d.insertBefore(j,l)}):g.each(function(j){d.appendChild(j)})}else a.outerHTML=b.stripScripts(); +b.evalScripts.bind(b).defer();return a};Element._returnOffset=function(a,b){var d=[a,b];d.left=a;d.top=b;return d};Element._getContentFromAnonymousElement=function(a,b,d){var g=new Element("div");a=Element._insertionTranslations.tags[a];var l=false;if(a)l=true;else if(d){l=true;a=["","",0]}if(l){g.innerHTML=" "+a[0]+b+a[1];g.removeChild(g.firstChild);for(b=a[2];b--;)g=g.firstChild}else g.innerHTML=b;return $A(g.childNodes)}; +Element._insertionTranslations={before:function(a,b){a.parentNode.insertBefore(b,a)},top:function(a,b){a.insertBefore(b,a.firstChild)},bottom:function(a,b){a.appendChild(b)},after:function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},tags:{TABLE:["","
",1],TBODY:["","
",2],TR:["","
",3],TD:["
","
",4],SELECT:["",1]}}; +(function(){var a=Element._insertionTranslations.tags;Object.extend(a,{THEAD:a.TBODY,TFOOT:a.TBODY,TH:a.TD})})();Element.Methods.Simulated={hasAttribute:function(a,b){b=Element._attributeTranslations.has[b]||b;var d=$(a).getAttributeNode(b);return!!(d&&d.specified)}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods); +(function(a){if(!Prototype.BrowserFeatures.ElementExtensions&&a.__proto__){window.HTMLElement={};window.HTMLElement.prototype=a.__proto__;Prototype.BrowserFeatures.ElementExtensions=true}})(document.createElement("div")); +Element.extend=function(){function a(l,j){for(var c in j){var e=j[c];if(Object.isFunction(e)&&!(c in l))l[c]=e.methodize()}}var b=function(l){if(typeof window.Element!="undefined"){var j=window.Element.prototype;if(j){var c="_"+(Math.random()+"").slice(2);l=document.createElement(l);j[c]="x";l=l[c]!=="x";delete j[c];return l}}return false}("object");if(Prototype.BrowserFeatures.SpecificElementExtensions){if(b)return function(l){if(l&&typeof l._extendedByPrototype=="undefined"){var j=l.tagName;if(j&& +/^(?:object|applet|embed)$/i.test(j)){a(l,Element.Methods);a(l,Element.Methods.Simulated);a(l,Element.Methods.ByTag[j.toUpperCase()])}}return l};return Prototype.K}var d={},g=Element.Methods.ByTag;b=Object.extend(function(l){if(!l||typeof l._extendedByPrototype!="undefined"||l.nodeType!=1||l==window)return l;var j=Object.clone(d),c=l.tagName.toUpperCase();g[c]&&Object.extend(j,g[c]);a(l,j);l._extendedByPrototype=Prototype.emptyFunction;return l},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(d, +Element.Methods);Object.extend(d,Element.Methods.Simulated)}}});b.refresh();return b}();Element.hasAttribute=document.documentElement.hasAttribute?function(a,b){return a.hasAttribute(b)}:Element.Methods.Simulated.hasAttribute; +Element.addMethods=function(a){function b(f){f=f.toUpperCase();Element.Methods.ByTag[f]||(Element.Methods.ByTag[f]={});Object.extend(Element.Methods.ByTag[f],a)}function d(f,i,o){o=o||false;for(var u in f){var y=f[u];if(Object.isFunction(y))if(!o||!(u in i))i[u]=y.methodize()}}function g(f){var i,o={OPTGROUP:"OptGroup",TEXTAREA:"TextArea",P:"Paragraph",FIELDSET:"FieldSet",UL:"UList",OL:"OList",DL:"DList",DIR:"Directory",H1:"Heading",H2:"Heading",H3:"Heading",H4:"Heading",H5:"Heading",H6:"Heading", +Q:"Quote",INS:"Mod",DEL:"Mod",A:"Anchor",IMG:"Image",CAPTION:"TableCaption",COL:"TableCol",COLGROUP:"TableCol",THEAD:"TableSection",TFOOT:"TableSection",TBODY:"TableSection",TR:"TableRow",TH:"TableCell",TD:"TableCell",FRAMESET:"FrameSet",IFRAME:"IFrame"};if(o[f])i="HTML"+o[f]+"Element";if(window[i])return window[i];i="HTML"+f+"Element";if(window[i])return window[i];i="HTML"+f.capitalize()+"Element";if(window[i])return window[i];f=document.createElement(f);return f.__proto__||f.constructor.prototype} +var l=Prototype.BrowserFeatures,j=Element.Methods.ByTag;if(!a){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{FORM:Object.clone(Form.Methods),INPUT:Object.clone(Form.Element.Methods),SELECT:Object.clone(Form.Element.Methods),TEXTAREA:Object.clone(Form.Element.Methods),BUTTON:Object.clone(Form.Element.Methods)})}if(arguments.length==2){var c=a;a=arguments[1]}if(c)Object.isArray(c)?c.each(b):b(c);else Object.extend(Element.Methods, +a||{});c=window.HTMLElement?HTMLElement.prototype:Element.prototype;if(l.ElementExtensions){d(Element.Methods,c);d(Element.Methods.Simulated,c,true)}if(l.SpecificElementExtensions)for(var e in Element.Methods.ByTag){l=g(e);Object.isUndefined(l)||d(j[e],l.prototype)}Object.extend(Element,Element.Methods);delete Element.ByTag;Element.extend.refresh&&Element.extend.refresh();Element.cache={}}; +document.viewport={getDimensions:function(){return{width:this.getWidth(),height:this.getHeight()}},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)}}; +(function(a){function b(){if(g.WebKit&&!l.evaluate)return document;if(g.Opera&&window.parseFloat(window.opera.version())<9.5)return document.body;return document.documentElement}function d(e){j||(j=b());c[e]="client"+e;a["get"+e]=function(){return j[c[e]]};return a["get"+e]()}var g=Prototype.Browser,l=document,j,c={};a.getWidth=d.curry("Width");a.getHeight=d.curry("Height")})(document.viewport);Element.Storage={UID:1}; +Element.addMethods({getStorage:function(a){if(a=$(a)){if(a===window)a=0;else{if(typeof a._prototypeUID==="undefined")a._prototypeUID=Element.Storage.UID++;a=a._prototypeUID}Element.Storage[a]||(Element.Storage[a]=$H());return Element.Storage[a]}},store:function(a,b,d){if(a=$(a)){arguments.length===2?Element.getStorage(a).update(b):Element.getStorage(a).set(b,d);return a}},retrieve:function(a,b,d){if(a=$(a)){a=Element.getStorage(a);var g=a.get(b);if(Object.isUndefined(g)){a.set(b,d);g=d}return g}}, +clone:function(a,b){if(a=$(a)){var d=a.cloneNode(b);d._prototypeUID=void 0;if(b)for(var g=Element.select(d,"*"),l=g.length;l--;)g[l]._prototypeUID=void 0;return Element.extend(d)}},purge:function(a){if(a=$(a)){var b=Element._purgeElement;b(a);a=a.getElementsByTagName("*");for(var d=a.length;d--;)b(a[d]);return null}}}); +(function(){function a(c,e,f){var i=null;if(Object.isElement(c)){i=c;c=i.getStyle(e)}if(c===null)return null;if(/^(?:-)?\d+(\.\d+)?(px)?$/i.test(c))return window.parseFloat(c);var o=c.include("%"),u=f===document.viewport;if(/\d/.test(c)&&i&&i.runtimeStyle&&!(o&&u)){f=i.style.left;e=i.runtimeStyle.left;i.runtimeStyle.left=i.currentStyle.left;i.style.left=c||0;c=i.style.pixelLeft;i.style.left=f;i.runtimeStyle.left=e;return c}if(i&&o){f=f||i.parentNode;c=(c=c.match(/^(\d+)%?$/i))?Number(c[1])/100:null; +o=null;i.getStyle("position");i=e.include("left")||e.include("right")||e.include("width");e=e.include("top")||e.include("bottom")||e.include("height");if(f===document.viewport)if(i)o=document.viewport.getWidth();else{if(e)o=document.viewport.getHeight()}else if(i)o=$(f).measure("width");else if(e)o=$(f).measure("height");return o===null?0:o*c}return 0}function b(c){c=$(c);if(c.nodeType===Node.DOCUMENT_NODE||l(c)||c.nodeName.toUpperCase()==="BODY"||c.nodeName.toUpperCase()==="HTML")return $(document.body); +if(Element.getStyle(c,"display")!=="inline"&&c.offsetParent)return $(c.offsetParent);for(;(c=c.parentNode)&&c!==document.body;)if(Element.getStyle(c,"position")!=="static")return c.nodeName.toUpperCase()==="HTML"?$(document.body):$(c);return $(document.body)}function d(c){c=$(c);var e=0,f=0;if(c.parentNode){do{e+=c.offsetTop||0;f+=c.offsetLeft||0;c=c.offsetParent}while(c)}return new Element.Offset(f,e)}function g(c){c=$(c);var e=c.getLayout(),f=0,i=0;do{f+=c.offsetTop||0;i+=c.offsetLeft||0;if(c=c.offsetParent){if(c.nodeName.toUpperCase()=== +"BODY")break;if(Element.getStyle(c,"position")!=="static")break}}while(c);i-=e.get("margin-top");f-=e.get("margin-left");return new Element.Offset(i,f)}function l(c){return c!==document.body&&!Element.descendantOf(c,document.body)}var j=Prototype.K;if("currentStyle"in document.documentElement)j=function(c){if(!c.currentStyle.hasLayout)c.style.zoom=1;return c};Element.Layout=Class.create(Hash,{initialize:function($super,e,f){$super();this.element=$(e);Element.Layout.PROPERTIES.each(function(i){this._set(i, +null)},this);if(f){this._preComputing=true;this._begin();Element.Layout.PROPERTIES.each(this._compute,this);this._end();this._preComputing=false}},_set:function(c,e){return Hash.prototype.set.call(this,c,e)},set:function(){throw"Properties of Element.Layout are read-only.";},get:function($super,e){var f=$super(e);return f===null?this._compute(e):f},_begin:function(){if(!this._prepared){var c=this.element,e;a:{for(e=c;e&&e.parentNode;){if(e.getStyle("display")==="none"){e=false;break a}e=$(e.parentNode)}e= +true}if(!e){c.store("prototype_original_styles",{position:c.style.position||"",width:c.style.width||"",visibility:c.style.visibility||"",display:c.style.display||""});e=c.getStyle("position");var f=c.getStyle("width");if(f==="0px"||f===null){c.style.display="block";f=c.getStyle("width")}var i=e==="fixed"?document.viewport:c.parentNode;c.setStyle({position:"absolute",visibility:"hidden",display:"block"});var o=c.getStyle("width");e=f&&o===f?a(c,"width",i):e==="absolute"||e==="fixed"?a(c,"width",i): +$(c.parentNode).getLayout().get("width")-this.get("margin-left")-this.get("border-left")-this.get("padding-left")-this.get("padding-right")-this.get("border-right")-this.get("margin-right");c.setStyle({width:e+"px"})}this._prepared=true}},_end:function(){var c=this.element,e=c.retrieve("prototype_original_styles");c.store("prototype_original_styles",null);c.setStyle(e);this._prepared=false},_compute:function(c){var e=Element.Layout.COMPUTATIONS;if(!(c in e))throw"Property not found.";return this._set(c, +e[c].call(this,this.element))},toObject:function(){var c=$A(arguments),e={};(c.length===0?Element.Layout.PROPERTIES:c.join(" ").split(" ")).each(function(f){if(Element.Layout.PROPERTIES.include(f)){var i=this.get(f);if(i!=null)e[f]=i}},this);return e},toHash:function(){var c=this.toObject.apply(this,arguments);return new Hash(c)},toCSS:function(){var c=$A(arguments),e={};(c.length===0?Element.Layout.PROPERTIES:c.join(" ").split(" ")).each(function(f){if(Element.Layout.PROPERTIES.include(f))if(!Element.Layout.COMPOSITE_PROPERTIES.include(f)){var i= +this.get(f);if(i!=null){f=f;if(f.include("border"))f+="-width";f=f.camelize();e[f]=i+"px"}}},this);return e},inspect:function(){return"#"}});Object.extend(Element.Layout,{PROPERTIES:$w("height width top left right bottom border-left border-right border-top border-bottom padding-left padding-right padding-top padding-bottom margin-top margin-bottom margin-left margin-right padding-box-width padding-box-height border-box-width border-box-height margin-box-width margin-box-height"),COMPOSITE_PROPERTIES:$w("padding-box-width padding-box-height margin-box-width margin-box-height border-box-width border-box-height"), +COMPUTATIONS:{height:function(){this._preComputing||this._begin();var c=this.get("border-box-height");if(c<=0){this._preComputing||this._end();return 0}var e=this.get("border-top"),f=this.get("border-bottom"),i=this.get("padding-top"),o=this.get("padding-bottom");this._preComputing||this._end();return c-e-f-i-o},width:function(){this._preComputing||this._begin();var c=this.get("border-box-width");if(c<=0){this._preComputing||this._end();return 0}var e=this.get("border-left"),f=this.get("border-right"), +i=this.get("padding-left"),o=this.get("padding-right");this._preComputing||this._end();return c-e-f-i-o},"padding-box-height":function(){var c=this.get("height"),e=this.get("padding-top"),f=this.get("padding-bottom");return c+e+f},"padding-box-width":function(){var c=this.get("width"),e=this.get("padding-left"),f=this.get("padding-right");return c+e+f},"border-box-height":function(c){this._preComputing||this._begin();c=c.offsetHeight;this._preComputing||this._end();return c},"border-box-width":function(c){this._preComputing|| +this._begin();c=c.offsetWidth;this._preComputing||this._end();return c},"margin-box-height":function(){var c=this.get("border-box-height"),e=this.get("margin-top"),f=this.get("margin-bottom");if(c<=0)return 0;return c+e+f},"margin-box-width":function(){var c=this.get("border-box-width"),e=this.get("margin-left"),f=this.get("margin-right");if(c<=0)return 0;return c+e+f},top:function(c){return c.positionedOffset().top},bottom:function(c){var e=c.positionedOffset();c=c.getOffsetParent().measure("height"); +var f=this.get("border-box-height");return c-f-e.top},left:function(c){return c.positionedOffset().left},right:function(c){var e=c.positionedOffset();c=c.getOffsetParent().measure("width");var f=this.get("border-box-width");return c-f-e.left},"padding-top":function(c){return a(c,"paddingTop")},"padding-bottom":function(c){return a(c,"paddingBottom")},"padding-left":function(c){return a(c,"paddingLeft")},"padding-right":function(c){return a(c,"paddingRight")},"border-top":function(c){return a(c,"borderTopWidth")}, +"border-bottom":function(c){return a(c,"borderBottomWidth")},"border-left":function(c){return a(c,"borderLeftWidth")},"border-right":function(c){return a(c,"borderRightWidth")},"margin-top":function(c){return a(c,"marginTop")},"margin-bottom":function(c){return a(c,"marginBottom")},"margin-left":function(c){return a(c,"marginLeft")},"margin-right":function(c){return a(c,"marginRight")}}});"getBoundingClientRect"in document.documentElement&&Object.extend(Element.Layout.COMPUTATIONS,{right:function(c){var e= +j(c.getOffsetParent());c=c.getBoundingClientRect();return(e.getBoundingClientRect().right-c.right).round()},bottom:function(c){var e=j(c.getOffsetParent());c=c.getBoundingClientRect();return(e.getBoundingClientRect().bottom-c.bottom).round()}});Element.Offset=Class.create({initialize:function(c,e){this.left=c.round();this.top=e.round();this[0]=this.left;this[1]=this.top},relativeTo:function(c){return new Element.Offset(this.left-c.left,this.top-c.top)},inspect:function(){return"#".interpolate(this)}, +toString:function(){return"[#{left}, #{top}]".interpolate(this)},toArray:function(){return[this.left,this.top]}});if(Prototype.Browser.IE){b=b.wrap(function(c,e){e=$(e);if(e.nodeType===Node.DOCUMENT_NODE||l(e)||e.nodeName.toUpperCase()==="BODY"||e.nodeName.toUpperCase()==="HTML")return $(document.body);var f=e.getStyle("position");if(f!=="static")return c(e);e.setStyle({position:"relative"});var i=c(e);e.setStyle({position:f});return i});g=g.wrap(function(c,e){e=$(e);if(!e.parentNode)return new Element.Offset(0, +0);var f=e.getStyle("position");if(f!=="static")return c(e);var i=e.getOffsetParent();i&&i.getStyle("position")==="fixed"&&j(i);e.setStyle({position:"relative"});i=c(e);e.setStyle({position:f});return i})}else if(Prototype.Browser.Webkit)d=function(c){c=$(c);var e=0,f=0;do{e+=c.offsetTop||0;f+=c.offsetLeft||0;if(c.offsetParent==document.body)if(Element.getStyle(c,"position")=="absolute")break;c=c.offsetParent}while(c);return new Element.Offset(f,e)};Element.addMethods({getLayout:function(c,e){return new Element.Layout(c, +e)},measure:function(c,e){return $(c).getLayout().get(e)},getDimensions:function(c){c=$(c);var e=Element.getStyle(c,"display");if(e&&e!=="none")return{width:c.offsetWidth,height:c.offsetHeight};e=c.style;e={visibility:e.visibility,position:e.position,display:e.display};var f={visibility:"hidden",display:"block"};if(e.position!=="fixed")f.position="absolute";Element.setStyle(c,f);f={width:c.offsetWidth,height:c.offsetHeight};Element.setStyle(c,e);return f},getOffsetParent:b,cumulativeOffset:d,positionedOffset:g, +cumulativeScrollOffset:function(c){var e=0,f=0;do{e+=c.scrollTop||0;f+=c.scrollLeft||0;c=c.parentNode}while(c);return new Element.Offset(f,e)},viewportOffset:function(c){$(o);var e=0,f=0,i=document.body,o=c;do{e+=o.offsetTop||0;f+=o.offsetLeft||0;if(o.offsetParent==i&&Element.getStyle(o,"position")=="absolute")break}while(o=o.offsetParent);o=c;do if(o!=i){e-=o.scrollTop||0;f-=o.scrollLeft||0}while(o=o.parentNode);return new Element.Offset(f,e)},absolutize:function(c){c=$(c);if(Element.getStyle(c, +"position")==="absolute")return c;var e=b(c),f=c.viewportOffset();e=e.viewportOffset();f=f.relativeTo(e);e=c.getLayout();c.store("prototype_absolutize_original_styles",{left:c.getStyle("left"),top:c.getStyle("top"),width:c.getStyle("width"),height:c.getStyle("height")});c.setStyle({position:"absolute",top:f.top+"px",left:f.left+"px",width:e.get("width")+"px",height:e.get("height")+"px"});return c},relativize:function(c){c=$(c);if(Element.getStyle(c,"position")==="relative")return c;var e=c.retrieve("prototype_absolutize_original_styles"); +e&&c.setStyle(e);return c}});"getBoundingClientRect"in document.documentElement&&Element.addMethods({viewportOffset:function(c){c=$(c);if(l(c))return new Element.Offset(0,0);c=c.getBoundingClientRect();var e=document.documentElement;return new Element.Offset(c.left-e.clientLeft,c.top-e.clientTop)}})})();window.$$=function(){var a=$A(arguments).join(", ");return Prototype.Selector.select(a,document)}; +Prototype.Selector=function(){function a(d){for(var g=0,l=d.length;g0){v=s;break}}s=s[h]}n[k]=v}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,g=0,l=Object.prototype.toString,j=false,c=true;[0,0].sort(function(){c=false;return 0});var e=function(h,m,p,n){p=p||[];var q=m=m||document;if(m.nodeType!==1&&m.nodeType!==9)return[]; +if(!h||typeof h!=="string")return p;for(var r=[],k,t,s,v,w=true,A=C(m),x=h;(d.exec(""),k=d.exec(x))!==null;){x=k[3];r.push(k[1]);if(k[2]){v=k[3];break}}if(r.length>1&&i.exec(h))if(r.length===2&&f.relative[r[0]])t=E(r[0]+r[1],m);else for(t=f.relative[r[0]]?[m]:e(r.shift(),m);r.length;){h=r.shift();if(f.relative[h])h+=r.shift();t=E(h,t)}else{if(!n&&r.length>1&&m.nodeType===9&&!A&&f.match.ID.test(r[0])&&!f.match.ID.test(r[r.length-1])){k=e.find(r.shift(),m,A);m=k.expr?e.filter(k.expr,k.set)[0]:k.set[0]}if(m){k= +n?{expr:r.pop(),set:u(n)}:e.find(r.pop(),r.length===1&&(r[0]==="~"||r[0]==="+")&&m.parentNode?m.parentNode:m,A);t=k.expr?e.filter(k.expr,k.set):k.set;if(r.length>0)s=u(t);else w=false;for(;r.length;){var z=r.pop();k=z;if(f.relative[z])k=r.pop();else z="";if(k==null)k=m;f.relative[z](s,k,A)}}else s=[]}s||(s=t);if(!s)throw"Syntax error, unrecognized expression: "+(z||h);if(l.call(s)==="[object Array]")if(w)if(m&&m.nodeType===1)for(h=0;s[h]!=null;h++){if(s[h]&&(s[h]===true||s[h].nodeType===1&&D(m,s[h])))p.push(t[h])}else for(h= +0;s[h]!=null;h++)s[h]&&s[h].nodeType===1&&p.push(t[h]);else p.push.apply(p,s);else u(s,p);if(v){e(v,q,p,n);e.uniqueSort(p)}return p};e.uniqueSort=function(h){if(B){j=c;h.sort(B);if(j)for(var m=1;m":function(h,m,p){var n=typeof m==="string";if(n&&!/\W/.test(m)){m=p?m:m.toUpperCase();p=0;for(var q=h.length;p=0))p||n.push(k);else if(p)m[r]=false;return false},ID:function(h){return h[1].replace(/\\/g,"")},TAG:function(h,m){for(var p=0;m[p]===false;p++);return m[p]&&C(m[p])?h[1]:h[1].toUpperCase()},CHILD:function(h){if(h[1]=="nth"){var m=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(h[2]=="even"&&"2n"||h[2]=="odd"&&"2n+1"||!/\D/.test(h[2])&&"0n+"+h[2]||h[2]);h[2]=m[1]+(m[2]|| +1)-0;h[3]=m[3]-0}h[0]=g++;return h},ATTR:function(h,m,p,n,q,r){m=h[1].replace(/\\/g,"");if(!r&&f.attrMap[m])h[1]=f.attrMap[m];if(h[2]==="~=")h[4]=" "+h[4]+" ";return h},PSEUDO:function(h,m,p,n,q){if(h[1]==="not")if((d.exec(h[3])||"").length>1||/^\w/.test(h[3]))h[3]=e(h[3],null,null,m);else{h=e.filter(h[3],m,p,true^q);p||n.push.apply(n,h);return false}else if(f.match.POS.test(h[0])||f.match.CHILD.test(h[0]))return true;return h},POS:function(h){h.unshift(true);return h}},filters:{enabled:function(h){return h.disabled=== +false&&h.type!=="hidden"},disabled:function(h){return h.disabled===true},checked:function(h){return h.checked===true},selected:function(h){return h.selected===true},parent:function(h){return!!h.firstChild},empty:function(h){return!h.firstChild},has:function(h,m,p){return!!e(p[3],h).length},header:function(h){return/h\d/i.test(h.nodeName)},text:function(h){return"text"===h.type},radio:function(h){return"radio"===h.type},checkbox:function(h){return"checkbox"===h.type},file:function(h){return"file"=== +h.type},password:function(h){return"password"===h.type},submit:function(h){return"submit"===h.type},image:function(h){return"image"===h.type},reset:function(h){return"reset"===h.type},button:function(h){return"button"===h.type||h.nodeName.toUpperCase()==="BUTTON"},input:function(h){return/input|select|textarea|button/i.test(h.nodeName)}},setFilters:{first:function(h,m){return m===0},last:function(h,m,p,n){return m===n.length-1},even:function(h,m){return m%2===0},odd:function(h,m){return m%2===1}, +lt:function(h,m,p){return mp[3]-0},nth:function(h,m,p){return p[3]-0==m},eq:function(h,m,p){return p[3]-0==m}},filter:{PSEUDO:function(h,m,p,n){var q=m[1],r=f.filters[q];if(r)return r(h,p,m,n);else if(q==="contains")return(h.textContent||h.innerText||"").indexOf(m[3])>=0;else if(q==="not"){m=m[3];p=0;for(n=m.length;p=0}},ID:function(h,m){return h.nodeType===1&&h.getAttribute("id")===m},TAG:function(h,m){return m==="*"&&h.nodeType===1||h.nodeName=== +m},CLASS:function(h,m){return(" "+(h.className||h.getAttribute("class"))+" ").indexOf(m)>-1},ATTR:function(h,m){var p=m[1];p=f.attrHandle[p]?f.attrHandle[p](h):h[p]!=null?h[p]:h.getAttribute(p);var n=p+"",q=m[2],r=m[4];return p==null?q==="!=":q==="="?n===r:q==="*="?n.indexOf(r)>=0:q==="~="?(" "+n+" ").indexOf(r)>=0:!r?n&&p!==false:q==="!="?n!=r:q==="^="?n.indexOf(r)===0:q==="$="?n.substr(n.length-r.length)===r:q==="|="?n===r||n.substr(0,r.length+1)===r+"-":false},POS:function(h,m,p,n){var q=f.setFilters[m[2]]; +if(q)return q(h,p,m,n)}}},i=f.match.POS,o;for(o in f.match){f.match[o]=RegExp(f.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source);f.leftMatch[o]=RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[o].source)}var u=function(h,m){h=Array.prototype.slice.call(h,0);if(m){m.push.apply(m,h);return m}return h};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(y){u=function(h,m){var p=m||[];if(l.call(h)==="[object Array]")Array.prototype.push.apply(p,h);else if(typeof h.length==="number")for(var n= +0,q=h.length;n";var p=document.documentElement;p.insertBefore(h,p.firstChild);if(document.getElementById(m)){f.find.ID=function(n, +q,r){if(typeof q.getElementById!=="undefined"&&!r)return(q=q.getElementById(n[1]))?q.id===n[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===n[1]?[q]:undefined:[]};f.filter.ID=function(n,q){var r=typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&r&&r.nodeValue===q}}p.removeChild(h);p=h=null})();(function(){var h=document.createElement("div");h.appendChild(document.createComment(""));if(h.getElementsByTagName("*").length>0)f.find.TAG= +function(m,p){var n=p.getElementsByTagName(m[1]);if(m[1]==="*"){for(var q=[],r=0;n[r];r++)n[r].nodeType===1&&q.push(n[r]);n=q}return n};h.innerHTML="";if(h.firstChild&&typeof h.firstChild.getAttribute!=="undefined"&&h.firstChild.getAttribute("href")!=="#")f.attrHandle.href=function(m){return m.getAttribute("href",2)};h=null})();document.querySelectorAll&&function(){var h=e,m=document.createElement("div");m.innerHTML="

";if(!(m.querySelectorAll&&m.querySelectorAll(".TEST").length=== +0)){e=function(n,q,r,k){q=q||document;if(!k&&q.nodeType===9&&!C(q))try{return u(q.querySelectorAll(n),r)}catch(t){}return h(n,q,r,k)};for(var p in h)e[p]=h[p];m=null}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var h=document.createElement("div");h.innerHTML="
";if(h.getElementsByClassName("e").length!==0){h.lastChild.className="e";if(h.getElementsByClassName("e").length!==1){f.order.splice(1,0,"CLASS"); +f.find.CLASS=function(m,p,n){if(typeof p.getElementsByClassName!=="undefined"&&!n)return p.getElementsByClassName(m[1])};h=null}}}();var D=document.compareDocumentPosition?function(h,m){return h.compareDocumentPosition(m)&16}:function(h,m){return h!==m&&(h.contains?h.contains(m):true)},C=function(h){return h.nodeType===9&&h.documentElement.nodeName!=="HTML"||!!h.ownerDocument&&h.ownerDocument.documentElement.nodeName!=="HTML"},E=function(h,m){for(var p=[],n="",q,r=m.nodeType?[m]:m;q=f.match.PSEUDO.exec(h);){n+= +q[0];h=h.replace(f.match.PSEUDO,"")}h=f.relative[h]?h+"*":h;q=0;for(var k=r.length;q=0}).sortBy(function(d){return d.tabIndex}).first();return b?b:a.find(function(d){return/^(?:input|select|textarea)$/i.test(d.tagName)})}, +focusFirstElement:function(a){a=$(a);var b=a.findFirstElement();b&&b.activate();return a},request:function(a,b){a=$(a);b=Object.clone(b||{});var d=b.parameters,g=a.readAttribute("action")||"";if(g.blank())g=window.location.href;b.parameters=a.serialize(true);if(d){if(Object.isString(d))d=d.toQueryParams();Object.extend(b.parameters,d)}if(a.hasAttribute("method")&&!b.method)b.method=a.method;return new Ajax.Request(g,b)}}; +Form.Element={focus:function(a){$(a).focus();return a},select:function(a){$(a).select();return a}}; +Form.Element.Methods={serialize:function(a){a=$(a);if(!a.disabled&&a.name){var b=a.getValue();if(b!=undefined){var d={};d[a.name]=b;return Object.toQueryString(d)}}return""},getValue:function(a){a=$(a);var b=a.tagName.toLowerCase();return Form.Element.Serializers[b](a)},setValue:function(a,b){a=$(a);var d=a.tagName.toLowerCase();Form.Element.Serializers[d](a,b);return a},clear:function(a){$(a).value="";return a},present:function(a){return $(a).value!=""},activate:function(a){a=$(a);try{a.focus(); +if(a.select&&(a.tagName.toLowerCase()!="input"||!/^(?:button|reset|submit)$/i.test(a.type)))a.select()}catch(b){}return a},disable:function(a){a=$(a);a.disabled=true;return a},enable:function(a){a=$(a);a.disabled=false;return a}};var Field=Form.Element,$F=Form.Element.Methods.getValue; +Form.Element.Serializers=function(){function a(j,c){if(Object.isUndefined(c))return j.checked?j.value:null;else j.checked=!!c}function b(j,c){if(Object.isUndefined(c))return j.value;else j.value=c}function d(j){var c=j.selectedIndex;return c>=0?l(j.options[c]):null}function g(j){var c,e=j.length;if(!e)return null;var f=0;for(c=[];f=this.offset[1]&&d=this.offset[0]&&b= +this.offset[1]&&this.ycomp=this.offset[0]&&this.xcomp0})._each(a)},set:function(a){this.element.className=a},add:function(a){this.include(a)||this.set($A(this).concat(a).join(" "))},remove:function(a){this.include(a)&&this.set($A(this).without(a).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable); +(function(){window.Selector=Class.create({initialize:function(a){this.expression=a.strip()},findElements:function(a){return Prototype.Selector.select(this.expression,a)},match:function(a){return Prototype.Selector.match(a,this.expression)},toString:function(){return this.expression},inspect:function(){return"#"}});Object.extend(Selector,{matchElements:function(a,b){for(var d=Prototype.Selector.match,g=[],l=0,j=a.length;l +Date: Sat Nov 27 17:33:59 2010 +0100 + + Replace Prototype 1.6.0.3 with 1.6.1.0. Also replaced jQuery 1.4.1 with 1.4.4. Added MooTools 1.3.0 full compat. Minified libraries for faster load time. + +commit 50623fd93a4d2c26cb66f63b73ba7208489033ac +Author: Galambosi Balázs +Date: Sat Nov 27 17:05:08 2010 +0100 + + Prototype - added v1.7.0.0, fixed insertafter test which previously returned undefined + +commit db944af86bd78ff87b70cb2d6f60e3af1620f560 +Author: Galambosi Balázs +Date: Sat Nov 27 16:23:55 2010 +0100 + + puredom - moved makeArray to utility, removed unnecessary document.body references for getElementsByTagName, also reported by @kangax + +commit 06d81b53f0662bec04219e2d6e2c6434d94d58a4 +Author: Galambosi Balázs +Date: Sat Nov 27 16:13:26 2010 +0100 + + puredom sethtml now iterates through a static array otherwise it's painfully slow + +commit 538d3f10ac60e629f262645f9965a8c89291c3e2 +Author: Martin Wittemann +Date: Wed Sep 29 10:14:05 2010 +0200 + + Added stable version of qooxdoo 1.2 + +commit 838506205099bb81aad3cf3429f9bcb04f6131b9 +Merge: f363e77 4cf239a +Author: Peter Higgins +Date: Wed Sep 15 16:03:39 2010 -0400 + + bumping to 1.5 + +commit f363e773e0291ec138caea862cebecba5492bb7a +Author: Peter Higgins +Date: Wed Jan 27 19:30:05 2010 -0500 + + bumping dojo to 1.4.1 + +commit dd1f24d0ba49d0c251730e7866013f63ffdc6b3c +Author: Peter Higgins +Date: Wed Jan 27 18:22:11 2010 -0500 + + adding in jquery 1.4.1 + +commit 7c958c728dee7e527ee7d63555cb7ab1ef133cb3 +Author: Ben Lowery +Date: Tue Dec 8 10:52:22 2009 -0500 + + Randomize run position within each row + +commit 565c536150e701a9c7e3d9620903d01439029321 +Author: Peter Higgins +Date: Tue Dec 8 08:51:38 2009 -0500 + + adding in johns touches to jq-tests + +commit 880378d19940b6b52ea88a654f64d5cd551b0535 +Author: Peter Higgins +Date: Tue Dec 8 08:45:31 2009 -0500 + + bumping dojo to 1.4.0, dropping 1.2.3 + +commit 5ed6e105a0dc02124c0cbc19f9bbfed232678630 +Author: dante +Date: Fri Nov 20 11:26:58 2009 -0500 + + manually patching in puredom update as pull request didn't seem to do it + +commit 4301224fe61d190a6afd55f6797719f970e42117 +Author: Peter E Higgins +Date: Tue Aug 18 10:53:34 2009 -0400 + + Updating the setHTML tests for everyone because there are nested div's that are overwritten as part of the initial operation. updating puredom to actually iterate over the list and do the operation described. Updated the sample tests to include wordage forcing the re-querying of the DOM after operation (expected 549 div's after clobbering two nested) and also sneaks in a small change from Diego Perini reported via email regarding accessing an iframe by name to resolve issue getting FuseJS tests running in Safari and Chrome (allegedly window.frames collection is buggy there?) ... + +commit c69b7683906d72a377a518f4d20afb2a792e950e +Author: Peter E Higgins +Date: Sat May 23 15:12:24 2009 -0400 + + updating to moo 1.2.2 (thanks kamicane), putting back dojo 1.3.0 (nice to have to comment out all else and test other versions), commenting moo 1.2.1, and making charts not fail when no data for a particular browser/lib combo exists (chance encounter when updating versions and not emptying the data) + +commit 78f598a5ecd067134aec091e8a04f84ff4ea4769 +Author: Peter E Higgins +Date: Sat May 23 11:05:10 2009 -0400 + + whoops. Updating the dojo.js used for reporting so reporting actually works + +commit 890b2497b3f19e97782b103de520ef943a92e6b5 +Author: Peter E Higgins +Date: Sat May 23 11:00:24 2009 -0400 + + making a .sh to push the new data to dtk.org (no brosercap.ini there to do it locally) + +commit fbc7d0fe4d9edc84c3369631a547514a5447d7ac +Author: Peter E Higgins +Date: Sat May 23 10:35:46 2009 -0400 + + updating to dojo 1.3.1. Moo can be updated too, they are at 1.2.2 + +commit d1cc2157ebc95c2294f0c86e1cbc8ca6b8334cbf +Author: Peter E Higgins +Date: Sat May 23 10:25:52 2009 -0400 + + whoops. finally pulled eric's YUI changes, sorry for the delay. also adding basic info in charts about browsers and platforms tested + +commit aecfa8006ec2ef2e3aa9fb9ffaf87ead61992b94 +Author: Eric Ferraiuolo +Date: Mon Apr 20 21:03:05 2009 -0400 + + Updated the finale test for YUI 2.7.0 to match PureDOM's baseline; which will also be more accurate for older IE versions. + +commit c73d8133b1a963a4fec631dc4b9a1936107aa341 +Author: Peter E Higgins +Date: Fri Apr 10 21:02:40 2009 -0400 + + making bind-attr more apples-to-apples: institute rule (which applies to all existing tests already) which formalizes how the function should be made/passed. adjusting dojo and plugd tests to match other test behaviors. + +commit 171de8acab4c51f54a1abf63061bbbc0c328f86d +Author: Peter E Higgins +Date: Fri Apr 10 09:25:52 2009 -0400 + + adding in new color for 'fastest/baseline', using min speed as a baseline for the threshold + (could probably be better algo), renamed "puredom" $ to "utility" to indicate it isn't a library, + and added footnote regarding. + +commit e1a1e4a8d73ce04e15df26281efb4957cd3714ae +Author: Peter E Higgins +Date: Thu Apr 9 09:28:45 2009 -0400 + + woot. Charting chains! + +commit 90f42484d813306ace4353159657a8c327dccf45 +Merge: ad53021 434db7d +Author: Peter E Higgins +Date: Wed Apr 8 23:43:36 2009 -0400 + + Merge branch 'master' of git://github.com/eferraiuolo/taskspeed + +commit 434db7defc2eae1603559f5e68cc50b9ac9dbdfe +Author: Eric Ferraiuolo +Date: Wed Apr 8 23:30:35 2009 -0400 + + Finialized YUI 2.7.0 test. Commented YUI3 test out of config, as it's still pre-beta code. + +commit ad530211bda381b57bce280c49830637e2cc2982 +Author: Peter E Higgins +Date: Wed Apr 8 16:52:19 2009 -0400 + + make sure all charts are 0-based. + +commit 41e5f90961556b3098c448c59bc68797c7cc7413 +Author: Peter E Higgins +Date: Wed Apr 8 14:39:11 2009 -0400 + + adding in exclude library/browser UI + +commit 65cb8411e0041f3fcfc62a0910b0b2bb22c04f91 +Author: Peter E Higgins +Date: Wed Apr 8 10:09:40 2009 -0400 + + maintaining the brand :) + +commit f701e0a2e5f7828519ea7f980f0b54ca17702c3d +Author: Peter E Higgins +Date: Wed Apr 8 09:58:06 2009 -0400 + + okay, finally got it all sorted out. Thanks Andrea Giammarchi for the pureDom tests and making sure I had the right tests etc + +commit effa555bdad0234cf67753e33eb5ced624b0ece2 +Author: Peter E Higgins +Date: Wed Apr 8 09:38:56 2009 -0400 + + whoops. Dumb typeo makes the pureDom tests fail badly. + +commit 45009b6bbc868c94f6982f7fb06b5c70a857ed4e +Author: Peter E Higgins +Date: Wed Apr 8 09:18:40 2009 -0400 + + updating the qooxdoo version (to trunk?) -- forgot to push this from the other day. + adding in reflection.js and pure-tests.js from @webreflection, though I'm seeing errors + so pushing early so that we might find what the difference is. + +commit 4cf239aa4c711609651ae2b06b55be88338e262b +Author: Fabian Jakobs +Date: Tue Apr 7 15:00:42 2009 +0200 + + add git ignore file + +commit 011a9e94414e41979f9e29905fadb80e1221ef02 +Author: Fabian Jakobs +Date: Tue Apr 7 11:16:29 2009 +0200 + + Change qooxdoo version in ini file as well. + +commit 8770d35f8ae27f89917085fa08e7926400fa081e +Author: Fabian Jakobs +Date: Mon Apr 6 16:44:12 2009 +0200 + + rename qooxdoo 0.8.2 to qooxdoo 0.8.3-pre + +commit 5273412583e8799282dadcb29887512f039135da +Merge: 341277d 3c5a70f +Author: Fabian Jakobs +Date: Sat Apr 4 15:57:06 2009 +0200 + + Merge branch 'master' of git://github.com/phiggins42/taskspeed + + Conflicts: + + tests/qooxdoo-tests.js + +commit 341277dca059a73e0cb9665fc77de44ec9a8d06c +Author: fabianpb +Date: Sat Apr 4 15:34:59 2009 +0200 + + fix IE issues + +commit 0feb1e767d89f6080c0aeaf0234300f3a9135f9e +Author: Eric Ferraiuolo +Date: Fri Apr 3 18:27:48 2009 -0400 + + Worked with Luke Smith to get YUI2 in shape, running faster now in the tests where it was slow. Added some tweaks to YUI3 to help it out some. + +commit d8df30207456ddbcf9b0d25548b33aa32fcef6fe +Author: Eric Ferraiuolo +Date: Fri Apr 3 15:44:59 2009 -0400 + + Updated YUI and YUI3 tests. Also uncommented YUI3 in the config to it runs with the other test cases. + +commit b4fc7f6275c95ceafcbc0fcdef64c26ac25c685d +Author: Jeff +Date: Fri Apr 3 09:08:39 2009 -0700 + + Added test for insertAfter. + +commit 4e798e7d119128c956be6dc8d9dda07080b93176 +Author: Jeff +Date: Fri Apr 3 09:04:43 2009 -0700 + + Added implementation for insertBefore test. + +commit c0ffe40604a77657f81fae843f2cc6d3057d9259 +Author: Jeff +Date: Fri Apr 3 08:51:07 2009 -0700 + + Fixed the yui3 table test so that it passes. + +commit 3c5a70f4c9056a7fe497b0c7ab616d9b759d65a6 +Author: Peter E Higgins +Date: Fri Apr 3 10:21:52 2009 -0400 + + only whitespace changes to qooxdoo tests, for my own personal readability :) + oh, catching one stray global n + +commit c275050bab0016ca0f39cf87a9806b5491b2c16b +Author: Peter E Higgins +Date: Fri Apr 3 10:03:53 2009 -0400 + + changing link to my site, not dojo's + +commit 996568e9bd9dd527bdea59883d8259d78d3d84ea +Author: fabianpb +Date: Fri Apr 3 15:46:20 2009 +0200 + + "improve addclass-odd test" + +commit 5f1fde29cf639a6ee3108e921be31c305ee26e56 +Author: fabianpb +Date: Fri Apr 3 15:35:28 2009 +0200 + + fix qooxdoo selector problem + +commit 96e0f320b26530bb575813ff5bb9d5c4926d2e05 +Author: Fabian Jakobs +Date: Fri Apr 3 14:05:15 2009 +0200 + + add qooxdoo tests + +commit 6045b219eb4663eb359349e672140d348fc5a1ef +Author: Eric Ferraiuolo +Date: Wed Apr 1 15:59:36 2009 -0400 + + created test case for YUI 2.7.0, commented out 3.0 for the time being. + +commit b4ff47febcfb30c798e3e17f9141b1c9c7a9772f +Author: Eric Ferraiuolo +Date: Wed Apr 1 03:07:21 2009 -0400 + + finished tests that could be completed for now + +commit bac7734adef5f13d11b787e62ab56a6283036b9f +Author: Eric Ferraiuolo +Date: Wed Apr 1 02:40:23 2009 -0400 + + added a first run at YUI3 tests, still have a few more to do + +commit 3bc85f9a119ad4ec512beaf84ea78f5a391013ae +Author: Peter E Higgins +Date: Sun Mar 29 18:56:49 2009 -0400 + + thanks kamicane for the quick turnaround on a good logo :) + +commit 7f2b8f97205758bb8aa2efdfef10c69e060089fc +Author: Peter E Higgins +Date: Sun Mar 29 18:53:05 2009 -0400 + + removing the big timeout. redundant with the layer. + +commit f3e7948f5b7d0cc62bb35a3f83d69b6ab455a32e +Author: Peter E Higgins +Date: Sun Mar 29 18:23:04 2009 -0400 + + adding a link to the charts.html from the main taskspeed page. + +commit 7c9a3f005f9438108156a9aaf4ddb859d8ac846c +Author: Peter E Higgins +Date: Sun Mar 29 18:20:18 2009 -0400 + + adding in the charting stuff. + +commit 0d9287a0bfa577b42b78787f2b14744375677999 +Author: Peter E Higgins +Date: Fri Mar 27 20:47:44 2009 -0400 + + wow, that was a stupid mistake. folks: dev in IE, fix for firefox. lots easier. + +commit e6e27c9c47ad8af6984b265fa5a168bc08d92fc2 +Author: Peter E Higgins +Date: Fri Mar 27 19:42:32 2009 -0400 + + little cleanups. adding official dojo 1.3.0, and an autoConflict plugd (instead of the manual one) also adding in basic basic + reporting mechanism + +commit 3e4746cc3d8c3d1431db66a8a1ed260f14c844bf +Author: Peter E Higgins +Date: Sat Mar 14 10:59:03 2009 -0400 + + cleaning up available versions in frameworks, adding in plugd tests, increaing the timeout between tests (7 frameworks per test was causing one to _always_ lag badly, skewing the results. this seems to normalize it, though anxious for subtleGradient's new suite to land.) + +commit 11eaaa8cd4549d0c2d522028e8874a89c40fddc5 +Author: Peter E Higgins +Date: Fri Feb 27 17:47:38 2009 -0500 + + minor balance change in the inser tests, eliminating extra query and unifying the sample-tests.js text + +commit e309e386f8cf216360472643dc3161720b811186 +Author: Peter E Higgins +Date: Fri Feb 27 17:30:05 2009 -0500 + + adding in dojo 1.2.3 example. only tested in safari so may be broken in IE (table test, maybe not) likely will be removed but I was curious. + +commit c9544be9f78d5433e6a791fa491432f1e4722ac7 +Author: Peter E Higgins +Date: Fri Feb 27 15:51:39 2009 -0500 + + updates the footer the seem more current and have a proper link (maybe should also link 'based on slickspeed' but need to ask moo about that) . merging in John's changes with modification - particularly: the rewording of the table and make tests, the use of plain string generation and one-pass html generation (not the point of the test). reverted tr td "abritrary" selection and other minor cleanups. + +commit b93cedecbf725359ada668a88c3db0159b78a00e +Author: John Resig +Date: Fri Feb 27 13:31:26 2009 -0500 + + Updated the jQuery tests to match what's listed in the sample file and better use jQuery techniques. + +commit bdfa5305f7b99850549da92be016ba150dca14fb +Author: John Resig +Date: Fri Feb 27 13:30:52 2009 -0500 + + Fixed a problem with SlickSpeed outputting empty tests when there's extra endlines. + +commit a8dfa7a8adc77fe3d4ee0efe330b8aa2a46fa05b +Author: John Resig +Date: Fri Feb 27 13:30:21 2009 -0500 + + Updated the explanations of the sample tests to be more accurate and be in the right order. + +commit e51b31f333152b70660f0fe49ea30165abb52d18 +Author: John Resig +Date: Fri Feb 27 13:29:15 2009 -0500 + + Re-ordered the selector list to match those in the js files. + +commit c7ac27c2df147b69203f3fb6ad9fc81d7b57bb10 +Author: Peter E Higgins +Date: Fri Feb 27 08:14:17 2009 -0500 + + style fixes some, update moo destroy test to include second query, update prototype tests all courtesy Andrew Dupont. + +commit edf180c6d0ec17e2be140a477e08e83509136d43 +Author: Thomas Aylott +Date: Fri Feb 27 00:22:00 2009 -0500 + + updated prototype tests to be simpler and more Prototypey + +commit b19c644b45dd83d9162ca36801418f5b2386bfb6 +Author: Thomas Aylott +Date: Thu Feb 26 23:55:39 2009 -0500 + + improve the moo tests a wee bit + +commit d434a43349d4aff50cef921bfeed053fc582dc7f +Author: Thomas Aylott +Date: Thu Feb 26 23:55:04 2009 -0500 + + fixed prototype tests to run better, faster and actually pass ;) + +commit 5e14973bfec60352e5dea7fd100758b89c6ec6c2 +Author: Thomas Aylott +Date: Thu Feb 26 23:54:43 2009 -0500 + + kindof important rule if you want everything else to work + +commit ef6f4fbc115e7184ac6d1fe4fa37dbfe8c3f80bf +Author: Peter E Higgins +Date: Thu Feb 26 22:43:46 2009 -0500 + + adding in first pass at prototype test suite courtesy Andrew Dupont (thanks!) + +commit 2636193abc2338768e58273a31dd4e4c0bbffe2a +Merge: b7faed8 5e2d14e +Author: Thomas Aylott +Date: Thu Feb 26 21:01:25 2009 -0500 + + Merge branch 'master' of git://github.com/phiggins42/taskspeed + +commit b7faed8c476116bbc4ff426fcf0244f6531ae924 +Author: Thomas Aylott +Date: Thu Feb 26 21:00:25 2009 -0500 + + [FIXED] tooltip for IE + +commit 69f98c2733587f3c2109aee56b3b5e238f2d9148 +Author: Thomas Aylott +Date: Thu Feb 26 21:00:13 2009 -0500 + + faster "attr" + +commit 5e2d14ec28094a0f7f971cd01aae46c0eef001c8 +Author: Peter E Higgins +Date: Thu Feb 26 20:55:36 2009 -0500 + + simplifies jq tests, and a dojo test. not so worried about finale length anymore, but maybe add new test after to verify. + +commit 61c8b9efc30128def278114b50517e8467051e3a +Author: Thomas Aylott +Date: Thu Feb 26 17:17:22 2009 -0500 + + fixed moo tests + +commit b9fb9f56ee3725ba7e4b60a1113be88cad91c7b5 +Author: Thomas Aylott +Date: Thu Feb 26 17:16:44 2009 -0500 + + rearranged frameworks + +commit 4ebbde867865917509db220e083180a410217923 +Author: Thomas Aylott +Date: Thu Feb 26 17:16:19 2009 -0500 + + improved slickspeed style + +commit 8296267bd6b33fca01023a03f471653a39973d58 +Author: Thomas Aylott +Date: Thu Feb 26 16:45:35 2009 -0500 + + removed comments + +commit edd22d9ec16c02f4aaa7fdc42f948792e1d0b173 +Author: Thomas Aylott +Date: Thu Feb 26 16:45:07 2009 -0500 + + click a cell to see the code + +commit 24e2f86b819d590b01e8a2e6544987499de266bb +Author: Valerio Proietti +Date: Thu Feb 26 16:12:51 2009 -0500 + + Finished Moo Tests + +commit 647467991e5175b02f3b3b206d763499f3b12fd4 +Author: Thomas Aylott +Date: Thu Feb 26 16:01:02 2009 -0500 + + jQ + +commit 225a94ca9a59c804e6059be1db6e32db0fcb754e +Author: Thomas Aylott +Date: Thu Feb 26 16:00:19 2009 -0500 + + jQ + +commit 3f8f8a84e40ce1f372937741231a937a8b748b3b +Author: Thomas Aylott +Date: Thu Feb 26 15:59:17 2009 -0500 + + added jQuery closure + +commit 17973e0e0c2fa28c9cc964eaa1a8e9706d1d2b28 +Author: Thomas Aylott +Date: Thu Feb 26 15:25:29 2009 -0500 + + WIP + +commit c5a005d9e4a005e4067796a94dff3af5588f9b9a +Author: Thomas Aylott +Date: Thu Feb 26 14:58:47 2009 -0500 + + WIP MooTools + +commit f438d87c60c81bf168f1e53dd3dc04c5e99a49ea +Author: Thomas Aylott +Date: Thu Feb 26 14:08:40 2009 -0500 + + TaskSpeed ASIS from PHiggins diff --git a/tests/proto-tests.js b/tests/proto-tests.js index 993f440..8b80395 100644 --- a/tests/proto-tests.js +++ b/tests/proto-tests.js @@ -127,7 +127,6 @@ window.tests = { "insertbefore" : function(){ var anchors = $$('.fromcode a'); - anchors.each( function(anchor) { anchor.insert({ before: new Element('p').update("A Link") }); }); @@ -138,7 +137,8 @@ window.tests = { var anchors = $$(".fromcode a"); anchors.each( function(anchor) { anchor.insert({ after: new Element('p').update("After Link") }); - }).length; + }); + return anchors.length; }, "destroy": function(){ diff --git a/tests/pure-tests.js b/tests/pure-tests.js index 87d3eff..5bbf076 100644 --- a/tests/pure-tests.js +++ b/tests/pure-tests.js @@ -39,7 +39,7 @@ window.tests = { for(var attachEvent = utility.attachEvent, callback = function(){}, - li = document.body.getElementsByTagName("li"), + li = document.getElementsByTagName("li"), length = li.length, i = 0, total = 0, node; i < length; ++i @@ -55,7 +55,7 @@ window.tests = { "attr" : function(){ for(var - ul = document.body.getElementsByTagName("ul"), + ul = document.getElementsByTagName("ul"), result = [], length = ul.length, i = 0; i < length; ++i @@ -70,7 +70,7 @@ window.tests = { attachEvent = utility.attachEvent, detachEvent = utility.detachEvent, callback = function(){}, - li = document.body.getElementsByTagName("li"), + li = document.getElementsByTagName("li"), length = li.length, i = 0, total = 0, node; i < length; ++i @@ -140,7 +140,7 @@ window.tests = { }, "addclass-odd" : function(){ - for(var div = document.body.getElementsByTagName("div"), length = div.length, i = 0, total = 0; i < length; ++i) + for(var div = document.getElementsByTagName("div"), length = div.length, i = 0, total = 0; i < length; ++i) total += i % 2 ? !!(div[i].className += " added odd") : !(div[i].className += " added"); return total; }, @@ -163,11 +163,12 @@ window.tests = { }, "sethtml": function(){ - var div = document.body.getElementsByTagName("div"), i = 0, node; - while(node = div[i++]) - node.innerHTML = "

new content

" - ; - return div.length; + var div = document.getElementsByTagName("div"); + var nodes = utility.makeArray(div); + for (var i = nodes.length; i--;) { + nodes[i].innerHTML = "

new content

"; + } + return div.length; }, "insertbefore" : function(){