var MooTools={version:"1.2.4",build:"0d9113241a90b9cd5643b926795852a2026710d4"};var Native=function(l){l=l||{};var v=l.name;var n=l.legacy;var u=l.protect;var t=l.implement;var o=l.generics;var q=l.initialize;var p=l.afterImplement||function(){};var s=q||n;o=o!==false;s.constructor=Native;s.$family={name:"native"};if(n&&q){s.prototype=n.prototype}s.prototype.constructor=s;if(v){var r=v.toLowerCase();s.prototype.$family={name:r};Native.typize(s,r)}var m=function(d,b,c,a){if(!u||a||!d.prototype[b]){d.prototype[b]=c}if(o){Native.genericize(d,b,u)}p.call(d,b,c);return d};s.alias=function(e,b,c){if(typeof e=="string"){var d=this.prototype[e];if((e=d)){return m(this,b,e,c)}}for(var a in e){this.alias(a,e[a],b)}return this};s.implement=function(a,b,c){if(typeof a=="string"){return m(this,a,b,c)}for(var d in a){m(this,d,a[d],b)}return this};if(t){s.implement(t)}return s};Native.genericize=function(d,f,e){if((!e||!d[f])&&typeof d.prototype[f]=="function"){d[f]=function(){var a=Array.prototype.slice.call(arguments);return d.prototype[f].apply(a.shift(),a)}}};Native.implement=function(g,h){for(var e=0,f=g.length;e<f;e++){g[e].implement(h)}};Native.typize=function(d,c){if(!d.type){d.type=function(a){return($type(a)===c)}}};(function(){var j={Array:Array,Date:Date,Function:Function,Number:Number,RegExp:RegExp,String:String};for(var k in j){new Native({name:k,initialize:j[k],protect:true})}var n={"boolean":Boolean,"native":Native,object:Object};for(var o in n){Native.typize(n[o],o)}var l={Array:["concat","indexOf","join","lastIndexOf","pop","push","reverse","shift","slice","sort","splice","toString","unshift","valueOf"],String:["charAt","charCodeAt","concat","indexOf","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","valueOf"]};for(var m in l){for(var g=l[m].length;g--;){Native.genericize(j[m],l[m][g],true)}}})();var Hash=new Native({name:"Hash",initialize:function(d){if($type(d)=="hash"){d=$unlink(d.getClean())}for(var c in d){this[c]=d[c]}return this}});Hash.implement({forEach:function(d,f){for(var e in this){if(this.hasOwnProperty(e)){d.call(f,this[e],e,this)}}},getClean:function(){var c={};for(var d in this){if(this.hasOwnProperty(d)){c[d]=this[d]}}return c},getLength:function(){var c=0;for(var d in this){if(this.hasOwnProperty(d)){c++}}return c}});Hash.alias("forEach","each");Array.implement({forEach:function(h,g){for(var e=0,f=this.length;e<f;e++){h.call(g,this[e],e,this)}}});Array.alias("forEach","each");function $A(d){if(d.item){var e=d.length,f=new Array(e);while(e--){f[e]=d[e]}return f}return Array.prototype.slice.call(d)}function $arguments(b){return function(){return arguments[b]}}function $chk(b){return !!(b||b===0)}function $clear(b){clearTimeout(b);clearInterval(b);return null}function $defined(b){return(b!=undefined)}function $each(h,e,g){var f=$type(h);((f=="arguments"||f=="collection"||f=="array")?Array:Hash).each(h,e,g)}function $empty(){}function $extend(f,e){for(var d in (e||{})){f[d]=e[d]}return f}function $H(b){return new Hash(b)}function $lambda(b){return($type(b)=="function")?b:function(){return b}}function $merge(){var b=Array.slice(arguments);b.unshift({});return $mixin.apply(null,b)}function $mixin(m){for(var n=1,j=arguments.length;n<j;n++){var h=arguments[n];if($type(h)!="object"){continue}for(var o in h){var k=h[o],l=m[o];m[o]=(l&&$type(k)=="object"&&$type(l)=="object")?$mixin(l,k):$unlink(k)}}return m}function $pick(){for(var c=0,d=arguments.length;c<d;c++){if(arguments[c]!=undefined){return arguments[c]}}return null}function $random(c,d){return Math.floor(Math.random()*(d-c+1)+c)}function $splat(c){var d=$type(c);return(d)?((d!="array"&&d!="arguments")?[c]:c):[]}var $time=Date.now||function(){return +new Date};function $try(){for(var d=0,e=arguments.length;d<e;d++){try{return arguments[d]()}catch(f){}}return null}function $type(b){if(b==undefined){return false}if(b.$family){return(b.$family.name=="number"&&!isFinite(b))?false:b.$family.name}if(b.nodeName){switch(b.nodeType){case 1:return"element";case 3:return(/\S/).test(b.nodeValue)?"textnode":"whitespace"}}else{if(typeof b.length=="number"){if(b.callee){return"arguments"}else{if(b.item){return"collection"}}}}return typeof b}function $unlink(k){var f;switch($type(k)){case"object":f={};for(var h in k){f[h]=$unlink(k[h])}break;case"hash":f=new Hash(k);break;case"array":f=[];for(var j=0,g=k.length;j<g;j++){f[j]=$unlink(k[j])}break;default:return k}return f}var Browser=$merge({Engine:{name:"unknown",version:0},Platform:{name:(window.orientation!=undefined)?"ipod":(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase()},Features:{xpath:!!(document.evaluate),air:!!(window.runtime),query:!!(document.querySelector)},Plugins:{},Engines:{presto:function(){return(!window.opera)?false:((arguments.callee.caller)?960:((document.getElementsByClassName)?950:925))},trident:function(){return(!window.ActiveXObject)?false:((window.XMLHttpRequest)?((document.querySelectorAll)?6:5):4)},webkit:function(){return(navigator.taintEnabled)?false:((Browser.Features.xpath)?((Browser.Features.query)?525:420):419)},gecko:function(){return(!document.getBoxObjectFor&&window.mozInnerScreenX==null)?false:((document.getElementsByClassName)?19:18)}}},Browser||{});Browser.Platform[Browser.Platform.name]=true;Browser.detect=function(){for(var c in this.Engines){var d=this.Engines[c]();if(d){this.Engine={name:c,version:d};this.Engine[c]=this.Engine[c+d]=true;break}}return{name:c,version:d}};Browser.detect();Browser.Request=function(){return $try(function(){return new XMLHttpRequest()},function(){return new ActiveXObject("MSXML2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})};Browser.Features.xhr=!!(Browser.Request());Browser.Plugins.Flash=(function(){var b=($try(function(){return navigator.plugins["Shockwave Flash"].description},function(){return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")})||"0 r0").match(/\d+/g);return{version:parseInt(b[0]||0+"."+b[1],10)||0,build:parseInt(b[2],10)||0}})();function $exec(c){if(!c){return c}if(window.execScript){window.execScript(c)}else{var d=document.createElement("script");d.setAttribute("type","text/javascript");d[(Browser.Engine.webkit&&Browser.Engine.version<420)?"innerText":"text"]=c;document.head.appendChild(d);document.head.removeChild(d)}return c}Native.UID=1;var $uid=(Browser.Engine.trident)?function(b){return(b.uid||(b.uid=[Native.UID++]))[0]}:function(b){return b.uid||(b.uid=Native.UID++)};var Window=new Native({name:"Window",legacy:(Browser.Engine.trident)?null:window.Window,initialize:function(b){$uid(b);if(!b.Element){b.Element=$empty;if(Browser.Engine.webkit){b.document.createElement("iframe")}b.Element.prototype=(Browser.Engine.webkit)?window["[[DOMElement.prototype]]"]:{}}b.document.window=b;return $extend(b,Window.Prototype)},afterImplement:function(c,d){window[c]=Window.Prototype[c]=d}});Window.Prototype={$family:{name:"window"}};new Window(window);var Document=new Native({name:"Document",legacy:(Browser.Engine.trident)?null:window.Document,initialize:function(b){$uid(b);b.head=b.getElementsByTagName("head")[0];b.html=b.getElementsByTagName("html")[0];if(Browser.Engine.trident&&Browser.Engine.version<=4){$try(function(){b.execCommand("BackgroundImageCache",false,true)})}if(Browser.Engine.trident){b.window.attachEvent("onunload",function(){b.window.detachEvent("onunload",arguments.callee);b.head=b.html=b.window=null})}return $extend(b,Document.Prototype)},afterImplement:function(c,d){document[c]=Document.Prototype[c]=d}});Document.Prototype={$family:{name:"document"}};new Document(document);Array.implement({every:function(h,g){for(var e=0,f=this.length;e<f;e++){if(!h.call(g,this[e],e,this)){return false}}return true},filter:function(j,h){var k=[];for(var f=0,g=this.length;f<g;f++){if(j.call(h,this[f],f,this)){k.push(this[f])}}return k},clean:function(){return this.filter($defined)},indexOf:function(h,g){var f=this.length;for(var e=(g<0)?Math.max(0,f+g):g||0;e<f;e++){if(this[e]===h){return e}}return -1},map:function(j,h){var k=[];for(var f=0,g=this.length;f<g;f++){k[f]=j.call(h,this[f],f,this)}return k},some:function(h,g){for(var e=0,f=this.length;e<f;e++){if(h.call(g,this[e],e,this)){return true}}return false},associate:function(h){var g={},e=Math.min(this.length,h.length);for(var f=0;f<e;f++){g[h[f]]=this[f]}return g},link:function(k){var g={};for(var h=0,f=this.length;h<f;h++){for(var j in k){if(k[j](this[h])){g[j]=this[h];delete k[j];break}}}return g},contains:function(d,c){return this.indexOf(d,c)!=-1},extend:function(f){for(var d=0,e=f.length;d<e;d++){this.push(f[d])}return this},getLast:function(){return(this.length)?this[this.length-1]:null},getRandom:function(){return(this.length)?this[$random(0,this.length-1)]:null},include:function(b){if(!this.contains(b)){this.push(b)}return this},combine:function(f){for(var d=0,e=f.length;d<e;d++){this.include(f[d])}return this},erase:function(c){for(var d=this.length;d--;d){if(this[d]===c){this.splice(d,1)}}return this},empty:function(){this.length=0;return this},flatten:function(){var g=[];for(var e=0,f=this.length;e<f;e++){var h=$type(this[e]);if(!h){continue}g=g.concat((h=="array"||h=="collection"||h=="arguments")?Array.flatten(this[e]):this[e])}return g},hexToRgb:function(c){if(this.length!=3){return null}var d=this.map(function(a){if(a.length==1){a+=a}return a.toInt(16)});return(c)?d:"rgb("+d+")"},rgbToHex:function(g){if(this.length<3){return null}if(this.length==4&&this[3]==0&&!g){return"transparent"}var e=[];for(var f=0;f<3;f++){var h=(this[f]-0).toString(16);e.push((h.length==1)?"0"+h:h)}return(g)?e:"#"+e.join("")}});Function.implement({extend:function(d){for(var c in d){this[c]=d[c]}return this},create:function(c){var d=this;c=c||{};return function(b){var f=c.arguments;f=(f!=undefined)?$splat(f):Array.slice(arguments,(c.event)?1:0);if(c.event){f=[b||window.event].extend(f)}var a=function(){return d.apply(c.bind||null,f)};if(c.delay){return setTimeout(a,c.delay)}if(c.periodical){return setInterval(a,c.periodical)}if(c.attempt){return $try(a)}return a()}},run:function(d,c){return this.apply(c,$splat(d))},pass:function(d,c){return this.create({bind:c,arguments:d})},bind:function(c,d){return this.create({bind:c,arguments:d})},bindWithEvent:function(c,d){return this.create({bind:c,arguments:d,event:true})},attempt:function(d,c){return this.create({bind:c,arguments:d,attempt:true})()},delay:function(d,f,e){return this.create({bind:f,arguments:e,delay:d})()},periodical:function(f,d,e){return this.create({bind:d,arguments:e,periodical:f})()}});Number.implement({limit:function(c,d){return Math.min(d,Math.max(c,this))},round:function(b){b=Math.pow(10,b||0);return Math.round(this*b)/b},times:function(d,f){for(var e=0;e<this;e++){d.call(f,e,this)}},toFloat:function(){return parseFloat(this)},toInt:function(b){return parseInt(this,b||10)}});Number.alias("times","each");(function(c){var d={};c.each(function(a){if(!Number[a]){d[a]=function(){return Math[a].apply(null,[this].concat($A(arguments)))}}});Number.implement(d)})(["abs","acos","asin","atan","atan2","ceil","cos","exp","floor","log","max","min","pow","sin","sqrt","tan"]);String.implement({test:function(d,c){return((typeof d=="string")?new RegExp(d,c):d).test(this)},contains:function(d,c){return(c)?(c+this+c).indexOf(c+d+c)>-1:this.indexOf(d)>-1},trim:function(){return this.replace(/^\s+|\s+$/g,"")},clean:function(){return this.replace(/\s+/g," ").trim()},camelCase:function(){return this.replace(/-\D/g,function(b){return b.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/[A-Z]/g,function(b){return("-"+b.charAt(0).toLowerCase())})},capitalize:function(){return this.replace(/\b[a-z]/g,function(b){return b.toUpperCase()})},escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},toInt:function(b){return parseInt(this,b||10)},toFloat:function(){return parseFloat(this)},hexToRgb:function(c){var d=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(d)?d.slice(1).hexToRgb(c):null},rgbToHex:function(c){var d=this.match(/\d{1,3}/g);return(d)?d.rgbToHex(c):null},stripScripts:function(d){var e="";var f=this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){e+=arguments[1]+"\n";return""});if(d===true){$exec(e)}else{if($type(d)=="function"){d(e,f)}}return f},substitute:function(d,c){return this.replace(c||(/\\?\{([^{}]+)\}/g),function(a,b){if(a.charAt(0)=="\\"){return a.slice(1)}return(d[b]!=undefined)?d[b]:""})}});Hash.implement({has:Object.prototype.hasOwnProperty,keyOf:function(c){for(var d in this){if(this.hasOwnProperty(d)&&this[d]===c){return d}}return null},hasValue:function(b){return(Hash.keyOf(this,b)!==null)},extend:function(b){Hash.each(b||{},function(d,a){Hash.set(this,a,d)},this);return this},combine:function(b){Hash.each(b||{},function(d,a){Hash.include(this,a,d)},this);return this},erase:function(b){if(this.hasOwnProperty(b)){delete this[b]}return this},get:function(b){return(this.hasOwnProperty(b))?this[b]:null},set:function(d,c){if(!this[d]||this.hasOwnProperty(d)){this[d]=c}return this},empty:function(){Hash.each(this,function(c,d){delete this[d]},this);return this},include:function(d,c){if(this[d]==undefined){this[d]=c}return this},map:function(d,f){var e=new Hash;Hash.each(this,function(a,b){e.set(b,d.call(f,a,b,this))},this);return e},filter:function(d,f){var e=new Hash;Hash.each(this,function(a,b){if(d.call(f,a,b,this)){e.set(b,a)}},this);return e},every:function(d,f){for(var e in this){if(this.hasOwnProperty(e)&&!d.call(f,this[e],e)){return false}}return true},some:function(d,f){for(var e in this){if(this.hasOwnProperty(e)&&d.call(f,this[e],e)){return true}}return false},getKeys:function(){var b=[];Hash.each(this,function(d,a){b.push(a)});return b},getValues:function(){var b=[];Hash.each(this,function(a){b.push(a)});return b},toQueryString:function(d){var c=[];Hash.each(this,function(a,b){if(d){b=d+"["+b+"]"}var g;switch($type(a)){case"object":g=Hash.toQueryString(a,b);break;case"array":var h={};a.each(function(e,f){h[f]=e});g=Hash.toQueryString(h,b);break;default:g=b+"="+encodeURIComponent(a)}if(a!=undefined){c.push(g)}});return c.join("&")}});Hash.alias({keyOf:"indexOf",hasValue:"contains"});var Event=new Native({name:"Event",initialize:function(z,u){u=u||window;var p=u.document;z=z||u.event;if(z.$extended){return z}this.$extended=true;var q=z.type;var t=z.target||z.srcElement;while(t&&t.nodeType==3){t=t.parentNode}if(q.test(/key/)){var y=z.which||z.keyCode;var n=Event.Keys.keyOf(y);if(q=="keydown"){var w=y-111;if(w>0&&w<13){n="f"+w}}n=n||String.fromCharCode(y).toLowerCase()}else{if(q.match(/(click|mouse|menu)/i)){p=(!p.compatMode||p.compatMode=="CSS1Compat")?p.html:p.body;var r={x:z.pageX||z.clientX+p.scrollLeft,y:z.pageY||z.clientY+p.scrollTop};var x={x:(z.pageX)?z.pageX-u.pageXOffset:z.clientX,y:(z.pageY)?z.pageY-u.pageYOffset:z.clientY};if(q.match(/DOMMouseScroll|mousewheel/)){var s=(z.wheelDelta)?z.wheelDelta/120:-(z.detail||0)/3}var v=(z.which==3)||(z.button==2);var o=null;if(q.match(/over|out/)){switch(q){case"mouseover":o=z.relatedTarget||z.fromElement;break;case"mouseout":o=z.relatedTarget||z.toElement}if(!(function(){while(o&&o.nodeType==3){o=o.parentNode}return true}).create({attempt:Browser.Engine.gecko})()){o=false}}}}return $extend(this,{event:z,type:q,page:r,client:x,rightClick:v,wheel:s,relatedTarget:o,target:t,code:y,key:n,shift:z.shiftKey,control:z.ctrlKey,alt:z.altKey,meta:z.metaKey})}});Event.Keys=new Hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});Event.implement({stop:function(){return this.stopPropagation().preventDefault()},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation()}else{this.event.cancelBubble=true}return this},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault()}else{this.event.returnValue=false}return this}});function Class(c){if(c instanceof Function){c={initialize:c}}var d=function(){Object.reset(this);if(d._prototyping){return this}this._current=$empty;var a=(this.initialize)?this.initialize.apply(this,arguments):this;delete this._current;delete this.caller;return a}.extend(this);d.implement(c);d.constructor=Class;d.prototype.constructor=d;return d}Function.prototype.protect=function(){this._protected=true;return this};Object.reset=function(g,k){if(k==null){for(var h in g){Object.reset(g,h)}return g}delete g[k];switch($type(g[k])){case"object":var j=function(){};j.prototype=g[k];var f=new j;g[k]=Object.reset(f);break;case"array":g[k]=$unlink(g[k]);break}return g};new Native({name:"Class",initialize:Class}).extend({instantiate:function(c){c._prototyping=true;var d=new c;delete c._prototyping;return d},wrap:function(e,d,f){if(f._origin){f=f._origin}return function(){if(f._protected&&this._current==null){throw new Error('The method "'+d+'" cannot be called.')}var b=this.caller,a=this._current;this.caller=a;this._current=arguments.callee;var c=f.apply(this,arguments);this._current=a;this.caller=b;return c}.extend({_owner:e,_origin:f,_name:d})}});Class.implement({implement:function(h,l){if($type(h)=="object"){for(var k in h){this.implement(k,h[k])}return this}var j=Class.Mutators[h];if(j){l=j.call(this,l);if(l==null){return this}}var m=this.prototype;switch($type(l)){case"function":if(l._hidden){return this}m[h]=Class.wrap(this,h,l);break;case"object":var g=m[h];if($type(g)=="object"){$mixin(g,l)}else{m[h]=$unlink(l)}break;case"array":m[h]=$unlink(l);break;default:m[h]=l}return this}});Class.Mutators={Extends:function(b){this.parent=b;this.prototype=Class.instantiate(b);this.implement("parent",function(){var a=this.caller._name,d=this.caller._owner.parent.prototype[a];if(!d){throw new Error('The method "'+a+'" has no parent.')}return d.apply(this,arguments)}.protect())},Implements:function(b){$splat(b).each(function(a){if(a instanceof Function){a=Class.instantiate(a)}this.implement(a)},this)}};var Chain=new Class({$chain:[],chain:function(){this.$chain.extend(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 Events=new Class({$events:{},addEvent:function(f,d,e){f=Events.removeOn(f);if(d!=$empty){this.$events[f]=this.$events[f]||[];this.$events[f].include(d);if(e){d.internal=true}}return this},addEvents:function(d){for(var c in d){this.addEvent(c,d[c])}return this},fireEvent:function(f,d,e){f=Events.removeOn(f);if(!this.$events||!this.$events[f]){return this}this.$events[f].each(function(a){a.create({bind:this,delay:e,"arguments":d})()},this);return this},removeEvent:function(c,d){c=Events.removeOn(c);if(!this.$events[c]){return this}if(!d.internal){this.$events[c].erase(d)}return this},removeEvents:function(h){var g;if($type(h)=="object"){for(g in h){this.removeEvent(g,h[g])}return this}if(h){h=Events.removeOn(h)}for(g in this.$events){if(h&&h!=g){continue}var e=this.$events[g];for(var f=e.length;f--;f){this.removeEvent(g,e[f])}}return this}});Events.removeOn=function(b){return b.replace(/^on([A-Z])/,function(a,d){return d.toLowerCase()})};var Options=new Class({setOptions:function(){this.options=$merge.run([this.options].extend(arguments));if(!this.addEvent){return this}for(var b in this.options){if($type(this.options[b])!="function"||!(/^on[A-Z]/).test(b)){continue}this.addEvent(b,this.options[b]);delete this.options[b]}return this}});var Element=new Native({name:"Element",legacy:window.Element,initialize:function(e,d){var f=Element.Constructors.get(e);if(f){return f(d)}if(typeof e=="string"){return document.newElement(e,d)}return document.id(e).set(d)},afterImplement:function(d,c){Element.Prototype[d]=c;if(Array[d]){return}Elements.implement(d,function(){var k=[],a=true;for(var h=0,j=this.length;h<j;h++){var b=this[h][d].apply(this[h],arguments);k.push(b);if(a){a=($type(b)=="element")}}return(a)?new Elements(k):k})}});Element.Prototype={$family:{name:"element"}};Element.Constructors=new Hash;var IFrame=new Native({name:"IFrame",generics:false,initialize:function(){var j=Array.link(arguments,{properties:Object.type,iframe:$defined});var l=j.properties||{};var m=document.id(j.iframe);var k=l.onload||$empty;delete l.onload;l.id=l.name=$pick(l.id,l.name,m?(m.id||m.name):"IFrame_"+$time());m=new Element(m||"iframe",l);var g=function(){var b=$try(function(){return m.contentWindow.location.host});if(!b||b==window.location.host){var a=new Window(m.contentWindow);new Document(m.contentWindow.document);$extend(a.Element.prototype,Element.Prototype)}k.call(m.contentWindow,m.contentWindow.document)};var h=$try(function(){return m.contentWindow});((h&&h.document.body)||window.frames[l.id])?g():m.addListener("load",g);return m}});var Elements=new Native({initialize:function(l,h){h=$extend({ddup:true,cash:true},h);l=l||[];if(h.ddup||h.cash){var k={},m=[];for(var o=0,j=l.length;o<j;o++){var n=document.id(l[o],!h.cash);if(h.ddup){if(k[n.uid]){continue}k[n.uid]=true}if(n){m.push(n)}}l=m}return(h.cash)?$extend(l,this):l}});Elements.implement({filter:function(d,c){if(!d){return this}return new Elements(Array.filter(this,(typeof d=="string")?function(a){return a.match(d)}:d,c))}});Document.implement({newElement:function(d,c){if(Browser.Engine.trident&&c){["name","type","checked"].each(function(a){if(!c[a]){return}d+=" "+a+'="'+c[a]+'"';if(a!="checked"){delete c[a]}});d="<"+d+">"}return document.id(this.createElement(d)).set(c)},newTextNode:function(b){return this.createTextNode(b)},getDocument:function(){return this},getWindow:function(){return this.window},id:(function(){var b={string:function(e,f,a){e=a.getElementById(e);return(e)?b.element(e,f):null},element:function(a,f){$uid(a);if(!f&&!a.$family&&!(/^object|embed$/i).test(a.tagName)){var h=Element.Prototype;for(var g in h){a[g]=h[g]}}return a},object:function(f,e,a){if(f.toElement){return b.element(f.toElement(a),e)}return null}};b.textnode=b.whitespace=b.window=b.document=$arguments(0);return function(h,f,g){if(h&&h.$family&&h.uid){return h}var a=$type(h);return(b[a])?b[a](h,f,g||document):null}})()});if(window.$==null){Window.implement({$:function(d,c){return document.id(d,c,this.document)}})}Window.implement({$$:function(h){if(arguments.length==1&&typeof h=="string"){return this.document.getElements(h)}var j=[];var m=Array.flatten(arguments);for(var l=0,g=m.length;l<g;l++){var k=m[l];switch($type(k)){case"element":j.push(k);break;case"string":j.extend(this.document.getElements(k,true))}}return new Elements(j)},getDocument:function(){return this.document},getWindow:function(){return this}});Native.implement([Element,Document],{getElement:function(d,c){return document.id(this.getElements(d,true)[0]||null,c)},getElements:function(f,g){f=f.split(",");var h=[];var e=(f.length>1);f.each(function(b){var a=this.getElementsByTagName(b.trim());(e)?h.extend(a):h=a},this);return new Elements(h,{ddup:e,cash:!g})}});(function(){var o={},q={};var n={input:"checked",option:"selected",textarea:(Browser.Engine.webkit&&Browser.Engine.version<420)?"innerHTML":"value"};var t=function(a){return(q[a]||(q[a]={}))};var p=function(e,b){if(!e){return}var a=e.uid;if(Browser.Engine.trident){if(e.clearAttributes){var c=b&&e.cloneNode(false);e.clearAttributes();if(c){e.mergeAttributes(c)}}else{if(e.removeEvents){e.removeEvents()}}if((/object/i).test(e.tagName)){for(var d in e){if(typeof e[d]=="function"){e[d]=$empty}}Element.dispose(e)}}if(!a){return}o[a]=q[a]=null};var s=function(){Hash.each(o,p);if(Browser.Engine.trident){$A(document.getElementsByTagName("object")).each(p)}if(window.CollectGarbage){CollectGarbage()}o=q=null};var m=function(h,b,c,a,f,d){var g=h[c||b];var e=[];while(g){if(g.nodeType==1&&(!a||Element.match(g,a))){if(!f){return document.id(g,d)}e.push(g)}g=g[b]}return(f)?new Elements(e,{ddup:false,cash:!d}):null};var r={html:"innerHTML","class":"className","for":"htmlFor",defaultValue:"defaultValue",text:(Browser.Engine.trident||(Browser.Engine.webkit&&Browser.Engine.version<420))?"innerText":"textContent"};var u=["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"];var l=["value","type","defaultValue","accessKey","cellPadding","cellSpacing","colSpan","frameBorder","maxLength","readOnly","rowSpan","tabIndex","useMap"];u=u.associate(u);Hash.extend(r,u);Hash.extend(r,l.associate(l.map(String.toLowerCase)));var v={before:function(a,b){if(b.parentNode){b.parentNode.insertBefore(a,b)}},after:function(a,b){if(!b.parentNode){return}var c=b.nextSibling;(c)?b.parentNode.insertBefore(a,c):b.parentNode.appendChild(a)},bottom:function(a,b){b.appendChild(a)},top:function(a,b){var c=b.firstChild;(c)?b.insertBefore(a,c):b.appendChild(a)}};v.inside=v.bottom;Hash.each(v,function(b,a){a=a.capitalize();Element.implement("inject"+a,function(c){b(this,document.id(c,true));return this});Element.implement("grab"+a,function(c){b(document.id(c,true),this);return this})});Element.implement({set:function(c,a){switch($type(c)){case"object":for(var d in c){this.set(d,c[d])}break;case"string":var b=Element.Properties.get(c);(b&&b.set)?b.set.apply(this,Array.slice(arguments,1)):this.setProperty(c,a)}return this},get:function(a){var b=Element.Properties.get(a);return(b&&b.get)?b.get.apply(this,Array.slice(arguments,1)):this.getProperty(a)},erase:function(a){var b=Element.Properties.get(a);(b&&b.erase)?b.erase.apply(this):this.removeProperty(a);return this},setProperty:function(a,c){var b=r[a];if(c==undefined){return this.removeProperty(a)}if(b&&u[a]){c=!!c}(b)?this[b]=c:this.setAttribute(a,""+c);return this},setProperties:function(b){for(var a in b){this.setProperty(a,b[a])}return this},getProperty:function(a){var b=r[a];var c=(b)?this[b]:this.getAttribute(a,2);return(u[a])?!!c:(b)?c:c||null},getProperties:function(){var a=$A(arguments);return a.map(this.getProperty,this).associate(a)},removeProperty:function(a){var b=r[a];(b)?this[b]=(b&&u[a])?false:"":this.removeAttribute(a);return this},removeProperties:function(){Array.each(arguments,this.removeProperty,this);return this},hasClass:function(a){return this.className.contains(a," ")},addClass:function(a){if(!this.hasClass(a)){this.className=(this.className+" "+a).clean()}return this},removeClass:function(a){this.className=this.className.replace(new RegExp("(^|\\s)"+a+"(?:\\s|$)"),"$1");return this},toggleClass:function(a){return this.hasClass(a)?this.removeClass(a):this.addClass(a)},adopt:function(){Array.flatten(arguments).each(function(a){a=document.id(a,true);if(a){this.appendChild(a)}},this);return this},appendText:function(a,b){return this.grab(this.getDocument().newTextNode(a),b)},grab:function(a,b){v[b||"bottom"](document.id(a,true),this);return this},inject:function(a,b){v[b||"bottom"](this,document.id(a,true));return this},replaces:function(a){a=document.id(a,true);a.parentNode.replaceChild(this,a);return this},wraps:function(a,b){a=document.id(a,true);return this.replaces(a).grab(a,b)},getPrevious:function(b,a){return m(this,"previousSibling",null,b,false,a)},getAllPrevious:function(b,a){return m(this,"previousSibling",null,b,true,a)},getNext:function(b,a){return m(this,"nextSibling",null,b,false,a)},getAllNext:function(b,a){return m(this,"nextSibling",null,b,true,a)},getFirst:function(b,a){return m(this,"nextSibling","firstChild",b,false,a)},getLast:function(b,a){return m(this,"previousSibling","lastChild",b,false,a)},getParent:function(b,a){return m(this,"parentNode",null,b,false,a)},getParents:function(b,a){return m(this,"parentNode",null,b,true,a)},getSiblings:function(b,a){return this.getParent().getChildren(b,a).erase(this)},getChildren:function(b,a){return m(this,"nextSibling","firstChild",b,true,a)},getWindow:function(){return this.ownerDocument.window},getDocument:function(){return this.ownerDocument},getElementById:function(c,d){var a=this.ownerDocument.getElementById(c);if(!a){return null}for(var b=a.parentNode;b!=this;b=b.parentNode){if(!b){return null}}return document.id(a,d)},getSelected:function(){return new Elements($A(this.options).filter(function(a){return a.selected}))},getComputedStyle:function(a){if(this.currentStyle){return this.currentStyle[a.camelCase()]}var b=this.getDocument().defaultView.getComputedStyle(this,null);return(b)?b.getPropertyValue([a.hyphenate()]):null},toQueryString:function(){var a=[];this.getElements("input, select, textarea",true).each(function(b){if(!b.name||b.disabled||b.type=="submit"||b.type=="reset"||b.type=="file"){return}var c=(b.tagName.toLowerCase()=="select")?Element.getSelected(b).map(function(d){return d.value}):((b.type=="radio"||b.type=="checkbox")&&!b.checked)?null:b.value;$splat(c).each(function(d){if(typeof d!="undefined"){a.push(b.name+"="+encodeURIComponent(d))}})});return a.join("&")},clone:function(f,b){f=f!==false;var c=this.cloneNode(f);var g=function(k,y){if(!b){k.removeAttribute("id")}if(Browser.Engine.trident){k.clearAttributes();k.mergeAttributes(y);k.removeAttribute("uid");if(k.options){var j=k.options,A=y.options;for(var z=j.length;z--;){j[z].selected=A[z].selected}}}var h=n[y.tagName.toLowerCase()];if(h&&y[h]){k[h]=y[h]}};if(f){var e=c.getElementsByTagName("*"),d=this.getElementsByTagName("*");for(var a=e.length;a--;){g(e[a],d[a])}}g(c,this);return document.id(c)},destroy:function(){Element.empty(this);Element.dispose(this);p(this,true);return null},empty:function(){$A(this.childNodes).each(function(a){Element.destroy(a)});return this},dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this},hasChild:function(a){a=document.id(a,true);if(!a){return false}if(Browser.Engine.webkit&&Browser.Engine.version<420){return $A(this.getElementsByTagName(a.tagName)).contains(a)}return(this.contains)?(this!=a&&this.contains(a)):!!(this.compareDocumentPosition(a)&16)},match:function(a){return(!a||(a==this)||(Element.get(this,"tag")==a))}});Native.implement([Element,Window,Document],{addListener:function(c,d){if(c=="unload"){var b=d,a=this;d=function(){a.removeListener("unload",d);b()}}else{o[this.uid]=this}if(this.addEventListener){this.addEventListener(c,d,false)}else{this.attachEvent("on"+c,d)}return this},removeListener:function(a,b){if(this.removeEventListener){this.removeEventListener(a,b,false)}else{this.detachEvent("on"+a,b)}return this},retrieve:function(a,b){var c=t(this.uid),d=c[a];if(b!=undefined&&d==undefined){d=c[a]=b}return $pick(d)},store:function(a,b){var c=t(this.uid);c[a]=b;return this},eliminate:function(b){var a=t(this.uid);delete a[b];return this}});window.addListener("unload",s)})();Element.Properties=new Hash;Element.Properties.style={set:function(b){this.style.cssText=b},get:function(){return this.style.cssText},erase:function(){this.style.cssText=""}};Element.Properties.tag={get:function(){return this.tagName.toLowerCase()}};Element.Properties.html=(function(){var f=document.createElement("div");var e={table:[1,"<table>","</table>"],select:[1,"<select>","</select>"],tbody:[2,"<table><tbody>","</tbody></table>"],tr:[3,"<table><tbody><tr>","</tr></tbody></table>"]};e.thead=e.tfoot=e.tbody;var d={set:function(){var c=Array.flatten(arguments).join("");var b=Browser.Engine.trident&&e[this.get("tag")];if(b){var a=f;a.innerHTML=b[1]+c+b[2];for(var h=b[0];h--;){a=a.firstChild}this.empty().adopt(a.childNodes)}else{this.innerHTML=c}}};d.erase=d.set;return d})();if(Browser.Engine.webkit&&Browser.Engine.version<420){Element.Properties.text={get:function(){if(this.innerText){return this.innerText}var d=this.ownerDocument.newElement("div",{html:this.innerHTML}).inject(this.ownerDocument.body);var c=d.innerText;d.destroy();return c}}}Element.Properties.events={set:function(b){this.addEvents(b)}};Native.implement([Element,Window,Document],{addEvent:function(n,l){var k=this.retrieve("events",{});k[n]=k[n]||{keys:[],values:[]};if(k[n].keys.contains(l)){return this}k[n].keys.push(l);var m=n,r=Element.Events.get(n),p=l,j=this;if(r){if(r.onAdd){r.onAdd.call(this,l)}if(r.condition){p=function(a){if(r.condition.call(this,a)){return l.call(this,a)}return true}}m=r.base||m}var o=function(){return l.call(j)};var q=Element.NativeEvents[m];if(q){if(q==2){o=function(a){a=new Event(a,j.getWindow());if(p.call(j,a)===false){a.stop()}}}this.addListener(m,o)}k[n].values.push(o);return this},removeEvent:function(m,g){var h=this.retrieve("events");if(!h||!h[m]){return this}var j=h[m].keys.indexOf(g);if(j==-1){return this}h[m].keys.splice(j,1);var k=h[m].values.splice(j,1)[0];var l=Element.Events.get(m);if(l){if(l.onRemove){l.onRemove.call(this,g)}m=l.base||m}return(Element.NativeEvents[m])?this.removeListener(m,k):this},addEvents:function(d){for(var c in d){this.addEvent(c,d[c])}return this},removeEvents:function(e){var f;if($type(e)=="object"){for(f in e){this.removeEvent(f,e[f])}return this}var d=this.retrieve("events");if(!d){return this}if(!e){for(f in d){this.removeEvents(f)}this.eliminate("events")}else{if(d[e]){while(d[e].keys[0]){this.removeEvent(e,d[e].keys[0])}d[e]=null}}return this},fireEvent:function(g,e,f){var h=this.retrieve("events");if(!h||!h[g]){return this}h[g].keys.each(function(a){a.create({bind:this,delay:f,"arguments":e})()},this);return this},cloneEvents:function(g,f){g=document.id(g);var h=g.retrieve("events");if(!h){return this}if(!f){for(var e in h){this.cloneEvents(g,e)}}else{if(h[f]){h[f].keys.each(function(a){this.addEvent(f,a)},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,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:1,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1};(function(){var b=function(a){var d=a.relatedTarget;if(d==undefined){return true}if(d===false){return false}return($type(this)!="document"&&d!=this&&d.prefix!="xul"&&!this.hasChild(d))};Element.Events=new Hash({mouseenter:{base:"mouseover",condition:b},mouseleave:{base:"mouseout",condition:b},mousewheel:{base:(Browser.Engine.gecko)?"DOMMouseScroll":"mousewheel"}})})();Element.Properties.styles={set:function(b){this.setStyles(b)}};Element.Properties.opacity={set:function(d,c){if(!c){if(d==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden"}}else{if(this.style.visibility!="visible"){this.style.visibility="visible"}}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1}if(Browser.Engine.trident){this.style.filter=(d==1)?"":"alpha(opacity="+d*100+")"}this.style.opacity=d;this.store("opacity",d)},get:function(){return this.retrieve("opacity",1)}};Element.implement({setOpacity:function(b){return this.set("opacity",b,true)},getOpacity:function(){return this.get("opacity")},setStyle:function(d,e){switch(d){case"opacity":return this.set("opacity",parseFloat(e));case"float":d=(Browser.Engine.trident)?"styleFloat":"cssFloat"}d=d.camelCase();if($type(e)!="string"){var f=(Element.Styles.get(d)||"@").split(" ");e=$splat(e).map(function(a,b){if(!f[b]){return""}return($type(a)=="number")?f[b].replace("@",Math.round(a)):a}).join(" ")}else{if(e==String(Number(e))){e=Math.round(e)}}this.style[d]=e;return this},getStyle:function(k){switch(k){case"opacity":return this.get("opacity");case"float":k=(Browser.Engine.trident)?"styleFloat":"cssFloat"}k=k.camelCase();var j=this.style[k];if(!$chk(j)){j=[];for(var l in Element.ShortStyles){if(k!=l){continue}for(var m in Element.ShortStyles[l]){j.push(this.getStyle(m))}return j.join(" ")}j=this.getComputedStyle(k)}if(j){j=String(j);var o=j.match(/rgba?\([\d\s,]+\)/);if(o){j=j.replace(o[0],o[0].rgbToHex())}}if(Browser.Engine.presto||(Browser.Engine.trident&&!$chk(parseInt(j,10)))){if(k.test(/^(height|width)$/)){var h=(k=="width")?["left","right"]:["top","bottom"],n=0;h.each(function(a){n+=this.getStyle("border-"+a+"-width").toInt()+this.getStyle("padding-"+a).toInt()},this);return this["offset"+k.capitalize()]-n+"px"}if((Browser.Engine.presto)&&String(j).test("px")){return j}if(k.test(/(border(.+)Width|margin|padding)/)){return"0px"}}return j},setStyles:function(c){for(var d in c){this.setStyle(d,c[d])}return this},getStyles:function(){var b={};Array.flatten(arguments).each(function(a){b[a]=this.getStyle(a)},this);return b}});Element.Styles=new Hash({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.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};["Top","Right","Bottom","Left"].each(function(k){var l=Element.ShortStyles;var h=Element.Styles;["margin","padding"].each(function(b){var a=b+k;l[b][a]=h[a]="@px"});var m="border"+k;l.border[m]=h[m]="@px @ rgb(@, @, @)";var n=m+"Width",j=m+"Style",o=m+"Color";l[m]={};l.borderWidth[n]=l[m][n]=h[n]="@px";l.borderStyle[j]=l[m][j]=h[j]="@";l.borderColor[o]=l[m][o]=h[o]="rgb(@, @, @)"});(function(){Element.implement({scrollTo:function(b,a){if(h(this)){this.getWindow().scrollTo(b,a)}else{this.scrollLeft=b;this.scrollTop=a}return this},getSize:function(){if(h(this)){return this.getWindow().getSize()}return{x:this.offsetWidth,y:this.offsetHeight}},getScrollSize:function(){if(h(this)){return this.getWindow().getScrollSize()}return{x:this.scrollWidth,y:this.scrollHeight}},getScroll:function(){if(h(this)){return this.getWindow().getScroll()}return{x:this.scrollLeft,y:this.scrollTop}},getScrolls:function(){var a=this,b={x:0,y:0};while(a&&!h(a)){b.x+=a.scrollLeft;b.y+=a.scrollTop;a=a.parentNode}return b},getOffsetParent:function(){var a=this;if(h(a)){return null}if(!Browser.Engine.trident){return a.offsetParent}while((a=a.parentNode)&&!h(a)){if(n(a,"position")!="static"){return a}}return null},getOffsets:function(){if(this.getBoundingClientRect){var g=this.getBoundingClientRect(),d=document.id(this.getDocument().documentElement),a=d.getScroll(),f=this.getScrolls(),q=this.getScroll(),r=(n(this,"position")=="fixed");return{x:g.left.toInt()+f.x-q.x+((r)?0:a.x)-d.clientLeft,y:g.top.toInt()+f.y-q.y+((r)?0:a.y)-d.clientTop}}var e=this,c={x:0,y:0};if(h(this)){return c}while(e&&!h(e)){c.x+=e.offsetLeft;c.y+=e.offsetTop;if(Browser.Engine.gecko){if(!l(e)){c.x+=o(e);c.y+=k(e)}var b=e.parentNode;if(b&&n(b,"overflow")!="visible"){c.x+=o(b);c.y+=k(b)}}else{if(e!=this&&Browser.Engine.webkit){c.x+=o(e);c.y+=k(e)}}e=e.offsetParent}if(Browser.Engine.gecko&&!l(this)){c.x-=o(this);c.y-=k(this)}return c},getPosition:function(b){if(h(this)){return{x:0,y:0}}var a=this.getOffsets(),d=this.getScrolls();var e={x:a.x-d.x,y:a.y-d.y};var c=(b&&(b=document.id(b)))?b.getPosition():{x:0,y:0};return{x:e.x-c.x,y:e.y-c.y}},getCoordinates:function(b){if(h(this)){return this.getWindow().getCoordinates()}var d=this.getPosition(b),c=this.getSize();var a={left:d.x,top:d.y,width:c.x,height:c.y};a.right=a.left+a.width;a.bottom=a.top+a.height;return a},computePosition:function(a){return{left:a.x-m(this,"margin-left"),top:a.y-m(this,"margin-top")}},setPosition:function(a){return this.setStyles(this.computePosition(a))}});Native.implement([Document,Window],{getSize:function(){if(Browser.Engine.presto||Browser.Engine.webkit){var a=this.getWindow();return{x:a.innerWidth,y:a.innerHeight}}var b=j(this);return{x:b.clientWidth,y:b.clientHeight}},getScroll:function(){var a=this.getWindow(),b=j(this);return{x:a.pageXOffset||b.scrollLeft,y:a.pageYOffset||b.scrollTop}},getScrollSize:function(){var a=j(this),b=this.getSize();return{x:Math.max(a.scrollWidth,b.x),y:Math.max(a.scrollHeight,b.y)}},getPosition:function(){return{x:0,y:0}},getCoordinates:function(){var a=this.getSize();return{top:0,left:0,bottom:a.y,right:a.x,height:a.y,width:a.x}}});var n=Element.getComputedStyle;function m(b,a){return n(b,a).toInt()||0}function l(a){return n(a,"-moz-box-sizing")=="border-box"}function k(a){return m(a,"border-top-width")}function o(a){return m(a,"border-left-width")}function h(a){return(/^(?:body|html)$/i).test(a.tagName)}function j(b){var a=b.getDocument();return(!a.compatMode||a.compatMode=="CSS1Compat")?a.html:a.body}})();Element.alias("setPosition","position");Native.implement([Window,Document,Element],{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}});Native.implement([Document,Element],{getElements:function(l,m){l=l.split(",");var q,o={};for(var p=0,j=l.length;p<j;p++){var k=l[p],n=Selectors.Utils.search(this,k,o);if(p!=0&&n.item){n=$A(n)}q=(p==0)?n:(q.item)?$A(q).concat(n):q.concat(n)}return new Elements(q,{ddup:(l.length>1),cash:!m})}});Element.implement({match:function(f){if(!f||(f==this)){return true}var j=Selectors.Utils.parseTagAndID(f);var g=j[0],h=j[1];if(!Selectors.Filters.byID(this,h)||!Selectors.Filters.byTag(this,g)){return false}var k=Selectors.Utils.parseSelector(f);return(k)?Selectors.Utils.filter(this,k,{}):true}});var Selectors={Cache:{nth:{},parsed:{}}};Selectors.RegExps={id:(/#([\w-]+)/),tag:(/^(\w+|\*)/),quick:(/^(\w+|\*)$/),splitter:(/\s*([+>~\s])\s*([a-zA-Z#.*:\[])/g),combined:(/\.([\w-]+)|\[(\w+)(?:([!*^$~|]?=)(["']?)([^\4]*?)\4)?\]|:([\w-]+)(?:\(["']?(.*?)?["']?\)|$)/g)};Selectors.Utils={chk:function(d,f){if(!f){return true}var e=$uid(d);if(!f[e]){return f[e]=true}return false},parseNthArgument:function(a){if(Selectors.Cache.nth[a]){return Selectors.Cache.nth[a]}var k=a.match(/^([+-]?\d*)?([a-z]+)?([+-]?\d*)?$/);if(!k){return false}var b=parseInt(k[1],10);var l=(b||b===0)?b:1;var j=k[2]||false;var m=parseInt(k[3],10)||0;if(l!=0){m--;while(m<1){m+=l}while(m>=l){m-=l}}else{l=m;j="index"}switch(j){case"n":k={a:l,b:m,special:"n"};break;case"odd":k={a:2,b:0,special:"n"};break;case"even":k={a:2,b:1,special:"n"};break;case"first":k={a:0,special:"index"};break;case"last":k={special:"last-child"};break;case"only":k={special:"only-child"};break;default:k={a:(l-1),special:"index"}}return Selectors.Cache.nth[a]=k},parseSelector:function(p){if(Selectors.Cache.parsed[p]){return Selectors.Cache.parsed[p]}var q,m={classes:[],pseudos:[],attributes:[]};while((q=Selectors.RegExps.combined.exec(p))){var l=q[1],n=q[2],o=q[3],s=q[5],r=q[6],k=q[7];if(l){m.classes.push(l)}else{if(r){var t=Selectors.Pseudo.get(r);if(t){m.pseudos.push({parser:t,argument:k})}else{m.attributes.push({name:r,operator:"=",value:k})}}else{if(n){m.attributes.push({name:n,operator:o,value:s})}}}}if(!m.classes.length){delete m.classes}if(!m.attributes.length){delete m.attributes}if(!m.pseudos.length){delete m.pseudos}if(!m.classes&&!m.attributes&&!m.pseudos){m=null}return Selectors.Cache.parsed[p]=m},parseTagAndID:function(d){var e=d.match(Selectors.RegExps.tag);var f=d.match(Selectors.RegExps.id);return[(e)?e[1]:"*",(f)?f[1]:false]},filter:function(l,o,m){var n;if(o.classes){for(n=o.classes.length;n--;n){var k=o.classes[n];if(!Selectors.Filters.byClass(l,k)){return false}}}if(o.attributes){for(n=o.attributes.length;n--;n){var h=o.attributes[n];if(!Selectors.Filters.byAttribute(l,h.name,h.operator,h.value)){return false}}}if(o.pseudos){for(n=o.pseudos.length;n--;n){var j=o.pseudos[n];if(!Selectors.Filters.byPseudo(l,j.parser,j.argument,m)){return false}}}return true},getByTagAndID:function(e,f,g){if(g){var h=(e.getElementById)?e.getElementById(g,true):Element.getElementById(e,g,true);return(h&&Selectors.Filters.byTag(h,f))?[h]:[]}else{return e.getElementsByTagName(f)}},search:function(K,L,D){var R=[];var Q=L.trim().replace(Selectors.RegExps.splitter,function(a,b,c){R.push(b);return":)"+c}).split(":)");var J,O,I;for(var j=0,n=Q.length;j<n;j++){var k=Q[j];if(j==0&&Selectors.RegExps.quick.test(k)){J=K.getElementsByTagName(k);continue}var S=R[j-1];var H=Selectors.Utils.parseTagAndID(k);var G=H[0],F=H[1];if(j==0){J=Selectors.Utils.getByTagAndID(K,G,F)}else{var P={},M=[];for(var l=0,m=J.length;l<m;l++){M=Selectors.Getters[S](M,J[l],G,F,P)}J=M}var N=Selectors.Utils.parseSelector(k);if(N){O=[];for(var C=0,E=J.length;C<E;C++){I=J[C];if(Selectors.Utils.filter(I,N,D)){O.push(I)}}J=O}}return J}};Selectors.Getters={" ":function(l,m,k,s,o){var p=Selectors.Utils.getByTagAndID(m,k,s);for(var q=0,r=p.length;q<r;q++){var n=p[q];if(Selectors.Utils.chk(n,o)){l.push(n)}}return l},">":function(l,m,k,s,n){var q=Selectors.Utils.getByTagAndID(m,k,s);for(var o=0,p=q.length;o<p;o++){var r=q[o];if(r.parentNode==m&&Selectors.Utils.chk(r,n)){l.push(r)}}return l},"+":function(k,f,g,h,j){while((f=f.nextSibling)){if(f.nodeType==1){if(Selectors.Utils.chk(f,j)&&Selectors.Filters.byTag(f,g)&&Selectors.Filters.byID(f,h)){k.push(f)}break}}return k},"~":function(k,f,g,h,j){while((f=f.nextSibling)){if(f.nodeType==1){if(!Selectors.Utils.chk(f,j)){break}if(Selectors.Filters.byTag(f,g)&&Selectors.Filters.byID(f,h)){k.push(f)}}}return k}};Selectors.Filters={byTag:function(c,d){return(d=="*"||(c.tagName&&c.tagName.toLowerCase()==d))},byID:function(d,c){return(!c||(d.id&&d.id==c))},byClass:function(c,d){return(c.className&&c.className.contains&&c.className.contains(d," "))},byPseudo:function(f,g,h,e){return g.call(f,h,e)},byAttribute:function(k,j,f,h){var g=Element.prototype.getProperty.call(k,j);if(!g){return(f=="!=")}if(!f||h==undefined){return true}switch(f){case"=":return(g==h);case"*=":return(g.contains(h));case"^=":return(g.substr(0,h.length)==h);case"$=":return(g.substr(g.length-h.length)==h);case"!=":return(g!=h);case"~=":return g.contains(h," ");case"|=":return g.contains(h,"-")}return false}};Selectors.Pseudo=new Hash({checked:function(){return this.checked},empty:function(){return !(this.innerText||this.textContent||"").length},not:function(b){return !Element.match(this,b)},contains:function(b){return(this.innerText||this.textContent||"").contains(b)},"first-child":function(){return Selectors.Pseudo.index.call(this,0)},"last-child":function(){var b=this;while((b=b.nextSibling)){if(b.nodeType==1){return false}}return true},"only-child":function(){var c=this;while((c=c.previousSibling)){if(c.nodeType==1){return false}}var d=this;while((d=d.nextSibling)){if(d.nodeType==1){return false}}return true},"nth-child":function(k,m){k=(k==undefined)?"n":k;var o=Selectors.Utils.parseNthArgument(k);if(o.special!="n"){return Selectors.Pseudo[o.special].call(this,o.a,m)}var l=0;m.positions=m.positions||{};var n=$uid(this);if(!m.positions[n]){var h=this;while((h=h.previousSibling)){if(h.nodeType!=1){continue}l++;var j=m.positions[$uid(h)];if(j!=undefined){l=j+l;break}}m.positions[n]=l}return(m.positions[n]%o.a==o.b)},index:function(e){var d=this,f=0;while((d=d.previousSibling)){if(d.nodeType==1&&++f>e){return false}}return(f==e)},even:function(c,d){return Selectors.Pseudo["nth-child"].call(this,"2n+1",d)},odd:function(c,d){return Selectors.Pseudo["nth-child"].call(this,"2n",d)},selected:function(){return this.selected},enabled:function(){return(this.disabled===false)}});Element.Events.domready={onAdd:function(b){if(Browser.loaded){b.call(this)}}};(function(){var c=function(){if(Browser.loaded){return}Browser.loaded=true;window.fireEvent("domready");document.fireEvent("domready")};window.addEvent("load",c);if(Browser.Engine.trident){var d=document.createElement("div");(function(){($try(function(){d.doScroll();return document.id(d).inject(document.body).set("html","temp").dispose()}))?c():arguments.callee.delay(50)})()}else{if(Browser.Engine.webkit&&Browser.Engine.version<525){(function(){(["loaded","complete"].contains(document.readyState))?c():arguments.callee.delay(50)})()}else{document.addEvent("DOMContentLoaded",c)}}})();var JSON=new Hash(this.JSON&&{stringify:JSON.stringify,parse:JSON.parse}).extend({$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(b){return JSON.$specialChars[b]||"\\u00"+Math.floor(b.charCodeAt()/16).toString(16)+(b.charCodeAt()%16).toString(16)},encode:function(c){switch($type(c)){case"string":return'"'+c.replace(/[\x00-\x1f\\"]/g,JSON.$replaceChars)+'"';case"array":return"["+String(c.map(JSON.encode).clean())+"]";case"object":case"hash":var d=[];Hash.each(c,function(a,b){var f=JSON.encode(a);if(f){d.push(JSON.encode(b)+":"+f)}});return"{"+d+"}";case"number":case"boolean":return String(c);case false:return"null"}return null},decode:function(string,secure){if($type(string)!="string"||!string.length){return null}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null}return eval("("+string+")")}});Native.implement([Hash,Array,String,Number],{toJSON:function(){return JSON.encode(this)}});var Cookie=new Class({Implements:Options,options:{path:false,domain:false,duration:false,secure:false,document:document},initialize:function(c,d){this.key=c;this.setOptions(d)},write:function(c){c=encodeURIComponent(c);if(this.options.domain){c+="; domain="+this.options.domain}if(this.options.path){c+="; path="+this.options.path}if(this.options.duration){var d=new Date();d.setTime(d.getTime()+this.options.duration*24*60*60*1000);c+="; expires="+d.toGMTString()}if(this.options.secure){c+="; secure"}this.options.document.cookie=this.key+"="+c;return this},read:function(){var b=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.escapeRegExp()+"=([^;]*)");return(b)?decodeURIComponent(b[1]):null},dispose:function(){new Cookie(this.key,$merge(this.options,{duration:-1})).write("");return this}});Cookie.write=function(d,f,e){return new Cookie(d,e).write(f)};Cookie.read=function(b){return new Cookie(b).read()};Cookie.dispose=function(c,d){return new Cookie(c,d).dispose()};var Swiff=new Class({Implements:[Options],options:{id:null,height:1,width:1,container:null,properties:{},params:{quality:"high",allowScriptAccess:"always",wMode:"transparent",swLiveConnect:true},callBacks:{},vars:{}},toElement:function(){return this.object},initialize:function(o,n){this.instance="Swiff_"+$time();this.setOptions(n);n=this.options;var y=this.id=n.id||this.instance;var z=document.id(n.container);Swiff.CallBacks[this.instance]={};var v=n.params,t=n.vars,u=n.callBacks;var s=$extend({height:n.height,width:n.width},n.properties);var p=this;for(var w in u){Swiff.CallBacks[this.instance][w]=(function(a){return function(){return a.apply(p.object,arguments)}})(u[w]);t[w]="Swiff.CallBacks."+this.instance+"."+w}v.flashVars=Hash.toQueryString(t);if(Browser.Engine.trident){s.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";v.movie=o}else{s.type="application/x-shockwave-flash";s.data=o}var q='<object id="'+y+'"';for(var r in s){q+=" "+r+'="'+s[r]+'"'}q+=">";for(var x in v){if(v[x]){q+='<param name="'+x+'" value="'+v[x]+'" />'}}q+="</object>";this.object=((z)?z.empty():new Element("div")).set("html",q).firstChild},replaces:function(b){b=document.id(b,true);b.parentNode.replaceChild(this.toElement(),b);return this},inject:function(b){document.id(b,true).appendChild(this.toElement());return this},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].extend(arguments))}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction('<invoke name="'+fn+'" returntype="javascript">'+__flash__argumentsToXML(arguments,2)+"</invoke>");return eval(rs)};var Fx=new Class({Implements:[Chain,Events,Options],options:{fps:50,unit:false,duration:500,link:"ignore"},initialize:function(d){this.subject=this.subject||this;this.setOptions(d);this.options.duration=Fx.Durations[this.options.duration]||this.options.duration.toInt();var c=this.options.wait;if(c===false){this.options.link="cancel"}},getTransition:function(){return function(b){return -(Math.cos(Math.PI*b)-1)/2}},step:function(){var d=$time();if(d<this.time+this.options.duration){var c=this.transition((d-this.time)/this.options.duration);this.set(this.compute(this.from,this.to,c))}else{this.set(this.compute(this.from,this.to,1));this.complete()}},set:function(b){return b},compute:function(f,d,e){return Fx.compute(f,d,e)},check:function(){if(!this.timer){return true}switch(this.options.link){case"cancel":this.cancel();return true;case"chain":this.chain(this.caller.bind(this,arguments));return false}return false},start:function(c,d){if(!this.check(c,d)){return this}this.from=c;this.to=d;this.time=0;this.transition=this.getTransition();this.startTimer();this.onStart();return this},complete:function(){if(this.stopTimer()){this.onComplete()}return this},cancel:function(){if(this.stopTimer()){this.onCancel()}return this},onStart:function(){this.fireEvent("start",this.subject)},onComplete:function(){this.fireEvent("complete",this.subject);if(!this.callChain()){this.fireEvent("chainComplete",this.subject)}},onCancel:function(){this.fireEvent("cancel",this.subject).clearChain()},pause:function(){this.stopTimer();return this},resume:function(){this.startTimer();return this},stopTimer:function(){if(!this.timer){return false}this.time=$time()-this.time;this.timer=$clear(this.timer);return true},startTimer:function(){if(this.timer){return false}this.time=$time()-this.time;this.timer=this.step.periodical(Math.round(1000/this.options.fps),this);return true}});Fx.compute=function(f,d,e){return(d-f)*e+f};Fx.Durations={"short":250,normal:500,"long":1000};Fx.CSS=new Class({Extends:Fx,prepare:function(j,h,f){f=$splat(f);var k=f[1];if(!$chk(k)){f[1]=f[0];f[0]=j.getStyle(h)}var g=f.map(this.parse);return{from:g[0],to:g[1]}},parse:function(b){b=$lambda(b)();b=(typeof b=="string")?b.split(" "):$splat(b);return b.map(function(d){d=String(d);var a=false;Fx.CSS.Parsers.each(function(c,g){if(a){return}var h=c.parse(d);if($chk(h)){a={value:h,parser:c}}});a=a||{value:d,parser:Fx.CSS.Parsers.String};return a})},compute:function(g,h,e){var f=[];(Math.min(g.length,h.length)).times(function(a){f.push({value:g[a].parser.compute(g[a].value,h[a].value,e),parser:g[a].parser})});f.$family={name:"fx:css:value"};return f},serve:function(f,d){if($type(f)!="fx:css:value"){f=this.parse(f)}var e=[];f.each(function(a){e=e.concat(a.parser.serve(a.value,d))});return e},render:function(f,g,h,e){f.setStyle(g,this.serve(h,e))},search:function(d){if(Fx.CSS.Cache[d]){return Fx.CSS.Cache[d]}var c={};Array.each(document.styleSheets,function(b,g){var h=b.href;if(h&&h.contains("://")&&!h.contains(document.domain)){return}var a=b.rules||b.cssRules;Array.each(a,function(e,k){if(!e.style){return}var f=(e.selectorText)?e.selectorText.replace(/^\w+/,function(j){return j.toLowerCase()}):null;if(!f||!f.test("^"+d+"$")){return}Element.Styles.each(function(j,l){if(!e.style[l]||Element.ShortStyles[l]){return}j=String(e.style[l]);c[l]=(j.test(/^rgb/))?j.rgbToHex():j})})});return Fx.CSS.Cache[d]=c}});Fx.CSS.Cache={};Fx.CSS.Parsers=new Hash({Color:{parse:function(b){if(b.match(/^#[0-9a-f]{3,6}$/i)){return b.hexToRgb(true)}return((b=b.match(/(\d+),\s*(\d+),\s*(\d+)/)))?[b[1],b[2],b[3]]:false},compute:function(f,d,e){return f.map(function(a,b){return Math.round(Fx.compute(f[b],d[b],e))})},serve:function(b){return b.map(Number)}},Number:{parse:parseFloat,compute:Fx.compute,serve:function(c,d){return(d)?c+d:c}},String:{parse:$lambda(false),compute:$arguments(1),serve:$arguments(0)}});Fx.Tween=new Class({Extends:Fx.CSS,initialize:function(c,d){this.element=this.subject=document.id(c);this.parent(d)},set:function(c,d){if(arguments.length==1){d=c;c=this.property||this.options.property}this.render(this.element,c,d,this.options.unit);return this},start:function(k,h,j){if(!this.check(k,h,j)){return this}var f=Array.flatten(arguments);this.property=this.options.property||f.shift();var g=this.prepare(this.element,this.property,f);return this.parent(g.from,g.to)}});Element.Properties.tween={set:function(d){var c=this.retrieve("tween");if(c){c.cancel()}return this.eliminate("tween").store("tween:options",$extend({link:"cancel"},d))},get:function(b){if(b||!this.retrieve("tween")){if(b||!this.retrieve("tween:options")){this.set("tween",b)}this.store("tween",new Fx.Tween(this,this.retrieve("tween:options")))}return this.retrieve("tween")}};Element.implement({tween:function(e,f,d){this.get("tween").start(arguments);return this},fade:function(k){var h=this.get("tween"),j="opacity",g;k=$pick(k,"toggle");switch(k){case"in":h.start(j,1);break;case"out":h.start(j,0);break;case"show":h.set(j,1);break;case"hide":h.set(j,0);break;case"toggle":var f=this.retrieve("fade:flag",this.get("opacity")==1);h.start(j,(f)?0:1);this.store("fade:flag",!f);g=true;break;default:h.start(j,arguments)}if(!g){this.eliminate("fade:flag")}return this},highlight:function(f,e){if(!e){e=this.retrieve("highlight:original",this.getStyle("background-color"));e=(e=="transparent")?"#fff":e}var d=this.get("tween");d.start("background-color",f||"#ffff88",e).chain(function(){this.setStyle("background-color",this.retrieve("highlight:original"));d.callChain()}.bind(this));return this}});Fx.Morph=new Class({Extends:Fx.CSS,initialize:function(c,d){this.element=this.subject=document.id(c);this.parent(d)},set:function(d){if(typeof d=="string"){d=this.search(d)}for(var c in d){this.render(this.element,c,d[c],this.options.unit)}return this},compute:function(h,j,k){var g={};for(var f in h){g[f]=this.parent(h[f],j[f],k)}return g},start:function(f){if(!this.check(f)){return this}if(typeof f=="string"){f=this.search(f)}var h={},j={};for(var k in f){var g=this.prepare(this.element,k,f[k]);h[k]=g.from;j[k]=g.to}return this.parent(h,j)}});Element.Properties.morph={set:function(d){var c=this.retrieve("morph");if(c){c.cancel()}return this.eliminate("morph").store("morph:options",$extend({link:"cancel"},d))},get:function(b){if(b||!this.retrieve("morph")){if(b||!this.retrieve("morph:options")){this.set("morph",b)}this.store("morph",new Fx.Morph(this,this.retrieve("morph:options")))}return this.retrieve("morph")}};Element.implement({morph:function(b){this.get("morph").start(b);return this}});Fx.implement({getTransition:function(){var d=this.options.transition||Fx.Transitions.Sine.easeInOut;if(typeof d=="string"){var c=d.split(":");d=Fx.Transitions;d=d[c[0]]||d[c[0].capitalize()];if(c[1]){d=d["ease"+c[1].capitalize()+(c[2]?c[2].capitalize():"")]}}return d}});Fx.Transition=function(c,d){d=$splat(d);return $extend(c,{easeIn:function(a){return c(a,d)},easeOut:function(a){return 1-c(1-a,d)},easeInOut:function(a){return(a<=0.5)?c(2*a,d)/2:(2-c(2*(1-a),d))/2}})};Fx.Transitions=new Hash({linear:$arguments(0)});Fx.Transitions.extend=function(d){for(var c in d){Fx.Transitions[c]=new Fx.Transition(d[c])}};Fx.Transitions.extend({Pow:function(c,d){return Math.pow(c,d[0]||6)},Expo:function(b){return Math.pow(2,8*(b-1))},Circ:function(b){return 1-Math.sin(Math.acos(b))},Sine:function(b){return 1-Math.sin((1-b)*Math.PI/2)},Back:function(c,d){d=d[0]||1.618;return Math.pow(c,2)*((d+1)*c-d)},Bounce:function(a){var b;for(var g=0,h=1;1;g+=h,h/=2){if(a>=(7-4*g)/11){b=h*h-Math.pow((11-6*g-11*a)/4,2);break}}return b},Elastic:function(c,d){return Math.pow(2,10*--c)*Math.cos(20*c*Math.PI*(d[0]||1)/3)}});["Quad","Cubic","Quart","Quint"].each(function(c,d){Fx.Transitions[c]=new Fx.Transition(function(a){return Math.pow(a,[d+2])})});var 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,noCache:false},initialize:function(b){this.xhr=new Browser.Request();this.setOptions(b);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers=new Hash(this.options.headers)},onStateChange:function(){if(this.xhr.readyState!=4||!this.running){return}this.running=false;this.status=0;$try(function(){this.status=this.xhr.status}.bind(this));this.xhr.onreadystatechange=$empty;if(this.options.isSuccess.call(this,this.status)){this.response={text:this.xhr.responseText,xml:this.xhr.responseXML};this.success(this.response.text,this.response.xml)}else{this.response={text:null,xml:null};this.failure()}},isSuccess:function(){return((this.status>=200)&&(this.status<300))},processScripts:function(b){if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){return $exec(b)}return b.stripScripts(this.options.evalScripts)},success:function(c,d){this.onSuccess(this.processScripts(c),d)},onSuccess:function(){this.fireEvent("complete",arguments).fireEvent("success",arguments).callChain()},failure:function(){this.onFailure()},onFailure:function(){this.fireEvent("complete").fireEvent("failure",this.xhr)},setHeader:function(d,c){this.headers.set(d,c);return this},getHeader:function(b){return $try(function(){return this.xhr.getResponseHeader(b)}.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.bind(this,arguments));return false}return false},send:function(l){if(!this.check(l)){return this}this.running=true;var n=$type(l);if(n=="string"||n=="element"){l={data:l}}var s=this.options;l=$extend({data:s.data,url:s.url,method:s.method},l);var p=l.data,u=String(l.url),v=l.method.toLowerCase();switch($type(p)){case"element":p=document.id(p).toQueryString();break;case"object":case"hash":p=Hash.toQueryString(p)}if(this.options.format){var m="format="+this.options.format;p=(p)?m+"&"+p:m}if(this.options.emulation&&!["get","post"].contains(v)){var o="_method="+v;p=(p)?o+"&"+p:o;v="post"}if(this.options.urlEncoded&&v=="post"){var t=(this.options.encoding)?"; charset="+this.options.encoding:"";this.headers.set("Content-type","application/x-www-form-urlencoded"+t)}if(this.options.noCache){var q="noCache="+new Date().getTime();p=(p)?q+"&"+p:q}var r=u.lastIndexOf("/");if(r>-1&&(r=u.indexOf("#"))>-1){u=u.substr(0,r)}if(p&&v=="get"){u=u+(u.contains("?")?"&":"?")+p;p=null}this.xhr.open(v.toUpperCase(),u,this.options.async);this.xhr.onreadystatechange=this.onStateChange.bind(this);this.headers.each(function(a,b){try{this.xhr.setRequestHeader(b,a)}catch(c){this.fireEvent("exception",[b,a])}},this);this.fireEvent("request");this.xhr.send(p);if(!this.options.async){this.onStateChange()}return this},cancel:function(){if(!this.running){return this}this.running=false;this.xhr.abort();this.xhr.onreadystatechange=$empty;this.xhr=new Browser.Request();this.fireEvent("cancel");return this}});(function(){var b={};["get","post","put","delete","GET","POST","PUT","DELETE"].each(function(a){b[a]=function(){var d=Array.link(arguments,{url:String.type,data:$defined});return this.send($extend(d,{method:a}))}});Request.implement(b)})();Element.Properties.send={set:function(d){var c=this.retrieve("send");if(c){c.cancel()}return this.eliminate("send").store("send:options",$extend({data:this,link:"cancel",method:this.get("method")||"post",url:this.get("action")},d))},get:function(b){if(b||!this.retrieve("send")){if(b||!this.retrieve("send:options")){this.set("send",b)}this.store("send",new Request(this.retrieve("send:options")))}return this.retrieve("send")}};Element.implement({send:function(d){var c=this.get("send");c.send({data:this,url:d||c.options.url});return this}});Request.HTML=new Class({Extends:Request,options:{update:false,append:false,evalScripts:true,filter:false},processHTML:function(f){var d=f.match(/<body[^>]*>([\s\S]*?)<\/body>/i);f=(d)?d[1]:f;var e=new Element("div");return $try(function(){var k="<root>"+f+"</root>",b;if(Browser.Engine.trident){b=new ActiveXObject("Microsoft.XMLDOM");b.async=false;b.loadXML(k)}else{b=new DOMParser().parseFromString(k,"text/xml")}k=b.getElementsByTagName("root")[0];if(!k){return null}for(var c=0,j=k.childNodes.length;c<j;c++){var a=Element.clone(k.childNodes[c],true,true);if(a){e.grab(a)}}return e})||e.set("html",f)},success:function(g){var h=this.options,e=this.response;e.html=g.stripScripts(function(a){e.javascript=a});var f=this.processHTML(e.html);e.tree=f.childNodes;e.elements=f.getElements("*");if(h.filter){e.tree=e.elements.filter(h.filter)}if(h.update){document.id(h.update).empty().set("html",e.html)}else{if(h.append){document.id(h.append).adopt(f.getChildren())}}if(h.evalScripts){$exec(e.javascript)}this.onSuccess(e.tree,e.elements,e.html,e.javascript)}});Element.Properties.load={set:function(d){var c=this.retrieve("load");if(c){c.cancel()}return this.eliminate("load").store("load:options",$extend({data:this,link:"cancel",update:this,method:"get"},d))},get:function(b){if(b||!this.retrieve("load")){if(b||!this.retrieve("load:options")){this.set("load",b)}this.store("load",new Request.HTML(this.retrieve("load:options")))}return this.retrieve("load")}};Element.implement({load:function(){this.get("load").send(Array.link(arguments,{data:Object.type,url:String.type}));return this}});Request.JSON=new Class({Extends:Request,options:{secure:true},initialize:function(b){this.parent(b);this.headers.extend({Accept:"application/json","X-Request":"JSON"})},success:function(b){this.response.json=JSON.decode(b,this.options.secure);this.onSuccess(this.response.json,b)}});MooTools.More={version:"1.2.4.2",build:"bd5a93c0913cce25917c48cbdacde568e15e02ef"};(function(){var d={language:"en-US",languages:{"en-US":{}},cascades:["en-US"]};var c;MooTools.lang=new Events();$extend(MooTools.lang,{setLanguage:function(a){if(!d.languages[a]){return this}d.language=a;this.load();this.fireEvent("langChange",a);return this},load:function(){var a=this.cascade(this.getCurrentLanguage());c={};$each(a,function(b,f){c[f]=this.lambda(b)},this)},getCurrentLanguage:function(){return d.language},addLanguage:function(a){d.languages[a]=d.languages[a]||{};return this},cascade:function(a){var f=(d.languages[a]||{}).cascades||[];f.combine(d.cascades);f.erase(a).push(a);var b=f.map(function(e){return d.languages[e]},this);return $merge.apply(this,b)},lambda:function(a){(a||{}).get=function(b,f){return $lambda(a[b]).apply(this,$splat(f))};return a},get:function(a,b,f){if(c&&c[a]){return(b?c[a].get(b,f):c[a])}},set:function(b,a,f){this.addLanguage(b);langData=d.languages[b];if(!langData[a]){langData[a]={}}$extend(langData[a],f);if(b==this.getCurrentLanguage()){this.load();this.fireEvent("langChange",b)}return this},list:function(){return Hash.getKeys(d.languages)}})})();(function(){var f=this;var d=function(){if(f.console&&console.log){try{console.log.apply(console,arguments)}catch(a){console.log(Array.slice(arguments))}}else{Log.logged.push(arguments)}return this};var e=function(){this.logged.push(arguments);return this};this.Log=new Class({logged:[],log:e,resetLog:function(){this.logged.empty();return this},enableLog:function(){this.log=d;this.logged.each(function(a){this.log.apply(this,a)},this);return this.resetLog()},disableLog:function(){this.log=e;return this}});Log.extend(new Log).enableLog();Log.logger=function(){return this.log.apply(this,arguments)}})();var Depender={options:{loadedSources:[],loadedScripts:["Core","Browser","Array","String","Function","Number","Hash","Element","Event","Element.Event","Class","DomReady","Class.Extras","Request","JSON","Request.JSON","More","Depender","Log"],useScriptInjection:true},loaded:[],sources:{},libs:{},include:function(c){this.log("include: ",c);this.mapLoaded=false;var d=function(a){this.libs=$merge(this.libs,a);$each(this.libs,function(f,b){if(f.scripts){this.loadSource(b,f.scripts)}},this)}.bind(this);if($type(c)=="string"){this.log("fetching libs ",c);this.request(c,d)}else{d(c)}return this},required:[],require:function(c){var d=function(){var a=this.calculateDependencies(c.scripts);if(c.sources){c.sources.each(function(b){a.combine(this.libs[b].files)},this)}if(c.serial){a.combine(this.getLoadedScripts())}c.scripts=a;this.required.push(c);this.fireEvent("require",c);this.loadScripts(c.scripts)};if(this.mapLoaded){d.call(this)}else{this.addEvent("mapLoaded",function(){d.call(this);this.removeEvent("mapLoaded",arguments.callee)})}return this},cleanDoubleSlash:function(c){if(!c){return c}var d="";if(c.test(/^http:\/\//)){d="http://";c=c.substring(7,c.length)}c=c.replace(/\/\//g,"/");return d+c},request:function(d,c){new Request.JSON({url:d,secure:false,onSuccess:c}).send()},loadSource:function(c,d){if(this.libs[c].files){this.dataLoaded();return}this.log("loading source: ",d);this.request(this.cleanDoubleSlash(d+"/scripts.json"),function(a){this.log("loaded source: ",d);this.libs[c].files=a;this.dataLoaded()}.bind(this))},dataLoaded:function(){var b=true;$each(this.libs,function(d,a){if(!this.libs[a].files){b=false}},this);if(b){this.mapTree();this.mapLoaded=true;this.calculateLoaded();this.lastLoaded=this.getLoadedScripts().getLength();this.fireEvent("mapLoaded")}},calculateLoaded:function(){var b=function(a){this.scriptsState[a]=true}.bind(this);if(this.options.loadedScripts){this.options.loadedScripts.each(b)}if(this.options.loadedSources){this.options.loadedSources.each(function(a){$each(this.libs[a].files,function(d){$each(d,function(c,f){b(f)},this)},this)},this)}},deps:{},pathMap:{},mapTree:function(){$each(this.libs,function(c,d){$each(c.files,function(b,a){$each(b,function(j,k){var h=d+":"+a+":"+k;if(this.deps[h]){return}this.deps[h]=j.deps;this.pathMap[k]=h},this)},this)},this)},getDepsForScript:function(b){return this.deps[this.pathMap[b]]||[]},calculateDependencies:function(d){var c=[];$splat(d).each(function(b){if(b=="None"||!b){return}var a=this.getDepsForScript(b);if(!a){if(window.console&&console.warn){console.warn("dependencies not mapped: script: %o, map: %o, :deps: %o",b,this.pathMap,this.deps)}}else{a.each(function(f){if(f==b||f=="None"||!f){return}if(!c.contains(f)){c.combine(this.calculateDependencies(f))}c.include(f)},this)}c.include(b)},this);return c},getPath:function(g){try{var h=this.pathMap[g].split(":");var j=this.libs[h[0]];var e=(j.path||j.scripts)+"/";h.shift();return this.cleanDoubleSlash(e+h.join("/")+".js")}catch(k){return g}},loadScripts:function(b){b=b.filter(function(a){if(!this.scriptsState[a]&&a!="None"){this.scriptsState[a]=false;return true}},this);if(b.length){b.each(function(a){this.loadScript(a)},this)}else{this.check()}},toLoad:[],loadScript:function(f){if(this.scriptsState[f]&&this.toLoad.length){this.loadScript(this.toLoad.shift());return}else{if(this.loading){this.toLoad.push(f);return}}var h=function(){this.loading=false;this.scriptLoaded(f);if(this.toLoad.length){this.loadScript(this.toLoad.shift())}}.bind(this);var j=function(){this.log("could not load: ",g)}.bind(this);this.loading=true;var g=this.getPath(f);if(this.options.useScriptInjection){this.log("injecting script: ",g);var k=function(){this.log("loaded script: ",g);h()}.bind(this);new Element("script",{src:g+(this.options.noCache?"?noCache="+new Date().getTime():""),events:{load:k,readystatechange:function(){if(["loaded","complete"].contains(this.readyState)){k()}},error:j}}).inject(this.options.target||document.head)}else{this.log("requesting script: ",g);new Request({url:g,noCache:this.options.noCache,onComplete:function(a){this.log("loaded script: ",g);$exec(a);h()}.bind(this),onFailure:j,onException:j}).send()}},scriptsState:$H(),getLoadedScripts:function(){return this.scriptsState.filter(function(b){return b})},scriptLoaded:function(f){this.log("loaded script: ",f);this.scriptsState[f]=true;this.check();var e=this.getLoadedScripts();var g=e.getLength();var h=this.scriptsState.getLength();this.fireEvent("scriptLoaded",{script:f,totalLoaded:(g/h*100).round(),currentLoaded:((g-this.lastLoaded)/(h-this.lastLoaded)*100).round(),loaded:e});if(g==h){this.lastLoaded=g}},lastLoaded:0,check:function(){var b=[];this.required.each(function(d){var a=[];d.scripts.each(function(c){if(this.scriptsState[c]){a.push(c)}},this);if(d.onStep){d.onStep({percent:a.length/d.scripts.length*100,scripts:a})}if(d.scripts.length!=a.length){return}d.callback();this.required.erase(d);this.fireEvent("requirementLoaded",[a,d])},this)}};$extend(Depender,new Events);$extend(Depender,new Options);$extend(Depender,new Log);Depender._setOptions=Depender.setOptions;Depender.setOptions=function(){Depender._setOptions.apply(Depender,arguments);if(this.options.log){Depender.enableLog()}return this};Class.refactor=function(c,d){$each(d,function(a,b){var f=c.prototype[b];if(f&&(f=f._origin)&&typeof a=="function"){c.implement(b,function(){var h=this.previous;this.previous=f;var e=a.apply(this,arguments);this.previous=h;return e})}else{c.implement(b,a)}});return c};Class.Mutators.Binds=function(b){return b};Class.Mutators.initialize=function(b){return function(){$splat(this.Binds).each(function(a){var d=this[a];if(d){this[a]=d.bind(this)}},this);return b.apply(this,arguments)}};Class.Occlude=new Class({occlude:function(f,d){d=document.id(d||this.element);var e=d.retrieve(f||this.property);if(e&&!$defined(this.occluded)){return this.occluded=e}this.occluded=false;d.store(f||this.property,this);return this.occluded}});(function(){var b={wait:function(a){return this.chain(function(){this.callChain.delay($pick(a,500),this)}.bind(this))}};Chain.implement(b);if(window.Fx){Fx.implement(b);["Css","Tween","Elements"].each(function(a){if(Fx[a]){Fx[a].implement(b)}})}Element.implement({chains:function(a){$splat($pick(a,["tween","morph","reveal"])).each(function(d){d=this.get(d);if(!d){return}d.setOptions({link:"chain"})},this);return this},pauseFx:function(d,a){this.chains(a).get($pick(a,"tween")).wait(d);return this}})})();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 d=0,c=this.length;if(c){do{d+=this[--c]}while(c)}return d},unique:function(){return[].combine(this)}});(function(){var v=this.Date;if(!v.now){v.now=$time}v.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"].each(function(a){v.Methods[a.toLowerCase()]=a});var A=function(a,b){return new Array(b-String(a).length+1).join("0")+a};v.implement({set:function(a,c){switch($type(a)){case"object":for(var b in a){this.set(b,a[b])}break;case"string":a=a.toLowerCase();var d=v.Methods;if(d[a]){this["set"+d[a]](c)}}return this},get:function(a){a=a.toLowerCase();var b=v.Methods;if(b[a]){return this["get"+b[a]]()}return null},clone:function(){return new v(this.get("time"))},increment:function(c,a){c=c||"day";a=$pick(a,1);switch(c){case"year":return this.increment("month",a*12);case"month":var b=this.get("date");this.set("date",1).set("mo",this.get("mo")+a);return this.set("date",b.min(this.get("lastdayofmonth")));case"week":return this.increment("day",a*7);case"day":return this.set("date",this.get("date")+a)}if(!v.units[c]){throw new Error(c+" is not a supported interval")}return this.set("time",this.get("time")+a*v.units[c]())},decrement:function(b,a){return this.increment(b,-1*$pick(a,1))},isLeapYear:function(){return v.isLeapYear(this.get("year"))},clearTime:function(){return this.set({hr:0,min:0,sec:0,ms:0})},diff:function(a,b){if($type(a)=="string"){a=v.parse(a)}return((a-this)/v.units[b||"day"](3,3)).toInt()},getLastDayOfMonth:function(){return v.daysInMonth(this.get("mo"),this.get("year"))},getDayOfYear:function(){return(v.UTC(this.get("year"),this.get("mo"),this.get("date")+1)-v.UTC(this.get("year"),0,1))/v.units.day()},getWeek:function(){return(this.get("dayofyear")/7).ceil()},getOrdinal:function(a){return v.getMsg("ordinal",a||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 a=this.get("timezoneOffset");return((a>0)?"-":"+")+A((a.abs()/60).floor(),2)+A(a%60,2)},setAMPM:function(b){b=b.toUpperCase();var a=this.get("hr");if(a>11&&b=="AM"){return this.decrement("hour",12)}else{if(a<12&&b=="PM"){return this.increment("hour",12)}}return this},getAMPM:function(){return(this.get("hr")<12)?"AM":"PM"},parse:function(a){this.set("time",v.parse(a));return this},isValid:function(a){return !!(a||this).valueOf()},format:function(b){if(!this.isValid()){return"invalid date"}b=b||"%x %X";b=t[b.toLowerCase()]||b;var a=this;return b.replace(/%([a-z%])/gi,function(c,d){switch(d){case"a":return v.getMsg("days")[a.get("day")].substr(0,3);case"A":return v.getMsg("days")[a.get("day")];case"b":return v.getMsg("months")[a.get("month")].substr(0,3);case"B":return v.getMsg("months")[a.get("month")];case"c":return a.toString();case"d":return A(a.get("date"),2);case"H":return A(a.get("hr"),2);case"I":return((a.get("hr")%12)||12);case"j":return A(a.get("dayofyear"),3);case"m":return A((a.get("mo")+1),2);case"M":return A(a.get("min"),2);case"o":return a.get("ordinal");case"p":return v.getMsg(a.get("ampm"));case"S":return A(a.get("seconds"),2);case"U":return A(a.get("week"),2);case"w":return a.get("day");case"x":return a.format(v.getMsg("shortDate"));case"X":return a.format(v.getMsg("shortTime"));case"y":return a.get("year").toString().substr(2);case"Y":return a.get("year");case"T":return a.get("GMTOffset");case"Z":return a.get("Timezone")}return d})},toISOString:function(){return this.format("iso8601")}});v.alias("toISOString","toJSON");v.alias("diff","compare");v.alias("format","strftime");var t={db:"%Y-%m-%d %H:%M:%S",compact:"%Y%m%dT%H%M%S",iso8601:"%Y-%m-%dT%H:%M:%S%T",rfc822:"%a, %d %b %Y %H:%M:%S %Z","short":"%d %b %H:%M","long":"%B %d, %Y %H:%M"};var x=[];var z=v.parse;var q=function(c,a,d){var e=-1;var b=v.getMsg(c+"s");switch($type(a)){case"object":e=b[a.get(c)];break;case"number":e=b[month-1];if(!e){throw new Error("Invalid "+c+" index: "+index)}break;case"string":var f=b.filter(function(g){return this.test(g)},new RegExp("^"+a,"i"));if(!f.length){throw new Error("Invalid "+c+" string")}if(f.length>1){throw new Error("Ambiguous "+c)}e=f[0]}return(d)?b.indexOf(e):e};v.extend({getMsg:function(a,b){return MooTools.lang.get("Date",a,b)},units:{ms:$lambda(1),second:$lambda(1000),minute:$lambda(60000),hour:$lambda(3600000),day:$lambda(86400000),week:$lambda(608400000),month:function(b,c){var a=new v;return v.daysInMonth($pick(b,a.get("mo")),$pick(c,a.get("year")))*86400000},year:function(a){a=a||new v().get("year");return v.isLeapYear(a)?31622400000:31536000000}},daysInMonth:function(a,b){return[31,v.isLeapYear(b)?29:28,31,30,31,30,31,31,30,31,30,31][a]},isLeapYear:function(a){return((a%4===0)&&(a%100!==0))||(a%400===0)},parse:function(a){var b=$type(a);if(b=="number"){return new v(a)}if(b!="string"){return a}a=a.clean();if(!a.length){return null}var c;x.some(function(d){var e=d.re.exec(a);return(e)?(c=d.handler(e)):false});return c||new v(z(a))},parseDay:function(b,a){return q("day",b,a)},parseMonth:function(a,b){return q("month",a,b)},parseUTC:function(b){var c=new v(b);var a=v.UTC(c.get("year"),c.get("mo"),c.get("date"),c.get("hr"),c.get("min"),c.get("sec"));return new v(a)},orderIndex:function(a){return v.getMsg("dateOrder").indexOf(a)+1},defineFormat:function(b,a){t[b]=a},defineFormats:function(b){for(var a in b){v.defineFormat(a,b[a])}},parsePatterns:x,defineParser:function(a){x.push((a.re&&a.handler)?a:s(a))},defineParsers:function(){Array.flatten(arguments).each(v.defineParser)},define2DigitYearStart:function(a){w=a%100;r=a-w}});var r=1900;var w=70;var u=function(a){return new RegExp("(?:"+v.getMsg(a).map(function(b){return b.substr(0,3)}).join("|")+")[a-z]*")};var D=function(a){switch(a){case"x":return((v.orderIndex("month")==1)?"%m[.-/]%d":"%d[.-/]%m")+"([.-/]%y)?";case"X":return"%H([.:]%M)?([.:]%S([.:]%s)?)? ?%p? ?%T?"}return null};var p={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}/,T:/Z|[+-]\d{2}(?::?\d{2})?/};p.m=p.I;p.S=p.M;var B;var C=function(a){B=a;p.a=p.A=u("days");p.b=p.B=u("months");x.each(function(b,c){if(b.format){x[c]=s(b.format)}})};var s=function(a){if(!B){return{format:a}}var c=[];var b=(a.source||a).replace(/%([a-z])/gi,function(d,e){return D(e)||d}).replace(/\((?!\?)/g,"(?:").replace(/ (?!\?|\*)/g,",? ").replace(/%([a-z%])/gi,function(e,f){var d=p[f];if(!d){return f}c.push(f);return"("+d.source+")"}).replace(/\[a-z\]/gi,"[a-z\\u00c0-\\uffff]");return{format:a,re:new RegExp("^"+b+"$","i"),handler:function(d){d=d.slice(1).associate(c);var f=new v().clearTime();if("d" in d){y.call(f,"d",1)}if("m" in d){y.call(f,"m",1)}for(var e in d){y.call(f,e,d[e])}return f}}};var y=function(c,b){if(!b){return this}switch(c){case"a":case"A":return this.set("day",v.parseDay(b,true));case"b":case"B":return this.set("mo",v.parseMonth(b,true));case"d":return this.set("date",b);case"H":case"I":return this.set("hr",b);case"m":return this.set("mo",b-1);case"M":return this.set("min",b);case"p":return this.set("ampm",b.replace(/\./g,""));case"S":return this.set("sec",b);case"s":return this.set("ms",("0."+b)*1000);case"w":return this.set("day",b);case"Y":return this.set("year",b);case"y":b=+b;if(b<100){b+=r+(b<w?100:0)}return this.set("year",b);case"T":if(b=="Z"){b="+00"}var a=b.match(/([+-])(\d{2}):?(\d{2})?/);a=(a[1]+"1")*(a[2]*60+(+a[3]||0))+this.getTimezoneOffset();return this.set("time",this-a*60000)}return this};v.defineParsers("%Y([-./]%m([-./]%d((T| )%X)?)?)?","%Y%m%d(T%H(%M%S?)?)?","%x( %X)?","%d%o( %b( %Y)?)?( %X)?","%b( %d%o)?( %Y)?( %X)?","%Y %b( %d%o( %X)?)?","%o %b %d %X %T %Y");MooTools.lang.addEvent("langChange",function(a){if(MooTools.lang.get("Date")){C(a)}}).fireEvent("langChange",MooTools.lang.getCurrentLanguage())})();Date.implement({timeDiffInWords:function(b){return Date.distanceOfTimeInWords(this,b||new Date)},timeDiff:function(k,h){if(k==null){k=new Date}var l=((k-this)/1000).toInt();if(!l){return"0s"}var j={s:60,m:60,h:24,d:365,y:0};var m,n=[];for(var o in j){if(!l){break}if((m=j[o])){n.unshift((l%m)+o);l=(l/m).toInt()}else{n.unshift(l+o)}}return n.join(h||":")}});Date.alias("timeDiffInWords","timeAgoInWords");Date.extend({distanceOfTimeInWords:function(c,d){return Date.getTimePhrase(((d-c)/1000).toInt())},getTimePhrase:function(j){var l=(j<0)?"Until":"Ago";if(j<0){j*=-1}var g={minute:60,hour:60,day:24,week:7,month:52/12,year:12,eon:Infinity};var k="lessThanMinute";for(var m in g){var h=g[m];if(j<1.5*h){if(j>0.75*h){k=m}break}j/=h;k=m+"s"}return Date.getMsg(k+l).substitute({delta:j.round()})}});Date.defineParsers({re:/^(?:tod|tom|yes)/i,handler:function(d){var c=new Date().clearTime();switch(d[0]){case"tom":return c.increment();case"yes":return c.decrement();default:return c}}},{re:/^(next|last) ([a-z]+)$/i,handler:function(j){var h=new Date().clearTime();var d=h.getDay();var k=Date.parseDay(j[2],true);var g=k-d;if(k<=d){g+=7}if(j[1]=="last"){g-=7}return h.set("date",h.getDate()+g)}});Hash.implement({getFromPath:function(d){var c=this.getClean();d.replace(/\[([^\]]+)\]|\.([^.[]+)|[^[.]+/g,function(b){if(!c){return null}var a=arguments[2]||arguments[1]||arguments[0];c=(a in c)?c[a]:null;return b});return c},cleanValues:function(b){b=b||$defined;this.each(function(d,a){if(!b(d)){this.erase(a)}},this);return this},run:function(){var b=arguments;this.each(function(d,a){if($type(d)=="function"){d.run(b)}})}});(function(){var e=["À","à","Á","á","Â","â","Ã","ã","Ä","ä","Å","å","Ă","ă","Ą","ą","Ć","ć","Č","č","Ç","ç","Ď","ď","Đ","đ","È","è","É","é","Ê","ê","Ë","ë","Ě","ě","Ę","ę","Ğ","ğ","Ì","ì","Í","í","Î","î","Ï","ï","Ĺ","ĺ","Ľ","ľ","Ł","ł","Ñ","ñ","Ň","ň","Ń","ń","Ò","ò","Ó","ó","Ô","ô","Õ","õ","Ö","ö","Ø","ø","ő","Ř","ř","Ŕ","ŕ","Š","š","Ş","ş","Ś","ś","Ť","ť","Ť","ť","Ţ","ţ","Ù","ù","Ú","ú","Û","û","Ü","ü","Ů","ů","Ÿ","ÿ","ý","Ý","Ž","ž","Ź","ź","Ż","ż","Þ","þ","Ð","ð","ß","Œ","œ","Æ","æ","µ"];var f=["A","a","A","a","A","a","A","a","Ae","ae","A","a","A","a","A","a","C","c","C","c","C","c","D","d","D","d","E","e","E","e","E","e","E","e","E","e","E","e","G","g","I","i","I","i","I","i","I","i","L","l","L","l","L","l","N","n","N","n","N","n","O","o","O","o","O","o","O","o","Oe","oe","O","o","o","R","r","R","r","S","s","S","s","S","s","T","t","T","t","T","t","U","u","U","u","U","u","Ue","ue","U","u","Y","y","Y","y","Z","z","Z","z","Z","z","TH","th","DH","dh","ss","OE","oe","AE","ae","u"];var g={"[\xa0\u2002\u2003\u2009]":" ","\xb7":"*","[\u2018\u2019]":"'","[\u201c\u201d]":'"',"\u2026":"...","\u2013":"-","\u2014":"--","\uFFFD":"&raquo;"};var h=function(c,b){c=c||"";var a=b?"<"+c+"[^>]*>([\\s\\S]*?)</"+c+">":"</?"+c+"([^>]+)?>";reg=new RegExp(a,"gi");return reg};String.implement({standardize:function(){var a=this;e.each(function(b,c){a=a.replace(new RegExp(b,"g"),f[c])});return a},repeat:function(a){return new Array(a+1).join(this)},pad:function(c,a,d){if(this.length>=c){return this}var b=(a==null?" ":""+a).repeat(c-this.length).substr(0,c-this.length);if(!d||d=="right"){return this+b}if(d=="left"){return b+this}return b.substr(0,(b.length/2).floor())+this+b.substr(0,(b.length/2).ceil())},getTags:function(b,a){return this.match(h(b,a))||[]},stripTags:function(b,a){return this.replace(h(b,a),"")},tidy:function(){var a=this.toString();$each(g,function(b,c){a=a.replace(new RegExp(c,"g"),b)});return a}})})();String.implement({parseQueryString:function(){var c=this.split(/[&;]/),d={};if(c.length){c.each(function(a){var k=a.indexOf("="),j=k<0?[""]:a.substr(0,k).match(/[^\]\[]+/g),h=decodeURIComponent(a.substr(k+1)),b=d;j.each(function(f,g){var e=b[f];if(g<j.length-1){b=b[f]=e||{}}else{if($type(e)=="array"){e.push(h)}else{b[f]=$defined(e)?[e,h]:h}}})})}return d},cleanQueryString:function(b){return this.split("&").filter(function(f){var a=f.indexOf("="),h=a<0?"":f.substr(0,a),g=f.substr(a+1);return b?b.run([h,g]):$chk(g)}).join("&")}});var URI=new Class({Implements:Options,options:{},regex:/^(?:(\w+):)?(?:\/\/(?:(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)?(\.\.?$|(?:[^?#\/]*\/)*)([^?#]*)(?:\?([^#]*))?(?:#(.*))?/,parts:["scheme","user","password","host","port","directory","file","query","fragment"],schemes:{http:80,https:443,ftp:21,rtsp:554,mms:1755,file:0},initialize:function(d,e){this.setOptions(e);var f=this.options.base||URI.base;if(!d){d=f}if(d&&d.parsed){this.parsed=$unlink(d.parsed)}else{this.set("value",d.href||d.toString(),f?new URI(f):false)}},parse:function(f,d){var e=f.match(this.regex);if(!e){return false}e.shift();return this.merge(e.associate(this.parts),d)},merge:function(c,d){if((!c||!c.scheme)&&(!d||!d.scheme)){return false}if(d){this.parts.every(function(a){if(c[a]){return false}c[a]=d[a]||"";return true})}c.port=c.port||this.schemes[c.scheme.toLowerCase()];c.directory=c.directory?this.parseDirectory(c.directory,d?d.directory:""):"/";return c},parseDirectory:function(d,f){d=(d.substr(0,1)=="/"?"":(f||"/"))+d;if(!d.test(URI.regs.directoryDot)){return d}var e=[];d.replace(URI.regs.endSlash,"").split("/").each(function(a){if(a==".."&&e.length>0){e.pop()}else{if(a!="."){e.push(a)}}});return e.join("/")+"/"},combine:function(b){return b.value||b.scheme+"://"+(b.user?b.user+(b.password?":"+b.password:"")+"@":"")+(b.host||"")+(b.port&&b.port!=this.schemes[b.scheme]?":"+b.port:"")+(b.directory||"/")+(b.file||"")+(b.query?"?"+b.query:"")+(b.fragment?"#"+b.fragment:"")},set:function(e,g,h){if(e=="value"){var f=g.match(URI.regs.scheme);if(f){f=f[1]}if(f&&!$defined(this.schemes[f.toLowerCase()])){this.parsed={scheme:f,value:g}}else{this.parsed=this.parse(g,(h||this).parsed)||(f?{scheme:f,value:g}:{value:g})}}else{if(e=="data"){this.setData(g)}else{this.parsed[e]=g}}return this},get:function(d,c){switch(d){case"value":return this.combine(this.parsed,c?c.parsed:false);case"data":return this.getData()}return this.parsed[d]||""},go:function(){document.location.href=this.toString()},toURI:function(){return this},getData:function(h,e){var f=this.get(e||"query");if(!$chk(f)){return h?null:{}}var g=f.parseQueryString();return h?g[h]:g},setData:function(e,f,d){if(typeof e=="string"){e=this.getData();e[arguments[0]]=arguments[1]}else{if(f){e=$merge(this.getData(),e)}}return this.set(d||"query",Hash.toQueryString(e))},clearData:function(b){return this.set(b||"query","")}});URI.prototype.toString=URI.prototype.valueOf=function(){return this.get("value")};URI.regs={endSlash:/\/$/,scheme:/^(\w+):/,directoryDot:/\.\/|\.$/};URI.base=new URI(document.getElements("base[href]",true).getLast(),{base:document.location});String.implement({toURI:function(b){return new URI(this,b)}});URI=Class.refactor(URI,{combine:function(n,o){if(!o||n.scheme!=o.scheme||n.host!=o.host||n.port!=o.port){return this.previous.apply(this,arguments)}var k=n.file+(n.query?"?"+n.query:"")+(n.fragment?"#"+n.fragment:"");if(!o.directory){return(n.directory||(n.file?"":"./"))+k}var p=o.directory.split("/"),q=n.directory.split("/"),m="",l;var j=0;for(l=0;l<p.length&&l<q.length&&p[l]==q[l];l++){}for(j=0;j<p.length-l-1;j++){m+="../"}for(j=l;j<q.length-1;j++){m+=q[j]+"/"}return(m||(n.file?"":"./"))+k},toAbsolute:function(b){b=new URI(b);if(b){b.set("directory","").set("file","")}return this.toRelative(b)},toRelative:function(b){return this.get("value",new URI(b))}});Element.implement({tidy:function(){this.set("value",this.get("value").tidy())},getTextInRange:function(c,d){return this.get("value").substring(c,d)},getSelectedText:function(){if(this.setSelectionRange){return this.getTextInRange(this.getSelectionStart(),this.getSelectionEnd())}return document.selection.createRange().text},getSelectedRange:function(){if($defined(this.selectionStart)){return{start:this.selectionStart,end:this.selectionEnd}}var h={start:0,end:0};var g=this.getDocument().selection.createRange();if(!g||g.parentElement()!=this){return h}var k=g.duplicate();if(this.type=="text"){h.start=0-k.moveStart("character",-100000);h.end=h.start+g.text.length}else{var f=this.get("value");var j=f.length;k.moveToElementText(this);k.setEndPoint("StartToEnd",g);if(k.text.length){j-=f.match(/[\n\r]*$/)[0].length}h.end=j-k.text.length;k.setEndPoint("StartToStart",g);h.start=j-k.text.length}return h},getSelectionStart:function(){return this.getSelectedRange().start},getSelectionEnd:function(){return this.getSelectedRange().end},setCaretPosition:function(b){if(b=="end"){b=this.get("value").length}this.selectRange(b,b);return this},getCaretPosition:function(){return this.getSelectedRange().start},selectRange:function(h,g){if(this.setSelectionRange){this.focus();this.setSelectionRange(h,g)}else{var k=this.get("value");var j=k.substr(h,g-h).replace(/\r/g,"").length;h=k.substr(0,h).replace(/\r/g,"").length;var f=this.createTextRange();f.collapse(true);f.moveEnd("character",h+j);f.moveStart("character",h);f.select()}return this},insertAtCursor:function(e,f){var g=this.getSelectedRange();var h=this.get("value");this.set("value",h.substring(0,g.start)+e+h.substring(g.end,h.length));if($pick(f,true)){this.selectRange(g.start,g.start+e.length)}else{this.setCaretPosition(g.start+e.length)}return this},insertAroundCursor:function(h,j){h=$extend({before:"",defaultMiddle:"",after:""},h);var o=this.getSelectedText()||h.defaultMiddle;var k=this.getSelectedRange();var l=this.get("value");if(k.start==k.end){this.set("value",l.substring(0,k.start)+h.before+o+h.after+l.substring(k.end,l.length));this.selectRange(k.start+h.before.length,k.end+h.before.length+o.length)}else{var n=l.substring(k.start,k.end);this.set("value",l.substring(0,k.start)+h.before+n+h.after+l.substring(k.end,l.length));var m=k.start+h.before.length;if($pick(j,true)){this.selectRange(m,m+n.length)}else{this.setCaretPosition(m+l.length)}}return this}});Elements.from=function(h,j){if($pick(j,true)){h=h.stripScripts()}var f,k=h.match(/^\s*<(t[dhr]|tbody|tfoot|thead)/i);if(k){f=new Element("table");var g=k[1].toLowerCase();if(["td","th","tr"].contains(g)){f=new Element("tbody").inject(f);if(g!="tr"){f=new Element("tr").inject(f)}}}return(f||new Element("div")).set("html",h).getChildren()};(function(){var l=/(.*?):relay\(([^)]+)\)$/,m=/[+>~\s]/,j=function(b){var a=b.match(l);return !a?{event:b}:{event:a[1],selector:a[2]}},g=function(a,f){var c=a.target;if(m.test(f=f.trim())){var d=this.getElements(f);for(var e=d.length;e--;){var b=d[e];if(c==b||b.hasChild(c)){return b}}}else{for(;c&&c!=this;c=c.parentNode){if(Element.match(c,f)){return document.id(c)}}}return null};var h=Element.prototype.addEvent,k=Element.prototype.removeEvent;Element.implement({addEvent:function(b,c){var a=j(b);if(a.selector){var d=this.retrieve("$moo:delegateMonitors",{});if(!d[b]){var e=function(f){var n=g.call(this,f,a.selector);if(n){this.fireEvent(b,[f,n],0,n)}}.bind(this);d[b]=e;h.call(this,a.event,e)}}return h.apply(this,arguments)},removeEvent:function(b,c){var a=j(b);if(a.selector){var d=this.retrieve("events");if(!d||!d[b]||(c&&!d[b].keys.contains(c))){return this}if(c){k.apply(this,[b,c])}else{k.apply(this,b)}d=this.retrieve("events");if(d&&d[b]&&d[b].length==0){var e=this.retrieve("$moo:delegateMonitors",{});k.apply(this,[a.event,e[b]]);delete e[b]}return this}return k.apply(this,arguments)},fireEvent:function(b,d,e,a){var c=this.retrieve("events");if(!c||!c[b]){return this}c[b].keys.each(function(f){f.create({bind:a||this,delay:e,arguments:d})()},this);return this}})})();Element.implement({measure:function(m){var k=function(a){return !!(!a||a.offsetHeight||a.offsetWidth)};if(k(this)){return m.apply(this)}var n=this.getParent(),l=[],h=[];while(!k(n)&&n!=document.body){h.push(n.expose());n=n.getParent()}var o=this.expose();var j=m.apply(this);o();h.each(function(a){a()});return j},expose:function(){if(this.getStyle("display")!="none"){return $empty}var b=this.style.cssText;this.setStyles({display:"block",position:"absolute",visibility:"hidden"});return function(){this.style.cssText=b}.bind(this)},getDimensions:function(g){g=$merge({computeSize:false},g);var h={};var j=function(a,b){return(b.computeSize)?a.getComputedSize(b):a.getSize()};var e=this.getParent("body");if(e&&this.getStyle("display")=="none"){h=this.measure(function(){return j(this,g)})}else{if(e){try{h=j(this,g)}catch(k){}}else{h={x:0,y:0}}}return $chk(h.x)?$extend(h,{width:h.x,height:h.y}):$extend(h,{x:h.width,y:h.height})},getComputedSize:function(g){g=$merge({styles:["padding","border"],plains:{height:["top","bottom"],width:["left","right"]},mode:"both"},g);var k={width:0,height:0};switch(g.mode){case"vertical":delete k.width;delete g.plains.width;break;case"horizontal":delete k.height;delete g.plains.height;break}var f=[];$each(g.plains,function(a,b){a.each(function(c){g.styles.each(function(d){f.push((d=="border")?d+"-"+c+"-width":d+"-"+c)})})});var h={};f.each(function(a){h[a]=this.getComputedStyle(a)},this);var j=[];$each(g.plains,function(b,c){var a=c.capitalize();k["total"+a]=k["computed"+a]=0;b.each(function(d){k["computed"+d.capitalize()]=0;f.each(function(e,l){if(e.test(d)){h[e]=h[e].toInt()||0;k["total"+a]=k["total"+a]+h[e];k["computed"+d.capitalize()]=k["computed"+d.capitalize()]+h[e]}if(e.test(d)&&c!=e&&(e.test("border")||e.test("padding"))&&!j.contains(e)){j.push(e);k["computed"+a]=k["computed"+a]-h[e]}})})});["Width","Height"].each(function(a){var b=a.toLowerCase();if(!$chk(k[b])){return}k[b]=k[b]+this["offset"+a]+k["computed"+a];k["total"+a]=k[b]+k["total"+a];delete k["computed"+a]},this);return $extend(h,k)}});(function(){var b=false;window.addEvent("domready",function(){var a=new Element("div").setStyles({position:"fixed",top:0,right:0}).inject(document.body);b=(a.offsetTop===0);a.dispose()});Element.implement({pin:function(n){if(this.getStyle("display")=="none"){return null}var l,a=window.getScroll();if(n!==false){l=this.getPosition();if(!this.retrieve("pinned")){var j={top:l.y-a.y,left:l.x-a.x};if(b){this.setStyle("position","fixed").setStyles(j)}else{this.store("pinnedByJS",true);this.setStyles({position:"absolute",top:l.y,left:l.x}).addClass("isPinned");this.store("scrollFixer",(function(){if(this.retrieve("pinned")){var c=window.getScroll()}this.setStyles({top:j.top.toInt()+c.y,left:j.left.toInt()+c.x})}).bind(this));window.addEvent("scroll",this.retrieve("scrollFixer"))}this.store("pinned",true)}}else{var k;if(!Browser.Engine.trident){var m=this.getParent();k=(m.getComputedStyle("position")!="static"?m:m.getOffsetParent())}l=this.getPosition(k);this.store("pinned",false);var o;if(b&&!this.retrieve("pinnedByJS")){o={top:l.y+a.y,left:l.x+a.x}}else{this.store("pinnedByJS",false);window.removeEvent("scroll",this.retrieve("scrollFixer"));o={top:l.y,left:l.x}}this.setStyles($merge(o,{position:"absolute"})).removeClass("isPinned")}return this},unpin:function(){return this.pin(false)},togglepin:function(){this.pin(!this.retrieve("pinned"))}})})();(function(){var b=Element.prototype.position;Element.implement({position:function(F){if(F&&($defined(F.x)||$defined(F.y))){return b?b.apply(this,arguments):this}$each(F||{},function(c,d){if(!$defined(c)){delete F[d]}});F=$merge({relativeTo:document.body,position:{x:"center",y:"center"},edge:false,offset:{x:0,y:0},returnPos:false,relFixedPosition:false,ignoreMargins:false,ignoreScroll:false,allowNegative:false},F);var u={x:0,y:0},H=false;var K=this.measure(function(){return document.id(this.getOffsetParent())});if(K&&K!=this.getDocument().body){u=K.measure(function(){return this.getPosition()});H=K!=document.id(F.relativeTo);F.offset.x=F.offset.x-u.x;F.offset.y=F.offset.y-u.y}var a=function(d){if($type(d)!="string"){return d}d=d.toLowerCase();var c={};if(d.test("left")){c.x="left"}else{if(d.test("right")){c.x="right"}else{c.x="center"}}if(d.test("upper")||d.test("top")){c.y="top"}else{if(d.test("bottom")){c.y="bottom"}else{c.y="center"}}return c};F.edge=a(F.edge);F.position=a(F.position);if(!F.edge){if(F.position.x=="center"&&F.position.y=="center"){F.edge={x:"center",y:"center"}}else{F.edge={x:"left",y:"top"}}}this.setStyle("position","absolute");var G=document.id(F.relativeTo)||document.body,J=G==document.body?window.getScroll():G.getPosition(),z=J.y,E=J.x;var I=G.getScrolls();z+=I.y;E+=I.x;var y=this.getDimensions({computeSize:true,styles:["padding","border","margin"]});var C={},x=F.offset.y,v=F.offset.x,B=window.getSize();switch(F.position.x){case"left":C.x=E+v;break;case"right":C.x=E+v+G.offsetWidth;break;default:C.x=E+((G==document.body?B.x:G.offsetWidth)/2)+v;break}switch(F.position.y){case"top":C.y=z+x;break;case"bottom":C.y=z+x+G.offsetHeight;break;default:C.y=z+((G==document.body?B.y:G.offsetHeight)/2)+x;break}if(F.edge){var L={};switch(F.edge.x){case"left":L.x=0;break;case"right":L.x=-y.x-y.computedRight-y.computedLeft;break;default:L.x=-(y.totalWidth/2);break}switch(F.edge.y){case"top":L.y=0;break;case"bottom":L.y=-y.y-y.computedTop-y.computedBottom;break;default:L.y=-(y.totalHeight/2);break}C.x+=L.x;C.y+=L.y}C={left:((C.x>=0||H||F.allowNegative)?C.x:0).toInt(),top:((C.y>=0||H||F.allowNegative)?C.y:0).toInt()};var D={left:"x",top:"y"};["minimum","maximum"].each(function(c){["left","top"].each(function(e){var d=F[c]?F[c][D[e]]:null;if(d!=null&&C[e]<d){C[e]=d}})});if(G.getStyle("position")=="fixed"||F.relFixedPosition){var A=window.getScroll();C.top+=A.y;C.left+=A.x}if(F.ignoreScroll){var w=G.getScroll();C.top-=w.y;C.left-=w.x}if(F.ignoreMargins){C.left+=(F.edge.x=="right"?y["margin-right"]:F.edge.x=="center"?-y["margin-left"]+((y["margin-right"]+y["margin-left"])/2):-y["margin-left"]);C.top+=(F.edge.y=="bottom"?y["margin-bottom"]:F.edge.y=="center"?-y["margin-top"]+((y["margin-bottom"]+y["margin-top"])/2):-y["margin-top"])}C.left=Math.ceil(C.left);C.top=Math.ceil(C.top);if(F.returnPos){return C}else{this.setStyles(C)}return this}})})();Element.implement({isDisplayed:function(){return this.getStyle("display")!="none"},isVisible:function(){var d=this.offsetWidth,c=this.offsetHeight;return(d==0&&c==0)?false:(d>0&&c>0)?true:this.isDisplayed()},toggle:function(){return this[this.isDisplayed()?"hide":"show"]()},hide:function(){var c;try{if((c=this.getStyle("display"))=="none"){c=null}}catch(d){}return this.store("originalDisplay",c||"block").setStyle("display","none")},show:function(b){return this.setStyle("display",b||this.retrieve("originalDisplay")||"block")},swapClass:function(d,c){return this.removeClass(d).addClass(c)}});if(!window.Form){window.Form={}}(function(){Form.Request=new Class({Binds:["onSubmit","onFormValidate"],Implements:[Options,Events,Class.Occlude],options:{requestOptions:{evalScripts:true,useSpinner:true,emulation:false,link:"ignore"},extraData:{},resetForm:true},property:"form.request",initialize:function(d,f,e){this.element=document.id(d);if(this.occlude()){return this.occluded}this.update=document.id(f);this.setOptions(e);this.makeRequest();if(this.options.resetForm){this.request.addEvent("success",function(){$try(function(){this.element.reset()}.bind(this));if(window.OverText){OverText.update()}}.bind(this))}this.attach()},toElement:function(){return this.element},makeRequest:function(){this.request=new Request.HTML($merge({url:this.element.get("action"),update:this.update,emulation:false,spinnerTarget:this.element,method:this.element.get("method")||"post"},this.options.requestOptions)).addEvents({success:function(c,d){["success","complete"].each(function(a){this.fireEvent(a,[this.update,c,d])},this)}.bind(this),failure:function(b){this.fireEvent("failure",b)}.bind(this),exception:function(){this.fireEvent("failure",xhr)}.bind(this)})},attach:function(d){d=$pick(d,true);method=d?"addEvent":"removeEvent";var c=this.element.retrieve("validator");if(c){c[method]("onFormValidate",this.onFormValidate)}if(!c||!d){this.element[method]("submit",this.onSubmit)}},detach:function(){this.attach(false)},enable:function(){this.attach()},disable:function(){this.detach()},onFormValidate:function(d,e,f){if(d||!fv.options.stopOnFailure){if(f&&f.stop){f.stop()}this.send()}},onSubmit:function(b){if(this.element.retrieve("validator")){this.detach();this.addFormEvent();return}b.stop();this.send()},send:function(){var c=this.element.toQueryString().trim();var d=$H(this.options.extraData).toQueryString();if(c){c+="&"+d}else{c=d}this.fireEvent("send",[this.element,c]);this.request.send({data:c});return this}});Element.Properties.formRequest={set:function(){var e=Array.link(arguments,{options:Object.type,update:Element.type,updateId:String.type});var f=e.update||e.updateId;var d=this.retrieve("form.request");if(f){if(d){d.update=document.id(f)}this.store("form.request:update",f)}if(e.options){if(d){d.setOptions(e.options)}this.store("form.request:options",e.options)}return this},get:function(){var d=Array.link(arguments,{options:Object.type,update:Element.type,updateId:String.type});var c=d.update||d.updateId;if(d.options||c||!this.retrieve("form.request")){if(d.options||!this.retrieve("form.request:options")){this.set("form.request",d.options)}if(c){this.set("form.request",c)}this.store("form.request",new Form.Request(this,this.retrieve("form.request:update"),this.retrieve("form.request:options")))}return this.retrieve("form.request")}};Element.implement({formUpdate:function(c,d){this.get("form.request",c,d).send();return this}})})();Form.Request.Append=new Class({Extends:Form.Request,options:{useReveal:true,revealOptions:{},inject:"bottom"},makeRequest:function(){this.request=new Request.HTML($merge({url:this.element.get("action"),method:this.element.get("method")||"post",spinnerTarget:this.element},this.options.requestOptions,{evalScripts:false})).addEvents({success:function(h,k,l,j){var o;var n=Elements.from(l);if(n.length==1){o=n[0]}else{o=new Element("div",{styles:{display:"none"}}).adopt(n)}o.inject(this.update,this.options.inject);if(this.options.requestOptions.evalScripts){$exec(j)}this.fireEvent("beforeEffect",o);var m=function(){this.fireEvent("success",[o,this.update,h,k,l,j])}.bind(this);if(this.options.useReveal){o.get("reveal",this.options.revealOptions).chain(m);o.reveal()}else{m()}}.bind(this),failure:function(b){this.fireEvent("failure",b)}.bind(this)})}});if(!window.Form){window.Form={}}var InputValidator=new Class({Implements:[Options],options:{errorMsg:"Validation failed.",test:function(b){return true}},initialize:function(c,d){this.setOptions(d);this.className=c},test:function(c,d){if(document.id(c)){return this.options.test(document.id(c),d||this.getProps(c))}else{return false}},getError:function(f,e){var d=this.options.errorMsg;if($type(d)=="function"){d=d(document.id(f),e||this.getProps(f))}return d},getProps:function(b){if(!document.id(b)){return{}}return b.get("validatorProps")}});Element.Properties.validatorProps={set:function(b){return this.eliminate("validatorProps").store("validatorProps",b)},get:function(e){if(e){this.set(e)}if(this.retrieve("validatorProps")){return this.retrieve("validatorProps")}if(this.getProperty("validatorProps")){try{this.store("validatorProps",JSON.decode(this.getProperty("validatorProps")))}catch(f){return{}}}else{var d=this.get("class").split(" ").filter(function(a){return a.test(":")});if(!d.length){this.store("validatorProps",{})}else{e={};d.each(function(c){var b=c.split(":");if(b[1]){try{e[b[0]]=JSON.decode(b[1])}catch(a){}}});this.store("validatorProps",e)}}return this.retrieve("validatorProps")}};Form.Validator=new Class({Implements:[Options,Events],Binds:["onSubmit"],options:{fieldSelectors:"input, select, textarea",ignoreHidden:true,ignoreDisabled:true,useTitles:false,evaluateOnSubmit:true,evaluateFieldsOnBlur:true,evaluateFieldsOnChange:true,serial:true,stopOnFailure:true,warningPrefix:function(){return Form.Validator.getMsg("warningPrefix")||"Warning: "},errorPrefix:function(){return Form.Validator.getMsg("errorPrefix")||"Error: "}},initialize:function(c,d){this.setOptions(d);this.element=document.id(c);this.element.store("validator",this);this.warningPrefix=$lambda(this.options.warningPrefix)();this.errorPrefix=$lambda(this.options.errorPrefix)();if(this.options.evaluateOnSubmit){this.element.addEvent("submit",this.onSubmit)}if(this.options.evaluateFieldsOnBlur||this.options.evaluateFieldsOnChange){this.watchFields(this.getFields())}},toElement:function(){return this.element},getFields:function(){return(this.fields=this.element.getElements(this.options.fieldSelectors))},watchFields:function(b){b.each(function(a){if(this.options.evaluateFieldsOnBlur){a.addEvent("blur",this.validationMonitor.pass([a,false],this))}if(this.options.evaluateFieldsOnChange){a.addEvent("change",this.validationMonitor.pass([a,true],this))}},this)},validationMonitor:function(){$clear(this.timer);this.timer=this.validateField.delay(50,this,arguments)},onSubmit:function(b){if(!this.validate(b)&&b){b.preventDefault()}else{this.reset()}},reset:function(){this.getFields().each(this.resetField,this);return this},validate:function(c){var d=this.getFields().map(function(a){return this.validateField(a,true)},this).every(function(a){return a});this.fireEvent("formValidate",[d,this.element,c]);if(this.options.stopOnFailure&&!d&&c){c.preventDefault()}return d},validateField:function(j,r){if(this.paused){return true}j=document.id(j);var o=!j.hasClass("validation-failed");var m,k;if(this.options.serial&&!r){m=this.element.getElement(".validation-failed");k=this.element.getElement(".warning")}if(j&&(!m||r||j.hasClass("validation-failed")||(m&&!this.options.serial))){var p=j.className.split(" ").some(function(a){return this.getValidator(a)},this);var l=[];j.className.split(" ").each(function(a){if(a&&!this.test(a,j)){l.include(a)}},this);o=l.length===0;if(p&&!j.hasClass("warnOnly")){if(o){j.addClass("validation-passed").removeClass("validation-failed");this.fireEvent("elementPass",j)}else{j.addClass("validation-failed").removeClass("validation-passed");this.fireEvent("elementFail",[j,l])}}if(!k){var n=j.className.split(" ").some(function(a){if(a.test("^warn-")||j.hasClass("warnOnly")){return this.getValidator(a.replace(/^warn-/,""))}else{return null}},this);j.removeClass("warning");var q=j.className.split(" ").map(function(a){if(a.test("^warn-")||j.hasClass("warnOnly")){return this.test(a.replace(/^warn-/,""),j,true)}else{return null}},this)}}return o},test:function(f,j,h){j=document.id(j);if((this.options.ignoreHidden&&!j.isVisible())||(this.options.ignoreDisabled&&j.get("disabled"))){return true}var g=this.getValidator(f);if(j.hasClass("ignoreValidation")){return true}h=$pick(h,false);if(j.hasClass("warnOnly")){h=true}var k=g?g.test(j):true;if(g&&j.isVisible()){this.fireEvent("elementValidate",[k,j,f,h])}if(h){return true}return k},resetField:function(b){b=document.id(b);if(b){b.className.split(" ").each(function(a){if(a.test("^warn-")){a=a.replace(/^warn-/,"")}b.removeClass("validation-failed");b.removeClass("warning");b.removeClass("validation-passed")},this)}return this},stop:function(){this.paused=true;return this},start:function(){this.paused=false;return this},ignoreField:function(d,c){d=document.id(d);if(d){this.enforceField(d);if(c){d.addClass("warnOnly")}else{d.addClass("ignoreValidation")}}return this},enforceField:function(b){b=document.id(b);if(b){b.removeClass("warnOnly").removeClass("ignoreValidation")}return this}});Form.Validator.getMsg=function(b){return MooTools.lang.get("Form.Validator",b)};Form.Validator.adders={validators:{},add:function(c,d){this.validators[c]=new InputValidator(c,d);if(!this.initialize){this.implement({validators:this.validators})}},addAllThese:function(b){$A(b).each(function(a){this.add(a[0],a[1])},this)},getValidator:function(b){return this.validators[b.split(":")[0]]}};$extend(Form.Validator,Form.Validator.adders);Form.Validator.implement(Form.Validator.adders);Form.Validator.add("IsEmpty",{errorMsg:false,test:function(b){if(b.type=="select-one"||b.type=="select"){return !(b.selectedIndex>=0&&b.options[b.selectedIndex].value!="")}else{return((b.get("value")==null)||(b.get("value").length==0))}}});Form.Validator.addAllThese([["required",{errorMsg:function(){return Form.Validator.getMsg("required")},test:function(b){return !Form.Validator.getValidator("IsEmpty").test(b)}}],["minLength",{errorMsg:function(d,c){if($type(c.minLength)){return Form.Validator.getMsg("minLength").substitute({minLength:c.minLength,length:d.get("value").length})}else{return""}},test:function(d,c){if($type(c.minLength)){return(d.get("value").length>=$pick(c.minLength,0))}else{return true}}}],["maxLength",{errorMsg:function(d,c){if($type(c.maxLength)){return Form.Validator.getMsg("maxLength").substitute({maxLength:c.maxLength,length:d.get("value").length})}else{return""}},test:function(d,c){return(d.get("value").length<=$pick(c.maxLength,10000))}}],["validate-integer",{errorMsg:Form.Validator.getMsg.pass("integer"),test:function(b){return Form.Validator.getValidator("IsEmpty").test(b)||(/^(-?[1-9]\d*|0)$/).test(b.get("value"))}}],["validate-numeric",{errorMsg:Form.Validator.getMsg.pass("numeric"),test:function(b){return Form.Validator.getValidator("IsEmpty").test(b)||(/^-?(?:0$0(?=\d*\.)|[1-9]|0)\d*(\.\d+)?$/).test(b.get("value"))}}],["validate-digits",{errorMsg:Form.Validator.getMsg.pass("digits"),test:function(b){return Form.Validator.getValidator("IsEmpty").test(b)||(/^[\d() .:\-\+#]+$/.test(b.get("value")))}}],["validate-alpha",{errorMsg:Form.Validator.getMsg.pass("alpha"),test:function(b){return Form.Validator.getValidator("IsEmpty").test(b)||(/^[a-zA-Z]+$/).test(b.get("value"))}}],["validate-alphanum",{errorMsg:Form.Validator.getMsg.pass("alphanum"),test:function(b){return Form.Validator.getValidator("IsEmpty").test(b)||!(/\W/).test(b.get("value"))}}],["validate-date",{errorMsg:function(e,d){if(Date.parse){var f=d.dateFormat||"%x";return Form.Validator.getMsg("dateSuchAs").substitute({date:new Date().format(f)})}else{return Form.Validator.getMsg("dateInFormatMDY")}},test:function(h,d){if(Form.Validator.getValidator("IsEmpty").test(h)){return true}var j;if(Date.parse){var k=d.dateFormat||"%x";j=Date.parse(h.get("value"));var l=j.format(k);if(l!="invalid date"){h.set("value",l)}return !isNaN(j)}else{var m=/^(\d{2})\/(\d{2})\/(\d{4})$/;if(!m.test(h.get("value"))){return false}j=new Date(h.get("value").replace(m,"$1/$2/$3"));return(parseInt(RegExp.$1,10)==(1+j.getMonth()))&&(parseInt(RegExp.$2,10)==j.getDate())&&(parseInt(RegExp.$3,10)==j.getFullYear())}}}],["validate-email",{errorMsg:Form.Validator.getMsg.pass("email"),test:function(b){return Form.Validator.getValidator("IsEmpty").test(b)||(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i).test(b.get("value"))}}],["validate-url",{errorMsg:Form.Validator.getMsg.pass("url"),test:function(b){return Form.Validator.getValidator("IsEmpty").test(b)||(/^(https?|ftp|rmtp|mms):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i).test(b.get("value"))}}],["validate-currency-dollar",{errorMsg:Form.Validator.getMsg.pass("currencyDollar"),test:function(b){return Form.Validator.getValidator("IsEmpty").test(b)||(/^\$?\-?([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(b.get("value"))}}],["validate-one-required",{errorMsg:Form.Validator.getMsg.pass("oneRequired"),test:function(e,d){var f=document.id(d["validate-one-required"])||e.getParent();return f.getElements("input").some(function(a){if(["checkbox","radio"].contains(a.get("type"))){return a.get("checked")}return a.get("value")})}}]]);Element.Properties.validator={set:function(d){var c=this.retrieve("validator");if(c){c.setOptions(d)}return this.store("validator:options")},get:function(b){if(b||!this.retrieve("validator")){if(b||!this.retrieve("validator:options")){this.set("validator",b)}this.store("validator",new Form.Validator(this,this.retrieve("validator:options")))}return this.retrieve("validator")}};Element.implement({validate:function(b){this.set("validator",b);return this.get("validator",b).validate()}});var FormValidator=Form.Validator;Form.Validator.Inline=new Class({Extends:Form.Validator,options:{scrollToErrorsOnSubmit:true,scrollFxOptions:{transition:"quad:out",offset:{y:-20}}},initialize:function(c,d){this.parent(c,d);this.addEvent("onElementValidate",function(b,j,k,a){var l=this.getValidator(k);if(!b&&l.getError(j)){if(a){j.addClass("warning")}var m=this.makeAdvice(k,j,l.getError(j),a);this.insertAdvice(m,j);this.showAdvice(k,j)}else{this.hideAdvice(k,j)}})},makeAdvice:function(n,l,o,k){var m=(k)?this.warningPrefix:this.errorPrefix;m+=(this.options.useTitles)?l.title||o:o;var j=(k)?"warning-advice":"validation-advice";var h=this.getAdvice(n,l);if(h){h=h.set("html",m)}else{h=new Element("div",{html:m,styles:{display:"none"},id:"advice-"+n+"-"+this.getFieldId(l)}).addClass(j)}l.store("advice-"+n,h);return h},getFieldId:function(b){return b.id?b.id:b.id="input_"+b.name},showAdvice:function(d,f){var e=this.getAdvice(d,f);if(e&&!f.retrieve(this.getPropName(d))&&(e.getStyle("display")=="none"||e.getStyle("visiblity")=="hidden"||e.getStyle("opacity")==0)){f.store(this.getPropName(d),true);if(e.reveal){e.reveal()}else{e.setStyle("display","block")}}},hideAdvice:function(d,f){var e=this.getAdvice(d,f);if(e&&f.retrieve(this.getPropName(d))){f.store(this.getPropName(d),false);if(e.dissolve){e.dissolve()}else{e.setStyle("display","none")}}},getPropName:function(b){return"advice"+b},resetField:function(b){b=document.id(b);if(!b){return this}this.parent(b);b.className.split(" ").each(function(a){this.hideAdvice(a,b)},this);return this},getAllAdviceMessages:function(g,h){var e=[];if(g.hasClass("ignoreValidation")&&!h){return e}var f=g.className.split(" ").some(function(a){var c=a.test("^warn-")||g.hasClass("warnOnly");if(c){a=a.replace(/^warn-/,"")}var b=this.getValidator(a);if(!b){return}e.push({message:b.getError(g),warnOnly:c,passed:b.test(),validator:b})},this);return e},getAdvice:function(d,c){return c.retrieve("advice-"+d)},insertAdvice:function(e,f){var d=f.get("validatorProps");if(!d.msgPos||!document.id(d.msgPos)){if(f.type.toLowerCase()=="radio"){f.getParent().adopt(e)}else{e.inject(document.id(f),"after")}}else{document.id(d.msgPos).grab(e)}},validateField:function(j,k){var h=this.parent(j,k);if(this.options.scrollToErrorsOnSubmit&&!h){var g=document.id(this).getElement(".validation-failed");var m=document.id(this).getParent();while(m!=document.body&&m.getScrollSize().y==m.getSize().y){m=m.getParent()}var l=m.retrieve("fvScroller");if(!l&&window.Fx&&Fx.Scroll){l=new Fx.Scroll(m,this.options.scrollFxOptions);m.store("fvScroller",l)}if(g){if(l){l.toElement(g)}else{m.scrollTo(m.getScroll().x,g.getPosition(m).y-20)}}}return h}});Form.Validator.addAllThese([["validate-enforce-oncheck",{test:function(e,d){if(e.checked){var f=e.getParent("form").retrieve("validator");if(!f){return true}(d.toEnforce||document.id(d.enforceChildrenOf).getElements("input, select, textarea")).map(function(a){f.enforceField(a)})}return true}}],["validate-ignore-oncheck",{test:function(e,d){if(e.checked){var f=e.getParent("form").retrieve("validator");if(!f){return true}(d.toIgnore||document.id(d.ignoreChildrenOf).getElements("input, select, textarea")).each(function(a){f.ignoreField(a);f.resetField(a)})}return true}}],["validate-nospace",{errorMsg:function(){return Form.Validator.getMsg("noSpace")},test:function(d,c){return !d.get("value").test(/\s/)}}],["validate-toggle-oncheck",{test:function(e,h){var g=e.getParent("form").retrieve("validator");if(!g){return true}var f=h.toToggle||document.id(h.toToggleChildrenOf).getElements("input, select, textarea");if(!e.checked){f.each(function(a){g.ignoreField(a);g.resetField(a)})}else{f.each(function(a){g.enforceField(a)})}return true}}],["validate-reqchk-bynode",{errorMsg:function(){return Form.Validator.getMsg("reqChkByNode")},test:function(d,c){return(document.id(c.nodeId).getElements(c.selector||"input[type=checkbox], input[type=radio]")).some(function(a){return a.checked})}}],["validate-required-check",{errorMsg:function(d,c){return c.useTitle?d.get("title"):Form.Validator.getMsg("requiredChk")},test:function(d,c){return !!d.checked}}],["validate-reqchk-byname",{errorMsg:function(d,c){return Form.Validator.getMsg("reqChkByName").substitute({label:c.label||d.get("type")})},test:function(f,j){var k=j.groupName||f.get("name");var g=$$(document.getElementsByName(k)).some(function(a,b){return a.checked});var h=f.getParent("form").retrieve("validator");if(g&&h){h.resetField(f)}return g}}],["validate-match",{errorMsg:function(d,c){return Form.Validator.getMsg("match").substitute({matchName:c.matchName||document.id(c.matchInput).get("name")})},test:function(e,h){var g=e.get("value");var f=document.id(h.matchInput)&&document.id(h.matchInput).get("value");return g&&f?g==f:true}}],["validate-after-date",{errorMsg:function(d,c){return Form.Validator.getMsg("afterDate").substitute({label:c.afterLabel||(c.afterElement?Form.Validator.getMsg("startDate"):Form.Validator.getMsg("currentDate"))})},test:function(e,h){var g=document.id(h.afterElement)?Date.parse(document.id(h.afterElement).get("value")):new Date();var f=Date.parse(e.get("value"));return f&&g?f>=g:true}}],["validate-before-date",{errorMsg:function(d,c){return Form.Validator.getMsg("beforeDate").substitute({label:c.beforeLabel||(c.beforeElement?Form.Validator.getMsg("endDate"):Form.Validator.getMsg("currentDate"))})},test:function(e,h){var g=Date.parse(e.get("value"));var f=document.id(h.beforeElement)?Date.parse(document.id(h.beforeElement).get("value")):new Date();return f&&g?f>=g:true}}],["validate-custom-required",{errorMsg:function(){return Form.Validator.getMsg("required")},test:function(d,c){return d.get("value")!=c.emptyValue}}],["validate-same-month",{errorMsg:function(f,e){var h=document.id(e.sameMonthAs)&&document.id(e.sameMonthAs).get("value");var g=f.get("value");if(g!=""){return Form.Validator.getMsg(h?"sameMonth":"startMonth")}},test:function(f,e){var g=Date.parse(f.get("value"));var h=Date.parse(document.id(e.sameMonthAs)&&document.id(e.sameMonthAs).get("value"));return g&&h?g.format("%B")==h.format("%B"):true}}],["validate-cc-num",{errorMsg:function(d){var c=d.get("value").ccNum.replace(/[^0-9]/g,"");return Form.Validator.getMsg("creditcard").substitute({length:c.length})},test:function(o){if(Form.Validator.getValidator("IsEmpty").test(o)){return true}var k=o.get("value");k=k.replace(/[^0-9]/g,"");var j=false;if(k.test(/^4[0-9]{12}([0-9]{3})?$/)){j="Visa"}else{if(k.test(/^5[1-5]([0-9]{14})$/)){j="Master Card"}else{if(k.test(/^3[47][0-9]{13}$/)){j="American Express"}else{if(k.test(/^6011[0-9]{12}$/)){j="Discover"}}}}if(j){var n=0;var m=0;for(var h=k.length-1;h>=0;--h){m=k.charAt(h).toInt();if(m==0){continue}if((k.length-h)%2==0){m+=m}if(m>9){m=m.toString().charAt(0).toInt()+m.toString().charAt(1).toInt()}n+=m}if((n%10)==0){return true}}var l="";while(k!=""){l+=" "+k.substr(0,4);k=k.substr(4)}o.getParent("form").retrieve("validator").ignoreField(o);o.set("value",l.clean());o.getParent("form").retrieve("validator").enforceField(o);return false}}]]);var OverText=new Class({Implements:[Options,Events,Class.Occlude],Binds:["reposition","assert","focus","hide"],options:{element:"label",positionOptions:{position:"upperLeft",edge:"upperLeft",offset:{x:4,y:2}},poll:false,pollInterval:250,wrap:false},property:"OverText",initialize:function(c,d){this.element=document.id(c);if(this.occlude()){return this.occluded}this.setOptions(d);this.attach(this.element);OverText.instances.push(this);if(this.options.poll){this.poll()}return this},toElement:function(){return this.element},attach:function(){var b=this.options.textOverride||this.element.get("alt")||this.element.get("title");if(!b){return}this.text=new Element(this.options.element,{"class":"overTxtLabel",styles:{lineHeight:"normal",position:"absolute",cursor:"text"},html:b,events:{click:this.hide.pass(this.options.element=="label",this)}}).inject(this.element,"after");if(this.options.element=="label"){if(!this.element.get("id")){this.element.set("id","input_"+new Date().getTime())}this.text.set("for",this.element.get("id"))}if(this.options.wrap){this.textHolder=new Element("div",{styles:{lineHeight:"normal",position:"relative"},"class":"overTxtWrapper"}).adopt(this.text).inject(this.element,"before")}this.element.addEvents({focus:this.focus,blur:this.assert,change:this.assert}).store("OverTextDiv",this.text);window.addEvent("resize",this.reposition.bind(this));this.assert(true);this.reposition()},wrap:function(){if(this.options.element=="label"){if(!this.element.get("id")){this.element.set("id","input_"+new Date().getTime())}this.text.set("for",this.element.get("id"))}},startPolling:function(){this.pollingPaused=false;return this.poll()},poll:function(d){if(this.poller&&!d){return this}var c=function(){if(!this.pollingPaused){this.assert(true)}}.bind(this);if(d){$clear(this.poller)}else{this.poller=c.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.hide()},hide:function(f,e){if(this.text&&(this.text.isDisplayed()&&(!this.element.get("disabled")||e))){this.text.hide();this.fireEvent("textHide",[this.text,this.element]);this.pollingPaused=true;try{if(!f){this.element.fireEvent("focus")}this.element.focus()}catch(d){}}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},assert:function(b){this[this.test()?"show":"hide"](b)},test:function(){var b=this.element.get("value");return !b},reposition:function(){this.assert(true);if(!this.element.isVisible()){return this.stopPolling().hide()}if(this.text&&this.test()){this.text.position($merge(this.options.positionOptions,{relativeTo:this.element}))}return this}});OverText.instances=[];$extend(OverText,{each:function(b){return OverText.instances.map(function(d,a){if(d.element&&d.text){return b.apply(OverText,[d,a])}return null})},update:function(){return OverText.each(function(b){return b.reposition()})},hideAll:function(){return OverText.each(function(b){return b.hide(true,true)})},showAll:function(){return OverText.each(function(b){return b.show()})}});if(window.Fx&&Fx.Reveal){Fx.Reveal.implement({hideInputs:Browser.Engine.trident?"select, input, textarea, object, embed, .overTxtLabel":false})}Fx.Elements=new Class({Extends:Fx.CSS,initialize:function(c,d){this.elements=this.subject=$$(c);this.parent(d)},compute:function(m,l,k){var q={};for(var p in m){var s=m[p],o=l[p],n=q[p]={};for(var r in s){n[r]=this.parent(s[r],o[r],k)}}return q},set:function(e){for(var h in e){var f=e[h];for(var g in f){this.render(this.elements[h],g,f[g],this.options.unit)}}return this},start:function(q){if(!this.check(q)){return this}var l={},k={};for(var p in q){var n=q[p],s=l[p]={},m=k[p]={};for(var r in n){var o=this.prepare(this.elements[p],r,n[r]);s[r]=o.from;m[r]=o.to}}return this.parent(l,k)}});var Accordion=Fx.Accordion=new Class({Extends:Fx.Elements,options:{display:0,show:false,height:true,width:false,opacity:true,alwaysHide:false,trigger:"click",initialDisplayFx:true,returnHeightToAuto:true},initialize:function(){var f=Array.link(arguments,{container:Element.type,options:Object.type,togglers:$defined,elements:$defined});this.parent(f.elements,f.options);this.togglers=$$(f.togglers);this.container=document.id(f.container);this.previous=-1;this.internalChain=new Chain();if(this.options.alwaysHide){this.options.wait=true}if($chk(this.options.show)){this.options.display=false;this.previous=this.options.show}if(this.options.start){this.options.display=false;this.options.show=false}this.effects={};if(this.options.opacity){this.effects.opacity="fullOpacity"}if(this.options.width){this.effects.width=this.options.fixedWidth?"fullWidth":"offsetWidth"}if(this.options.height){this.effects.height=this.options.fixedHeight?"fullHeight":"scrollHeight"}for(var d=0,e=this.togglers.length;d<e;d++){this.addSection(this.togglers[d],this.elements[d])}this.elements.each(function(b,c){if(this.options.show===c){this.fireEvent("active",[this.togglers[c],b])}else{for(var a in this.effects){b.setStyle(a,0)}}},this);if($chk(this.options.display)){this.display(this.options.display,this.options.initialDisplayFx)}this.addEvent("complete",this.internalChain.callChain.bind(this.internalChain))},addSection:function(k,m){k=document.id(k);m=document.id(m);var j=this.togglers.contains(k);this.togglers.include(k);this.elements.include(m);var h=this.togglers.indexOf(k);var g=this.display.bind(this,h);k.store("accordion:display",g);k.addEvent(this.options.trigger,g);if(this.options.height){m.setStyles({"padding-top":0,"border-top":"none","padding-bottom":0,"border-bottom":"none"})}if(this.options.width){m.setStyles({"padding-left":0,"border-left":"none","padding-right":0,"border-right":"none"})}m.fullOpacity=1;if(this.options.fixedWidth){m.fullWidth=this.options.fixedWidth}if(this.options.fixedHeight){m.fullHeight=this.options.fixedHeight}m.setStyle("overflow","hidden");if(!j){for(var l in this.effects){m.setStyle(l,0)}}return this},detach:function(){this.togglers.each(function(b){b.removeEvent(this.options.trigger,b.retrieve("accordion:display"))},this)},display:function(g,f){if(!this.check(g,f)){return this}f=$pick(f,true);if(this.options.returnHeightToAuto){var j=this.elements[this.previous];if(j&&!this.selfHidden){for(var k in this.effects){j.setStyle(k,j[this.effects[k]])}}}g=($type(g)=="element")?this.elements.indexOf(g):g;if((this.timer&&this.options.wait)||(g===this.previous&&!this.options.alwaysHide)){return this}this.previous=g;var h={};this.elements.each(function(b,c){h[c]={};var d;if(c!=g){d=true}else{if(this.options.alwaysHide&&((b.offsetHeight>0&&this.options.height)||b.offsetWidth>0&&this.options.width)){d=true;this.selfHidden=true}}this.fireEvent(d?"background":"active",[this.togglers[c],b]);for(var a in this.effects){h[c][a]=d?0:b[this.effects[a]]}},this);this.internalChain.chain(function(){if(this.options.returnHeightToAuto&&!this.selfHidden){var a=this.elements[g];if(a){a.setStyle("height","auto")}}}.bind(this));return f?this.start(h):this.set(h)}});Fx.Move=new Class({Extends:Fx.Morph,options:{relativeTo:document.body,position:"center",edge:false,offset:{x:0,y:0}},start:function(b){return this.parent(this.element.position($merge(this.options,b,{returnPos:true})))}});Element.Properties.move={set:function(d){var c=this.retrieve("move");if(c){c.cancel()}return this.eliminate("move").store("move:options",$extend({link:"cancel"},d))},get:function(b){if(b||!this.retrieve("move")){if(b||!this.retrieve("move:options")){this.set("move",b)}this.store("move",new Fx.Move(this,this.retrieve("move:options")))}return this.retrieve("move")}};Element.implement({move:function(b){this.get("move").start(b);return this}});Fx.Reveal=new Class({Extends:Fx.Morph,options:{link:"cancel",styles:["padding","border","margin"],transitionOpacity:!Browser.Engine.trident4,mode:"vertical",display:"block",hideInputs:Browser.Engine.trident?"select, input, textarea, object, embed":false},dissolve:function(){try{if(!this.hiding&&!this.showing){if(this.element.getStyle("display")!="none"){this.hiding=true;this.showing=false;this.hidden=true;this.cssText=this.element.style.cssText;var g=this.element.getComputedSize({styles:this.options.styles,mode:this.options.mode});this.element.setStyle("display","block");if(this.options.transitionOpacity){g.opacity=1}var e={};$each(g,function(a,b){e[b]=[a,0]},this);this.element.setStyle("overflow","hidden");var f=this.options.hideInputs?this.element.getElements(this.options.hideInputs):null;this.$chain.unshift(function(){if(this.hidden){this.hiding=false;$each(g,function(a,b){g[b]=a},this);this.element.style.cssText=this.cssText;this.element.setStyle("display","none");if(f){f.setStyle("visibility","visible")}}this.fireEvent("hide",this.element);this.callChain()}.bind(this));if(f){f.setStyle("visibility","hidden")}this.start(e)}else{this.callChain.delay(10,this);this.fireEvent("complete",this.element);this.fireEvent("hide",this.element)}}else{if(this.options.link=="chain"){this.chain(this.dissolve.bind(this))}else{if(this.options.link=="cancel"&&!this.hiding){this.cancel();this.dissolve()}}}}catch(h){this.hiding=false;this.element.setStyle("display","none");this.callChain.delay(10,this);this.fireEvent("complete",this.element);this.fireEvent("hide",this.element)}return this},reveal:function(){try{if(!this.showing&&!this.hiding){if(this.element.getStyle("display")=="none"||this.element.getStyle("visiblity")=="hidden"||this.element.getStyle("opacity")==0){this.showing=true;this.hiding=this.hidden=false;var g;this.cssText=this.element.style.cssText;this.element.measure(function(){g=this.element.getComputedSize({styles:this.options.styles,mode:this.options.mode})}.bind(this));$each(g,function(a,b){g[b]=a});if($chk(this.options.heightOverride)){g.height=this.options.heightOverride.toInt()}if($chk(this.options.widthOverride)){g.width=this.options.widthOverride.toInt()}if(this.options.transitionOpacity){this.element.setStyle("opacity",0);g.opacity=1}var e={height:0,display:this.options.display};$each(g,function(a,b){e[b]=0});this.element.setStyles($merge(e,{overflow:"hidden"}));var f=this.options.hideInputs?this.element.getElements(this.options.hideInputs):null;if(f){f.setStyle("visibility","hidden")}this.start(g);this.$chain.unshift(function(){this.element.style.cssText=this.cssText;this.element.setStyle("display",this.options.display);if(!this.hidden){this.showing=false}if(f){f.setStyle("visibility","visible")}this.callChain();this.fireEvent("show",this.element)}.bind(this))}else{this.callChain();this.fireEvent("complete",this.element);this.fireEvent("show",this.element)}}else{if(this.options.link=="chain"){this.chain(this.reveal.bind(this))}else{if(this.options.link=="cancel"&&!this.showing){this.cancel();this.reveal()}}}}catch(h){this.element.setStyles({display:this.options.display,visiblity:"visible",opacity:1});this.showing=false;this.callChain.delay(10,this);this.fireEvent("complete",this.element);this.fireEvent("show",this.element)}return this},toggle:function(){if(this.element.getStyle("display")=="none"||this.element.getStyle("visiblity")=="hidden"||this.element.getStyle("opacity")==0){this.reveal()}else{this.dissolve()}return this},cancel:function(){this.parent.apply(this,arguments);this.element.style.cssText=this.cssText;this.hidding=false;this.showing=false}});Element.Properties.reveal={set:function(d){var c=this.retrieve("reveal");if(c){c.cancel()}return this.eliminate("reveal").store("reveal:options",d)},get:function(b){if(b||!this.retrieve("reveal")){if(b||!this.retrieve("reveal:options")){this.set("reveal",b)}this.store("reveal",new Fx.Reveal(this,this.retrieve("reveal:options")))}return this.retrieve("reveal")}};Element.Properties.dissolve=Element.Properties.reveal;Element.implement({reveal:function(b){this.get("reveal",b).reveal();return this},dissolve:function(b){this.get("reveal",b).dissolve();return this},nix:function(){var b=Array.link(arguments,{destroy:Boolean.type,options:Object.type});this.get("reveal",b.options).dissolve().chain(function(){this[b.destroy?"destroy":"dispose"]()}.bind(this));return this},wink:function(){var c=Array.link(arguments,{duration:Number.type,options:Object.type});var d=this.get("reveal",c.options);d.reveal().chain(function(){(function(){d.dissolve()}).delay(c.duration||2000)})}});Fx.Scroll=new Class({Extends:Fx,options:{offset:{x:0,y:0},wheelStops:true},initialize:function(e,f){this.element=this.subject=document.id(e);this.parent(f);var g=this.cancel.bind(this,false);if($type(this.element)!="element"){this.element=document.id(this.element.getDocument().body)}var h=this.element;if(this.options.wheelStops){this.addEvent("start",function(){h.addEvent("mousewheel",g)},true);this.addEvent("complete",function(){h.removeEvent("mousewheel",g)},true)}},set:function(){var b=Array.flatten(arguments);if(Browser.Engine.gecko){b=[Math.round(b[0]),Math.round(b[1])]}this.element.scrollTo(b[0],b[1])},compute:function(f,d,e){return[0,1].map(function(a){return Fx.compute(f[a],d[a],e)})},start:function(o,k){if(!this.check(o,k)){return this}var m=this.element.getScrollSize(),h=this.element.getScroll(),n={x:o,y:k};for(var l in n){var j=m[l];if($chk(n[l])){n[l]=($type(n[l])=="number")?n[l]:j}else{n[l]=h[l]}n[l]+=this.options.offset[l]}return this.parent([h.x,h.y],[n.x,n.y])},toTop:function(){return this.start(false,0)},toLeft:function(){return this.start(0,false)},toRight:function(){return this.start("right",false)},toBottom:function(){return this.start(false,"bottom")},toElement:function(c){var d=document.id(c).getPosition(this.element);return this.start(d.x,d.y)},scrollIntoView:function(p,n,o){n=n?$splat(n):["x","y"];var k={};p=document.id(p);var m=p.getPosition(this.element);var j=p.getSize();var l=this.element.getScroll();var r=this.element.getSize();var q={x:m.x+j.x,y:m.y+j.y};["x","y"].each(function(a){if(n.contains(a)){if(q[a]>l[a]+r[a]){k[a]=q[a]-r[a]}if(m[a]<l[a]){k[a]=m[a]}}if(k[a]==null){k[a]=l[a]}if(o&&o[a]){k[a]=k[a]+o[a]}},this);if(k.x!=l.x||k.y!=l.y){this.start(k.x,k.y)}return this},scrollToCenter:function(p,n,o){n=n?$splat(n):["x","y"];p=$(p);var k={},m=p.getPosition(this.element),j=p.getSize(),l=this.element.getScroll(),r=this.element.getSize(),q={x:m.x+j.x,y:m.y+j.y};["x","y"].each(function(a){if(n.contains(a)){k[a]=m[a]-(r[a]-j[a])/2}if(k[a]==null){k[a]=l[a]}if(o&&o[a]){k[a]=k[a]+o[a]}},this);if(k.x!=l.x||k.y!=l.y){this.start(k.x,k.y)}return this}});Fx.Slide=new Class({Extends:Fx,options:{mode:"vertical",hideOverflow:true},initialize:function(e,f){this.addEvent("complete",function(){this.open=(this.wrapper["offset"+this.layout.capitalize()]!=0);if(this.open&&Browser.Engine.webkit419){this.element.dispose().inject(this.wrapper)}},true);this.element=this.subject=document.id(e);this.parent(f);var g=this.element.retrieve("wrapper");var h=this.element.getStyles("margin","position","overflow");if(this.options.hideOverflow){h=$extend(h,{overflow:"hidden"})}this.wrapper=g||new Element("div",{styles:h}).wraps(this.element);this.element.store("wrapper",this.wrapper).setStyle("margin",0);this.now=[];this.open=true},vertical:function(){this.margin="margin-top";this.layout="height";this.offset=this.element.offsetHeight},horizontal:function(){this.margin="margin-left";this.layout="width";this.offset=this.element.offsetWidth},set:function(b){this.element.setStyle(this.margin,b[0]);this.wrapper.setStyle(this.layout,b[1]);return this},compute:function(f,d,e){return[0,1].map(function(a){return Fx.compute(f[a],d[a],e)})},start:function(h,m){if(!this.check(h,m)){return this}this[m||this.options.mode]();var n=this.element.getStyle(this.margin).toInt();var o=this.wrapper.getStyle(this.layout).toInt();var j=[[n,o],[0,this.offset]];var k=[[n,o],[-this.offset,0]];var l;switch(h){case"in":l=j;break;case"out":l=k;break;case"toggle":l=(o==0)?j:k}return this.parent(l[0],l[1])},slideIn:function(b){return this.start("in",b)},slideOut:function(b){return this.start("out",b)},hide:function(b){this[b||this.options.mode]();this.open=false;return this.set([-this.offset,0])},show:function(b){this[b||this.options.mode]();this.open=true;return this.set([0,this.offset])},toggle:function(b){return this.start("toggle",b)}});Element.Properties.slide={set:function(c){var d=this.retrieve("slide");if(d){d.cancel()}return this.eliminate("slide").store("slide:options",$extend({link:"cancel"},c))},get:function(b){if(b||!this.retrieve("slide")){if(b||!this.retrieve("slide:options")){this.set("slide",b)}this.store("slide",new Fx.Slide(this,this.retrieve("slide:options")))}return this.retrieve("slide")}};Element.implement({slide:function(j,h){j=j||"toggle";var f=this.get("slide"),g;switch(j){case"hide":f.hide(h);break;case"show":f.show(h);break;case"toggle":var k=this.retrieve("slide:flag",f.open);f[k?"slideOut":"slideIn"](h);this.store("slide:flag",!k);g=true;break;default:f.start(j,h)}if(!g){this.eliminate("slide:flag")}return this}});var SmoothScroll=Fx.SmoothScroll=new Class({Extends:Fx.Scroll,initialize:function(e,h){h=h||document;this.doc=h.getDocument();var g=h.getWindow();this.parent(this.doc,e);this.links=$$(this.options.links||this.doc.links);var f=g.location.href.match(/^[^#]*/)[0]+"#";this.links.each(function(a){if(a.href.indexOf(f)!=0){return}var b=a.href.substr(f.length);if(b){this.useLink(a,b)}},this);if(!Browser.Engine.webkit419){this.addEvent("complete",function(){g.location.hash=this.anchor},true)}},useLink:function(f,e){var d;f.addEvent("click",function(a){if(d!==false&&!d){d=document.id(e)||this.doc.getElement("a[name="+e+"]")}if(d){a.preventDefault();this.anchor=e;this.toElement(d).chain(function(){this.fireEvent("scrolledTo",[f,d])}.bind(this));f.blur()}}.bind(this))}});Fx.Sort=new Class({Extends:Fx.Elements,options:{mode:"vertical"},initialize:function(c,d){this.parent(c,d);this.elements.each(function(a){if(a.getStyle("position")=="static"){a.setStyle("position","relative")}});this.setDefaultOrder()},setDefaultOrder:function(){this.currentOrder=this.elements.map(function(c,d){return d})},sort:function(n){if($type(n)!="array"){return false}var j=0,r=0,p={},k={},o=this.options.mode=="vertical";var m=this.elements.map(function(a,d){var b=a.getComputedSize({styles:["border","padding","margin"]});var f;if(o){f={top:j,margin:b["margin-top"],height:b.totalHeight};j+=f.height-b["margin-top"]}else{f={left:r,margin:b["margin-left"],width:b.totalWidth};r+=f.width}var c=o?"top":"left";k[d]={};var e=a.getStyle(c).toInt();k[d][c]=e||0;return f},this);this.set(k);n=n.map(function(a){return a.toInt()});if(n.length!=this.elements.length){this.currentOrder.each(function(a){if(!n.contains(a)){n.push(a)}});if(n.length>this.elements.length){n.splice(this.elements.length-1,n.length-this.elements.length)}}var q=j=r=0;n.each(function(a,c){var b={};if(o){b.top=j-m[a].top-q;j+=m[a].height}else{b.left=r-m[a].left;r+=m[a].width}q=q+m[a].margin;p[a]=b},this);var l={};$A(n).sort().each(function(a){l[a]=p[a]});this.start(l);this.currentOrder=n;return this},rearrangeDOM:function(e){e=e||this.currentOrder;var d=this.elements[0].getParent();var f=[];this.elements.setStyle("opacity",0);e.each(function(a){f.push(this.elements[a].inject(d).setStyles({top:0,left:0}))},this);this.elements.setStyle("opacity",1);this.elements=$$(f);this.setDefaultOrder();return this},getDefaultOrder:function(){return this.elements.map(function(c,d){return d})},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(b){return this.sort(b.map(function(a){return this.elements.indexOf(a)},this))},swap:function(f,d){if($type(f)=="element"){f=this.elements.indexOf(f)}if($type(d)=="element"){d=this.elements.indexOf(d)}var e=$A(this.currentOrder);e[this.currentOrder.indexOf(f)]=d;e[this.currentOrder.indexOf(d)]=f;return this.sort(e)}});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 c=Array.link(arguments,{options:Object.type,element:$defined});this.element=document.id(c.element);this.document=this.element.getDocument();this.setOptions(c.options||{});var d=$type(this.options.handle);this.handles=((d=="array"||d=="collection")?$$(this.options.handle):document.id(this.options.handle))||this.element;this.mouse={now:{},pos:{}};this.value={start:{},now:{}};this.selection=(Browser.Engine.trident)?"selectstart":"mousedown";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:$lambda(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(h){if(h.rightClick){return}if(this.options.preventDefault){h.preventDefault()}if(this.options.stopPropagation){h.stopPropagation()}this.mouse.start=h.page;this.fireEvent("beforeStart",this.element);var f=this.options.limit;this.limit={x:[],y:[]};for(var g in this.options.modifiers){if(!this.options.modifiers[g]){continue}if(this.options.style){this.value.now[g]=this.element.getStyle(this.options.modifiers[g]).toInt()}else{this.value.now[g]=this.element[this.options.modifiers[g]]}if(this.options.invert){this.value.now[g]*=-1}this.mouse.pos[g]=h.page[g]-this.value.now[g];if(f&&f[g]){for(var e=2;e--;e){if($chk(f[g][e])){this.limit[g][e]=$lambda(f[g][e])()}}}}if($type(this.options.grid)=="number"){this.options.grid={x:this.options.grid,y:this.options.grid}}this.document.addEvents({mousemove:this.bound.check,mouseup:this.bound.cancel});this.document.addEvent(this.selection,this.bound.eventStop)},check:function(d){if(this.options.preventDefault){d.preventDefault()}var c=Math.round(Math.sqrt(Math.pow(d.page.x-this.mouse.start.x,2)+Math.pow(d.page.y-this.mouse.start.y,2)));if(c>this.options.snap){this.cancel();this.document.addEvents({mousemove:this.bound.drag,mouseup:this.bound.stop});this.fireEvent("start",[this.element,d]).fireEvent("snap",this.element)}},drag:function(d){if(this.options.preventDefault){d.preventDefault()}this.mouse.now=d.page;for(var c in this.options.modifiers){if(!this.options.modifiers[c]){continue}this.value.now[c]=this.mouse.now[c]-this.mouse.pos[c];if(this.options.invert){this.value.now[c]*=-1}if(this.options.limit&&this.limit[c]){if($chk(this.limit[c][1])&&(this.value.now[c]>this.limit[c][1])){this.value.now[c]=this.limit[c][1]}else{if($chk(this.limit[c][0])&&(this.value.now[c]<this.limit[c][0])){this.value.now[c]=this.limit[c][0]}}}if(this.options.grid[c]){this.value.now[c]-=((this.value.now[c]-(this.limit[c][0]||0))%this.options.grid[c])}if(this.options.style){this.element.setStyle(this.options.modifiers[c],this.value.now[c]+this.options.unit)}else{this.element[this.options.modifiers[c]]=this.value.now[c]}}this.fireEvent("drag",[this.element,d])},cancel:function(b){this.document.removeEvent("mousemove",this.bound.check);this.document.removeEvent("mouseup",this.bound.cancel);if(b){this.document.removeEvent(this.selection,this.bound.eventStop);this.fireEvent("cancel",this.element)}},stop:function(b){this.document.removeEvent(this.selection,this.bound.eventStop);this.document.removeEvent("mousemove",this.bound.drag);this.document.removeEvent("mouseup",this.bound.stop);if(b){this.fireEvent("complete",[this.element,b])}}});Element.implement({makeResizable:function(d){var c=new Drag(this,$merge({modifiers:{x:"width",y:"height"}},d));this.store("resizer",c);return c.addEvent("drag",function(){this.fireEvent("resize",c)}.bind(this))}});Drag.Move=new Class({Extends:Drag,options:{droppables:[],container:false,precalculate:false,includeMargins:true,checkDroppables:true},initialize:function(d,e){this.parent(d,e);d=this.element;this.droppables=$$(this.options.droppables);this.container=document.id(this.options.container);if(this.container&&$type(this.container)!="element"){this.container=document.id(this.container.getDocument().body)}var f=d.getStyles("left","right","position");if(f.left=="auto"||f.top=="auto"){d.setPosition(d.getPosition(d.getOffsetParent()))}if(f.position=="static"){d.setStyle("position","absolute")}this.addEvent("start",this.checkDroppables,true);this.overed=null},start:function(b){if(this.container){this.options.limit=this.calculateLimit()}if(this.options.precalculate){this.positions=this.droppables.map(function(a){return a.getCoordinates()})}this.parent(b)},calculateLimit:function(){var y=this.element.getOffsetParent(),v=this.container.getCoordinates(y),w={},z={},A={},t={},r={};["top","right","bottom","left"].each(function(a){w[a]=this.container.getStyle("border-"+a).toInt();A[a]=this.element.getStyle("border-"+a).toInt();z[a]=this.element.getStyle("margin-"+a).toInt();t[a]=this.container.getStyle("margin-"+a).toInt();r[a]=y.getStyle("padding-"+a).toInt()},this);var x=this.element.offsetWidth+z.left+z.right,o=this.element.offsetHeight+z.top+z.bottom,u=0,s=0,p=v.right-w.right-x,B=v.bottom-w.bottom-o;if(this.options.includeMargins){u+=z.left;s+=z.top}else{p+=z.right;B+=z.bottom}if(this.element.getStyle("position")=="relative"){var q=this.element.getCoordinates(y);q.left-=this.element.getStyle("left").toInt();q.top-=this.element.getStyle("top").toInt();u+=w.left-q.left;s+=w.top-q.top;p+=z.left-q.left;B+=z.top-q.top;if(this.container!=y){u+=t.left+r.left;s+=(Browser.Engine.trident4?0:t.top)+r.top}}else{u-=z.left;s-=z.top;if(this.container==y){p-=w.left;B-=w.top}else{u+=v.left+w.left;s+=v.top+w.top}}return{x:[u,p],y:[s,B]}},checkAgainst:function(f,d){f=(this.positions)?this.positions[d]:f.getCoordinates();var e=this.mouse.now;return(e.x>f.left&&e.x<f.right&&e.y<f.bottom&&e.y>f.top)},checkDroppables:function(){var b=this.droppables.filter(this.checkAgainst,this).getLast();if(this.overed!=b){if(this.overed){this.fireEvent("leave",[this.element,this.overed])}if(b){this.fireEvent("enter",[this.element,b])}this.overed=b}},drag:function(b){this.parent(b);if(this.options.checkDroppables&&this.droppables.length){this.checkDroppables()}},stop:function(b){this.checkDroppables();this.fireEvent("drop",[this.element,this.overed,b]);this.overed=null;return this.parent(b)}});Element.implement({makeDraggable:function(d){var c=new Drag.Move(this,d);this.store("dragger",c);return c}});var Slider=new Class({Implements:[Events,Options],Binds:["clickedElement","draggedKnob","scrolledElement"],options:{onTick:function(b){if(this.options.snap){b=this.toPosition(this.step)}this.knob.setStyle(this.property,b)},initialStep:0,snap:false,offset:0,range:false,wheel:false,steps:100,mode:"horizontal"},initialize:function(l,j,m){this.setOptions(m);this.element=document.id(l);this.knob=document.id(j);this.previousChange=this.previousEnd=this.step=-1;var k,h={},n={x:false,y:false};switch(this.options.mode){case"vertical":this.axis="y";this.property="top";k="offsetHeight";break;case"horizontal":this.axis="x";this.property="left";k="offsetWidth"}this.full=this.element.measure(function(){this.half=this.knob[k]/2;return this.element[k]-this.knob[k]+(this.options.offset*2)}.bind(this));this.min=$chk(this.options.range[0])?this.options.range[0]:0;this.max=$chk(this.options.range[1])?this.options.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);this.knob.setStyle("position","relative").setStyle(this.property,this.options.initialStep?this.toPosition(this.options.initialStep):-this.options.offset);n[this.axis]=this.property;h[this.axis]=[-this.options.offset,this.full-this.options.offset];var o={snap:0,limit:h,modifiers:n,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(this.options.snap){o.grid=Math.ceil(this.stepWidth);o.limit[this.axis][1]=this.full}this.drag=new Drag(this.knob,o);this.attach()},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);this.element.removeEvent("mousewheel",this.scrolledElement);this.drag.detach();return this},set:function(b){if(!((this.range>0)^(b<this.min))){b=this.min}if(!((this.range>0)^(b>this.max))){b=this.max}this.step=Math.round(b);this.checkStep();this.fireEvent("tick",this.toPosition(this.step));this.end();return this},clickedElement:function(f){if(this.isDragging||f.target==this.knob){return}var d=this.range<0?-1:1;var e=f.page[this.axis]-this.element.getPosition()[this.axis]-this.half;e=e.limit(-this.options.offset,this.full-this.options.offset);this.step=Math.round(this.min+d*this.toStep(e));this.checkStep();this.fireEvent("tick",e);this.end()},scrolledElement:function(d){var c=(this.options.mode=="horizontal")?(d.wheel<0):(d.wheel>0);this.set(c?this.step-this.stepSize:this.step+this.stepSize);d.stop()},draggedKnob:function(){var c=this.range<0?-1:1;var d=this.drag.value.now[this.axis];d=d.limit(-this.options.offset,this.full-this.options.offset);this.step=Math.round(this.min+c*this.toStep(d));this.checkStep()},checkStep:function(){if(this.previousChange!=this.step){this.previousChange=this.step;this.fireEvent("change",this.step)}},end:function(){if(this.previousEnd!==this.step){this.previousEnd=this.step;this.fireEvent("complete",this.step+"")}},toStep:function(d){var c=(d+this.options.offset)*this.stepSize/this.full*this.steps;return this.options.steps?Math.round(c-=c%this.stepSize):c},toPosition:function(b){return(this.full*Math.abs(this.min-b))/(this.steps*this.stepSize)-this.options.offset}});var Sortables=new Class({Implements:[Events,Options],options:{snap:4,opacity:1,clone:false,revert:false,handle:false,constrain:false},initialize:function(d,c){this.setOptions(c);this.elements=[];this.lists=[];this.idle=true;this.addLists($$(document.id(d)||d));if(!this.options.clone){this.options.revert=false}if(this.options.revert){this.effect=new Fx.Morph(null,$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(d){this.elements.push(d);var c=d.retrieve("sortables:start",this.start.bindWithEvent(this,d));(this.options.handle?d.getElement(this.options.handle)||d:d).addEvent("mousedown",c)},this);return this},addLists:function(){Array.flatten(arguments).each(function(b){this.lists.push(b);this.addItems(b.getChildren())},this);return this},removeItems:function(){return $$(Array.flatten(arguments).map(function(d){this.elements.erase(d);var c=d.retrieve("sortables:start");(this.options.handle?d.getElement(this.options.handle)||d:d).removeEvent("mousedown",c);return d},this))},removeLists:function(){return $$(Array.flatten(arguments).map(function(b){this.lists.erase(b);this.removeItems(b.getChildren());return b},this))},getClone:function(c,d){if(!this.options.clone){return new Element("div").inject(document.body)}if($type(this.options.clone)=="function"){return this.options.clone.call(this,c,d,this.list)}return d.clone(true).setStyles({margin:"0px",position:"absolute",visibility:"hidden",width:d.getStyle("width")}).inject(this.list).setPosition(d.getPosition(d.getOffsetParent()))},getDroppables:function(){var b=this.list.getChildren();if(!this.options.constrain){b=this.lists.concat(b).erase(this.list)}return b.erase(this.clone).erase(this.element)},insert:function(f,d){var e="inside";if(this.lists.contains(d)){this.list=d;this.drag.droppables=this.getDroppables()}else{e=this.element.getAllPrevious().contains(d)?"before":"after"}this.element.inject(d,e);this.fireEvent("sort",[this.element,this.clone])},start:function(c,d){if(!this.idle){return}this.idle=false;this.element=d;this.opacity=d.get("opacity");this.list=d.getParent();this.clone=this.getClone(c,d);this.drag=new Drag.Move(this.clone,{snap:this.options.snap,container:this.options.constrain&&this.element.getParent(),droppables:this.getDroppables(),onSnap:function(){c.stop();this.clone.setStyle("visibility","visible");this.element.set("opacity",this.options.opacity||0);this.fireEvent("start",[this.element,this.clone])}.bind(this),onEnter:this.insert.bind(this),onCancel:this.reset.bind(this),onComplete:this.end.bind(this)});this.clone.inject(this.element,"before");this.drag.start(c)},end:function(){this.drag.detach();this.element.set("opacity",this.opacity);if(this.effect){var d=this.element.getStyles("width","height");var c=this.clone.computePosition(this.element.getPosition(this.clone.offsetParent));this.effect.element=this.clone;this.effect.start({top:c.top,left:c.left,width:d.width,height:d.height,opacity:0.25}).chain(this.reset.bind(this))}else{this.reset()}},reset:function(){this.idle=true;this.clone.destroy();this.fireEvent("complete",this.element)},serialize:function(){var f=Array.link(arguments,{modifier:Function.type,index:$defined});var d=this.lists.map(function(a){return a.getChildren().map(f.modifier||function(b){return b.get("id")},this)},this);var e=f.index;if(this.lists.length==1){e=0}return $chk(e)&&e>=0&&e<this.lists.length?d[e]:d}});Request.JSONP=new Class({Implements:[Chain,Events,Options,Log],options:{url:"",data:{},retries:0,timeout:0,link:"ignore",callbackKey:"callback",injectScript:document.head},initialize:function(b){this.setOptions(b);if(this.options.log){this.enableLog()}this.running=false;this.requests=0;this.triesRemaining=[]},check:function(){if(!this.running){return true}switch(this.options.link){case"cancel":this.cancel();return true;case"chain":this.chain(this.caller.bind(this,arguments));return false}return false},send:function(k){if(!$chk(arguments[1])&&!this.check(k)){return this}var h=$type(k),g=this.options,f=$chk(arguments[1])?arguments[1]:this.requests++;if(h=="string"||h=="element"){k={data:k}}k=$extend({data:g.data,url:g.url},k);if(!$chk(this.triesRemaining[f])){this.triesRemaining[f]=this.options.retries}var j=this.triesRemaining[f];(function(){var a=this.getScript(k);this.log("JSONP retrieving script with url: "+a.get("src"));this.fireEvent("request",a);this.running=true;(function(){if(j){this.triesRemaining[f]=j-1;if(a){a.destroy();this.send(k,f).fireEvent("retry",this.triesRemaining[f])}}else{if(a&&this.options.timeout){a.destroy();this.cancel().fireEvent("failure")}}}).delay(this.options.timeout,this)}).delay(Browser.Engine.trident?50:0,this);return this},cancel:function(){if(!this.running){return this}this.running=false;this.fireEvent("cancel");return this},getScript:function(k){var f=Request.JSONP.counter,j;Request.JSONP.counter++;switch($type(k.data)){case"element":j=document.id(k.data).toQueryString();break;case"object":case"hash":j=Hash.toQueryString(k.data)}var h=k.url+(k.url.test("\\?")?"&":"?")+(k.callbackKey||this.options.callbackKey)+"=Request.JSONP.request_map.request_"+f+(j?"&"+j:"");if(h.length>2083){this.log("JSONP "+h+" will fail in Internet Explorer, which enforces a 2083 bytes length limit on URIs")}var g=new Element("script",{type:"text/javascript",src:h});Request.JSONP.request_map["request_"+f]=function(a){this.success(a,g)}.bind(this);return g.inject(this.options.injectScript)},success:function(c,d){if(d){d.destroy()}this.running=false;this.log("JSONP successfully retrieved: ",c);this.fireEvent("complete",[c]).fireEvent("success",[c]).callChain()}});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(d){if(d){var c=d.requests;delete d.requests}this.setOptions(d);this.requests=new Hash;this.queue=[];this.reqBinders={};if(c){this.addRequests(c)}},addRequest:function(d,c){this.requests.set(d,c);this.attach(d,c);return this},addRequests:function(b){$each(b,function(d,a){this.addRequest(a,d)},this);return this},getName:function(b){return this.requests.keyOf(b)},attach:function(d,c){if(c._groupSend){return this}["request","complete","cancel","success","failure","exception"].each(function(a){if(!this.reqBinders[d]){this.reqBinders[d]={}}this.reqBinders[d][a]=function(){this["on"+a.capitalize()].apply(this,[d,c].extend(arguments))}.bind(this);c.addEvent(a,this.reqBinders[d][a])},this);c._groupSend=c.send;c.send=function(a){this.send(d,a);return c}.bind(this);return this},removeRequest:function(c){var d=$type(c)=="object"?this.getName(c):c;if(!d&&$type(d)!="string"){return this}c=this.requests.get(d);if(!c){return this}["request","complete","cancel","success","failure","exception"].each(function(a){c.removeEvent(a,this.reqBinders[d][a])},this);c.send=c._groupSend;delete c._groupSend;return this},getRunning:function(){return this.requests.filter(function(b){return b.running})},isRunning:function(){return !!(this.getRunning().getKeys().length)},send:function(d,e){var f=function(){this.requests.get(d)._groupSend(e);this.queue.erase(f)}.bind(this);f.name=d;if(this.getRunning().getKeys().length>=this.options.concurrent||(this.error&&this.options.stopOnFailure)){this.queue.push(f)}else{f()}return this},hasNext:function(b){return(!b)?!!this.queue.length:!!this.queue.filter(function(a){return a.name==b}).length},resume:function(){this.error=false;(this.options.concurrent-this.getRunning().getKeys().length).times(this.runNext,this);return this},runNext:function(d){if(!this.queue.length){return this}if(!d){this.queue[0]()}else{var c;this.queue.each(function(a){if(!c&&a.name==d){c=true;a()}})}return this},runAll:function(){this.queue.each(function(b){b()});return this},clear:function(b){if(!b){this.queue.empty()}else{this.queue=this.queue.map(function(a){if(a.name!=b){return a}else{return false}}).filter(function(a){return a})}return this},cancel:function(b){this.requests.get(b).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(c){var d=function(){if(!this.running){this.send({data:c})}};this.timer=d.delay(this.options.initialDelay,this);this.lastDelay=this.options.initialDelay;this.completeCheck=function(a){$clear(this.timer);this.lastDelay=(a)?this.options.delay:(this.lastDelay+this.options.delay).min(this.options.limit);this.timer=d.delay(this.lastDelay,this)};return this.addEvent("complete",this.completeCheck)},stopTimer:function(){$clear(this.timer);return this.removeEvent("complete",this.completeCheck)}});var Asset={javascript:function(l,n){n=$extend({onload:$empty,document:document,check:$lambda(true)},n);var h=new Element("script",{src:l,type:"text/javascript"});var m=n.onload.bind(h),j=n.check,k=n.document;delete n.onload;delete n.check;delete n.document;h.addEvents({load:m,readystatechange:function(){if(["loaded","complete"].contains(this.readyState)){m()}}}).set(n);if(Browser.Engine.webkit419){var o=(function(){if(!$try(j)){return}$clear(o);m()}).periodical(50)}return h.inject(k.head)},css:function(c,d){return new Element("link",$merge({rel:"stylesheet",media:"screen",type:"text/css",href:c},d)).inject(document.head)},image:function(h,e){e=$merge({onload:$empty,onabort:$empty,onerror:$empty},e);var g=new Image();var f=document.id(g)||new Element("img");["load","abort","error"].each(function(c){var b="on"+c;var a=e[b];delete e[b];g[b]=function(){if(!g){return}if(!f.parentNode){f.width=g.width;f.height=g.height}g=g.onload=g.onabort=g.onerror=null;a.delay(1,f,f);f.fireEvent(c,f,1)}});g.src=f.src=h;if(g&&g.complete){g.onload.delay(1)}return f.set(e)},images:function(g,h){h=$merge({onComplete:$empty,onProgress:$empty,onError:$empty,properties:{}},h);g=$splat(g);var f=[];var e=0;return new Elements(g.map(function(a){return Asset.image(a,$extend(h.properties,{onload:function(){h.onProgress.call(this,e,g.indexOf(a));e++;if(e==g.length){h.onComplete()}},onerror:function(){h.onError.call(this,e,g.indexOf(a));e++;if(e==g.length){h.onComplete()}}}))}))}};var Color=new Native({initialize:function(d,f){if(arguments.length>=3){f="rgb";d=Array.slice(arguments,0,3)}else{if(typeof d=="string"){if(d.match(/rgb/)){d=d.rgbToHex().hexToRgb(true)}else{if(d.match(/hsb/)){d=d.hsbToRgb()}else{d=d.hexToRgb(true)}}}}f=f||"rgb";switch(f){case"hsb":var e=d;d=d.hsbToRgb();d.hsb=e;break;case"hex":d=d.hexToRgb(true);break}d.rgb=d.slice(0,3);d.hsb=d.hsb||d.rgbToHsb();d.hex=d.rgbToHex();return $extend(d,this)}});Color.implement({mix:function(){var e=Array.slice(arguments);var f=($type(e.getLast())=="number")?e.pop():50;var d=this.slice();e.each(function(b){b=new Color(b);for(var a=0;a<3;a++){d[a]=Math.round((d[a]/100*(100-f))+(b[a]/100*f))}});return new Color(d,"rgb")},invert:function(){return new Color(this.map(function(b){return 255-b}))},setHue:function(b){return new Color([b,this.hsb[1],this.hsb[2]],"hsb")},setSaturation:function(b){return new Color([this.hsb[0],b,this.hsb[2]],"hsb")},setBrightness:function(b){return new Color([this.hsb[0],this.hsb[1],b],"hsb")}});var $RGB=function(e,f,b){return new Color([e,f,b],"rgb")};var $HSB=function(e,f,b){return new Color([e,f,b],"hsb")};var $HEX=function(b){return new Color(b,"hex")};Array.implement({rgbToHsb:function(){var w=this[0],v=this[1],o=this[2],r=0;var p=Math.max(w,v,o),t=Math.min(w,v,o);var n=p-t;var q=p/255,s=(p!=0)?n/p:0;if(s!=0){var u=(p-w)/n;var x=(p-v)/n;var m=(p-o)/n;if(w==p){r=m-x}else{if(v==p){r=2+u-m}else{r=4+x-u}}r/=6;if(r<0){r++}}return[Math.round(r*360),Math.round(s*100),Math.round(q*100)]},hsbToRgb:function(){var m=Math.round(this[2]/100*255);if(this[1]==0){return[m,m,m]}else{var h=this[0]%360;var k=h%60;var j=Math.round((this[2]*(100-this[1]))/10000*255);var l=Math.round((this[2]*(6000-this[1]*k))/600000*255);var f=Math.round((this[2]*(6000-this[1]*(60-k)))/600000*255);switch(Math.floor(h/60)){case 0:return[m,f,j];case 1:return[l,m,j];case 2:return[j,m,f];case 3:return[j,l,m];case 4:return[f,j,m];case 5:return[m,j,l]}}return false}});String.implement({rgbToHsb:function(){var b=this.match(/\d{1,3}/g);return(b)?b.rgbToHsb():null},hsbToRgb:function(){var b=this.match(/\d{1,3}/g);return(b)?b.hsbToRgb():null}});var Group=new Class({initialize:function(){this.instances=Array.flatten(arguments);this.events={};this.checker={}},addEvent:function(c,d){this.checker[c]=this.checker[c]||{};this.events[c]=this.events[c]||[];if(this.events[c].contains(d)){return false}else{this.events[c].push(d)}this.instances.each(function(b,a){b.addEvent(c,this.check.bind(this,[c,b,a]))},this);return this},check:function(h,f,e){this.checker[h][e]=true;var g=this.instances.every(function(a,b){return this.checker[h][b]||false},this);if(!g){return}this.checker[h]={};this.events[h].each(function(a){a.call(this,this.instances,f)},this)}});Hash.Cookie=new Class({Extends:Cookie,options:{autoSave:true},initialize:function(c,d){this.parent(c,d);this.load()},save:function(){var b=JSON.encode(this.hash);if(!b||b.length>4096){return false}if(b=="{}"){this.dispose()}else{this.write(b)}return true},load:function(){this.hash=new Hash(JSON.decode(this.read(),true));return this}});Hash.each(Hash.prototype,function(c,d){if(typeof c=="function"){Hash.Cookie.implement(d,function(){var a=c.apply(this.hash,arguments);if(this.options.autoSave){this.save()}return a})}});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.Engine.trident4||(Browser.Engine.gecko&&!Browser.Engine.gecko19&&Browser.Platform.mac))},property:"IframeShim",initialize:function(c,d){this.element=document.id(c);if(this.occlude()){return this.occluded}this.setOptions(d);this.makeShim();return this},makeShim:function(){if(this.options.browsers){var f=this.element.getStyle("zIndex").toInt();if(!f){f=1;var d=this.element.getStyle("position");if(d=="static"||!d){this.element.setStyle("position","relative")}this.element.setStyle("zIndex",f)}f=($chk(this.options.zIndex)&&f>this.options.zIndex)?this.options.zIndex:f-1;if(f<0){f=1}this.shim=new Element("iframe",{src:this.options.src,scrolling:"no",frameborder:0,styles:{zIndex:f,position:"absolute",border:"none",filter:"progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"},"class":this.options.className}).store("IframeShim",this);var e=(function(){this.shim.inject(this.element,"after");this[this.options.display?"show":"hide"]();this.fireEvent("inject")}).bind(this);if(IframeShim.ready){window.addEvent("load",e)}else{e()}}else{this.position=this.hide=this.show=this.dispose=$lambda(this)}},position:function(){if(!IframeShim.ready||!this.shim){return this}var b=this.element.measure(function(){return this.getSize()});if(this.options.margin!=undefined){b.x=b.x-(this.options.margin*2);b.y=b.y-(this.options.margin*2);this.options.offset.x+=this.options.margin;this.options.offset.y+=this.options.margin}this.shim.set({width:b.x,height:b.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 HtmlTable=new Class({Implements:[Options,Events,Class.Occlude],options:{properties:{cellpadding:0,cellspacing:0,border:0},rows:[],headers:[],footers:[]},property:"HtmlTable",initialize:function(){var b=Array.link(arguments,{options:Object.type,table:Element.type});this.setOptions(b.options);this.element=b.table||new Element("table",this.options.properties);if(this.occlude()){return this.occluded}this.build()},build:function(){this.element.store("HtmlTable",this);this.body=document.id(this.element.tBodies[0])||new Element("tbody").inject(this.element);$$(this.body.rows);if(this.options.headers.length){this.setHeaders(this.options.headers)}else{this.thead=document.id(this.element.tHead)}if(this.thead){this.head=document.id(this.thead.rows[0])}if(this.options.footers.length){this.setFooters(this.options.footers)}this.tfoot=document.id(this.element.tFoot);if(this.tfoot){this.foot=document.id(this.thead.rows[0])}this.options.rows.each(function(b){this.push(b)},this);["adopt","inject","wraps","grab","replaces","dispose"].each(function(b){this[b]=this.element[b].bind(this.element)},this)},toElement:function(){return this.element},empty:function(){this.body.empty();return this},setHeaders:function(b){this.thead=(document.id(this.element.tHead)||new Element("thead").inject(this.element,"top")).empty();this.push(b,this.thead,"th");this.head=document.id(this.thead.rows[0]);return this},setFooters:function(b){this.tfoot=(document.id(this.element.tFoot)||new Element("tfoot").inject(this.element,"top")).empty();this.push(b,this.tfoot);this.foot=document.id(this.thead.rows[0]);return this},push:function(g,h,f){var e=g.map(function(b){var a=new Element(f||"td",b.properties),c=b.content||b||"",d=document.id(c);if(d){a.adopt(d)}else{a.set("html",c)}return a});return{tr:new Element("tr").inject(h||this.body).adopt(e),tds:e}}});HtmlTable=Class.refactor(HtmlTable,{options:{classZebra:"table-tr-odd",zebra:true},initialize:function(){this.previous.apply(this,arguments);if(this.occluded){return this.occluded}if(this.options.zebra){this.updateZebras()}},updateZebras:function(){Array.each(this.body.rows,this.zebra,this)},zebra:function(c,d){return c[((d%2)?"remove":"add")+"Class"](this.options.classZebra)},push:function(){var b=this.previous.apply(this,arguments);if(this.options.zebra){this.updateZebras()}return b}});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},initialize:function(){this.previous.apply(this,arguments);if(this.occluded){return this.occluded}this.sorted={index:null,dir:1};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(b){this.element[$pick(b,true)?"addEvent":"removeEvent"]("click:relay(th)",this.bound.headClick)},setHeaders:function(){this.previous.apply(this,arguments);if(this.sortEnabled){this.detectParsers()}},detectParsers:function(f){if(!this.head){return}var e=this.options.parsers,d=this.body.rows;this.parsers=$$(this.head.cells).map(function(k,j){if(!f&&(k.hasClass(this.options.classNoSort)||k.retrieve("htmltable-sort"))){return k.retrieve("htmltable-sort")}var b=new Element("span",{html:"&#160;","class":this.options.classSortSpan}).inject(k,"top");this.sortSpans.push(b);var a=e[j],c;switch($type(a)){case"function":a={convert:a};c=true;break;case"string":a=a;c=true;break}if(!c){HtmlTable.Parsers.some(function(r){var h=r.match;if(!h){return false}if(Browser.Engine.trident){return false}for(var g=0,p=d.length;g<p;g++){var q=d[g].cells[j].get("html").clean();if(q&&h.test(q)){a=r;return true}}})}if(!a){a=this.options.defaultParser}k.store("htmltable-parser",a);return a},this)},headClick:function(f,d){if(!this.head){return}var e=Array.indexOf(this.head.cells,d);this.sort(e);return false},sort:function(F,D,A){if(!this.head){return}A=!!(A);var B=this.options.classCellSort;var y=this.options.classGroup,j=this.options.classGroupHead;if(!A){if(F!=null){if(this.sorted.index==F){this.sorted.reverse=!(this.sorted.reverse)}else{if(this.sorted.index!=null){this.sorted.reverse=false;this.head.cells[this.sorted.index].removeClass(this.options.classHeadSort).removeClass(this.options.classHeadSortRev)}else{this.sorted.reverse=true}this.sorted.index=F}}else{F=this.sorted.index}if(D!=null){this.sorted.reverse=D}var H=document.id(this.head.cells[F]);if(H){H.addClass(this.options.classHeadSort);if(this.sorted.reverse){H.addClass(this.options.classHeadSortRev)}else{H.removeClass(this.options.classHeadSortRev)}}this.body.getElements("td").removeClass(this.options.classCellSort)}var I=this.parsers[F];if($type(I)=="string"){I=HtmlTable.Parsers.get(I)}if(!I){return}if(!Browser.Engine.trident){var J=this.body.getParent();this.body.dispose()}var u=Array.map(this.body.rows,function(a,c){var b=I.convert.call(document.id(a.cells[F]));return{position:c,value:b,toString:function(){return b.toString()}}},this);u.reverse(true);u.sort(function(a,b){if(a.value===b.value){return 0}return a.value>b.value?1:-1});if(!this.sorted.reverse){u.reverse(true)}var x=u.length,C=this.body;var z,v,K,E;while(x){var w=u[--x];v=w.position;var G=C.rows[v];if(G.disabled){continue}if(!A){if(E===w.value){G.removeClass(j).addClass(y)}else{E=w.value;G.removeClass(y).addClass(j)}if(this.zebra){this.zebra(G,x)}G.cells[F].addClass(B)}C.appendChild(G);for(z=0;z<x;z++){if(u[z].position>v){u[z].position--}}}u=null;if(J){J.grab(C)}return this.fireEvent("sort",[C,F])},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.detectParsers();this.sortEnabled=true;return this},disableSort:function(){this.element.remove(this.options.classSortable);this.attachSorts(false);this.sortSpans.each(function(b){b.destroy()});this.sortSpans.empty();this.sortEnabled=false;return this}});HtmlTable.Parsers=new Hash({date:{match:/^\d{2}[-\/ ]\d{2}[-\/ ]\d{2,4}$/,convert:function(){return Date.parse(this.get("text").format("db"))},type:"date"},"input-checked":{match:/ type="(radio|checkbox)" /,convert:function(){return this.getElement("input").checked}},"input-value":{match:/<input/,convert:function(){return this.getElement("input").value}},number:{match:/^\d+[^\d.,]*$/,convert:function(){return this.get("text").toInt()},number:true},numberLax:{match:/^[^\d]+\d+$/,convert:function(){return this.get("text").replace(/[^-?^0-9]/,"").toInt()},number:true},"float":{match:/^[\d]+\.[\d]+/,convert:function(){return this.get("text").replace(/[^-?^\d.]/,"").toFloat()},number:true},floatLax:{match:/^[^\d]+[\d]+\.[\d]+$/,convert:function(){return this.get("text").replace(/[^-?^\d.]/,"")},number:true},string:{match:null,convert:function(){return this.get("text")}},title:{match:null,convert:function(){return this.title}}});HtmlTable=Class.refactor(HtmlTable,{options:{useKeyboard:true,classRowSelected:"table-tr-selected",classRowHovered:"table-tr-hovered",classSelectable:"table-selectable",allowMultiSelect:true,selectable:false},initialize:function(){this.previous.apply(this,arguments);if(this.occluded){return this.occluded}this.selectedRows=new Elements();this.bound={mouseleave:this.mouseleave.bind(this),focusRow:this.focusRow.bind(this)};if(this.options.selectable){this.enableSelect()}},enableSelect:function(){this.selectEnabled=true;this.attachSelects();this.element.addClass(this.options.classSelectable)},disableSelect:function(){this.selectEnabled=false;this.attach(false);this.element.removeClass(this.options.classSelectable)},attachSelects:function(d){d=$pick(d,true);var c=d?"addEvents":"removeEvents";this.element[c]({mouseleave:this.bound.mouseleave});this.body[c]({"click:relay(tr)":this.bound.focusRow});if(this.options.useKeyboard||this.keyboard){if(!this.keyboard){this.keyboard=new Keyboard({events:{down:function(a){a.preventDefault();this.shiftFocus(1)}.bind(this),up:function(a){a.preventDefault();this.shiftFocus(-1)}.bind(this),enter:function(a){a.preventDefault();if(this.hover){this.focusRow(this.hover)}}.bind(this)},active:true})}this.keyboard[d?"activate":"deactivate"]()}this.updateSelects()},mouseleave:function(){if(this.hover){this.leaveRow(this.hover)}},focus:function(){if(this.keyboard){this.keyboard.activate()}},blur:function(){if(this.keyboard){this.keyboard.deactivate()}},push:function(){var b=this.previous.apply(this,arguments);this.updateSelects();return b},updateSelects:function(){Array.each(this.body.rows,function(d){var c=d.retrieve("binders");if((c&&this.selectEnabled)||(!c&&!this.selectEnabled)){return}if(!c){c={mouseenter:this.enterRow.bind(this,[d]),mouseleave:this.leaveRow.bind(this,[d])};d.store("binders",c).addEvents(c)}else{d.removeEvents(c)}},this)},enterRow:function(b){if(this.hover){this.hover=this.leaveRow(this.hover)}this.hover=b.addClass(this.options.classRowHovered)},shiftFocus:function(d){if(!this.hover){return this.enterRow(this.body.rows[0])}var c=Array.indexOf(this.body.rows,this.hover)+d;if(c<0){c=0}if(c>=this.body.rows.length){c=this.body.rows.length-1}if(this.hover==this.body.rows[c]){return this}this.enterRow(this.body.rows[c])},leaveRow:function(b){b.removeClass(this.options.classRowHovered)},focusRow:function(){var c=arguments[1]||arguments[0];if(!this.body.getChildren().contains(c)){return}var d=function(a){this.selectedRows.erase(a);a.removeClass(this.options.classRowSelected);this.fireEvent("rowUnfocus",[a,this.selectedRows])}.bind(this);if(!this.options.allowMultiSelect){this.selectedRows.each(d)}if(!this.selectedRows.contains(c)){this.selectedRows.push(c);c.addClass(this.options.classRowSelected);this.fireEvent("rowFocus",[c,this.selectedRows])}else{d(c)}return false},selectAll:function(b){b=$pick(b,true);if(!this.options.allowMultiSelect&&b){return}if(!b){this.selectedRows.removeClass(this.options.classRowSelected).empty()}else{this.selectedRows.combine(this.body.rows).addClass(this.options.classRowSelected)}return this},selectNone:function(){return this.selectAll(false)}});(function(){var g={};var f=["shift","control","alt","meta"];var j=/^(?:shift|control|ctrl|alt|meta)$/;var h=function(b,c){b=b.toLowerCase().replace(/^(keyup|keydown):/,function(m,n){c=n;return""});if(!g[b]){var d="",a={};b.split("+").each(function(l){if(j.test(l)){a[l]=true}else{d=l}});a.control=a.control||a.ctrl;var e="";f.each(function(l){if(a[l]){e+=l+"+"}});g[b]=e+d}return c+":"+g[b]};this.Keyboard=new Class({Extends:Events,Implements:[Options,Log],options:{defaultEventType:"keydown",active:false,events:{}},initialize:function(a){this.setOptions(a);if(Keyboard.manager){Keyboard.manager.manage(this)}this.setup()},setup:function(){this.addEvents(this.options.events);if(this.options.active){this.activate()}},handle:function(a,b){if(!this.active||a.preventKeyboardPropagation){return}var c=!!this.manager;if(c&&this.activeKB){this.activeKB.handle(a,b);if(a.preventKeyboardPropagation){return}}this.fireEvent(b,a);if(!c&&this.activeKB){this.activeKB.handle(a,b)}},addEvent:function(a,b,c){return this.parent(h(a,this.options.defaultEventType),b,c)},removeEvent:function(a,b){return this.parent(h(a,this.options.defaultEventType),b)},activate:function(){this.active=true;return this.enable()},deactivate:function(){this.active=false;return this.fireEvent("deactivate")},toggleActive:function(){return this[this.active?"deactivate":"activate"]()},enable:function(a){if(a){if(a!=this.activeKB){this.previous=this.activeKB}this.activeKB=a.fireEvent("activate")}else{if(this.manager){this.manager.enable(this)}}return this},relenquish:function(){if(this.previous){this.enable(this.previous)}},manage:function(a){if(a.manager){a.manager.drop(a)}this.instances.push(a);a.manager=this;if(!this.activeKB){this.enable(a)}else{this._disable(a)}},_disable:function(a){if(this.activeKB==a){this.activeKB=null}},drop:function(a){this._disable(a);this.instances.erase(a)},instances:[],trace:function(){this.enableLog();var a=this;this.log("the following items have focus: ");while(a){this.log(document.id(a.widget)||a.widget||a,"active: "+this.active);a=a.activeKB}}});Keyboard.stop=function(a){a.preventKeyboardPropagation=true};Keyboard.manager=new this.Keyboard({active:true});Keyboard.trace=function(){Keyboard.manager.trace()};var k=function(a){var b="";f.each(function(c){if(a[c]){b+=c+"+"}});Keyboard.manager.handle(a,a.type+":"+b+a.key)};document.addEvents({keyup:k,keydown:k});Event.Keys.extend({pageup:33,pagedown:34,end:35,home:36,capslock:20,numlock:144,scrolllock:145})})();var Mask=new Class({Implements:[Options,Events],Binds:["resize"],options:{style:{},"class":"mask",maskMargins:false,useIframeShim:true},initialize:function(c,d){this.target=document.id(c)||document.body;this.target.store("mask",this);this.setOptions(d);this.render();this.inject()},render:function(){this.element=new Element("div",{"class":this.options["class"],id:this.options.id||"mask-"+$time(),styles:$merge(this.options.style,{display:"none"}),events:{click:function(){this.fireEvent("click");if(this.options.hideOnClick){this.hide()}}.bind(this)}});this.hidden=true},toElement:function(){return this.element},inject:function(c,d){d=d||this.options.inject?this.options.inject.where:""||this.target==document.body?"inside":"after";c=c||this.options.inject?this.options.inject.target:""||this.target;this.element.inject(c,d);if(this.options.useIframeShim){this.shim=new IframeShim(this.element);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(g,h){var f={styles:["padding","border"]};if(this.options.maskMargins){f.styles.push("margin")}var j=this.target.getComputedSize(f);if(this.target==document.body){var k=window.getSize();if(j.totalHeight<k.y){j.totalHeight=k.y}if(j.totalWidth<k.x){j.totalWidth=k.x}}this.element.setStyles({width:$pick(g,j.totalWidth,j.x),height:$pick(h,j.totalHeight,j.y)});return this},show:function(){if(!this.hidden){return this}this.target.addEvent("resize",this.resize);if(this.target!=document.body){document.id(document.body).addEvent("resize",this.resize)}this.position();this.showMask.apply(this,arguments);return this},showMask:function(){this.element.setStyle("display","block");this.hidden=false;this.fireEvent("show")},hide:function(){if(this.hidden){return this}this.target.removeEvent("resize",this.resize);this.hideMask.apply(this,arguments);if(this.options.destroyOnHide){return this.destroy()}return this},hideMask:function(){this.element.setStyle("display","none");this.hidden=true;this.fireEvent("hide")},toggle:function(){this[this.hidden?"show":"hide"]()},destroy:function(){this.hide();this.element.destroy();this.fireEvent("destroy");this.target.eliminate("mask")}});Element.Properties.mask={set:function(c){var d=this.retrieve("mask");return this.eliminate("mask").store("mask:options",c)},get:function(b){if(b||!this.retrieve("mask")){if(this.retrieve("mask")){this.retrieve("mask").destroy()}if(b||!this.retrieve("mask:options")){this.set("mask",b)}this.store("mask",new Mask(this,this.retrieve("mask:options")))}return this.retrieve("mask")}};Element.implement({mask:function(b){this.get("mask",b).show();return this},unmask:function(){this.get("mask").hide();return this}});var Scroller=new Class({Implements:[Events,Options],options:{area:20,velocity:1,onChange:function(d,c){this.element.scrollTo(d,c)},fps:50},initialize:function(c,d){this.setOptions(d);this.element=document.id(c);this.listener=($type(this.element)!="element")?document.id(this.element.getDocument().body):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,mouseout:this.bound.detach})},stop:function(){this.listener.removeEvents({mouseover:this.bound.attach,mouseout:this.bound.detach});this.detach();this.timer=$clear(this.timer)},attach:function(){this.listener.addEvent("mousemove",this.bound.getCoords)},detach:function(){this.listener.removeEvent("mousemove",this.bound.getCoords);this.timer=$clear(this.timer)},getCoords:function(b){this.page=(this.listener.get("tag")=="body")?b.client:b.page;if(!this.timer){this.timer=this.scroll.periodical(Math.round(1000/this.options.fps),this)}},scroll:function(){var g=this.element.getSize(),h=this.element.getScroll(),j=this.element.getOffsets(),m=this.element.getScrollSize(),k={x:0,y:0};for(var l in this.page){if(this.page[l]<(this.options.area+j[l])&&h[l]!=0){k[l]=(this.page[l]-this.options.area-j[l])*this.options.velocity}else{if(this.page[l]+this.options.area>(g[l]+j[l])&&h[l]+g[l]!=m[l]){k[l]=(this.page[l]-g[l]+this.options.area-j[l])*this.options.velocity}}}if(k.y||k.x){this.fireEvent("change",[h.x+k.x,h.y+k.y])}}});(function(){var b=function(d,a){return(d)?($type(d)=="function"?d(a):a.get(d)):""};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(a){return a.get("rel")||a.get("href")},showDelay:100,hideDelay:100,className:"tip-wrap",offset:{x:16,y:16},fixed:false},initialize:function(){var a=Array.link(arguments,{options:Object.type,elements:$defined});this.setOptions(a.options);document.id(this);if(a.elements){this.attach(a.elements)}},toElement:function(){if(this.tip){return this.tip}this.container=new Element("div",{"class":"tip"});return 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"})).inject(document.body)},attach:function(a){$$(a).each(function(j){var g=b(this.options.title,j),h=b(this.options.text,j);j.erase("title").store("tip:native",g).retrieve("tip:title",g);j.retrieve("tip:text",h);this.fireEvent("attach",[j]);var k=["enter","leave"];if(!this.options.fixed){k.push("move")}k.each(function(c){var d=j.retrieve("tip:"+c);if(!d){d=this["element"+c.capitalize()].bindWithEvent(this,j)}j.store("tip:"+c,d).addEvent("mouse"+c,d)},this)},this);return this},detach:function(a){$$(a).each(function(e){["enter","leave","move"].each(function(c){e.removeEvent("mouse"+c,e.retrieve("tip:"+c)).eliminate("tip:"+c)});this.fireEvent("detach",[e]);if(this.options.title=="title"){var f=e.retrieve("tip:native");if(f){e.set("title",f)}}},this);return this},elementEnter:function(d,a){this.container.empty();["title","text"].each(function(c){var f=a.retrieve("tip:"+c);if(f){this.fill(new Element("div",{"class":"tip-"+c}).inject(this.container),f)}},this);$clear(this.timer);this.timer=this.show.delay(this.options.showDelay,this,a);this.position((this.options.fixed)?{page:a.getPosition()}:d)},elementLeave:function(d,a){$clear(this.timer);this.timer=this.hide.delay(this.options.hideDelay,this,a);this.fireForParent(d,a)},fireForParent:function(d,a){if(!a){return}parentNode=a.getParent();if(parentNode==document.body){return}if(parentNode.retrieve("tip:enter")){parentNode.fireEvent("mouseenter",d)}else{this.fireForParent(parentNode,d)}},elementMove:function(d,a){this.position(d)},position:function(m){var o=window.getSize(),a=window.getScroll(),l={x:this.tip.offsetWidth,y:this.tip.offsetHeight},n={x:"left",y:"top"},k={};for(var j in n){k[n[j]]=m.page[j]+this.options.offset[j];if((k[n[j]]+l[j]-a[j])>o[j]){k[n[j]]=m.page[j]-this.options.offset[j]-l[j]}}this.tip.setStyles(k)},fill:function(a,d){if(typeof d=="string"){a.set("html",d)}else{a.adopt(d)}},show:function(a){this.fireEvent("show",[this.tip,a])},hide:function(a){this.fireEvent("hide",[this.tip,a])}})})();var Spinner=new Class({Extends:Mask,options:{"class":"spinner",containerPosition:{},content:{"class":"spinner-content"},messageContainer:{"class":"spinner-msg"},img:{"class":"spinner-img"},fxOptions:{link:"chain"}},initialize:function(){this.parent.apply(this,arguments);this.target.store("spinner",this);var b=function(){this.active=false}.bind(this);this.addEvents({hide:b,show:b})},render:function(){this.parent();this.element.set("id",this.options.id||"spinner-"+$time());this.content=document.id(this.options.content)||new Element("div",this.options.content);this.content.inject(this.element);if(this.options.message){this.msg=document.id(this.options.message)||new Element("p",this.options.messageContainer).appendText(this.options.message);this.msg.inject(this.content)}if(this.options.img){this.img=document.id(this.options.img)||new Element("div",this.options.img);this.img.inject(this.content)}this.element.set("tween",this.options.fxOptions)},show:function(b){if(this.active){return this.chain(this.show.bind(this))}if(!this.hidden){this.callChain.delay(20,this);return this}this.active=true;return this.parent(b)},showMask:function(d){var c=function(){this.content.position($merge({relativeTo:this.element},this.options.containerPosition))}.bind(this);if(d){this.parent();c()}else{this.element.setStyles({display:"block",opacity:0}).tween("opacity",this.options.style.opacity||0.9);c();this.hidden=false;this.fireEvent("show");this.callChain()}},hide:function(b){if(this.active){return this.chain(this.hide.bind(this))}if(this.hidden){this.callChain.delay(20,this);return this}this.active=true;return this.parent(b)},hideMask:function(b){if(b){return this.parent()}this.element.tween("opacity",0).get("tween").chain(function(){this.element.setStyle("display","none");this.hidden=true;this.fireEvent("hide");this.callChain()}.bind(this))},destroy:function(){this.content.destroy();this.parent();this.target.eliminate("spinner")}});Spinner.implement(new Chain);if(window.Request){Request=Class.refactor(Request,{options:{useSpinner:false,spinnerOptions:{},spinnerTarget:false},initialize:function(d){this._send=this.send;this.send=function(a){if(this.spinner){this.spinner.chain(this._send.bind(this,a)).show()}else{this._send(a)}return this};this.previous(d);var c=document.id(this.options.spinnerTarget)||document.id(this.options.update);if(this.options.useSpinner&&c){this.spinner=c.get("spinner",this.options.spinnerOptions);["onComplete","onException","onCancel"].each(function(a){this.addEvent(a,this.spinner.hide.bind(this.spinner))},this)}},getSpinner:function(){return this.spinner}})}Element.Properties.spinner={set:function(d){var c=this.retrieve("spinner");return this.eliminate("spinner").store("spinner:options",d)},get:function(b){if(b||!this.retrieve("spinner")){if(this.retrieve("spinner")){this.retrieve("spinner").destroy()}if(b||!this.retrieve("spinner:options")){this.set("spinner",b)}new Spinner(this,this.retrieve("spinner:options"))}return this.retrieve("spinner")}};Element.implement({spin:function(b){this.get("spinner",b).show();return this},unspin:function(){var b=Array.link(arguments,{options:Object.type,callback:Function.type});this.get("spinner",b.options).hide(b.callback);return this}});MooTools.lang.set("en-US","Date",{months:["January","February","March","April","May","June","July","August","September","October","November","December"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dateOrder:["month","date","year"],shortDate:"%m/%d/%Y",shortTime:"%I:%M%p",AM:"AM",PM:"PM",ordinal:function(b){return(b>3&&b<21)?"th":["th","st","nd","rd","th"][Math.min(b%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"});MooTools.lang.set("en-US","Form.Validator",{required:"This field is required.",minLength:"Please enter at least {minLength} characters (you entered {length} characters).",maxLength:"Please enter no more than {maxLength} characters (you entered {length} characters).",integer:"Please enter an integer in this field. Numbers with decimals (e.g. 1.25) are not permitted.",numeric:'Please enter only numeric values in this field (i.e. "1" or "1.1" or "-1" or "-1.1").',digits:"Please use numbers and punctuation only in this field (for example, a phone number with dashes or dots is permitted).",alpha:"Please use letters only (a-z) with in this field. No spaces or other characters are allowed.",alphanum:"Please use only letters (a-z) or numbers (0-9) only in this field. No spaces or other characters are allowed.",dateSuchAs:"Please enter a valid date such as {date}",dateInFormatMDY:'Please enter a valid date such as MM/DD/YYYY (i.e. "12/31/1999")',email:'Please enter a valid email address. For example "fred@domain.com".',url:"Please enter a valid URL such as http://www.google.com.",currencyDollar:"Please enter a valid $ amount. For example $100.00 .",oneRequired:"Please enter something for at least one of these inputs.",errorPrefix:"Error: ",warningPrefix:"Warning: ",noSpace:"There can be no spaces in this input.",reqChkByNode:"No items are selected.",requiredChk:"This field is required.",reqChkByName:"Please select a {label}.",match:"This field needs to match the {matchName} field",startDate:"the start date",endDate:"the end date",currendDate:"the current date",afterDate:"The date should be the same or after {label}.",beforeDate:"The date should be the same or before {label}.",startMonth:"Please select a start month",sameMonth:"These two dates must be in the same month - you must change one or the other.",creditcard:"The credit card number entered is invalid. Please check the number and try again. {length} digits entered."});MooTools.lang.set("ca-CA","Date",{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juli","Agost","Setembre","Octubre","Novembre","Desembre"],days:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"],dateOrder:["date","month","year"],shortDate:"%d/%m/%Y",shortTime:"%H:%M",AM:"AM",PM:"PM",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"});MooTools.lang.set("cs-CZ","Date",{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],days:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],dateOrder:["date","month","year"],shortDate:"%d/%m/%Y",shortTime:"%H:%M",AM:"dop.",PM:"odp.",ordinal:function(b){return"."},lessThanMinuteAgo:"méně než minutou",minuteAgo:"přibližně před minutou",minutesAgo:"před {delta} minutami",hourAgo:"přibližně před hodinou",hoursAgo:"před {delta} hodinami",dayAgo:"před dnem",daysAgo:"před {delta} dni",lessThanMinuteUntil:"před méně než minutou",minuteUntil:"asi před minutou",minutesUntil:" asi před {delta} minutami",hourUntil:"asi před hodinou",hoursUntil:"před {delta} hodinami",dayUntil:"před dnem",daysUntil:"před {delta} dni"});MooTools.lang.set("da-DK","Date",{months:["Januar","Februa","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dateOrder:["date","month","year"],AM:"AM",PM:"PM",shortDate:"%d-%m-%Y",shortTime:"%H:%M",ordinal:function(b){return(b>3&&b<21)?"th":["th","st","nd","rd","th"][Math.min(b%10,4)]},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",yearthAgo:"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"});MooTools.lang.set("nl-NL","Date",{months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],days:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"],dateOrder:["date","month","year"],AM:"AM",PM:"PM",shortDate:"%d/%m/%Y",shortTime:"%H:%M",ordinal:"e",lessThanMinuteAgo:"minder dan een minuut geleden",minuteAgo:"ongeveer een minuut geleden",minutesAgo:"minuten geleden",hourAgo:"ongeveer een uur geleden",hoursAgo:"ongeveer {delta} uur geleden",dayAgo:"{delta} dag geleden",daysAgo:"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:"minder dan een minuut vanaf nu",minuteUntil:"ongeveer een minuut vanaf nu",minutesUntil:"{delta} minuten vanaf nu",hourUntil:"ongeveer een uur vanaf nu",hoursUntil:"ongeveer {delta} uur vanaf nu",dayUntil:"1 dag vanaf nu",daysUntil:"{delta} dagen vanaf nu",weekAgo:"een week geleden",weeksAgo:"{delta} weken geleden",monthAgo:"een maand geleden",monthsAgo:"{delta} maanden geleden",yearthAgo:"een jaar geleden",yearsAgo:"{delta} jaar geleden",weekUntil:"over een week",weeksUntil:"over {delta} weken",monthUntil:"over een maand",monthsUntil:"over {delta} maanden",yearUntil:"over een jaar",yearsUntil:"over {delta} jaar"});MooTools.lang.set("en-GB","Date",{dateOrder:["date","month","year"],shortDate:"%d/%m/%Y",shortTime:"%H:%M"}).set("cascade",["en-US"]);MooTools.lang.set("et-EE","Date",{months:["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"],days:["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"],dateOrder:["month","date","year"],AM:"AM",PM:"PM",shortDate:"%m.%d.%Y",shortTime:"%H:%M",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"});MooTools.lang.set("fr-FR","Date",{months:["janvier","f&eacute;vrier","mars","avril","mai","juin","juillet","ao&ucirc;t","septembre","octobre","novembre","d&eacute;cembre"],days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dateOrder:["date","month","year"],AM:"AM",PM:"PM",shortDate:"%d/%m/%Y",shortTime:"%H:%M",getOrdinal:function(b){return(b>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"});MooTools.lang.set("it-IT","Date",{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],days:["Domenica","Luned&igrave;","Marted&igrave;","Mercoled&igrave;","Gioved&igrave;","Venerd&igrave;","Sabato"],dateOrder:["date","month","year"],AM:"AM",PM:"PM",shortDate:"%d/%m/%Y",shortTime:"%H.%M",ordinal:"&ordm;",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",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"});MooTools.lang.set("no-NO","Date",{dateOrder:["date","month","year"],shortDate:"%d.%m.%Y",shortTime:"%H:%M",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"});MooTools.lang.set("pl-PL","Date",{months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],days:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dateOrder:["year","month","date"],AM:"nad ranem",PM:"po południu",shortDate:"%Y-%m-%d",shortTime:"%H:%M",ordinal:function(b){return(b>3&&b<21)?"ty":["ty","szy","gi","ci","ty"][Math.min(b%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"});MooTools.lang.set("pt-BR","Date",{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],days:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dateOrder:["date","month","year"],shortDate:"%d/%m/%Y",shortTime:"%H:%M",ordinal:function(b){return"&ordm;"},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"});MooTools.lang.set("ru-RU-unicode","Date",{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],dateOrder:["date","month","year"],AM:"AM",PM:"PM",shortDate:"%d/%m/%Y",shortTime:"%H:%M",pluralize:function(k,n,o,l,j){var h=k%10;var m=k%100;if(h==1&&m!=11){return n}else{if((h==2||h==3||h==4)&&!(m==12||m==13||m==14)){return o}else{if(h==0||(h==5||h==6||h==7||h==8||h==9)||(m==11||m==12||m==13||m==14)){return l}else{return j}}}},ordinal:"",lessThanMinuteAgo:"меньше минуты назад",minuteAgo:"минута назад",minutesAgo:function(b){return"{delta} "+this.pluralize(b,"минута","минуты","минут")+" назад"},hourAgo:"час назад",hoursAgo:function(b){return"{delta} "+this.pluralize(b,"час","часа","часов")+" назад"},dayAgo:"вчера",daysAgo:function(b){return"{delta} "+this.pluralize(b,"день","дня","дней")+" назад"},lessThanMinuteUntil:"меньше минуты назад",minuteUntil:"через минуту",minutesUntil:function(b){return"через {delta} "+this.pluralize(b,"час","часа","часов")+""},hourUntil:"через час",hoursUntil:function(b){return"через {delta} "+this.pluralize(b,"час","часа","часов")+""},dayUntil:"завтра",daysUntil:function(b){return"через {delta} "+this.pluralize(b,"день","дня","дней")+""}});MooTools.lang.set("es-ES","Date",{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],days:["Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado"],dateOrder:["date","month","year"],AM:"AM",PM:"PM",shortDate:"%d/%m/%Y",shortTime:"%H:%M",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 dia",daysAgo:"hace {delta} dias",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 dia desde ahora",daysUntil:"{delta} dias 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"});MooTools.lang.set("sv-SE","Date",{months:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],days:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],dateOrder:["year","month","date"],AM:"",PM:"",shortDate:"%Y-%m-%d",shortTime:"%H:%M",ordinal:function(b){return""},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"});MooTools.lang.set("uk-UA","Date",{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],days:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"],dateOrder:["date","month","year"],AM:"до полудня",PM:"по полудню",shortDate:"%d/%m/%Y",shortTime:"%H:%M",pluralize:function(k,p,d,l,j){var m=parseInt(k/10);var n=k%10;var o=parseInt(k/100);if(m==1&&k>10){return l}if(n==1){return p}else{if(n>0&&n<5){return d}else{return l}}},ordinal:"",lessThanMinuteAgo:"меньше хвилини тому",minuteAgo:"хвилину тому",minutesAgo:function(b){return"{delta} "+this.pluralize(b,"хвилину","хвилини","хвилин")+" назад"},hourAgo:"годину назад",hoursAgo:function(b){return"{delta} "+this.pluralize(b,"годину","години","годин")+" назад"},dayAgo:"вчора",daysAgo:function(b){return"{delta} "+this.pluralize(b,"день","дня","днів")+" назад"},lessThanMinuteUntil:"за мить",minuteUntil:"через хвилину",minutesUntil:function(b){return"через {delta} "+this.pluralize(b,"хвилину","хвилини","хвилин")},hourUntil:"через годину",hoursUntil:function(b){return"через {delta} "+this.pluralize(b,"годину","години","годин")},dayUntil:"завтра",daysUntil:function(b){return"через {delta} "+this.pluralize(b,"день","дня","днів")}});MooTools.lang.set("ar","Form.Validator",{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.google.com",currencyDollar:"الرجاء إدخال قيمة $ صحيحة.  مثال, 100.00$",oneRequired:"الرجاء إدخال قيمة في أحد هذه الحقول على الأقل.",errorPrefix:"خطأ: ",warningPrefix:"تحذير: "}).set("ar","Date",{dateOrder:["date","month","year","/"]});MooTools.lang.set("ca-CA","Form.Validator",{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.google.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."});MooTools.lang.set("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.google.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."});MooTools.lang.set("zhs-CN","Form.Validator",{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:'请输入合法的日期格式，例如：MM/DD/YYYY ("12/31/1999")。',email:'请输入合法的电子信箱地址，例如："fred@domain.com"。',url:"请输入合法的 Url 地址，例如：http://www.google.com。",currencyDollar:"请输入合法的货币符号，例如：￥",oneRequired:"请至少选择一项。",errorPrefix:"错误：",warningPrefix:"警告："});MooTools.lang.set("zht-CN","Form.Validator",{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:'請鍵入合法的日期格式，例如：MM/DD/YYYY ("12/31/1999")。',email:'請鍵入合法的電子信箱地址，例如："fred@domain.com"。',url:"請鍵入合法的 Url 地址，例如：http://www.google.com。",currencyYuan:"請鍵入合法的貨幣符號，例如：￥",oneRequired:"請至少選擇一項。",errorPrefix:"錯誤：",warningPrefix:"警告："});Form.Validator.add("validate-currency-yuan",{errorMsg:function(){return Form.Validator.getMsg("currencyYuan")},test:function(b){return Form.Validator.getValidator("IsEmpty").test(b)||(/^￥?\-?([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(b.get("value"))}});MooTools.lang.set("nl-NL","Form.Validator",{required:"Dit veld is verplicht.",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 een streepje).",alpha:"Vul alleen letters in (a-z). Spaties en andere karakters zijn niet toegestaan.",alphanum:"Vul alleen letters in (a-z) of nummers (0-9). 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.google.nl.",currencyDollar:"Vul een geldig $ bedrag in. Bijvoorbeeld $100.00 .",oneRequired:"Vul iets in bij minimaal een van de invoervelden.",warningPrefix:"Waarschuwing: ",errorPrefix:"Fout: "});MooTools.lang.set("et-EE","Form.Validator",{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.google.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."});MooTools.lang.set("fr-FR","Form.Validator",{required:"Ce champ est obligatoire.",minLength:"Veuillez saisir un minimum de {minLength} caract&egrave;re(s) (vous avez saisi {length} caract&egrave;re(s)).",maxLength:"Veuillez saisir un maximum de {maxLength} caract&egrave;re(s) (vous avez saisi {length} caract&egrave;re(s)).",integer:'Veuillez saisir un nombre entier dans ce champ. Les nombres d&eacute;cimaux (ex : "1,25") ne sont pas autoris&eacute;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&eacute;ro de t&eacute;l&eacute;phone avec des traits d'union est autoris&eacute;).",alpha:"Veuillez saisir uniquement des lettres (a-z) dans ce champ. Les espaces ou autres caract&egrave;res ne sont pas autoris&eacute;s.",alphanum:"Veuillez saisir uniquement des lettres (a-z) ou des chiffres (0-9) dans ce champ. Les espaces ou autres caract&egrave;res ne sont pas autoris&eacute;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 &eacute;lectronique. Par example "fred@domaine.com".',url:"Veuillez saisir une URL, comme http://www.google.com.",currencyDollar:"Veuillez saisir une quantit&eacute; correcte. Par example 100,00&euro;.",oneRequired:"Veuillez s&eacute;lectionner au moins une de ces options.",errorPrefix:"Erreur : ",warningPrefix:"Attention : ",noSpace:"Ce champ n'accepte pas les espaces.",reqChkByNode:"Aucun &eacute;l&eacute;ment n'est s&eacute;lectionn&eacute;.",requiredChk:"Ce champ est obligatoire.",reqChkByName:"Veuillez s&eacute;lectionner un(e) {label}.",match:"Ce champ doit correspondre avec le champ {matchName}.",startDate:"date de d&eacute;but",endDate:"date de fin",currendDate:"date actuelle",afterDate:"La date doit &ecirc;tre identique ou post&eacute;rieure &agrave; {label}.",beforeDate:"La date doit &ecirc;tre identique ou ant&eacute;rieure &agrave; {label}.",startMonth:"Veuillez s&eacute;lectionner un mois de d&eacute;but.",sameMonth:"Ces deux dates doivent &ecirc;tre dans le m&ecirc;me mois - vous devez en modifier une."});MooTools.lang.set("it-IT","Form.Validator",{required:"Il campo &egrave; 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 &egrave; 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.dominio.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 &egrave; 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."});MooTools.lang.set("no-NO","Form.Validator",{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.google.no.",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: "});MooTools.lang.set("pl-PL","Form.Validator",{required:"To pole jest wymagane.",minLength:"Wymagane jest przynajmniej {minLenght} znaków (wpisanych zostało tylko {length}).",maxLength:"Dozwolone jest nie więcej niż {maxLenght} 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.google.pl.",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."});MooTools.lang.set("pt-PT","Form.Validator",{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.google.com.",currencyDollar:"Digite um valor válido $. Por exemplo $ 100,00. ",oneRequired:"Digite algo para pelo menos um desses insumos.",errorPrefix:"Erro: ",warningPrefix:"Aviso: "}).set("pt-PT","Date",{dateOrder:["date","month","year","/"]});MooTools.lang.set("pt-BR","Form.Validator",{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.google.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."});MooTools.lang.set("ru-RU-unicode","Form.Validator",{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.google.com.",currencyDollar:"Пожалуйста, введите сумму в долларах. Например: $100.00 .",oneRequired:"Пожалуйста, выберите хоть что-нибудь в одном из этих полей.",errorPrefix:"Ошибка: ",warningPrefix:"Внимание: "});MooTools.lang.set("ru-RU","Form.Validator",{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.google.com.",currencyDollar:"Ïîæàëóéñòà, ââåäèòå ñóììó â äîëëàðàõ. Íàïðèìåð: $100.00 .",oneRequired:"Ïîæàëóéñòà, âûáåðèòå õîòü ÷òî-íèáóäü â îäíîì èç ýòèõ ïîëåé.",errorPrefix:"Îøèáêà: ",warningPrefix:"Âíèìàíèå: "});MooTools.lang.set("es-ES","Form.Validator",{required:"Este campo es obligatorio.",minLength:"Por favor introduce al menos {minLength} caracteres (has introducido {length} caracteres).",maxLength:"Por favor introduce no mas de {maxLength} caracteres (has introducido {length} caracteres).",integer:"Por favor introduce un numero entero en este campo. Numeros con decimales (p.e. 1,25) no se permiten.",numeric:'Por favor introduce solo valores numericos en este campo (p.e. "1" o "1,1" o "-1" o "-1,1").',digits:"Por favor usa solo numeros y puntuacion en este campo (por ejemplo, un numero de telefono con guines 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 numeros (0-9) en este campo. No se admiten espacios ni otros caracteres.",dateSuchAs:"Por favor introduce una fecha valida como {date}",dateInFormatMDY:'Por favor introduce una fecha valida como DD/MM/YYYY (p.e. "31/12/1999")',email:'Por favor, introduce una direccione de email valida. Por ejemplo,  "fred@domain.com".',url:"Por favor introduce una URL valida como http://www.google.com.",currencyDollar:"Por favor introduce una cantidad valida 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."});MooTools.lang.set("sv-SE","Form.Validator",{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.google.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."});MooTools.lang.set("uk-UA","Form.Validator",{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.google.com).",currencyDollar:'Введіть суму в доларах (наприклад "$100.00").',oneRequired:"Заповніть одне з полів.",errorPrefix:"Помилка: ",warningPrefix:"Увага: "});var Popup=new Class({Implements:[Chain,Options,Events],options:{heading:"Oops, no title!",message:"Oops, no message!",footerMessage:null,url:null,width:null,height:null,opacity:0.8,bgColor:"#000000",type:"alert",focusElement:null,autoClose:false,autoCloseTime:3000,showButtons:true,confirmBtnText:"OK",cancelBtnText:null,onOpen:$empty,onClosed:$empty,onBeforeClosed:$empty,onConfirm:$empty,onCancel:$empty,isError:false},initialize:function(b){this.setOptions(b);var d=new Date();this.options.uniqueId=d.getTime();this.wincoords=$(document.body).getCoordinates();this.maxwidth=(this.wincoords.width>1020)?1000:Math.round(this.wincoords.width*0.95)-80;this.maxheight=(this.wincoords.height>885)?820:Math.round(this.wincoords.height*0.95)-125;this.popupHeight=($(window).getScrollSize().y>$(window).getSize().y)?$(window).getScrollSize().y:$(window).getSize().y;if(this.options.type=="iframe"&&!this.options.width){this.options.width=this.maxwidth}if(!this.options.width){this.options.width=350}this.popupClass=(this.options.isError==false)?"popup":"popup_error";this.html='<div class="popup_content_wrapper" id="popup_content_wrapper" style="width:100%; height: 100%"><div class="popup_tl"></div><div class="popup_t" id="popup_t" style="width:100%"></div><div class="popup_tr"></div><div class="popup_l" id="popup_l"></div><div class="popup_r" id="popup_r"></div><div class="popup_bl"></div><div class="popup_b" id="popup_b" style="width:100%"></div><div class="popup_br"></div><div class="popup_header" id="popup_header"></div><div class="popup_body" id="popup_body"></div><div class="popup_footer" id="popup_footer"><div class="popup_buttons" id="popup_buttons"></div><div class="popup_footer_message" id="popup_footer_message"></div><div class="clearfix"></div></div><div class="clearfix"></div></div>';this.popup_container=new Element("div",{"class":"popup_container",id:"popup_container"+this.options.uniqueId}).inject($(document.body),"top");this.popup_container.setStyles({"margin-left":"0","margin-top":"0",position:"absolute",top:0,left:0,display:"block",height:this.popupHeight,width:"100%",opacity:0});this.mask=new Element("div",{"class":"popup_mask",id:"popup"}).inject($("popup_container"+this.options.uniqueId),"top");this.mask.setStyles({"margin-left":"0","margin-top":"0",display:"block","background-color":this.options.bgColor,height:this.popupHeight,width:"100%",opacity:this.options.opacity});this.popup_window=new Element("div",{"class":"popup_window",id:"popup_window"}).inject($("popup"),"after");this.popup_window.addClass(this.popupClass);this.popup_window.setStyle("width",this.options.width);this.popup_window.set("html",this.html);this.confirmBtn=new Element("a",{"class":"pos_action_btn",href:"#",id:"popup_confirm"});this.confirmBtn.set("text",this.options.confirmBtnText);switch(this.options.type){case"alert":if(this.options.cancelBtnText){this.cancelBtn=new Element("a",{"class":"neg_action_btn",href:"#",id:"popup_cancel",text:this.options.cancelBtnText})}break;case"confirm":this.cancelBtn=new Element("a",{"class":"neg_action_btn",href:"#",id:"popup_cancel",text:(this.options.cancelBtnText)?this.options.cancelBtnText:"Cancel"});break;case"ajax":if(this.options.cancelBtnText){this.cancelBtn=new Element("a",{"class":"neg_action_btn",href:"#",id:"popup_cancel",text:this.options.cancelBtnText})}break;case"iframe":break;case"error":break}var a=new Element("div");if(this.confirmBtn){a.clone().inject(this.confirmBtn,"top")}if(this.cancelBtn){a.clone().inject(this.cancelBtn,"top")}var c=$("popup_buttons");if(this.cancelBtn){this.cancelBtn.inject(c,"top")}this.confirmBtn.inject(c,"top")},show:function(){if(this.options.footerMessage){$("popup_footer_message").set("html",this.options.footerMessage)}$("popup_header").set("html",this.options.heading);var c=$("popup_content_wrapper");var b=$("popup_body");if(this.options.type=="iframe"){b.set("html",'<iframe src="'+this.options.url+'" id="popup_iframe" onload="$(\'popup_loading_bg\').destroy();" frameborder="0" width="100%" style="z-index:100"></iframe>');this.render()}else{if(this.options.type=="ajax"){var a=new Request({url:this.options.url,method:"get",evalResponse:"true",onComplete:function(d){b.set("html",d);this.render()}.bind(this)}).send()}else{if($type(this.options.message)=="element"){this.copyEl=this.options.message.clone();this.el=this.options.message;this.copyEl.set("id",this.el.get("id")+"_clone");this.copyEl.inject(this.el,"after");this.el.inject(b,"top");if(this.el.hasClass("hidden_popup_content")){this.el.setStyle("display","block")}this.render()}else{b.set("html",this.options.message);this.render()}}}},render:function(){var b=$("popup_content_wrapper");var a=$("popup_body");this.popup_window.setStyles({left:-3000,display:"block"});if(this.options.type=="iframe"){if(!this.options.height){this.popup_window.setStyle("height",this.maxheight);$("popup_iframe").set("height",this.maxheight-71-$("popup_header").getCoordinates().height)}else{this.popup_window.setStyle("height",this.options.height);$("popup_iframe").set("height",this.options.height-71-$("popup_header").getCoordinates().height)}}else{this.popup_window.setStyle("height",b.getSize().y)}this.popup_window.setStyles({left:(this.mask.getSize().x-this.options.width)/2,top:(this.wincoords.height/2-this.popup_window.getSize().y/2)});if(this.options.focusElement){$(this.options.focusElement).focus()}this.fx=new Fx.Tween($("popup_container"+this.options.uniqueId),{property:"opacity",duration:500,onComplete:function(){this.open()}.bind(this)}).start(0,1);this.loadingDiv=new Element("div",{"class":"popup_loading_bg",id:"popup_loading_bg",styles:{height:a.getCoordinates().height-20,width:a.getCoordinates().width-20,position:"absolute","z-index":"10000"}}).inject($("popup_body"),"top");$("popup_confirm").addEvent("click",function(c){if(c){c.preventDefault()}this.confirm()}.bind(this));if($("popup_cancel")){$("popup_cancel").addEvent("click",function(c){if(c){c.preventDefault()}this.cancel()}.bind(this))}if(this.options.showButtons===false){$("popup_buttons").destroy()}if(this.options.autoClose){(function(){this.beforeclosed()}.bind(this)).delay(this.options.autoCloseTime)}},beforeopen:function(){this.fireEvent("beforeopen")},open:function(){this.fireEvent("open");if(this.options.type!="iframe"){$("popup_loading_bg").destroy()}},confirm:function(){this.fireEvent("confirm");this.beforeclosed()},cancel:function(){this.fireEvent("cancel");this.beforeclosed()},beforeclosed:function(){this.fireEvent("beforeclosed");this.closed()},closed:function(){if($("popup_container"+this.options.uniqueId)){this.fx=new Fx.Tween($("popup_container"+this.options.uniqueId),{property:"opacity",duration:300,onComplete:function(){if($type(this.options.message)=="element"){this.options.message.inject(this.copyEl,"after");this.copyEl.destroy();if(this.el.hasClass("hidden_popup_content")){this.el.setStyle("display","none")}if($("popup_container"+this.options.uniqueId)){$("popup_container"+this.options.uniqueId).destroy()}this.fireEvent("closed")}else{if($("popup_container"+this.options.uniqueId)){$("popup_container"+this.options.uniqueId).destroy()}this.fireEvent("closed")}}.bind(this)}).start(1,0)}},resize:function(b,a){this.popup_window.setStyles({width:b,height:a+71+$("popup_header").getCoordinates().height,left:(this.mask.getSize().x-b)/2,top:(this.wincoords.height/2-a/2)});if(this.options.type=="iframe"){$("popup_iframe").set("height",a)}}});Swiff.Uploader=new Class({Extends:Swiff,Implements:Events,options:{path:"Swiff.Uploader.swf",target:null,zIndex:9999,height:30,width:100,callBacks:null,params:{wMode:"opaque",menu:"false",allowScriptAccess:"always"},typeFilter:null,multiple:true,queued:true,verbose:false,url:null,method:null,data:null,mergeData:true,fieldName:null,fileSizeMin:1,fileSizeMax:null,allowDuplicates:false,timeLimit:(Browser.Platform.linux)?0:30,buttonImage:null,policyFile:null,fileListMax:0,fileListSizeMax:0,instantStart:false,appendCookieData:false,fileClass:null},initialize:function(b){this.addEvent("load",this.initializeSwiff,true).addEvent("select",this.processFiles,true).addEvent("complete",this.update,true).addEvent("fileRemove",function(d){this.fileList.erase(d)}.bind(this),true);this.setOptions(b);if(this.options.callBacks){Hash.each(this.options.callBacks,function(e,d){this.addEvent(d,e)},this)}this.options.callBacks={fireCallback:this.fireCallback.bind(this)};var c=this.options.path;if(!c.contains("?")){c+="?noCache="+$time()}this.options.container=this.box=new Element("span",{"class":"swiff-uploader-box"}).inject($(this.options.container)||document.body);this.target=$(this.options.target);if(this.target){var a=window.getScroll();this.box.setStyles({position:"absolute",visibility:"visible",zIndex:this.options.zIndex,overflow:"hidden",height:1,width:1,top:a.y,left:a.x});this.parent(c,{params:{wMode:"transparent"},height:"100%",width:"100%"});this.target.addEvent("mouseenter",this.reposition.bind(this,[]));this.addEvents({buttonEnter:this.targetRelay.bind(this,["mouseenter"]),buttonLeave:this.targetRelay.bind(this,["mouseleave"]),buttonDown:this.targetRelay.bind(this,["mousedown"]),buttonDisable:this.targetRelay.bind(this,["disable"])});this.reposition();window.addEvent("resize",this.reposition.bind(this,[]))}else{this.parent(c)}this.inject(this.box);this.fileList=[];this.size=this.uploading=this.bytesLoaded=this.percentLoaded=0;if(Browser.Plugins.Flash.version<9){this.fireEvent("fail",["flash"])}else{this.verifyLoad.delay(1000,this)}},verifyLoad:function(){if(this.loaded){return}if(!this.object.parentNode){this.fireEvent("fail",["disabled"])}else{if(this.object.style.display=="none"){this.fireEvent("fail",["hidden"])}else{if(!this.object.offsetWidth){this.fireEvent("fail",["empty"])}}}},fireCallback:function(b,a){if(b.substr(0,4)=="file"){if(a.length>1){this.update(a[1])}var e=a[0];var c=this.findFile(e.id);this.fireEvent(b,c||e,5);if(c){var d=b.replace(/^file([A-Z])/,function(g,f){return f.toLowerCase()});c.update(e).fireEvent(d,[e],10)}}else{this.fireEvent(b,a,5)}},update:function(a){$extend(this,a);this.fireEvent("queue",[this],10);return this},findFile:function(b){for(var a=0;a<this.fileList.length;a++){if(this.fileList[a].id==b){return this.fileList[a]}}return null},initializeSwiff:function(){this.remote("initialize",{width:this.options.width,height:this.options.height,typeFilter:this.options.typeFilter,multiple:this.options.multiple,queued:this.options.queued,url:this.options.url,method:this.options.method,data:this.options.data,mergeData:this.options.mergeData,fieldName:this.options.fieldName,verbose:this.options.verbose,fileSizeMin:this.options.fileSizeMin,fileSizeMax:this.options.fileSizeMax,allowDuplicates:this.options.allowDuplicates,timeLimit:this.options.timeLimit,buttonImage:this.options.buttonImage,policyFile:this.options.policyFile});this.loaded=true;this.appendCookieData()},targetRelay:function(a){if(this.target){this.target.fireEvent(a)}},reposition:function(a){a=a||(this.target&&this.target.offsetHeight)?this.target.getCoordinates(this.box.getOffsetParent()):{top:window.getScrollTop(),left:0,width:40,height:40};this.box.setStyles(a);this.fireEvent("reposition",[a,this.box,this.target])},setOptions:function(a){if(a){if(a.url){a.url=Swiff.Uploader.qualifyPath(a.url)}if(a.buttonImage){a.buttonImage=Swiff.Uploader.qualifyPath(a.buttonImage)}this.parent(a);if(this.loaded){this.remote("setOptions",a)}}return this},setEnabled:function(a){this.remote("setEnabled",a)},start:function(){this.fireEvent("beforeStart");this.remote("start")},stop:function(){this.fireEvent("beforeStop");this.remote("stop")},remove:function(){this.fireEvent("beforeRemove");this.remote("remove")},fileStart:function(a){this.remote("fileStart",a.id)},fileStop:function(a){this.remote("fileStop",a.id)},fileRemove:function(a){this.remote("fileRemove",a.id)},fileRequeue:function(a){this.remote("fileRequeue",a.id)},appendCookieData:function(){var a=this.options.appendCookieData;if(!a){return}var c={};document.cookie.split(/;\s*/).each(function(d){d=d.split("=");if(d.length==2){c[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}});var b=this.options.data||{};if($type(a)=="string"){b[a]=c}else{$extend(b,c)}this.setOptions({data:b})},processFiles:function(f,d,a){var c=this.options.fileClass||Swiff.Uploader.File;var b=[],e=[];if(f){f.each(function(h){var g=new c(this,h);if(!g.validate()){g.remove.delay(10,g);b.push(g)}else{this.size+=h.size;this.fileList.push(g);e.push(g);g.render()}},this);this.fireEvent("selectSuccess",[e],10)}if(d||b.length){b.extend((d)?d.map(function(g){return new c(this,g)},this):[]).each(function(g){g.invalidate().render()});this.fireEvent("selectFail",[b],10)}this.update(a);if(this.options.instantStart&&e.length){this.start()}}});$extend(Swiff.Uploader,{STATUS_QUEUED:0,STATUS_RUNNING:1,STATUS_ERROR:2,STATUS_COMPLETE:3,STATUS_STOPPED:4,log:function(){if(window.console&&console.info){console.info.apply(console,arguments)}},unitLabels:{b:[{min:1,unit:"B"},{min:1024,unit:"kB"},{min:1048576,unit:"MB"},{min:1073741824,unit:"GB"}],s:[{min:1,unit:"s"},{min:60,unit:"m"},{min:3600,unit:"h"},{min:86400,unit:"d"}]},formatUnit:function(a,h,b){var f=Swiff.Uploader.unitLabels[(h=="bps")?"b":h];var c=(h=="bps")?"/s":"";var e,d=f.length,j;if(a<1){return"0 "+f[0].unit+c}if(h=="s"){var g=[];for(e=d-1;e>=0;e--){j=Math.floor(a/f[e].min);if(j){g.push(j+" "+f[e].unit);a-=j*f[e].min;if(!a){break}}}return(b===false)?g:g.join(b||", ")}for(e=d-1;e>=0;e--){j=f[e].min;if(a>=j){break}}return(a/j).toFixed(1)+" "+f[e].unit+c}});Swiff.Uploader.qualifyPath=(function(){var a;return function(b){(a||(a=new Element("a"))).href=b;return a.href}})();Swiff.Uploader.File=new Class({Implements:Events,initialize:function(b,a){this.base=b;this.update(a)},update:function(a){return $extend(this,a)},validate:function(){var a=this.base.options;if(a.fileListMax&&this.base.fileList.length>=a.fileListMax){this.validationError="fileListMax";return false}if(a.fileListSizeMax&&(this.base.size+this.size)>a.fileListSizeMax){this.validationError="fileListSizeMax";return false}return true},invalidate:function(){this.invalid=true;this.base.fireEvent("fileInvalid",this,10);return this.fireEvent("invalid",this,10)},render:function(){return this},setOptions:function(a){if(a){if(a.url){a.url=Swiff.Uploader.qualifyPath(a.url)}this.base.remote("fileSetOptions",this.id,a);this.options=$merge(this.options,a)}return this},start:function(){this.base.fileStart(this);return this},stop:function(){this.base.fileStop(this);return this},remove:function(){this.base.fileRemove(this);return this},requeue:function(){this.base.fileRequeue(this)}});Fx.ProgressBar=new Class({Extends:Fx,options:{text:null,url:null,transition:Fx.Transitions.Circ.easeOut,fit:true,link:"cancel"},initialize:function(c,b){this.element=$(c);this.parent(b);var a=this.options.url;if(a){this.element.setStyles({"background-image":"url("+a+")","background-repeat":"no-repeat"})}if(this.options.fit){a=a||this.element.getStyle("background-image").replace(/^url\(["']?|["']?\)$/g,"");if(a){var d=new Image();d.onload=function(){this.fill=d.width;d=d.onload=null;this.set(this.now||0)}.bind(this);d.src=a;if(!this.fill&&d.width){d.onload()}}}else{this.set(0)}},start:function(b,a){return this.parent(this.now,(arguments.length==1)?b.limit(0,100):b/a*100)},set:function(c){this.now=c;var a=(this.fill)?(((this.fill/-2)+(c/100)*(this.element.width||1)||0).round()+"px"):((100-c)+"%");this.element.setStyle("backgroundPosition",a+" 0px").title=Math.round(c)+"%";var b=$(this.options.text);if(b){b.set("text",Math.round(c)+"%")}return this}});var FancyUpload2=new Class({Extends:Swiff.Uploader,options:{queued:1,limitSize:0,limitFiles:0,validateFile:$lambda(true)},initialize:function(a,c,b){this.status=$(a);this.list=$(c);b.fileClass=b.fileClass||FancyUpload2.File;b.fileSizeMax=b.limitSize||b.fileSizeMax;b.fileListMax=b.limitFiles||b.fileListMax;this.parent(b);this.addEvents({load:this.render,select:this.onSelect,cancel:this.onCancel,start:this.onStart,queue:this.onQueue,complete:this.onComplete})},render:function(){this.overallTitle=this.status.getElement(".overall-title");this.currentTitle=this.status.getElement(".current-title");this.currentText=this.status.getElement(".current-text");var a=this.status.getElement(".overall-progress");this.overallProgress=new Fx.ProgressBar(a,{text:new Element("span",{"class":"progress-text"}).inject(a,"after")});a=this.status.getElement(".current-progress");this.currentProgress=new Fx.ProgressBar(a,{text:new Element("span",{"class":"progress-text"}).inject(a,"after")});this.updateOverall()},onSelect:function(){this.status.removeClass("status-browsing")},onCancel:function(){this.status.removeClass("file-browsing")},onStart:function(){this.status.addClass("file-uploading");this.overallProgress.set(0)},onQueue:function(){this.updateOverall()},onComplete:function(){this.status.removeClass("file-uploading");if(this.size){this.overallProgress.start(100)}else{this.overallProgress.set(0);this.currentProgress.set(0)}},updateOverall:function(){this.overallTitle.set("html",MooTools.lang.get("FancyUpload","progressOverall").substitute({total:Swiff.Uploader.formatUnit(this.size,"b")}));if(!this.size){this.currentTitle.set("html",MooTools.lang.get("FancyUpload","currentTitle"));this.currentText.set("html","")}},upload:function(){this.start()},removeFile:function(){return this.remove()}});FancyUpload2.File=new Class({Extends:Swiff.Uploader.File,render:function(){if(this.invalid){if(this.validationError){var a=MooTools.lang.get("FancyUpload","validationErrors")[this.validationError]||this.validationError;this.validationErrorMessage=a.substitute({name:this.name,size:Swiff.Uploader.formatUnit(this.size,"b"),fileSizeMin:Swiff.Uploader.formatUnit(this.base.options.fileSizeMin||0,"b"),fileSizeMax:Swiff.Uploader.formatUnit(this.base.options.fileSizeMax||0,"b"),fileListMax:this.base.options.fileListMax||0,fileListSizeMax:Swiff.Uploader.formatUnit(this.base.options.fileListSizeMax||0,"b")})}this.remove();return}this.addEvents({start:this.onStart,progress:this.onProgress,complete:this.onComplete,error:this.onError,remove:this.onRemove});this.info=new Element("span",{"class":"file-info"});this.element=new Element("li",{"class":"file"}).adopt(new Element("span",{"class":"file-size",html:Swiff.Uploader.formatUnit(this.size,"b")}),new Element("a",{"class":"file-remove",href:"#",html:MooTools.lang.get("FancyUpload","remove"),title:MooTools.lang.get("FancyUpload","removeTitle"),events:{click:function(){this.remove();return false}.bind(this)}}),new Element("span",{"class":"file-name",html:MooTools.lang.get("FancyUpload","fileName").substitute(this)}),this.info).inject(this.base.list)},validate:function(){return(this.parent()&&this.base.options.validateFile(this))},onStart:function(){this.element.addClass("file-uploading");this.base.currentProgress.cancel().set(0);this.base.currentTitle.set("html",MooTools.lang.get("FancyUpload","currentFile").substitute(this))},onProgress:function(){this.base.overallProgress.start(this.base.percentLoaded);this.base.currentText.set("html",MooTools.lang.get("FancyUpload","currentProgress").substitute({rate:(this.progress.rate)?Swiff.Uploader.formatUnit(this.progress.rate,"bps"):"- B",bytesLoaded:Swiff.Uploader.formatUnit(this.progress.bytesLoaded,"b"),timeRemaining:(this.progress.timeRemaining)?Swiff.Uploader.formatUnit(this.progress.timeRemaining,"s"):"-"}));this.base.currentProgress.start(this.progress.percentLoaded)},onComplete:function(){this.element.removeClass("file-uploading");this.base.currentText.set("html","Upload completed");this.base.currentProgress.start(100);if(this.response.error){var b=MooTools.lang.get("FancyUpload","errors")[this.response.error]||"{error} #{code}";this.errorMessage=b.substitute($extend({name:this.name,size:Swiff.Uploader.formatUnit(this.size,"b")},this.response));var a=[this,this.errorMessage,this.response];this.fireEvent("error",a).base.fireEvent("fileError",a)}else{this.base.fireEvent("fileSuccess",[this,this.response.text||""])}},onError:function(){this.element.addClass("file-failed");var a=MooTools.lang.get("FancyUpload","fileError").substitute(this);this.info.set("html","<strong>"+a+":</strong> "+this.errorMessage)},onRemove:function(){this.element.getElements("a").setStyle("visibility","hidden");this.element.fade("out").retrieve("tween").chain(Element.destroy.bind(Element,this.element))}});(function(){var a={progressOverall:"Overall Progress ({total})",currentTitle:"File Progress",currentFile:'Uploading "{name}"',currentProgress:"Upload: {bytesLoaded} with {rate}, {timeRemaining} remaining.",fileName:"{name}",remove:"Remove",removeTitle:"Click to remove this entry.",fileError:"Upload failed",validationErrors:{duplicate:"File <em>{name}</em> is already added, duplicates are not allowed.",sizeLimitMin:"File <em>{name}</em> (<em>{size}</em>) is too small, the minimal file size is {fileSizeMin}.",sizeLimitMax:"File <em>{name}</em> (<em>{size}</em>) is too big, the maximal file size is <em>{fileSizeMax}</em>.",fileListMax:"File <em>{name}</em> could not be added, amount of <em>{fileListMax} files</em> exceeded.",fileListSizeMax:"File <em>{name}</em> (<em>{size}</em>) is too big, overall filesize of <em>{fileListSizeMax}</em> exceeded."},errors:{httpStatus:"Server returned HTTP-Status <code>#{code}</code>",securityError:"Security error occured ({text})",ioError:"Error caused a send or load operation to fail ({text})"}};if(MooTools.lang){MooTools.lang.set("en-US","FancyUpload",a)}else{MooTools.lang={get:function(c,b){return a[b]}}}})();var forwardingFromAction=get_cookie("forwardingFromAction");var postLoginAction=get_cookie("postLoginAction");var referringPage=get_cookie("referringPage");var enteringContest=get_cookie("enteringContest");var winScroller;window.addEvents({domready:function(){winScroller=new Fx.Scroll(window,{duration:750});if(forwardingFromAction){var a=get_cookie("postLoginAction");if(a){if(a.indexOf("|")!=-1){var b=a.split("|")}else{b[0]=a}switch(b[0]){case"listenHeart":window.location.href="/listen?track_id="+b[1];break;case"listenFacebook":window.location.href="/listen?track_id="+b[1];break;case"loginRequired":window.location.href=b[1];break}}delete_cookie("forwardingFromAction")}setOverText()},load:function(){if(get_cookie("postLoginAction")){var a=get_cookie("postLoginAction");if(a){var b=a.split("|");switch(b[0]){case"listenHeart":listen_heart(b[1]);break;case"listenFacebook":listen_facebook_share(b[1]);break;case"voteFacebook":contest_facebook_share(b[1],b[2]);break;case"djTrackFacebook":dj_track_share(b[1],b[2]);break;case"voteTwitter":contest_twitter_share(b[1],b[2]);break}delete_cookie("postLoginAction");postLoginAction=null}}}});function listen_heart(b){if(logged_in){var a=new Request({url:"/listen/heart_track",method:"get",useSpinner:true,evalResponse:"true"}).send("user_id="+logged_in+"&track_id="+b)}else{set_cookie("postLoginAction","listenHeart|"+b);set_cookie("forwardingFromAction","listen_heart");signupOrLogin()}}function listen_facebook_share(c){if(logged_in){var a="/listen/share_track";var b=new Request({url:a,method:"get",evalResponse:"true"}).send("user_id="+logged_in+"&track_id="+c)}else{set_cookie("postLoginAction","listenFacebook|"+c);set_cookie("forwardingFromAction","listen_facebook_share");signupOrLogin()}}function mixTrack(c){if(logged_in){var a="/listen/share_track";var b=new Request({url:a,method:"get",evalResponse:"true"}).send("user_id="+logged_in+"&track_id="+c);location.href="/audiodjx"}else{signupOrLogin()}}function contest_like_roosevelt(b){if(logged_in){var a=new Request({url:"/facebook/vote_like_roosevelt",method:"get",evalResponse:true}).send("contest_track_id="+b)}}function contest_facebook_share(a,c){if(logged_in){var b=new Request({url:"/facebook/share_contest_track",method:"get",evalResponse:true}).send("contest_track_id="+c)}else{set_cookie("postLoginAction","voteFacebook|"+a+"|"+c);set_cookie("forwardingFromAction","contest_facebook_share");signupOrLogin()}}function contest_twitter_share(a,c){if(logged_in){var b=new Request({url:"/twitter/share_contest_track",method:"get",evalResponse:true}).send("contest_track_id="+c)}else{set_cookie("postLoginAction","voteTwitter|"+a+"|"+c);set_cookie("forwardingFromAction","voteTwitter");signupOrLogin()}}function dj_track_share(a,c){if(logged_in){var b=new Request({url:"/facebook/dj_track_share",method:"get",evalResponse:true}).send("track_id="+c)}else{set_cookie("postLoginAction","djTrackFacebook|"+a+"|"+c);set_cookie("forwardingFromAction","dj_track_share");signupOrLogin()}}function signupOrLogin(){new Popup({heading:"Log In Required",message:'<h3>Log In with Facebook Connect</h3><p>Great, you\'re ready to get in the competition. Now all you need to do is <a href="/member/signup">sign-up</a> or <a href="'+login_url+"\">log in</a> using Facebook Connect and you're all set!</p>",confirmBtnText:"Log In Now!",onConfirm:function(){location.href=login_url}}).show()}function earnpointsContestTrack(b,a){if(a==""||a=="undefined"||a==undefined){new Popup({message:"<h3>Log In with Facebook Connect</h3><p>Great, you're ready to get in the competition. Now all you need to do is log in using Facebook Connect and you're all set!</p>",confirmBtnText:"Log In Now!",onConfirm:function(){location.href=login_url}})}else{location.href="/super-rewards/earn_points/"+b}}function search_form(){var a=$("artist_name").get("value");var b="";if(a.match(/^[ ]*$/)){return false}for(i=0;i<a.length;i++){if(a.charAt(i)==" "){b+="-"}else{b+=a.charAt(i)}}location.href="/listen/artist/"+b}function tab_switcher(c,a){var b=$$("#"+$(c).id+" .tab");var d=$$("#"+$(c).id+" .tab_container");if($("tab_"+a).hasClass("active")){return false}b.each(function(e){if(e.hasClass("active")){e.removeClass("active");e.addClass("inactive")}if(e.id=="tab_"+a){e.removeClass("inactive");e.addClass("active")}});d.each(function(e){if(e.getStyle("display")!="none"){e.setStyle("display","none");e.fade("out")}if(e.id=="tab_container_"+a){e.setStyles({opacity:0,display:"block"});e.fade("in")}})}function show_activate_popup(b,a){new Popup({type:"confirm",confirmBtnText:"Log In",cancelBtnText:"Cancel",heading:"Log In Required",message:"In order to successfully activate your account for the contest you must log in.",onConfirm:function(){location.href=login_url}}).show()}function show_feature_login_popup(b,a){new Popup({type:"confirm",confirmBtnText:"Log In",cancelBtnText:"Cancel",heading:"Log In Features",message:"Logging in through Facebook allows you to add songs to your favourites, vote for your favourite DJ and many other things. Are you ready to log in now?",onConfirm:function(){location.href=login_url}}).show()}function load_track_page(b,a,c,d){new Request.HTML({update:b,url:a,useSpinner:true,evalScripts:true,evalResponse:true,onSuccess:function(){handle_page_change(c,d)}}).post({play:d})}function load_leader_page(b,a,c){new Request.HTML({update:b,url:a,useSpinner:true,evalScripts:true,evalResponse:true,onSuccess:function(){if(FB.XFBML.Host.parseDomTree){setTimeout(FB.XFBML.Host.parseDomTree,100)}}}).send()}function show_terms(){new Popup({type:"ajax",heading:"Contest Terms &amp Conditions",url:"/site/contest-rules/?popup=true",width:720}).show()}function show_battle_terms(){new Popup({type:"ajax",heading:"Contest Terms &amp Conditions",url:"/site/battle-rules/?popup=true",width:720}).show()}function set_cookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"}function get_cookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function delete_cookie(a){set_cookie(a,"",-1)}String.implement({phone:function(){var b=this.replace(/[^\d]/g,"");var a=b.match(/^(\d{0,3})(\d{0,3})(\d{0,4})/);if(a[1].length>0){b="("+a[1]}if(a[1].length==3){b+=") "+a[2];if(a[2].length==3){b+="-"+a[3]}}return b},numeric:function(){var a=this.replace(/[^\d]/g,"");return a},alpha:function(){var a=this.replace(/[^0-9.,]/g,"");return a},alphanumeric:function(){var a=this.replace(/\W/,"");return a}});function remove_notice(a){new Request({url:"/user/mark_notice",onComplete:function(c){var d=$("my_account_notice").get("text").toInt()-1;if(d>0){if(d>1){$("my_account_notice").set("text",d+" Notices")}else{$("my_account_notice").set("text","1 Notice")}}var b=new Fx.Tween($("notice_"+c),{duration:1000,onComplete:function(){$("notice_"+c).destroy();if(d==0){$("my_account_notice").destroy();$("notices_box").destroy()}}});b.start("opacity",0)}}).post({id:a})}function show_vote_embed_code(a){new Popup({width:700,heading:"PromoteDJ Widget",message:'<div style="float: left; width: 380px"><h3>More ways to promote!</h3><p>Now promoting your favourite track is even easier than ever before. Introducing the <strong>Audio Academy PromoteDJ Widget</strong>. Simply paste the Embed Code below <strong>exactly</strong> where you\'d like to see the widget on your website and you\'re on your way.</p><hr /><p style="font-size: 11px"><strong style="color: #CC0000">Note:</strong><br />The widget minimum width is 160px. The PromoteDJ Widget works best in the side column of your website. However, it can also be displayed in the main content and will stretch up to 640px wide.</p></div><div style="float: right"><img src="/images/aa_widget_screen.gif" /></div><div class="clearfix"></div><div style="width: 658px; background-color: #fffeed; padding: 10px; margin-top: 20px; border: solid 1px #ffdd99; color: #000000"><h4>Your Embed Code</h4><span style="font-size: 11px">&lt;div style="text-align: right;"&gt;&lt;script type="text/javascript" src="http://www.audioacademy.fm/widget.php?track_id='+a+'"&gt;&lt;/script&gt;&lt;a href="www.audioacademy.fm" style="color: #0080FF"&gt;audioacademy.fm&lt;/a&gt;&lt;/div&gt;</span></div></div>'}).show()}function requiredLogin(){alert("asdf")}function setOverText(){var a=$$(".overtext");a.each(function(c){var b=c.getProperty("alt");c.setProperty("value",b);c.addEvents({focus:function(){if(c.getProperty("value")==b){c.setProperty("value","")}},blur:function(){if(c.getProperty("value")==""){c.setProperty("value",b)}}})})}function subscribe(){var b=$("optin_form").toQueryString();var a=$("optin_email").getProperty("value");var c=$("optin_email").getProperty("alt");if(a=""||a==c){new Popup({heading:"Error!",message:"<li>You must fill in your email address</li>",isError:true}).show()}else{new Request({url:"/mailchimp/adduser",method:"post",onComplete:function(d){var e=$("optin_email").getProperty("value");if(d==1){new Popup({heading:"Check Your Email",message:"We've just sent an email to: <strong style='font-style: italic'>\""+e+"\"</strong> with instructions for how to confirm your subscription to our mailing list. Be sure to check your junk mail folder if you don't see it in your inbox. Simply follow the instructions and leave the rest to us.",width:500}).show()}else{if(d==214){var f="<li>The email address: <strong style='font-style: italic'>\""+e+'"</strong> already exists in this list</li>'}else{if(d==502){f="<li>The email address: <strong style='font-style: italic'>\""+e+'"</strong> is not formatted correctly (e.g. name@domain.com)</li>'}else{f="An unknown error has occured. Please try again."}}new Popup({heading:"Error!",message:f,isError:true,width:500}).show()}}}).send(b)}}function connectDjs(){$("dj_connections").addEvent("click",function(){var a=new Request({method:"get",url:"/facebook/dj_connections/",useSpinner:true,spinnerTarget:$("dj_friend_pics"),update:$("dj_connections"),onComplete:function(b){if(FB.XFBML.Host.parseDomTree){setTimeout(FB.XFBML.Host.parseDomTree,100)}}}).send()})}var target="clock_wrapper";var countdown;function initCountdown(g,d,b,f){var c=new Date();if(g=="*"){c.setMonth(c.getMonth()+1)}else{if(g>0){if(g<=c.getMonth()){c.setYear(c.getYear()+1)}c.setMonth(g-1)}}if(d.substr(0,1)=="+"){var h=parseInt(d.substr(1));c.setDate(c.getDate()+h)}else{c.setDate(d)}c.setHours(b);c.setMinutes(0-(f*60));c.setSeconds(0);var e=new Date();e.setMinutes(e.getMinutes()+e.getTimezoneOffset());var a=new Date(0);a.setMilliseconds(c-e);countdown=Math.floor(a.valueOf()/1000)}function displayCountdown(e){countdown--;if(countdown<0){$(e).set("html","<div class='countdown_over'>You're too late!</div>");$("countdown_clock").setStyle("background-position","-300px 0px")}else{var c=countdown%60;var f=(countdown-c)/60;var d=f%60;f=(f-d)/60;var a=f%24;var g=(f-a)/24;if(g==0){var b="off";if($("countdown_clock").hasClass("small")){$("countdown_clock").setStyle("background-position","-510px 0px")}else{$("countdown_clock").setStyle("background-position","-300px 0px")}}else{var b="on";if($("countdown_clock").hasClass("small")){$("countdown_clock").setStyle("background-position","-600px 0px")}else{$("countdown_clock").setStyle("background-position","0px 0px")}}$(e).set("html","<div class='countdown_section "+b+"'><div class='countdown_amount'>"+a+"</div> Hour"+(a==1?"":"s")+"</div><div class='countdown_section "+b+"'><div class='countdown_amount'>"+d+"</div> Minute"+(d==1?"":"s")+"</div><div class='countdown_section "+b+"'><div class='countdown_amount'>"+c+"</div> Second"+(c==1?"":"s")+"</div>")}}var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),h=c?/win/.test(c):/win/.test(e),k=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!+"\v1",f=[0,0,0],l=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){l=aB.plugins[ab].description;if(l&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var j=new ActiveXObject(X);if(j){l=j.GetVariable("$version");if(l){d=true;l=l.split(" ")[1].split(",");f=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:k}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var d=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})()}else{am()}}function am(){var g=aG.length;if(g>0){for(var h=0;h<g;h++){var c=aG[h].id;var m=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var j=aS(c);if(j){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(m){a.success=true;a.ref=av(c);m(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=j.getAttribute("width")||"0";e.height=j.getAttribute("height")||"0";if(j.getAttribute("class")){e.styleclass=j.getAttribute("class")}if(j.getAttribute("align")){e.align=j.getAttribute("align")}var f={};var d=j.getElementsByTagName("param");var l=d.length;for(var k=0;k<l;k++){if(d[k].getAttribute("name").toLowerCase()!="movie"){f[d[k].getAttribute("name")]=d[k].getAttribute("value")}}ae(e,f,c,m)}else{aF(j);if(m){m(a)}}}}}else{ay(c,true);if(m){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}m(a)}}}}}function av(b){var d=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(f,d,h,e){aU=true;ap=e||null;at={success:false,id:h};var a=aS(h);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=h}f.id=ac;if(typeof f.width==aq||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!=4){var g=ar("div");h+="SWFObjectNew";g.setAttribute("id",h);a.parentNode.insertBefore(g,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(f,d,h)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var f=a.length;for(var c=0;c<f;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq){e.id=c}if(ah.ie&&ah.win){var f="";for(var j in e){if(e[j]!=Object.prototype[j]){if(j.toLowerCase()=="data"){g.movie=e[j]}else{if(j.toLowerCase()=="styleclass"){f+=' class="'+e[j]+'"'}else{if(j.toLowerCase()!="classid"){f+=" "+j+'="'+e[j]+'"'}}}}}var h="";for(var k in g){if(g[k]!=Object.prototype[k]){h+='<param name="'+k+'" value="'+g[k]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var l in e){if(e[l]!=Object.prototype[l]){if(l.toLowerCase()=="styleclass"){b.setAttribute("class",e[l])}else{if(l.toLowerCase()!="classid"){b.setAttribute(l,e[l])}}}}for(var m in g){if(g[m]!=Object.prototype[m]&&m.toLowerCase()!="movie"){aQ(b,m,g[m])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aQ(b,d,c){var a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return aL.createElement(a)}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c){if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!aH||an!=g){var d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI){return}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah){ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.length]=d;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(l,e,h,f,c,a,b,j,g,k){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&l&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var r={};if(g&&typeof g===aD){for(var p in g){r[p]=g[p]}}r.data=l;r.width=h;r.height=f;var o={};if(j&&typeof j===aD){for(var q in j){o[q]=j[q]}}if(b&&typeof b===aD){for(var m in b){if(typeof o.flashvars!=aq){o.flashvars+="&"+m+"="+b[m]}else{o.flashvars=m+"="+b[m]}}}if(ao(c)){var n=aA(r,o,e);if(r.id==e){ay(e,true)}d.success=true;d.ref=n}else{if(a&&au()){r.data=a;ae(r,o,e,k);return}else{ay(e,true)}}if(k){k(d)}})}else{if(k){k(d)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au()){ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,c,d){if(ah.w3){az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return ai(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();if(typeof jwplayer=="undefined"){var jwplayer=function(a){if(jwplayer.api){return jwplayer.api.selectPlayer(a)}};var $jw=jwplayer;jwplayer.version="5.6.1768 (Licensed version)";(function(b){b.utils=function(){};b.utils.typeOf=function(d){var c=typeof d;if(c==="object"){if(d){if(d instanceof Array){c="array"}}else{c="null"}}return c};b.utils.extend=function(){var e=b.utils.extend["arguments"];if(e.length>1){for(var d=1;d<e.length;d++){for(var c in e[d]){e[0][c]=e[d][c]}}return e[0]}return null};b.utils.clone=function(d){var e;var f=b.utils.clone["arguments"];if(f.length==1){switch(b.utils.typeOf(f[0])){case"object":e={};for(var c in f[0]){e[c]=b.utils.clone(f[0][c])}break;case"array":e=[];for(var c in f[0]){e[c]=b.utils.clone(f[0][c])}break;default:return f[0];break}}return e};b.utils.extension=function(c){c=c.substring(c.lastIndexOf("/")+1,c.length);c=c.split("?")[0];if(c.lastIndexOf(".")>-1){return c.substr(c.lastIndexOf(".")+1,c.length).toLowerCase()}return};b.utils.html=function(c,d){c.innerHTML=d};b.utils.wrap=function(c,d){c.parentNode.replaceChild(d,c);d.appendChild(c)};b.utils.ajax=function(d,c,e){var g;if(window.XMLHttpRequest){g=new XMLHttpRequest()}else{g=new ActiveXObject("Microsoft.XMLHTTP")}g.onreadystatechange=function(){if(g.readyState===4){if(g.status===200){if(c){c(g)}}else{if(e){e(d)}}}};try{g.open("GET",d,true);g.send(null)}catch(f){if(e){e(d)}}return g};b.utils.load=function(c,d,e){c.onreadystatechange=function(){if(c.readyState===4){if(c.status===200){if(d){d()}}else{if(e){e()}}}}};b.utils.find=function(d,c){return d.getElementsByTagName(c)};b.utils.append=function(c,d){c.appendChild(d)};b.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"))};b.utils.isLegacyAndroid=function(){var c=navigator.userAgent.toLowerCase();return(c.match(/android 2.[012]/i)!==null)};b.utils.isIOS=function(){var c=navigator.userAgent.toLowerCase();return(c.match(/iP(hone|ad)/i)!==null)};b.utils.getFirstPlaylistItemFromConfig=function(e){var c={};var d;if(e.playlist&&e.playlist.length){d=e.playlist[0]}else{d=e}c.file=d.file;c.levels=d.levels;c.streamer=d.streamer;c.playlistfile=d.playlistfile;c.provider=d.provider;if(!c.provider){if(c.file&&(c.file.toLowerCase().indexOf("youtube.com")>-1||c.file.toLowerCase().indexOf("youtu.be")>-1)){c.provider="youtube"}if(c.streamer&&c.streamer.toLowerCase().indexOf("rtmp://")==0){c.provider="rtmp"}if(d.type){c.provider=d.type.toLowerCase()}}return c};b.utils.getOuterHTML=function(f){if(f.outerHTML){return f.outerHTML}else{var g=f.parentNode;var e=document.createElement(g.tagName);var d=document.createElement(f.tagName);g.replaceChild(d,f);e.appendChild(f);var c=e.innerHTML;g.replaceChild(f,d);return c}};b.utils.setOuterHTML=function(c,g){if(c.outerHTML){c.outerHTML=g}else{var d=document.createElement("div");d.innerHTML=g;var e=document.createRange();e.selectNodeContents(d);var f=e.extractContents();c.parentNode.insertBefore(f,c);c.parentNode.removeChild(c)}};b.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"){return true}if(typeof window.ActiveXObject!="undefined"){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true}catch(c){}}return false};b.utils.getPluginName=function(c){if(c.lastIndexOf("/")>=0){c=c.substring(c.lastIndexOf("/")+1,c.length)}if(c.lastIndexOf("-")>=0){c=c.substring(0,c.lastIndexOf("-"))}if(c.lastIndexOf(".swf")>=0){c=c.substring(0,c.lastIndexOf(".swf"))}if(c.lastIndexOf(".js")>=0){c=c.substring(0,c.lastIndexOf(".js"))}return c};b.utils.getPluginVersion=function(c){if(c.lastIndexOf("-")>=0){if(c.lastIndexOf(".js")>=0){return c.substring(c.lastIndexOf("-")+1,c.lastIndexOf(".js"))}else{if(c.lastIndexOf(".swf")>=0){return c.substring(c.lastIndexOf("-")+1,c.lastIndexOf(".swf"))}else{return c.substring(c.lastIndexOf("-")+1)}}}return""};b.utils.getAbsolutePath=function(d,g){if(g===undefined){g=document.location.href}if(d===undefined){return undefined}if(a(d)){return d}var f=g.substring(0,g.indexOf("://")+3);var e=g.substring(f.length,g.indexOf("/",f.length+1));var j;if(d.indexOf("/")===0){j=d.split("/")}else{var k=g.split("?")[0];k=k.substring(f.length+e.length+1,k.lastIndexOf("/"));j=k.split("/").concat(d.split("/"))}var h=[];for(var c=0;c<j.length;c++){if(!j[c]||j[c]===undefined||j[c]=="."){continue}else{if(j[c]==".."){h.pop()}else{h.push(j[c])}}}return f+e+"/"+h.join("/")};function a(c){if(c===null){return}var d=c.indexOf("://");var e=c.indexOf("?");return(d>0&&(e<0||(e>d)))}b.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};b.utils.getPluginPathType=function(f){if(typeof f!="string"){return}f=f.split("?")[0];var c=f.indexOf("://");if(c>0){return b.utils.pluginPathType.ABSOLUTE}var e=f.indexOf("/");var d=b.utils.extension(f);if(c<0&&e<0&&(!d||!isNaN(d))){return b.utils.pluginPathType.CDN}return b.utils.pluginPathType.RELATIVE};b.utils.mapEmpty=function(c){for(var d in c){return false}return true};b.utils.mapLength=function(c){var e=0;for(var d in c){e++}return e};b.utils.log=function(d,c){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(c){console.log(d,c)}else{console.log(d)}}};b.utils.css=function(f,d,e){if(f!==undefined){for(var g in d){try{if(typeof d[g]==="undefined"){continue}else{if(typeof d[g]=="number"&&!(g=="zIndex"||g=="opacity")){if(isNaN(d[g])){continue}if(g.match(/color/i)){d[g]="#"+b.utils.strings.pad(d[g].toString(16),6)}else{d[g]=Math.ceil(d[g])+"px"}}}f.style[g]=d[g]}catch(c){}}}};b.utils.isYouTube=function(c){return(c.indexOf("youtube.com")>-1||c.indexOf("youtu.be")>-1)};b.utils.transform=function(c,d){c.style.webkitTransform=d;c.style.MozTransform=d;c.style.OTransform=d};b.utils.stretch=function(d,j,h,w,g,c){if(typeof h=="undefined"||typeof w=="undefined"||typeof g=="undefined"||typeof c=="undefined"){return}var l=h/g;var m=w/c;var f=0;var e=0;j.style.overflow="hidden";b.utils.transform(j,"");var k={};switch(d.toUpperCase()){case b.utils.stretching.NONE:k.width=g;k.height=c;break;case b.utils.stretching.UNIFORM:if(l>m){k.width=g*m;k.height=c*m}else{k.width=g*l;k.height=c*l}break;case b.utils.stretching.FILL:if(l>m){k.width=g*l;k.height=c*l}else{k.width=g*m;k.height=c*m}break;case b.utils.stretching.EXACTFIT:b.utils.transform(j,["scale(",l,",",m,")"," translate(0px,0px)"].join(""));k.width=g;k.height=c;break;default:break}k.top=(w-k.height)/2;k.left=(h-k.width)/2;b.utils.css(j,k)};b.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};b.utils.deepReplaceKeyName=function(e,g,d){switch(b.utils.typeOf(e)){case"array":for(var c=0;c<e.length;c++){e[c]=b.utils.deepReplaceKeyName(e[c],g,d)}break;case"object":for(var h in e){var f=h.replace(new RegExp(g,"g"),d);e[f]=b.utils.deepReplaceKeyName(e[h],g,d);if(h!=f){delete e[h]}}break}return e};b.utils.isInArray=function(d,c){if(!(d)||!(d instanceof Array)){return false}for(var e=0;e<d.length;e++){if(c===d[e]){return true}}return false}})(jwplayer);(function(a){a.events=function(){};a.events.COMPLETE="COMPLETE";a.events.ERROR="ERROR"})(jwplayer);(function(jwplayer){jwplayer.events.eventdispatcher=function(debug){var _debug=debug;var _listeners;var _globallisteners;this.resetEventListeners=function(){_listeners={};_globallisteners=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{if(_listeners[type]===undefined){_listeners[type]=[]}if(typeof(listener)=="string"){eval("listener = "+listener)}_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeEventListener=function(type,listener){try{for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){if(_listeners[type][lisenterIndex].toString()==listener.toString()){_listeners[type].slice(lisenterIndex,lisenterIndex+1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.addGlobalListener=function(listener,count){try{if(typeof(listener)=="string"){eval("listener = "+listener)}_globallisteners.push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeGlobalListener=function(listener){try{for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){if(_globallisteners[globalListenerIndex].toString()==listener.toString()){_globallisteners.slice(globalListenerIndex,globalListenerIndex+1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.sendEvent=function(type,data){if(data===undefined){data={}}if(_debug){jwplayer.utils.log(type,data)}if(typeof _listeners[type]!="undefined"){for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){try{_listeners[type][listenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_listeners[type][listenerIndex].listener)}if(_listeners[type][listenerIndex]){if(_listeners[type][listenerIndex].count===1){delete _listeners[type][listenerIndex]}else{if(_listeners[type][listenerIndex].count>0){_listeners[type][listenerIndex].count=_listeners[type][listenerIndex].count-1}}}}}for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){try{_globallisteners[globalListenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_globallisteners[globalListenerIndex].listener)}if(_globallisteners[globalListenerIndex]){if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex]}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1}}}}}}})(jwplayer);(function(a){var b={};a.utils.animations=function(){};a.utils.animations.transform=function(c,d){c.style.webkitTransform=d;c.style.MozTransform=d;c.style.OTransform=d;c.style.msTransform=d};a.utils.animations.transformOrigin=function(c,d){c.style.webkitTransformOrigin=d;c.style.MozTransformOrigin=d;c.style.OTransformOrigin=d;c.style.msTransformOrigin=d};a.utils.animations.rotate=function(c,d){a.utils.animations.transform(c,["rotate(",d,"deg)"].join(""))};a.utils.cancelAnimation=function(c){delete b[c.id]};a.utils.fadeTo=function(k,d,c,g,f,u){if(b[k.id]!=u&&u!==undefined){return}var l=new Date().getTime();if(u>l){setTimeout(function(){a.utils.fadeTo(k,d,c,g,0,u)},u-l)}k.style.display="block";if(g===undefined){g=k.style.opacity===""?1:k.style.opacity}if(k.style.opacity==d&&k.style.opacity!==""&&u!==undefined){if(d===0){k.style.display="none"}return}if(u===undefined){u=l;b[k.id]=u}if(f===undefined){f=0}var h=(l-u)/(c*1000);h=h>1?1:h;var j=d-g;var e=g+(h*j);if(e>1){e=1}else{if(e<0){e=0}}k.style.opacity=e;if(f>0){b[k.id]=u+f*1000;a.utils.fadeTo(k,d,c,g,0,b[k.id]);return}setTimeout(function(){a.utils.fadeTo(k,d,c,g,0,u)},10)}})(jwplayer);(function(a){a.utils.arrays=function(){};a.utils.arrays.indexOf=function(c,d){for(var b=0;b<c.length;b++){if(c[b]==d){return b}}return -1};a.utils.arrays.remove=function(c,d){var b=a.utils.arrays.indexOf(c,d);if(b>-1){c.splice(b,1)}}})(jwplayer);(function(a){a.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}})(jwplayer);(function(h){h.utils.mediaparser=function(){};var b={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}};var a={};h.utils.mediaparser.parseMedia=function(j){return g(j)};function f(k,j){if(j===undefined){j=b[k]}else{h.utils.extend(j,b[k])}return j}function g(k,m){if(a[k.tagName.toLowerCase()]&&(m===undefined)){return a[k.tagName.toLowerCase()](k)}else{m=f("element",m);var l={};for(var n in m){if(n!="length"){var j=k.getAttribute(n);if(!(j===""||j===undefined||j===null)){l[m[n]]=k.getAttribute(n)}}}var o=k.style["#background-color"];if(o&&!(o=="transparent"||o=="rgba(0, 0, 0, 0)")){l.screencolor=o}return l}}function c(l,o){o=f("media",o);var j=[];var n=h.utils.selectors("source",l);for(var k in n){if(!isNaN(k)){j.push(d(n[k]))}}var m=g(l,o);if(m.file!==undefined){j[0]={file:m.file}}m.levels=j;return m}function d(k,j){j=f("source",j);var l=g(k,j);l.width=l.width?l.width:0;l.bitrate=l.bitrate?l.bitrate:0;return l}function e(k,j){j=f("video",j);var l=c(k,j);return l}a.media=c;a.audio=c;a.source=d;a.video=e})(jwplayer);(function(a){a.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};a.utils.scriptloader=function(c){var d=a.utils.loaderstatus.NEW;var b=new a.events.eventdispatcher();a.utils.extend(this,b);this.load=function(){if(d==a.utils.loaderstatus.NEW){d=a.utils.loaderstatus.LOADING;var e=document.createElement("script");e.onload=function(f){d=a.utils.loaderstatus.COMPLETE;b.sendEvent(a.events.COMPLETE)};e.onerror=function(f){d=a.utils.loaderstatus.ERROR;b.sendEvent(a.events.ERROR)};e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete"){d=a.utils.loaderstatus.COMPLETE;b.sendEvent(a.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(e);e.src=c}};this.getStatus=function(){return d}}})(jwplayer);(function(a){a.utils.selectors=function(b,d){if(d===undefined){d=document}b=a.utils.strings.trim(b);var c=b.charAt(0);if(c=="#"){return d.getElementById(b.substr(1))}else{if(c=="."){if(d.getElementsByClassName){return d.getElementsByClassName(b.substr(1))}else{return a.utils.selectors.getElementsByTagAndClass("*",b.substr(1))}}else{if(b.indexOf(".")>0){selectors=b.split(".");return a.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1])}else{return d.getElementsByTagName(b)}}}return null};a.utils.selectors.getElementsByTagAndClass=function(d,g,f){elements=[];if(f===undefined){f=document}var e=f.getElementsByTagName(d);for(var b=0;b<e.length;b++){if(e[b].className!==undefined){var h=e[b].className.split(" ");for(var c=0;c<h.length;c++){if(h[c]==g){elements.push(e[b])}}}}return elements}})(jwplayer);(function(a){a.utils.strings=function(){};a.utils.strings.trim=function(b){return b.replace(/^\s*/,"").replace(/\s*$/,"")};a.utils.strings.pad=function(c,d,b){if(!b){b="0"}while(c.length<d){c=b+c}return c};a.utils.strings.serialize=function(b){if(b==null){return null}else{if(b=="true"){return true}else{if(b=="false"){return false}else{if(isNaN(Number(b))||b.length>5||b.length==0){return b}else{return Number(b)}}}}};a.utils.strings.seconds=function(d){d=d.replace(",",".");var b=d.split(":");var c=0;if(d.substr(-1)=="s"){c=Number(d.substr(0,d.length-1))}else{if(d.substr(-1)=="m"){c=Number(d.substr(0,d.length-1))*60}else{if(d.substr(-1)=="h"){c=Number(d.substr(0,d.length-1))*3600}else{if(b.length>1){c=Number(b[b.length-1]);c+=Number(b[b.length-2])*60;if(b.length==3){c+=Number(b[b.length-3])*3600}}else{c=Number(d)}}}}return c};a.utils.strings.xmlAttribute=function(b,c){for(var d in b.attributes){if(b.attributes[d].name&&b.attributes[d].name.toLowerCase()==c.toLowerCase()){return b.attributes[d].value.toString()}}return""};a.utils.strings.jsonToString=function(e){var g=g||{};if(g&&g.stringify){return g.stringify(e)}var h=typeof(e);if(h!="object"||e===null){if(h=="string"){e='"'+e+'"'}else{return String(e)}}else{var f=[],d=(e&&e.constructor==Array);for(var b in e){var c=e[b];switch(typeof(c)){case"string":c='"'+c+'"';break;case"object":if(c!==null){c=a.utils.strings.jsonToString(c)}break}if(d){if(typeof(c)!="function"){f.push(String(c))}}else{if(typeof(c)!="function"){f.push('"'+b+'":'+String(c))}}}if(d){return"["+String(f)+"]"}else{return"{"+String(f)+"}"}}}})(jwplayer);(function(a){var b=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.utils.typechecker=function(g,f){f=f===null?e(g):f;return c(g,f)};function e(f){var g=["true","false","t","f"];if(g.toString().indexOf(f.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(b.test(f)){return"color"}else{if(!isNaN(parseInt(f,10))&&parseInt(f,10).toString().length==f.length){return"integer"}else{if(!isNaN(parseFloat(f))&&parseFloat(f).toString().length==f.length){return"float"}}}}return"string"}function c(g,f){if(f===null){return g}switch(f){case"color":if(g.length>0){return d(g)}return null;case"integer":return parseInt(g,10);case"float":return parseFloat(g);case"boolean":if(g.toLowerCase()=="true"){return true}else{if(g=="1"){return true}}return false}return g}function d(f){switch(f.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:f=f.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(f.length==3){f=f.charAt(0)+f.charAt(0)+f.charAt(1)+f.charAt(1)+f.charAt(2)+f.charAt(2)}return parseInt(f,16)}return parseInt("000000",16)}})(jwplayer);(function(b){var a={};var c={};b.plugins=function(){};b.plugins.loadPlugins=function(e,d){c[e]=new b.plugins.pluginloader(new b.plugins.model(a),d);return c[e]};b.plugins.registerPlugin=function(e,h,g){var f=b.utils.getPluginName(e);if(a[f]){a[f].registerPlugin(e,h,g)}else{b.utils.log("A plugin ("+e+") was registered with the player that was not loaded. Please check your configuration.");for(var d in c){c[d].pluginFailed()}}}})(jwplayer);(function(a){a.plugins.model=function(b){this.addPlugin=function(c){var d=a.utils.getPluginName(c);if(!b[d]){b[d]=new a.plugins.plugin(c)}return b[d]}}})(jwplayer);(function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};a.plugins.plugin=function(k){var b="http://lp.longtailvideo.com";var g=a.utils.loaderstatus.NEW;var h;var f;var j;var u=new a.events.eventdispatcher();a.utils.extend(this,u);function c(){switch(a.utils.getPluginPathType(k)){case a.utils.pluginPathType.ABSOLUTE:return k;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(k,window.location.href);case a.utils.pluginPathType.CDN:var m=a.utils.getPluginName(k);var l=a.utils.getPluginVersion(k);return b+"/"+a.version.split(".")[0]+"/"+m+"/"+m+(l!==""?("-"+l):"")+".js"}}function e(l){j=setTimeout(function(){g=a.utils.loaderstatus.COMPLETE;u.sendEvent(a.events.COMPLETE)},1000)}function d(l){g=a.utils.loaderstatus.ERROR;u.sendEvent(a.events.ERROR)}this.load=function(){if(g==a.utils.loaderstatus.NEW){if(k.lastIndexOf(".swf")>0){h=k;g=a.utils.loaderstatus.COMPLETE;u.sendEvent(a.events.COMPLETE);return}g=a.utils.loaderstatus.LOADING;var l=new a.utils.scriptloader(c());l.addEventListener(a.events.COMPLETE,e);l.addEventListener(a.events.ERROR,d);l.load()}};this.registerPlugin=function(l,n,m){if(j){clearTimeout(j);j=undefined}if(n&&m){h=m;f=n}else{if(typeof n=="string"){h=n}else{if(typeof n=="function"){f=n}else{if(!n&&!m){h=l}}}}g=a.utils.loaderstatus.COMPLETE;u.sendEvent(a.events.COMPLETE)};this.getStatus=function(){return g};this.getPluginName=function(){return a.utils.getPluginName(k)};this.getFlashPath=function(){if(h){switch(a.utils.getPluginPathType(h)){case a.utils.pluginPathType.ABSOLUTE:return h;case a.utils.pluginPathType.RELATIVE:if(k.lastIndexOf(".swf")>0){return a.utils.getAbsolutePath(h,window.location.href)}return a.utils.getAbsolutePath(h,c());case a.utils.pluginPathType.CDN:if(h.indexOf("-")>-1){return h+"h"}return h+"-h"}}return null};this.getJS=function(){return f};this.getPluginmode=function(){if(typeof h!="undefined"&&typeof f!="undefined"){return a.plugins.pluginmodes.HYBRID}else{if(typeof h!="undefined"){return a.plugins.pluginmodes.FLASH}else{if(typeof f!="undefined"){return a.plugins.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(n,m,l){return new f(n,m,l)};this.getURL=function(){return k}}})(jwplayer);(function(a){a.plugins.pluginloader=function(h,e){var g={};var s=a.utils.loaderstatus.NEW;var d=false;var b=false;var c=new a.events.eventdispatcher();a.utils.extend(this,c);function f(){if(!b){b=true;s=a.utils.loaderstatus.COMPLETE;c.sendEvent(a.events.COMPLETE)}}function j(){if(!b){var l=0;for(plugin in g){var k=g[plugin].getStatus();if(k==a.utils.loaderstatus.LOADING||k==a.utils.loaderstatus.NEW){l++}}if(l==0){f()}}}this.setupPlugins=function(r,p,o){var q={length:0,plugins:{}};var l={length:0,plugins:{}};for(var k in g){var m=g[k].getPluginName();if(g[k].getFlashPath()){q.plugins[g[k].getFlashPath()]=p.plugins[k];q.plugins[g[k].getFlashPath()].pluginmode=g[k].getPluginmode();q.length++}if(g[k].getJS()){var n=document.createElement("div");n.id=r.id+"_"+m;n.style.position="absolute";n.style.zIndex=l.length+10;l.plugins[m]=g[k].getNewInstance(r,p.plugins[k],n);l.length++;if(typeof l.plugins[m].resize!="undefined"){r.onReady(o(l.plugins[m],n,true));r.onResize(o(l.plugins[m],n))}}}r.plugins=l.plugins;return q};this.load=function(){s=a.utils.loaderstatus.LOADING;d=true;for(var k in e){g[k]=h.addPlugin(k);g[k].addEventListener(a.events.COMPLETE,j);g[k].addEventListener(a.events.ERROR,j)}for(k in e){g[k].load()}d=false;j()};this.pluginFailed=function(){f()};this.getStatus=function(){return s}}})(jwplayer);(function(b){var a=[];b.api=function(f){this.container=f;this.id=f.id;var C={};var l={};var e=[];var m=undefined;var p=false;var n=[];var d=b.utils.getOuterHTML(f);var j={};var o={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};function g(q){return function(v,r,s,t){var u;if(r){o[v]=r;u="jwplayer('"+q+"').callback('"+v+"')"}else{if(!r&&o[v]){delete o[v]}}m.jwDockSetButton(v,u,s,t)}}this.getPlugin=function(r){var q=this.callInternal;if(r=="dock"){return{setButton:g(this.id),show:function(){return q("jwShowDock")},hide:function(){return q("jwHideDock")}}}else{if(r=="controlbar"){return{show:function(){return q("jwShowControlbar")},hide:function(){return q("jwHideControlbar")}}}else{if(r=="display"){return{show:function(){return q("jwShowDisplay")},hide:function(){return q("jwHideDisplay")}}}}}return this.plugins[r]};this.callback=function(q){if(o[q]){return o[q]()}};this.getDuration=function(){return this.callInternal("jwGetDuration")};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")};this.getHeight=function(){return this.callInternal("jwGetHeight")};this.getLockState=function(){return this.callInternal("jwGetLockState")};this.getMeta=function(){return this.getItemMeta()};this.getMute=function(){return this.callInternal("jwGetMute")};this.getPlaylist=function(){var r=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){b.utils.deepReplaceKeyName(r,"__dot__",".")}for(var q=0;q<r.length;q++){if(r[q].index===undefined){r[q].index=q}}return r};this.getPlaylistItem=function(q){if(q===undefined){q=this.getCurrentItem()}return this.getPlaylist()[q]};this.getPosition=function(){return this.callInternal("jwGetPosition")};this.getRenderingMode=function(){return this.renderingMode};this.getState=function(){return this.callInternal("jwGetState")};this.getVolume=function(){return this.callInternal("jwGetVolume")};this.getWidth=function(){return this.callInternal("jwGetWidth")};this.setFullscreen=function(q){if(q===undefined){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"))}else{this.callInternal("jwSetFullscreen",q)}return this};this.setMute=function(q){if(q===undefined){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"))}else{this.callInternal("jwSetMute",q)}return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(q){this.callInternal("jwLoad",q);return this};this.playlistItem=function(q){this.callInternal("jwPlaylistItem",q);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(r,q){if(this.renderingMode=="html5"){m.jwResize(r,q)}else{this.container.width=r;this.container.height=q}return this};this.play=function(q){if(typeof q=="undefined"){q=this.getState();if(q==b.api.events.state.PLAYING||q==b.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",q)}return this};this.pause=function(q){if(typeof q=="undefined"){q=this.getState();if(q==b.api.events.state.PLAYING||q==b.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPause",q)}return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(q){this.callInternal("jwSeek",q);return this};this.setVolume=function(q){this.callInternal("jwSetVolume",q);return this};this.onBufferChange=function(q){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER,q)};this.onBufferFull=function(q){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL,q)};this.onError=function(q){return this.eventListener(b.api.events.JWPLAYER_ERROR,q)};this.onFullscreen=function(q){return this.eventListener(b.api.events.JWPLAYER_FULLSCREEN,q)};this.onMeta=function(q){return this.eventListener(b.api.events.JWPLAYER_MEDIA_META,q)};this.onMute=function(q){return this.eventListener(b.api.events.JWPLAYER_MEDIA_MUTE,q)};this.onPlaylist=function(q){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,q)};this.onPlaylistItem=function(q){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,q)};this.onReady=function(q){return this.eventListener(b.api.events.API_READY,q)};this.onResize=function(q){return this.eventListener(b.api.events.JWPLAYER_RESIZE,q)};this.onComplete=function(q){return this.eventListener(b.api.events.JWPLAYER_MEDIA_COMPLETE,q)};this.onSeek=function(q){return this.eventListener(b.api.events.JWPLAYER_MEDIA_SEEK,q)};this.onTime=function(q){return this.eventListener(b.api.events.JWPLAYER_MEDIA_TIME,q)};this.onVolume=function(q){return this.eventListener(b.api.events.JWPLAYER_MEDIA_VOLUME,q)};this.onBuffer=function(q){return this.stateListener(b.api.events.state.BUFFERING,q)};this.onPause=function(q){return this.stateListener(b.api.events.state.PAUSED,q)};this.onPlay=function(q){return this.stateListener(b.api.events.state.PLAYING,q)};this.onIdle=function(q){return this.stateListener(b.api.events.state.IDLE,q)};this.remove=function(){C={};n=[];if(b.utils.getOuterHTML(this.container)!=d){b.api.destroyPlayer(this.id,d)}};this.setup=function(r){if(b.embed){var q=this.id;this.remove();var s=b(q);s.config=r;return new b.embed(s)}return this};this.registerPlugin=function(s,r,q){b.plugins.registerPlugin(s,r,q)};this.setPlayer=function(q,r){m=q;this.renderingMode=r};this.stateListener=function(q,r){if(!l[q]){l[q]=[];this.eventListener(b.api.events.JWPLAYER_PLAYER_STATE,k(q))}l[q].push(r);return this};function k(q){return function(s){var r=s.newstate,u=s.oldstate;if(r==q){var t=l[r];if(t){for(var v=0;v<t.length;v++){if(typeof t[v]=="function"){t[v].call(this,{oldstate:u,newstate:r})}}}}}}this.addInternalListener=function(q,r){q.jwAddEventListener(r,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+r+'", dat); }')};this.eventListener=function(q,r){if(!C[q]){C[q]=[];if(m&&p){this.addInternalListener(m,q)}}C[q].push(r);return this};this.dispatchEvent=function(s){if(C[s]){var r=h(s,arguments[1]);for(var q=0;q<C[s].length;q++){if(typeof C[s][q]=="function"){C[s][q].call(this,r)}}}};function h(s,q){var u=b.utils.extend({},q);if(s==b.api.events.JWPLAYER_FULLSCREEN&&!u.fullscreen){u.fullscreen=u.message=="true"?true:false;delete u.message}else{if(typeof u.data=="object"){u=b.utils.extend(u,u.data);delete u.data}}var r=["position","duration","offset"];for(var t in r){if(u[r[t]]){u[r[t]]=Math.round(u[r[t]]*1000)/1000}}return u}this.callInternal=function(r,q){if(p){if(typeof m!="undefined"&&typeof m[r]=="function"){if(q!==undefined){return(m[r])(q)}else{return(m[r])()}}return null}else{n.push({method:r,parameters:q})}};this.playerReady=function(s){p=true;if(!m){this.setPlayer(document.getElementById(s.id))}this.container=document.getElementById(this.id);for(var q in C){this.addInternalListener(m,q)}this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,function(t){j={}});this.eventListener(b.api.events.JWPLAYER_MEDIA_META,function(t){b.utils.extend(j,t.metadata)});this.dispatchEvent(b.api.events.API_READY);while(n.length>0){var r=n.shift();this.callInternal(r.method,r.parameters)}};this.getItemMeta=function(){return j};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};function c(s,u,t){var q=[];if(!u){u=0}if(!t){t=s.length-1}for(var r=u;r<=t;r++){q.push(s[r])}return q}return this};b.api.selectPlayer=function(c){var e;if(c===undefined){c=0}if(c.nodeType){e=c}else{if(typeof c=="string"){e=document.getElementById(c)}}if(e){var d=b.api.playerById(e.id);if(d){return d}else{return b.api.addPlayer(new b.api(e))}}else{if(typeof c=="number"){return b.getPlayers()[c]}}return null};b.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};b.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};b.api.playerById=function(d){for(var c=0;c<a.length;c++){if(a[c].id==d){return a[c]}}return null};b.api.addPlayer=function(c){for(var d=0;d<a.length;d++){if(a[d]==c){return c}}a.push(c);return c};b.api.destroyPlayer=function(h,d){var g=-1;for(var f=0;f<a.length;f++){if(a[f].id==h){g=f;continue}}if(g>=0){var o=document.getElementById(a[g].id);if(document.getElementById(a[g].id+"_wrapper")){o=document.getElementById(a[g].id+"_wrapper")}if(o){if(d){b.utils.setOuterHTML(o,d)}else{var c=document.createElement("div");var e=o.id;if(o.id.indexOf("_wrapper")==o.id.length-8){newID=o.id.substring(0,o.id.length-8)}c.setAttribute("id",e);o.parentNode.replaceChild(c,o)}}a.splice(g,1)}return null};b.getPlayers=function(){return a.slice(0)}})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(b){var a=jwplayer.api.playerById(b.id);if(a){a.playerReady(b)}if(_userPlayerReady){_userPlayerReady.call(this,b)}};(function(a){a.embed=function(h){var f={width:400,height:300,components:{controlbar:{position:"over"}}};var g=a.utils.mediaparser.parseMedia(h.container);var e=new a.embed.config(a.utils.extend(f,g,h.config),this);var d=a.plugins.loadPlugins(h.id,e.plugins);function o(l,k){for(var j in k){if(typeof l[j]=="function"){(l[j]).call(l,k[j])}}}function c(){if(d.getStatus()==a.utils.loaderstatus.COMPLETE){for(var l=0;l<e.modes.length;l++){if(e.modes[l].type&&a.embed[e.modes[l].type]){var j=e;if(e.modes[l].config){j=a.utils.extend(a.utils.clone(e),e.modes[l].config)}var k=new a.embed[e.modes[l].type](document.getElementById(h.id),e.modes[l],j,d,h);if(k.supportsConfig()){k.embed();o(h,e.events);return h}}}a.utils.log("No suitable players found");new a.embed.logo(a.utils.extend({hide:true},e.components.logo),"none",h.id)}}d.addEventListener(a.events.COMPLETE,c);d.addEventListener(a.events.ERROR,c);d.load();return h};function b(){if(!document.body){return setTimeout(b,15)}var e=a.utils.selectors.getElementsByTagAndClass("video","jwplayer");for(var c=0;c<e.length;c++){var d=e[c];a(d.id).setup({})}}b()})(jwplayer);(function(d){function f(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}function h(k){var j=k.toLowerCase();var m=["left","right","top","bottom"];for(var l=0;l<m.length;l++){if(j==m[l]){return true}}return false}function g(k){var j=false;j=(k instanceof Array)||(typeof k=="object"&&!k.position&&!k.size);return j}function c(j){if(typeof j=="string"){if(parseInt(j).toString()==j||j.toLowerCase().indexOf("px")>-1){return parseInt(j)}}return j}var a=["playlist","dock","controlbar","logo"];function b(m){var k={};switch(d.utils.typeOf(m.plugins)){case"object":for(var j in m.plugins){k[d.utils.getPluginName(j)]=j}break;case"string":var l=m.plugins.split(",");for(var n=0;n<l.length;n++){k[d.utils.getPluginName(l[n])]=l[n]}break}return k}function e(k,j,o,m){if(d.utils.typeOf(k[j])!="object"){k[j]={}}var n=k[j][o];if(d.utils.typeOf(n)!="object"){k[j][o]=n={}}if(j=="plugins"){var l=d.utils.getPluginName(o);n[m]=k[l+"."+m];delete k[l+"."+m]}else{n[m]=k[o+"."+m];delete k[o+"."+m]}}d.embed.deserialize=function(l){var m=b(l);for(var k in l){if(k.indexOf(".")>-1){var j=k.split(".");var n=j[0];var k=j[1];if(d.utils.isInArray(a,n)){e(l,"components",n,k)}else{if(m[n]){e(l,"plugins",m[n],k)}}}}return l};d.embed.config=function(j,s){var q=d.utils.extend({},j);var o;if(g(q.playlist)){o=q.playlist;delete q.playlist}q=d.embed.deserialize(q);q.height=c(q.height);q.width=c(q.width);if(typeof q.plugins=="string"){var k=q.plugins.split(",");if(typeof q.plugins!="object"){q.plugins={}}for(var m=0;m<k.length;m++){var n=d.utils.getPluginName(k[m]);if(typeof q[n]=="object"){q.plugins[k[m]]=q[n];delete q[n]}else{q.plugins[k[m]]={}}}}for(var p=0;p<a.length;p++){if(typeof q[a[p]]=="string"){if(!q.components[a[p]]){q.components[a[p]]={}}if(a[p]=="logo"){q.components[a[p]].file=q[a[p]]}else{q.components[a[p]].position=q[a[p]]}delete q[a[p]]}else{if(typeof q[a[p]]!="undefined"){if(!q.components[a[p]]){q.components[a[p]]={}}d.utils.extend(q.components[a[p]],q[a[p]]);delete q[a[p]]}}if(typeof q[a[p]+"size"]!="undefined"){if(!q.components[a[p]]){q.components[a[p]]={}}q.components[a[p]].size=q[a[p]+"size"];delete q[a[p]+"size"]}}if(typeof q.icons!="undefined"){if(!q.components.display){q.components.display={}}q.components.display.icons=q.icons;delete q.icons}if(q.players){q.modes=q.players;delete q.players}var l;if(q.flashplayer&&!q.modes){l=f();l[0].src=q.flashplayer;delete q.flashplayer}else{if(q.modes){if(typeof q.modes=="string"){l=f();l[0].src=q.modes}else{if(q.modes instanceof Array){l=q.modes}else{if(typeof q.modes=="object"&&q.modes.type){l=[q.modes]}}}delete q.modes}else{l=f()}}q.modes=l;if(o){q.playlist=o}return q}})(jwplayer);(function(a){a.embed.download=function(c,g,b,d,f){this.embed=function(){var r=a.utils.extend({},b);var m={};var q=b.width?b.width:480;if(typeof q!="number"){q=parseInt(q,10)}var t=b.height?b.height:320;if(typeof t!="number"){t=parseInt(t,10)}var j,k,C;var p={};if(b.playlist&&b.playlist.length){p.file=b.playlist[0].file;k=b.playlist[0].image;p.levels=b.playlist[0].levels}else{p.file=b.file;k=b.image;p.levels=b.levels}if(p.file){j=p.file}else{if(p.levels&&p.levels.length){j=p.levels[0].file}}C=j?"pointer":"auto";var s={display:{style:{cursor:C,width:q,height:t,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:C,position:"absolute",display:j?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:C,position:"absolute",display:j?"block":"none",top:((t-50)/2),left:((q-50)/2),border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:q,height:t,display:k?"block":"none",position:"absolute",cursor:C,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var o=function(v,x,u){var w=document.createElement(v);if(u){w.id=u}else{w.id=c.id+"_jwplayer_"+x}a.utils.css(w,s[x].style);return w};m.display=o("a","display",c.id);if(j){m.display.setAttribute("href",a.utils.getAbsolutePath(j))}m.display_image=o("img","display_image");m.display_image.setAttribute("alt","Click to download...");if(k){m.display_image.setAttribute("src",a.utils.getAbsolutePath(k))}if(true){m.display_icon=o("div","display_icon");m.display_iconBackground=o("div","display_iconBackground");m.display.appendChild(m.display_image);m.display_iconBackground.appendChild(m.display_icon);m.display.appendChild(m.display_iconBackground)}_css=a.utils.css;_hide=function(u){_css(u,{display:"none"})};function n(u){_imageWidth=m.display_image.naturalWidth;_imageHeight=m.display_image.naturalHeight;h()}function h(){a.utils.stretch(a.utils.stretching.UNIFORM,m.display_image,q,t,_imageWidth,_imageHeight)}m.display_image.onerror=function(u){_hide(m.display_image)};m.display_image.onload=n;c.parentNode.replaceChild(m.display,c);var l=(b.plugins&&b.plugins.logo)?b.plugins.logo:{};m.display.appendChild(new a.embed.logo(b.components.logo,"download",c.id));f.container=document.getElementById(f.id);f.setPlayer(m.display,"download")};this.supportsConfig=function(){if(b){var j=a.utils.getFirstPlaylistItemFromConfig(b);if(typeof j.file=="undefined"&&typeof j.levels=="undefined"){return true}else{if(j.file){return e(j.file,j.provider,j.playlistfile)}else{if(j.levels&&j.levels.length){for(var h=0;h<j.levels.length;h++){if(j.levels[h].file&&e(j.levels[h].file,j.provider,j.playlistfile)){return true}}}}}}else{return true}};function e(j,l,h){if(h){return false}var k=["image","sound","youtube","http"];if(l&&(k.toString().indexOf(l)>-1)){return true}if(!l||(l&&l=="video")){var m=a.utils.extension(j);if(m&&a.utils.extensionmap[m]){return true}}return false}}})(jwplayer);(function(a){a.embed.flash=function(b,c,g,w,e){function h(m,p,n){var o=document.createElement("param");o.setAttribute("name",p);o.setAttribute("value",n);m.appendChild(o)}function f(m,n,o){return function(p){if(o){document.getElementById(e.id+"_wrapper").appendChild(n)}var r=document.getElementById(e.id).getPluginConfig("display");m.resize(r.width,r.height);var q={left:r.x,top:r.y};a.utils.css(n,q)}}function l(n){if(!n){return{}}var p={};for(var m in n){var q=n[m];for(var o in q){p[m+"."+o]=q[o]}}return p}function d(o,n){if(o[n]){var q=o[n];for(var m in q){var r=q[m];if(typeof r=="string"){if(!o[m]){o[m]=r}}else{for(var p in r){if(!o[m+"."+p]){o[m+"."+p]=r[p]}}}}delete o[n]}}function j(o){if(!o){return{}}var r={},q=[];for(var s in o){var n=a.utils.getPluginName(s);var m=o[s];q.push(s);for(var p in m){r[n+"."+p]=m[p]}}r.plugins=q.join(",");return r}function k(n){var o=n.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href)+"&";for(var m in n){if(typeof(n[m])=="object"){o+=m+"="+encodeURIComponent("[[JSON]]"+a.utils.strings.jsonToString(n[m]))+"&"}else{o+=m+"="+encodeURIComponent(n[m])+"&"}}return o.substring(0,o.length-1)}this.embed=function(){g.id=e.id;var p;var t=a.utils.extend({},g);var q=t.width;var n=t.height;if(b.id+"_wrapper"==b.parentNode.id){p=document.getElementById(b.id+"_wrapper")}else{p=document.createElement("div");p.id=b.id+"_wrapper";a.utils.wrap(b,p);a.utils.css(p,{position:"relative",width:q,height:n})}var r=w.setupPlugins(e,t,f);if(r.length>0){a.utils.extend(t,j(r.plugins))}else{delete t.plugins}var u=["height","width","modes","events"];for(var A=0;A<u.length;A++){delete t[u[A]]}var s="opaque";if(t.wmode){s=t.wmode}d(t,"components");d(t,"providers");if(typeof t["dock.position"]!="undefined"){if(t["dock.position"].toString().toLowerCase()=="false"){t.dock=t["dock.position"];delete t["dock.position"]}}var o="#000000";var x;if(a.utils.isIE()){var m='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+o+'" width="100%" height="100%" id="'+b.id+'" name="'+b.id+'" tabindex=0"">';m+='<param name="movie" value="'+c.src+'">';m+='<param name="allowfullscreen" value="true">';m+='<param name="allowscriptaccess" value="always">';m+='<param name="seamlesstabbing" value="true">';m+='<param name="wmode" value="'+s+'">';m+='<param name="flashvars" value="'+k(t)+'">';m+="</object>";a.utils.setOuterHTML(b,m);x=document.getElementById(b.id)}else{var v=document.createElement("object");v.setAttribute("type","application/x-shockwave-flash");v.setAttribute("data",c.src);v.setAttribute("width","100%");v.setAttribute("height","100%");v.setAttribute("bgcolor","#000000");v.setAttribute("id",b.id);v.setAttribute("name",b.id);v.setAttribute("tabindex",0);h(v,"allowfullscreen","true");h(v,"allowscriptaccess","always");h(v,"seamlesstabbing","true");h(v,"wmode",s);h(v,"flashvars",k(t));b.parentNode.replaceChild(v,b);x=v}e.container=x;e.setPlayer(x,"flash")};this.supportsConfig=function(){if(a.utils.hasFlash()){if(g){var m=a.utils.getFirstPlaylistItemFromConfig(g);if(typeof m.file=="undefined"&&typeof m.levels=="undefined"){return true}else{if(m.file){return flashCanPlay(m.file,m.provider)}else{if(m.levels&&m.levels.length){for(var n=0;n<m.levels.length;n++){if(m.levels[n].file&&flashCanPlay(m.levels[n].file,m.provider)){return true}}}}}}else{return true}}return false};flashCanPlay=function(p,n){var m=["video","http","sound","image"];if(n&&(m.toString().indexOf(n<0))){return true}var o=a.utils.extension(p);if(!o){return true}if(a.utils.extensionmap[o]!==undefined&&a.utils.extensionmap[o].flash===undefined){return false}return true}}})(jwplayer);(function(a){a.embed.html5=function(c,g,b,d,f){function e(j,k,h){return function(o){var l=document.getElementById(c.id+"_displayarea");if(h){l.appendChild(k)}var m=l.style;j.resize(parseInt(m.width.replace("px","")),parseInt(m.height.replace("px","")));k.left=m.left;k.top=m.top}}this.embed=function(){if(a.html5){d.setupPlugins(f,b,e);c.innerHTML="";var j=a.utils.extend({screencolor:"0x000000"},b);var h=["plugins","modes","events"];for(var k=0;k<h.length;k++){delete j[h[k]]}if(j.levels&&!j.sources){j.sources=b.levels}if(j.skin&&j.skin.toLowerCase().indexOf(".zip")>0){j.skin=j.skin.replace(/\.zip/i,".xml")}var l=new (a.html5(c)).setup(j);f.container=document.getElementById(f.id);f.setPlayer(l,"html5")}else{return null}};this.supportsConfig=function(){var h=document.createElement("video");if(!!h.canPlayType){if(b){var k=a.utils.getFirstPlaylistItemFromConfig(b);if(typeof k.file=="undefined"&&typeof k.levels=="undefined"){return true}else{if(k.file){return html5CanPlay(h,k.file,k.provider,k.playlistfile)}else{if(k.levels&&k.levels.length){for(var j=0;j<k.levels.length;j++){if(k.levels[j].file&&html5CanPlay(h,k.levels[j].file,k.provider,k.playlistfile)){return true}}}}}}else{return true}}return false};html5CanPlay=function(k,j,l,h){if(h){return false}if(l&&l=="youtube"){return true}if(l&&l!="video"&&l!="http"&&l!="sound"){return false}var m=a.utils.extension(j);if(!m||a.utils.extensionmap[m]===undefined){return true}if(a.utils.extensionmap[m].html5===undefined){return false}if(a.utils.isLegacyAndroid()&&m.match(/m4v|mp4/)){return true}return browserCanPlay(k,a.utils.extensionmap[m].html5)};browserCanPlay=function(j,h){if(!h){return true}return j.canPlayType(h)}}})(jwplayer);(function(a){a.embed.logo=function(b,C,g){var n={prefix:"http://l.longtailvideo.com/"+C+"/",file:"",link:"",margin:8,out:0.5,over:1,timeout:3,hide:false,position:"bottom-left"};_css=a.utils.css;var d;var m;o();function o(){e();f();j()}function e(){if(n.prefix){var p=a.version.split(/\W/).splice(0,2).join("/");if(n.prefix.indexOf(p)<0){n.prefix+=p+"/"}}m=a.utils.extend({},n,b)}function k(){var r={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};r.display=m.hide?"none":"block";var q=m.position.toLowerCase().split("-");for(var p in q){r[q[p]]=m.margin}return r}function f(){d=document.createElement("img");d.id=g+"_jwplayer_logo";d.style.display="none";d.onload=function(p){_css(d,k());h()};if(!m.file){return}if(m.file.indexOf("http://")===0){d.src=m.file}else{d.src=m.prefix+m.file}}if(!m.file){return}function j(){if(m.link){d.onmouseover=l;d.onmouseout=h;d.onclick=c}else{this.mouseEnabled=false}}function c(p){if(typeof p!="undefined"){p.preventDefault();p.stopPropagation()}if(m.link){window.open(m.link,"_blank")}return}function h(p){if(m.link){d.style.opacity=m.out}return}function l(p){if(m.hide){d.style.opacity=m.over}return}return d}})(jwplayer);(function(a){a.html5=function(b){var c=b;this.setup=function(d){a.utils.extend(this,new a.html5.api(c,d));return this};return this}})(jwplayer);(function(c){var a=c.utils.css;c.html5.view=function(q,p,e){var u=q;var m=p;var x=e;var w;var f;var W;var s;var r;var o;function z(){w=document.createElement("div");w.id=m.id;w.className=m.className;_videowrapper=document.createElement("div");_videowrapper.id=w.id+"_video_wrapper";m.id=w.id+"_video";a(w,{position:"relative",height:x.height,width:x.width,padding:0,backgroundColor:B(),zIndex:0});function B(){if(u.skin.getComponentSettings("display")&&u.skin.getComponentSettings("display").backgroundcolor){return u.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}a(m,{width:x.width,height:x.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});a(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});c.utils.wrap(m,w);c.utils.wrap(m,_videowrapper);s=document.createElement("div");s.id=w.id+"_displayarea";w.appendChild(s)}function k(){for(var B=0;B<x.plugins.order.length;B++){var C=x.plugins.order[B];if(x.plugins.object[C].getDisplayElement!==undefined){x.plugins.object[C].height=h(x.plugins.object[C].getDisplayElement().style.height);x.plugins.object[C].width=h(x.plugins.object[C].getDisplayElement().style.width);x.plugins.config[C].currentPosition=x.plugins.config[C].position}}v()}function v(C){if(x.getMedia()!==undefined){for(var B=0;B<x.plugins.order.length;B++){var D=x.plugins.order[B];if(x.plugins.object[D].getDisplayElement!==undefined){if(x.getMedia().hasChrome()){x.plugins.config[D].currentPosition=c.html5.view.positions.NONE}else{x.plugins.config[D].currentPosition=x.plugins.config[D].position}}}}j(x.width,x.height)}function h(B){if(typeof B=="string"){if(B===""){return 0}else{if(B.lastIndexOf("%")>-1){return B}else{return parseInt(B.replace("px",""),10)}}}return B}this.setup=function(B){m=B;z();k();u.jwAddEventListener(c.api.events.JWPLAYER_MEDIA_LOADED,v);u.jwAddEventListener(c.api.events.JWPLAYER_MEDIA_META,function(){y()});var C;if(window.onresize!==null){C=window.onresize}window.onresize=function(D){if(C!==undefined){try{C(D)}catch(F){}}if(u.jwGetFullscreen()){var E=document.body.getBoundingClientRect();x.width=Math.abs(E.left)+Math.abs(E.right);x.height=window.innerHeight}j(x.width,x.height)}};function g(B){switch(B.keyCode){case 27:if(u.jwGetFullscreen()){u.jwSetFullscreen(false)}break;case 32:if(u.jwGetState()!=c.api.events.state.IDLE&&u.jwGetState()!=c.api.events.state.PAUSED){u.jwPause()}else{u.jwPlay()}break}}function j(E,B){if(w.style.display=="none"){return}var D=[].concat(x.plugins.order);D.reverse();r=D.length+2;if(!x.fullscreen){x.width=E;x.height=B;f=E;W=B;a(s,{top:0,bottom:0,left:0,right:0,width:E,height:B});a(w,{height:W,width:f});var C=n(t,D);if(C.length>0){r+=C.length;n(l,C,true)}}else{if(navigator.vendor.indexOf("Apple")!==0){n(A,D,true)}}y()}function n(G,D,E){var C=[];for(var B=0;B<D.length;B++){var H=D[B];if(x.plugins.object[H].getDisplayElement!==undefined){if(x.plugins.config[H].currentPosition!=c.html5.view.positions.NONE){var F=G(H,r--);if(!F){C.push(H)}else{x.plugins.object[H].resize(F.width,F.height);if(E){delete F.width;delete F.height}a(x.plugins.object[H].getDisplayElement(),F)}}else{a(x.plugins.object[H].getDisplayElement(),{display:"none"})}}}return C}function t(C,D){if(x.plugins.object[C].getDisplayElement!==undefined){if(x.plugins.config[C].position&&b(x.plugins.config[C].position)){if(x.plugins.object[C].getDisplayElement().parentNode===null){w.appendChild(x.plugins.object[C].getDisplayElement())}var B=d(C);B.zIndex=D;return B}}return false}function l(D,E){if(x.plugins.object[D].getDisplayElement().parentNode===null){s.appendChild(x.plugins.object[D].getDisplayElement())}var B=x.width,C=x.height;if(typeof x.width=="string"&&x.width.lastIndexOf("%")>-1){percentage=parseFloat(x.width.substring(0,x.width.lastIndexOf("%")))/100;B=Math.round(window.innerWidth*percentage)}if(typeof x.height=="string"&&x.height.lastIndexOf("%")>-1){percentage=parseFloat(x.height.substring(0,x.height.lastIndexOf("%")))/100;C=Math.round(window.innerHeight*percentage)}return{position:"absolute",width:(B-h(s.style.left)-h(s.style.right)),height:(C-h(s.style.top)-h(s.style.bottom)),zIndex:E}}function A(B,C){return{position:"fixed",width:x.width,height:x.height,zIndex:C}}function y(){s.style.position="absolute";x.getMedia().getDisplayElement().style.position="absolute";if(x.getMedia().getDisplayElement().videoWidth==0||x.getMedia().getDisplayElement().videoHeight==0){return}var B,D;if(s.style.width.toString().lastIndexOf("%")>-1||s.style.width.toString().lastIndexOf("%")>-1){var C=s.getBoundingClientRect();B=Math.abs(C.left)+Math.abs(C.right);D=Math.abs(C.top)+Math.abs(C.bottom)}else{B=h(s.style.width);D=h(s.style.height)}c.utils.stretch(u.jwGetStretching(),x.getMedia().getDisplayElement(),B,D,x.getMedia().getDisplayElement().videoWidth,x.getMedia().getDisplayElement().videoHeight)}function d(C){var D={position:"absolute",margin:0,padding:0,top:null};var B=x.plugins.config[C].currentPosition.toLowerCase();switch(B.toUpperCase()){case c.html5.view.positions.TOP:D.top=h(s.style.top);D.left=h(s.style.left);D.width=f-h(s.style.left)-h(s.style.right);D.height=x.plugins.object[C].height;s.style[B]=h(s.style[B])+x.plugins.object[C].height+"px";s.style.height=h(s.style.height)-D.height+"px";break;case c.html5.view.positions.RIGHT:D.top=h(s.style.top);D.right=h(s.style.right);D.width=D.width=x.plugins.object[C].width;D.height=W-h(s.style.top)-h(s.style.bottom);s.style[B]=h(s.style[B])+x.plugins.object[C].width+"px";s.style.width=h(s.style.width)-D.width+"px";break;case c.html5.view.positions.BOTTOM:D.bottom=h(s.style.bottom);D.left=h(s.style.left);D.width=f-h(s.style.left)-h(s.style.right);D.height=x.plugins.object[C].height;s.style[B]=h(s.style[B])+x.plugins.object[C].height+"px";s.style.height=h(s.style.height)-D.height+"px";break;case c.html5.view.positions.LEFT:D.top=h(s.style.top);D.left=h(s.style.left);D.width=x.plugins.object[C].width;D.height=W-h(s.style.top)-h(s.style.bottom);s.style[B]=h(s.style[B])+x.plugins.object[C].width+"px";s.style.width=h(s.style.width)-D.width+"px";break;default:break}return D}this.resize=j;this.fullscreen=function(E){if(navigator.vendor.indexOf("Apple")===0){if(x.getMedia().getDisplayElement().webkitSupportsFullscreen){if(E){try{x.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(D){}}else{try{x.getMedia().getDisplayElement().webkitExitFullscreen()}catch(D){}}}}else{if(E){document.onkeydown=g;clearInterval(o);var C=document.body.getBoundingClientRect();x.width=Math.abs(C.left)+Math.abs(C.right);x.height=window.innerHeight;var B={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};a(w,B);B.zIndex=1;a(x.getMedia().getDisplayElement(),B);B.zIndex=2;a(s,B)}else{document.onkeydown="";x.width=f;x.height=W;a(w,{position:"relative",height:x.height,width:x.width,zIndex:0})}j(x.width,x.height)}}};function b(d){return([c.html5.view.positions.TOP,c.html5.view.positions.RIGHT,c.html5.view.positions.BOTTOM,c.html5.view.positions.LEFT].toString().indexOf(d.toUpperCase())>-1)}c.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(a){var b={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:a.html5.view.positions.BOTTOM,idlehide:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_css=a.utils.css;_hide=function(c){_css(c,{display:"none"})};_show=function(c){_css(c,{display:"block"})};a.html5.controlbar=function(N,z){var M=N;var n=a.utils.extend({},b,M.skin.getComponentSettings("controlbar"),z);if(n.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[n.position]=="undefined"){return}if(a.utils.mapLength(M.skin.getComponentLayout("controlbar"))>0){n.layout=M.skin.getComponentLayout("controlbar")}var E;var w;var D;var o;var d="none";var I;var L;var c;var H;var G;var j;var x={};var R=false;var F={};var B;var K=false;function r(){if(!B){B=M.skin.getSkinElement("controlbar","background");if(!B){B={width:0,height:0,src:null}}}return B}function v(){D=0;o=0;w=0;if(!R){var Z={height:r().height,backgroundColor:n.backgroundcolor};E=document.createElement("div");E.id=M.id+"_jwplayer_controlbar";_css(E,Z)}var Y=(M.skin.getSkinElement("controlbar","capLeft"));var X=(M.skin.getSkinElement("controlbar","capRight"));if(Y){h("capLeft","left",false,E)}var ab={position:"absolute",height:r().height,left:(Y?Y.width:0),zIndex:0};C("background",E,ab,"img");if(r().src){x.background.src=r().src}ab.zIndex=1;C("elements",E,ab);if(X){h("capRight","right",false,E)}}this.getDisplayElement=function(){return E};this.resize=function(Z,X){a.utils.cancelAnimation(E);document.getElementById(M.id).onmousemove=k;G=Z;j=X;k();var Y=f();q({id:M.id,duration:c,position:L});V({id:M.id,bufferPercent:H});return Y};this.show=function(){K=false;_show(E)};this.hide=function(){K=true;_hide(E)};function S(){var Y=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var Z in Y){var X=Y[Z];if(typeof x[X]!="undefined"){F[X]=x[X].getBoundingClientRect()}}}function k(){if(K){return}a.utils.cancelAnimation(E);if(J()){a.utils.fadeTo(E,1,0,1,0)}else{a.utils.fadeTo(E,0,0.1,1,2)}}function J(){if(K){return false}if(M.jwGetState()==a.api.events.state.IDLE||M.jwGetState()==a.api.events.state.PAUSED){if(n.idlehide){return false}return true}if(M.jwGetFullscreen()){return false}if(n.position==a.html5.view.positions.OVER){return false}return true}function C(ac,Z,ab,X){var Y;if(!R){if(!X){X="div"}Y=document.createElement(X);x[ac]=Y;Y.id=E.id+"_"+ac;Z.appendChild(Y)}else{Y=document.getElementById(E.id+"_"+ac)}if(ab!==undefined){_css(Y,ab)}return Y}function u(){aa(n.layout.left);aa(n.layout.right,-1);aa(n.layout.center)}function aa(Z,X){var ac=Z.position=="right"?"right":"left";var ab=a.utils.extend([],Z.elements);if(X!==undefined){ab.reverse()}for(var Y=0;Y<ab.length;Y++){m(ab[Y],ac)}}function s(){return w++}function m(X,Z){var ag,ae,af,ad,ac;if(X.type=="divider"){h("divider"+s(),Z,true,undefined,undefined,X.width,X.element);return}switch(X.name){case"play":h("playButton",Z,false);h("pauseButton",Z,true);y("playButton","jwPlay");y("pauseButton","jwPause");break;case"prev":h("prevButton",Z,true);y("prevButton","jwPlaylistPrev");break;case"next":h("nextButton",Z,true);y("nextButton","jwPlaylistNext");break;case"elapsed":h("elapsedText",Z,true);break;case"time":ae=M.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:M.skin.getSkinElement("controlbar","timeSliderCapLeft").width;af=M.skin.getSkinElement("controlbar","timeSliderCapRight")===undefined?0:M.skin.getSkinElement("controlbar","timeSliderCapRight").width;ag=Z=="left"?ae:af;ad=M.skin.getSkinElement("controlbar","timeSliderRail").width+ae+af;ac={height:r().height,position:"absolute",top:0,width:ad};ac[Z]=Z=="left"?D:o;var Y=C("timeSlider",x.elements,ac);h("timeSliderCapLeft",Z,true,Y,Z=="left"?0:ag);h("timeSliderRail",Z,false,Y,ag);h("timeSliderBuffer",Z,false,Y,ag);h("timeSliderProgress",Z,false,Y,ag);h("timeSliderThumb",Z,false,Y,ag);h("timeSliderCapRight",Z,true,Y,Z=="right"?0:ag);A("time");break;case"fullscreen":h("fullscreenButton",Z,false);h("normalscreenButton",Z,true);y("fullscreenButton","jwSetFullscreen",true);y("normalscreenButton","jwSetFullscreen",false);break;case"volume":ae=M.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:M.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;af=M.skin.getSkinElement("controlbar","volumeSliderCapRight")===undefined?0:M.skin.getSkinElement("controlbar","volumeSliderCapRight").width;ag=Z=="left"?ae:af;ad=M.skin.getSkinElement("controlbar","volumeSliderRail").width+ae+af;ac={height:r().height,position:"absolute",top:0,width:ad};ac[Z]=Z=="left"?D:o;var ab=C("volumeSlider",x.elements,ac);h("volumeSliderCapLeft",Z,true,ab,Z=="left"?0:ag);h("volumeSliderRail",Z,true,ab,ag);h("volumeSliderProgress",Z,false,ab,ag);h("volumeSliderCapRight",Z,true,ab,Z=="right"?0:ag);A("volume");break;case"mute":h("muteButton",Z,false);h("unmuteButton",Z,true);y("muteButton","jwSetMute",true);y("unmuteButton","jwSetMute",false);break;case"duration":h("durationText",Z,true);break}}function h(ai,Z,ag,ad,X,af,ah){if(M.skin.getSkinElement("controlbar",ai)!==undefined||ai.indexOf("Text")>0||ai.indexOf("divider")===0){var Y={height:r().height,position:"absolute",display:"block",top:0};if((ai.indexOf("next")===0||ai.indexOf("prev")===0)&&M.jwGetPlaylist().length<2){ag=false;Y.display="none"}var ae;if(ai.indexOf("Text")>0){ai.innerhtml="00:00";Y.font=n.fontsize+"px/"+(r().height+1)+"px "+n.font;Y.color=n.fontcolor;Y.textAlign="center";Y.fontWeight=n.fontweight;Y.fontStyle=n.fontstyle;Y.cursor="default";ae=14+3*n.fontsize}else{if(ai.indexOf("divider")===0){if(af){if(!isNaN(parseInt(af))){ae=parseInt(af)}}else{if(ah){var ab=M.skin.getSkinElement("controlbar",ah);if(ab){Y.background="url("+ab.src+") repeat-x center left";ae=ab.width}}else{Y.background="url("+M.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";ae=M.skin.getSkinElement("controlbar","divider").width}}}else{Y.background="url("+M.skin.getSkinElement("controlbar",ai).src+") repeat-x center left";ae=M.skin.getSkinElement("controlbar",ai).width}}if(Z=="left"){Y.left=isNaN(X)?D:X;if(ag){D+=ae}}else{if(Z=="right"){Y.right=isNaN(X)?o:X;if(ag){o+=ae}}}if(a.utils.typeOf(ad)=="undefined"){ad=x.elements}Y.width=ae;if(R){_css(x[ai],Y)}else{var ac=C(ai,ad,Y);if(M.skin.getSkinElement("controlbar",ai+"Over")!==undefined){ac.onmouseover=function(aj){ac.style.backgroundImage=["url(",M.skin.getSkinElement("controlbar",ai+"Over").src,")"].join("")};ac.onmouseout=function(aj){ac.style.backgroundImage=["url(",M.skin.getSkinElement("controlbar",ai).src,")"].join("")}}}}}function p(){M.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,l);M.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,V);M.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,T);M.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,q);M.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,W);M.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,O);M.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,t)}function l(){v();u();f();e()}function e(){q({id:M.id,duration:M.jwGetDuration(),position:0});V({id:M.id,bufferProgress:0});W({id:M.id,mute:M.jwGetMute()});T({id:M.id,newstate:a.api.events.state.IDLE});O({id:M.id,volume:M.jwGetVolume()})}function y(Z,ab,Y){if(R){return}if(M.skin.getSkinElement("controlbar",Z)!==undefined){var X=x[Z];if(X!==null){_css(X,{cursor:"pointer"});if(ab=="fullscreen"){X.onmouseup=function(ac){ac.stopPropagation();M.jwSetFullscreen(!M.jwGetFullscreen())}}else{X.onmouseup=function(ac){ac.stopPropagation();if(Y!==null){M[ab](Y)}else{M[ab]()}}}}}}function A(X){if(R){return}var Y=x[X+"Slider"];_css(x.elements,{cursor:"pointer"});_css(Y,{cursor:"pointer"});Y.onmousedown=function(Z){d=X};Y.onmouseup=function(Z){Z.stopPropagation();g(Z.pageX)};Y.onmousemove=function(Z){if(d=="time"){I=true;var ab=Z.pageX-F[X+"Slider"].left-window.pageXOffset;_css(x.timeSliderThumb,{left:ab})}}}function g(Y){I=false;var X;if(d=="time"){X=Y-F.timeSliderRail.left+window.pageXOffset;var Z=X/F.timeSliderRail.width*c;if(Z<0){Z=0}else{if(Z>c){Z=c-3}}if(M.jwGetState()==a.api.events.state.PAUSED||M.jwGetState()==a.api.events.state.IDLE){M.jwPlay()}M.jwSeek(Z)}else{if(d=="volume"){X=Y-F.volumeSliderRail.left-window.pageXOffset;var ab=Math.round(X/F.volumeSliderRail.width*100);if(ab<0){ab=0}else{if(ab>100){ab=100}}if(M.jwGetMute()){M.jwSetMute(false)}M.jwSetVolume(ab)}}d="none"}function V(Y){if(Y.bufferPercent!==null){H=Y.bufferPercent}if(F.timeSliderRail){var Z=F.timeSliderRail.width;var X=isNaN(Math.round(Z*H/100))?0:Math.round(Z*H/100);_css(x.timeSliderBuffer,{width:X})}}function W(X){if(X.mute){_hide(x.muteButton);_show(x.unmuteButton);_hide(x.volumeSliderProgress)}else{_show(x.muteButton);_hide(x.unmuteButton);_show(x.volumeSliderProgress)}}function T(X){if(X.newstate==a.api.events.state.BUFFERING||X.newstate==a.api.events.state.PLAYING){_show(x.pauseButton);_hide(x.playButton)}else{_hide(x.pauseButton);_show(x.playButton)}k();if(X.newstate==a.api.events.state.IDLE){_hide(x.timeSliderBuffer);_hide(x.timeSliderProgress);_hide(x.timeSliderThumb);q({id:M.id,duration:M.jwGetDuration(),position:0})}else{_show(x.timeSliderBuffer);if(X.newstate!=a.api.events.state.BUFFERING){_show(x.timeSliderProgress);_show(x.timeSliderThumb)}}}function t(X){V({bufferPercent:0});q(a.utils.extend(X,{position:0,duration:c}))}function q(Z){if(Z.position!==null){L=Z.position}if(Z.duration!==null){c=Z.duration}var Y=(L===c===0)?0:L/c;var ac=F.timeSliderRail;if(ac){var X=isNaN(Math.round(ac.width*Y))?0:Math.round(ac.width*Y);var ab=X;if(x.timeSliderProgress){x.timeSliderProgress.style.width=X+"px";if(!I){if(x.timeSliderThumb){x.timeSliderThumb.style.left=ab+"px"}}}}if(x.durationText){x.durationText.innerHTML=Q(c)}if(x.elapsedText){x.elapsedText.innerHTML=Q(L)}}function Q(X){str="00:00";if(X>0){str=Math.floor(X/60)<10?"0"+Math.floor(X/60)+":":Math.floor(X/60)+":";str+=Math.floor(X%60)<10?"0"+Math.floor(X%60):Math.floor(X%60)}return str}function P(){var Z,Y;var ab=document.getElementById(E.id+"_elements").childNodes;for(var X in document.getElementById(E.id+"_elements").childNodes){if(isNaN(parseInt(X,10))){continue}if(ab[X].id.indexOf(E.id+"_divider")===0&&Y&&Y.id.indexOf(E.id+"_divider")===0&&ab[X].style.backgroundImage==Y.style.backgroundImage){ab[X].style.display="none"}else{if(ab[X].id.indexOf(E.id+"_divider")===0&&Z&&Z.style.display!="none"){ab[X].style.display="block"}}if(ab[X].style.display!="none"){Y=ab[X]}Z=ab[X]}}function f(){P();if(M.jwGetFullscreen()){_show(x.normalscreenButton);_hide(x.fullscreenButton)}else{_hide(x.normalscreenButton);_show(x.fullscreenButton)}var Y={width:G};var X={};if(n.position==a.html5.view.positions.OVER||M.jwGetFullscreen()){Y.left=n.margin;Y.width-=2*n.margin;Y.top=j-r().height-n.margin;Y.height=r().height}else{Y.left=0}var Z=M.skin.getSkinElement("controlbar","capLeft");var ab=M.skin.getSkinElement("controlbar","capRight");X.left=Z?Z.width:0;X.width=Y.width-X.left-(ab?ab.width:0);var ac=M.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:M.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(x.timeSliderRail,{width:(X.width-D-o),left:ac});if(x.timeSliderCapRight!==undefined){_css(x.timeSliderCapRight,{left:ac+(X.width-D-o)})}_css(E,Y);_css(x.elements,X);_css(x.background,X);S();return Y}function O(ac){if(x.volumeSliderRail!==undefined){var Z=isNaN(ac.volume/100)?1:ac.volume/100;var ab=parseInt(x.volumeSliderRail.style.width.replace("px",""),10);var X=isNaN(Math.round(ab*Z))?0:Math.round(ab*Z);var ad=parseInt(x.volumeSliderRail.style.right.replace("px",""),10);var Y=M.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:M.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(x.volumeSliderProgress,{width:X,left:Y});if(x.volumeSliderCapLeft!==undefined){_css(x.volumeSliderCapLeft,{left:0})}}}function U(){v();u();S();R=true;p();e();E.style.opacity=n.idlehide?0:1}U();return this}})(jwplayer);(function(b){var a=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];b.html5.controller=function(v,s,c,q){var y=v;var A=c;var ab=q;var j=s;var p=true;var C=-1;var w=(A.config.debug!==undefined)&&(A.config.debug.toString().toLowerCase()=="console");var g=new b.html5.eventdispatcher(j.id,w);b.utils.extend(this,g);function l(D){g.sendEvent(D.type,D)}A.addGlobalListener(l);function o(){try{if(A.playlist[A.item].levels[0].file.length>0){if(p||A.state==b.api.events.state.IDLE){A.addEventListener(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){A.getMedia().play()});A.addEventListener(b.api.events.JWPLAYER_MEDIA_TIME,function(E){if(E.position>=A.playlist[A.item].start&&C>=0){A.playlist[A.item].start=C;C=-1}});if(A.config.repeat){A.addEventListener(b.api.events.JWPLAYER_MEDIA_COMPLETE,function(E){setTimeout(m,25)})}A.getMedia().load(A.playlist[A.item]);p=false}else{if(A.state==b.api.events.state.PAUSED){A.getMedia().play()}}}return true}catch(D){g.sendEvent(b.api.events.JWPLAYER_ERROR,D)}return false}function r(){try{if(A.playlist[A.item].levels[0].file.length>0){switch(A.state){case b.api.events.state.PLAYING:case b.api.events.state.BUFFERING:A.getMedia().pause();break}}return true}catch(D){g.sendEvent(b.api.events.JWPLAYER_ERROR,D)}return false}function z(D){try{if(A.playlist[A.item].levels[0].file.length>0){if(typeof D!="number"){D=parseFloat(D)}switch(A.state){case b.api.events.state.IDLE:if(C<0){C=A.playlist[A.item].start;A.playlist[A.item].start=D}o();break;case b.api.events.state.PLAYING:case b.api.events.state.PAUSED:case b.api.events.state.BUFFERING:A.seek(D);break}}return true}catch(E){g.sendEvent(b.api.events.JWPLAYER_ERROR,E)}return false}function h(){try{if(A.playlist[A.item].levels[0].file.length>0&&A.state!=b.api.events.state.IDLE){A.getMedia().stop()}return true}catch(D){g.sendEvent(b.api.events.JWPLAYER_ERROR,D)}return false}function e(){try{if(A.playlist[A.item].levels[0].file.length>0){if(A.config.shuffle){n(u())}else{if(A.item+1==A.playlist.length){n(0)}else{n(A.item+1)}}}if(A.state!=b.api.events.state.PLAYING&&A.state!=b.api.events.state.BUFFERING){o()}return true}catch(D){g.sendEvent(b.api.events.JWPLAYER_ERROR,D)}return false}function d(){try{if(A.playlist[A.item].levels[0].file.length>0){if(A.config.shuffle){n(u())}else{if(A.item===0){n(A.playlist.length-1)}else{n(A.item-1)}}}if(A.state!=b.api.events.state.PLAYING&&A.state!=b.api.events.state.BUFFERING){o()}return true}catch(D){g.sendEvent(b.api.events.JWPLAYER_ERROR,D)}return false}function u(){var D=null;if(A.playlist.length>1){while(D===null){D=Math.floor(Math.random()*A.playlist.length);if(D==A.item){D=null}}}else{D=0}return D}function n(E){A.resetEventListeners();A.addGlobalListener(l);try{if(A.playlist[E].levels[0].file.length>0){var F=A.state;if(F!==b.api.events.state.IDLE){h()}A.item=E;p=true;A.setActiveMediaProvider(A.playlist[A.item]);g.sendEvent(b.api.events.JWPLAYER_PLAYLIST_ITEM,{index:E});if(F==b.api.events.state.PLAYING||F==b.api.events.state.BUFFERING||A.config.chromeless||c.config.autostart===true){o()}}return true}catch(D){g.sendEvent(b.api.events.JWPLAYER_ERROR,D)}return false}function B(E){try{switch(typeof(E)){case"number":A.getMedia().volume(E);break;case"string":A.getMedia().volume(parseInt(E,10));break}return true}catch(D){g.sendEvent(b.api.events.JWPLAYER_ERROR,D)}return false}function k(E){try{if(typeof E=="undefined"){A.getMedia().mute(!A.mute)}else{if(E.toString().toLowerCase()=="true"){A.getMedia().mute(true)}else{A.getMedia().mute(false)}}return true}catch(D){g.sendEvent(b.api.events.JWPLAYER_ERROR,D)}return false}function f(E,D){try{A.width=E;A.height=D;ab.resize(E,D);g.sendEvent(b.api.events.JWPLAYER_RESIZE,{width:A.width,height:A.height});return true}catch(F){g.sendEvent(b.api.events.JWPLAYER_ERROR,F)}return false}function x(E){try{if(typeof E=="undefined"){A.fullscreen=!A.fullscreen;ab.fullscreen(!A.fullscreen)}else{if(E.toString().toLowerCase()=="true"){A.fullscreen=true;ab.fullscreen(true)}else{A.fullscreen=false;ab.fullscreen(false)}}g.sendEvent(b.api.events.JWPLAYER_RESIZE,{width:A.width,height:A.height});g.sendEvent(b.api.events.JWPLAYER_FULLSCREEN,{fullscreen:E});return true}catch(D){g.sendEvent(b.api.events.JWPLAYER_ERROR,D)}return false}function t(D){try{h();A.loadPlaylist(D);n(A.item);return true}catch(E){g.sendEvent(b.api.events.JWPLAYER_ERROR,E)}return false}b.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function m(){A.resetEventListeners();A.addGlobalListener(l);switch(A.config.repeat.toUpperCase()){case b.html5.controller.repeatoptions.SINGLE:o();break;case b.html5.controller.repeatoptions.ALWAYS:if(A.item==A.playlist.length-1&&!A.config.shuffle){n(0);o()}else{e()}break;case b.html5.controller.repeatoptions.LIST:if(A.item==A.playlist.length-1&&!A.config.shuffle){n(0)}else{e()}break}}this.play=o;this.pause=r;this.seek=z;this.stop=h;this.next=e;this.prev=d;this.item=n;this.setVolume=B;this.setMute=k;this.resize=f;this.setFullscreen=x;this.load=t}})(jwplayer);(function(a){a.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></elements></component></components></skin>';this.xml=null;if(window.DOMParser){parser=new DOMParser();this.xml=parser.parseFromString(this.text,"text/xml")}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text)}return this}})(jwplayer);(function(a){_css=a.utils.css;_hide=function(b){_css(b,{display:"none"})};_show=function(b){_css(b,{display:"block"})};a.html5.display=function(n,B){var s={icons:true};var h=a.utils.extend({},s,B);var x=n;var b={};var d;var p;var j;var y;var z;var o;var g;var m=x.skin.getComponentSettings("display").bufferrotation===undefined?15:parseInt(x.skin.getComponentSettings("display").bufferrotation,10);var c=x.skin.getComponentSettings("display").bufferinterval===undefined?100:parseInt(x.skin.getComponentSettings("display").bufferinterval,10);var ab={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:v},display_icon:{style:{cursor:"pointer",position:"absolute",top:((x.skin.getSkinElement("display","background").height-x.skin.getSkinElement("display","playIcon").height)/2),left:((x.skin.getSkinElement("display","background").width-x.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((p-x.skin.getSkinElement("display","background").height)/2),left:((d-x.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",x.skin.getSkinElement("display","background").src,")"]).join(""),width:x.skin.getSkinElement("display","background").width,height:x.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2}},display_image:{style:{display:"none",width:d,height:p,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};x.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,k);x.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,k);x.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,k);x.jwAddEventListener(a.api.events.JWPLAYER_ERROR,u);q();function q(){b.display=t("div","display");b.display_text=t("div","display_text");b.display.appendChild(b.display_text);b.display_image=t("img","display_image");b.display_image.onerror=function(C){_hide(b.display_image)};b.display_image.onload=l;b.display_icon=t("div","display_icon");b.display_iconBackground=t("div","display_iconBackground");b.display.appendChild(b.display_image);b.display_iconBackground.appendChild(b.display_icon);b.display.appendChild(b.display_iconBackground);A()}this.getDisplayElement=function(){return b.display};this.resize=function(D,C){d=D;p=C;_css(b.display,{width:D,height:C});_css(b.display_text,{width:(D-10),top:((p-b.display_text.getBoundingClientRect().height)/2)});_css(b.display_iconBackground,{top:((p-x.skin.getSkinElement("display","background").height)/2),left:((d-x.skin.getSkinElement("display","background").width)/2)});f();k({})};this.show=function(){_show(b.display_icon);_show(b.display_iconBackground)};this.hide=function(){r()};function l(C){j=b.display_image.naturalWidth;y=b.display_image.naturalHeight;f()}function f(){a.utils.stretch(x.jwGetStretching(),b.display_image,d,p,j,y)}function t(C,E){var D=document.createElement(C);D.id=x.id+"_jwplayer_"+E;_css(D,ab[E].style);return D}function A(){for(var C in b){if(ab[C].click!==undefined){b[C].onclick=ab[C].click}}}function v(C){if(typeof C.preventDefault!="undefined"){C.preventDefault()}else{C.returnValue=false}if(x.jwGetState()!=a.api.events.state.PLAYING){x.jwPlay()}else{x.jwPause()}}function e(C){if(g||!h.icons){r();return}_show(b.display_iconBackground);b.display_icon.style.backgroundImage=(["url(",x.skin.getSkinElement("display",C).src,")"]).join("");_css(b.display_icon,{display:"block",width:x.skin.getSkinElement("display",C).width,height:x.skin.getSkinElement("display",C).height,top:(x.skin.getSkinElement("display","background").height-x.skin.getSkinElement("display",C).height)/2,left:(x.skin.getSkinElement("display","background").width-x.skin.getSkinElement("display",C).width)/2});if(x.skin.getSkinElement("display",C+"Over")!==undefined){b.display_icon.onmouseover=function(D){b.display_icon.style.backgroundImage=["url(",x.skin.getSkinElement("display",C+"Over").src,")"].join("")};b.display_icon.onmouseout=function(D){b.display_icon.style.backgroundImage=["url(",x.skin.getSkinElement("display",C).src,")"].join("")}}else{b.display_icon.onmouseover=null;b.display_icon.onmouseout=null}}function r(){_hide(b.display_icon);_hide(b.display_iconBackground)}function u(C){g=true;r();b.display_text.innerHTML=C.error;_show(b.display_text);b.display_text.style.top=((p-b.display_text.getBoundingClientRect().height)/2)+"px"}function w(){var C=b.display_image;b.display_image=t("img","display_image");b.display_image.onerror=function(D){_hide(b.display_image)};b.display_image.onload=l;b.display.replaceChild(b.display_image,C)}function k(C){if((C.type==a.api.events.JWPLAYER_PLAYER_STATE||C.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&g){g=false;_hide(b.display_text)}if(o!==undefined){clearInterval(o);o=null;a.utils.animations.rotate(b.display_icon,0)}switch(x.jwGetState()){case a.api.events.state.BUFFERING:e("bufferIcon");z=0;o=setInterval(function(){z+=m;a.utils.animations.rotate(b.display_icon,z%360)},c);e("bufferIcon");break;case a.api.events.state.PAUSED:if(x.jwGetPlaylist()[x.jwGetItem()].provider!="sound"){_css(b.display_image,{background:"transparent no-repeat center center"})}e("playIcon");break;case a.api.events.state.IDLE:if(x.jwGetPlaylist()[x.jwGetItem()].image){_css(b.display_image,{display:"block"});b.display_image.src=a.utils.getAbsolutePath(x.jwGetPlaylist()[x.jwGetItem()].image)}else{w()}e("playIcon");break;default:if(x.jwGetMute()&&h.showmute){if(x.jwGetPlaylist()[x.jwGetItem()].provider!="sound"){w()}e("muteIcon")}else{if(x.jwGetPlaylist()[x.jwGetItem()].provider!="sound"){w()}_hide(b.display_iconBackground);_hide(b.display_icon)}break}}return this}})(jwplayer);(function(a){_css=a.utils.css;a.html5.dock=function(e,u){function d(){return{align:a.html5.view.positions.RIGHT}}var j=a.utils.extend({},d(),u);if(j.align=="FALSE"){return}var f={};var k=[];var b;var c;var h=document.createElement("div");h.id=e.id+"_jwplayer_dock";this.getDisplayElement=function(){return h};this.setButton=function(m,n,o,l){if(!n&&f[m]){a.utils.arrays.remove(k,m);h.removeChild(f[m].div);delete f[m]}else{if(n){if(!f[m]){f[m]={}}f[m].handler=n;f[m].outGraphic=o;f[m].overGraphic=l;if(!f[m].div){k.push(m);f[m].div=document.createElement("div");f[m].div.style.position="relative";h.appendChild(f[m].div);f[m].div.appendChild(document.createElement("img"));f[m].div.childNodes[0].style.position="absolute";f[m].div.childNodes[0].style.left=0;f[m].div.childNodes[0].style.top=0;f[m].div.childNodes[0].style.zIndex=10;f[m].div.childNodes[0].style.cursor="pointer";f[m].div.appendChild(document.createElement("img"));f[m].div.childNodes[1].style.position="absolute";f[m].div.childNodes[1].style.left=0;f[m].div.childNodes[1].style.top=0;if(e.skin.getSkinElement("dock","button")){f[m].div.childNodes[1].src=e.skin.getSkinElement("dock","button").src}f[m].div.childNodes[1].style.zIndex=9;f[m].div.childNodes[1].style.cursor="pointer";f[m].div.onmouseover=function(){if(f[m].overGraphic){f[m].div.childNodes[0].src=f[m].overGraphic}if(e.skin.getSkinElement("dock","buttonOver")){f[m].div.childNodes[1].src=e.skin.getSkinElement("dock","buttonOver").src}};f[m].div.onmouseout=function(){if(f[m].outGraphic){f[m].div.childNodes[0].src=f[m].outGraphic}if(e.skin.getSkinElement("dock","button")){f[m].div.childNodes[1].src=e.skin.getSkinElement("dock","button").src}};if(f[m].overGraphic){f[m].div.childNodes[0].src=f[m].overGraphic}if(f[m].outGraphic){f[m].div.childNodes[0].src=f[m].outGraphic}if(e.skin.getSkinElement("dock","button")){f[m].div.childNodes[1].src=e.skin.getSkinElement("dock","button").src}}if(n){f[m].div.onclick=function(p){p.preventDefault();a(e.id).callback(m);if(f[m].overGraphic){f[m].div.childNodes[0].src=f[m].overGraphic}if(e.skin.getSkinElement("dock","button")){f[m].div.childNodes[1].src=e.skin.getSkinElement("dock","button").src}}}}}g(b,c)};function g(l,r){b=l;c=r;if(k.length>0){var n=10;var p=l-e.skin.getSkinElement("dock","button").width-n;var m=n;var o=-1;if(j.align==a.html5.view.positions.LEFT){o=1;p=n}for(var s=0;s<k.length;s++){var q=Math.floor(m/r);if((m+e.skin.getSkinElement("dock","button").height+n)>((q+1)*r)){m=((q+1)*r)+n;q=Math.floor(m/r)}f[k[s]].div.style.top=(m%r)+"px";f[k[s]].div.style.left=(p+(e.skin.getSkinElement("dock","button").width+n)*q*o)+"px";m+=e.skin.getSkinElement("dock","button").height+n}}}this.resize=g;this.show=function(){_css(h,{display:"block"})};this.hide=function(){_css(h,{display:"none"})};return this}})(jwplayer);(function(a){a.html5.eventdispatcher=function(d,b){var c=new a.events.eventdispatcher(b);a.utils.extend(this,c);this.sendEvent=function(e,f){if(f===undefined){f={}}a.utils.extend(f,{id:d,version:a.version,type:e});c.sendEvent(e,f)}}})(jwplayer);(function(a){var b={prefix:"",file:"",link:"",margin:8,out:0.5,over:1,timeout:3,hide:true,position:"bottom-left"};_css=a.utils.css;a.html5.logo=function(l,m){var k=l;var o;var f;var q;g();function g(){s();r();c()}function s(){if(b.prefix){var t=l.version.split(/\W/).splice(0,2).join("/");if(b.prefix.indexOf(t)<0){b.prefix+=t+"/"}}if(m.position==a.html5.view.positions.OVER){m.position=b.position}f=a.utils.extend({},b,m)}function r(){q=document.createElement("img");q.id=k.id+"_jwplayer_logo";q.style.display="none";q.onload=function(t){_css(q,j());k.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,n);I()};if(!f.file){return}if(f.file.indexOf("http://")===0){q.src=f.file}else{q.src=f.prefix+f.file}}if(!f.file){return}this.resize=function(u,t){};this.getDisplayElement=function(){return q};function c(){if(f.link){q.onmouseover=e;q.onmouseout=I;q.onclick=p}else{this.mouseEnabled=false}}function p(t){if(typeof t!="undefined"){t.stopPropagation()}k.jwPause();k.jwSetFullscreen(false);if(f.link){window.open(f.link,"_blank")}return}function I(t){if(f.link){q.style.opacity=f.out}return}function e(t){if(f.hide){q.style.opacity=f.over}return}function j(){var v={textDecoration:"none",position:"absolute",cursor:"pointer"};v.display=f.hide?"none":"block";var u=f.position.toLowerCase().split("-");for(var t in u){v[u[t]]=f.margin}return v}function h(){if(f.hide){q.style.display="block";q.style.opacity=0;a.utils.fadeTo(q,f.out,0.1,parseFloat(q.style.opacity));o=setTimeout(function(){d()},f.timeout*1000)}}function d(){if(f.hide){a.utils.fadeTo(q,0,0.1,parseFloat(q.style.opacity))}}function n(t){if(t.newstate==a.api.events.state.BUFFERING){clearTimeout(o);h()}}return this}})(jwplayer);(function(b){var a={ended:b.api.events.state.IDLE,playing:b.api.events.state.PLAYING,pause:b.api.events.state.PAUSED,buffering:b.api.events.state.BUFFERING};var c=b.utils.css;b.html5.mediavideo=function(g,h){var q={abort:D,canplay:w,canplaythrough:w,durationchange:A,emptied:D,ended:w,error:u,loadeddata:A,loadedmetadata:A,loadstart:w,pause:w,play:v,playing:w,progress:L,ratechange:D,seeked:w,seeking:w,stalled:w,suspend:w,timeupdate:v,volumechange:D,waiting:w,canshowcurrentframe:D,dataunavailable:D,empty:D,load:e,loadedfirstframe:D};var s=new b.html5.eventdispatcher();b.utils.extend(this,s);var l=g;var H=h;var k;var o;var N=b.api.events.state.IDLE;var M=null;var x;var j=0;var K=false;var B=false;var P;var O;var n=[];var aa;var f=false;function F(){return N}function e(Q){}function D(Q){}function w(Q){if(a[Q.type]){C(a[Q.type])}}function C(Q){if(f){return}if(x){Q=b.api.events.state.IDLE}if(Q==b.api.events.state.PAUSED&&N==b.api.events.state.IDLE){return}if(Q==b.api.events.state.PLAYING&&N==b.api.events.state.IDLE){C(b.api.events.state.BUFFERING);s.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:l.buffer});J();return}if(N!=Q){var R=N;l.state=Q;N=Q;var S=false;if(Q==b.api.events.state.IDLE){z();if(l.position>=l.duration&&(l.position>0||l.duration>0)){S=true}if(H.style.display!="none"&&!l.config.chromeless){H.style.display="none"}}s.sendEvent(b.api.events.JWPLAYER_PLAYER_STATE,{oldstate:R,newstate:Q});if(S){s.sendEvent(b.api.events.JWPLAYER_MEDIA_COMPLETE)}}x=false}function A(Q){var R={height:Q.target.videoHeight,width:Q.target.videoWidth,duration:Math.round(Q.target.duration*10)/10};if(l.duration===0||isNaN(l.duration)){l.duration=Math.round(Q.target.duration*10)/10}l.playlist[l.item]=b.utils.extend(l.playlist[l.item],R);s.sendEvent(b.api.events.JWPLAYER_MEDIA_META,{metadata:R})}function v(R){if(x){return}if(R!==undefined&&R.target!==undefined){if(l.duration===0||isNaN(l.duration)){l.duration=Math.round(R.target.duration*10)/10}if(!K&&H.readyState>0){C(b.api.events.state.PLAYING)}if(N==b.api.events.state.PLAYING){if(!K&&H.readyState>0){K=true;try{H.currentTime=l.playlist[l.item].start}catch(Q){}H.volume=l.volume/100;H.muted=l.mute}l.position=Math.round(R.target.currentTime*10)/10;s.sendEvent(b.api.events.JWPLAYER_MEDIA_TIME,{position:R.target.currentTime,duration:R.target.duration})}}L(R)}function J(){if(k===false&&N==b.api.events.state.BUFFERING){s.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL);k=true}}function m(){var Q=(n[n.length-1]-n[0])/n.length;aa=setTimeout(function(){if(!o){L({lengthComputable:true,loaded:1,total:1})}},Q*10)}function L(S){var R,Q;if(S!==undefined&&S.lengthComputable&&S.total){y();R=S.loaded/S.total*100;Q=R/100*(l.duration-H.currentTime);if(50<R&&!o){clearTimeout(aa);m()}}else{if((H.buffered!==undefined)&&(H.buffered.length>0)){maxBufferIndex=0;if(maxBufferIndex>=0){R=H.buffered.end(maxBufferIndex)/H.duration*100;Q=H.buffered.end(maxBufferIndex)-H.currentTime}}}J();if(!o){if(R==100&&o===false){o=true}if(R!==null&&(R>l.buffer)){l.buffer=Math.round(R);s.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(R)})}}}function G(){if(M===null){M=setInterval(function(){v()},100)}}function z(){clearInterval(M);M=null}function u(S){var R="There was an error: ";if((S.target.error&&S.target.tagName.toLowerCase()=="video")||S.target.parentNode.error&&S.target.parentNode.tagName.toLowerCase()=="video"){var Q=S.target.error===undefined?S.target.parentNode.error:S.target.error;switch(Q.code){case Q.MEDIA_ERR_ABORTED:R="You aborted the video playback: ";break;case Q.MEDIA_ERR_NETWORK:R="A network error caused the video download to fail part-way: ";break;case Q.MEDIA_ERR_DECODE:R="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case Q.MEDIA_ERR_SRC_NOT_SUPPORTED:R="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:R="An unknown error occurred: ";break}}else{if(S.target.tagName.toLowerCase()=="source"){O--;if(O>0){return}R="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{b.utils.log("Erroneous error received. Continuing...");return}}E();R+=p();f=true;s.sendEvent(b.api.events.JWPLAYER_ERROR,{error:R});return}function p(){var S="";for(var R in P.levels){var Q=P.levels[R];var T=H.ownerDocument.createElement("source");S+=b.utils.getAbsolutePath(Q.file);if(R<(P.levels.length-1)){S+=", "}}return S}this.getDisplayElement=function(){return H};this.play=function(){if(N!=b.api.events.state.PLAYING){if(H.style.display!="block"){H.style.display="block"}H.play();G();if(k){C(b.api.events.state.PLAYING)}}};this.pause=function(){H.pause();C(b.api.events.state.PAUSED)};this.seek=function(Q){if(!(l.duration===0||isNaN(l.duration))&&!(l.position===0||isNaN(l.position))){H.currentTime=Q;H.play()}};function E(){H.pause();H.removeAttribute("src");var Q=H.getElementsByTagName("source");for(var R=0;R<Q.length;R++){H.removeChild(Q[R])}if(typeof H.load=="function"){H.load()}z();l.position=0;x=true;C(b.api.events.state.IDLE)}this.stop=E;this.volume=function(Q){H.volume=Q/100;l.volume=Q;s.sendEvent(b.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(Q)})};this.mute=function(Q){H.muted=Q;l.mute=Q;s.sendEvent(b.api.events.JWPLAYER_MEDIA_MUTE,{mute:Q})};this.resize=function(R,Q){if(false){c(H,{width:R,height:Q})}s.sendEvent(b.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:l.fullscreen,width:R,hieght:Q})};this.fullscreen=function(Q){if(Q===true){this.resize("100%","100%")}else{this.resize(l.config.width,l.config.height)}};this.load=function(Q){t(Q);s.sendEvent(b.api.events.JWPLAYER_MEDIA_LOADED);k=false;o=false;K=false;if(!l.config.chromeless&&!B){n=[];y();C(b.api.events.state.BUFFERING);setTimeout(function(){v()},25)}};function y(){var Q=new Date().getTime();n.push(Q)}this.hasChrome=function(){return B};function t(Q){switch(Q.provider){case"youtube":r(Q);break;default:d(Q,document.createElement("video"));break}}function d(X,V){l.duration=X.duration;B=false;P=X;V.preload="none";V.setAttribute("x-webkit-airplay","allow");f=false;O=0;for(var R=0;R<X.levels.length;R++){var Q=X.levels[R];var S;var W=b.utils.extension(Q.file);if(Q.type===undefined){if(b.utils.extensionmap[W]!==undefined&&b.utils.extensionmap[W].html5!==undefined){S=b.utils.extensionmap[W].html5}}else{S=Q.type}if(!S||V.canPlayType(S)||(b.utils.isLegacyAndroid()&&W.match(/m4v|mp4/))){var U=H.ownerDocument.createElement("source");U.src=b.utils.getAbsolutePath(Q.file);if(S&&!b.utils.isLegacyAndroid()){U.type=S}O++;V.appendChild(U)}}if(O===0){f=true;s.sendEvent(b.api.events.JWPLAYER_ERROR,{error:"The media could not be loaded because the format is not supported by your browser: "+p()})}if(l.config.chromeless){V.poster=b.utils.getAbsolutePath(X.image);V.controls="controls"}V.style.top=H.style.top;V.style.left=H.style.left;V.style.width=H.style.width;V.style.height=H.style.height;V.style.zIndex=H.style.zIndex;V.onload=e;V.volume=0;H.parentNode.replaceChild(V,H);V.id=H.id;H=V;for(var T in q){H.addEventListener(T,function(Y){if(Y.target.parentNode!==null){q[Y.type](Y)}},true)}}function r(Q){var Y=Q.levels[0].file;var T=document.createElement("object");Y=["http://www.youtube.com/v/",I(Y),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");var W={movie:Y,allowFullScreen:"true",allowscriptaccess:"always"};for(var S in W){var R=document.createElement("param");R.name=S;R.value=W[S];T.appendChild(R)}var X=document.createElement("embed");var U={src:Y,type:"application/x-shockwave-flash",allowscriptaccess:"always",allowfullscreen:"true",width:document.getElementById(g.id).style.width,height:document.getElementById(g.id).style.height};for(var V in U){X[V]=U[V]}T.appendChild(X);T.style.position=H.style.position;T.style.top=H.style.top;T.style.left=H.style.left;T.style.width=document.getElementById(g.id).style.width;T.style.height=document.getElementById(g.id).style.height;T.style.zIndex=2147483000;H.parentNode.replaceChild(T,H);T.id=H.id;H=T;B=true}function I(R){var Q=R.split(/\?|\#\!/);var T="";for(var S=0;S<Q.length;S++){if(Q[S].substr(0,2)=="v="){T=Q[S].substr(2)}}if(T==""){if(R.indexOf("/v/")>=0){T=R.substr(R.indexOf("/v/")+3)}else{if(R.indexOf("youtu.be")>=0){T=R.substr(R.indexOf("youtu.be/")+9)}else{T=R}}}if(T.indexOf("?")>-1){T=T.substr(0,T.indexOf("?"))}if(T.indexOf("&")>-1){T=T.substr(0,T.indexOf("&"))}return T}this.embed=t;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"none",stretching:jwplayer.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type)}var config=_model.config;var path=option.split(".");for(var edge in path){if(edge==path.length-1){config[path[edge]]=options[option]}else{if(config[path[edge]]===undefined){config[path[edge]]={}}config=config[path[edge]]}}}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable]}var pluginorder=_components.concat([]);if(_model.plugins!==undefined){if(typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins){if(typeof userplugins[userplugin]=="string"){pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""))}}}}if(typeof _model.config.chromeless=="undefined"&&jwplayer.utils.isIOS()){_model.config.chromeless=true}if(_model.config.chromeless){pluginorder=["logo"];if(_model.config.repeat===undefined||_model.config.repeat=="none"){_model.config.repeat="list"}}_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined"){for(var component in _model.config.components){_model.plugins.config[component]=_model.config.components[component]}}for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex];var pluginConfig=_model.config[pluginName]===undefined?{}:_model.config[pluginName];_model.plugins.config[pluginName]=_model.plugins.config[pluginName]===undefined?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(typeof _model.plugins.config[pluginName].position=="undefined"){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER}else{_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position}}if(typeof _model.plugins.config.dock.position!="undefined"){_model.plugins.config.dock.align=_model.plugins.config.dock.position;_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER}}_model.loadPlaylist=function(arg,ready){var input;if(typeof arg=="string"){try{input=eval(arg)}catch(err){input=arg}}else{input=arg}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break}_model.playlist=new jwplayer.html5.playlist(config);if(_model.config.shuffle){_model.item=_getShuffleItem()}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1}else{if(_model.config.item<0){_model.config.item=0}}_model.item=_model.config.item}if(!ready){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist})}_model.setActiveMediaProvider(_model.playlist[_model.item])};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(result===null){result=Math.floor(Math.random()*_model.playlist.length);if(result==_model.item){result=null}}}else{result=0}return result}function forward(evt){if(evt.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement()}_eventDispatcher.sendEvent(evt.type,evt)}_model.setActiveMediaProvider=function(playlistItem){if(_media!==undefined){_media.resetEventListeners()}_media=new jwplayer.html5.mediavideo(_model,_container);_media.addGlobalListener(forward);if(_model.config.chromeless){_media.load(playlistItem)}return true};_model.getMedia=function(){return _media};_model.seek=function(pos){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:pos});return _media.seek(pos)};_model.setupPlugins=function(){for(var plugin in _model.plugins.order){try{var pluginName=_model.plugins.order[plugin];if(jwplayer.html5[pluginName]!==undefined){_model.plugins.object[pluginName]=new jwplayer.html5[pluginName](_api,_model.plugins.config[pluginName])}else{_model.plugins.order.splice(plugin,plugin+1)}}catch(err){jwplayer.utils.log("Could not setup "+pluginName)}}};return _model}})(jwplayer);(function(a){a.html5.playlist=function(b){var d=[];if(b.playlist&&b.playlist instanceof Array&&b.playlist.length>0){for(var c in b.playlist){if(!isNaN(parseInt(c))){d.push(new a.html5.playlistitem(b.playlist[c]))}}}else{d.push(new a.html5.playlistitem(b))}return d}})(jwplayer);(function(b){b.html5.playlistitem=function(c){var d={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var e=b.utils.extend({},d,c);if(e.type){e.provider=e.type;delete e.type}if(e.levels.length===0){e.levels[0]=new b.html5.playlistitemlevel(e)}if(!e.provider){e.provider=a(e.levels[0])}else{e.provider=e.provider.toLowerCase()}return e};function a(c){if(b.utils.isYouTube(c.file)){return"youtube"}else{var d=b.utils.extension(c.file);var e;if(d&&b.utils.extensionmap[d]){e=b.utils.extensionmap[d].html5}else{if(c.type){e=c.type}}if(e){var f=e.split("/")[0];if(f=="audio"){return"sound"}else{if(f=="video"){return f}}}}return""}})(jwplayer);(function(a){a.html5.playlistitemlevel=function(b){var d={file:"",streamer:"",bitrate:0,width:0};for(var c in d){if(b[c]!==undefined){d[c]=b[c]}}return d}})(jwplayer);(function(a){a.html5.skin=function(){var b={};var c=false;this.load=function(d,e){new a.html5.skinloader(d,function(f){c=true;b=f;e()},function(){new a.html5.skinloader("",function(f){c=true;b=f;e()})})};this.getSkinElement=function(d,e){if(c){try{return b[d].elements[e]}catch(f){a.utils.log("No such skin component / element: ",[d,e])}}return null};this.getComponentSettings=function(d){if(c){return b[d].settings}return null};this.getComponentLayout=function(d){if(c){return b[d].layout}return null}}})(jwplayer);(function(a){a.html5.skinloader=function(e,p,h){var n={};var G=p;var k=h;var d=true;var g;var m=e;var j=false;function l(){if(typeof m!="string"||m===""){c(a.html5.defaultSkin().xml)}else{a.utils.ajax(a.utils.getAbsolutePath(m),function(r){try{if(r.responseXML!==null){c(r.responseXML);return}}catch(s){}c(a.html5.defaultSkin().xml)},function(r){c(a.html5.defaultSkin().xml)})}}function c(D){var t=D.getElementsByTagName("component");if(t.length===0){return}for(var A=0;A<t.length;A++){var r=t[A].getAttribute("name");var K={settings:{},elements:{},layout:{}};n[r]=K;var x=t[A].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var v=0;v<x.length;v++){o(x[v],r)}var F=t[A].getElementsByTagName("settings")[0];if(F!==undefined&&F.childNodes.length>0){var H=F.getElementsByTagName("setting");for(var O=0;O<H.length;O++){var Y=H[O].getAttribute("name");var C=H[O].getAttribute("value");var B=/color$/.test(Y)?"color":null;n[r].settings[Y]=a.utils.typechecker(C,B)}}var J=t[A].getElementsByTagName("layout")[0];if(J!==undefined&&J.childNodes.length>0){var L=J.getElementsByTagName("group");for(var z=0;z<L.length;z++){var I=L[z];n[r].layout[I.getAttribute("position")]={elements:[]};for(var N=0;N<I.attributes.length;N++){var s=I.attributes[N];n[r].layout[I.getAttribute("position")][s.name]=s.value}var M=I.getElementsByTagName("*");for(var y=0;y<M.length;y++){var u=M[y];n[r].layout[I.getAttribute("position")].elements.push({type:u.tagName});for(var w=0;w<u.attributes.length;w++){var E=u.attributes[w];n[r].layout[I.getAttribute("position")].elements[y][E.name]=E.value}if(n[r].layout[I.getAttribute("position")].elements[y].name===undefined){n[r].layout[I.getAttribute("position")].elements[y].name=u.tagName}}}}d=false;b()}}function b(){clearInterval(g);if(!j){g=setInterval(function(){q()},100)}}function o(x,w){var v=new Image();var s=x.getAttribute("name");var u=x.getAttribute("src");var r;if(u.indexOf("data:image/png;base64,")===0){r=u}else{var t=a.utils.getAbsolutePath(m);var y=t.substr(0,t.lastIndexOf("/"));r=[y,w,u].join("/")}n[w].elements[s]={height:0,width:0,src:"",ready:false};v.onload=function(z){f(v,s,w)};v.onerror=function(z){j=true;b();k()};v.src=r}function q(){for(var r in n){if(r!="properties"){for(var s in n[r].elements){if(!n[r].elements[s].ready){return}}}}if(d===false){clearInterval(g);G(n)}}function f(r,t,s){n[s].elements[t].height=r.height;n[s].elements[t].width=r.width;n[s].elements[t].src=r.src;n[s].elements[t].ready=true;b()}l()}})(jwplayer);(function(a){a.html5.api=function(j,h){var g={};var b=document.createElement("div");j.parentNode.replaceChild(b,j);b.id=j.id;g.version=a.version;g.id=b.id;var f=new a.html5.model(g,b,h);var d=new a.html5.view(g,b,f);var e=new a.html5.controller(g,b,f,d);g.skin=new a.html5.skin();g.jwPlay=function(m){if(typeof m=="undefined"){w()}else{if(m.toString().toLowerCase()=="true"){e.play()}else{e.pause()}}};g.jwPause=function(m){if(typeof m=="undefined"){w()}else{if(m.toString().toLowerCase()=="true"){e.pause()}else{e.play()}}};function w(){if(f.state==a.api.events.state.PLAYING||f.state==a.api.events.state.BUFFERING){e.pause()}else{e.play()}}g.jwStop=e.stop;g.jwSeek=e.seek;g.jwPlaylistItem=e.item;g.jwPlaylistNext=e.next;g.jwPlaylistPrev=e.prev;g.jwResize=e.resize;g.jwLoad=e.load;function c(m){return function(){return f[m]}}function l(o,n,m){return function(){var p=f.plugins.object[o];if(p&&p[n]&&typeof p[n]=="function"){p[n].apply(p,m)}}}g.jwGetItem=c("item");g.jwGetPosition=c("position");g.jwGetDuration=c("duration");g.jwGetBuffer=c("buffer");g.jwGetWidth=c("width");g.jwGetHeight=c("height");g.jwGetFullscreen=c("fullscreen");g.jwSetFullscreen=e.setFullscreen;g.jwGetVolume=c("volume");g.jwSetVolume=e.setVolume;g.jwGetMute=c("mute");g.jwSetMute=e.setMute;g.jwGetStretching=c("stretching");g.jwGetState=c("state");g.jwGetVersion=function(){return g.version};g.jwGetPlaylist=function(){return f.playlist};g.jwGetPlaylistIndex=g.jwGetItem;g.jwAddEventListener=e.addEventListener;g.jwRemoveEventListener=e.removeEventListener;g.jwSendEvent=e.sendEvent;g.jwDockSetButton=function(o,p,m,n){if(f.plugins.object.dock&&f.plugins.object.dock.setButton){f.plugins.object.dock.setButton(o,p,m,n)}};g.jwShowControlbar=l("controlbar","show");g.jwHideControlbar=l("controlbar","hide");g.jwShowDock=l("dock","show");g.jwHideDock=l("dock","hide");g.jwShowDisplay=l("display","show");g.jwHideDisplay=l("display","hide");g.jwGetLevel=function(){};g.jwGetBandwidth=function(){};g.jwGetLockState=function(){};g.jwLock=function(){};g.jwUnlock=function(){};function k(n,m,o){return function(){n.loadPlaylist(n.config,true);n.setupPlugins();m.setup(n.getMedia().getDisplayElement());var p={id:g.id,version:g.version};o.sendEvent(a.api.events.JWPLAYER_READY,p);if(playerReady!==undefined){playerReady(p)}if(window[n.config.playerReady]!==undefined){window[n.config.playerReady](p)}n.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:n.playlist});o.item(n.item)}}if(f.config.chromeless){setTimeout(k(f,d,e),25)}else{g.skin.load(f.config.skin,k(f,d,e))}return g}})(jwplayer)};
