(function(){this.MooTools={version:'1.4.5',build:'ab8ea8824dc3b24b6666867a2c4ed58ebb762cf0'};var typeOf=this.typeOf=function(item){if(item==null)return'null';if(item.$family!=null)return item.$family();if(item.nodeName){if(item.nodeType==1)return'element';if(item.nodeType==3)return(/\S/).test(item.nodeValue)?'textnode':'whitespace';}else if(typeof item.length=='number'){if(item.callee)return'arguments';if('item'in item)return'collection';} return typeof item;};var instanceOf=this.instanceOf=function(item,object){if(item==null)return false;var constructor=item.$constructor||item.constructor;while(constructor){if(constructor===object)return true;constructor=constructor.parent;} if(!item.hasOwnProperty)return false;return item instanceof object;};var Function=this.Function;var enumerables=true;for(var i in{toString:1})enumerables=null;if(enumerables)enumerables=['hasOwnProperty','valueOf','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','constructor'];Function.prototype.overloadSetter=function(usePlural){var self=this;return function(a,b){if(a==null)return this;if(usePlural||typeof a!='string'){for(var k in a)self.call(this,k,a[k]);if(enumerables)for(var i=enumerables.length;i--;){k=enumerables[i];if(a.hasOwnProperty(k))self.call(this,k,a[k]);}}else{self.call(this,a,b);} return this;};};Function.prototype.overloadGetter=function(usePlural){var self=this;return function(a){var args,result;if(typeof a!='string')args=a;else if(arguments.length>1)args=arguments;else if(usePlural)args=[a];if(args){result={};for(var i=0;i>>0;i>>0;i>>0;for(var i=(from<0)?Math.max(0,length+from):from||0;i>>0,results=Array(length);for(var i=0;i>>0;i-1:String(this).indexOf(string)>-1;},trim:function(){return String(this).replace(/^\s+|\s+$/g,'');},clean:function(){return String(this).replace(/\s+/g,' ').trim();},camelCase:function(){return String(this).replace(/-\D/g,function(match){return match.charAt(1).toUpperCase();});},hyphenate:function(){return String(this).replace(/[A-Z]/g,function(match){return('-'+match.charAt(0).toLowerCase());});},capitalize:function(){return String(this).replace(/\b[a-z]/g,function(match){return match.toUpperCase();});},escapeRegExp:function(){return String(this).replace(/([-.*+?^${}()|[\]\/\\])/g,'\\$1');},toInt:function(base){return parseInt(this,base||10);},toFloat:function(){return parseFloat(this);},hexToRgb:function(array){var hex=String(this).match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(hex)?hex.slice(1).hexToRgb(array):null;},rgbToHex:function(array){var rgb=String(this).match(/\d{1,3}/g);return(rgb)?rgb.rgbToHex(array):null;},substitute:function(object,regexp){return String(this).replace(regexp||(/\\?\{([^{}]+)\}/g),function(match,name){if(match.charAt(0)=='\\')return match.slice(1);return(object[name]!=null)?object[name]:'';});}});Number.implement({limit:function(min,max){return Math.min(max,Math.max(min,this));},round:function(precision){precision=Math.pow(10,precision||0).toFixed(precision<0?-precision:0);return Math.round(this*precision)/precision;},times:function(fn,bind){for(var i=0;i1?Array.slice(arguments,1):null,F=function(){};var bound=function(){var context=that,length=arguments.length;if(this instanceof bound){F.prototype=self.prototype;context=new F;} var result=(!args&&!length)?self.call(context):self.apply(context,args&&length?args.concat(Array.slice(arguments)):args||arguments);return context==that?result:context;};return bound;},pass:function(args,bind){var self=this;if(args!=null)args=Array.from(args);return function(){return self.apply(bind,args||arguments);};},delay:function(delay,bind,args){return setTimeout(this.pass((args==null?[]:args),bind),delay);},periodical:function(periodical,bind,args){return setInterval(this.pass((args==null?[]:args),bind),periodical);}});delete Function.prototype.bind;Function.implement({create:function(options){var self=this;options=options||{};return function(event){var args=options.arguments;args=(args!=null)?Array.from(args):Array.slice(arguments,(options.event)?1:0);if(options.event)args=[event||window.event].extend(args);var returns=function(){return self.apply(options.bind||null,args);};if(options.delay)return setTimeout(returns,options.delay);if(options.periodical)return setInterval(returns,options.periodical);if(options.attempt)return Function.attempt(returns);return returns();};},bind:function(bind,args){var self=this;if(args!=null)args=Array.from(args);return function(){return self.apply(bind,args||arguments);};},bindWithEvent:function(bind,args){var self=this;if(args!=null)args=Array.from(args);return function(event){return self.apply(bind,(args==null)?arguments:[event].concat(args));};},run:function(args,bind){return this.apply(bind,Array.from(args));}});if(Object.create==Function.prototype.create)Object.create=null;var $try=Function.attempt;(function(){var hasOwnProperty=Object.prototype.hasOwnProperty;Object.extend({subset:function(object,keys){var results={};for(var i=0,l=keys.length;i]*>([\s\S]*?)<\/script>/gi,function(all,code){scripts+=code+'\n';return'';});if(exec===true)Browser.exec(scripts);else if(typeOf(exec)=='function')exec(scripts,text);return text;});Browser.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(name,method){window[name]=method;});this.Document=document.$constructor=new Type('Document',function(){});document.$family=Function.from('document').hide();Document.mirror(function(name,method){document[name]=method;});document.html=document.documentElement;if(!document.head)document.head=document.getElementsByTagName('head')[0];if(document.execCommand)try{document.execCommand("BackgroundImageCache",false,true);}catch(e){} if(this.attachEvent&&!this.addEventListener){var unloadEvent=function(){this.detachEvent('onunload',unloadEvent);document.head=document.html=document.window=null;};this.attachEvent('onunload',unloadEvent);} var arrayFrom=Array.from;try{arrayFrom(document.html.childNodes);}catch(e){Array.from=function(item){if(typeof item!='string'&&Type.isEnumerable(item)&&typeOf(item)!='array'){var i=item.length,array=new Array(i);while(i--)array[i]=item[i];return array;} return arrayFrom(item);};var prototype=Array.prototype,slice=prototype.slice;['pop','push','reverse','shift','sort','splice','unshift','concat','join','slice'].each(function(name){var method=prototype[name];Array[name]=function(item){return method.apply(Array.from(item),slice.call(arguments,1));};});} if(Browser.Platform.ios)Browser.Platform.ipod=true;Browser.Engine={};var setEngine=function(name,version){Browser.Engine.name=name;Browser.Engine[name+version]=true;Browser.Engine.version=version;};if(Browser.ie){Browser.Engine.trident=true;switch(Browser.version){case 6:setEngine('trident',4);break;case 7:setEngine('trident',5);break;case 8:setEngine('trident',6);}} if(Browser.firefox){Browser.Engine.gecko=true;if(Browser.version>=3)setEngine('gecko',19);else setEngine('gecko',18);} if(Browser.safari||Browser.chrome){Browser.Engine.webkit=true;switch(Browser.version){case 2:setEngine('webkit',419);break;case 3:setEngine('webkit',420);break;case 4:setEngine('webkit',525);}} if(Browser.opera){Browser.Engine.presto=true;if(Browser.version>=9.6)setEngine('presto',960);else if(Browser.version>=9.5)setEngine('presto',950);else setEngine('presto',925);} if(Browser.name=='unknown'){switch((ua.match(/(?:webkit|khtml|gecko)/)||[])[0]){case'webkit':case'khtml':Browser.Engine.webkit=true;break;case'gecko':Browser.Engine.gecko=true;}} this.$exec=Browser.exec;})();(function(){var _keys={};var DOMEvent=this.DOMEvent=new Type('DOMEvent',function(event,win){if(!win)win=window;event=event||win.event;if(event.$extended)return event;this.event=event;this.$extended=true;this.shift=event.shiftKey;this.control=event.ctrlKey;this.alt=event.altKey;this.meta=event.metaKey;var type=this.type=event.type;var target=event.target||event.srcElement;while(target&&target.nodeType==3)target=target.parentNode;this.target=document.id(target);if(type.indexOf('key')==0){var code=this.code=(event.which||event.keyCode);this.key=_keys[code]||Object.keyOf(Event.Keys,code);if(type=='keydown'){if(code>111&&code<124)this.key='f'+(code-111);else if(code>95&&code<106)this.key=code-96;} if(this.key==null)this.key=String.fromCharCode(code).toLowerCase();}else if(type=='click'||type=='dblclick'||type=='contextmenu'||type=='DOMMouseScroll'||type.indexOf('mouse')==0){var doc=win.document;doc=(!doc.compatMode||doc.compatMode=='CSS1Compat')?doc.html:doc.body;this.page={x:(event.pageX!=null)?event.pageX:event.clientX+doc.scrollLeft,y:(event.pageY!=null)?event.pageY:event.clientY+doc.scrollTop};this.client={x:(event.pageX!=null)?event.pageX-win.pageXOffset:event.clientX,y:(event.pageY!=null)?event.pageY-win.pageYOffset:event.clientY};if(type=='DOMMouseScroll'||type=='mousewheel') this.wheel=(event.wheelDelta)?event.wheelDelta/120:-(event.detail||0)/3;this.rightClick=(event.which==3||event.button==2);if(type=='mouseover'||type=='mouseout'){var related=event.relatedTarget||event[(type=='mouseover'?'from':'to')+'Element'];while(related&&related.nodeType==3)related=related.parentNode;this.relatedTarget=document.id(related);}}else if(type.indexOf('touch')==0||type.indexOf('gesture')==0){this.rotation=event.rotation;this.scale=event.scale;this.targetTouches=event.targetTouches;this.changedTouches=event.changedTouches;var touches=this.touches=event.touches;if(touches&&touches[0]){var touch=touches[0];this.page={x:touch.pageX,y:touch.pageY};this.client={x:touch.clientX,y:touch.clientY};}} if(!this.client)this.client={};if(!this.page)this.page={};});DOMEvent.implement({stop:function(){return this.preventDefault().stopPropagation();},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;}});DOMEvent.defineKey=function(code,key){_keys[code]=key;return this;};DOMEvent.defineKeys=DOMEvent.defineKey.overloadSetter(true);DOMEvent.defineKeys({'38':'up','40':'down','37':'left','39':'right','27':'esc','32':'space','8':'backspace','9':'tab','46':'delete','13':'enter'});})();var Event=DOMEvent;Event.Keys={};Event.Keys=new Hash(Event.Keys);(function(){var Class=this.Class=new Type('Class',function(params){if(instanceOf(params,Function))params={initialize:params};var newClass=function(){reset(this);if(newClass.$prototyping)return this;this.$caller=null;var value=(this.initialize)?this.initialize.apply(this,arguments):this;this.$caller=this.caller=null;return value;}.extend(this).implement(params);newClass.$constructor=Class;newClass.prototype.$constructor=newClass;newClass.prototype.parent=parent;return newClass;});var parent=function(){if(!this.$caller)throw new Error('The method "parent" cannot be called.');var name=this.$caller.$name,parent=this.$caller.$owner.parent,previous=(parent)?parent.prototype[name]:null;if(!previous)throw new Error('The method "'+name+'" has no parent.');return previous.apply(this,arguments);};var reset=function(object){for(var key in object){var value=object[key];switch(typeOf(value)){case'object':var F=function(){};F.prototype=value;object[key]=reset(new F);break;case'array':object[key]=value.clone();break;}} return object;};var wrap=function(self,key,method){if(method.$origin)method=method.$origin;var wrapper=function(){if(method.$protected&&this.$caller==null)throw new Error('The method "'+key+'" cannot be called.');var caller=this.caller,current=this.$caller;this.caller=current;this.$caller=wrapper;var result=method.apply(this,arguments);this.$caller=current;this.caller=caller;return result;}.extend({$owner:self,$origin:method,$name:key});return wrapper;};var implement=function(key,value,retain){if(Class.Mutators.hasOwnProperty(key)){value=Class.Mutators[key].call(this,value);if(value==null)return this;} if(typeOf(value)=='function'){if(value.$hidden)return this;this.prototype[key]=(retain)?value:wrap(this,key,value);}else{Object.merge(this.prototype,key,value);} return this;};var getInstance=function(klass){klass.$prototyping=true;var proto=new klass;delete klass.$prototyping;return proto;};Class.implement('implement',implement.overloadSetter());Class.Mutators={Extends:function(parent){this.parent=parent;this.prototype=getInstance(parent);},Implements:function(items){Array.from(items).each(function(item){var instance=new item;for(var key in instance)implement.call(this,key,instance[key],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 removeOn=function(string){return string.replace(/^on([A-Z])/,function(full,first){return first.toLowerCase();});};this.Events=new Class({$events:{},addEvent:function(type,fn,internal){type=removeOn(type);if(fn==$empty)return this;this.$events[type]=(this.$events[type]||[]).include(fn);if(internal)fn.internal=true;return this;},addEvents:function(events){for(var type in events)this.addEvent(type,events[type]);return this;},fireEvent:function(type,args,delay){type=removeOn(type);var events=this.$events[type];if(!events)return this;args=Array.from(args);events.each(function(fn){if(delay)fn.delay(delay,this,args);else fn.apply(this,args);},this);return this;},removeEvent:function(type,fn){type=removeOn(type);var events=this.$events[type];if(events&&!fn.internal){var index=events.indexOf(fn);if(index!=-1)delete events[index];} return this;},removeEvents:function(events){var type;if(typeOf(events)=='object'){for(type in events)this.removeEvent(type,events[type]);return this;} if(events)events=removeOn(events);for(type in this.$events){if(events&&events!=type)continue;var fns=this.$events[type];for(var i=fns.length;i--;)if(i in fns){this.removeEvent(type,fns[i]);}} return this;}});this.Options=new Class({setOptions:function(){var options=this.options=Object.merge.apply(null,[{},this.options].append(arguments));if(this.addEvent)for(var option in options){if(typeOf(options[option])!='function'||!(/^on[A-Z]/).test(option))continue;this.addEvent(option,options[option]);delete options[option];} return this;}});})();;(function(){var parsed,separatorIndex,combinatorIndex,reversed,cache={},reverseCache={},reUnescape=/\\/g;var parse=function(expression,isReversed){if(expression==null)return null;if(expression.Slick===true)return expression;expression=(''+expression).replace(/^\s+|\s+$/g,'');reversed=!!isReversed;var currentCache=(reversed)?reverseCache:cache;if(currentCache[expression])return currentCache[expression];parsed={Slick:true,expressions:[],raw:expression,reverse:function(){return parse(this.raw,true);}};separatorIndex=-1;while(expression!=(expression=expression.replace(regexp,parser)));parsed.length=parsed.expressions.length;return currentCache[parsed.raw]=(reversed)?reverse(parsed):parsed;};var reverseCombinator=function(combinator){if(combinator==='!')return' ';else if(combinator===' ')return'!';else if((/^!/).test(combinator))return combinator.replace(/^!/,'');else return'!'+combinator;};var reverse=function(expression){var expressions=expression.expressions;for(var i=0;i+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(//,'['+escapeRegExp(">+~`!@$%^&={}\\;/g,'(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])').replace(//g,'(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])'));function parser(rawMatch,separator,combinator,combinatorChildren,tagName,id,className,attributeKey,attributeOperator,attributeQuote,attributeValue,pseudoMarker,pseudoClass,pseudoQuote,pseudoClassQuotedValue,pseudoClassValue){if(separator||separatorIndex===-1){parsed.expressions[++separatorIndex]=[];combinatorIndex=-1;if(separator)return'';} if(combinator||combinatorChildren||combinatorIndex===-1){combinator=combinator||' ';var currentSeparator=parsed.expressions[separatorIndex];if(reversed&¤tSeparator[combinatorIndex]) currentSeparator[combinatorIndex].reverseCombinator=reverseCombinator(combinator);currentSeparator[++combinatorIndex]={combinator:combinator,tag:'*'};} var currentParsed=parsed.expressions[separatorIndex][combinatorIndex];if(tagName){currentParsed.tag=tagName.replace(reUnescape,'');}else if(id){currentParsed.id=id.replace(reUnescape,'');}else if(className){className=className.replace(reUnescape,'');if(!currentParsed.classList)currentParsed.classList=[];if(!currentParsed.classes)currentParsed.classes=[];currentParsed.classList.push(className);currentParsed.classes.push({value:className,regexp:new RegExp('(^|\\s)'+escapeRegExp(className)+'(\\s|$)')});}else if(pseudoClass){pseudoClassValue=pseudoClassValue||pseudoClassQuotedValue;pseudoClassValue=pseudoClassValue?pseudoClassValue.replace(reUnescape,''):null;if(!currentParsed.pseudos)currentParsed.pseudos=[];currentParsed.pseudos.push({key:pseudoClass.replace(reUnescape,''),value:pseudoClassValue,type:pseudoMarker.length==1?'class':'element'});}else if(attributeKey){attributeKey=attributeKey.replace(reUnescape,'');attributeValue=(attributeValue||'').replace(reUnescape,'');var test,regexp;switch(attributeOperator){case'^=':regexp=new RegExp('^'+escapeRegExp(attributeValue));break;case'$=':regexp=new RegExp(escapeRegExp(attributeValue)+'$');break;case'~=':regexp=new RegExp('(^|\\s)'+escapeRegExp(attributeValue)+'(\\s|$)');break;case'|=':regexp=new RegExp('^'+escapeRegExp(attributeValue)+'(-|$)');break;case'=':test=function(value){return attributeValue==value;};break;case'*=':test=function(value){return value&&value.indexOf(attributeValue)>-1;};break;case'!=':test=function(value){return attributeValue!=value;};break;default:test=function(value){return!!value;};} if(attributeValue==''&&(/^[*$^]=$/).test(attributeOperator))test=function(){return false;};if(!test)test=function(value){return value&®exp.test(value);};if(!currentParsed.attributes)currentParsed.attributes=[];currentParsed.attributes.push({key:attributeKey,operator:attributeOperator,value:attributeValue,test:test});} return'';};var Slick=(this.Slick||{});Slick.parse=function(expression){return parse(expression);};Slick.escapeRegExp=escapeRegExp;if(!this.Slick)this.Slick=Slick;}).apply((typeof exports!='undefined')?exports:this);;(function(){var local={},featuresCache={},toString=Object.prototype.toString;local.isNativeCode=function(fn){return(/\{\s*\[native code\]\s*\}/).test(''+fn);};local.isXML=function(document){return(!!document.xmlVersion)||(!!document.xml)||(toString.call(document)=='[object XMLDocument]')||(document.nodeType==9&&document.documentElement.nodeName!='HTML');};local.setDocument=function(document){var nodeType=document.nodeType;if(nodeType==9);else if(nodeType)document=document.ownerDocument;else if(document.navigator)document=document.document;else return;if(this.document===document)return;this.document=document;var root=document.documentElement,rootUid=this.getUIDXML(root),features=featuresCache[rootUid],feature;if(features){for(feature in features){this[feature]=features[feature];} return;} features=featuresCache[rootUid]={};features.root=root;features.isXMLDocument=this.isXML(document);features.brokenStarGEBTN=features.starSelectsClosedQSA=features.idGetsName=features.brokenMixedCaseQSA=features.brokenGEBCN=features.brokenCheckedQSA=features.brokenEmptyAttributeQSA=features.isHTMLDocument=features.nativeMatchesSelector=false;var starSelectsClosed,starSelectsComments,brokenSecondClassNameGEBCN,cachedGetElementsByClassName,brokenFormAttributeGetter;var selected,id='slick_uniqueid';var testNode=document.createElement('div');var testRoot=document.body||document.getElementsByTagName('body')[0]||root;testRoot.appendChild(testNode);try{testNode.innerHTML='';features.isHTMLDocument=!!document.getElementById(id);}catch(e){};if(features.isHTMLDocument){testNode.style.display='none';testNode.appendChild(document.createComment(''));starSelectsComments=(testNode.getElementsByTagName('*').length>1);try{testNode.innerHTML='foo';selected=testNode.getElementsByTagName('*');starSelectsClosed=(selected&&!!selected.length&&selected[0].nodeName.charAt(0)=='/');}catch(e){};features.brokenStarGEBTN=starSelectsComments||starSelectsClosed;try{testNode.innerHTML='';features.idGetsName=document.getElementById(id)===testNode.firstChild;}catch(e){};if(testNode.getElementsByClassName){try{testNode.innerHTML='';testNode.getElementsByClassName('b').length;testNode.firstChild.className='b';cachedGetElementsByClassName=(testNode.getElementsByClassName('b').length!=2);}catch(e){};try{testNode.innerHTML='';brokenSecondClassNameGEBCN=(testNode.getElementsByClassName('a').length!=2);}catch(e){};features.brokenGEBCN=cachedGetElementsByClassName||brokenSecondClassNameGEBCN;} if(testNode.querySelectorAll){try{testNode.innerHTML='foo';selected=testNode.querySelectorAll('*');features.starSelectsClosedQSA=(selected&&!!selected.length&&selected[0].nodeName.charAt(0)=='/');}catch(e){};try{testNode.innerHTML='';features.brokenMixedCaseQSA=!testNode.querySelectorAll('.MiX').length;}catch(e){};try{testNode.innerHTML='';features.brokenCheckedQSA=(testNode.querySelectorAll(':checked').length==0);}catch(e){};try{testNode.innerHTML='';features.brokenEmptyAttributeQSA=(testNode.querySelectorAll('[class*=""]').length!=0);}catch(e){};} try{testNode.innerHTML='
';brokenFormAttributeGetter=(testNode.firstChild.getAttribute('action')!='s');}catch(e){};features.nativeMatchesSelector=root.matchesSelector||root.mozMatchesSelector||root.webkitMatchesSelector;if(features.nativeMatchesSelector)try{features.nativeMatchesSelector.call(root,':slick');features.nativeMatchesSelector=null;}catch(e){};} try{root.slick_expando=1;delete root.slick_expando;features.getUID=this.getUIDHTML;}catch(e){features.getUID=this.getUIDXML;} testRoot.removeChild(testNode);testNode=selected=testRoot=null;features.getAttribute=(features.isHTMLDocument&&brokenFormAttributeGetter)?function(node,name){var method=this.attributeGetters[name];if(method)return method.call(node);var attributeNode=node.getAttributeNode(name);return(attributeNode)?attributeNode.nodeValue:null;}:function(node,name){var method=this.attributeGetters[name];return(method)?method.call(node):node.getAttribute(name);};features.hasAttribute=(root&&this.isNativeCode(root.hasAttribute))?function(node,attribute){return node.hasAttribute(attribute);}:function(node,attribute){node=node.getAttributeNode(attribute);return!!(node&&(node.specified||node.nodeValue));};var nativeRootContains=root&&this.isNativeCode(root.contains),nativeDocumentContains=document&&this.isNativeCode(document.contains);features.contains=(nativeRootContains&&nativeDocumentContains)?function(context,node){return context.contains(node);}:(nativeRootContains&&!nativeDocumentContains)?function(context,node){return context===node||((context===document)?document.documentElement:context).contains(node);}:(root&&root.compareDocumentPosition)?function(context,node){return context===node||!!(context.compareDocumentPosition(node)&16);}:function(context,node){if(node)do{if(node===context)return true;}while((node=node.parentNode));return false;};features.documentSorter=(root.compareDocumentPosition)?function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition)return 0;return a.compareDocumentPosition(b)&4?-1:a===b?0:1;}:('sourceIndex'in root)?function(a,b){if(!a.sourceIndex||!b.sourceIndex)return 0;return a.sourceIndex-b.sourceIndex;}:(document.createRange)?function(a,b){if(!a.ownerDocument||!b.ownerDocument)return 0;var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);return aRange.compareBoundaryPoints(Range.START_TO_END,bRange);}:null;root=null;for(feature in features){this[feature]=features[feature];}};var reSimpleSelector=/^([#.]?)((?:[\w-]+|\*))$/,reEmptyAttribute=/\[.+[*$^]=(?:""|'')?\]/,qsaFailExpCache={};local.search=function(context,expression,append,first){var found=this.found=(first)?null:(append||[]);if(!context)return found;else if(context.navigator)context=context.document;else if(!context.nodeType)return found;var parsed,i,uniques=this.uniques={},hasOthers=!!(append&&append.length),contextIsDocument=(context.nodeType==9);if(this.document!==(contextIsDocument?context:context.ownerDocument))this.setDocument(context);if(hasOthers)for(i=found.length;i--;)uniques[this.getUID(found[i])]=true;if(typeof expression=='string'){var simpleSelector=expression.match(reSimpleSelector);simpleSelectors:if(simpleSelector){var symbol=simpleSelector[1],name=simpleSelector[2],node,nodes;if(!symbol){if(name=='*'&&this.brokenStarGEBTN)break simpleSelectors;nodes=context.getElementsByTagName(name);if(first)return nodes[0]||null;for(i=0;node=nodes[i++];){if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}}else if(symbol=='#'){if(!this.isHTMLDocument||!contextIsDocument)break simpleSelectors;node=context.getElementById(name);if(!node)return found;if(this.idGetsName&&node.getAttributeNode('id').nodeValue!=name)break simpleSelectors;if(first)return node||null;if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}else if(symbol=='.'){if(!this.isHTMLDocument||((!context.getElementsByClassName||this.brokenGEBCN)&&context.querySelectorAll))break simpleSelectors;if(context.getElementsByClassName&&!this.brokenGEBCN){nodes=context.getElementsByClassName(name);if(first)return nodes[0]||null;for(i=0;node=nodes[i++];){if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}}else{var matchClass=new RegExp('(^|\\s)'+Slick.escapeRegExp(name)+'(\\s|$)');nodes=context.getElementsByTagName('*');for(i=0;node=nodes[i++];){className=node.className;if(!(className&&matchClass.test(className)))continue;if(first)return node;if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}}} if(hasOthers)this.sort(found);return(first)?null:found;} querySelector:if(context.querySelectorAll){if(!this.isHTMLDocument||qsaFailExpCache[expression]||this.brokenMixedCaseQSA||(this.brokenCheckedQSA&&expression.indexOf(':checked')>-1)||(this.brokenEmptyAttributeQSA&&reEmptyAttribute.test(expression))||(!contextIsDocument&&expression.indexOf(',')>-1)||Slick.disableQSA)break querySelector;var _expression=expression,_context=context;if(!contextIsDocument){var currentId=_context.getAttribute('id'),slickid='slickid__';_context.setAttribute('id',slickid);_expression='#'+slickid+' '+_expression;context=_context.parentNode;} try{if(first)return context.querySelector(_expression)||null;else nodes=context.querySelectorAll(_expression);}catch(e){qsaFailExpCache[expression]=1;break querySelector;}finally{if(!contextIsDocument){if(currentId)_context.setAttribute('id',currentId);else _context.removeAttribute('id');context=_context;}} if(this.starSelectsClosedQSA)for(i=0;node=nodes[i++];){if(node.nodeName>'@'&&!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}else for(i=0;node=nodes[i++];){if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);} if(hasOthers)this.sort(found);return found;} parsed=this.Slick.parse(expression);if(!parsed.length)return found;}else if(expression==null){return found;}else if(expression.Slick){parsed=expression;}else if(this.contains(context.documentElement||context,expression)){(found)?found.push(expression):found=expression;return found;}else{return found;} this.posNTH={};this.posNTHLast={};this.posNTHType={};this.posNTHTypeLast={};this.push=(!hasOthers&&(first||(parsed.length==1&&parsed.expressions[0].length==1)))?this.pushArray:this.pushUID;if(found==null)found=[];var j,m,n;var combinator,tag,id,classList,classes,attributes,pseudos;var currentItems,currentExpression,currentBit,lastBit,expressions=parsed.expressions;search:for(i=0;(currentExpression=expressions[i]);i++)for(j=0;(currentBit=currentExpression[j]);j++){combinator='combinator:'+currentBit.combinator;if(!this[combinator])continue search;tag=(this.isXMLDocument)?currentBit.tag:currentBit.tag.toUpperCase();id=currentBit.id;classList=currentBit.classList;classes=currentBit.classes;attributes=currentBit.attributes;pseudos=currentBit.pseudos;lastBit=(j===(currentExpression.length-1));this.bitUniques={};if(lastBit){this.uniques=uniques;this.found=found;}else{this.uniques={};this.found=[];} if(j===0){this[combinator](context,tag,id,classes,attributes,pseudos,classList);if(first&&lastBit&&found.length)break search;}else{if(first&&lastBit)for(m=0,n=currentItems.length;m1))this.sort(found);return(first)?(found[0]||null):found;};local.uidx=1;local.uidk='slick-uniqueid';local.getUIDXML=function(node){var uid=node.getAttribute(this.uidk);if(!uid){uid=this.uidx++;node.setAttribute(this.uidk,uid);} return uid;};local.getUIDHTML=function(node){return node.uniqueNumber||(node.uniqueNumber=this.uidx++);};local.sort=function(results){if(!this.documentSorter)return results;results.sort(this.documentSorter);return results;};local.cacheNTH={};local.matchNTH=/^([+-]?\d*)?([a-z]+)?([+-]\d+)?$/;local.parseNTHArgument=function(argument){var parsed=argument.match(this.matchNTH);if(!parsed)return false;var special=parsed[2]||false;var a=parsed[1]||1;if(a=='-')a=-1;var b=+parsed[3]||0;parsed=(special=='n')?{a:a,b:b}:(special=='odd')?{a:2,b:1}:(special=='even')?{a:2,b:0}:{a:0,b:a};return(this.cacheNTH[argument]=parsed);};local.createNTHPseudo=function(child,sibling,positions,ofType){return function(node,argument){var uid=this.getUID(node);if(!this[positions][uid]){var parent=node.parentNode;if(!parent)return false;var el=parent[child],count=1;if(ofType){var nodeName=node.nodeName;do{if(el.nodeName!=nodeName)continue;this[positions][this.getUID(el)]=count++;}while((el=el[sibling]));}else{do{if(el.nodeType!=1)continue;this[positions][this.getUID(el)]=count++;}while((el=el[sibling]));}} argument=argument||'n';var parsed=this.cacheNTH[argument]||this.parseNTHArgument(argument);if(!parsed)return false;var a=parsed.a,b=parsed.b,pos=this[positions][uid];if(a==0)return b==pos;if(a>0){if(pos':function(node,tag,id,classes,attributes,pseudos){if((node=node.firstChild))do{if(node.nodeType==1)this.push(node,tag,id,classes,attributes,pseudos);}while((node=node.nextSibling));},'+':function(node,tag,id,classes,attributes,pseudos){while((node=node.nextSibling))if(node.nodeType==1){this.push(node,tag,id,classes,attributes,pseudos);break;}},'^':function(node,tag,id,classes,attributes,pseudos){node=node.firstChild;if(node){if(node.nodeType==1)this.push(node,tag,id,classes,attributes,pseudos);else this['combinator:+'](node,tag,id,classes,attributes,pseudos);}},'~':function(node,tag,id,classes,attributes,pseudos){while((node=node.nextSibling)){if(node.nodeType!=1)continue;var uid=this.getUID(node);if(this.bitUniques[uid])break;this.bitUniques[uid]=true;this.push(node,tag,id,classes,attributes,pseudos);}},'++':function(node,tag,id,classes,attributes,pseudos){this['combinator:+'](node,tag,id,classes,attributes,pseudos);this['combinator:!+'](node,tag,id,classes,attributes,pseudos);},'~~':function(node,tag,id,classes,attributes,pseudos){this['combinator:~'](node,tag,id,classes,attributes,pseudos);this['combinator:!~'](node,tag,id,classes,attributes,pseudos);},'!':function(node,tag,id,classes,attributes,pseudos){while((node=node.parentNode))if(node!==this.document)this.push(node,tag,id,classes,attributes,pseudos);},'!>':function(node,tag,id,classes,attributes,pseudos){node=node.parentNode;if(node!==this.document)this.push(node,tag,id,classes,attributes,pseudos);},'!+':function(node,tag,id,classes,attributes,pseudos){while((node=node.previousSibling))if(node.nodeType==1){this.push(node,tag,id,classes,attributes,pseudos);break;}},'!^':function(node,tag,id,classes,attributes,pseudos){node=node.lastChild;if(node){if(node.nodeType==1)this.push(node,tag,id,classes,attributes,pseudos);else this['combinator:!+'](node,tag,id,classes,attributes,pseudos);}},'!~':function(node,tag,id,classes,attributes,pseudos){while((node=node.previousSibling)){if(node.nodeType!=1)continue;var uid=this.getUID(node);if(this.bitUniques[uid])break;this.bitUniques[uid]=true;this.push(node,tag,id,classes,attributes,pseudos);}}};for(var c in combinators)local['combinator:'+c]=combinators[c];var pseudos={'empty':function(node){var child=node.firstChild;return!(child&&child.nodeType==1)&&!(node.innerText||node.textContent||'').length;},'not':function(node,expression){return!this.matchNode(node,expression);},'contains':function(node,text){return(node.innerText||node.textContent||'').indexOf(text)>-1;},'first-child':function(node){while((node=node.previousSibling))if(node.nodeType==1)return false;return true;},'last-child':function(node){while((node=node.nextSibling))if(node.nodeType==1)return false;return true;},'only-child':function(node){var prev=node;while((prev=prev.previousSibling))if(prev.nodeType==1)return false;var next=node;while((next=next.nextSibling))if(next.nodeType==1)return false;return true;},'nth-child':local.createNTHPseudo('firstChild','nextSibling','posNTH'),'nth-last-child':local.createNTHPseudo('lastChild','previousSibling','posNTHLast'),'nth-of-type':local.createNTHPseudo('firstChild','nextSibling','posNTHType',true),'nth-last-of-type':local.createNTHPseudo('lastChild','previousSibling','posNTHTypeLast',true),'index':function(node,index){return this['pseudo:nth-child'](node,''+(index+1));},'even':function(node){return this['pseudo:nth-child'](node,'2n');},'odd':function(node){return this['pseudo:nth-child'](node,'2n+1');},'first-of-type':function(node){var nodeName=node.nodeName;while((node=node.previousSibling))if(node.nodeName==nodeName)return false;return true;},'last-of-type':function(node){var nodeName=node.nodeName;while((node=node.nextSibling))if(node.nodeName==nodeName)return false;return true;},'only-of-type':function(node){var prev=node,nodeName=node.nodeName;while((prev=prev.previousSibling))if(prev.nodeName==nodeName)return false;var next=node;while((next=next.nextSibling))if(next.nodeName==nodeName)return false;return true;},'enabled':function(node){return!node.disabled;},'disabled':function(node){return node.disabled;},'checked':function(node){return node.checked||node.selected;},'focus':function(node){return this.isHTMLDocument&&this.document.activeElement===node&&(node.href||node.type||this.hasAttribute(node,'tabindex'));},'root':function(node){return(node===this.root);},'selected':function(node){return node.selected;}};for(var p in pseudos)local['pseudo:'+p]=pseudos[p];var attributeGetters=local.attributeGetters={'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');},'tabindex':function(){var attributeNode=this.getAttributeNode('tabindex');return(attributeNode&&attributeNode.specified)?attributeNode.nodeValue:null;},'type':function(){return this.getAttribute('type');},'maxlength':function(){var attributeNode=this.getAttributeNode('maxLength');return(attributeNode&&attributeNode.specified)?attributeNode.nodeValue:null;}};attributeGetters.MAXLENGTH=attributeGetters.maxLength=attributeGetters.maxlength;var Slick=local.Slick=(this.Slick||{});Slick.version='1.1.7';Slick.search=function(context,expression,append){return local.search(context,expression,append);};Slick.find=function(context,expression){return local.search(context,expression,null,true);};Slick.contains=function(container,node){local.setDocument(container);return local.contains(container,node);};Slick.getAttribute=function(node,name){local.setDocument(node);return local.getAttribute(node,name);};Slick.hasAttribute=function(node,name){local.setDocument(node);return local.hasAttribute(node,name);};Slick.match=function(node,selector){if(!(node&&selector))return false;if(!selector||selector===node)return true;local.setDocument(node);return local.matchNode(node,selector);};Slick.defineAttributeGetter=function(name,fn){local.attributeGetters[name]=fn;return this;};Slick.lookupAttributeGetter=function(name){return local.attributeGetters[name];};Slick.definePseudo=function(name,fn){local['pseudo:'+name]=function(node,argument){return fn.call(node,argument);};return this;};Slick.lookupPseudo=function(name){var pseudo=local['pseudo:'+name];if(pseudo)return function(argument){return pseudo.call(this,argument);};return null;};Slick.override=function(regexp,fn){local.override(regexp,fn);return this;};Slick.isXML=local.isXML;Slick.uidOf=function(node){return local.getUIDHTML(node);};if(!this.Slick)this.Slick=Slick;}).apply((typeof exports!='undefined')?exports:this);var Element=function(tag,props){var konstructor=Element.Constructors[tag];if(konstructor)return konstructor(props);if(typeof tag!='string')return document.id(tag).set(props);if(!props)props={};if(!(/^[\w-]+$/).test(tag)){var parsed=Slick.parse(tag).expressions[0][0];tag=(parsed.tag=='*')?'div':parsed.tag;if(parsed.id&&props.id==null)props.id=parsed.id;var attributes=parsed.attributes;if(attributes)for(var attr,i=0,l=attributes.length;i=this.length)delete this[length--];return result;}.protect());Array.forEachMethod(function(method,name){Elements.implement(name,method);});Array.mirror(Elements);var createElementAcceptsHTML;try{createElementAcceptsHTML=(document.createElement('').name=='x');}catch(e){} var escapeQuotes=function(html){return(''+html).replace(/&/g,'&').replace(/"/g,'"');};Document.implement({newElement:function(tag,props){if(props&&props.checked!=null)props.defaultChecked=props.checked;if(createElementAcceptsHTML&&props){tag='<'+tag;if(props.name)tag+=' name="'+escapeQuotes(props.name)+'"';if(props.type)tag+=' type="'+escapeQuotes(props.type)+'"';tag+='>';delete props.name;delete props.type;} return this.id(this.createElement(tag)).set(props);}});})();(function(){Slick.uidOf(window);Slick.uidOf(document);Document.implement({newTextNode:function(text){return this.createTextNode(text);},getDocument:function(){return this;},getWindow:function(){return this.window;},id:(function(){var types={string:function(id,nocash,doc){id=Slick.find(doc,'#'+id.replace(/(\W)/g,'\\$1'));return(id)?types.element(id,nocash):null;},element:function(el,nocash){Slick.uidOf(el);if(!nocash&&!el.$family&&!(/^(?:object|embed)$/i).test(el.tagName)){var fireEvent=el.fireEvent;el._fireEvent=function(type,event){return fireEvent(type,event);};Object.append(el,Element.Prototype);} return el;},object:function(obj,nocash,doc){if(obj.toElement)return types.element(obj.toElement(doc),nocash);return null;}};types.textnode=types.whitespace=types.window=types.document=function(zero){return zero;};return function(el,nocash,doc){if(el&&el.$family&&el.uniqueNumber)return el;var type=typeOf(el);return(types[type])?types[type](el,nocash,doc||document):null;};})()});if(window.$==null)Window.implement('$',function(el,nc){return document.id(el,nc,this.document);});Window.implement({getDocument:function(){return this.document;},getWindow:function(){return this;}});[Document,Element].invoke('implement',{getElements:function(expression){return Slick.search(this,expression,new Elements);},getElement:function(expression){return document.id(Slick.find(this,expression));}});var contains={contains:function(element){return Slick.contains(this,element);}};if(!document.contains)Document.implement(contains);if(!document.createElement('div').contains)Element.implement(contains);Element.implement('hasChild',function(element){return this!==element&&this.contains(element);});(function(search,find,match){this.Selectors={};var pseudos=this.Selectors.Pseudo=new Hash();var addSlickPseudos=function(){for(var name in pseudos)if(pseudos.hasOwnProperty(name)){Slick.definePseudo(name,pseudos[name]);delete pseudos[name];}};Slick.search=function(context,expression,append){addSlickPseudos();return search.call(this,context,expression,append);};Slick.find=function(context,expression){addSlickPseudos();return find.call(this,context,expression);};Slick.match=function(node,selector){addSlickPseudos();return match.call(this,node,selector);};})(Slick.search,Slick.find,Slick.match);var injectCombinator=function(expression,combinator){if(!expression)return combinator;expression=Object.clone(Slick.parse(expression));var expressions=expression.expressions;for(var i=expressions.length;i--;) expressions[i][0].combinator=combinator;return expression;};Object.forEach({getNext:'~',getPrevious:'!~',getParent:'!'},function(combinator,method){Element.implement(method,function(expression){return this.getElement(injectCombinator(expression,combinator));});});Object.forEach({getAllNext:'~',getAllPrevious:'!~',getSiblings:'~~',getChildren:'>',getParents:'!'},function(combinator,method){Element.implement(method,function(expression){return this.getElements(injectCombinator(expression,combinator));});});Element.implement({getFirst:function(expression){return document.id(Slick.search(this,injectCombinator(expression,'>'))[0]);},getLast:function(expression){return document.id(Slick.search(this,injectCombinator(expression,'>')).getLast());},getWindow:function(){return this.ownerDocument.window;},getDocument:function(){return this.ownerDocument;},getElementById:function(id){return document.id(Slick.find(this,'#'+(''+id).replace(/(\W)/g,'\\$1')));},match:function(expression){return!expression||Slick.match(this,expression);}});if(window.$$==null)Window.implement('$$',function(selector){var elements=new Elements;if(arguments.length==1&&typeof selector=='string')return Slick.search(this.document,selector,elements);var args=Array.flatten(arguments);for(var i=0,l=args.length;i(?![^<]*<['"])/)).indexOf(name)<0)return null;attributeWhiteList[name]=true;}} var result=Slick.getAttribute(this,name);return(!result&&!Slick.hasAttribute(this,name))?null:result;},getProperties:function(){var args=Array.from(arguments);return args.map(this.getProperty,this).associate(args);},removeProperty:function(name){return this.setProperty(name,null);},removeProperties:function(){Array.each(arguments,this.removeProperty,this);return this;},set:function(prop,value){var property=Element.Properties[prop];(property&&property.set)?property.set.call(this,value):this.setProperty(prop,value);}.overloadSetter(),get:function(prop){var property=Element.Properties[prop];return(property&&property.get)?property.get.apply(this):this.getProperty(prop);}.overloadGetter(),erase:function(prop){var property=Element.Properties[prop];(property&&property.erase)?property.erase.apply(this):this.removeProperty(prop);return this;},hasClass:function(className){return this.className.clean().contains(className,' ');},addClass:function(className){if(!this.hasClass(className))this.className=(this.className+' '+className).clean();return this;},removeClass:function(className){this.className=this.className.replace(new RegExp('(^|\\s)'+className+'(?:\\s|$)'),'$1');return this;},toggleClass:function(className,force){if(force==null)force=!this.hasClass(className);return(force)?this.addClass(className):this.removeClass(className);},adopt:function(){var parent=this,fragment,elements=Array.flatten(arguments),length=elements.length;if(length>1)parent=fragment=document.createDocumentFragment();for(var i=0;i';var supportsHTML5Elements=(div.childNodes.length==1);if(!supportsHTML5Elements){var tags='abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video'.split(' '),fragment=document.createDocumentFragment(),l=tags.length;while(l--)fragment.createElement(tags[l]);} div=null;var supportsTableInnerHTML=Function.attempt(function(){var table=document.createElement('table');table.innerHTML='';return true;});var tr=document.createElement('tr'),html='';tr.innerHTML=html;var supportsTRInnerHTML=(tr.innerHTML==html);tr=null;if(!supportsTableInnerHTML||!supportsTRInnerHTML||!supportsHTML5Elements){Element.Properties.html.set=(function(set){var translations={table:[1,'','
'],select:[1,''],tbody:[2,'','
'],tr:[3,'','
']};translations.thead=translations.tfoot=translations.tbody;return function(html){var wrap=translations[this.get('tag')];if(!wrap&&!supportsHTML5Elements)wrap=[0,'',''];if(!wrap)return set.call(this,html);var level=wrap[0],wrapper=document.createElement('div'),target=wrapper;if(!supportsHTML5Elements)fragment.appendChild(wrapper);wrapper.innerHTML=[wrap[1],html,wrap[2]].flatten().join('');while(level--)target=target.firstChild;this.empty().adopt(target.childNodes);if(!supportsHTML5Elements)fragment.removeChild(wrapper);wrapper=null;};})(Element.Properties.html.set);} var testForm=document.createElement('form');testForm.innerHTML='';if(testForm.firstChild.value!='s')Element.Properties.value={set:function(value){var tag=this.get('tag');if(tag!='select')return this.setProperty('value',value);var options=this.getElements('option');for(var i=0;i0||opacity==null?'visible':'hidden';};var setOpacity=(hasOpacity?function(element,opacity){element.style.opacity=opacity;}:(hasFilter?function(element,opacity){var style=element.style;if(!element.currentStyle||!element.currentStyle.hasLayout)style.zoom=1;if(opacity==null||opacity==1)opacity='';else opacity='alpha(opacity='+(opacity*100).limit(0,100).round()+')';var filter=style.filter||element.getComputedStyle('filter')||'';style.filter=reAlpha.test(filter)?filter.replace(reAlpha,opacity):filter+opacity;if(!style.filter)style.removeAttribute('filter');}:setVisibility));var getOpacity=(hasOpacity?function(element){var opacity=element.style.opacity||element.getComputedStyle('opacity');return(opacity=='')?1:opacity.toFloat();}:(hasFilter?function(element){var filter=(element.style.filter||element.getComputedStyle('filter')),opacity;if(filter)opacity=filter.match(reAlpha);return(opacity==null||filter==null)?1:(opacity[1]/100);}:function(element){var opacity=element.retrieve('$opacity');if(opacity==null)opacity=(element.style.visibility=='hidden'?0:1);return opacity;}));var floatName=(html.style.cssFloat==null)?'styleFloat':'cssFloat';Element.implement({getComputedStyle:function(property){if(this.currentStyle)return this.currentStyle[property.camelCase()];var defaultView=Element.getDocument(this).defaultView,computed=defaultView?defaultView.getComputedStyle(this,null):null;return(computed)?computed.getPropertyValue((property==floatName)?'float':property.hyphenate()):null;},setStyle:function(property,value){if(property=='opacity'){if(value!=null)value=parseFloat(value);setOpacity(this,value);return this;} property=(property=='float'?floatName:property).camelCase();if(typeOf(value)!='string'){var map=(Element.Styles[property]||'@').split(' ');value=Array.from(value).map(function(val,i){if(!map[i])return'';return(typeOf(val)=='number')?map[i].replace('@',Math.round(val)):val;}).join(' ');}else if(value==String(Number(value))){value=Math.round(value);} this.style[property]=value;if((value==''||value==null)&&doesNotRemoveStyles&&this.style.removeAttribute){this.style.removeAttribute(property);} return this;},getStyle:function(property){if(property=='opacity')return getOpacity(this);property=(property=='float'?floatName:property).camelCase();var result=this.style[property];if(!result||property=='zIndex'){result=[];for(var style in Element.ShortStyles){if(property!=style)continue;for(var s in Element.ShortStyles[style])result.push(this.getStyle(s));return result.join(' ');} result=this.getComputedStyle(property);} if(result){result=String(result);var color=result.match(/rgba?\([\d\s,]+\)/);if(color)result=result.replace(color[0],color[0].rgbToHex());} if(Browser.opera||Browser.ie){if((/^(height|width)$/).test(property)&&!(/px$/.test(result))){var values=(property=='width')?['left','right']:['top','bottom'],size=0;values.each(function(value){size+=this.getStyle('border-'+value+'-width').toInt()+this.getStyle('padding-'+value).toInt();},this);return this['offset'+property.capitalize()]-size+'px';} if(Browser.ie&&(/^border(.+)Width|margin|padding/).test(property)&&isNaN(parseFloat(result))){return'0px';}} return result;},setStyles:function(styles){for(var style in styles)this.setStyle(style,styles[style]);return this;},getStyles:function(){var result={};Array.flatten(arguments).each(function(key){result[key]=this.getStyle(key);},this);return result;}});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.implement({setOpacity:function(value){setOpacity(this,value);return this;},getOpacity:function(){return getOpacity(this);}});Element.Properties.opacity={set:function(opacity){setOpacity(this,opacity);setVisibility(this,opacity);},get:function(){return getOpacity(this);}};Element.Styles=new Hash(Element.Styles);Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};['Top','Right','Bottom','Left'].each(function(direction){var Short=Element.ShortStyles;var All=Element.Styles;['margin','padding'].each(function(style){var sd=style+direction;Short[style][sd]=All[sd]='@px';});var bd='border'+direction;Short.border[bd]=All[bd]='@px @ rgb(@, @, @)';var bdw=bd+'Width',bds=bd+'Style',bdc=bd+'Color';Short[bd]={};Short.borderWidth[bdw]=Short[bd][bdw]=All[bdw]='@px';Short.borderStyle[bds]=Short[bd][bds]=All[bds]='@';Short.borderColor[bdc]=Short[bd][bdc]=All[bdc]='rgb(@, @, @)';});})();(function(){Element.Properties.events={set:function(events){this.addEvents(events);}};[Element,Window,Document].invoke('implement',{addEvent:function(type,fn){var events=this.retrieve('events',{});if(!events[type])events[type]={keys:[],values:[]};if(events[type].keys.contains(fn))return this;events[type].keys.push(fn);var realType=type,custom=Element.Events[type],condition=fn,self=this;if(custom){if(custom.onAdd)custom.onAdd.call(this,fn,type);if(custom.condition){condition=function(event){if(custom.condition.call(this,event,type))return fn.call(this,event);return true;};} if(custom.base)realType=Function.from(custom.base).call(this,type);} var defn=function(){return fn.call(self);};var nativeEvent=Element.NativeEvents[realType];if(nativeEvent){if(nativeEvent==2){defn=function(event){event=new DOMEvent(event,self.getWindow());if(condition.call(self,event)===false)event.stop();};} this.addListener(realType,defn,arguments[2]);} events[type].values.push(defn);return this;},removeEvent:function(type,fn){var events=this.retrieve('events');if(!events||!events[type])return this;var list=events[type];var index=list.keys.indexOf(fn);if(index==-1)return this;var value=list.values[index];delete list.keys[index];delete list.values[index];var custom=Element.Events[type];if(custom){if(custom.onRemove)custom.onRemove.call(this,fn,type);if(custom.base)type=Function.from(custom.base).call(this,type);} return(Element.NativeEvents[type])?this.removeListener(type,value,arguments[2]):this;},addEvents:function(events){for(var event in events)this.addEvent(event,events[event]);return this;},removeEvents:function(events){var type;if(typeOf(events)=='object'){for(type in events)this.removeEvent(type,events[type]);return this;} var attached=this.retrieve('events');if(!attached)return this;if(!events){for(type in attached)this.removeEvents(type);this.eliminate('events');}else if(attached[events]){attached[events].keys.each(function(fn){this.removeEvent(events,fn);},this);delete attached[events];} return this;},fireEvent:function(type,args,delay){var events=this.retrieve('events');if(!events||!events[type])return this;args=Array.from(args);events[type].keys.each(function(fn){if(delay)fn.delay(delay,this,args);else fn.apply(this,args);},this);return this;},cloneEvents:function(from,type){from=document.id(from);var events=from.retrieve('events');if(!events)return this;if(!type){for(var eventType in events)this.cloneEvents(from,eventType);}else if(events[type]){events[type].keys.each(function(fn){this.addEvent(type,fn);},this);} return this;}});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,paste:2,input:2,load:2,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1};Element.Events={mousewheel:{base:(Browser.firefox)?'DOMMouseScroll':'mousewheel'}};if('onmouseenter'in document.documentElement){Element.NativeEvents.mouseenter=Element.NativeEvents.mouseleave=2;}else{var check=function(event){var related=event.relatedTarget;if(related==null)return true;if(!related)return false;return(related!=this&&related.prefix!='xul'&&typeOf(this)!='document'&&!this.contains(related));};Element.Events.mouseenter={base:'mouseover',condition:check};Element.Events.mouseleave={base:'mouseout',condition:check};} if(!window.addEventListener){Element.NativeEvents.propertychange=2;Element.Events.change={base:function(){var type=this.type;return(this.get('tag')=='input'&&(type=='radio'||type=='checkbox'))?'propertychange':'change'},condition:function(event){return this.type!='radio'||(event.event.propertyName=='checked'&&this.checked);}}} Element.Events=new Hash(Element.Events);})();(function(){var eventListenerSupport=!!window.addEventListener;Element.NativeEvents.focusin=Element.NativeEvents.focusout=2;var bubbleUp=function(self,match,fn,event,target){while(target&&target!=self){if(match(target,event))return fn.call(target,event,target);target=document.id(target.parentNode);}};var map={mouseenter:{base:'mouseover'},mouseleave:{base:'mouseout'},focus:{base:'focus'+(eventListenerSupport?'':'in'),capture:true},blur:{base:eventListenerSupport?'blur':'focusout',capture:true}};var _key='$delegation:';var formObserver=function(type){return{base:'focusin',remove:function(self,uid){var list=self.retrieve(_key+type+'listeners',{})[uid];if(list&&list.forms)for(var i=list.forms.length;i--;){list.forms[i].removeEvent(type,list.fns[i]);}},listen:function(self,match,fn,event,target,uid){var form=(target.get('tag')=='form')?target:event.target.getParent('form');if(!form)return;var listeners=self.retrieve(_key+type+'listeners',{}),listener=listeners[uid]||{forms:[],fns:[]},forms=listener.forms,fns=listener.fns;if(forms.indexOf(form)!=-1)return;forms.push(form);var _fn=function(event){bubbleUp(self,match,fn,event,target);};form.addEvent(type,_fn);fns.push(_fn);listeners[uid]=listener;self.store(_key+type+'listeners',listeners);}};};var inputObserver=function(type){return{base:'focusin',listen:function(self,match,fn,event,target){var events={blur:function(){this.removeEvents(events);}};events[type]=function(event){bubbleUp(self,match,fn,event,target);};event.target.addEvents(events);}};};if(!eventListenerSupport)Object.append(map,{submit:formObserver('submit'),reset:formObserver('reset'),change:inputObserver('change'),select:inputObserver('select')});var proto=Element.prototype,addEvent=proto.addEvent,removeEvent=proto.removeEvent;var relay=function(old,method){return function(type,fn,useCapture){if(type.indexOf(':relay')==-1)return old.call(this,type,fn,useCapture);var parsed=Slick.parse(type).expressions[0][0];if(parsed.pseudos[0].key!='relay')return old.call(this,type,fn,useCapture);var newType=parsed.tag;parsed.pseudos.slice(1).each(function(pseudo){newType+=':'+pseudo.key+(pseudo.value?'('+pseudo.value+')':'');});old.call(this,type,fn);return method.call(this,newType,parsed.pseudos[0].value,fn);};};var delegation={addEvent:function(type,match,fn){var storage=this.retrieve('$delegates',{}),stored=storage[type];if(stored)for(var _uid in stored){if(stored[_uid].fn==fn&&stored[_uid].match==match)return this;} var _type=type,_match=match,_fn=fn,_map=map[type]||{};type=_map.base||_type;match=function(target){return Slick.match(target,_match);};var elementEvent=Element.Events[_type];if(elementEvent&&elementEvent.condition){var __match=match,condition=elementEvent.condition;match=function(target,event){return __match(target,event)&&condition.call(target,event,type);};} var self=this,uid=String.uniqueID();var delegator=_map.listen?function(event,target){if(!target&&event&&event.target)target=event.target;if(target)_map.listen(self,match,fn,event,target,uid);}:function(event,target){if(!target&&event&&event.target)target=event.target;if(target)bubbleUp(self,match,fn,event,target);};if(!stored)stored={};stored[uid]={match:_match,fn:_fn,delegator:delegator};storage[_type]=stored;return addEvent.call(this,type,delegator,_map.capture);},removeEvent:function(type,match,fn,_uid){var storage=this.retrieve('$delegates',{}),stored=storage[type];if(!stored)return this;if(_uid){var _type=type,delegator=stored[_uid].delegator,_map=map[type]||{};type=_map.base||_type;if(_map.remove)_map.remove(this,_uid);delete stored[_uid];storage[_type]=stored;return removeEvent.call(this,type,delegator);} var __uid,s;if(fn)for(__uid in stored){s=stored[__uid];if(s.match==match&&s.fn==fn)return delegation.removeEvent.call(this,type,match,fn,__uid);}else for(__uid in stored){s=stored[__uid];if(s.match==match)delegation.removeEvent.call(this,type,match,s.fn,__uid);} return this;}};[Element,Window,Document].invoke('implement',{addEvent:relay(addEvent,delegation.addEvent),removeEvent:relay(removeEvent,delegation.removeEvent)});})();(function(){var element=document.createElement('div'),child=document.createElement('div');element.style.height='0';element.appendChild(child);var brokenOffsetParent=(child.offsetParent===element);element=child=null;var isOffset=function(el){return styleString(el,'position')!='static'||isBody(el);};var isOffsetStatic=function(el){return isOffset(el)||(/^(?:table|td|th)$/i).test(el.tagName);};Element.implement({scrollTo:function(x,y){if(isBody(this)){this.getWindow().scrollTo(x,y);}else{this.scrollLeft=x;this.scrollTop=y;} return this;},getSize:function(){if(isBody(this))return this.getWindow().getSize();return{x:this.offsetWidth,y:this.offsetHeight};},getScrollSize:function(){if(isBody(this))return this.getWindow().getScrollSize();return{x:this.scrollWidth,y:this.scrollHeight};},getScroll:function(){if(isBody(this))return this.getWindow().getScroll();return{x:this.scrollLeft,y:this.scrollTop};},getScrolls:function(){var element=this.parentNode,position={x:0,y:0};while(element&&!isBody(element)){position.x+=element.scrollLeft;position.y+=element.scrollTop;element=element.parentNode;} return position;},getOffsetParent:brokenOffsetParent?function(){var element=this;if(isBody(element)||styleString(element,'position')=='fixed')return null;var isOffsetCheck=(styleString(element,'position')=='static')?isOffsetStatic:isOffset;while((element=element.parentNode)){if(isOffsetCheck(element))return element;} return null;}:function(){var element=this;if(isBody(element)||styleString(element,'position')=='fixed')return null;try{return element.offsetParent;}catch(e){} return null;},getOffsets:function(){if(this.getBoundingClientRect&&!Browser.Platform.ios){var bound=this.getBoundingClientRect(),html=document.id(this.getDocument().documentElement),htmlScroll=html.getScroll(),elemScrolls=this.getScrolls(),isFixed=(styleString(this,'position')=='fixed');return{x:bound.left.toInt()+elemScrolls.x+((isFixed)?0:htmlScroll.x)-html.clientLeft,y:bound.top.toInt()+elemScrolls.y+((isFixed)?0:htmlScroll.y)-html.clientTop};} var element=this,position={x:0,y:0};if(isBody(this))return position;while(element&&!isBody(element)){position.x+=element.offsetLeft;position.y+=element.offsetTop;if(Browser.firefox){if(!borderBox(element)){position.x+=leftBorder(element);position.y+=topBorder(element);} var parent=element.parentNode;if(parent&&styleString(parent,'overflow')!='visible'){position.x+=leftBorder(parent);position.y+=topBorder(parent);}}else if(element!=this&&Browser.safari){position.x+=leftBorder(element);position.y+=topBorder(element);} element=element.offsetParent;} if(Browser.firefox&&!borderBox(this)){position.x-=leftBorder(this);position.y-=topBorder(this);} return position;},getPosition:function(relative){var offset=this.getOffsets(),scroll=this.getScrolls();var position={x:offset.x-scroll.x,y:offset.y-scroll.y};if(relative&&(relative=document.id(relative))){var relativePosition=relative.getPosition();return{x:position.x-relativePosition.x-leftBorder(relative),y:position.y-relativePosition.y-topBorder(relative)};} return position;},getCoordinates:function(element){if(isBody(this))return this.getWindow().getCoordinates();var position=this.getPosition(element),size=this.getSize();var obj={left:position.x,top:position.y,width:size.x,height:size.y};obj.right=obj.left+obj.width;obj.bottom=obj.top+obj.height;return obj;},computePosition:function(obj){return{left:obj.x-styleNumber(this,'margin-left'),top:obj.y-styleNumber(this,'margin-top')};},setPosition:function(obj){return this.setStyles(this.computePosition(obj));}});[Document,Window].invoke('implement',{getSize:function(){var doc=getCompatElement(this);return{x:doc.clientWidth,y:doc.clientHeight};},getScroll:function(){var win=this.getWindow(),doc=getCompatElement(this);return{x:win.pageXOffset||doc.scrollLeft,y:win.pageYOffset||doc.scrollTop};},getScrollSize:function(){var doc=getCompatElement(this),min=this.getSize(),body=this.getDocument().body;return{x:Math.max(doc.scrollWidth,body.scrollWidth,min.x),y:Math.max(doc.scrollHeight,body.scrollHeight,min.y)};},getPosition:function(){return{x:0,y:0};},getCoordinates:function(){var size=this.getSize();return{top:0,left:0,bottom:size.y,right:size.x,height:size.y,width:size.x};}});var styleString=Element.getComputedStyle;function styleNumber(element,style){return styleString(element,style).toInt()||0;} function borderBox(element){return styleString(element,'-moz-box-sizing')=='border-box';} function topBorder(element){return styleNumber(element,'border-top-width');} function leftBorder(element){return styleNumber(element,'border-left-width');} function isBody(element){return(/^(?:body|html)$/i).test(element.tagName);} function getCompatElement(element){var doc=element.getDocument();return(!doc.compatMode||doc.compatMode=='CSS1Compat')?doc.html:doc.body;}})();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 Fx=this.Fx=new Class({Implements:[Chain,Events,Options],options:{fps:60,unit:false,duration:500,frames:null,frameSkip:true,link:'ignore'},initialize:function(options){this.subject=this.subject||this;this.setOptions(options);},getTransition:function(){return function(p){return-(Math.cos(Math.PI*p)-1)/2;};},step:function(now){if(this.options.frameSkip){var diff=(this.time!=null)?(now-this.time):0,frames=diff/this.frameInterval;this.time=now;this.frame+=frames;}else{this.frame++;} if(this.frame=(7-4*a)/11){value=b*b-Math.pow((11-6*a-11*p)/4,2);break;}} return value;},Elastic:function(p,x){return Math.pow(2,10*--p)*Math.cos(20*p*Math.PI*(x&&x[0]||1)/3);}});['Quad','Cubic','Quart','Quint'].each(function(transition,i){Fx.Transitions[transition]=new Fx.Transition(function(p){return Math.pow(p,i+2);});});(function(){var empty=function(){},progressSupport=('onprogress'in new Browser.Request);var Request=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(options){this.xhr=new Browser.Request();this.setOptions(options);this.headers=this.options.headers;},onStateChange:function(){var xhr=this.xhr;if(xhr.readyState!=4||!this.running)return;this.running=false;this.status=0;Function.attempt(function(){var status=xhr.status;this.status=(status==1223)?204:status;}.bind(this));xhr.onreadystatechange=empty;if(progressSupport)xhr.onprogress=xhr.onloadstart=empty;clearTimeout(this.timer);this.response={text:this.xhr.responseText||'',xml:this.xhr.responseXML};if(this.options.isSuccess.call(this,this.status)) this.success(this.response.text,this.response.xml);else this.failure();},isSuccess:function(){var status=this.status;return(status>=200&&status<300);},isRunning:function(){return!!this.running;},processScripts:function(text){if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader('Content-type')))return Browser.exec(text);return text.stripScripts(this.options.evalScripts);},success:function(text,xml){this.onSuccess(this.processScripts(text),xml);},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(event){this.fireEvent('loadstart',[event,this.xhr]);},progress:function(event){this.fireEvent('progress',[event,this.xhr]);},timeout:function(){this.fireEvent('timeout',this.xhr);},setHeader:function(name,value){this.headers[name]=value;return this;},getHeader:function(name){return Function.attempt(function(){return this.xhr.getResponseHeader(name);}.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;} return false;},send:function(options){if(!this.check(options))return this;this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.running=true;var type=typeOf(options);if(type=='string'||type=='element')options={data:options};var old=this.options;options=Object.append({data:old.data,url:old.url,method:old.method},options);var data=options.data,url=String(options.url),method=options.method.toLowerCase();switch(typeOf(data)){case'element':data=document.id(data).toQueryString();break;case'object':case'hash':data=Object.toQueryString(data);} if(this.options.format){var format='format='+this.options.format;data=(data)?format+'&'+data:format;} if(this.options.emulation&&!['get','post'].contains(method)){var _method='_method='+method;data=(data)?_method+'&'+data:_method;method='post';} if(this.options.urlEncoded&&['post','put'].contains(method)){var encoding=(this.options.encoding)?'; charset='+this.options.encoding:'';this.headers['Content-type']='application/x-www-form-urlencoded'+encoding;} if(!url)url=document.location.pathname;var trimPosition=url.lastIndexOf('/');if(trimPosition>-1&&(trimPosition=url.indexOf('#'))>-1)url=url.substr(0,trimPosition);if(this.options.noCache) url+=(url.contains('?')?'&':'?')+String.uniqueID();if(data&&method=='get'){url+=(url.contains('?')?'&':'?')+data;data=null;} var xhr=this.xhr;if(progressSupport){xhr.onloadstart=this.loadstart.bind(this);xhr.onprogress=this.progress.bind(this);} xhr.open(method.toUpperCase(),url,this.options.async,this.options.user,this.options.password);if(this.options.user&&'withCredentials'in xhr)xhr.withCredentials=true;xhr.onreadystatechange=this.onStateChange.bind(this);Object.each(this.headers,function(value,key){try{xhr.setRequestHeader(key,value);}catch(e){this.fireEvent('exception',[key,value]);}},this);this.fireEvent('request');xhr.send(data);if(!this.options.async)this.onStateChange();else 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 xhr=this.xhr;xhr.abort();clearTimeout(this.timer);xhr.onreadystatechange=empty;if(progressSupport)xhr.onprogress=xhr.onloadstart=empty;this.xhr=new Browser.Request();this.fireEvent('cancel');return this;}});var methods={};['get','post','put','delete','GET','POST','PUT','DELETE'].each(function(method){methods[method]=function(data){var object={method:method};if(data!=null)object.data=data;return this.send(object);};});Request.implement(methods);Element.Properties.send={set:function(options){var send=this.get('send').cancel();send.setOptions(options);return this;},get:function(){var send=this.retrieve('send');if(!send){send=new Request({data:this,link:'cancel',method:this.get('method')||'post',url:this.get('action')});this.store('send',send);} return send;}};Element.implement({send:function(url){var sender=this.get('send');sender.send({data:this,url:url||sender.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(text){var options=this.options,response=this.response;response.html=text.stripScripts(function(script){response.javascript=script;});var match=response.html.match(/]*>([\s\S]*?)<\/body>/i);if(match)response.html=match[1];var temp=new Element('div').set('html',response.html);response.tree=temp.childNodes;response.elements=temp.getElements(options.filter||'*');if(options.filter)response.tree=response.elements;if(options.update){var update=document.id(options.update).empty();if(options.filter)update.adopt(response.elements);else update.set('html',response.html);}else if(options.append){var append=document.id(options.append);if(options.filter)response.elements.reverse().inject(append);else append.adopt(temp.getChildren());} if(options.evalScripts)Browser.exec(response.javascript);this.onSuccess(response.tree,response.elements,response.html,response.javascript);}});Element.Properties.load={set:function(options){var load=this.get('load').cancel();load.setOptions(options);return this;},get:function(){var load=this.retrieve('load');if(!load){load=new Request.HTML({data:this,link:'cancel',update:this,method:'get'});this.store('load',load);} return load;}};Element.implement({load:function(){this.get('load').send(Array.link(arguments,{data:Type.isObject,url:Type.isString}));return this;}});if(typeof JSON=='undefined')this.JSON={};JSON=new Hash({stringify:JSON.stringify,parse:JSON.parse});(function(){var special={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};var escape=function(chr){return special[chr]||'\\u'+('0000'+chr.charCodeAt(0).toString(16)).slice(-4);};JSON.validate=function(string){string=string.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,'');return(/^[\],:{}\s]*$/).test(string);};JSON.encode=JSON.stringify?function(obj){return JSON.stringify(obj);}:function(obj){if(obj&&obj.toJSON)obj=obj.toJSON();switch(typeOf(obj)){case'string':return'"'+obj.replace(/[\x00-\x1f\\"]/g,escape)+'"';case'array':return'['+obj.map(JSON.encode).clean()+']';case'object':case'hash':var string=[];Object.each(obj,function(value,key){var json=JSON.encode(value);if(json)string.push(JSON.encode(key)+':'+json);});return'{'+string+'}';case'number':case'boolean':return''+obj;case'null':return'null';} return null;};JSON.decode=function(string,secure){if(!string||typeOf(string)!='string')return null;if(secure||JSON.secure){if(JSON.parse)return JSON.parse(string);if(!JSON.validate(string))throw new Error('JSON could not decode the input; security is enabled and the value is not secure.');} return eval('('+string+')');};})();Request.JSON=new Class({Extends:Request,options:{secure:true},initialize:function(options){this.parent(options);Object.append(this.headers,{'Accept':'application/json','X-Request':'JSON'});},success:function(text){var json;try{json=this.response.json=JSON.decode(text,this.options.secure);}catch(error){this.fireEvent('error',[text,error]);return;} if(json==null)this.onFailure();else this.onSuccess(json,text);}});var Cookie=new Class({Implements:Options,options:{path:'/',domain:false,duration:false,secure:false,document:document,encode:true},initialize:function(key,options){this.key=key;this.setOptions(options);},write:function(value){if(this.options.encode)value=encodeURIComponent(value);if(this.options.domain)value+='; domain='+this.options.domain;if(this.options.path)value+='; path='+this.options.path;if(this.options.duration){var date=new Date();date.setTime(date.getTime()+this.options.duration*24*60*60*1000);value+='; expires='+date.toGMTString();} if(this.options.secure)value+='; secure';this.options.document.cookie=this.key+'='+value;return this;},read:function(){var value=this.options.document.cookie.match('(?:^|;)\\s*'+this.key.escapeRegExp()+'=([^;]*)');return(value)?decodeURIComponent(value[1]):null;},dispose:function(){new Cookie(this.key,Object.merge({},this.options,{duration:-1})).write('');return this;}});Cookie.write=function(key,value,options){return new Cookie(key,options).write(value);};Cookie.read=function(key){return new Cookie(key).read();};Cookie.dispose=function(key,options){return new Cookie(key,options).dispose();};(function(window,document){var ready,loaded,checks=[],shouldPoll,timer,testElement=document.createElement('div');var domready=function(){clearTimeout(timer);if(ready)return;Browser.loaded=ready=true;document.removeListener('DOMContentLoaded',domready).removeListener('readystatechange',check);document.fireEvent('domready');window.fireEvent('domready');};var check=function(){for(var i=checks.length;i--;)if(checks[i]()){domready();return true;} return false;};var poll=function(){clearTimeout(timer);if(!check())timer=setTimeout(poll,10);};document.addListener('DOMContentLoaded',domready);var doScrollWorks=function(){try{testElement.doScroll();return true;}catch(e){} return false;};if(testElement.doScroll&&!doScrollWorks()){checks.push(doScrollWorks);shouldPoll=true;} if(document.readyState)checks.push(function(){var state=document.readyState;return(state=='loaded'||state=='complete');});if('onreadystatechange'in document)document.addListener('readystatechange',check);else shouldPoll=true;if(shouldPoll)poll();Element.Events.domready={onAdd:function(fn){if(ready)fn.call(this);}};Element.Events.load={base:'load',onAdd:function(fn){if(loaded&&this==window)fn.call(this);},condition:function(){if(this==window){domready();delete Element.Events.load;} return true;}};window.addEvent('load',function(){loaded=true;});})(window,document);(function(){var Swiff=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(path,options){this.instance='Swiff_'+String.uniqueID();this.setOptions(options);options=this.options;var id=this.id=options.id||this.instance;var container=document.id(options.container);Swiff.CallBacks[this.instance]={};var params=options.params,vars=options.vars,callBacks=options.callBacks;var properties=Object.append({height:options.height,width:options.width},options.properties);var self=this;for(var callBack in callBacks){Swiff.CallBacks[this.instance][callBack]=(function(option){return function(){return option.apply(self.object,arguments);};})(callBacks[callBack]);vars[callBack]='Swiff.CallBacks.'+this.instance+'.'+callBack;} params.flashVars=Object.toQueryString(vars);if(Browser.ie){properties.classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';params.movie=path;}else{properties.type='application/x-shockwave-flash';} properties.data=path;var build='';} build+='';this.object=((container)?container.empty():new Element('div')).set('html',build).firstChild;},replaces:function(element){element=document.id(element,true);element.parentNode.replaceChild(this.toElement(),element);return this;},inject:function(element){document.id(element,true).appendChild(this.toElement());return this;},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].append(arguments));}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction(''+__flash__argumentsToXML(arguments,2)+'');return eval(rs);};})();MooTools.More={'version':'1.4.0.1','build':'a4244edf2aa97ac8a196fc96082dd35af1abab87'};(function(){Events.Pseudos=function(pseudos,addEvent,removeEvent){var storeKey='_monitorEvents:';var storageOf=function(object){return{store:object.store?function(key,value){object.store(storeKey+key,value);}:function(key,value){(object._monitorEvents||(object._monitorEvents={}))[key]=value;},retrieve:object.retrieve?function(key,dflt){return object.retrieve(storeKey+key,dflt);}:function(key,dflt){if(!object._monitorEvents)return dflt;return object._monitorEvents[key]||dflt;}};};var splitType=function(type){if(type.indexOf(':')==-1||!pseudos)return null;var parsed=Slick.parse(type).expressions[0][0],parsedPseudos=parsed.pseudos,l=parsedPseudos.length,splits=[];while(l--){var pseudo=parsedPseudos[l].key,listener=pseudos[pseudo];if(listener!=null)splits.push({event:parsed.tag,value:parsedPseudos[l].value,pseudo:pseudo,original:type,listener:listener});} return splits.length?splits:null;};return{addEvent:function(type,fn,internal){var split=splitType(type);if(!split)return addEvent.call(this,type,fn,internal);var storage=storageOf(this),events=storage.retrieve(type,[]),eventType=split[0].event,args=Array.slice(arguments,2),stack=fn,self=this;split.each(function(item){var listener=item.listener,stackFn=stack;if(listener==false)eventType+=':'+item.pseudo+'('+item.value+')';else stack=function(){listener.call(self,item,stackFn,arguments,stack);};});events.include({type:eventType,event:fn,monitor:stack});storage.store(type,events);if(type!=eventType)addEvent.apply(this,[type,fn].concat(args));return addEvent.apply(this,[eventType,stack].concat(args));},removeEvent:function(type,fn){var split=splitType(type);if(!split)return removeEvent.call(this,type,fn);var storage=storageOf(this),events=storage.retrieve(type);if(!events)return this;var args=Array.slice(arguments,2);removeEvent.apply(this,[type,fn].concat(args));events.each(function(monitor,i){if(!fn||monitor.event==fn)removeEvent.apply(this,[monitor.type,monitor.monitor].concat(args));delete events[i];},this);storage.store(type,events);return this;}};};var pseudos={once:function(split,fn,args,monitor){fn.apply(this,args);this.removeEvent(split.event,monitor).removeEvent(split.original,fn);},throttle:function(split,fn,args){if(!fn._throttled){fn.apply(this,args);fn._throttled=setTimeout(function(){fn._throttled=false;},split.value||250);}},pause:function(split,fn,args){clearTimeout(fn._pause);fn._pause=fn.delay(split.value||250,this,args);}};Events.definePseudo=function(key,listener){pseudos[key]=listener;return this;};Events.lookupPseudo=function(key){return pseudos[key];};var proto=Events.prototype;Events.implement(Events.Pseudos(pseudos,proto.addEvent,proto.removeEvent));['Request','Fx'].each(function(klass){if(this[klass])this[klass].implement(Events.prototype);});})();Class.refactor=function(original,refactors){Object.each(refactors,function(item,name){var origin=original.prototype[name];origin=(origin&&origin.$origin)||origin||function(){};original.implement(name,(typeof item=='function')?function(){var old=this.previous;this.previous=origin;var value=item.apply(this,arguments);this.previous=old;return value;}:item);});return original;};Class.Mutators.Binds=function(binds){if(!this.prototype.initialize)this.implement('initialize',function(){});return Array.from(binds).concat(this.prototype.Binds||[]);};Class.Mutators.initialize=function(initialize){return function(){Array.from(this.Binds).each(function(name){var original=this[name];if(original)this[name]=original.bind(this);},this);return initialize.apply(this,arguments);};};Class.Occlude=new Class({occlude:function(property,element){element=document.id(element||this.element);var instance=element.retrieve(property||this.property);if(instance&&!this.occluded) return(this.occluded=instance);this.occluded=false;element.store(property||this.property,this);return this.occluded;}});(function(){var wait={wait:function(duration){return this.chain(function(){this.callChain.delay(duration==null?500:duration,this);return this;}.bind(this));}};Chain.implement(wait);if(this.Fx)Fx.implement(wait);if(this.Element&&Element.implement&&this.Fx){Element.implement({chains:function(effects){Array.from(effects||['tween','morph','reveal']).each(function(effect){effect=this.get(effect);if(!effect)return;effect.setOptions({link:'chain'});},this);return this;},pauseFx:function(duration,effect){this.chains(effect).get(effect||'tween').wait(duration);return this;}});}})();(function(nil){Array.implement({min:function(){return Math.min.apply(null,this);},max:function(){return Math.max.apply(null,this);},average:function(){return this.length?this.sum()/this.length:0;},sum:function(){var result=0,l=this.length;if(l){while(l--)result+=this[l];} return result;},unique:function(){return[].combine(this);},shuffle:function(){for(var i=this.length;i&&--i;){var temp=this[i],r=Math.floor(Math.random()*(i+1));this[i]=this[r];this[r]=temp;} return this;},reduce:function(fn,value){for(var i=0,l=this.length;i3&&dayOfMonth<21)?'th':['th','st','nd','rd','th'][Math.min(dayOfMonth%10,4)];},lessThanMinuteAgo:'less than a minute ago',minuteAgo:'about a minute ago',minutesAgo:'{delta} minutes ago',hourAgo:'about an hour ago',hoursAgo:'about {delta} hours ago',dayAgo:'1 day ago',daysAgo:'{delta} days ago',weekAgo:'1 week ago',weeksAgo:'{delta} weeks ago',monthAgo:'1 month ago',monthsAgo:'{delta} months ago',yearAgo:'1 year ago',yearsAgo:'{delta} years ago',lessThanMinuteUntil:'less than a minute from now',minuteUntil:'about a minute from now',minutesUntil:'{delta} minutes from now',hourUntil:'about an hour from now',hoursUntil:'about {delta} hours from now',dayUntil:'1 day from now',daysUntil:'{delta} days from now',weekUntil:'1 week from now',weeksUntil:'{delta} weeks from now',monthUntil:'1 month from now',monthsUntil:'{delta} months from now',yearUntil:'1 year from now',yearsUntil:'{delta} years from now'});(function(){var Date=this.Date;var DateMethods=Date.Methods={ms:'Milliseconds',year:'FullYear',min:'Minutes',mo:'Month',sec:'Seconds',hr:'Hours'};['Date','Day','FullYear','Hours','Milliseconds','Minutes','Month','Seconds','Time','TimezoneOffset','Week','Timezone','GMTOffset','DayOfYear','LastMonth','LastDayOfMonth','UTCDate','UTCDay','UTCFullYear','AMPM','Ordinal','UTCHours','UTCMilliseconds','UTCMinutes','UTCMonth','UTCSeconds','UTCMilliseconds'].each(function(method){Date.Methods[method.toLowerCase()]=method;});var pad=function(n,digits,string){if(digits==1)return n;return n28)return 1;if(month==0&&startOfWeek<-2){date=new Date(date).decrement('day',dayOfWeek);dayOfWeek=0;} firstDayOfYear=new Date(date.get('year'),0,1).get('day')||7;if(firstDayOfYear>4)dividend=-7;}else{firstDayOfYear=new Date(date.get('year'),0,1).get('day');} dividend+=date.get('dayofyear');dividend+=6-dayOfWeek;dividend+=(7+firstDayOfYear-firstDayOfWeek)%7;return(dividend/7);},getOrdinal:function(day){return Date.getMsg('ordinal',day||this.get('date'));},getTimezone:function(){return this.toString().replace(/^.*? ([A-Z]{3}).[0-9]{4}.*$/,'$1').replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,'$1$2$3');},getGMTOffset:function(){var off=this.get('timezoneOffset');return((off>0)?'-':'+')+pad((off.abs()/60).floor(),2)+pad(off%60,2);},setAMPM:function(ampm){ampm=ampm.toUpperCase();var hr=this.get('hr');if(hr>11&&m=='AM')return this.decrement('hour',12);else if(hr<12&&m=='PM')return this.increment('hour',12);return this;},getAMPM:function(){return(this.get('hr')<12)?'AM':'PM';},parse:function(str){this.set('time',Date.parse(str));return this;},isValid:function(date){if(!date)date=this;return typeOf(date)=='date'&&!isNaN(date.valueOf());},format:function(format){if(!this.isValid())return'invalid date';if(!format)format='%x %X';if(typeof format=='string')format=formats[format.toLowerCase()]||format;if(typeof format=='function')return format(this);var d=this;return format.replace(/%([a-z%])/gi,function($0,$1){switch($1){case'a':return Date.getMsg('days_abbr')[d.get('day')];case'A':return Date.getMsg('days')[d.get('day')];case'b':return Date.getMsg('months_abbr')[d.get('month')];case'B':return Date.getMsg('months')[d.get('month')];case'c':return d.format('%a %b %d %H:%M:%S %Y');case'd':return pad(d.get('date'),2);case'e':return pad(d.get('date'),2,' ');case'H':return pad(d.get('hr'),2);case'I':return pad((d.get('hr')%12)||12,2);case'j':return pad(d.get('dayofyear'),3);case'k':return pad(d.get('hr'),2,' ');case'l':return pad((d.get('hr')%12)||12,2,' ');case'L':return pad(d.get('ms'),3);case'm':return pad((d.get('mo')+1),2);case'M':return pad(d.get('min'),2);case'o':return d.get('ordinal');case'p':return Date.getMsg(d.get('ampm'));case's':return Math.round(d/1000);case'S':return pad(d.get('seconds'),2);case'T':return d.format('%H:%M:%S');case'U':return pad(d.get('week'),2);case'w':return d.get('day');case'x':return d.format(Date.getMsg('shortDate'));case'X':return d.format(Date.getMsg('shortTime'));case'y':return d.get('year').toString().substr(2);case'Y':return d.get('year');case'z':return d.get('GMTOffset');case'Z':return d.get('Timezone');} return $1;});},toISOString:function(){return this.format('iso8601');}}).alias({toJSON:'toISOString',compare:'diff',strftime:'format'});var rfcDayAbbr=['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],rfcMonthAbbr=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];var formats={db:'%Y-%m-%d %H:%M:%S',compact:'%Y%m%dT%H%M%S','short':'%d %b %H:%M','long':'%B %d, %Y %H:%M',rfc822:function(date){return rfcDayAbbr[date.get('day')]+date.format(', %d ')+rfcMonthAbbr[date.get('month')]+date.format(' %Y %H:%M:%S %Z');},rfc2822:function(date){return rfcDayAbbr[date.get('day')]+date.format(', %d ')+rfcMonthAbbr[date.get('month')]+date.format(' %Y %H:%M:%S %z');},iso8601:function(date){return(date.getUTCFullYear()+'-'+ pad(date.getUTCMonth()+1,2)+'-'+ pad(date.getUTCDate(),2)+'T'+ pad(date.getUTCHours(),2)+':'+ pad(date.getUTCMinutes(),2)+':'+ pad(date.getUTCSeconds(),2)+'.'+ pad(date.getUTCMilliseconds(),3)+'Z');}};var parsePatterns=[],nativeParse=Date.parse;var parseWord=function(type,word,num){var ret=-1,translated=Date.getMsg(type+'s');switch(typeOf(word)){case'object':ret=translated[word.get(type)];break;case'number':ret=translated[word];if(!ret)throw new Error('Invalid '+type+' index: '+word);break;case'string':var match=translated.filter(function(name){return this.test(name);},new RegExp('^'+word,'i'));if(!match.length)throw new Error('Invalid '+type+' string');if(match.length>1)throw new Error('Ambiguous '+type);ret=match[0];} return(num)?translated.indexOf(ret):ret;};var startCentury=1900,startYear=70;Date.extend({getMsg:function(key,args){return Locale.get('Date.'+key,args);},units:{ms:Function.from(1),second:Function.from(1000),minute:Function.from(60000),hour:Function.from(3600000),day:Function.from(86400000),week:Function.from(608400000),month:function(month,year){var d=new Date;return Date.daysInMonth(month!=null?month:d.get('mo'),year!=null?year:d.get('year'))*86400000;},year:function(year){year=year||new Date().get('year');return Date.isLeapYear(year)?31622400000:31536000000;}},daysInMonth:function(month,year){return[31,Date.isLeapYear(year)?29:28,31,30,31,30,31,31,30,31,30,31][month];},isLeapYear:function(year){return((year%4===0)&&(year%100!==0))||(year%400===0);},parse:function(from){var t=typeOf(from);if(t=='number')return new Date(from);if(t!='string')return from;from=from.clean();if(!from.length)return null;var parsed;parsePatterns.some(function(pattern){var bits=pattern.re.exec(from);return(bits)?(parsed=pattern.handler(bits)):false;});if(!(parsed&&parsed.isValid())){parsed=new Date(nativeParse(from));if(!(parsed&&parsed.isValid()))parsed=new Date(from.toInt());} return parsed;},parseDay:function(day,num){return parseWord('day',day,num);},parseMonth:function(month,num){return parseWord('month',month,num);},parseUTC:function(value){var localDate=new Date(value);var utcSeconds=Date.UTC(localDate.get('year'),localDate.get('mo'),localDate.get('date'),localDate.get('hr'),localDate.get('min'),localDate.get('sec'),localDate.get('ms'));return new Date(utcSeconds);},orderIndex:function(unit){return Date.getMsg('dateOrder').indexOf(unit)+1;},defineFormat:function(name,format){formats[name]=format;return this;},parsePatterns:parsePatterns,defineParser:function(pattern){parsePatterns.push((pattern.re&&pattern.handler)?pattern:build(pattern));return this;},defineParsers:function(){Array.flatten(arguments).each(Date.defineParser);return this;},define2DigitYearStart:function(year){startYear=year%100;startCentury=year-startYear;return this;}}).extend({defineFormats:Date.defineFormat.overloadSetter()});var regexOf=function(type){return new RegExp('(?:'+Date.getMsg(type).map(function(name){return name.substr(0,3);}).join('|')+')[a-z]*');};var replacers=function(key){switch(key){case'T':return'%H:%M:%S';case'x':return((Date.orderIndex('month')==1)?'%m[-./]%d':'%d[-./]%m')+'([-./]%y)?';case'X':return'%H([.:]%M)?([.:]%S([.:]%s)?)? ?%p? ?%z?';} return null;};var keys={d:/[0-2]?[0-9]|3[01]/,H:/[01]?[0-9]|2[0-3]/,I:/0?[1-9]|1[0-2]/,M:/[0-5]?\d/,s:/\d+/,o:/[a-z]*/,p:/[ap]\.?m\.?/,y:/\d{2}|\d{4}/,Y:/\d{4}/,z:/Z|[+-]\d{2}(?::?\d{2})?/};keys.m=keys.I;keys.S=keys.M;var currentLanguage;var recompile=function(language){currentLanguage=language;keys.a=keys.A=regexOf('days');keys.b=keys.B=regexOf('months');parsePatterns.each(function(pattern,i){if(pattern.format)parsePatterns[i]=build(pattern.format);});};var build=function(format){if(!currentLanguage)return{format:format};var parsed=[];var re=(format.source||format).replace(/%([a-z])/gi,function($0,$1){return replacers($1)||$0;}).replace(/\((?!\?)/g,'(?:').replace(/ (?!\?|\*)/g,',? ').replace(/%([a-z%])/gi,function($0,$1){var p=keys[$1];if(!p)return $1;parsed.push($1);return'('+p.source+')';}).replace(/\[a-z\]/gi,'[a-z\\u00c0-\\uffff;\&]');return{format:format,re:new RegExp('^'+re+'$','i'),handler:function(bits){bits=bits.slice(1).associate(parsed);var date=new Date().clearTime(),year=bits.y||bits.Y;if(year!=null)handle.call(date,'y',year);if('d'in bits)handle.call(date,'d',1);if('m'in bits||bits.b||bits.B)handle.call(date,'m',1);for(var key in bits)handle.call(date,key,bits[key]);return date;}};};var handle=function(key,value){if(!value)return this;switch(key){case'a':case'A':return this.set('day',Date.parseDay(value,true));case'b':case'B':return this.set('mo',Date.parseMonth(value,true));case'd':return this.set('date',value);case'H':case'I':return this.set('hr',value);case'm':return this.set('mo',value-1);case'M':return this.set('min',value);case'p':return this.set('ampm',value.replace(/\./g,''));case'S':return this.set('sec',value);case's':return this.set('ms',('0.'+value)*1000);case'w':return this.set('day',value);case'Y':return this.set('year',value);case'y':value=+value;if(value<100)value+=startCentury+(value0.75*interval)msg=unit;break;} delta/=interval;msg=unit+'s';} delta=delta.round();return Date.getMsg(msg+suffix,delta).substitute({delta:delta});}}).defineParsers({re:/^(?:tod|tom|yes)/i,handler:function(bits){var d=new Date().clearTime();switch(bits[0]){case'tom':return d.increment();case'yes':return d.decrement();default:return d;}}},{re:/^(next|last) ([a-z]+)$/i,handler:function(bits){var d=new Date().clearTime();var day=d.getDay();var newDay=Date.parseDay(bits[2],true);var addDays=newDay-day;if(newDay<=day)addDays+=7;if(bits[1]=='last')addDays-=7;return d.set('date',d.getDate()+addDays);}}).alias('timeAgoInWords','timeDiffInWords');Locale.define('en-US','Number',{decimal:'.',group:',',currency:{prefix:'$ '}});Number.implement({format:function(options){var value=this;options=options?Object.clone(options):{};var getOption=function(key){if(options[key]!=null)return options[key];return Locale.get('Number.'+key);};var negative=value<0,decimal=getOption('decimal'),precision=getOption('precision'),group=getOption('group'),decimals=getOption('decimals');if(negative){var negativeLocale=getOption('negative')||{};if(negativeLocale.prefix==null&&negativeLocale.suffix==null)negativeLocale.prefix='-';['prefix','suffix'].each(function(key){if(negativeLocale[key])options[key]=getOption(key)+negativeLocale[key];});value=-value;} var prefix=getOption('prefix'),suffix=getOption('suffix');if(decimals!==''&&decimals>=0&&decimals<=20)value=value.toFixed(decimals);if(precision>=1&&precision<=21)value=(+value).toPrecision(precision);value+='';var index;if(getOption('scientific')===false&&value.indexOf('e')>-1){var match=value.split('e'),zeros=+match[1];value=match[0].replace('.','');if(zeros<0){zeros=-zeros-1;index=match[0].indexOf('.');if(index>-1)zeros-=index-1;while(zeros--)value='0'+value;value='0.'+value;}else{index=match[0].lastIndexOf('.');if(index>-1)zeros-=match[0].length-index-1;while(zeros--)value+='0';}} if(decimal!='.')value=value.replace('.',decimal);if(group){index=value.lastIndexOf(decimal);index=(index>-1)?index:value.length;var newOutput=value.substring(index),i=index;while(i--){if((index-i-1)%3==0&&i!=(index-1))newOutput=group+newOutput;newOutput=value.charAt(i)+newOutput;} value=newOutput;} if(prefix)value=prefix+value;if(suffix)value+=suffix;return value;},formatCurrency:function(decimals){var locale=Locale.get('Number.currency')||{};if(locale.scientific==null)locale.scientific=false;locale.decimals=decimals!=null?decimals:(locale.decimals==null?2:locale.decimals);return this.format(locale);},formatPercentage:function(decimals){var locale=Locale.get('Number.percentage')||{};if(locale.suffix==null)locale.suffix='%';locale.decimals=decimals!=null?decimals:(locale.decimals==null?2:locale.decimals);return this.format(locale);}});(function(){var special={'a':/[àáâãäåăą]/g,'A':/[ÀÁÂÃÄÅĂĄ]/g,'c':/[ćčç]/g,'C':/[ĆČÇ]/g,'d':/[ďđ]/g,'D':/[ĎÐ]/g,'e':/[èéêëěę]/g,'E':/[ÈÉÊËĚĘ]/g,'g':/[ğ]/g,'G':/[Ğ]/g,'i':/[ìíîï]/g,'I':/[ÌÍÎÏ]/g,'l':/[ĺľł]/g,'L':/[ĹĽŁ]/g,'n':/[ñňń]/g,'N':/[ÑŇŃ]/g,'o':/[òóôõöøő]/g,'O':/[ÒÓÔÕÖØ]/g,'r':/[řŕ]/g,'R':/[ŘŔ]/g,'s':/[ššş]/g,'S':/[ŠŞŚ]/g,'t':/[ťţ]/g,'T':/[ŤŢ]/g,'ue':/[ü]/g,'UE':/[Ü]/g,'u':/[ùúûůµ]/g,'U':/[ÙÚÛŮ]/g,'y':/[ÿý]/g,'Y':/[ŸÝ]/g,'z':/[žźż]/g,'Z':/[ŽŹŻ]/g,'th':/[þ]/g,'TH':/[Þ]/g,'dh':/[ð]/g,'DH':/[Ð]/g,'ss':/[ß]/g,'oe':/[œ]/g,'OE':/[Œ]/g,'ae':/[æ]/g,'AE':/[Æ]/g},tidy={' ':/[\xa0\u2002\u2003\u2009]/g,'*':/[\xb7]/g,'\'':/[\u2018\u2019]/g,'"':/[\u201c\u201d]/g,'...':/[\u2026]/g,'-':/[\u2013]/g,'»':/[\uFFFD]/g};var walk=function(string,replacements){var result=string,key;for(key in replacements)result=result.replace(replacements[key],key);return result;};var getRegexForTag=function(tag,contents){tag=tag||'';var regstr=contents?"<"+tag+"(?!\\w)[^>]*>([\\s\\S]*?)<\/"+tag+"(?!\\w)>":"<\/?"+tag+"([^>]+)?>",reg=new RegExp(regstr,"gi");return reg;};String.implement({standardize:function(){return walk(this,special);},repeat:function(times){return new Array(times+1).join(this);},pad:function(length,str,direction){if(this.length>=length)return this;var pad=(str==null?' ':''+str).repeat(length-this.length).substr(0,length-this.length);if(!direction||direction=='right')return this+pad;if(direction=='left')return pad+this;return pad.substr(0,(pad.length/2).floor())+this+pad.substr(0,(pad.length/2).ceil());},getTags:function(tag,contents){return this.match(getRegexForTag(tag,contents))||[];},stripTags:function(tag,contents){return this.replace(getRegexForTag(tag,contents),'');},tidy:function(){return walk(this,tidy);},truncate:function(max,trail,atChar){var string=this;if(trail==null&&arguments.length==1)trail='…';if(string.length>max){string=string.substring(0,max);if(atChar){var index=string.lastIndexOf(atChar);if(index!=-1)string=string.substr(0,index);} if(trail)string+=trail;} return string;}});})();String.implement({parseQueryString:function(decodeKeys,decodeValues){if(decodeKeys==null)decodeKeys=true;if(decodeValues==null)decodeValues=true;var vars=this.split(/[&;]/),object={};if(!vars.length)return object;vars.each(function(val){var index=val.indexOf('=')+1,value=index?val.substr(index):'',keys=index?val.substr(0,index-1).match(/([^\]\[]+|(\B)(?=\]))/g):[val],obj=object;if(!keys)return;if(decodeValues)value=decodeURIComponent(value);keys.each(function(key,i){if(decodeKeys)key=decodeURIComponent(key);var current=obj[key];if(i0)result.pop();else if(dir!='.')result.push(dir);});return result.join('/')+'/';},combine:function(bits){return bits.value||bits.scheme+'://'+ (bits.user?bits.user+(bits.password?':'+bits.password:'')+'@':'')+ (bits.host||'')+(bits.port&&bits.port!=this.schemes[bits.scheme]?':'+bits.port:'')+ (bits.directory||'/')+(bits.file||'')+ (bits.query?'?'+bits.query:'')+ (bits.fragment?'#'+bits.fragment:'');},set:function(part,value,base){if(part=='value'){var scheme=value.match(URI.regs.scheme);if(scheme)scheme=scheme[1];if(scheme&&this.schemes[scheme.toLowerCase()]==null)this.parsed={scheme:scheme,value:value};else this.parsed=this.parse(value,(base||this).parsed)||(scheme?{scheme:scheme,value:value}:{value:value});}else if(part=='data'){this.setData(value);}else{this.parsed[part]=value;} return this;},get:function(part,base){switch(part){case'value':return this.combine(this.parsed,base?base.parsed:false);case'data':return this.getData();} return this.parsed[part]||'';},go:function(){document.location.href=this.toString();},toURI:function(){return this;},getData:function(key,part){var qs=this.get(part||'query');if(!(qs||qs===0))return key?null:{};var obj=qs.parseQueryString();return key?obj[key]:obj;},setData:function(values,merge,part){if(typeof values=='string'){var data=this.getData();data[arguments[0]]=arguments[1];values=data;}else if(merge){values=Object.merge(this.getData(),values);} return this.set(part||'query',Object.toQueryString(values));},clearData:function(part){return this.set(part||'query','');},toString:toString,valueOf:toString});URI.regs={endSlash:/\/$/,scheme:/^(\w+):/,directoryDot:/\.\/|\.$/};URI.base=new URI(Array.from(document.getElements('base[href]',true)).getLast(),{base:document.location});String.implement({toURI:function(options){return new URI(this,options);}});})();URI=Class.refactor(URI,{combine:function(bits,base){if(!base||bits.scheme!=base.scheme||bits.host!=base.host||bits.port!=base.port) return this.previous.apply(this,arguments);var end=bits.file+(bits.query?'?'+bits.query:'')+(bits.fragment?'#'+bits.fragment:'');if(!base.directory)return(bits.directory||(bits.file?'':'./'))+end;var baseDir=base.directory.split('/'),relDir=bits.directory.split('/'),path='',offset;var i=0;for(offset=0;offset=0||offset.parentPositioned||options.allowNegative)?position.x:0).toInt();position.top=((position.y>=0||offset.parentPositioned||options.allowNegative)?position.y:0).toInt();local.toMinMax(position,options);if(options.relFixedPosition||relativeTo.getStyle('position')=='fixed')local.toRelFixedPosition(relativeTo,position);if(options.ignoreScroll)local.toIgnoreScroll(relativeTo,position);if(options.ignoreMargins)local.toIgnoreMargins(position,options);position.left=Math.ceil(position.left);position.top=Math.ceil(position.top);delete position.x;delete position.y;return position;},setPositionCoordinates:function(options,position,relativeTo){var offsetY=options.offset.y,offsetX=options.offset.x,calc=(relativeTo==document.body)?window.getScroll():relativeTo.getPosition(),top=calc.y,left=calc.x,winSize=window.getSize();switch(options.position.x){case'left':position.x=left+offsetX;break;case'right':position.x=left+offsetX+relativeTo.offsetWidth;break;default:position.x=left+((relativeTo==document.body?winSize.x:relativeTo.offsetWidth)/2)+offsetX;break;} switch(options.position.y){case'top':position.y=top+offsetY;break;case'bottom':position.y=top+offsetY+relativeTo.offsetHeight;break;default:position.y=top+((relativeTo==document.body?winSize.y:relativeTo.offsetHeight)/2)+offsetY;break;}},toMinMax:function(position,options){var xy={left:'x',top:'y'},value;['minimum','maximum'].each(function(minmax){['left','top'].each(function(lr){value=options[minmax]?options[minmax][xy[lr]]:null;if(value!=null&&((minmax=='minimum')?position[lr]value))position[lr]=value;});});},toRelFixedPosition:function(relativeTo,position){var winScroll=window.getScroll();position.top+=winScroll.y;position.left+=winScroll.x;},toIgnoreScroll:function(relativeTo,position){var relScroll=relativeTo.getScroll();position.top-=relScroll.y;position.left-=relScroll.x;},toIgnoreMargins:function(position,options){position.left+=options.edge.x=='right'?options.dimensions['margin-right']:(options.edge.x!='center'?-options.dimensions['margin-left']:-options.dimensions['margin-left']+((options.dimensions['margin-right']+options.dimensions['margin-left'])/2));position.top+=options.edge.y=='bottom'?options.dimensions['margin-bottom']:(options.edge.y!='center'?-options.dimensions['margin-top']:-options.dimensions['margin-top']+((options.dimensions['margin-bottom']+options.dimensions['margin-top'])/2));},toEdge:function(position,options){var edgeOffset={},dimensions=options.dimensions,edge=options.edge;switch(edge.x){case'left':edgeOffset.x=0;break;case'right':edgeOffset.x=-dimensions.x-dimensions.computedRight-dimensions.computedLeft;break;default:edgeOffset.x=-(Math.round(dimensions.totalWidth/2));break;} switch(edge.y){case'top':edgeOffset.y=0;break;case'bottom':edgeOffset.y=-dimensions.y-dimensions.computedTop-dimensions.computedBottom;break;default:edgeOffset.y=-(Math.round(dimensions.totalHeight/2));break;} position.x+=edgeOffset.x;position.y+=edgeOffset.y;},getCoordinateFromValue:function(option){if(typeOf(option)!='string')return option;option=option.toLowerCase();return{x:option.test('left')?'left':(option.test('right')?'right':'center'),y:option.test(/upper|top/)?'top':(option.test('bottom')?'bottom':'center')};}};Element.implement({position:function(options){if(options&&(options.x!=null||options.y!=null)){return(original?original.apply(this,arguments):this);} var position=this.setStyle('position','absolute').calculatePosition(options);return(options&&options.returnPos)?position:this.setStyles(position);},calculatePosition:function(options){return local.getPosition(this,options);}});})(Element.prototype.position);Element.implement({isDisplayed:function(){return this.getStyle('display')!='none';},isVisible:function(){var w=this.offsetWidth,h=this.offsetHeight;return(w==0&&h==0)?false:(w>0&&h>0)?true:this.style.display!='none';},toggle:function(){return this[this.isDisplayed()?'hide':'show']();},hide:function(){var d;try{d=this.getStyle('display');}catch(e){} if(d=='none')return this;return this.store('element:_originalDisplay',d||'').setStyle('display','none');},show:function(display){if(!display&&this.isDisplayed())return this;display=display||this.retrieve('element:_originalDisplay')||'block';return this.setStyle('display',(display=='none')?'block':display);},swapClass:function(remove,add){return this.removeClass(remove).addClass(add);}});Document.implement({clearSelection:function(){if(window.getSelection){var selection=window.getSelection();if(selection&&selection.removeAllRanges)selection.removeAllRanges();}else if(document.selection&&document.selection.empty){try{document.selection.empty();}catch(e){}}}});var IframeShim=new Class({Implements:[Options,Events,Class.Occlude],options:{className:'iframeShim',src:'javascript:false;document.write("");',display:false,zIndex:null,margin:0,offset:{x:0,y:0},browsers:(Browser.ie6||(Browser.firefox&&Browser.version<3&&Browser.Platform.mac))},property:'IframeShim',initialize:function(element,options){this.element=document.id(element);if(this.occlude())return this.occluded;this.setOptions(options);this.makeShim();return this;},makeShim:function(){if(this.options.browsers){var zIndex=this.element.getStyle('zIndex').toInt();if(!zIndex){zIndex=1;var pos=this.element.getStyle('position');if(pos=='static'||!pos)this.element.setStyle('position','relative');this.element.setStyle('zIndex',zIndex);} zIndex=((this.options.zIndex!=null||this.options.zIndex===0)&&zIndex>this.options.zIndex)?this.options.zIndex:zIndex-1;if(zIndex<0)zIndex=1;this.shim=new Element('iframe',{src:this.options.src,scrolling:'no',frameborder:0,styles:{zIndex:zIndex,position:'absolute',border:'none',filter:'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)'},'class':this.options.className}).store('IframeShim',this);var inject=(function(){this.shim.inject(this.element,'after');this[this.options.display?'show':'hide']();this.fireEvent('inject');}).bind(this);if(!IframeShim.ready)window.addEvent('load',inject);else inject();}else{this.position=this.hide=this.show=this.dispose=Function.from(this);}},position:function(){if(!IframeShim.ready||!this.shim)return this;var size=this.element.measure(function(){return this.getSize();});if(this.options.margin!=undefined){size.x=size.x-(this.options.margin*2);size.y=size.y-(this.options.margin*2);this.options.offset.x+=this.options.margin;this.options.offset.y+=this.options.margin;} this.shim.set({width:size.x,height:size.y}).position({relativeTo:this.element,offset:this.options.offset});return this;},hide:function(){if(this.shim)this.shim.setStyle('display','none');return this;},show:function(){if(this.shim)this.shim.setStyle('display','block');return this.position();},dispose:function(){if(this.shim)this.shim.dispose();return this;},destroy:function(){if(this.shim)this.shim.destroy();return this;}});window.addEvent('load',function(){IframeShim.ready=true;});var Mask=new Class({Implements:[Options,Events],Binds:['position'],options:{style:{},'class':'mask',maskMargins:false,useIframeShim:true,iframeShimOptions:{}},initialize:function(target,options){this.target=document.id(target)||document.id(document.body);this.target.store('mask',this);this.setOptions(options);this.render();this.inject();},render:function(){this.element=new Element('div',{'class':this.options['class'],id:this.options.id||'mask-'+String.uniqueID(),styles:Object.merge({},this.options.style,{display:'none'}),events:{click:function(event){this.fireEvent('click',event);if(this.options.hideOnClick)this.hide();}.bind(this)}});this.hidden=true;},toElement:function(){return this.element;},inject:function(target,where){where=where||(this.options.inject?this.options.inject.where:'')||this.target==document.body?'inside':'after';target=target||(this.options.inject&&this.options.inject.target)||this.target;this.element.inject(target,where);if(this.options.useIframeShim){this.shim=new IframeShim(this.element,this.options.iframeShimOptions);this.addEvents({show:this.shim.show.bind(this.shim),hide:this.shim.hide.bind(this.shim),destroy:this.shim.destroy.bind(this.shim)});}},position:function(){this.resize(this.options.width,this.options.height);this.element.position({relativeTo:this.target,position:'topLeft',ignoreMargins:!this.options.maskMargins,ignoreScroll:this.target==document.body});return this;},resize:function(x,y){var opt={styles:['padding','border']};if(this.options.maskMargins)opt.styles.push('margin');var dim=this.target.getComputedSize(opt);if(this.target==document.body){this.element.setStyles({width:0,height:0});var win=window.getScrollSize();if(dim.totalHeight=0&&element.options[element.selectedIndex].value!='');else return((element.get('value')==null)||(element.get('value').length==0));}});Form.Validator.addAllThese([['required',{errorMsg:function(){return Form.Validator.getMsg('required');},test:function(element){return!Form.Validator.getValidator('IsEmpty').test(element);}}],['length',{errorMsg:function(element,props){if(typeOf(props.length)!='null') return Form.Validator.getMsg('length').substitute({length:props.length,elLength:element.get('value').length});else return'';},test:function(element,props){if(typeOf(props.length)!='null')return(element.get('value').length==props.length||element.get('value').length==0);else return true;}}],['minLength',{errorMsg:function(element,props){if(typeOf(props.minLength)!='null') return Form.Validator.getMsg('minLength').substitute({minLength:props.minLength,length:element.get('value').length});else return'';},test:function(element,props){if(typeOf(props.minLength)!='null')return(element.get('value').length>=(props.minLength||0));else return true;}}],['maxLength',{errorMsg:function(element,props){if(typeOf(props.maxLength)!='null') return Form.Validator.getMsg('maxLength').substitute({maxLength:props.maxLength,length:element.get('value').length});else return'';},test:function(element,props){return element.get('value').length<=(props.maxLength||10000);}}],['validate-integer',{errorMsg:Form.Validator.getMsg.pass('integer'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^(-?[1-9]\d*|0)$/).test(element.get('value'));}}],['validate-numeric',{errorMsg:Form.Validator.getMsg.pass('numeric'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^-?(?:0$0(?=\d*\.)|[1-9]|0)\d*(\.\d+)?$/).test(element.get('value'));}}],['validate-digits',{errorMsg:Form.Validator.getMsg.pass('digits'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^[\d() .:\-\+#]+$/.test(element.get('value')));}}],['validate-alpha',{errorMsg:Form.Validator.getMsg.pass('alpha'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^[a-zA-Z]+$/).test(element.get('value'));}}],['validate-alphanum',{errorMsg:Form.Validator.getMsg.pass('alphanum'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||!(/\W/).test(element.get('value'));}}],['validate-date',{errorMsg:function(element,props){if(Date.parse){var format=props.dateFormat||'%x';return Form.Validator.getMsg('dateSuchAs').substitute({date:new Date().format(format)});}else{return Form.Validator.getMsg('dateInFormatMDY');}},test:function(element,props){if(Form.Validator.getValidator('IsEmpty').test(element))return true;var dateLocale=Locale.getCurrent().sets.Date,dateNouns=new RegExp([dateLocale.days,dateLocale.days_abbr,dateLocale.months,dateLocale.months_abbr].flatten().join('|'),'i'),value=element.get('value'),wordsInValue=value.match(/[a-z]+/gi);if(wordsInValue&&!wordsInValue.every(dateNouns.exec,dateNouns))return false;var date=Date.parse(value),format=props.dateFormat||'%x',formatted=date.format(format);if(formatted!='invalid date')element.set('value',formatted);return date.isValid();}}],['validate-email',{errorMsg:Form.Validator.getMsg.pass('email'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]\.?){0,63}[a-z0-9!#$%&'*+\/=?^_`{|}~-]@(?:(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\])$/i).test(element.get('value'));}}],['validate-url',{errorMsg:Form.Validator.getMsg.pass('url'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^(https?|ftp|rmtp|mms):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i).test(element.get('value'));}}],['validate-currency-dollar',{errorMsg:Form.Validator.getMsg.pass('currencyDollar'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^\$?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/).test(element.get('value'));}}],['validate-one-required',{errorMsg:Form.Validator.getMsg.pass('oneRequired'),test:function(element,props){var p=document.id(props['validate-one-required'])||element.getParent(props['validate-one-required']);return p.getElements('input').some(function(el){if(['checkbox','radio'].contains(el.get('type')))return el.get('checked');return el.get('value');});}}]]);Element.Properties.validator={set:function(options){this.get('validator').setOptions(options);},get:function(){var validator=this.retrieve('validator');if(!validator){validator=new Form.Validator(this);this.store('validator',validator);} return validator;}};Element.implement({validate:function(options){if(options)this.set('validator',options);return this.get('validator').validate();}});var FormValidator=Form.Validator;Form.Validator.Inline=new Class({Extends:Form.Validator,options:{showError:function(errorElement){if(errorElement.reveal)errorElement.reveal();else errorElement.setStyle('display','block');},hideError:function(errorElement){if(errorElement.dissolve)errorElement.dissolve();else errorElement.setStyle('display','none');},scrollToErrorsOnSubmit:true,scrollToErrorsOnBlur:false,scrollToErrorsOnChange:false,scrollFxOptions:{transition:'quad:out',offset:{y:-20}}},initialize:function(form,options){this.parent(form,options);this.addEvent('onElementValidate',function(isValid,field,className,warn){var validator=this.getValidator(className);if(!isValid&&validator.getError(field)){if(warn)field.addClass('warning');var advice=this.makeAdvice(className,field,validator.getError(field),warn);this.insertAdvice(advice,field);this.showAdvice(className,field);}else{this.hideAdvice(className,field);}});},makeAdvice:function(className,field,error,warn){var errorMsg=(warn)?this.warningPrefix:this.errorPrefix;errorMsg+=(this.options.useTitles)?field.title||error:error;var cssClass=(warn)?'warning-advice':'validation-advice';var advice=this.getAdvice(className,field);if(advice){advice=advice.set('html',errorMsg);}else{advice=new Element('div',{html:errorMsg,styles:{display:'none'},id:'advice-'+className.split(':')[0]+'-'+this.getFieldId(field)}).addClass(cssClass);} field.store('$moo:advice-'+className,advice);return advice;},getFieldId:function(field){return field.id?field.id:field.id='input_'+field.name;},showAdvice:function(className,field){var advice=this.getAdvice(className,field);if(advice&&!field.retrieve('$moo:'+this.getPropName(className))&&(advice.getStyle('display')=='none'||advice.getStyle('visiblity')=='hidden'||advice.getStyle('opacity')==0)){field.store('$moo:'+this.getPropName(className),true);this.options.showError(advice);this.fireEvent('showAdvice',[field,advice,className]);}},hideAdvice:function(className,field){var advice=this.getAdvice(className,field);if(advice&&field.retrieve('$moo:'+this.getPropName(className))){field.store('$moo:'+this.getPropName(className),false);this.options.hideError(advice);this.fireEvent('hideAdvice',[field,advice,className]);}},getPropName:function(className){return'advice'+className;},resetField:function(field){field=document.id(field);if(!field)return this;this.parent(field);field.get('validators').each(function(className){this.hideAdvice(className,field);},this);return this;},getAllAdviceMessages:function(field,force){var advice=[];if(field.hasClass('ignoreValidation')&&!force)return advice;var validators=field.get('validators').some(function(cn){var warner=cn.test('^warn-')||field.hasClass('warnOnly');if(warner)cn=cn.replace(/^warn-/,'');var validator=this.getValidator(cn);if(!validator)return;advice.push({message:validator.getError(field),warnOnly:warner,passed:validator.test(),validator:validator});},this);return advice;},getAdvice:function(className,field){return field.retrieve('$moo:advice-'+className);},insertAdvice:function(advice,field){var props=field.get('validatorProps');if(!props.msgPos||!document.id(props.msgPos)){if(field.type&&field.type.toLowerCase()=='radio')field.getParent().adopt(advice);else advice.inject(document.id(field),'after');}else{document.id(props.msgPos).grab(advice);}},validateField:function(field,force,scroll){var result=this.parent(field,force);if(((this.options.scrollToErrorsOnSubmit&&scroll==null)||scroll)&&!result){var failed=document.id(this).getElement('.validation-failed');var par=document.id(this).getParent();while(par!=document.body&&par.getScrollSize().y==par.getSize().y){par=par.getParent();} var fx=par.retrieve('$moo:fvScroller');if(!fx&&window.Fx&&Fx.Scroll){fx=new Fx.Scroll(par,this.options.scrollFxOptions);par.store('$moo:fvScroller',fx);} if(failed){if(fx)fx.toElement(failed);else par.scrollTo(par.getScroll().x,failed.getPosition(par).y-20);}} return result;},watchFields:function(fields){fields.each(function(el){if(this.options.evaluateFieldsOnBlur){el.addEvent('blur',this.validationMonitor.pass([el,false,this.options.scrollToErrorsOnBlur],this));} if(this.options.evaluateFieldsOnChange){el.addEvent('change',this.validationMonitor.pass([el,true,this.options.scrollToErrorsOnChange],this));}},this);}});Form.Validator.addAllThese([['validate-enforce-oncheck',{test:function(element,props){var fv=element.getParent('form').retrieve('validator');if(!fv)return true;(props.toEnforce||document.id(props.enforceChildrenOf).getElements('input, select, textarea')).map(function(item){if(element.checked){fv.enforceField(item);}else{fv.ignoreField(item);fv.resetField(item);}});return true;}}],['validate-ignore-oncheck',{test:function(element,props){var fv=element.getParent('form').retrieve('validator');if(!fv)return true;(props.toIgnore||document.id(props.ignoreChildrenOf).getElements('input, select, textarea')).each(function(item){if(element.checked){fv.ignoreField(item);fv.resetField(item);}else{fv.enforceField(item);}});return true;}}],['validate-nospace',{errorMsg:function(){return Form.Validator.getMsg('noSpace');},test:function(element,props){return!element.get('value').test(/\s/);}}],['validate-toggle-oncheck',{test:function(element,props){var fv=element.getParent('form').retrieve('validator');if(!fv)return true;var eleArr=props.toToggle||document.id(props.toToggleChildrenOf).getElements('input, select, textarea');if(!element.checked){eleArr.each(function(item){fv.ignoreField(item);fv.resetField(item);});}else{eleArr.each(function(item){fv.enforceField(item);});} return true;}}],['validate-reqchk-bynode',{errorMsg:function(){return Form.Validator.getMsg('reqChkByNode');},test:function(element,props){return(document.id(props.nodeId).getElements(props.selector||'input[type=checkbox], input[type=radio]')).some(function(item){return item.checked;});}}],['validate-required-check',{errorMsg:function(element,props){return props.useTitle?element.get('title'):Form.Validator.getMsg('requiredChk');},test:function(element,props){return!!element.checked;}}],['validate-reqchk-byname',{errorMsg:function(element,props){return Form.Validator.getMsg('reqChkByName').substitute({label:props.label||element.get('type')});},test:function(element,props){var grpName=props.groupName||element.get('name');var oneCheckedItem=$$(document.getElementsByName(grpName)).some(function(item,index){return item.checked;});var fv=element.getParent('form').retrieve('validator');if(oneCheckedItem&&fv)fv.resetField(element);return oneCheckedItem;}}],['validate-match',{errorMsg:function(element,props){return Form.Validator.getMsg('match').substitute({matchName:props.matchName||document.id(props.matchInput).get('name')});},test:function(element,props){var eleVal=element.get('value');var matchVal=document.id(props.matchInput)&&document.id(props.matchInput).get('value');return eleVal&&matchVal?eleVal==matchVal:true;}}],['validate-after-date',{errorMsg:function(element,props){return Form.Validator.getMsg('afterDate').substitute({label:props.afterLabel||(props.afterElement?Form.Validator.getMsg('startDate'):Form.Validator.getMsg('currentDate'))});},test:function(element,props){var start=document.id(props.afterElement)?Date.parse(document.id(props.afterElement).get('value')):new Date();var end=Date.parse(element.get('value'));return end&&start?end>=start:true;}}],['validate-before-date',{errorMsg:function(element,props){return Form.Validator.getMsg('beforeDate').substitute({label:props.beforeLabel||(props.beforeElement?Form.Validator.getMsg('endDate'):Form.Validator.getMsg('currentDate'))});},test:function(element,props){var start=Date.parse(element.get('value'));var end=document.id(props.beforeElement)?Date.parse(document.id(props.beforeElement).get('value')):new Date();return end&&start?end>=start:true;}}],['validate-custom-required',{errorMsg:function(){return Form.Validator.getMsg('required');},test:function(element,props){return element.get('value')!=props.emptyValue;}}],['validate-same-month',{errorMsg:function(element,props){var startMo=document.id(props.sameMonthAs)&&document.id(props.sameMonthAs).get('value');var eleVal=element.get('value');if(eleVal!='')return Form.Validator.getMsg(startMo?'sameMonth':'startMonth');},test:function(element,props){var d1=Date.parse(element.get('value'));var d2=Date.parse(document.id(props.sameMonthAs)&&document.id(props.sameMonthAs).get('value'));return d1&&d2?d1.format('%B')==d2.format('%B'):true;}}],['validate-cc-num',{errorMsg:function(element){var ccNum=element.get('value').replace(/[^0-9]/g,'');return Form.Validator.getMsg('creditcard').substitute({length:ccNum.length});},test:function(element){if(Form.Validator.getValidator('IsEmpty').test(element))return true;var ccNum=element.get('value');ccNum=ccNum.replace(/[^0-9]/g,'');var valid_type=false;if(ccNum.test(/^4[0-9]{12}([0-9]{3})?$/))valid_type='Visa';else if(ccNum.test(/^5[1-5]([0-9]{14})$/))valid_type='Master Card';else if(ccNum.test(/^3[47][0-9]{13}$/))valid_type='American Express';else if(ccNum.test(/^6011[0-9]{12}$/))valid_type='Discover';if(valid_type){var sum=0;var cur=0;for(var i=ccNum.length-1;i>=0;--i){cur=ccNum.charAt(i).toInt();if(cur==0)continue;if((ccNum.length-i)%2==0)cur+=cur;if(cur>9){cur=cur.toString().charAt(0).toInt()+cur.toString().charAt(1).toInt();} sum+=cur;} if((sum%10)==0)return true;} var chunks='';while(ccNum!=''){chunks+=' '+ccNum.substr(0,4);ccNum=ccNum.substr(4);} element.getParent('form').retrieve('validator').ignoreField(element);element.set('value',chunks.clean());element.getParent('form').retrieve('validator').enforceField(element);return false;}}]]);var OverText=new Class({Implements:[Options,Events,Class.Occlude],Binds:['reposition','assert','focus','hide'],options:{element:'label',labelClass:'overTxtLabel',positionOptions:{position:'upperLeft',edge:'upperLeft',offset:{x:4,y:2}},poll:false,pollInterval:250,wrap:false},property:'OverText',initialize:function(element,options){element=this.element=document.id(element);if(this.occlude())return this.occluded;this.setOptions(options);this.attach(element);OverText.instances.push(this);if(this.options.poll)this.poll();},toElement:function(){return this.element;},attach:function(){var element=this.element,options=this.options,value=options.textOverride||element.get('alt')||element.get('title');if(!value)return this;var text=this.text=new Element(options.element,{'class':options.labelClass,styles:{lineHeight:'normal',position:'absolute',cursor:'text'},html:value,events:{click:this.hide.pass(options.element=='label',this)}}).inject(element,'after');if(options.element=='label'){if(!element.get('id'))element.set('id','input_'+String.uniqueID());text.set('for',element.get('id'));} if(options.wrap){this.textHolder=new Element('div.overTxtWrapper',{styles:{lineHeight:'normal',position:'relative'}}).grab(text).inject(element,'before');} return this.enable();},destroy:function(){this.element.eliminate(this.property);this.disable();if(this.text)this.text.destroy();if(this.textHolder)this.textHolder.destroy();return this;},disable:function(){this.element.removeEvents({focus:this.focus,blur:this.assert,change:this.assert});window.removeEvent('resize',this.reposition);this.hide(true,true);return this;},enable:function(){this.element.addEvents({focus:this.focus,blur:this.assert,change:this.assert});window.addEvent('resize',this.reposition);this.reposition();return this;},wrap:function(){if(this.options.element=='label'){if(!this.element.get('id'))this.element.set('id','input_'+String.uniqueID());this.text.set('for',this.element.get('id'));}},startPolling:function(){this.pollingPaused=false;return this.poll();},poll:function(stop){if(this.poller&&!stop)return this;if(stop){clearInterval(this.poller);}else{this.poller=(function(){if(!this.pollingPaused)this.assert(true);}).periodical(this.options.pollInterval,this);} return this;},stopPolling:function(){this.pollingPaused=true;return this.poll(true);},focus:function(){if(this.text&&(!this.text.isDisplayed()||this.element.get('disabled')))return this;return this.hide();},hide:function(suppressFocus,force){if(this.text&&(this.text.isDisplayed()&&(!this.element.get('disabled')||force))){this.text.hide();this.fireEvent('textHide',[this.text,this.element]);this.pollingPaused=true;if(!suppressFocus){try{this.element.fireEvent('focus');this.element.focus();}catch(e){}}} return this;},show:function(){if(this.text&&!this.text.isDisplayed()){this.text.show();this.reposition();this.fireEvent('textShow',[this.text,this.element]);this.pollingPaused=false;} return this;},test:function(){return!this.element.get('value');},assert:function(suppressFocus){return this[this.test()?'show':'hide'](suppressFocus);},reposition:function(){this.assert(true);if(!this.element.isVisible())return this.stopPolling().hide();if(this.text&&this.test()){this.text.position(Object.merge(this.options.positionOptions,{relativeTo:this.element}));} return this;}});OverText.instances=[];Object.append(OverText,{each:function(fn){return OverText.instances.each(function(ot,i){if(ot.element&&ot.text)fn.call(OverText,ot,i);});},update:function(){return OverText.each(function(ot){return ot.reposition();});},hideAll:function(){return OverText.each(function(ot){return ot.hide(true,true);});},showAll:function(){return OverText.each(function(ot){return ot.show();});}});Fx.Elements=new Class({Extends:Fx.CSS,initialize:function(elements,options){this.elements=this.subject=$$(elements);this.parent(options);},compute:function(from,to,delta){var now={};for(var i in from){var iFrom=from[i],iTo=to[i],iNow=now[i]={};for(var p in iFrom)iNow[p]=this.parent(iFrom[p],iTo[p],delta);} return now;},set:function(now){for(var i in now){if(!this.elements[i])continue;var iNow=now[i];for(var p in iNow)this.render(this.elements[i],p,iNow[p],this.options.unit);} return this;},start:function(obj){if(!this.check(obj))return this;var from={},to={};for(var i in obj){if(!this.elements[i])continue;var iProps=obj[i],iFrom=from[i]={},iTo=to[i]={};for(var p in iProps){var parsed=this.prepare(this.elements[i],p,iProps[p]);iFrom[p]=parsed.from;iTo[p]=parsed.to;}} return this.parent(from,to);}});Fx.Accordion=new Class({Extends:Fx.Elements,options:{fixedHeight:false,fixedWidth:false,display:0,show:false,height:true,width:false,opacity:true,alwaysHide:false,trigger:'click',initialDisplayFx:true,resetHeight:true},initialize:function(){var defined=function(obj){return obj!=null;};var params=Array.link(arguments,{'container':Type.isElement,'options':Type.isObject,'togglers':defined,'elements':defined});this.parent(params.elements,params.options);var options=this.options,togglers=this.togglers=$$(params.togglers);this.previous=-1;this.internalChain=new Chain();if(options.alwaysHide)this.options.link='chain';if(options.show||this.options.show===0){options.display=false;this.previous=options.show;} if(options.start){options.display=false;options.show=false;} var effects=this.effects={};if(options.opacity)effects.opacity='fullOpacity';if(options.width)effects.width=options.fixedWidth?'fullWidth':'offsetWidth';if(options.height)effects.height=options.fixedHeight?'fullHeight':'scrollHeight';for(var i=0,l=togglers.length;i=0?idx-1:0)).chain(remover);}else{remover();} return this;},detach:function(toggler){var remove=function(toggler){toggler.removeEvent(this.options.trigger,toggler.retrieve('accordion:display'));}.bind(this);if(!toggler)this.togglers.each(remove);else remove(toggler);return this;},display:function(index,useFx){if(!this.check(index,useFx))return this;var obj={},elements=this.elements,options=this.options,effects=this.effects;if(useFx==null)useFx=true;if(typeOf(index)=='element')index=elements.indexOf(index);if(index==this.previous&&!options.alwaysHide)return this;if(options.resetHeight){var prev=elements[this.previous];if(prev&&!this.selfHidden){for(var fx in effects)prev.setStyle(fx,prev[effects[fx]]);}} if((this.timer&&options.link=='chain')||(index===this.previous&&!options.alwaysHide))return this;this.previous=index;this.selfHidden=false;elements.each(function(el,i){obj[i]={};var hide;if(i!=index){hide=true;}else if(options.alwaysHide&&((el.offsetHeight>0&&options.height)||el.offsetWidth>0&&options.width)){hide=true;this.selfHidden=true;} this.fireEvent(hide?'background':'active',[this.togglers[i],el]);for(var fx in effects)obj[i][fx]=hide?0:el[effects[fx]];if(!useFx&&!hide&&options.resetHeight)obj[i].height='auto';},this);this.internalChain.clearChain();this.internalChain.chain(function(){if(options.resetHeight&&!this.selfHidden){var el=elements[index];if(el)el.setStyle('height','auto');}}.bind(this));return useFx?this.start(obj):this.set(obj).internalChain.callChain();}});var Accordion=new Class({Extends:Fx.Accordion,initialize:function(){this.parent.apply(this,arguments);var params=Array.link(arguments,{'container':Type.isElement});this.container=params.container;},addSection:function(toggler,element,pos){toggler=document.id(toggler);element=document.id(element);var test=this.togglers.contains(toggler);var len=this.togglers.length;if(len&&(!test||pos)){pos=pos!=null?pos:len-1;toggler.inject(this.togglers[pos],'before');element.inject(toggler,'after');}else if(this.container&&!test){toggler.inject(this.container);element.inject(this.container);} return this.parent.apply(this,arguments);}});Fx.Move=new Class({Extends:Fx.Morph,options:{relativeTo:document.body,position:'center',edge:false,offset:{x:0,y:0}},start:function(destination){var element=this.element,topLeft=element.getStyles('top','left');if(topLeft.top=='auto'||topLeft.left=='auto'){element.setPosition(element.getPosition(element.getOffsetParent()));} return this.parent(element.position(Object.merge({},this.options,destination,{returnPos:true})));}});Element.Properties.move={set:function(options){this.get('move').cancel().setOptions(options);return this;},get:function(){var move=this.retrieve('move');if(!move){move=new Fx.Move(this,{link:'cancel'});this.store('move',move);} return move;}};Element.implement({move:function(options){this.get('move').start(options);return this;}});(function(){Fx.Scroll=new Class({Extends:Fx,options:{offset:{x:0,y:0},wheelStops:true},initialize:function(element,options){this.element=this.subject=document.id(element);this.parent(options);if(typeOf(this.element)!='element')this.element=document.id(this.element.getDocument().body);if(this.options.wheelStops){var stopper=this.element,cancel=this.cancel.pass(false,this);this.addEvent('start',function(){stopper.addEvent('mousewheel',cancel);},true);this.addEvent('complete',function(){stopper.removeEvent('mousewheel',cancel);},true);}},set:function(){var now=Array.flatten(arguments);if(Browser.firefox)now=[Math.round(now[0]),Math.round(now[1])];this.element.scrollTo(now[0],now[1]);return this;},compute:function(from,to,delta){return[0,1].map(function(i){return Fx.compute(from[i],to[i],delta);});},start:function(x,y){if(!this.check(x,y))return this;var scroll=this.element.getScroll();return this.parent([scroll.x,scroll.y],[x,y]);},calculateScroll:function(x,y){var element=this.element,scrollSize=element.getScrollSize(),scroll=element.getScroll(),size=element.getSize(),offset=this.options.offset,values={x:x,y:y};for(var z in values){if(!values[z]&&values[z]!==0)values[z]=scroll[z];if(typeOf(values[z])!='number')values[z]=scrollSize[z]-size[z];values[z]+=offset[z];} return[values.x,values.y];},toTop:function(){return this.start.apply(this,this.calculateScroll(false,0));},toLeft:function(){return this.start.apply(this,this.calculateScroll(0,false));},toRight:function(){return this.start.apply(this,this.calculateScroll('right',false));},toBottom:function(){return this.start.apply(this,this.calculateScroll(false,'bottom'));},toElement:function(el,axes){axes=axes?Array.from(axes):['x','y'];var scroll=isBody(this.element)?{x:0,y:0}:this.element.getScroll();var position=Object.map(document.id(el).getPosition(this.element),function(value,axis){return axes.contains(axis)?value+scroll[axis]:false;});return this.start.apply(this,this.calculateScroll(position.x,position.y));},toElementEdge:function(el,axes,offset){axes=axes?Array.from(axes):['x','y'];el=document.id(el);var to={},position=el.getPosition(this.element),size=el.getSize(),scroll=this.element.getScroll(),containerSize=this.element.getSize(),edge={x:position.x+size.x,y:position.y+size.y};['x','y'].each(function(axis){if(axes.contains(axis)){if(edge[axis]>scroll[axis]+containerSize[axis])to[axis]=edge[axis]-containerSize[axis];if(position[axis]this.elements.length) newOrder.splice(this.elements.length-1,newOrder.length-this.elements.length);} var margin=0;top=left=0;newOrder.each(function(item){var newPos={};if(vert){newPos.top=top-current[item].top-margin;top+=current[item].height;}else{newPos.left=left-current[item].left;left+=current[item].width;} margin=margin+current[item].margin;next[item]=newPos;},this);var mapped={};Array.clone(newOrder).sort().each(function(index){mapped[index]=next[index];});this.start(mapped);this.currentOrder=newOrder;return this;},rearrangeDOM:function(newOrder){newOrder=newOrder||this.currentOrder;var parent=this.elements[0].getParent();var rearranged=[];this.elements.setStyle('opacity',0);newOrder.each(function(index){rearranged.push(this.elements[index].inject(parent).setStyles({top:0,left:0}));},this);this.elements.setStyle('opacity',1);this.elements=$$(rearranged);this.setDefaultOrder();return this;},getDefaultOrder:function(){return this.elements.map(function(el,index){return index;});},getCurrentOrder:function(){return this.currentOrder;},forward:function(){return this.sort(this.getDefaultOrder());},backward:function(){return this.sort(this.getDefaultOrder().reverse());},reverse:function(){return this.sort(this.currentOrder.reverse());},sortByElements:function(elements){return this.sort(elements.map(function(el){return this.elements.indexOf(el);},this));},swap:function(one,two){if(typeOf(one)=='element')one=this.elements.indexOf(one);if(typeOf(two)=='element')two=this.elements.indexOf(two);var newOrder=Array.clone(this.currentOrder);newOrder[this.currentOrder.indexOf(one)]=two;newOrder[this.currentOrder.indexOf(two)]=one;return this.sort(newOrder);}});var Drag=new Class({Implements:[Events,Options],options:{snap:6,unit:'px',grid:false,style:true,limit:false,handle:false,invert:false,preventDefault:false,stopPropagation:false,modifiers:{x:'left',y:'top'}},initialize:function(){var params=Array.link(arguments,{'options':Type.isObject,'element':function(obj){return obj!=null;}});this.element=document.id(params.element);this.document=this.element.getDocument();this.setOptions(params.options||{});var htype=typeOf(this.options.handle);this.handles=((htype=='array'||htype=='collection')?$$(this.options.handle):document.id(this.options.handle))||this.element;this.mouse={'now':{},'pos':{}};this.value={'start':{},'now':{}};this.selection=(Browser.ie)?'selectstart':'mousedown';if(Browser.ie&&!Drag.ondragstartFixed){document.ondragstart=Function.from(false);Drag.ondragstartFixed=true;} this.bound={start:this.start.bind(this),check:this.check.bind(this),drag:this.drag.bind(this),stop:this.stop.bind(this),cancel:this.cancel.bind(this),eventStop:Function.from(false)};this.attach();},attach:function(){this.handles.addEvent('mousedown',this.bound.start);return this;},detach:function(){this.handles.removeEvent('mousedown',this.bound.start);return this;},start:function(event){var options=this.options;if(event.rightClick)return;if(options.preventDefault)event.preventDefault();if(options.stopPropagation)event.stopPropagation();this.mouse.start=event.page;this.fireEvent('beforeStart',this.element);var limit=options.limit;this.limit={x:[],y:[]};var z,coordinates;for(z in options.modifiers){if(!options.modifiers[z])continue;var style=this.element.getStyle(options.modifiers[z]);if(style&&!style.match(/px$/)){if(!coordinates)coordinates=this.element.getCoordinates(this.element.getOffsetParent());style=coordinates[options.modifiers[z]];} if(options.style)this.value.now[z]=(style||0).toInt();else this.value.now[z]=this.element[options.modifiers[z]];if(options.invert)this.value.now[z]*=-1;this.mouse.pos[z]=event.page[z]-this.value.now[z];if(limit&&limit[z]){var i=2;while(i--){var limitZI=limit[z][i];if(limitZI||limitZI===0)this.limit[z][i]=(typeof limitZI=='function')?limitZI():limitZI;}}} if(typeOf(this.options.grid)=='number')this.options.grid={x:this.options.grid,y:this.options.grid};var events={mousemove:this.bound.check,mouseup:this.bound.cancel};events[this.selection]=this.bound.eventStop;this.document.addEvents(events);},check:function(event){if(this.options.preventDefault)event.preventDefault();var distance=Math.round(Math.sqrt(Math.pow(event.page.x-this.mouse.start.x,2)+Math.pow(event.page.y-this.mouse.start.y,2)));if(distance>this.options.snap){this.cancel();this.document.addEvents({mousemove:this.bound.drag,mouseup:this.bound.stop});this.fireEvent('start',[this.element,event]).fireEvent('snap',this.element);}},drag:function(event){var options=this.options;if(options.preventDefault)event.preventDefault();this.mouse.now=event.page;for(var z in options.modifiers){if(!options.modifiers[z])continue;this.value.now[z]=this.mouse.now[z]-this.mouse.pos[z];if(options.invert)this.value.now[z]*=-1;if(options.limit&&this.limit[z]){if((this.limit[z][1]||this.limit[z][1]===0)&&(this.value.now[z]>this.limit[z][1])){this.value.now[z]=this.limit[z][1];}else if((this.limit[z][0]||this.limit[z][0]===0)&&(this.value.now[z]el.left&&now.xel.top);},this).getLast();if(this.overed!=overed){if(this.overed)this.fireEvent('leave',[this.element,this.overed]);if(overed)this.fireEvent('enter',[this.element,overed]);this.overed=overed;}},drag:function(event){this.parent(event);if(this.options.checkDroppables&&this.droppables.length)this.checkDroppables();},stop:function(event){this.checkDroppables();this.fireEvent('drop',[this.element,this.overed,event]);this.overed=null;return this.parent(event);}});Element.implement({makeDraggable:function(options){var drag=new Drag.Move(this,options);this.store('dragger',drag);return drag;}});var Slider=new Class({Implements:[Events,Options],Binds:['clickedElement','draggedKnob','scrolledElement'],options:{onTick:function(position){this.setKnobPosition(position);},initialStep:0,snap:false,offset:0,range:false,wheel:false,steps:100,mode:'horizontal'},initialize:function(element,knob,options){this.setOptions(options);options=this.options;this.element=document.id(element);knob=this.knob=document.id(knob);this.previousChange=this.previousEnd=this.step=-1;var limit={},modifiers={x:false,y:false};switch(options.mode){case'vertical':this.axis='y';this.property='top';this.offset='offsetHeight';break;case'horizontal':this.axis='x';this.property='left';this.offset='offsetWidth';} this.setSliderDimensions();this.setRange(options.range);if(knob.getStyle('position')=='static')knob.setStyle('position','relative');knob.setStyle(this.property,-options.offset);modifiers[this.axis]=this.property;limit[this.axis]=[-options.offset,this.full-options.offset];var dragOptions={snap:0,limit:limit,modifiers:modifiers,onDrag:this.draggedKnob,onStart:this.draggedKnob,onBeforeStart:(function(){this.isDragging=true;}).bind(this),onCancel:function(){this.isDragging=false;}.bind(this),onComplete:function(){this.isDragging=false;this.draggedKnob();this.end();}.bind(this)};if(options.snap)this.setSnap(dragOptions);this.drag=new Drag(knob,dragOptions);this.attach();if(options.initialStep!=null)this.set(options.initialStep);},attach:function(){this.element.addEvent('mousedown',this.clickedElement);if(this.options.wheel)this.element.addEvent('mousewheel',this.scrolledElement);this.drag.attach();return this;},detach:function(){this.element.removeEvent('mousedown',this.clickedElement).removeEvent('mousewheel',this.scrolledElement);this.drag.detach();return this;},autosize:function(){this.setSliderDimensions().setKnobPosition(this.toPosition(this.step));this.drag.options.limit[this.axis]=[-this.options.offset,this.full-this.options.offset];if(this.options.snap)this.setSnap();return this;},setSnap:function(options){if(!options)options=this.drag.options;options.grid=Math.ceil(this.stepWidth);options.limit[this.axis][1]=this.full;return this;},setKnobPosition:function(position){if(this.options.snap)position=this.toPosition(this.step);this.knob.setStyle(this.property,position);return this;},setSliderDimensions:function(){this.full=this.element.measure(function(){this.half=this.knob[this.offset]/2;return this.element[this.offset]-this.knob[this.offset]+(this.options.offset*2);}.bind(this));return this;},set:function(step){if(!((this.range>0)^(step0)^(step>this.max)))step=this.max;this.step=Math.round(step);return this.checkStep().fireEvent('tick',this.toPosition(this.step)).end();},setRange:function(range,pos){this.min=Array.pick([range[0],0]);this.max=Array.pick([range[1],this.options.steps]);this.range=this.max-this.min;this.steps=this.options.steps||this.full;this.stepSize=Math.abs(this.range)/this.steps;this.stepWidth=this.stepSize*this.full/Math.abs(this.range);if(range)this.set(Array.pick([pos,this.step]).floor(this.min).max(this.max));return this;},clickedElement:function(event){if(this.isDragging||event.target==this.knob)return;var dir=this.range<0?-1:1,position=event.page[this.axis]-this.element.getPosition()[this.axis]-this.half;position=position.limit(-this.options.offset,this.full-this.options.offset);this.step=Math.round(this.min+dir*this.toStep(position));this.checkStep().fireEvent('tick',position).end();},scrolledElement:function(event){var mode=(this.options.mode=='horizontal')?(event.wheel<0):(event.wheel>0);this.set(this.step+(mode?-1:1)*this.stepSize);event.stop();},draggedKnob:function(){var dir=this.range<0?-1:1,position=this.drag.value.now[this.axis];position=position.limit(-this.options.offset,this.full-this.options.offset);this.step=Math.round(this.min+dir*this.toStep(position));this.checkStep();},checkStep:function(){var step=this.step;if(this.previousChange!=step){this.previousChange=step;this.fireEvent('change',step);} return this;},end:function(){var step=this.step;if(this.previousEnd!==step){this.previousEnd=step;this.fireEvent('complete',step+'');} return this;},toStep:function(position){var step=(position+this.options.offset)*this.stepSize/this.full*this.steps;return this.options.steps?Math.round(step-=step%this.stepSize):step;},toPosition:function(step){return(this.full*Math.abs(this.min-step))/(this.steps*this.stepSize)-this.options.offset;}});var Sortables=new Class({Implements:[Events,Options],options:{opacity:1,clone:false,revert:false,handle:false,dragOptions:{},snap:4,constrain:false,preventDefault:false},initialize:function(lists,options){this.setOptions(options);this.elements=[];this.lists=[];this.idle=true;this.addLists($$(document.id(lists)||lists));if(!this.options.clone)this.options.revert=false;if(this.options.revert)this.effect=new Fx.Morph(null,Object.merge({duration:250,link:'cancel'},this.options.revert));},attach:function(){this.addLists(this.lists);return this;},detach:function(){this.lists=this.removeLists(this.lists);return this;},addItems:function(){Array.flatten(arguments).each(function(element){this.elements.push(element);var start=element.retrieve('sortables:start',function(event){this.start.call(this,event,element);}.bind(this));(this.options.handle?element.getElement(this.options.handle)||element:element).addEvent('mousedown',start);},this);return this;},addLists:function(){Array.flatten(arguments).each(function(list){this.lists.include(list);this.addItems(list.getChildren());},this);return this;},removeItems:function(){return $$(Array.flatten(arguments).map(function(element){this.elements.erase(element);var start=element.retrieve('sortables:start');(this.options.handle?element.getElement(this.options.handle)||element:element).removeEvent('mousedown',start);return element;},this));},removeLists:function(){return $$(Array.flatten(arguments).map(function(list){this.lists.erase(list);this.removeItems(list.getChildren());return list;},this));},getClone:function(event,element){if(!this.options.clone)return new Element(element.tagName).inject(document.body);if(typeOf(this.options.clone)=='function')return this.options.clone.call(this,event,element,this.list);var clone=element.clone(true).setStyles({margin:0,position:'absolute',visibility:'hidden',width:element.getStyle('width')}).addEvent('mousedown',function(event){element.fireEvent('mousedown',event);});if(clone.get('html').test('radio')){clone.getElements('input[type=radio]').each(function(input,i){input.set('name','clone_'+i);if(input.get('checked'))element.getElements('input[type=radio]')[i].set('checked',true);});} return clone.inject(this.list).setPosition(element.getPosition(element.getOffsetParent()));},getDroppables:function(){var droppables=this.list.getChildren().erase(this.clone).erase(this.element);if(!this.options.constrain)droppables.append(this.lists).erase(this.list);return droppables;},insert:function(dragging,element){var where='inside';if(this.lists.contains(element)){this.list=element;this.drag.droppables=this.getDroppables();}else{where=this.element.getAllPrevious().contains(element)?'before':'after';} this.element.inject(element,where);this.fireEvent('sort',[this.element,this.clone]);},start:function(event,element){if(!this.idle||event.rightClick||['button','input','a','textarea'].contains(event.target.get('tag')))return;this.idle=false;this.element=element;this.opacity=element.getStyle('opacity');this.list=element.getParent();this.clone=this.getClone(event,element);this.drag=new Drag.Move(this.clone,Object.merge({preventDefault:this.options.preventDefault,snap:this.options.snap,container:this.options.constrain&&this.element.getParent(),droppables:this.getDroppables()},this.options.dragOptions)).addEvents({onSnap:function(){event.stop();this.clone.setStyle('visibility','visible');this.element.setStyle('opacity',this.options.opacity||0);this.fireEvent('start',[this.element,this.clone]);}.bind(this),onEnter:this.insert.bind(this),onCancel:this.end.bind(this),onComplete:this.end.bind(this)});this.clone.inject(this.element,'before');this.drag.start(event);},end:function(){this.drag.detach();this.element.setStyle('opacity',this.opacity);if(this.effect){var dim=this.element.getStyles('width','height'),clone=this.clone,pos=clone.computePosition(this.element.getPosition(this.clone.getOffsetParent()));var destroy=function(){this.removeEvent('cancel',destroy);clone.destroy();};this.effect.element=clone;this.effect.start({top:pos.top,left:pos.left,width:dim.width,height:dim.height,opacity:0.25}).addEvent('cancel',destroy).chain(destroy);}else{this.clone.destroy();} this.reset();},reset:function(){this.idle=true;this.fireEvent('complete',this.element);},serialize:function(){var params=Array.link(arguments,{modifier:Type.isFunction,index:function(obj){return obj!=null;}});var serial=this.lists.map(function(list){return list.getChildren().map(params.modifier||function(element){return element.get('id');},this);},this);var index=params.index;if(this.lists.length==1)index=0;return(index||index===0)&&index>=0&&index2083)this.fireEvent('error',src);Request.JSONP.request_map['request_'+index]=function(){this.success(arguments,index);}.bind(this);var script=this.getScript(src).inject(options.injectScript);this.fireEvent('request',[src,script]);if(options.timeout)this.timeout.delay(options.timeout,this);return this;},getScript:function(src){if(!this.script)this.script=new Element('script',{type:'text/javascript',async:true,src:src});return this.script;},success:function(args,index){if(!this.running)return;this.clear().fireEvent('complete',args).fireEvent('success',args).callChain();},cancel:function(){if(this.running)this.clear().fireEvent('cancel');return this;},isRunning:function(){return!!this.running;},clear:function(){this.running=false;if(this.script){this.script.destroy();this.script=null;} return this;},timeout:function(){if(this.running){this.running=false;this.fireEvent('timeout',[this.script.get('src'),this.script]).fireEvent('failure').cancel();} return this;}});Request.JSONP.counter=0;Request.JSONP.request_map={};Request.Queue=new Class({Implements:[Options,Events],Binds:['attach','request','complete','cancel','success','failure','exception'],options:{stopOnFailure:true,autoAdvance:true,concurrent:1,requests:{}},initialize:function(options){var requests;if(options){requests=options.requests;delete options.requests;} this.setOptions(options);this.requests={};this.queue=[];this.reqBinders={};if(requests)this.addRequests(requests);},addRequest:function(name,request){this.requests[name]=request;this.attach(name,request);return this;},addRequests:function(obj){Object.each(obj,function(req,name){this.addRequest(name,req);},this);return this;},getName:function(req){return Object.keyOf(this.requests,req);},attach:function(name,req){if(req._groupSend)return this;['request','complete','cancel','success','failure','exception'].each(function(evt){if(!this.reqBinders[name])this.reqBinders[name]={};this.reqBinders[name][evt]=function(){this['on'+evt.capitalize()].apply(this,[name,req].append(arguments));}.bind(this);req.addEvent(evt,this.reqBinders[name][evt]);},this);req._groupSend=req.send;req.send=function(options){this.send(name,options);return req;}.bind(this);return this;},removeRequest:function(req){var name=typeOf(req)=='object'?this.getName(req):req;if(!name&&typeOf(name)!='string')return this;req=this.requests[name];if(!req)return this;['request','complete','cancel','success','failure','exception'].each(function(evt){req.removeEvent(evt,this.reqBinders[name][evt]);},this);req.send=req._groupSend;delete req._groupSend;return this;},getRunning:function(){return Object.filter(this.requests,function(r){return r.running;});},isRunning:function(){return!!(Object.keys(this.getRunning()).length);},send:function(name,options){var q=function(){this.requests[name]._groupSend(options);this.queue.erase(q);}.bind(this);q.name=name;if(Object.keys(this.getRunning()).length>=this.options.concurrent||(this.error&&this.options.stopOnFailure))this.queue.push(q);else q();return this;},hasNext:function(name){return(!name)?!!this.queue.length:!!this.queue.filter(function(q){return q.name==name;}).length;},resume:function(){this.error=false;(this.options.concurrent-Object.keys(this.getRunning()).length).times(this.runNext,this);return this;},runNext:function(name){if(!this.queue.length)return this;if(!name){this.queue[0]();}else{var found;this.queue.each(function(q){if(!found&&q.name==name){found=true;q();}});} return this;},runAll:function(){this.queue.each(function(q){q();});return this;},clear:function(name){if(!name){this.queue.empty();}else{this.queue=this.queue.map(function(q){if(q.name!=name)return q;else return false;}).filter(function(q){return q;});} return this;},cancel:function(name){this.requests[name].cancel();return this;},onRequest:function(){this.fireEvent('request',arguments);},onComplete:function(){this.fireEvent('complete',arguments);if(!this.queue.length)this.fireEvent('end');},onCancel:function(){if(this.options.autoAdvance&&!this.error)this.runNext();this.fireEvent('cancel',arguments);},onSuccess:function(){if(this.options.autoAdvance&&!this.error)this.runNext();this.fireEvent('success',arguments);},onFailure:function(){this.error=true;if(!this.options.stopOnFailure&&this.options.autoAdvance)this.runNext();this.fireEvent('failure',arguments);},onException:function(){this.error=true;if(!this.options.stopOnFailure&&this.options.autoAdvance)this.runNext();this.fireEvent('exception',arguments);}});Request.implement({options:{initialDelay:5000,delay:5000,limit:60000},startTimer:function(data){var fn=function(){if(!this.running)this.send({data:data});};this.lastDelay=this.options.initialDelay;this.timer=fn.delay(this.lastDelay,this);this.completeCheck=function(response){clearTimeout(this.timer);this.lastDelay=(response)?this.options.delay:(this.lastDelay+this.options.delay).min(this.options.limit);this.timer=fn.delay(this.lastDelay,this);};return this.addEvent('complete',this.completeCheck);},stopTimer:function(){clearTimeout(this.timer);return this.removeEvent('complete',this.completeCheck);}});var Asset={javascript:function(source,properties){if(!properties)properties={};var script=new Element('script',{src:source,type:'text/javascript'}),doc=properties.document||document,load=properties.onload||properties.onLoad;delete properties.onload;delete properties.onLoad;delete properties.document;if(load){if(typeof script.onreadystatechange!='undefined'){script.addEvent('readystatechange',function(){if(['loaded','complete'].contains(this.readyState))load.call(this);});}else{script.addEvent('load',load);}} return script.set(properties).inject(doc.head);},css:function(source,properties){if(!properties)properties={};var link=new Element('link',{rel:'stylesheet',media:'screen',type:'text/css',href:source});var load=properties.onload||properties.onLoad,doc=properties.document||document;delete properties.onload;delete properties.onLoad;delete properties.document;if(load)link.addEvent('load',load);return link.set(properties).inject(doc.head);},image:function(source,properties){if(!properties)properties={};var image=new Image(),element=document.id(image)||new Element('img');['load','abort','error'].each(function(name){var type='on'+name,cap='on'+name.capitalize(),event=properties[type]||properties[cap]||function(){};delete properties[cap];delete properties[type];image[type]=function(){if(!image)return;if(!element.parentNode){element.width=image.width;element.height=image.height;} image=image.onload=image.onabort=image.onerror=null;event.delay(1,element,element);element.fireEvent(name,element,1);};});image.src=element.src=source;if(image&&image.complete)image.onload.delay(1);return element.set(properties);},images:function(sources,options){sources=Array.from(sources);var fn=function(){},counter=0;options=Object.merge({onComplete:fn,onProgress:fn,onError:fn,properties:{}},options);return new Elements(sources.map(function(source,index){return Asset.image(source,Object.append(options.properties,{onload:function(){counter++;options.onProgress.call(this,counter,index,source);if(counter==sources.length)options.onComplete();},onerror:function(){counter++;options.onError.call(this,counter,index,source);if(counter==sources.length)options.onComplete();}}));}));}};(function(){var Color=this.Color=new Type('Color',function(color,type){if(arguments.length>=3){type='rgb';color=Array.slice(arguments,0,3);}else if(typeof color=='string'){if(color.match(/rgb/))color=color.rgbToHex().hexToRgb(true);else if(color.match(/hsb/))color=color.hsbToRgb();else color=color.hexToRgb(true);} type=type||'rgb';switch(type){case'hsb':var old=color;color=color.hsbToRgb();color.hsb=old;break;case'hex':color=color.hexToRgb(true);break;} color.rgb=color.slice(0,3);color.hsb=color.hsb||color.rgbToHsb();color.hex=color.rgbToHex();return Object.append(color,this);});Color.implement({mix:function(){var colors=Array.slice(arguments);var alpha=(typeOf(colors.getLast())=='number')?colors.pop():50;var rgb=this.slice();colors.each(function(color){color=new Color(color);for(var i=0;i<3;i++)rgb[i]=Math.round((rgb[i]/100*(100-alpha))+(color[i]/100*alpha));});return new Color(rgb,'rgb');},invert:function(){return new Color(this.map(function(value){return 255-value;}));},setHue:function(value){return new Color([value,this.hsb[1],this.hsb[2]],'hsb');},setSaturation:function(percent){return new Color([this.hsb[0],percent,this.hsb[2]],'hsb');},setBrightness:function(percent){return new Color([this.hsb[0],this.hsb[1],percent],'hsb');}});this.$RGB=function(r,g,b){return new Color([r,g,b],'rgb');};this.$HSB=function(h,s,b){return new Color([h,s,b],'hsb');};this.$HEX=function(hex){return new Color(hex,'hex');};Array.implement({rgbToHsb:function(){var red=this[0],green=this[1],blue=this[2],hue=0;var max=Math.max(red,green,blue),min=Math.min(red,green,blue);var delta=max-min;var brightness=max/255,saturation=(max!=0)?delta/max:0;if(saturation!=0){var rr=(max-red)/delta;var gr=(max-green)/delta;var br=(max-blue)/delta;if(red==max)hue=br-gr;else if(green==max)hue=2+rr-br;else hue=4+gr-rr;hue/=6;if(hue<0)hue++;} return[Math.round(hue*360),Math.round(saturation*100),Math.round(brightness*100)];},hsbToRgb:function(){var br=Math.round(this[2]/100*255);if(this[1]==0){return[br,br,br];}else{var hue=this[0]%360;var f=hue%60;var p=Math.round((this[2]*(100-this[1]))/10000*255);var q=Math.round((this[2]*(6000-this[1]*f))/600000*255);var t=Math.round((this[2]*(6000-this[1]*(60-f)))/600000*255);switch(Math.floor(hue/60)){case 0:return[br,t,p];case 1:return[q,br,p];case 2:return[p,br,t];case 3:return[p,q,br];case 4:return[t,p,br];case 5:return[br,p,q];}} return false;}});String.implement({rgbToHsb:function(){var rgb=this.match(/\d{1,3}/g);return(rgb)?rgb.rgbToHsb():null;},hsbToRgb:function(){var hsb=this.match(/\d{1,3}/g);return(hsb)?hsb.hsbToRgb():null;}});})();(function(){this.Group=new Class({initialize:function(){this.instances=Array.flatten(arguments);},addEvent:function(type,fn){var instances=this.instances,len=instances.length,togo=len,args=new Array(len),self=this;instances.each(function(instance,i){instance.addEvent(type,function(){if(!args[i])togo--;args[i]=arguments;if(!togo){fn.call(self,instances,instance,args);togo=len;args=new Array(len);}});});}});})();Hash.Cookie=new Class({Extends:Cookie,options:{autoSave:true},initialize:function(name,options){this.parent(name,options);this.load();},save:function(){var value=JSON.encode(this.hash);if(!value||value.length>4096)return false;if(value=='{}')this.dispose();else this.write(value);return true;},load:function(){this.hash=new Hash(JSON.decode(this.read(),true));return this;}});Hash.each(Hash.prototype,function(method,name){if(typeof method=='function')Hash.Cookie.implement(name,function(){var value=method.apply(this.hash,arguments);if(this.options.autoSave)this.save();return value;});});(function(){var Table=this.Table=function(){this.length=0;var keys=[],values=[];this.set=function(key,value){var index=keys.indexOf(key);if(index==-1){var length=keys.length;keys[length]=key;values[length]=value;this.length++;}else{values[index]=value;} return this;};this.get=function(key){var index=keys.indexOf(key);return(index==-1)?null:values[index];};this.erase=function(key){var index=keys.indexOf(key);if(index!=-1){this.length--;keys.splice(index,1);return values.splice(index,1)[0];} return null;};this.each=this.forEach=function(fn,bind){for(var i=0,l=this.length;i1?$$(rows):rows.length?document.id(rows[0]):false;},setHeaders:function(headers){this.set('headers',headers);return this;},setFooters:function(footers){this.set('footers',footers);return this;},update:function(tr,row,tag){var tds=tr.getChildren(tag||'td'),last=tds.length-1;row.each(function(data,index){var td=tds[index]||new Element(tag||'td').inject(tr),content=(data?data.content:'')||data,type=typeOf(content);if(data&&data.properties)td.set(data.properties);if(/(element(s?)|array|collection)/.test(type))td.empty().adopt(content);else td.set('html',content);if(index>last)tds.push(td);else tds[index]=td;});return{tr:tr,tds:tds};},push:function(row,rowProperties,target,tag,where){if(typeOf(row)=='element'&&row.get('tag')=='tr'){row.inject(target||this.body,where);return{tr:row,tds:row.getChildren('td')};} return this.update(new Element('tr',rowProperties).inject(target||this.body,where),row,tag);},pushMany:function(rows,rowProperties,target,tag,where){return rows.map(function(row){return this.push(row,rowProperties,target,tag,where);},this);}});['adopt','inject','wraps','grab','replaces','dispose'].each(function(method){HtmlTable.implement(method,function(){this.element[method].apply(this.element,arguments);return this;});});HtmlTable=Class.refactor(HtmlTable,{options:{classZebra:'table-tr-odd',zebra:true,zebraOnlyVisibleRows:true},initialize:function(){this.previous.apply(this,arguments);if(this.occluded)return this.occluded;if(this.options.zebra)this.updateZebras();},updateZebras:function(){var index=0;Array.each(this.body.rows,function(row){if(!this.options.zebraOnlyVisibleRows||row.isDisplayed()){this.zebra(row,index++);}},this);},setRowStyle:function(row,i){if(this.previous)this.previous(row,i);this.zebra(row,i);},zebra:function(row,i){return row[((i%2)?'remove':'add')+'Class'](this.options.classZebra);},push:function(){var pushed=this.previous.apply(this,arguments);if(this.options.zebra)this.updateZebras();return pushed;}});HtmlTable=Class.refactor(HtmlTable,{options:{sortIndex:0,sortReverse:false,parsers:[],defaultParser:'string',classSortable:'table-sortable',classHeadSort:'table-th-sort',classHeadSortRev:'table-th-sort-rev',classNoSort:'table-th-nosort',classGroupHead:'table-tr-group-head',classGroup:'table-tr-group',classCellSort:'table-td-sort',classSortSpan:'table-th-sort-span',sortable:false,thSelector:'th'},initialize:function(){this.previous.apply(this,arguments);if(this.occluded)return this.occluded;this.sorted={index:null,dir:1};if(!this.bound)this.bound={};this.bound.headClick=this.headClick.bind(this);this.sortSpans=new Elements();if(this.options.sortable){this.enableSort();if(this.options.sortIndex!=null)this.sort(this.options.sortIndex,this.options.sortReverse);}},attachSorts:function(attach){this.detachSorts();if(attach!==false)this.element.addEvent('click:relay('+this.options.thSelector+')',this.bound.headClick);},detachSorts:function(){this.element.removeEvents('click:relay('+this.options.thSelector+')');},setHeaders:function(){this.previous.apply(this,arguments);if(this.sortEnabled)this.setParsers();},setParsers:function(){this.parsers=this.detectParsers();},detectParsers:function(){return this.head&&this.head.getElements(this.options.thSelector).flatten().map(this.detectParser,this);},detectParser:function(cell,index){if(cell.hasClass(this.options.classNoSort)||cell.retrieve('htmltable-parser'))return cell.retrieve('htmltable-parser');var thDiv=new Element('div');thDiv.adopt(cell.childNodes).inject(cell);var sortSpan=new Element('span',{'class':this.options.classSortSpan}).inject(thDiv,'top');this.sortSpans.push(sortSpan);var parser=this.options.parsers[index],rows=this.body.rows,cancel;switch(typeOf(parser)){case'function':parser={convert:parser};cancel=true;break;case'string':parser=parser;cancel=true;break;} if(!cancel){HtmlTable.ParserPriority.some(function(parserName){var current=HtmlTable.Parsers[parserName],match=current.match;if(!match)return false;for(var i=0,j=rows.length;iposition)data[rowIndex].position--;}}},setRowStyle:function(row,i){this.previous(row,i);row.cells[this.sorted.index].addClass(this.options.classCellSort);},setGroupSort:function(group,row,item){if(group==item.value)row.removeClass(this.options.classGroupHead).addClass(this.options.classGroup);else row.removeClass(this.options.classGroup).addClass(this.options.classGroupHead);return item.value;},getParser:function(){var parser=this.parsers[this.sorted.index];return typeOf(parser)=='string'?HtmlTable.Parsers[parser]:parser;},sort:function(index,reverse,pre){if(!this.head)return;if(!pre){this.clearSort();this.setSortedState(index,reverse);this.setHeadSort(true);} var parser=this.getParser();if(!parser)return;var rel;if(!Browser.ie){rel=this.body.getParent();this.body.dispose();} var data=this.parseData(parser).sort(function(a,b){if(a.value===b.value)return 0;return a.value>b.value?1:-1;});if(this.sorted.reverse==(parser==HtmlTable.Parsers['input-checked']))data.reverse(true);this.setRowSort(data,pre);if(rel)rel.grab(this.body);this.fireEvent('stateChanged');return this.fireEvent('sort',[this.body,this.sorted.index]);},parseData:function(parser){return Array.map(this.body.rows,function(row,i){var value=parser.convert.call(document.id(row.cells[this.sorted.index]));return{position:i,value:value};},this);},clearSort:function(){this.setHeadSort(false);this.body.getElements('td').removeClass(this.options.classCellSort);},reSort:function(){if(this.sortEnabled)this.sort.call(this,this.sorted.index,this.sorted.reverse);return this;},enableSort:function(){this.element.addClass(this.options.classSortable);this.attachSorts(true);this.setParsers();this.sortEnabled=true;return this;},disableSort:function(){this.element.removeClass(this.options.classSortable);this.attachSorts(false);this.sortSpans.each(function(span){span.destroy();});this.sortSpans.empty();this.sortEnabled=false;return this;}});HtmlTable.ParserPriority=['date','input-checked','input-value','float','number'];HtmlTable.Parsers={'date':{match:/^\d{2}[-\/ ]\d{2}[-\/ ]\d{2,4}$/,convert:function(){var d=Date.parse(this.get('text').stripTags());return(typeOf(d)=='date')?d.format('db'):'';},type:'date'},'input-checked':{match:/ type="(radio|checkbox)" /,convert:function(){return this.getElement('input').checked;}},'input-value':{match:/0))return null;if(includeHiddenRows){index+=offset;}else{var limit=0,count=0;if(offset>0){while(countoffset&&index>0){if(this.body.rows[--index].isDisplayed())count--;}}} return index;},attachSelects:function(attach){attach=attach!=null?attach:true;var method=attach?'addEvents':'removeEvents';this.element[method]({mouseleave:this.bound.mouseleave,click:this.bound.activateKeyboard});this.body[method]({'click:relay(tr)':this.bound.clickRow,'contextmenu:relay(tr)':this.bound.clickRow});if(this.options.useKeyboard||this.keyboard){if(!this.keyboard)this.keyboard=new Keyboard();if(!this.selectKeysDefined){this.selectKeysDefined=true;var timer,held;var move=function(offset){var mover=function(e){clearTimeout(timer);e.preventDefault();var to=this.body.rows[this.getRowByOffset(offset,this.options.selectHiddenRows)];if(e.shift&&to&&this.isSelected(to)){this.deselectRow(this.focused);this.focused=to;}else{if(to&&(!this.options.allowMultiSelect||!e.shift)){this.selectNone();} this.shiftFocus(offset,e);} if(held){timer=mover.delay(100,this,e);}else{timer=(function(){held=true;mover(e);}).delay(400);}}.bind(this);return mover;}.bind(this);var clear=function(){clearTimeout(timer);held=false;};this.keyboard.addEvents({'keydown:shift+up':move(-1),'keydown:shift+down':move(1),'keyup:shift+up':clear,'keyup:shift+down':clear,'keyup:up':clear,'keyup:down':clear});var shiftHint='';if(this.options.allowMultiSelect&&this.options.shiftForMultiSelect&&this.options.useKeyboard){shiftHint=" (Shift multi-selects).";} this.keyboard.addShortcuts({'Select Previous Row':{keys:'up',shortcut:'up arrow',handler:move(-1),description:'Select the previous row in the table.'+shiftHint},'Select Next Row':{keys:'down',shortcut:'down arrow',handler:move(1),description:'Select the next row in the table.'+shiftHint}});} this.keyboard[attach?'activate':'deactivate']();} this.updateSelects();},mouseleave:function(){if(this.hovered)this.leaveRow(this.hovered);}});var Scroller=new Class({Implements:[Events,Options],options:{area:20,velocity:1,onChange:function(x,y){this.element.scrollTo(x,y);},fps:50},initialize:function(element,options){this.setOptions(options);this.element=document.id(element);this.docBody=document.id(this.element.getDocument().body);this.listener=(typeOf(this.element)!='element')?this.docBody:this.element;this.timer=null;this.bound={attach:this.attach.bind(this),detach:this.detach.bind(this),getCoords:this.getCoords.bind(this)};},start:function(){this.listener.addEvents({mouseover:this.bound.attach,mouseleave:this.bound.detach});return this;},stop:function(){this.listener.removeEvents({mouseover:this.bound.attach,mouseleave:this.bound.detach});this.detach();this.timer=clearInterval(this.timer);return this;},attach:function(){this.listener.addEvent('mousemove',this.bound.getCoords);},detach:function(){this.listener.removeEvent('mousemove',this.bound.getCoords);this.timer=clearInterval(this.timer);},getCoords:function(event){this.page=(this.listener.get('tag')=='body')?event.client:event.page;if(!this.timer)this.timer=this.scroll.periodical(Math.round(1000/this.options.fps),this);},scroll:function(){var size=this.element.getSize(),scroll=this.element.getScroll(),pos=this.element!=this.docBody?this.element.getOffsets():{x:0,y:0},scrollSize=this.element.getScrollSize(),change={x:0,y:0},top=this.options.area.top||this.options.area,bottom=this.options.area.bottom||this.options.area;for(var z in this.page){if(this.page[z]<(top+pos[z])&&scroll[z]!=0){change[z]=(this.page[z]-top-pos[z])*this.options.velocity;}else if(this.page[z]+bottom>(size[z]+pos[z])&&scroll[z]+size[z]!=scrollSize[z]){change[z]=(this.page[z]-size[z]+bottom-pos[z])*this.options.velocity;} change[z]=change[z].round();} if(change.y||change.x)this.fireEvent('change',[scroll.x+change.x,scroll.y+change.y]);}});(function(){var read=function(option,element){return(option)?(typeOf(option)=='function'?option(element):element.get(option)):'';};this.Tips=new Class({Implements:[Events,Options],options:{onShow:function(){this.tip.setStyle('display','block');},onHide:function(){this.tip.setStyle('display','none');},title:'title',text:function(element){return element.get('rel')||element.get('href');},showDelay:100,hideDelay:100,className:'tip-wrap',offset:{x:16,y:16},windowPadding:{x:0,y:0},fixed:false,waiAria:true},initialize:function(){var params=Array.link(arguments,{options:Type.isObject,elements:function(obj){return obj!=null;}});this.setOptions(params.options);if(params.elements)this.attach(params.elements);this.container=new Element('div',{'class':'tip'});if(this.options.id){this.container.set('id',this.options.id);if(this.options.waiAria)this.attachWaiAria();}},toElement:function(){if(this.tip)return this.tip;this.tip=new Element('div',{'class':this.options.className,styles:{position:'absolute',top:0,left:0}}).adopt(new Element('div',{'class':'tip-top'}),this.container,new Element('div',{'class':'tip-bottom'}));return this.tip;},attachWaiAria:function(){var id=this.options.id;this.container.set('role','tooltip');if(!this.waiAria){this.waiAria={show:function(element){if(id)element.set('aria-describedby',id);this.container.set('aria-hidden','false');},hide:function(element){if(id)element.erase('aria-describedby');this.container.set('aria-hidden','true');}};} this.addEvents(this.waiAria);},detachWaiAria:function(){if(this.waiAria){this.container.erase('role');this.container.erase('aria-hidden');this.removeEvents(this.waiAria);}},attach:function(elements){$$(elements).each(function(element){var title=read(this.options.title,element),text=read(this.options.text,element);element.set('title','').store('tip:native',title).retrieve('tip:title',title);element.retrieve('tip:text',text);this.fireEvent('attach',[element]);var events=['enter','leave'];if(!this.options.fixed)events.push('move');events.each(function(value){var event=element.retrieve('tip:'+value);if(!event)event=function(event){this['element'+value.capitalize()].apply(this,[event,element]);}.bind(this);element.store('tip:'+value,event).addEvent('mouse'+value,event);},this);},this);return this;},detach:function(elements){$$(elements).each(function(element){['enter','leave','move'].each(function(value){element.removeEvent('mouse'+value,element.retrieve('tip:'+value)).eliminate('tip:'+value);});this.fireEvent('detach',[element]);if(this.options.title=='title'){var original=element.retrieve('tip:native');if(original)element.set('title',original);}},this);return this;},elementEnter:function(event,element){clearTimeout(this.timer);this.timer=(function(){this.container.empty();['title','text'].each(function(value){var content=element.retrieve('tip:'+value);var div=this['_'+value+'Element']=new Element('div',{'class':'tip-'+value}).inject(this.container);if(content)this.fill(div,content);},this);this.show(element);this.position((this.options.fixed)?{page:element.getPosition()}:event);}).delay(this.options.showDelay,this);},elementLeave:function(event,element){clearTimeout(this.timer);this.timer=this.hide.delay(this.options.hideDelay,this,element);this.fireForParent(event,element);},setTitle:function(title){if(this._titleElement){this._titleElement.empty();this.fill(this._titleElement,title);} return this;},setText:function(text){if(this._textElement){this._textElement.empty();this.fill(this._textElement,text);} return this;},fireForParent:function(event,element){element=element.getParent();if(!element||element==document.body)return;if(element.retrieve('tip:enter'))element.fireEvent('mouseenter',event);else this.fireForParent(event,element);},elementMove:function(event,element){this.position(event);},position:function(event){if(!this.tip)document.id(this);var size=window.getSize(),scroll=window.getScroll(),tip={x:this.tip.offsetWidth,y:this.tip.offsetHeight},props={x:'left',y:'top'},bounds={y:false,x2:false,y2:false,x:false},obj={};for(var z in props){obj[props[z]]=event.page[z]+this.options.offset[z];if(obj[props[z]]<0)bounds[z]=true;if((obj[props[z]]+tip[z]-scroll[z])>size[z]-this.options.windowPadding[z]){obj[props[z]]=event.page[z]-this.options.offset[z]-tip[z];bounds[z+'2']=true;}} this.fireEvent('bound',bounds);this.tip.setStyles(obj);},fill:function(element,contents){if(typeof contents=='string')element.set('html',contents);else element.adopt(contents);},show:function(element){if(!this.tip)document.id(this);if(!this.tip.getParent())this.tip.inject(document.body);this.fireEvent('show',[this.tip,element]);},hide:function(element){if(!this.tip)document.id(this);this.fireEvent('hide',[this.tip,element]);}});})();(function(){var parsers={'json':JSON.decode};Locale.Set.defineParser=function(name,fn){parsers[name]=fn;};Locale.Set.from=function(set,type){if(instanceOf(set,Locale.Set))return set;if(!type&&typeOf(set)=='string')type='json';if(parsers[type])set=parsers[type](set);var locale=new Locale.Set;locale.sets=set.sets||{};if(set.inherits){locale.inherits.locales=Array.from(set.inherits.locales);locale.inherits.sets=set.inherits.sets||{};} return locale;};})();Locale.define('ar','Date',{dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M'});Locale.define('ar','FormValidator',{required:'هذا الحقل مطلوب.',minLength:'رجاءً إدخال {minLength} أحرف على الأقل (تم إدخال {length} أحرف).',maxLength:'الرجاء عدم إدخال أكثر من {maxLength} أحرف (تم إدخال {length} أحرف).',integer:'الرجاء إدخال عدد صحيح في هذا الحقل. أي رقم ذو كسر عشري أو مئوي (مثال 1.25 ) غير مسموح.',numeric:'الرجاء إدخال قيم رقمية في هذا الحقل (مثال "1" أو "1.1" أو "-1" أو "-1.1").',digits:'الرجاء أستخدام قيم رقمية وعلامات ترقيمية فقط في هذا الحقل (مثال, رقم هاتف مع نقطة أو شحطة)',alpha:'الرجاء أستخدام أحرف فقط (ا-ي) في هذا الحقل. أي فراغات أو علامات غير مسموحة.',alphanum:'الرجاء أستخدام أحرف فقط (ا-ي) أو أرقام (0-9) فقط في هذا الحقل. أي فراغات أو علامات غير مسموحة.',dateSuchAs:'الرجاء إدخال تاريخ صحيح كالتالي {date}',dateInFormatMDY:'الرجاء إدخال تاريخ صحيح (مثال, 31-12-1999)',email:'الرجاء إدخال بريد إلكتروني صحيح.',url:'الرجاء إدخال عنوان إلكتروني صحيح مثل http://www.example.com',currencyDollar:'الرجاء إدخال قيمة $ صحيحة. مثال, 100.00$',oneRequired:'الرجاء إدخال قيمة في أحد هذه الحقول على الأقل.',errorPrefix:'خطأ: ',warningPrefix:'تحذير: '});Locale.define('ca-CA','Date',{months:['Gener','Febrer','Març','Abril','Maig','Juny','Juli','Agost','Setembre','Octubre','Novembre','Desembre'],months_abbr:['gen.','febr.','març','abr.','maig','juny','jul.','ag.','set.','oct.','nov.','des.'],days:['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'],days_abbr:['dg','dl','dt','dc','dj','dv','ds'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:0,ordinal:'',lessThanMinuteAgo:'fa menys d`un minut',minuteAgo:'fa un minut',minutesAgo:'fa {delta} minuts',hourAgo:'fa un hora',hoursAgo:'fa unes {delta} hores',dayAgo:'fa un dia',daysAgo:'fa {delta} dies',lessThanMinuteUntil:'menys d`un minut des d`ara',minuteUntil:'un minut des d`ara',minutesUntil:'{delta} minuts des d`ara',hourUntil:'un hora des d`ara',hoursUntil:'unes {delta} hores des d`ara',dayUntil:'1 dia des d`ara',daysUntil:'{delta} dies des d`ara'});Locale.define('ca-CA','FormValidator',{required:'Aquest camp es obligatori.',minLength:'Per favor introdueix al menys {minLength} caracters (has introduit {length} caracters).',maxLength:'Per favor introdueix no mes de {maxLength} caracters (has introduit {length} caracters).',integer:'Per favor introdueix un nombre enter en aquest camp. Nombres amb decimals (p.e. 1,25) no estan permesos.',numeric:'Per favor introdueix sols valors numerics en aquest camp (p.e. "1" o "1,1" o "-1" o "-1,1").',digits:'Per favor usa sols numeros i puntuacio en aquest camp (per exemple, un nombre de telefon amb guions i punts no esta permes).',alpha:'Per favor utilitza lletres nomes (a-z) en aquest camp. No s´admiteixen espais ni altres caracters.',alphanum:'Per favor, utilitza nomes lletres (a-z) o numeros (0-9) en aquest camp. No s´admiteixen espais ni altres caracters.',dateSuchAs:'Per favor introdueix una data valida com {date}',dateInFormatMDY:'Per favor introdueix una data valida com DD/MM/YYYY (p.e. "31/12/1999")',email:'Per favor, introdueix una adreça de correu electronic valida. Per exemple, "fred@domain.com".',url:'Per favor introdueix una URL valida com http://www.example.com.',currencyDollar:'Per favor introdueix una quantitat valida de €. Per exemple €100,00 .',oneRequired:'Per favor introdueix alguna cosa per al menys una d´aquestes entrades.',errorPrefix:'Error: ',warningPrefix:'Avis: ',noSpace:'No poden haver espais en aquesta entrada.',reqChkByNode:'No hi han elements seleccionats.',requiredChk:'Aquest camp es obligatori.',reqChkByName:'Per favor selecciona una {label}.',match:'Aquest camp necessita coincidir amb el camp {matchName}',startDate:'la data de inici',endDate:'la data de fi',currendDate:'la data actual',afterDate:'La data deu ser igual o posterior a {label}.',beforeDate:'La data deu ser igual o anterior a {label}.',startMonth:'Per favor selecciona un mes d´orige',sameMonth:'Aquestes dos dates deuen estar dins del mateix mes - deus canviar una o altra.'});(function(){var pluralize=function(n,one,few,other){if(n==1)return one;else if(n==2||n==3||n==4)return few;else return other;};Locale.define('cs-CZ','Date',{months:['Leden','Únor','Březen','Duben','Květen','Červen','Červenec','Srpen','Září','Říjen','Listopad','Prosinec'],months_abbr:['ledna','února','března','dubna','května','června','července','srpna','září','října','listopadu','prosince'],days:['Neděle','Pondělí','Úterý','Středa','Čtvrtek','Pátek','Sobota'],days_abbr:['ne','po','út','st','čt','pá','so'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'dop.',PM:'odp.',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'před chvílí',minuteAgo:'přibližně před minutou',minutesAgo:function(delta){return'před {delta} '+pluralize(delta,'minutou','minutami','minutami');},hourAgo:'přibližně před hodinou',hoursAgo:function(delta){return'před {delta} '+pluralize(delta,'hodinou','hodinami','hodinami');},dayAgo:'před dnem',daysAgo:function(delta){return'před {delta} '+pluralize(delta,'dnem','dny','dny');},weekAgo:'před týdnem',weeksAgo:function(delta){return'před {delta} '+pluralize(delta,'týdnem','týdny','týdny');},monthAgo:'před měsícem',monthsAgo:function(delta){return'před {delta} '+pluralize(delta,'měsícem','měsíci','měsíci');},yearAgo:'před rokem',yearsAgo:function(delta){return'před {delta} '+pluralize(delta,'rokem','lety','lety');},lessThanMinuteUntil:'za chvíli',minuteUntil:'přibližně za minutu',minutesUntil:function(delta){return'za {delta} '+pluralize(delta,'minutu','minuty','minut');},hourUntil:'přibližně za hodinu',hoursUntil:function(delta){return'za {delta} '+pluralize(delta,'hodinu','hodiny','hodin');},dayUntil:'za den',daysUntil:function(delta){return'za {delta} '+pluralize(delta,'den','dny','dnů');},weekUntil:'za týden',weeksUntil:function(delta){return'za {delta} '+pluralize(delta,'týden','týdny','týdnů');},monthUntil:'za měsíc',monthsUntil:function(delta){return'za {delta} '+pluralize(delta,'měsíc','měsíce','měsíců');},yearUntil:'za rok',yearsUntil:function(delta){return'za {delta} '+pluralize(delta,'rok','roky','let');}});})();Locale.define('cs-CZ','FormValidator',{required:'Tato položka je povinná.',minLength:'Zadejte prosím alespoň {minLength} znaků (napsáno {length} znaků).',maxLength:'Zadejte prosím méně než {maxLength} znaků (nápsáno {length} znaků).',integer:'Zadejte prosím celé číslo. Desetinná čísla (např. 1.25) nejsou povolena.',numeric:'Zadejte jen číselné hodnoty (tj. "1" nebo "1.1" nebo "-1" nebo "-1.1").',digits:'Zadejte prosím pouze čísla a interpunkční znaménka(například telefonní číslo s pomlčkami nebo tečkami je povoleno).',alpha:'Zadejte prosím pouze písmena (a-z). Mezery nebo jiné znaky nejsou povoleny.',alphanum:'Zadejte prosím pouze písmena (a-z) nebo číslice (0-9). Mezery nebo jiné znaky nejsou povoleny.',dateSuchAs:'Zadejte prosím platné datum jako {date}',dateInFormatMDY:'Zadejte prosím platné datum jako MM / DD / RRRR (tj. "12/31/1999")',email:'Zadejte prosím platnou e-mailovou adresu. Například "fred@domain.com".',url:'Zadejte prosím platnou URL adresu jako http://www.example.com.',currencyDollar:'Zadejte prosím platnou částku. Například $100.00.',oneRequired:'Zadejte prosím alespoň jednu hodnotu pro tyto položky.',errorPrefix:'Chyba: ',warningPrefix:'Upozornění: ',noSpace:'V této položce nejsou povoleny mezery',reqChkByNode:'Nejsou vybrány žádné položky.',requiredChk:'Tato položka je vyžadována.',reqChkByName:'Prosím vyberte {label}.',match:'Tato položka se musí shodovat s položkou {matchName}',startDate:'datum zahájení',endDate:'datum ukončení',currendDate:'aktuální datum',afterDate:'Datum by mělo být stejné nebo větší než {label}.',beforeDate:'Datum by mělo být stejné nebo menší než {label}.',startMonth:'Vyberte počáteční měsíc.',sameMonth:'Tyto dva datumy musí být ve stejném měsíci - změňte jeden z nich.',creditcard:'Zadané číslo kreditní karty je neplatné. Prosím opravte ho. Bylo zadáno {length} čísel.'});Locale.define('da-DK','Date',{months:['Januar','Februar','Marts','April','Maj','Juni','Juli','August','September','Oktober','November','December'],months_abbr:['jan.','feb.','mar.','apr.','maj.','jun.','jul.','aug.','sep.','okt.','nov.','dec.'],days:['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],days_abbr:['søn','man','tir','ons','tor','fre','lør'],dateOrder:['date','month','year'],shortDate:'%d-%m-%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'mindre end et minut siden',minuteAgo:'omkring et minut siden',minutesAgo:'{delta} minutter siden',hourAgo:'omkring en time siden',hoursAgo:'omkring {delta} timer siden',dayAgo:'1 dag siden',daysAgo:'{delta} dage siden',weekAgo:'1 uge siden',weeksAgo:'{delta} uger siden',monthAgo:'1 måned siden',monthsAgo:'{delta} måneder siden',yearAgo:'1 år siden',yearsAgo:'{delta} år siden',lessThanMinuteUntil:'mindre end et minut fra nu',minuteUntil:'omkring et minut fra nu',minutesUntil:'{delta} minutter fra nu',hourUntil:'omkring en time fra nu',hoursUntil:'omkring {delta} timer fra nu',dayUntil:'1 dag fra nu',daysUntil:'{delta} dage fra nu',weekUntil:'1 uge fra nu',weeksUntil:'{delta} uger fra nu',monthUntil:'1 måned fra nu',monthsUntil:'{delta} måneder fra nu',yearUntil:'1 år fra nu',yearsUntil:'{delta} år fra nu'});Locale.define('da-DK','FormValidator',{required:'Feltet skal udfyldes.',minLength:'Skriv mindst {minLength} tegn (du skrev {length} tegn).',maxLength:'Skriv maksimalt {maxLength} tegn (du skrev {length} tegn).',integer:'Skriv et tal i dette felt. Decimal tal (f.eks. 1.25) er ikke tilladt.',numeric:'Skriv kun tal i dette felt (i.e. "1" eller "1.1" eller "-1" eller "-1.1").',digits:'Skriv kun tal og tegnsætning i dette felt (eksempel, et telefon nummer med bindestreg eller punktum er tilladt).',alpha:'Skriv kun bogstaver (a-z) i dette felt. Mellemrum og andre tegn er ikke tilladt.',alphanum:'Skriv kun bogstaver (a-z) eller tal (0-9) i dette felt. Mellemrum og andre tegn er ikke tilladt.',dateSuchAs:'Skriv en gyldig dato som {date}',dateInFormatMDY:'Skriv dato i formatet DD-MM-YYYY (f.eks. "31-12-1999")',email:'Skriv en gyldig e-mail adresse. F.eks "fred@domain.com".',url:'Skriv en gyldig URL adresse. F.eks "http://www.example.com".',currencyDollar:'Skriv et gldigt beløb. F.eks Kr.100.00 .',oneRequired:'Et eller flere af felterne i denne formular skal udfyldes.',errorPrefix:'Fejl: ',warningPrefix:'Advarsel: ',noSpace:'Der må ikke benyttes mellemrum i dette felt.',reqChkByNode:'Foretag et valg.',requiredChk:'Dette felt skal udfyldes.',reqChkByName:'Vælg en {label}.',match:'Dette felt skal matche {matchName} feltet',startDate:'start dato',endDate:'slut dato',currendDate:'dags dato',afterDate:'Datoen skal være større end eller lig med {label}.',beforeDate:'Datoen skal være mindre end eller lig med {label}.',startMonth:'Vælg en start måned',sameMonth:'De valgte datoer skal være i samme måned - skift en af dem.'});Locale.define('de-DE','Date',{months:['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],months_abbr:['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],days:['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],days_abbr:['So.','Mo.','Di.','Mi.','Do.','Fr.','Sa.'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'vormittags',PM:'nachmittags',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'vor weniger als einer Minute',minuteAgo:'vor einer Minute',minutesAgo:'vor {delta} Minuten',hourAgo:'vor einer Stunde',hoursAgo:'vor {delta} Stunden',dayAgo:'vor einem Tag',daysAgo:'vor {delta} Tagen',weekAgo:'vor einer Woche',weeksAgo:'vor {delta} Wochen',monthAgo:'vor einem Monat',monthsAgo:'vor {delta} Monaten',yearAgo:'vor einem Jahr',yearsAgo:'vor {delta} Jahren',lessThanMinuteUntil:'in weniger als einer Minute',minuteUntil:'in einer Minute',minutesUntil:'in {delta} Minuten',hourUntil:'in ca. einer Stunde',hoursUntil:'in ca. {delta} Stunden',dayUntil:'in einem Tag',daysUntil:'in {delta} Tagen',weekUntil:'in einer Woche',weeksUntil:'in {delta} Wochen',monthUntil:'in einem Monat',monthsUntil:'in {delta} Monaten',yearUntil:'in einem Jahr',yearsUntil:'in {delta} Jahren'});Locale.define('de-CH').inherit('de-DE','Date');Locale.define('de-CH','FormValidator',{required:'Dieses Feld ist obligatorisch.',minLength:'Geben Sie bitte mindestens {minLength} Zeichen ein (Sie haben {length} Zeichen eingegeben).',maxLength:'Bitte geben Sie nicht mehr als {maxLength} Zeichen ein (Sie haben {length} Zeichen eingegeben).',integer:'Geben Sie bitte eine ganze Zahl ein. Dezimalzahlen (z.B. 1.25) sind nicht erlaubt.',numeric:'Geben Sie bitte nur Zahlenwerte in dieses Eingabefeld ein (z.B. "1", "1.1", "-1" oder "-1.1").',digits:'Benutzen Sie bitte nur Zahlen und Satzzeichen in diesem Eingabefeld (erlaubt ist z.B. eine Telefonnummer mit Bindestrichen und Punkten).',alpha:'Benutzen Sie bitte nur Buchstaben (a-z) in diesem Feld. Leerzeichen und andere Zeichen sind nicht erlaubt.',alphanum:'Benutzen Sie bitte nur Buchstaben (a-z) und Zahlen (0-9) in diesem Eingabefeld. Leerzeichen und andere Zeichen sind nicht erlaubt.',dateSuchAs:'Geben Sie bitte ein gültiges Datum ein. Wie zum Beispiel {date}',dateInFormatMDY:'Geben Sie bitte ein gültiges Datum ein. Wie zum Beispiel TT.MM.JJJJ (z.B. "31.12.1999")',email:'Geben Sie bitte eine gültige E-Mail Adresse ein. Wie zum Beispiel "maria@bernasconi.ch".',url:'Geben Sie bitte eine gültige URL ein. Wie zum Beispiel http://www.example.com.',currencyDollar:'Geben Sie bitte einen gültigen Betrag in Schweizer Franken ein. Wie zum Beispiel 100.00 CHF .',oneRequired:'Machen Sie für mindestens eines der Eingabefelder einen Eintrag.',errorPrefix:'Fehler: ',warningPrefix:'Warnung: ',noSpace:'In diesem Eingabefeld darf kein Leerzeichen sein.',reqChkByNode:'Es wurden keine Elemente gewählt.',requiredChk:'Dieses Feld ist obligatorisch.',reqChkByName:'Bitte wählen Sie ein {label}.',match:'Dieses Eingabefeld muss mit dem Feld {matchName} übereinstimmen.',startDate:'Das Anfangsdatum',endDate:'Das Enddatum',currendDate:'Das aktuelle Datum',afterDate:'Das Datum sollte zur gleichen Zeit oder später sein {label}.',beforeDate:'Das Datum sollte zur gleichen Zeit oder früher sein {label}.',startMonth:'Wählen Sie bitte einen Anfangsmonat',sameMonth:'Diese zwei Datumsangaben müssen im selben Monat sein - Sie müssen eine von beiden verändern.',creditcard:'Die eingegebene Kreditkartennummer ist ungültig. Bitte überprüfen Sie diese und versuchen Sie es erneut. {length} Zahlen eingegeben.'});Locale.define('de-DE','FormValidator',{required:'Dieses Eingabefeld muss ausgefüllt werden.',minLength:'Geben Sie bitte mindestens {minLength} Zeichen ein (Sie haben nur {length} Zeichen eingegeben).',maxLength:'Geben Sie bitte nicht mehr als {maxLength} Zeichen ein (Sie haben {length} Zeichen eingegeben).',integer:'Geben Sie in diesem Eingabefeld bitte eine ganze Zahl ein. Dezimalzahlen (z.B. "1.25") sind nicht erlaubt.',numeric:'Geben Sie in diesem Eingabefeld bitte nur Zahlenwerte (z.B. "1", "1.1", "-1" oder "-1.1") ein.',digits:'Geben Sie in diesem Eingabefeld bitte nur Zahlen und Satzzeichen ein (z.B. eine Telefonnummer mit Bindestrichen und Punkten ist erlaubt).',alpha:'Geben Sie in diesem Eingabefeld bitte nur Buchstaben (a-z) ein. Leerzeichen und andere Zeichen sind nicht erlaubt.',alphanum:'Geben Sie in diesem Eingabefeld bitte nur Buchstaben (a-z) und Zahlen (0-9) ein. Leerzeichen oder andere Zeichen sind nicht erlaubt.',dateSuchAs:'Geben Sie bitte ein gültiges Datum ein (z.B. "{date}").',dateInFormatMDY:'Geben Sie bitte ein gültiges Datum im Format TT.MM.JJJJ ein (z.B. "31.12.1999").',email:'Geben Sie bitte eine gültige E-Mail-Adresse ein (z.B. "max@mustermann.de").',url:'Geben Sie bitte eine gültige URL ein (z.B. "http://www.example.com").',currencyDollar:'Geben Sie bitte einen gültigen Betrag in EURO ein (z.B. 100.00€).',oneRequired:'Bitte füllen Sie mindestens ein Eingabefeld aus.',errorPrefix:'Fehler: ',warningPrefix:'Warnung: ',noSpace:'Es darf kein Leerzeichen in diesem Eingabefeld sein.',reqChkByNode:'Es wurden keine Elemente gewählt.',requiredChk:'Dieses Feld muss ausgefüllt werden.',reqChkByName:'Bitte wählen Sie ein {label}.',match:'Dieses Eingabefeld muss mit dem {matchName} Eingabefeld übereinstimmen.',startDate:'Das Anfangsdatum',endDate:'Das Enddatum',currendDate:'Das aktuelle Datum',afterDate:'Das Datum sollte zur gleichen Zeit oder später sein als {label}.',beforeDate:'Das Datum sollte zur gleichen Zeit oder früher sein als {label}.',startMonth:'Wählen Sie bitte einen Anfangsmonat',sameMonth:'Diese zwei Datumsangaben müssen im selben Monat sein - Sie müssen eines von beiden verändern.',creditcard:'Die eingegebene Kreditkartennummer ist ungültig. Bitte überprüfen Sie diese und versuchen Sie es erneut. {length} Zahlen eingegeben.'});Locale.define('EU','Number',{decimal:',',group:'.',currency:{prefix:'€ '}});Locale.define('de-DE').inherit('EU','Number');Locale.define('en-GB','Date',{dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M'}).inherit('en-US','Date');Locale.define('es-ES','Date',{months:['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],months_abbr:['ene','feb','mar','abr','may','jun','jul','ago','sep','oct','nov','dic'],days:['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],days_abbr:['dom','lun','mar','mié','juv','vie','sáb'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'hace menos de un minuto',minuteAgo:'hace un minuto',minutesAgo:'hace {delta} minutos',hourAgo:'hace una hora',hoursAgo:'hace unas {delta} horas',dayAgo:'hace un día',daysAgo:'hace {delta} días',weekAgo:'hace una semana',weeksAgo:'hace unas {delta} semanas',monthAgo:'hace un mes',monthsAgo:'hace {delta} meses',yearAgo:'hace un año',yearsAgo:'hace {delta} años',lessThanMinuteUntil:'menos de un minuto desde ahora',minuteUntil:'un minuto desde ahora',minutesUntil:'{delta} minutos desde ahora',hourUntil:'una hora desde ahora',hoursUntil:'unas {delta} horas desde ahora',dayUntil:'un día desde ahora',daysUntil:'{delta} días desde ahora',weekUntil:'una semana desde ahora',weeksUntil:'unas {delta} semanas desde ahora',monthUntil:'un mes desde ahora',monthsUntil:'{delta} meses desde ahora',yearUntil:'un año desde ahora',yearsUntil:'{delta} años desde ahora'});Locale.define('es-AR').inherit('es-ES','Date');Locale.define('es-AR','FormValidator',{required:'Este campo es obligatorio.',minLength:'Por favor ingrese al menos {minLength} caracteres (ha ingresado {length} caracteres).',maxLength:'Por favor no ingrese más de {maxLength} caracteres (ha ingresado {length} caracteres).',integer:'Por favor ingrese un número entero en este campo. Números con decimales (p.e. 1,25) no se permiten.',numeric:'Por favor ingrese solo valores numéricos en este campo (p.e. "1" o "1,1" o "-1" o "-1,1").',digits:'Por favor use sólo números y puntuación en este campo (por ejemplo, un número de teléfono con guiones y/o puntos no está permitido).',alpha:'Por favor use sólo letras (a-z) en este campo. No se permiten espacios ni otros caracteres.',alphanum:'Por favor, usa sólo letras (a-z) o números (0-9) en este campo. No se permiten espacios u otros caracteres.',dateSuchAs:'Por favor ingrese una fecha válida como {date}',dateInFormatMDY:'Por favor ingrese una fecha válida, utulizando el formato DD/MM/YYYY (p.e. "31/12/1999")',email:'Por favor, ingrese una dirección de e-mail válida. Por ejemplo, "fred@dominio.com".',url:'Por favor ingrese una URL válida como http://www.example.com.',currencyDollar:'Por favor ingrese una cantidad válida de pesos. Por ejemplo $100,00 .',oneRequired:'Por favor ingrese algo para por lo menos una de estas entradas.',errorPrefix:'Error: ',warningPrefix:'Advertencia: ',noSpace:'No se permiten espacios en este campo.',reqChkByNode:'No hay elementos seleccionados.',requiredChk:'Este campo es obligatorio.',reqChkByName:'Por favor selecciona una {label}.',match:'Este campo necesita coincidir con el campo {matchName}',startDate:'la fecha de inicio',endDate:'la fecha de fin',currendDate:'la fecha actual',afterDate:'La fecha debe ser igual o posterior a {label}.',beforeDate:'La fecha debe ser igual o anterior a {label}.',startMonth:'Por favor selecciona un mes de origen',sameMonth:'Estas dos fechas deben estar en el mismo mes - debes cambiar una u otra.'});Locale.define('es-ES','FormValidator',{required:'Este campo es obligatorio.',minLength:'Por favor introduce al menos {minLength} caracteres (has introducido {length} caracteres).',maxLength:'Por favor introduce no más de {maxLength} caracteres (has introducido {length} caracteres).',integer:'Por favor introduce un número entero en este campo. Números con decimales (p.e. 1,25) no se permiten.',numeric:'Por favor introduce solo valores numéricos en este campo (p.e. "1" o "1,1" o "-1" o "-1,1").',digits:'Por favor usa solo números y puntuación en este campo (por ejemplo, un número de teléfono con guiones y puntos no esta permitido).',alpha:'Por favor usa letras solo (a-z) en este campo. No se admiten espacios ni otros caracteres.',alphanum:'Por favor, usa solo letras (a-z) o números (0-9) en este campo. No se admiten espacios ni otros caracteres.',dateSuchAs:'Por favor introduce una fecha válida como {date}',dateInFormatMDY:'Por favor introduce una fecha válida como DD/MM/YYYY (p.e. "31/12/1999")',email:'Por favor, introduce una dirección de email válida. Por ejemplo, "fred@domain.com".',url:'Por favor introduce una URL válida como http://www.example.com.',currencyDollar:'Por favor introduce una cantidad válida de €. Por ejemplo €100,00 .',oneRequired:'Por favor introduce algo para por lo menos una de estas entradas.',errorPrefix:'Error: ',warningPrefix:'Aviso: ',noSpace:'No pueden haber espacios en esta entrada.',reqChkByNode:'No hay elementos seleccionados.',requiredChk:'Este campo es obligatorio.',reqChkByName:'Por favor selecciona una {label}.',match:'Este campo necesita coincidir con el campo {matchName}',startDate:'la fecha de inicio',endDate:'la fecha de fin',currendDate:'la fecha actual',afterDate:'La fecha debe ser igual o posterior a {label}.',beforeDate:'La fecha debe ser igual o anterior a {label}.',startMonth:'Por favor selecciona un mes de origen',sameMonth:'Estas dos fechas deben estar en el mismo mes - debes cambiar una u otra.'});Locale.define('et-EE','Date',{months:['jaanuar','veebruar','märts','aprill','mai','juuni','juuli','august','september','oktoober','november','detsember'],months_abbr:['jaan','veebr','märts','apr','mai','juuni','juuli','aug','sept','okt','nov','dets'],days:['pühapäev','esmaspäev','teisipäev','kolmapäev','neljapäev','reede','laupäev'],days_abbr:['pühap','esmasp','teisip','kolmap','neljap','reede','laup'],dateOrder:['month','date','year'],shortDate:'%m.%d.%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'vähem kui minut aega tagasi',minuteAgo:'umbes minut aega tagasi',minutesAgo:'{delta} minutit tagasi',hourAgo:'umbes tund aega tagasi',hoursAgo:'umbes {delta} tundi tagasi',dayAgo:'1 päev tagasi',daysAgo:'{delta} päeva tagasi',weekAgo:'1 nädal tagasi',weeksAgo:'{delta} nädalat tagasi',monthAgo:'1 kuu tagasi',monthsAgo:'{delta} kuud tagasi',yearAgo:'1 aasta tagasi',yearsAgo:'{delta} aastat tagasi',lessThanMinuteUntil:'vähem kui minuti aja pärast',minuteUntil:'umbes minuti aja pärast',minutesUntil:'{delta} minuti pärast',hourUntil:'umbes tunni aja pärast',hoursUntil:'umbes {delta} tunni pärast',dayUntil:'1 päeva pärast',daysUntil:'{delta} päeva pärast',weekUntil:'1 nädala pärast',weeksUntil:'{delta} nädala pärast',monthUntil:'1 kuu pärast',monthsUntil:'{delta} kuu pärast',yearUntil:'1 aasta pärast',yearsUntil:'{delta} aasta pärast'});Locale.define('et-EE','FormValidator',{required:'Väli peab olema täidetud.',minLength:'Palun sisestage vähemalt {minLength} tähte (te sisestasite {length} tähte).',maxLength:'Palun ärge sisestage rohkem kui {maxLength} tähte (te sisestasite {length} tähte).',integer:'Palun sisestage väljale täisarv. Kümnendarvud (näiteks 1.25) ei ole lubatud.',numeric:'Palun sisestage ainult numbreid väljale (näiteks "1", "1.1", "-1" või "-1.1").',digits:'Palun kasutage ainult numbreid ja kirjavahemärke (telefoninumbri sisestamisel on lubatud kasutada kriipse ja punkte).',alpha:'Palun kasutage ainult tähti (a-z). Tühikud ja teised sümbolid on keelatud.',alphanum:'Palun kasutage ainult tähti (a-z) või numbreid (0-9). Tühikud ja teised sümbolid on keelatud.',dateSuchAs:'Palun sisestage kehtiv kuupäev kujul {date}',dateInFormatMDY:'Palun sisestage kehtiv kuupäev kujul MM.DD.YYYY (näiteks: "12.31.1999").',email:'Palun sisestage kehtiv e-maili aadress (näiteks: "fred@domain.com").',url:'Palun sisestage kehtiv URL (näiteks: http://www.example.com).',currencyDollar:'Palun sisestage kehtiv $ summa (näiteks: $100.00).',oneRequired:'Palun sisestage midagi vähemalt ühele antud väljadest.',errorPrefix:'Viga: ',warningPrefix:'Hoiatus: ',noSpace:'Väli ei tohi sisaldada tühikuid.',reqChkByNode:'Ükski väljadest pole valitud.',requiredChk:'Välja täitmine on vajalik.',reqChkByName:'Palun valige üks {label}.',match:'Väli peab sobima {matchName} väljaga',startDate:'algkuupäev',endDate:'lõppkuupäev',currendDate:'praegune kuupäev',afterDate:'Kuupäev peab olema võrdne või pärast {label}.',beforeDate:'Kuupäev peab olema võrdne või enne {label}.',startMonth:'Palun valige algkuupäev.',sameMonth:'Antud kaks kuupäeva peavad olema samas kuus - peate muutma ühte kuupäeva.'});Locale.define('fa','Date',{months:['ژانویه','فوریه','مارس','آپریل','مه','ژوئن','ژوئیه','آگوست','سپتامبر','اکتبر','نوامبر','دسامبر'],months_abbr:['1','2','3','4','5','6','7','8','9','10','11','12'],days:['یکشنبه','دوشنبه','سه شنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'],days_abbr:['ي','د','س','چ','پ','ج','ش'],dateOrder:['month','date','year'],shortDate:'%m/%d/%Y',shortTime:'%I:%M%p',AM:'ق.ظ',PM:'ب.ظ',ordinal:'ام',lessThanMinuteAgo:'کمتر از یک دقیقه پیش',minuteAgo:'حدود یک دقیقه پیش',minutesAgo:'{delta} دقیقه پیش',hourAgo:'حدود یک ساعت پیش',hoursAgo:'حدود {delta} ساعت پیش',dayAgo:'1 روز پیش',daysAgo:'{delta} روز پیش',weekAgo:'1 هفته پیش',weeksAgo:'{delta} هفته پیش',monthAgo:'1 ماه پیش',monthsAgo:'{delta} ماه پیش',yearAgo:'1 سال پیش',yearsAgo:'{delta} سال پیش',lessThanMinuteUntil:'کمتر از یک دقیقه از حالا',minuteUntil:'حدود یک دقیقه از حالا',minutesUntil:'{delta} دقیقه از حالا',hourUntil:'حدود یک ساعت از حالا',hoursUntil:'حدود {delta} ساعت از حالا',dayUntil:'1 روز از حالا',daysUntil:'{delta} روز از حالا',weekUntil:'1 هفته از حالا',weeksUntil:'{delta} هفته از حالا',monthUntil:'1 ماه از حالا',monthsUntil:'{delta} ماه از حالا',yearUntil:'1 سال از حالا',yearsUntil:'{delta} سال از حالا'});Locale.define('fa','FormValidator',{required:'این فیلد الزامی است.',minLength:'شما باید حداقل {minLength} حرف وارد کنید ({length} حرف وارد کرده اید).',maxLength:'لطفا حداکثر {maxLength} حرف وارد کنید (شما {length} حرف وارد کرده اید).',integer:'لطفا از عدد صحیح استفاده کنید. اعداد اعشاری (مانند 1.25) مجاز نیستند.',numeric:'لطفا فقط داده عددی وارد کنید (مانند "1" یا "1.1" یا "1-" یا "1.1-").',digits:'لطفا فقط از اعداد و علامتها در این فیلد استفاده کنید (برای مثال شماره تلفن با خط تیره و نقطه قابل قبول است).',alpha:'لطفا فقط از حروف الفباء برای این بخش استفاده کنید. کاراکترهای دیگر و فاصله مجاز نیستند.',alphanum:'لطفا فقط از حروف الفباء و اعداد در این بخش استفاده کنید. کاراکترهای دیگر و فاصله مجاز نیستند.',dateSuchAs:'لطفا یک تاریخ معتبر مانند {date} وارد کنید.',dateInFormatMDY:'لطفا یک تاریخ معتبر به شکل MM/DD/YYYY وارد کنید (مانند "12/31/1999").',email:'لطفا یک آدرس ایمیل معتبر وارد کنید. برای مثال "fred@domain.com".',url:'لطفا یک URL معتبر مانند http://www.example.com وارد کنید.',currencyDollar:'لطفا یک محدوده معتبر برای این بخش وارد کنید مانند 100.00$ .',oneRequired:'لطفا حداقل یکی از فیلدها را پر کنید.',errorPrefix:'خطا: ',warningPrefix:'هشدار: ',noSpace:'استفاده از فاصله در این بخش مجاز نیست.',reqChkByNode:'موردی انتخاب نشده است.',requiredChk:'این فیلد الزامی است.',reqChkByName:'لطفا یک {label} را انتخاب کنید.',match:'این فیلد باید با فیلد {matchName} مطابقت داشته باشد.',startDate:'تاریخ شروع',endDate:'تاریخ پایان',currendDate:'تاریخ کنونی',afterDate:'تاریخ میبایست برابر یا بعد از {label} باشد',beforeDate:'تاریخ میبایست برابر یا قبل از {label} باشد',startMonth:'لطفا ماه شروع را انتخاب کنید',sameMonth:'این دو تاریخ باید در یک ماه باشند - شما باید یکی یا هر دو را تغییر دهید.',creditcard:'شماره کارت اعتباری که وارد کرده اید معتبر نیست. لطفا شماره را بررسی کنید و مجددا تلاش کنید. {length} رقم وارد شده است.'});Locale.define('fi-FI','Date',{months:['tammikuu','helmikuu','maaliskuu','huhtikuu','toukokuu','kesäkuu','heinäkuu','elokuu','syyskuu','lokakuu','marraskuu','joulukuu'],months_abbr:['tammik.','helmik.','maalisk.','huhtik.','toukok.','kesäk.','heinäk.','elok.','syysk.','lokak.','marrask.','jouluk.'],days:['sunnuntai','maanantai','tiistai','keskiviikko','torstai','perjantai','lauantai'],days_abbr:['su','ma','ti','ke','to','pe','la'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'vajaa minuutti sitten',minuteAgo:'noin minuutti sitten',minutesAgo:'{delta} minuuttia sitten',hourAgo:'noin tunti sitten',hoursAgo:'noin {delta} tuntia sitten',dayAgo:'päivä sitten',daysAgo:'{delta} päivää sitten',weekAgo:'viikko sitten',weeksAgo:'{delta} viikkoa sitten',monthAgo:'kuukausi sitten',monthsAgo:'{delta} kuukautta sitten',yearAgo:'vuosi sitten',yearsAgo:'{delta} vuotta sitten',lessThanMinuteUntil:'vajaan minuutin kuluttua',minuteUntil:'noin minuutin kuluttua',minutesUntil:'{delta} minuutin kuluttua',hourUntil:'noin tunnin kuluttua',hoursUntil:'noin {delta} tunnin kuluttua',dayUntil:'päivän kuluttua',daysUntil:'{delta} päivän kuluttua',weekUntil:'viikon kuluttua',weeksUntil:'{delta} viikon kuluttua',monthUntil:'kuukauden kuluttua',monthsUntil:'{delta} kuukauden kuluttua',yearUntil:'vuoden kuluttua',yearsUntil:'{delta} vuoden kuluttua'});Locale.define('fi-FI','FormValidator',{required:'Tämä kenttä on pakollinen.',minLength:'Ole hyvä ja anna vähintään {minLength} merkkiä (annoit {length} merkkiä).',maxLength:'Älä anna enempää kuin {maxLength} merkkiä (annoit {length} merkkiä).',integer:'Ole hyvä ja anna kokonaisluku. Luvut, joissa on desimaaleja (esim. 1.25) eivät ole sallittuja.',numeric:'Anna tähän kenttään lukuarvo (kuten "1" tai "1.1" tai "-1" tai "-1.1").',digits:'Käytä pelkästään numeroita ja välimerkkejä tässä kentässä (syötteet, kuten esim. puhelinnumero, jossa on väliviivoja, pilkkuja tai pisteitä, kelpaa).',alpha:'Anna tähän kenttään vain kirjaimia (a-z). Välilyönnit tai muut merkit eivät ole sallittuja.',alphanum:'Anna tähän kenttään vain kirjaimia (a-z) tai numeroita (0-9). Välilyönnit tai muut merkit eivät ole sallittuja.',dateSuchAs:'Ole hyvä ja anna kelvollinen päivmäärä, kuten esimerkiksi {date}',dateInFormatMDY:'Ole hyvä ja anna kelvollinen päivämäärä muodossa pp/kk/vvvv (kuten "12/31/1999")',email:'Ole hyvä ja anna kelvollinen sähköpostiosoite (kuten esimerkiksi "matti@meikalainen.com").',url:'Ole hyvä ja anna kelvollinen URL, kuten esimerkiksi http://www.example.com.',currencyDollar:'Ole hyvä ja anna kelvollinen eurosumma (kuten esimerkiksi 100,00 EUR) .',oneRequired:'Ole hyvä ja syötä jotakin ainakin johonkin näistä kentistä.',errorPrefix:'Virhe: ',warningPrefix:'Varoitus: ',noSpace:'Tässä syötteessä ei voi olla välilyöntejä',reqChkByNode:'Ei valintoja.',requiredChk:'Tämä kenttä on pakollinen.',reqChkByName:'Ole hyvä ja valitse {label}.',match:'Tämän kentän tulee vastata kenttää {matchName}',startDate:'alkupäivämäärä',endDate:'loppupäivämäärä',currendDate:'nykyinen päivämäärä',afterDate:'Päivämäärän tulisi olla sama tai myöhäisempi ajankohta kuin {label}.',beforeDate:'Päivämäärän tulisi olla sama tai aikaisempi ajankohta kuin {label}.',startMonth:'Ole hyvä ja valitse aloituskuukausi',sameMonth:'Näiden kahden päivämäärän tulee olla saman kuun sisällä -- sinun pitää muuttaa jompaa kumpaa.',creditcard:'Annettu luottokortin numero ei kelpaa. Ole hyvä ja tarkista numero sekä yritä uudelleen. {length} numeroa syötetty.'});Locale.define('fi-FI','Number',{group:' '}).inherit('EU','Number');Locale.define('fr-FR','Date',{months:['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'],months_abbr:['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.'],days:['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],days_abbr:['dim.','lun.','mar.','mer.','jeu.','ven.','sam.'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:function(dayOfMonth){return(dayOfMonth>1)?'':'er';},lessThanMinuteAgo:"il y a moins d'une minute",minuteAgo:'il y a une minute',minutesAgo:'il y a {delta} minutes',hourAgo:'il y a une heure',hoursAgo:'il y a {delta} heures',dayAgo:'il y a un jour',daysAgo:'il y a {delta} jours',weekAgo:'il y a une semaine',weeksAgo:'il y a {delta} semaines',monthAgo:'il y a 1 mois',monthsAgo:'il y a {delta} mois',yearthAgo:'il y a 1 an',yearsAgo:'il y a {delta} ans',lessThanMinuteUntil:"dans moins d'une minute",minuteUntil:'dans une minute',minutesUntil:'dans {delta} minutes',hourUntil:'dans une heure',hoursUntil:'dans {delta} heures',dayUntil:'dans un jour',daysUntil:'dans {delta} jours',weekUntil:'dans 1 semaine',weeksUntil:'dans {delta} semaines',monthUntil:'dans 1 mois',monthsUntil:'dans {delta} mois',yearUntil:'dans 1 an',yearsUntil:'dans {delta} ans'});Locale.define('fr-FR','FormValidator',{required:'Ce champ est obligatoire.',length:'Veuillez saisir {length} caractère(s) (vous avez saisi {elLength} caractère(s)',minLength:'Veuillez saisir un minimum de {minLength} caractère(s) (vous avez saisi {length} caractère(s)).',maxLength:'Veuillez saisir un maximum de {maxLength} caractère(s) (vous avez saisi {length} caractère(s)).',integer:'Veuillez saisir un nombre entier dans ce champ. Les nombres décimaux (ex : "1,25") ne sont pas autorisés.',numeric:'Veuillez saisir uniquement des chiffres dans ce champ (ex : "1" ou "1,1" ou "-1" ou "-1,1").',digits:"Veuillez saisir uniquement des chiffres et des signes de ponctuation dans ce champ (ex : un numéro de téléphone avec des traits d'union est autorisé).",alpha:'Veuillez saisir uniquement des lettres (a-z) dans ce champ. Les espaces ou autres caractères ne sont pas autorisés.',alphanum:'Veuillez saisir uniquement des lettres (a-z) ou des chiffres (0-9) dans ce champ. Les espaces ou autres caractères ne sont pas autorisés.',dateSuchAs:'Veuillez saisir une date correcte comme {date}',dateInFormatMDY:'Veuillez saisir une date correcte, au format JJ/MM/AAAA (ex : "31/11/1999").',email:'Veuillez saisir une adresse de courrier électronique. Par example "fred@domaine.com".',url:'Veuillez saisir une URL, comme http://www.example.com.',currencyDollar:'Veuillez saisir une quantité correcte. Par example 100,00€.',oneRequired:'Veuillez sélectionner au moins une de ces options.',errorPrefix:'Erreur : ',warningPrefix:'Attention : ',noSpace:"Ce champ n'accepte pas les espaces.",reqChkByNode:"Aucun élément n'est sélectionné.",requiredChk:'Ce champ est obligatoire.',reqChkByName:'Veuillez sélectionner un(e) {label}.',match:'Ce champ doit correspondre avec le champ {matchName}.',startDate:'date de début',endDate:'date de fin',currendDate:'date actuelle',afterDate:'La date doit être identique ou postérieure à {label}.',beforeDate:'La date doit être identique ou antérieure à {label}.',startMonth:'Veuillez sélectionner un mois de début.',sameMonth:'Ces deux dates doivent être dans le même mois - vous devez en modifier une.',creditcard:'Le numéro de carte de crédit est invalide. Merci de vérifier le numéro et de réessayer. Vous avez entré {length} chiffre(s).'});Locale.define('fr-FR','Number',{group:' '}).inherit('EU','Number');Locale.define('he-IL','Date',{months:['ינואר','פברואר','מרץ','אפריל','מאי','יוני','יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'],months_abbr:['ינואר','פברואר','מרץ','אפריל','מאי','יוני','יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'],days:['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],days_abbr:['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:0,ordinal:'',lessThanMinuteAgo:'לפני פחות מדקה',minuteAgo:'לפני כדקה',minutesAgo:'לפני {delta} דקות',hourAgo:'לפני כשעה',hoursAgo:'לפני {delta} שעות',dayAgo:'לפני יום',daysAgo:'לפני {delta} ימים',weekAgo:'לפני שבוע',weeksAgo:'לפני {delta} שבועות',monthAgo:'לפני חודש',monthsAgo:'לפני {delta} חודשים',yearAgo:'לפני שנה',yearsAgo:'לפני {delta} שנים',lessThanMinuteUntil:'בעוד פחות מדקה',minuteUntil:'בעוד כדקה',minutesUntil:'בעוד {delta} דקות',hourUntil:'בעוד כשעה',hoursUntil:'בעוד {delta} שעות',dayUntil:'בעוד יום',daysUntil:'בעוד {delta} ימים',weekUntil:'בעוד שבוע',weeksUntil:'בעוד {delta} שבועות',monthUntil:'בעוד חודש',monthsUntil:'בעוד {delta} חודשים',yearUntil:'בעוד שנה',yearsUntil:'בעוד {delta} שנים'});Locale.define('he-IL','FormValidator',{required:'נא למלא שדה זה.',minLength:'נא להזין לפחות {minLength} תווים (הזנת {length} תווים).',maxLength:'נא להזין עד {maxLength} תווים (הזנת {length} תווים).',integer:'נא להזין מספר שלם לשדה זה. מספרים עשרוניים (כמו 1.25) אינם חוקיים.',numeric:'נא להזין ערך מספרי בלבד בשדה זה (כמו "1", "1.1", "-1" או "-1.1").',digits:'נא להזין רק ספרות וסימני הפרדה בשדה זה (למשל, מספר טלפון עם מקפים או נקודות הוא חוקי).',alpha:'נא להזין רק אותיות באנגלית (a-z) בשדה זה. רווחים או תווים אחרים אינם חוקיים.',alphanum:'נא להזין רק אותריות באנגלית (a-z) או ספרות (0-9) בשדה זה. אווחרים או תווים אחרים אינם חוקיים.',dateSuchAs:'נא להזין תאריך חוקי, כמו {date}',dateInFormatMDY:'נא להזין תאריך חוקי בפורמט MM/DD/YYYY (כמו "12/31/1999")',email:'נא להזין כתובת אימייל חוקית. לדוגמה: "fred@domain.com".',url:'נא להזין כתובת אתר חוקית, כמו http://www.example.com.',currencyDollar:'נא להזין סכום דולרי חוקי. לדוגמה $100.00.',oneRequired:'נא לבחור לפחות בשדה אחד.',errorPrefix:'שגיאה: ',warningPrefix:'אזהרה: ',noSpace:'אין להזין רווחים בשדה זה.',reqChkByNode:'נא לבחור אחת מהאפשרויות.',requiredChk:'שדה זה נדרש.',reqChkByName:'נא לבחור {label}.',match:'שדה זה צריך להתאים לשדה {matchName}',startDate:'תאריך ההתחלה',endDate:'תאריך הסיום',currendDate:'התאריך הנוכחי',afterDate:'התאריך צריך להיות זהה או אחרי {label}.',beforeDate:'התאריך צריך להיות זהה או לפני {label}.',startMonth:'נא לבחור חודש התחלה',sameMonth:'שני תאריכים אלה צריכים להיות באותו חודש - נא לשנות אחד התאריכים.',creditcard:'מספר כרטיס האשראי שהוזן אינו חוקי. נא לבדוק שנית. הוזנו {length} ספרות.'});Locale.define('he-IL','Number',{decimal:'.',group:',',currency:{suffix:' ₪'}});Locale.define('hu-HU','Date',{months:['Január','Február','Március','Április','Május','Június','Július','Augusztus','Szeptember','Október','November','December'],months_abbr:['jan.','febr.','márc.','ápr.','máj.','jún.','júl.','aug.','szept.','okt.','nov.','dec.'],days:['Vasárnap','Hétfő','Kedd','Szerda','Csütörtök','Péntek','Szombat'],days_abbr:['V','H','K','Sze','Cs','P','Szo'],dateOrder:['year','month','date'],shortDate:'%Y.%m.%d.',shortTime:'%I:%M',AM:'de.',PM:'du.',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'alig egy perce',minuteAgo:'egy perce',minutesAgo:'{delta} perce',hourAgo:'egy órája',hoursAgo:'{delta} órája',dayAgo:'1 napja',daysAgo:'{delta} napja',weekAgo:'1 hete',weeksAgo:'{delta} hete',monthAgo:'1 hónapja',monthsAgo:'{delta} hónapja',yearAgo:'1 éve',yearsAgo:'{delta} éve',lessThanMinuteUntil:'alig egy perc múlva',minuteUntil:'egy perc múlva',minutesUntil:'{delta} perc múlva',hourUntil:'egy óra múlva',hoursUntil:'{delta} óra múlva',dayUntil:'1 nap múlva',daysUntil:'{delta} nap múlva',weekUntil:'1 hét múlva',weeksUntil:'{delta} hét múlva',monthUntil:'1 hónap múlva',monthsUntil:'{delta} hónap múlva',yearUntil:'1 év múlva',yearsUntil:'{delta} év múlva'});Locale.define('hu-HU','FormValidator',{required:'A mező kitöltése kötelező.',minLength:'Legalább {minLength} karakter megadása szükséges (megadva {length} karakter).',maxLength:'Legfeljebb {maxLength} karakter megadása lehetséges (megadva {length} karakter).',integer:'Egész szám megadása szükséges. A tizedesjegyek (pl. 1.25) nem engedélyezettek.',numeric:'Szám megadása szükséges (pl. "1" vagy "1.1" vagy "-1" vagy "-1.1").',digits:'Csak számok és írásjelek megadása lehetséges (pl. telefonszám kötőjelek és/vagy perjelekkel).',alpha:'Csak betűk (a-z) megadása lehetséges. Szóköz és egyéb karakterek nem engedélyezettek.',alphanum:'Csak betűk (a-z) vagy számok (0-9) megadása lehetséges. Szóköz és egyéb karakterek nem engedélyezettek.',dateSuchAs:'Valós dátum megadása szükséges (pl. {date}).',dateInFormatMDY:'Valós dátum megadása szükséges ÉÉÉÉ.HH.NN. formában. (pl. "1999.12.31.")',email:'Valós e-mail cím megadása szükséges (pl. "fred@domain.hu").',url:'Valós URL megadása szükséges (pl. http://www.example.com).',currencyDollar:'Valós pénzösszeg megadása szükséges (pl. 100.00 Ft.).',oneRequired:'Az alábbi mezők legalább egyikének kitöltése kötelező.',errorPrefix:'Hiba: ',warningPrefix:'Figyelem: ',noSpace:'A mező nem tartalmazhat szóközöket.',reqChkByNode:'Nincs egyetlen kijelölt elem sem.',requiredChk:'A mező kitöltése kötelező.',reqChkByName:'Egy {label} kiválasztása szükséges.',match:'A mezőnek egyeznie kell a(z) {matchName} mezővel.',startDate:'a kezdet dátuma',endDate:'a vég dátuma',currendDate:'jelenlegi dátum',afterDate:'A dátum nem lehet kisebb, mint {label}.',beforeDate:'A dátum nem lehet nagyobb, mint {label}.',startMonth:'Kezdeti hónap megadása szükséges.',sameMonth:'A két dátumnak ugyanazon hónapban kell lennie.',creditcard:'A megadott bankkártyaszám nem valódi (megadva {length} számjegy).'});Locale.define('it-IT','Date',{months:['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],months_abbr:['gen','feb','mar','apr','mag','giu','lug','ago','set','ott','nov','dic'],days:['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],days_abbr:['dom','lun','mar','mer','gio','ven','sab'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H.%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'º',lessThanMinuteAgo:'meno di un minuto fa',minuteAgo:'circa un minuto fa',minutesAgo:'circa {delta} minuti fa',hourAgo:"circa un'ora fa",hoursAgo:'circa {delta} ore fa',dayAgo:'circa 1 giorno fa',daysAgo:'circa {delta} giorni fa',weekAgo:'una settimana fa',weeksAgo:'{delta} settimane fa',monthAgo:'un mese fa',monthsAgo:'{delta} mesi fa',yearAgo:'un anno fa',yearsAgo:'{delta} anni fa',lessThanMinuteUntil:'tra meno di un minuto',minuteUntil:'tra circa un minuto',minutesUntil:'tra circa {delta} minuti',hourUntil:"tra circa un'ora",hoursUntil:'tra circa {delta} ore',dayUntil:'tra circa un giorno',daysUntil:'tra circa {delta} giorni',weekUntil:'tra una settimana',weeksUntil:'tra {delta} settimane',monthUntil:'tra un mese',monthsUntil:'tra {delta} mesi',yearUntil:'tra un anno',yearsUntil:'tra {delta} anni'});Locale.define('it-IT','FormValidator',{required:'Il campo è obbligatorio.',minLength:'Inserire almeno {minLength} caratteri (ne sono stati inseriti {length}).',maxLength:'Inserire al massimo {maxLength} caratteri (ne sono stati inseriti {length}).',integer:'Inserire un numero intero. Non sono consentiti decimali (es.: 1.25).',numeric:'Inserire solo valori numerici (es.: "1" oppure "1.1" oppure "-1" oppure "-1.1").',digits:'Inserire solo numeri e caratteri di punteggiatura. Per esempio è consentito un numero telefonico con trattini o punti.',alpha:'Inserire solo lettere (a-z). Non sono consentiti spazi o altri caratteri.',alphanum:'Inserire solo lettere (a-z) o numeri (0-9). Non sono consentiti spazi o altri caratteri.',dateSuchAs:'Inserire una data valida del tipo {date}',dateInFormatMDY:'Inserire una data valida nel formato MM/GG/AAAA (es.: "12/31/1999")',email:'Inserire un indirizzo email valido. Per esempio "nome@dominio.com".',url:'Inserire un indirizzo valido. Per esempio "http://www.example.com".',currencyDollar:'Inserire un importo valido. Per esempio "$100.00".',oneRequired:'Completare almeno uno dei campi richiesti.',errorPrefix:'Errore: ',warningPrefix:'Attenzione: ',noSpace:'Non sono consentiti spazi.',reqChkByNode:'Nessuna voce selezionata.',requiredChk:'Il campo è obbligatorio.',reqChkByName:'Selezionare un(a) {label}.',match:'Il valore deve corrispondere al campo {matchName}',startDate:"data d'inizio",endDate:'data di fine',currendDate:'data attuale',afterDate:'La data deve corrispondere o essere successiva al {label}.',beforeDate:'La data deve corrispondere o essere precedente al {label}.',startMonth:"Selezionare un mese d'inizio",sameMonth:'Le due date devono essere dello stesso mese - occorre modificarne una.'});Locale.define('ja-JP','Date',{months:['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],months_abbr:['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],days:['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],days_abbr:['日','月','火','水','木','金','土'],dateOrder:['year','month','date'],shortDate:'%Y/%m/%d',shortTime:'%H:%M',AM:'午前',PM:'午後',firstDayOfWeek:0,ordinal:'',lessThanMinuteAgo:'1分以内前',minuteAgo:'約1分前',minutesAgo:'約{delta}分前',hourAgo:'約1時間前',hoursAgo:'約{delta}時間前',dayAgo:'1日前',daysAgo:'{delta}日前',weekAgo:'1週間前',weeksAgo:'{delta}週間前',monthAgo:'1ヶ月前',monthsAgo:'{delta}ヶ月前',yearAgo:'1年前',yearsAgo:'{delta}年前',lessThanMinuteUntil:'今から約1分以内',minuteUntil:'今から約1分',minutesUntil:'今から約{delta}分',hourUntil:'今から約1時間',hoursUntil:'今から約{delta}時間',dayUntil:'今から1日間',daysUntil:'今から{delta}日間',weekUntil:'今から1週間',weeksUntil:'今から{delta}週間',monthUntil:'今から1ヶ月',monthsUntil:'今から{delta}ヶ月',yearUntil:'今から1年',yearsUntil:'今から{delta}年'});Locale.define("ja-JP","FormValidator",{required:'入力は必須です。',minLength:'入力文字数は{minLength}以上にしてください。({length}文字)',maxLength:'入力文字数は{maxLength}以下にしてください。({length}文字)',integer:'整数を入力してください。',numeric:'入力できるのは数値だけです。(例: "1", "1.1", "-1", "-1.1"....)',digits:'入力できるのは数値と句読記号です。 (例: -や+を含む電話番号など).',alpha:'入力できるのは半角英字だけです。それ以外の文字は入力できません。',alphanum:'入力できるのは半角英数字だけです。それ以外の文字は入力できません。',dateSuchAs:'有効な日付を入力してください。{date}',dateInFormatMDY:'日付の書式に誤りがあります。YYYY/MM/DD (i.e. "1999/12/31")',email:'メールアドレスに誤りがあります。',url:'URLアドレスに誤りがあります。',currencyDollar:'金額に誤りがあります。',oneRequired:'ひとつ以上入力してください。',errorPrefix:'エラー: ',warningPrefix:'警告: ',noSpace:'スペースは入力できません。',reqChkByNode:'選択されていません。',requiredChk:'この項目は必須です。',reqChkByName:'{label}を選択してください。',match:'{matchName}が入力されている場合必須です。',startDate:'開始日',endDate:'終了日',currendDate:'今日',afterDate:'{label}以降の日付にしてください。',beforeDate:'{label}以前の日付にしてください。',startMonth:'開始月を選択してください。',sameMonth:'日付が同一です。どちらかを変更してください。'});Locale.define('ja-JP','Number',{decimal:'.',group:',',currency:{decimals:0,prefix:'\\'}});Locale.define('nl-NL','Date',{months:['januari','februari','maart','april','mei','juni','juli','augustus','september','oktober','november','december'],months_abbr:['jan','feb','mrt','apr','mei','jun','jul','aug','sep','okt','nov','dec'],days:['zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag'],days_abbr:['zo','ma','di','wo','do','vr','za'],dateOrder:['date','month','year'],shortDate:'%d-%m-%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'e',lessThanMinuteAgo:'minder dan een minuut geleden',minuteAgo:'ongeveer een minuut geleden',minutesAgo:'{delta} minuten geleden',hourAgo:'ongeveer een uur geleden',hoursAgo:'ongeveer {delta} uur geleden',dayAgo:'een dag geleden',daysAgo:'{delta} dagen geleden',weekAgo:'een week geleden',weeksAgo:'{delta} weken geleden',monthAgo:'een maand geleden',monthsAgo:'{delta} maanden geleden',yearAgo:'een jaar geleden',yearsAgo:'{delta} jaar geleden',lessThanMinuteUntil:'over minder dan een minuut',minuteUntil:'over ongeveer een minuut',minutesUntil:'over {delta} minuten',hourUntil:'over ongeveer een uur',hoursUntil:'over {delta} uur',dayUntil:'over ongeveer een dag',daysUntil:'over {delta} dagen',weekUntil:'over een week',weeksUntil:'over {delta} weken',monthUntil:'over een maand',monthsUntil:'over {delta} maanden',yearUntil:'over een jaar',yearsUntil:'over {delta} jaar'});Locale.define('nl-NL','FormValidator',{required:'Dit veld is verplicht.',length:'Vul precies {length} karakters in (je hebt {elLength} karakters ingevoerd).',minLength:'Vul minimaal {minLength} karakters in (je hebt {length} karakters ingevoerd).',maxLength:'Vul niet meer dan {maxLength} karakters in (je hebt {length} karakters ingevoerd).',integer:'Vul een getal in. Getallen met decimalen (bijvoorbeeld 1.25) zijn niet toegestaan.',numeric:'Vul alleen numerieke waarden in (bijvoorbeeld "1" of "1.1" of "-1" of "-1.1").',digits:'Vul alleen nummers en leestekens in (bijvoorbeeld een telefoonnummer met streepjes is toegestaan).',alpha:'Vul alleen letters in (a-z). Spaties en andere karakters zijn niet toegestaan.',alphanum:'Vul alleen letters (a-z) of nummers (0-9) in. Spaties en andere karakters zijn niet toegestaan.',dateSuchAs:'Vul een geldige datum in, zoals {date}',dateInFormatMDY:'Vul een geldige datum, in het formaat MM/DD/YYYY (bijvoorbeeld "12/31/1999")',email:'Vul een geldig e-mailadres in. Bijvoorbeeld "fred@domein.nl".',url:'Vul een geldige URL in, zoals http://www.example.com.',currencyDollar:'Vul een geldig $ bedrag in. Bijvoorbeeld $100.00 .',oneRequired:'Vul iets in bij in ieder geval een van deze velden.',warningPrefix:'Waarschuwing: ',errorPrefix:'Fout: ',noSpace:'Spaties zijn niet toegestaan in dit veld.',reqChkByNode:'Er zijn geen items geselecteerd.',requiredChk:'Dit veld is verplicht.',reqChkByName:'Selecteer een {label}.',match:'Dit veld moet overeen komen met het {matchName} veld',startDate:'de begin datum',endDate:'de eind datum',currendDate:'de huidige datum',afterDate:'De datum moet hetzelfde of na {label} zijn.',beforeDate:'De datum moet hetzelfde of voor {label} zijn.',startMonth:'Selecteer een begin maand',sameMonth:'Deze twee data moeten in dezelfde maand zijn - u moet een van beide aanpassen.',creditcard:'Het ingevulde creditcardnummer is niet geldig. Controleer het nummer en probeer opnieuw. {length} getallen ingevuld.'});Locale.define('nl-NL').inherit('EU','Number');Locale.define('no-NO','Date',{dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,lessThanMinuteAgo:'kortere enn et minutt siden',minuteAgo:'omtrent et minutt siden',minutesAgo:'{delta} minutter siden',hourAgo:'omtrent en time siden',hoursAgo:'omtrent {delta} timer siden',dayAgo:'{delta} dag siden',daysAgo:'{delta} dager siden'});Locale.define('no-NO','FormValidator',{required:'Dette feltet er pÃ¥krevd.',minLength:'Vennligst skriv inn minst {minLength} tegn (du skrev {length} tegn).',maxLength:'Vennligst skriv inn maksimalt {maxLength} tegn (du skrev {length} tegn).',integer:'Vennligst skriv inn et tall i dette feltet. Tall med desimaler (for eksempel 1,25) er ikke tillat.',numeric:'Vennligst skriv inn kun numeriske verdier i dette feltet (for eksempel "1", "1.1", "-1" eller "-1.1").',digits:'Vennligst bruk kun nummer og skilletegn i dette feltet.',alpha:'Vennligst bruk kun bokstaver (a-z) i dette feltet. Ingen mellomrom eller andre tegn er tillat.',alphanum:'Vennligst bruk kun bokstaver (a-z) eller nummer (0-9) i dette feltet. Ingen mellomrom eller andre tegn er tillat.',dateSuchAs:'Vennligst skriv inn en gyldig dato, som {date}',dateInFormatMDY:'Vennligst skriv inn en gyldig dato, i formatet MM/DD/YYYY (for eksempel "12/31/1999")',email:'Vennligst skriv inn en gyldig epost-adresse. For eksempel "espen@domene.no".',url:'Vennligst skriv inn en gyldig URL, for eksempel http://www.example.com.',currencyDollar:'Vennligst fyll ut et gyldig $ beløp. For eksempel $100.00 .',oneRequired:'Vennligst fyll ut noe i minst ett av disse feltene.',errorPrefix:'Feil: ',warningPrefix:'Advarsel: '});Locale.define('pl-PL','Date',{months:['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec','Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'],months_abbr:['sty','lut','mar','kwi','maj','cze','lip','sie','wrz','paź','lis','gru'],days:['Niedziela','Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota'],days_abbr:['niedz.','pon.','wt.','śr.','czw.','pt.','sob.'],dateOrder:['year','month','date'],shortDate:'%Y-%m-%d',shortTime:'%H:%M',AM:'nad ranem',PM:'po południu',firstDayOfWeek:1,ordinal:function(dayOfMonth){return(dayOfMonth>3&&dayOfMonth<21)?'ty':['ty','szy','gi','ci','ty'][Math.min(dayOfMonth%10,4)];},lessThanMinuteAgo:'mniej niż minute temu',minuteAgo:'około minutę temu',minutesAgo:'{delta} minut temu',hourAgo:'około godzinę temu',hoursAgo:'około {delta} godzin temu',dayAgo:'Wczoraj',daysAgo:'{delta} dni temu',lessThanMinuteUntil:'za niecałą minutę',minuteUntil:'za około minutę',minutesUntil:'za {delta} minut',hourUntil:'za około godzinę',hoursUntil:'za około {delta} godzin',dayUntil:'za 1 dzień',daysUntil:'za {delta} dni'});Locale.define('pl-PL','FormValidator',{required:'To pole jest wymagane.',minLength:'Wymagane jest przynajmniej {minLength} znaków (wpisanych zostało tylko {length}).',maxLength:'Dozwolone jest nie więcej niż {maxLength} znaków (wpisanych zostało {length})',integer:'To pole wymaga liczb całych. Liczby dziesiętne (np. 1.25) są niedozwolone.',numeric:'Prosimy używać tylko numerycznych wartości w tym polu (np. "1", "1.1", "-1" lub "-1.1").',digits:'Prosimy używać liczb oraz zankow punktuacyjnych w typ polu (dla przykładu, przy numerze telefonu myślniki i kropki są dozwolone).',alpha:'Prosimy używać tylko liter (a-z) w tym polu. Spacje oraz inne znaki są niedozwolone.',alphanum:'Prosimy używać tylko liter (a-z) lub liczb (0-9) w tym polu. Spacje oraz inne znaki są niedozwolone.',dateSuchAs:'Prosimy podać prawidłową datę w formacie: {date}',dateInFormatMDY:'Prosimy podać poprawną date w formacie DD.MM.RRRR (i.e. "12.01.2009")',email:'Prosimy podać prawidłowy adres e-mail, np. "jan@domena.pl".',url:'Prosimy podać prawidłowy adres URL, np. http://www.example.com.',currencyDollar:'Prosimy podać prawidłową sumę w PLN. Dla przykładu: 100.00 PLN.',oneRequired:'Prosimy wypełnić chociaż jedno z pól.',errorPrefix:'Błąd: ',warningPrefix:'Uwaga: ',noSpace:'W tym polu nie mogą znajdować się spacje.',reqChkByNode:'Brak zaznaczonych elementów.',requiredChk:'To pole jest wymagane.',reqChkByName:'Prosimy wybrać z {label}.',match:'To pole musi być takie samo jak {matchName}',startDate:'data początkowa',endDate:'data końcowa',currendDate:'aktualna data',afterDate:'Podana data poinna być taka sama lub po {label}.',beforeDate:'Podana data poinna być taka sama lub przed {label}.',startMonth:'Prosimy wybrać początkowy miesiąc.',sameMonth:'Te dwie daty muszą być w zakresie tego samego miesiąca - wymagana jest zmiana któregoś z pól.'});Locale.define('pt-PT','Date',{months:['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],months_abbr:['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'],days:['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],days_abbr:['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],dateOrder:['date','month','year'],shortDate:'%d-%m-%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'º',lessThanMinuteAgo:'há menos de um minuto',minuteAgo:'há cerca de um minuto',minutesAgo:'há {delta} minutos',hourAgo:'há cerca de uma hora',hoursAgo:'há cerca de {delta} horas',dayAgo:'há um dia',daysAgo:'há {delta} dias',weekAgo:'há uma semana',weeksAgo:'há {delta} semanas',monthAgo:'há um mês',monthsAgo:'há {delta} meses',yearAgo:'há um ano',yearsAgo:'há {delta} anos',lessThanMinuteUntil:'em menos de um minuto',minuteUntil:'em um minuto',minutesUntil:'em {delta} minutos',hourUntil:'em uma hora',hoursUntil:'em {delta} horas',dayUntil:'em um dia',daysUntil:'em {delta} dias',weekUntil:'em uma semana',weeksUntil:'em {delta} semanas',monthUntil:'em um mês',monthsUntil:'em {delta} meses',yearUntil:'em um ano',yearsUntil:'em {delta} anos'});Locale.define('pt-BR','Date',{shortDate:'%d/%m/%Y'}).inherit('pt-PT','Date');Locale.define('pt-BR','FormValidator',{required:'Este campo é obrigatório.',minLength:'Digite pelo menos {minLength} caracteres (tamanho atual: {length}).',maxLength:'Não digite mais de {maxLength} caracteres (tamanho atual: {length}).',integer:'Por favor digite apenas um número inteiro neste campo. Não são permitidos números decimais (por exemplo, 1,25).',numeric:'Por favor digite apenas valores numéricos neste campo (por exemplo, "1" ou "1.1" ou "-1" ou "-1,1").',digits:'Por favor use apenas números e pontuação neste campo (por exemplo, um número de telefone com traços ou pontos é permitido).',alpha:'Por favor use somente letras (a-z). Espaço e outros caracteres não são permitidos.',alphanum:'Use somente letras (a-z) ou números (0-9) neste campo. Espaço e outros caracteres não são permitidos.',dateSuchAs:'Digite uma data válida, como {date}',dateInFormatMDY:'Digite uma data válida, como DD/MM/YYYY (por exemplo, "31/12/1999")',email:'Digite um endereço de email válido. Por exemplo "nome@dominio.com".',url:'Digite uma URL válida. Exemplo: http://www.example.com.',currencyDollar:'Digite um valor em dinheiro válido. Exemplo: R$100,00 .',oneRequired:'Digite algo para pelo menos um desses campos.',errorPrefix:'Erro: ',warningPrefix:'Aviso: ',noSpace:'Não é possível digitar espaços neste campo.',reqChkByNode:'Não foi selecionado nenhum item.',requiredChk:'Este campo é obrigatório.',reqChkByName:'Por favor digite um {label}.',match:'Este campo deve ser igual ao campo {matchName}.',startDate:'a data inicial',endDate:'a data final',currendDate:'a data atual',afterDate:'A data deve ser igual ou posterior a {label}.',beforeDate:'A data deve ser igual ou anterior a {label}.',startMonth:'Por favor selecione uma data inicial.',sameMonth:'Estas duas datas devem ter o mesmo mês - você deve modificar uma das duas.',creditcard:'O número do cartão de crédito informado é inválido. Por favor verifique o valor e tente novamente. {length} números informados.'});Locale.define('pt-PT','FormValidator',{required:'Este campo é necessário.',minLength:'Digite pelo menos{minLength} caracteres (comprimento {length} caracteres).',maxLength:'Não insira mais de {maxLength} caracteres (comprimento {length} caracteres).',integer:'Digite um número inteiro neste domínio. Com números decimais (por exemplo, 1,25), não são permitidas.',numeric:'Digite apenas valores numéricos neste domínio (p.ex., "1" ou "1.1" ou "-1" ou "-1,1").',digits:'Por favor, use números e pontuação apenas neste campo (p.ex., um número de telefone com traços ou pontos é permitida).',alpha:'Por favor use somente letras (a-z), com nesta área. Não utilize espaços nem outros caracteres são permitidos.',alphanum:'Use somente letras (a-z) ou números (0-9) neste campo. Não utilize espaços nem outros caracteres são permitidos.',dateSuchAs:'Digite uma data válida, como {date}',dateInFormatMDY:'Digite uma data válida, como DD/MM/YYYY (p.ex. "31/12/1999")',email:'Digite um endereço de email válido. Por exemplo "fred@domain.com".',url:'Digite uma URL válida, como http://www.example.com.',currencyDollar:'Digite um valor válido $. Por exemplo $ 100,00. ',oneRequired:'Digite algo para pelo menos um desses insumos.',errorPrefix:'Erro: ',warningPrefix:'Aviso: '});(function(){var pluralize=function(n,one,few,many,other){var modulo10=n%10,modulo100=n%100;if(modulo10==1&&modulo100!=11){return one;}else if((modulo10==2||modulo10==3||modulo10==4)&&!(modulo100==12||modulo100==13||modulo100==14)){return few;}else if(modulo10==0||(modulo10==5||modulo10==6||modulo10==7||modulo10==8||modulo10==9)||(modulo100==11||modulo100==12||modulo100==13||modulo100==14)){return many;}else{return other;}};Locale.define('ru-RU','Date',{months:['Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],months_abbr:['янв','февр','март','апр','май','июнь','июль','авг','сент','окт','нояб','дек'],days:['Воскресенье','Понедельник','Вторник','Среда','Четверг','Пятница','Суббота'],days_abbr:['Вс','Пн','Вт','Ср','Чт','Пт','Сб'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'меньше минуты назад',minuteAgo:'минуту назад',minutesAgo:function(delta){return'{delta} '+pluralize(delta,'минуту','минуты','минут')+' назад';},hourAgo:'час назад',hoursAgo:function(delta){return'{delta} '+pluralize(delta,'час','часа','часов')+' назад';},dayAgo:'вчера',daysAgo:function(delta){return'{delta} '+pluralize(delta,'день','дня','дней')+' назад';},weekAgo:'неделю назад',weeksAgo:function(delta){return'{delta} '+pluralize(delta,'неделя','недели','недель')+' назад';},monthAgo:'месяц назад',monthsAgo:function(delta){return'{delta} '+pluralize(delta,'месяц','месяца','месецев')+' назад';},yearAgo:'год назад',yearsAgo:function(delta){return'{delta} '+pluralize(delta,'год','года','лет')+' назад';},lessThanMinuteUntil:'меньше чем через минуту',minuteUntil:'через минуту',minutesUntil:function(delta){return'через {delta} '+pluralize(delta,'час','часа','часов')+'';},hourUntil:'через час',hoursUntil:function(delta){return'через {delta} '+pluralize(delta,'час','часа','часов')+'';},dayUntil:'завтра',daysUntil:function(delta){return'через {delta} '+pluralize(delta,'день','дня','дней')+'';},weekUntil:'через неделю',weeksUntil:function(delta){return'через {delta} '+pluralize(delta,'неделю','недели','недель')+'';},monthUntil:'через месяц',monthsUntil:function(delta){return'через {delta} '+pluralize(delta,'месяц','месяца','месецев')+'';},yearUntil:'через',yearsUntil:function(delta){return'через {delta} '+pluralize(delta,'год','года','лет')+'';}});Locale.define('ru-RU-unicode').inherit('ru-RU','Date');})();Locale.define('ru-RU','FormValidator',{required:'Это поле обязательно к заполнению.',minLength:'Пожалуйста, введите хотя бы {minLength} символов (Вы ввели {length}).',maxLength:'Пожалуйста, введите не больше {maxLength} символов (Вы ввели {length}).',integer:'Пожалуйста, введите в это поле число. Дробные числа (например 1.25) тут не разрешены.',numeric:'Пожалуйста, введите в это поле число (например "1" или "1.1", или "-1", или "-1.1").',digits:'В этом поле Вы можете использовать только цифры и знаки пунктуации (например, телефонный номер со знаками дефиса или с точками).',alpha:'В этом поле можно использовать только латинские буквы (a-z). Пробелы и другие символы запрещены.',alphanum:'В этом поле можно использовать только латинские буквы (a-z) и цифры (0-9). Пробелы и другие символы запрещены.',dateSuchAs:'Пожалуйста, введите корректную дату {date}',dateInFormatMDY:'Пожалуйста, введите дату в формате ММ/ДД/ГГГГ (например "12/31/1999")',email:'Пожалуйста, введите корректный емейл-адрес. Для примера "fred@domain.com".',url:'Пожалуйста, введите правильную ссылку вида http://www.example.com.',currencyDollar:'Пожалуйста, введите сумму в долларах. Например: $100.00 .',oneRequired:'Пожалуйста, выберите хоть что-нибудь в одном из этих полей.',errorPrefix:'Ошибка: ',warningPrefix:'Внимание: '});Locale.define('ru-RU-unicode').inherit('ru-RU','FormValidator');(function(){var pluralize=function(n,one,two,three,other){return(n>=1&&n<=3)?arguments[n]:other;};Locale.define('si-SI','Date',{months:['januar','februar','marec','april','maj','junij','julij','avgust','september','oktober','november','december'],months_abbr:['jan','feb','mar','apr','maj','jun','jul','avg','sep','okt','nov','dec'],days:['nedelja','ponedeljek','torek','sreda','četrtek','petek','sobota'],days_abbr:['ned','pon','tor','sre','čet','pet','sob'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H.%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'manj kot minuto nazaj',minuteAgo:'minuto nazaj',minutesAgo:function(delta){return'{delta} '+pluralize(delta,'minuto','minuti','minute','minut')+' nazaj';},hourAgo:'uro nazaj',hoursAgo:function(delta){return'{delta} '+pluralize(delta,'uro','uri','ure','ur')+' nazaj';},dayAgo:'dan nazaj',daysAgo:function(delta){return'{delta} '+pluralize(delta,'dan','dneva','dni','dni')+' nazaj';},weekAgo:'teden nazaj',weeksAgo:function(delta){return'{delta} '+pluralize(delta,'teden','tedna','tedne','tednov')+' nazaj';},monthAgo:'mesec nazaj',monthsAgo:function(delta){return'{delta} '+pluralize(delta,'mesec','meseca','mesece','mesecov')+' nazaj';},yearthAgo:'leto nazaj',yearsAgo:function(delta){return'{delta} '+pluralize(delta,'leto','leti','leta','let')+' nazaj';},lessThanMinuteUntil:'še manj kot minuto',minuteUntil:'še minuta',minutesUntil:function(delta){return'še {delta} '+pluralize(delta,'minuta','minuti','minute','minut');},hourUntil:'še ura',hoursUntil:function(delta){return'še {delta} '+pluralize(delta,'ura','uri','ure','ur');},dayUntil:'še dan',daysUntil:function(delta){return'še {delta} '+pluralize(delta,'dan','dneva','dnevi','dni');},weekUntil:'še tedn',weeksUntil:function(delta){return'še {delta} '+pluralize(delta,'teden','tedna','tedni','tednov');},monthUntil:'še mesec',monthsUntil:function(delta){return'še {delta} '+pluralize(delta,'mesec','meseca','meseci','mesecov');},yearUntil:'še leto',yearsUntil:function(delta){return'še {delta} '+pluralize(delta,'leto','leti','leta','let');}});})();Locale.define('si-SI','FormValidator',{required:'To polje je obvezno',minLength:'Prosim, vnesite vsaj {minLength} znakov (vnesli ste {length} znakov).',maxLength:'Prosim, ne vnesite več kot {maxLength} znakov (vnesli ste {length} znakov).',integer:'Prosim, vnesite celo število. Decimalna števila (kot 1,25) niso dovoljena.',numeric:'Prosim, vnesite samo numerične vrednosti (kot "1" ali "1.1" ali "-1" ali "-1.1").',digits:'Prosim, uporabite številke in ločila le na tem polju (na primer, dovoljena je telefonska številka z pomišlaji ali pikami).',alpha:'Prosim, uporabite le črke v tem plju. Presledki in drugi znaki niso dovoljeni.',alphanum:'Prosim, uporabite samo črke ali številke v tem polju. Presledki in drugi znaki niso dovoljeni.',dateSuchAs:'Prosim, vnesite pravilen datum kot {date}',dateInFormatMDY:'Prosim, vnesite pravilen datum kot MM.DD.YYYY (primer "12.31.1999")',email:'Prosim, vnesite pravilen email naslov. Na primer "fred@domain.com".',url:'Prosim, vnesite pravilen URL kot http://www.example.com.',currencyDollar:'Prosim, vnesit epravilno vrednost €. Primer 100,00€ .',oneRequired:'Prosimo, vnesite nekaj za vsaj eno izmed teh polj.',errorPrefix:'Napaka: ',warningPrefix:'Opozorilo: ',noSpace:'To vnosno polje ne dopušča presledkov.',reqChkByNode:'Nič niste izbrali.',requiredChk:'To polje je obvezno',reqChkByName:'Prosim, izberite {label}.',match:'To polje se mora ujemati z poljem {matchName}',startDate:'datum začetka',endDate:'datum konca',currendDate:'trenuten datum',afterDate:'Datum bi moral biti isti ali po {label}.',beforeDate:'Datum bi moral biti isti ali pred {label}.',startMonth:'Prosim, vnesite začetni datum',sameMonth:'Ta dva datuma morata biti v istem mesecu - premeniti morate eno ali drugo.',creditcard:'Številka kreditne kartice ni pravilna. Preverite številko ali poskusite še enkrat. Vnešenih {length} znakov.'});Locale.define('sv-SE','Date',{months:['januari','februari','mars','april','maj','juni','juli','augusti','september','oktober','november','december'],months_abbr:['jan','feb','mar','apr','maj','jun','jul','aug','sep','okt','nov','dec'],days:['söndag','måndag','tisdag','onsdag','torsdag','fredag','lördag'],days_abbr:['sön','mån','tis','ons','tor','fre','lör'],dateOrder:['year','month','date'],shortDate:'%Y-%m-%d',shortTime:'%H:%M',AM:'',PM:'',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'mindre än en minut sedan',minuteAgo:'ungefär en minut sedan',minutesAgo:'{delta} minuter sedan',hourAgo:'ungefär en timme sedan',hoursAgo:'ungefär {delta} timmar sedan',dayAgo:'1 dag sedan',daysAgo:'{delta} dagar sedan',lessThanMinuteUntil:'mindre än en minut sedan',minuteUntil:'ungefär en minut sedan',minutesUntil:'{delta} minuter sedan',hourUntil:'ungefär en timme sedan',hoursUntil:'ungefär {delta} timmar sedan',dayUntil:'1 dag sedan',daysUntil:'{delta} dagar sedan'});Locale.define('sv-SE','FormValidator',{required:'Fältet är obligatoriskt.',minLength:'Ange minst {minLength} tecken (du angav {length} tecken).',maxLength:'Ange högst {maxLength} tecken (du angav {length} tecken). ',integer:'Ange ett heltal i fältet. Tal med decimaler (t.ex. 1,25) är inte tillåtna.',numeric:'Ange endast numeriska värden i detta fält (t.ex. "1" eller "1.1" eller "-1" eller "-1,1").',digits:'Använd endast siffror och skiljetecken i detta fält (till exempel ett telefonnummer med bindestreck tillåtet).',alpha:'Använd endast bokstäver (a-ö) i detta fält. Inga mellanslag eller andra tecken är tillåtna.',alphanum:'Använd endast bokstäver (a-ö) och siffror (0-9) i detta fält. Inga mellanslag eller andra tecken är tillåtna.',dateSuchAs:'Ange ett giltigt datum som t.ex. {date}',dateInFormatMDY:'Ange ett giltigt datum som t.ex. YYYY-MM-DD (i.e. "1999-12-31")',email:'Ange en giltig e-postadress. Till exempel "erik@domain.com".',url:'Ange en giltig webbadress som http://www.example.com.',currencyDollar:'Ange en giltig belopp. Exempelvis 100,00.',oneRequired:'Vänligen ange minst ett av dessa alternativ.',errorPrefix:'Fel: ',warningPrefix:'Varning: ',noSpace:'Det får inte finnas några mellanslag i detta fält.',reqChkByNode:'Inga objekt är valda.',requiredChk:'Detta är ett obligatoriskt fält.',reqChkByName:'Välj en {label}.',match:'Detta fält måste matcha {matchName}',startDate:'startdatumet',endDate:'slutdatum',currendDate:'dagens datum',afterDate:'Datumet bör vara samma eller senare än {label}.',beforeDate:'Datumet bör vara samma eller tidigare än {label}.',startMonth:'Välj en start månad',sameMonth:'Dessa två datum måste vara i samma månad - du måste ändra det ena eller det andra.'});(function(){var pluralize=function(n,one,few,many,other){var d=(n/10).toInt(),z=n%10,s=(n/100).toInt();if(d==1&&n>10)return many;if(z==1)return one;if(z>0&&z<5)return few;return many;};Locale.define('uk-UA','Date',{months:['Січень','Лютий','Березень','Квітень','Травень','Червень','Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'],months_abbr:['Січ','Лют','Бер','Квіт','Трав','Черв','Лип','Серп','Вер','Жовт','Лист','Груд'],days:['Неділя','Понеділок','Вівторок','Середа','Четвер',"П'ятниця",'Субота'],days_abbr:['Нд','Пн','Вт','Ср','Чт','Пт','Сб'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'до полудня',PM:'по полудню',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'меньше хвилини тому',minuteAgo:'хвилину тому',minutesAgo:function(delta){return'{delta} '+pluralize(delta,'хвилину','хвилини','хвилин')+' тому';},hourAgo:'годину тому',hoursAgo:function(delta){return'{delta} '+pluralize(delta,'годину','години','годин')+' тому';},dayAgo:'вчора',daysAgo:function(delta){return'{delta} '+pluralize(delta,'день','дня','днів')+' тому';},weekAgo:'тиждень тому',weeksAgo:function(delta){return'{delta} '+pluralize(delta,'тиждень','тижні','тижнів')+' тому';},monthAgo:'місяць тому',monthsAgo:function(delta){return'{delta} '+pluralize(delta,'місяць','місяці','місяців')+' тому';},yearAgo:'рік тому',yearsAgo:function(delta){return'{delta} '+pluralize(delta,'рік','роки','років')+' тому';},lessThanMinuteUntil:'за мить',minuteUntil:'через хвилину',minutesUntil:function(delta){return'через {delta} '+pluralize(delta,'хвилину','хвилини','хвилин');},hourUntil:'через годину',hoursUntil:function(delta){return'через {delta} '+pluralize(delta,'годину','години','годин');},dayUntil:'завтра',daysUntil:function(delta){return'через {delta} '+pluralize(delta,'день','дня','днів');},weekUntil:'через тиждень',weeksUntil:function(delta){return'через {delta} '+pluralize(delta,'тиждень','тижні','тижнів');},monthUntil:'через місяць',monthesUntil:function(delta){return'через {delta} '+pluralize(delta,'місяць','місяці','місяців');},yearUntil:'через рік',yearsUntil:function(delta){return'через {delta} '+pluralize(delta,'рік','роки','років');}});})();Locale.define('uk-UA','FormValidator',{required:'Це поле повинне бути заповненим.',minLength:'Введіть хоча б {minLength} символів (Ви ввели {length}).',maxLength:'Кількість символів не може бути більше {maxLength} (Ви ввели {length}).',integer:'Введіть в це поле число. Дробові числа (наприклад 1.25) не дозволені.',numeric:'Введіть в це поле число (наприклад "1" або "1.1", або "-1", або "-1.1").',digits:'В цьому полі ви можете використовувати лише цифри і знаки пунктіації (наприклад, телефонний номер з знаками дефізу або з крапками).',alpha:'В цьому полі можна використовувати лише латинські літери (a-z). Пробіли і інші символи заборонені.',alphanum:'В цьому полі можна використовувати лише латинські літери (a-z) і цифри (0-9). Пробіли і інші символи заборонені.',dateSuchAs:'Введіть коректну дату {date}.',dateInFormatMDY:'Введіть дату в форматі ММ/ДД/РРРР (наприклад "12/31/2009").',email:'Введіть коректну адресу електронної пошти (наприклад "name@domain.com").',url:'Введіть коректне інтернет-посилання (наприклад http://www.example.com).',currencyDollar:'Введіть суму в доларах (наприклад "$100.00").',oneRequired:'Заповніть одне з полів.',errorPrefix:'Помилка: ',warningPrefix:'Увага: ',noSpace:'Пробіли заборонені.',reqChkByNode:'Не відмічено жодного варіанту.',requiredChk:'Це поле повинне бути віміченим.',reqChkByName:'Будь ласка, відмітьте {label}.',match:'Це поле повинно відповідати {matchName}',startDate:'початкова дата',endDate:'кінцева дата',currendDate:'сьогоднішня дата',afterDate:'Ця дата повинна бути такою ж, або пізнішою за {label}.',beforeDate:'Ця дата повинна бути такою ж, або ранішою за {label}.',startMonth:'Будь ласка, виберіть початковий місяць',sameMonth:'Ці дати повинні відноситись одного і того ж місяця. Будь ласка, змініть одну з них.',creditcard:'Номер кредитної карти введений неправильно. Будь ласка, перевірте його. Введено {length} символів.'});Locale.define('zh-CHS','Date',{months:['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],months_abbr:['一','二','三','四','五','六','七','八','九','十','十一','十二'],days:['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],days_abbr:['日','一','二','三','四','五','六'],dateOrder:['year','month','date'],shortDate:'%Y-%m-%d',shortTime:'%I:%M%p',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'不到1分钟前',minuteAgo:'大约1分钟前',minutesAgo:'{delta}分钟之前',hourAgo:'大约1小时前',hoursAgo:'大约{delta}小时前',dayAgo:'1天前',daysAgo:'{delta}天前',weekAgo:'1星期前',weeksAgo:'{delta}星期前',monthAgo:'1个月前',monthsAgo:'{delta}个月前',yearAgo:'1年前',yearsAgo:'{delta}年前',lessThanMinuteUntil:'从现在开始不到1分钟',minuteUntil:'从现在开始約1分钟',minutesUntil:'从现在开始约{delta}分钟',hourUntil:'从现在开始1小时',hoursUntil:'从现在开始约{delta}小时',dayUntil:'从现在开始1天',daysUntil:'从现在开始{delta}天',weekUntil:'从现在开始1星期',weeksUntil:'从现在开始{delta}星期',monthUntil:'从现在开始一个月',monthsUntil:'从现在开始{delta}个月',yearUntil:'从现在开始1年',yearsUntil:'从现在开始{delta}年'});Locale.define('zh-CHT','Date',{months:['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],months_abbr:['一','二','三','四','五','六','七','八','九','十','十一','十二'],days:['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],days_abbr:['日','一','二','三','四','五','六'],dateOrder:['year','month','date'],shortDate:'%Y-%m-%d',shortTime:'%I:%M%p',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'不到1分鐘前',minuteAgo:'大約1分鐘前',minutesAgo:'{delta}分鐘之前',hourAgo:'大約1小時前',hoursAgo:'大約{delta}小時前',dayAgo:'1天前',daysAgo:'{delta}天前',weekAgo:'1星期前',weeksAgo:'{delta}星期前',monthAgo:'1个月前',monthsAgo:'{delta}个月前',yearAgo:'1年前',yearsAgo:'{delta}年前',lessThanMinuteUntil:'從現在開始不到1分鐘',minuteUntil:'從現在開始約1分鐘',minutesUntil:'從現在開始約{delta}分鐘',hourUntil:'從現在開始1小時',hoursUntil:'從現在開始約{delta}小時',dayUntil:'從現在開始1天',daysUntil:'從現在開始{delta}天',weekUntil:'從現在開始1星期',weeksUntil:'從現在開始{delta}星期',monthUntil:'從現在開始一個月',monthsUntil:'從現在開始{delta}個月',yearUntil:'從現在開始1年',yearsUntil:'從現在開始{delta}年'});Locale.define('zh-CHS','FormValidator',{required:'此项必填。',minLength:'请至少输入 {minLength} 个字符 (已输入 {length} 个)。',maxLength:'最多只能输入 {maxLength} 个字符 (已输入 {length} 个)。',integer:'请输入一个整数,不能包含小数点。例如:"1", "200"。',numeric:'请输入一个数字,例如:"1", "1.1", "-1", "-1.1"。',digits:'请输入由数字和标点符号组成的内容。例如电话号码。',alpha:'请输入 A-Z 的 26 个字母,不能包含空格或任何其他字符。',alphanum:'请输入 A-Z 的 26 个字母或 0-9 的 10 个数字,不能包含空格或任何其他字符。',dateSuchAs:'请输入合法的日期格式,如:{date}。',dateInFormatMDY:'请输入合法的日期格式,例如:YYYY-MM-DD ("2010-12-31")。',email:'请输入合法的电子信箱地址,例如:"fred@domain.com"。',url:'请输入合法的 Url 地址,例如:http://www.example.com。',currencyDollar:'请输入合法的货币符号,例如:¥100.0',oneRequired:'请至少选择一项。',errorPrefix:'错误:',warningPrefix:'警告:',noSpace:'不能包含空格。',reqChkByNode:'未选择任何内容。',requiredChk:'此项必填。',reqChkByName:'请选择 {label}.',match:'必须与{matchName}相匹配',startDate:'起始日期',endDate:'结束日期',currendDate:'当前日期',afterDate:'日期必须等于或晚于 {label}.',beforeDate:'日期必须早于或等于 {label}.',startMonth:'请选择起始月份',sameMonth:'您必须修改两个日期中的一个,以确保它们在同一月份。',creditcard:'您输入的信用卡号码不正确。当前已输入{length}个字符。'});Locale.define('zh-CHT','FormValidator',{required:'此項必填。 ',minLength:'請至少輸入{minLength} 個字符(已輸入{length} 個)。 ',maxLength:'最多只能輸入{maxLength} 個字符(已輸入{length} 個)。 ',integer:'請輸入一個整數,不能包含小數點。例如:"1", "200"。 ',numeric:'請輸入一個數字,例如:"1", "1.1", "-1", "-1.1"。 ',digits:'請輸入由數字和標點符號組成的內容。例如電話號碼。 ',alpha:'請輸入AZ 的26 個字母,不能包含空格或任何其他字符。 ',alphanum:'請輸入AZ 的26 個字母或0-9 的10 個數字,不能包含空格或任何其他字符。 ',dateSuchAs:'請輸入合法的日期格式,如:{date}。 ',dateInFormatMDY:'請輸入合法的日期格式,例如:YYYY-MM-DD ("2010-12-31")。 ',email:'請輸入合法的電子信箱地址,例如:"fred@domain.com"。 ',url:'請輸入合法的Url 地址,例如:http://www.example.com。 ',currencyDollar:'請輸入合法的貨幣符號,例如:¥100.0',oneRequired:'請至少選擇一項。 ',errorPrefix:'錯誤:',warningPrefix:'警告:',noSpace:'不能包含空格。 ',reqChkByNode:'未選擇任何內容。 ',requiredChk:'此項必填。 ',reqChkByName:'請選擇 {label}.',match:'必須與{matchName}相匹配',startDate:'起始日期',endDate:'結束日期',currendDate:'當前日期',afterDate:'日期必須等於或晚於{label}.',beforeDate:'日期必須早於或等於{label}.',startMonth:'請選擇起始月份',sameMonth:'您必須修改兩個日期中的一個,以確保它們在同一月份。 ',creditcard:'您輸入的信用卡號碼不正確。當前已輸入{length}個字符。 '});Form.Validator.add('validate-currency-yuan',{errorMsg:function(){return Form.Validator.getMsg('currencyYuan');},test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^¥?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/).test(element.get('value'));}});/*! jQuery JavaScript Library v1.8.3 http://jquery.com/ Includes Sizzle.js http://sizzlejs.com/ Copyright 2012 jQuery Foundation and other contributors Released under the MIT license http://jquery.org/license Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */(function(window,undefined){var rootjQuery,readyList,document=window.document,location=window.location,navigator=window.navigator,_jQuery=window.jQuery,_$=window.$,core_push=Array.prototype.push,core_slice=Array.prototype.slice,core_indexOf=Array.prototype.indexOf,core_toString=Object.prototype.toString,core_hasOwn=Object.prototype.hasOwnProperty,core_trim=String.prototype.trim,jQuery=function(selector,context){return new jQuery.fn.init(selector,context,rootjQuery);},core_pnum=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,core_rnotwhite=/\S/,core_rspace=/\s+/,rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rquickExpr=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,rvalidchars=/^[\],:{}\s]*$/,rvalidbraces=/(?:^|:|,)(?:\s*\[)+/g,rvalidescape=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,rvalidtokens=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,fcamelCase=function(all,letter){return(letter+"").toUpperCase();},DOMContentLoaded=function(){if(document.addEventListener){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);jQuery.ready();}else if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);jQuery.ready();}},class2type={};jQuery.fn=jQuery.prototype={constructor:jQuery,init:function(selector,context,rootjQuery){var match,elem,ret,doc;if(!selector){return this;} if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this;} if(typeof selector==="string"){if(selector.charAt(0)==="<"&&selector.charAt(selector.length-1)===">"&&selector.length>=3){match=[null,selector,null];}else{match=rquickExpr.exec(selector);} if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;doc=(context&&context.nodeType?context.ownerDocument||context:document);selector=jQuery.parseHTML(match[1],doc,true);if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){this.attr.call(selector,context,true);} return jQuery.merge(this,selector);}else{elem=document.getElementById(match[2]);if(elem&&elem.parentNode){if(elem.id!==match[2]){return rootjQuery.find(selector);} this.length=1;this[0]=elem;} this.context=document;this.selector=selector;return this;}}else if(!context||context.jquery){return(context||rootjQuery).find(selector);}else{return this.constructor(context).find(selector);}}else if(jQuery.isFunction(selector)){return rootjQuery.ready(selector);} if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;} return jQuery.makeArray(selector,this);},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length;},toArray:function(){return core_slice.call(this);},get:function(num){return num==null?this.toArray():(num<0?this[this.length+num]:this[num]);},pushStack:function(elems,name,selector){var ret=jQuery.merge(this.constructor(),elems);ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;}else if(name){ret.selector=this.selector+"."+name+"("+selector+")";} return ret;},each:function(callback,args){return jQuery.each(this,callback,args);},ready:function(fn){jQuery.ready.promise().done(fn);return this;},eq:function(i){i=+i;return i===-1?this.slice(i):this.slice(i,i+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(core_slice.apply(this,arguments),"slice",core_slice.call(arguments).join(","));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},end:function(){return this.prevObject||this.constructor(null);},push:core_push,sort:[].sort,splice:[].splice};jQuery.fn.init.prototype=jQuery.fn;jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;} if(typeof target!=="object"&&!jQuery.isFunction(target)){target={};} if(length===i){target=this;--i;} for(;i0){return;} readyList.resolveWith(document,[jQuery]);if(jQuery.fn.trigger){jQuery(document).trigger("ready").off("ready");}},isFunction:function(obj){return jQuery.type(obj)==="function";},isArray:Array.isArray||function(obj){return jQuery.type(obj)==="array";},isWindow:function(obj){return obj!=null&&obj==obj.window;},isNumeric:function(obj){return!isNaN(parseFloat(obj))&&isFinite(obj);},type:function(obj){return obj==null?String(obj):class2type[core_toString.call(obj)]||"object";},isPlainObject:function(obj){if(!obj||jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false;} try{if(obj.constructor&&!core_hasOwn.call(obj,"constructor")&&!core_hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false;}}catch(e){return false;} var key;for(key in obj){} return key===undefined||core_hasOwn.call(obj,key);},isEmptyObject:function(obj){var name;for(name in obj){return false;} return true;},error:function(msg){throw new Error(msg);},parseHTML:function(data,context,scripts){var parsed;if(!data||typeof data!=="string"){return null;} if(typeof context==="boolean"){scripts=context;context=0;} context=context||document;if((parsed=rsingleTag.exec(data))){return[context.createElement(parsed[1])];} parsed=jQuery.buildFragment([data],context,scripts?null:[]);return jQuery.merge([],(parsed.cacheable?jQuery.clone(parsed.fragment):parsed.fragment).childNodes);},parseJSON:function(data){if(!data||typeof data!=="string"){return null;} data=jQuery.trim(data);if(window.JSON&&window.JSON.parse){return window.JSON.parse(data);} if(rvalidchars.test(data.replace(rvalidescape,"@").replace(rvalidtokens,"]").replace(rvalidbraces,""))){return(new Function("return "+data))();} jQuery.error("Invalid JSON: "+data);},parseXML:function(data){var xml,tmp;if(!data||typeof data!=="string"){return null;} try{if(window.DOMParser){tmp=new DOMParser();xml=tmp.parseFromString(data,"text/xml");}else{xml=new ActiveXObject("Microsoft.XMLDOM");xml.async="false";xml.loadXML(data);}}catch(e){xml=undefined;} if(!xml||!xml.documentElement||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data);} return xml;},noop:function(){},globalEval:function(data){if(data&&core_rnotwhite.test(data)){(window.execScript||function(data){window["eval"].call(window,data);})(data);}},camelCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();},each:function(obj,callback,args){var name,i=0,length=obj.length,isObj=length===undefined||jQuery.isFunction(obj);if(args){if(isObj){for(name in obj){if(callback.apply(obj[name],args)===false){break;}}}else{for(;i0&&elems[0]&&elems[length-1])||length===0||jQuery.isArray(elems));if(isArray){for(;i-1){list.splice(index,1);if(firing){if(index<=firingLength){firingLength--;} if(index<=firingIndex){firingIndex--;}}}});} return this;},has:function(fn){return jQuery.inArray(fn,list)>-1;},empty:function(){list=[];return this;},disable:function(){list=stack=memory=undefined;return this;},disabled:function(){return!list;},lock:function(){stack=undefined;if(!memory){self.disable();} return this;},locked:function(){return!stack;},fireWith:function(context,args){args=args||[];args=[context,args.slice?args.slice():args];if(list&&(!fired||stack)){if(firing){stack.push(args);}else{fire(args);}} return this;},fire:function(){self.fireWith(this,arguments);return this;},fired:function(){return!!fired;}};return self;};jQuery.extend({Deferred:function(func){var tuples=[["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],state="pending",promise={state:function(){return state;},always:function(){deferred.done(arguments).fail(arguments);return this;},then:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var action=tuple[0],fn=fns[i];deferred[tuple[1]](jQuery.isFunction(fn)?function(){var returned=fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify);}else{newDefer[action+"With"](this===deferred?newDefer:this,[returned]);}}:newDefer[action]);});fns=null;}).promise();},promise:function(obj){return obj!=null?jQuery.extend(obj,promise):promise;}},deferred={};promise.pipe=promise.then;jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[3];promise[tuple[1]]=list.add;if(stateString){list.add(function(){state=stateString;},tuples[i^1][2].disable,tuples[2][2].lock);} deferred[tuple[0]]=list.fire;deferred[tuple[0]+"With"]=list.fireWith;});promise.promise(deferred);if(func){func.call(deferred,deferred);} return deferred;},when:function(subordinate){var i=0,resolveValues=core_slice.call(arguments),length=resolveValues.length,remaining=length!==1||(subordinate&&jQuery.isFunction(subordinate.promise))?length:0,deferred=remaining===1?subordinate:jQuery.Deferred(),updateFunc=function(i,contexts,values){return function(value){contexts[i]=this;values[i]=arguments.length>1?core_slice.call(arguments):value;if(values===progressValues){deferred.notifyWith(contexts,values);}else if(!(--remaining)){deferred.resolveWith(contexts,values);}};},progressValues,progressContexts,resolveContexts;if(length>1){progressValues=new Array(length);progressContexts=new Array(length);resolveContexts=new Array(length);for(;i
a";all=div.getElementsByTagName("*");a=div.getElementsByTagName("a")[0];if(!all||!a||!all.length){return{};} select=document.createElement("select");opt=select.appendChild(document.createElement("option"));input=div.getElementsByTagName("input")[0];a.style.cssText="top:1px;float:left;opacity:.5";support={leadingWhitespace:(div.firstChild.nodeType===3),tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/top/.test(a.getAttribute("style")),hrefNormalized:(a.getAttribute("href")==="/a"),opacity:/^0.5/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:(input.value==="on"),optSelected:opt.selected,getSetAttribute:div.className!=="t",enctype:!!document.createElement("form").enctype,html5Clone:document.createElement("nav").cloneNode(true).outerHTML!=="<:nav>",boxModel:(document.compatMode==="CSS1Compat"),submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,boxSizingReliable:true,pixelPosition:false};input.checked=true;support.noCloneChecked=input.cloneNode(true).checked;select.disabled=true;support.optDisabled=!opt.disabled;try{delete div.test;}catch(e){support.deleteExpando=false;} if(!div.addEventListener&&div.attachEvent&&div.fireEvent){div.attachEvent("onclick",clickFn=function(){support.noCloneEvent=false;});div.cloneNode(true).fireEvent("onclick");div.detachEvent("onclick",clickFn);} input=document.createElement("input");input.value="t";input.setAttribute("type","radio");support.radioValue=input.value==="t";input.setAttribute("checked","checked");input.setAttribute("name","t");div.appendChild(input);fragment=document.createDocumentFragment();fragment.appendChild(div.lastChild);support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChild.checked;support.appendChecked=input.checked;fragment.removeChild(input);fragment.appendChild(div);if(div.attachEvent){for(i in{submit:true,change:true,focusin:true}){eventName="on"+i;isSupported=(eventName in div);if(!isSupported){div.setAttribute(eventName,"return;");isSupported=(typeof div[eventName]==="function");} support[i+"Bubbles"]=isSupported;}} jQuery(function(){var container,div,tds,marginDiv,divReset="padding:0;margin:0;border:0;display:block;overflow:hidden;",body=document.getElementsByTagName("body")[0];if(!body){return;} container=document.createElement("div");container.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";body.insertBefore(container,body.firstChild);div=document.createElement("div");container.appendChild(div);div.innerHTML="
t
";tds=div.getElementsByTagName("td");tds[0].style.cssText="padding:0;margin:0;border:0;display:none";isSupported=(tds[0].offsetHeight===0);tds[0].style.display="";tds[1].style.display="none";support.reliableHiddenOffsets=isSupported&&(tds[0].offsetHeight===0);div.innerHTML="";div.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";support.boxSizing=(div.offsetWidth===4);support.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==1);if(window.getComputedStyle){support.pixelPosition=(window.getComputedStyle(div,null)||{}).top!=="1%";support.boxSizingReliable=(window.getComputedStyle(div,null)||{width:"4px"}).width==="4px";marginDiv=document.createElement("div");marginDiv.style.cssText=div.style.cssText=divReset;marginDiv.style.marginRight=marginDiv.style.width="0";div.style.width="1px";div.appendChild(marginDiv);support.reliableMarginRight=!parseFloat((window.getComputedStyle(marginDiv,null)||{}).marginRight);} if(typeof div.style.zoom!=="undefined"){div.innerHTML="";div.style.cssText=divReset+"width:1px;padding:1px;display:inline;zoom:1";support.inlineBlockNeedsLayout=(div.offsetWidth===3);div.style.display="block";div.style.overflow="visible";div.innerHTML="
";div.firstChild.style.width="5px";support.shrinkWrapBlocks=(div.offsetWidth!==3);container.style.zoom=1;} body.removeChild(container);container=div=tds=marginDiv=null;});fragment.removeChild(div);all=a=select=opt=input=fragment=div=null;return support;})();var rbrace=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,rmultiDash=/([A-Z])/g;jQuery.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(jQuery.fn.jquery+Math.random()).replace(/\D/g,""),noData:{"embed":true,"object":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000","applet":true},hasData:function(elem){elem=elem.nodeType?jQuery.cache[elem[jQuery.expando]]:elem[jQuery.expando];return!!elem&&!isEmptyDataObject(elem);},data:function(elem,name,data,pvt){if(!jQuery.acceptData(elem)){return;} var thisCache,ret,internalKey=jQuery.expando,getByName=typeof name==="string",isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[internalKey]:elem[internalKey]&&internalKey;if((!id||!cache[id]||(!pvt&&!cache[id].data))&&getByName&&data===undefined){return;} if(!id){if(isNode){elem[internalKey]=id=jQuery.deletedIds.pop()||jQuery.guid++;}else{id=internalKey;}} if(!cache[id]){cache[id]={};if(!isNode){cache[id].toJSON=jQuery.noop;}} if(typeof name==="object"||typeof name==="function"){if(pvt){cache[id]=jQuery.extend(cache[id],name);}else{cache[id].data=jQuery.extend(cache[id].data,name);}} thisCache=cache[id];if(!pvt){if(!thisCache.data){thisCache.data={};} thisCache=thisCache.data;} if(data!==undefined){thisCache[jQuery.camelCase(name)]=data;} if(getByName){ret=thisCache[name];if(ret==null){ret=thisCache[jQuery.camelCase(name)];}}else{ret=thisCache;} return ret;},removeData:function(elem,name,pvt){if(!jQuery.acceptData(elem)){return;} var thisCache,i,l,isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:jQuery.expando;if(!cache[id]){return;} if(name){thisCache=pvt?cache[id]:cache[id].data;if(thisCache){if(!jQuery.isArray(name)){if(name in thisCache){name=[name];}else{name=jQuery.camelCase(name);if(name in thisCache){name=[name];}else{name=name.split(" ");}}} for(i=0,l=name.length;i1,null,false);},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});}});function dataAttr(elem,key,data){if(data===undefined&&elem.nodeType===1){var name="data-"+key.replace(rmultiDash,"-$1").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=data==="true"?true:data==="false"?false:data==="null"?null:+data+""===data?+data:rbrace.test(data)?jQuery.parseJSON(data):data;}catch(e){} jQuery.data(elem,key,data);}else{data=undefined;}} return data;} function isEmptyDataObject(obj){var name;for(name in obj){if(name==="data"&&jQuery.isEmptyObject(obj[name])){continue;} if(name!=="toJSON"){return false;}} return true;} jQuery.extend({queue:function(elem,type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=jQuery._data(elem,type);if(data){if(!queue||jQuery.isArray(data)){queue=jQuery._data(elem,type,jQuery.makeArray(data));}else{queue.push(data);}} return queue||[];}},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function(){jQuery.dequeue(elem,type);};if(fn==="inprogress"){fn=queue.shift();startLength--;} if(fn){if(type==="fx"){queue.unshift("inprogress");} delete hooks.stop;fn.call(elem,next,hooks);} if(!startLength&&hooks){hooks.empty.fire();}},_queueHooks:function(elem,type){var key=type+"queueHooks";return jQuery._data(elem,key)||jQuery._data(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){jQuery.removeData(elem,type+"queue",true);jQuery.removeData(elem,key,true);})});}});jQuery.fn.extend({queue:function(type,data){var setter=2;if(typeof type!=="string"){data=type;type="fx";setter--;} if(arguments.length1);},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name);});},prop:function(name,value){return jQuery.access(this,jQuery.prop,name,value,arguments.length>1);},removeProp:function(name){name=jQuery.propFix[name]||name;return this.each(function(){try{this[name]=undefined;delete this[name];}catch(e){}});},addClass:function(value){var classNames,i,l,elem,setClass,c,cl;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,this.className));});} if(value&&typeof value==="string"){classNames=value.split(core_rspace);for(i=0,l=this.length;i=0){className=className.replace(" "+removes[c]+" "," ");}} elem.className=value?jQuery.trim(className):"";}}} return this;},toggleClass:function(value,stateVal){var type=typeof value,isBool=typeof stateVal==="boolean";if(jQuery.isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,this.className,stateVal),stateVal);});} return this.each(function(){if(type==="string"){var className,i=0,self=jQuery(this),state=stateVal,classNames=value.split(core_rspace);while((className=classNames[i++])){state=isBool?state:!self.hasClass(className);self[state?"addClass":"removeClass"](className);}}else if(type==="undefined"||type==="boolean"){if(this.className){jQuery._data(this,"__className__",this.className);} this.className=this.className||value===false?"":jQuery._data(this,"__className__")||"";}});},hasClass:function(selector){var className=" "+selector+" ",i=0,l=this.length;for(;i=0){return true;}} return false;},val:function(value){var hooks,ret,isFunction,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()];if(hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret;} ret=elem.value;return typeof ret==="string"?ret.replace(rreturn,""):ret==null?"":ret;} return;} isFunction=jQuery.isFunction(value);return this.each(function(i){var val,self=jQuery(this);if(this.nodeType!==1){return;} if(isFunction){val=value.call(this,i,self.val());}else{val=value;} if(val==null){val="";}else if(typeof val==="number"){val+="";}else if(jQuery.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+"";});} hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){this.value=val;}});}});jQuery.extend({valHooks:{option:{get:function(elem){var val=elem.attributes.value;return!val||val.specified?elem.value:elem.text;}},select:{get:function(elem){var value,option,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one"||index<0,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;for(;i=0;});if(!values.length){elem.selectedIndex=-1;} return values;}}},attrFn:{},attr:function(elem,name,value,pass){var ret,hooks,notxml,nType=elem.nodeType;if(!elem||nType===3||nType===8||nType===2){return;} if(pass&&jQuery.isFunction(jQuery.fn[name])){return jQuery(elem)[name](value);} if(typeof elem.getAttribute==="undefined"){return jQuery.prop(elem,name,value);} notxml=nType!==1||!jQuery.isXMLDoc(elem);if(notxml){name=name.toLowerCase();hooks=jQuery.attrHooks[name]||(rboolean.test(name)?boolHook:nodeHook);} if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);return;}else if(hooks&&"set"in hooks&¬xml&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}else{elem.setAttribute(name,value+"");return value;}}else if(hooks&&"get"in hooks&¬xml&&(ret=hooks.get(elem,name))!==null){return ret;}else{ret=elem.getAttribute(name);return ret===null?undefined:ret;}},removeAttr:function(elem,value){var propName,attrNames,name,isBool,i=0;if(value&&elem.nodeType===1){attrNames=value.split(core_rspace);for(;i=0);}}});});var rformElems=/^(?:textarea|input|select)$/i,rtypenamespace=/^([^\.]*|)(?:\.(.+)|)$/,rhoverHack=/(?:^|\s)hover(\.\S+|)\b/,rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,hoverHack=function(events){return jQuery.event.special.hover?events:events.replace(rhoverHack,"mouseenter$1 mouseleave$1");};jQuery.event={add:function(elem,types,handler,data,selector){var elemData,eventHandle,events,t,tns,type,namespaces,handleObj,handleObjIn,handlers,special;if(elem.nodeType===3||elem.nodeType===8||!types||!handler||!(elemData=jQuery._data(elem))){return;} if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector;} if(!handler.guid){handler.guid=jQuery.guid++;} events=elemData.events;if(!events){elemData.events=events={};} eventHandle=elemData.handle;if(!eventHandle){elemData.handle=eventHandle=function(e){return typeof jQuery!=="undefined"&&(!e||jQuery.event.triggered!==e.type)?jQuery.event.dispatch.apply(eventHandle.elem,arguments):undefined;};eventHandle.elem=elem;} types=jQuery.trim(hoverHack(types)).split(" ");for(t=0;t=0){type=type.slice(0,-1);exclusive=true;} if(type.indexOf(".")>=0){namespaces=type.split(".");type=namespaces.shift();namespaces.sort();} if((!elem||jQuery.event.customEvent[type])&&!jQuery.event.global[type]){return;} event=typeof event==="object"?event[jQuery.expando]?event:new jQuery.Event(type,event):new jQuery.Event(type);event.type=type;event.isTrigger=true;event.exclusive=exclusive;event.namespace=namespaces.join(".");event.namespace_re=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;ontype=type.indexOf(":")<0?"on"+type:"";if(!elem){cache=jQuery.cache;for(i in cache){if(cache[i].events&&cache[i].events[type]){jQuery.event.trigger(event,data,cache[i].handle.elem,true);}} return;} event.result=undefined;if(!event.target){event.target=elem;} data=data!=null?jQuery.makeArray(data):[];data.unshift(event);special=jQuery.event.special[type]||{};if(special.trigger&&special.trigger.apply(elem,data)===false){return;} eventPath=[[elem,special.bindType||type]];if(!onlyHandlers&&!special.noBubble&&!jQuery.isWindow(elem)){bubbleType=special.delegateType||type;cur=rfocusMorph.test(bubbleType+type)?elem:elem.parentNode;for(old=elem;cur;cur=cur.parentNode){eventPath.push([cur,bubbleType]);old=cur;} if(old===(elem.ownerDocument||document)){eventPath.push([old.defaultView||old.parentWindow||window,bubbleType]);}} for(i=0;i=0:jQuery.find(sel,this,null,[cur]).length;} if(selMatch[sel]){matches.push(handleObj);}} if(matches.length){handlerQueue.push({elem:cur,matches:matches});}}}} if(handlers.length>delegateCount){handlerQueue.push({elem:this,matches:handlers.slice(delegateCount)});} for(i=0;i0?this.on(name,null,data,fn):this.trigger(name);};if(rkeyEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.keyHooks;} if(rmouseEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.mouseHooks;}});/*! Sizzle CSS Selector Engine Copyright 2012 jQuery Foundation and other contributors Released under the MIT license http://sizzlejs.com/ */(function(window,undefined){var cachedruns,assertGetIdNotName,Expr,getText,isXML,contains,compile,sortOrder,hasDuplicate,outermostContext,baseHasDuplicate=true,strundefined="undefined",expando=("sizcache"+Math.random()).replace(".",""),Token=String,document=window.document,docElem=document.documentElement,dirruns=0,done=0,pop=[].pop,push=[].push,slice=[].slice,indexOf=[].indexOf||function(elem){var i=0,len=this.length;for(;iExpr.cacheLength){delete cache[keys.shift()];} return(cache[key+" "]=value);},cache);},classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),whitespace="[\\x20\\t\\r\\n\\f]",characterEncoding="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",identifier=characterEncoding.replace("w","w#"),operators="([*^$|!~]?=)",attributes="\\["+whitespace+"*("+characterEncoding+")"+whitespace+"*(?:"+operators+whitespace+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+identifier+")|)|)"+whitespace+"*\\]",pseudos=":("+characterEncoding+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+attributes+")|[^:]|\\\\.)*|.*))\\)|)",pos=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)",rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([\\x20\\t\\r\\n\\f>+~])"+whitespace+"*"),rpseudo=new RegExp(pseudos),rquickExpr=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,rnot=/^:not/,rsibling=/[\x20\t\r\n\f]*[+~]/,rendsWithNot=/:not\($/,rheader=/h\d/i,rinputs=/input|select|textarea|button/i,rbackslash=/\\(?!\\)/g,matchExpr={"ID":new RegExp("^#("+characterEncoding+")"),"CLASS":new RegExp("^\\.("+characterEncoding+")"),"NAME":new RegExp("^\\[name=['\"]?("+characterEncoding+")['\"]?\\]"),"TAG":new RegExp("^("+characterEncoding.replace("w","w*")+")"),"ATTR":new RegExp("^"+attributes),"PSEUDO":new RegExp("^"+pseudos),"POS":new RegExp(pos,"i"),"CHILD":new RegExp("^:(only|nth|first|last)-child(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),"needsContext":new RegExp("^"+whitespace+"*[>+~]|"+pos,"i")},assert=function(fn){var div=document.createElement("div");try{return fn(div);}catch(e){return false;}finally{div=null;}},assertTagNameNoComments=assert(function(div){div.appendChild(document.createComment(""));return!div.getElementsByTagName("*").length;}),assertHrefNotNormalized=assert(function(div){div.innerHTML="";return div.firstChild&&typeof div.firstChild.getAttribute!==strundefined&&div.firstChild.getAttribute("href")==="#";}),assertAttributes=assert(function(div){div.innerHTML="";var type=typeof div.lastChild.getAttribute("multiple");return type!=="boolean"&&type!=="string";}),assertUsableClassName=assert(function(div){div.innerHTML="";if(!div.getElementsByClassName||!div.getElementsByClassName("e").length){return false;} div.lastChild.className="e";return div.getElementsByClassName("e").length===2;}),assertUsableName=assert(function(div){div.id=expando+0;div.innerHTML="
";docElem.insertBefore(div,docElem.firstChild);var pass=document.getElementsByName&&document.getElementsByName(expando).length===2+ document.getElementsByName(expando+0).length;assertGetIdNotName=!document.getElementById(expando);docElem.removeChild(div);return pass;});try{slice.call(docElem.childNodes,0)[0].nodeType;}catch(e){slice=function(i){var elem,results=[];for(;(elem=this[i]);i++){results.push(elem);} return results;};} function Sizzle(selector,context,results,seed){results=results||[];context=context||document;var match,elem,xml,m,nodeType=context.nodeType;if(!selector||typeof selector!=="string"){return results;} if(nodeType!==1&&nodeType!==9){return[];} xml=isXML(context);if(!xml&&!seed){if((match=rquickExpr.exec(selector))){if((m=match[1])){if(nodeType===9){elem=context.getElementById(m);if(elem&&elem.parentNode){if(elem.id===m){results.push(elem);return results;}}else{return results;}}else{if(context.ownerDocument&&(elem=context.ownerDocument.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results;}}}else if(match[2]){push.apply(results,slice.call(context.getElementsByTagName(selector),0));return results;}else if((m=match[3])&&assertUsableClassName&&context.getElementsByClassName){push.apply(results,slice.call(context.getElementsByClassName(m),0));return results;}}} return select(selector.replace(rtrim,"$1"),context,results,seed,xml);} Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements);};Sizzle.matchesSelector=function(elem,expr){return Sizzle(expr,null,null,[elem]).length>0;};function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type;};} function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type;};} function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[(j=matchIndexes[i])]){seed[j]=!(matches[j]=seed[j]);}}});});} getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(nodeType){if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent==="string"){return elem.textContent;}else{for(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem);}}}else if(nodeType===3||nodeType===4){return elem.nodeValue;}}else{for(;(node=elem[i]);i++){ret+=getText(node);}} return ret;};isXML=Sizzle.isXML=function(elem){var documentElement=elem&&(elem.ownerDocument||elem).documentElement;return documentElement?documentElement.nodeName!=="HTML":false;};contains=Sizzle.contains=docElem.contains?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&adown.contains&&adown.contains(bup));}:docElem.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16);}:function(a,b){while((b=b.parentNode)){if(b===a){return true;}} return false;};Sizzle.attr=function(elem,name){var val,xml=isXML(elem);if(!xml){name=name.toLowerCase();} if((val=Expr.attrHandle[name])){return val(elem);} if(xml||assertAttributes){return elem.getAttribute(name);} val=elem.getAttributeNode(name);return val?typeof elem[name]==="boolean"?elem[name]?name:null:val.specified?val.value:null:null;};Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:assertHrefNotNormalized?{}:{"href":function(elem){return elem.getAttribute("href",2);},"type":function(elem){return elem.getAttribute("type");}},find:{"ID":assertGetIdNotName?function(id,context,xml){if(typeof context.getElementById!==strundefined&&!xml){var m=context.getElementById(id);return m&&m.parentNode?[m]:[];}}:function(id,context,xml){if(typeof context.getElementById!==strundefined&&!xml){var m=context.getElementById(id);return m?m.id===id||typeof m.getAttributeNode!==strundefined&&m.getAttributeNode("id").value===id?[m]:undefined:[];}},"TAG":assertTagNameNoComments?function(tag,context){if(typeof context.getElementsByTagName!==strundefined){return context.getElementsByTagName(tag);}}:function(tag,context){var results=context.getElementsByTagName(tag);if(tag==="*"){var elem,tmp=[],i=0;for(;(elem=results[i]);i++){if(elem.nodeType===1){tmp.push(elem);}} return tmp;} return results;},"NAME":assertUsableName&&function(tag,context){if(typeof context.getElementsByName!==strundefined){return context.getElementsByName(name);}},"CLASS":assertUsableClassName&&function(className,context,xml){if(typeof context.getElementsByClassName!==strundefined&&!xml){return context.getElementsByClassName(className);}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{"ATTR":function(match){match[1]=match[1].replace(rbackslash,"");match[3]=(match[4]||match[5]||"").replace(rbackslash,"");if(match[2]==="~="){match[3]=" "+match[3]+" ";} return match.slice(0,4);},"CHILD":function(match){match[1]=match[1].toLowerCase();if(match[1]==="nth"){if(!match[2]){Sizzle.error(match[0]);} match[3]=+(match[3]?match[4]+(match[5]||1):2*(match[2]==="even"||match[2]==="odd"));match[4]=+((match[6]+match[7])||match[2]==="odd");}else if(match[2]){Sizzle.error(match[0]);} return match;},"PSEUDO":function(match){var unquoted,excess;if(matchExpr["CHILD"].test(match[0])){return null;} if(match[3]){match[2]=match[3];}else if((unquoted=match[4])){if(rpseudo.test(unquoted)&&(excess=tokenize(unquoted,true))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){unquoted=unquoted.slice(0,excess);match[0]=match[0].slice(0,excess);} match[2]=unquoted;} return match.slice(0,3);}},filter:{"ID":assertGetIdNotName?function(id){id=id.replace(rbackslash,"");return function(elem){return elem.getAttribute("id")===id;};}:function(id){id=id.replace(rbackslash,"");return function(elem){var node=typeof elem.getAttributeNode!==strundefined&&elem.getAttributeNode("id");return node&&node.value===id;};},"TAG":function(nodeName){if(nodeName==="*"){return function(){return true;};} nodeName=nodeName.replace(rbackslash,"").toLowerCase();return function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName;};},"CLASS":function(className){var pattern=classCache[expando][className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(elem.className||(typeof elem.getAttribute!==strundefined&&elem.getAttribute("class"))||"");});},"ATTR":function(name,operator,check){return function(elem,context){var result=Sizzle.attr(elem,name);if(result==null){return operator==="!=";} if(!operator){return true;} result+="";return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.substr(result.length-check.length)===check:operator==="~="?(" "+result+" ").indexOf(check)>-1:operator==="|="?result===check||result.substr(0,check.length+1)===check+"-":false;};},"CHILD":function(type,argument,first,last){if(type==="nth"){return function(elem){var node,diff,parent=elem.parentNode;if(first===1&&last===0){return true;} if(parent){diff=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){diff++;if(elem===node){break;}}}} diff-=last;return diff===first||(diff%first===0&&diff/first>=0);};} return function(elem){var node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false;}} if(type==="first"){return true;} node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false;}} return true;}};},"PSEUDO":function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);if(fn[expando]){return fn(argument);} if(fn.length>1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf.call(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i]);}}):function(elem){return fn(elem,0,args);};} return fn;}},pseudos:{"not":markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function(seed,matches,context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;while(i--){if((elem=unmatched[i])){seed[i]=!(matches[i]=elem);}}}):function(elem,context,xml){input[0]=elem;matcher(input,null,xml,results);return!results.pop();};}),"has":markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0;};}),"contains":markFunction(function(text){return function(elem){return(elem.textContent||elem.innerText||getText(elem)).indexOf(text)>-1;};}),"enabled":function(elem){return elem.disabled===false;},"disabled":function(elem){return elem.disabled===true;},"checked":function(elem){var nodeName=elem.nodeName.toLowerCase();return(nodeName==="input"&&!!elem.checked)||(nodeName==="option"&&!!elem.selected);},"selected":function(elem){if(elem.parentNode){elem.parentNode.selectedIndex;} return elem.selected===true;},"parent":function(elem){return!Expr.pseudos["empty"](elem);},"empty":function(elem){var nodeType;elem=elem.firstChild;while(elem){if(elem.nodeName>"@"||(nodeType=elem.nodeType)===3||nodeType===4){return false;} elem=elem.nextSibling;} return true;},"header":function(elem){return rheader.test(elem.nodeName);},"text":function(elem){var type,attr;return elem.nodeName.toLowerCase()==="input"&&(type=elem.type)==="text"&&((attr=elem.getAttribute("type"))==null||attr.toLowerCase()===type);},"radio":createInputPseudo("radio"),"checkbox":createInputPseudo("checkbox"),"file":createInputPseudo("file"),"password":createInputPseudo("password"),"image":createInputPseudo("image"),"submit":createButtonPseudo("submit"),"reset":createButtonPseudo("reset"),"button":function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type==="button"||name==="button";},"input":function(elem){return rinputs.test(elem.nodeName);},"focus":function(elem){var doc=elem.ownerDocument;return elem===doc.activeElement&&(!doc.hasFocus||doc.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex);},"active":function(elem){return elem===elem.ownerDocument.activeElement;},"first":createPositionalPseudo(function(){return[0];}),"last":createPositionalPseudo(function(matchIndexes,length){return[length-1];}),"eq":createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument];}),"even":createPositionalPseudo(function(matchIndexes,length){for(var i=0;i=0;){matchIndexes.push(i);} return matchIndexes;}),"gt":createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;++i1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false;}} return true;}:matchers[0];} function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i-1){seed[temp]=!(results[temp]=elem);}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml);}else{push.apply(results,matcherOut);}}});} function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext;},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf.call(checkContext,elem)>-1;},implicitRelative,true),matchers=[function(elem,context,xml){return(!leadingRelative&&(xml||context!==outermostContext))||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));}];for(;i1&&elementMatcher(matchers),i>1&&tokens.slice(0,i-1).join("").replace(rtrim,"$1"),matcher,i0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,expandContext){var elem,j,matcher,setMatched=[],matchedCount=0,i="0",unmatched=seed&&[],outermost=expandContext!=null,contextBackup=outermostContext,elems=seed||byElement&&Expr.find["TAG"]("*",expandContext&&context.parentNode||context),dirrunsUnique=(dirruns+=contextBackup==null?1:Math.E);if(outermost){outermostContext=context!==document&&context;cachedruns=superMatcher.el;} for(;(elem=elems[i])!=null;i++){if(byElement&&elem){for(j=0;(matcher=elementMatchers[j]);j++){if(matcher(elem,context,xml)){results.push(elem);break;}} if(outermost){dirruns=dirrunsUnique;cachedruns=++superMatcher.el;}} if(bySet){if((elem=!matcher&&elem)){matchedCount--;} if(seed){unmatched.push(elem);}}} matchedCount+=i;if(bySet&&i!==matchedCount){for(j=0;(matcher=setMatchers[j]);j++){matcher(unmatched,setMatched,context,xml);} if(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results);}}} setMatched=condense(setMatched);} push.apply(results,setMatched);if(outermost&&!seed&&setMatched.length>0&&(matchedCount+setMatchers.length)>1){Sizzle.uniqueSort(results);}} if(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup;} return unmatched;};superMatcher.el=0;return bySet?markFunction(superMatcher):superMatcher;} compile=Sizzle.compile=function(selector,group){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[expando][selector+" "];if(!cached){if(!group){group=tokenize(selector);} i=group.length;while(i--){cached=matcherFromTokens(group[i]);if(cached[expando]){setMatchers.push(cached);}else{elementMatchers.push(cached);}} cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));} return cached;};function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&!xml&&Expr.relative[tokens[1].type]){context=Expr.find["ID"](token.matches[0].replace(rbackslash,""),context,xml)[0];if(!context){return results;} selector=selector.slice(tokens.shift().length);} for(i=matchExpr["POS"].test(selector)?-1:tokens.length-1;i>=0;i--){token=tokens[i];if(Expr.relative[(type=token.type)]){break;} if((find=Expr.find[type])){if((seed=find(token.matches[0].replace(rbackslash,""),rsibling.test(tokens[0].type)&&context.parentNode||context,xml))){tokens.splice(i,1);selector=seed.length&&tokens.join("");if(!selector){push.apply(results,slice.call(seed,0));return results;} break;}}}}} compile(selector,match)(seed,context,xml,results,rsibling.test(selector));return results;} if(document.querySelectorAll){(function(){var disconnectedMatch,oldSelect=select,rescape=/'|\\/g,rattributeQuotes=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,rbuggyQSA=[":focus"],rbuggyMatches=[":active"],matches=docElem.matchesSelector||docElem.mozMatchesSelector||docElem.webkitMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector;assert(function(div){div.innerHTML="";if(!div.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)");} if(!div.querySelectorAll(":checked").length){rbuggyQSA.push(":checked");}});assert(function(div){div.innerHTML="

";if(div.querySelectorAll("[test^='']").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:\"\"|'')");} div.innerHTML="";if(!div.querySelectorAll(":enabled").length){rbuggyQSA.push(":enabled",":disabled");}});rbuggyQSA=new RegExp(rbuggyQSA.join("|"));select=function(selector,context,results,seed,xml){if(!seed&&!xml&&!rbuggyQSA.test(selector)){var groups,i,old=true,nid=expando,newContext=context,newSelector=context.nodeType===9&&selector;if(context.nodeType===1&&context.nodeName.toLowerCase()!=="object"){groups=tokenize(selector);if((old=context.getAttribute("id"))){nid=old.replace(rescape,"\\$&");}else{context.setAttribute("id",nid);} nid="[id='"+nid+"'] ";i=groups.length;while(i--){groups[i]=nid+groups[i].join("");} newContext=rsibling.test(selector)&&context.parentNode||context;newSelector=groups.join(",");} if(newSelector){try{push.apply(results,slice.call(newContext.querySelectorAll(newSelector),0));return results;}catch(qsaError){}finally{if(!old){context.removeAttribute("id");}}}} return oldSelect(selector,context,results,seed,xml);};if(matches){assert(function(div){disconnectedMatch=matches.call(div,"div");try{matches.call(div,"[test!='']:sizzle");rbuggyMatches.push("!=",pseudos);}catch(e){}});rbuggyMatches=new RegExp(rbuggyMatches.join("|"));Sizzle.matchesSelector=function(elem,expr){expr=expr.replace(rattributeQuotes,"='$1']");if(!isXML(elem)&&!rbuggyMatches.test(expr)&&!rbuggyQSA.test(expr)){try{var ret=matches.call(elem,expr);if(ret||disconnectedMatch||elem.document&&elem.document.nodeType!==11){return ret;}}catch(e){}} return Sizzle(expr,null,null,[elem]).length>0;};}})();} Expr.pseudos["nth"]=Expr.pseudos["eq"];function setFilters(){} Expr.filters=setFilters.prototype=Expr.pseudos;Expr.setFilters=new setFilters();Sizzle.attr=jQuery.attr;jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.pseudos;jQuery.unique=Sizzle.uniqueSort;jQuery.text=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains;})(window);var runtil=/Until$/,rparentsprev=/^(?:parents|prev(?:Until|All))/,isSimple=/^.[^:#\[\.,]*$/,rneedsContext=jQuery.expr.match.needsContext,guaranteedUnique={children:true,contents:true,next:true,prev:true};jQuery.fn.extend({find:function(selector){var i,l,length,n,r,ret,self=this;if(typeof selector!=="string"){return jQuery(selector).filter(function(){for(i=0,l=self.length;i0){for(n=length;n=0:jQuery.filter(selector,this).length>0:this.filter(selector).length>0);},closest:function(selectors,context){var cur,i=0,l=this.length,ret=[],pos=rneedsContext.test(selectors)||typeof selectors!=="string"?jQuery(selectors,context||this.context):0;for(;i-1:jQuery.find.matchesSelector(cur,selectors)){ret.push(cur);break;} cur=cur.parentNode;}} ret=ret.length>1?jQuery.unique(ret):ret;return this.pushStack(ret,"closest",selectors);},index:function(elem){if(!elem){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1;} if(typeof elem==="string"){return jQuery.inArray(this[0],jQuery(elem));} return jQuery.inArray(elem.jquery?elem[0]:elem,this);},add:function(selector,context){var set=typeof selector==="string"?jQuery(selector,context):jQuery.makeArray(selector&&selector.nodeType?[selector]:selector),all=jQuery.merge(this.get(),set);return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:jQuery.unique(all));},addBack:function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));}});jQuery.fn.andSelf=jQuery.fn.addBack;function isDisconnected(node){return!node||!node.parentNode||node.parentNode.nodeType===11;} function sibling(cur,dir){do{cur=cur[dir];}while(cur&&cur.nodeType!==1);return cur;} jQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function(elem){return jQuery.dir(elem,"parentNode");},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until);},next:function(elem){return sibling(elem,"nextSibling");},prev:function(elem){return sibling(elem,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until);},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until);},siblings:function(elem){return jQuery.sibling((elem.parentNode||{}).firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.merge([],elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);if(!runtil.test(name)){selector=until;} if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret);} ret=this.length>1&&!guaranteedUnique[name]?jQuery.unique(ret):ret;if(this.length>1&&rparentsprev.test(name)){ret=ret.reverse();} return this.pushStack(ret,name,core_slice.call(arguments).join(","));};});jQuery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")";} return elems.length===1?jQuery.find.matchesSelector(elems[0],expr)?[elems[0]]:[]:jQuery.find.matches(expr,elems);},dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur);} cur=cur[dir];} return matched;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n);}} return r;}});function winnow(elements,qualifier,keep){qualifier=qualifier||0;if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){var retVal=!!qualifier.call(elem,i,elem);return retVal===keep;});}else if(qualifier.nodeType){return jQuery.grep(elements,function(elem,i){return(elem===qualifier)===keep;});}else if(typeof qualifier==="string"){var filtered=jQuery.grep(elements,function(elem){return elem.nodeType===1;});if(isSimple.test(qualifier)){return jQuery.filter(qualifier,filtered,!keep);}else{qualifier=jQuery.filter(qualifier,filtered);}} return jQuery.grep(elements,function(elem,i){return(jQuery.inArray(elem,qualifier)>=0)===keep;});} function createSafeFragment(document){var list=nodeNames.split("|"),safeFrag=document.createDocumentFragment();if(safeFrag.createElement){while(list.length){safeFrag.createElement(list.pop());}} return safeFrag;} var nodeNames="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|"+"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",rinlinejQuery=/ jQuery\d+="(?:null|\d+)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rtagName=/<([\w:]+)/,rtbody=/]","i"),rcheckableType=/^(?:checkbox|radio)$/,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/\/(java|ecma)script/i,rcleanScript=/^\s*\s*$/g,wrapMap={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},safeFragment=createSafeFragment(document),fragmentDiv=safeFragment.appendChild(document.createElement("div"));wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!jQuery.support.htmlSerialize){wrapMap._default=[1,"X
","
"];} jQuery.fn.extend({text:function(value){return jQuery.access(this,function(value){return value===undefined?jQuery.text(this):this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(value));},null,value,arguments.length);},wrapAll:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i));});} if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0]);} wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild;} return elem;}).append(this);} return this;},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i));});} return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function(html){var isFunction=jQuery.isFunction(html);return this.each(function(i){jQuery(this).wrapAll(isFunction?html.call(this,i):html);});},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes);}}).end();},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1||this.nodeType===11){this.appendChild(elem);}});},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1||this.nodeType===11){this.insertBefore(elem,this.firstChild);}});},before:function(){if(!isDisconnected(this[0])){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);});} if(arguments.length){var set=jQuery.clean(arguments);return this.pushStack(jQuery.merge(set,this),"before",this.selector);}},after:function(){if(!isDisconnected(this[0])){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});} if(arguments.length){var set=jQuery.clean(arguments);return this.pushStack(jQuery.merge(this,set),"after",this.selector);}},remove:function(selector,keepData){var elem,i=0;for(;(elem=this[i])!=null;i++){if(!selector||jQuery.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));jQuery.cleanData([elem]);} if(elem.parentNode){elem.parentNode.removeChild(elem);}}} return this;},empty:function(){var elem,i=0;for(;(elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));} while(elem.firstChild){elem.removeChild(elem.firstChild);}} return this;},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents);});},html:function(value){return jQuery.access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined){return elem.nodeType===1?elem.innerHTML.replace(rinlinejQuery,""):undefined;} if(typeof value==="string"&&!rnoInnerhtml.test(value)&&(jQuery.support.htmlSerialize||!rnoshimcache.test(value))&&(jQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1>");try{for(;i1&&typeof value==="string"&&rchecked.test(value)){return this.each(function(){jQuery(this).domManip(args,table,callback);});} if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);args[0]=value.call(this,i,table?self.html():undefined);self.domManip(args,table,callback);});} if(this[0]){results=jQuery.buildFragment(args,this,scripts);fragment=results.fragment;first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first;} if(first){table=table&&jQuery.nodeName(first,"tr");for(iNoClone=results.cacheable||l-1;i0?this.clone(true):this).get();jQuery(insert[i])[original](elems);ret=ret.concat(elems);} return this.pushStack(ret,name,insert.selector);}};});function getAll(elem){if(typeof elem.getElementsByTagName!=="undefined"){return elem.getElementsByTagName("*");}else if(typeof elem.querySelectorAll!=="undefined"){return elem.querySelectorAll("*");}else{return[];}} function fixDefaultChecked(elem){if(rcheckableType.test(elem.type)){elem.defaultChecked=elem.checked;}} jQuery.extend({clone:function(elem,dataAndEvents,deepDataAndEvents){var srcElements,destElements,i,clone;if(jQuery.support.html5Clone||jQuery.isXMLDoc(elem)||!rnoshimcache.test("<"+elem.nodeName+">")){clone=elem.cloneNode(true);}else{fragmentDiv.innerHTML=elem.outerHTML;fragmentDiv.removeChild(clone=fragmentDiv.firstChild);} if((!jQuery.support.noCloneEvent||!jQuery.support.noCloneChecked)&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){cloneFixAttributes(elem,clone);srcElements=getAll(elem);destElements=getAll(clone);for(i=0;srcElements[i];++i){if(destElements[i]){cloneFixAttributes(srcElements[i],destElements[i]);}}} if(dataAndEvents){cloneCopyEvent(elem,clone);if(deepDataAndEvents){srcElements=getAll(elem);destElements=getAll(clone);for(i=0;srcElements[i];++i){cloneCopyEvent(srcElements[i],destElements[i]);}}} srcElements=destElements=null;return clone;},clean:function(elems,context,fragment,scripts){var i,j,elem,tag,wrap,depth,div,hasBody,tbody,len,handleScript,jsTags,safe=context===document&&safeFragment,ret=[];if(!context||typeof context.createDocumentFragment==="undefined"){context=document;} for(i=0;(elem=elems[i])!=null;i++){if(typeof elem==="number"){elem+="";} if(!elem){continue;} if(typeof elem==="string"){if(!rhtml.test(elem)){elem=context.createTextNode(elem);}else{safe=safe||createSafeFragment(context);div=context.createElement("div");safe.appendChild(div);elem=elem.replace(rxhtmlTag,"<$1>");tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;depth=wrap[0];div.innerHTML=wrap[1]+elem+wrap[2];while(depth--){div=div.lastChild;} if(!jQuery.support.tbody){hasBody=rtbody.test(elem);tbody=tag==="table"&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]===""&&!hasBody?div.childNodes:[];for(j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j]);}}} if(!jQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild);} elem=div.childNodes;div.parentNode.removeChild(div);}} if(elem.nodeType){ret.push(elem);}else{jQuery.merge(ret,elem);}} if(div){elem=div=safe=null;} if(!jQuery.support.appendChecked){for(i=0;(elem=ret[i])!=null;i++){if(jQuery.nodeName(elem,"input")){fixDefaultChecked(elem);}else if(typeof elem.getElementsByTagName!=="undefined"){jQuery.grep(elem.getElementsByTagName("input"),fixDefaultChecked);}}} if(fragment){handleScript=function(elem){if(!elem.type||rscriptType.test(elem.type)){return scripts?scripts.push(elem.parentNode?elem.parentNode.removeChild(elem):elem):fragment.appendChild(elem);}};for(i=0;(elem=ret[i])!=null;i++){if(!(jQuery.nodeName(elem,"script")&&handleScript(elem))){fragment.appendChild(elem);if(typeof elem.getElementsByTagName!=="undefined"){jsTags=jQuery.grep(jQuery.merge([],elem.getElementsByTagName("script")),handleScript);ret.splice.apply(ret,[i+1,0].concat(jsTags));i+=jsTags.length;}}}} return ret;},cleanData:function(elems,acceptData){var data,id,elem,type,i=0,internalKey=jQuery.expando,cache=jQuery.cache,deleteExpando=jQuery.support.deleteExpando,special=jQuery.event.special;for(;(elem=elems[i])!=null;i++){if(acceptData||jQuery.acceptData(elem)){id=elem[internalKey];data=id&&cache[id];if(data){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type);}else{jQuery.removeEvent(elem,type,data.handle);}}} if(cache[id]){delete cache[id];if(deleteExpando){delete elem[internalKey];}else if(elem.removeAttribute){elem.removeAttribute(internalKey);}else{elem[internalKey]=null;} jQuery.deletedIds.push(id);}}}}}});(function(){var matched,browser;jQuery.uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"};};matched=jQuery.uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=true;browser.version=matched.version;} if(browser.chrome){browser.webkit=true;}else if(browser.webkit){browser.safari=true;} jQuery.browser=browser;jQuery.sub=function(){function jQuerySub(selector,context){return new jQuerySub.fn.init(selector,context);} jQuery.extend(true,jQuerySub,this);jQuerySub.superclass=this;jQuerySub.fn=jQuerySub.prototype=this();jQuerySub.fn.constructor=jQuerySub;jQuerySub.sub=this.sub;jQuerySub.fn.init=function init(selector,context){if(context&&context instanceof jQuery&&!(context instanceof jQuerySub)){context=jQuerySub(context);} return jQuery.fn.init.call(this,selector,context,rootjQuerySub);};jQuerySub.fn.init.prototype=jQuerySub.fn;var rootjQuerySub=jQuerySub(document);return jQuerySub;};})();var curCSS,iframe,iframeDoc,ralpha=/alpha\([^)]*\)/i,ropacity=/opacity=([^)]*)/,rposition=/^(top|right|bottom|left)$/,rdisplayswap=/^(none|table(?!-c[ea]).+)/,rmargin=/^margin/,rnumsplit=new RegExp("^("+core_pnum+")(.*)$","i"),rnumnonpx=new RegExp("^("+core_pnum+")(?!px)[a-z%]+$","i"),rrelNum=new RegExp("^([-+])=("+core_pnum+")","i"),elemdisplay={BODY:"block"},cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:0,fontWeight:400},cssExpand=["Top","Right","Bottom","Left"],cssPrefixes=["Webkit","O","Moz","ms"],eventsToggle=jQuery.fn.toggle;function vendorPropName(style,name){if(name in style){return name;} var capName=name.charAt(0).toUpperCase()+name.slice(1),origName=name,i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in style){return name;}} return origName;} function isHidden(elem,el){elem=el||elem;return jQuery.css(elem,"display")==="none"||!jQuery.contains(elem.ownerDocument,elem);} function showHide(elements,show){var elem,display,values=[],index=0,length=elements.length;for(;index1);},show:function(){return showHide(this,true);},hide:function(){return showHide(this);},toggle:function(state,fn2){var bool=typeof state==="boolean";if(jQuery.isFunction(state)&&jQuery.isFunction(fn2)){return eventsToggle.apply(this,arguments);} return this.each(function(){if(bool?state:isHidden(this)){jQuery(this).show();}else{jQuery(this).hide();}});}});jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity");return ret===""?"1":ret;}}}},cssNumber:{"fillOpacity":true,"fontWeight":true,"lineHeight":true,"opacity":true,"orphans":true,"widows":true,"zIndex":true,"zoom":true},cssProps:{"float":jQuery.support.cssFloat?"cssFloat":"styleFloat"},style:function(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return;} var ret,type,hooks,origName=jQuery.camelCase(name),style=elem.style;name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(style,origName));hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(value!==undefined){type=typeof value;if(type==="string"&&(ret=rrelNum.exec(value))){value=(ret[1]+1)*ret[2]+parseFloat(jQuery.css(elem,name));type="number";} if(value==null||type==="number"&&isNaN(value)){return;} if(type==="number"&&!jQuery.cssNumber[origName]){value+="px";} if(!hooks||!("set"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){try{style[name]=value;}catch(e){}}}else{if(hooks&&"get"in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret;} return style[name];}},css:function(elem,name,numeric,extra){var val,num,hooks,origName=jQuery.camelCase(name);name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(elem.style,origName));hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(hooks&&"get"in hooks){val=hooks.get(elem,true,extra);} if(val===undefined){val=curCSS(elem,name);} if(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name];} if(numeric||extra!==undefined){num=parseFloat(val);return numeric||jQuery.isNumeric(num)?num||0:val;} return val;},swap:function(elem,options,callback){var ret,name,old={};for(name in options){old[name]=elem.style[name];elem.style[name]=options[name];} ret=callback.call(elem);for(name in options){elem.style[name]=old[name];} return ret;}});if(window.getComputedStyle){curCSS=function(elem,name){var ret,width,minWidth,maxWidth,computed=window.getComputedStyle(elem,null),style=elem.style;if(computed){ret=computed.getPropertyValue(name)||computed[name];if(ret===""&&!jQuery.contains(elem.ownerDocument,elem)){ret=jQuery.style(elem,name);} if(rnumnonpx.test(ret)&&rmargin.test(name)){width=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth;style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;style.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth;}} return ret;};}else if(document.documentElement.currentStyle){curCSS=function(elem,name){var left,rsLeft,ret=elem.currentStyle&&elem.currentStyle[name],style=elem.style;if(ret==null&&style&&style[name]){ret=style[name];} if(rnumnonpx.test(ret)&&!rposition.test(name)){left=style.left;rsLeft=elem.runtimeStyle&&elem.runtimeStyle.left;if(rsLeft){elem.runtimeStyle.left=elem.currentStyle.left;} style.left=name==="fontSize"?"1em":ret;ret=style.pixelLeft+"px";style.left=left;if(rsLeft){elem.runtimeStyle.left=rsLeft;}} return ret===""?"auto":ret;};} function setPositiveNumber(elem,value,subtract){var matches=rnumsplit.exec(value);return matches?Math.max(0,matches[1]-(subtract||0))+(matches[2]||"px"):value;} function augmentWidthOrHeight(elem,name,extra,isBorderBox){var i=extra===(isBorderBox?"border":"content")?4:name==="width"?1:0,val=0;for(;i<4;i+=2){if(extra==="margin"){val+=jQuery.css(elem,extra+cssExpand[i],true);} if(isBorderBox){if(extra==="content"){val-=parseFloat(curCSS(elem,"padding"+cssExpand[i]))||0;} if(extra!=="margin"){val-=parseFloat(curCSS(elem,"border"+cssExpand[i]+"Width"))||0;}}else{val+=parseFloat(curCSS(elem,"padding"+cssExpand[i]))||0;if(extra!=="padding"){val+=parseFloat(curCSS(elem,"border"+cssExpand[i]+"Width"))||0;}}} return val;} function getWidthOrHeight(elem,name,extra){var val=name==="width"?elem.offsetWidth:elem.offsetHeight,valueIsBorderBox=true,isBorderBox=jQuery.support.boxSizing&&jQuery.css(elem,"boxSizing")==="border-box";if(val<=0||val==null){val=curCSS(elem,name);if(val<0||val==null){val=elem.style[name];} if(rnumnonpx.test(val)){return val;} valueIsBorderBox=isBorderBox&&(jQuery.support.boxSizingReliable||val===elem.style[name]);val=parseFloat(val)||0;} return(val+ augmentWidthOrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox))+"px";} function css_defaultDisplay(nodeName){if(elemdisplay[nodeName]){return elemdisplay[nodeName];} var elem=jQuery("<"+nodeName+">").appendTo(document.body),display=elem.css("display");elem.remove();if(display==="none"||display===""){iframe=document.body.appendChild(iframe||jQuery.extend(document.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!iframeDoc||!iframe.createElement){iframeDoc=(iframe.contentWindow||iframe.contentDocument).document;iframeDoc.write("");iframeDoc.close();} elem=iframeDoc.body.appendChild(iframeDoc.createElement(nodeName));display=curCSS(elem,"display");document.body.removeChild(iframe);} elemdisplay[nodeName]=display;return display;} jQuery.each(["height","width"],function(i,name){jQuery.cssHooks[name]={get:function(elem,computed,extra){if(computed){if(elem.offsetWidth===0&&rdisplayswap.test(curCSS(elem,"display"))){return jQuery.swap(elem,cssShow,function(){return getWidthOrHeight(elem,name,extra);});}else{return getWidthOrHeight(elem,name,extra);}}},set:function(elem,value,extra){return setPositiveNumber(elem,value,extra?augmentWidthOrHeight(elem,name,extra,jQuery.support.boxSizing&&jQuery.css(elem,"boxSizing")==="border-box"):0);}};});if(!jQuery.support.opacity){jQuery.cssHooks.opacity={get:function(elem,computed){return ropacity.test((computed&&elem.currentStyle?elem.currentStyle.filter:elem.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":computed?"1":"";},set:function(elem,value){var style=elem.style,currentStyle=elem.currentStyle,opacity=jQuery.isNumeric(value)?"alpha(opacity="+value*100+")":"",filter=currentStyle&¤tStyle.filter||style.filter||"";style.zoom=1;if(value>=1&&jQuery.trim(filter.replace(ralpha,""))===""&&style.removeAttribute){style.removeAttribute("filter");if(currentStyle&&!currentStyle.filter){return;}} style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):filter+" "+opacity;}};} jQuery(function(){if(!jQuery.support.reliableMarginRight){jQuery.cssHooks.marginRight={get:function(elem,computed){return jQuery.swap(elem,{"display":"inline-block"},function(){if(computed){return curCSS(elem,"marginRight");}});}};} if(!jQuery.support.pixelPosition&&jQuery.fn.position){jQuery.each(["top","left"],function(i,prop){jQuery.cssHooks[prop]={get:function(elem,computed){if(computed){var ret=curCSS(elem,prop);return rnumnonpx.test(ret)?jQuery(elem).position()[prop]+"px":ret;}}};});}});if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.hidden=function(elem){return(elem.offsetWidth===0&&elem.offsetHeight===0)||(!jQuery.support.reliableHiddenOffsets&&((elem.style&&elem.style.display)||curCSS(elem,"display"))==="none");};jQuery.expr.filters.visible=function(elem){return!jQuery.expr.filters.hidden(elem);};} jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){var i,parts=typeof value==="string"?value.split(" "):[value],expanded={};for(i=0;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];} return expanded;}};if(!rmargin.test(prefix)){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;}});var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rinput=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,rselectTextarea=/^(?:select|textarea)/i;jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val.replace(rCRLF,"\r\n")};}):{name:elem.name,value:val.replace(rCRLF,"\r\n")};}).get();}});jQuery.param=function(a,traditional){var prefix,s=[],add=function(key,value){value=jQuery.isFunction(value)?value():(value==null?"":value);s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);};if(traditional===undefined){traditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional;} if(jQuery.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){jQuery.each(a,function(){add(this.name,this.value);});}else{for(prefix in a){buildParams(prefix,a[prefix],traditional,add);}} return s.join("&").replace(r20,"+");};function buildParams(prefix,obj,traditional,add){var name;if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"?i:"")+"]",v,traditional,add);}});}else if(!traditional&&jQuery.type(obj)==="object"){for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add);}}else{add(prefix,obj);}} var ajaxLocParts,ajaxLocation,rhash=/#.*$/,rheaders=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,rlocalProtocol=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rquery=/\?/,rscript=/)<[^<]*)*<\/script>/gi,rts=/([?&])_=[^&]*/,rurl=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,_load=jQuery.fn.load,prefilters={},transports={},allTypes=["*/"]+["*"];try{ajaxLocation=location.href;}catch(e){ajaxLocation=document.createElement("a");ajaxLocation.href="";ajaxLocation=ajaxLocation.href;} ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*";} var dataType,list,placeBefore,dataTypes=dataTypeExpression.toLowerCase().split(core_rspace),i=0,length=dataTypes.length;if(jQuery.isFunction(func)){for(;i=0){selector=url.slice(off,url.length);url=url.slice(0,off);} if(jQuery.isFunction(params)){callback=params;params=undefined;}else if(params&&typeof params==="object"){type="POST";} jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(jqXHR,status){if(callback){self.each(callback,response||[jqXHR.responseText,status,jqXHR]);}}}).done(function(responseText){response=arguments;self.html(selector?jQuery("
").append(responseText.replace(rscript,"")).find(selector):responseText);});return this;};jQuery.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){jQuery.fn[o]=function(f){return this.on(o,f);};});jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data=undefined;} return jQuery.ajax({type:method,url:url,data:data,success:callback,dataType:type});};});jQuery.extend({getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},ajaxSetup:function(target,settings){if(settings){ajaxExtend(target,jQuery.ajaxSettings);}else{settings=target;target=jQuery.ajaxSettings;} ajaxExtend(target,settings);return target;},ajaxSettings:{url:ajaxLocation,isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":allTypes},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":true,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url==="object"){options=url;url=undefined;} options=options||{};var ifModifiedKey,responseHeadersString,responseHeaders,transport,timeoutTimer,parts,fireGlobals,i,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=callbackContext!==s&&(callbackContext.nodeType||callbackContext instanceof jQuery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},state=0,strAbort="canceled",jqXHR={readyState:0,setRequestHeader:function(name,value){if(!state){var lname=name.toLowerCase();name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;requestHeaders[name]=value;} return this;},getAllResponseHeaders:function(){return state===2?responseHeadersString:null;},getResponseHeader:function(key){var match;if(state===2){if(!responseHeaders){responseHeaders={};while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase()]=match[2];}} match=responseHeaders[key.toLowerCase()];} return match===undefined?null:match;},overrideMimeType:function(type){if(!state){s.mimeType=type;} return this;},abort:function(statusText){statusText=statusText||strAbort;if(transport){transport.abort(statusText);} done(0,statusText);return this;}};function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;if(state===2){return;} state=2;if(timeoutTimer){clearTimeout(timeoutTimer);} transport=undefined;responseHeadersString=headers||"";jqXHR.readyState=status>0?4:0;if(responses){response=ajaxHandleResponses(s,jqXHR,responses);} if(status>=200&&status<300||status===304){if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){jQuery.lastModified[ifModifiedKey]=modified;} modified=jqXHR.getResponseHeader("Etag");if(modified){jQuery.etag[ifModifiedKey]=modified;}} if(status===304){statusText="notmodified";isSuccess=true;}else{isSuccess=ajaxConvert(s,response);statusText=isSuccess.state;success=isSuccess.data;error=isSuccess.error;isSuccess=!error;}}else{error=statusText;if(!statusText||status){statusText="error";if(status<0){status=0;}}} jqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);} jqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlobals){globalEventContext.trigger("ajax"+(isSuccess?"Success":"Error"),[jqXHR,s,isSuccess?success:error]);} completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);if(!(--jQuery.active)){jQuery.event.trigger("ajaxStop");}}} deferred.promise(jqXHR);jqXHR.success=jqXHR.done;jqXHR.error=jqXHR.fail;jqXHR.complete=completeDeferred.add;jqXHR.statusCode=function(map){if(map){var tmp;if(state<2){for(tmp in map){statusCode[tmp]=[statusCode[tmp],map[tmp]];}}else{tmp=map[jqXHR.status];jqXHR.always(tmp);}} return this;};s.url=((url||s.url)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//");s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().split(core_rspace);if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());s.crossDomain=!!(parts&&(parts[1]!==ajaxLocParts[1]||parts[2]!==ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?80:443))!=(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?80:443))));} if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional);} inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);if(state===2){return jqXHR;} fireGlobals=s.global;s.type=s.type.toUpperCase();s.hasContent=!rnoContent.test(s.type);if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart");} if(!s.hasContent){if(s.data){s.url+=(rquery.test(s.url)?"&":"?")+s.data;delete s.data;} ifModifiedKey=s.url;if(s.cache===false){var ts=jQuery.now(),ret=s.url.replace(rts,"$1_="+ts);s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"");}} if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType);} if(s.ifModified){ifModifiedKey=ifModifiedKey||s.url;if(jQuery.lastModified[ifModifiedKey]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[ifModifiedKey]);} if(jQuery.etag[ifModifiedKey]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[ifModifiedKey]);}} jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i]);} if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||state===2)){return jqXHR.abort();} strAbort="abort";for(i in{success:1,error:1,complete:1}){jqXHR[i](s[i]);} transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);if(!transport){done(-1,"No Transport");}else{jqXHR.readyState=1;if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s]);} if(s.async&&s.timeout>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout");},s.timeout);} try{state=1;transport.send(requestHeaders,done);}catch(e){if(state<2){done(-1,e);}else{throw e;}}} return jqXHR;},active:0,lastModified:{},etag:{}});function ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes,responseFields=s.responseFields;for(type in responseFields){if(type in responses){jqXHR[responseFields[type]]=responses[type];}} while(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("content-type");}} if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break;}}} if(dataTypes[0]in responses){finalDataType=dataTypes[0];}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break;} if(!firstDataType){firstDataType=type;}} finalDataType=finalDataType||firstDataType;} if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType);} return responses[finalDataType];}} function ajaxConvert(s,response){var conv,conv2,current,tmp,dataTypes=s.dataTypes.slice(),prev=dataTypes[0],converters={},i=0;if(s.dataFilter){response=s.dataFilter(response,s.dataType);} if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv];}} for(;(current=dataTypes[++i]);){if(current!=="*"){if(prev!=="*"&&prev!==current){conv=converters[prev+" "+current]||converters["* "+current];if(!conv){for(conv2 in converters){tmp=conv2.split(" ");if(tmp[1]===current){conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){if(conv===true){conv=converters[conv2];}else if(converters[conv2]!==true){current=tmp[0];dataTypes.splice(i--,0,current);} break;}}}} if(conv!==true){if(conv&&s["throws"]){response=conv(response);}else{try{response=conv(response);}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current};}}}} prev=current;}} return{state:"success",data:response};} var oldCallbacks=[],rquestion=/\?/,rjsonp=/(=)\?(?=&|$)|\?\?/,nonce=jQuery.now();jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce++));this[callback]=true;return callback;}});jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,data=s.data,url=s.url,hasCallback=s.jsonp!==false,replaceInUrl=hasCallback&&rjsonp.test(url),replaceInData=hasCallback&&!replaceInUrl&&typeof data==="string"&&!(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(data);if(s.dataTypes[0]==="jsonp"||replaceInUrl||replaceInData){callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;overwritten=window[callbackName];if(replaceInUrl){s.url=url.replace(rjsonp,"$1"+callbackName);}else if(replaceInData){s.data=data.replace(rjsonp,"$1"+callbackName);}else if(hasCallback){s.url+=(rquestion.test(url)?"&":"?")+s.jsonp+"="+callbackName;} s.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called");} return responseContainer[0];};s.dataTypes[0]="json";window[callbackName]=function(){responseContainer=arguments;};jqXHR.always(function(){window[callbackName]=overwritten;if(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push(callbackName);} if(responseContainer&&jQuery.isFunction(overwritten)){overwritten(responseContainer[0]);} responseContainer=overwritten=undefined;});return"script";}});jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(text){jQuery.globalEval(text);return text;}}});jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false;} if(s.crossDomain){s.type="GET";s.global=false;}});jQuery.ajaxTransport("script",function(s){if(s.crossDomain){var script,head=document.head||document.getElementsByTagName("head")[0]||document.documentElement;return{send:function(_,callback){script=document.createElement("script");script.async="async";if(s.scriptCharset){script.charset=s.scriptCharset;} script.src=s.url;script.onload=script.onreadystatechange=function(_,isAbort){if(isAbort||!script.readyState||/loaded|complete/.test(script.readyState)){script.onload=script.onreadystatechange=null;if(head&&script.parentNode){head.removeChild(script);} script=undefined;if(!isAbort){callback(200,"success");}}};head.insertBefore(script,head.firstChild);},abort:function(){if(script){script.onload(0,1);}}};}});var xhrCallbacks,xhrOnUnloadAbort=window.ActiveXObject?function(){for(var key in xhrCallbacks){xhrCallbacks[key](0,1);}}:false,xhrId=0;function createStandardXHR(){try{return new window.XMLHttpRequest();}catch(e){}} function createActiveXHR(){try{return new window.ActiveXObject("Microsoft.XMLHTTP");}catch(e){}} jQuery.ajaxSettings.xhr=window.ActiveXObject?function(){return!this.isLocal&&createStandardXHR()||createActiveXHR();}:createStandardXHR;(function(xhr){jQuery.extend(jQuery.support,{ajax:!!xhr,cors:!!xhr&&("withCredentials"in xhr)});})(jQuery.ajaxSettings.xhr());if(jQuery.support.ajax){jQuery.ajaxTransport(function(s){if(!s.crossDomain||jQuery.support.cors){var callback;return{send:function(headers,complete){var handle,i,xhr=s.xhr();if(s.username){xhr.open(s.type,s.url,s.async,s.username,s.password);}else{xhr.open(s.type,s.url,s.async);} if(s.xhrFields){for(i in s.xhrFields){xhr[i]=s.xhrFields[i];}} if(s.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(s.mimeType);} if(!s.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest";} try{for(i in headers){xhr.setRequestHeader(i,headers[i]);}}catch(_){} xhr.send((s.hasContent&&s.data)||null);callback=function(_,isAbort){var status,statusText,responseHeaders,responses,xml;try{if(callback&&(isAbort||xhr.readyState===4)){callback=undefined;if(handle){xhr.onreadystatechange=jQuery.noop;if(xhrOnUnloadAbort){delete xhrCallbacks[handle];}} if(isAbort){if(xhr.readyState!==4){xhr.abort();}}else{status=xhr.status;responseHeaders=xhr.getAllResponseHeaders();responses={};xml=xhr.responseXML;if(xml&&xml.documentElement){responses.xml=xml;} try{responses.text=xhr.responseText;}catch(e){} try{statusText=xhr.statusText;}catch(e){statusText="";} if(!status&&s.isLocal&&!s.crossDomain){status=responses.text?200:404;}else if(status===1223){status=204;}}}}catch(firefoxAccessException){if(!isAbort){complete(-1,firefoxAccessException);}} if(responses){complete(status,statusText,responses,responseHeaders);}};if(!s.async){callback();}else if(xhr.readyState===4){setTimeout(callback,0);}else{handle=++xhrId;if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};jQuery(window).unload(xhrOnUnloadAbort);} xhrCallbacks[handle]=callback;} xhr.onreadystatechange=callback;}},abort:function(){if(callback){callback(0,1);}}};}});} var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([-+])=|)("+core_pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaultPrefilter],tweeners={"*":[function(prop,value){var end,unit,tween=this.createTween(prop,value),parts=rfxnum.exec(value),target=tween.cur(),start=+target||0,scale=1,maxIterations=20;if(parts){end=+parts[2];unit=parts[3]||(jQuery.cssNumber[prop]?"":"px");if(unit!=="px"&&start){start=jQuery.css(tween.elem,prop,true)||end||1;do{scale=scale||".5";start=start/scale;jQuery.style(tween.elem,prop,start+unit);}while(scale!==(scale=tween.cur()/target)&&scale!==1&&--maxIterations);} tween.unit=unit;tween.start=start;tween.end=parts[1]?start+(parts[1]+1)*end:end;} return tween;}]};function createFxNow(){setTimeout(function(){fxNow=undefined;},0);return(fxNow=jQuery.now());} function createTweens(animation,props){jQuery.each(props,function(prop,value){var collection=(tweeners[prop]||[]).concat(tweeners["*"]),index=0,length=collection.length;for(;index-1,props={},curPosition={},curTop,curLeft;if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left;}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0;} if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset);} if(options.top!=null){props.top=(options.top-curOffset.top)+curTop;} if(options.left!=null){props.left=(options.left-curOffset.left)+curLeft;} if("using"in options){options.using.call(elem,props);}else{curElem.css(props);}}};jQuery.fn.extend({position:function(){if(!this[0]){return;} var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=rroot.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(jQuery.css(elem,"marginTop"))||0;offset.left-=parseFloat(jQuery.css(elem,"marginLeft"))||0;parentOffset.top+=parseFloat(jQuery.css(offsetParent[0],"borderTopWidth"))||0;parentOffset.left+=parseFloat(jQuery.css(offsetParent[0],"borderLeftWidth"))||0;return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||document.body;while(offsetParent&&(!rroot.test(offsetParent.nodeName)&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent;} return offsetParent||document.body;});}});jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top=/Y/.test(prop);jQuery.fn[method]=function(val){return jQuery.access(this,function(elem,method,val){var win=getWindow(elem);if(val===undefined){return win?(prop in win)?win[prop]:win.document.documentElement[method]:elem[method];} if(win){win.scrollTo(!top?val:jQuery(win).scrollLeft(),top?val:jQuery(win).scrollTop());}else{elem[method]=val;}},method,val,arguments.length,null);};});function getWindow(elem){return jQuery.isWindow(elem)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false;} jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");return jQuery.access(this,function(elem,type,value){var doc;if(jQuery.isWindow(elem)){return elem.document.documentElement["client"+name];} if(elem.nodeType===9){doc=elem.documentElement;return Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name]);} return value===undefined?jQuery.css(elem,type,value,extra):jQuery.style(elem,type,value,extra);},type,chainable?margin:undefined,chainable,null);};});});window.jQuery=window.$=jQuery;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return jQuery;});}})(window);$.noConflict();(function(undefined){var moment,VERSION="2.0.0",round=Math.round,i,languages={},hasModule=(typeof module!=='undefined'&&module.exports),aspNetJsonRegex=/^\/?Date\((\-?\d+)/i,formattingTokens=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,parseMultipleFormatChunker=/([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi,parseTokenOneOrTwoDigits=/\d\d?/,parseTokenOneToThreeDigits=/\d{1,3}/,parseTokenThreeDigits=/\d{3}/,parseTokenFourDigits=/\d{1,4}/,parseTokenSixDigits=/[+\-]?\d{1,6}/,parseTokenWord=/[0-9]*[a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF]+\s*?[\u0600-\u06FF]+/i,parseTokenTimezone=/Z|[\+\-]\d\d:?\d\d/i,parseTokenT=/T/i,parseTokenTimestampMs=/[\+\-]?\d+(\.\d{1,3})?/,isoRegex=/^\s*\d{4}-\d\d-\d\d((T| )(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/,isoFormat='YYYY-MM-DDTHH:mm:ssZ',isoTimes=[['HH:mm:ss.S',/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],['HH:mm:ss',/(T| )\d\d:\d\d:\d\d/],['HH:mm',/(T| )\d\d:\d\d/],['HH',/(T| )\d\d/]],parseTimezoneChunker=/([\+\-]|\d\d)/gi,proxyGettersAndSetters='Month|Date|Hours|Minutes|Seconds|Milliseconds'.split('|'),unitMillisecondFactors={'Milliseconds':1,'Seconds':1e3,'Minutes':6e4,'Hours':36e5,'Days':864e5,'Months':2592e6,'Years':31536e6},formatFunctions={},ordinalizeTokens='DDD w W M D d'.split(' '),paddedTokens='M D H h m s w W'.split(' '),formatTokenFunctions={M:function(){return this.month()+1;},MMM:function(format){return this.lang().monthsShort(this,format);},MMMM:function(format){return this.lang().months(this,format);},D:function(){return this.date();},DDD:function(){return this.dayOfYear();},d:function(){return this.day();},dd:function(format){return this.lang().weekdaysMin(this,format);},ddd:function(format){return this.lang().weekdaysShort(this,format);},dddd:function(format){return this.lang().weekdays(this,format);},w:function(){return this.week();},W:function(){return this.isoWeek();},YY:function(){return leftZeroFill(this.year()%100,2);},YYYY:function(){return leftZeroFill(this.year(),4);},YYYYY:function(){return leftZeroFill(this.year(),5);},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),true);},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),false);},H:function(){return this.hours();},h:function(){return this.hours()%12||12;},m:function(){return this.minutes();},s:function(){return this.seconds();},S:function(){return~~(this.milliseconds()/100);},SS:function(){return leftZeroFill(~~(this.milliseconds()/10),2);},SSS:function(){return leftZeroFill(this.milliseconds(),3);},Z:function(){var a=-this.zone(),b="+";if(a<0){a=-a;b="-";} return b+leftZeroFill(~~(a/60),2)+":"+leftZeroFill(~~a%60,2);},ZZ:function(){var a=-this.zone(),b="+";if(a<0){a=-a;b="-";} return b+leftZeroFill(~~(10*a/6),4);},X:function(){return this.unix();}};function padToken(func,count){return function(a){return leftZeroFill(func.call(this,a),count);};} function ordinalizeToken(func){return function(a){return this.lang().ordinal(func.call(this,a));};} while(ordinalizeTokens.length){i=ordinalizeTokens.pop();formatTokenFunctions[i+'o']=ordinalizeToken(formatTokenFunctions[i]);} while(paddedTokens.length){i=paddedTokens.pop();formatTokenFunctions[i+i]=padToken(formatTokenFunctions[i],2);} formatTokenFunctions.DDDD=padToken(formatTokenFunctions.DDD,3);function Language(){} function Moment(config){extend(this,config);} function Duration(duration){var data=this._data={},years=duration.years||duration.year||duration.y||0,months=duration.months||duration.month||duration.M||0,weeks=duration.weeks||duration.week||duration.w||0,days=duration.days||duration.day||duration.d||0,hours=duration.hours||duration.hour||duration.h||0,minutes=duration.minutes||duration.minute||duration.m||0,seconds=duration.seconds||duration.second||duration.s||0,milliseconds=duration.milliseconds||duration.millisecond||duration.ms||0;this._milliseconds=milliseconds+ seconds*1e3+ minutes*6e4+ hours*36e5;this._days=days+ weeks*7;this._months=months+ years*12;data.milliseconds=milliseconds%1000;seconds+=absRound(milliseconds/1000);data.seconds=seconds%60;minutes+=absRound(seconds/60);data.minutes=minutes%60;hours+=absRound(minutes/60);data.hours=hours%24;days+=absRound(hours/24);days+=weeks*7;data.days=days%30;months+=absRound(days/30);data.months=months%12;years+=absRound(months/12);data.years=years;} function extend(a,b){for(var i in b){if(b.hasOwnProperty(i)){a[i]=b[i];}} return a;} function absRound(number){if(number<0){return Math.ceil(number);}else{return Math.floor(number);}} function leftZeroFill(number,targetLength){var output=number+'';while(output.length11){return isLower?'pm':'PM';}else{return isLower?'am':'AM';}},_calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[last] dddd [at] LT',sameElse:'L'},calendar:function(key,mom){var output=this._calendar[key];return typeof output==='function'?output.apply(mom):output;},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return(typeof output==='function')?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number);},pastFuture:function(diff,output){var format=this._relativeTime[diff>0?'future':'past'];return typeof format==='function'?format(output):format.replace(/%s/i,output);},ordinal:function(number){return this._ordinal.replace("%d",number);},_ordinal:"%d",preparse:function(string){return string;},postformat:function(string){return string;},week:function(mom){return weekOfYear(mom,this._week.dow,this._week.doy);},_week:{dow:0,doy:6}};function loadLang(key,values){values.abbr=key;if(!languages[key]){languages[key]=new Language();} languages[key].set(values);return languages[key];} function getLangDefinition(key){if(!key){return moment.fn._lang;} if(!languages[key]&&hasModule){require('./lang/'+key);} return languages[key];} function removeFormattingTokens(input){if(input.match(/\[.*\]/)){return input.replace(/^\[|\]$/g,"");} return input.replace(/\\/g,"");} function makeFormatFunction(format){var array=format.match(formattingTokens),i,length;for(i=0,length=array.length;i68?1900:2000);break;case'YYYY':case'YYYYY':datePartArray[0]=~~input;break;case'a':case'A':config._isPm=((input+'').toLowerCase()==='pm');break;case'H':case'HH':case'h':case'hh':datePartArray[3]=~~input;break;case'm':case'mm':datePartArray[4]=~~input;break;case's':case'ss':datePartArray[5]=~~input;break;case'S':case'SS':case'SSS':datePartArray[6]=~~(('0.'+input)*1000);break;case'X':config._d=new Date(parseFloat(input)*1000);break;case'Z':case'ZZ':config._useUTC=true;a=(input+'').match(parseTimezoneChunker);if(a&&a[1]){config._tzh=~~a[1];} if(a&&a[2]){config._tzm=~~a[2];} if(a&&a[0]==='+'){config._tzh=-config._tzh;config._tzm=-config._tzm;} break;} if(input==null){config._isValid=false;}} function dateFromArray(config){var i,date,input=[];if(config._d){return;} for(i=0;i<7;i++){config._a[i]=input[i]=(config._a[i]==null)?(i===2?1:0):config._a[i];} input[3]+=config._tzh||0;input[4]+=config._tzm||0;date=new Date(0);if(config._useUTC){date.setUTCFullYear(input[0],input[1],input[2]);date.setUTCHours(input[3],input[4],input[5],input[6]);}else{date.setFullYear(input[0],input[1],input[2]);date.setHours(input[3],input[4],input[5],input[6]);} config._d=date;} function makeDateFromStringAndFormat(config){var tokens=config._f.match(formattingTokens),string=config._i,i,parsedInput;config._a=[];for(i=0;i0;args[4]=lang;return substituteTimeAgo.apply({},args);} function weekOfYear(mom,firstDayOfWeek,firstDayOfWeekOfYear){var end=firstDayOfWeekOfYear-firstDayOfWeek,daysToDayOfWeek=firstDayOfWeekOfYear-mom.day();if(daysToDayOfWeek>end){daysToDayOfWeek-=7;} if(daysToDayOfWeek+moment(input).startOf(units);},isBefore:function(input,units){units=typeof units!=='undefined'?units:'millisecond';return+this.clone().startOf(units)<+moment(input).startOf(units);},isSame:function(input,units){units=typeof units!=='undefined'?units:'millisecond';return+this.clone().startOf(units)===+moment(input).startOf(units);},zone:function(){return this._isUTC?0:this._d.getTimezoneOffset();},daysInMonth:function(){return moment.utc([this.year(),this.month()+1,0]).date();},dayOfYear:function(input){var dayOfYear=round((moment(this).startOf('day')-moment(this).startOf('year'))/864e5)+1;return input==null?dayOfYear:this.add("d",(input-dayOfYear));},isoWeek:function(input){var week=weekOfYear(this,1,4);return input==null?week:this.add("d",(input-week)*7);},week:function(input){var week=this.lang().week(this);return input==null?week:this.add("d",(input-week)*7);},lang:function(key){if(key===undefined){return this._lang;}else{this._lang=getLangDefinition(key);return this;}}};function makeGetterAndSetter(name,key){moment.fn[name]=moment.fn[name+'s']=function(input){var utc=this._isUTC?'UTC':'';if(input!=null){this._d['set'+utc+key](input);return this;}else{return this._d['get'+utc+key]();}};} for(i=0;i2;if(obj==null)obj=[];if(nativeReduce&&obj.reduce===nativeReduce){if(context)iterator=_.bind(iterator,context);return initial?obj.reduce(iterator,memo):obj.reduce(iterator);} each(obj,function(value,index,list){if(!initial){memo=value;initial=true;}else{memo=iterator.call(context,memo,value,index,list);}});if(!initial)throw new TypeError(reduceError);return memo;};_.reduceRight=_.foldr=function(obj,iterator,memo,context){var initial=arguments.length>2;if(obj==null)obj=[];if(nativeReduceRight&&obj.reduceRight===nativeReduceRight){if(context)iterator=_.bind(iterator,context);return initial?obj.reduceRight(iterator,memo):obj.reduceRight(iterator);} var length=obj.length;if(length!==+length){var keys=_.keys(obj);length=keys.length;} each(obj,function(value,index,list){index=keys?keys[--length]:--length;if(!initial){memo=obj[index];initial=true;}else{memo=iterator.call(context,memo,obj[index],index,list);}});if(!initial)throw new TypeError(reduceError);return memo;};_.find=_.detect=function(obj,iterator,context){var result;any(obj,function(value,index,list){if(iterator.call(context,value,index,list)){result=value;return true;}});return result;};_.filter=_.select=function(obj,iterator,context){var results=[];if(obj==null)return results;if(nativeFilter&&obj.filter===nativeFilter)return obj.filter(iterator,context);each(obj,function(value,index,list){if(iterator.call(context,value,index,list))results[results.length]=value;});return results;};_.reject=function(obj,iterator,context){return _.filter(obj,function(value,index,list){return!iterator.call(context,value,index,list);},context);};_.every=_.all=function(obj,iterator,context){iterator||(iterator=_.identity);var result=true;if(obj==null)return result;if(nativeEvery&&obj.every===nativeEvery)return obj.every(iterator,context);each(obj,function(value,index,list){if(!(result=result&&iterator.call(context,value,index,list)))return breaker;});return!!result;};var any=_.some=_.any=function(obj,iterator,context){iterator||(iterator=_.identity);var result=false;if(obj==null)return result;if(nativeSome&&obj.some===nativeSome)return obj.some(iterator,context);each(obj,function(value,index,list){if(result||(result=iterator.call(context,value,index,list)))return breaker;});return!!result;};_.contains=_.include=function(obj,target){if(obj==null)return false;if(nativeIndexOf&&obj.indexOf===nativeIndexOf)return obj.indexOf(target)!=-1;return any(obj,function(value){return value===target;});};_.invoke=function(obj,method){var args=slice.call(arguments,2);return _.map(obj,function(value){return(_.isFunction(method)?method:value[method]).apply(value,args);});};_.pluck=function(obj,key){return _.map(obj,function(value){return value[key];});};_.where=function(obj,attrs){if(_.isEmpty(attrs))return[];return _.filter(obj,function(value){for(var key in attrs){if(attrs[key]!==value[key])return false;} return true;});};_.max=function(obj,iterator,context){if(!iterator&&_.isArray(obj)&&obj[0]===+obj[0]&&obj.length<65535){return Math.max.apply(Math,obj);} if(!iterator&&_.isEmpty(obj))return-Infinity;var result={computed:-Infinity,value:-Infinity};each(obj,function(value,index,list){var computed=iterator?iterator.call(context,value,index,list):value;computed>=result.computed&&(result={value:value,computed:computed});});return result.value;};_.min=function(obj,iterator,context){if(!iterator&&_.isArray(obj)&&obj[0]===+obj[0]&&obj.length<65535){return Math.min.apply(Math,obj);} if(!iterator&&_.isEmpty(obj))return Infinity;var result={computed:Infinity,value:Infinity};each(obj,function(value,index,list){var computed=iterator?iterator.call(context,value,index,list):value;computedb||a===void 0)return 1;if(a>>1;iterator.call(context,array[mid])=0;});});};_.difference=function(array){var rest=concat.apply(ArrayProto,slice.call(arguments,1));return _.filter(array,function(value){return!_.contains(rest,value);});};_.zip=function(){var args=slice.call(arguments);var length=_.max(_.pluck(args,'length'));var results=new Array(length);for(var i=0;i=0;i--){args=[funcs[i].apply(this,args)];} return args[0];};};_.after=function(times,func){if(times<=0)return func();return function(){if(--times<1){return func.apply(this,arguments);}};};_.keys=nativeKeys||function(obj){if(obj!==Object(obj))throw new TypeError('Invalid object');var keys=[];for(var key in obj)if(_.has(obj,key))keys[keys.length]=key;return keys;};_.values=function(obj){var values=[];for(var key in obj)if(_.has(obj,key))values.push(obj[key]);return values;};_.pairs=function(obj){var pairs=[];for(var key in obj)if(_.has(obj,key))pairs.push([key,obj[key]]);return pairs;};_.invert=function(obj){var result={};for(var key in obj)if(_.has(obj,key))result[obj[key]]=key;return result;};_.functions=_.methods=function(obj){var names=[];for(var key in obj){if(_.isFunction(obj[key]))names.push(key);} return names.sort();};_.extend=function(obj){each(slice.call(arguments,1),function(source){if(source){for(var prop in source){obj[prop]=source[prop];}}});return obj;};_.pick=function(obj){var copy={};var keys=concat.apply(ArrayProto,slice.call(arguments,1));each(keys,function(key){if(key in obj)copy[key]=obj[key];});return copy;};_.omit=function(obj){var copy={};var keys=concat.apply(ArrayProto,slice.call(arguments,1));for(var key in obj){if(!_.contains(keys,key))copy[key]=obj[key];} return copy;};_.defaults=function(obj){each(slice.call(arguments,1),function(source){if(source){for(var prop in source){if(obj[prop]==null)obj[prop]=source[prop];}}});return obj;};_.clone=function(obj){if(!_.isObject(obj))return obj;return _.isArray(obj)?obj.slice():_.extend({},obj);};_.tap=function(obj,interceptor){interceptor(obj);return obj;};var eq=function(a,b,aStack,bStack){if(a===b)return a!==0||1/a==1/b;if(a==null||b==null)return a===b;if(a instanceof _)a=a._wrapped;if(b instanceof _)b=b._wrapped;var className=toString.call(a);if(className!=toString.call(b))return false;switch(className){case'[object String]':return a==String(b);case'[object Number]':return a!=+a?b!=+b:(a==0?1/a==1/b:a==+b);case'[object Date]':case'[object Boolean]':return+a==+b;case'[object RegExp]':return a.source==b.source&&a.global==b.global&&a.multiline==b.multiline&&a.ignoreCase==b.ignoreCase;} if(typeof a!='object'||typeof b!='object')return false;var length=aStack.length;while(length--){if(aStack[length]==a)return bStack[length]==b;} aStack.push(a);bStack.push(b);var size=0,result=true;if(className=='[object Array]'){size=a.length;result=size==b.length;if(result){while(size--){if(!(result=eq(a[size],b[size],aStack,bStack)))break;}}}else{var aCtor=a.constructor,bCtor=b.constructor;if(aCtor!==bCtor&&!(_.isFunction(aCtor)&&(aCtor instanceof aCtor)&&_.isFunction(bCtor)&&(bCtor instanceof bCtor))){return false;} for(var key in a){if(_.has(a,key)){size++;if(!(result=_.has(b,key)&&eq(a[key],b[key],aStack,bStack)))break;}} if(result){for(key in b){if(_.has(b,key)&&!(size--))break;} result=!size;}} aStack.pop();bStack.pop();return result;};_.isEqual=function(a,b){return eq(a,b,[],[]);};_.isEmpty=function(obj){if(obj==null)return true;if(_.isArray(obj)||_.isString(obj))return obj.length===0;for(var key in obj)if(_.has(obj,key))return false;return true;};_.isElement=function(obj){return!!(obj&&obj.nodeType===1);};_.isArray=nativeIsArray||function(obj){return toString.call(obj)=='[object Array]';};_.isObject=function(obj){return obj===Object(obj);};each(['Arguments','Function','String','Number','Date','RegExp'],function(name){_['is'+name]=function(obj){return toString.call(obj)=='[object '+name+']';};});if(!_.isArguments(arguments)){_.isArguments=function(obj){return!!(obj&&_.has(obj,'callee'));};} if(typeof(/./)!=='function'){_.isFunction=function(obj){return typeof obj==='function';};} _.isFinite=function(obj){return isFinite(obj)&&!isNaN(parseFloat(obj));};_.isNaN=function(obj){return _.isNumber(obj)&&obj!=+obj;};_.isBoolean=function(obj){return obj===true||obj===false||toString.call(obj)=='[object Boolean]';};_.isNull=function(obj){return obj===null;};_.isUndefined=function(obj){return obj===void 0;};_.has=function(obj,key){return hasOwnProperty.call(obj,key);};_.noConflict=function(){root._=previousUnderscore;return this;};_.identity=function(value){return value;};_.times=function(n,iterator,context){var accum=Array(n);for(var i=0;i':'>','"':'"',"'":''','/':'/'}};entityMap.unescape=_.invert(entityMap.escape);var entityRegexes={escape:new RegExp('['+_.keys(entityMap.escape).join('')+']','g'),unescape:new RegExp('('+_.keys(entityMap.unescape).join('|')+')','g')};_.each(['escape','unescape'],function(method){_[method]=function(string){if(string==null)return'';return(''+string).replace(entityRegexes[method],function(match){return entityMap[method][match];});};});_.result=function(object,property){if(object==null)return null;var value=object[property];return _.isFunction(value)?value.call(object):value;};_.mixin=function(obj){each(_.functions(obj),function(name){var func=_[name]=obj[name];_.prototype[name]=function(){var args=[this._wrapped];push.apply(args,arguments);return result.call(this,func.apply(_,args));};});};var idCounter=0;_.uniqueId=function(prefix){var id=++idCounter+"";return prefix?prefix+id:id;};_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var noMatch=/(.)^/;var escapes={"'":"'",'\\':'\\','\r':'r','\n':'n','\t':'t','\u2028':'u2028','\u2029':'u2029'};var escaper=/\\|'|\r|\n|\t|\u2028|\u2029/g;_.template=function(text,data,settings){settings=_.defaults({},settings,_.templateSettings);var matcher=new RegExp([(settings.escape||noMatch).source,(settings.interpolate||noMatch).source,(settings.evaluate||noMatch).source].join('|')+'|$','g');var index=0;var source="__p+='";text.replace(matcher,function(match,escape,interpolate,evaluate,offset){source+=text.slice(index,offset).replace(escaper,function(match){return'\\'+escapes[match];});if(escape){source+="'+\n((__t=("+escape+"))==null?'':_.escape(__t))+\n'";} if(interpolate){source+="'+\n((__t=("+interpolate+"))==null?'':__t)+\n'";} if(evaluate){source+="';\n"+evaluate+"\n__p+='";} index=offset+match.length;return match;});source+="';\n";if(!settings.variable)source='with(obj||{}){\n'+source+'}\n';source="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+ source+"return __p;\n";try{var render=new Function(settings.variable||'obj','_',source);}catch(e){e.source=source;throw e;} if(data)return render(data,_);var template=function(data){return render.call(this,data,_);};template.source='function('+(settings.variable||'obj')+'){\n'+source+'}';return template;};_.chain=function(obj){return _(obj).chain();};var result=function(obj){return this._chain?_(obj).chain():obj;};_.mixin(_);each(['pop','push','reverse','shift','sort','splice','unshift'],function(name){var method=ArrayProto[name];_.prototype[name]=function(){var obj=this._wrapped;method.apply(obj,arguments);if((name=='shift'||name=='splice')&&obj.length===0)delete obj[0];return result.call(this,obj);};});each(['concat','join','slice'],function(name){var method=ArrayProto[name];_.prototype[name]=function(){return result.call(this,method.apply(this._wrapped,arguments));};});_.extend(_.prototype,{chain:function(){this._chain=true;return this;},value:function(){return this._wrapped;}});}).call(this);!function(root,String){'use strict';var nativeTrim=String.prototype.trim;var nativeTrimRight=String.prototype.trimRight;var nativeTrimLeft=String.prototype.trimLeft;var parseNumber=function(source){return source*1||0;};var strRepeat=function(str,qty){if(qty<1)return'';var result='';while(qty>0){if(qty&1)result+=str;qty>>=1,str+=str;} return result;};var slice=[].slice;var defaultToWhiteSpace=function(characters){if(characters==null) return'\\s';else if(characters.source) return characters.source;else return'['+_s.escapeRegExp(characters)+']';};var escapeChars={lt:'<',gt:'>',quot:'"',apos:"'",amp:'&'};var reversedEscapeChars={};for(var key in escapeChars){reversedEscapeChars[escapeChars[key]]=key;} var sprintf=(function(){function get_type(variable){return Object.prototype.toString.call(variable).slice(8,-1).toLowerCase();} var str_repeat=strRepeat;var str_format=function(){if(!str_format.cache.hasOwnProperty(arguments[0])){str_format.cache[arguments[0]]=str_format.parse(arguments[0]);} return str_format.format.call(null,str_format.cache[arguments[0]],arguments);};str_format.format=function(parse_tree,argv){var cursor=1,tree_length=parse_tree.length,node_type='',arg,output=[],i,k,match,pad,pad_character,pad_length;for(i=0;i=0?'+'+arg:arg);pad_character=match[4]?match[4]=='0'?'0':match[4].charAt(1):' ';pad_length=match[6]-String(arg).length;pad=match[6]?str_repeat(pad_character,pad_length):'';output.push(match[5]?arg+pad:pad+arg);}} return output.join('');};str_format.cache={};str_format.parse=function(fmt){var _fmt=fmt,match=[],parse_tree=[],arg_names=0;while(_fmt){if((match=/^[^\x25]+/.exec(_fmt))!==null){parse_tree.push(match[0]);} else if((match=/^\x25{2}/.exec(_fmt))!==null){parse_tree.push('%');} else if((match=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt))!==null){if(match[2]){arg_names|=1;var field_list=[],replacement_field=match[2],field_match=[];if((field_match=/^([a-z_][a-z_\d]*)/i.exec(replacement_field))!==null){field_list.push(field_match[1]);while((replacement_field=replacement_field.substring(field_match[0].length))!==''){if((field_match=/^\.([a-z_][a-z_\d]*)/i.exec(replacement_field))!==null){field_list.push(field_match[1]);} else if((field_match=/^\[(\d+)\]/.exec(replacement_field))!==null){field_list.push(field_match[1]);} else{throw new Error('[_.sprintf] huh?');}}} else{throw new Error('[_.sprintf] huh?');} match[2]=field_list;} else{arg_names|=2;} if(arg_names===3){throw new Error('[_.sprintf] mixing positional and named placeholders is not (yet) supported');} parse_tree.push(match);} else{throw new Error('[_.sprintf] huh?');} _fmt=_fmt.substring(match[0].length);} return parse_tree;};return str_format;})();var _s={VERSION:'2.3.0',isBlank:function(str){if(str==null)str='';return(/^\s*$/).test(str);},stripTags:function(str){if(str==null)return'';return String(str).replace(/<\/?[^>]+>/g,'');},capitalize:function(str){str=str==null?'':String(str);return str.charAt(0).toUpperCase()+str.slice(1);},chop:function(str,step){if(str==null)return[];str=String(str);step=~~step;return step>0?str.match(new RegExp('.{1,'+step+'}','g')):[str];},clean:function(str){return _s.strip(str).replace(/\s+/g,' ');},count:function(str,substr){if(str==null||substr==null)return 0;return String(str).split(substr).length-1;},chars:function(str){if(str==null)return[];return String(str).split('');},swapCase:function(str){if(str==null)return'';return String(str).replace(/\S/g,function(c){return c===c.toUpperCase()?c.toLowerCase():c.toUpperCase();});},escapeHTML:function(str){if(str==null)return'';return String(str).replace(/[&<>"']/g,function(m){return'&'+reversedEscapeChars[m]+';';});},unescapeHTML:function(str){if(str==null)return'';return String(str).replace(/\&([^;]+);/g,function(entity,entityCode){var match;if(entityCode in escapeChars){return escapeChars[entityCode];}else if(match=entityCode.match(/^#x([\da-fA-F]+)$/)){return String.fromCharCode(parseInt(match[1],16));}else if(match=entityCode.match(/^#(\d+)$/)){return String.fromCharCode(~~match[1]);}else{return entity;}});},escapeRegExp:function(str){if(str==null)return'';return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g,'\\$1');},splice:function(str,i,howmany,substr){var arr=_s.chars(str);arr.splice(~~i,~~howmany,substr);return arr.join('');},insert:function(str,i,substr){return _s.splice(str,i,0,substr);},include:function(str,needle){if(needle==='')return true;if(str==null)return false;return String(str).indexOf(needle)!==-1;},join:function(){var args=slice.call(arguments),separator=args.shift();if(separator==null)separator='';return args.join(separator);},lines:function(str){if(str==null)return[];return String(str).split("\n");},reverse:function(str){return _s.chars(str).reverse().join('');},startsWith:function(str,starts){if(starts==='')return true;if(str==null||starts==null)return false;str=String(str);starts=String(starts);return str.length>=starts.length&&str.slice(0,starts.length)===starts;},endsWith:function(str,ends){if(ends==='')return true;if(str==null||ends==null)return false;str=String(str);ends=String(ends);return str.length>=ends.length&&str.slice(str.length-ends.length)===ends;},succ:function(str){if(str==null)return'';str=String(str);return str.slice(0,-1)+String.fromCharCode(str.charCodeAt(str.length-1)+1);},titleize:function(str){if(str==null)return'';return String(str).replace(/(?:^|\s)\S/g,function(c){return c.toUpperCase();});},camelize:function(str){return _s.trim(str).replace(/[-_\s]+(.)?/g,function(match,c){return c.toUpperCase();});},underscored:function(str){return _s.trim(str).replace(/([a-z\d])([A-Z]+)/g,'$1_$2').replace(/[-\s]+/g,'_').toLowerCase();},dasherize:function(str){return _s.trim(str).replace(/([A-Z])/g,'-$1').replace(/[-_\s]+/g,'-').toLowerCase();},classify:function(str){return _s.titleize(String(str).replace(/_/g,' ')).replace(/\s/g,'');},humanize:function(str){return _s.capitalize(_s.underscored(str).replace(/_id$/,'').replace(/_/g,' '));},trim:function(str,characters){if(str==null)return'';if(!characters&&nativeTrim)return nativeTrim.call(str);characters=defaultToWhiteSpace(characters);return String(str).replace(new RegExp('\^'+characters+'+|'+characters+'+$','g'),'');},ltrim:function(str,characters){if(str==null)return'';if(!characters&&nativeTrimLeft)return nativeTrimLeft.call(str);characters=defaultToWhiteSpace(characters);return String(str).replace(new RegExp('^'+characters+'+'),'');},rtrim:function(str,characters){if(str==null)return'';if(!characters&&nativeTrimRight)return nativeTrimRight.call(str);characters=defaultToWhiteSpace(characters);return String(str).replace(new RegExp(characters+'+$'),'');},truncate:function(str,length,truncateStr){if(str==null)return'';str=String(str);truncateStr=truncateStr||'...';length=~~length;return str.length>length?str.slice(0,length)+truncateStr:str;},prune:function(str,length,pruneStr){if(str==null)return'';str=String(str);length=~~length;pruneStr=pruneStr!=null?String(pruneStr):'...';if(str.length<=length)return str;var tmpl=function(c){return c.toUpperCase()!==c.toLowerCase()?'A':' ';},template=str.slice(0,length+1).replace(/.(?=\W*\w*$)/g,tmpl);if(template.slice(template.length-2).match(/\w\w/)) template=template.replace(/\s*\S+$/,'');else template=_s.rtrim(template.slice(0,template.length-1));return(template+pruneStr).length>str.length?str:str.slice(0,template.length)+pruneStr;},words:function(str,delimiter){if(_s.isBlank(str))return[];return _s.trim(str,delimiter).split(delimiter||/\s+/);},pad:function(str,length,padStr,type){str=str==null?'':String(str);length=~~length;var padlen=0;if(!padStr) padStr=' ';else if(padStr.length>1) padStr=padStr.charAt(0);switch(type){case'right':padlen=length-str.length;return str+strRepeat(padStr,padlen);case'both':padlen=length-str.length;return strRepeat(padStr,Math.ceil(padlen/2))+str +strRepeat(padStr,Math.floor(padlen/2));default:padlen=length-str.length;return strRepeat(padStr,padlen)+str;}},lpad:function(str,length,padStr){return _s.pad(str,length,padStr);},rpad:function(str,length,padStr){return _s.pad(str,length,padStr,'right');},lrpad:function(str,length,padStr){return _s.pad(str,length,padStr,'both');},sprintf:sprintf,vsprintf:function(fmt,argv){argv.unshift(fmt);return sprintf.apply(null,argv);},toNumber:function(str,decimals){if(str==null||str=='')return 0;str=String(str);var num=parseNumber(parseNumber(str).toFixed(~~decimals));return num===0&&!str.match(/^0+$/)?Number.NaN:num;},numberFormat:function(number,dec,dsep,tsep){if(isNaN(number)||number==null)return'';number=number.toFixed(~~dec);tsep=tsep||',';var parts=number.split('.'),fnums=parts[0],decimals=parts[1]?(dsep||'.')+parts[1]:'';return fnums.replace(/(\d)(?=(?:\d{3})+$)/g,'$1'+tsep)+decimals;},strRight:function(str,sep){if(str==null)return'';str=String(str);sep=sep!=null?String(sep):sep;var pos=!sep?-1:str.indexOf(sep);return~pos?str.slice(pos+sep.length,str.length):str;},strRightBack:function(str,sep){if(str==null)return'';str=String(str);sep=sep!=null?String(sep):sep;var pos=!sep?-1:str.lastIndexOf(sep);return~pos?str.slice(pos+sep.length,str.length):str;},strLeft:function(str,sep){if(str==null)return'';str=String(str);sep=sep!=null?String(sep):sep;var pos=!sep?-1:str.indexOf(sep);return~pos?str.slice(0,pos):str;},strLeftBack:function(str,sep){if(str==null)return'';str+='';sep=sep!=null?''+sep:sep;var pos=str.lastIndexOf(sep);return~pos?str.slice(0,pos):str;},toSentence:function(array,separator,lastSeparator,serial){separator=separator||', ' lastSeparator=lastSeparator||' and ' var a=array.slice(),lastMember=a.pop();if(array.length>2&&serial)lastSeparator=_s.rtrim(separator)+lastSeparator;return a.length?a.join(separator)+lastSeparator+lastMember:lastMember;},toSentenceSerial:function(){var args=slice.call(arguments);args[3]=true;return _s.toSentence.apply(_s,args);},slugify:function(str){if(str==null)return'';var from="ąà áäâãåæćęèéëêìíïîłńòóöôõøùúüûñçżź",to="aaaaaaaaceeeeeiiiilnoooooouuuunczz",regex=new RegExp(defaultToWhiteSpace(from),'g');str=String(str).toLowerCase().replace(regex,function(c){var index=from.indexOf(c);return to.charAt(index)||'-';});return _s.dasherize(str.replace(/[^\w\s-]/g,''));},surround:function(str,wrapper){return[wrapper,str,wrapper].join('');},quote:function(str){return _s.surround(str,'"');},exports:function(){var result={};for(var prop in this){if(!this.hasOwnProperty(prop)||prop.match(/^(?:include|contains|reverse)$/))continue;result[prop]=this[prop];} return result;},repeat:function(str,qty,separator){if(str==null)return'';qty=~~qty;if(separator==null)return strRepeat(String(str),qty);for(var repeat=[];qty>0;repeat[--qty]=str){} return repeat.join(separator);},levenshtein:function(str1,str2){if(str1==null&&str2==null)return 0;if(str1==null)return String(str2).length;if(str2==null)return String(str1).length;str1=String(str1);str2=String(str2);var current=[],prev,value;for(var i=0;i<=str2.length;i++) for(var j=0;j<=str1.length;j++){if(i&&j) if(str1.charAt(j-1)===str2.charAt(i-1)) value=prev;else value=Math.min(current[j],current[j-1],prev)+1;else value=i+j;prev=current[j];current[j]=value;} return current.pop();}};_s.strip=_s.trim;_s.lstrip=_s.ltrim;_s.rstrip=_s.rtrim;_s.center=_s.lrpad;_s.rjust=_s.lpad;_s.ljust=_s.rpad;_s.contains=_s.include;_s.q=_s.quote;if(typeof exports!=='undefined'){if(typeof module!=='undefined'&&module.exports){module.exports=_s;} exports._s=_s;}else if(typeof define==='function'&&define.amd){define('underscore.string',[],function(){return _s;});}else{root._=root._||{};root._.string=root._.str=_s;}}(this,String);var API=new Class({Implements:[Options,Events],initialize:function(options){this.setOptions(options);},request:function(type,path,data,onSuccessCallback,onFailureCallback){var req=new Request.JSON({url:'/api-proxy'+path,data:data,onSuccess:function(json){onSuccessCallback(json);}.bind(this),onFailure:function(){onFailureCallback();}.bind(this)})[type]();},get:function(options){this.request('get',options.path,options.data,options.onSuccess,options.onFailure);},post:function(options){this.request('post',options.path,options.data,options.onSuccess,options.onFailure);}});API=new API();var APIService=new Class({initialize:function(){if(typeof API==='function'){throw'Can\'t instantiate API service method when API does not exist.';}}});window.addEvent('domready',function(){(function(){this.MooTools={version:'1.4.5',build:'ab8ea8824dc3b24b6666867a2c4ed58ebb762cf0'};var typeOf=this.typeOf=function(item){if(item==null)return'null';if(item.$family!=null)return item.$family();if(item.nodeName){if(item.nodeType==1)return'element';if(item.nodeType==3)return(/\S/).test(item.nodeValue)?'textnode':'whitespace';}else if(typeof item.length=='number'){if(item.callee)return'arguments';if('item'in item)return'collection';} return typeof item;};var instanceOf=this.instanceOf=function(item,object){if(item==null)return false;var constructor=item.$constructor||item.constructor;while(constructor){if(constructor===object)return true;constructor=constructor.parent;} if(!item.hasOwnProperty)return false;return item instanceof object;};var Function=this.Function;var enumerables=true;for(var i in{toString:1})enumerables=null;if(enumerables)enumerables=['hasOwnProperty','valueOf','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','constructor'];Function.prototype.overloadSetter=function(usePlural){var self=this;return function(a,b){if(a==null)return this;if(usePlural||typeof a!='string'){for(var k in a)self.call(this,k,a[k]);if(enumerables)for(var i=enumerables.length;i--;){k=enumerables[i];if(a.hasOwnProperty(k))self.call(this,k,a[k]);}}else{self.call(this,a,b);} return this;};};Function.prototype.overloadGetter=function(usePlural){var self=this;return function(a){var args,result;if(typeof a!='string')args=a;else if(arguments.length>1)args=arguments;else if(usePlural)args=[a];if(args){result={};for(var i=0;i>>0;i>>0;i>>0;for(var i=(from<0)?Math.max(0,length+from):from||0;i>>0,results=Array(length);for(var i=0;i>>0;i-1:String(this).indexOf(string)>-1;},trim:function(){return String(this).replace(/^\s+|\s+$/g,'');},clean:function(){return String(this).replace(/\s+/g,' ').trim();},camelCase:function(){return String(this).replace(/-\D/g,function(match){return match.charAt(1).toUpperCase();});},hyphenate:function(){return String(this).replace(/[A-Z]/g,function(match){return('-'+match.charAt(0).toLowerCase());});},capitalize:function(){return String(this).replace(/\b[a-z]/g,function(match){return match.toUpperCase();});},escapeRegExp:function(){return String(this).replace(/([-.*+?^${}()|[\]\/\\])/g,'\\$1');},toInt:function(base){return parseInt(this,base||10);},toFloat:function(){return parseFloat(this);},hexToRgb:function(array){var hex=String(this).match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(hex)?hex.slice(1).hexToRgb(array):null;},rgbToHex:function(array){var rgb=String(this).match(/\d{1,3}/g);return(rgb)?rgb.rgbToHex(array):null;},substitute:function(object,regexp){return String(this).replace(regexp||(/\\?\{([^{}]+)\}/g),function(match,name){if(match.charAt(0)=='\\')return match.slice(1);return(object[name]!=null)?object[name]:'';});}});Number.implement({limit:function(min,max){return Math.min(max,Math.max(min,this));},round:function(precision){precision=Math.pow(10,precision||0).toFixed(precision<0?-precision:0);return Math.round(this*precision)/precision;},times:function(fn,bind){for(var i=0;i1?Array.slice(arguments,1):null,F=function(){};var bound=function(){var context=that,length=arguments.length;if(this instanceof bound){F.prototype=self.prototype;context=new F;} var result=(!args&&!length)?self.call(context):self.apply(context,args&&length?args.concat(Array.slice(arguments)):args||arguments);return context==that?result:context;};return bound;},pass:function(args,bind){var self=this;if(args!=null)args=Array.from(args);return function(){return self.apply(bind,args||arguments);};},delay:function(delay,bind,args){return setTimeout(this.pass((args==null?[]:args),bind),delay);},periodical:function(periodical,bind,args){return setInterval(this.pass((args==null?[]:args),bind),periodical);}});delete Function.prototype.bind;Function.implement({create:function(options){var self=this;options=options||{};return function(event){var args=options.arguments;args=(args!=null)?Array.from(args):Array.slice(arguments,(options.event)?1:0);if(options.event)args=[event||window.event].extend(args);var returns=function(){return self.apply(options.bind||null,args);};if(options.delay)return setTimeout(returns,options.delay);if(options.periodical)return setInterval(returns,options.periodical);if(options.attempt)return Function.attempt(returns);return returns();};},bind:function(bind,args){var self=this;if(args!=null)args=Array.from(args);return function(){return self.apply(bind,args||arguments);};},bindWithEvent:function(bind,args){var self=this;if(args!=null)args=Array.from(args);return function(event){return self.apply(bind,(args==null)?arguments:[event].concat(args));};},run:function(args,bind){return this.apply(bind,Array.from(args));}});if(Object.create==Function.prototype.create)Object.create=null;var $try=Function.attempt;(function(){var hasOwnProperty=Object.prototype.hasOwnProperty;Object.extend({subset:function(object,keys){var results={};for(var i=0,l=keys.length;i]*>([\s\S]*?)<\/script>/gi,function(all,code){scripts+=code+'\n';return'';});if(exec===true)Browser.exec(scripts);else if(typeOf(exec)=='function')exec(scripts,text);return text;});Browser.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(name,method){window[name]=method;});this.Document=document.$constructor=new Type('Document',function(){});document.$family=Function.from('document').hide();Document.mirror(function(name,method){document[name]=method;});document.html=document.documentElement;if(!document.head)document.head=document.getElementsByTagName('head')[0];if(document.execCommand)try{document.execCommand("BackgroundImageCache",false,true);}catch(e){} if(this.attachEvent&&!this.addEventListener){var unloadEvent=function(){this.detachEvent('onunload',unloadEvent);document.head=document.html=document.window=null;};this.attachEvent('onunload',unloadEvent);} var arrayFrom=Array.from;try{arrayFrom(document.html.childNodes);}catch(e){Array.from=function(item){if(typeof item!='string'&&Type.isEnumerable(item)&&typeOf(item)!='array'){var i=item.length,array=new Array(i);while(i--)array[i]=item[i];return array;} return arrayFrom(item);};var prototype=Array.prototype,slice=prototype.slice;['pop','push','reverse','shift','sort','splice','unshift','concat','join','slice'].each(function(name){var method=prototype[name];Array[name]=function(item){return method.apply(Array.from(item),slice.call(arguments,1));};});} if(Browser.Platform.ios)Browser.Platform.ipod=true;Browser.Engine={};var setEngine=function(name,version){Browser.Engine.name=name;Browser.Engine[name+version]=true;Browser.Engine.version=version;};if(Browser.ie){Browser.Engine.trident=true;switch(Browser.version){case 6:setEngine('trident',4);break;case 7:setEngine('trident',5);break;case 8:setEngine('trident',6);}} if(Browser.firefox){Browser.Engine.gecko=true;if(Browser.version>=3)setEngine('gecko',19);else setEngine('gecko',18);} if(Browser.safari||Browser.chrome){Browser.Engine.webkit=true;switch(Browser.version){case 2:setEngine('webkit',419);break;case 3:setEngine('webkit',420);break;case 4:setEngine('webkit',525);}} if(Browser.opera){Browser.Engine.presto=true;if(Browser.version>=9.6)setEngine('presto',960);else if(Browser.version>=9.5)setEngine('presto',950);else setEngine('presto',925);} if(Browser.name=='unknown'){switch((ua.match(/(?:webkit|khtml|gecko)/)||[])[0]){case'webkit':case'khtml':Browser.Engine.webkit=true;break;case'gecko':Browser.Engine.gecko=true;}} this.$exec=Browser.exec;})();(function(){var _keys={};var DOMEvent=this.DOMEvent=new Type('DOMEvent',function(event,win){if(!win)win=window;event=event||win.event;if(event.$extended)return event;this.event=event;this.$extended=true;this.shift=event.shiftKey;this.control=event.ctrlKey;this.alt=event.altKey;this.meta=event.metaKey;var type=this.type=event.type;var target=event.target||event.srcElement;while(target&&target.nodeType==3)target=target.parentNode;this.target=document.id(target);if(type.indexOf('key')==0){var code=this.code=(event.which||event.keyCode);this.key=_keys[code]||Object.keyOf(Event.Keys,code);if(type=='keydown'){if(code>111&&code<124)this.key='f'+(code-111);else if(code>95&&code<106)this.key=code-96;} if(this.key==null)this.key=String.fromCharCode(code).toLowerCase();}else if(type=='click'||type=='dblclick'||type=='contextmenu'||type=='DOMMouseScroll'||type.indexOf('mouse')==0){var doc=win.document;doc=(!doc.compatMode||doc.compatMode=='CSS1Compat')?doc.html:doc.body;this.page={x:(event.pageX!=null)?event.pageX:event.clientX+doc.scrollLeft,y:(event.pageY!=null)?event.pageY:event.clientY+doc.scrollTop};this.client={x:(event.pageX!=null)?event.pageX-win.pageXOffset:event.clientX,y:(event.pageY!=null)?event.pageY-win.pageYOffset:event.clientY};if(type=='DOMMouseScroll'||type=='mousewheel') this.wheel=(event.wheelDelta)?event.wheelDelta/120:-(event.detail||0)/3;this.rightClick=(event.which==3||event.button==2);if(type=='mouseover'||type=='mouseout'){var related=event.relatedTarget||event[(type=='mouseover'?'from':'to')+'Element'];while(related&&related.nodeType==3)related=related.parentNode;this.relatedTarget=document.id(related);}}else if(type.indexOf('touch')==0||type.indexOf('gesture')==0){this.rotation=event.rotation;this.scale=event.scale;this.targetTouches=event.targetTouches;this.changedTouches=event.changedTouches;var touches=this.touches=event.touches;if(touches&&touches[0]){var touch=touches[0];this.page={x:touch.pageX,y:touch.pageY};this.client={x:touch.clientX,y:touch.clientY};}} if(!this.client)this.client={};if(!this.page)this.page={};});DOMEvent.implement({stop:function(){return this.preventDefault().stopPropagation();},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;}});DOMEvent.defineKey=function(code,key){_keys[code]=key;return this;};DOMEvent.defineKeys=DOMEvent.defineKey.overloadSetter(true);DOMEvent.defineKeys({'38':'up','40':'down','37':'left','39':'right','27':'esc','32':'space','8':'backspace','9':'tab','46':'delete','13':'enter'});})();var Event=DOMEvent;Event.Keys={};Event.Keys=new Hash(Event.Keys);(function(){var Class=this.Class=new Type('Class',function(params){if(instanceOf(params,Function))params={initialize:params};var newClass=function(){reset(this);if(newClass.$prototyping)return this;this.$caller=null;var value=(this.initialize)?this.initialize.apply(this,arguments):this;this.$caller=this.caller=null;return value;}.extend(this).implement(params);newClass.$constructor=Class;newClass.prototype.$constructor=newClass;newClass.prototype.parent=parent;return newClass;});var parent=function(){if(!this.$caller)throw new Error('The method "parent" cannot be called.');var name=this.$caller.$name,parent=this.$caller.$owner.parent,previous=(parent)?parent.prototype[name]:null;if(!previous)throw new Error('The method "'+name+'" has no parent.');return previous.apply(this,arguments);};var reset=function(object){for(var key in object){var value=object[key];switch(typeOf(value)){case'object':var F=function(){};F.prototype=value;object[key]=reset(new F);break;case'array':object[key]=value.clone();break;}} return object;};var wrap=function(self,key,method){if(method.$origin)method=method.$origin;var wrapper=function(){if(method.$protected&&this.$caller==null)throw new Error('The method "'+key+'" cannot be called.');var caller=this.caller,current=this.$caller;this.caller=current;this.$caller=wrapper;var result=method.apply(this,arguments);this.$caller=current;this.caller=caller;return result;}.extend({$owner:self,$origin:method,$name:key});return wrapper;};var implement=function(key,value,retain){if(Class.Mutators.hasOwnProperty(key)){value=Class.Mutators[key].call(this,value);if(value==null)return this;} if(typeOf(value)=='function'){if(value.$hidden)return this;this.prototype[key]=(retain)?value:wrap(this,key,value);}else{Object.merge(this.prototype,key,value);} return this;};var getInstance=function(klass){klass.$prototyping=true;var proto=new klass;delete klass.$prototyping;return proto;};Class.implement('implement',implement.overloadSetter());Class.Mutators={Extends:function(parent){this.parent=parent;this.prototype=getInstance(parent);},Implements:function(items){Array.from(items).each(function(item){var instance=new item;for(var key in instance)implement.call(this,key,instance[key],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 removeOn=function(string){return string.replace(/^on([A-Z])/,function(full,first){return first.toLowerCase();});};this.Events=new Class({$events:{},addEvent:function(type,fn,internal){type=removeOn(type);if(fn==$empty)return this;this.$events[type]=(this.$events[type]||[]).include(fn);if(internal)fn.internal=true;return this;},addEvents:function(events){for(var type in events)this.addEvent(type,events[type]);return this;},fireEvent:function(type,args,delay){type=removeOn(type);var events=this.$events[type];if(!events)return this;args=Array.from(args);events.each(function(fn){if(delay)fn.delay(delay,this,args);else fn.apply(this,args);},this);return this;},removeEvent:function(type,fn){type=removeOn(type);var events=this.$events[type];if(events&&!fn.internal){var index=events.indexOf(fn);if(index!=-1)delete events[index];} return this;},removeEvents:function(events){var type;if(typeOf(events)=='object'){for(type in events)this.removeEvent(type,events[type]);return this;} if(events)events=removeOn(events);for(type in this.$events){if(events&&events!=type)continue;var fns=this.$events[type];for(var i=fns.length;i--;)if(i in fns){this.removeEvent(type,fns[i]);}} return this;}});this.Options=new Class({setOptions:function(){var options=this.options=Object.merge.apply(null,[{},this.options].append(arguments));if(this.addEvent)for(var option in options){if(typeOf(options[option])!='function'||!(/^on[A-Z]/).test(option))continue;this.addEvent(option,options[option]);delete options[option];} return this;}});})();;(function(){var parsed,separatorIndex,combinatorIndex,reversed,cache={},reverseCache={},reUnescape=/\\/g;var parse=function(expression,isReversed){if(expression==null)return null;if(expression.Slick===true)return expression;expression=(''+expression).replace(/^\s+|\s+$/g,'');reversed=!!isReversed;var currentCache=(reversed)?reverseCache:cache;if(currentCache[expression])return currentCache[expression];parsed={Slick:true,expressions:[],raw:expression,reverse:function(){return parse(this.raw,true);}};separatorIndex=-1;while(expression!=(expression=expression.replace(regexp,parser)));parsed.length=parsed.expressions.length;return currentCache[parsed.raw]=(reversed)?reverse(parsed):parsed;};var reverseCombinator=function(combinator){if(combinator==='!')return' ';else if(combinator===' ')return'!';else if((/^!/).test(combinator))return combinator.replace(/^!/,'');else return'!'+combinator;};var reverse=function(expression){var expressions=expression.expressions;for(var i=0;i+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(//,'['+escapeRegExp(">+~`!@$%^&={}\\;/g,'(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])').replace(//g,'(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])'));function parser(rawMatch,separator,combinator,combinatorChildren,tagName,id,className,attributeKey,attributeOperator,attributeQuote,attributeValue,pseudoMarker,pseudoClass,pseudoQuote,pseudoClassQuotedValue,pseudoClassValue){if(separator||separatorIndex===-1){parsed.expressions[++separatorIndex]=[];combinatorIndex=-1;if(separator)return'';} if(combinator||combinatorChildren||combinatorIndex===-1){combinator=combinator||' ';var currentSeparator=parsed.expressions[separatorIndex];if(reversed&¤tSeparator[combinatorIndex]) currentSeparator[combinatorIndex].reverseCombinator=reverseCombinator(combinator);currentSeparator[++combinatorIndex]={combinator:combinator,tag:'*'};} var currentParsed=parsed.expressions[separatorIndex][combinatorIndex];if(tagName){currentParsed.tag=tagName.replace(reUnescape,'');}else if(id){currentParsed.id=id.replace(reUnescape,'');}else if(className){className=className.replace(reUnescape,'');if(!currentParsed.classList)currentParsed.classList=[];if(!currentParsed.classes)currentParsed.classes=[];currentParsed.classList.push(className);currentParsed.classes.push({value:className,regexp:new RegExp('(^|\\s)'+escapeRegExp(className)+'(\\s|$)')});}else if(pseudoClass){pseudoClassValue=pseudoClassValue||pseudoClassQuotedValue;pseudoClassValue=pseudoClassValue?pseudoClassValue.replace(reUnescape,''):null;if(!currentParsed.pseudos)currentParsed.pseudos=[];currentParsed.pseudos.push({key:pseudoClass.replace(reUnescape,''),value:pseudoClassValue,type:pseudoMarker.length==1?'class':'element'});}else if(attributeKey){attributeKey=attributeKey.replace(reUnescape,'');attributeValue=(attributeValue||'').replace(reUnescape,'');var test,regexp;switch(attributeOperator){case'^=':regexp=new RegExp('^'+escapeRegExp(attributeValue));break;case'$=':regexp=new RegExp(escapeRegExp(attributeValue)+'$');break;case'~=':regexp=new RegExp('(^|\\s)'+escapeRegExp(attributeValue)+'(\\s|$)');break;case'|=':regexp=new RegExp('^'+escapeRegExp(attributeValue)+'(-|$)');break;case'=':test=function(value){return attributeValue==value;};break;case'*=':test=function(value){return value&&value.indexOf(attributeValue)>-1;};break;case'!=':test=function(value){return attributeValue!=value;};break;default:test=function(value){return!!value;};} if(attributeValue==''&&(/^[*$^]=$/).test(attributeOperator))test=function(){return false;};if(!test)test=function(value){return value&®exp.test(value);};if(!currentParsed.attributes)currentParsed.attributes=[];currentParsed.attributes.push({key:attributeKey,operator:attributeOperator,value:attributeValue,test:test});} return'';};var Slick=(this.Slick||{});Slick.parse=function(expression){return parse(expression);};Slick.escapeRegExp=escapeRegExp;if(!this.Slick)this.Slick=Slick;}).apply((typeof exports!='undefined')?exports:this);;(function(){var local={},featuresCache={},toString=Object.prototype.toString;local.isNativeCode=function(fn){return(/\{\s*\[native code\]\s*\}/).test(''+fn);};local.isXML=function(document){return(!!document.xmlVersion)||(!!document.xml)||(toString.call(document)=='[object XMLDocument]')||(document.nodeType==9&&document.documentElement.nodeName!='HTML');};local.setDocument=function(document){var nodeType=document.nodeType;if(nodeType==9);else if(nodeType)document=document.ownerDocument;else if(document.navigator)document=document.document;else return;if(this.document===document)return;this.document=document;var root=document.documentElement,rootUid=this.getUIDXML(root),features=featuresCache[rootUid],feature;if(features){for(feature in features){this[feature]=features[feature];} return;} features=featuresCache[rootUid]={};features.root=root;features.isXMLDocument=this.isXML(document);features.brokenStarGEBTN=features.starSelectsClosedQSA=features.idGetsName=features.brokenMixedCaseQSA=features.brokenGEBCN=features.brokenCheckedQSA=features.brokenEmptyAttributeQSA=features.isHTMLDocument=features.nativeMatchesSelector=false;var starSelectsClosed,starSelectsComments,brokenSecondClassNameGEBCN,cachedGetElementsByClassName,brokenFormAttributeGetter;var selected,id='slick_uniqueid';var testNode=document.createElement('div');var testRoot=document.body||document.getElementsByTagName('body')[0]||root;testRoot.appendChild(testNode);try{testNode.innerHTML='';features.isHTMLDocument=!!document.getElementById(id);}catch(e){};if(features.isHTMLDocument){testNode.style.display='none';testNode.appendChild(document.createComment(''));starSelectsComments=(testNode.getElementsByTagName('*').length>1);try{testNode.innerHTML='foo';selected=testNode.getElementsByTagName('*');starSelectsClosed=(selected&&!!selected.length&&selected[0].nodeName.charAt(0)=='/');}catch(e){};features.brokenStarGEBTN=starSelectsComments||starSelectsClosed;try{testNode.innerHTML='';features.idGetsName=document.getElementById(id)===testNode.firstChild;}catch(e){};if(testNode.getElementsByClassName){try{testNode.innerHTML='';testNode.getElementsByClassName('b').length;testNode.firstChild.className='b';cachedGetElementsByClassName=(testNode.getElementsByClassName('b').length!=2);}catch(e){};try{testNode.innerHTML='';brokenSecondClassNameGEBCN=(testNode.getElementsByClassName('a').length!=2);}catch(e){};features.brokenGEBCN=cachedGetElementsByClassName||brokenSecondClassNameGEBCN;} if(testNode.querySelectorAll){try{testNode.innerHTML='foo';selected=testNode.querySelectorAll('*');features.starSelectsClosedQSA=(selected&&!!selected.length&&selected[0].nodeName.charAt(0)=='/');}catch(e){};try{testNode.innerHTML='';features.brokenMixedCaseQSA=!testNode.querySelectorAll('.MiX').length;}catch(e){};try{testNode.innerHTML='';features.brokenCheckedQSA=(testNode.querySelectorAll(':checked').length==0);}catch(e){};try{testNode.innerHTML='';features.brokenEmptyAttributeQSA=(testNode.querySelectorAll('[class*=""]').length!=0);}catch(e){};} try{testNode.innerHTML='
';brokenFormAttributeGetter=(testNode.firstChild.getAttribute('action')!='s');}catch(e){};features.nativeMatchesSelector=root.matchesSelector||root.mozMatchesSelector||root.webkitMatchesSelector;if(features.nativeMatchesSelector)try{features.nativeMatchesSelector.call(root,':slick');features.nativeMatchesSelector=null;}catch(e){};} try{root.slick_expando=1;delete root.slick_expando;features.getUID=this.getUIDHTML;}catch(e){features.getUID=this.getUIDXML;} testRoot.removeChild(testNode);testNode=selected=testRoot=null;features.getAttribute=(features.isHTMLDocument&&brokenFormAttributeGetter)?function(node,name){var method=this.attributeGetters[name];if(method)return method.call(node);var attributeNode=node.getAttributeNode(name);return(attributeNode)?attributeNode.nodeValue:null;}:function(node,name){var method=this.attributeGetters[name];return(method)?method.call(node):node.getAttribute(name);};features.hasAttribute=(root&&this.isNativeCode(root.hasAttribute))?function(node,attribute){return node.hasAttribute(attribute);}:function(node,attribute){node=node.getAttributeNode(attribute);return!!(node&&(node.specified||node.nodeValue));};var nativeRootContains=root&&this.isNativeCode(root.contains),nativeDocumentContains=document&&this.isNativeCode(document.contains);features.contains=(nativeRootContains&&nativeDocumentContains)?function(context,node){return context.contains(node);}:(nativeRootContains&&!nativeDocumentContains)?function(context,node){return context===node||((context===document)?document.documentElement:context).contains(node);}:(root&&root.compareDocumentPosition)?function(context,node){return context===node||!!(context.compareDocumentPosition(node)&16);}:function(context,node){if(node)do{if(node===context)return true;}while((node=node.parentNode));return false;};features.documentSorter=(root.compareDocumentPosition)?function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition)return 0;return a.compareDocumentPosition(b)&4?-1:a===b?0:1;}:('sourceIndex'in root)?function(a,b){if(!a.sourceIndex||!b.sourceIndex)return 0;return a.sourceIndex-b.sourceIndex;}:(document.createRange)?function(a,b){if(!a.ownerDocument||!b.ownerDocument)return 0;var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);return aRange.compareBoundaryPoints(Range.START_TO_END,bRange);}:null;root=null;for(feature in features){this[feature]=features[feature];}};var reSimpleSelector=/^([#.]?)((?:[\w-]+|\*))$/,reEmptyAttribute=/\[.+[*$^]=(?:""|'')?\]/,qsaFailExpCache={};local.search=function(context,expression,append,first){var found=this.found=(first)?null:(append||[]);if(!context)return found;else if(context.navigator)context=context.document;else if(!context.nodeType)return found;var parsed,i,uniques=this.uniques={},hasOthers=!!(append&&append.length),contextIsDocument=(context.nodeType==9);if(this.document!==(contextIsDocument?context:context.ownerDocument))this.setDocument(context);if(hasOthers)for(i=found.length;i--;)uniques[this.getUID(found[i])]=true;if(typeof expression=='string'){var simpleSelector=expression.match(reSimpleSelector);simpleSelectors:if(simpleSelector){var symbol=simpleSelector[1],name=simpleSelector[2],node,nodes;if(!symbol){if(name=='*'&&this.brokenStarGEBTN)break simpleSelectors;nodes=context.getElementsByTagName(name);if(first)return nodes[0]||null;for(i=0;node=nodes[i++];){if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}}else if(symbol=='#'){if(!this.isHTMLDocument||!contextIsDocument)break simpleSelectors;node=context.getElementById(name);if(!node)return found;if(this.idGetsName&&node.getAttributeNode('id').nodeValue!=name)break simpleSelectors;if(first)return node||null;if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}else if(symbol=='.'){if(!this.isHTMLDocument||((!context.getElementsByClassName||this.brokenGEBCN)&&context.querySelectorAll))break simpleSelectors;if(context.getElementsByClassName&&!this.brokenGEBCN){nodes=context.getElementsByClassName(name);if(first)return nodes[0]||null;for(i=0;node=nodes[i++];){if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}}else{var matchClass=new RegExp('(^|\\s)'+Slick.escapeRegExp(name)+'(\\s|$)');nodes=context.getElementsByTagName('*');for(i=0;node=nodes[i++];){className=node.className;if(!(className&&matchClass.test(className)))continue;if(first)return node;if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}}} if(hasOthers)this.sort(found);return(first)?null:found;} querySelector:if(context.querySelectorAll){if(!this.isHTMLDocument||qsaFailExpCache[expression]||this.brokenMixedCaseQSA||(this.brokenCheckedQSA&&expression.indexOf(':checked')>-1)||(this.brokenEmptyAttributeQSA&&reEmptyAttribute.test(expression))||(!contextIsDocument&&expression.indexOf(',')>-1)||Slick.disableQSA)break querySelector;var _expression=expression,_context=context;if(!contextIsDocument){var currentId=_context.getAttribute('id'),slickid='slickid__';_context.setAttribute('id',slickid);_expression='#'+slickid+' '+_expression;context=_context.parentNode;} try{if(first)return context.querySelector(_expression)||null;else nodes=context.querySelectorAll(_expression);}catch(e){qsaFailExpCache[expression]=1;break querySelector;}finally{if(!contextIsDocument){if(currentId)_context.setAttribute('id',currentId);else _context.removeAttribute('id');context=_context;}} if(this.starSelectsClosedQSA)for(i=0;node=nodes[i++];){if(node.nodeName>'@'&&!(hasOthers&&uniques[this.getUID(node)]))found.push(node);}else for(i=0;node=nodes[i++];){if(!(hasOthers&&uniques[this.getUID(node)]))found.push(node);} if(hasOthers)this.sort(found);return found;} parsed=this.Slick.parse(expression);if(!parsed.length)return found;}else if(expression==null){return found;}else if(expression.Slick){parsed=expression;}else if(this.contains(context.documentElement||context,expression)){(found)?found.push(expression):found=expression;return found;}else{return found;} this.posNTH={};this.posNTHLast={};this.posNTHType={};this.posNTHTypeLast={};this.push=(!hasOthers&&(first||(parsed.length==1&&parsed.expressions[0].length==1)))?this.pushArray:this.pushUID;if(found==null)found=[];var j,m,n;var combinator,tag,id,classList,classes,attributes,pseudos;var currentItems,currentExpression,currentBit,lastBit,expressions=parsed.expressions;search:for(i=0;(currentExpression=expressions[i]);i++)for(j=0;(currentBit=currentExpression[j]);j++){combinator='combinator:'+currentBit.combinator;if(!this[combinator])continue search;tag=(this.isXMLDocument)?currentBit.tag:currentBit.tag.toUpperCase();id=currentBit.id;classList=currentBit.classList;classes=currentBit.classes;attributes=currentBit.attributes;pseudos=currentBit.pseudos;lastBit=(j===(currentExpression.length-1));this.bitUniques={};if(lastBit){this.uniques=uniques;this.found=found;}else{this.uniques={};this.found=[];} if(j===0){this[combinator](context,tag,id,classes,attributes,pseudos,classList);if(first&&lastBit&&found.length)break search;}else{if(first&&lastBit)for(m=0,n=currentItems.length;m1))this.sort(found);return(first)?(found[0]||null):found;};local.uidx=1;local.uidk='slick-uniqueid';local.getUIDXML=function(node){var uid=node.getAttribute(this.uidk);if(!uid){uid=this.uidx++;node.setAttribute(this.uidk,uid);} return uid;};local.getUIDHTML=function(node){return node.uniqueNumber||(node.uniqueNumber=this.uidx++);};local.sort=function(results){if(!this.documentSorter)return results;results.sort(this.documentSorter);return results;};local.cacheNTH={};local.matchNTH=/^([+-]?\d*)?([a-z]+)?([+-]\d+)?$/;local.parseNTHArgument=function(argument){var parsed=argument.match(this.matchNTH);if(!parsed)return false;var special=parsed[2]||false;var a=parsed[1]||1;if(a=='-')a=-1;var b=+parsed[3]||0;parsed=(special=='n')?{a:a,b:b}:(special=='odd')?{a:2,b:1}:(special=='even')?{a:2,b:0}:{a:0,b:a};return(this.cacheNTH[argument]=parsed);};local.createNTHPseudo=function(child,sibling,positions,ofType){return function(node,argument){var uid=this.getUID(node);if(!this[positions][uid]){var parent=node.parentNode;if(!parent)return false;var el=parent[child],count=1;if(ofType){var nodeName=node.nodeName;do{if(el.nodeName!=nodeName)continue;this[positions][this.getUID(el)]=count++;}while((el=el[sibling]));}else{do{if(el.nodeType!=1)continue;this[positions][this.getUID(el)]=count++;}while((el=el[sibling]));}} argument=argument||'n';var parsed=this.cacheNTH[argument]||this.parseNTHArgument(argument);if(!parsed)return false;var a=parsed.a,b=parsed.b,pos=this[positions][uid];if(a==0)return b==pos;if(a>0){if(pos':function(node,tag,id,classes,attributes,pseudos){if((node=node.firstChild))do{if(node.nodeType==1)this.push(node,tag,id,classes,attributes,pseudos);}while((node=node.nextSibling));},'+':function(node,tag,id,classes,attributes,pseudos){while((node=node.nextSibling))if(node.nodeType==1){this.push(node,tag,id,classes,attributes,pseudos);break;}},'^':function(node,tag,id,classes,attributes,pseudos){node=node.firstChild;if(node){if(node.nodeType==1)this.push(node,tag,id,classes,attributes,pseudos);else this['combinator:+'](node,tag,id,classes,attributes,pseudos);}},'~':function(node,tag,id,classes,attributes,pseudos){while((node=node.nextSibling)){if(node.nodeType!=1)continue;var uid=this.getUID(node);if(this.bitUniques[uid])break;this.bitUniques[uid]=true;this.push(node,tag,id,classes,attributes,pseudos);}},'++':function(node,tag,id,classes,attributes,pseudos){this['combinator:+'](node,tag,id,classes,attributes,pseudos);this['combinator:!+'](node,tag,id,classes,attributes,pseudos);},'~~':function(node,tag,id,classes,attributes,pseudos){this['combinator:~'](node,tag,id,classes,attributes,pseudos);this['combinator:!~'](node,tag,id,classes,attributes,pseudos);},'!':function(node,tag,id,classes,attributes,pseudos){while((node=node.parentNode))if(node!==this.document)this.push(node,tag,id,classes,attributes,pseudos);},'!>':function(node,tag,id,classes,attributes,pseudos){node=node.parentNode;if(node!==this.document)this.push(node,tag,id,classes,attributes,pseudos);},'!+':function(node,tag,id,classes,attributes,pseudos){while((node=node.previousSibling))if(node.nodeType==1){this.push(node,tag,id,classes,attributes,pseudos);break;}},'!^':function(node,tag,id,classes,attributes,pseudos){node=node.lastChild;if(node){if(node.nodeType==1)this.push(node,tag,id,classes,attributes,pseudos);else this['combinator:!+'](node,tag,id,classes,attributes,pseudos);}},'!~':function(node,tag,id,classes,attributes,pseudos){while((node=node.previousSibling)){if(node.nodeType!=1)continue;var uid=this.getUID(node);if(this.bitUniques[uid])break;this.bitUniques[uid]=true;this.push(node,tag,id,classes,attributes,pseudos);}}};for(var c in combinators)local['combinator:'+c]=combinators[c];var pseudos={'empty':function(node){var child=node.firstChild;return!(child&&child.nodeType==1)&&!(node.innerText||node.textContent||'').length;},'not':function(node,expression){return!this.matchNode(node,expression);},'contains':function(node,text){return(node.innerText||node.textContent||'').indexOf(text)>-1;},'first-child':function(node){while((node=node.previousSibling))if(node.nodeType==1)return false;return true;},'last-child':function(node){while((node=node.nextSibling))if(node.nodeType==1)return false;return true;},'only-child':function(node){var prev=node;while((prev=prev.previousSibling))if(prev.nodeType==1)return false;var next=node;while((next=next.nextSibling))if(next.nodeType==1)return false;return true;},'nth-child':local.createNTHPseudo('firstChild','nextSibling','posNTH'),'nth-last-child':local.createNTHPseudo('lastChild','previousSibling','posNTHLast'),'nth-of-type':local.createNTHPseudo('firstChild','nextSibling','posNTHType',true),'nth-last-of-type':local.createNTHPseudo('lastChild','previousSibling','posNTHTypeLast',true),'index':function(node,index){return this['pseudo:nth-child'](node,''+(index+1));},'even':function(node){return this['pseudo:nth-child'](node,'2n');},'odd':function(node){return this['pseudo:nth-child'](node,'2n+1');},'first-of-type':function(node){var nodeName=node.nodeName;while((node=node.previousSibling))if(node.nodeName==nodeName)return false;return true;},'last-of-type':function(node){var nodeName=node.nodeName;while((node=node.nextSibling))if(node.nodeName==nodeName)return false;return true;},'only-of-type':function(node){var prev=node,nodeName=node.nodeName;while((prev=prev.previousSibling))if(prev.nodeName==nodeName)return false;var next=node;while((next=next.nextSibling))if(next.nodeName==nodeName)return false;return true;},'enabled':function(node){return!node.disabled;},'disabled':function(node){return node.disabled;},'checked':function(node){return node.checked||node.selected;},'focus':function(node){return this.isHTMLDocument&&this.document.activeElement===node&&(node.href||node.type||this.hasAttribute(node,'tabindex'));},'root':function(node){return(node===this.root);},'selected':function(node){return node.selected;}};for(var p in pseudos)local['pseudo:'+p]=pseudos[p];var attributeGetters=local.attributeGetters={'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');},'tabindex':function(){var attributeNode=this.getAttributeNode('tabindex');return(attributeNode&&attributeNode.specified)?attributeNode.nodeValue:null;},'type':function(){return this.getAttribute('type');},'maxlength':function(){var attributeNode=this.getAttributeNode('maxLength');return(attributeNode&&attributeNode.specified)?attributeNode.nodeValue:null;}};attributeGetters.MAXLENGTH=attributeGetters.maxLength=attributeGetters.maxlength;var Slick=local.Slick=(this.Slick||{});Slick.version='1.1.7';Slick.search=function(context,expression,append){return local.search(context,expression,append);};Slick.find=function(context,expression){return local.search(context,expression,null,true);};Slick.contains=function(container,node){local.setDocument(container);return local.contains(container,node);};Slick.getAttribute=function(node,name){local.setDocument(node);return local.getAttribute(node,name);};Slick.hasAttribute=function(node,name){local.setDocument(node);return local.hasAttribute(node,name);};Slick.match=function(node,selector){if(!(node&&selector))return false;if(!selector||selector===node)return true;local.setDocument(node);return local.matchNode(node,selector);};Slick.defineAttributeGetter=function(name,fn){local.attributeGetters[name]=fn;return this;};Slick.lookupAttributeGetter=function(name){return local.attributeGetters[name];};Slick.definePseudo=function(name,fn){local['pseudo:'+name]=function(node,argument){return fn.call(node,argument);};return this;};Slick.lookupPseudo=function(name){var pseudo=local['pseudo:'+name];if(pseudo)return function(argument){return pseudo.call(this,argument);};return null;};Slick.override=function(regexp,fn){local.override(regexp,fn);return this;};Slick.isXML=local.isXML;Slick.uidOf=function(node){return local.getUIDHTML(node);};if(!this.Slick)this.Slick=Slick;}).apply((typeof exports!='undefined')?exports:this);var Element=function(tag,props){var konstructor=Element.Constructors[tag];if(konstructor)return konstructor(props);if(typeof tag!='string')return document.id(tag).set(props);if(!props)props={};if(!(/^[\w-]+$/).test(tag)){var parsed=Slick.parse(tag).expressions[0][0];tag=(parsed.tag=='*')?'div':parsed.tag;if(parsed.id&&props.id==null)props.id=parsed.id;var attributes=parsed.attributes;if(attributes)for(var attr,i=0,l=attributes.length;i=this.length)delete this[length--];return result;}.protect());Array.forEachMethod(function(method,name){Elements.implement(name,method);});Array.mirror(Elements);var createElementAcceptsHTML;try{createElementAcceptsHTML=(document.createElement('').name=='x');}catch(e){} var escapeQuotes=function(html){return(''+html).replace(/&/g,'&').replace(/"/g,'"');};Document.implement({newElement:function(tag,props){if(props&&props.checked!=null)props.defaultChecked=props.checked;if(createElementAcceptsHTML&&props){tag='<'+tag;if(props.name)tag+=' name="'+escapeQuotes(props.name)+'"';if(props.type)tag+=' type="'+escapeQuotes(props.type)+'"';tag+='>';delete props.name;delete props.type;} return this.id(this.createElement(tag)).set(props);}});})();(function(){Slick.uidOf(window);Slick.uidOf(document);Document.implement({newTextNode:function(text){return this.createTextNode(text);},getDocument:function(){return this;},getWindow:function(){return this.window;},id:(function(){var types={string:function(id,nocash,doc){id=Slick.find(doc,'#'+id.replace(/(\W)/g,'\\$1'));return(id)?types.element(id,nocash):null;},element:function(el,nocash){Slick.uidOf(el);if(!nocash&&!el.$family&&!(/^(?:object|embed)$/i).test(el.tagName)){var fireEvent=el.fireEvent;el._fireEvent=function(type,event){return fireEvent(type,event);};Object.append(el,Element.Prototype);} return el;},object:function(obj,nocash,doc){if(obj.toElement)return types.element(obj.toElement(doc),nocash);return null;}};types.textnode=types.whitespace=types.window=types.document=function(zero){return zero;};return function(el,nocash,doc){if(el&&el.$family&&el.uniqueNumber)return el;var type=typeOf(el);return(types[type])?types[type](el,nocash,doc||document):null;};})()});if(window.$==null)Window.implement('$',function(el,nc){return document.id(el,nc,this.document);});Window.implement({getDocument:function(){return this.document;},getWindow:function(){return this;}});[Document,Element].invoke('implement',{getElements:function(expression){return Slick.search(this,expression,new Elements);},getElement:function(expression){return document.id(Slick.find(this,expression));}});var contains={contains:function(element){return Slick.contains(this,element);}};if(!document.contains)Document.implement(contains);if(!document.createElement('div').contains)Element.implement(contains);Element.implement('hasChild',function(element){return this!==element&&this.contains(element);});(function(search,find,match){this.Selectors={};var pseudos=this.Selectors.Pseudo=new Hash();var addSlickPseudos=function(){for(var name in pseudos)if(pseudos.hasOwnProperty(name)){Slick.definePseudo(name,pseudos[name]);delete pseudos[name];}};Slick.search=function(context,expression,append){addSlickPseudos();return search.call(this,context,expression,append);};Slick.find=function(context,expression){addSlickPseudos();return find.call(this,context,expression);};Slick.match=function(node,selector){addSlickPseudos();return match.call(this,node,selector);};})(Slick.search,Slick.find,Slick.match);var injectCombinator=function(expression,combinator){if(!expression)return combinator;expression=Object.clone(Slick.parse(expression));var expressions=expression.expressions;for(var i=expressions.length;i--;) expressions[i][0].combinator=combinator;return expression;};Object.forEach({getNext:'~',getPrevious:'!~',getParent:'!'},function(combinator,method){Element.implement(method,function(expression){return this.getElement(injectCombinator(expression,combinator));});});Object.forEach({getAllNext:'~',getAllPrevious:'!~',getSiblings:'~~',getChildren:'>',getParents:'!'},function(combinator,method){Element.implement(method,function(expression){return this.getElements(injectCombinator(expression,combinator));});});Element.implement({getFirst:function(expression){return document.id(Slick.search(this,injectCombinator(expression,'>'))[0]);},getLast:function(expression){return document.id(Slick.search(this,injectCombinator(expression,'>')).getLast());},getWindow:function(){return this.ownerDocument.window;},getDocument:function(){return this.ownerDocument;},getElementById:function(id){return document.id(Slick.find(this,'#'+(''+id).replace(/(\W)/g,'\\$1')));},match:function(expression){return!expression||Slick.match(this,expression);}});if(window.$$==null)Window.implement('$$',function(selector){var elements=new Elements;if(arguments.length==1&&typeof selector=='string')return Slick.search(this.document,selector,elements);var args=Array.flatten(arguments);for(var i=0,l=args.length;i(?![^<]*<['"])/)).indexOf(name)<0)return null;attributeWhiteList[name]=true;}} var result=Slick.getAttribute(this,name);return(!result&&!Slick.hasAttribute(this,name))?null:result;},getProperties:function(){var args=Array.from(arguments);return args.map(this.getProperty,this).associate(args);},removeProperty:function(name){return this.setProperty(name,null);},removeProperties:function(){Array.each(arguments,this.removeProperty,this);return this;},set:function(prop,value){var property=Element.Properties[prop];(property&&property.set)?property.set.call(this,value):this.setProperty(prop,value);}.overloadSetter(),get:function(prop){var property=Element.Properties[prop];return(property&&property.get)?property.get.apply(this):this.getProperty(prop);}.overloadGetter(),erase:function(prop){var property=Element.Properties[prop];(property&&property.erase)?property.erase.apply(this):this.removeProperty(prop);return this;},hasClass:function(className){return this.className.clean().contains(className,' ');},addClass:function(className){if(!this.hasClass(className))this.className=(this.className+' '+className).clean();return this;},removeClass:function(className){this.className=this.className.replace(new RegExp('(^|\\s)'+className+'(?:\\s|$)'),'$1');return this;},toggleClass:function(className,force){if(force==null)force=!this.hasClass(className);return(force)?this.addClass(className):this.removeClass(className);},adopt:function(){var parent=this,fragment,elements=Array.flatten(arguments),length=elements.length;if(length>1)parent=fragment=document.createDocumentFragment();for(var i=0;i';var supportsHTML5Elements=(div.childNodes.length==1);if(!supportsHTML5Elements){var tags='abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video'.split(' '),fragment=document.createDocumentFragment(),l=tags.length;while(l--)fragment.createElement(tags[l]);} div=null;var supportsTableInnerHTML=Function.attempt(function(){var table=document.createElement('table');table.innerHTML='
';return true;});var tr=document.createElement('tr'),html='';tr.innerHTML=html;var supportsTRInnerHTML=(tr.innerHTML==html);tr=null;if(!supportsTableInnerHTML||!supportsTRInnerHTML||!supportsHTML5Elements){Element.Properties.html.set=(function(set){var translations={table:[1,'
','
'],select:[1,''],tbody:[2,'','
'],tr:[3,'','
']};translations.thead=translations.tfoot=translations.tbody;return function(html){var wrap=translations[this.get('tag')];if(!wrap&&!supportsHTML5Elements)wrap=[0,'',''];if(!wrap)return set.call(this,html);var level=wrap[0],wrapper=document.createElement('div'),target=wrapper;if(!supportsHTML5Elements)fragment.appendChild(wrapper);wrapper.innerHTML=[wrap[1],html,wrap[2]].flatten().join('');while(level--)target=target.firstChild;this.empty().adopt(target.childNodes);if(!supportsHTML5Elements)fragment.removeChild(wrapper);wrapper=null;};})(Element.Properties.html.set);} var testForm=document.createElement('form');testForm.innerHTML='';if(testForm.firstChild.value!='s')Element.Properties.value={set:function(value){var tag=this.get('tag');if(tag!='select')return this.setProperty('value',value);var options=this.getElements('option');for(var i=0;i0||opacity==null?'visible':'hidden';};var setOpacity=(hasOpacity?function(element,opacity){element.style.opacity=opacity;}:(hasFilter?function(element,opacity){var style=element.style;if(!element.currentStyle||!element.currentStyle.hasLayout)style.zoom=1;if(opacity==null||opacity==1)opacity='';else opacity='alpha(opacity='+(opacity*100).limit(0,100).round()+')';var filter=style.filter||element.getComputedStyle('filter')||'';style.filter=reAlpha.test(filter)?filter.replace(reAlpha,opacity):filter+opacity;if(!style.filter)style.removeAttribute('filter');}:setVisibility));var getOpacity=(hasOpacity?function(element){var opacity=element.style.opacity||element.getComputedStyle('opacity');return(opacity=='')?1:opacity.toFloat();}:(hasFilter?function(element){var filter=(element.style.filter||element.getComputedStyle('filter')),opacity;if(filter)opacity=filter.match(reAlpha);return(opacity==null||filter==null)?1:(opacity[1]/100);}:function(element){var opacity=element.retrieve('$opacity');if(opacity==null)opacity=(element.style.visibility=='hidden'?0:1);return opacity;}));var floatName=(html.style.cssFloat==null)?'styleFloat':'cssFloat';Element.implement({getComputedStyle:function(property){if(this.currentStyle)return this.currentStyle[property.camelCase()];var defaultView=Element.getDocument(this).defaultView,computed=defaultView?defaultView.getComputedStyle(this,null):null;return(computed)?computed.getPropertyValue((property==floatName)?'float':property.hyphenate()):null;},setStyle:function(property,value){if(property=='opacity'){if(value!=null)value=parseFloat(value);setOpacity(this,value);return this;} property=(property=='float'?floatName:property).camelCase();if(typeOf(value)!='string'){var map=(Element.Styles[property]||'@').split(' ');value=Array.from(value).map(function(val,i){if(!map[i])return'';return(typeOf(val)=='number')?map[i].replace('@',Math.round(val)):val;}).join(' ');}else if(value==String(Number(value))){value=Math.round(value);} this.style[property]=value;if((value==''||value==null)&&doesNotRemoveStyles&&this.style.removeAttribute){this.style.removeAttribute(property);} return this;},getStyle:function(property){if(property=='opacity')return getOpacity(this);property=(property=='float'?floatName:property).camelCase();var result=this.style[property];if(!result||property=='zIndex'){result=[];for(var style in Element.ShortStyles){if(property!=style)continue;for(var s in Element.ShortStyles[style])result.push(this.getStyle(s));return result.join(' ');} result=this.getComputedStyle(property);} if(result){result=String(result);var color=result.match(/rgba?\([\d\s,]+\)/);if(color)result=result.replace(color[0],color[0].rgbToHex());} if(Browser.opera||Browser.ie){if((/^(height|width)$/).test(property)&&!(/px$/.test(result))){var values=(property=='width')?['left','right']:['top','bottom'],size=0;values.each(function(value){size+=this.getStyle('border-'+value+'-width').toInt()+this.getStyle('padding-'+value).toInt();},this);return this['offset'+property.capitalize()]-size+'px';} if(Browser.ie&&(/^border(.+)Width|margin|padding/).test(property)&&isNaN(parseFloat(result))){return'0px';}} return result;},setStyles:function(styles){for(var style in styles)this.setStyle(style,styles[style]);return this;},getStyles:function(){var result={};Array.flatten(arguments).each(function(key){result[key]=this.getStyle(key);},this);return result;}});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.implement({setOpacity:function(value){setOpacity(this,value);return this;},getOpacity:function(){return getOpacity(this);}});Element.Properties.opacity={set:function(opacity){setOpacity(this,opacity);setVisibility(this,opacity);},get:function(){return getOpacity(this);}};Element.Styles=new Hash(Element.Styles);Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};['Top','Right','Bottom','Left'].each(function(direction){var Short=Element.ShortStyles;var All=Element.Styles;['margin','padding'].each(function(style){var sd=style+direction;Short[style][sd]=All[sd]='@px';});var bd='border'+direction;Short.border[bd]=All[bd]='@px @ rgb(@, @, @)';var bdw=bd+'Width',bds=bd+'Style',bdc=bd+'Color';Short[bd]={};Short.borderWidth[bdw]=Short[bd][bdw]=All[bdw]='@px';Short.borderStyle[bds]=Short[bd][bds]=All[bds]='@';Short.borderColor[bdc]=Short[bd][bdc]=All[bdc]='rgb(@, @, @)';});})();(function(){Element.Properties.events={set:function(events){this.addEvents(events);}};[Element,Window,Document].invoke('implement',{addEvent:function(type,fn){var events=this.retrieve('events',{});if(!events[type])events[type]={keys:[],values:[]};if(events[type].keys.contains(fn))return this;events[type].keys.push(fn);var realType=type,custom=Element.Events[type],condition=fn,self=this;if(custom){if(custom.onAdd)custom.onAdd.call(this,fn,type);if(custom.condition){condition=function(event){if(custom.condition.call(this,event,type))return fn.call(this,event);return true;};} if(custom.base)realType=Function.from(custom.base).call(this,type);} var defn=function(){return fn.call(self);};var nativeEvent=Element.NativeEvents[realType];if(nativeEvent){if(nativeEvent==2){defn=function(event){event=new DOMEvent(event,self.getWindow());if(condition.call(self,event)===false)event.stop();};} this.addListener(realType,defn,arguments[2]);} events[type].values.push(defn);return this;},removeEvent:function(type,fn){var events=this.retrieve('events');if(!events||!events[type])return this;var list=events[type];var index=list.keys.indexOf(fn);if(index==-1)return this;var value=list.values[index];delete list.keys[index];delete list.values[index];var custom=Element.Events[type];if(custom){if(custom.onRemove)custom.onRemove.call(this,fn,type);if(custom.base)type=Function.from(custom.base).call(this,type);} return(Element.NativeEvents[type])?this.removeListener(type,value,arguments[2]):this;},addEvents:function(events){for(var event in events)this.addEvent(event,events[event]);return this;},removeEvents:function(events){var type;if(typeOf(events)=='object'){for(type in events)this.removeEvent(type,events[type]);return this;} var attached=this.retrieve('events');if(!attached)return this;if(!events){for(type in attached)this.removeEvents(type);this.eliminate('events');}else if(attached[events]){attached[events].keys.each(function(fn){this.removeEvent(events,fn);},this);delete attached[events];} return this;},fireEvent:function(type,args,delay){var events=this.retrieve('events');if(!events||!events[type])return this;args=Array.from(args);events[type].keys.each(function(fn){if(delay)fn.delay(delay,this,args);else fn.apply(this,args);},this);return this;},cloneEvents:function(from,type){from=document.id(from);var events=from.retrieve('events');if(!events)return this;if(!type){for(var eventType in events)this.cloneEvents(from,eventType);}else if(events[type]){events[type].keys.each(function(fn){this.addEvent(type,fn);},this);} return this;}});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,paste:2,input:2,load:2,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1};Element.Events={mousewheel:{base:(Browser.firefox)?'DOMMouseScroll':'mousewheel'}};if('onmouseenter'in document.documentElement){Element.NativeEvents.mouseenter=Element.NativeEvents.mouseleave=2;}else{var check=function(event){var related=event.relatedTarget;if(related==null)return true;if(!related)return false;return(related!=this&&related.prefix!='xul'&&typeOf(this)!='document'&&!this.contains(related));};Element.Events.mouseenter={base:'mouseover',condition:check};Element.Events.mouseleave={base:'mouseout',condition:check};} if(!window.addEventListener){Element.NativeEvents.propertychange=2;Element.Events.change={base:function(){var type=this.type;return(this.get('tag')=='input'&&(type=='radio'||type=='checkbox'))?'propertychange':'change'},condition:function(event){return this.type!='radio'||(event.event.propertyName=='checked'&&this.checked);}}} Element.Events=new Hash(Element.Events);})();(function(){var eventListenerSupport=!!window.addEventListener;Element.NativeEvents.focusin=Element.NativeEvents.focusout=2;var bubbleUp=function(self,match,fn,event,target){while(target&&target!=self){if(match(target,event))return fn.call(target,event,target);target=document.id(target.parentNode);}};var map={mouseenter:{base:'mouseover'},mouseleave:{base:'mouseout'},focus:{base:'focus'+(eventListenerSupport?'':'in'),capture:true},blur:{base:eventListenerSupport?'blur':'focusout',capture:true}};var _key='$delegation:';var formObserver=function(type){return{base:'focusin',remove:function(self,uid){var list=self.retrieve(_key+type+'listeners',{})[uid];if(list&&list.forms)for(var i=list.forms.length;i--;){list.forms[i].removeEvent(type,list.fns[i]);}},listen:function(self,match,fn,event,target,uid){var form=(target.get('tag')=='form')?target:event.target.getParent('form');if(!form)return;var listeners=self.retrieve(_key+type+'listeners',{}),listener=listeners[uid]||{forms:[],fns:[]},forms=listener.forms,fns=listener.fns;if(forms.indexOf(form)!=-1)return;forms.push(form);var _fn=function(event){bubbleUp(self,match,fn,event,target);};form.addEvent(type,_fn);fns.push(_fn);listeners[uid]=listener;self.store(_key+type+'listeners',listeners);}};};var inputObserver=function(type){return{base:'focusin',listen:function(self,match,fn,event,target){var events={blur:function(){this.removeEvents(events);}};events[type]=function(event){bubbleUp(self,match,fn,event,target);};event.target.addEvents(events);}};};if(!eventListenerSupport)Object.append(map,{submit:formObserver('submit'),reset:formObserver('reset'),change:inputObserver('change'),select:inputObserver('select')});var proto=Element.prototype,addEvent=proto.addEvent,removeEvent=proto.removeEvent;var relay=function(old,method){return function(type,fn,useCapture){if(type.indexOf(':relay')==-1)return old.call(this,type,fn,useCapture);var parsed=Slick.parse(type).expressions[0][0];if(parsed.pseudos[0].key!='relay')return old.call(this,type,fn,useCapture);var newType=parsed.tag;parsed.pseudos.slice(1).each(function(pseudo){newType+=':'+pseudo.key+(pseudo.value?'('+pseudo.value+')':'');});old.call(this,type,fn);return method.call(this,newType,parsed.pseudos[0].value,fn);};};var delegation={addEvent:function(type,match,fn){var storage=this.retrieve('$delegates',{}),stored=storage[type];if(stored)for(var _uid in stored){if(stored[_uid].fn==fn&&stored[_uid].match==match)return this;} var _type=type,_match=match,_fn=fn,_map=map[type]||{};type=_map.base||_type;match=function(target){return Slick.match(target,_match);};var elementEvent=Element.Events[_type];if(elementEvent&&elementEvent.condition){var __match=match,condition=elementEvent.condition;match=function(target,event){return __match(target,event)&&condition.call(target,event,type);};} var self=this,uid=String.uniqueID();var delegator=_map.listen?function(event,target){if(!target&&event&&event.target)target=event.target;if(target)_map.listen(self,match,fn,event,target,uid);}:function(event,target){if(!target&&event&&event.target)target=event.target;if(target)bubbleUp(self,match,fn,event,target);};if(!stored)stored={};stored[uid]={match:_match,fn:_fn,delegator:delegator};storage[_type]=stored;return addEvent.call(this,type,delegator,_map.capture);},removeEvent:function(type,match,fn,_uid){var storage=this.retrieve('$delegates',{}),stored=storage[type];if(!stored)return this;if(_uid){var _type=type,delegator=stored[_uid].delegator,_map=map[type]||{};type=_map.base||_type;if(_map.remove)_map.remove(this,_uid);delete stored[_uid];storage[_type]=stored;return removeEvent.call(this,type,delegator);} var __uid,s;if(fn)for(__uid in stored){s=stored[__uid];if(s.match==match&&s.fn==fn)return delegation.removeEvent.call(this,type,match,fn,__uid);}else for(__uid in stored){s=stored[__uid];if(s.match==match)delegation.removeEvent.call(this,type,match,s.fn,__uid);} return this;}};[Element,Window,Document].invoke('implement',{addEvent:relay(addEvent,delegation.addEvent),removeEvent:relay(removeEvent,delegation.removeEvent)});})();(function(){var element=document.createElement('div'),child=document.createElement('div');element.style.height='0';element.appendChild(child);var brokenOffsetParent=(child.offsetParent===element);element=child=null;var isOffset=function(el){return styleString(el,'position')!='static'||isBody(el);};var isOffsetStatic=function(el){return isOffset(el)||(/^(?:table|td|th)$/i).test(el.tagName);};Element.implement({scrollTo:function(x,y){if(isBody(this)){this.getWindow().scrollTo(x,y);}else{this.scrollLeft=x;this.scrollTop=y;} return this;},getSize:function(){if(isBody(this))return this.getWindow().getSize();return{x:this.offsetWidth,y:this.offsetHeight};},getScrollSize:function(){if(isBody(this))return this.getWindow().getScrollSize();return{x:this.scrollWidth,y:this.scrollHeight};},getScroll:function(){if(isBody(this))return this.getWindow().getScroll();return{x:this.scrollLeft,y:this.scrollTop};},getScrolls:function(){var element=this.parentNode,position={x:0,y:0};while(element&&!isBody(element)){position.x+=element.scrollLeft;position.y+=element.scrollTop;element=element.parentNode;} return position;},getOffsetParent:brokenOffsetParent?function(){var element=this;if(isBody(element)||styleString(element,'position')=='fixed')return null;var isOffsetCheck=(styleString(element,'position')=='static')?isOffsetStatic:isOffset;while((element=element.parentNode)){if(isOffsetCheck(element))return element;} return null;}:function(){var element=this;if(isBody(element)||styleString(element,'position')=='fixed')return null;try{return element.offsetParent;}catch(e){} return null;},getOffsets:function(){if(this.getBoundingClientRect&&!Browser.Platform.ios){var bound=this.getBoundingClientRect(),html=document.id(this.getDocument().documentElement),htmlScroll=html.getScroll(),elemScrolls=this.getScrolls(),isFixed=(styleString(this,'position')=='fixed');return{x:bound.left.toInt()+elemScrolls.x+((isFixed)?0:htmlScroll.x)-html.clientLeft,y:bound.top.toInt()+elemScrolls.y+((isFixed)?0:htmlScroll.y)-html.clientTop};} var element=this,position={x:0,y:0};if(isBody(this))return position;while(element&&!isBody(element)){position.x+=element.offsetLeft;position.y+=element.offsetTop;if(Browser.firefox){if(!borderBox(element)){position.x+=leftBorder(element);position.y+=topBorder(element);} var parent=element.parentNode;if(parent&&styleString(parent,'overflow')!='visible'){position.x+=leftBorder(parent);position.y+=topBorder(parent);}}else if(element!=this&&Browser.safari){position.x+=leftBorder(element);position.y+=topBorder(element);} element=element.offsetParent;} if(Browser.firefox&&!borderBox(this)){position.x-=leftBorder(this);position.y-=topBorder(this);} return position;},getPosition:function(relative){var offset=this.getOffsets(),scroll=this.getScrolls();var position={x:offset.x-scroll.x,y:offset.y-scroll.y};if(relative&&(relative=document.id(relative))){var relativePosition=relative.getPosition();return{x:position.x-relativePosition.x-leftBorder(relative),y:position.y-relativePosition.y-topBorder(relative)};} return position;},getCoordinates:function(element){if(isBody(this))return this.getWindow().getCoordinates();var position=this.getPosition(element),size=this.getSize();var obj={left:position.x,top:position.y,width:size.x,height:size.y};obj.right=obj.left+obj.width;obj.bottom=obj.top+obj.height;return obj;},computePosition:function(obj){return{left:obj.x-styleNumber(this,'margin-left'),top:obj.y-styleNumber(this,'margin-top')};},setPosition:function(obj){return this.setStyles(this.computePosition(obj));}});[Document,Window].invoke('implement',{getSize:function(){var doc=getCompatElement(this);return{x:doc.clientWidth,y:doc.clientHeight};},getScroll:function(){var win=this.getWindow(),doc=getCompatElement(this);return{x:win.pageXOffset||doc.scrollLeft,y:win.pageYOffset||doc.scrollTop};},getScrollSize:function(){var doc=getCompatElement(this),min=this.getSize(),body=this.getDocument().body;return{x:Math.max(doc.scrollWidth,body.scrollWidth,min.x),y:Math.max(doc.scrollHeight,body.scrollHeight,min.y)};},getPosition:function(){return{x:0,y:0};},getCoordinates:function(){var size=this.getSize();return{top:0,left:0,bottom:size.y,right:size.x,height:size.y,width:size.x};}});var styleString=Element.getComputedStyle;function styleNumber(element,style){return styleString(element,style).toInt()||0;} function borderBox(element){return styleString(element,'-moz-box-sizing')=='border-box';} function topBorder(element){return styleNumber(element,'border-top-width');} function leftBorder(element){return styleNumber(element,'border-left-width');} function isBody(element){return(/^(?:body|html)$/i).test(element.tagName);} function getCompatElement(element){var doc=element.getDocument();return(!doc.compatMode||doc.compatMode=='CSS1Compat')?doc.html:doc.body;}})();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 Fx=this.Fx=new Class({Implements:[Chain,Events,Options],options:{fps:60,unit:false,duration:500,frames:null,frameSkip:true,link:'ignore'},initialize:function(options){this.subject=this.subject||this;this.setOptions(options);},getTransition:function(){return function(p){return-(Math.cos(Math.PI*p)-1)/2;};},step:function(now){if(this.options.frameSkip){var diff=(this.time!=null)?(now-this.time):0,frames=diff/this.frameInterval;this.time=now;this.frame+=frames;}else{this.frame++;} if(this.frame=(7-4*a)/11){value=b*b-Math.pow((11-6*a-11*p)/4,2);break;}} return value;},Elastic:function(p,x){return Math.pow(2,10*--p)*Math.cos(20*p*Math.PI*(x&&x[0]||1)/3);}});['Quad','Cubic','Quart','Quint'].each(function(transition,i){Fx.Transitions[transition]=new Fx.Transition(function(p){return Math.pow(p,i+2);});});(function(){var empty=function(){},progressSupport=('onprogress'in new Browser.Request);var Request=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(options){this.xhr=new Browser.Request();this.setOptions(options);this.headers=this.options.headers;},onStateChange:function(){var xhr=this.xhr;if(xhr.readyState!=4||!this.running)return;this.running=false;this.status=0;Function.attempt(function(){var status=xhr.status;this.status=(status==1223)?204:status;}.bind(this));xhr.onreadystatechange=empty;if(progressSupport)xhr.onprogress=xhr.onloadstart=empty;clearTimeout(this.timer);this.response={text:this.xhr.responseText||'',xml:this.xhr.responseXML};if(this.options.isSuccess.call(this,this.status)) this.success(this.response.text,this.response.xml);else this.failure();},isSuccess:function(){var status=this.status;return(status>=200&&status<300);},isRunning:function(){return!!this.running;},processScripts:function(text){if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader('Content-type')))return Browser.exec(text);return text.stripScripts(this.options.evalScripts);},success:function(text,xml){this.onSuccess(this.processScripts(text),xml);},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(event){this.fireEvent('loadstart',[event,this.xhr]);},progress:function(event){this.fireEvent('progress',[event,this.xhr]);},timeout:function(){this.fireEvent('timeout',this.xhr);},setHeader:function(name,value){this.headers[name]=value;return this;},getHeader:function(name){return Function.attempt(function(){return this.xhr.getResponseHeader(name);}.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;} return false;},send:function(options){if(!this.check(options))return this;this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.running=true;var type=typeOf(options);if(type=='string'||type=='element')options={data:options};var old=this.options;options=Object.append({data:old.data,url:old.url,method:old.method},options);var data=options.data,url=String(options.url),method=options.method.toLowerCase();switch(typeOf(data)){case'element':data=document.id(data).toQueryString();break;case'object':case'hash':data=Object.toQueryString(data);} if(this.options.format){var format='format='+this.options.format;data=(data)?format+'&'+data:format;} if(this.options.emulation&&!['get','post'].contains(method)){var _method='_method='+method;data=(data)?_method+'&'+data:_method;method='post';} if(this.options.urlEncoded&&['post','put'].contains(method)){var encoding=(this.options.encoding)?'; charset='+this.options.encoding:'';this.headers['Content-type']='application/x-www-form-urlencoded'+encoding;} if(!url)url=document.location.pathname;var trimPosition=url.lastIndexOf('/');if(trimPosition>-1&&(trimPosition=url.indexOf('#'))>-1)url=url.substr(0,trimPosition);if(this.options.noCache) url+=(url.contains('?')?'&':'?')+String.uniqueID();if(data&&method=='get'){url+=(url.contains('?')?'&':'?')+data;data=null;} var xhr=this.xhr;if(progressSupport){xhr.onloadstart=this.loadstart.bind(this);xhr.onprogress=this.progress.bind(this);} xhr.open(method.toUpperCase(),url,this.options.async,this.options.user,this.options.password);if(this.options.user&&'withCredentials'in xhr)xhr.withCredentials=true;xhr.onreadystatechange=this.onStateChange.bind(this);Object.each(this.headers,function(value,key){try{xhr.setRequestHeader(key,value);}catch(e){this.fireEvent('exception',[key,value]);}},this);this.fireEvent('request');xhr.send(data);if(!this.options.async)this.onStateChange();else 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 xhr=this.xhr;xhr.abort();clearTimeout(this.timer);xhr.onreadystatechange=empty;if(progressSupport)xhr.onprogress=xhr.onloadstart=empty;this.xhr=new Browser.Request();this.fireEvent('cancel');return this;}});var methods={};['get','post','put','delete','GET','POST','PUT','DELETE'].each(function(method){methods[method]=function(data){var object={method:method};if(data!=null)object.data=data;return this.send(object);};});Request.implement(methods);Element.Properties.send={set:function(options){var send=this.get('send').cancel();send.setOptions(options);return this;},get:function(){var send=this.retrieve('send');if(!send){send=new Request({data:this,link:'cancel',method:this.get('method')||'post',url:this.get('action')});this.store('send',send);} return send;}};Element.implement({send:function(url){var sender=this.get('send');sender.send({data:this,url:url||sender.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(text){var options=this.options,response=this.response;response.html=text.stripScripts(function(script){response.javascript=script;});var match=response.html.match(/]*>([\s\S]*?)<\/body>/i);if(match)response.html=match[1];var temp=new Element('div').set('html',response.html);response.tree=temp.childNodes;response.elements=temp.getElements(options.filter||'*');if(options.filter)response.tree=response.elements;if(options.update){var update=document.id(options.update).empty();if(options.filter)update.adopt(response.elements);else update.set('html',response.html);}else if(options.append){var append=document.id(options.append);if(options.filter)response.elements.reverse().inject(append);else append.adopt(temp.getChildren());} if(options.evalScripts)Browser.exec(response.javascript);this.onSuccess(response.tree,response.elements,response.html,response.javascript);}});Element.Properties.load={set:function(options){var load=this.get('load').cancel();load.setOptions(options);return this;},get:function(){var load=this.retrieve('load');if(!load){load=new Request.HTML({data:this,link:'cancel',update:this,method:'get'});this.store('load',load);} return load;}};Element.implement({load:function(){this.get('load').send(Array.link(arguments,{data:Type.isObject,url:Type.isString}));return this;}});if(typeof JSON=='undefined')this.JSON={};JSON=new Hash({stringify:JSON.stringify,parse:JSON.parse});(function(){var special={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};var escape=function(chr){return special[chr]||'\\u'+('0000'+chr.charCodeAt(0).toString(16)).slice(-4);};JSON.validate=function(string){string=string.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,'');return(/^[\],:{}\s]*$/).test(string);};JSON.encode=JSON.stringify?function(obj){return JSON.stringify(obj);}:function(obj){if(obj&&obj.toJSON)obj=obj.toJSON();switch(typeOf(obj)){case'string':return'"'+obj.replace(/[\x00-\x1f\\"]/g,escape)+'"';case'array':return'['+obj.map(JSON.encode).clean()+']';case'object':case'hash':var string=[];Object.each(obj,function(value,key){var json=JSON.encode(value);if(json)string.push(JSON.encode(key)+':'+json);});return'{'+string+'}';case'number':case'boolean':return''+obj;case'null':return'null';} return null;};JSON.decode=function(string,secure){if(!string||typeOf(string)!='string')return null;if(secure||JSON.secure){if(JSON.parse)return JSON.parse(string);if(!JSON.validate(string))throw new Error('JSON could not decode the input; security is enabled and the value is not secure.');} return eval('('+string+')');};})();Request.JSON=new Class({Extends:Request,options:{secure:true},initialize:function(options){this.parent(options);Object.append(this.headers,{'Accept':'application/json','X-Request':'JSON'});},success:function(text){var json;try{json=this.response.json=JSON.decode(text,this.options.secure);}catch(error){this.fireEvent('error',[text,error]);return;} if(json==null)this.onFailure();else this.onSuccess(json,text);}});var Cookie=new Class({Implements:Options,options:{path:'/',domain:false,duration:false,secure:false,document:document,encode:true},initialize:function(key,options){this.key=key;this.setOptions(options);},write:function(value){if(this.options.encode)value=encodeURIComponent(value);if(this.options.domain)value+='; domain='+this.options.domain;if(this.options.path)value+='; path='+this.options.path;if(this.options.duration){var date=new Date();date.setTime(date.getTime()+this.options.duration*24*60*60*1000);value+='; expires='+date.toGMTString();} if(this.options.secure)value+='; secure';this.options.document.cookie=this.key+'='+value;return this;},read:function(){var value=this.options.document.cookie.match('(?:^|;)\\s*'+this.key.escapeRegExp()+'=([^;]*)');return(value)?decodeURIComponent(value[1]):null;},dispose:function(){new Cookie(this.key,Object.merge({},this.options,{duration:-1})).write('');return this;}});Cookie.write=function(key,value,options){return new Cookie(key,options).write(value);};Cookie.read=function(key){return new Cookie(key).read();};Cookie.dispose=function(key,options){return new Cookie(key,options).dispose();};(function(window,document){var ready,loaded,checks=[],shouldPoll,timer,testElement=document.createElement('div');var domready=function(){clearTimeout(timer);if(ready)return;Browser.loaded=ready=true;document.removeListener('DOMContentLoaded',domready).removeListener('readystatechange',check);document.fireEvent('domready');window.fireEvent('domready');};var check=function(){for(var i=checks.length;i--;)if(checks[i]()){domready();return true;} return false;};var poll=function(){clearTimeout(timer);if(!check())timer=setTimeout(poll,10);};document.addListener('DOMContentLoaded',domready);var doScrollWorks=function(){try{testElement.doScroll();return true;}catch(e){} return false;};if(testElement.doScroll&&!doScrollWorks()){checks.push(doScrollWorks);shouldPoll=true;} if(document.readyState)checks.push(function(){var state=document.readyState;return(state=='loaded'||state=='complete');});if('onreadystatechange'in document)document.addListener('readystatechange',check);else shouldPoll=true;if(shouldPoll)poll();Element.Events.domready={onAdd:function(fn){if(ready)fn.call(this);}};Element.Events.load={base:'load',onAdd:function(fn){if(loaded&&this==window)fn.call(this);},condition:function(){if(this==window){domready();delete Element.Events.load;} return true;}};window.addEvent('load',function(){loaded=true;});})(window,document);(function(){var Swiff=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(path,options){this.instance='Swiff_'+String.uniqueID();this.setOptions(options);options=this.options;var id=this.id=options.id||this.instance;var container=document.id(options.container);Swiff.CallBacks[this.instance]={};var params=options.params,vars=options.vars,callBacks=options.callBacks;var properties=Object.append({height:options.height,width:options.width},options.properties);var self=this;for(var callBack in callBacks){Swiff.CallBacks[this.instance][callBack]=(function(option){return function(){return option.apply(self.object,arguments);};})(callBacks[callBack]);vars[callBack]='Swiff.CallBacks.'+this.instance+'.'+callBack;} params.flashVars=Object.toQueryString(vars);if(Browser.ie){properties.classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';params.movie=path;}else{properties.type='application/x-shockwave-flash';} properties.data=path;var build='';} build+='';this.object=((container)?container.empty():new Element('div')).set('html',build).firstChild;},replaces:function(element){element=document.id(element,true);element.parentNode.replaceChild(this.toElement(),element);return this;},inject:function(element){document.id(element,true).appendChild(this.toElement());return this;},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].append(arguments));}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction(''+__flash__argumentsToXML(arguments,2)+'');return eval(rs);};})();MooTools.More={'version':'1.4.0.1','build':'a4244edf2aa97ac8a196fc96082dd35af1abab87'};(function(){Events.Pseudos=function(pseudos,addEvent,removeEvent){var storeKey='_monitorEvents:';var storageOf=function(object){return{store:object.store?function(key,value){object.store(storeKey+key,value);}:function(key,value){(object._monitorEvents||(object._monitorEvents={}))[key]=value;},retrieve:object.retrieve?function(key,dflt){return object.retrieve(storeKey+key,dflt);}:function(key,dflt){if(!object._monitorEvents)return dflt;return object._monitorEvents[key]||dflt;}};};var splitType=function(type){if(type.indexOf(':')==-1||!pseudos)return null;var parsed=Slick.parse(type).expressions[0][0],parsedPseudos=parsed.pseudos,l=parsedPseudos.length,splits=[];while(l--){var pseudo=parsedPseudos[l].key,listener=pseudos[pseudo];if(listener!=null)splits.push({event:parsed.tag,value:parsedPseudos[l].value,pseudo:pseudo,original:type,listener:listener});} return splits.length?splits:null;};return{addEvent:function(type,fn,internal){var split=splitType(type);if(!split)return addEvent.call(this,type,fn,internal);var storage=storageOf(this),events=storage.retrieve(type,[]),eventType=split[0].event,args=Array.slice(arguments,2),stack=fn,self=this;split.each(function(item){var listener=item.listener,stackFn=stack;if(listener==false)eventType+=':'+item.pseudo+'('+item.value+')';else stack=function(){listener.call(self,item,stackFn,arguments,stack);};});events.include({type:eventType,event:fn,monitor:stack});storage.store(type,events);if(type!=eventType)addEvent.apply(this,[type,fn].concat(args));return addEvent.apply(this,[eventType,stack].concat(args));},removeEvent:function(type,fn){var split=splitType(type);if(!split)return removeEvent.call(this,type,fn);var storage=storageOf(this),events=storage.retrieve(type);if(!events)return this;var args=Array.slice(arguments,2);removeEvent.apply(this,[type,fn].concat(args));events.each(function(monitor,i){if(!fn||monitor.event==fn)removeEvent.apply(this,[monitor.type,monitor.monitor].concat(args));delete events[i];},this);storage.store(type,events);return this;}};};var pseudos={once:function(split,fn,args,monitor){fn.apply(this,args);this.removeEvent(split.event,monitor).removeEvent(split.original,fn);},throttle:function(split,fn,args){if(!fn._throttled){fn.apply(this,args);fn._throttled=setTimeout(function(){fn._throttled=false;},split.value||250);}},pause:function(split,fn,args){clearTimeout(fn._pause);fn._pause=fn.delay(split.value||250,this,args);}};Events.definePseudo=function(key,listener){pseudos[key]=listener;return this;};Events.lookupPseudo=function(key){return pseudos[key];};var proto=Events.prototype;Events.implement(Events.Pseudos(pseudos,proto.addEvent,proto.removeEvent));['Request','Fx'].each(function(klass){if(this[klass])this[klass].implement(Events.prototype);});})();Class.refactor=function(original,refactors){Object.each(refactors,function(item,name){var origin=original.prototype[name];origin=(origin&&origin.$origin)||origin||function(){};original.implement(name,(typeof item=='function')?function(){var old=this.previous;this.previous=origin;var value=item.apply(this,arguments);this.previous=old;return value;}:item);});return original;};Class.Mutators.Binds=function(binds){if(!this.prototype.initialize)this.implement('initialize',function(){});return Array.from(binds).concat(this.prototype.Binds||[]);};Class.Mutators.initialize=function(initialize){return function(){Array.from(this.Binds).each(function(name){var original=this[name];if(original)this[name]=original.bind(this);},this);return initialize.apply(this,arguments);};};Class.Occlude=new Class({occlude:function(property,element){element=document.id(element||this.element);var instance=element.retrieve(property||this.property);if(instance&&!this.occluded) return(this.occluded=instance);this.occluded=false;element.store(property||this.property,this);return this.occluded;}});(function(){var wait={wait:function(duration){return this.chain(function(){this.callChain.delay(duration==null?500:duration,this);return this;}.bind(this));}};Chain.implement(wait);if(this.Fx)Fx.implement(wait);if(this.Element&&Element.implement&&this.Fx){Element.implement({chains:function(effects){Array.from(effects||['tween','morph','reveal']).each(function(effect){effect=this.get(effect);if(!effect)return;effect.setOptions({link:'chain'});},this);return this;},pauseFx:function(duration,effect){this.chains(effect).get(effect||'tween').wait(duration);return this;}});}})();(function(nil){Array.implement({min:function(){return Math.min.apply(null,this);},max:function(){return Math.max.apply(null,this);},average:function(){return this.length?this.sum()/this.length:0;},sum:function(){var result=0,l=this.length;if(l){while(l--)result+=this[l];} return result;},unique:function(){return[].combine(this);},shuffle:function(){for(var i=this.length;i&&--i;){var temp=this[i],r=Math.floor(Math.random()*(i+1));this[i]=this[r];this[r]=temp;} return this;},reduce:function(fn,value){for(var i=0,l=this.length;i3&&dayOfMonth<21)?'th':['th','st','nd','rd','th'][Math.min(dayOfMonth%10,4)];},lessThanMinuteAgo:'less than a minute ago',minuteAgo:'about a minute ago',minutesAgo:'{delta} minutes ago',hourAgo:'about an hour ago',hoursAgo:'about {delta} hours ago',dayAgo:'1 day ago',daysAgo:'{delta} days ago',weekAgo:'1 week ago',weeksAgo:'{delta} weeks ago',monthAgo:'1 month ago',monthsAgo:'{delta} months ago',yearAgo:'1 year ago',yearsAgo:'{delta} years ago',lessThanMinuteUntil:'less than a minute from now',minuteUntil:'about a minute from now',minutesUntil:'{delta} minutes from now',hourUntil:'about an hour from now',hoursUntil:'about {delta} hours from now',dayUntil:'1 day from now',daysUntil:'{delta} days from now',weekUntil:'1 week from now',weeksUntil:'{delta} weeks from now',monthUntil:'1 month from now',monthsUntil:'{delta} months from now',yearUntil:'1 year from now',yearsUntil:'{delta} years from now'});(function(){var Date=this.Date;var DateMethods=Date.Methods={ms:'Milliseconds',year:'FullYear',min:'Minutes',mo:'Month',sec:'Seconds',hr:'Hours'};['Date','Day','FullYear','Hours','Milliseconds','Minutes','Month','Seconds','Time','TimezoneOffset','Week','Timezone','GMTOffset','DayOfYear','LastMonth','LastDayOfMonth','UTCDate','UTCDay','UTCFullYear','AMPM','Ordinal','UTCHours','UTCMilliseconds','UTCMinutes','UTCMonth','UTCSeconds','UTCMilliseconds'].each(function(method){Date.Methods[method.toLowerCase()]=method;});var pad=function(n,digits,string){if(digits==1)return n;return n28)return 1;if(month==0&&startOfWeek<-2){date=new Date(date).decrement('day',dayOfWeek);dayOfWeek=0;} firstDayOfYear=new Date(date.get('year'),0,1).get('day')||7;if(firstDayOfYear>4)dividend=-7;}else{firstDayOfYear=new Date(date.get('year'),0,1).get('day');} dividend+=date.get('dayofyear');dividend+=6-dayOfWeek;dividend+=(7+firstDayOfYear-firstDayOfWeek)%7;return(dividend/7);},getOrdinal:function(day){return Date.getMsg('ordinal',day||this.get('date'));},getTimezone:function(){return this.toString().replace(/^.*? ([A-Z]{3}).[0-9]{4}.*$/,'$1').replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,'$1$2$3');},getGMTOffset:function(){var off=this.get('timezoneOffset');return((off>0)?'-':'+')+pad((off.abs()/60).floor(),2)+pad(off%60,2);},setAMPM:function(ampm){ampm=ampm.toUpperCase();var hr=this.get('hr');if(hr>11&&m=='AM')return this.decrement('hour',12);else if(hr<12&&m=='PM')return this.increment('hour',12);return this;},getAMPM:function(){return(this.get('hr')<12)?'AM':'PM';},parse:function(str){this.set('time',Date.parse(str));return this;},isValid:function(date){if(!date)date=this;return typeOf(date)=='date'&&!isNaN(date.valueOf());},format:function(format){if(!this.isValid())return'invalid date';if(!format)format='%x %X';if(typeof format=='string')format=formats[format.toLowerCase()]||format;if(typeof format=='function')return format(this);var d=this;return format.replace(/%([a-z%])/gi,function($0,$1){switch($1){case'a':return Date.getMsg('days_abbr')[d.get('day')];case'A':return Date.getMsg('days')[d.get('day')];case'b':return Date.getMsg('months_abbr')[d.get('month')];case'B':return Date.getMsg('months')[d.get('month')];case'c':return d.format('%a %b %d %H:%M:%S %Y');case'd':return pad(d.get('date'),2);case'e':return pad(d.get('date'),2,' ');case'H':return pad(d.get('hr'),2);case'I':return pad((d.get('hr')%12)||12,2);case'j':return pad(d.get('dayofyear'),3);case'k':return pad(d.get('hr'),2,' ');case'l':return pad((d.get('hr')%12)||12,2,' ');case'L':return pad(d.get('ms'),3);case'm':return pad((d.get('mo')+1),2);case'M':return pad(d.get('min'),2);case'o':return d.get('ordinal');case'p':return Date.getMsg(d.get('ampm'));case's':return Math.round(d/1000);case'S':return pad(d.get('seconds'),2);case'T':return d.format('%H:%M:%S');case'U':return pad(d.get('week'),2);case'w':return d.get('day');case'x':return d.format(Date.getMsg('shortDate'));case'X':return d.format(Date.getMsg('shortTime'));case'y':return d.get('year').toString().substr(2);case'Y':return d.get('year');case'z':return d.get('GMTOffset');case'Z':return d.get('Timezone');} return $1;});},toISOString:function(){return this.format('iso8601');}}).alias({toJSON:'toISOString',compare:'diff',strftime:'format'});var rfcDayAbbr=['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],rfcMonthAbbr=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];var formats={db:'%Y-%m-%d %H:%M:%S',compact:'%Y%m%dT%H%M%S','short':'%d %b %H:%M','long':'%B %d, %Y %H:%M',rfc822:function(date){return rfcDayAbbr[date.get('day')]+date.format(', %d ')+rfcMonthAbbr[date.get('month')]+date.format(' %Y %H:%M:%S %Z');},rfc2822:function(date){return rfcDayAbbr[date.get('day')]+date.format(', %d ')+rfcMonthAbbr[date.get('month')]+date.format(' %Y %H:%M:%S %z');},iso8601:function(date){return(date.getUTCFullYear()+'-'+ pad(date.getUTCMonth()+1,2)+'-'+ pad(date.getUTCDate(),2)+'T'+ pad(date.getUTCHours(),2)+':'+ pad(date.getUTCMinutes(),2)+':'+ pad(date.getUTCSeconds(),2)+'.'+ pad(date.getUTCMilliseconds(),3)+'Z');}};var parsePatterns=[],nativeParse=Date.parse;var parseWord=function(type,word,num){var ret=-1,translated=Date.getMsg(type+'s');switch(typeOf(word)){case'object':ret=translated[word.get(type)];break;case'number':ret=translated[word];if(!ret)throw new Error('Invalid '+type+' index: '+word);break;case'string':var match=translated.filter(function(name){return this.test(name);},new RegExp('^'+word,'i'));if(!match.length)throw new Error('Invalid '+type+' string');if(match.length>1)throw new Error('Ambiguous '+type);ret=match[0];} return(num)?translated.indexOf(ret):ret;};var startCentury=1900,startYear=70;Date.extend({getMsg:function(key,args){return Locale.get('Date.'+key,args);},units:{ms:Function.from(1),second:Function.from(1000),minute:Function.from(60000),hour:Function.from(3600000),day:Function.from(86400000),week:Function.from(608400000),month:function(month,year){var d=new Date;return Date.daysInMonth(month!=null?month:d.get('mo'),year!=null?year:d.get('year'))*86400000;},year:function(year){year=year||new Date().get('year');return Date.isLeapYear(year)?31622400000:31536000000;}},daysInMonth:function(month,year){return[31,Date.isLeapYear(year)?29:28,31,30,31,30,31,31,30,31,30,31][month];},isLeapYear:function(year){return((year%4===0)&&(year%100!==0))||(year%400===0);},parse:function(from){var t=typeOf(from);if(t=='number')return new Date(from);if(t!='string')return from;from=from.clean();if(!from.length)return null;var parsed;parsePatterns.some(function(pattern){var bits=pattern.re.exec(from);return(bits)?(parsed=pattern.handler(bits)):false;});if(!(parsed&&parsed.isValid())){parsed=new Date(nativeParse(from));if(!(parsed&&parsed.isValid()))parsed=new Date(from.toInt());} return parsed;},parseDay:function(day,num){return parseWord('day',day,num);},parseMonth:function(month,num){return parseWord('month',month,num);},parseUTC:function(value){var localDate=new Date(value);var utcSeconds=Date.UTC(localDate.get('year'),localDate.get('mo'),localDate.get('date'),localDate.get('hr'),localDate.get('min'),localDate.get('sec'),localDate.get('ms'));return new Date(utcSeconds);},orderIndex:function(unit){return Date.getMsg('dateOrder').indexOf(unit)+1;},defineFormat:function(name,format){formats[name]=format;return this;},parsePatterns:parsePatterns,defineParser:function(pattern){parsePatterns.push((pattern.re&&pattern.handler)?pattern:build(pattern));return this;},defineParsers:function(){Array.flatten(arguments).each(Date.defineParser);return this;},define2DigitYearStart:function(year){startYear=year%100;startCentury=year-startYear;return this;}}).extend({defineFormats:Date.defineFormat.overloadSetter()});var regexOf=function(type){return new RegExp('(?:'+Date.getMsg(type).map(function(name){return name.substr(0,3);}).join('|')+')[a-z]*');};var replacers=function(key){switch(key){case'T':return'%H:%M:%S';case'x':return((Date.orderIndex('month')==1)?'%m[-./]%d':'%d[-./]%m')+'([-./]%y)?';case'X':return'%H([.:]%M)?([.:]%S([.:]%s)?)? ?%p? ?%z?';} return null;};var keys={d:/[0-2]?[0-9]|3[01]/,H:/[01]?[0-9]|2[0-3]/,I:/0?[1-9]|1[0-2]/,M:/[0-5]?\d/,s:/\d+/,o:/[a-z]*/,p:/[ap]\.?m\.?/,y:/\d{2}|\d{4}/,Y:/\d{4}/,z:/Z|[+-]\d{2}(?::?\d{2})?/};keys.m=keys.I;keys.S=keys.M;var currentLanguage;var recompile=function(language){currentLanguage=language;keys.a=keys.A=regexOf('days');keys.b=keys.B=regexOf('months');parsePatterns.each(function(pattern,i){if(pattern.format)parsePatterns[i]=build(pattern.format);});};var build=function(format){if(!currentLanguage)return{format:format};var parsed=[];var re=(format.source||format).replace(/%([a-z])/gi,function($0,$1){return replacers($1)||$0;}).replace(/\((?!\?)/g,'(?:').replace(/ (?!\?|\*)/g,',? ').replace(/%([a-z%])/gi,function($0,$1){var p=keys[$1];if(!p)return $1;parsed.push($1);return'('+p.source+')';}).replace(/\[a-z\]/gi,'[a-z\\u00c0-\\uffff;\&]');return{format:format,re:new RegExp('^'+re+'$','i'),handler:function(bits){bits=bits.slice(1).associate(parsed);var date=new Date().clearTime(),year=bits.y||bits.Y;if(year!=null)handle.call(date,'y',year);if('d'in bits)handle.call(date,'d',1);if('m'in bits||bits.b||bits.B)handle.call(date,'m',1);for(var key in bits)handle.call(date,key,bits[key]);return date;}};};var handle=function(key,value){if(!value)return this;switch(key){case'a':case'A':return this.set('day',Date.parseDay(value,true));case'b':case'B':return this.set('mo',Date.parseMonth(value,true));case'd':return this.set('date',value);case'H':case'I':return this.set('hr',value);case'm':return this.set('mo',value-1);case'M':return this.set('min',value);case'p':return this.set('ampm',value.replace(/\./g,''));case'S':return this.set('sec',value);case's':return this.set('ms',('0.'+value)*1000);case'w':return this.set('day',value);case'Y':return this.set('year',value);case'y':value=+value;if(value<100)value+=startCentury+(value0.75*interval)msg=unit;break;} delta/=interval;msg=unit+'s';} delta=delta.round();return Date.getMsg(msg+suffix,delta).substitute({delta:delta});}}).defineParsers({re:/^(?:tod|tom|yes)/i,handler:function(bits){var d=new Date().clearTime();switch(bits[0]){case'tom':return d.increment();case'yes':return d.decrement();default:return d;}}},{re:/^(next|last) ([a-z]+)$/i,handler:function(bits){var d=new Date().clearTime();var day=d.getDay();var newDay=Date.parseDay(bits[2],true);var addDays=newDay-day;if(newDay<=day)addDays+=7;if(bits[1]=='last')addDays-=7;return d.set('date',d.getDate()+addDays);}}).alias('timeAgoInWords','timeDiffInWords');Locale.define('en-US','Number',{decimal:'.',group:',',currency:{prefix:'$ '}});Number.implement({format:function(options){var value=this;options=options?Object.clone(options):{};var getOption=function(key){if(options[key]!=null)return options[key];return Locale.get('Number.'+key);};var negative=value<0,decimal=getOption('decimal'),precision=getOption('precision'),group=getOption('group'),decimals=getOption('decimals');if(negative){var negativeLocale=getOption('negative')||{};if(negativeLocale.prefix==null&&negativeLocale.suffix==null)negativeLocale.prefix='-';['prefix','suffix'].each(function(key){if(negativeLocale[key])options[key]=getOption(key)+negativeLocale[key];});value=-value;} var prefix=getOption('prefix'),suffix=getOption('suffix');if(decimals!==''&&decimals>=0&&decimals<=20)value=value.toFixed(decimals);if(precision>=1&&precision<=21)value=(+value).toPrecision(precision);value+='';var index;if(getOption('scientific')===false&&value.indexOf('e')>-1){var match=value.split('e'),zeros=+match[1];value=match[0].replace('.','');if(zeros<0){zeros=-zeros-1;index=match[0].indexOf('.');if(index>-1)zeros-=index-1;while(zeros--)value='0'+value;value='0.'+value;}else{index=match[0].lastIndexOf('.');if(index>-1)zeros-=match[0].length-index-1;while(zeros--)value+='0';}} if(decimal!='.')value=value.replace('.',decimal);if(group){index=value.lastIndexOf(decimal);index=(index>-1)?index:value.length;var newOutput=value.substring(index),i=index;while(i--){if((index-i-1)%3==0&&i!=(index-1))newOutput=group+newOutput;newOutput=value.charAt(i)+newOutput;} value=newOutput;} if(prefix)value=prefix+value;if(suffix)value+=suffix;return value;},formatCurrency:function(decimals){var locale=Locale.get('Number.currency')||{};if(locale.scientific==null)locale.scientific=false;locale.decimals=decimals!=null?decimals:(locale.decimals==null?2:locale.decimals);return this.format(locale);},formatPercentage:function(decimals){var locale=Locale.get('Number.percentage')||{};if(locale.suffix==null)locale.suffix='%';locale.decimals=decimals!=null?decimals:(locale.decimals==null?2:locale.decimals);return this.format(locale);}});(function(){var special={'a':/[à áâãäåăą]/g,'A':/[ÀÁÂÃÄÅĂĄ]/g,'c':/[ćčç]/g,'C':/[ĆČÇ]/g,'d':/[ďđ]/g,'D':/[ĎÐ]/g,'e':/[èéêëěę]/g,'E':/[ÈÉÊËĚĘ]/g,'g':/[ÄŸ]/g,'G':/[Äž]/g,'i':/[ìíîï]/g,'I':/[ÌÍÎÏ]/g,'l':/[ĺľł]/g,'L':/[ĹĽŁ]/g,'n':/[ñňń]/g,'N':/[ÑŇŃ]/g,'o':/[òóôõöøő]/g,'O':/[ÒÓÔÕÖØ]/g,'r':/[řŕ]/g,'R':/[ŘŔ]/g,'s':/[Å¡Å¡ÅŸ]/g,'S':/[ŠŞŚ]/g,'t':/[ťţ]/g,'T':/[ŤŢ]/g,'ue':/[ü]/g,'UE':/[Ãœ]/g,'u':/[ùúûůµ]/g,'U':/[ÙÚÛŮ]/g,'y':/[ÿý]/g,'Y':/[ŸÝ]/g,'z':/[žźż]/g,'Z':/[ŽŹŻ]/g,'th':/[þ]/g,'TH':/[Þ]/g,'dh':/[ð]/g,'DH':/[Ð]/g,'ss':/[ß]/g,'oe':/[Å“]/g,'OE':/[Å’]/g,'ae':/[æ]/g,'AE':/[Æ]/g},tidy={' ':/[\xa0\u2002\u2003\u2009]/g,'*':/[\xb7]/g,'\'':/[\u2018\u2019]/g,'"':/[\u201c\u201d]/g,'...':/[\u2026]/g,'-':/[\u2013]/g,'»':/[\uFFFD]/g};var walk=function(string,replacements){var result=string,key;for(key in replacements)result=result.replace(replacements[key],key);return result;};var getRegexForTag=function(tag,contents){tag=tag||'';var regstr=contents?"<"+tag+"(?!\\w)[^>]*>([\\s\\S]*?)<\/"+tag+"(?!\\w)>":"<\/?"+tag+"([^>]+)?>",reg=new RegExp(regstr,"gi");return reg;};String.implement({standardize:function(){return walk(this,special);},repeat:function(times){return new Array(times+1).join(this);},pad:function(length,str,direction){if(this.length>=length)return this;var pad=(str==null?' ':''+str).repeat(length-this.length).substr(0,length-this.length);if(!direction||direction=='right')return this+pad;if(direction=='left')return pad+this;return pad.substr(0,(pad.length/2).floor())+this+pad.substr(0,(pad.length/2).ceil());},getTags:function(tag,contents){return this.match(getRegexForTag(tag,contents))||[];},stripTags:function(tag,contents){return this.replace(getRegexForTag(tag,contents),'');},tidy:function(){return walk(this,tidy);},truncate:function(max,trail,atChar){var string=this;if(trail==null&&arguments.length==1)trail='…';if(string.length>max){string=string.substring(0,max);if(atChar){var index=string.lastIndexOf(atChar);if(index!=-1)string=string.substr(0,index);} if(trail)string+=trail;} return string;}});})();String.implement({parseQueryString:function(decodeKeys,decodeValues){if(decodeKeys==null)decodeKeys=true;if(decodeValues==null)decodeValues=true;var vars=this.split(/[&;]/),object={};if(!vars.length)return object;vars.each(function(val){var index=val.indexOf('=')+1,value=index?val.substr(index):'',keys=index?val.substr(0,index-1).match(/([^\]\[]+|(\B)(?=\]))/g):[val],obj=object;if(!keys)return;if(decodeValues)value=decodeURIComponent(value);keys.each(function(key,i){if(decodeKeys)key=decodeURIComponent(key);var current=obj[key];if(i0)result.pop();else if(dir!='.')result.push(dir);});return result.join('/')+'/';},combine:function(bits){return bits.value||bits.scheme+'://'+ (bits.user?bits.user+(bits.password?':'+bits.password:'')+'@':'')+ (bits.host||'')+(bits.port&&bits.port!=this.schemes[bits.scheme]?':'+bits.port:'')+ (bits.directory||'/')+(bits.file||'')+ (bits.query?'?'+bits.query:'')+ (bits.fragment?'#'+bits.fragment:'');},set:function(part,value,base){if(part=='value'){var scheme=value.match(URI.regs.scheme);if(scheme)scheme=scheme[1];if(scheme&&this.schemes[scheme.toLowerCase()]==null)this.parsed={scheme:scheme,value:value};else this.parsed=this.parse(value,(base||this).parsed)||(scheme?{scheme:scheme,value:value}:{value:value});}else if(part=='data'){this.setData(value);}else{this.parsed[part]=value;} return this;},get:function(part,base){switch(part){case'value':return this.combine(this.parsed,base?base.parsed:false);case'data':return this.getData();} return this.parsed[part]||'';},go:function(){document.location.href=this.toString();},toURI:function(){return this;},getData:function(key,part){var qs=this.get(part||'query');if(!(qs||qs===0))return key?null:{};var obj=qs.parseQueryString();return key?obj[key]:obj;},setData:function(values,merge,part){if(typeof values=='string'){var data=this.getData();data[arguments[0]]=arguments[1];values=data;}else if(merge){values=Object.merge(this.getData(),values);} return this.set(part||'query',Object.toQueryString(values));},clearData:function(part){return this.set(part||'query','');},toString:toString,valueOf:toString});URI.regs={endSlash:/\/$/,scheme:/^(\w+):/,directoryDot:/\.\/|\.$/};URI.base=new URI(Array.from(document.getElements('base[href]',true)).getLast(),{base:document.location});String.implement({toURI:function(options){return new URI(this,options);}});})();URI=Class.refactor(URI,{combine:function(bits,base){if(!base||bits.scheme!=base.scheme||bits.host!=base.host||bits.port!=base.port) return this.previous.apply(this,arguments);var end=bits.file+(bits.query?'?'+bits.query:'')+(bits.fragment?'#'+bits.fragment:'');if(!base.directory)return(bits.directory||(bits.file?'':'./'))+end;var baseDir=base.directory.split('/'),relDir=bits.directory.split('/'),path='',offset;var i=0;for(offset=0;offset=0||offset.parentPositioned||options.allowNegative)?position.x:0).toInt();position.top=((position.y>=0||offset.parentPositioned||options.allowNegative)?position.y:0).toInt();local.toMinMax(position,options);if(options.relFixedPosition||relativeTo.getStyle('position')=='fixed')local.toRelFixedPosition(relativeTo,position);if(options.ignoreScroll)local.toIgnoreScroll(relativeTo,position);if(options.ignoreMargins)local.toIgnoreMargins(position,options);position.left=Math.ceil(position.left);position.top=Math.ceil(position.top);delete position.x;delete position.y;return position;},setPositionCoordinates:function(options,position,relativeTo){var offsetY=options.offset.y,offsetX=options.offset.x,calc=(relativeTo==document.body)?window.getScroll():relativeTo.getPosition(),top=calc.y,left=calc.x,winSize=window.getSize();switch(options.position.x){case'left':position.x=left+offsetX;break;case'right':position.x=left+offsetX+relativeTo.offsetWidth;break;default:position.x=left+((relativeTo==document.body?winSize.x:relativeTo.offsetWidth)/2)+offsetX;break;} switch(options.position.y){case'top':position.y=top+offsetY;break;case'bottom':position.y=top+offsetY+relativeTo.offsetHeight;break;default:position.y=top+((relativeTo==document.body?winSize.y:relativeTo.offsetHeight)/2)+offsetY;break;}},toMinMax:function(position,options){var xy={left:'x',top:'y'},value;['minimum','maximum'].each(function(minmax){['left','top'].each(function(lr){value=options[minmax]?options[minmax][xy[lr]]:null;if(value!=null&&((minmax=='minimum')?position[lr]value))position[lr]=value;});});},toRelFixedPosition:function(relativeTo,position){var winScroll=window.getScroll();position.top+=winScroll.y;position.left+=winScroll.x;},toIgnoreScroll:function(relativeTo,position){var relScroll=relativeTo.getScroll();position.top-=relScroll.y;position.left-=relScroll.x;},toIgnoreMargins:function(position,options){position.left+=options.edge.x=='right'?options.dimensions['margin-right']:(options.edge.x!='center'?-options.dimensions['margin-left']:-options.dimensions['margin-left']+((options.dimensions['margin-right']+options.dimensions['margin-left'])/2));position.top+=options.edge.y=='bottom'?options.dimensions['margin-bottom']:(options.edge.y!='center'?-options.dimensions['margin-top']:-options.dimensions['margin-top']+((options.dimensions['margin-bottom']+options.dimensions['margin-top'])/2));},toEdge:function(position,options){var edgeOffset={},dimensions=options.dimensions,edge=options.edge;switch(edge.x){case'left':edgeOffset.x=0;break;case'right':edgeOffset.x=-dimensions.x-dimensions.computedRight-dimensions.computedLeft;break;default:edgeOffset.x=-(Math.round(dimensions.totalWidth/2));break;} switch(edge.y){case'top':edgeOffset.y=0;break;case'bottom':edgeOffset.y=-dimensions.y-dimensions.computedTop-dimensions.computedBottom;break;default:edgeOffset.y=-(Math.round(dimensions.totalHeight/2));break;} position.x+=edgeOffset.x;position.y+=edgeOffset.y;},getCoordinateFromValue:function(option){if(typeOf(option)!='string')return option;option=option.toLowerCase();return{x:option.test('left')?'left':(option.test('right')?'right':'center'),y:option.test(/upper|top/)?'top':(option.test('bottom')?'bottom':'center')};}};Element.implement({position:function(options){if(options&&(options.x!=null||options.y!=null)){return(original?original.apply(this,arguments):this);} var position=this.setStyle('position','absolute').calculatePosition(options);return(options&&options.returnPos)?position:this.setStyles(position);},calculatePosition:function(options){return local.getPosition(this,options);}});})(Element.prototype.position);Element.implement({isDisplayed:function(){return this.getStyle('display')!='none';},isVisible:function(){var w=this.offsetWidth,h=this.offsetHeight;return(w==0&&h==0)?false:(w>0&&h>0)?true:this.style.display!='none';},toggle:function(){return this[this.isDisplayed()?'hide':'show']();},hide:function(){var d;try{d=this.getStyle('display');}catch(e){} if(d=='none')return this;return this.store('element:_originalDisplay',d||'').setStyle('display','none');},show:function(display){if(!display&&this.isDisplayed())return this;display=display||this.retrieve('element:_originalDisplay')||'block';return this.setStyle('display',(display=='none')?'block':display);},swapClass:function(remove,add){return this.removeClass(remove).addClass(add);}});Document.implement({clearSelection:function(){if(window.getSelection){var selection=window.getSelection();if(selection&&selection.removeAllRanges)selection.removeAllRanges();}else if(document.selection&&document.selection.empty){try{document.selection.empty();}catch(e){}}}});var IframeShim=new Class({Implements:[Options,Events,Class.Occlude],options:{className:'iframeShim',src:'javascript:false;document.write("");',display:false,zIndex:null,margin:0,offset:{x:0,y:0},browsers:(Browser.ie6||(Browser.firefox&&Browser.version<3&&Browser.Platform.mac))},property:'IframeShim',initialize:function(element,options){this.element=document.id(element);if(this.occlude())return this.occluded;this.setOptions(options);this.makeShim();return this;},makeShim:function(){if(this.options.browsers){var zIndex=this.element.getStyle('zIndex').toInt();if(!zIndex){zIndex=1;var pos=this.element.getStyle('position');if(pos=='static'||!pos)this.element.setStyle('position','relative');this.element.setStyle('zIndex',zIndex);} zIndex=((this.options.zIndex!=null||this.options.zIndex===0)&&zIndex>this.options.zIndex)?this.options.zIndex:zIndex-1;if(zIndex<0)zIndex=1;this.shim=new Element('iframe',{src:this.options.src,scrolling:'no',frameborder:0,styles:{zIndex:zIndex,position:'absolute',border:'none',filter:'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)'},'class':this.options.className}).store('IframeShim',this);var inject=(function(){this.shim.inject(this.element,'after');this[this.options.display?'show':'hide']();this.fireEvent('inject');}).bind(this);if(!IframeShim.ready)window.addEvent('load',inject);else inject();}else{this.position=this.hide=this.show=this.dispose=Function.from(this);}},position:function(){if(!IframeShim.ready||!this.shim)return this;var size=this.element.measure(function(){return this.getSize();});if(this.options.margin!=undefined){size.x=size.x-(this.options.margin*2);size.y=size.y-(this.options.margin*2);this.options.offset.x+=this.options.margin;this.options.offset.y+=this.options.margin;} this.shim.set({width:size.x,height:size.y}).position({relativeTo:this.element,offset:this.options.offset});return this;},hide:function(){if(this.shim)this.shim.setStyle('display','none');return this;},show:function(){if(this.shim)this.shim.setStyle('display','block');return this.position();},dispose:function(){if(this.shim)this.shim.dispose();return this;},destroy:function(){if(this.shim)this.shim.destroy();return this;}});window.addEvent('load',function(){IframeShim.ready=true;});var Mask=new Class({Implements:[Options,Events],Binds:['position'],options:{style:{},'class':'mask',maskMargins:false,useIframeShim:true,iframeShimOptions:{}},initialize:function(target,options){this.target=document.id(target)||document.id(document.body);this.target.store('mask',this);this.setOptions(options);this.render();this.inject();},render:function(){this.element=new Element('div',{'class':this.options['class'],id:this.options.id||'mask-'+String.uniqueID(),styles:Object.merge({},this.options.style,{display:'none'}),events:{click:function(event){this.fireEvent('click',event);if(this.options.hideOnClick)this.hide();}.bind(this)}});this.hidden=true;},toElement:function(){return this.element;},inject:function(target,where){where=where||(this.options.inject?this.options.inject.where:'')||this.target==document.body?'inside':'after';target=target||(this.options.inject&&this.options.inject.target)||this.target;this.element.inject(target,where);if(this.options.useIframeShim){this.shim=new IframeShim(this.element,this.options.iframeShimOptions);this.addEvents({show:this.shim.show.bind(this.shim),hide:this.shim.hide.bind(this.shim),destroy:this.shim.destroy.bind(this.shim)});}},position:function(){this.resize(this.options.width,this.options.height);this.element.position({relativeTo:this.target,position:'topLeft',ignoreMargins:!this.options.maskMargins,ignoreScroll:this.target==document.body});return this;},resize:function(x,y){var opt={styles:['padding','border']};if(this.options.maskMargins)opt.styles.push('margin');var dim=this.target.getComputedSize(opt);if(this.target==document.body){this.element.setStyles({width:0,height:0});var win=window.getScrollSize();if(dim.totalHeight=0&&element.options[element.selectedIndex].value!='');else return((element.get('value')==null)||(element.get('value').length==0));}});Form.Validator.addAllThese([['required',{errorMsg:function(){return Form.Validator.getMsg('required');},test:function(element){return!Form.Validator.getValidator('IsEmpty').test(element);}}],['length',{errorMsg:function(element,props){if(typeOf(props.length)!='null') return Form.Validator.getMsg('length').substitute({length:props.length,elLength:element.get('value').length});else return'';},test:function(element,props){if(typeOf(props.length)!='null')return(element.get('value').length==props.length||element.get('value').length==0);else return true;}}],['minLength',{errorMsg:function(element,props){if(typeOf(props.minLength)!='null') return Form.Validator.getMsg('minLength').substitute({minLength:props.minLength,length:element.get('value').length});else return'';},test:function(element,props){if(typeOf(props.minLength)!='null')return(element.get('value').length>=(props.minLength||0));else return true;}}],['maxLength',{errorMsg:function(element,props){if(typeOf(props.maxLength)!='null') return Form.Validator.getMsg('maxLength').substitute({maxLength:props.maxLength,length:element.get('value').length});else return'';},test:function(element,props){return element.get('value').length<=(props.maxLength||10000);}}],['validate-integer',{errorMsg:Form.Validator.getMsg.pass('integer'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^(-?[1-9]\d*|0)$/).test(element.get('value'));}}],['validate-numeric',{errorMsg:Form.Validator.getMsg.pass('numeric'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^-?(?:0$0(?=\d*\.)|[1-9]|0)\d*(\.\d+)?$/).test(element.get('value'));}}],['validate-digits',{errorMsg:Form.Validator.getMsg.pass('digits'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^[\d() .:\-\+#]+$/.test(element.get('value')));}}],['validate-alpha',{errorMsg:Form.Validator.getMsg.pass('alpha'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^[a-zA-Z]+$/).test(element.get('value'));}}],['validate-alphanum',{errorMsg:Form.Validator.getMsg.pass('alphanum'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||!(/\W/).test(element.get('value'));}}],['validate-date',{errorMsg:function(element,props){if(Date.parse){var format=props.dateFormat||'%x';return Form.Validator.getMsg('dateSuchAs').substitute({date:new Date().format(format)});}else{return Form.Validator.getMsg('dateInFormatMDY');}},test:function(element,props){if(Form.Validator.getValidator('IsEmpty').test(element))return true;var dateLocale=Locale.getCurrent().sets.Date,dateNouns=new RegExp([dateLocale.days,dateLocale.days_abbr,dateLocale.months,dateLocale.months_abbr].flatten().join('|'),'i'),value=element.get('value'),wordsInValue=value.match(/[a-z]+/gi);if(wordsInValue&&!wordsInValue.every(dateNouns.exec,dateNouns))return false;var date=Date.parse(value),format=props.dateFormat||'%x',formatted=date.format(format);if(formatted!='invalid date')element.set('value',formatted);return date.isValid();}}],['validate-email',{errorMsg:Form.Validator.getMsg.pass('email'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]\.?){0,63}[a-z0-9!#$%&'*+\/=?^_`{|}~-]@(?:(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\])$/i).test(element.get('value'));}}],['validate-url',{errorMsg:Form.Validator.getMsg.pass('url'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^(https?|ftp|rmtp|mms):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i).test(element.get('value'));}}],['validate-currency-dollar',{errorMsg:Form.Validator.getMsg.pass('currencyDollar'),test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^\$?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/).test(element.get('value'));}}],['validate-one-required',{errorMsg:Form.Validator.getMsg.pass('oneRequired'),test:function(element,props){var p=document.id(props['validate-one-required'])||element.getParent(props['validate-one-required']);return p.getElements('input').some(function(el){if(['checkbox','radio'].contains(el.get('type')))return el.get('checked');return el.get('value');});}}]]);Element.Properties.validator={set:function(options){this.get('validator').setOptions(options);},get:function(){var validator=this.retrieve('validator');if(!validator){validator=new Form.Validator(this);this.store('validator',validator);} return validator;}};Element.implement({validate:function(options){if(options)this.set('validator',options);return this.get('validator').validate();}});var FormValidator=Form.Validator;Form.Validator.Inline=new Class({Extends:Form.Validator,options:{showError:function(errorElement){if(errorElement.reveal)errorElement.reveal();else errorElement.setStyle('display','block');},hideError:function(errorElement){if(errorElement.dissolve)errorElement.dissolve();else errorElement.setStyle('display','none');},scrollToErrorsOnSubmit:true,scrollToErrorsOnBlur:false,scrollToErrorsOnChange:false,scrollFxOptions:{transition:'quad:out',offset:{y:-20}}},initialize:function(form,options){this.parent(form,options);this.addEvent('onElementValidate',function(isValid,field,className,warn){var validator=this.getValidator(className);if(!isValid&&validator.getError(field)){if(warn)field.addClass('warning');var advice=this.makeAdvice(className,field,validator.getError(field),warn);this.insertAdvice(advice,field);this.showAdvice(className,field);}else{this.hideAdvice(className,field);}});},makeAdvice:function(className,field,error,warn){var errorMsg=(warn)?this.warningPrefix:this.errorPrefix;errorMsg+=(this.options.useTitles)?field.title||error:error;var cssClass=(warn)?'warning-advice':'validation-advice';var advice=this.getAdvice(className,field);if(advice){advice=advice.set('html',errorMsg);}else{advice=new Element('div',{html:errorMsg,styles:{display:'none'},id:'advice-'+className.split(':')[0]+'-'+this.getFieldId(field)}).addClass(cssClass);} field.store('$moo:advice-'+className,advice);return advice;},getFieldId:function(field){return field.id?field.id:field.id='input_'+field.name;},showAdvice:function(className,field){var advice=this.getAdvice(className,field);if(advice&&!field.retrieve('$moo:'+this.getPropName(className))&&(advice.getStyle('display')=='none'||advice.getStyle('visiblity')=='hidden'||advice.getStyle('opacity')==0)){field.store('$moo:'+this.getPropName(className),true);this.options.showError(advice);this.fireEvent('showAdvice',[field,advice,className]);}},hideAdvice:function(className,field){var advice=this.getAdvice(className,field);if(advice&&field.retrieve('$moo:'+this.getPropName(className))){field.store('$moo:'+this.getPropName(className),false);this.options.hideError(advice);this.fireEvent('hideAdvice',[field,advice,className]);}},getPropName:function(className){return'advice'+className;},resetField:function(field){field=document.id(field);if(!field)return this;this.parent(field);field.get('validators').each(function(className){this.hideAdvice(className,field);},this);return this;},getAllAdviceMessages:function(field,force){var advice=[];if(field.hasClass('ignoreValidation')&&!force)return advice;var validators=field.get('validators').some(function(cn){var warner=cn.test('^warn-')||field.hasClass('warnOnly');if(warner)cn=cn.replace(/^warn-/,'');var validator=this.getValidator(cn);if(!validator)return;advice.push({message:validator.getError(field),warnOnly:warner,passed:validator.test(),validator:validator});},this);return advice;},getAdvice:function(className,field){return field.retrieve('$moo:advice-'+className);},insertAdvice:function(advice,field){var props=field.get('validatorProps');if(!props.msgPos||!document.id(props.msgPos)){if(field.type&&field.type.toLowerCase()=='radio')field.getParent().adopt(advice);else advice.inject(document.id(field),'after');}else{document.id(props.msgPos).grab(advice);}},validateField:function(field,force,scroll){var result=this.parent(field,force);if(((this.options.scrollToErrorsOnSubmit&&scroll==null)||scroll)&&!result){var failed=document.id(this).getElement('.validation-failed');var par=document.id(this).getParent();while(par!=document.body&&par.getScrollSize().y==par.getSize().y){par=par.getParent();} var fx=par.retrieve('$moo:fvScroller');if(!fx&&window.Fx&&Fx.Scroll){fx=new Fx.Scroll(par,this.options.scrollFxOptions);par.store('$moo:fvScroller',fx);} if(failed){if(fx)fx.toElement(failed);else par.scrollTo(par.getScroll().x,failed.getPosition(par).y-20);}} return result;},watchFields:function(fields){fields.each(function(el){if(this.options.evaluateFieldsOnBlur){el.addEvent('blur',this.validationMonitor.pass([el,false,this.options.scrollToErrorsOnBlur],this));} if(this.options.evaluateFieldsOnChange){el.addEvent('change',this.validationMonitor.pass([el,true,this.options.scrollToErrorsOnChange],this));}},this);}});Form.Validator.addAllThese([['validate-enforce-oncheck',{test:function(element,props){var fv=element.getParent('form').retrieve('validator');if(!fv)return true;(props.toEnforce||document.id(props.enforceChildrenOf).getElements('input, select, textarea')).map(function(item){if(element.checked){fv.enforceField(item);}else{fv.ignoreField(item);fv.resetField(item);}});return true;}}],['validate-ignore-oncheck',{test:function(element,props){var fv=element.getParent('form').retrieve('validator');if(!fv)return true;(props.toIgnore||document.id(props.ignoreChildrenOf).getElements('input, select, textarea')).each(function(item){if(element.checked){fv.ignoreField(item);fv.resetField(item);}else{fv.enforceField(item);}});return true;}}],['validate-nospace',{errorMsg:function(){return Form.Validator.getMsg('noSpace');},test:function(element,props){return!element.get('value').test(/\s/);}}],['validate-toggle-oncheck',{test:function(element,props){var fv=element.getParent('form').retrieve('validator');if(!fv)return true;var eleArr=props.toToggle||document.id(props.toToggleChildrenOf).getElements('input, select, textarea');if(!element.checked){eleArr.each(function(item){fv.ignoreField(item);fv.resetField(item);});}else{eleArr.each(function(item){fv.enforceField(item);});} return true;}}],['validate-reqchk-bynode',{errorMsg:function(){return Form.Validator.getMsg('reqChkByNode');},test:function(element,props){return(document.id(props.nodeId).getElements(props.selector||'input[type=checkbox], input[type=radio]')).some(function(item){return item.checked;});}}],['validate-required-check',{errorMsg:function(element,props){return props.useTitle?element.get('title'):Form.Validator.getMsg('requiredChk');},test:function(element,props){return!!element.checked;}}],['validate-reqchk-byname',{errorMsg:function(element,props){return Form.Validator.getMsg('reqChkByName').substitute({label:props.label||element.get('type')});},test:function(element,props){var grpName=props.groupName||element.get('name');var oneCheckedItem=$$(document.getElementsByName(grpName)).some(function(item,index){return item.checked;});var fv=element.getParent('form').retrieve('validator');if(oneCheckedItem&&fv)fv.resetField(element);return oneCheckedItem;}}],['validate-match',{errorMsg:function(element,props){return Form.Validator.getMsg('match').substitute({matchName:props.matchName||document.id(props.matchInput).get('name')});},test:function(element,props){var eleVal=element.get('value');var matchVal=document.id(props.matchInput)&&document.id(props.matchInput).get('value');return eleVal&&matchVal?eleVal==matchVal:true;}}],['validate-after-date',{errorMsg:function(element,props){return Form.Validator.getMsg('afterDate').substitute({label:props.afterLabel||(props.afterElement?Form.Validator.getMsg('startDate'):Form.Validator.getMsg('currentDate'))});},test:function(element,props){var start=document.id(props.afterElement)?Date.parse(document.id(props.afterElement).get('value')):new Date();var end=Date.parse(element.get('value'));return end&&start?end>=start:true;}}],['validate-before-date',{errorMsg:function(element,props){return Form.Validator.getMsg('beforeDate').substitute({label:props.beforeLabel||(props.beforeElement?Form.Validator.getMsg('endDate'):Form.Validator.getMsg('currentDate'))});},test:function(element,props){var start=Date.parse(element.get('value'));var end=document.id(props.beforeElement)?Date.parse(document.id(props.beforeElement).get('value')):new Date();return end&&start?end>=start:true;}}],['validate-custom-required',{errorMsg:function(){return Form.Validator.getMsg('required');},test:function(element,props){return element.get('value')!=props.emptyValue;}}],['validate-same-month',{errorMsg:function(element,props){var startMo=document.id(props.sameMonthAs)&&document.id(props.sameMonthAs).get('value');var eleVal=element.get('value');if(eleVal!='')return Form.Validator.getMsg(startMo?'sameMonth':'startMonth');},test:function(element,props){var d1=Date.parse(element.get('value'));var d2=Date.parse(document.id(props.sameMonthAs)&&document.id(props.sameMonthAs).get('value'));return d1&&d2?d1.format('%B')==d2.format('%B'):true;}}],['validate-cc-num',{errorMsg:function(element){var ccNum=element.get('value').replace(/[^0-9]/g,'');return Form.Validator.getMsg('creditcard').substitute({length:ccNum.length});},test:function(element){if(Form.Validator.getValidator('IsEmpty').test(element))return true;var ccNum=element.get('value');ccNum=ccNum.replace(/[^0-9]/g,'');var valid_type=false;if(ccNum.test(/^4[0-9]{12}([0-9]{3})?$/))valid_type='Visa';else if(ccNum.test(/^5[1-5]([0-9]{14})$/))valid_type='Master Card';else if(ccNum.test(/^3[47][0-9]{13}$/))valid_type='American Express';else if(ccNum.test(/^6011[0-9]{12}$/))valid_type='Discover';if(valid_type){var sum=0;var cur=0;for(var i=ccNum.length-1;i>=0;--i){cur=ccNum.charAt(i).toInt();if(cur==0)continue;if((ccNum.length-i)%2==0)cur+=cur;if(cur>9){cur=cur.toString().charAt(0).toInt()+cur.toString().charAt(1).toInt();} sum+=cur;} if((sum%10)==0)return true;} var chunks='';while(ccNum!=''){chunks+=' '+ccNum.substr(0,4);ccNum=ccNum.substr(4);} element.getParent('form').retrieve('validator').ignoreField(element);element.set('value',chunks.clean());element.getParent('form').retrieve('validator').enforceField(element);return false;}}]]);var OverText=new Class({Implements:[Options,Events,Class.Occlude],Binds:['reposition','assert','focus','hide'],options:{element:'label',labelClass:'overTxtLabel',positionOptions:{position:'upperLeft',edge:'upperLeft',offset:{x:4,y:2}},poll:false,pollInterval:250,wrap:false},property:'OverText',initialize:function(element,options){element=this.element=document.id(element);if(this.occlude())return this.occluded;this.setOptions(options);this.attach(element);OverText.instances.push(this);if(this.options.poll)this.poll();},toElement:function(){return this.element;},attach:function(){var element=this.element,options=this.options,value=options.textOverride||element.get('alt')||element.get('title');if(!value)return this;var text=this.text=new Element(options.element,{'class':options.labelClass,styles:{lineHeight:'normal',position:'absolute',cursor:'text'},html:value,events:{click:this.hide.pass(options.element=='label',this)}}).inject(element,'after');if(options.element=='label'){if(!element.get('id'))element.set('id','input_'+String.uniqueID());text.set('for',element.get('id'));} if(options.wrap){this.textHolder=new Element('div.overTxtWrapper',{styles:{lineHeight:'normal',position:'relative'}}).grab(text).inject(element,'before');} return this.enable();},destroy:function(){this.element.eliminate(this.property);this.disable();if(this.text)this.text.destroy();if(this.textHolder)this.textHolder.destroy();return this;},disable:function(){this.element.removeEvents({focus:this.focus,blur:this.assert,change:this.assert});window.removeEvent('resize',this.reposition);this.hide(true,true);return this;},enable:function(){this.element.addEvents({focus:this.focus,blur:this.assert,change:this.assert});window.addEvent('resize',this.reposition);this.reposition();return this;},wrap:function(){if(this.options.element=='label'){if(!this.element.get('id'))this.element.set('id','input_'+String.uniqueID());this.text.set('for',this.element.get('id'));}},startPolling:function(){this.pollingPaused=false;return this.poll();},poll:function(stop){if(this.poller&&!stop)return this;if(stop){clearInterval(this.poller);}else{this.poller=(function(){if(!this.pollingPaused)this.assert(true);}).periodical(this.options.pollInterval,this);} return this;},stopPolling:function(){this.pollingPaused=true;return this.poll(true);},focus:function(){if(this.text&&(!this.text.isDisplayed()||this.element.get('disabled')))return this;return this.hide();},hide:function(suppressFocus,force){if(this.text&&(this.text.isDisplayed()&&(!this.element.get('disabled')||force))){this.text.hide();this.fireEvent('textHide',[this.text,this.element]);this.pollingPaused=true;if(!suppressFocus){try{this.element.fireEvent('focus');this.element.focus();}catch(e){}}} return this;},show:function(){if(this.text&&!this.text.isDisplayed()){this.text.show();this.reposition();this.fireEvent('textShow',[this.text,this.element]);this.pollingPaused=false;} return this;},test:function(){return!this.element.get('value');},assert:function(suppressFocus){return this[this.test()?'show':'hide'](suppressFocus);},reposition:function(){this.assert(true);if(!this.element.isVisible())return this.stopPolling().hide();if(this.text&&this.test()){this.text.position(Object.merge(this.options.positionOptions,{relativeTo:this.element}));} return this;}});OverText.instances=[];Object.append(OverText,{each:function(fn){return OverText.instances.each(function(ot,i){if(ot.element&&ot.text)fn.call(OverText,ot,i);});},update:function(){return OverText.each(function(ot){return ot.reposition();});},hideAll:function(){return OverText.each(function(ot){return ot.hide(true,true);});},showAll:function(){return OverText.each(function(ot){return ot.show();});}});Fx.Elements=new Class({Extends:Fx.CSS,initialize:function(elements,options){this.elements=this.subject=$$(elements);this.parent(options);},compute:function(from,to,delta){var now={};for(var i in from){var iFrom=from[i],iTo=to[i],iNow=now[i]={};for(var p in iFrom)iNow[p]=this.parent(iFrom[p],iTo[p],delta);} return now;},set:function(now){for(var i in now){if(!this.elements[i])continue;var iNow=now[i];for(var p in iNow)this.render(this.elements[i],p,iNow[p],this.options.unit);} return this;},start:function(obj){if(!this.check(obj))return this;var from={},to={};for(var i in obj){if(!this.elements[i])continue;var iProps=obj[i],iFrom=from[i]={},iTo=to[i]={};for(var p in iProps){var parsed=this.prepare(this.elements[i],p,iProps[p]);iFrom[p]=parsed.from;iTo[p]=parsed.to;}} return this.parent(from,to);}});Fx.Accordion=new Class({Extends:Fx.Elements,options:{fixedHeight:false,fixedWidth:false,display:0,show:false,height:true,width:false,opacity:true,alwaysHide:false,trigger:'click',initialDisplayFx:true,resetHeight:true},initialize:function(){var defined=function(obj){return obj!=null;};var params=Array.link(arguments,{'container':Type.isElement,'options':Type.isObject,'togglers':defined,'elements':defined});this.parent(params.elements,params.options);var options=this.options,togglers=this.togglers=$$(params.togglers);this.previous=-1;this.internalChain=new Chain();if(options.alwaysHide)this.options.link='chain';if(options.show||this.options.show===0){options.display=false;this.previous=options.show;} if(options.start){options.display=false;options.show=false;} var effects=this.effects={};if(options.opacity)effects.opacity='fullOpacity';if(options.width)effects.width=options.fixedWidth?'fullWidth':'offsetWidth';if(options.height)effects.height=options.fixedHeight?'fullHeight':'scrollHeight';for(var i=0,l=togglers.length;i=0?idx-1:0)).chain(remover);}else{remover();} return this;},detach:function(toggler){var remove=function(toggler){toggler.removeEvent(this.options.trigger,toggler.retrieve('accordion:display'));}.bind(this);if(!toggler)this.togglers.each(remove);else remove(toggler);return this;},display:function(index,useFx){if(!this.check(index,useFx))return this;var obj={},elements=this.elements,options=this.options,effects=this.effects;if(useFx==null)useFx=true;if(typeOf(index)=='element')index=elements.indexOf(index);if(index==this.previous&&!options.alwaysHide)return this;if(options.resetHeight){var prev=elements[this.previous];if(prev&&!this.selfHidden){for(var fx in effects)prev.setStyle(fx,prev[effects[fx]]);}} if((this.timer&&options.link=='chain')||(index===this.previous&&!options.alwaysHide))return this;this.previous=index;this.selfHidden=false;elements.each(function(el,i){obj[i]={};var hide;if(i!=index){hide=true;}else if(options.alwaysHide&&((el.offsetHeight>0&&options.height)||el.offsetWidth>0&&options.width)){hide=true;this.selfHidden=true;} this.fireEvent(hide?'background':'active',[this.togglers[i],el]);for(var fx in effects)obj[i][fx]=hide?0:el[effects[fx]];if(!useFx&&!hide&&options.resetHeight)obj[i].height='auto';},this);this.internalChain.clearChain();this.internalChain.chain(function(){if(options.resetHeight&&!this.selfHidden){var el=elements[index];if(el)el.setStyle('height','auto');}}.bind(this));return useFx?this.start(obj):this.set(obj).internalChain.callChain();}});var Accordion=new Class({Extends:Fx.Accordion,initialize:function(){this.parent.apply(this,arguments);var params=Array.link(arguments,{'container':Type.isElement});this.container=params.container;},addSection:function(toggler,element,pos){toggler=document.id(toggler);element=document.id(element);var test=this.togglers.contains(toggler);var len=this.togglers.length;if(len&&(!test||pos)){pos=pos!=null?pos:len-1;toggler.inject(this.togglers[pos],'before');element.inject(toggler,'after');}else if(this.container&&!test){toggler.inject(this.container);element.inject(this.container);} return this.parent.apply(this,arguments);}});Fx.Move=new Class({Extends:Fx.Morph,options:{relativeTo:document.body,position:'center',edge:false,offset:{x:0,y:0}},start:function(destination){var element=this.element,topLeft=element.getStyles('top','left');if(topLeft.top=='auto'||topLeft.left=='auto'){element.setPosition(element.getPosition(element.getOffsetParent()));} return this.parent(element.position(Object.merge({},this.options,destination,{returnPos:true})));}});Element.Properties.move={set:function(options){this.get('move').cancel().setOptions(options);return this;},get:function(){var move=this.retrieve('move');if(!move){move=new Fx.Move(this,{link:'cancel'});this.store('move',move);} return move;}};Element.implement({move:function(options){this.get('move').start(options);return this;}});(function(){Fx.Scroll=new Class({Extends:Fx,options:{offset:{x:0,y:0},wheelStops:true},initialize:function(element,options){this.element=this.subject=document.id(element);this.parent(options);if(typeOf(this.element)!='element')this.element=document.id(this.element.getDocument().body);if(this.options.wheelStops){var stopper=this.element,cancel=this.cancel.pass(false,this);this.addEvent('start',function(){stopper.addEvent('mousewheel',cancel);},true);this.addEvent('complete',function(){stopper.removeEvent('mousewheel',cancel);},true);}},set:function(){var now=Array.flatten(arguments);if(Browser.firefox)now=[Math.round(now[0]),Math.round(now[1])];this.element.scrollTo(now[0],now[1]);return this;},compute:function(from,to,delta){return[0,1].map(function(i){return Fx.compute(from[i],to[i],delta);});},start:function(x,y){if(!this.check(x,y))return this;var scroll=this.element.getScroll();return this.parent([scroll.x,scroll.y],[x,y]);},calculateScroll:function(x,y){var element=this.element,scrollSize=element.getScrollSize(),scroll=element.getScroll(),size=element.getSize(),offset=this.options.offset,values={x:x,y:y};for(var z in values){if(!values[z]&&values[z]!==0)values[z]=scroll[z];if(typeOf(values[z])!='number')values[z]=scrollSize[z]-size[z];values[z]+=offset[z];} return[values.x,values.y];},toTop:function(){return this.start.apply(this,this.calculateScroll(false,0));},toLeft:function(){return this.start.apply(this,this.calculateScroll(0,false));},toRight:function(){return this.start.apply(this,this.calculateScroll('right',false));},toBottom:function(){return this.start.apply(this,this.calculateScroll(false,'bottom'));},toElement:function(el,axes){axes=axes?Array.from(axes):['x','y'];var scroll=isBody(this.element)?{x:0,y:0}:this.element.getScroll();var position=Object.map(document.id(el).getPosition(this.element),function(value,axis){return axes.contains(axis)?value+scroll[axis]:false;});return this.start.apply(this,this.calculateScroll(position.x,position.y));},toElementEdge:function(el,axes,offset){axes=axes?Array.from(axes):['x','y'];el=document.id(el);var to={},position=el.getPosition(this.element),size=el.getSize(),scroll=this.element.getScroll(),containerSize=this.element.getSize(),edge={x:position.x+size.x,y:position.y+size.y};['x','y'].each(function(axis){if(axes.contains(axis)){if(edge[axis]>scroll[axis]+containerSize[axis])to[axis]=edge[axis]-containerSize[axis];if(position[axis]this.elements.length) newOrder.splice(this.elements.length-1,newOrder.length-this.elements.length);} var margin=0;top=left=0;newOrder.each(function(item){var newPos={};if(vert){newPos.top=top-current[item].top-margin;top+=current[item].height;}else{newPos.left=left-current[item].left;left+=current[item].width;} margin=margin+current[item].margin;next[item]=newPos;},this);var mapped={};Array.clone(newOrder).sort().each(function(index){mapped[index]=next[index];});this.start(mapped);this.currentOrder=newOrder;return this;},rearrangeDOM:function(newOrder){newOrder=newOrder||this.currentOrder;var parent=this.elements[0].getParent();var rearranged=[];this.elements.setStyle('opacity',0);newOrder.each(function(index){rearranged.push(this.elements[index].inject(parent).setStyles({top:0,left:0}));},this);this.elements.setStyle('opacity',1);this.elements=$$(rearranged);this.setDefaultOrder();return this;},getDefaultOrder:function(){return this.elements.map(function(el,index){return index;});},getCurrentOrder:function(){return this.currentOrder;},forward:function(){return this.sort(this.getDefaultOrder());},backward:function(){return this.sort(this.getDefaultOrder().reverse());},reverse:function(){return this.sort(this.currentOrder.reverse());},sortByElements:function(elements){return this.sort(elements.map(function(el){return this.elements.indexOf(el);},this));},swap:function(one,two){if(typeOf(one)=='element')one=this.elements.indexOf(one);if(typeOf(two)=='element')two=this.elements.indexOf(two);var newOrder=Array.clone(this.currentOrder);newOrder[this.currentOrder.indexOf(one)]=two;newOrder[this.currentOrder.indexOf(two)]=one;return this.sort(newOrder);}});var Drag=new Class({Implements:[Events,Options],options:{snap:6,unit:'px',grid:false,style:true,limit:false,handle:false,invert:false,preventDefault:false,stopPropagation:false,modifiers:{x:'left',y:'top'}},initialize:function(){var params=Array.link(arguments,{'options':Type.isObject,'element':function(obj){return obj!=null;}});this.element=document.id(params.element);this.document=this.element.getDocument();this.setOptions(params.options||{});var htype=typeOf(this.options.handle);this.handles=((htype=='array'||htype=='collection')?$$(this.options.handle):document.id(this.options.handle))||this.element;this.mouse={'now':{},'pos':{}};this.value={'start':{},'now':{}};this.selection=(Browser.ie)?'selectstart':'mousedown';if(Browser.ie&&!Drag.ondragstartFixed){document.ondragstart=Function.from(false);Drag.ondragstartFixed=true;} this.bound={start:this.start.bind(this),check:this.check.bind(this),drag:this.drag.bind(this),stop:this.stop.bind(this),cancel:this.cancel.bind(this),eventStop:Function.from(false)};this.attach();},attach:function(){this.handles.addEvent('mousedown',this.bound.start);return this;},detach:function(){this.handles.removeEvent('mousedown',this.bound.start);return this;},start:function(event){var options=this.options;if(event.rightClick)return;if(options.preventDefault)event.preventDefault();if(options.stopPropagation)event.stopPropagation();this.mouse.start=event.page;this.fireEvent('beforeStart',this.element);var limit=options.limit;this.limit={x:[],y:[]};var z,coordinates;for(z in options.modifiers){if(!options.modifiers[z])continue;var style=this.element.getStyle(options.modifiers[z]);if(style&&!style.match(/px$/)){if(!coordinates)coordinates=this.element.getCoordinates(this.element.getOffsetParent());style=coordinates[options.modifiers[z]];} if(options.style)this.value.now[z]=(style||0).toInt();else this.value.now[z]=this.element[options.modifiers[z]];if(options.invert)this.value.now[z]*=-1;this.mouse.pos[z]=event.page[z]-this.value.now[z];if(limit&&limit[z]){var i=2;while(i--){var limitZI=limit[z][i];if(limitZI||limitZI===0)this.limit[z][i]=(typeof limitZI=='function')?limitZI():limitZI;}}} if(typeOf(this.options.grid)=='number')this.options.grid={x:this.options.grid,y:this.options.grid};var events={mousemove:this.bound.check,mouseup:this.bound.cancel};events[this.selection]=this.bound.eventStop;this.document.addEvents(events);},check:function(event){if(this.options.preventDefault)event.preventDefault();var distance=Math.round(Math.sqrt(Math.pow(event.page.x-this.mouse.start.x,2)+Math.pow(event.page.y-this.mouse.start.y,2)));if(distance>this.options.snap){this.cancel();this.document.addEvents({mousemove:this.bound.drag,mouseup:this.bound.stop});this.fireEvent('start',[this.element,event]).fireEvent('snap',this.element);}},drag:function(event){var options=this.options;if(options.preventDefault)event.preventDefault();this.mouse.now=event.page;for(var z in options.modifiers){if(!options.modifiers[z])continue;this.value.now[z]=this.mouse.now[z]-this.mouse.pos[z];if(options.invert)this.value.now[z]*=-1;if(options.limit&&this.limit[z]){if((this.limit[z][1]||this.limit[z][1]===0)&&(this.value.now[z]>this.limit[z][1])){this.value.now[z]=this.limit[z][1];}else if((this.limit[z][0]||this.limit[z][0]===0)&&(this.value.now[z]el.left&&now.xel.top);},this).getLast();if(this.overed!=overed){if(this.overed)this.fireEvent('leave',[this.element,this.overed]);if(overed)this.fireEvent('enter',[this.element,overed]);this.overed=overed;}},drag:function(event){this.parent(event);if(this.options.checkDroppables&&this.droppables.length)this.checkDroppables();},stop:function(event){this.checkDroppables();this.fireEvent('drop',[this.element,this.overed,event]);this.overed=null;return this.parent(event);}});Element.implement({makeDraggable:function(options){var drag=new Drag.Move(this,options);this.store('dragger',drag);return drag;}});var Slider=new Class({Implements:[Events,Options],Binds:['clickedElement','draggedKnob','scrolledElement'],options:{onTick:function(position){this.setKnobPosition(position);},initialStep:0,snap:false,offset:0,range:false,wheel:false,steps:100,mode:'horizontal'},initialize:function(element,knob,options){this.setOptions(options);options=this.options;this.element=document.id(element);knob=this.knob=document.id(knob);this.previousChange=this.previousEnd=this.step=-1;var limit={},modifiers={x:false,y:false};switch(options.mode){case'vertical':this.axis='y';this.property='top';this.offset='offsetHeight';break;case'horizontal':this.axis='x';this.property='left';this.offset='offsetWidth';} this.setSliderDimensions();this.setRange(options.range);if(knob.getStyle('position')=='static')knob.setStyle('position','relative');knob.setStyle(this.property,-options.offset);modifiers[this.axis]=this.property;limit[this.axis]=[-options.offset,this.full-options.offset];var dragOptions={snap:0,limit:limit,modifiers:modifiers,onDrag:this.draggedKnob,onStart:this.draggedKnob,onBeforeStart:(function(){this.isDragging=true;}).bind(this),onCancel:function(){this.isDragging=false;}.bind(this),onComplete:function(){this.isDragging=false;this.draggedKnob();this.end();}.bind(this)};if(options.snap)this.setSnap(dragOptions);this.drag=new Drag(knob,dragOptions);this.attach();if(options.initialStep!=null)this.set(options.initialStep);},attach:function(){this.element.addEvent('mousedown',this.clickedElement);if(this.options.wheel)this.element.addEvent('mousewheel',this.scrolledElement);this.drag.attach();return this;},detach:function(){this.element.removeEvent('mousedown',this.clickedElement).removeEvent('mousewheel',this.scrolledElement);this.drag.detach();return this;},autosize:function(){this.setSliderDimensions().setKnobPosition(this.toPosition(this.step));this.drag.options.limit[this.axis]=[-this.options.offset,this.full-this.options.offset];if(this.options.snap)this.setSnap();return this;},setSnap:function(options){if(!options)options=this.drag.options;options.grid=Math.ceil(this.stepWidth);options.limit[this.axis][1]=this.full;return this;},setKnobPosition:function(position){if(this.options.snap)position=this.toPosition(this.step);this.knob.setStyle(this.property,position);return this;},setSliderDimensions:function(){this.full=this.element.measure(function(){this.half=this.knob[this.offset]/2;return this.element[this.offset]-this.knob[this.offset]+(this.options.offset*2);}.bind(this));return this;},set:function(step){if(!((this.range>0)^(step0)^(step>this.max)))step=this.max;this.step=Math.round(step);return this.checkStep().fireEvent('tick',this.toPosition(this.step)).end();},setRange:function(range,pos){this.min=Array.pick([range[0],0]);this.max=Array.pick([range[1],this.options.steps]);this.range=this.max-this.min;this.steps=this.options.steps||this.full;this.stepSize=Math.abs(this.range)/this.steps;this.stepWidth=this.stepSize*this.full/Math.abs(this.range);if(range)this.set(Array.pick([pos,this.step]).floor(this.min).max(this.max));return this;},clickedElement:function(event){if(this.isDragging||event.target==this.knob)return;var dir=this.range<0?-1:1,position=event.page[this.axis]-this.element.getPosition()[this.axis]-this.half;position=position.limit(-this.options.offset,this.full-this.options.offset);this.step=Math.round(this.min+dir*this.toStep(position));this.checkStep().fireEvent('tick',position).end();},scrolledElement:function(event){var mode=(this.options.mode=='horizontal')?(event.wheel<0):(event.wheel>0);this.set(this.step+(mode?-1:1)*this.stepSize);event.stop();},draggedKnob:function(){var dir=this.range<0?-1:1,position=this.drag.value.now[this.axis];position=position.limit(-this.options.offset,this.full-this.options.offset);this.step=Math.round(this.min+dir*this.toStep(position));this.checkStep();},checkStep:function(){var step=this.step;if(this.previousChange!=step){this.previousChange=step;this.fireEvent('change',step);} return this;},end:function(){var step=this.step;if(this.previousEnd!==step){this.previousEnd=step;this.fireEvent('complete',step+'');} return this;},toStep:function(position){var step=(position+this.options.offset)*this.stepSize/this.full*this.steps;return this.options.steps?Math.round(step-=step%this.stepSize):step;},toPosition:function(step){return(this.full*Math.abs(this.min-step))/(this.steps*this.stepSize)-this.options.offset;}});var Sortables=new Class({Implements:[Events,Options],options:{opacity:1,clone:false,revert:false,handle:false,dragOptions:{},snap:4,constrain:false,preventDefault:false},initialize:function(lists,options){this.setOptions(options);this.elements=[];this.lists=[];this.idle=true;this.addLists($$(document.id(lists)||lists));if(!this.options.clone)this.options.revert=false;if(this.options.revert)this.effect=new Fx.Morph(null,Object.merge({duration:250,link:'cancel'},this.options.revert));},attach:function(){this.addLists(this.lists);return this;},detach:function(){this.lists=this.removeLists(this.lists);return this;},addItems:function(){Array.flatten(arguments).each(function(element){this.elements.push(element);var start=element.retrieve('sortables:start',function(event){this.start.call(this,event,element);}.bind(this));(this.options.handle?element.getElement(this.options.handle)||element:element).addEvent('mousedown',start);},this);return this;},addLists:function(){Array.flatten(arguments).each(function(list){this.lists.include(list);this.addItems(list.getChildren());},this);return this;},removeItems:function(){return $$(Array.flatten(arguments).map(function(element){this.elements.erase(element);var start=element.retrieve('sortables:start');(this.options.handle?element.getElement(this.options.handle)||element:element).removeEvent('mousedown',start);return element;},this));},removeLists:function(){return $$(Array.flatten(arguments).map(function(list){this.lists.erase(list);this.removeItems(list.getChildren());return list;},this));},getClone:function(event,element){if(!this.options.clone)return new Element(element.tagName).inject(document.body);if(typeOf(this.options.clone)=='function')return this.options.clone.call(this,event,element,this.list);var clone=element.clone(true).setStyles({margin:0,position:'absolute',visibility:'hidden',width:element.getStyle('width')}).addEvent('mousedown',function(event){element.fireEvent('mousedown',event);});if(clone.get('html').test('radio')){clone.getElements('input[type=radio]').each(function(input,i){input.set('name','clone_'+i);if(input.get('checked'))element.getElements('input[type=radio]')[i].set('checked',true);});} return clone.inject(this.list).setPosition(element.getPosition(element.getOffsetParent()));},getDroppables:function(){var droppables=this.list.getChildren().erase(this.clone).erase(this.element);if(!this.options.constrain)droppables.append(this.lists).erase(this.list);return droppables;},insert:function(dragging,element){var where='inside';if(this.lists.contains(element)){this.list=element;this.drag.droppables=this.getDroppables();}else{where=this.element.getAllPrevious().contains(element)?'before':'after';} this.element.inject(element,where);this.fireEvent('sort',[this.element,this.clone]);},start:function(event,element){if(!this.idle||event.rightClick||['button','input','a','textarea'].contains(event.target.get('tag')))return;this.idle=false;this.element=element;this.opacity=element.getStyle('opacity');this.list=element.getParent();this.clone=this.getClone(event,element);this.drag=new Drag.Move(this.clone,Object.merge({preventDefault:this.options.preventDefault,snap:this.options.snap,container:this.options.constrain&&this.element.getParent(),droppables:this.getDroppables()},this.options.dragOptions)).addEvents({onSnap:function(){event.stop();this.clone.setStyle('visibility','visible');this.element.setStyle('opacity',this.options.opacity||0);this.fireEvent('start',[this.element,this.clone]);}.bind(this),onEnter:this.insert.bind(this),onCancel:this.end.bind(this),onComplete:this.end.bind(this)});this.clone.inject(this.element,'before');this.drag.start(event);},end:function(){this.drag.detach();this.element.setStyle('opacity',this.opacity);if(this.effect){var dim=this.element.getStyles('width','height'),clone=this.clone,pos=clone.computePosition(this.element.getPosition(this.clone.getOffsetParent()));var destroy=function(){this.removeEvent('cancel',destroy);clone.destroy();};this.effect.element=clone;this.effect.start({top:pos.top,left:pos.left,width:dim.width,height:dim.height,opacity:0.25}).addEvent('cancel',destroy).chain(destroy);}else{this.clone.destroy();} this.reset();},reset:function(){this.idle=true;this.fireEvent('complete',this.element);},serialize:function(){var params=Array.link(arguments,{modifier:Type.isFunction,index:function(obj){return obj!=null;}});var serial=this.lists.map(function(list){return list.getChildren().map(params.modifier||function(element){return element.get('id');},this);},this);var index=params.index;if(this.lists.length==1)index=0;return(index||index===0)&&index>=0&&index2083)this.fireEvent('error',src);Request.JSONP.request_map['request_'+index]=function(){this.success(arguments,index);}.bind(this);var script=this.getScript(src).inject(options.injectScript);this.fireEvent('request',[src,script]);if(options.timeout)this.timeout.delay(options.timeout,this);return this;},getScript:function(src){if(!this.script)this.script=new Element('script',{type:'text/javascript',async:true,src:src});return this.script;},success:function(args,index){if(!this.running)return;this.clear().fireEvent('complete',args).fireEvent('success',args).callChain();},cancel:function(){if(this.running)this.clear().fireEvent('cancel');return this;},isRunning:function(){return!!this.running;},clear:function(){this.running=false;if(this.script){this.script.destroy();this.script=null;} return this;},timeout:function(){if(this.running){this.running=false;this.fireEvent('timeout',[this.script.get('src'),this.script]).fireEvent('failure').cancel();} return this;}});Request.JSONP.counter=0;Request.JSONP.request_map={};Request.Queue=new Class({Implements:[Options,Events],Binds:['attach','request','complete','cancel','success','failure','exception'],options:{stopOnFailure:true,autoAdvance:true,concurrent:1,requests:{}},initialize:function(options){var requests;if(options){requests=options.requests;delete options.requests;} this.setOptions(options);this.requests={};this.queue=[];this.reqBinders={};if(requests)this.addRequests(requests);},addRequest:function(name,request){this.requests[name]=request;this.attach(name,request);return this;},addRequests:function(obj){Object.each(obj,function(req,name){this.addRequest(name,req);},this);return this;},getName:function(req){return Object.keyOf(this.requests,req);},attach:function(name,req){if(req._groupSend)return this;['request','complete','cancel','success','failure','exception'].each(function(evt){if(!this.reqBinders[name])this.reqBinders[name]={};this.reqBinders[name][evt]=function(){this['on'+evt.capitalize()].apply(this,[name,req].append(arguments));}.bind(this);req.addEvent(evt,this.reqBinders[name][evt]);},this);req._groupSend=req.send;req.send=function(options){this.send(name,options);return req;}.bind(this);return this;},removeRequest:function(req){var name=typeOf(req)=='object'?this.getName(req):req;if(!name&&typeOf(name)!='string')return this;req=this.requests[name];if(!req)return this;['request','complete','cancel','success','failure','exception'].each(function(evt){req.removeEvent(evt,this.reqBinders[name][evt]);},this);req.send=req._groupSend;delete req._groupSend;return this;},getRunning:function(){return Object.filter(this.requests,function(r){return r.running;});},isRunning:function(){return!!(Object.keys(this.getRunning()).length);},send:function(name,options){var q=function(){this.requests[name]._groupSend(options);this.queue.erase(q);}.bind(this);q.name=name;if(Object.keys(this.getRunning()).length>=this.options.concurrent||(this.error&&this.options.stopOnFailure))this.queue.push(q);else q();return this;},hasNext:function(name){return(!name)?!!this.queue.length:!!this.queue.filter(function(q){return q.name==name;}).length;},resume:function(){this.error=false;(this.options.concurrent-Object.keys(this.getRunning()).length).times(this.runNext,this);return this;},runNext:function(name){if(!this.queue.length)return this;if(!name){this.queue[0]();}else{var found;this.queue.each(function(q){if(!found&&q.name==name){found=true;q();}});} return this;},runAll:function(){this.queue.each(function(q){q();});return this;},clear:function(name){if(!name){this.queue.empty();}else{this.queue=this.queue.map(function(q){if(q.name!=name)return q;else return false;}).filter(function(q){return q;});} return this;},cancel:function(name){this.requests[name].cancel();return this;},onRequest:function(){this.fireEvent('request',arguments);},onComplete:function(){this.fireEvent('complete',arguments);if(!this.queue.length)this.fireEvent('end');},onCancel:function(){if(this.options.autoAdvance&&!this.error)this.runNext();this.fireEvent('cancel',arguments);},onSuccess:function(){if(this.options.autoAdvance&&!this.error)this.runNext();this.fireEvent('success',arguments);},onFailure:function(){this.error=true;if(!this.options.stopOnFailure&&this.options.autoAdvance)this.runNext();this.fireEvent('failure',arguments);},onException:function(){this.error=true;if(!this.options.stopOnFailure&&this.options.autoAdvance)this.runNext();this.fireEvent('exception',arguments);}});Request.implement({options:{initialDelay:5000,delay:5000,limit:60000},startTimer:function(data){var fn=function(){if(!this.running)this.send({data:data});};this.lastDelay=this.options.initialDelay;this.timer=fn.delay(this.lastDelay,this);this.completeCheck=function(response){clearTimeout(this.timer);this.lastDelay=(response)?this.options.delay:(this.lastDelay+this.options.delay).min(this.options.limit);this.timer=fn.delay(this.lastDelay,this);};return this.addEvent('complete',this.completeCheck);},stopTimer:function(){clearTimeout(this.timer);return this.removeEvent('complete',this.completeCheck);}});var Asset={javascript:function(source,properties){if(!properties)properties={};var script=new Element('script',{src:source,type:'text/javascript'}),doc=properties.document||document,load=properties.onload||properties.onLoad;delete properties.onload;delete properties.onLoad;delete properties.document;if(load){if(typeof script.onreadystatechange!='undefined'){script.addEvent('readystatechange',function(){if(['loaded','complete'].contains(this.readyState))load.call(this);});}else{script.addEvent('load',load);}} return script.set(properties).inject(doc.head);},css:function(source,properties){if(!properties)properties={};var link=new Element('link',{rel:'stylesheet',media:'screen',type:'text/css',href:source});var load=properties.onload||properties.onLoad,doc=properties.document||document;delete properties.onload;delete properties.onLoad;delete properties.document;if(load)link.addEvent('load',load);return link.set(properties).inject(doc.head);},image:function(source,properties){if(!properties)properties={};var image=new Image(),element=document.id(image)||new Element('img');['load','abort','error'].each(function(name){var type='on'+name,cap='on'+name.capitalize(),event=properties[type]||properties[cap]||function(){};delete properties[cap];delete properties[type];image[type]=function(){if(!image)return;if(!element.parentNode){element.width=image.width;element.height=image.height;} image=image.onload=image.onabort=image.onerror=null;event.delay(1,element,element);element.fireEvent(name,element,1);};});image.src=element.src=source;if(image&&image.complete)image.onload.delay(1);return element.set(properties);},images:function(sources,options){sources=Array.from(sources);var fn=function(){},counter=0;options=Object.merge({onComplete:fn,onProgress:fn,onError:fn,properties:{}},options);return new Elements(sources.map(function(source,index){return Asset.image(source,Object.append(options.properties,{onload:function(){counter++;options.onProgress.call(this,counter,index,source);if(counter==sources.length)options.onComplete();},onerror:function(){counter++;options.onError.call(this,counter,index,source);if(counter==sources.length)options.onComplete();}}));}));}};(function(){var Color=this.Color=new Type('Color',function(color,type){if(arguments.length>=3){type='rgb';color=Array.slice(arguments,0,3);}else if(typeof color=='string'){if(color.match(/rgb/))color=color.rgbToHex().hexToRgb(true);else if(color.match(/hsb/))color=color.hsbToRgb();else color=color.hexToRgb(true);} type=type||'rgb';switch(type){case'hsb':var old=color;color=color.hsbToRgb();color.hsb=old;break;case'hex':color=color.hexToRgb(true);break;} color.rgb=color.slice(0,3);color.hsb=color.hsb||color.rgbToHsb();color.hex=color.rgbToHex();return Object.append(color,this);});Color.implement({mix:function(){var colors=Array.slice(arguments);var alpha=(typeOf(colors.getLast())=='number')?colors.pop():50;var rgb=this.slice();colors.each(function(color){color=new Color(color);for(var i=0;i<3;i++)rgb[i]=Math.round((rgb[i]/100*(100-alpha))+(color[i]/100*alpha));});return new Color(rgb,'rgb');},invert:function(){return new Color(this.map(function(value){return 255-value;}));},setHue:function(value){return new Color([value,this.hsb[1],this.hsb[2]],'hsb');},setSaturation:function(percent){return new Color([this.hsb[0],percent,this.hsb[2]],'hsb');},setBrightness:function(percent){return new Color([this.hsb[0],this.hsb[1],percent],'hsb');}});this.$RGB=function(r,g,b){return new Color([r,g,b],'rgb');};this.$HSB=function(h,s,b){return new Color([h,s,b],'hsb');};this.$HEX=function(hex){return new Color(hex,'hex');};Array.implement({rgbToHsb:function(){var red=this[0],green=this[1],blue=this[2],hue=0;var max=Math.max(red,green,blue),min=Math.min(red,green,blue);var delta=max-min;var brightness=max/255,saturation=(max!=0)?delta/max:0;if(saturation!=0){var rr=(max-red)/delta;var gr=(max-green)/delta;var br=(max-blue)/delta;if(red==max)hue=br-gr;else if(green==max)hue=2+rr-br;else hue=4+gr-rr;hue/=6;if(hue<0)hue++;} return[Math.round(hue*360),Math.round(saturation*100),Math.round(brightness*100)];},hsbToRgb:function(){var br=Math.round(this[2]/100*255);if(this[1]==0){return[br,br,br];}else{var hue=this[0]%360;var f=hue%60;var p=Math.round((this[2]*(100-this[1]))/10000*255);var q=Math.round((this[2]*(6000-this[1]*f))/600000*255);var t=Math.round((this[2]*(6000-this[1]*(60-f)))/600000*255);switch(Math.floor(hue/60)){case 0:return[br,t,p];case 1:return[q,br,p];case 2:return[p,br,t];case 3:return[p,q,br];case 4:return[t,p,br];case 5:return[br,p,q];}} return false;}});String.implement({rgbToHsb:function(){var rgb=this.match(/\d{1,3}/g);return(rgb)?rgb.rgbToHsb():null;},hsbToRgb:function(){var hsb=this.match(/\d{1,3}/g);return(hsb)?hsb.hsbToRgb():null;}});})();(function(){this.Group=new Class({initialize:function(){this.instances=Array.flatten(arguments);},addEvent:function(type,fn){var instances=this.instances,len=instances.length,togo=len,args=new Array(len),self=this;instances.each(function(instance,i){instance.addEvent(type,function(){if(!args[i])togo--;args[i]=arguments;if(!togo){fn.call(self,instances,instance,args);togo=len;args=new Array(len);}});});}});})();Hash.Cookie=new Class({Extends:Cookie,options:{autoSave:true},initialize:function(name,options){this.parent(name,options);this.load();},save:function(){var value=JSON.encode(this.hash);if(!value||value.length>4096)return false;if(value=='{}')this.dispose();else this.write(value);return true;},load:function(){this.hash=new Hash(JSON.decode(this.read(),true));return this;}});Hash.each(Hash.prototype,function(method,name){if(typeof method=='function')Hash.Cookie.implement(name,function(){var value=method.apply(this.hash,arguments);if(this.options.autoSave)this.save();return value;});});(function(){var Table=this.Table=function(){this.length=0;var keys=[],values=[];this.set=function(key,value){var index=keys.indexOf(key);if(index==-1){var length=keys.length;keys[length]=key;values[length]=value;this.length++;}else{values[index]=value;} return this;};this.get=function(key){var index=keys.indexOf(key);return(index==-1)?null:values[index];};this.erase=function(key){var index=keys.indexOf(key);if(index!=-1){this.length--;keys.splice(index,1);return values.splice(index,1)[0];} return null;};this.each=this.forEach=function(fn,bind){for(var i=0,l=this.length;i1?$$(rows):rows.length?document.id(rows[0]):false;},setHeaders:function(headers){this.set('headers',headers);return this;},setFooters:function(footers){this.set('footers',footers);return this;},update:function(tr,row,tag){var tds=tr.getChildren(tag||'td'),last=tds.length-1;row.each(function(data,index){var td=tds[index]||new Element(tag||'td').inject(tr),content=(data?data.content:'')||data,type=typeOf(content);if(data&&data.properties)td.set(data.properties);if(/(element(s?)|array|collection)/.test(type))td.empty().adopt(content);else td.set('html',content);if(index>last)tds.push(td);else tds[index]=td;});return{tr:tr,tds:tds};},push:function(row,rowProperties,target,tag,where){if(typeOf(row)=='element'&&row.get('tag')=='tr'){row.inject(target||this.body,where);return{tr:row,tds:row.getChildren('td')};} return this.update(new Element('tr',rowProperties).inject(target||this.body,where),row,tag);},pushMany:function(rows,rowProperties,target,tag,where){return rows.map(function(row){return this.push(row,rowProperties,target,tag,where);},this);}});['adopt','inject','wraps','grab','replaces','dispose'].each(function(method){HtmlTable.implement(method,function(){this.element[method].apply(this.element,arguments);return this;});});HtmlTable=Class.refactor(HtmlTable,{options:{classZebra:'table-tr-odd',zebra:true,zebraOnlyVisibleRows:true},initialize:function(){this.previous.apply(this,arguments);if(this.occluded)return this.occluded;if(this.options.zebra)this.updateZebras();},updateZebras:function(){var index=0;Array.each(this.body.rows,function(row){if(!this.options.zebraOnlyVisibleRows||row.isDisplayed()){this.zebra(row,index++);}},this);},setRowStyle:function(row,i){if(this.previous)this.previous(row,i);this.zebra(row,i);},zebra:function(row,i){return row[((i%2)?'remove':'add')+'Class'](this.options.classZebra);},push:function(){var pushed=this.previous.apply(this,arguments);if(this.options.zebra)this.updateZebras();return pushed;}});HtmlTable=Class.refactor(HtmlTable,{options:{sortIndex:0,sortReverse:false,parsers:[],defaultParser:'string',classSortable:'table-sortable',classHeadSort:'table-th-sort',classHeadSortRev:'table-th-sort-rev',classNoSort:'table-th-nosort',classGroupHead:'table-tr-group-head',classGroup:'table-tr-group',classCellSort:'table-td-sort',classSortSpan:'table-th-sort-span',sortable:false,thSelector:'th'},initialize:function(){this.previous.apply(this,arguments);if(this.occluded)return this.occluded;this.sorted={index:null,dir:1};if(!this.bound)this.bound={};this.bound.headClick=this.headClick.bind(this);this.sortSpans=new Elements();if(this.options.sortable){this.enableSort();if(this.options.sortIndex!=null)this.sort(this.options.sortIndex,this.options.sortReverse);}},attachSorts:function(attach){this.detachSorts();if(attach!==false)this.element.addEvent('click:relay('+this.options.thSelector+')',this.bound.headClick);},detachSorts:function(){this.element.removeEvents('click:relay('+this.options.thSelector+')');},setHeaders:function(){this.previous.apply(this,arguments);if(this.sortEnabled)this.setParsers();},setParsers:function(){this.parsers=this.detectParsers();},detectParsers:function(){return this.head&&this.head.getElements(this.options.thSelector).flatten().map(this.detectParser,this);},detectParser:function(cell,index){if(cell.hasClass(this.options.classNoSort)||cell.retrieve('htmltable-parser'))return cell.retrieve('htmltable-parser');var thDiv=new Element('div');thDiv.adopt(cell.childNodes).inject(cell);var sortSpan=new Element('span',{'class':this.options.classSortSpan}).inject(thDiv,'top');this.sortSpans.push(sortSpan);var parser=this.options.parsers[index],rows=this.body.rows,cancel;switch(typeOf(parser)){case'function':parser={convert:parser};cancel=true;break;case'string':parser=parser;cancel=true;break;} if(!cancel){HtmlTable.ParserPriority.some(function(parserName){var current=HtmlTable.Parsers[parserName],match=current.match;if(!match)return false;for(var i=0,j=rows.length;iposition)data[rowIndex].position--;}}},setRowStyle:function(row,i){this.previous(row,i);row.cells[this.sorted.index].addClass(this.options.classCellSort);},setGroupSort:function(group,row,item){if(group==item.value)row.removeClass(this.options.classGroupHead).addClass(this.options.classGroup);else row.removeClass(this.options.classGroup).addClass(this.options.classGroupHead);return item.value;},getParser:function(){var parser=this.parsers[this.sorted.index];return typeOf(parser)=='string'?HtmlTable.Parsers[parser]:parser;},sort:function(index,reverse,pre){if(!this.head)return;if(!pre){this.clearSort();this.setSortedState(index,reverse);this.setHeadSort(true);} var parser=this.getParser();if(!parser)return;var rel;if(!Browser.ie){rel=this.body.getParent();this.body.dispose();} var data=this.parseData(parser).sort(function(a,b){if(a.value===b.value)return 0;return a.value>b.value?1:-1;});if(this.sorted.reverse==(parser==HtmlTable.Parsers['input-checked']))data.reverse(true);this.setRowSort(data,pre);if(rel)rel.grab(this.body);this.fireEvent('stateChanged');return this.fireEvent('sort',[this.body,this.sorted.index]);},parseData:function(parser){return Array.map(this.body.rows,function(row,i){var value=parser.convert.call(document.id(row.cells[this.sorted.index]));return{position:i,value:value};},this);},clearSort:function(){this.setHeadSort(false);this.body.getElements('td').removeClass(this.options.classCellSort);},reSort:function(){if(this.sortEnabled)this.sort.call(this,this.sorted.index,this.sorted.reverse);return this;},enableSort:function(){this.element.addClass(this.options.classSortable);this.attachSorts(true);this.setParsers();this.sortEnabled=true;return this;},disableSort:function(){this.element.removeClass(this.options.classSortable);this.attachSorts(false);this.sortSpans.each(function(span){span.destroy();});this.sortSpans.empty();this.sortEnabled=false;return this;}});HtmlTable.ParserPriority=['date','input-checked','input-value','float','number'];HtmlTable.Parsers={'date':{match:/^\d{2}[-\/ ]\d{2}[-\/ ]\d{2,4}$/,convert:function(){var d=Date.parse(this.get('text').stripTags());return(typeOf(d)=='date')?d.format('db'):'';},type:'date'},'input-checked':{match:/ type="(radio|checkbox)" /,convert:function(){return this.getElement('input').checked;}},'input-value':{match:/0))return null;if(includeHiddenRows){index+=offset;}else{var limit=0,count=0;if(offset>0){while(countoffset&&index>0){if(this.body.rows[--index].isDisplayed())count--;}}} return index;},attachSelects:function(attach){attach=attach!=null?attach:true;var method=attach?'addEvents':'removeEvents';this.element[method]({mouseleave:this.bound.mouseleave,click:this.bound.activateKeyboard});this.body[method]({'click:relay(tr)':this.bound.clickRow,'contextmenu:relay(tr)':this.bound.clickRow});if(this.options.useKeyboard||this.keyboard){if(!this.keyboard)this.keyboard=new Keyboard();if(!this.selectKeysDefined){this.selectKeysDefined=true;var timer,held;var move=function(offset){var mover=function(e){clearTimeout(timer);e.preventDefault();var to=this.body.rows[this.getRowByOffset(offset,this.options.selectHiddenRows)];if(e.shift&&to&&this.isSelected(to)){this.deselectRow(this.focused);this.focused=to;}else{if(to&&(!this.options.allowMultiSelect||!e.shift)){this.selectNone();} this.shiftFocus(offset,e);} if(held){timer=mover.delay(100,this,e);}else{timer=(function(){held=true;mover(e);}).delay(400);}}.bind(this);return mover;}.bind(this);var clear=function(){clearTimeout(timer);held=false;};this.keyboard.addEvents({'keydown:shift+up':move(-1),'keydown:shift+down':move(1),'keyup:shift+up':clear,'keyup:shift+down':clear,'keyup:up':clear,'keyup:down':clear});var shiftHint='';if(this.options.allowMultiSelect&&this.options.shiftForMultiSelect&&this.options.useKeyboard){shiftHint=" (Shift multi-selects).";} this.keyboard.addShortcuts({'Select Previous Row':{keys:'up',shortcut:'up arrow',handler:move(-1),description:'Select the previous row in the table.'+shiftHint},'Select Next Row':{keys:'down',shortcut:'down arrow',handler:move(1),description:'Select the next row in the table.'+shiftHint}});} this.keyboard[attach?'activate':'deactivate']();} this.updateSelects();},mouseleave:function(){if(this.hovered)this.leaveRow(this.hovered);}});var Scroller=new Class({Implements:[Events,Options],options:{area:20,velocity:1,onChange:function(x,y){this.element.scrollTo(x,y);},fps:50},initialize:function(element,options){this.setOptions(options);this.element=document.id(element);this.docBody=document.id(this.element.getDocument().body);this.listener=(typeOf(this.element)!='element')?this.docBody:this.element;this.timer=null;this.bound={attach:this.attach.bind(this),detach:this.detach.bind(this),getCoords:this.getCoords.bind(this)};},start:function(){this.listener.addEvents({mouseover:this.bound.attach,mouseleave:this.bound.detach});return this;},stop:function(){this.listener.removeEvents({mouseover:this.bound.attach,mouseleave:this.bound.detach});this.detach();this.timer=clearInterval(this.timer);return this;},attach:function(){this.listener.addEvent('mousemove',this.bound.getCoords);},detach:function(){this.listener.removeEvent('mousemove',this.bound.getCoords);this.timer=clearInterval(this.timer);},getCoords:function(event){this.page=(this.listener.get('tag')=='body')?event.client:event.page;if(!this.timer)this.timer=this.scroll.periodical(Math.round(1000/this.options.fps),this);},scroll:function(){var size=this.element.getSize(),scroll=this.element.getScroll(),pos=this.element!=this.docBody?this.element.getOffsets():{x:0,y:0},scrollSize=this.element.getScrollSize(),change={x:0,y:0},top=this.options.area.top||this.options.area,bottom=this.options.area.bottom||this.options.area;for(var z in this.page){if(this.page[z]<(top+pos[z])&&scroll[z]!=0){change[z]=(this.page[z]-top-pos[z])*this.options.velocity;}else if(this.page[z]+bottom>(size[z]+pos[z])&&scroll[z]+size[z]!=scrollSize[z]){change[z]=(this.page[z]-size[z]+bottom-pos[z])*this.options.velocity;} change[z]=change[z].round();} if(change.y||change.x)this.fireEvent('change',[scroll.x+change.x,scroll.y+change.y]);}});(function(){var read=function(option,element){return(option)?(typeOf(option)=='function'?option(element):element.get(option)):'';};this.Tips=new Class({Implements:[Events,Options],options:{onShow:function(){this.tip.setStyle('display','block');},onHide:function(){this.tip.setStyle('display','none');},title:'title',text:function(element){return element.get('rel')||element.get('href');},showDelay:100,hideDelay:100,className:'tip-wrap',offset:{x:16,y:16},windowPadding:{x:0,y:0},fixed:false,waiAria:true},initialize:function(){var params=Array.link(arguments,{options:Type.isObject,elements:function(obj){return obj!=null;}});this.setOptions(params.options);if(params.elements)this.attach(params.elements);this.container=new Element('div',{'class':'tip'});if(this.options.id){this.container.set('id',this.options.id);if(this.options.waiAria)this.attachWaiAria();}},toElement:function(){if(this.tip)return this.tip;this.tip=new Element('div',{'class':this.options.className,styles:{position:'absolute',top:0,left:0}}).adopt(new Element('div',{'class':'tip-top'}),this.container,new Element('div',{'class':'tip-bottom'}));return this.tip;},attachWaiAria:function(){var id=this.options.id;this.container.set('role','tooltip');if(!this.waiAria){this.waiAria={show:function(element){if(id)element.set('aria-describedby',id);this.container.set('aria-hidden','false');},hide:function(element){if(id)element.erase('aria-describedby');this.container.set('aria-hidden','true');}};} this.addEvents(this.waiAria);},detachWaiAria:function(){if(this.waiAria){this.container.erase('role');this.container.erase('aria-hidden');this.removeEvents(this.waiAria);}},attach:function(elements){$$(elements).each(function(element){var title=read(this.options.title,element),text=read(this.options.text,element);element.set('title','').store('tip:native',title).retrieve('tip:title',title);element.retrieve('tip:text',text);this.fireEvent('attach',[element]);var events=['enter','leave'];if(!this.options.fixed)events.push('move');events.each(function(value){var event=element.retrieve('tip:'+value);if(!event)event=function(event){this['element'+value.capitalize()].apply(this,[event,element]);}.bind(this);element.store('tip:'+value,event).addEvent('mouse'+value,event);},this);},this);return this;},detach:function(elements){$$(elements).each(function(element){['enter','leave','move'].each(function(value){element.removeEvent('mouse'+value,element.retrieve('tip:'+value)).eliminate('tip:'+value);});this.fireEvent('detach',[element]);if(this.options.title=='title'){var original=element.retrieve('tip:native');if(original)element.set('title',original);}},this);return this;},elementEnter:function(event,element){clearTimeout(this.timer);this.timer=(function(){this.container.empty();['title','text'].each(function(value){var content=element.retrieve('tip:'+value);var div=this['_'+value+'Element']=new Element('div',{'class':'tip-'+value}).inject(this.container);if(content)this.fill(div,content);},this);this.show(element);this.position((this.options.fixed)?{page:element.getPosition()}:event);}).delay(this.options.showDelay,this);},elementLeave:function(event,element){clearTimeout(this.timer);this.timer=this.hide.delay(this.options.hideDelay,this,element);this.fireForParent(event,element);},setTitle:function(title){if(this._titleElement){this._titleElement.empty();this.fill(this._titleElement,title);} return this;},setText:function(text){if(this._textElement){this._textElement.empty();this.fill(this._textElement,text);} return this;},fireForParent:function(event,element){element=element.getParent();if(!element||element==document.body)return;if(element.retrieve('tip:enter'))element.fireEvent('mouseenter',event);else this.fireForParent(event,element);},elementMove:function(event,element){this.position(event);},position:function(event){if(!this.tip)document.id(this);var size=window.getSize(),scroll=window.getScroll(),tip={x:this.tip.offsetWidth,y:this.tip.offsetHeight},props={x:'left',y:'top'},bounds={y:false,x2:false,y2:false,x:false},obj={};for(var z in props){obj[props[z]]=event.page[z]+this.options.offset[z];if(obj[props[z]]<0)bounds[z]=true;if((obj[props[z]]+tip[z]-scroll[z])>size[z]-this.options.windowPadding[z]){obj[props[z]]=event.page[z]-this.options.offset[z]-tip[z];bounds[z+'2']=true;}} this.fireEvent('bound',bounds);this.tip.setStyles(obj);},fill:function(element,contents){if(typeof contents=='string')element.set('html',contents);else element.adopt(contents);},show:function(element){if(!this.tip)document.id(this);if(!this.tip.getParent())this.tip.inject(document.body);this.fireEvent('show',[this.tip,element]);},hide:function(element){if(!this.tip)document.id(this);this.fireEvent('hide',[this.tip,element]);}});})();(function(){var parsers={'json':JSON.decode};Locale.Set.defineParser=function(name,fn){parsers[name]=fn;};Locale.Set.from=function(set,type){if(instanceOf(set,Locale.Set))return set;if(!type&&typeOf(set)=='string')type='json';if(parsers[type])set=parsers[type](set);var locale=new Locale.Set;locale.sets=set.sets||{};if(set.inherits){locale.inherits.locales=Array.from(set.inherits.locales);locale.inherits.sets=set.inherits.sets||{};} return locale;};})();Locale.define('ar','Date',{dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M'});Locale.define('ar','FormValidator',{required:'هذا الحقل مطلوب.',minLength:'رجاءً إدخال {minLength} أحرف على الأقل (تم إدخال {length} أحرف).',maxLength:'الرجاء عدم إدخال أكثر من {maxLength} أحرف (تم إدخال {length} أحرف).',integer:'الرجاء إدخال عدد صحيح في هذا الحقل. أي رقم ذو كسر عشري أو مئوي (مثال 1.25 ) غير مسموح.',numeric:'الرجاء إدخال قيم رقمية في هذا الحقل (مثال "1" أو "1.1" أو "-1" أو "-1.1").',digits:'الرجاء أستخدام قيم رقمية وعلامات ترقيمية فقط في هذا الحقل (مثال, رقم هاتف مع نقطة أو شحطة)',alpha:'الرجاء أستخدام أحرف فقط (ا-ÙŠ) في هذا الحقل. أي فراغات أو علامات غير مسموحة.',alphanum:'الرجاء أستخدام أحرف فقط (ا-ÙŠ) أو أرقام (0-9) فقط في هذا الحقل. أي فراغات أو علامات غير مسموحة.',dateSuchAs:'الرجاء إدخال تاريخ صحيح كالتالي {date}',dateInFormatMDY:'الرجاء إدخال تاريخ صحيح (مثال, 31-12-1999)',email:'الرجاء إدخال بريد إلكتروني صحيح.',url:'الرجاء إدخال عنوان إلكتروني صحيح مثل http://www.example.com',currencyDollar:'الرجاء إدخال قيمة $ صحيحة. مثال, 100.00$',oneRequired:'الرجاء إدخال قيمة في أحد هذه الحقول على الأقل.',errorPrefix:'خطأ: ',warningPrefix:'تحذير: '});Locale.define('ca-CA','Date',{months:['Gener','Febrer','Març','Abril','Maig','Juny','Juli','Agost','Setembre','Octubre','Novembre','Desembre'],months_abbr:['gen.','febr.','març','abr.','maig','juny','jul.','ag.','set.','oct.','nov.','des.'],days:['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'],days_abbr:['dg','dl','dt','dc','dj','dv','ds'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:0,ordinal:'',lessThanMinuteAgo:'fa menys d`un minut',minuteAgo:'fa un minut',minutesAgo:'fa {delta} minuts',hourAgo:'fa un hora',hoursAgo:'fa unes {delta} hores',dayAgo:'fa un dia',daysAgo:'fa {delta} dies',lessThanMinuteUntil:'menys d`un minut des d`ara',minuteUntil:'un minut des d`ara',minutesUntil:'{delta} minuts des d`ara',hourUntil:'un hora des d`ara',hoursUntil:'unes {delta} hores des d`ara',dayUntil:'1 dia des d`ara',daysUntil:'{delta} dies des d`ara'});Locale.define('ca-CA','FormValidator',{required:'Aquest camp es obligatori.',minLength:'Per favor introdueix al menys {minLength} caracters (has introduit {length} caracters).',maxLength:'Per favor introdueix no mes de {maxLength} caracters (has introduit {length} caracters).',integer:'Per favor introdueix un nombre enter en aquest camp. Nombres amb decimals (p.e. 1,25) no estan permesos.',numeric:'Per favor introdueix sols valors numerics en aquest camp (p.e. "1" o "1,1" o "-1" o "-1,1").',digits:'Per favor usa sols numeros i puntuacio en aquest camp (per exemple, un nombre de telefon amb guions i punts no esta permes).',alpha:'Per favor utilitza lletres nomes (a-z) en aquest camp. No s´admiteixen espais ni altres caracters.',alphanum:'Per favor, utilitza nomes lletres (a-z) o numeros (0-9) en aquest camp. No s´admiteixen espais ni altres caracters.',dateSuchAs:'Per favor introdueix una data valida com {date}',dateInFormatMDY:'Per favor introdueix una data valida com DD/MM/YYYY (p.e. "31/12/1999")',email:'Per favor, introdueix una adreça de correu electronic valida. Per exemple, "fred@domain.com".',url:'Per favor introdueix una URL valida com http://www.example.com.',currencyDollar:'Per favor introdueix una quantitat valida de €. Per exemple €100,00 .',oneRequired:'Per favor introdueix alguna cosa per al menys una d´aquestes entrades.',errorPrefix:'Error: ',warningPrefix:'Avis: ',noSpace:'No poden haver espais en aquesta entrada.',reqChkByNode:'No hi han elements seleccionats.',requiredChk:'Aquest camp es obligatori.',reqChkByName:'Per favor selecciona una {label}.',match:'Aquest camp necessita coincidir amb el camp {matchName}',startDate:'la data de inici',endDate:'la data de fi',currendDate:'la data actual',afterDate:'La data deu ser igual o posterior a {label}.',beforeDate:'La data deu ser igual o anterior a {label}.',startMonth:'Per favor selecciona un mes d´orige',sameMonth:'Aquestes dos dates deuen estar dins del mateix mes - deus canviar una o altra.'});(function(){var pluralize=function(n,one,few,other){if(n==1)return one;else if(n==2||n==3||n==4)return few;else return other;};Locale.define('cs-CZ','Date',{months:['Leden','Únor','BÅ™ezen','Duben','KvÄ›ten','ÄŒerven','ÄŒervenec','Srpen','Září','Říjen','Listopad','Prosinec'],months_abbr:['ledna','února','bÅ™ezna','dubna','kvÄ›tna','června','července','srpna','září','října','listopadu','prosince'],days:['NedÄ›le','PondÄ›lí','Úterý','StÅ™eda','ÄŒtvrtek','Pátek','Sobota'],days_abbr:['ne','po','út','st','čt','pá','so'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'dop.',PM:'odp.',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'pÅ™ed chvílí',minuteAgo:'pÅ™ibližnÄ› pÅ™ed minutou',minutesAgo:function(delta){return'pÅ™ed {delta} '+pluralize(delta,'minutou','minutami','minutami');},hourAgo:'pÅ™ibližnÄ› pÅ™ed hodinou',hoursAgo:function(delta){return'pÅ™ed {delta} '+pluralize(delta,'hodinou','hodinami','hodinami');},dayAgo:'pÅ™ed dnem',daysAgo:function(delta){return'pÅ™ed {delta} '+pluralize(delta,'dnem','dny','dny');},weekAgo:'pÅ™ed týdnem',weeksAgo:function(delta){return'pÅ™ed {delta} '+pluralize(delta,'týdnem','týdny','týdny');},monthAgo:'pÅ™ed mÄ›sícem',monthsAgo:function(delta){return'pÅ™ed {delta} '+pluralize(delta,'mÄ›sícem','mÄ›síci','mÄ›síci');},yearAgo:'pÅ™ed rokem',yearsAgo:function(delta){return'pÅ™ed {delta} '+pluralize(delta,'rokem','lety','lety');},lessThanMinuteUntil:'za chvíli',minuteUntil:'pÅ™ibližnÄ› za minutu',minutesUntil:function(delta){return'za {delta} '+pluralize(delta,'minutu','minuty','minut');},hourUntil:'pÅ™ibližnÄ› za hodinu',hoursUntil:function(delta){return'za {delta} '+pluralize(delta,'hodinu','hodiny','hodin');},dayUntil:'za den',daysUntil:function(delta){return'za {delta} '+pluralize(delta,'den','dny','dnů');},weekUntil:'za týden',weeksUntil:function(delta){return'za {delta} '+pluralize(delta,'týden','týdny','týdnů');},monthUntil:'za mÄ›síc',monthsUntil:function(delta){return'za {delta} '+pluralize(delta,'mÄ›síc','mÄ›síce','mÄ›síců');},yearUntil:'za rok',yearsUntil:function(delta){return'za {delta} '+pluralize(delta,'rok','roky','let');}});})();Locale.define('cs-CZ','FormValidator',{required:'Tato položka je povinná.',minLength:'Zadejte prosím alespoň {minLength} znaků (napsáno {length} znaků).',maxLength:'Zadejte prosím ménÄ› než {maxLength} znaků (nápsáno {length} znaků).',integer:'Zadejte prosím celé číslo. Desetinná čísla (napÅ™. 1.25) nejsou povolena.',numeric:'Zadejte jen číselné hodnoty (tj. "1" nebo "1.1" nebo "-1" nebo "-1.1").',digits:'Zadejte prosím pouze čísla a interpunkční znaménka(například telefonní číslo s pomlčkami nebo tečkami je povoleno).',alpha:'Zadejte prosím pouze písmena (a-z). Mezery nebo jiné znaky nejsou povoleny.',alphanum:'Zadejte prosím pouze písmena (a-z) nebo číslice (0-9). Mezery nebo jiné znaky nejsou povoleny.',dateSuchAs:'Zadejte prosím platné datum jako {date}',dateInFormatMDY:'Zadejte prosím platné datum jako MM / DD / RRRR (tj. "12/31/1999")',email:'Zadejte prosím platnou e-mailovou adresu. Například "fred@domain.com".',url:'Zadejte prosím platnou URL adresu jako http://www.example.com.',currencyDollar:'Zadejte prosím platnou částku. Například $100.00.',oneRequired:'Zadejte prosím alespoň jednu hodnotu pro tyto položky.',errorPrefix:'Chyba: ',warningPrefix:'UpozornÄ›ní: ',noSpace:'V této položce nejsou povoleny mezery',reqChkByNode:'Nejsou vybrány žádné položky.',requiredChk:'Tato položka je vyžadována.',reqChkByName:'Prosím vyberte {label}.',match:'Tato položka se musí shodovat s položkou {matchName}',startDate:'datum zahájení',endDate:'datum ukončení',currendDate:'aktuální datum',afterDate:'Datum by mÄ›lo být stejné nebo vÄ›tší než {label}.',beforeDate:'Datum by mÄ›lo být stejné nebo menší než {label}.',startMonth:'Vyberte počáteční mÄ›síc.',sameMonth:'Tyto dva datumy musí být ve stejném mÄ›síci - změňte jeden z nich.',creditcard:'Zadané číslo kreditní karty je neplatné. Prosím opravte ho. Bylo zadáno {length} čísel.'});Locale.define('da-DK','Date',{months:['Januar','Februar','Marts','April','Maj','Juni','Juli','August','September','Oktober','November','December'],months_abbr:['jan.','feb.','mar.','apr.','maj.','jun.','jul.','aug.','sep.','okt.','nov.','dec.'],days:['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],days_abbr:['søn','man','tir','ons','tor','fre','lør'],dateOrder:['date','month','year'],shortDate:'%d-%m-%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'mindre end et minut siden',minuteAgo:'omkring et minut siden',minutesAgo:'{delta} minutter siden',hourAgo:'omkring en time siden',hoursAgo:'omkring {delta} timer siden',dayAgo:'1 dag siden',daysAgo:'{delta} dage siden',weekAgo:'1 uge siden',weeksAgo:'{delta} uger siden',monthAgo:'1 mÃ¥ned siden',monthsAgo:'{delta} mÃ¥neder siden',yearAgo:'1 Ã¥r siden',yearsAgo:'{delta} Ã¥r siden',lessThanMinuteUntil:'mindre end et minut fra nu',minuteUntil:'omkring et minut fra nu',minutesUntil:'{delta} minutter fra nu',hourUntil:'omkring en time fra nu',hoursUntil:'omkring {delta} timer fra nu',dayUntil:'1 dag fra nu',daysUntil:'{delta} dage fra nu',weekUntil:'1 uge fra nu',weeksUntil:'{delta} uger fra nu',monthUntil:'1 mÃ¥ned fra nu',monthsUntil:'{delta} mÃ¥neder fra nu',yearUntil:'1 Ã¥r fra nu',yearsUntil:'{delta} Ã¥r fra nu'});Locale.define('da-DK','FormValidator',{required:'Feltet skal udfyldes.',minLength:'Skriv mindst {minLength} tegn (du skrev {length} tegn).',maxLength:'Skriv maksimalt {maxLength} tegn (du skrev {length} tegn).',integer:'Skriv et tal i dette felt. Decimal tal (f.eks. 1.25) er ikke tilladt.',numeric:'Skriv kun tal i dette felt (i.e. "1" eller "1.1" eller "-1" eller "-1.1").',digits:'Skriv kun tal og tegnsætning i dette felt (eksempel, et telefon nummer med bindestreg eller punktum er tilladt).',alpha:'Skriv kun bogstaver (a-z) i dette felt. Mellemrum og andre tegn er ikke tilladt.',alphanum:'Skriv kun bogstaver (a-z) eller tal (0-9) i dette felt. Mellemrum og andre tegn er ikke tilladt.',dateSuchAs:'Skriv en gyldig dato som {date}',dateInFormatMDY:'Skriv dato i formatet DD-MM-YYYY (f.eks. "31-12-1999")',email:'Skriv en gyldig e-mail adresse. F.eks "fred@domain.com".',url:'Skriv en gyldig URL adresse. F.eks "http://www.example.com".',currencyDollar:'Skriv et gldigt beløb. F.eks Kr.100.00 .',oneRequired:'Et eller flere af felterne i denne formular skal udfyldes.',errorPrefix:'Fejl: ',warningPrefix:'Advarsel: ',noSpace:'Der mÃ¥ ikke benyttes mellemrum i dette felt.',reqChkByNode:'Foretag et valg.',requiredChk:'Dette felt skal udfyldes.',reqChkByName:'Vælg en {label}.',match:'Dette felt skal matche {matchName} feltet',startDate:'start dato',endDate:'slut dato',currendDate:'dags dato',afterDate:'Datoen skal være større end eller lig med {label}.',beforeDate:'Datoen skal være mindre end eller lig med {label}.',startMonth:'Vælg en start mÃ¥ned',sameMonth:'De valgte datoer skal være i samme mÃ¥ned - skift en af dem.'});Locale.define('de-DE','Date',{months:['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],months_abbr:['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],days:['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],days_abbr:['So.','Mo.','Di.','Mi.','Do.','Fr.','Sa.'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'vormittags',PM:'nachmittags',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'vor weniger als einer Minute',minuteAgo:'vor einer Minute',minutesAgo:'vor {delta} Minuten',hourAgo:'vor einer Stunde',hoursAgo:'vor {delta} Stunden',dayAgo:'vor einem Tag',daysAgo:'vor {delta} Tagen',weekAgo:'vor einer Woche',weeksAgo:'vor {delta} Wochen',monthAgo:'vor einem Monat',monthsAgo:'vor {delta} Monaten',yearAgo:'vor einem Jahr',yearsAgo:'vor {delta} Jahren',lessThanMinuteUntil:'in weniger als einer Minute',minuteUntil:'in einer Minute',minutesUntil:'in {delta} Minuten',hourUntil:'in ca. einer Stunde',hoursUntil:'in ca. {delta} Stunden',dayUntil:'in einem Tag',daysUntil:'in {delta} Tagen',weekUntil:'in einer Woche',weeksUntil:'in {delta} Wochen',monthUntil:'in einem Monat',monthsUntil:'in {delta} Monaten',yearUntil:'in einem Jahr',yearsUntil:'in {delta} Jahren'});Locale.define('de-CH').inherit('de-DE','Date');Locale.define('de-CH','FormValidator',{required:'Dieses Feld ist obligatorisch.',minLength:'Geben Sie bitte mindestens {minLength} Zeichen ein (Sie haben {length} Zeichen eingegeben).',maxLength:'Bitte geben Sie nicht mehr als {maxLength} Zeichen ein (Sie haben {length} Zeichen eingegeben).',integer:'Geben Sie bitte eine ganze Zahl ein. Dezimalzahlen (z.B. 1.25) sind nicht erlaubt.',numeric:'Geben Sie bitte nur Zahlenwerte in dieses Eingabefeld ein (z.B. "1", "1.1", "-1" oder "-1.1").',digits:'Benutzen Sie bitte nur Zahlen und Satzzeichen in diesem Eingabefeld (erlaubt ist z.B. eine Telefonnummer mit Bindestrichen und Punkten).',alpha:'Benutzen Sie bitte nur Buchstaben (a-z) in diesem Feld. Leerzeichen und andere Zeichen sind nicht erlaubt.',alphanum:'Benutzen Sie bitte nur Buchstaben (a-z) und Zahlen (0-9) in diesem Eingabefeld. Leerzeichen und andere Zeichen sind nicht erlaubt.',dateSuchAs:'Geben Sie bitte ein gültiges Datum ein. Wie zum Beispiel {date}',dateInFormatMDY:'Geben Sie bitte ein gültiges Datum ein. Wie zum Beispiel TT.MM.JJJJ (z.B. "31.12.1999")',email:'Geben Sie bitte eine gültige E-Mail Adresse ein. Wie zum Beispiel "maria@bernasconi.ch".',url:'Geben Sie bitte eine gültige URL ein. Wie zum Beispiel http://www.example.com.',currencyDollar:'Geben Sie bitte einen gültigen Betrag in Schweizer Franken ein. Wie zum Beispiel 100.00 CHF .',oneRequired:'Machen Sie für mindestens eines der Eingabefelder einen Eintrag.',errorPrefix:'Fehler: ',warningPrefix:'Warnung: ',noSpace:'In diesem Eingabefeld darf kein Leerzeichen sein.',reqChkByNode:'Es wurden keine Elemente gewählt.',requiredChk:'Dieses Feld ist obligatorisch.',reqChkByName:'Bitte wählen Sie ein {label}.',match:'Dieses Eingabefeld muss mit dem Feld {matchName} übereinstimmen.',startDate:'Das Anfangsdatum',endDate:'Das Enddatum',currendDate:'Das aktuelle Datum',afterDate:'Das Datum sollte zur gleichen Zeit oder später sein {label}.',beforeDate:'Das Datum sollte zur gleichen Zeit oder früher sein {label}.',startMonth:'Wählen Sie bitte einen Anfangsmonat',sameMonth:'Diese zwei Datumsangaben müssen im selben Monat sein - Sie müssen eine von beiden verändern.',creditcard:'Die eingegebene Kreditkartennummer ist ungültig. Bitte überprüfen Sie diese und versuchen Sie es erneut. {length} Zahlen eingegeben.'});Locale.define('de-DE','FormValidator',{required:'Dieses Eingabefeld muss ausgefüllt werden.',minLength:'Geben Sie bitte mindestens {minLength} Zeichen ein (Sie haben nur {length} Zeichen eingegeben).',maxLength:'Geben Sie bitte nicht mehr als {maxLength} Zeichen ein (Sie haben {length} Zeichen eingegeben).',integer:'Geben Sie in diesem Eingabefeld bitte eine ganze Zahl ein. Dezimalzahlen (z.B. "1.25") sind nicht erlaubt.',numeric:'Geben Sie in diesem Eingabefeld bitte nur Zahlenwerte (z.B. "1", "1.1", "-1" oder "-1.1") ein.',digits:'Geben Sie in diesem Eingabefeld bitte nur Zahlen und Satzzeichen ein (z.B. eine Telefonnummer mit Bindestrichen und Punkten ist erlaubt).',alpha:'Geben Sie in diesem Eingabefeld bitte nur Buchstaben (a-z) ein. Leerzeichen und andere Zeichen sind nicht erlaubt.',alphanum:'Geben Sie in diesem Eingabefeld bitte nur Buchstaben (a-z) und Zahlen (0-9) ein. Leerzeichen oder andere Zeichen sind nicht erlaubt.',dateSuchAs:'Geben Sie bitte ein gültiges Datum ein (z.B. "{date}").',dateInFormatMDY:'Geben Sie bitte ein gültiges Datum im Format TT.MM.JJJJ ein (z.B. "31.12.1999").',email:'Geben Sie bitte eine gültige E-Mail-Adresse ein (z.B. "max@mustermann.de").',url:'Geben Sie bitte eine gültige URL ein (z.B. "http://www.example.com").',currencyDollar:'Geben Sie bitte einen gültigen Betrag in EURO ein (z.B. 100.00€).',oneRequired:'Bitte füllen Sie mindestens ein Eingabefeld aus.',errorPrefix:'Fehler: ',warningPrefix:'Warnung: ',noSpace:'Es darf kein Leerzeichen in diesem Eingabefeld sein.',reqChkByNode:'Es wurden keine Elemente gewählt.',requiredChk:'Dieses Feld muss ausgefüllt werden.',reqChkByName:'Bitte wählen Sie ein {label}.',match:'Dieses Eingabefeld muss mit dem {matchName} Eingabefeld übereinstimmen.',startDate:'Das Anfangsdatum',endDate:'Das Enddatum',currendDate:'Das aktuelle Datum',afterDate:'Das Datum sollte zur gleichen Zeit oder später sein als {label}.',beforeDate:'Das Datum sollte zur gleichen Zeit oder früher sein als {label}.',startMonth:'Wählen Sie bitte einen Anfangsmonat',sameMonth:'Diese zwei Datumsangaben müssen im selben Monat sein - Sie müssen eines von beiden verändern.',creditcard:'Die eingegebene Kreditkartennummer ist ungültig. Bitte überprüfen Sie diese und versuchen Sie es erneut. {length} Zahlen eingegeben.'});Locale.define('EU','Number',{decimal:',',group:'.',currency:{prefix:'€ '}});Locale.define('de-DE').inherit('EU','Number');Locale.define('en-GB','Date',{dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M'}).inherit('en-US','Date');Locale.define('es-ES','Date',{months:['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],months_abbr:['ene','feb','mar','abr','may','jun','jul','ago','sep','oct','nov','dic'],days:['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],days_abbr:['dom','lun','mar','mié','juv','vie','sáb'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'hace menos de un minuto',minuteAgo:'hace un minuto',minutesAgo:'hace {delta} minutos',hourAgo:'hace una hora',hoursAgo:'hace unas {delta} horas',dayAgo:'hace un día',daysAgo:'hace {delta} días',weekAgo:'hace una semana',weeksAgo:'hace unas {delta} semanas',monthAgo:'hace un mes',monthsAgo:'hace {delta} meses',yearAgo:'hace un año',yearsAgo:'hace {delta} años',lessThanMinuteUntil:'menos de un minuto desde ahora',minuteUntil:'un minuto desde ahora',minutesUntil:'{delta} minutos desde ahora',hourUntil:'una hora desde ahora',hoursUntil:'unas {delta} horas desde ahora',dayUntil:'un día desde ahora',daysUntil:'{delta} días desde ahora',weekUntil:'una semana desde ahora',weeksUntil:'unas {delta} semanas desde ahora',monthUntil:'un mes desde ahora',monthsUntil:'{delta} meses desde ahora',yearUntil:'un año desde ahora',yearsUntil:'{delta} años desde ahora'});Locale.define('es-AR').inherit('es-ES','Date');Locale.define('es-AR','FormValidator',{required:'Este campo es obligatorio.',minLength:'Por favor ingrese al menos {minLength} caracteres (ha ingresado {length} caracteres).',maxLength:'Por favor no ingrese más de {maxLength} caracteres (ha ingresado {length} caracteres).',integer:'Por favor ingrese un número entero en este campo. Números con decimales (p.e. 1,25) no se permiten.',numeric:'Por favor ingrese solo valores numéricos en este campo (p.e. "1" o "1,1" o "-1" o "-1,1").',digits:'Por favor use sólo números y puntuación en este campo (por ejemplo, un número de teléfono con guiones y/o puntos no está permitido).',alpha:'Por favor use sólo letras (a-z) en este campo. No se permiten espacios ni otros caracteres.',alphanum:'Por favor, usa sólo letras (a-z) o números (0-9) en este campo. No se permiten espacios u otros caracteres.',dateSuchAs:'Por favor ingrese una fecha válida como {date}',dateInFormatMDY:'Por favor ingrese una fecha válida, utulizando el formato DD/MM/YYYY (p.e. "31/12/1999")',email:'Por favor, ingrese una dirección de e-mail válida. Por ejemplo, "fred@dominio.com".',url:'Por favor ingrese una URL válida como http://www.example.com.',currencyDollar:'Por favor ingrese una cantidad válida de pesos. Por ejemplo $100,00 .',oneRequired:'Por favor ingrese algo para por lo menos una de estas entradas.',errorPrefix:'Error: ',warningPrefix:'Advertencia: ',noSpace:'No se permiten espacios en este campo.',reqChkByNode:'No hay elementos seleccionados.',requiredChk:'Este campo es obligatorio.',reqChkByName:'Por favor selecciona una {label}.',match:'Este campo necesita coincidir con el campo {matchName}',startDate:'la fecha de inicio',endDate:'la fecha de fin',currendDate:'la fecha actual',afterDate:'La fecha debe ser igual o posterior a {label}.',beforeDate:'La fecha debe ser igual o anterior a {label}.',startMonth:'Por favor selecciona un mes de origen',sameMonth:'Estas dos fechas deben estar en el mismo mes - debes cambiar una u otra.'});Locale.define('es-ES','FormValidator',{required:'Este campo es obligatorio.',minLength:'Por favor introduce al menos {minLength} caracteres (has introducido {length} caracteres).',maxLength:'Por favor introduce no más de {maxLength} caracteres (has introducido {length} caracteres).',integer:'Por favor introduce un número entero en este campo. Números con decimales (p.e. 1,25) no se permiten.',numeric:'Por favor introduce solo valores numéricos en este campo (p.e. "1" o "1,1" o "-1" o "-1,1").',digits:'Por favor usa solo números y puntuación en este campo (por ejemplo, un número de teléfono con guiones y puntos no esta permitido).',alpha:'Por favor usa letras solo (a-z) en este campo. No se admiten espacios ni otros caracteres.',alphanum:'Por favor, usa solo letras (a-z) o números (0-9) en este campo. No se admiten espacios ni otros caracteres.',dateSuchAs:'Por favor introduce una fecha válida como {date}',dateInFormatMDY:'Por favor introduce una fecha válida como DD/MM/YYYY (p.e. "31/12/1999")',email:'Por favor, introduce una dirección de email válida. Por ejemplo, "fred@domain.com".',url:'Por favor introduce una URL válida como http://www.example.com.',currencyDollar:'Por favor introduce una cantidad válida de €. Por ejemplo €100,00 .',oneRequired:'Por favor introduce algo para por lo menos una de estas entradas.',errorPrefix:'Error: ',warningPrefix:'Aviso: ',noSpace:'No pueden haber espacios en esta entrada.',reqChkByNode:'No hay elementos seleccionados.',requiredChk:'Este campo es obligatorio.',reqChkByName:'Por favor selecciona una {label}.',match:'Este campo necesita coincidir con el campo {matchName}',startDate:'la fecha de inicio',endDate:'la fecha de fin',currendDate:'la fecha actual',afterDate:'La fecha debe ser igual o posterior a {label}.',beforeDate:'La fecha debe ser igual o anterior a {label}.',startMonth:'Por favor selecciona un mes de origen',sameMonth:'Estas dos fechas deben estar en el mismo mes - debes cambiar una u otra.'});Locale.define('et-EE','Date',{months:['jaanuar','veebruar','märts','aprill','mai','juuni','juuli','august','september','oktoober','november','detsember'],months_abbr:['jaan','veebr','märts','apr','mai','juuni','juuli','aug','sept','okt','nov','dets'],days:['pühapäev','esmaspäev','teisipäev','kolmapäev','neljapäev','reede','laupäev'],days_abbr:['pühap','esmasp','teisip','kolmap','neljap','reede','laup'],dateOrder:['month','date','year'],shortDate:'%m.%d.%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'vähem kui minut aega tagasi',minuteAgo:'umbes minut aega tagasi',minutesAgo:'{delta} minutit tagasi',hourAgo:'umbes tund aega tagasi',hoursAgo:'umbes {delta} tundi tagasi',dayAgo:'1 päev tagasi',daysAgo:'{delta} päeva tagasi',weekAgo:'1 nädal tagasi',weeksAgo:'{delta} nädalat tagasi',monthAgo:'1 kuu tagasi',monthsAgo:'{delta} kuud tagasi',yearAgo:'1 aasta tagasi',yearsAgo:'{delta} aastat tagasi',lessThanMinuteUntil:'vähem kui minuti aja pärast',minuteUntil:'umbes minuti aja pärast',minutesUntil:'{delta} minuti pärast',hourUntil:'umbes tunni aja pärast',hoursUntil:'umbes {delta} tunni pärast',dayUntil:'1 päeva pärast',daysUntil:'{delta} päeva pärast',weekUntil:'1 nädala pärast',weeksUntil:'{delta} nädala pärast',monthUntil:'1 kuu pärast',monthsUntil:'{delta} kuu pärast',yearUntil:'1 aasta pärast',yearsUntil:'{delta} aasta pärast'});Locale.define('et-EE','FormValidator',{required:'Väli peab olema täidetud.',minLength:'Palun sisestage vähemalt {minLength} tähte (te sisestasite {length} tähte).',maxLength:'Palun ärge sisestage rohkem kui {maxLength} tähte (te sisestasite {length} tähte).',integer:'Palun sisestage väljale täisarv. Kümnendarvud (näiteks 1.25) ei ole lubatud.',numeric:'Palun sisestage ainult numbreid väljale (näiteks "1", "1.1", "-1" või "-1.1").',digits:'Palun kasutage ainult numbreid ja kirjavahemärke (telefoninumbri sisestamisel on lubatud kasutada kriipse ja punkte).',alpha:'Palun kasutage ainult tähti (a-z). Tühikud ja teised sümbolid on keelatud.',alphanum:'Palun kasutage ainult tähti (a-z) või numbreid (0-9). Tühikud ja teised sümbolid on keelatud.',dateSuchAs:'Palun sisestage kehtiv kuupäev kujul {date}',dateInFormatMDY:'Palun sisestage kehtiv kuupäev kujul MM.DD.YYYY (näiteks: "12.31.1999").',email:'Palun sisestage kehtiv e-maili aadress (näiteks: "fred@domain.com").',url:'Palun sisestage kehtiv URL (näiteks: http://www.example.com).',currencyDollar:'Palun sisestage kehtiv $ summa (näiteks: $100.00).',oneRequired:'Palun sisestage midagi vähemalt ühele antud väljadest.',errorPrefix:'Viga: ',warningPrefix:'Hoiatus: ',noSpace:'Väli ei tohi sisaldada tühikuid.',reqChkByNode:'Ãœkski väljadest pole valitud.',requiredChk:'Välja täitmine on vajalik.',reqChkByName:'Palun valige üks {label}.',match:'Väli peab sobima {matchName} väljaga',startDate:'algkuupäev',endDate:'lõppkuupäev',currendDate:'praegune kuupäev',afterDate:'Kuupäev peab olema võrdne või pärast {label}.',beforeDate:'Kuupäev peab olema võrdne või enne {label}.',startMonth:'Palun valige algkuupäev.',sameMonth:'Antud kaks kuupäeva peavad olema samas kuus - peate muutma ühte kuupäeva.'});Locale.define('fa','Date',{months:['ژانویه','فوریه','مارس','آپریل','مه','ژوئن','ژوئیه','آگوست','سپتامبر','اکتبر','نوامبر','دسامبر'],months_abbr:['1','2','3','4','5','6','7','8','9','10','11','12'],days:['یکشنبه','دوشنبه','سه شنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'],days_abbr:['ÙŠ','د','س','Ú†','Ù¾','ج','Ø´'],dateOrder:['month','date','year'],shortDate:'%m/%d/%Y',shortTime:'%I:%M%p',AM:'Ù‚.ظ',PM:'ب.ظ',ordinal:'ام',lessThanMinuteAgo:'کمتر از یک دقیقه پیش',minuteAgo:'حدود یک دقیقه پیش',minutesAgo:'{delta} دقیقه پیش',hourAgo:'حدود یک ساعت پیش',hoursAgo:'حدود {delta} ساعت پیش',dayAgo:'1 روز پیش',daysAgo:'{delta} روز پیش',weekAgo:'1 هفته پیش',weeksAgo:'{delta} هفته پیش',monthAgo:'1 ماه پیش',monthsAgo:'{delta} ماه پیش',yearAgo:'1 سال پیش',yearsAgo:'{delta} سال پیش',lessThanMinuteUntil:'کمتر از یک دقیقه از حالا',minuteUntil:'حدود یک دقیقه از حالا',minutesUntil:'{delta} دقیقه از حالا',hourUntil:'حدود یک ساعت از حالا',hoursUntil:'حدود {delta} ساعت از حالا',dayUntil:'1 روز از حالا',daysUntil:'{delta} روز از حالا',weekUntil:'1 هفته از حالا',weeksUntil:'{delta} هفته از حالا',monthUntil:'1 ماه از حالا',monthsUntil:'{delta} ماه از حالا',yearUntil:'1 سال از حالا',yearsUntil:'{delta} سال از حالا'});Locale.define('fa','FormValidator',{required:'این فیلد الزامی است.',minLength:'شما باید حداقل {minLength} حرف وارد کنید ({length} حرف وارد کرده اید).',maxLength:'لطفا حداکثر {maxLength} حرف وارد کنید (شما {length} حرف وارد کرده اید).',integer:'لطفا از عدد صحیح استفاده کنید. اعداد اعشاری (مانند 1.25) مجاز نیستند.',numeric:'لطفا فقط داده عددی وارد کنید (مانند "1" یا "1.1" یا "1-" یا "1.1-").',digits:'لطفا فقط از اعداد Ùˆ علامتها در این فیلد استفاده کنید (برای مثال شماره تلفن با خط تیره Ùˆ نقطه قابل قبول است).',alpha:'لطفا فقط از حروف الفباء برای این بخش استفاده کنید. کاراکترهای دیگر Ùˆ فاصله مجاز نیستند.',alphanum:'لطفا فقط از حروف الفباء Ùˆ اعداد در این بخش استفاده کنید. کاراکترهای دیگر Ùˆ فاصله مجاز نیستند.',dateSuchAs:'لطفا یک تاریخ معتبر مانند {date} وارد کنید.',dateInFormatMDY:'لطفا یک تاریخ معتبر به Ø´Ú©Ù„ MM/DD/YYYY وارد کنید (مانند "12/31/1999").',email:'لطفا یک آدرس ایمیل معتبر وارد کنید. برای مثال "fred@domain.com".',url:'لطفا یک URL معتبر مانند http://www.example.com وارد کنید.',currencyDollar:'لطفا یک محدوده معتبر برای این بخش وارد کنید مانند 100.00$ .',oneRequired:'لطفا حداقل یکی از فیلدها را پر کنید.',errorPrefix:'خطا: ',warningPrefix:'هشدار: ',noSpace:'استفاده از فاصله در این بخش مجاز نیست.',reqChkByNode:'موردی انتخاب نشده است.',requiredChk:'این فیلد الزامی است.',reqChkByName:'لطفا یک {label} را انتخاب کنید.',match:'این فیلد باید با فیلد {matchName} مطابقت داشته باشد.',startDate:'تاریخ شروع',endDate:'تاریخ پایان',currendDate:'تاریخ کنونی',afterDate:'تاریخ میبایست برابر یا بعد از {label} باشد',beforeDate:'تاریخ میبایست برابر یا قبل از {label} باشد',startMonth:'لطفا ماه شروع را انتخاب کنید',sameMonth:'این دو تاریخ باید در یک ماه باشند - شما باید یکی یا هر دو را تغییر دهید.',creditcard:'شماره کارت اعتباری Ú©Ù‡ وارد کرده اید معتبر نیست. لطفا شماره را بررسی کنید Ùˆ مجددا تلاش کنید. {length} رقم وارد شده است.'});Locale.define('fi-FI','Date',{months:['tammikuu','helmikuu','maaliskuu','huhtikuu','toukokuu','kesäkuu','heinäkuu','elokuu','syyskuu','lokakuu','marraskuu','joulukuu'],months_abbr:['tammik.','helmik.','maalisk.','huhtik.','toukok.','kesäk.','heinäk.','elok.','syysk.','lokak.','marrask.','jouluk.'],days:['sunnuntai','maanantai','tiistai','keskiviikko','torstai','perjantai','lauantai'],days_abbr:['su','ma','ti','ke','to','pe','la'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'vajaa minuutti sitten',minuteAgo:'noin minuutti sitten',minutesAgo:'{delta} minuuttia sitten',hourAgo:'noin tunti sitten',hoursAgo:'noin {delta} tuntia sitten',dayAgo:'päivä sitten',daysAgo:'{delta} päivää sitten',weekAgo:'viikko sitten',weeksAgo:'{delta} viikkoa sitten',monthAgo:'kuukausi sitten',monthsAgo:'{delta} kuukautta sitten',yearAgo:'vuosi sitten',yearsAgo:'{delta} vuotta sitten',lessThanMinuteUntil:'vajaan minuutin kuluttua',minuteUntil:'noin minuutin kuluttua',minutesUntil:'{delta} minuutin kuluttua',hourUntil:'noin tunnin kuluttua',hoursUntil:'noin {delta} tunnin kuluttua',dayUntil:'päivän kuluttua',daysUntil:'{delta} päivän kuluttua',weekUntil:'viikon kuluttua',weeksUntil:'{delta} viikon kuluttua',monthUntil:'kuukauden kuluttua',monthsUntil:'{delta} kuukauden kuluttua',yearUntil:'vuoden kuluttua',yearsUntil:'{delta} vuoden kuluttua'});Locale.define('fi-FI','FormValidator',{required:'Tämä kenttä on pakollinen.',minLength:'Ole hyvä ja anna vähintään {minLength} merkkiä (annoit {length} merkkiä).',maxLength:'Älä anna enempää kuin {maxLength} merkkiä (annoit {length} merkkiä).',integer:'Ole hyvä ja anna kokonaisluku. Luvut, joissa on desimaaleja (esim. 1.25) eivät ole sallittuja.',numeric:'Anna tähän kenttään lukuarvo (kuten "1" tai "1.1" tai "-1" tai "-1.1").',digits:'Käytä pelkästään numeroita ja välimerkkejä tässä kentässä (syötteet, kuten esim. puhelinnumero, jossa on väliviivoja, pilkkuja tai pisteitä, kelpaa).',alpha:'Anna tähän kenttään vain kirjaimia (a-z). Välilyönnit tai muut merkit eivät ole sallittuja.',alphanum:'Anna tähän kenttään vain kirjaimia (a-z) tai numeroita (0-9). Välilyönnit tai muut merkit eivät ole sallittuja.',dateSuchAs:'Ole hyvä ja anna kelvollinen päivmäärä, kuten esimerkiksi {date}',dateInFormatMDY:'Ole hyvä ja anna kelvollinen päivämäärä muodossa pp/kk/vvvv (kuten "12/31/1999")',email:'Ole hyvä ja anna kelvollinen sähköpostiosoite (kuten esimerkiksi "matti@meikalainen.com").',url:'Ole hyvä ja anna kelvollinen URL, kuten esimerkiksi http://www.example.com.',currencyDollar:'Ole hyvä ja anna kelvollinen eurosumma (kuten esimerkiksi 100,00 EUR) .',oneRequired:'Ole hyvä ja syötä jotakin ainakin johonkin näistä kentistä.',errorPrefix:'Virhe: ',warningPrefix:'Varoitus: ',noSpace:'Tässä syötteessä ei voi olla välilyöntejä',reqChkByNode:'Ei valintoja.',requiredChk:'Tämä kenttä on pakollinen.',reqChkByName:'Ole hyvä ja valitse {label}.',match:'Tämän kentän tulee vastata kenttää {matchName}',startDate:'alkupäivämäärä',endDate:'loppupäivämäärä',currendDate:'nykyinen päivämäärä',afterDate:'Päivämäärän tulisi olla sama tai myöhäisempi ajankohta kuin {label}.',beforeDate:'Päivämäärän tulisi olla sama tai aikaisempi ajankohta kuin {label}.',startMonth:'Ole hyvä ja valitse aloituskuukausi',sameMonth:'Näiden kahden päivämäärän tulee olla saman kuun sisällä -- sinun pitää muuttaa jompaa kumpaa.',creditcard:'Annettu luottokortin numero ei kelpaa. Ole hyvä ja tarkista numero sekä yritä uudelleen. {length} numeroa syötetty.'});Locale.define('fi-FI','Number',{group:' '}).inherit('EU','Number');Locale.define('fr-FR','Date',{months:['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'],months_abbr:['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.'],days:['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],days_abbr:['dim.','lun.','mar.','mer.','jeu.','ven.','sam.'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:function(dayOfMonth){return(dayOfMonth>1)?'':'er';},lessThanMinuteAgo:"il y a moins d'une minute",minuteAgo:'il y a une minute',minutesAgo:'il y a {delta} minutes',hourAgo:'il y a une heure',hoursAgo:'il y a {delta} heures',dayAgo:'il y a un jour',daysAgo:'il y a {delta} jours',weekAgo:'il y a une semaine',weeksAgo:'il y a {delta} semaines',monthAgo:'il y a 1 mois',monthsAgo:'il y a {delta} mois',yearthAgo:'il y a 1 an',yearsAgo:'il y a {delta} ans',lessThanMinuteUntil:"dans moins d'une minute",minuteUntil:'dans une minute',minutesUntil:'dans {delta} minutes',hourUntil:'dans une heure',hoursUntil:'dans {delta} heures',dayUntil:'dans un jour',daysUntil:'dans {delta} jours',weekUntil:'dans 1 semaine',weeksUntil:'dans {delta} semaines',monthUntil:'dans 1 mois',monthsUntil:'dans {delta} mois',yearUntil:'dans 1 an',yearsUntil:'dans {delta} ans'});Locale.define('fr-FR','FormValidator',{required:'Ce champ est obligatoire.',length:'Veuillez saisir {length} caractère(s) (vous avez saisi {elLength} caractère(s)',minLength:'Veuillez saisir un minimum de {minLength} caractère(s) (vous avez saisi {length} caractère(s)).',maxLength:'Veuillez saisir un maximum de {maxLength} caractère(s) (vous avez saisi {length} caractère(s)).',integer:'Veuillez saisir un nombre entier dans ce champ. Les nombres décimaux (ex : "1,25") ne sont pas autorisés.',numeric:'Veuillez saisir uniquement des chiffres dans ce champ (ex : "1" ou "1,1" ou "-1" ou "-1,1").',digits:"Veuillez saisir uniquement des chiffres et des signes de ponctuation dans ce champ (ex : un numéro de téléphone avec des traits d'union est autorisé).",alpha:'Veuillez saisir uniquement des lettres (a-z) dans ce champ. Les espaces ou autres caractères ne sont pas autorisés.',alphanum:'Veuillez saisir uniquement des lettres (a-z) ou des chiffres (0-9) dans ce champ. Les espaces ou autres caractères ne sont pas autorisés.',dateSuchAs:'Veuillez saisir une date correcte comme {date}',dateInFormatMDY:'Veuillez saisir une date correcte, au format JJ/MM/AAAA (ex : "31/11/1999").',email:'Veuillez saisir une adresse de courrier électronique. Par example "fred@domaine.com".',url:'Veuillez saisir une URL, comme http://www.example.com.',currencyDollar:'Veuillez saisir une quantité correcte. Par example 100,00€.',oneRequired:'Veuillez sélectionner au moins une de ces options.',errorPrefix:'Erreur : ',warningPrefix:'Attention : ',noSpace:"Ce champ n'accepte pas les espaces.",reqChkByNode:"Aucun élément n'est sélectionné.",requiredChk:'Ce champ est obligatoire.',reqChkByName:'Veuillez sélectionner un(e) {label}.',match:'Ce champ doit correspondre avec le champ {matchName}.',startDate:'date de début',endDate:'date de fin',currendDate:'date actuelle',afterDate:'La date doit être identique ou postérieure à {label}.',beforeDate:'La date doit être identique ou antérieure à {label}.',startMonth:'Veuillez sélectionner un mois de début.',sameMonth:'Ces deux dates doivent être dans le même mois - vous devez en modifier une.',creditcard:'Le numéro de carte de crédit est invalide. Merci de vérifier le numéro et de réessayer. Vous avez entré {length} chiffre(s).'});Locale.define('fr-FR','Number',{group:' '}).inherit('EU','Number');Locale.define('he-IL','Date',{months:['×™× ×•××¨','פברואר','מרץ','אפריל','מאי','×™×•× ×™','יולי','אוגוסט','ספטמבר','אוקטובר','× ×•×‘×ž×‘×¨','דצמבר'],months_abbr:['×™× ×•××¨','פברואר','מרץ','אפריל','מאי','×™×•× ×™','יולי','אוגוסט','ספטמבר','אוקטובר','× ×•×‘×ž×‘×¨','דצמבר'],days:['ראשון','×©× ×™','שלישי','רביעי','חמישי','שישי','שבת'],days_abbr:['ראשון','×©× ×™','שלישי','רביעי','חמישי','שישי','שבת'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:0,ordinal:'',lessThanMinuteAgo:'×œ×¤× ×™ פחות מדקה',minuteAgo:'×œ×¤× ×™ כדקה',minutesAgo:'×œ×¤× ×™ {delta} דקות',hourAgo:'×œ×¤× ×™ כשעה',hoursAgo:'×œ×¤× ×™ {delta} שעות',dayAgo:'×œ×¤× ×™ יום',daysAgo:'×œ×¤× ×™ {delta} ימים',weekAgo:'×œ×¤× ×™ שבוע',weeksAgo:'×œ×¤× ×™ {delta} שבועות',monthAgo:'×œ×¤× ×™ חודש',monthsAgo:'×œ×¤× ×™ {delta} חודשים',yearAgo:'×œ×¤× ×™ ×©× ×”',yearsAgo:'×œ×¤× ×™ {delta} ×©× ×™×',lessThanMinuteUntil:'בעוד פחות מדקה',minuteUntil:'בעוד כדקה',minutesUntil:'בעוד {delta} דקות',hourUntil:'בעוד כשעה',hoursUntil:'בעוד {delta} שעות',dayUntil:'בעוד יום',daysUntil:'בעוד {delta} ימים',weekUntil:'בעוד שבוע',weeksUntil:'בעוד {delta} שבועות',monthUntil:'בעוד חודש',monthsUntil:'בעוד {delta} חודשים',yearUntil:'בעוד ×©× ×”',yearsUntil:'בעוד {delta} ×©× ×™×'});Locale.define('he-IL','FormValidator',{required:'× × למלא שדה ×–×”.',minLength:'× × להזין לפחות {minLength} תווים (×”×–× ×ª {length} תווים).',maxLength:'× × להזין עד {maxLength} תווים (×”×–× ×ª {length} תווים).',integer:'× × להזין מספר שלם לשדה ×–×”. מספרים ×¢×©×¨×•× ×™×™× (כמו 1.25) ××™× × חוקיים.',numeric:'× × להזין ערך מספרי בלבד בשדה ×–×” (כמו "1", "1.1", "-1" או "-1.1").',digits:'× × להזין רק ספרות ×•×¡×™×ž× ×™ הפרדה בשדה ×–×” (למשל, מספר טלפון עם מקפים או × ×§×•×“×•×ª הוא חוקי).',alpha:'× × להזין רק אותיות ×‘×× ×’×œ×™×ª (a-z) בשדה ×–×”. רווחים או תווים אחרים ××™× × חוקיים.',alphanum:'× × להזין רק אותריות ×‘×× ×’×œ×™×ª (a-z) או ספרות (0-9) בשדה ×–×”. אווחרים או תווים אחרים ××™× × חוקיים.',dateSuchAs:'× × להזין תאריך חוקי, כמו {date}',dateInFormatMDY:'× × להזין תאריך חוקי בפורמט MM/DD/YYYY (כמו "12/31/1999")',email:'× × להזין כתובת אימייל חוקית. לדוגמה: "fred@domain.com".',url:'× × להזין כתובת אתר חוקית, כמו http://www.example.com.',currencyDollar:'× × להזין סכום דולרי חוקי. לדוגמה $100.00.',oneRequired:'× × לבחור לפחות בשדה אחד.',errorPrefix:'שגיאה: ',warningPrefix:'אזהרה: ',noSpace:'אין להזין רווחים בשדה ×–×”.',reqChkByNode:'× × לבחור אחת מהאפשרויות.',requiredChk:'שדה ×–×” × ×“×¨×©.',reqChkByName:'× × לבחור {label}.',match:'שדה ×–×” צריך להתאים לשדה {matchName}',startDate:'תאריך ההתחלה',endDate:'תאריך הסיום',currendDate:'התאריך ×”× ×•×›×—×™',afterDate:'התאריך צריך להיות ×–×”×” או אחרי {label}.',beforeDate:'התאריך צריך להיות ×–×”×” או ×œ×¤× ×™ {label}.',startMonth:'× × לבחור חודש התחלה',sameMonth:'×©× ×™ תאריכים אלה צריכים להיות באותו חודש - × × ×œ×©× ×•×ª אחד התאריכים.',creditcard:'מספר כרטיס האשראי שהוזן ××™× ×• חוקי. × × לבדוק ×©× ×™×ª. ×”×•×–× ×• {length} ספרות.'});Locale.define('he-IL','Number',{decimal:'.',group:',',currency:{suffix:' ₪'}});Locale.define('hu-HU','Date',{months:['Január','Február','Március','Április','Május','Június','Július','Augusztus','Szeptember','Október','November','December'],months_abbr:['jan.','febr.','márc.','ápr.','máj.','jún.','júl.','aug.','szept.','okt.','nov.','dec.'],days:['Vasárnap','HétfÅ‘','Kedd','Szerda','Csütörtök','Péntek','Szombat'],days_abbr:['V','H','K','Sze','Cs','P','Szo'],dateOrder:['year','month','date'],shortDate:'%Y.%m.%d.',shortTime:'%I:%M',AM:'de.',PM:'du.',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'alig egy perce',minuteAgo:'egy perce',minutesAgo:'{delta} perce',hourAgo:'egy órája',hoursAgo:'{delta} órája',dayAgo:'1 napja',daysAgo:'{delta} napja',weekAgo:'1 hete',weeksAgo:'{delta} hete',monthAgo:'1 hónapja',monthsAgo:'{delta} hónapja',yearAgo:'1 éve',yearsAgo:'{delta} éve',lessThanMinuteUntil:'alig egy perc múlva',minuteUntil:'egy perc múlva',minutesUntil:'{delta} perc múlva',hourUntil:'egy óra múlva',hoursUntil:'{delta} óra múlva',dayUntil:'1 nap múlva',daysUntil:'{delta} nap múlva',weekUntil:'1 hét múlva',weeksUntil:'{delta} hét múlva',monthUntil:'1 hónap múlva',monthsUntil:'{delta} hónap múlva',yearUntil:'1 év múlva',yearsUntil:'{delta} év múlva'});Locale.define('hu-HU','FormValidator',{required:'A mezÅ‘ kitöltése kötelezÅ‘.',minLength:'Legalább {minLength} karakter megadása szükséges (megadva {length} karakter).',maxLength:'Legfeljebb {maxLength} karakter megadása lehetséges (megadva {length} karakter).',integer:'Egész szám megadása szükséges. A tizedesjegyek (pl. 1.25) nem engedélyezettek.',numeric:'Szám megadása szükséges (pl. "1" vagy "1.1" vagy "-1" vagy "-1.1").',digits:'Csak számok és írásjelek megadása lehetséges (pl. telefonszám kötÅ‘jelek és/vagy perjelekkel).',alpha:'Csak betűk (a-z) megadása lehetséges. Szóköz és egyéb karakterek nem engedélyezettek.',alphanum:'Csak betűk (a-z) vagy számok (0-9) megadása lehetséges. Szóköz és egyéb karakterek nem engedélyezettek.',dateSuchAs:'Valós dátum megadása szükséges (pl. {date}).',dateInFormatMDY:'Valós dátum megadása szükséges ÉÉÉÉ.HH.NN. formában. (pl. "1999.12.31.")',email:'Valós e-mail cím megadása szükséges (pl. "fred@domain.hu").',url:'Valós URL megadása szükséges (pl. http://www.example.com).',currencyDollar:'Valós pénzösszeg megadása szükséges (pl. 100.00 Ft.).',oneRequired:'Az alábbi mezÅ‘k legalább egyikének kitöltése kötelezÅ‘.',errorPrefix:'Hiba: ',warningPrefix:'Figyelem: ',noSpace:'A mezÅ‘ nem tartalmazhat szóközöket.',reqChkByNode:'Nincs egyetlen kijelölt elem sem.',requiredChk:'A mezÅ‘ kitöltése kötelezÅ‘.',reqChkByName:'Egy {label} kiválasztása szükséges.',match:'A mezÅ‘nek egyeznie kell a(z) {matchName} mezÅ‘vel.',startDate:'a kezdet dátuma',endDate:'a vég dátuma',currendDate:'jelenlegi dátum',afterDate:'A dátum nem lehet kisebb, mint {label}.',beforeDate:'A dátum nem lehet nagyobb, mint {label}.',startMonth:'Kezdeti hónap megadása szükséges.',sameMonth:'A két dátumnak ugyanazon hónapban kell lennie.',creditcard:'A megadott bankkártyaszám nem valódi (megadva {length} számjegy).'});Locale.define('it-IT','Date',{months:['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],months_abbr:['gen','feb','mar','apr','mag','giu','lug','ago','set','ott','nov','dic'],days:['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],days_abbr:['dom','lun','mar','mer','gio','ven','sab'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H.%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'º',lessThanMinuteAgo:'meno di un minuto fa',minuteAgo:'circa un minuto fa',minutesAgo:'circa {delta} minuti fa',hourAgo:"circa un'ora fa",hoursAgo:'circa {delta} ore fa',dayAgo:'circa 1 giorno fa',daysAgo:'circa {delta} giorni fa',weekAgo:'una settimana fa',weeksAgo:'{delta} settimane fa',monthAgo:'un mese fa',monthsAgo:'{delta} mesi fa',yearAgo:'un anno fa',yearsAgo:'{delta} anni fa',lessThanMinuteUntil:'tra meno di un minuto',minuteUntil:'tra circa un minuto',minutesUntil:'tra circa {delta} minuti',hourUntil:"tra circa un'ora",hoursUntil:'tra circa {delta} ore',dayUntil:'tra circa un giorno',daysUntil:'tra circa {delta} giorni',weekUntil:'tra una settimana',weeksUntil:'tra {delta} settimane',monthUntil:'tra un mese',monthsUntil:'tra {delta} mesi',yearUntil:'tra un anno',yearsUntil:'tra {delta} anni'});Locale.define('it-IT','FormValidator',{required:'Il campo è obbligatorio.',minLength:'Inserire almeno {minLength} caratteri (ne sono stati inseriti {length}).',maxLength:'Inserire al massimo {maxLength} caratteri (ne sono stati inseriti {length}).',integer:'Inserire un numero intero. Non sono consentiti decimali (es.: 1.25).',numeric:'Inserire solo valori numerici (es.: "1" oppure "1.1" oppure "-1" oppure "-1.1").',digits:'Inserire solo numeri e caratteri di punteggiatura. Per esempio è consentito un numero telefonico con trattini o punti.',alpha:'Inserire solo lettere (a-z). Non sono consentiti spazi o altri caratteri.',alphanum:'Inserire solo lettere (a-z) o numeri (0-9). Non sono consentiti spazi o altri caratteri.',dateSuchAs:'Inserire una data valida del tipo {date}',dateInFormatMDY:'Inserire una data valida nel formato MM/GG/AAAA (es.: "12/31/1999")',email:'Inserire un indirizzo email valido. Per esempio "nome@dominio.com".',url:'Inserire un indirizzo valido. Per esempio "http://www.example.com".',currencyDollar:'Inserire un importo valido. Per esempio "$100.00".',oneRequired:'Completare almeno uno dei campi richiesti.',errorPrefix:'Errore: ',warningPrefix:'Attenzione: ',noSpace:'Non sono consentiti spazi.',reqChkByNode:'Nessuna voce selezionata.',requiredChk:'Il campo è obbligatorio.',reqChkByName:'Selezionare un(a) {label}.',match:'Il valore deve corrispondere al campo {matchName}',startDate:"data d'inizio",endDate:'data di fine',currendDate:'data attuale',afterDate:'La data deve corrispondere o essere successiva al {label}.',beforeDate:'La data deve corrispondere o essere precedente al {label}.',startMonth:"Selezionare un mese d'inizio",sameMonth:'Le due date devono essere dello stesso mese - occorre modificarne una.'});Locale.define('ja-JP','Date',{months:['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],months_abbr:['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],days:['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],days_abbr:['æ—¥','月','火','æ°´','木','金','土'],dateOrder:['year','month','date'],shortDate:'%Y/%m/%d',shortTime:'%H:%M',AM:'午前',PM:'午後',firstDayOfWeek:0,ordinal:'',lessThanMinuteAgo:'1分以内前',minuteAgo:'ç´„1分前',minutesAgo:'ç´„{delta}分前',hourAgo:'ç´„1時間前',hoursAgo:'ç´„{delta}時間前',dayAgo:'1日前',daysAgo:'{delta}日前',weekAgo:'1週間前',weeksAgo:'{delta}週間前',monthAgo:'1ヶ月前',monthsAgo:'{delta}ヶ月前',yearAgo:'1年前',yearsAgo:'{delta}年前',lessThanMinuteUntil:'今から約1分以内',minuteUntil:'今から約1分',minutesUntil:'今から約{delta}分',hourUntil:'今から約1時間',hoursUntil:'今から約{delta}時間',dayUntil:'今から1日間',daysUntil:'今から{delta}日間',weekUntil:'今から1週間',weeksUntil:'今から{delta}週間',monthUntil:'今から1ヶ月',monthsUntil:'今から{delta}ヶ月',yearUntil:'今から1å¹´',yearsUntil:'今から{delta}å¹´'});Locale.define("ja-JP","FormValidator",{required:'å…¥åŠ›ã¯å¿…é ˆã§ã™ã€‚',minLength:'入力文字数は{minLength}以上にしてください。({length}文字)',maxLength:'入力文字数は{maxLength}以下にしてください。({length}文字)',integer:'整数を入力してください。',numeric:'入力できるのは数値だけです。(例: "1", "1.1", "-1", "-1.1"....)',digits:'入力できるのは数値と句読記号です。 (例: -ã‚„+を含む電話番号など).',alpha:'入力できるのは半角英字だけです。それ以外の文字は入力できません。',alphanum:'入力できるのは半角英数字だけです。それ以外の文字は入力できません。',dateSuchAs:'有効な日付を入力してください。{date}',dateInFormatMDY:'日付の書式に誤りがあります。YYYY/MM/DD (i.e. "1999/12/31")',email:'メールアドレスに誤りがあります。',url:'URLアドレスに誤りがあります。',currencyDollar:'金額に誤りがあります。',oneRequired:'ひとつ以上入力してください。',errorPrefix:'エラー: ',warningPrefix:'警告: ',noSpace:'スペースは入力できません。',reqChkByNode:'選択されていません。',requiredChk:'ã“ã®é …ç›®ã¯å¿…é ˆã§ã™ã€‚',reqChkByName:'{label}を選択してください。',match:'{matchName}ãŒå…¥åŠ›ã•ã‚Œã¦ã„ã‚‹å ´åˆå¿…é ˆã§ã™ã€‚',startDate:'開始日',endDate:'終了日',currendDate:'今日',afterDate:'{label}以降の日付にしてください。',beforeDate:'{label}以前の日付にしてください。',startMonth:'開始月を選択してください。',sameMonth:'日付が同一です。どちらかを変更してください。'});Locale.define('ja-JP','Number',{decimal:'.',group:',',currency:{decimals:0,prefix:'\\'}});Locale.define('nl-NL','Date',{months:['januari','februari','maart','april','mei','juni','juli','augustus','september','oktober','november','december'],months_abbr:['jan','feb','mrt','apr','mei','jun','jul','aug','sep','okt','nov','dec'],days:['zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag'],days_abbr:['zo','ma','di','wo','do','vr','za'],dateOrder:['date','month','year'],shortDate:'%d-%m-%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'e',lessThanMinuteAgo:'minder dan een minuut geleden',minuteAgo:'ongeveer een minuut geleden',minutesAgo:'{delta} minuten geleden',hourAgo:'ongeveer een uur geleden',hoursAgo:'ongeveer {delta} uur geleden',dayAgo:'een dag geleden',daysAgo:'{delta} dagen geleden',weekAgo:'een week geleden',weeksAgo:'{delta} weken geleden',monthAgo:'een maand geleden',monthsAgo:'{delta} maanden geleden',yearAgo:'een jaar geleden',yearsAgo:'{delta} jaar geleden',lessThanMinuteUntil:'over minder dan een minuut',minuteUntil:'over ongeveer een minuut',minutesUntil:'over {delta} minuten',hourUntil:'over ongeveer een uur',hoursUntil:'over {delta} uur',dayUntil:'over ongeveer een dag',daysUntil:'over {delta} dagen',weekUntil:'over een week',weeksUntil:'over {delta} weken',monthUntil:'over een maand',monthsUntil:'over {delta} maanden',yearUntil:'over een jaar',yearsUntil:'over {delta} jaar'});Locale.define('nl-NL','FormValidator',{required:'Dit veld is verplicht.',length:'Vul precies {length} karakters in (je hebt {elLength} karakters ingevoerd).',minLength:'Vul minimaal {minLength} karakters in (je hebt {length} karakters ingevoerd).',maxLength:'Vul niet meer dan {maxLength} karakters in (je hebt {length} karakters ingevoerd).',integer:'Vul een getal in. Getallen met decimalen (bijvoorbeeld 1.25) zijn niet toegestaan.',numeric:'Vul alleen numerieke waarden in (bijvoorbeeld "1" of "1.1" of "-1" of "-1.1").',digits:'Vul alleen nummers en leestekens in (bijvoorbeeld een telefoonnummer met streepjes is toegestaan).',alpha:'Vul alleen letters in (a-z). Spaties en andere karakters zijn niet toegestaan.',alphanum:'Vul alleen letters (a-z) of nummers (0-9) in. Spaties en andere karakters zijn niet toegestaan.',dateSuchAs:'Vul een geldige datum in, zoals {date}',dateInFormatMDY:'Vul een geldige datum, in het formaat MM/DD/YYYY (bijvoorbeeld "12/31/1999")',email:'Vul een geldig e-mailadres in. Bijvoorbeeld "fred@domein.nl".',url:'Vul een geldige URL in, zoals http://www.example.com.',currencyDollar:'Vul een geldig $ bedrag in. Bijvoorbeeld $100.00 .',oneRequired:'Vul iets in bij in ieder geval een van deze velden.',warningPrefix:'Waarschuwing: ',errorPrefix:'Fout: ',noSpace:'Spaties zijn niet toegestaan in dit veld.',reqChkByNode:'Er zijn geen items geselecteerd.',requiredChk:'Dit veld is verplicht.',reqChkByName:'Selecteer een {label}.',match:'Dit veld moet overeen komen met het {matchName} veld',startDate:'de begin datum',endDate:'de eind datum',currendDate:'de huidige datum',afterDate:'De datum moet hetzelfde of na {label} zijn.',beforeDate:'De datum moet hetzelfde of voor {label} zijn.',startMonth:'Selecteer een begin maand',sameMonth:'Deze twee data moeten in dezelfde maand zijn - u moet een van beide aanpassen.',creditcard:'Het ingevulde creditcardnummer is niet geldig. Controleer het nummer en probeer opnieuw. {length} getallen ingevuld.'});Locale.define('nl-NL').inherit('EU','Number');Locale.define('no-NO','Date',{dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,lessThanMinuteAgo:'kortere enn et minutt siden',minuteAgo:'omtrent et minutt siden',minutesAgo:'{delta} minutter siden',hourAgo:'omtrent en time siden',hoursAgo:'omtrent {delta} timer siden',dayAgo:'{delta} dag siden',daysAgo:'{delta} dager siden'});Locale.define('no-NO','FormValidator',{required:'Dette feltet er pÃ¥krevd.',minLength:'Vennligst skriv inn minst {minLength} tegn (du skrev {length} tegn).',maxLength:'Vennligst skriv inn maksimalt {maxLength} tegn (du skrev {length} tegn).',integer:'Vennligst skriv inn et tall i dette feltet. Tall med desimaler (for eksempel 1,25) er ikke tillat.',numeric:'Vennligst skriv inn kun numeriske verdier i dette feltet (for eksempel "1", "1.1", "-1" eller "-1.1").',digits:'Vennligst bruk kun nummer og skilletegn i dette feltet.',alpha:'Vennligst bruk kun bokstaver (a-z) i dette feltet. Ingen mellomrom eller andre tegn er tillat.',alphanum:'Vennligst bruk kun bokstaver (a-z) eller nummer (0-9) i dette feltet. Ingen mellomrom eller andre tegn er tillat.',dateSuchAs:'Vennligst skriv inn en gyldig dato, som {date}',dateInFormatMDY:'Vennligst skriv inn en gyldig dato, i formatet MM/DD/YYYY (for eksempel "12/31/1999")',email:'Vennligst skriv inn en gyldig epost-adresse. For eksempel "espen@domene.no".',url:'Vennligst skriv inn en gyldig URL, for eksempel http://www.example.com.',currencyDollar:'Vennligst fyll ut et gyldig $ beløp. For eksempel $100.00 .',oneRequired:'Vennligst fyll ut noe i minst ett av disse feltene.',errorPrefix:'Feil: ',warningPrefix:'Advarsel: '});Locale.define('pl-PL','Date',{months:['StyczeÅ„','Luty','Marzec','KwiecieÅ„','Maj','Czerwiec','Lipiec','SierpieÅ„','WrzesieÅ„','Październik','Listopad','GrudzieÅ„'],months_abbr:['sty','lut','mar','kwi','maj','cze','lip','sie','wrz','paź','lis','gru'],days:['Niedziela','PoniedziaÅ‚ek','Wtorek','Åšroda','Czwartek','PiÄ…tek','Sobota'],days_abbr:['niedz.','pon.','wt.','Å›r.','czw.','pt.','sob.'],dateOrder:['year','month','date'],shortDate:'%Y-%m-%d',shortTime:'%H:%M',AM:'nad ranem',PM:'po poÅ‚udniu',firstDayOfWeek:1,ordinal:function(dayOfMonth){return(dayOfMonth>3&&dayOfMonth<21)?'ty':['ty','szy','gi','ci','ty'][Math.min(dayOfMonth%10,4)];},lessThanMinuteAgo:'mniej niż minute temu',minuteAgo:'okoÅ‚o minutÄ™ temu',minutesAgo:'{delta} minut temu',hourAgo:'okoÅ‚o godzinÄ™ temu',hoursAgo:'okoÅ‚o {delta} godzin temu',dayAgo:'Wczoraj',daysAgo:'{delta} dni temu',lessThanMinuteUntil:'za niecaÅ‚Ä… minutÄ™',minuteUntil:'za okoÅ‚o minutÄ™',minutesUntil:'za {delta} minut',hourUntil:'za okoÅ‚o godzinÄ™',hoursUntil:'za okoÅ‚o {delta} godzin',dayUntil:'za 1 dzieÅ„',daysUntil:'za {delta} dni'});Locale.define('pl-PL','FormValidator',{required:'To pole jest wymagane.',minLength:'Wymagane jest przynajmniej {minLength} znaków (wpisanych zostaÅ‚o tylko {length}).',maxLength:'Dozwolone jest nie wiÄ™cej niż {maxLength} znaków (wpisanych zostaÅ‚o {length})',integer:'To pole wymaga liczb caÅ‚ych. Liczby dziesiÄ™tne (np. 1.25) sÄ… niedozwolone.',numeric:'Prosimy używać tylko numerycznych wartoÅ›ci w tym polu (np. "1", "1.1", "-1" lub "-1.1").',digits:'Prosimy używać liczb oraz zankow punktuacyjnych w typ polu (dla przykÅ‚adu, przy numerze telefonu myÅ›lniki i kropki sÄ… dozwolone).',alpha:'Prosimy używać tylko liter (a-z) w tym polu. Spacje oraz inne znaki sÄ… niedozwolone.',alphanum:'Prosimy używać tylko liter (a-z) lub liczb (0-9) w tym polu. Spacje oraz inne znaki sÄ… niedozwolone.',dateSuchAs:'Prosimy podać prawidÅ‚owÄ… datÄ™ w formacie: {date}',dateInFormatMDY:'Prosimy podać poprawnÄ… date w formacie DD.MM.RRRR (i.e. "12.01.2009")',email:'Prosimy podać prawidÅ‚owy adres e-mail, np. "jan@domena.pl".',url:'Prosimy podać prawidÅ‚owy adres URL, np. http://www.example.com.',currencyDollar:'Prosimy podać prawidÅ‚owÄ… sumÄ™ w PLN. Dla przykÅ‚adu: 100.00 PLN.',oneRequired:'Prosimy wypeÅ‚nić chociaż jedno z pól.',errorPrefix:'BÅ‚Ä…d: ',warningPrefix:'Uwaga: ',noSpace:'W tym polu nie mogÄ… znajdować siÄ™ spacje.',reqChkByNode:'Brak zaznaczonych elementów.',requiredChk:'To pole jest wymagane.',reqChkByName:'Prosimy wybrać z {label}.',match:'To pole musi być takie samo jak {matchName}',startDate:'data poczÄ…tkowa',endDate:'data koÅ„cowa',currendDate:'aktualna data',afterDate:'Podana data poinna być taka sama lub po {label}.',beforeDate:'Podana data poinna być taka sama lub przed {label}.',startMonth:'Prosimy wybrać poczÄ…tkowy miesiÄ…c.',sameMonth:'Te dwie daty muszÄ… być w zakresie tego samego miesiÄ…ca - wymagana jest zmiana któregoÅ› z pól.'});Locale.define('pt-PT','Date',{months:['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],months_abbr:['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'],days:['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],days_abbr:['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],dateOrder:['date','month','year'],shortDate:'%d-%m-%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'º',lessThanMinuteAgo:'há menos de um minuto',minuteAgo:'há cerca de um minuto',minutesAgo:'há {delta} minutos',hourAgo:'há cerca de uma hora',hoursAgo:'há cerca de {delta} horas',dayAgo:'há um dia',daysAgo:'há {delta} dias',weekAgo:'há uma semana',weeksAgo:'há {delta} semanas',monthAgo:'há um mês',monthsAgo:'há {delta} meses',yearAgo:'há um ano',yearsAgo:'há {delta} anos',lessThanMinuteUntil:'em menos de um minuto',minuteUntil:'em um minuto',minutesUntil:'em {delta} minutos',hourUntil:'em uma hora',hoursUntil:'em {delta} horas',dayUntil:'em um dia',daysUntil:'em {delta} dias',weekUntil:'em uma semana',weeksUntil:'em {delta} semanas',monthUntil:'em um mês',monthsUntil:'em {delta} meses',yearUntil:'em um ano',yearsUntil:'em {delta} anos'});Locale.define('pt-BR','Date',{shortDate:'%d/%m/%Y'}).inherit('pt-PT','Date');Locale.define('pt-BR','FormValidator',{required:'Este campo é obrigatório.',minLength:'Digite pelo menos {minLength} caracteres (tamanho atual: {length}).',maxLength:'Não digite mais de {maxLength} caracteres (tamanho atual: {length}).',integer:'Por favor digite apenas um número inteiro neste campo. Não são permitidos números decimais (por exemplo, 1,25).',numeric:'Por favor digite apenas valores numéricos neste campo (por exemplo, "1" ou "1.1" ou "-1" ou "-1,1").',digits:'Por favor use apenas números e pontuação neste campo (por exemplo, um número de telefone com traços ou pontos é permitido).',alpha:'Por favor use somente letras (a-z). Espaço e outros caracteres não são permitidos.',alphanum:'Use somente letras (a-z) ou números (0-9) neste campo. Espaço e outros caracteres não são permitidos.',dateSuchAs:'Digite uma data válida, como {date}',dateInFormatMDY:'Digite uma data válida, como DD/MM/YYYY (por exemplo, "31/12/1999")',email:'Digite um endereço de email válido. Por exemplo "nome@dominio.com".',url:'Digite uma URL válida. Exemplo: http://www.example.com.',currencyDollar:'Digite um valor em dinheiro válido. Exemplo: R$100,00 .',oneRequired:'Digite algo para pelo menos um desses campos.',errorPrefix:'Erro: ',warningPrefix:'Aviso: ',noSpace:'Não é possível digitar espaços neste campo.',reqChkByNode:'Não foi selecionado nenhum item.',requiredChk:'Este campo é obrigatório.',reqChkByName:'Por favor digite um {label}.',match:'Este campo deve ser igual ao campo {matchName}.',startDate:'a data inicial',endDate:'a data final',currendDate:'a data atual',afterDate:'A data deve ser igual ou posterior a {label}.',beforeDate:'A data deve ser igual ou anterior a {label}.',startMonth:'Por favor selecione uma data inicial.',sameMonth:'Estas duas datas devem ter o mesmo mês - você deve modificar uma das duas.',creditcard:'O número do cartão de crédito informado é inválido. Por favor verifique o valor e tente novamente. {length} números informados.'});Locale.define('pt-PT','FormValidator',{required:'Este campo é necessário.',minLength:'Digite pelo menos{minLength} caracteres (comprimento {length} caracteres).',maxLength:'Não insira mais de {maxLength} caracteres (comprimento {length} caracteres).',integer:'Digite um número inteiro neste domínio. Com números decimais (por exemplo, 1,25), não são permitidas.',numeric:'Digite apenas valores numéricos neste domínio (p.ex., "1" ou "1.1" ou "-1" ou "-1,1").',digits:'Por favor, use números e pontuação apenas neste campo (p.ex., um número de telefone com traços ou pontos é permitida).',alpha:'Por favor use somente letras (a-z), com nesta área. Não utilize espaços nem outros caracteres são permitidos.',alphanum:'Use somente letras (a-z) ou números (0-9) neste campo. Não utilize espaços nem outros caracteres são permitidos.',dateSuchAs:'Digite uma data válida, como {date}',dateInFormatMDY:'Digite uma data válida, como DD/MM/YYYY (p.ex. "31/12/1999")',email:'Digite um endereço de email válido. Por exemplo "fred@domain.com".',url:'Digite uma URL válida, como http://www.example.com.',currencyDollar:'Digite um valor válido $. Por exemplo $ 100,00. ',oneRequired:'Digite algo para pelo menos um desses insumos.',errorPrefix:'Erro: ',warningPrefix:'Aviso: '});(function(){var pluralize=function(n,one,few,many,other){var modulo10=n%10,modulo100=n%100;if(modulo10==1&&modulo100!=11){return one;}else if((modulo10==2||modulo10==3||modulo10==4)&&!(modulo100==12||modulo100==13||modulo100==14)){return few;}else if(modulo10==0||(modulo10==5||modulo10==6||modulo10==7||modulo10==8||modulo10==9)||(modulo100==11||modulo100==12||modulo100==13||modulo100==14)){return many;}else{return other;}};Locale.define('ru-RU','Date',{months:['Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],months_abbr:['янв','февр','март','апр','май','июнь','июль','авг','сент','окт','нояб','дек'],days:['Воскресенье','Понедельник','Вторник','Среда','Четверг','Пятница','Суббота'],days_abbr:['Вс','Пн','Ð’Ñ‚','Ср','Чт','Пт','Сб'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H:%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'меньше минуты назад',minuteAgo:'минуту назад',minutesAgo:function(delta){return'{delta} '+pluralize(delta,'минуту','минуты','минут')+' назад';},hourAgo:'час назад',hoursAgo:function(delta){return'{delta} '+pluralize(delta,'час','часа','часов')+' назад';},dayAgo:'вчера',daysAgo:function(delta){return'{delta} '+pluralize(delta,'день','дня','дней')+' назад';},weekAgo:'неделю назад',weeksAgo:function(delta){return'{delta} '+pluralize(delta,'неделя','недели','недель')+' назад';},monthAgo:'месяц назад',monthsAgo:function(delta){return'{delta} '+pluralize(delta,'месяц','месяца','месецев')+' назад';},yearAgo:'год назад',yearsAgo:function(delta){return'{delta} '+pluralize(delta,'год','года','лет')+' назад';},lessThanMinuteUntil:'меньше чем через минуту',minuteUntil:'через минуту',minutesUntil:function(delta){return'через {delta} '+pluralize(delta,'час','часа','часов')+'';},hourUntil:'через час',hoursUntil:function(delta){return'через {delta} '+pluralize(delta,'час','часа','часов')+'';},dayUntil:'завтра',daysUntil:function(delta){return'через {delta} '+pluralize(delta,'день','дня','дней')+'';},weekUntil:'через неделю',weeksUntil:function(delta){return'через {delta} '+pluralize(delta,'неделю','недели','недель')+'';},monthUntil:'через месяц',monthsUntil:function(delta){return'через {delta} '+pluralize(delta,'месяц','месяца','месецев')+'';},yearUntil:'через',yearsUntil:function(delta){return'через {delta} '+pluralize(delta,'год','года','лет')+'';}});Locale.define('ru-RU-unicode').inherit('ru-RU','Date');})();Locale.define('ru-RU','FormValidator',{required:'Это поле обязательно к заполнению.',minLength:'Пожалуйста, введите хотя бы {minLength} символов (Ð’Ñ‹ ввели {length}).',maxLength:'Пожалуйста, введите не больше {maxLength} символов (Ð’Ñ‹ ввели {length}).',integer:'Пожалуйста, введите в это поле число. Дробные числа (например 1.25) тут не разрешены.',numeric:'Пожалуйста, введите в это поле число (например "1" или "1.1", или "-1", или "-1.1").',digits:'Ð’ этом поле Ð’Ñ‹ можете использовать только цифры и знаки пунктуации (например, телефонный номер со знаками дефиса или с точками).',alpha:'Ð’ этом поле можно использовать только латинские буквы (a-z). Пробелы и другие символы запрещены.',alphanum:'Ð’ этом поле можно использовать только латинские буквы (a-z) и цифры (0-9). Пробелы и другие символы запрещены.',dateSuchAs:'Пожалуйста, введите корректную дату {date}',dateInFormatMDY:'Пожалуйста, введите дату в формате ММ/ДД/ГГГГ (например "12/31/1999")',email:'Пожалуйста, введите корректный емейл-адрес. Для примера "fred@domain.com".',url:'Пожалуйста, введите правильную ссылку вида http://www.example.com.',currencyDollar:'Пожалуйста, введите сумму в долларах. Например: $100.00 .',oneRequired:'Пожалуйста, выберите хоть что-нибудь в одном из этих полей.',errorPrefix:'Ошибка: ',warningPrefix:'Внимание: '});Locale.define('ru-RU-unicode').inherit('ru-RU','FormValidator');(function(){var pluralize=function(n,one,two,three,other){return(n>=1&&n<=3)?arguments[n]:other;};Locale.define('si-SI','Date',{months:['januar','februar','marec','april','maj','junij','julij','avgust','september','oktober','november','december'],months_abbr:['jan','feb','mar','apr','maj','jun','jul','avg','sep','okt','nov','dec'],days:['nedelja','ponedeljek','torek','sreda','četrtek','petek','sobota'],days_abbr:['ned','pon','tor','sre','čet','pet','sob'],dateOrder:['date','month','year'],shortDate:'%d.%m.%Y',shortTime:'%H.%M',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'.',lessThanMinuteAgo:'manj kot minuto nazaj',minuteAgo:'minuto nazaj',minutesAgo:function(delta){return'{delta} '+pluralize(delta,'minuto','minuti','minute','minut')+' nazaj';},hourAgo:'uro nazaj',hoursAgo:function(delta){return'{delta} '+pluralize(delta,'uro','uri','ure','ur')+' nazaj';},dayAgo:'dan nazaj',daysAgo:function(delta){return'{delta} '+pluralize(delta,'dan','dneva','dni','dni')+' nazaj';},weekAgo:'teden nazaj',weeksAgo:function(delta){return'{delta} '+pluralize(delta,'teden','tedna','tedne','tednov')+' nazaj';},monthAgo:'mesec nazaj',monthsAgo:function(delta){return'{delta} '+pluralize(delta,'mesec','meseca','mesece','mesecov')+' nazaj';},yearthAgo:'leto nazaj',yearsAgo:function(delta){return'{delta} '+pluralize(delta,'leto','leti','leta','let')+' nazaj';},lessThanMinuteUntil:'Å¡e manj kot minuto',minuteUntil:'Å¡e minuta',minutesUntil:function(delta){return'Å¡e {delta} '+pluralize(delta,'minuta','minuti','minute','minut');},hourUntil:'Å¡e ura',hoursUntil:function(delta){return'Å¡e {delta} '+pluralize(delta,'ura','uri','ure','ur');},dayUntil:'Å¡e dan',daysUntil:function(delta){return'Å¡e {delta} '+pluralize(delta,'dan','dneva','dnevi','dni');},weekUntil:'Å¡e tedn',weeksUntil:function(delta){return'Å¡e {delta} '+pluralize(delta,'teden','tedna','tedni','tednov');},monthUntil:'Å¡e mesec',monthsUntil:function(delta){return'Å¡e {delta} '+pluralize(delta,'mesec','meseca','meseci','mesecov');},yearUntil:'Å¡e leto',yearsUntil:function(delta){return'Å¡e {delta} '+pluralize(delta,'leto','leti','leta','let');}});})();Locale.define('si-SI','FormValidator',{required:'To polje je obvezno',minLength:'Prosim, vnesite vsaj {minLength} znakov (vnesli ste {length} znakov).',maxLength:'Prosim, ne vnesite več kot {maxLength} znakov (vnesli ste {length} znakov).',integer:'Prosim, vnesite celo Å¡tevilo. Decimalna Å¡tevila (kot 1,25) niso dovoljena.',numeric:'Prosim, vnesite samo numerične vrednosti (kot "1" ali "1.1" ali "-1" ali "-1.1").',digits:'Prosim, uporabite Å¡tevilke in ločila le na tem polju (na primer, dovoljena je telefonska Å¡tevilka z pomiÅ¡laji ali pikami).',alpha:'Prosim, uporabite le črke v tem plju. Presledki in drugi znaki niso dovoljeni.',alphanum:'Prosim, uporabite samo črke ali Å¡tevilke v tem polju. Presledki in drugi znaki niso dovoljeni.',dateSuchAs:'Prosim, vnesite pravilen datum kot {date}',dateInFormatMDY:'Prosim, vnesite pravilen datum kot MM.DD.YYYY (primer "12.31.1999")',email:'Prosim, vnesite pravilen email naslov. Na primer "fred@domain.com".',url:'Prosim, vnesite pravilen URL kot http://www.example.com.',currencyDollar:'Prosim, vnesit epravilno vrednost €. Primer 100,00€ .',oneRequired:'Prosimo, vnesite nekaj za vsaj eno izmed teh polj.',errorPrefix:'Napaka: ',warningPrefix:'Opozorilo: ',noSpace:'To vnosno polje ne dopušča presledkov.',reqChkByNode:'Nič niste izbrali.',requiredChk:'To polje je obvezno',reqChkByName:'Prosim, izberite {label}.',match:'To polje se mora ujemati z poljem {matchName}',startDate:'datum začetka',endDate:'datum konca',currendDate:'trenuten datum',afterDate:'Datum bi moral biti isti ali po {label}.',beforeDate:'Datum bi moral biti isti ali pred {label}.',startMonth:'Prosim, vnesite začetni datum',sameMonth:'Ta dva datuma morata biti v istem mesecu - premeniti morate eno ali drugo.',creditcard:'Å tevilka kreditne kartice ni pravilna. Preverite Å¡tevilko ali poskusite Å¡e enkrat. VneÅ¡enih {length} znakov.'});Locale.define('sv-SE','Date',{months:['januari','februari','mars','april','maj','juni','juli','augusti','september','oktober','november','december'],months_abbr:['jan','feb','mar','apr','maj','jun','jul','aug','sep','okt','nov','dec'],days:['söndag','mÃ¥ndag','tisdag','onsdag','torsdag','fredag','lördag'],days_abbr:['sön','mÃ¥n','tis','ons','tor','fre','lör'],dateOrder:['year','month','date'],shortDate:'%Y-%m-%d',shortTime:'%H:%M',AM:'',PM:'',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'mindre än en minut sedan',minuteAgo:'ungefär en minut sedan',minutesAgo:'{delta} minuter sedan',hourAgo:'ungefär en timme sedan',hoursAgo:'ungefär {delta} timmar sedan',dayAgo:'1 dag sedan',daysAgo:'{delta} dagar sedan',lessThanMinuteUntil:'mindre än en minut sedan',minuteUntil:'ungefär en minut sedan',minutesUntil:'{delta} minuter sedan',hourUntil:'ungefär en timme sedan',hoursUntil:'ungefär {delta} timmar sedan',dayUntil:'1 dag sedan',daysUntil:'{delta} dagar sedan'});Locale.define('sv-SE','FormValidator',{required:'Fältet är obligatoriskt.',minLength:'Ange minst {minLength} tecken (du angav {length} tecken).',maxLength:'Ange högst {maxLength} tecken (du angav {length} tecken). ',integer:'Ange ett heltal i fältet. Tal med decimaler (t.ex. 1,25) är inte tillÃ¥tna.',numeric:'Ange endast numeriska värden i detta fält (t.ex. "1" eller "1.1" eller "-1" eller "-1,1").',digits:'Använd endast siffror och skiljetecken i detta fält (till exempel ett telefonnummer med bindestreck tillÃ¥tet).',alpha:'Använd endast bokstäver (a-ö) i detta fält. Inga mellanslag eller andra tecken är tillÃ¥tna.',alphanum:'Använd endast bokstäver (a-ö) och siffror (0-9) i detta fält. Inga mellanslag eller andra tecken är tillÃ¥tna.',dateSuchAs:'Ange ett giltigt datum som t.ex. {date}',dateInFormatMDY:'Ange ett giltigt datum som t.ex. YYYY-MM-DD (i.e. "1999-12-31")',email:'Ange en giltig e-postadress. Till exempel "erik@domain.com".',url:'Ange en giltig webbadress som http://www.example.com.',currencyDollar:'Ange en giltig belopp. Exempelvis 100,00.',oneRequired:'Vänligen ange minst ett av dessa alternativ.',errorPrefix:'Fel: ',warningPrefix:'Varning: ',noSpace:'Det fÃ¥r inte finnas nÃ¥gra mellanslag i detta fält.',reqChkByNode:'Inga objekt är valda.',requiredChk:'Detta är ett obligatoriskt fält.',reqChkByName:'Välj en {label}.',match:'Detta fält mÃ¥ste matcha {matchName}',startDate:'startdatumet',endDate:'slutdatum',currendDate:'dagens datum',afterDate:'Datumet bör vara samma eller senare än {label}.',beforeDate:'Datumet bör vara samma eller tidigare än {label}.',startMonth:'Välj en start mÃ¥nad',sameMonth:'Dessa tvÃ¥ datum mÃ¥ste vara i samma mÃ¥nad - du mÃ¥ste ändra det ena eller det andra.'});(function(){var pluralize=function(n,one,few,many,other){var d=(n/10).toInt(),z=n%10,s=(n/100).toInt();if(d==1&&n>10)return many;if(z==1)return one;if(z>0&&z<5)return few;return many;};Locale.define('uk-UA','Date',{months:['Січень','Лютий','Березень','Квітень','Травень','Червень','Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'],months_abbr:['Січ','Лют','Бер','Квіт','Трав','Черв','Лип','Серп','Вер','Жовт','Лист','Груд'],days:['Неділя','Понеділок','Вівторок','Середа','Четвер',"П'ятниця",'Субота'],days_abbr:['Нд','Пн','Ð’Ñ‚','Ср','Чт','Пт','Сб'],dateOrder:['date','month','year'],shortDate:'%d/%m/%Y',shortTime:'%H:%M',AM:'до полудня',PM:'по полудню',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'меньше хвилини тому',minuteAgo:'хвилину тому',minutesAgo:function(delta){return'{delta} '+pluralize(delta,'хвилину','хвилини','хвилин')+' тому';},hourAgo:'годину тому',hoursAgo:function(delta){return'{delta} '+pluralize(delta,'годину','години','годин')+' тому';},dayAgo:'вчора',daysAgo:function(delta){return'{delta} '+pluralize(delta,'день','дня','днів')+' тому';},weekAgo:'тиждень тому',weeksAgo:function(delta){return'{delta} '+pluralize(delta,'тиждень','тижні','тижнів')+' тому';},monthAgo:'місяць тому',monthsAgo:function(delta){return'{delta} '+pluralize(delta,'місяць','місяці','місяців')+' тому';},yearAgo:'рік тому',yearsAgo:function(delta){return'{delta} '+pluralize(delta,'рік','роки','років')+' тому';},lessThanMinuteUntil:'за мить',minuteUntil:'через хвилину',minutesUntil:function(delta){return'через {delta} '+pluralize(delta,'хвилину','хвилини','хвилин');},hourUntil:'через годину',hoursUntil:function(delta){return'через {delta} '+pluralize(delta,'годину','години','годин');},dayUntil:'завтра',daysUntil:function(delta){return'через {delta} '+pluralize(delta,'день','дня','днів');},weekUntil:'через тиждень',weeksUntil:function(delta){return'через {delta} '+pluralize(delta,'тиждень','тижні','тижнів');},monthUntil:'через місяць',monthesUntil:function(delta){return'через {delta} '+pluralize(delta,'місяць','місяці','місяців');},yearUntil:'через рік',yearsUntil:function(delta){return'через {delta} '+pluralize(delta,'рік','роки','років');}});})();Locale.define('uk-UA','FormValidator',{required:'Це поле повинне бути заповненим.',minLength:'Введіть хоча б {minLength} символів (Ви ввели {length}).',maxLength:'Кількість символів не може бути більше {maxLength} (Ви ввели {length}).',integer:'Введіть в це поле число. Дробові числа (наприклад 1.25) не дозволені.',numeric:'Введіть в це поле число (наприклад "1" або "1.1", або "-1", або "-1.1").',digits:'Ð’ цьому полі ви можете використовувати лише цифри Ñ– знаки пунктіації (наприклад, телефонний номер з знаками дефізу або з крапками).',alpha:'Ð’ цьому полі можна використовувати лише латинські літери (a-z). Пробіли Ñ– інші символи заборонені.',alphanum:'Ð’ цьому полі можна використовувати лише латинські літери (a-z) Ñ– цифри (0-9). Пробіли Ñ– інші символи заборонені.',dateSuchAs:'Введіть коректну дату {date}.',dateInFormatMDY:'Введіть дату в форматі ММ/ДД/Ð Ð Ð Ð (наприклад "12/31/2009").',email:'Введіть коректну адресу електронної пошти (наприклад "name@domain.com").',url:'Введіть коректне інтернет-посилання (наприклад http://www.example.com).',currencyDollar:'Введіть суму в доларах (наприклад "$100.00").',oneRequired:'Заповніть одне з полів.',errorPrefix:'Помилка: ',warningPrefix:'Увага: ',noSpace:'Пробіли заборонені.',reqChkByNode:'Не відмічено жодного варіанту.',requiredChk:'Це поле повинне бути віміченим.',reqChkByName:'Будь ласка, відмітьте {label}.',match:'Це поле повинно відповідати {matchName}',startDate:'початкова дата',endDate:'кінцева дата',currendDate:'сьогоднішня дата',afterDate:'Ця дата повинна бути такою ж, або пізнішою за {label}.',beforeDate:'Ця дата повинна бути такою ж, або ранішою за {label}.',startMonth:'Будь ласка, виберіть початковий місяць',sameMonth:'Ці дати повинні відноситись одного Ñ– того ж місяця. Будь ласка, змініть одну з них.',creditcard:'Номер кредитної карти введений неправильно. Будь ласка, перевірте його. Введено {length} символів.'});Locale.define('zh-CHS','Date',{months:['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],months_abbr:['一','二','三','å››','五','å…­','七','å…«','九','十','十一','十二'],days:['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],days_abbr:['æ—¥','一','二','三','å››','五','å…­'],dateOrder:['year','month','date'],shortDate:'%Y-%m-%d',shortTime:'%I:%M%p',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'不到1分钟前',minuteAgo:'大约1分钟前',minutesAgo:'{delta}分钟之前',hourAgo:'大约1小时前',hoursAgo:'大约{delta}小时前',dayAgo:'1天前',daysAgo:'{delta}天前',weekAgo:'1星期前',weeksAgo:'{delta}星期前',monthAgo:'1个月前',monthsAgo:'{delta}个月前',yearAgo:'1年前',yearsAgo:'{delta}年前',lessThanMinuteUntil:'从现在开始不到1分钟',minuteUntil:'从现在开始約1分钟',minutesUntil:'从现在开始约{delta}分钟',hourUntil:'从现在开始1小时',hoursUntil:'从现在开始约{delta}小时',dayUntil:'从现在开始1天',daysUntil:'从现在开始{delta}天',weekUntil:'从现在开始1星期',weeksUntil:'从现在开始{delta}星期',monthUntil:'从现在开始一个月',monthsUntil:'从现在开始{delta}个月',yearUntil:'从现在开始1å¹´',yearsUntil:'从现在开始{delta}å¹´'});Locale.define('zh-CHT','Date',{months:['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],months_abbr:['一','二','三','å››','五','å…­','七','å…«','九','十','十一','十二'],days:['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],days_abbr:['æ—¥','一','二','三','å››','五','å…­'],dateOrder:['year','month','date'],shortDate:'%Y-%m-%d',shortTime:'%I:%M%p',AM:'AM',PM:'PM',firstDayOfWeek:1,ordinal:'',lessThanMinuteAgo:'不到1分鐘前',minuteAgo:'大約1分鐘前',minutesAgo:'{delta}分鐘之前',hourAgo:'大約1小時前',hoursAgo:'大約{delta}小時前',dayAgo:'1天前',daysAgo:'{delta}天前',weekAgo:'1星期前',weeksAgo:'{delta}星期前',monthAgo:'1个月前',monthsAgo:'{delta}个月前',yearAgo:'1年前',yearsAgo:'{delta}年前',lessThanMinuteUntil:'從現在開始不到1分鐘',minuteUntil:'從現在開始約1分鐘',minutesUntil:'從現在開始約{delta}分鐘',hourUntil:'從現在開始1小時',hoursUntil:'從現在開始約{delta}小時',dayUntil:'從現在開始1天',daysUntil:'從現在開始{delta}天',weekUntil:'從現在開始1星期',weeksUntil:'從現在開始{delta}星期',monthUntil:'從現在開始一個月',monthsUntil:'從現在開始{delta}個月',yearUntil:'從現在開始1å¹´',yearsUntil:'從現在開始{delta}å¹´'});Locale.define('zh-CHS','FormValidator',{required:'此项必填。',minLength:'请至少输入 {minLength} 个字符 (已输入 {length} 个)。',maxLength:'最多只能输入 {maxLength} 个字符 (已输入 {length} 个)。',integer:'请输入一个整数,不能包含小数点。例如:"1", "200"。',numeric:'请输入一个数字,例如:"1", "1.1", "-1", "-1.1"。',digits:'è¯·è¾“å…¥ç”±æ•°å­—å’Œæ ‡ç‚¹ç¬¦å·ç»„æˆçš„å†…å®¹ã€‚ä¾‹å¦‚ç”µè¯å·ç ã€‚',alpha:'请输入 A-Z çš„ 26 ä¸ªå­—æ¯ï¼Œä¸èƒ½åŒ…å«ç©ºæ ¼æˆ–ä»»ä½•å…¶ä»–å­—ç¬¦ã€‚',alphanum:'请输入 A-Z çš„ 26 个字母或 0-9 çš„ 10 ä¸ªæ•°å­—ï¼Œä¸èƒ½åŒ…å«ç©ºæ ¼æˆ–ä»»ä½•å…¶ä»–å­—ç¬¦ã€‚',dateSuchAs:'è¯·è¾“å…¥åˆæ³•çš„æ—¥æœŸæ ¼å¼ï¼Œå¦‚ï¼š{date}。',dateInFormatMDY:'è¯·è¾“å…¥åˆæ³•çš„æ—¥æœŸæ ¼å¼ï¼Œä¾‹å¦‚ï¼šYYYY-MM-DD ("2010-12-31")。',email:'请输入合法的电子信箱地址,例如:"fred@domain.com"。',url:'请输入合法的 Url 地址,例如:http://www.example.com。',currencyDollar:'请输入合法的货币符号,例如:¥100.0',oneRequired:'请至少选择一项。',errorPrefix:'错误:',warningPrefix:'警告:',noSpace:'ä¸èƒ½åŒ…å«ç©ºæ ¼ã€‚',reqChkByNode:'未选择任何内容。',requiredChk:'此项必填。',reqChkByName:'请选择 {label}.',match:'必须与{matchName}相匹配',startDate:'起始日期',endDate:'结束日期',currendDate:'当前日期',afterDate:'日期必须等于或晚于 {label}.',beforeDate:'日期必须早于或等于 {label}.',startMonth:'请选择起始月份',sameMonth:'您必须修改两个日期中的一个,以确保它们在同一月份。',creditcard:'æ‚¨è¾“å…¥çš„ä¿¡ç”¨å¡å·ç ä¸æ­£ç¡®ã€‚å½“å‰å·²è¾“å…¥{length}个字符。'});Locale.define('zh-CHT','FormValidator',{required:'æ­¤é …å¿…å¡«ã€‚ ',minLength:'請至少輸入{minLength} 個字符(已輸入{length} 個)。 ',maxLength:'最多只能輸入{maxLength} 個字符(已輸入{length} 個)。 ',integer:'請輸入一個整數,不能包含小數點。例如:"1", "200"。 ',numeric:'請輸入一個數字,例如:"1", "1.1", "-1", "-1.1"。 ',digits:'請輸入由數字和標點符號組成的內容。例如電話號碼。 ',alpha:'請輸入AZ çš„26 å€‹å­—æ¯ï¼Œä¸èƒ½åŒ…å«ç©ºæ ¼æˆ–ä»»ä½•å…¶ä»–å­—ç¬¦ã€‚ ',alphanum:'請輸入AZ çš„26 個字母或0-9 çš„10 å€‹æ•¸å­—ï¼Œä¸èƒ½åŒ…å«ç©ºæ ¼æˆ–ä»»ä½•å…¶ä»–å­—ç¬¦ã€‚ ',dateSuchAs:'è«‹è¼¸å…¥åˆæ³•çš„æ—¥æœŸæ ¼å¼ï¼Œå¦‚ï¼š{date}。 ',dateInFormatMDY:'è«‹è¼¸å…¥åˆæ³•çš„æ—¥æœŸæ ¼å¼ï¼Œä¾‹å¦‚ï¼šYYYY-MM-DD ("2010-12-31")。 ',email:'請輸入合法的電子信箱地址,例如:"fred@domain.com"。 ',url:'請輸入合法的Url 地址,例如:http://www.example.com。 ',currencyDollar:'請輸入合法的貨幣符號,例如:¥100.0',oneRequired:'è«‹è‡³å°‘é¸æ“‡ä¸€é …ã€‚ ',errorPrefix:'錯誤:',warningPrefix:'警告:',noSpace:'ä¸èƒ½åŒ…å«ç©ºæ ¼ã€‚ ',reqChkByNode:'未選擇任何內容。 ',requiredChk:'æ­¤é …å¿…å¡«ã€‚ ',reqChkByName:'請選擇 {label}.',match:'å¿…é ˆèˆ‡{matchName}相匹配',startDate:'起始日期',endDate:'結束日期',currendDate:'當前日期',afterDate:'æ—¥æœŸå¿…é ˆç­‰æ–¼æˆ–æ™šæ–¼{label}.',beforeDate:'æ—¥æœŸå¿…é ˆæ—©æ–¼æˆ–ç­‰æ–¼{label}.',startMonth:'請選擇起始月份',sameMonth:'æ‚¨å¿…é ˆä¿®æ”¹å…©å€‹æ—¥æœŸä¸­çš„ä¸€å€‹ï¼Œä»¥ç¢ºä¿å®ƒå€‘åœ¨åŒä¸€æœˆä»½ã€‚ ',creditcard:'您輸入的信用卡號碼不正確。當前已輸入{length}個字符。 '});Form.Validator.add('validate-currency-yuan',{errorMsg:function(){return Form.Validator.getMsg('currencyYuan');},test:function(element){return Form.Validator.getValidator('IsEmpty').test(element)||(/^ï¿¥?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/).test(element.get('value'));}});/*! jQuery JavaScript Library v1.8.3 http://jquery.com/ Includes Sizzle.js http://sizzlejs.com/ Copyright 2012 jQuery Foundation and other contributors Released under the MIT license http://jquery.org/license Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */(function(window,undefined){var rootjQuery,readyList,document=window.document,location=window.location,navigator=window.navigator,_jQuery=window.jQuery,_$=window.$,core_push=Array.prototype.push,core_slice=Array.prototype.slice,core_indexOf=Array.prototype.indexOf,core_toString=Object.prototype.toString,core_hasOwn=Object.prototype.hasOwnProperty,core_trim=String.prototype.trim,jQuery=function(selector,context){return new jQuery.fn.init(selector,context,rootjQuery);},core_pnum=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,core_rnotwhite=/\S/,core_rspace=/\s+/,rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rquickExpr=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,rvalidchars=/^[\],:{}\s]*$/,rvalidbraces=/(?:^|:|,)(?:\s*\[)+/g,rvalidescape=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,rvalidtokens=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,fcamelCase=function(all,letter){return(letter+"").toUpperCase();},DOMContentLoaded=function(){if(document.addEventListener){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);jQuery.ready();}else if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);jQuery.ready();}},class2type={};jQuery.fn=jQuery.prototype={constructor:jQuery,init:function(selector,context,rootjQuery){var match,elem,ret,doc;if(!selector){return this;} if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this;} if(typeof selector==="string"){if(selector.charAt(0)==="<"&&selector.charAt(selector.length-1)===">"&&selector.length>=3){match=[null,selector,null];}else{match=rquickExpr.exec(selector);} if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;doc=(context&&context.nodeType?context.ownerDocument||context:document);selector=jQuery.parseHTML(match[1],doc,true);if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){this.attr.call(selector,context,true);} return jQuery.merge(this,selector);}else{elem=document.getElementById(match[2]);if(elem&&elem.parentNode){if(elem.id!==match[2]){return rootjQuery.find(selector);} this.length=1;this[0]=elem;} this.context=document;this.selector=selector;return this;}}else if(!context||context.jquery){return(context||rootjQuery).find(selector);}else{return this.constructor(context).find(selector);}}else if(jQuery.isFunction(selector)){return rootjQuery.ready(selector);} if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;} return jQuery.makeArray(selector,this);},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length;},toArray:function(){return core_slice.call(this);},get:function(num){return num==null?this.toArray():(num<0?this[this.length+num]:this[num]);},pushStack:function(elems,name,selector){var ret=jQuery.merge(this.constructor(),elems);ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;}else if(name){ret.selector=this.selector+"."+name+"("+selector+")";} return ret;},each:function(callback,args){return jQuery.each(this,callback,args);},ready:function(fn){jQuery.ready.promise().done(fn);return this;},eq:function(i){i=+i;return i===-1?this.slice(i):this.slice(i,i+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(core_slice.apply(this,arguments),"slice",core_slice.call(arguments).join(","));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},end:function(){return this.prevObject||this.constructor(null);},push:core_push,sort:[].sort,splice:[].splice};jQuery.fn.init.prototype=jQuery.fn;jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;} if(typeof target!=="object"&&!jQuery.isFunction(target)){target={};} if(length===i){target=this;--i;} for(;i0){return;} readyList.resolveWith(document,[jQuery]);if(jQuery.fn.trigger){jQuery(document).trigger("ready").off("ready");}},isFunction:function(obj){return jQuery.type(obj)==="function";},isArray:Array.isArray||function(obj){return jQuery.type(obj)==="array";},isWindow:function(obj){return obj!=null&&obj==obj.window;},isNumeric:function(obj){return!isNaN(parseFloat(obj))&&isFinite(obj);},type:function(obj){return obj==null?String(obj):class2type[core_toString.call(obj)]||"object";},isPlainObject:function(obj){if(!obj||jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false;} try{if(obj.constructor&&!core_hasOwn.call(obj,"constructor")&&!core_hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false;}}catch(e){return false;} var key;for(key in obj){} return key===undefined||core_hasOwn.call(obj,key);},isEmptyObject:function(obj){var name;for(name in obj){return false;} return true;},error:function(msg){throw new Error(msg);},parseHTML:function(data,context,scripts){var parsed;if(!data||typeof data!=="string"){return null;} if(typeof context==="boolean"){scripts=context;context=0;} context=context||document;if((parsed=rsingleTag.exec(data))){return[context.createElement(parsed[1])];} parsed=jQuery.buildFragment([data],context,scripts?null:[]);return jQuery.merge([],(parsed.cacheable?jQuery.clone(parsed.fragment):parsed.fragment).childNodes);},parseJSON:function(data){if(!data||typeof data!=="string"){return null;} data=jQuery.trim(data);if(window.JSON&&window.JSON.parse){return window.JSON.parse(data);} if(rvalidchars.test(data.replace(rvalidescape,"@").replace(rvalidtokens,"]").replace(rvalidbraces,""))){return(new Function("return "+data))();} jQuery.error("Invalid JSON: "+data);},parseXML:function(data){var xml,tmp;if(!data||typeof data!=="string"){return null;} try{if(window.DOMParser){tmp=new DOMParser();xml=tmp.parseFromString(data,"text/xml");}else{xml=new ActiveXObject("Microsoft.XMLDOM");xml.async="false";xml.loadXML(data);}}catch(e){xml=undefined;} if(!xml||!xml.documentElement||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data);} return xml;},noop:function(){},globalEval:function(data){if(data&&core_rnotwhite.test(data)){(window.execScript||function(data){window["eval"].call(window,data);})(data);}},camelCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();},each:function(obj,callback,args){var name,i=0,length=obj.length,isObj=length===undefined||jQuery.isFunction(obj);if(args){if(isObj){for(name in obj){if(callback.apply(obj[name],args)===false){break;}}}else{for(;i0&&elems[0]&&elems[length-1])||length===0||jQuery.isArray(elems));if(isArray){for(;i-1){list.splice(index,1);if(firing){if(index<=firingLength){firingLength--;} if(index<=firingIndex){firingIndex--;}}}});} return this;},has:function(fn){return jQuery.inArray(fn,list)>-1;},empty:function(){list=[];return this;},disable:function(){list=stack=memory=undefined;return this;},disabled:function(){return!list;},lock:function(){stack=undefined;if(!memory){self.disable();} return this;},locked:function(){return!stack;},fireWith:function(context,args){args=args||[];args=[context,args.slice?args.slice():args];if(list&&(!fired||stack)){if(firing){stack.push(args);}else{fire(args);}} return this;},fire:function(){self.fireWith(this,arguments);return this;},fired:function(){return!!fired;}};return self;};jQuery.extend({Deferred:function(func){var tuples=[["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],state="pending",promise={state:function(){return state;},always:function(){deferred.done(arguments).fail(arguments);return this;},then:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var action=tuple[0],fn=fns[i];deferred[tuple[1]](jQuery.isFunction(fn)?function(){var returned=fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify);}else{newDefer[action+"With"](this===deferred?newDefer:this,[returned]);}}:newDefer[action]);});fns=null;}).promise();},promise:function(obj){return obj!=null?jQuery.extend(obj,promise):promise;}},deferred={};promise.pipe=promise.then;jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[3];promise[tuple[1]]=list.add;if(stateString){list.add(function(){state=stateString;},tuples[i^1][2].disable,tuples[2][2].lock);} deferred[tuple[0]]=list.fire;deferred[tuple[0]+"With"]=list.fireWith;});promise.promise(deferred);if(func){func.call(deferred,deferred);} return deferred;},when:function(subordinate){var i=0,resolveValues=core_slice.call(arguments),length=resolveValues.length,remaining=length!==1||(subordinate&&jQuery.isFunction(subordinate.promise))?length:0,deferred=remaining===1?subordinate:jQuery.Deferred(),updateFunc=function(i,contexts,values){return function(value){contexts[i]=this;values[i]=arguments.length>1?core_slice.call(arguments):value;if(values===progressValues){deferred.notifyWith(contexts,values);}else if(!(--remaining)){deferred.resolveWith(contexts,values);}};},progressValues,progressContexts,resolveContexts;if(length>1){progressValues=new Array(length);progressContexts=new Array(length);resolveContexts=new Array(length);for(;i
a";all=div.getElementsByTagName("*");a=div.getElementsByTagName("a")[0];if(!all||!a||!all.length){return{};} select=document.createElement("select");opt=select.appendChild(document.createElement("option"));input=div.getElementsByTagName("input")[0];a.style.cssText="top:1px;float:left;opacity:.5";support={leadingWhitespace:(div.firstChild.nodeType===3),tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/top/.test(a.getAttribute("style")),hrefNormalized:(a.getAttribute("href")==="/a"),opacity:/^0.5/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:(input.value==="on"),optSelected:opt.selected,getSetAttribute:div.className!=="t",enctype:!!document.createElement("form").enctype,html5Clone:document.createElement("nav").cloneNode(true).outerHTML!=="<:nav>",boxModel:(document.compatMode==="CSS1Compat"),submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,boxSizingReliable:true,pixelPosition:false};input.checked=true;support.noCloneChecked=input.cloneNode(true).checked;select.disabled=true;support.optDisabled=!opt.disabled;try{delete div.test;}catch(e){support.deleteExpando=false;} if(!div.addEventListener&&div.attachEvent&&div.fireEvent){div.attachEvent("onclick",clickFn=function(){support.noCloneEvent=false;});div.cloneNode(true).fireEvent("onclick");div.detachEvent("onclick",clickFn);} input=document.createElement("input");input.value="t";input.setAttribute("type","radio");support.radioValue=input.value==="t";input.setAttribute("checked","checked");input.setAttribute("name","t");div.appendChild(input);fragment=document.createDocumentFragment();fragment.appendChild(div.lastChild);support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChild.checked;support.appendChecked=input.checked;fragment.removeChild(input);fragment.appendChild(div);if(div.attachEvent){for(i in{submit:true,change:true,focusin:true}){eventName="on"+i;isSupported=(eventName in div);if(!isSupported){div.setAttribute(eventName,"return;");isSupported=(typeof div[eventName]==="function");} support[i+"Bubbles"]=isSupported;}} jQuery(function(){var container,div,tds,marginDiv,divReset="padding:0;margin:0;border:0;display:block;overflow:hidden;",body=document.getElementsByTagName("body")[0];if(!body){return;} container=document.createElement("div");container.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";body.insertBefore(container,body.firstChild);div=document.createElement("div");container.appendChild(div);div.innerHTML="
t
";tds=div.getElementsByTagName("td");tds[0].style.cssText="padding:0;margin:0;border:0;display:none";isSupported=(tds[0].offsetHeight===0);tds[0].style.display="";tds[1].style.display="none";support.reliableHiddenOffsets=isSupported&&(tds[0].offsetHeight===0);div.innerHTML="";div.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";support.boxSizing=(div.offsetWidth===4);support.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==1);if(window.getComputedStyle){support.pixelPosition=(window.getComputedStyle(div,null)||{}).top!=="1%";support.boxSizingReliable=(window.getComputedStyle(div,null)||{width:"4px"}).width==="4px";marginDiv=document.createElement("div");marginDiv.style.cssText=div.style.cssText=divReset;marginDiv.style.marginRight=marginDiv.style.width="0";div.style.width="1px";div.appendChild(marginDiv);support.reliableMarginRight=!parseFloat((window.getComputedStyle(marginDiv,null)||{}).marginRight);} if(typeof div.style.zoom!=="undefined"){div.innerHTML="";div.style.cssText=divReset+"width:1px;padding:1px;display:inline;zoom:1";support.inlineBlockNeedsLayout=(div.offsetWidth===3);div.style.display="block";div.style.overflow="visible";div.innerHTML="
";div.firstChild.style.width="5px";support.shrinkWrapBlocks=(div.offsetWidth!==3);container.style.zoom=1;} body.removeChild(container);container=div=tds=marginDiv=null;});fragment.removeChild(div);all=a=select=opt=input=fragment=div=null;return support;})();var rbrace=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,rmultiDash=/([A-Z])/g;jQuery.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(jQuery.fn.jquery+Math.random()).replace(/\D/g,""),noData:{"embed":true,"object":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000","applet":true},hasData:function(elem){elem=elem.nodeType?jQuery.cache[elem[jQuery.expando]]:elem[jQuery.expando];return!!elem&&!isEmptyDataObject(elem);},data:function(elem,name,data,pvt){if(!jQuery.acceptData(elem)){return;} var thisCache,ret,internalKey=jQuery.expando,getByName=typeof name==="string",isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[internalKey]:elem[internalKey]&&internalKey;if((!id||!cache[id]||(!pvt&&!cache[id].data))&&getByName&&data===undefined){return;} if(!id){if(isNode){elem[internalKey]=id=jQuery.deletedIds.pop()||jQuery.guid++;}else{id=internalKey;}} if(!cache[id]){cache[id]={};if(!isNode){cache[id].toJSON=jQuery.noop;}} if(typeof name==="object"||typeof name==="function"){if(pvt){cache[id]=jQuery.extend(cache[id],name);}else{cache[id].data=jQuery.extend(cache[id].data,name);}} thisCache=cache[id];if(!pvt){if(!thisCache.data){thisCache.data={};} thisCache=thisCache.data;} if(data!==undefined){thisCache[jQuery.camelCase(name)]=data;} if(getByName){ret=thisCache[name];if(ret==null){ret=thisCache[jQuery.camelCase(name)];}}else{ret=thisCache;} return ret;},removeData:function(elem,name,pvt){if(!jQuery.acceptData(elem)){return;} var thisCache,i,l,isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:jQuery.expando;if(!cache[id]){return;} if(name){thisCache=pvt?cache[id]:cache[id].data;if(thisCache){if(!jQuery.isArray(name)){if(name in thisCache){name=[name];}else{name=jQuery.camelCase(name);if(name in thisCache){name=[name];}else{name=name.split(" ");}}} for(i=0,l=name.length;i1,null,false);},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});}});function dataAttr(elem,key,data){if(data===undefined&&elem.nodeType===1){var name="data-"+key.replace(rmultiDash,"-$1").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=data==="true"?true:data==="false"?false:data==="null"?null:+data+""===data?+data:rbrace.test(data)?jQuery.parseJSON(data):data;}catch(e){} jQuery.data(elem,key,data);}else{data=undefined;}} return data;} function isEmptyDataObject(obj){var name;for(name in obj){if(name==="data"&&jQuery.isEmptyObject(obj[name])){continue;} if(name!=="toJSON"){return false;}} return true;} jQuery.extend({queue:function(elem,type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=jQuery._data(elem,type);if(data){if(!queue||jQuery.isArray(data)){queue=jQuery._data(elem,type,jQuery.makeArray(data));}else{queue.push(data);}} return queue||[];}},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function(){jQuery.dequeue(elem,type);};if(fn==="inprogress"){fn=queue.shift();startLength--;} if(fn){if(type==="fx"){queue.unshift("inprogress");} delete hooks.stop;fn.call(elem,next,hooks);} if(!startLength&&hooks){hooks.empty.fire();}},_queueHooks:function(elem,type){var key=type+"queueHooks";return jQuery._data(elem,key)||jQuery._data(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){jQuery.removeData(elem,type+"queue",true);jQuery.removeData(elem,key,true);})});}});jQuery.fn.extend({queue:function(type,data){var setter=2;if(typeof type!=="string"){data=type;type="fx";setter--;} if(arguments.length1);},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name);});},prop:function(name,value){return jQuery.access(this,jQuery.prop,name,value,arguments.length>1);},removeProp:function(name){name=jQuery.propFix[name]||name;return this.each(function(){try{this[name]=undefined;delete this[name];}catch(e){}});},addClass:function(value){var classNames,i,l,elem,setClass,c,cl;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,this.className));});} if(value&&typeof value==="string"){classNames=value.split(core_rspace);for(i=0,l=this.length;i=0){className=className.replace(" "+removes[c]+" "," ");}} elem.className=value?jQuery.trim(className):"";}}} return this;},toggleClass:function(value,stateVal){var type=typeof value,isBool=typeof stateVal==="boolean";if(jQuery.isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,this.className,stateVal),stateVal);});} return this.each(function(){if(type==="string"){var className,i=0,self=jQuery(this),state=stateVal,classNames=value.split(core_rspace);while((className=classNames[i++])){state=isBool?state:!self.hasClass(className);self[state?"addClass":"removeClass"](className);}}else if(type==="undefined"||type==="boolean"){if(this.className){jQuery._data(this,"__className__",this.className);} this.className=this.className||value===false?"":jQuery._data(this,"__className__")||"";}});},hasClass:function(selector){var className=" "+selector+" ",i=0,l=this.length;for(;i=0){return true;}} return false;},val:function(value){var hooks,ret,isFunction,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()];if(hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret;} ret=elem.value;return typeof ret==="string"?ret.replace(rreturn,""):ret==null?"":ret;} return;} isFunction=jQuery.isFunction(value);return this.each(function(i){var val,self=jQuery(this);if(this.nodeType!==1){return;} if(isFunction){val=value.call(this,i,self.val());}else{val=value;} if(val==null){val="";}else if(typeof val==="number"){val+="";}else if(jQuery.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+"";});} hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){this.value=val;}});}});jQuery.extend({valHooks:{option:{get:function(elem){var val=elem.attributes.value;return!val||val.specified?elem.value:elem.text;}},select:{get:function(elem){var value,option,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one"||index<0,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;for(;i=0;});if(!values.length){elem.selectedIndex=-1;} return values;}}},attrFn:{},attr:function(elem,name,value,pass){var ret,hooks,notxml,nType=elem.nodeType;if(!elem||nType===3||nType===8||nType===2){return;} if(pass&&jQuery.isFunction(jQuery.fn[name])){return jQuery(elem)[name](value);} if(typeof elem.getAttribute==="undefined"){return jQuery.prop(elem,name,value);} notxml=nType!==1||!jQuery.isXMLDoc(elem);if(notxml){name=name.toLowerCase();hooks=jQuery.attrHooks[name]||(rboolean.test(name)?boolHook:nodeHook);} if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);return;}else if(hooks&&"set"in hooks&¬xml&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}else{elem.setAttribute(name,value+"");return value;}}else if(hooks&&"get"in hooks&¬xml&&(ret=hooks.get(elem,name))!==null){return ret;}else{ret=elem.getAttribute(name);return ret===null?undefined:ret;}},removeAttr:function(elem,value){var propName,attrNames,name,isBool,i=0;if(value&&elem.nodeType===1){attrNames=value.split(core_rspace);for(;i=0);}}});});var rformElems=/^(?:textarea|input|select)$/i,rtypenamespace=/^([^\.]*|)(?:\.(.+)|)$/,rhoverHack=/(?:^|\s)hover(\.\S+|)\b/,rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,hoverHack=function(events){return jQuery.event.special.hover?events:events.replace(rhoverHack,"mouseenter$1 mouseleave$1");};jQuery.event={add:function(elem,types,handler,data,selector){var elemData,eventHandle,events,t,tns,type,namespaces,handleObj,handleObjIn,handlers,special;if(elem.nodeType===3||elem.nodeType===8||!types||!handler||!(elemData=jQuery._data(elem))){return;} if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector;} if(!handler.guid){handler.guid=jQuery.guid++;} events=elemData.events;if(!events){elemData.events=events={};} eventHandle=elemData.handle;if(!eventHandle){elemData.handle=eventHandle=function(e){return typeof jQuery!=="undefined"&&(!e||jQuery.event.triggered!==e.type)?jQuery.event.dispatch.apply(eventHandle.elem,arguments):undefined;};eventHandle.elem=elem;} types=jQuery.trim(hoverHack(types)).split(" ");for(t=0;t=0){type=type.slice(0,-1);exclusive=true;} if(type.indexOf(".")>=0){namespaces=type.split(".");type=namespaces.shift();namespaces.sort();} if((!elem||jQuery.event.customEvent[type])&&!jQuery.event.global[type]){return;} event=typeof event==="object"?event[jQuery.expando]?event:new jQuery.Event(type,event):new jQuery.Event(type);event.type=type;event.isTrigger=true;event.exclusive=exclusive;event.namespace=namespaces.join(".");event.namespace_re=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;ontype=type.indexOf(":")<0?"on"+type:"";if(!elem){cache=jQuery.cache;for(i in cache){if(cache[i].events&&cache[i].events[type]){jQuery.event.trigger(event,data,cache[i].handle.elem,true);}} return;} event.result=undefined;if(!event.target){event.target=elem;} data=data!=null?jQuery.makeArray(data):[];data.unshift(event);special=jQuery.event.special[type]||{};if(special.trigger&&special.trigger.apply(elem,data)===false){return;} eventPath=[[elem,special.bindType||type]];if(!onlyHandlers&&!special.noBubble&&!jQuery.isWindow(elem)){bubbleType=special.delegateType||type;cur=rfocusMorph.test(bubbleType+type)?elem:elem.parentNode;for(old=elem;cur;cur=cur.parentNode){eventPath.push([cur,bubbleType]);old=cur;} if(old===(elem.ownerDocument||document)){eventPath.push([old.defaultView||old.parentWindow||window,bubbleType]);}} for(i=0;i=0:jQuery.find(sel,this,null,[cur]).length;} if(selMatch[sel]){matches.push(handleObj);}} if(matches.length){handlerQueue.push({elem:cur,matches:matches});}}}} if(handlers.length>delegateCount){handlerQueue.push({elem:this,matches:handlers.slice(delegateCount)});} for(i=0;i0?this.on(name,null,data,fn):this.trigger(name);};if(rkeyEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.keyHooks;} if(rmouseEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.mouseHooks;}});/*! Sizzle CSS Selector Engine Copyright 2012 jQuery Foundation and other contributors Released under the MIT license http://sizzlejs.com/ */(function(window,undefined){var cachedruns,assertGetIdNotName,Expr,getText,isXML,contains,compile,sortOrder,hasDuplicate,outermostContext,baseHasDuplicate=true,strundefined="undefined",expando=("sizcache"+Math.random()).replace(".",""),Token=String,document=window.document,docElem=document.documentElement,dirruns=0,done=0,pop=[].pop,push=[].push,slice=[].slice,indexOf=[].indexOf||function(elem){var i=0,len=this.length;for(;iExpr.cacheLength){delete cache[keys.shift()];} return(cache[key+" "]=value);},cache);},classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),whitespace="[\\x20\\t\\r\\n\\f]",characterEncoding="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",identifier=characterEncoding.replace("w","w#"),operators="([*^$|!~]?=)",attributes="\\["+whitespace+"*("+characterEncoding+")"+whitespace+"*(?:"+operators+whitespace+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+identifier+")|)|)"+whitespace+"*\\]",pseudos=":("+characterEncoding+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+attributes+")|[^:]|\\\\.)*|.*))\\)|)",pos=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)",rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([\\x20\\t\\r\\n\\f>+~])"+whitespace+"*"),rpseudo=new RegExp(pseudos),rquickExpr=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,rnot=/^:not/,rsibling=/[\x20\t\r\n\f]*[+~]/,rendsWithNot=/:not\($/,rheader=/h\d/i,rinputs=/input|select|textarea|button/i,rbackslash=/\\(?!\\)/g,matchExpr={"ID":new RegExp("^#("+characterEncoding+")"),"CLASS":new RegExp("^\\.("+characterEncoding+")"),"NAME":new RegExp("^\\[name=['\"]?("+characterEncoding+")['\"]?\\]"),"TAG":new RegExp("^("+characterEncoding.replace("w","w*")+")"),"ATTR":new RegExp("^"+attributes),"PSEUDO":new RegExp("^"+pseudos),"POS":new RegExp(pos,"i"),"CHILD":new RegExp("^:(only|nth|first|last)-child(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),"needsContext":new RegExp("^"+whitespace+"*[>+~]|"+pos,"i")},assert=function(fn){var div=document.createElement("div");try{return fn(div);}catch(e){return false;}finally{div=null;}},assertTagNameNoComments=assert(function(div){div.appendChild(document.createComment(""));return!div.getElementsByTagName("*").length;}),assertHrefNotNormalized=assert(function(div){div.innerHTML="";return div.firstChild&&typeof div.firstChild.getAttribute!==strundefined&&div.firstChild.getAttribute("href")==="#";}),assertAttributes=assert(function(div){div.innerHTML="";var type=typeof div.lastChild.getAttribute("multiple");return type!=="boolean"&&type!=="string";}),assertUsableClassName=assert(function(div){div.innerHTML="";if(!div.getElementsByClassName||!div.getElementsByClassName("e").length){return false;} div.lastChild.className="e";return div.getElementsByClassName("e").length===2;}),assertUsableName=assert(function(div){div.id=expando+0;div.innerHTML="
";docElem.insertBefore(div,docElem.firstChild);var pass=document.getElementsByName&&document.getElementsByName(expando).length===2+ document.getElementsByName(expando+0).length;assertGetIdNotName=!document.getElementById(expando);docElem.removeChild(div);return pass;});try{slice.call(docElem.childNodes,0)[0].nodeType;}catch(e){slice=function(i){var elem,results=[];for(;(elem=this[i]);i++){results.push(elem);} return results;};} function Sizzle(selector,context,results,seed){results=results||[];context=context||document;var match,elem,xml,m,nodeType=context.nodeType;if(!selector||typeof selector!=="string"){return results;} if(nodeType!==1&&nodeType!==9){return[];} xml=isXML(context);if(!xml&&!seed){if((match=rquickExpr.exec(selector))){if((m=match[1])){if(nodeType===9){elem=context.getElementById(m);if(elem&&elem.parentNode){if(elem.id===m){results.push(elem);return results;}}else{return results;}}else{if(context.ownerDocument&&(elem=context.ownerDocument.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results;}}}else if(match[2]){push.apply(results,slice.call(context.getElementsByTagName(selector),0));return results;}else if((m=match[3])&&assertUsableClassName&&context.getElementsByClassName){push.apply(results,slice.call(context.getElementsByClassName(m),0));return results;}}} return select(selector.replace(rtrim,"$1"),context,results,seed,xml);} Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements);};Sizzle.matchesSelector=function(elem,expr){return Sizzle(expr,null,null,[elem]).length>0;};function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type;};} function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type;};} function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[(j=matchIndexes[i])]){seed[j]=!(matches[j]=seed[j]);}}});});} getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(nodeType){if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent==="string"){return elem.textContent;}else{for(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem);}}}else if(nodeType===3||nodeType===4){return elem.nodeValue;}}else{for(;(node=elem[i]);i++){ret+=getText(node);}} return ret;};isXML=Sizzle.isXML=function(elem){var documentElement=elem&&(elem.ownerDocument||elem).documentElement;return documentElement?documentElement.nodeName!=="HTML":false;};contains=Sizzle.contains=docElem.contains?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&adown.contains&&adown.contains(bup));}:docElem.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16);}:function(a,b){while((b=b.parentNode)){if(b===a){return true;}} return false;};Sizzle.attr=function(elem,name){var val,xml=isXML(elem);if(!xml){name=name.toLowerCase();} if((val=Expr.attrHandle[name])){return val(elem);} if(xml||assertAttributes){return elem.getAttribute(name);} val=elem.getAttributeNode(name);return val?typeof elem[name]==="boolean"?elem[name]?name:null:val.specified?val.value:null:null;};Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:assertHrefNotNormalized?{}:{"href":function(elem){return elem.getAttribute("href",2);},"type":function(elem){return elem.getAttribute("type");}},find:{"ID":assertGetIdNotName?function(id,context,xml){if(typeof context.getElementById!==strundefined&&!xml){var m=context.getElementById(id);return m&&m.parentNode?[m]:[];}}:function(id,context,xml){if(typeof context.getElementById!==strundefined&&!xml){var m=context.getElementById(id);return m?m.id===id||typeof m.getAttributeNode!==strundefined&&m.getAttributeNode("id").value===id?[m]:undefined:[];}},"TAG":assertTagNameNoComments?function(tag,context){if(typeof context.getElementsByTagName!==strundefined){return context.getElementsByTagName(tag);}}:function(tag,context){var results=context.getElementsByTagName(tag);if(tag==="*"){var elem,tmp=[],i=0;for(;(elem=results[i]);i++){if(elem.nodeType===1){tmp.push(elem);}} return tmp;} return results;},"NAME":assertUsableName&&function(tag,context){if(typeof context.getElementsByName!==strundefined){return context.getElementsByName(name);}},"CLASS":assertUsableClassName&&function(className,context,xml){if(typeof context.getElementsByClassName!==strundefined&&!xml){return context.getElementsByClassName(className);}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{"ATTR":function(match){match[1]=match[1].replace(rbackslash,"");match[3]=(match[4]||match[5]||"").replace(rbackslash,"");if(match[2]==="~="){match[3]=" "+match[3]+" ";} return match.slice(0,4);},"CHILD":function(match){match[1]=match[1].toLowerCase();if(match[1]==="nth"){if(!match[2]){Sizzle.error(match[0]);} match[3]=+(match[3]?match[4]+(match[5]||1):2*(match[2]==="even"||match[2]==="odd"));match[4]=+((match[6]+match[7])||match[2]==="odd");}else if(match[2]){Sizzle.error(match[0]);} return match;},"PSEUDO":function(match){var unquoted,excess;if(matchExpr["CHILD"].test(match[0])){return null;} if(match[3]){match[2]=match[3];}else if((unquoted=match[4])){if(rpseudo.test(unquoted)&&(excess=tokenize(unquoted,true))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){unquoted=unquoted.slice(0,excess);match[0]=match[0].slice(0,excess);} match[2]=unquoted;} return match.slice(0,3);}},filter:{"ID":assertGetIdNotName?function(id){id=id.replace(rbackslash,"");return function(elem){return elem.getAttribute("id")===id;};}:function(id){id=id.replace(rbackslash,"");return function(elem){var node=typeof elem.getAttributeNode!==strundefined&&elem.getAttributeNode("id");return node&&node.value===id;};},"TAG":function(nodeName){if(nodeName==="*"){return function(){return true;};} nodeName=nodeName.replace(rbackslash,"").toLowerCase();return function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName;};},"CLASS":function(className){var pattern=classCache[expando][className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(elem.className||(typeof elem.getAttribute!==strundefined&&elem.getAttribute("class"))||"");});},"ATTR":function(name,operator,check){return function(elem,context){var result=Sizzle.attr(elem,name);if(result==null){return operator==="!=";} if(!operator){return true;} result+="";return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.substr(result.length-check.length)===check:operator==="~="?(" "+result+" ").indexOf(check)>-1:operator==="|="?result===check||result.substr(0,check.length+1)===check+"-":false;};},"CHILD":function(type,argument,first,last){if(type==="nth"){return function(elem){var node,diff,parent=elem.parentNode;if(first===1&&last===0){return true;} if(parent){diff=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){diff++;if(elem===node){break;}}}} diff-=last;return diff===first||(diff%first===0&&diff/first>=0);};} return function(elem){var node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false;}} if(type==="first"){return true;} node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false;}} return true;}};},"PSEUDO":function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);if(fn[expando]){return fn(argument);} if(fn.length>1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf.call(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i]);}}):function(elem){return fn(elem,0,args);};} return fn;}},pseudos:{"not":markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function(seed,matches,context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;while(i--){if((elem=unmatched[i])){seed[i]=!(matches[i]=elem);}}}):function(elem,context,xml){input[0]=elem;matcher(input,null,xml,results);return!results.pop();};}),"has":markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0;};}),"contains":markFunction(function(text){return function(elem){return(elem.textContent||elem.innerText||getText(elem)).indexOf(text)>-1;};}),"enabled":function(elem){return elem.disabled===false;},"disabled":function(elem){return elem.disabled===true;},"checked":function(elem){var nodeName=elem.nodeName.toLowerCase();return(nodeName==="input"&&!!elem.checked)||(nodeName==="option"&&!!elem.selected);},"selected":function(elem){if(elem.parentNode){elem.parentNode.selectedIndex;} return elem.selected===true;},"parent":function(elem){return!Expr.pseudos["empty"](elem);},"empty":function(elem){var nodeType;elem=elem.firstChild;while(elem){if(elem.nodeName>"@"||(nodeType=elem.nodeType)===3||nodeType===4){return false;} elem=elem.nextSibling;} return true;},"header":function(elem){return rheader.test(elem.nodeName);},"text":function(elem){var type,attr;return elem.nodeName.toLowerCase()==="input"&&(type=elem.type)==="text"&&((attr=elem.getAttribute("type"))==null||attr.toLowerCase()===type);},"radio":createInputPseudo("radio"),"checkbox":createInputPseudo("checkbox"),"file":createInputPseudo("file"),"password":createInputPseudo("password"),"image":createInputPseudo("image"),"submit":createButtonPseudo("submit"),"reset":createButtonPseudo("reset"),"button":function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type==="button"||name==="button";},"input":function(elem){return rinputs.test(elem.nodeName);},"focus":function(elem){var doc=elem.ownerDocument;return elem===doc.activeElement&&(!doc.hasFocus||doc.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex);},"active":function(elem){return elem===elem.ownerDocument.activeElement;},"first":createPositionalPseudo(function(){return[0];}),"last":createPositionalPseudo(function(matchIndexes,length){return[length-1];}),"eq":createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument];}),"even":createPositionalPseudo(function(matchIndexes,length){for(var i=0;i=0;){matchIndexes.push(i);} return matchIndexes;}),"gt":createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;++i1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false;}} return true;}:matchers[0];} function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i-1){seed[temp]=!(results[temp]=elem);}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml);}else{push.apply(results,matcherOut);}}});} function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext;},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf.call(checkContext,elem)>-1;},implicitRelative,true),matchers=[function(elem,context,xml){return(!leadingRelative&&(xml||context!==outermostContext))||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));}];for(;i1&&elementMatcher(matchers),i>1&&tokens.slice(0,i-1).join("").replace(rtrim,"$1"),matcher,i0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,expandContext){var elem,j,matcher,setMatched=[],matchedCount=0,i="0",unmatched=seed&&[],outermost=expandContext!=null,contextBackup=outermostContext,elems=seed||byElement&&Expr.find["TAG"]("*",expandContext&&context.parentNode||context),dirrunsUnique=(dirruns+=contextBackup==null?1:Math.E);if(outermost){outermostContext=context!==document&&context;cachedruns=superMatcher.el;} for(;(elem=elems[i])!=null;i++){if(byElement&&elem){for(j=0;(matcher=elementMatchers[j]);j++){if(matcher(elem,context,xml)){results.push(elem);break;}} if(outermost){dirruns=dirrunsUnique;cachedruns=++superMatcher.el;}} if(bySet){if((elem=!matcher&&elem)){matchedCount--;} if(seed){unmatched.push(elem);}}} matchedCount+=i;if(bySet&&i!==matchedCount){for(j=0;(matcher=setMatchers[j]);j++){matcher(unmatched,setMatched,context,xml);} if(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results);}}} setMatched=condense(setMatched);} push.apply(results,setMatched);if(outermost&&!seed&&setMatched.length>0&&(matchedCount+setMatchers.length)>1){Sizzle.uniqueSort(results);}} if(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup;} return unmatched;};superMatcher.el=0;return bySet?markFunction(superMatcher):superMatcher;} compile=Sizzle.compile=function(selector,group){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[expando][selector+" "];if(!cached){if(!group){group=tokenize(selector);} i=group.length;while(i--){cached=matcherFromTokens(group[i]);if(cached[expando]){setMatchers.push(cached);}else{elementMatchers.push(cached);}} cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));} return cached;};function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&!xml&&Expr.relative[tokens[1].type]){context=Expr.find["ID"](token.matches[0].replace(rbackslash,""),context,xml)[0];if(!context){return results;} selector=selector.slice(tokens.shift().length);} for(i=matchExpr["POS"].test(selector)?-1:tokens.length-1;i>=0;i--){token=tokens[i];if(Expr.relative[(type=token.type)]){break;} if((find=Expr.find[type])){if((seed=find(token.matches[0].replace(rbackslash,""),rsibling.test(tokens[0].type)&&context.parentNode||context,xml))){tokens.splice(i,1);selector=seed.length&&tokens.join("");if(!selector){push.apply(results,slice.call(seed,0));return results;} break;}}}}} compile(selector,match)(seed,context,xml,results,rsibling.test(selector));return results;} if(document.querySelectorAll){(function(){var disconnectedMatch,oldSelect=select,rescape=/'|\\/g,rattributeQuotes=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,rbuggyQSA=[":focus"],rbuggyMatches=[":active"],matches=docElem.matchesSelector||docElem.mozMatchesSelector||docElem.webkitMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector;assert(function(div){div.innerHTML="";if(!div.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)");} if(!div.querySelectorAll(":checked").length){rbuggyQSA.push(":checked");}});assert(function(div){div.innerHTML="

";if(div.querySelectorAll("[test^='']").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:\"\"|'')");} div.innerHTML="";if(!div.querySelectorAll(":enabled").length){rbuggyQSA.push(":enabled",":disabled");}});rbuggyQSA=new RegExp(rbuggyQSA.join("|"));select=function(selector,context,results,seed,xml){if(!seed&&!xml&&!rbuggyQSA.test(selector)){var groups,i,old=true,nid=expando,newContext=context,newSelector=context.nodeType===9&&selector;if(context.nodeType===1&&context.nodeName.toLowerCase()!=="object"){groups=tokenize(selector);if((old=context.getAttribute("id"))){nid=old.replace(rescape,"\\$&");}else{context.setAttribute("id",nid);} nid="[id='"+nid+"'] ";i=groups.length;while(i--){groups[i]=nid+groups[i].join("");} newContext=rsibling.test(selector)&&context.parentNode||context;newSelector=groups.join(",");} if(newSelector){try{push.apply(results,slice.call(newContext.querySelectorAll(newSelector),0));return results;}catch(qsaError){}finally{if(!old){context.removeAttribute("id");}}}} return oldSelect(selector,context,results,seed,xml);};if(matches){assert(function(div){disconnectedMatch=matches.call(div,"div");try{matches.call(div,"[test!='']:sizzle");rbuggyMatches.push("!=",pseudos);}catch(e){}});rbuggyMatches=new RegExp(rbuggyMatches.join("|"));Sizzle.matchesSelector=function(elem,expr){expr=expr.replace(rattributeQuotes,"='$1']");if(!isXML(elem)&&!rbuggyMatches.test(expr)&&!rbuggyQSA.test(expr)){try{var ret=matches.call(elem,expr);if(ret||disconnectedMatch||elem.document&&elem.document.nodeType!==11){return ret;}}catch(e){}} return Sizzle(expr,null,null,[elem]).length>0;};}})();} Expr.pseudos["nth"]=Expr.pseudos["eq"];function setFilters(){} Expr.filters=setFilters.prototype=Expr.pseudos;Expr.setFilters=new setFilters();Sizzle.attr=jQuery.attr;jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.pseudos;jQuery.unique=Sizzle.uniqueSort;jQuery.text=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains;})(window);var runtil=/Until$/,rparentsprev=/^(?:parents|prev(?:Until|All))/,isSimple=/^.[^:#\[\.,]*$/,rneedsContext=jQuery.expr.match.needsContext,guaranteedUnique={children:true,contents:true,next:true,prev:true};jQuery.fn.extend({find:function(selector){var i,l,length,n,r,ret,self=this;if(typeof selector!=="string"){return jQuery(selector).filter(function(){for(i=0,l=self.length;i0){for(n=length;n=0:jQuery.filter(selector,this).length>0:this.filter(selector).length>0);},closest:function(selectors,context){var cur,i=0,l=this.length,ret=[],pos=rneedsContext.test(selectors)||typeof selectors!=="string"?jQuery(selectors,context||this.context):0;for(;i-1:jQuery.find.matchesSelector(cur,selectors)){ret.push(cur);break;} cur=cur.parentNode;}} ret=ret.length>1?jQuery.unique(ret):ret;return this.pushStack(ret,"closest",selectors);},index:function(elem){if(!elem){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1;} if(typeof elem==="string"){return jQuery.inArray(this[0],jQuery(elem));} return jQuery.inArray(elem.jquery?elem[0]:elem,this);},add:function(selector,context){var set=typeof selector==="string"?jQuery(selector,context):jQuery.makeArray(selector&&selector.nodeType?[selector]:selector),all=jQuery.merge(this.get(),set);return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:jQuery.unique(all));},addBack:function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));}});jQuery.fn.andSelf=jQuery.fn.addBack;function isDisconnected(node){return!node||!node.parentNode||node.parentNode.nodeType===11;} function sibling(cur,dir){do{cur=cur[dir];}while(cur&&cur.nodeType!==1);return cur;} jQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function(elem){return jQuery.dir(elem,"parentNode");},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until);},next:function(elem){return sibling(elem,"nextSibling");},prev:function(elem){return sibling(elem,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until);},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until);},siblings:function(elem){return jQuery.sibling((elem.parentNode||{}).firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.merge([],elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);if(!runtil.test(name)){selector=until;} if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret);} ret=this.length>1&&!guaranteedUnique[name]?jQuery.unique(ret):ret;if(this.length>1&&rparentsprev.test(name)){ret=ret.reverse();} return this.pushStack(ret,name,core_slice.call(arguments).join(","));};});jQuery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")";} return elems.length===1?jQuery.find.matchesSelector(elems[0],expr)?[elems[0]]:[]:jQuery.find.matches(expr,elems);},dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur);} cur=cur[dir];} return matched;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n);}} return r;}});function winnow(elements,qualifier,keep){qualifier=qualifier||0;if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){var retVal=!!qualifier.call(elem,i,elem);return retVal===keep;});}else if(qualifier.nodeType){return jQuery.grep(elements,function(elem,i){return(elem===qualifier)===keep;});}else if(typeof qualifier==="string"){var filtered=jQuery.grep(elements,function(elem){return elem.nodeType===1;});if(isSimple.test(qualifier)){return jQuery.filter(qualifier,filtered,!keep);}else{qualifier=jQuery.filter(qualifier,filtered);}} return jQuery.grep(elements,function(elem,i){return(jQuery.inArray(elem,qualifier)>=0)===keep;});} function createSafeFragment(document){var list=nodeNames.split("|"),safeFrag=document.createDocumentFragment();if(safeFrag.createElement){while(list.length){safeFrag.createElement(list.pop());}} return safeFrag;} var nodeNames="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|"+"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",rinlinejQuery=/ jQuery\d+="(?:null|\d+)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rtagName=/<([\w:]+)/,rtbody=/]","i"),rcheckableType=/^(?:checkbox|radio)$/,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/\/(java|ecma)script/i,rcleanScript=/^\s*\s*$/g,wrapMap={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},safeFragment=createSafeFragment(document),fragmentDiv=safeFragment.appendChild(document.createElement("div"));wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!jQuery.support.htmlSerialize){wrapMap._default=[1,"X
","
"];} jQuery.fn.extend({text:function(value){return jQuery.access(this,function(value){return value===undefined?jQuery.text(this):this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(value));},null,value,arguments.length);},wrapAll:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i));});} if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0]);} wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild;} return elem;}).append(this);} return this;},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i));});} return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function(html){var isFunction=jQuery.isFunction(html);return this.each(function(i){jQuery(this).wrapAll(isFunction?html.call(this,i):html);});},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes);}}).end();},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1||this.nodeType===11){this.appendChild(elem);}});},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1||this.nodeType===11){this.insertBefore(elem,this.firstChild);}});},before:function(){if(!isDisconnected(this[0])){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);});} if(arguments.length){var set=jQuery.clean(arguments);return this.pushStack(jQuery.merge(set,this),"before",this.selector);}},after:function(){if(!isDisconnected(this[0])){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});} if(arguments.length){var set=jQuery.clean(arguments);return this.pushStack(jQuery.merge(this,set),"after",this.selector);}},remove:function(selector,keepData){var elem,i=0;for(;(elem=this[i])!=null;i++){if(!selector||jQuery.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));jQuery.cleanData([elem]);} if(elem.parentNode){elem.parentNode.removeChild(elem);}}} return this;},empty:function(){var elem,i=0;for(;(elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));} while(elem.firstChild){elem.removeChild(elem.firstChild);}} return this;},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents);});},html:function(value){return jQuery.access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined){return elem.nodeType===1?elem.innerHTML.replace(rinlinejQuery,""):undefined;} if(typeof value==="string"&&!rnoInnerhtml.test(value)&&(jQuery.support.htmlSerialize||!rnoshimcache.test(value))&&(jQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1>");try{for(;i1&&typeof value==="string"&&rchecked.test(value)){return this.each(function(){jQuery(this).domManip(args,table,callback);});} if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);args[0]=value.call(this,i,table?self.html():undefined);self.domManip(args,table,callback);});} if(this[0]){results=jQuery.buildFragment(args,this,scripts);fragment=results.fragment;first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first;} if(first){table=table&&jQuery.nodeName(first,"tr");for(iNoClone=results.cacheable||l-1;i0?this.clone(true):this).get();jQuery(insert[i])[original](elems);ret=ret.concat(elems);} return this.pushStack(ret,name,insert.selector);}};});function getAll(elem){if(typeof elem.getElementsByTagName!=="undefined"){return elem.getElementsByTagName("*");}else if(typeof elem.querySelectorAll!=="undefined"){return elem.querySelectorAll("*");}else{return[];}} function fixDefaultChecked(elem){if(rcheckableType.test(elem.type)){elem.defaultChecked=elem.checked;}} jQuery.extend({clone:function(elem,dataAndEvents,deepDataAndEvents){var srcElements,destElements,i,clone;if(jQuery.support.html5Clone||jQuery.isXMLDoc(elem)||!rnoshimcache.test("<"+elem.nodeName+">")){clone=elem.cloneNode(true);}else{fragmentDiv.innerHTML=elem.outerHTML;fragmentDiv.removeChild(clone=fragmentDiv.firstChild);} if((!jQuery.support.noCloneEvent||!jQuery.support.noCloneChecked)&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){cloneFixAttributes(elem,clone);srcElements=getAll(elem);destElements=getAll(clone);for(i=0;srcElements[i];++i){if(destElements[i]){cloneFixAttributes(srcElements[i],destElements[i]);}}} if(dataAndEvents){cloneCopyEvent(elem,clone);if(deepDataAndEvents){srcElements=getAll(elem);destElements=getAll(clone);for(i=0;srcElements[i];++i){cloneCopyEvent(srcElements[i],destElements[i]);}}} srcElements=destElements=null;return clone;},clean:function(elems,context,fragment,scripts){var i,j,elem,tag,wrap,depth,div,hasBody,tbody,len,handleScript,jsTags,safe=context===document&&safeFragment,ret=[];if(!context||typeof context.createDocumentFragment==="undefined"){context=document;} for(i=0;(elem=elems[i])!=null;i++){if(typeof elem==="number"){elem+="";} if(!elem){continue;} if(typeof elem==="string"){if(!rhtml.test(elem)){elem=context.createTextNode(elem);}else{safe=safe||createSafeFragment(context);div=context.createElement("div");safe.appendChild(div);elem=elem.replace(rxhtmlTag,"<$1>");tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;depth=wrap[0];div.innerHTML=wrap[1]+elem+wrap[2];while(depth--){div=div.lastChild;} if(!jQuery.support.tbody){hasBody=rtbody.test(elem);tbody=tag==="table"&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]===""&&!hasBody?div.childNodes:[];for(j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j]);}}} if(!jQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild);} elem=div.childNodes;div.parentNode.removeChild(div);}} if(elem.nodeType){ret.push(elem);}else{jQuery.merge(ret,elem);}} if(div){elem=div=safe=null;} if(!jQuery.support.appendChecked){for(i=0;(elem=ret[i])!=null;i++){if(jQuery.nodeName(elem,"input")){fixDefaultChecked(elem);}else if(typeof elem.getElementsByTagName!=="undefined"){jQuery.grep(elem.getElementsByTagName("input"),fixDefaultChecked);}}} if(fragment){handleScript=function(elem){if(!elem.type||rscriptType.test(elem.type)){return scripts?scripts.push(elem.parentNode?elem.parentNode.removeChild(elem):elem):fragment.appendChild(elem);}};for(i=0;(elem=ret[i])!=null;i++){if(!(jQuery.nodeName(elem,"script")&&handleScript(elem))){fragment.appendChild(elem);if(typeof elem.getElementsByTagName!=="undefined"){jsTags=jQuery.grep(jQuery.merge([],elem.getElementsByTagName("script")),handleScript);ret.splice.apply(ret,[i+1,0].concat(jsTags));i+=jsTags.length;}}}} return ret;},cleanData:function(elems,acceptData){var data,id,elem,type,i=0,internalKey=jQuery.expando,cache=jQuery.cache,deleteExpando=jQuery.support.deleteExpando,special=jQuery.event.special;for(;(elem=elems[i])!=null;i++){if(acceptData||jQuery.acceptData(elem)){id=elem[internalKey];data=id&&cache[id];if(data){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type);}else{jQuery.removeEvent(elem,type,data.handle);}}} if(cache[id]){delete cache[id];if(deleteExpando){delete elem[internalKey];}else if(elem.removeAttribute){elem.removeAttribute(internalKey);}else{elem[internalKey]=null;} jQuery.deletedIds.push(id);}}}}}});(function(){var matched,browser;jQuery.uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"};};matched=jQuery.uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=true;browser.version=matched.version;} if(browser.chrome){browser.webkit=true;}else if(browser.webkit){browser.safari=true;} jQuery.browser=browser;jQuery.sub=function(){function jQuerySub(selector,context){return new jQuerySub.fn.init(selector,context);} jQuery.extend(true,jQuerySub,this);jQuerySub.superclass=this;jQuerySub.fn=jQuerySub.prototype=this();jQuerySub.fn.constructor=jQuerySub;jQuerySub.sub=this.sub;jQuerySub.fn.init=function init(selector,context){if(context&&context instanceof jQuery&&!(context instanceof jQuerySub)){context=jQuerySub(context);} return jQuery.fn.init.call(this,selector,context,rootjQuerySub);};jQuerySub.fn.init.prototype=jQuerySub.fn;var rootjQuerySub=jQuerySub(document);return jQuerySub;};})();var curCSS,iframe,iframeDoc,ralpha=/alpha\([^)]*\)/i,ropacity=/opacity=([^)]*)/,rposition=/^(top|right|bottom|left)$/,rdisplayswap=/^(none|table(?!-c[ea]).+)/,rmargin=/^margin/,rnumsplit=new RegExp("^("+core_pnum+")(.*)$","i"),rnumnonpx=new RegExp("^("+core_pnum+")(?!px)[a-z%]+$","i"),rrelNum=new RegExp("^([-+])=("+core_pnum+")","i"),elemdisplay={BODY:"block"},cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:0,fontWeight:400},cssExpand=["Top","Right","Bottom","Left"],cssPrefixes=["Webkit","O","Moz","ms"],eventsToggle=jQuery.fn.toggle;function vendorPropName(style,name){if(name in style){return name;} var capName=name.charAt(0).toUpperCase()+name.slice(1),origName=name,i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in style){return name;}} return origName;} function isHidden(elem,el){elem=el||elem;return jQuery.css(elem,"display")==="none"||!jQuery.contains(elem.ownerDocument,elem);} function showHide(elements,show){var elem,display,values=[],index=0,length=elements.length;for(;index1);},show:function(){return showHide(this,true);},hide:function(){return showHide(this);},toggle:function(state,fn2){var bool=typeof state==="boolean";if(jQuery.isFunction(state)&&jQuery.isFunction(fn2)){return eventsToggle.apply(this,arguments);} return this.each(function(){if(bool?state:isHidden(this)){jQuery(this).show();}else{jQuery(this).hide();}});}});jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity");return ret===""?"1":ret;}}}},cssNumber:{"fillOpacity":true,"fontWeight":true,"lineHeight":true,"opacity":true,"orphans":true,"widows":true,"zIndex":true,"zoom":true},cssProps:{"float":jQuery.support.cssFloat?"cssFloat":"styleFloat"},style:function(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return;} var ret,type,hooks,origName=jQuery.camelCase(name),style=elem.style;name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(style,origName));hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(value!==undefined){type=typeof value;if(type==="string"&&(ret=rrelNum.exec(value))){value=(ret[1]+1)*ret[2]+parseFloat(jQuery.css(elem,name));type="number";} if(value==null||type==="number"&&isNaN(value)){return;} if(type==="number"&&!jQuery.cssNumber[origName]){value+="px";} if(!hooks||!("set"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){try{style[name]=value;}catch(e){}}}else{if(hooks&&"get"in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret;} return style[name];}},css:function(elem,name,numeric,extra){var val,num,hooks,origName=jQuery.camelCase(name);name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(elem.style,origName));hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(hooks&&"get"in hooks){val=hooks.get(elem,true,extra);} if(val===undefined){val=curCSS(elem,name);} if(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name];} if(numeric||extra!==undefined){num=parseFloat(val);return numeric||jQuery.isNumeric(num)?num||0:val;} return val;},swap:function(elem,options,callback){var ret,name,old={};for(name in options){old[name]=elem.style[name];elem.style[name]=options[name];} ret=callback.call(elem);for(name in options){elem.style[name]=old[name];} return ret;}});if(window.getComputedStyle){curCSS=function(elem,name){var ret,width,minWidth,maxWidth,computed=window.getComputedStyle(elem,null),style=elem.style;if(computed){ret=computed.getPropertyValue(name)||computed[name];if(ret===""&&!jQuery.contains(elem.ownerDocument,elem)){ret=jQuery.style(elem,name);} if(rnumnonpx.test(ret)&&rmargin.test(name)){width=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth;style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;style.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth;}} return ret;};}else if(document.documentElement.currentStyle){curCSS=function(elem,name){var left,rsLeft,ret=elem.currentStyle&&elem.currentStyle[name],style=elem.style;if(ret==null&&style&&style[name]){ret=style[name];} if(rnumnonpx.test(ret)&&!rposition.test(name)){left=style.left;rsLeft=elem.runtimeStyle&&elem.runtimeStyle.left;if(rsLeft){elem.runtimeStyle.left=elem.currentStyle.left;} style.left=name==="fontSize"?"1em":ret;ret=style.pixelLeft+"px";style.left=left;if(rsLeft){elem.runtimeStyle.left=rsLeft;}} return ret===""?"auto":ret;};} function setPositiveNumber(elem,value,subtract){var matches=rnumsplit.exec(value);return matches?Math.max(0,matches[1]-(subtract||0))+(matches[2]||"px"):value;} function augmentWidthOrHeight(elem,name,extra,isBorderBox){var i=extra===(isBorderBox?"border":"content")?4:name==="width"?1:0,val=0;for(;i<4;i+=2){if(extra==="margin"){val+=jQuery.css(elem,extra+cssExpand[i],true);} if(isBorderBox){if(extra==="content"){val-=parseFloat(curCSS(elem,"padding"+cssExpand[i]))||0;} if(extra!=="margin"){val-=parseFloat(curCSS(elem,"border"+cssExpand[i]+"Width"))||0;}}else{val+=parseFloat(curCSS(elem,"padding"+cssExpand[i]))||0;if(extra!=="padding"){val+=parseFloat(curCSS(elem,"border"+cssExpand[i]+"Width"))||0;}}} return val;} function getWidthOrHeight(elem,name,extra){var val=name==="width"?elem.offsetWidth:elem.offsetHeight,valueIsBorderBox=true,isBorderBox=jQuery.support.boxSizing&&jQuery.css(elem,"boxSizing")==="border-box";if(val<=0||val==null){val=curCSS(elem,name);if(val<0||val==null){val=elem.style[name];} if(rnumnonpx.test(val)){return val;} valueIsBorderBox=isBorderBox&&(jQuery.support.boxSizingReliable||val===elem.style[name]);val=parseFloat(val)||0;} return(val+ augmentWidthOrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox))+"px";} function css_defaultDisplay(nodeName){if(elemdisplay[nodeName]){return elemdisplay[nodeName];} var elem=jQuery("<"+nodeName+">").appendTo(document.body),display=elem.css("display");elem.remove();if(display==="none"||display===""){iframe=document.body.appendChild(iframe||jQuery.extend(document.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!iframeDoc||!iframe.createElement){iframeDoc=(iframe.contentWindow||iframe.contentDocument).document;iframeDoc.write("");iframeDoc.close();} elem=iframeDoc.body.appendChild(iframeDoc.createElement(nodeName));display=curCSS(elem,"display");document.body.removeChild(iframe);} elemdisplay[nodeName]=display;return display;} jQuery.each(["height","width"],function(i,name){jQuery.cssHooks[name]={get:function(elem,computed,extra){if(computed){if(elem.offsetWidth===0&&rdisplayswap.test(curCSS(elem,"display"))){return jQuery.swap(elem,cssShow,function(){return getWidthOrHeight(elem,name,extra);});}else{return getWidthOrHeight(elem,name,extra);}}},set:function(elem,value,extra){return setPositiveNumber(elem,value,extra?augmentWidthOrHeight(elem,name,extra,jQuery.support.boxSizing&&jQuery.css(elem,"boxSizing")==="border-box"):0);}};});if(!jQuery.support.opacity){jQuery.cssHooks.opacity={get:function(elem,computed){return ropacity.test((computed&&elem.currentStyle?elem.currentStyle.filter:elem.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":computed?"1":"";},set:function(elem,value){var style=elem.style,currentStyle=elem.currentStyle,opacity=jQuery.isNumeric(value)?"alpha(opacity="+value*100+")":"",filter=currentStyle&¤tStyle.filter||style.filter||"";style.zoom=1;if(value>=1&&jQuery.trim(filter.replace(ralpha,""))===""&&style.removeAttribute){style.removeAttribute("filter");if(currentStyle&&!currentStyle.filter){return;}} style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):filter+" "+opacity;}};} jQuery(function(){if(!jQuery.support.reliableMarginRight){jQuery.cssHooks.marginRight={get:function(elem,computed){return jQuery.swap(elem,{"display":"inline-block"},function(){if(computed){return curCSS(elem,"marginRight");}});}};} if(!jQuery.support.pixelPosition&&jQuery.fn.position){jQuery.each(["top","left"],function(i,prop){jQuery.cssHooks[prop]={get:function(elem,computed){if(computed){var ret=curCSS(elem,prop);return rnumnonpx.test(ret)?jQuery(elem).position()[prop]+"px":ret;}}};});}});if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.hidden=function(elem){return(elem.offsetWidth===0&&elem.offsetHeight===0)||(!jQuery.support.reliableHiddenOffsets&&((elem.style&&elem.style.display)||curCSS(elem,"display"))==="none");};jQuery.expr.filters.visible=function(elem){return!jQuery.expr.filters.hidden(elem);};} jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){var i,parts=typeof value==="string"?value.split(" "):[value],expanded={};for(i=0;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];} return expanded;}};if(!rmargin.test(prefix)){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;}});var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rinput=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,rselectTextarea=/^(?:select|textarea)/i;jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val.replace(rCRLF,"\r\n")};}):{name:elem.name,value:val.replace(rCRLF,"\r\n")};}).get();}});jQuery.param=function(a,traditional){var prefix,s=[],add=function(key,value){value=jQuery.isFunction(value)?value():(value==null?"":value);s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);};if(traditional===undefined){traditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional;} if(jQuery.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){jQuery.each(a,function(){add(this.name,this.value);});}else{for(prefix in a){buildParams(prefix,a[prefix],traditional,add);}} return s.join("&").replace(r20,"+");};function buildParams(prefix,obj,traditional,add){var name;if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"?i:"")+"]",v,traditional,add);}});}else if(!traditional&&jQuery.type(obj)==="object"){for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add);}}else{add(prefix,obj);}} var ajaxLocParts,ajaxLocation,rhash=/#.*$/,rheaders=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,rlocalProtocol=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rquery=/\?/,rscript=/)<[^<]*)*<\/script>/gi,rts=/([?&])_=[^&]*/,rurl=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,_load=jQuery.fn.load,prefilters={},transports={},allTypes=["*/"]+["*"];try{ajaxLocation=location.href;}catch(e){ajaxLocation=document.createElement("a");ajaxLocation.href="";ajaxLocation=ajaxLocation.href;} ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*";} var dataType,list,placeBefore,dataTypes=dataTypeExpression.toLowerCase().split(core_rspace),i=0,length=dataTypes.length;if(jQuery.isFunction(func)){for(;i=0){selector=url.slice(off,url.length);url=url.slice(0,off);} if(jQuery.isFunction(params)){callback=params;params=undefined;}else if(params&&typeof params==="object"){type="POST";} jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(jqXHR,status){if(callback){self.each(callback,response||[jqXHR.responseText,status,jqXHR]);}}}).done(function(responseText){response=arguments;self.html(selector?jQuery("
").append(responseText.replace(rscript,"")).find(selector):responseText);});return this;};jQuery.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){jQuery.fn[o]=function(f){return this.on(o,f);};});jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data=undefined;} return jQuery.ajax({type:method,url:url,data:data,success:callback,dataType:type});};});jQuery.extend({getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},ajaxSetup:function(target,settings){if(settings){ajaxExtend(target,jQuery.ajaxSettings);}else{settings=target;target=jQuery.ajaxSettings;} ajaxExtend(target,settings);return target;},ajaxSettings:{url:ajaxLocation,isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":allTypes},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":true,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url==="object"){options=url;url=undefined;} options=options||{};var ifModifiedKey,responseHeadersString,responseHeaders,transport,timeoutTimer,parts,fireGlobals,i,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=callbackContext!==s&&(callbackContext.nodeType||callbackContext instanceof jQuery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},state=0,strAbort="canceled",jqXHR={readyState:0,setRequestHeader:function(name,value){if(!state){var lname=name.toLowerCase();name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;requestHeaders[name]=value;} return this;},getAllResponseHeaders:function(){return state===2?responseHeadersString:null;},getResponseHeader:function(key){var match;if(state===2){if(!responseHeaders){responseHeaders={};while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase()]=match[2];}} match=responseHeaders[key.toLowerCase()];} return match===undefined?null:match;},overrideMimeType:function(type){if(!state){s.mimeType=type;} return this;},abort:function(statusText){statusText=statusText||strAbort;if(transport){transport.abort(statusText);} done(0,statusText);return this;}};function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;if(state===2){return;} state=2;if(timeoutTimer){clearTimeout(timeoutTimer);} transport=undefined;responseHeadersString=headers||"";jqXHR.readyState=status>0?4:0;if(responses){response=ajaxHandleResponses(s,jqXHR,responses);} if(status>=200&&status<300||status===304){if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){jQuery.lastModified[ifModifiedKey]=modified;} modified=jqXHR.getResponseHeader("Etag");if(modified){jQuery.etag[ifModifiedKey]=modified;}} if(status===304){statusText="notmodified";isSuccess=true;}else{isSuccess=ajaxConvert(s,response);statusText=isSuccess.state;success=isSuccess.data;error=isSuccess.error;isSuccess=!error;}}else{error=statusText;if(!statusText||status){statusText="error";if(status<0){status=0;}}} jqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);} jqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlobals){globalEventContext.trigger("ajax"+(isSuccess?"Success":"Error"),[jqXHR,s,isSuccess?success:error]);} completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);if(!(--jQuery.active)){jQuery.event.trigger("ajaxStop");}}} deferred.promise(jqXHR);jqXHR.success=jqXHR.done;jqXHR.error=jqXHR.fail;jqXHR.complete=completeDeferred.add;jqXHR.statusCode=function(map){if(map){var tmp;if(state<2){for(tmp in map){statusCode[tmp]=[statusCode[tmp],map[tmp]];}}else{tmp=map[jqXHR.status];jqXHR.always(tmp);}} return this;};s.url=((url||s.url)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//");s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().split(core_rspace);if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());s.crossDomain=!!(parts&&(parts[1]!==ajaxLocParts[1]||parts[2]!==ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?80:443))!=(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?80:443))));} if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional);} inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);if(state===2){return jqXHR;} fireGlobals=s.global;s.type=s.type.toUpperCase();s.hasContent=!rnoContent.test(s.type);if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart");} if(!s.hasContent){if(s.data){s.url+=(rquery.test(s.url)?"&":"?")+s.data;delete s.data;} ifModifiedKey=s.url;if(s.cache===false){var ts=jQuery.now(),ret=s.url.replace(rts,"$1_="+ts);s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"");}} if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType);} if(s.ifModified){ifModifiedKey=ifModifiedKey||s.url;if(jQuery.lastModified[ifModifiedKey]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[ifModifiedKey]);} if(jQuery.etag[ifModifiedKey]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[ifModifiedKey]);}} jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i]);} if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||state===2)){return jqXHR.abort();} strAbort="abort";for(i in{success:1,error:1,complete:1}){jqXHR[i](s[i]);} transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);if(!transport){done(-1,"No Transport");}else{jqXHR.readyState=1;if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s]);} if(s.async&&s.timeout>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout");},s.timeout);} try{state=1;transport.send(requestHeaders,done);}catch(e){if(state<2){done(-1,e);}else{throw e;}}} return jqXHR;},active:0,lastModified:{},etag:{}});function ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes,responseFields=s.responseFields;for(type in responseFields){if(type in responses){jqXHR[responseFields[type]]=responses[type];}} while(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("content-type");}} if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break;}}} if(dataTypes[0]in responses){finalDataType=dataTypes[0];}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break;} if(!firstDataType){firstDataType=type;}} finalDataType=finalDataType||firstDataType;} if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType);} return responses[finalDataType];}} function ajaxConvert(s,response){var conv,conv2,current,tmp,dataTypes=s.dataTypes.slice(),prev=dataTypes[0],converters={},i=0;if(s.dataFilter){response=s.dataFilter(response,s.dataType);} if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv];}} for(;(current=dataTypes[++i]);){if(current!=="*"){if(prev!=="*"&&prev!==current){conv=converters[prev+" "+current]||converters["* "+current];if(!conv){for(conv2 in converters){tmp=conv2.split(" ");if(tmp[1]===current){conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){if(conv===true){conv=converters[conv2];}else if(converters[conv2]!==true){current=tmp[0];dataTypes.splice(i--,0,current);} break;}}}} if(conv!==true){if(conv&&s["throws"]){response=conv(response);}else{try{response=conv(response);}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current};}}}} prev=current;}} return{state:"success",data:response};} var oldCallbacks=[],rquestion=/\?/,rjsonp=/(=)\?(?=&|$)|\?\?/,nonce=jQuery.now();jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce++));this[callback]=true;return callback;}});jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,data=s.data,url=s.url,hasCallback=s.jsonp!==false,replaceInUrl=hasCallback&&rjsonp.test(url),replaceInData=hasCallback&&!replaceInUrl&&typeof data==="string"&&!(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(data);if(s.dataTypes[0]==="jsonp"||replaceInUrl||replaceInData){callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;overwritten=window[callbackName];if(replaceInUrl){s.url=url.replace(rjsonp,"$1"+callbackName);}else if(replaceInData){s.data=data.replace(rjsonp,"$1"+callbackName);}else if(hasCallback){s.url+=(rquestion.test(url)?"&":"?")+s.jsonp+"="+callbackName;} s.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called");} return responseContainer[0];};s.dataTypes[0]="json";window[callbackName]=function(){responseContainer=arguments;};jqXHR.always(function(){window[callbackName]=overwritten;if(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push(callbackName);} if(responseContainer&&jQuery.isFunction(overwritten)){overwritten(responseContainer[0]);} responseContainer=overwritten=undefined;});return"script";}});jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(text){jQuery.globalEval(text);return text;}}});jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false;} if(s.crossDomain){s.type="GET";s.global=false;}});jQuery.ajaxTransport("script",function(s){if(s.crossDomain){var script,head=document.head||document.getElementsByTagName("head")[0]||document.documentElement;return{send:function(_,callback){script=document.createElement("script");script.async="async";if(s.scriptCharset){script.charset=s.scriptCharset;} script.src=s.url;script.onload=script.onreadystatechange=function(_,isAbort){if(isAbort||!script.readyState||/loaded|complete/.test(script.readyState)){script.onload=script.onreadystatechange=null;if(head&&script.parentNode){head.removeChild(script);} script=undefined;if(!isAbort){callback(200,"success");}}};head.insertBefore(script,head.firstChild);},abort:function(){if(script){script.onload(0,1);}}};}});var xhrCallbacks,xhrOnUnloadAbort=window.ActiveXObject?function(){for(var key in xhrCallbacks){xhrCallbacks[key](0,1);}}:false,xhrId=0;function createStandardXHR(){try{return new window.XMLHttpRequest();}catch(e){}} function createActiveXHR(){try{return new window.ActiveXObject("Microsoft.XMLHTTP");}catch(e){}} jQuery.ajaxSettings.xhr=window.ActiveXObject?function(){return!this.isLocal&&createStandardXHR()||createActiveXHR();}:createStandardXHR;(function(xhr){jQuery.extend(jQuery.support,{ajax:!!xhr,cors:!!xhr&&("withCredentials"in xhr)});})(jQuery.ajaxSettings.xhr());if(jQuery.support.ajax){jQuery.ajaxTransport(function(s){if(!s.crossDomain||jQuery.support.cors){var callback;return{send:function(headers,complete){var handle,i,xhr=s.xhr();if(s.username){xhr.open(s.type,s.url,s.async,s.username,s.password);}else{xhr.open(s.type,s.url,s.async);} if(s.xhrFields){for(i in s.xhrFields){xhr[i]=s.xhrFields[i];}} if(s.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(s.mimeType);} if(!s.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest";} try{for(i in headers){xhr.setRequestHeader(i,headers[i]);}}catch(_){} xhr.send((s.hasContent&&s.data)||null);callback=function(_,isAbort){var status,statusText,responseHeaders,responses,xml;try{if(callback&&(isAbort||xhr.readyState===4)){callback=undefined;if(handle){xhr.onreadystatechange=jQuery.noop;if(xhrOnUnloadAbort){delete xhrCallbacks[handle];}} if(isAbort){if(xhr.readyState!==4){xhr.abort();}}else{status=xhr.status;responseHeaders=xhr.getAllResponseHeaders();responses={};xml=xhr.responseXML;if(xml&&xml.documentElement){responses.xml=xml;} try{responses.text=xhr.responseText;}catch(e){} try{statusText=xhr.statusText;}catch(e){statusText="";} if(!status&&s.isLocal&&!s.crossDomain){status=responses.text?200:404;}else if(status===1223){status=204;}}}}catch(firefoxAccessException){if(!isAbort){complete(-1,firefoxAccessException);}} if(responses){complete(status,statusText,responses,responseHeaders);}};if(!s.async){callback();}else if(xhr.readyState===4){setTimeout(callback,0);}else{handle=++xhrId;if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};jQuery(window).unload(xhrOnUnloadAbort);} xhrCallbacks[handle]=callback;} xhr.onreadystatechange=callback;}},abort:function(){if(callback){callback(0,1);}}};}});} var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([-+])=|)("+core_pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaultPrefilter],tweeners={"*":[function(prop,value){var end,unit,tween=this.createTween(prop,value),parts=rfxnum.exec(value),target=tween.cur(),start=+target||0,scale=1,maxIterations=20;if(parts){end=+parts[2];unit=parts[3]||(jQuery.cssNumber[prop]?"":"px");if(unit!=="px"&&start){start=jQuery.css(tween.elem,prop,true)||end||1;do{scale=scale||".5";start=start/scale;jQuery.style(tween.elem,prop,start+unit);}while(scale!==(scale=tween.cur()/target)&&scale!==1&&--maxIterations);} tween.unit=unit;tween.start=start;tween.end=parts[1]?start+(parts[1]+1)*end:end;} return tween;}]};function createFxNow(){setTimeout(function(){fxNow=undefined;},0);return(fxNow=jQuery.now());} function createTweens(animation,props){jQuery.each(props,function(prop,value){var collection=(tweeners[prop]||[]).concat(tweeners["*"]),index=0,length=collection.length;for(;index-1,props={},curPosition={},curTop,curLeft;if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left;}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0;} if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset);} if(options.top!=null){props.top=(options.top-curOffset.top)+curTop;} if(options.left!=null){props.left=(options.left-curOffset.left)+curLeft;} if("using"in options){options.using.call(elem,props);}else{curElem.css(props);}}};jQuery.fn.extend({position:function(){if(!this[0]){return;} var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=rroot.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(jQuery.css(elem,"marginTop"))||0;offset.left-=parseFloat(jQuery.css(elem,"marginLeft"))||0;parentOffset.top+=parseFloat(jQuery.css(offsetParent[0],"borderTopWidth"))||0;parentOffset.left+=parseFloat(jQuery.css(offsetParent[0],"borderLeftWidth"))||0;return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||document.body;while(offsetParent&&(!rroot.test(offsetParent.nodeName)&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent;} return offsetParent||document.body;});}});jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top=/Y/.test(prop);jQuery.fn[method]=function(val){return jQuery.access(this,function(elem,method,val){var win=getWindow(elem);if(val===undefined){return win?(prop in win)?win[prop]:win.document.documentElement[method]:elem[method];} if(win){win.scrollTo(!top?val:jQuery(win).scrollLeft(),top?val:jQuery(win).scrollTop());}else{elem[method]=val;}},method,val,arguments.length,null);};});function getWindow(elem){return jQuery.isWindow(elem)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false;} jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");return jQuery.access(this,function(elem,type,value){var doc;if(jQuery.isWindow(elem)){return elem.document.documentElement["client"+name];} if(elem.nodeType===9){doc=elem.documentElement;return Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name]);} return value===undefined?jQuery.css(elem,type,value,extra):jQuery.style(elem,type,value,extra);},type,chainable?margin:undefined,chainable,null);};});});window.jQuery=window.$=jQuery;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return jQuery;});}})(window);$.noConflict();(function(undefined){var moment,VERSION="2.0.0",round=Math.round,i,languages={},hasModule=(typeof module!=='undefined'&&module.exports),aspNetJsonRegex=/^\/?Date\((\-?\d+)/i,formattingTokens=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,parseMultipleFormatChunker=/([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi,parseTokenOneOrTwoDigits=/\d\d?/,parseTokenOneToThreeDigits=/\d{1,3}/,parseTokenThreeDigits=/\d{3}/,parseTokenFourDigits=/\d{1,4}/,parseTokenSixDigits=/[+\-]?\d{1,6}/,parseTokenWord=/[0-9]*[a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF]+\s*?[\u0600-\u06FF]+/i,parseTokenTimezone=/Z|[\+\-]\d\d:?\d\d/i,parseTokenT=/T/i,parseTokenTimestampMs=/[\+\-]?\d+(\.\d{1,3})?/,isoRegex=/^\s*\d{4}-\d\d-\d\d((T| )(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/,isoFormat='YYYY-MM-DDTHH:mm:ssZ',isoTimes=[['HH:mm:ss.S',/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],['HH:mm:ss',/(T| )\d\d:\d\d:\d\d/],['HH:mm',/(T| )\d\d:\d\d/],['HH',/(T| )\d\d/]],parseTimezoneChunker=/([\+\-]|\d\d)/gi,proxyGettersAndSetters='Month|Date|Hours|Minutes|Seconds|Milliseconds'.split('|'),unitMillisecondFactors={'Milliseconds':1,'Seconds':1e3,'Minutes':6e4,'Hours':36e5,'Days':864e5,'Months':2592e6,'Years':31536e6},formatFunctions={},ordinalizeTokens='DDD w W M D d'.split(' '),paddedTokens='M D H h m s w W'.split(' '),formatTokenFunctions={M:function(){return this.month()+1;},MMM:function(format){return this.lang().monthsShort(this,format);},MMMM:function(format){return this.lang().months(this,format);},D:function(){return this.date();},DDD:function(){return this.dayOfYear();},d:function(){return this.day();},dd:function(format){return this.lang().weekdaysMin(this,format);},ddd:function(format){return this.lang().weekdaysShort(this,format);},dddd:function(format){return this.lang().weekdays(this,format);},w:function(){return this.week();},W:function(){return this.isoWeek();},YY:function(){return leftZeroFill(this.year()%100,2);},YYYY:function(){return leftZeroFill(this.year(),4);},YYYYY:function(){return leftZeroFill(this.year(),5);},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),true);},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),false);},H:function(){return this.hours();},h:function(){return this.hours()%12||12;},m:function(){return this.minutes();},s:function(){return this.seconds();},S:function(){return~~(this.milliseconds()/100);},SS:function(){return leftZeroFill(~~(this.milliseconds()/10),2);},SSS:function(){return leftZeroFill(this.milliseconds(),3);},Z:function(){var a=-this.zone(),b="+";if(a<0){a=-a;b="-";} return b+leftZeroFill(~~(a/60),2)+":"+leftZeroFill(~~a%60,2);},ZZ:function(){var a=-this.zone(),b="+";if(a<0){a=-a;b="-";} return b+leftZeroFill(~~(10*a/6),4);},X:function(){return this.unix();}};function padToken(func,count){return function(a){return leftZeroFill(func.call(this,a),count);};} function ordinalizeToken(func){return function(a){return this.lang().ordinal(func.call(this,a));};} while(ordinalizeTokens.length){i=ordinalizeTokens.pop();formatTokenFunctions[i+'o']=ordinalizeToken(formatTokenFunctions[i]);} while(paddedTokens.length){i=paddedTokens.pop();formatTokenFunctions[i+i]=padToken(formatTokenFunctions[i],2);} formatTokenFunctions.DDDD=padToken(formatTokenFunctions.DDD,3);function Language(){} function Moment(config){extend(this,config);} function Duration(duration){var data=this._data={},years=duration.years||duration.year||duration.y||0,months=duration.months||duration.month||duration.M||0,weeks=duration.weeks||duration.week||duration.w||0,days=duration.days||duration.day||duration.d||0,hours=duration.hours||duration.hour||duration.h||0,minutes=duration.minutes||duration.minute||duration.m||0,seconds=duration.seconds||duration.second||duration.s||0,milliseconds=duration.milliseconds||duration.millisecond||duration.ms||0;this._milliseconds=milliseconds+ seconds*1e3+ minutes*6e4+ hours*36e5;this._days=days+ weeks*7;this._months=months+ years*12;data.milliseconds=milliseconds%1000;seconds+=absRound(milliseconds/1000);data.seconds=seconds%60;minutes+=absRound(seconds/60);data.minutes=minutes%60;hours+=absRound(minutes/60);data.hours=hours%24;days+=absRound(hours/24);days+=weeks*7;data.days=days%30;months+=absRound(days/30);data.months=months%12;years+=absRound(months/12);data.years=years;} function extend(a,b){for(var i in b){if(b.hasOwnProperty(i)){a[i]=b[i];}} return a;} function absRound(number){if(number<0){return Math.ceil(number);}else{return Math.floor(number);}} function leftZeroFill(number,targetLength){var output=number+'';while(output.length11){return isLower?'pm':'PM';}else{return isLower?'am':'AM';}},_calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[last] dddd [at] LT',sameElse:'L'},calendar:function(key,mom){var output=this._calendar[key];return typeof output==='function'?output.apply(mom):output;},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return(typeof output==='function')?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number);},pastFuture:function(diff,output){var format=this._relativeTime[diff>0?'future':'past'];return typeof format==='function'?format(output):format.replace(/%s/i,output);},ordinal:function(number){return this._ordinal.replace("%d",number);},_ordinal:"%d",preparse:function(string){return string;},postformat:function(string){return string;},week:function(mom){return weekOfYear(mom,this._week.dow,this._week.doy);},_week:{dow:0,doy:6}};function loadLang(key,values){values.abbr=key;if(!languages[key]){languages[key]=new Language();} languages[key].set(values);return languages[key];} function getLangDefinition(key){if(!key){return moment.fn._lang;} if(!languages[key]&&hasModule){require('./lang/'+key);} return languages[key];} function removeFormattingTokens(input){if(input.match(/\[.*\]/)){return input.replace(/^\[|\]$/g,"");} return input.replace(/\\/g,"");} function makeFormatFunction(format){var array=format.match(formattingTokens),i,length;for(i=0,length=array.length;i68?1900:2000);break;case'YYYY':case'YYYYY':datePartArray[0]=~~input;break;case'a':case'A':config._isPm=((input+'').toLowerCase()==='pm');break;case'H':case'HH':case'h':case'hh':datePartArray[3]=~~input;break;case'm':case'mm':datePartArray[4]=~~input;break;case's':case'ss':datePartArray[5]=~~input;break;case'S':case'SS':case'SSS':datePartArray[6]=~~(('0.'+input)*1000);break;case'X':config._d=new Date(parseFloat(input)*1000);break;case'Z':case'ZZ':config._useUTC=true;a=(input+'').match(parseTimezoneChunker);if(a&&a[1]){config._tzh=~~a[1];} if(a&&a[2]){config._tzm=~~a[2];} if(a&&a[0]==='+'){config._tzh=-config._tzh;config._tzm=-config._tzm;} break;} if(input==null){config._isValid=false;}} function dateFromArray(config){var i,date,input=[];if(config._d){return;} for(i=0;i<7;i++){config._a[i]=input[i]=(config._a[i]==null)?(i===2?1:0):config._a[i];} input[3]+=config._tzh||0;input[4]+=config._tzm||0;date=new Date(0);if(config._useUTC){date.setUTCFullYear(input[0],input[1],input[2]);date.setUTCHours(input[3],input[4],input[5],input[6]);}else{date.setFullYear(input[0],input[1],input[2]);date.setHours(input[3],input[4],input[5],input[6]);} config._d=date;} function makeDateFromStringAndFormat(config){var tokens=config._f.match(formattingTokens),string=config._i,i,parsedInput;config._a=[];for(i=0;i0;args[4]=lang;return substituteTimeAgo.apply({},args);} function weekOfYear(mom,firstDayOfWeek,firstDayOfWeekOfYear){var end=firstDayOfWeekOfYear-firstDayOfWeek,daysToDayOfWeek=firstDayOfWeekOfYear-mom.day();if(daysToDayOfWeek>end){daysToDayOfWeek-=7;} if(daysToDayOfWeek+moment(input).startOf(units);},isBefore:function(input,units){units=typeof units!=='undefined'?units:'millisecond';return+this.clone().startOf(units)<+moment(input).startOf(units);},isSame:function(input,units){units=typeof units!=='undefined'?units:'millisecond';return+this.clone().startOf(units)===+moment(input).startOf(units);},zone:function(){return this._isUTC?0:this._d.getTimezoneOffset();},daysInMonth:function(){return moment.utc([this.year(),this.month()+1,0]).date();},dayOfYear:function(input){var dayOfYear=round((moment(this).startOf('day')-moment(this).startOf('year'))/864e5)+1;return input==null?dayOfYear:this.add("d",(input-dayOfYear));},isoWeek:function(input){var week=weekOfYear(this,1,4);return input==null?week:this.add("d",(input-week)*7);},week:function(input){var week=this.lang().week(this);return input==null?week:this.add("d",(input-week)*7);},lang:function(key){if(key===undefined){return this._lang;}else{this._lang=getLangDefinition(key);return this;}}};function makeGetterAndSetter(name,key){moment.fn[name]=moment.fn[name+'s']=function(input){var utc=this._isUTC?'UTC':'';if(input!=null){this._d['set'+utc+key](input);return this;}else{return this._d['get'+utc+key]();}};} for(i=0;i2;if(obj==null)obj=[];if(nativeReduce&&obj.reduce===nativeReduce){if(context)iterator=_.bind(iterator,context);return initial?obj.reduce(iterator,memo):obj.reduce(iterator);} each(obj,function(value,index,list){if(!initial){memo=value;initial=true;}else{memo=iterator.call(context,memo,value,index,list);}});if(!initial)throw new TypeError(reduceError);return memo;};_.reduceRight=_.foldr=function(obj,iterator,memo,context){var initial=arguments.length>2;if(obj==null)obj=[];if(nativeReduceRight&&obj.reduceRight===nativeReduceRight){if(context)iterator=_.bind(iterator,context);return initial?obj.reduceRight(iterator,memo):obj.reduceRight(iterator);} var length=obj.length;if(length!==+length){var keys=_.keys(obj);length=keys.length;} each(obj,function(value,index,list){index=keys?keys[--length]:--length;if(!initial){memo=obj[index];initial=true;}else{memo=iterator.call(context,memo,obj[index],index,list);}});if(!initial)throw new TypeError(reduceError);return memo;};_.find=_.detect=function(obj,iterator,context){var result;any(obj,function(value,index,list){if(iterator.call(context,value,index,list)){result=value;return true;}});return result;};_.filter=_.select=function(obj,iterator,context){var results=[];if(obj==null)return results;if(nativeFilter&&obj.filter===nativeFilter)return obj.filter(iterator,context);each(obj,function(value,index,list){if(iterator.call(context,value,index,list))results[results.length]=value;});return results;};_.reject=function(obj,iterator,context){return _.filter(obj,function(value,index,list){return!iterator.call(context,value,index,list);},context);};_.every=_.all=function(obj,iterator,context){iterator||(iterator=_.identity);var result=true;if(obj==null)return result;if(nativeEvery&&obj.every===nativeEvery)return obj.every(iterator,context);each(obj,function(value,index,list){if(!(result=result&&iterator.call(context,value,index,list)))return breaker;});return!!result;};var any=_.some=_.any=function(obj,iterator,context){iterator||(iterator=_.identity);var result=false;if(obj==null)return result;if(nativeSome&&obj.some===nativeSome)return obj.some(iterator,context);each(obj,function(value,index,list){if(result||(result=iterator.call(context,value,index,list)))return breaker;});return!!result;};_.contains=_.include=function(obj,target){if(obj==null)return false;if(nativeIndexOf&&obj.indexOf===nativeIndexOf)return obj.indexOf(target)!=-1;return any(obj,function(value){return value===target;});};_.invoke=function(obj,method){var args=slice.call(arguments,2);return _.map(obj,function(value){return(_.isFunction(method)?method:value[method]).apply(value,args);});};_.pluck=function(obj,key){return _.map(obj,function(value){return value[key];});};_.where=function(obj,attrs){if(_.isEmpty(attrs))return[];return _.filter(obj,function(value){for(var key in attrs){if(attrs[key]!==value[key])return false;} return true;});};_.max=function(obj,iterator,context){if(!iterator&&_.isArray(obj)&&obj[0]===+obj[0]&&obj.length<65535){return Math.max.apply(Math,obj);} if(!iterator&&_.isEmpty(obj))return-Infinity;var result={computed:-Infinity,value:-Infinity};each(obj,function(value,index,list){var computed=iterator?iterator.call(context,value,index,list):value;computed>=result.computed&&(result={value:value,computed:computed});});return result.value;};_.min=function(obj,iterator,context){if(!iterator&&_.isArray(obj)&&obj[0]===+obj[0]&&obj.length<65535){return Math.min.apply(Math,obj);} if(!iterator&&_.isEmpty(obj))return Infinity;var result={computed:Infinity,value:Infinity};each(obj,function(value,index,list){var computed=iterator?iterator.call(context,value,index,list):value;computedb||a===void 0)return 1;if(a>>1;iterator.call(context,array[mid])=0;});});};_.difference=function(array){var rest=concat.apply(ArrayProto,slice.call(arguments,1));return _.filter(array,function(value){return!_.contains(rest,value);});};_.zip=function(){var args=slice.call(arguments);var length=_.max(_.pluck(args,'length'));var results=new Array(length);for(var i=0;i=0;i--){args=[funcs[i].apply(this,args)];} return args[0];};};_.after=function(times,func){if(times<=0)return func();return function(){if(--times<1){return func.apply(this,arguments);}};};_.keys=nativeKeys||function(obj){if(obj!==Object(obj))throw new TypeError('Invalid object');var keys=[];for(var key in obj)if(_.has(obj,key))keys[keys.length]=key;return keys;};_.values=function(obj){var values=[];for(var key in obj)if(_.has(obj,key))values.push(obj[key]);return values;};_.pairs=function(obj){var pairs=[];for(var key in obj)if(_.has(obj,key))pairs.push([key,obj[key]]);return pairs;};_.invert=function(obj){var result={};for(var key in obj)if(_.has(obj,key))result[obj[key]]=key;return result;};_.functions=_.methods=function(obj){var names=[];for(var key in obj){if(_.isFunction(obj[key]))names.push(key);} return names.sort();};_.extend=function(obj){each(slice.call(arguments,1),function(source){if(source){for(var prop in source){obj[prop]=source[prop];}}});return obj;};_.pick=function(obj){var copy={};var keys=concat.apply(ArrayProto,slice.call(arguments,1));each(keys,function(key){if(key in obj)copy[key]=obj[key];});return copy;};_.omit=function(obj){var copy={};var keys=concat.apply(ArrayProto,slice.call(arguments,1));for(var key in obj){if(!_.contains(keys,key))copy[key]=obj[key];} return copy;};_.defaults=function(obj){each(slice.call(arguments,1),function(source){if(source){for(var prop in source){if(obj[prop]==null)obj[prop]=source[prop];}}});return obj;};_.clone=function(obj){if(!_.isObject(obj))return obj;return _.isArray(obj)?obj.slice():_.extend({},obj);};_.tap=function(obj,interceptor){interceptor(obj);return obj;};var eq=function(a,b,aStack,bStack){if(a===b)return a!==0||1/a==1/b;if(a==null||b==null)return a===b;if(a instanceof _)a=a._wrapped;if(b instanceof _)b=b._wrapped;var className=toString.call(a);if(className!=toString.call(b))return false;switch(className){case'[object String]':return a==String(b);case'[object Number]':return a!=+a?b!=+b:(a==0?1/a==1/b:a==+b);case'[object Date]':case'[object Boolean]':return+a==+b;case'[object RegExp]':return a.source==b.source&&a.global==b.global&&a.multiline==b.multiline&&a.ignoreCase==b.ignoreCase;} if(typeof a!='object'||typeof b!='object')return false;var length=aStack.length;while(length--){if(aStack[length]==a)return bStack[length]==b;} aStack.push(a);bStack.push(b);var size=0,result=true;if(className=='[object Array]'){size=a.length;result=size==b.length;if(result){while(size--){if(!(result=eq(a[size],b[size],aStack,bStack)))break;}}}else{var aCtor=a.constructor,bCtor=b.constructor;if(aCtor!==bCtor&&!(_.isFunction(aCtor)&&(aCtor instanceof aCtor)&&_.isFunction(bCtor)&&(bCtor instanceof bCtor))){return false;} for(var key in a){if(_.has(a,key)){size++;if(!(result=_.has(b,key)&&eq(a[key],b[key],aStack,bStack)))break;}} if(result){for(key in b){if(_.has(b,key)&&!(size--))break;} result=!size;}} aStack.pop();bStack.pop();return result;};_.isEqual=function(a,b){return eq(a,b,[],[]);};_.isEmpty=function(obj){if(obj==null)return true;if(_.isArray(obj)||_.isString(obj))return obj.length===0;for(var key in obj)if(_.has(obj,key))return false;return true;};_.isElement=function(obj){return!!(obj&&obj.nodeType===1);};_.isArray=nativeIsArray||function(obj){return toString.call(obj)=='[object Array]';};_.isObject=function(obj){return obj===Object(obj);};each(['Arguments','Function','String','Number','Date','RegExp'],function(name){_['is'+name]=function(obj){return toString.call(obj)=='[object '+name+']';};});if(!_.isArguments(arguments)){_.isArguments=function(obj){return!!(obj&&_.has(obj,'callee'));};} if(typeof(/./)!=='function'){_.isFunction=function(obj){return typeof obj==='function';};} _.isFinite=function(obj){return isFinite(obj)&&!isNaN(parseFloat(obj));};_.isNaN=function(obj){return _.isNumber(obj)&&obj!=+obj;};_.isBoolean=function(obj){return obj===true||obj===false||toString.call(obj)=='[object Boolean]';};_.isNull=function(obj){return obj===null;};_.isUndefined=function(obj){return obj===void 0;};_.has=function(obj,key){return hasOwnProperty.call(obj,key);};_.noConflict=function(){root._=previousUnderscore;return this;};_.identity=function(value){return value;};_.times=function(n,iterator,context){var accum=Array(n);for(var i=0;i':'>','"':'"',"'":''','/':'/'}};entityMap.unescape=_.invert(entityMap.escape);var entityRegexes={escape:new RegExp('['+_.keys(entityMap.escape).join('')+']','g'),unescape:new RegExp('('+_.keys(entityMap.unescape).join('|')+')','g')};_.each(['escape','unescape'],function(method){_[method]=function(string){if(string==null)return'';return(''+string).replace(entityRegexes[method],function(match){return entityMap[method][match];});};});_.result=function(object,property){if(object==null)return null;var value=object[property];return _.isFunction(value)?value.call(object):value;};_.mixin=function(obj){each(_.functions(obj),function(name){var func=_[name]=obj[name];_.prototype[name]=function(){var args=[this._wrapped];push.apply(args,arguments);return result.call(this,func.apply(_,args));};});};var idCounter=0;_.uniqueId=function(prefix){var id=++idCounter+"";return prefix?prefix+id:id;};_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var noMatch=/(.)^/;var escapes={"'":"'",'\\':'\\','\r':'r','\n':'n','\t':'t','\u2028':'u2028','\u2029':'u2029'};var escaper=/\\|'|\r|\n|\t|\u2028|\u2029/g;_.template=function(text,data,settings){settings=_.defaults({},settings,_.templateSettings);var matcher=new RegExp([(settings.escape||noMatch).source,(settings.interpolate||noMatch).source,(settings.evaluate||noMatch).source].join('|')+'|$','g');var index=0;var source="__p+='";text.replace(matcher,function(match,escape,interpolate,evaluate,offset){source+=text.slice(index,offset).replace(escaper,function(match){return'\\'+escapes[match];});if(escape){source+="'+\n((__t=("+escape+"))==null?'':_.escape(__t))+\n'";} if(interpolate){source+="'+\n((__t=("+interpolate+"))==null?'':__t)+\n'";} if(evaluate){source+="';\n"+evaluate+"\n__p+='";} index=offset+match.length;return match;});source+="';\n";if(!settings.variable)source='with(obj||{}){\n'+source+'}\n';source="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+ source+"return __p;\n";try{var render=new Function(settings.variable||'obj','_',source);}catch(e){e.source=source;throw e;} if(data)return render(data,_);var template=function(data){return render.call(this,data,_);};template.source='function('+(settings.variable||'obj')+'){\n'+source+'}';return template;};_.chain=function(obj){return _(obj).chain();};var result=function(obj){return this._chain?_(obj).chain():obj;};_.mixin(_);each(['pop','push','reverse','shift','sort','splice','unshift'],function(name){var method=ArrayProto[name];_.prototype[name]=function(){var obj=this._wrapped;method.apply(obj,arguments);if((name=='shift'||name=='splice')&&obj.length===0)delete obj[0];return result.call(this,obj);};});each(['concat','join','slice'],function(name){var method=ArrayProto[name];_.prototype[name]=function(){return result.call(this,method.apply(this._wrapped,arguments));};});_.extend(_.prototype,{chain:function(){this._chain=true;return this;},value:function(){return this._wrapped;}});}).call(this);!function(root,String){'use strict';var nativeTrim=String.prototype.trim;var nativeTrimRight=String.prototype.trimRight;var nativeTrimLeft=String.prototype.trimLeft;var parseNumber=function(source){return source*1||0;};var strRepeat=function(str,qty){if(qty<1)return'';var result='';while(qty>0){if(qty&1)result+=str;qty>>=1,str+=str;} return result;};var slice=[].slice;var defaultToWhiteSpace=function(characters){if(characters==null) return'\\s';else if(characters.source) return characters.source;else return'['+_s.escapeRegExp(characters)+']';};var escapeChars={lt:'<',gt:'>',quot:'"',apos:"'",amp:'&'};var reversedEscapeChars={};for(var key in escapeChars){reversedEscapeChars[escapeChars[key]]=key;} var sprintf=(function(){function get_type(variable){return Object.prototype.toString.call(variable).slice(8,-1).toLowerCase();} var str_repeat=strRepeat;var str_format=function(){if(!str_format.cache.hasOwnProperty(arguments[0])){str_format.cache[arguments[0]]=str_format.parse(arguments[0]);} return str_format.format.call(null,str_format.cache[arguments[0]],arguments);};str_format.format=function(parse_tree,argv){var cursor=1,tree_length=parse_tree.length,node_type='',arg,output=[],i,k,match,pad,pad_character,pad_length;for(i=0;i=0?'+'+arg:arg);pad_character=match[4]?match[4]=='0'?'0':match[4].charAt(1):' ';pad_length=match[6]-String(arg).length;pad=match[6]?str_repeat(pad_character,pad_length):'';output.push(match[5]?arg+pad:pad+arg);}} return output.join('');};str_format.cache={};str_format.parse=function(fmt){var _fmt=fmt,match=[],parse_tree=[],arg_names=0;while(_fmt){if((match=/^[^\x25]+/.exec(_fmt))!==null){parse_tree.push(match[0]);} else if((match=/^\x25{2}/.exec(_fmt))!==null){parse_tree.push('%');} else if((match=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt))!==null){if(match[2]){arg_names|=1;var field_list=[],replacement_field=match[2],field_match=[];if((field_match=/^([a-z_][a-z_\d]*)/i.exec(replacement_field))!==null){field_list.push(field_match[1]);while((replacement_field=replacement_field.substring(field_match[0].length))!==''){if((field_match=/^\.([a-z_][a-z_\d]*)/i.exec(replacement_field))!==null){field_list.push(field_match[1]);} else if((field_match=/^\[(\d+)\]/.exec(replacement_field))!==null){field_list.push(field_match[1]);} else{throw new Error('[_.sprintf] huh?');}}} else{throw new Error('[_.sprintf] huh?');} match[2]=field_list;} else{arg_names|=2;} if(arg_names===3){throw new Error('[_.sprintf] mixing positional and named placeholders is not (yet) supported');} parse_tree.push(match);} else{throw new Error('[_.sprintf] huh?');} _fmt=_fmt.substring(match[0].length);} return parse_tree;};return str_format;})();var _s={VERSION:'2.3.0',isBlank:function(str){if(str==null)str='';return(/^\s*$/).test(str);},stripTags:function(str){if(str==null)return'';return String(str).replace(/<\/?[^>]+>/g,'');},capitalize:function(str){str=str==null?'':String(str);return str.charAt(0).toUpperCase()+str.slice(1);},chop:function(str,step){if(str==null)return[];str=String(str);step=~~step;return step>0?str.match(new RegExp('.{1,'+step+'}','g')):[str];},clean:function(str){return _s.strip(str).replace(/\s+/g,' ');},count:function(str,substr){if(str==null||substr==null)return 0;return String(str).split(substr).length-1;},chars:function(str){if(str==null)return[];return String(str).split('');},swapCase:function(str){if(str==null)return'';return String(str).replace(/\S/g,function(c){return c===c.toUpperCase()?c.toLowerCase():c.toUpperCase();});},escapeHTML:function(str){if(str==null)return'';return String(str).replace(/[&<>"']/g,function(m){return'&'+reversedEscapeChars[m]+';';});},unescapeHTML:function(str){if(str==null)return'';return String(str).replace(/\&([^;]+);/g,function(entity,entityCode){var match;if(entityCode in escapeChars){return escapeChars[entityCode];}else if(match=entityCode.match(/^#x([\da-fA-F]+)$/)){return String.fromCharCode(parseInt(match[1],16));}else if(match=entityCode.match(/^#(\d+)$/)){return String.fromCharCode(~~match[1]);}else{return entity;}});},escapeRegExp:function(str){if(str==null)return'';return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g,'\\$1');},splice:function(str,i,howmany,substr){var arr=_s.chars(str);arr.splice(~~i,~~howmany,substr);return arr.join('');},insert:function(str,i,substr){return _s.splice(str,i,0,substr);},include:function(str,needle){if(needle==='')return true;if(str==null)return false;return String(str).indexOf(needle)!==-1;},join:function(){var args=slice.call(arguments),separator=args.shift();if(separator==null)separator='';return args.join(separator);},lines:function(str){if(str==null)return[];return String(str).split("\n");},reverse:function(str){return _s.chars(str).reverse().join('');},startsWith:function(str,starts){if(starts==='')return true;if(str==null||starts==null)return false;str=String(str);starts=String(starts);return str.length>=starts.length&&str.slice(0,starts.length)===starts;},endsWith:function(str,ends){if(ends==='')return true;if(str==null||ends==null)return false;str=String(str);ends=String(ends);return str.length>=ends.length&&str.slice(str.length-ends.length)===ends;},succ:function(str){if(str==null)return'';str=String(str);return str.slice(0,-1)+String.fromCharCode(str.charCodeAt(str.length-1)+1);},titleize:function(str){if(str==null)return'';return String(str).replace(/(?:^|\s)\S/g,function(c){return c.toUpperCase();});},camelize:function(str){return _s.trim(str).replace(/[-_\s]+(.)?/g,function(match,c){return c.toUpperCase();});},underscored:function(str){return _s.trim(str).replace(/([a-z\d])([A-Z]+)/g,'$1_$2').replace(/[-\s]+/g,'_').toLowerCase();},dasherize:function(str){return _s.trim(str).replace(/([A-Z])/g,'-$1').replace(/[-_\s]+/g,'-').toLowerCase();},classify:function(str){return _s.titleize(String(str).replace(/_/g,' ')).replace(/\s/g,'');},humanize:function(str){return _s.capitalize(_s.underscored(str).replace(/_id$/,'').replace(/_/g,' '));},trim:function(str,characters){if(str==null)return'';if(!characters&&nativeTrim)return nativeTrim.call(str);characters=defaultToWhiteSpace(characters);return String(str).replace(new RegExp('\^'+characters+'+|'+characters+'+$','g'),'');},ltrim:function(str,characters){if(str==null)return'';if(!characters&&nativeTrimLeft)return nativeTrimLeft.call(str);characters=defaultToWhiteSpace(characters);return String(str).replace(new RegExp('^'+characters+'+'),'');},rtrim:function(str,characters){if(str==null)return'';if(!characters&&nativeTrimRight)return nativeTrimRight.call(str);characters=defaultToWhiteSpace(characters);return String(str).replace(new RegExp(characters+'+$'),'');},truncate:function(str,length,truncateStr){if(str==null)return'';str=String(str);truncateStr=truncateStr||'...';length=~~length;return str.length>length?str.slice(0,length)+truncateStr:str;},prune:function(str,length,pruneStr){if(str==null)return'';str=String(str);length=~~length;pruneStr=pruneStr!=null?String(pruneStr):'...';if(str.length<=length)return str;var tmpl=function(c){return c.toUpperCase()!==c.toLowerCase()?'A':' ';},template=str.slice(0,length+1).replace(/.(?=\W*\w*$)/g,tmpl);if(template.slice(template.length-2).match(/\w\w/)) template=template.replace(/\s*\S+$/,'');else template=_s.rtrim(template.slice(0,template.length-1));return(template+pruneStr).length>str.length?str:str.slice(0,template.length)+pruneStr;},words:function(str,delimiter){if(_s.isBlank(str))return[];return _s.trim(str,delimiter).split(delimiter||/\s+/);},pad:function(str,length,padStr,type){str=str==null?'':String(str);length=~~length;var padlen=0;if(!padStr) padStr=' ';else if(padStr.length>1) padStr=padStr.charAt(0);switch(type){case'right':padlen=length-str.length;return str+strRepeat(padStr,padlen);case'both':padlen=length-str.length;return strRepeat(padStr,Math.ceil(padlen/2))+str +strRepeat(padStr,Math.floor(padlen/2));default:padlen=length-str.length;return strRepeat(padStr,padlen)+str;}},lpad:function(str,length,padStr){return _s.pad(str,length,padStr);},rpad:function(str,length,padStr){return _s.pad(str,length,padStr,'right');},lrpad:function(str,length,padStr){return _s.pad(str,length,padStr,'both');},sprintf:sprintf,vsprintf:function(fmt,argv){argv.unshift(fmt);return sprintf.apply(null,argv);},toNumber:function(str,decimals){if(str==null||str=='')return 0;str=String(str);var num=parseNumber(parseNumber(str).toFixed(~~decimals));return num===0&&!str.match(/^0+$/)?Number.NaN:num;},numberFormat:function(number,dec,dsep,tsep){if(isNaN(number)||number==null)return'';number=number.toFixed(~~dec);tsep=tsep||',';var parts=number.split('.'),fnums=parts[0],decimals=parts[1]?(dsep||'.')+parts[1]:'';return fnums.replace(/(\d)(?=(?:\d{3})+$)/g,'$1'+tsep)+decimals;},strRight:function(str,sep){if(str==null)return'';str=String(str);sep=sep!=null?String(sep):sep;var pos=!sep?-1:str.indexOf(sep);return~pos?str.slice(pos+sep.length,str.length):str;},strRightBack:function(str,sep){if(str==null)return'';str=String(str);sep=sep!=null?String(sep):sep;var pos=!sep?-1:str.lastIndexOf(sep);return~pos?str.slice(pos+sep.length,str.length):str;},strLeft:function(str,sep){if(str==null)return'';str=String(str);sep=sep!=null?String(sep):sep;var pos=!sep?-1:str.indexOf(sep);return~pos?str.slice(0,pos):str;},strLeftBack:function(str,sep){if(str==null)return'';str+='';sep=sep!=null?''+sep:sep;var pos=str.lastIndexOf(sep);return~pos?str.slice(0,pos):str;},toSentence:function(array,separator,lastSeparator,serial){separator=separator||', ' lastSeparator=lastSeparator||' and ' var a=array.slice(),lastMember=a.pop();if(array.length>2&&serial)lastSeparator=_s.rtrim(separator)+lastSeparator;return a.length?a.join(separator)+lastSeparator+lastMember:lastMember;},toSentenceSerial:function(){var args=slice.call(arguments);args[3]=true;return _s.toSentence.apply(_s,args);},slugify:function(str){if(str==null)return'';var from="ąà áäâãåæćęèéëêìíïîłńòóöôõøùúüûñçżź",to="aaaaaaaaceeeeeiiiilnoooooouuuunczz",regex=new RegExp(defaultToWhiteSpace(from),'g');str=String(str).toLowerCase().replace(regex,function(c){var index=from.indexOf(c);return to.charAt(index)||'-';});return _s.dasherize(str.replace(/[^\w\s-]/g,''));},surround:function(str,wrapper){return[wrapper,str,wrapper].join('');},quote:function(str){return _s.surround(str,'"');},exports:function(){var result={};for(var prop in this){if(!this.hasOwnProperty(prop)||prop.match(/^(?:include|contains|reverse)$/))continue;result[prop]=this[prop];} return result;},repeat:function(str,qty,separator){if(str==null)return'';qty=~~qty;if(separator==null)return strRepeat(String(str),qty);for(var repeat=[];qty>0;repeat[--qty]=str){} return repeat.join(separator);},levenshtein:function(str1,str2){if(str1==null&&str2==null)return 0;if(str1==null)return String(str2).length;if(str2==null)return String(str1).length;str1=String(str1);str2=String(str2);var current=[],prev,value;for(var i=0;i<=str2.length;i++) for(var j=0;j<=str1.length;j++){if(i&&j) if(str1.charAt(j-1)===str2.charAt(i-1)) value=prev;else value=Math.min(current[j],current[j-1],prev)+1;else value=i+j;prev=current[j];current[j]=value;} return current.pop();}};_s.strip=_s.trim;_s.lstrip=_s.ltrim;_s.rstrip=_s.rtrim;_s.center=_s.lrpad;_s.rjust=_s.lpad;_s.ljust=_s.rpad;_s.contains=_s.include;_s.q=_s.quote;if(typeof exports!=='undefined'){if(typeof module!=='undefined'&&module.exports){module.exports=_s;} exports._s=_s;}else if(typeof define==='function'&&define.amd){define('underscore.string',[],function(){return _s;});}else{root._=root._||{};root._.string=root._.str=_s;}}(this,String);var API=new Class({Implements:[Options,Events],initialize:function(options){this.setOptions(options);},request:function(type,path,data,onSuccessCallback,onFailureCallback){var req=new Request.JSON({url:'/api-proxy'+path,data:data,onSuccess:function(json){onSuccessCallback(json);}.bind(this),onFailure:function(){onFailureCallback();}.bind(this)})[type]();},get:function(options){this.request('get',options.path,options.data,options.onSuccess,options.onFailure);},post:function(options){this.request('post',options.path,options.data,options.onSuccess,options.onFailure);}});API=new API();var APIService=new Class({initialize:function(){if(typeof API==='function'){throw'Can\'t instantiate API service method when API does not exist.';}}});window.addEvent('domready',function(){});});