window.EVE={cfg:{lang:"lt",baseURL:"http://www.elsa-step.lt",style_classes:{form_crud:"crud-form",admin_menu:"admin-menu",h1_content:"h1-content",h2_content:"h2-content",traineeship_table:"traineeship",page_slide:"slide",page_paginatorlink_current:"page-paginatorlink-current",page_paginatorlink_normal:"page-paginatorlink-normal",page_paginator:"page-paginator",bottom_right:"bottom-right",bottom_left:"bottom-left",bottom:"bottom",page_dates:"page-dates",page_content:"page-content",table_crud:"crud-table",input_hidden:"input-hidden",input_text:"input-text",table_header:"table-header",input_name:"input-name",body:"body",question_paragraph:"question-paragraph",answer_paragraph:"answer-paragraph",textarea:"textarea",submit_button:"submit-button",menu_link:"menu-link",menu_link_news:"menu-link-news",menu_link_step:"menu-link-step",menu_link_traineeships:"menu-link-traineeships",menu_link_impressions:"menu-link-impressions",menu_link_qa:"menu-link-qa",menu_link_contacts:"menu-link-contacts",ad_class_koop:"ad-class-koop",ad_class_pa:"ad-class-pa",ad_class_rem:"ad-class-rem",ad_class_inf:"ad-class-inf",ad_class_painf:"ad-class-painf",ad:"ad",topline:"topline",content:"content",question_form:"question-form",question_list:"question-list",ad_lideika:"ad-lideika",ad_sutkiene:"ad-sutkiene",ad_infolex:"ad-infolex",ad_spes:"ad-spes",ad_justitia:"ad-justitia",ad_logic4:"ad-logic4",ad_smaliukas:"ad-smaliukas",ad_sabaliauskas:"ad-sabaliauskas",header:"header"},_:{lt:{appTitle:"STEP - Students Trainee Exchange Programme","answer published email subject":"atsakymas \u012f j\u016bs\u0173 klausim\u0105 paskelbtas","answer published email body":"Sveiki. \u012e klausim\u0173 skilt\u012f \u012fterptas atsakymas \u012f j\u016bs\u0173 klausim\u0105.",week:"Savait\u0117",month:"M\u0117nuo",year:"Metai",halfyear:"Pusmetis",more:"Dar",close:"U\u017edaryti","read all":"Skaityti visk\u0105",slideshow:"Paleisti",next:"Pirmyn","elsa id":"ELSA id",employer:"Firma",city:"Miestas",country:"\u0160alis",responsibility:"Pareigos",salary:"Atlyginimas","salary period amount":"Atlyginimas u\u017e period\u0105","salary period":"Atlyginimo periodas","work weeks":"Darbo savait\u0117s","application deadline":"Parai\u0161k\u0173 terminas","start date":"Anks\u010diausias sta\u017euot\u0117s prad\u017eios laikas","end date":"V\u0117liausias sta\u017euot\u0117s pabaigos laikas","graduation level":"Mokslinis laipsnis","law related":"Teisinis darbas",fields:"Sritys",tasks:"U\u017eduotys",previous:"Atgal",traineeships:"Sta\u017euot\u0117s",countries:"Valstyb\u0117s","language skills levels":"Kalbos mok\u0117jimo lygmenys",languages:"Kalbos","employer types":"Firm\u0173 tipai",responsibilities:"Pareigos","graduation levels":"Moksliniai laipsniai",home:"Pagrindinis puslapis",edit:"Redaguoti",editing:"Redagavimas","delete":"Pa\u0161alinti",create:"Sukurti",admin:"Administravimas",lobby:"Svetain\u0117",cities:"Miestai",employers:"Firmos","elsa groups":"ELSA grup\u0117s",questions:"Klausimai",save:"I\u0161saugoti",send:"Si\u0173sti","ask!":"Klausk!",email_address_field:"El. pa\u0161to adresas (jei norite, kad prane\u0161tume apie \u012fd\u0117t\u0105 atsakym\u0105)",cancel:"At\u0161aukti",pages:"Puslapiai","developed by":"suk\u016br\u0117","updated at":"atnaujinta @","-- please select --":"-- Pra\u0161ome pasirinkti --"}}}};(function(c){var b,a;c.funjes={};b=[];(function(d){if(typeof c.Object.prototype.propertyIsEnumerable==="undefined"){d[d.length]="Object.propertyIsEnumerable";c.Object.prototype.propertyIsEnumerable=function(){c.alert("TODO propertyIsEnumerable for internet_explorer-4")}}if(typeof c.Number.prototype.toPrecision==="undefined"){d[d.length]="Number.toPrecision";c.Number.prototype.toPrecision=function(){c.alert("TODO toPrecision for opera-6")}}if(typeof c.Function.prototype.apply==="undefined"){(function(){d[d.length]="Function.apply";var e;e=0;c.Function.prototype.apply=function(l,f){var h,g,k,j;g="__applyTemp__b"+(e++);if(l===null){l=c}l[g]=this;k=[];j=(f||"").length>>>0;for(h=0;h<j;h++){k[h]="args["+h+"]"}return(new c.Function("obj","args","var a; a = obj."+g+"("+k+");try{ delete obj['"+g+"']; } catch(e) {} return a;"))(l,f)}})()}if(typeof c.Array.prototype.join==="undefined"){d[d.length]="Array.join";c.Array.prototype.join=function(){var e,h,f,g;f=typeof arguments[0]==="undefined"?",":c.String(arguments[0]);h=this.length;if(h>0){g=this[0]+"";for(e=1;e<h;e++){g+=f+this[e]}return g}else{return""}}}if(typeof c.Object.prototype.hasOwnProperty==="undefined"){(function(){d[d.length]="Object.hasOwnProperty";var f,e;e=new c.RegExp("toLocaleString|hasOwnProperty|propertyIsEnumerable|isPrototypeOf|constructor|toString|valueOf","");f=c.Object.prototype;f.hasOwnProperty=function(h){var g=false,i;h=""+h;if(e.test(h)){g=f[h]!==this[h]}else{for(i in this){if(i===h){g=this===f?false:f[h]!==this[h];break}}}return g}})()}if(typeof c.Math.ceil==="undefined"){d[d.length]="Math.ceil";c.Math.ceil=function(e){return -c.Math.floor(-e)}}if(typeof c.String.prototype.substring==="undefined"){if(typeof c.String.prototype.substr==="undefined"){d[d.length]="String.substring";c.String.prototype.substring=function(g){var f,e;e=typeof arguments[1]==="undefined"?this.length:(arguments[1]+g);f="";while(g<e){f+=this.charAt(g++)}return f}}else{c.String.prototype.substring=function(e){return this.substr(e,(typeof arguments[2]==="undefined"?this.length:(arguments[2]+e))-e)}}}if(typeof c.Date.prototype.toDateString==="undefined"){d[d.length]="Date.toDateString";c.Date.prototype.toDateString=function(){c.alert("TODO toDateString for internet_explorer-4")}}if(typeof c.String.prototype.toLocaleUpperCase==="undefined"){d[d.length]="String.toLocaleUpperCase";c.String.prototype.toLocaleUpperCase=function(){c.alert("TODO toLocaleUpperCase for internet_explorer-4")}}if(typeof c.String.prototype.toLocaleLowerCase==="undefined"){d[d.length]="String.toLocaleLowerCase";c.String.prototype.toLocaleLowerCase=function(){c.alert("TODO toLocaleLowerCase for internet_explorer-4")}}if(typeof c.Array.prototype.unshift==="undefined"){d[d.length]="Array.unshift";c.Array.prototype.unshift=function(){var e,g,f;g=arguments.length>>>0;f=this.length;for(e=0;e<f;e++){this[e+g]=this[e]}for(e=0;e<g;e++){this[e]=arguments[e]}return this.length}}if(typeof c.String.prototype.localeCompare==="undefined"){d[d.length]="String.localeCompare";c.String.prototype.localeCompare=function(){c.alert("TODO localeCompare for opera-6")}}if(typeof c.Array.prototype.pop==="undefined"){d[d.length]="Array.pop";c.Array.prototype.pop=function(){var e;this.length=this.length>>>0;if(this.length===0){return}e=this[this.length-1];c.funjes.unset(this,this.length-1);this.length--;return e}}if(typeof c.Array.prototype.push==="undefined"){d[d.length]="Array.push";c.Array.prototype.push=function(){var e,f;f=arguments.length>>>0;for(e=0;e<f;e++){this[this.length]=arguments[e]}return this.length}}if(typeof c.Object.prototype.toLocaleString==="undefined"){d[d.length]="Object.toLocaleString";c.Object.prototype.toLocaleString=function(){return this.toString()}}if(typeof c.Array.prototype.slice==="undefined"){d[d.length]="Array.slice";c.Array.prototype.slice=function(g){var e,f;f=typeof arguments[1]==="undefined"?this.length:arguments[1];e=[];while(g<f){e.push(this[g]);g++}return e}}if(typeof c.Object.prototype.isPrototypeOf==="undefined"){d[d.length]="Object.isPrototypeOf";c.Object.prototype.isPrototypeOf=function(e){var f;while(true){e=c.funjes.getPrototypeOf(e);if(f===e){return e===this}if(e===this){return true}f=e}return false}}if(typeof c.Date.prototype.toLocaleTimeString==="undefined"){d[d.length]="Date.toLocaleTimeString";c.Date.prototype.toLocaleTimeString=function(){c.alert("TODO toLocaleTimeString for internet_explorer-4")}}if(typeof c.Function.prototype.call==="undefined"){(function(){d[d.length]="Function.call";var e=c.Array.prototype.slice;c.Function.prototype.call=function(f){return this.apply(f,e.apply(arguments,[1]))}})()}if(typeof c.Number.prototype.toExponential==="undefined"){d[d.length]="Number.toExponential";c.Number.prototype.toExponential=function(){c.alert("TODO toExponential for opera-6")}}if(typeof c.Number.prototype.toFixed==="undefined"){d[d.length]="Number.toFixed";c.Number.prototype.toFixed=function(){c.alert("TODO toFixed for opera-6")}}if(typeof c.Array.prototype.splice==="undefined"){d[d.length]="Array.splice";c.Array.prototype.splice=function(h,g){var f,e;if(g<0){g=0}f=c.Array.prototype.slice.call(arguments,2);e=this.slice(h,g);f=this.slice(0,h).concat(f,this.slice(h+g));this.length=0;c.Array.prototype.push.apply(this,f);return e}}(function(){var e;e="";if(typeof c.String.prototype.replace!=="undefined"){e="hello-world".replace(new c.RegExp("\\-(\\w)","g"),function(f,g){return g.toUpperCase()})}if(e!=="helloWorld"){d[d.length]="String.replace";c.String.prototype.replace=function(p,f){var o,n,k,g,h,l;if(typeof p==="string"){if(typeof f==="string"){return this.split(p).join(f)}if(this.indexOf(p)<0){return this}o=this.split(p);h=o[0];n=0;for(k=1;k<o.length;k++){g=this.indexOf(p,n);h+=f(p,g,this);h+=o[k];n=g+o[k].length}return h}if(typeof f==="string"){return this.split(p).join(f)}o=this.match(p);if(!o){return this}n=0;h="";for(k=0;k<o.length;k++){g=this.indexOf(o[k],n);p.lastIndex=g;h+=this.substring(n,g);l=p.exec(o[k]);l.push(g);l.push(this);h+=f.apply(null,l);n=g+o[k].length;if(k===0&&!p.global){break}}return h+this.substr(n)}}})();if(typeof c.Date.prototype.toTimeString==="undefined"){d[d.length]="Date.toTimeString";c.Date.prototype.toTimeString=function(){c.alert("TODO toTimeString for internet_explorer-4")}}if(typeof c.Date.prototype.toLocaleDateString==="undefined"){d[d.length]="Date.toLocaleDateString";c.Date.prototype.toLocaleDateString=function(){c.alert("TODO toLocaleDateString for internet_explorer-4")}}if(typeof c.Array.prototype.shift==="undefined"){d[d.length]="Array.shift";c.Array.prototype.shift=function(){var e,f,g;this.length=this.length>>>0;if(this.length===0){return}f=this[0];g=this.length-1;for(e=0;e<g;e++){this[e]=this[e+1]}this.length--;return f}}})(b);a=new (function(h){var f,g,e,d;f=this;g=[];e={};d=function(){var p,o,l,q,n;p=0;while(p<g.length){if(g[p]){o=0;n=g[p].keys;l=n.length;q=true;while(o<l){if(!e[n[o]]){q=false;break}o++}if(q){n=g[p].funktion;g[p]=null;n()}}p++}};f.add=function(i){if(!e[i]){e[i]=true;d()}};f.when=function(j,i){g.push({keys:j,funktion:i});d()};f.set=function(j,i){h[j]=i;f.add(j)}})(c.funjes);c.tag=(function(){var e,d,f;e=function(){};e.prototype.self=function(){return this};f={};f.doNothing=function(){};f.testElement=window.document.createElement("p");f.userAgent=window.navigator.userAgent.toLowerCase();f.mozilla=(new window.RegExp("mozilla","")).test(f.userAgent)&&!(new window.RegExp("(compatible|webkit)","")).test(f.userAgent);f.safari=(new window.RegExp("webkit","")).test(f.userAgent);f.safari2=f.safari&&window.parseInt((f.userAgent.match(new window.RegExp(".+(rv|it|ra|ie)[/: ]([\d.]+)",""))||[])[1])<522&&!(new window.RegExp("adobeair","")).test(f.userAgent);f.join=window.Array.prototype.join;f.List=function(){var h,g;h=null;g=null;this.push=function(i){i={n:null,p:g,o:i};if(h===null){g=h=i}else{g.n=i;g=i}return function(){if(i===null){return}if(i===h){if(i===g){h=g=null}else{h=i.n;h.p=null}}else{if(i===g){g=i.p;g.n=null}else{i.p.n=i.n;i.n.p=i.p}}i=null}};this.foreach=function(i){var j;j=h;while(j!==null){i(j.o);j=j.n}}};f.canonRegExp=new window.RegExp("\\-(\\w)","g");f.canonHelper=function(g,h){return h.toUpperCase()};f.uncanonRegExp=new window.RegExp("(\\w)","g");f.uncanonHelper=function(g,h){return"-"+h.toLowerCase()};f.canonicalize=function(g){return g.replace(f.canonRegExp,f.canonHelper)};f.uncanonicalize=function(g){return g.replace(f.uncanonRegExp,f.uncanonHelper)};f.colorHelper=function(i,h){var g;if(!f.safari){return false}g=i.getComputedStyle(h,null);return !g||g.getPropertyValue("color")===""};f.computeRegExp1=new window.RegExp("([A-Z])","g");f.computeRegExp2=new window.RegExp("\\d+(px)?$","g");f.computeRegExp3=new window.RegExp("^\\d","g");f.compute=function(l,h){var q,j,p,g,r,k,s,t,n,o;g=l.style;if(l.ownerDocument&&(o=l.ownerDocument.defaultView)&&o.getComputedStyle){h=h.replace(f.computeRegExp1,"-$1").toLowerCase();r=o.getComputedStyle(l,null);if(r&&!f.colorHelper(o,l)){q=r.getPropertyValue(h)}else{k=[];s=[];t=l;n=0;for(;t&&f.colorHelper(o,t);t=t.parentNode){s.unshift(t)}for(;n<s.length;n+=1){if(f.colorHelper(o,s[n])){k[n]=s[n].style.display;s[n].style.display="block"}}q=(r&&r.getPropertyValue(h))||"";for(n=0;n<k.length;n+=1){if(k[n]!==null){s[n].style.display=k[n]}}}}else{if(l.currentStyle){q=l.currentStyle[h]||l.currentStyle[f.canonicalize(h)];if(!f.computeRegExp2.test(q)&&f.computeRegExp3.test(q)){j=g.left;p=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;g.left=q||0;q=g.pixelLeft+"px";g.left=j;l.runtimeStyle.left=p}}else{q=g[h]}}return q};f.appearanceValues=["icon","window","desktop","workspace","document","tooltip","dialog","button","push-button","hyperlink","radio-button","checkbox","menu-item","tab","menu","menubar","pull-down-menu","pop-up-menu","list-menu","radio-group","checkbox-group","outline-tree","range","field","combo-box","signature","password","mac-unified-toolbar","win-browsertabbar-toolbox","win-communications-toolbox","win-glass","win-media-toolbox"];f.toRGBA=function(g){};f.fillShorthandQuad=function(g,h){if(h.length===1){g.push(h[0]);g.push(h[0]);g.push(h[0]);g.push(h[0])}else{if(h.length===2){g.push(h[0]);g.push(h[1]);g.push(h[0]);g.push(h[1])}else{if(h.length===3){g.push(h[0]);g.push(h[1]);g.push(h[2]);g.push(h[1])}else{if(h.length===4){g.push(h[0]);g.push(h[1]);g.push(h[2]);g.push(h[3])}}}}};f.makeNumericFunctionPreset=function(h,g){return{name:g,setter:function(){return this.css(h,g+"("+f.join.apply(arguments,",")+")")}}};f.definitions={appearance:{initial:"none",type:"presets",presets:(function(){var g,h;g=["none",{setter:function(){return this.css("appearance","-moz-mac-unified-toolbar")},name:"mac-unified-toolbar"},{setter:function(){return this.css("appearance","-moz-win-browsertabbar-toolbox")},name:"win-browsertabbar-toolbox"},{setter:function(){return this.css("appearance","-moz-win-communications-toolbox")},name:"win-communications-toolbox"},{setter:function(){return this.css("appearance","-moz-win-glass")},name:"win-glass"},{setter:function(){return this.css("appearance","-moz-win-media-toolbox")},name:"win-media-toolbox"}];h=f.appearanceValues.length;while(h){h-=1;g.push(f.appearanceValues[h])}return g})()},transitionDelay:{type:"time",separator:", ",presets:[],initial:"0"},transition:{shorthand:function(){var j,h,q,i,k,g,l,o,p;if(typeof arguments[0]==="object"){k=arguments}else{k=[arguments]}g=k.length;p=[];while(g){g-=1;l=k[g];o=["all","0","ease","0"];if(/^(0|0ms|0s|[\d\.]+(s|ms))$/.test(l[0])){o[1]=l[0];if(/^(0|0ms|0s|[\d\.]+(s|ms))$/.test(l[1])){o[3]=l[1]}else{o[2]=l[1];o[3]=l[2]}}else{o[0]=l[0];o[1]=l[1];if(/^(0|0ms|0s|[\d\.]+(s|ms))$/.test(l[2])){o[3]=l[2]}else{o[2]=l[2];o[3]=l[3]}}j.push(o[0]);h.push(o[1]);q.push(o[2]);i.push(o[3])}this.transitionProperty.apply(this,j);this.transitionDuration.apply(this,h);this.transitionTimingFunction.apply(this,q);this.transitionDelay.apply(this,i);return this},type:"shorthand",presets:[],initial:""},transitionDuration:{type:"time",separator:", ",presets:[],initial:"0"},transitionProperty:{type:"property",separator:", ",presets:["all"],initial:"all"},transitionTimingFunction:{type:"presets",separator:", ",presets:["ease","linear","ease-in","ease-out","ease-in-out",f.makeNumericFunctionPreset("transitionTimingFunction","cubic-bezier")],initial:"ease"},boxSizing:{type:"presets",presets:["padding-box","inherit","content-box","border-box"],initial:"inherit"},textOverflow:{type:"presets",presets:["ellipsis-word","inherit","ellipsis","clip"],initial:"inherit"},transform:{type:"presets",presets:["none",f.makeNumericFunctionPreset("transform","matrix"),f.makeNumericFunctionPreset("transform","translateX"),f.makeNumericFunctionPreset("transform","translateY"),f.makeNumericFunctionPreset("transform","scaleX"),f.makeNumericFunctionPreset("transform","scaleY"),f.makeNumericFunctionPreset("transform","rotate"),f.makeNumericFunctionPreset("transform","skewX"),f.makeNumericFunctionPreset("transform","skewY"),{name:"translate",setter:function(g){return this.css("transform","translate("+g+","+(arguments[1]||0)+")")}},{name:"scale",setter:function(g){return this.css("transform","scale("+g+","+(arguments[1]||g)+")")}},{name:"skew",setter:function(g){return this.css("transform","skew("+g+","+(arguments[1]||0)+")")}}],initial:"none"},transformOrigin:{shorthand:function(){return this.css("transform-origin",(arguments.length===1)?arguments[0]+" center":arguments[0]+arguments[1])},type:"shorthand",presets:[],initial:"50% 50%"},transformStyle:{type:"presets",presets:["flat","preserve-3d"],initial:"flat"},opacity:{additional:[function(){return typeof f.testElement.style.filters==="undefined"||typeof f.testElement.style.filters.alpha==="undefined"?null:{setter:function(g){this.node.style.filters.alpha.opacity=String(parseFloat(g)*100);return this},getter:function(g){return String(parseInt(g.style.filters.alpha.opacity,10)/100)}}},function(){var g;g=new window.RegExp("alpha\\(opacity=(.*)\\)","");return typeof f.testElement.style.filter==="undefined"?null:{setter:function(h){this.node.style.filter="alpha(opacity="+(parseFloat(h)*100)+")";return this},getter:function(h){var i;i=(h.style.filter||"").match(g);if(i!==null&&typeof i[1]!=="undefined"){return String(parseFloat(i[1])/100)}return"1"}}}],type:"number",presets:[],initial:"1"},backfaceVisibility:{type:"presets",presets:["visible","hidden"],initial:"visible"},boxShadow:{shorthand:function(){return this.css("box-shadow",f.join.call(arguments," "))},type:"shorthand",presets:["none"],initial:"none"},borderImage:{type:"presets",presets:["none"],initial:"none"},perspective:{type:"length",presets:["none"],initial:"none"},perspectiveOrigin:{shorthand:function(){return this.css("perspective-origin",(arguments.length===1)?arguments[0]+" center":arguments[0]+arguments[1])},type:"shorthand",presets:[],initial:"50% 50%"},borderRadius:{shorthand:function(){var g,h,j,i;if(typeof arguments[0]==="object"){g=arguments[0];h=arguments[1]}else{g=arguments;h=arguments}j=[];i=[];f.fillShorthandQuad(j,g);f.fillShorthandQuad(i,h);this.borderTopLeftRadius(g[0],h[0]);this.borderTopRightRadius(g[1],h[1]);this.borderBottomRightRadius(g[2],h[2]);this.borderBottomLeftRadius(g[3],h[3]);return this},type:"shorthand",presets:["inherit"],initial:"inherit"},borderTopLeftRadius:{additional:["borderRadiusTopLeft"],separator:" ",type:"length",presets:["inherit"],initial:"inherit"},borderTopRightRadius:{additional:["borderRadiusTopRight"],separator:" ",type:"length",presets:["inherit"],initial:"inherit"},borderBottomLeftRadius:{additional:["borderRadiusBottomLeft"],separator:" ",type:"length",presets:["inherit"],initial:"inherit"},borderBottomRightRadius:{additional:["borderRadiusBottomRight"],separator:" ",type:"length",presets:["inherit"],initial:"inherit"},"float":{additional:["cssFloat","styleFloat"],type:"presets",presets:["left","right","none","inherit"],initial:"none"},listStylePosition:{type:"presets",initial:"outside",presets:["inside","outside"]},fontWeight:{type:"presets",initial:"normal",presets:["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900","inherit"]},outlineStyle:{type:"presets",initial:"",presets:["inherit","none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]},borderColor:{shorthand:function(){var g;g=[];f.fillShorthandQuad(g,arguments);this.borderTopColor(g[0]);this.borderRightColor(g[1]);this.borderBottomColor(g[2]);this.borderLeftColor(g[3]);return this},type:"shorthand",presets:["transparent","inherit"]},borderWidth:{shorthand:function(){var g;g=[];f.fillShorthandQuad(g,arguments);this.borderTopWidth(g[0]);this.borderRightWidth(g[1]);this.borderBottomWidth(g[2]);this.borderLeftWidth(g[3]);return this},type:"shorthand",presets:["thin","medium","thick","inherit",{name:"px",setter:function(){var g;g=[];f.fillShorthandQuad(g,arguments);this.borderTopWidthPx(g[0]);this.borderRightWidthPx(g[1]);this.borderBottomWidthPx(g[2]);this.borderLeftWidthPx(g[3]);return this}}]},borderStyle:{shorthand:function(h){var g;g=[];f.fillShorthandQuad(g,arguments);this.borderTopStyle(g[0]);this.borderRightStyle(g[1]);this.borderBottomStyle(g[2]);this.borderLeftStyle(g[3]);return this},type:"shorthand",presets:["inherit","none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]},borderTopStyle:{type:"presets",presets:["inherit","none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]},borderBottomStyle:{type:"presets",presets:["inherit","none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]},borderLeftStyle:{type:"presets",presets:["inherit","none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]},borderRightStyle:{type:"presets",presets:["inherit","none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]},background:{type:"presets",initial:"",separator:" ",presets:[]},listStyleImage:{type:"uri",initial:"none",presets:["none"]},backgroundImage:{type:"uri",separator:", ",initial:"none",presets:["none"]},backgroundPosition:{type:"length",separator:" ",initial:"0% 0%",presets:[]},listStyle:{type:"presets",separator:" ",presets:["inherit"]},outlineColor:{type:"color",presets:["invert","inherit"]},font:{type:"presets",presets:(function(){var h,g;g=["caption","icon","menu","message-box","small-caption","status-bar","inherit"];h=f.appearanceValues.length;while(h){h-=1;g.push(f.appearanceValues[h])}return g})()},backgroundAttachment:{type:"presets",presets:["scroll","fixed","inherit"]},backgroundRepeat:{type:"presets",presets:["repeat","repeat-x","repeat-y","no-repeat","inherit","space","round"]},border:{type:"presets",presets:["inherit"]},outline:{shorthand:function(){var h,g;g=0;h=f.toRGBA(arguments[g]);if(h!==null){this.outlineColor(h);g+=1}h=arguments[g].charCodeAt(0);if(h>47&&h<58){this.outlineWidth(arguments[g])}else{this.outlineWidth(arguments[g]);this.outlineStyle(arguments[g+1])}return this},initial:"",type:"shorthand",presets:["inherit"]},borderTop:{shorthand:function(){var h,g;g=0;h=arguments[g].charCodeAt(0);if(h>47&&h<58){this.borderTopWidth(arguments[g]);g+=1}h=f.toRGBA(arguments[g]);if(h===null){this.borderTopStyle(arguments[g]);this.borderTopColor(arguments[g+1])}else{this.borderTopColor(h)}return this},initial:"",type:"shorthand",presets:["inherit"]},borderBottom:{shorthand:function(){var h,g;g=0;h=arguments[g].charCodeAt(0);if(h>47&&h<58){this.borderBottomWidth(arguments[g]);g+=1}h=f.toRGBA(arguments[g]);if(h===null){this.borderBottomStyle(arguments[g]);this.borderBottomColor(arguments[g+1])}else{this.borderBottomColor(h)}return this},type:"shorthand",initial:"",presets:["inherit"]},borderLeft:{shorthand:function(){var h,g;g=0;h=arguments[g].charCodeAt(0);if(h>47&&h<58){this.borderLeftWidth(arguments[g]);g+=1}h=f.toRGBA(arguments[g]);if(h===null){this.borderLeftStyle(arguments[g]);this.borderLeftColor(arguments[g+1])}else{this.borderLeftColor(h)}return this},type:"shorthand",initial:"",presets:["inherit"]},borderRight:{shorthand:function(){var h,g;g=0;h=arguments[g].charCodeAt(0);if(h>47&&h<58){this.borderRightWidth(arguments[g]);g+=1}h=f.toRGBA(arguments[g]);if(h===null){this.borderRightStyle(arguments[g]);this.borderRightColor(arguments[g+1])}else{this.borderRightColor(h)}return this},initial:"",type:"shorthand",presets:["inherit"]},borderSpacing:{shorthand:function(){if(arguments.length===1){return this.css("border-spacing",String(arguments[0]))}else{return this.css("border-spacing",arguments[0]+" "+arguments[1])}},type:"shorthand",initial:"0",presets:["inherit"]},quotes:{type:"string",separator:" ",presets:["none"]},direction:{type:"presets",presets:["rtl","ltr","inherit"]},clip:{type:"presets",presets:["auto",{name:"rect",setter:function(h,g,j,i){return this.css("clip","rect("+h+","+g+","+j+","+i+")")}}]},borderCollapse:{type:"presets",initial:"collapse",presets:["collapse","separate","inherit"]},clear:{type:"presets",initial:"none",presets:["left","right","both","none","inherit"]},fontStyle:{type:"presets",initial:"normal",presets:["normal","italic","oblique","inherit"]},fontVariant:{type:"presets",initial:"normal",presets:["normal","small-caps","inherit"]},fontSizeAdjust:{type:"number",initial:"none",presets:["none","inherit"]},emptyCells:{type:"presets",initial:"show",presets:["show","hide","inherit"]},listStyleType:{type:"presets",initial:"disc",presets:["normal","none","box, check, circle, diamond, disc, hyphen, square","armenian","cjk-ideographic","ethiopic-numeric","georgian","hebrew","japanese-formal","japanese-informal","lower-armenian","lower-roman","simp-chinese-formal","simp-chinese-informal","syriac","tamil","trad-chinese-formal","trad-chinese-informal","upper-armenian","upper-roman","arabic-indic","binary","bengali","cambodian","decimal","decimal-leading-zero","devanagari","gujarati","gurmukhi","kannada","khmer","lao","lower-hexadecimal","malayalam","mongolian","myanmar","octal","oriya","persian","telugu","tibetan","thai","upper-hexadecimal","urdu","afar","amharic","amharic-abegede","cjk-earthly-branch","cjk-heavenly-stem","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","hangul","hangul-consonant","hiragana","hiragana-iroha","katakana","katakana-iroha","lower-alpha","lower-greek","lower-norwegian","lower-latin","oromo","sidama","somali","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","upper-alpha","upper-greek","upper-norwegian","upper-latin","asterisks","footnotes","circled-decimal","circled-lower-latin","circled-upper-latin","dotted-decimal","double-circled-decimal","filled-circled-decimal","parenthesised-decimal","parenthesised-lower-latin"]},tableLayout:{type:"presets",initial:"auto",presets:["auto","fixed","inherit"]},textDecoration:{type:"presets",presets:["none","underline","overline","line-through","blink","inherit"]},textIndent:{type:"length",presets:["inherit"]},textShadow:{shorthand:function(){var h,i,g;if(typeof arguments[0]==="object"){h=arguments}else{h=[arguments]}i=h.length;g=[];while(i){i-=1;g.push(f.join.call(h[i]," "))}return this.css("text-shadow",g.join(", "))},type:"shorthand",initial:"none",presets:["none"]},textTransform:{type:"presets",presets:["none","capitalize","uppercase","lowercase","inherit"]},unicodeBidi:{type:"presets",presets:["normal","embed","bidi-override","inherit"]},widows:{type:"number",presets:["inherit"]},orphans:{type:"number",presets:["inherit"]},captionSide:{type:"presets",presets:["top","bottom","inherit"]},borderBottomColor:{type:"color",presets:["transparent","inherit"]},borderTopColor:{type:"color",presets:["transparent","inherit"]},borderRightColor:{type:"color",presets:["transparent","inherit"]},borderLeftColor:{type:"color",presets:["transparent","inherit"]},outlineWidth:{type:"length",presets:["thin","medium","thick","inherit"]},outlineOffset:{type:"length",presets:["inherit"]},wordSpacing:{type:"length",presets:["baseline","sub","super","top","text-top","middle","bottom","text-bottom","inherit"]},whiteSpace:{type:"presets",presets:["normal","nowrap","pre","pre-line","pre-wrap","inherit"]},wordWrap:{type:"presets",presets:["normal","break-word","inherit"]},textRendering:{type:"presets",presets:["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]},cursor:{type:"generator",Generator:function(h,l){var j,i,g;j=this;try{f.testElement.style.cursor="text, default"}catch(k){}if(h(f.testElement)==="text"){f.testElement.style.cursor="nonexistantcursorname";if(f.testElement.style.cursor==="url('nonexistantcursorname')"){g=1;i=function(n){f.testElement.style.cursor=n;return f.testElement.style.cursor!=="url('"+n+"')"}}else{g=2;i=function(n){f.testElement.style.cursor=n+",default";return h(f.testElement)!=="default"}}}else{g=3;i=function(n){f.testElement.style.cursor="default";try{f.testElement.style.cursor=n}catch(o){}return h(f.testElement)!=="default"}}j.makePreset=function(n,p){if(typeof p==="string"){if(l===null){n[f.canonicalize("cursor-"+p)]=n.self}else{if(i(p)){n[f.canonicalize("cursor-"+p)]=new Function("this.node.style."+l+" = '"+p+"';return this;")}else{if(g===2){n[f.canonicalize("cursor-"+p)]=new Function("if (arguments.length > 0) { this.node.style."+l+" = 'url(\"' + arguments[0] + '\"),default'; } else { this.node.style."+l+" = 'default'; } return this;")}else{n[f.canonicalize("cursor-"+p)]=new Function("if (arguments.length > 0) { try { this.node.style."+l+" = 'default'; this.node.style."+l+" = 'url(\"' + arguments[0] + '\")'; } catch(e) {} } else { this.node.style."+l+" = 'default'; } return this;")}}}}else{if(l===null){n[f.canonicalize("cursor-"+p.name)]=n.self}else{for(var o=0;o<p.variants.length;o++){if(i(p.variants[o])){n[f.canonicalize("cursor-"+p.name)]=new Function("this.node.style."+l+" = '"+p.variants[o]+"';return this;");return}}if(g===2){n[f.canonicalize("cursor-"+p.name)]=new Function("if (arguments.length > 0) { this.node.style."+l+" = 'url(\"' + arguments[0] + '\"),default'; } else { this.node.style."+l+" = 'default'; } return this;")}else{n[f.canonicalize("cursor-"+p.name)]=new Function("if (arguments.length > 0) { try { this.node.style."+l+" = 'default'; this.node.style."+l+" = 'url(\"' + arguments[0] + '\")'; } catch(e) {} } else { this.node.style."+l+" = 'default'; } return this;")}}}};j.makeSetter=function(){if(l===null){return function(){return this}}return function(){for(var n=0;n<arguments.length;n++){if(i(arguments[n])){this.node.style[l]=arguments[n];return this}}this.node.style[l]="default";return this}}},presets:["wait",{name:"grab",variants:["grab","-moz-grab"]},{name:"grabbing",variants:["grabbing","-moz-grabbing"]},{name:"zoom-in",variants:["zoom-in","-moz-zoom-in"]},{name:"zoom-out",variants:["zoom-out","-moz-zoom-out"]},{name:"pointer",variants:["pointer","hand"]},"inherit","w-resize","progress","s-resize","se-resize","sw-resize","text","auto","e-resize","help","move","n-resize","context-menu","cell","vertical-text","alias","copy","no-drop","not-allowed","nesw-resize","nwse-resize","col-resize","row-resize","all-scroll","none","ne-resize","nw-resize","crosshair","default"]},navIndex:{type:"number",presets:["auto","inherit"]},navUp:{shorthand:function(g){return this.css("nav-up",g+" "+(arguments[1]||"current"))},type:"shorthand",presets:["auto","inherit"]},navDown:{shorthand:function(g){return this.css("nav-down",g+" "+(arguments[1]||"current"))},type:"shorthand",presets:["auto","inherit"]},navRight:{shorthand:function(g){return this.css("nav-right",g+" "+(arguments[1]||"current"))},type:"shorthand",presets:["auto","inherit"]},navLeft:{shorthand:function(g){return this.css("nav-left",g+" "+(arguments[1]||"current"))},type:"shorthand",presets:["auto","inherit"]},position:{type:"presets",presets:["fixed","absolute","static","relative","inherit"]},display:{type:"presets",presets:["inherit","run-in","list-item","inline-block","inline-table","table-row","table-row-group","table-column-group","table-footer-group","table-header-group","none","block","inline","table","table-caption","table-cell","table-column"]},overflow:{type:"presets",presets:["hidden","scroll","visible","auto","inherit"]},overflowX:{type:"presets",presets:["hidden","scroll","visible","auto","inherit"]},overflowY:{type:"presets",presets:["hidden","scroll","visible","auto","inherit"]},visibility:{type:"presets",presets:["visible","hidden","collapse","inherit"]},fontFamily:{type:"string",separator:", ",presets:["inherit"],initial:"inherit"},zIndex:{type:"integer",presets:["auto","inherit"]},icon:{type:"uri",separator:", ",presets:["auto","inherit"]},backgroundColor:{type:"color",presets:["transparent","inherit"]},color:{type:"color",presets:["inherit"]},textAlign:{type:"presets",presets:["left","center","right","justify","inherit"]},fontSize:{type:"length",presets:["auto","inherit","x-large","xx-large","smaller","larger","xx-small","x-small","small","medium","large"]},fontStretch:{type:"presets",initial:"normal",presets:["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]},margin:{shorthand:function(){var g;g=[];f.fillShorthandQuad(g,arguments);this.marginTop(g[0]);this.marginRight(g[1]);this.marginBottom(g[2]);this.marginLeft(g[3]);return this},type:"shorthand",presets:["auto","inherit"]},padding:{shorthand:function(){var g;g=[];f.fillShorthandQuad(g,arguments);this.paddingTop(g[0]);this.paddingRight(g[1]);this.paddingBottom(g[2]);this.paddingLeft(g[3]);return this},type:"shorthand",presets:["auto","inherit"]},maxWidth:{type:"length",presets:["none","inherit"]},maxHeight:{type:"length",presets:["none","inherit"]},minWidth:{type:"length",presets:["none","inherit"]},minHeight:{type:"length",presets:["none","inherit"]},width:{type:"length",presets:["auto","inherit"]},height:{type:"length",presets:["auto","inherit"]},left:{type:"length",presets:["auto","inherit"]},right:{type:"length",presets:["auto","inherit"]},top:{type:"length",presets:["auto","inherit"]},bottom:{type:"length",presets:["auto","inherit"]},paddingTop:{type:"length",presets:["inherit"]},paddingBottom:{type:"length",presets:["inherit"]},paddingLeft:{type:"length",presets:["inherit"]},paddingRight:{type:"length",presets:["inherit"]},borderTopWidth:{type:"length",presets:["inherit"]},borderBottomWidth:{type:"length",presets:["inherit"]},borderLeftWidth:{type:"length",presets:["inherit"]},borderRightWidth:{type:"length",presets:["inherit"]},marginTop:{type:"length",presets:["inherit"]},marginBottom:{type:"length",presets:["inherit"]},marginLeft:{type:"length",presets:["inherit"]},marginRight:{type:"length",presets:["inherit"]},lineHeight:{type:"length",presets:["normal","inherit"]},letterSpacing:{type:"length",presets:["normal","inherit"]}};e.prototype.css=function(g){g=f.canonicalize(g);if(arguments.length===1){return f.getters[g](this.node)}else{return f.setters[g].call(this,arguments[1])}};f.getters=null;f.setters=null;f.generateCSS=function(){var g;if(f.setters!==null){return}f.getters={};f.setters={};for(g in f.definitions){if(f.definitions.hasOwnProperty(g)){f.generateProperty(g,f.definitions[g])}}};f.propertyNameNativeToPublic={};f.propertyNamePublicToNative={};f.dummySetter=function(){return this};f.makeDummyGetter=function(g){return function(){return g}};f.makeGetter=function(g){return function(h){var i;i=f.compute(h,g);if(i===""){return h.style[g]}return i}};f.generatePreset=function(g,i,h){if(typeof h==="string"){e.prototype[f.canonicalize(g+"-"+h)]=function(){return i.call(this,h)}}else{e.prototype[f.canonicalize(g+"-"+h.name)]=function(){return h.setter.apply(this,arguments)}}};f.prefixes=["","Moz","Webkit","O","Ms","Khtml","Icab"];f.generateProperty=function(h,k){var o,g,j,l,i;l=f.prefixes.length;j=null;o=null;while(l){l-=1;if(typeof f.testElement.style[f.prefixes[l]+h]!=="undefined"){j=f.prefixes[l]+h;break}}if(j===null&&typeof k.additional!=="undefined"){i=k.additional;l=i.length;while(l){l-=1;if(typeof i[l]==="string"){if(typeof f.testElement.style[i[l]]!=="undefined"){j=i[l];break}}else{if((o=i[l]())!==null){g=o.getter;o=o.setter;break}}}}if(j===null){if(o===null){o=f.dummySetter;g=f.makeDummyGetter(k.initial)}}else{l=f.uncanonicalize(h);f.propertyNameNativeToPublic[f.propertyNamePublicToNative[l]=f.uncanonicalize(j)]=l;if(j==="float"){o=new Function("value","this.node.style['"+j+"'] = value; return this;")}else{o=new Function("value","this.node.style."+j+" = value; return this;")}g=f.makeGetter(j)}f.getters[h]=g;f.setters[h]=o;if(f["fill_"+(typeof f["fill_"+k.type]==="undefined"?"undefined":k.type)](e.prototype,h,o,k,g,j)===false){return}i=k.presets;l=i.length;while(l){l-=1;f.generatePreset(h,o,i[l])}};f.fill_length=function(h,g,j,i){if(typeof i.separator==="undefined"){h[g]=j;h[g+"Px"]=f.makeUnitedSetter(j,"px");h[g+"Em"]=f.makeUnitedSetter(j,"em")}else{h[g]=f.makeSeparatedSetter(j,i.separator);h[g+"Px"]=f.makeSeparatedUnitedSetter(j,i.separator,"px");h[g+"Em"]=f.makeSeparatedUnitedSetter(j,i.separator,"em")}};f.makeSeparatedSetter=function(h,g){return function(){return h.call(this,f.join.call(arguments,g))}};f.makeSeparatedUnitedSetter=function(i,h,g){return function(){return i.call(this,f.join.call(arguments,g+h)+g)}};f.makeUnitedSetter=function(h,g){return function(i){return h.call(this,i+g)}};f.fill_time=function(h,g,j,i){if(typeof i.separator==="undefined"){h[g]=j;h[g+"S"]=f.makeUnitedSetter(j,"s");h[g+"Ms"]=f.makeUnitedSetter(j,"ms")}else{h[g]=f.makeSeparatedSetter(j,i.separator);h[g+"S"]=f.makeSeparatedUnitedSetter(j,i.separator,"s");h[g+"Ms"]=f.makeSeparatedUnitedSetter(j,i.separator,"ms")}};f.fill_color=function(h,g,j,i){if(typeof i.separator==="undefined"){h[g]=j}else{h[g]=f.makeSeparatedSetter(j,i.separator)}};f.makeSeparatedPropertySetter=function(h,g){return function(){var j,k;k=arguments.length;string=f.propertyNamePublicToNative[string];for(j=1;j<arguments.length;j+=1){string+=g+f.propertyNamePublicToNative[arguments[j]]}return h.call(this,string)}};f.makePropertySetter=function(g){return function(h){return g.call(this,f.propertyNamePublicToNative[h])}};f.fill_property=function(h,g,j,i){if(typeof i.separator==="undefined"){h[g]=f.makePropertySetter(j)}else{h[g]=f.makeSeparatedPropertySetter(j,i.separator)}};f.fill_string=function(h,g,j,i){if(typeof i.separator==="undefined"){h[g]=f.makeSurroundedSetter(j,'"','"')}else{h[g]=f.makeSeparatedSurroundedSetter(j,'"','"',i.separator)}};f.fill_shorthand=function(h,g,j,i){h[g]=(new Function("shorthand","return function() { return shorthand.apply(this, arguments); };"))(i.shorthand)};f.makeToStringSetter=function(g){return function(h){return g.call(this,String(h))}};f.makeSurroundedSetter=function(g){return function(h){return g.call(this,left+h+right)}};f.makeSeparatedSurroundedSetter=function(j,i,g,h){return function(){return j.call(this,i+f.join.call(arguments,g+h+i)+g)}};f.fill_number=function(h,g,j,i){if(typeof i.separator==="undefined"){h[g]=f.makeToStringSetter(j)}else{h[g]=f.makeSeparatedSetter(j,i.separator)}};f.fill_integer=f.fill_number;f.fill_uri=function(h,g,j,i){if(typeof i.separator==="undefined"){h[g]=f.makeSurroundedSetter(j,'url("','")')}else{h[g]=f.makeSeparatedSurroundedSetter(j,'url("','")',i.separator)}};f.fill_generator=function(i,h,p,l,g,k){var j,o;j=new l.Generator(g,k);o=l.presets.length;while(o){o-=1;j.makePreset(i,l.presets[o])}i[h]=j.makeSetter();return false};f.fill_undefined=function(h,g,k,j,i){if(typeof j.separator==="undefined"){h[g]=k}else{h[g]=(new Function("setter","separator","join","return function(){return setter.call(this, join.call(arguments, separator));};"))(k,j.separator,f.join)}};if(window.Node&&window.Node.prototype){if(typeof window.Node.prototype.contains!=="undefined"){e.prototype.containsNode=function(g){return this.node.contains(g)}}else{if(typeof window.Node.prototype.compareDocumentPosition!=="undefined"){e.prototype.containsNode=function(g){return !!(this.node.compareDocumentPosition(g)&16)}}}}f.makeStringAttributeMemberFunction=function(g){return function(){var h;if(arguments.length>0){this.node.setAttribute(g,arguments[0]);return this}else{h=this.node.getAttribute(g);if(typeof h!=="string"||h===""){return null}return h}}};f.makeBooleanAttributeMemberFunction=function(g){return function(){if(arguments.length===0){return this.node.getAttribute(g)===g}else{if(arguments[0]){this.node.setAttribute(g,g)}else{this.node.removeAttribute(g)}return this}}};f.makeIntegerAttributeMemberFunction=function(g){return function(){var h;if(arguments.length>0){this.node.setAttribute(g,String(arguments[0]));return this}else{h=this.node.getAttribute(g);if(typeof h==="number"){return h}if(typeof h!=="string"||h===""){return null}return window.parseInt(h)||null}}};f.makeFunctionAttributeMemberFunction=function(g){return function(){this.node[g]();return this}};if(typeof e.prototype.containsNode==="undefined"){e.prototype.containsNode=function(g){}}e.prototype.containedBy=function(g){return g.containsNode(this.node)};e.prototype.containedByNode=function(g){return this.tag(g).containsNode(this.node)};e.prototype.contains=function(g){return this.containsNode(g.node)};e.prototype.childNode=function(g){return g<this.count()?this.node.childNodes.item(g):null};e.prototype.child=function(g){return this.tag(this.childNode(g))};e.prototype.parentNode=function(g){if(!this.node.parentNode||this.nodeName()==="body"||this.node.parentNode.nodeType!==1){return null}return this.node.parentNode};e.prototype.parent=function(){return this.parentNode()?this.tag(this.parentNode()):null};e.prototype.count=function(g){return this.node.childNodes.length};e.prototype.firstChildNode=function(){return this.childNode(0)};e.prototype.firstChild=function(){return this.tag(this.firstChildNode())};e.prototype.lastChildNode=function(){return this.childNode(this.count()-1)};e.prototype.lastChild=function(){return this.tag(this.lastChildNode())};e.prototype.removeChildren=function(){while(this.node.firstChild){this.node.removeChild(this.node.firstChild)}return this};e.prototype.remove=function(){if(this.parentNode()){this.parentNode().removeChild(this.node)}return this};e.prototype.removeChildNode=function(g){this.node.removeChild(g);return this};e.prototype.removeChild=function(g){return this.removeChildNode(g.node)};(function(){var g,h;g=["accessKey","acceptCharset","action","alt","charset","content","defaultValue","dir","enctype","encoding","href","hreflang","httpEquiv","id","lang","name","media","method","rel","rev","object","scheme","shape","src","target","title","type","value"];for(h=0;h<g.length;h++){e.prototype[g[h]]=f.makeStringAttributeMemberFunction(g[h])}g=["disabled","readOnly","noWrap","multiple","selected","defaultSelected","defaultChecked"];for(h=0;h<g.length;h++){e.prototype[g[h]]=f.makeStringAttributeMemberFunction(g[h])}g=["colSpan","rowSpan","size","length","selectedIndex","index","tabIndex","start"];for(h=0;h<g.length;h++){e.prototype[g[h]]=f.makeIntegerAttributeMemberFunction(g[h])}g=["click","focus","blur","select","submit","reset"];for(h=0;h<g.length;h++){e.prototype[g[h]]=f.makeFunctionAttributeMemberFunction(g[h])}})();e.prototype.of=f.makeStringAttributeMemberFunction("htmlFor");e.prototype.nodeName=function(){if(typeof this.node.nodeName==="undefined"){if(typeof this.node.tagName==="undefined"){return}return this.node.tagName.toLowerCase()}return this.node.nodeName.toLowerCase()};e.prototype.dimensions=function(){var i,h,g,j;if(this.node.offsetWidth>0){i={width:Math.max(0,Math.round(this.node.offsetWidth)),height:Math.max(0,Math.round(this.node.offsetHeight))}}else{if(this.nodeName()==="img"&&typeof this.node.width==="number"){i={width:Math.max(0,this.node.width+(parseInt(this.css("borderLeftWidth"))||0)+(parseInt(this.css("borderRightWidth"))||0)),height:Math.max(0,this.node.height+(parseInt(this.css("borderTopWidth"))||0)+(parseInt(this.css("borderBottomWidth"))||0))}}else{h=this.css("display");this.css("display","block");g=this.css("position");this.css("position","absolute");j=this.css("visibility");this.css("visibility","hidden");i={width:Math.max(0,Math.round(this.node.offsetWidth)),height:Math.max(0,Math.round(this.node.offsetHeight))};this.css("display",h);this.css("position",g);this.css("visibility",j)}}return i};e.prototype.prependToNode=function(g){g.insertBefore(this.node,g.firstChild);return this};e.prototype.prependTo=function(g){g.node.insertBefore(this.node,g.node.firstChild);return this};e.prototype.prependNode=function(g){this.node.insertBefore(g,this.node.firstChild);return this};e.prototype.prepend=function(g){this.node.insertBefore(g.node,this.node.firstChild);return this};e.prototype.appendToNode=function(g){g.appendChild(this.node);return this};e.prototype.appendNode=function(g){this.node.appendChild(g);return this};e.prototype.appendTo=function(g){g.node.appendChild(this.node);return this};e.prototype.append=function(g){this.node.appendChild(g.node);return this};e.prototype.replaceNode=function(g){return this.replace(this.tag(g))};e.prototype.replace=function(g){if(g.parentNode()&&g.node!==this.node){g.parentNode().replaceChild(this.node,g.node)}return this};e.prototype.replaceWithNode=function(g){return this.replaceWith(this.tag(g))};e.prototype.replaceWith=function(g){if(this.parentNode()&&this.node!==g.node){this.parentNode().replaceChild(g.node,this.node)}return this};e.prototype.set=function(g){for(var h in g){if(typeof this[h]==="function"){this[h](g[h])}}return this};e.prototype.get=function(h){var i,g;i=h.length;while(i){i-=1;g[h[i]]=this[h[i]]()}return g};(function(){var k,j,i,h,g,l;g="scrollLeft";l="scrollTop";h=null;i=function(n){if(n.pageXOffset||n.pageYOffset){h=n;l="pageYOffset";g="pageXOffset"}else{if(n.document.documentElement&&(n.document.documentElement.scrollLeft||n.document.documentElement.scrollTop)){h=n.document.documentElement}else{if(n.scrollLeft||n.scrollTop){h=n}else{if(n.document.body&&(n.document.body.scrollLeft||n.document.body.scrollTop)){h=n.document.body}}}}};k=function(){if(!h){i(this.tag.window)}if(arguments.length===0){return h?h[g]:0}else{if(h){this.tag.window.scrollTo(arguments[0],this.scrollTop())}return this}};j=function(){if(!h){i(this.tag.window)}if(arguments.length===0){return h?h[l]:0}else{if(h){this.tag.window.scrollTo(this.scrollLeft(),arguments[0])}return this}};e.prototype.scrollLeft=function(){if(this.node===this.tag.window||this.node===this.tag.window.document.body||this.node===this.tag.window.document){this.scrollLeft=k;this.scrollTop=j;return k.apply(this,arguments)}if(arguments.length===0){return this.node.scrollLeft||0}else{this.node.scrollLeft=arguments[0];return this}};e.prototype.scrollTop=function(){if(this.node===this.tag.window||this.node===this.tag.window.document.body||this.node===this.tag.window.document){this.scrollLeft=k;this.scrollTop=j;return j.apply(this,arguments)}if(arguments.length===0){return this.node.scrollTop||0}else{this.node.scrollTop=arguments[0];return this}}})();f.wrapEvent=function(g,h,i){var j;j={};j.stopPropagation=function(){if(i.stopPropagation){i.stopPropagation()}else{i.cancelBubble=true}};j.preventDefault=function(){if(i.preventDefault){i.preventDefault()}else{i.returnValue=false}};j.data=f.data[h]?f.data[h](i):null;if(i.target){j.target=g.tag((i.target.nodeType===3)?i.target.parentNode:i.target)}else{if(i.srcElement){j.target=g.tag(i.srcElement)}else{j.target=g}}return j};f.pushMouseWheelListener=function(h,j){var i,g;g=h.tag.window;if(h.nodeName()==="body"){i=function(k){k=k||g.event;return j({target:h,data:f.data.mousewheel(k),stopPropagation:function(){if(k.stopPropagation){k.stopPropagation()}else{k.cancelBubble=true}},preventDefault:function(){if(k.preventDefault){k.preventDefault()}else{k.returnValue=false}}})};if(typeof g.addEventListener!=="undefined"){if(typeof g.onmousewheel==="undefined"){g.addEventListener("DOMMouseScroll",i,false);return function(){g.removeEventListener("DOMMouseScroll",i)}}else{g.addEventListener("mousewheel",i,false);return function(){g.removeEventListener("mousewheel",i)}}}else{if(typeof g.document.attachEvent!=="undefined"){g.document.attachEvent("onmousewheel",i);return function(){g.document.detachEvent("onmousewheel",i)}}else{if(typeof g.document.onmousewheel!=="undefined"){return f.pushOldSchoolListener(h.tag(g),"onmousewheel",i)}else{return function(){}}}}}return f.pushListener(h,"mousewheel",j)};if(typeof window.document.addEventListener!=="undefined"){f.pushListener=function(h,i,j){var g;if(i==="load"){g=function(k){if(g.lastSrc!==h.src()){g.lastSrc=h.src();return j.call(h,f.wrapEvent(h,i,k))}};g.lastSrc=null}else{g=function(k){return j.call(h,f.wrapEvent(h,i,k))}}h.node.addEventListener(i,g,false);return function(){h.node.removeEventListener(i,g,false)}}}else{if(typeof window.document.attachEvent!=="undefined"){f.pushListener=function(h,i,j){var g;if(i==="load"){g=function(k){if(g.lastSrc!==h.src()){g.lastSrc=h.src();return j.call(h,f.wrapEvent(h,i,k||h.tag.window.event))}};g.lastSrc=null}else{g=function(k){return j.call(h,f.wrapEvent(h,i,k||h.tag.window.event))}}h.node.attachEvent("on"+i,g);return function(){h.node.detachEvent("on"+i,g)}}}else{f.pushListener=function(h,i,j){var g;if(i==="load"){g=function(k){if(g.lastSrc!==h.src()){g.lastSrc=h.src();return j.call(h,f.wrapEvent(h,i,k))}};g.lastSrc=null}else{g=function(k){return j.call(h,f.wrapEvent(h,i,k))}}return f.pushOldSchoolListener(h,"on"+i,g)}}}f.data={};f.data.keypress=function(g){if(g.keyCode){return g.keyCode}if(g.which){return g.which}return null};f.data.mousewheel=function(g){if(g.wheelDelta){return g.wheelDelta<0}else{if(g.detail){return(-g.detail)<0}}return null};f.data.keydown=f.data.keypress;f.data.keyup=f.data.keypress;f.data.click=function(g){if(g.which){if(g.which===1){return"left"}if(g.which===2){return"middle"}if(g.which===3){return"right"}}else{if(g.button){if(g.srcElement){if(g.button===1){return"left"}if(g.button===2){return"right"}if(g.button===3){return"leftright"}if(g.button===4){return"middle"}if(g.button===5){return"leftmiddle"}if(g.button===6){return"rightmiddle"}if(g.button===7){return"leftrightmiddle"}}else{if(g.button===0){return"left"}if(g.button===1){return"middle"}if(g.button===2){return"right"}}}}return null};f.data.mousedown=f.data.click;f.data.mouseup=f.data.click;f.killingListener=function(g){g.preventDefault();g.stopPropagation();return false};f.resolveListener=function(g){if(g.length===1||!g[1]){return f.killingListener}return g[1]};f.pushOldSchoolListener=function(g,k,j){var i,h;if(typeof h[k]==="undefined"){return function(){}}h=g.node;i=h[k]||function(){};if(typeof i.listeners==="undefined"){h[k]=function(n){var l;l=true;n=n||g.tag.window.event;if(i(n)===false){l=false}h[k].listeners.foreach(function(o){if(o(n)===false){l=false}});return l};h[k].listeners=new f.List()}return h[k].listeners.push(j)};e.prototype.pushListener=function(g){if(g==="mousewheel"){return f.pushMouseWheelListener(this,f.resolveListener(arguments))}else{return f.pushListener(this,g,f.resolveListener(arguments))}};e.prototype.attachListener=function(g){if(g==="mousewheel"){f.pushMouseWheelListener(this,f.resolveListener(arguments))}else{f.pushListener(this,g,f.resolveListener(arguments))}return this};e.prototype.on=e.prototype.attachListener;e.prototype.text=function(g){this.removeChildren();this.append(this.tag.text(g));return this};e.prototype.html=function(g){this.node.innerHTML=g;return this};e.prototype.replaceContextMenu=function(g){return this.attachListener("mousedown",function(h){if(h.data==="right"){h.preventDefault();g(h)}}).attachListener("contextmenu",function(h){h.preventDefault()})};e.prototype.disableTextSelection=function(){return this.attachListener("mousedown").attachListener("drop").attachListener("drag").attachListener("dragstart").attachListener("draggesture").attachListener("dragover").attachListener("dragexit").attachListener("dragdrop").attachListener("selectstart").attachListener("selectend").attachListener("selectionstart").attachListener("selectionend")};
/*
 * continuously porting from:
 *
 * jQuery JavaScript Library
 * http://jquery.com/
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 * Date: Mon Jan 25 19:43:33 2010 -0500
 */
f.offsetInitialize=function(p){f.offsetInitialize=f.doNothing;var n=window.document.body,g=p.element("div"),i,h,o,j,k=parseFloat(f.compute(n,"marginTop"))||0,l="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";g.set({position:"absolute",topPx:0,leftPx:0,marginPx:0,borderPx:0,widthPx:1,heightPx:1,visibility:"hidden"});g.html(l);n.insertBefore(g.node,n.firstChild);i=g.firstChildNode();h=i.firstChild;j=i.nextSibling.firstChild.firstChild;f.doesNotAddBorder=(h.offsetTop!==5);f.doesAddBorderForTableAndCells=(j.offsetTop===5);h.style.position="fixed";h.style.top="20px";f.supportsFixedPosition=(h.offsetTop===20||h.offsetTop===15);h.style.position=h.style.top="";i.style.overflow="hidden",i.style.position="relative";f.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);f.doesNotIncludeMarginInBodyOffset=(n.offsetTop!==k);n.removeChild(g.node);n=g=i=o=j=null;h=document.createElement("div");h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);f.supportsBoxModel=h.offsetWidth===2;document.body.removeChild(h).style.display="none";h=null};f.bodyOffset=function(h,g){var j=h.offsetTop,i=h.offsetLeft;f.offsetInitialize(g);if(f.doesNotIncludeMarginInBodyOffset){j+=parseFloat(f.compute(h,"marginTop"))||0;i+=parseFloat(f.compute(h,"marginLeft"))||0}return{top:j,left:i}};if(typeof document.documentElement.getBoundingClientRect!=="undefined"){e.prototype.location=function(){var i;i=this.node;if(i===this.tag.body.node){return f.bodyOffset(i,this.tag)}var k=i.getBoundingClientRect(),p=this.tag.window.document,l=p.body,g=p.documentElement,j=g.clientTop||l.clientTop||0,n=g.clientLeft||l.clientLeft||0,o=k.top+(self.pageYOffset||f.supportsBoxModel&&g.scrollTop||l.scrollTop)-j,h=k.left+(self.pageXOffset||f.supportsBoxModel&&g.scrollLeft||l.scrollLeft)-n;return{top:o,left:h}}}else{f.getLocationRegExp1=new window.RegExp("^t(able|d|h)$","i");e.prototype.location=function(){var l;l=this.node;if(l===this.tag.body.node){return f.bodyOffset(l,this.tag)}f.offsetInitialize(this.tag);var i=l.offsetParent,h=l,r=this.tag.window.document,p,j=r.documentElement,n=r.body,o=r.defaultView,g=o?o.getComputedStyle(l,null):l.currentStyle,q=l.offsetTop,k=l.offsetLeft;while((l=l.parentNode)&&l!==n&&l!==j){if(f.supportsFixedPosition&&g.position==="fixed"){break}p=o?o.getComputedStyle(l,null):l.currentStyle;q-=l.scrollTop;k-=l.scrollLeft;if(l===i){q+=l.offsetTop;k+=l.offsetLeft;if(f.doesNotAddBorder&&!(f.doesAddBorderForTableAndCells&&f.getLocationRegExp1.test(l.nodeName))){q+=parseFloat(p.borderTopWidth)||0;k+=parseFloat(p.borderLeftWidth)||0}h=i,i=l.offsetParent}if(f.subtractsBorderForOverflowNotVisible&&p.overflow!=="visible"){q+=parseFloat(p.borderTopWidth)||0;k+=parseFloat(p.borderLeftWidth)||0}g=p}if(g.position==="relative"||g.position==="static"){q+=n.offsetTop;k+=n.offsetLeft}if(f.supportsFixedPosition&&g.position==="fixed"){q+=Math.max(j.scrollTop,n.scrollTop);k+=Math.max(j.scrollLeft,n.scrollLeft)}return{top:q,left:k}}}f.getLocationRegExp4=new window.RegExp("^body|html$","i");f.offsetParent=function(g){var h=g.node.offsetParent||g.tag.body.node;while(h&&(!f.getLocationRegExp4.test(h.nodeName)&&(h.style.position==="static"||f.compute(h,"position")==="static"))){h=h.offsetParent}return h};e.prototype.offset=function(){var i=this.node,h=f.offsetParent(this),j=this.location(),g=f.getLocationRegExp4.test(h.nodeName)?{top:0,left:0}:this.tag(h).location();j.top-=parseFloat(f.compute(i,"marginTop"))||0;j.left-=parseFloat(f.compute(i,"marginLeft"))||0;g.top+=parseFloat(f.compute(h,"borderTopWidth"))||0;g.left+=parseFloat(f.compute(h,"borderLeftWidth"))||0;return{top:j.top-g.top,left:j.left-g.left}};e.prototype.className=function(){if(arguments.length===0){return this.node.className}else{this.node.className=arguments[0];return this}};e.prototype.classNames=function(){return this.node.className.split(" ")};if(typeof f.testElement.classList==="undefined"){e.prototype.hasClassName=function(g){return(" "+this.node.className+" ").indexOf(" "+g+" ")>=0};e.prototype.toggleClassName=function(h){var g;g=(" "+this.node.className+" ").indexOf(" "+h+" ");if(g<0){this.node.className=this.node.className.length===0?h:this.node.className+" "+h}else{if(g===0){this.node.className=this.node.className.substr(h.length+1)}else{this.node.className=this.node.className.substr(0,g-1)+this.node.className.substr(g+h.length)}}return this};e.prototype.addClassName=function(g){this.node.className=this.node.className.length===0?g:this.node.className+" "+g;return this};e.prototype.removeClassName=function(h){var g;g=(" "+this.node.className+" ").indexOf(" "+h+" ");if(g===0){this.node.className=this.node.className.substr(h.length+1)}else{this.node.className=this.node.className.substr(0,g-1)+this.node.className.substr(g+h.length)}return this}}else{e.prototype.hasClassName=function(g){return this.node.classList.contains(g)};e.prototype.toggleClassName=function(g){this.node.classList.toggle(g);return this};e.prototype.addClassName=function(g){this.node.classList.add(g);return this};e.prototype.removeClassName=function(g){this.node.classList.remove(g);return this}}d=(function(h){var g,i;g=function(j){return new i(j)};g.window=h;g.tag=d;i=function(j){this.node=j};i.prototype=new e();i.prototype.tag=g;g.text=function(j){return new i(h.document.createTextNode(j))};f.elements={a:true,base:true,button:true,div:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,img:true,input:true,label:true,legend:true,li:true,link:true,menu:true,meta:true,ol:true,ul:true,option:true,optgroup:true,p:true,pre:true,quote:true,script:true,select:true,caption:true,table:true,tbody:true,thead:true,tr:true,td:true,th:true,textarea:true};g.element=function(j){if(typeof f.elements[j]==="undefined"){throw"element type not supported: "+j}return new i(h.document.createElement(j))};g.onready=(function(){var l,o,k,j,n;j=[];n=false;k=function(){if(!n){n=true;for(var p=0;p<j.length;p+=1){j[p]()}}};if(typeof h.document.addEventListener!=="undefined"){h.document.addEventListener("DOMContentLoaded",k,false)}else{h.document.write('<script id="funjes-onready" defer="defer" src="//:"><\/script>');o=h.document.getElementById("funjes-onready");o.onreadystatechange=function(){if(this.readyState==="complete"){k()}}}l=function(){if(h.document.readyState==="complete"){k()}else{if(typeof h.document.readyState!=="undefined"){h.setTimeout(l,10)}}};l();o=h.onload||function(){};h.onload=function(){k();o()};h.document.onreadystatechange=function(){if(this.readyState==="complete"){k()}};return function(p){if(n){p()}else{j.push(p)}}})();g.onready(function(){var k,j,l;if(h.document.body){g.body=g(h.document.body)}else{g.body=null;if(h.document.documentElement){j=g(h.document.documentElement)}else{j=typeof h.document.getElementsByTagName==="undefined"?h.document.all:h.document.getElementsByTagName("html");if(j){l=j[k];for(k=0;l;k+=1){l=g(l);if(l.nodeName()==="head"||l.nodeName()==="body"){if(l.parent()!==null){j=l.parent();break}}else{if(l.name()==="html"){j=l;break}}l=j[k]}}}if(j){k=0;while(j.child(k)){k+=1;if(j.child(k).name()==="body"){g.body=j.child(k);break}}}}if(g.body!==null){f.testElement.style.position="absolute";g.body.appendNode(f.testElement);g.body.dimensions=function(){return{width:Math.max(h.document.documentElement.clientWidth,h.document.body.scrollWidth,h.document.documentElement.scrollWidth,h.document.body.offsetWidth,h.document.documentElement.offsetWidth),height:Math.max(h.document.documentElement.clientHeight,h.document.body.scrollHeight,h.document.documentElement.scrollHeight,h.document.body.offsetHeight,h.document.documentElement.offsetHeight)}};f.generateCSS()}});return g});return d})()(window);c.Iris=(function(){var g,d,f,e;f=function(){};e=function(h,i){this.dependency=h,this.keys=(typeof i==="string")?[i]:i};if(typeof Array.prototype.indexOf==="undefined"){e.prototype.notExcluded=function(h){var j;j=h.length;while(j){j-=1;if(h[j]===this.dependency){return false}}return true}}else{e.prototype.notExcluded=function(h){return h.indexOf(this.dependency)===-1}}d=function(k,i){for(var h in k){if(k.hasOwnProperty(h)){i(k[h],h)}}};g=function(){};g.prototype.first=null;g.prototype.last=null;g.prototype.push=function(j){var h;h=this;j={n:null,p:h.last,o:j};if(h.first===null){h.last=h.first=j}else{h.last.n=j;h.last=j}return function(){if(j===null){return}if(j===h.first){if(j===h.last){h.first=h.last=null}else{h.first=j.n;h.first.p=null;if(h.first.n===null){h.last=h.first}}}else{if(j===h.last){h.last=j.p;h.last.n=null;if(h.last.p===null){h.first=h.last}}else{j.p.n=j.n;j.n.p=j.p}}j=null}};g.prototype.announceAllIndexValues=function(o){var l,h,k,n;l=this.first;while(l){k=[];for(h=0;n=o[h];h++){k.push(l.o[0]+n)}l.o[1].announce(k);l=l.n}};g.prototype.announceAllPropertyNames=function(n){var l,h,k;l=this.first;while(l){k=[];for(h in n){if(n.hasOwnProperty(h)){k.push(l.o[0]+h)}}l.o[1].announce(k);l=l.n}};return function(k){var r,p,l,o,t,n,i,h,q,s,j;r=this;r.defaults={};p={};o={};n={};l=new g();t=new g();i={};h={};q=function(w){var u,v,y;u=p[w[0]];for(v=1;y=w[v];v++){if(u===null){return null}u=u["get"+y.charAt(0).toUpperCase()+y.substr(1)]()}return u};j=function(D,C,u){var y,A,w,z,E,B,G,F,v;w=0;A=0;z=[];E=[];B=[];G=[];F=[];v=[];while(A<D.length&&w<C.length){if(u(D[A],C[w])){v.push({at:A,value:D[A]})}else{z[A]=D[A];B[w]=C[w]}A++;w++}while(A<D.length){for(y=0;y<B.length;y++){if(u(B[y],D[A])){break}}if(y===B.length){z[A]=D[A]}else{delete B[y];F.push({from:A,to:y,value:D[A]})}A++}while(w<C.length){for(y=0;y<z.length;y++){if(u(z[y],C[w])){break}}if(y===z.length){B[w]=C[w]}else{delete z[y];F.push({from:y,to:w,value:C[w]})}w++}for(y=0;y<z.length;y++){if(typeof z[y]!=="undefined"){E.push({from:y,value:z[y]})}}for(y=0;y<B.length;y++){if(typeof B[y]!=="undefined"){G.push({to:y,value:B[y]})}}return{rem:E,add:G,mov:F,old:v,value:C}};s=function(w,u){if(p[w]!==u){p[w]=u;if(i[w]){if(u===null){if(n[w]){n[w]();delete n[w]}}else{if(n[w]){n[w]()}n[w]=u.relay(w+".",r)}}return true}return false};r.properties=function(){var u;u=[];d(r.defaults,function(v,w){u.push(w)});return u};r.require=function(v){var u;d(v,function(w,z){if(typeof p[z]==="undefined"){r.defaults[z]=w;p[z]=w;var y=z.charAt(0).toUpperCase()+z.substr(1);r["set"+y]=function(A){var C,B;if(A===p[z]){return false}if(i[z]){B=[z];y=z+".";d(o,function(I,H){if(H.substr(0,y.length)===y){var E,D,G,F;I=H.split(".");E=p[z];D=A;for(G=1;F=I[G];G++){if(E===null||D===null){return}F="get"+F.charAt(0).toUpperCase()+F.substr(1);E=E[F]();D=D[F]()}if(E!==D){B.push(H)}}});r.put(A,z);r.announce(B)}else{if(h[z]){C=j(p[z]||[],A,h[z]);if(C.add.length>0||C.rem.length>0||C.mov.length>0){r.put(A,z);A=C;C={};C[z]=A;r.announce([z],null,C)}}else{r.put(A,z);r.announce([z])}}return true};r["get"+y]=function(){return p[z]}}});if(typeof arguments[1]!=="undefined"){for(v=0;u=arguments[1][v];v++){i[u]=true;if(p[u]!==null){n[u]=p[u].relay(u+".",r)}}}if(typeof arguments[2]!=="undefined"){h=arguments[2]}};r.tier=function(y,w){var u,v;v=function(){var z;u.enable=f;z=r.tie(y,w);u.disable=function(){u.enable=v;u.disable=f;z()}};u={enable:v,disable:f,getEnabled:function(){return u.enable===f},setEnabled:function(z){if(z){u.enable()}else{u.disable()}return u}};u.enable();return u};r.tie=function(E,u){var z,w,D,B,C,A,v,F,y;B=[];w=new e(u,E);E=[];D=[];for(z=0;C=w.keys[z];z++){if(h[C]){D.push("changes['"+C+"']")}else{if(C.indexOf(".")<0){D.push("store['"+C+"']")}else{v="self";A=C.split(".");for(y=0;F=A[y];y++){E.push(v+" !== null");v+=".get"+F.charAt(0).toUpperCase()+F.substr(1)+"()"}D.push(v)}}}w.fire=(new Function("dependency","store","self","return function(changes) {if ("+(E.length>0?E.join(" && "):"true")+") { dependency.apply(null, ["+D.join(",")+"]); } }"))(u,p,r);E={};for(z=0;C=w.keys[z];z++){if(typeof o[C]==="undefined"){B.push((o[C]=new g()).push(w.fire))}else{B.push(o[C].push(w.fire))}if(typeof h[C]!=="undefined"){E[C]=j(p[C],p[C],h[C])}}B.push(l.push(w));w.fire(E);return function(){var H,G;for(H=0;G=B[H];H++){G()}}};r.get=function(){var u,v;v={};for(u in p){v[u]=p[u]}return v};r.set=function(){var y,w,v,u;w=[];v={};y={};u={};d(arguments[0],function(B,D){var C,A,z;if(D.indexOf(".")<0){C={};if(i[D]){A=D+".";d(o,function(E,F){if(F.substr(0,A.length)===A){C[F]=q(F.split("."))}})}A=p[D];if(s(D,B)){if(h[D]){if(!A){w.push(D);u[D]=j([],B)}else{A=j(A,B,h[D]);if(A.add.length!==0||A.old.length!==B.length){w.push(D);u[D]=A}}}else{w.push(D)}if(i[D]){d(C,function(F,E){if(q(E)!==F){w.push(E)}})}}}else{C=D.split(".");z=C[C.length-1];C.pop();A=C.join(".");if(typeof y[A]==="undefined"){C=q(C);if(C===null){return}y[A]=C}else{C=y[A]}if(C.put(B,z)){if(typeof v[A]==="undefined"){v[A]=[z]}else{v[A].push(z)}}}});if(w.length>0){r.announce(w,null,u)}d(v,function(A,z){if(A.length>0){y[z].announce(A)}})};r.announce=function(F,E,G){var B,y,C,v,u,A,w,z,D;v=F.length;G=G||[];for(C=0;C<v;C+=1){u=F[C];if(h[u]&&!G[u]){G[u]=j(p[u],p[u],h[u])}}B=l.first;while(B!==null){y=B.o;v=F.length;for(C=0;C<v;C+=1){u=F[C];D=false;w=y.keys.length;for(A=0;A<w;A+=1){z=y.keys[A]+".";if(z.substr(0,u.length)===u||u.substr(0,z.length)===z){if(!E||y.notExcluded(E)){y.fire(G);D=true;break}}}if(D){break}}B=B.n}t.announceAllIndexValues(F)};r.put=function(){var y,w,u;if(typeof arguments[1]==="string"){w=arguments[0];y=arguments[1];if(y.indexOf(".")<0){return s(y,w)}else{y=y.split(".");u=y[y.length-1];y.pop();y=q(y);if(y===null){return false}return y.put(w,u)}}else{w=arguments[0];u=[];for(y in w){if(w.hasOwnProperty(y)){if(r.put(w[y],y)){u.push(y)}}}return u}};r.relay=function(v,u){return t.push([v,u])};r.require(k,arguments[1],arguments[2])}})();c.funjes.part0=function(e,f,d){d.when(["ImageLoader","LightboxView","LightboxMinimalFrameSizeStrategy"],function(){f.Lightbox=(function(j,o,l,k){var h,g,i,n;g=this;n=new f.ImageLoader(o,l);i=false;g.setSlideshow=function(p){h.setSlideshow(p)};g.goToNext=function(){g.goTo(n.getNext())};g.goToPrevious=function(){g.goTo(n.getPrevious())};g.goTo=function(p){if(n.getCurrent()===p){return}if(!i){g.open(p);return}n.setCurrent(p)};g.close=function(){if(i){i=false;h.close()}};g.open=function(){if(!i){i=true;h.open(typeof arguments[0]==="number"?arguments[0]:0)}};g.isOpen=function(){return i};h=new f.LightboxView(n,typeof arguments[4]==="undefined"?f.LightboxMinimalFrameSizeStrategy:arguments[4],k,j);h.start(g)});d.add("Lightbox")});d.when(["tag","next","previous","doNothing"],function(){f.ImageLoader=(function(){var i,g,h;i=function(j){if(j.type==="imageFromURL"){return f.tag.element("img")}if(j.type==="node"){return f.tag(j.data)}if(j.type==="tag"){return j.data}};g=function(j){if(typeof j==="string"){return{type:"imageFromURL",data:j}}if(typeof j.type==="undefined"){return{type:"node",data:j}}return j};h=function(p,v){var o,l,k,s,r,u,q,j,t;t=0;l=p.length;p=p.slice(0);s=[];r=[];u=this;for(o=0;o<l;o++){s[o]=false;p[o]=g(p[o]);r[o]=i(p[o])}q=function(n,A,z,y){var w;w=function(){u.onimagesizechange(n,v[n].a,v[n].b);s[n]=true;if(r[n]===r[k]){u.oncurrentloadend();u.oncurrentchangeend()}if(y===t){z()}};if(A.type==="imageFromURL"){r[n].attachListener("load",w).src(A.data)}else{if(A.type==="node"||A.type==="tag"){r[n].displayBlock();w()}}};j=function(z,B,y,A){var w,n;n=0;do{if(y){w=B;B=f.next(l,B)}else{w=z;z=f.previous(l,z)}y=!y}while(s[w]&&n++<l);if(!s[w]){q(w,p[w],function(){j(z,B,y,A)},A)}};u.oncurrentloadbegin=f.doNothing;u.oncurrentloadend=f.doNothing;u.oncurrentchangebegin=f.doNothing;u.oncurrentchangeend=f.doNothing;u.getTag=function(n){if(n===null){return null}return r[n]};u.getSize=function(){return l};u.isLoaded=function(n){return s[n]};u.getCurrent=function(){return typeof k==="undefined"?null:k};u.setCurrent=function(n){k=n;u.resetCurrent()};u.resetCurrent=function(){if(typeof k==="undefined"){return}u.oncurrentchangebegin();j(k,u.getNext(),false,++t);if(s[k]){u.oncurrentchangeend()}else{u.oncurrentloadbegin()}}};h.prototype.getNext=function(){return f.next(this.getSize(),this.getCurrent())};h.prototype.getPrevious=function(){return f.previous(this.getSize(),this.getCurrent())};h.prototype.getCurrentTag=function(){return this.getTag(this.getCurrent())};return h})();d.add("ImageLoader")});d.when([],function(){f.tag=e.tag;d.add("tag")});d.when([],function(){f.next=(function(h,g){return(g+1)%h});d.add("next")});d.when([],function(){f.previous=(function(h,g){return g>0?(g-1):(h-1)});d.add("previous")});d.when([],function(){f.doNothing=(function(){});d.add("doNothing")});d.when(["clearTimeout","tag","merge","setTimeout","ButtonComponent","extend","Delay","StringMap","doNothing","Scrollbar","animate"],function(){f.LightboxView=(function(F,y,X,K){var Q,v,B,A,k,S,j,o,p,l,G,P,C,M,n,q,V,N,i,z,J,R,h,L,O,u,Y,T,g,D,t,W,r,H,w,E,I,U;n=this;V={width:f.window.getInnerWidth(),height:f.window.getInnerHeight()};N={left:f.window.getScrollLeft(),top:f.window.getScrollTop()};Y=function(){if(B){v()}g.leftPx((V.width-G.getWidth())/2+N.left).topPx((V.height-G.getHeight())/2+N.top)};if(typeof K.frameOverflow==="undefined"){K.frameOverflow="hidden"}g=f.tag.element("div").displayBlock().positionAbsolute().backgroundColor("#ffffff").zIndex(10001).overflow(K.frameOverflow);p=f.doNothing;if(typeof K.scrollbar==="undefined"){K.scrollbar=true}if(typeof K.curtainOpenDuration==="undefined"){K.curtainOpenDuration=100}if(typeof K.curtainCloseDuration==="undefined"){K.curtainCloseDuration=100}if(typeof K.imageOpenDuration==="undefined"){K.imageOpenDuration=200}if(typeof K.frameOpenDuration==="undefined"){K.frameOpenDuration=100}if(typeof K.controls==="undefined"){K.controls=true}if(typeof K.imageHorizontalAlign==="undefined"){K.imageHorizontalAlign="center"}if(!K.controls){K.scrollbar=false;K.controlsAnimation=false}if(K.scrollbar){T=new f.Scrollbar();T.setOrientation("horizontal");T.setInnerWidth(1000);T.setOuterWidth(100);T.getTag().positionAbsolute().zIndex(10002);i=new f.Delay();i.setTime(75)}P=new f.StringMap();G=new y(P);if(K.controls){S={from:{},to:{},duration:200,funktion:f.animate.squareFunktion,onstart:function(){this.from.button=G.getHeight();this.to.button=this.from.button-q.buttonBottom;if(K.scrollbar){this.from.scrollbar=this.from.button;this.to.scrollbar=this.from.button-q.scrollbarBottom;T.getTag().appendTo(g)}g.append(h.getFrame().getTag()).append(L.getFrame().getTag()).append(t.getFrame().getTag()).append(O.getFrame().getTag())},onprogress:function(s){if(K.scrollbar){T.getTag().topPx(s.scrollbar)}h.getFrame().getTag().topPx(s.button);L.getFrame().getTag().topPx(s.button);O.getFrame().getTag().topPx(s.button);t.getFrame().getTag().topPx(s.button)},onfinish:function(){this.onstart();this.onprogress(this.to)}}}if(K.controlsAnimation){o={from:{},to:{},duration:200,funktion:f.animate.squareFunktion,onstart:function(s){if(K.scrollbar){this.to.scrollbar=G.getHeight();this.from.scrollbar=this.to.button-q.scrollbarBottom}this.to.button=G.getHeight();this.from.button=this.to.button-q.buttonBottom},onprogress:function(s){if(K.scrollbar){T.getTag().topPx(s.scrollbar)}h.getFrame().getTag().topPx(s.button);L.getFrame().getTag().topPx(s.button);O.getFrame().getTag().topPx(s.button);t.getFrame().getTag().topPx(s.button)},onfinish:function(s){if(K.scrollbar){T.getTag().remove()}h.remove();L.remove();t.remove();O.remove()}}}C=null;q={};q.buttonWidth=K.buttonWidth;q.buttonHeight=K.buttonHeight;q.buttonMargin=K.buttonMargin;q.buttonBottom=K.buttonBottom;if(K.scrollbar){q.scrollbarBottom=K.scrollbarBottom}q.slideshowButtonWidth=K.slideshowButtonWidth;q.frameMinWidth=K.frameMinWidth;q.imageMargin=K.imageMargin;q.imageTop=q.imageMargin;if(K.controls){q.nextRight=q.buttonWidth+q.buttonMargin;q.previousRight=q.buttonWidth+q.buttonMargin+q.nextRight;q.closeLeft=q.buttonMargin;q.slideshowLeft=q.closeLeft+q.buttonWidth+q.buttonMargin}if(K.scrollbar){q.notForScrollbarWidth=q.buttonMargin+q.buttonWidth+q.buttonMargin+q.slideshowButtonWidth+q.buttonMargin+q.buttonMargin+q.buttonWidth+q.buttonMargin+q.buttonWidth+q.buttonMargin;q.scrollbarLeft=q.buttonMargin+q.buttonWidth+q.buttonMargin+q.slideshowButtonWidth+q.buttonMargin}if(K.controls){q.notForImageHeight=q.buttonMargin+q.buttonHeight+q.buttonMargin+q.imageMargin;q.notForImageWidth=q.imageMargin+q.imageMargin}else{q.notForImageHeight=q.imageMargin*2;q.notForImageWidth=q.notForImageHeight}P.set(0,{width:X.dimensions[0]+q.notForImageWidth,height:X.dimensions[1]+q.notForImageHeight});W=false;z={busy:false,abortImageOpenAnimation:f.doNothing,image:f.tag.element("img"),init:function(){this.image.src(X.src).positionAbsolute().widthPx(X.dimensions[0]).heightPx(X.dimensions[1])},begin:function(){if(!this.busy){this.busy=true;g.append(this.image)}},end:function(){if(this.busy){this.busy=false;this.image.remove()}}};if(K.controls){l={label:K.closeLabel,onBackgroundColor:K.onBackgroundColor,offBackgroundColor:K.offBackgroundColor,onForegroundColor:K.onForegroundColor,offForegroundColor:K.offForegroundColor,klass:K.buttonClass};O=new f.ButtonComponent(l);O.getFrame().setRadius(K.roundRadius);O.getFrame().getTag().disableTextSelection().positionAbsolute().widthPx(K.buttonWidth).heightPx(K.buttonHeight);O.getFrame().getInner().fontSizePx(K.buttonHeight-(K.roundRadius*2)).lineHeightPx(K.buttonHeight-(K.roundRadius*2));t=new f.ButtonComponent(f.merge(l,{label:K.slideshowLabel,toggle:true}));t.getFrame().setRadius(K.roundRadius);t.getFrame().getTag().disableTextSelection().positionAbsolute().widthPx(K.buttonWidth).heightPx(K.buttonHeight);t.getFrame().getInner().fontSizePx(K.buttonHeight-(K.roundRadius*2)).lineHeightPx(K.buttonHeight-(K.roundRadius*2));r=function(){if(W){U.goToNext();f.setTimeout(r,K.slideshowTime)}};H=function(){if(W){f.clearTimeout(W);W=false;return true}return false};t.tie("pushed",function(s){if(Q){return}if(s){if(!W){W=f.setTimeout(r,K.slideshowTime)}}else{H()}});L=new f.ButtonComponent(f.merge(l,{label:K.previousLabel}));L.getFrame().setRadius(K.roundRadius);L.getFrame().getTag().disableTextSelection().positionAbsolute().widthPx(K.buttonWidth).heightPx(K.buttonHeight);L.getFrame().getInner().fontSizePx(K.buttonHeight-(K.roundRadius*2)).lineHeightPx(K.buttonHeight-(K.roundRadius*2));h=new f.ButtonComponent(f.merge(l,{label:K.nextLabel}));h.getFrame().setRadius(K.roundRadius);h.getFrame().getTag().disableTextSelection().positionAbsolute().widthPx(K.buttonWidth).heightPx(K.buttonHeight);h.getFrame().getInner().fontSizePx(K.buttonHeight-(K.roundRadius*2)).lineHeightPx(K.buttonHeight-(K.roundRadius*2))}z.init();R={from:{opacity:0},to:{opacity:0.8},duration:K.curtainOpenDuration,funktion:f.animate.parabolicFunktion,onstart:function(s){A=true;w.opacity(s.opacity).appendTo(f.tag.body)},onprogress:function(s){w.opacity(s.opacity)},onfinish:function(s){A=false;w.opacity(s.opacity);g.appendTo(f.tag.body);f.animate(D)}};J={from:{opacity:0.8},to:{opacity:0},duration:K.curtainCloseDuration,funktion:f.animate.parabolicFunktion,onstart:function(s){if(B){B.displayNone()}Q=true},onprogress:function(s){w.opacity(s.opacity);g.opacity(s.opacity/0.8)},onfinish:function(s){Q=false}};E=function(Z){var s;return{from:{opacity:0},to:{opacity:1},onstart:function(){s=Z().opacity(0)},onprogress:function(aa){s.opacity(aa.opacity)},onfinish:function(){s.opacity(1)},duration:200,funktion:f.animate.parabolicFunktion}};D=E(function(){return g});D.duration=K.frameOpenDuration;f.extend(D,"onstart",function(s){k=true;p=G.goTo(F.getCurrent()+1);if(B){B.displayBlock()}});f.extend(D,"onfinish",function(s){k=false});u=E(function(){return C});u.duration=K.imageOpenDuration;f.extend(u,"onfinish",function(s){z.abortImageOpenAnimation=f.doNothing});w=f.tag.element("div").displayBlock().positionAbsolute().leftPx(N.left).topPx(N.top).widthPx(V.width).heightPx(V.height).backgroundColor(K.curtainColor).zIndex(10000).attachListener("click",function(){if(A||k){return}U.close()});f.window.tie(["innerWidth","innerHeight","scrollLeft","scrollTop"],function(Z,s,ab,aa){w.widthPx(Z).heightPx(s).leftPx(ab).topPx(aa);V={width:Z,height:s};N={left:ab,top:aa};Y()});if(K.closeImage){B=f.tag.element("img").src(K.closeImage.src).displayNone().positionAbsolute().zIndex(10003).widthPx(K.closeImage.dimensions.a).heightPx(K.closeImage.dimensions.b).attachListener("click",function(){if(Q){return}U.close()}).appendTo(f.tag.body);v=function(){B.leftPx(N.left+(V.width+G.getWidth()-K.closeImage.dimensions.a)/2).topPx(N.top+(V.height-G.getHeight()-K.closeImage.dimensions.b)/2)}}F.oncurrentloadbegin=function(){z.begin()};F.oncurrentloadend=function(){z.end()};F.oncurrentchangebegin=function(){if(C!==null){C.remove()}z.abortImageOpenAnimation()};F.oncurrentchangeend=function(){C=F.getCurrentTag().opacity(0).appendTo(g);p=G.goTo(F.getCurrent()+1);z.abortImageOpenAnimation=f.animate(u).pause;if(K.scrollbar){T.setScroll(F.getCurrent()*T.getOuterWidth())}};F.onimagesizechange=function(Z,s,aa){P.set(Z+1,{width:s+q.notForImageWidth,height:aa+q.notForImageHeight})};if(K.scrollbar){G.onstart=function(){j();T.getTag().leftPx(q.scrollbarLeft)}}G.onfinish=function(s,Z){if(K.scrollbar){T.setInnerWidth((s-q.notForScrollbarWidth)*F.getSize());T.setScroll(0);j=T.tie("scroll",M);T.setScroll(F.getCurrent()*T.getOuterWidth())}};G.onresize=function(s,Z){g.widthPx(s).heightPx(Z);Y();if(C!==null&&P.isSet(F.getCurrent()+1)){C.positionAbsolute();if(K.imageHorizontalAlign==="center"){C.leftPx((s-P.get(F.getCurrent()+1).width)/2+q.imageMargin)}else{if(K.imageHorizontalAlign==="left"){C.leftPx(q.imageMargin)}else{if(K.imageHorizontalAlign==="right"){C.leftPx(s-P.get(F.getCurrent()+1).width+q.imageMargin)}}}C.topPx((Z-P.get(F.getCurrent()+1).height)/2+q.imageMargin)}z.image.leftPx((s-X.dimensions[0]-q.notForImageWidth)/2+q.imageMargin).topPx((Z-X.dimensions[1]-q.notForImageHeight)/2+q.imageMargin);if(K.scrollbar){T.setOuterWidth(s-q.notForScrollbarWidth)}if(!K.controls){return}h.getFrame().getTag().leftPx(s-q.nextRight);L.getFrame().getTag().leftPx(s-q.previousRight);O.getFrame().getTag().leftPx(q.closeLeft);t.getFrame().getTag().leftPx(q.slideshowLeft);if(O.getFrame().getTag().parent()!==null){if(K.scrollbar){S.onprogress({scrollbar:(Z-q.scrollbarBottom),button:(Z-q.buttonBottom)})}else{S.onprogress({button:(Z-q.buttonBottom)})}}};G.setMinWidth(q.frameMinWidth);G.setMinHeight(q.notForImageHeight+X.dimensions[1]);I=function(){if(C!==null){C.remove()}G.setWidth(0);G.setHeight(0);z.end();w.opacity(0).remove();g.opacity(0).remove()};n.close=function(){p();if(K.controls){H()}F.setCurrent();f.animate(J,function(){if(K.controlsAnimation){f.animate(o,I)}else{I()}})};n.open=function(s){F.setCurrent(s);f.animate(R,function(){if(K.controls&&O.getFrame().getTag().parent()===null){if(K.controlsAnimation){f.animate(S)}else{S.onfinish()}}})};n.setSlideshow=function(s){t.setViewOn(s);t.setPushed(s)};n.isSlideshow=function(){return t.getPushed()};n.start=function(s){U=s;if(K.controls){O.tie("pushed",function(){if(Q||!U.isOpen()){return}U.close()});L.tie("pushed",function(){if(Q||!U.isOpen()){return}U.goToPrevious()});h.tie("pushed",function(){if(Q||!U.isOpen()){return}U.goToNext()})}if(K.scrollbar){M=function(Z){Z=e.Math.floor(Z/T.getOuterWidth());i.set(function(){if(!U.isOpen()){return}U.goTo(Z)})};j=T.tie("scroll",M)}}});d.add("LightboxView")});d.when([],function(){f.clearTimeout=(function(g){e.clearTimeout(g)});d.add("clearTimeout")});d.when(["forEachProperty"],function(){f.merge=(function(){var j,g,h;j={};h=function(i,k){j[k]=i};for(g=0;g<arguments.length;g++){f.forEachProperty(arguments[g],h)}return j});d.add("merge")});d.when([],function(){f.forEachProperty=(function(k,j){var g,h;if(typeof j!=="function"||f.isArray(k)){return}g=typeof arguments[2]==="undefined"?null:arguments[2];for(h in k){if(k.hasOwnProperty(h)&&typeof k[h]!=="undefined"){j.call(g,k[h],h,k)}}});d.add("forEachProperty")});d.when([],function(){f.setTimeout=(function(g,h){return e.setTimeout(g,h)});d.add("setTimeout")});d.when(["tag","merge","RoundedCornersComponent","Model"],function(){f.ButtonComponent=(function(){var g;g=function(){var j,o,i,l,n,h,k;j=this;l=f.merge({label:"",toggle:false,pushed:false,down:false,over:false,viewOn:false,onBackgroundColor:"#dddddd",offBackgroundColor:"#ffffff",onForegroundColor:"#222222",offForegroundColor:"#000000"},typeof arguments[0]==="undefined"?{}:arguments[0]);if(typeof l.frame==="undefined"){l.frame=new f.RoundedCornersComponent()}f.Model.call(j,l,["frame"]);if(j.getPushed()){o=function(){j.setViewOn(false)};i=function(){j.setViewOn(true)}}else{o=function(){j.setViewOn(true)};i=function(){j.setViewOn(false)}}i();j.tie("frame",function(p){p.disableTextSelection().getTag().cursorDefault();if(n){n()}n=p.getTag().pushListener("mouseover",function(){j.setOver(true);if(j.getToggle()){if(j.getDown()){if(j.getPushed()){j.setViewOn(false)}else{j.setViewOn(true)}}}else{if(j.getDown()){o()}}});if(k){k()}k=p.getTag().pushListener("mouseout",function(){if(j.getDown()){if(j.getToggle()){if(j.getPushed()){j.setViewOn(true)}else{j.setViewOn(false)}}else{i()}}j.setOver(false)});if(h){h()}h=p.getTag().pushListener("mousedown",function(){j.setDown(true);if(j.getToggle()){if(j.getPushed()){j.setViewOn(false)}else{j.setViewOn(true)}}else{o()}})});j.tie("frame.inner",function(p){p.textAlignCenter()});j.tie(["label","frame"],function(p,q){q.getInner().removeChildren().append(f.tag.text(p))});j.tie(["frame","viewOn","onBackgroundColor","onForegroundColor"],function(s,p,q,r){if(p){s.set({foregroundColor:q,backgroundColor:r,fontColor:r})}});j.tie(["frame","viewOn","offBackgroundColor","offForegroundColor"],function(s,p,r,q){if(!p){s.set({foregroundColor:r,backgroundColor:q,fontColor:q})}});f.tag.body.attachListener("mouseup",function(){if(j.getOver()&&j.getDown()){if(j.getPushed()){j.setViewOn(false);j.setPushed(false)}else{if(j.getToggle()){j.setViewOn(true)}else{j.setViewOn(false)}j.setPushed(true)}}j.setDown(false)})};return g})();d.add("ButtonComponent")});d.when(["merge","Model","forEachProperty","isArray","sqr","tag"],function(){f.RoundedCornersComponent=(function(){var g,h,j,o,n,l,k,i;n=e.Math.sqrt;l=e.Math.floor;k=e.Math.ceil;i=e.Math.round;h=function(t,q,w){var s,p,v,u;s=[e.parseInt("0x"+t.substring(1,3),16),e.parseInt("0x"+t.substring(3,5),16),e.parseInt("0x"+t.substring(5,7),16)];p=[e.parseInt("0x"+q.substring(1,3),16),e.parseInt("0x"+q.substring(3,5),16),e.parseInt("0x"+q.substring(5,7),16)];v="0"+i(s[0]+(p[0]-s[0])*w).toString(16);u="0"+i(s[1]+(p[1]-s[1])*w).toString(16);q="0"+i(s[2]+(p[2]-s[2])*w).toString(16);return"#"+v.substring(v.length-2)+u.substring(u.length-2)+q.substring(q.length-2)};g=function(q,p,C,I,H){var E,D,F,B,v,u,t,s,r,A,G,z,w;F=document.createElement("div");F.style.backgroundColor=p;B=0;for(E=1;E<=H;E++){v=n(1-f.sqr(1-E/H))*I;r=I-k(v);A=l(B);G=I-r-A;z=document.createElement("div");z.style.height="1px";z.style.overflow="hidden";w=F;z.style.margin="0px "+r+"px";for(D=1;D<=G;D++){if(D===1){if(D===G){u=((v+B)*0.5)-A}else{t=n(1-f.sqr(1-(r+1)/I))*H;u=(t-(H-E))*(v-A-G+1)*0.5}}else{if(D===G){t=n(1-f.sqr((I-r-D+1)/I))*H;u=1-(1-(t-(H-E)))*(1-(B-A))*0.5}else{s=n(1-f.sqr((I-r-D)/I))*H;t=n(1-f.sqr((I-r-D+1)/I))*H;u=((t+s)*0.5)-(H-E)}}z.style.backgroundColor=h(p,C,u);w.appendChild(z);w=z;z=document.createElement("div");z.style.margin="0px 1px";z.style.height="1px";z.style.overflow="hidden"}z.style.backgroundColor=C;w.appendChild(z);B=v}if(q.childNodes.length===3){f.tag(F).replaceNode(q.firstChild)}else{q.insertBefore(F,q.firstChild)}};j=function(q,p,C,I,H){var z,w,E,D,F,B,v,u,t,s,r,A,G;F=document.createElement("div");F.style.backgroundColor=p;B=0;for(E=1;E<=H;E++){v=n(1-f.sqr(1-E/H))*I;r=I-k(v);A=l(B);G=I-r-A;z=document.createElement("div");z.style.height="1px";z.style.overflow="hidden";w=F;z.style.margin="0px "+r+"px";for(D=1;D<=G;D++){if(D===1){if(D===G){u=((v+B)*0.5)-A}else{t=n(1-f.sqr(1-(r+1)/I))*H;u=(t-(H-E))*(v-A-G+1)*0.5}}else{if(D===G){t=n(1-f.sqr((I-r-D+1)/I))*H;u=1-(1-(t-(H-E)))*(1-(B-A))*0.5}else{s=n(1-f.sqr((I-r-D)/I))*H;t=n(1-f.sqr((I-r-D+1)/I))*H;u=((t+s)*0.5)-(H-E)}}z.style.backgroundColor=h(p,C,u);w.insertBefore(z,w.firstChild);w=z;z=document.createElement("div");z.style.margin="0px 1px";z.style.height="1px";z.style.overflow="hidden"}z.style.backgroundColor=C;w.insertBefore(z,w.firstChild);B=v}if(q.childNodes.length===3){f.tag(F).replaceNode(q.lastChild)}else{q.appendChild(F)}};o=function(t,q,s,r,p){g(t,q,s,r,p);j(t,q,s,r,p)};return function(){var r,p,s,q;r=this;s=false;p=f.tag.element("div");q=f.tag.element("div").appendTo(p);f.Model.call(r,f.merge({radius:5,backgroundColor:"#ffffff",foregroundColor:"#000000",fontColor:"#ffffff",inner:q},typeof arguments[0]==="undefined"?{}:arguments[0]));r.tie(["backgroundColor","foregroundColor","radius"],function(v,u,t){p.backgroundColor(u);o(p.node,v,u,t,t)});r.tie(["inner","fontColor"],function(t,u){q=t.replace(q).color(u)});r.getTag=function(){return p};r.disableTextSelection=function(){if(!s){s=true;p.disableTextSelection()}return this}}})();d.add("RoundedCornersComponent")});d.when([],function(){f.Model=e.Iris;d.add("Model")});d.when(["getPrototypeOf"],function(){f.isArray=(function(){var h,i,g;g=f.getPrototypeOf;h=g([]);i=[].constructor;return function(j){return g(j)===h&&j.constructor===i}})();d.add("isArray")});d.when(["unset"],function(){f.getPrototypeOf=(function(){if(typeof e.Object.getPrototypeOf==="undefined"){if(typeof"".__proto__==="undefined"){f.emulated.push("funjes.getPrototypeOf");return function(h){if(typeof h!=="object"||h===null){return null}var g,i;g=h.constructor;i=g;if(h.hasOwnProperty&&h.hasOwnProperty("constructor")){f.unset(h,"constructor");i=h.constructor;h.constructor=g}if(typeof i==="undefined"){return null}return i.prototype}}else{return function(g){if(typeof g!=="object"||g===null){return null}return g.__proto__}}}else{return function(g){if(typeof g!=="object"||g===null){return null}return e.Object.getPrototypeOf(g)}}})();d.add("getPrototypeOf")});d.when([],function(){f.unset=(function(h,g){if(typeof h[g]!=="undefined"){delete h[g]}});d.add("unset")});d.when([],function(){f.sqr=(function(g){return g*g});d.add("sqr")});d.when([],function(){f.extend=(function(h,g,j){var i=h[g];h[g]=function(){i.apply(h,arguments);j.apply(h,arguments)}});d.add("extend")});d.when(["clearTimeout","setTimeout"],function(){f.Delay=(function(){var g,h;g=500;h=null;this.reset=function(){if(h!==null){f.clearTimeout(h);h=null}};this.set=function(i){var j=typeof arguments[1]==="undefined"?[]:arguments[1];this.reset();h=f.setTimeout(function(){h=null;i.apply(null,j)},g)};this.setTime=function(i){g=i};this.getTime=function(){return g};this.isIdle=function(){return h===null}});d.add("Delay")});d.when(["Pair","Board","mapProperties","forEachProperty","getProperties","pass","unset"],function(){f.StringMap=(function(){var i,h,j,k,g;i=(this===e)?{}:this;h=typeof arguments[0]==="undefined"?{}:arguments[0];j=new f.Board();k=function(o,n){var l;l=h[n];h[n]=o;if(l!==o){o=new f.Pair(n,o);if(typeof l==="undefined"){j.fireEvent("create",o)}j.fireEvent("set",o)}};g=function(n,l){if(typeof h[l]==="undefined"){k(n,l)}};i.setAll=function(l){f.forEachProperty(l,k)};i.set=function(l,n){k(n,l)};i.setPair=function(l){k(l.b,l.a)};i.setAllUnset=function(l){f.forEachProperty(l,g)};i.setUnset=function(l,n){g(n,l)};i.setPairUnset=function(l){g(l.b,l.a)};i.isSet=function(l){return typeof h[l]!=="undefined"};i.get=function(l){return h[l]};i.getAll=function(){return f.mapProperties(h,f.pass)};i.unset=function(n){var l;l=new f.Pair(n,h[n]);f.unset(h,n);j.fireEvent("destroy",l);return l.b};i.attachListener=function(l,n){return j.attachListener(l,n)};i.getKeys=function(){return f.getProperties(h)}});d.add("StringMap")});d.when(["mapIndices","explodeString","trim"],function(){f.Pair=(function(){var g=function(i,h){this.a=i;this.b=h};g.prototype.toString=function(){return"[object Pair: "+this.a+", "+this.b+"]"};g.prototype.put=function(h){h[this.a]=this.b};g.fromEquation=function(h){return g.fromArray(f.mapIndices(f.explodeString(h,"=",2),f.trim))};g.fromArray=function(h){return new g(h[0],h[1])};g.fromHTTPHeader=function(i){return g.fromArray(f.mapIndices(f.explodeString(i,":",2),f.trim))};return g})();d.add("Pair")});d.when(["isArray","isString"],function(){f.mapIndices=(function(){if(typeof e.Array.map==="undefined"){f.emulated.push("funjes.mapIndices");return function(n,l){var k,h,j,g;if(typeof l!=="function"){return}h=typeof arguments[2]==="undefined"?null:arguments[2];g=n.length>>>0;k=new e.Array(g);for(j=0;j<g;j++){if(typeof n[j]!=="undefined"){k[j]=l.call(h,n[j],j,n)}}return k}}else{return function(n,l){var k,h,j,g;if(typeof l!=="function"){return}h=typeof arguments[2]==="undefined"?null:arguments[2];if(f.isArray(n)||f.isString(n)){return e.Array.map(n,l,h)}else{g=n.length>>>0;k=new e.Array(g);for(j=0;j<g;j++){if(typeof n[j]!=="undefined"){k[j]=l.call(h,n[j],j,n)}}return k}}}})();d.add("mapIndices")});d.when(["getPrototypeOf"],function(){f.isString=(function(){var h,i,g;g=f.getPrototypeOf;h=g("");i="".constructor;return function(j){return g(j)===h&&j.constructor===i}})();d.add("isString")});d.when([],function(){f.explodeString=(function(j,o,g){var k,n,h;n=[];h=0;while(true){if(n.length===g){break}k=j.indexOf(o,h);if(k<0){break}n.push(j.substring(h,k));h=k+o.length}if(n.length<g&&h<=j.length){n.push(j.substring(h))}return n});d.add("explodeString")});d.when([],function(){f.trim=(function(){if("".trim){return function(i){return i.trim()}}f.emulated.push("funjes.trim");var g,h=new e.RegExp("^\\s*|\\s*$","g");g=function(i){return i.replace(h,"")};if(g(" 	afaf   		  ")==="afaf"){return g}g=null;h=null;return function(k){var j,i;j=-1;i=k.length;while(k.charCodeAt(--i)<33){}while(k.charCodeAt(++j)<33){}return k.slice(j,i+1)}})();d.add("trim")});d.when(["List"],function(){f.Board=(function(){var h,g;h=this;g={};h.attachListener=function(i,j){if(typeof g[i]==="undefined"){return(g[i]=new f.List()).push(j)}else{return g[i].push(j)}};h.fireEvent=function(j,i){if(typeof g[j]!=="undefined"){g[j].foreachApply(i)}}});d.add("Board")});d.when([],function(){f.List=(function(){var g=function(i,j,h){this.o=i;this.n=j;this.p=h};return function(){var o,n,l,k,h,j,i;o=null;n=null;l=0;i=function(q,p){q.n=p;if(p===o){q.p=null}else{q.p=p.p;q.p.n=q}p.p=q};j=function(q){var p;if(p<(l/2)){p=o;while(p!==null&&q-->0){p=p.n}}else{p=n;q=l-q-1;while(p!==null&&q-->0){p=p.p}}return p};h=function(p){l--;if(p.p!==null){p.p.n=p.n}if(p.n!==null){p.n.p=p.p}if(p.p===null){o=p.n}if(p.n===null){n=p.p}};k=function(p){l++;if(n===null){n=p;o=p;p.n=null;p.p=null}else{p.n=null;p.p=n;n.n=p;n=p}return function(){if(p!==null){h(p);p=null}}};this.push=function(p){return k(new g(p))};this.pushLast=this.push;this.pushFirst=function(q){l++;var p;if(n===null){p=new g(q,null,null);n=p;o=p}else{p=new g(q,o,null);o.p=p;o=p}return function(){if(p!==null){l--;if(p.p!==null){p.p.n=p.n}if(p.n!==null){p.n.p=p.p}if(p.p===null){o=p.n}if(p.n===null){n=p.p}p=null}}};this.getLast=function(){if(n===null){return null}else{return n.o}};this.getFirst=function(){if(n===null){return null}else{return n.o}};this.isEmpty=function(){return l===0};this.isSingle=function(){return l===1};this.size=function(){return l};this.pop=function(){if(n===null){return null}var p=n.o;l--;if(o===n){o=n=null}else{if(n.p!==null){n.p.n=null}n=n.p}return p};this.shift=function(){if(o===null){return null}var p=o.o;l--;if(o===n){o=n=null}else{if(o.n!==null){o.n.p=null}o=o.n}return p};this.foreach=function(q){var p=o;while(p!==null){q(p.o);p=p.n}};this.foreachApply=function(){var p,q;p=o;q=true;while(p!==null){if(p.o.apply(null,arguments)){q=false}p=p.n}return q};this.foreachApplyMethod=function(s,q){var p,r;p=o;r=true;while(p!==null){if(p.o[s].apply(p.o,q)){r=false}p=p.n}return r};this.has=function(q){var p=o;while(p!==null){if(p.o===q){return true}p=p.n}return false};this.toString=function(){return"[List:"+l+"]"};this.toFullString=function(){var p,q;p=[];q=o;while(q!==null){p[p.length]=q.o;q=q.n}return"[List:"+p+"]"}}})();d.add("List")});d.when([],function(){f.mapProperties=(function(l,k){var j,g,h;if(typeof k!=="function"){return}g=typeof arguments[2]==="undefined"?null:arguments[2];j={};for(h in l){if(l.hasOwnProperty(h)){j[h]=k.call(g,l[h],h,l)}}return j});d.add("mapProperties")});d.when(["forEachProperty"],function(){f.getProperties=(function(h){var g;g=[];f.forEachProperty(h,function(j,k){g.push(k)});return g});d.add("getProperties")});d.when([],function(){f.pass=(function(g){return g});d.add("pass")});d.when(["tag","Model","window"],function(){f.Scrollbar=(function(){var i,h,l,j,k,n,g;i=this;h=f.tag.element("div").positionStatic().overflowHidden();l=f.tag.element("div").positionRelative().overflowScroll().appendTo(h);j=f.tag.element("div").appendTo(l);f.Model.call(i,{scroll:0,outerWidth:0,innerWidth:0,orientation:"vertical"});f.window.tie("scrollbarWidth",function(o){k=o});n=k*2;g=k+n;i.tie(["orientation","innerWidth","outerWidth"],function(p,o,q){if(p==="horizontal"){j.widthPx(o).heightPx(n);l.widthPx(q+k).heightPx(g).leftPx(0).topPx(-n);h.widthPx(q).heightPx(k)}else{j.widthPx(n).heightPx(o);l.widthPx(g).heightPx(q+k).topPx(0).leftPx(-n);h.widthPx(k).heightPx(q)}});i.getTag=function(){return h};i.tie("scroll",function(o){if(h.parent()!==null){if(i.getOrientation()==="horizontal"){l.scrollLeft(o)}else{l.scrollTop(o)}}});i.getWidth=function(){return k};i.getScroll=function(){return i.getOrientation()==="horizontal"?l.scrollLeft():l.scrollTop()};l.attachListener("scroll",function(){i.setScroll(i.getOrientation()==="horizontal"?this.scrollLeft():this.scrollTop())})});d.add("Scrollbar")});d.when(["Model","tag","arrayIndexOf"],function(){f.window=(function(){var j,k,l,s,q,p,r,i,t,h,n,o,g;j=new f.Model({pointerTop:0,pointerLeft:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0,outerTop:0,outerLeft:0,scrollLeft:0,scrollTop:0,title:e.document.title,hash:"",availWidth:e.screen.availWidth,availHeight:e.screen.availHeight,scrollbarWidth:0,orientationX:0,orientationY:0,orientationZ:1});(function(){var y,w,v,u,z;u="scrollLeft";z="scrollTop";v=null;r=function(B,A){if(v){e.scrollTo(B,A)}};k=function(){if(e.pageXOffset||e.pageYOffset){v=e;z="pageYOffset";u="pageXOffset"}else{if(e.document.documentElement&&(e.document.documentElement.scrollLeft||e.document.documentElement.scrollTop)){v=e.document.documentElement}else{if(e.scrollLeft||e.scrollTop){v=e}else{if(e.document.body&&(e.document.body.scrollLeft||e.document.body.scrollTop)){v=e.document.body}else{return{scrollLeft:0,scrollTop:0}}}}}k=function(){return{scrollLeft:v[u]||0,scrollTop:v[z]||0}};return k()};j.tie(["scrollLeft","scrollTop"],r);y=function(){j.announce(j.put(k()),[r])};if(typeof e.addEventListener!=="undefined"){e.addEventListener("scroll",y,false)}else{if(typeof e.attachEvent!=="undefined"){e.attachEvent("onscroll",y)}else{if(typeof e.onscroll!=="undefined"){if(e.onscroll){w=e.onscroll;e.onscroll=function(A){w(A);y(A)}}else{e.onscroll=y}}}}})();(function(){var v;v="";l=null;try{l=e.location.hash;l=function(){return(typeof e.location.hash==="string"&&e.location.hash.length>0)?e.location.hash.substr(1):""};j.setHash(l());q=function(w){w=String(w);if(w.length===0){return}e.location.hash="#"+w}}catch(u){l=function(){return j.getHash()};q=function(){}}j.tie("hash",q)})();(function(){var v,u;v=function(){switch(e.orientation){case -90:j.set({orientationX:1,orientationY:0,orientationZ:0});break;case 0:j.set({orientationX:0,orientationY:0,orientationZ:1});break;case 90:j.set({orientationX:-1,orientationY:0,orientationZ:0});break;case 180:j.set({orientationX:0,orientationY:0,orientationZ:-1});break;default:break}};if(typeof e.onorientationchange!=="undefined"){if(typeof e.addEventListener!=="undefined"){e.addEventListener("orientationchange",v,false)}else{if(typeof e.attachEvent!=="undefined"){e.attachEvent("onorientationchange",v)}else{if(e.onorientationchange){u=e.onorientationchange;e.onorientationchange=function(w){u(w);v(w)}}else{e.onorientationchange=v}}}}if(e.addEventListener){e.addEventListener("MozOrientation",function(w){j.set({orientationX:w.x,orientationY:w.y,accelerationZ:w.z})},false)}})();j.tie("title",function(u){e.document.title=u});(function(){var w,v,u;w=function(y){if(u){u(y||e.event);return}if(y.pageX||y.pageY){u=function(z){j.set({pointerTop:z.pageY,pointerLeft:z.pageX})}}else{if(y.clientX||y.clientY){u=function(A){var B=e.document.documentElement,z=e.document.body;j.set({pointerTop:A.clientY+(B&&B.scrollTop||z&&z.scrollTop||0)-(B&&B.clientTop||z&&z.clientTop||0),pointerLeft:A.clientX+(B&&B.scrollLeft||z&&z.scrollLeft||0)-(B&&B.clientLeft||z&&z.clientLeft||0)})}}else{j.set({pointerTop:0,pointerLeft:0});return}}u(y||e.event)};if(typeof e.addEventListener!=="undefined"){e.addEventListener("mousemove",w,false)}else{if(typeof e.document.attachEvent!=="undefined"){e.document.attachEvent("onmousemove",w)}else{if(typeof e.onmousemove!=="undefined"){if(e.onmousemove){v=e.onmousemove;e.onmousemove=function(y){v(y);w(y)}}else{e.onmousemove=w}}}}})();if(typeof e.onhashchange!=="undefined"){if(typeof e.addEventListener!=="undefined"){e.addEventListener("hashchange",function(){j.announce(j.put({hash:l()}),[q])},false)}else{if(typeof e.attachEvent!=="undefined"){e.attachEvent("onhashchange",function(){j.announce(j.put({hash:l()}),[q])})}}}(function(){var w,v,u,z,y;p=function(B,A){if(w){w=null;return}s({top:B,left:A})};s=function(){if(typeof e.screenTop!=="undefined"){var B,A;B={top:e.screenTop,left:e.screenLeft};e.moveTo(B.left,B.top);A={top:B.top-e.screenTop,left:B.left-e.screenLeft};e.moveTo(B.left+A.left,B.top+A.top);s=function(){if(arguments.length>0){try{e.moveTo(arguments[0].left,arguments[0].top)}catch(C){}return this}return{top:e.screenTop+A.top,left:e.screenLeft+A.left}}}else{if(typeof e.screenY!=="undefined"){s=function(){if(arguments.length>0){try{e.moveTo(arguments[0].left,arguments[0].top)}catch(C){}return this}return{top:e.screenY,left:e.screenX}}}else{s=function(){if(arguments.length>0){try{e.moveTo(arguments[0].left,arguments[0].top)}catch(C){}return this}return{top:0,left:0}}}}return s.apply(null,arguments)};v=j.getOuterTop;z=j.getOuterLeft;u=j.setOuterTop;y=j.setOuterLeft;g=function(){g=null;j.getOuterTop=v;j.getOuterLeft=z;j.setOuterTop=u;j.setOuterLeft=y;w=s();j.setOuterTop(w.top);j.setOuterLeft(w.height);h=i;j.tie(["outerTop","outerLeft"],p)};j.getOuterTop=function(){g();return j.getOuterTop()};j.getOuterLeft=function(){g();return j.getOuterLeft()};j.setOuterTop=function(A){g();return j.setOuterTop(A)};j.setOuterLeft=function(A){g();return j.setOuterLeft(A)}})();f.tag.onready(function(){var z,u,F,B,C,w,H,I,G,y,v,A,D,E;u=true;z=true;D=function(K,J){if(z){z=false;return}H({width:K,height:J})};E=function(K,J){if(u){u=false;return}I({width:K,height:J})};C=function(){var J,K;if(typeof e.innerHeight==="number"){C=function(){return{width:e.innerWidth,height:e.innerHeight}};return C()}J=function(){var M,L;M=e.document.createElement("div");M.style.height="2500px";e.document.body.insertBefore(M,e.document.body.firstChild);L=e.document.documentElement.clientHeight>2400;e.document.body.removeChild(M);return L};if(typeof e.document.clientWidth==="number"){K=e.document}else{if((e.document.documentElement&&e.document.documentElement.clientWidth===0)||!(e.document.documentElement.clientHeight>0)){K=e.document.body}else{if(e.document.documentElement.clientHeight>0){K=e.document.documentElement}}}C=function(){return{width:K.clientWidth,height:K.clientHeight}};return C()};B=function(){var K,J;if(typeof F!=="undefined"){return}K=C();e.resizeTo(K.width,K.height);J=C();F={width:K.width-J.width,height:K.height-J.height};e.resizeTo(K.width+F.width,K.height+F.height)};H=function(){if(e.outerWidth){H=function(){if(arguments.length>0){try{e.resizeTo(arguments[0].width,arguments[0].height)}catch(J){}return this}return{width:e.outerWidth,height:e.outerHeight}}}else{B();H=function(){var J;if(arguments.length>0){try{e.resizeTo(arguments[0].width,arguments[0].height)}catch(K){}return this}J=C();J.width+=F.width;J.height+=F.height;return J}}return H.apply(null,arguments)};(function(){var K,J,L,M;K=j.getOuterWidth;M=j.getOuterHeight;J=j.setOuterWidth;L=j.setOuterHeight;n=function(){var N;n=null;j.getOuterWidth=K;j.getOuterHeight=M;j.setOuterWidth=J;j.setOuterHeight=L;N=H();j.setOuterWidth(N.width);j.setOuterHeight(N.height);j.tie(["outerWidth","outerHeight"],D)};j.getOuterWidth=function(){n();return j.getOuterWidth()};j.getOuterHeight=function(){n();return j.getOuterHeight()};j.setOuterWidth=function(N){n();return j.setOuterWidth(N)};j.setOuterHeight=function(N){n();return j.setOuterHeight(N)}})();I=function(){if(arguments.length<1){return C()}B();I=function(){if(arguments.length>0){try{e.resizeTo(arguments[0].width+F.width,arguments[0].height+F.height)}catch(J){}return this}return C()};return I.apply(null,arguments)};(function(){var K,J;K=j.getInnerWidth;pohg=j.getInnerHeight;J=j.setInnerWidth;pohs=j.setInnerHeight;o=function(){var L;o=null;j.getInnerWidth=K;j.getInnerHeight=pohg;j.setInnerWidth=J;j.setInnerHeight=pohs;L=I();j.setInnerWidth(L.width);j.setInnerHeight(L.height);j.tie(["innerWidth","innerHeight"],E)};j.getInnerWidth=function(){o();return j.getInnerWidth()};j.getInnerHeight=function(){o();return j.getInnerHeight()};j.setInnerWidth=function(L){o();return j.setInnerWidth(L)};j.setInnerHeight=function(L){o();return j.setInnerHeight(L)}})();w=function(){var J,K;J=I();K=H();j.announce(j.put({innerWidth:J.width,outerWidth:K.width,innerHeight:J.height,outerHeight:K.height}),[D,E])};if(typeof e.addEventListener!=="undefined"){e.addEventListener("resize",w,false)}else{if(typeof e.attachEvent!=="undefined"){e.attachEvent("onresize",w)}else{if(typeof e.onresize!=="undefined"){if(e.onresize){previousOnresize=e.onresize;e.onresize=function(J){previousOnresize(J);w(J)}}else{e.onresize=w}}}}v=f.tag.element("div").topPx(-200).leftPx(-200).positionAbsolute().overflowHidden().widthPx(50).heightPx(50);A=f.tag.element("div").positionRelative().appendTo(v);f.tag.body.append(v);if(A.node.offsetWidth){G=A.node.offsetWidth;v.overflowScroll();y=A.node.offsetWidth;if(G===y&&typeof v.node.clientWidth!=="undefined"){y=v.node.clientWidth}G=G-y}else{G=e.parseInt(A.css("width"));v.overflowScroll();G=G-e.parseInt(A.css("width"))}v.remove();if(G){j.setScrollbarWidth(e.Math.abs(G))}});(function(){var u;u=j.tie;j.tie=function(w,v){w=typeof w==="string"?[w]:w;if(g&&(f.arrayIndexOf(w,"outerTop")>=0||f.arrayIndexOf(w,"outerLeft")>=0)){g()}if(n&&(f.arrayIndexOf(w,"outerWidth")>=0||f.arrayIndexOf(w,"outerHeight")>=0)){n()}if(o&&(f.arrayIndexOf(w,"innerWidth")>=0||f.arrayIndexOf(w,"innerHeight")>=0)){o()}if(!g&&!n&&!o){j.tie=u}u(w,v)}})();t=function(){var u;u=k();j.announce(j.put({scrollTop:u.scrollTop,scrollLeft:u.scrollLeft,title:e.document.title,hash:l()}),[r,q])};i=function(){var u,v;u=s();v=k();j.announce(j.put({scrollTop:v.scrollTop,scrollLeft:v.scrollLeft,outerTop:u.top,outerLeft:u.left,title:e.document.title,hash:l()}),[p,r,q])};h=t;e.setInterval(function(){h()},250);return j})();d.add("window")});d.when([],function(){f.arrayIndexOf=(function(){var h,g;if(typeof e.Array.prototype.indexOf!=="undefined"){g={a:"three"};h=[{a:"one"},{a:"two"},g,{a:"three"},g,{a:"four"}];if(h.indexOf(g)===2&&h.indexOf(g,3)===4){return function(i,j){return i.indexOf(j,e.Number(arguments[2])||0)}}}f.emulated.push("funjes.arrayIndexOf");return function(j,k){var l,i;i=j.length>>>0;l=e.Number(arguments[2])||0;l=(l<0)?e.Math.ceil(l):e.Math.floor(l);if(l<0){l+=i}while(l<i){if(typeof j[l]!=="undefined"&&j[l]===k){return l}l++}return -1}})();d.add("arrayIndexOf")});d.when(["doNothing","forEachProperty","setTimeout"],function(){f.animate=(function(){var g,h;h=30;g=function(k){var o,n,i,j;j=arguments[1]||function(){};k.onstart(k.from);if(k.duration<=1){k.onprogress(k.to);k.onfinish(k.to);j();return{resume:f.doNothing,pause:f.doNothing}}i={r:true,t:0};o={};n="";f.forEachProperty(k.from,function(l,p){o[p]=l;n+="p['"+p+"'] = "+l+" + "+(k.to[p]-l)+" * t;"});(new e.Function("setTimeout","l","p","animdoc","finish","l.f = function() { if (l.r) { if (l.t <= "+k.duration+") { var t = animdoc.funktion(l.t / "+k.duration+");"+n+"animdoc.onprogress(p);l.t += "+(k.sleepDuration||h)+";setTimeout(l.f, "+(k.sleepDuration||h)+");} else {animdoc.onprogress(animdoc.to); animdoc.onfinish(animdoc.to); finish();}}};l.f();"))(f.setTimeout,i,o,k,j);return{resume:function(){i.r=true;i.f()},pause:function(){i.r=false}}};g.getDefaultSleepDuration=function(){return h};g.parabolicFunktion=function(i){return -1*i*(i-2)};g.linearFunktion=function(i){return i};g.squareFunktion=function(i){return i*i};g.cubicFunktion=function(i){return i*i*i};return g})();d.add("animate")});d.when(["animate","doNothing"],function(){f.LightboxMinimalFrameSizeStrategy=(function(k){var l,h,j,g,i,n;i=0;n=0;h=this;j=0;g=0;h.goTo=function(o){l.to=k.get(o);if(typeof l.to==="undefined"){l.to={height:g,width:j}}return f.animate(l)[1]};h.onstart=f.doNothing;h.onresize=f.doNothing;h.getWidth=function(){return j};h.getHeight=function(){return g};h.setWidth=function(o){j=o};h.setHeight=function(o){g=o};h.setMinWidth=function(o){i=o};h.setMinHeight=function(o){n=o};l={from:{},to:{},duration:300,funktion:f.animate.parabolicFunktion,onstart:function(o){l.from.width=j;l.from.height=g;h.onstart(j,g)},setFrameSize:function(o){j=o.width<i?i:o.width;g=o.height<n?n:o.height;h.onresize(j,g)},onprogress:function(o){l.setFrameSize(o)},onfinish:function(o){l.setFrameSize(o);h.onfinish(j,g)}}});d.add("LightboxMinimalFrameSizeStrategy")});d.when(["isArray","isString"],function(){f.forEachIndex=(function(){if(typeof e.Array.forEach==="undefined"){f.emulated.push("funjes.forEachIndex");return function(l,k){var h,j,g;if(typeof k!=="function"){return}h=typeof arguments[2]==="undefined"?null:arguments[2];g=l.length>>>0;for(j=0;j<g;j++){if(typeof l[j]!=="undefined"){k.call(h,l[j],j,l)}}}}else{return function(l,k){var h,j,g;if(typeof k!=="function"){return}h=typeof arguments[2]==="undefined"?null:arguments[2];if(f.isArray(l)||f.isString(l)){e.Array.forEach(l,k,h)}else{g=l.length>>>0;for(j=0;j<g;j++){if(typeof l[j]!=="undefined"){k.call(h,l[j],j,l)}}}}}})();d.add("forEachIndex")});d.when(["animate","doNothing"],function(){f.LightboxMaximalFrameSizeStrategy=(function(j){var i,k,p,h,o,l,g,n;g=0;n=0;p=this;k=null;h=0;o=0;l={width:0,height:0};j.attachListener("set",function(q){q=q.b;if(l.width<q.width){l.width=q.width}if(l.height<q.height){l.height=q.height}if(h!==l.width||o!==l.height){i.to=l;if(k!==null){k()}k=f.animate(i).pause}else{i.onfinish(l)}});p.goTo=function(q){if(k===null){i.onstart(l);i.onprogress(l);i.onfinish(l)}return k===null?f.doNothing:k};p.onstart=f.doNothing;p.onresize=f.doNothing;p.getWidth=function(){return h};p.getHeight=function(){return o};p.setWidth=function(q){h=q};p.setHeight=function(q){o=q};p.setMinWidth=function(q){g=q};p.setMinHeight=function(q){n=q};i={from:{},to:{},duration:300,funktion:f.animate.parabolicFunktion,onstart:function(q){i.from.width=h;i.from.height=o;p.onstart(h,o)},setFrameSize:function(q){h=q.width<g?g:q.width;o=q.height<n?n:q.height;p.onresize(h,o)},onprogress:function(q){i.setFrameSize(q)},onfinish:function(q){i.setFrameSize(q);p.onfinish(h,o);k=null}}});d.add("LightboxMaximalFrameSizeStrategy")});d.when(["isArray","isString"],function(){f.someIndices=(function(){if(typeof e.Array.some==="undefined"){f.emulated.push("funjes.someIndices");return function(l,k){var j,h,g;if(typeof k!=="function"){return}g=l.length>>>0;h=arguments[2]==="undefined"?null:arguments[2];for(j=0;j<g;j++){if(typeof l[j]!=="undefined"&&k.call(h,l[j],j,l)){return true}}return false}}else{return function(l,k){var j,h,g;if(typeof k!=="function"){return}h=arguments[2]==="undefined"?null:arguments[2];if(f.isArray(l)||f.isString(l)){return e.Array.some(l,k,h)}else{g=l.length>>>0;for(j=0;j<g;j++){if(typeof l[j]!=="undefined"&&k.call(h,l[j],j,l)){return true}}}}}})();d.add("someIndices")})};c.funjes.emulated=[];(function(){for(var d=0;d<b.length;d++){c.funjes.emulated[d]=b[d]}})();c.funjes.part0(c,c.funjes,a)})(window);
/*
 * Sizzle CSS Selector Engine - v1.0
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var n=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,o=0,q=Object.prototype.toString,h=false,g=true;[0,0].sort(function(){g=false;return 0});var c=function(z,e,C,D){C=C||[];var F=e=e||document;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!z||typeof z!=="string"){return C}var A=[],v,H,K,u,y=true,w=d(e),E=z;while((n.exec(""),v=n.exec(E))!==null){E=v[3];A.push(v[1]);if(v[2]){u=v[3];break}}if(A.length>1&&i.exec(z)){if(A.length===2&&j.relative[A[0]]){H=r(A[0]+A[1],e)}else{H=j.relative[A[0]]?[e]:c(A.shift(),e);while(A.length){z=A.shift();if(j.relative[z]){z+=A.shift()}H=r(z,H)}}}else{if(!D&&A.length>1&&e.nodeType===9&&!w&&j.match.ID.test(A[0])&&!j.match.ID.test(A[A.length-1])){var G=c.find(A.shift(),e,w);e=G.expr?c.filter(G.expr,G.set)[0]:G.set[0]}if(e){var G=D?{expr:A.pop(),set:l(D)}:c.find(A.pop(),A.length===1&&(A[0]==="~"||A[0]==="+")&&e.parentNode?e.parentNode:e,w);H=G.expr?c.filter(G.expr,G.set):G.set;if(A.length>0){K=l(H)}else{y=false}while(A.length){var J=A.pop(),I=J;if(!j.relative[J]){J=""}else{I=A.pop()}if(I==null){I=e}j.relative[J](K,I,w)}}else{K=A=[]}}if(!K){K=H}if(!K){c.error(J||z)}if(q.call(K)==="[object Array]"){if(!y){C.push.apply(C,K)}else{if(e&&e.nodeType===1){for(var B=0;K[B]!=null;B++){if(K[B]&&(K[B]===true||K[B].nodeType===1&&k(e,K[B]))){C.push(H[B])}}}else{for(var B=0;K[B]!=null;B++){if(K[B]&&K[B].nodeType===1){C.push(H[B])}}}}}else{l(K,C)}if(u){c(u,F,C,D);c.uniqueSort(C)}return C};c.uniqueSort=function(u){if(p){h=g;u.sort(p);if(h){for(var e=1;e<u.length;e++){if(u[e]===u[e-1]){u.splice(e--,1)}}}}return u};c.matches=function(e,u){return c(e,null,null,u)};c.find=function(B,e,C){var A,y;if(!B){return[]}for(var w=0,v=j.order.length;w<v;w++){var z=j.order[w],y;if((y=j.leftMatch[z].exec(B))){var u=y[1];y.splice(1,1);if(u.substr(u.length-1)!=="\\"){y[1]=(y[1]||"").replace(/\\/g,"");A=j.find[z](y,e,C);if(A!=null){B=B.replace(j.match[z],"");break}}}}if(!A){A=e.getElementsByTagName("*")}return{set:A,expr:B}};c.filter=function(F,E,I,y){var v=F,K=[],C=E,A,e,B=E&&E[0]&&d(E[0]);while(F&&E.length){for(var D in j.filter){if((A=j.leftMatch[D].exec(F))!=null&&A[2]){var u=j.filter[D],J,H,w=A[1];e=false;A.splice(1,1);if(w.substr(w.length-1)==="\\"){continue}if(C===K){K=[]}if(j.preFilter[D]){A=j.preFilter[D](A,C,I,K,y,B);if(!A){e=J=true}else{if(A===true){continue}}}if(A){for(var z=0;(H=C[z])!=null;z++){if(H){J=u(H,A,z,C);var G=y^!!J;if(I&&J!=null){if(G){e=true}else{C[z]=false}}else{if(G){K.push(H);e=true}}}}}if(J!==undefined){if(!I){C=K}F=F.replace(j.match[D],"");if(!e){return[]}break}}}if(F===v){if(e==null){c.error(F)}else{break}}v=F}return C};c.error=function(e){throw"Syntax error, unrecognized expression: "+e};var j=c.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")}},relative:{"+":function(A,u){var w=typeof u==="string",z=w&&!/\W/.test(u),B=w&&!z;if(z){u=u.toLowerCase()}for(var v=0,e=A.length,y;v<e;v++){if((y=A[v])){while((y=y.previousSibling)&&y.nodeType!==1){}A[v]=B||y&&y.nodeName.toLowerCase()===u?y||false:y===u}}if(B){c.filter(u,A,true)}},">":function(A,u){var y=typeof u==="string";if(y&&!/\W/.test(u)){u=u.toLowerCase();for(var v=0,e=A.length;v<e;v++){var z=A[v];if(z){var w=z.parentNode;A[v]=w.nodeName.toLowerCase()===u?w:false}}}else{for(var v=0,e=A.length;v<e;v++){var z=A[v];if(z){A[v]=y?z.parentNode:z.parentNode===u}}if(y){c.filter(u,A,true)}}},"":function(w,u,z){var v=o++,e=s;if(typeof u==="string"&&!/\W/.test(u)){var y=u=u.toLowerCase();e=a}e("parentNode",u,v,w,y,z)},"~":function(w,u,z){var v=o++,e=s;if(typeof u==="string"&&!/\W/.test(u)){var y=u=u.toLowerCase();e=a}e("previousSibling",u,v,w,y,z)}},find:{ID:function(u,v,w){if(typeof v.getElementById!=="undefined"&&!w){var e=v.getElementById(u[1]);return e?[e]:[]}},NAME:function(v,z){if(typeof z.getElementsByName!=="undefined"){var u=[],y=z.getElementsByName(v[1]);for(var w=0,e=y.length;w<e;w++){if(y[w].getAttribute("name")===v[1]){u.push(y[w])}}return u.length===0?null:u}},TAG:function(e,u){return u.getElementsByTagName(e[1])}},preFilter:{CLASS:function(w,u,v,e,A,B){w=" "+w[1].replace(/\\/g,"")+" ";if(B){return w}for(var y=0,z;(z=u[y])!=null;y++){if(z){if(A^(z.className&&(" "+z.className+" ").replace(/[\t\n]/g," ").indexOf(w)>=0)){if(!v){e.push(z)}}else{if(v){u[y]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(u,e){return u[1].toLowerCase()},CHILD:function(e){if(e[1]==="nth"){var u=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(u[1]+(u[2]||1))-0;e[3]=u[3]-0}e[0]=o++;return e},ATTR:function(y,u,v,e,z,A){var w=y[1].replace(/\\/g,"");if(!A&&j.attrMap[w]){y[1]=j.attrMap[w]}if(y[2]==="~="){y[4]=" "+y[4]+" "}return y},PSEUDO:function(y,u,v,e,z){if(y[1]==="not"){if((n.exec(y[3])||"").length>1||/^\w/.test(y[3])){y[3]=c(y[3],null,null,u)}else{var w=c.filter(y[3],u,v,true^z);if(!v){e.push.apply(e,w)}return false}}else{if(j.match.POS.test(y[0])||j.match.CHILD.test(y[0])){return true}}return y},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(v,u,e){return !!c(e[3],v).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toLowerCase()==="button"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(u,e){return e===0},last:function(v,u,e,w){return u===w.length-1},even:function(u,e){return e%2===0},odd:function(u,e){return e%2===1},lt:function(v,u,e){return u<e[3]-0},gt:function(v,u,e){return u>e[3]-0},nth:function(v,u,e){return e[3]-0===u},eq:function(v,u,e){return e[3]-0===u}},filter:{PSEUDO:function(A,v,w,B){var u=v[1],y=j.filters[u];if(y){return y(A,w,v,B)}else{if(u==="contains"){return(A.textContent||A.innerText||b([A])||"").indexOf(v[3])>=0}else{if(u==="not"){var z=v[3];for(var w=0,e=z.length;w<e;w++){if(z[w]===A){return false}}return true}else{c.error("Syntax error, unrecognized expression: "+u)}}}},CHILD:function(e,w){var A=w[1],u=e;switch(A){case"only":case"first":while((u=u.previousSibling)){if(u.nodeType===1){return false}}if(A==="first"){return true}u=e;case"last":while((u=u.nextSibling)){if(u.nodeType===1){return false}}return true;case"nth":var v=w[2],D=w[3];if(v===1&&D===0){return true}var z=w[0],C=e.parentNode;if(C&&(C.sizcache!==z||!e.nodeIndex)){var y=0;for(u=C.firstChild;u;u=u.nextSibling){if(u.nodeType===1){u.nodeIndex=++y}}C.sizcache=z}var B=e.nodeIndex-D;if(v===0){return B===0}else{return(B%v===0&&B/v>=0)}}},ID:function(u,e){return u.nodeType===1&&u.getAttribute("id")===e},TAG:function(u,e){return(e==="*"&&u.nodeType===1)||u.nodeName.toLowerCase()===e},CLASS:function(u,e){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(z,w){var v=w[1],e=j.attrHandle[v]?j.attrHandle[v](z):z[v]!=null?z[v]:z.getAttribute(v),A=e+"",y=w[2],u=w[4];return e==null?y==="!=":y==="="?A===u:y==="*="?A.indexOf(u)>=0:y==="~="?(" "+A+" ").indexOf(u)>=0:!u?A&&e!==false:y==="!="?A!==u:y==="^="?A.indexOf(u)===0:y==="$="?A.substr(A.length-u.length)===u:y==="|="?A===u||A.substr(0,u.length+1)===u+"-":false},POS:function(y,u,v,z){var e=u[2],w=j.setFilters[e];if(w){return w(y,v,u,z)}}}};var i=j.match.POS;for(var f in j.match){j.match[f]=new RegExp(j.match[f].source+/(?![^\[]*\])(?![^\(]*\))/.source);j.leftMatch[f]=new RegExp(/(^(?:.|\r|\n)*?)/.source+j.match[f].source.replace(/\\(\d+)/g,function(u,e){return"\\"+(e-0+1)}))}var l=function(u,e){u=Array.prototype.slice.call(u,0);if(e){e.push.apply(e,u);return e}return u};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(t){l=function(y,w){var u=w||[];if(q.call(y)==="[object Array]"){Array.prototype.push.apply(u,y)}else{if(typeof y.length==="number"){for(var v=0,e=y.length;v<e;v++){u.push(y[v])}}else{for(var v=0;y[v];v++){u.push(y[v])}}}return u}}var p;if(document.documentElement.compareDocumentPosition){p=function(u,e){if(!u.compareDocumentPosition||!e.compareDocumentPosition){if(u==e){h=true}return u.compareDocumentPosition?-1:1}var v=u.compareDocumentPosition(e)&4?-1:u===e?0:1;if(v===0){h=true}return v}}else{if("sourceIndex" in document.documentElement){p=function(u,e){if(!u.sourceIndex||!e.sourceIndex){if(u==e){h=true}return u.sourceIndex?-1:1}var v=u.sourceIndex-e.sourceIndex;if(v===0){h=true}return v}}else{if(document.createRange){p=function(w,u){if(!w.ownerDocument||!u.ownerDocument){if(w==u){h=true}return w.ownerDocument?-1:1}var v=w.ownerDocument.createRange(),e=u.ownerDocument.createRange();v.setStart(w,0);v.setEnd(w,0);e.setStart(u,0);e.setEnd(u,0);var y=v.compareBoundaryPoints(Range.START_TO_END,e);if(y===0){h=true}return y}}}}function b(e){var u="",w;for(var v=0;e[v];v++){w=e[v];if(w.nodeType===3||w.nodeType===4){u+=w.nodeValue}else{if(w.nodeType!==8){u+=b(w.childNodes)}}}return u}(function(){var u=document.createElement("div"),v="script"+(new Date).getTime();u.innerHTML="<a name='"+v+"'/>";var e=document.documentElement;e.insertBefore(u,e.firstChild);if(document.getElementById(v)){j.find.ID=function(y,z,A){if(typeof z.getElementById!=="undefined"&&!A){var w=z.getElementById(y[1]);return w?w.id===y[1]||typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id").nodeValue===y[1]?[w]:undefined:[]}};j.filter.ID=function(z,w){var y=typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id");return z.nodeType===1&&y&&y.nodeValue===w}}e.removeChild(u);e=u=null})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){j.find.TAG=function(u,z){var y=z.getElementsByTagName(u[1]);if(u[1]==="*"){var w=[];for(var v=0;y[v];v++){if(y[v].nodeType===1){w.push(y[v])}}y=w}return y}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){j.attrHandle.href=function(u){return u.getAttribute("href",2)}}e=null})();if(document.querySelectorAll){(function(){var e=c,v=document.createElement("div");v.innerHTML="<p class='TEST'></p>";if(v.querySelectorAll&&v.querySelectorAll(".TEST").length===0){return}c=function(A,z,w,y){z=z||document;if(!y&&z.nodeType===9&&!d(z)){try{return l(z.querySelectorAll(A),w)}catch(B){}}return e(A,z,w,y)};for(var u in e){c[u]=e[u]}v=null})()}(function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}j.order.splice(1,0,"CLASS");j.find.CLASS=function(u,v,w){if(typeof v.getElementsByClassName!=="undefined"&&!w){return v.getElementsByClassName(u[1])}};e=null})();function a(u,A,z,D,B,C){for(var w=0,v=D.length;w<v;w++){var e=D[w];if(e){e=e[u];var y=false;while(e){if(e.sizcache===z){y=D[e.sizset];break}if(e.nodeType===1&&!C){e.sizcache=z;e.sizset=w}if(e.nodeName.toLowerCase()===A){y=e;break}e=e[u]}D[w]=y}}}function s(u,A,z,D,B,C){for(var w=0,v=D.length;w<v;w++){var e=D[w];if(e){e=e[u];var y=false;while(e){if(e.sizcache===z){y=D[e.sizset];break}if(e.nodeType===1){if(!C){e.sizcache=z;e.sizset=w}if(typeof A!=="string"){if(e===A){y=true;break}}else{if(c.filter(A,[e]).length>0){y=e;break}}}e=e[u]}D[w]=y}}}var k=document.compareDocumentPosition?function(u,e){return u.compareDocumentPosition(e)&16}:function(u,e){return u!==e&&(u.contains?u.contains(e):true)};var d=function(e){var u=(e?e.ownerDocument||e:0).documentElement;return u?u.nodeName!=="HTML":false};var r=function(e,B){var w=[],y="",z,v=B.nodeType?[B]:B;while((z=j.match.PSEUDO.exec(e))){y+=z[0];e=e.replace(j.match.PSEUDO,"")}e=j.relative[e]?e+"*":e;for(var A=0,u=v.length;A<u;A++){c(e,v[A],w)}return c.filter(y,w)};window.Sizzle=c})();(function(a,b){a.isParentNode=function(c,d){if(d&&typeof d.parentNode!=="undefined"){if(d.parentNode===c){return true}return a.isParentNode(c,d.parentNode)}return false};a.dateRangeInput=function(d,c,g){var h;var f;var e;h=new dhtmlxDblCalendarObject(d,false,{dateFormat:"%Y-%m-%d",isMonthEditable:true,isYearEditable:true,weekstart:1,holidays:["2009-09-16"],yearsRange:[2009,2020]});h.loadUserLanguage("lt");h.leftCalendar.attachEvent("onClick",function(){c.value=""+(h.leftCalendar.selDate[h.leftCalendar._activeConInd()].getTime()/1000)});h.rightCalendar.attachEvent("onClick",function(){g.value=""+(h.rightCalendar.selDate[h.rightCalendar._activeConInd()].getTime()/1000)});f=new Date();f.setTime(window.parseInt(c.value)*1000);e=new Date();e.setTime(window.parseInt(g.value)*1000);h.setDate(f,e);h.draw()};a.dateInput=function(d,c){var f;var e;f=new dhtmlxCalendarObject(d,false,{dateFormat:"%Y-%m-%d",isMonthEditable:true,isYearEditable:true,weekstart:1,holidays:["2009-09-16"],yearsRange:[2009,2020]});f.loadUserLanguage("lt");f.attachEvent("onClick",function(){c.value=""+(f.selDate[f._activeConInd()].getTime()/1000)});e=new Date();e.setTime(window.parseInt(c.value)*1000);f.setDate(e);f.draw()};b.tag.onready(function(){var d,i,h,f,e,c,g;d={slideshowLabel:a.cfg._[a.cfg.lang].slideshow,previousLabel:a.cfg._[a.cfg.lang].previous,nextLabel:a.cfg._[a.cfg.lang].next,closeLabel:a.cfg._[a.cfg.lang].close,buttonClass:"lightbox-navigation",onBackgroundColor:"#405b87",offBackgroundColor:"#5375ae",onForegroundColor:"#dddddd",offForegroundColor:"#ffffff",roundRadius:5,curtainColor:"#000000",buttonWidth:99,buttonHeight:25,buttonMargin:3,buttonBottom:28,scrollbar:false,slideshowButtonWidth:99,frameMinWidth:547,imageMargin:10,slideshowTime:2000};b.tag.body.attachListener("keydown",function(j){if(j.data===18){g=true}});b.tag.body.attachListener("keyup",function(j){if(j.data===18){g=false}});i=function(k,j){if(g){return}if(j.data===27){k.close();j.preventDefault();j.stopPropagation();return false}else{if(j.data===37||j.data===38||j.data===33){if(k.isOpen()){k.goToPrevious();j.preventDefault();j.stopPropagation();return false}}else{if(j.data===39||j.data===40||j.data===34||j.data===13){if(k.isOpen()){k.goToNext();j.preventDefault();j.stopPropagation();return false}}}}};f=null;c=Sizzle("."+a.cfg.style_classes.page_content);e=(c.length>0)?Sizzle("."+a.cfg.style_classes.page_slide):[];h=b.mapIndices(c,function(n){var l,j,k;j=[];k=[];b.forEachIndex(e,function(p){if(a.isParentNode(n,p)){var o;if(b.someIndices(p.className.split(" "),function(q){if(q.indexOf("x")>0){var r;r=q.split("x");r=[window.parseInt(r[0]),window.parseInt(r[1])];if(q===r[0]+"x"+r[1]){o=b.Pair.fromArray(r);return true}}})){j.push(p.href||"");k.push(o);o=j.length-1;b.tag(p).attachListener("click",function(q){f=l;l.goTo(o);q.stopPropagation();q.preventDefault();return false})}}});l=new b.Lightbox(d,j,k,{src:a.cfg.baseURL+"/sprites/ajax-loader.gif",dimensions:[32,32]},b.LightboxMaximalFrameSizeStrategy);return l});b.tag.body.attachListener("keypress",function(j){if(f!==null){return i(f,j)}})})})(window.EVE,window.funjes);window.dhx_globalImgPath="./dhtmlxcalendar/imgs/";if(typeof window.dhtmlxCalendarLangModules!=="object"){window.dhtmlxCalendarLangModules={}}dhtmlxCalendarLangModules.lt={langname:"lt",dateformat:"%Y-%m-%d",monthesFNames:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],monthesSNames:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd"],daysFNames:["Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis","Sekmadienis"],daysSNames:["Pr","A","T","K","Pn","Š","S"],weekend:[0,6],weekstart:1,msgClose:"Uždaryti",msgMinimize:"Sumažinti",msgToday:"Šiandien"};dhtmlx=function(c){for(var b in c){dhtmlx[b]=c[b]}return dhtmlx};dhtmlx.extend_api=function(a,d,c){var b=window[a];if(!b){return}window[a]=function(g){if(g&&typeof g=="object"&&!g.tagName&&!(g instanceof Array)){var f=b.apply(this,(d._init?d._init(g):arguments));for(var e in dhtmlx){if(d[e]){this[d[e]](dhtmlx[e])}}for(var e in g){if(d[e]){this[d[e]](g[e])}else{if(e.indexOf("on")==0){this.attachEvent(e,g[e])}}}}else{var f=b.apply(this,arguments)}if(d._patch){d._patch(this)}return f||this};window[a].prototype=b.prototype;if(c){dhtmlXHeir(window[a].prototype,c)}};dhtmlxAjax={get:function(a,c){var b=new dtmlXMLLoaderObject(true);b.async=(arguments.length<3);b.waitCall=c;b.loadXML(a);return b},post:function(a,c,d){var b=new dtmlXMLLoaderObject(true);b.async=(arguments.length<4);b.waitCall=d;b.loadXML(a,true,c);return b},getSync:function(a){return this.get(a,null,true)},postSync:function(a,b){return this.post(a,b,null,true)}};function dtmlXMLLoaderObject(b,d,c,a){this.xmlDoc="";if(typeof(c)!="undefined"){this.async=c}else{this.async=true}this.onloadAction=b||null;this.mainObject=d||null;this.waitCall=null;this.rSeed=a||false;return this}dtmlXMLLoaderObject.prototype.waitLoadFunction=function(b){var a=true;this.check=function(){if((b)&&(b.onloadAction!=null)){if((!b.xmlDoc.readyState)||(b.xmlDoc.readyState==4)){if(!a){return}a=false;if(typeof b.onloadAction=="function"){b.onloadAction(b.mainObject,null,null,null,b)}if(b.waitCall){b.waitCall.call(this,b);b.waitCall=null}}}};return this.check};dtmlXMLLoaderObject.prototype.getXMLTopNode=function(c,a){if(this.xmlDoc.responseXML){var b=this.xmlDoc.responseXML.getElementsByTagName(c);if(b.length==0&&c.indexOf(":")!=-1){var b=this.xmlDoc.responseXML.getElementsByTagName((c.split(":"))[1])}var e=b[0]}else{var e=this.xmlDoc.documentElement}if(e){this._retry=false;return e}if((_isIE)&&(!this._retry)){var d=this.xmlDoc.responseText;var a=this.xmlDoc;this._retry=true;this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=false;this.xmlDoc.loadXML(d);return this.getXMLTopNode(c,a)}dhtmlxError.throwError("LoadXML","Incorrect XML",[(a||this.xmlDoc),this.mainObject]);return document.createElement("DIV")};dtmlXMLLoaderObject.prototype.loadXMLString=function(b){try{var c=new DOMParser();this.xmlDoc=c.parseFromString(b,"text/xml")}catch(a){this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=this.async;this.xmlDoc.loadXML(b)}this.onloadAction(this.mainObject,null,null,null,this);if(this.waitCall){this.waitCall();this.waitCall=null}};dtmlXMLLoaderObject.prototype.loadXML=function(c,b,a,d){if(this.rSeed){c+=((c.indexOf("?")!=-1)?"&":"?")+"a_dhx_rSeed="+(new Date()).valueOf()}this.filePath=c;if((!_isIE)&&(window.XMLHttpRequest)){this.xmlDoc=new XMLHttpRequest()}else{if(document.implementation&&document.implementation.createDocument){this.xmlDoc=document.implementation.createDocument("","",null);this.xmlDoc.onload=new this.waitLoadFunction(this);this.xmlDoc.load(c);return}else{this.xmlDoc=new ActiveXObject("Microsoft.XMLHTTP")}}if(this.async){this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this)}this.xmlDoc.open(b?"POST":"GET",c,this.async);if(d){this.xmlDoc.setRequestHeader("User-Agent","dhtmlxRPC v0.1 ("+navigator.userAgent+")");this.xmlDoc.setRequestHeader("Content-type","text/xml")}else{if(b){this.xmlDoc.setRequestHeader("Content-type","application/x-www-form-urlencoded")}}this.xmlDoc.setRequestHeader("X-Requested-With","XMLHttpRequest");this.xmlDoc.send(null||a);if(!this.async){(new this.waitLoadFunction(this))()}};dtmlXMLLoaderObject.prototype.destructor=function(){this.onloadAction=null;this.mainObject=null;this.xmlDoc=null;return null};dtmlXMLLoaderObject.prototype.xmlNodeToJSON=function(d){var c={};for(var b=0;b<d.attributes.length;b++){c[d.attributes[b].name]=d.attributes[b].value}c._tagvalue=d.firstChild?d.firstChild.nodeValue:"";for(var b=0;b<d.childNodes.length;b++){var a=d.childNodes[b].tagName;if(a){if(!c[a]){c[a]=[]}c[a].push(this.xmlNodeToJSON(d.childNodes[b]))}}return c};function callerFunction(a,b){this.handler=function(c){if(!c){c=window.event}a(c,b);return true};return this.handler}function getAbsoluteLeft(a){return getOffset(a).left}function getAbsoluteTop(a){return getOffset(a).top}function getOffsetSum(a){var c=0,b=0;while(a){c=c+parseInt(a.offsetTop);b=b+parseInt(a.offsetLeft);a=a.offsetParent}return{top:c,left:b}}function getOffsetRect(d){var g=d.getBoundingClientRect();var h=document.body;var b=document.documentElement;var a=window.pageYOffset||b.scrollTop||h.scrollTop;var e=window.pageXOffset||b.scrollLeft||h.scrollLeft;var f=b.clientTop||h.clientTop||0;var i=b.clientLeft||h.clientLeft||0;var j=g.top+a-f;var c=g.left+e-i;return{top:Math.round(j),left:Math.round(c)}}function getOffset(a){if(a.getBoundingClientRect&&!_isChrome){return getOffsetRect(a)}else{return getOffsetSum(a)}}function convertStringToBoolean(a){if(typeof(a)=="string"){a=a.toLowerCase()}switch(a){case"1":case"true":case"yes":case"y":case 1:case true:return true;break;default:return false}}function getUrlSymbol(a){if(a.indexOf("?")!=-1){return"&"}else{return"?"}}function dhtmlDragAndDropObject(){if(window.dhtmlDragAndDrop){return window.dhtmlDragAndDrop}this.lastLanding=0;this.dragNode=0;this.dragStartNode=0;this.dragStartObject=0;this.tempDOMU=null;this.tempDOMM=null;this.waitDrag=0;window.dhtmlDragAndDrop=this;return this}dhtmlDragAndDropObject.prototype.removeDraggableItem=function(a){a.onmousedown=null;a.dragStarter=null;a.dragLanding=null};dhtmlDragAndDropObject.prototype.addDraggableItem=function(a,b){a.onmousedown=this.preCreateDragCopy;a.dragStarter=b;this.addDragLanding(a,b)};dhtmlDragAndDropObject.prototype.addDragLanding=function(a,b){a.dragLanding=b};dhtmlDragAndDropObject.prototype.preCreateDragCopy=function(a){if((a||event)&&(a||event).button==2){return}if(window.dhtmlDragAndDrop.waitDrag){window.dhtmlDragAndDrop.waitDrag=0;document.body.onmouseup=window.dhtmlDragAndDrop.tempDOMU;document.body.onmousemove=window.dhtmlDragAndDrop.tempDOMM;return false}window.dhtmlDragAndDrop.waitDrag=1;window.dhtmlDragAndDrop.tempDOMU=document.body.onmouseup;window.dhtmlDragAndDrop.tempDOMM=document.body.onmousemove;window.dhtmlDragAndDrop.dragStartNode=this;window.dhtmlDragAndDrop.dragStartObject=this.dragStarter;document.body.onmouseup=window.dhtmlDragAndDrop.preCreateDragCopy;document.body.onmousemove=window.dhtmlDragAndDrop.callDrag;window.dhtmlDragAndDrop.downtime=new Date().valueOf();if((a)&&(a.preventDefault)){a.preventDefault();return false}return false};dhtmlDragAndDropObject.prototype.callDrag=function(c){if(!c){c=window.event}dragger=window.dhtmlDragAndDrop;if((new Date()).valueOf()-dragger.downtime<100){return}if((c.button==0)&&(_isIE)){return dragger.stopDrag()}if(!dragger.dragNode&&dragger.waitDrag){dragger.dragNode=dragger.dragStartObject._createDragNode(dragger.dragStartNode,c);if(!dragger.dragNode){return dragger.stopDrag()}dragger.dragNode.onselectstart=function(){return false};dragger.gldragNode=dragger.dragNode;document.body.appendChild(dragger.dragNode);document.body.onmouseup=dragger.stopDrag;dragger.waitDrag=0;dragger.dragNode.pWindow=window;dragger.initFrameRoute()}if(dragger.dragNode.parentNode!=window.document.body){var a=dragger.gldragNode;if(dragger.gldragNode.old){a=dragger.gldragNode.old}a.parentNode.removeChild(a);var b=dragger.dragNode.pWindow;if(_isIE){var f=document.createElement("Div");f.innerHTML=dragger.dragNode.outerHTML;dragger.dragNode=f.childNodes[0]}else{dragger.dragNode=dragger.dragNode.cloneNode(true)}dragger.dragNode.pWindow=window;dragger.gldragNode.old=dragger.dragNode;document.body.appendChild(dragger.dragNode);b.dhtmlDragAndDrop.dragNode=dragger.dragNode}dragger.dragNode.style.left=c.clientX+15+(dragger.fx?dragger.fx*(-1):0)+(document.body.scrollLeft||document.documentElement.scrollLeft)+"px";dragger.dragNode.style.top=c.clientY+3+(dragger.fy?dragger.fy*(-1):0)+(document.body.scrollTop||document.documentElement.scrollTop)+"px";if(!c.srcElement){var d=c.target}else{d=c.srcElement}dragger.checkLanding(d,c)};dhtmlDragAndDropObject.prototype.calculateFramePosition=function(e){if(window.name){var c=parent.frames[window.name].frameElement.offsetParent;var d=0;var b=0;while(c){d+=c.offsetLeft;b+=c.offsetTop;c=c.offsetParent}if((parent.dhtmlDragAndDrop)){var a=parent.dhtmlDragAndDrop.calculateFramePosition(1);d+=a.split("_")[0]*1;b+=a.split("_")[1]*1}if(e){return d+"_"+b}else{this.fx=d}this.fy=b}return"0_0"};dhtmlDragAndDropObject.prototype.checkLanding=function(b,a){if((b)&&(b.dragLanding)){if(this.lastLanding){this.lastLanding.dragLanding._dragOut(this.lastLanding)}this.lastLanding=b;this.lastLanding=this.lastLanding.dragLanding._dragIn(this.lastLanding,this.dragStartNode,a.clientX,a.clientY,a);this.lastLanding_scr=(_isIE?a.srcElement:a.target)}else{if((b)&&(b.tagName!="BODY")){this.checkLanding(b.parentNode,a)}else{if(this.lastLanding){this.lastLanding.dragLanding._dragOut(this.lastLanding,a.clientX,a.clientY,a)}this.lastLanding=0;if(this._onNotFound){this._onNotFound()}}}};dhtmlDragAndDropObject.prototype.stopDrag=function(b,c){dragger=window.dhtmlDragAndDrop;if(!c){dragger.stopFrameRoute();var a=dragger.lastLanding;dragger.lastLanding=null;if(a){a.dragLanding._drag(dragger.dragStartNode,dragger.dragStartObject,a,(_isIE?event.srcElement:b.target))}}dragger.lastLanding=null;if((dragger.dragNode)&&(dragger.dragNode.parentNode==document.body)){dragger.dragNode.parentNode.removeChild(dragger.dragNode)}dragger.dragNode=0;dragger.gldragNode=0;dragger.fx=0;dragger.fy=0;dragger.dragStartNode=0;dragger.dragStartObject=0;document.body.onmouseup=dragger.tempDOMU;document.body.onmousemove=dragger.tempDOMM;dragger.tempDOMU=null;dragger.tempDOMM=null;dragger.waitDrag=0};dhtmlDragAndDropObject.prototype.stopFrameRoute=function(c){if(c){window.dhtmlDragAndDrop.stopDrag(1,1)}for(var a=0;a<window.frames.length;a++){try{if((window.frames[a]!=c)&&(window.frames[a].dhtmlDragAndDrop)){window.frames[a].dhtmlDragAndDrop.stopFrameRoute(window)}}catch(b){}}try{if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=c)){parent.dhtmlDragAndDrop.stopFrameRoute(window)}}catch(b){}};dhtmlDragAndDropObject.prototype.initFrameRoute=function(c,d){if(c){window.dhtmlDragAndDrop.preCreateDragCopy();window.dhtmlDragAndDrop.dragStartNode=c.dhtmlDragAndDrop.dragStartNode;window.dhtmlDragAndDrop.dragStartObject=c.dhtmlDragAndDrop.dragStartObject;window.dhtmlDragAndDrop.dragNode=c.dhtmlDragAndDrop.dragNode;window.dhtmlDragAndDrop.gldragNode=c.dhtmlDragAndDrop.dragNode;window.document.body.onmouseup=window.dhtmlDragAndDrop.stopDrag;window.waitDrag=0;if(((!_isIE)&&(d))&&((!_isFF)||(_FFrv<1.8))){window.dhtmlDragAndDrop.calculateFramePosition()}}try{if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=c)){parent.dhtmlDragAndDrop.initFrameRoute(window)}}catch(b){}for(var a=0;a<window.frames.length;a++){try{if((window.frames[a]!=c)&&(window.frames[a].dhtmlDragAndDrop)){window.frames[a].dhtmlDragAndDrop.initFrameRoute(window,((!c||d)?1:0))}}catch(b){}}};var _isFF=false;var _isIE=false;var _isOpera=false;var _isKHTML=false;var _isMacOS=false;var _isChrome=false;if(navigator.userAgent.indexOf("Macintosh")!=-1){_isMacOS=true}if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){_isChrome=true}if((navigator.userAgent.indexOf("Safari")!=-1)||(navigator.userAgent.indexOf("Konqueror")!=-1)){var _KHTMLrv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf("Safari")+7,5));if(_KHTMLrv>525){_isFF=true;var _FFrv=1.9}else{_isKHTML=true}}else{if(navigator.userAgent.indexOf("Opera")!=-1){_isOpera=true;_OperaRv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf("Opera")+6,3))}else{if(navigator.appName.indexOf("Microsoft")!=-1){_isIE=true;if(navigator.appVersion.indexOf("MSIE 8.0")!=-1&&document.compatMode!="BackCompat"){_isIE=8}}else{_isFF=true;var _FFrv=parseFloat(navigator.userAgent.split("rv:")[1])}}}dtmlXMLLoaderObject.prototype.doXPath=function(c,e,d,i){if(_isKHTML||(!_isIE&&!window.XPathResult)){return this.doXPathOpera(c,e)}if(_isIE){if(!e){if(!this.xmlDoc.nodeName){e=this.xmlDoc.responseXML}else{e=this.xmlDoc}}if(!e){dhtmlxError.throwError("LoadXML","Incorrect XML",[(e||this.xmlDoc),this.mainObject])}if(d!=null){e.setProperty("SelectionNamespaces","xmlns:xsl='"+d+"'")}if(i=="single"){return e.selectSingleNode(c)}else{return e.selectNodes(c)||new Array(0)}}else{var a=e;if(!e){if(!this.xmlDoc.nodeName){e=this.xmlDoc.responseXML}else{e=this.xmlDoc}}if(!e){dhtmlxError.throwError("LoadXML","Incorrect XML",[(e||this.xmlDoc),this.mainObject])}if(e.nodeName.indexOf("document")!=-1){a=e}else{a=e;e=e.ownerDocument}var g=XPathResult.ANY_TYPE;if(i=="single"){g=XPathResult.FIRST_ORDERED_NODE_TYPE}var f=new Array();var b=e.evaluate(c,a,function(j){return d},g,null);if(g==XPathResult.FIRST_ORDERED_NODE_TYPE){return b.singleNodeValue}var h=b.iterateNext();while(h){f[f.length]=h;h=b.iterateNext()}return f}};function _dhtmlxError(b,a,c){if(!this.catches){this.catches=new Array()}return this}_dhtmlxError.prototype.catchError=function(b,a){this.catches[b]=a};_dhtmlxError.prototype.throwError=function(b,a,c){if(this.catches[b]){return this.catches[b](b,a,c)}if(this.catches.ALL){return this.catches.ALL(b,a,c)}alert("Error type: "+arguments[0]+"\nDescription: "+arguments[1]);return null};window.dhtmlxError=new _dhtmlxError();dtmlXMLLoaderObject.prototype.doXPathOpera=function(c,a){var e=c.replace(/[\/]+/gi,"/").split("/");var d=null;var b=1;if(!e.length){return[]}if(e[0]=="."){d=[a]}else{if(e[0]==""){d=(this.xmlDoc.responseXML||this.xmlDoc).getElementsByTagName(e[b].replace(/\[[^\]]*\]/g,""));b++}else{return[]}}for(b;b<e.length;b++){d=this._getAllNamedChilds(d,e[b])}if(e[b-1].indexOf("[")!=-1){d=this._filterXPath(d,e[b-1])}return d};dtmlXMLLoaderObject.prototype._filterXPath=function(e,d){var g=new Array();var d=d.replace(/[^\[]*\[\@/g,"").replace(/[\[\]\@]*/g,"");for(var f=0;f<e.length;f++){if(e[f].getAttribute(d)){g[g.length]=e[f]}}return g};dtmlXMLLoaderObject.prototype._getAllNamedChilds=function(e,d){var h=new Array();if(_isKHTML){d=d.toUpperCase()}for(var g=0;g<e.length;g++){for(var f=0;f<e[g].childNodes.length;f++){if(_isKHTML){if(e[g].childNodes[f].tagName&&e[g].childNodes[f].tagName.toUpperCase()==d){h[h.length]=e[g].childNodes[f]}}else{if(e[g].childNodes[f].tagName==d){h[h.length]=e[g].childNodes[f]}}}}return h};function dhtmlXHeir(e,d){for(var f in d){if(typeof(d[f])=="function"){e[f]=d[f]}}return e}function dhtmlxEvent(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)}else{if(b.attachEvent){b.attachEvent("on"+c,a)}}}dtmlXMLLoaderObject.prototype.xslDoc=null;dtmlXMLLoaderObject.prototype.setXSLParamValue=function(b,c,d){if(!d){d=this.xslDoc}if(d.responseXML){d=d.responseXML}var a=this.doXPath("/xsl:stylesheet/xsl:variable[@name='"+b+"']",d,"http://www.w3.org/1999/XSL/Transform","single");if(a!=null){a.firstChild.nodeValue=c}};dtmlXMLLoaderObject.prototype.doXSLTransToObject=function(d,b){if(!d){d=this.xslDoc}if(d.responseXML){d=d.responseXML}if(!b){b=this.xmlDoc}if(b.responseXML){b=b.responseXML}if(!_isIE){if(!this.XSLProcessor){this.XSLProcessor=new XSLTProcessor();this.XSLProcessor.importStylesheet(d)}var a=this.XSLProcessor.transformToDocument(b)}else{var a=new ActiveXObject("Msxml2.DOMDocument.3.0");try{b.transformNodeToObject(d,a)}catch(c){a=b.transformNode(d)}}return a};dtmlXMLLoaderObject.prototype.doXSLTransToString=function(c,b){var a=this.doXSLTransToObject(c,b);if(typeof(a)=="string"){return a}return this.doSerialization(a)};dtmlXMLLoaderObject.prototype.doSerialization=function(b){if(!b){b=this.xmlDoc}if(b.responseXML){b=b.responseXML}if(!_isIE){var a=new XMLSerializer();return a.serializeToString(b)}else{return b.xml}};dhtmlxEventable=function(obj){obj.dhx_SeverCatcherPath="";obj.attachEvent=function(name,catcher,callObj){name="ev_"+name.toLowerCase();if(!this[name]){this[name]=new this.eventCatcher(callObj||this)}return(name+":"+this[name].addEvent(catcher))};obj.callEvent=function(name,arg0){name="ev_"+name.toLowerCase();if(this[name]){return this[name].apply(this,arg0)}return true};obj.checkEvent=function(name){return(!!this["ev_"+name.toLowerCase()])};obj.eventCatcher=function(obj){var dhx_catch=[];var z=function(){var res=true;for(var i=0;i<dhx_catch.length;i++){if(dhx_catch[i]!=null){var zr=dhx_catch[i].apply(obj,arguments);res=res&&zr}}return res};z.addEvent=function(ev){if(typeof(ev)!="function"){ev=eval(ev)}if(ev){return dhx_catch.push(ev)-1}return false};z.removeEvent=function(id){dhx_catch[id]=null};return z};obj.detachEvent=function(id){if(id!=false){var list=id.split(":");this[list[0]].removeEvent(list[1])}}};function dhtmlxDblCalendarObject(e,d,c){this.scriptName="dhtmlxcalendar.js";this.entObj=document.createElement("DIV");this.winHeader=null;this.style="dhtmlxdblcalendar";this.uid="sc&dblCal"+Math.round(1000000*Math.random());this.numLoaded=2;this.options={isWinHeader:false,headerText:"dhtmlxDblCalendarObject",headerButtons:"",isWinDrag:false,msgClose:"Close",msgMinimize:"Minimize",msgToday:"Today",msgClear:"Clear"};if(c){for(x in c){this.options[x]=c[x]}}this.entBox=document.createElement("TABLE");this.entBox.cellPadding="0px";this.entBox.cellSpacing="0px";this.entBox.className=this.style;this.entObj.appendChild(this.entBox);var g=this.entBox.insertRow(0);var b=g.insertCell(0);b.style.paddingRight="2px";var f=g.insertCell(1);this.leftCalendar=new dhtmlxCalendarObject(b,false,this.options);this.leftCalendar._dblC=this;this.leftCalendar.setOnClickHandler(this.doOnCLeftClick);this.rightCalendar=new dhtmlxCalendarObject(f,false,this.options);this.rightCalendar._dblC=this;this.rightCalendar.setOnClickHandler(this.doOnCRightClick);this.doOnClick=null;this.onLanguageLoaded=null;this.getPosition=this.leftCalendar.getPosition;this.startDrag=this.leftCalendar.startDrag;this.stopDrag=this.leftCalendar.stopDrag;this.onDrag=this.leftCalendar.onDrag;this.drawHeader=this.leftCalendar.drawHeader;dhtmlxEventable(this);var a=this;if(typeof(e)!="string"){this.con=e}else{this.con=document.getElementById(e)}if(d){this.draw()}}dhtmlXDblCalendarObject=dhtmlxDblCalendarObject;dhtmlxDblCalendarObject.prototype.setHeader=function(a,c,b){this.leftCalendar.options.isWinHeader=this.options.isWinHeader=a;this.leftCalendar.options.isWinDrag=this.options.isWinDrag=c;if(b){this.options.headerButtons=this.leftCalendar.options.headerButtons=b}if(this.isAutoDraw){this.drawHeader()}};dhtmlxDblCalendarObject.prototype.setYearsRange=function(e,a){var c=[this.leftCalendar,this.rightCalendar];for(var d=0;d<c.length;d++){c[d].options.yearsRange=[parseInt(e),parseInt(a)];c[d].allYears=[];for(var b=e;b<=a;b++){c[d].allYears.push(b)}}};dhtmlxDblCalendarObject.prototype.show=function(){this.parent.style.display="block"};dhtmlxDblCalendarObject.prototype.hide=function(){this.parent.style.display="none"};dhtmlxDblCalendarObject.prototype.createStructure=function(){if(this.options.isWinHeader){var a=this.entBox.insertRow(0).insertCell(0);a.colSpan=2;a.align="right";this.winHeader=document.createElement("DIV");a.appendChild(this.winHeader)}this.setParent(this.con)};dhtmlxDblCalendarObject.prototype.draw=function(){if(!this.parent){this.createStructure()}this.drawHeader();this.leftCalendar.draw();this.rightCalendar.draw();this.isAutoDraw=true};dhtmlxDblCalendarObject.prototype.loadUserLanguage=function(b,a){this.numLoaded=0;if(a){this.onLanguageLoaded=a}this.leftCalendar.loadUserLanguage(b,this.languageLoaded);this.rightCalendar.loadUserLanguage(b,this.languageLoaded)};dhtmlxDblCalendarObject.prototype.languageLoaded=function(a){var b=this._dblC;b.numLoaded++;if(b.numLoaded==2){for(param in this.options){b.options[param]=this.options[param]}if(this.isAutoDraw){b.drawHeader()}if(b.onLanguageLoaded){b.onLanguageLoaded(a)}}};dhtmlxDblCalendarObject.prototype.setParent=function(a){if(a){this.parent=a;this.parent.style.display="block";this.parent.appendChild(this.entObj)}};dhtmlxDblCalendarObject.prototype.setOnClickHandler=function(a){this.doOnClick=a};dhtmlxDblCalendarObject.prototype.doOnCLeftClick=function(a){a=new Date(a);this._dblC.rightCalendar.setSensitive(a,null);if(this._dblC.doOnClick){this._dblC.doOnClick(a,this,"left")}return true};dhtmlxDblCalendarObject.prototype.doOnCRightClick=function(a){this._dblC.leftCalendar.setSensitive(null,a);if(this._dblC.doOnClick){this._dblC.doOnClick(a,this,"right")}return true};dhtmlxDblCalendarObject.prototype.setSensitive=function(){this.rightCalendar.setSensitive(null,this.leftCalendar.date[0]);this.leftCalendar.setSensitive(this.rightCalendar.date[0],null)};dhtmlxDblCalendarObject.prototype.minimize=function(){if(!this.winHeader){return}var a=this.winHeader.parentNode.parentNode.nextSibling;a.parentNode.parentNode.style.width=parseInt(a.parentNode.parentNode.offsetWidth)+"px";if(a){a.style.display=(a.style.display=="none")?"block":"none"}};dhtmlxDblCalendarObject.prototype.setDate=function(b,a){this.leftCalendar.setDate(b);this.rightCalendar.setDate(a);this.leftCalendar.setSensitive(null,this.rightCalendar.date[0]);this.rightCalendar.setSensitive(this.leftCalendar.date[0],null)};dhtmlxDblCalendarObject.prototype.setDateFormat=function(a){this.leftCalendar.setDateFormat(a);this.rightCalendar.setDateFormat(a)};dhtmlxDblCalendarObject.prototype.isVisible=function(){return(this.parent.style.display=="block"?true:false)};dhtmlxDblCalendarObject.prototype.setHolidays=function(a){this.leftCalendar.setHolidays(a);this.rightCalendar.setHolidays(a)};function dhtmlxCalendarObject(base,isAutoDraw,options){if(typeof(base)=="object"&&base.parent){options={};for(i in base){options[i]=base[i]}}this.isAutoDraw=base.autoDraw||isAutoDraw||false;this.contId=base.parent||base;this.scriptName="dhtmlxcalendar.js";this.date=[this.cutTime(new Date())];this.selDate=[this.cutTime(new Date())];this.curDate=this.cutTime(new Date());this.entObj=document.createElement("DIV");this.monthPan=document.createElement("TABLE");this.dlabelPan=document.createElement("TABLE");this.daysPan=document.createElement("TABLE");this.parent=null;this.style="dhtmlxcalendar";this.skinName=dhtmlx.skin||"";this.doOnClick=null;this.sensitiveFrom=null;this.sensitiveTo=null;this.insensitiveDates=null;this.activeCell=null;this.hotCell=null;this.winHeader=null;this.onLanguageLoaded=null;this.dragging=false;this.minimized=false;this.uid="sc&Cal"+Math.round(1000000*Math.random());this.holidays=null;this.time=false;this.daysCells={};this.weekCells={};this.con=[];this.conInd=[];this.activeCon=null;this.activeConInd=0;this.userPosition=false;this.useIframe=true;this._c=this;dhtmlxEventable(this);this.options={btnPrev:"&laquo;",btnBgPrev:null,btnNext:"&raquo;",btnBgNext:null,yearsRange:[1900,2100],isMonthEditable:false,isYearEditable:false,isWinHeader:false,headerText:"Calendar header",headerButtons:"TMX",isWinDrag:true};defLeng={langname:"en-us",dateformat:"%Y-%m-%d",monthesFNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthesSNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],daysFNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysSNames:["Su","Mo","Tu","We","Th","Fr","Sa"],weekend:[0,6],weekstart:0,msgClose:"Close",msgMinimize:"Minimize",msgToday:"Today",msgClear:"Clear"};if(!window.dhtmlxCalendarLangModules){window.dhtmlxCalendarLangModules={}}window.dhtmlxCalendarLangModules["en-us"]=defLeng;if(window.dhtmlxCalendarObjects){window.dhtmlxCalendarObjects.push(this)}else{window.dhtmlxCalendarObjects=[this]}dhtmlxEvent(document.body,"click",function(ev){for(cal in window.dhtmlxCalendarObjects){if(!isNaN(cal)){var wCal=window.dhtmlxCalendarObjects[cal];if(wCal.con[0].nodeName=="INPUT"){wCal.hide()}}}});for(lg in defLeng){this.options[lg]=defLeng[lg]}if(options){for(param in options){this.options[param]=options[param]}}this.loadUserLanguage();if(options){for(param in options){this.options[param]=options[param]}}this.allYears=Array();with(this.options){for(var i=yearsRange[0];i<=yearsRange[1];i++){this.allYears.push(i)}}if(isAutoDraw!==false){this.draw(options)}return this}dhtmlXCalendarObject=dhtmlxCalendarObject;dhtmlxCalendarObject.prototype={createStructure:function(){var self=this;if(!this.entObj.className){this.setSkin(this.skinName)}this.entObj.style.position="relative";if(this.options.isWinHeader){this.winHeader=document.createElement("DIV");this.entObj.appendChild(this.winHeader)}this.entBox=document.createElement("TABLE");this.entBox.className="entbox";with(this.entBox){cellPadding="0px";cellSpacing="0px";width="100%"}this.entObj.appendChild(this.entBox);var monthBox=this.entBox.insertRow(0).insertCell(0);with(this.monthPan){cellPadding="0px";cellSpacing="0px";width="100%";align="center"}this.monthPan.className="dxcalmonth";monthBox.appendChild(this.monthPan);var dlabelBox=this.entBox.insertRow(1).insertCell(0);dlabelBox.appendChild(this.dlabelPan);with(this.dlabelPan){cellPadding="0px";cellSpacing="0px";width="100%";align="center"}this.dlabelPan.className="dxcaldlabel";var daysBox=this.entBox.insertRow(2).insertCell(0);daysBox.appendChild(this.daysPan);with(this.daysPan){cellPadding="1px";cellSpacing="0px";width="100%";align="center"}if(_isIE||_isKHTML){this.daysPan.className="dxcaldays_ie"}else{this.daysPan.className="dxcaldays"}this.daysPan.onmousemove=function(e){self.doHotKeys(e)};this.daysPan.onmouseout=function(){self.endHotKeys()};if(typeof(this.contId)!="string"){if(!this.contId.nodeName){for(var i=0;i<this.contId.length;i++){this.con[i]=document.getElementById(this.contId[i]);this.selDate[i]=this.cutTime(new Date());this.conInd[this.contId[i]]=i}}else{this.con[0]=this.contId;this.conInd[this.contId.id]=0}}else{this.con[0]=document.getElementById(this.contId);this.conInd[this.contId]=0}this.activeCon=this.con[0];if(this.con[0].nodeName=="INPUT"){var div=document.createElement("DIV");with(div.style){position="absolute";display="none";zIndex=101}this.setParent(div);document.body.appendChild(div);conOnclick=function(e){if(self.isVisible()){self.hide()}else{self.activeCon=this;if(this.value){if(self.time){var val=this.value.split(" ");self.setFormatedTime(null,val[1]);self.setDate(self.getFormatedDate(val[0]))}else{self.setDate(self.getFormatedDate(this.value))}}self.show(this.id);self.draw()}if(this.id!=self.activeCon.id){self.show(this.id);self.draw()}(e||event).cancelBubble=true};this.doOnClick=function(date){self.hide();self.activeCon.focus();return true};conOnkeydown=function(e){if((e||window.event).keyCode==27){self.hide()}else{if((e||window.event).keyCode==13){self.show()}}};for(i in this.con){this.con[i].onclick=conOnclick;this.con[i].onkeydown=conOnkeydown}}else{this.setParent(this.con[0])}if(_isIE&&this.useIframe){if(this.parent.style.zIndex==0){this.parent.style.zIndex=100}if(this.ifr==undefined&&this._dblC==undefined){this.ifr=document.createElement("IFRAME");this.ifr.src="javascript:false;";this.ifr.style.position="absolute";this.ifr.style.zIndex=1;this.ifr.frameBorder="no";this.ifr.style.top=getAbsoluteTop(this.entObj)+"px";this.ifr.scrolling="no";this.ifr.style.display=this.parent.style.display;this.ifr.className=this.style+(this.skinName?"_":"")+this.skinName+"_ifr";this.parent.appendChild(this.ifr)}}this.entObj.onclick=function(e){e=e||event;if(e.stopPropagation){e.stopPropagation()}else{e.cancelBubble=true}};if(!this.entObj.className){this.setSkin(this.skinName)}},drawHeader:function(){if(this._dblC||!this.options.isWinHeader||!this.winHeader){return}var b=this;while(this.winHeader.hasChildNodes()){this.winHeader.removeChild(this.winHeader.firstChild)}this.winHeader.className="winHeader";this.winHeader.onselectstart=function(){return false};this.headerLabel=document.createElement("div");this.headerLabel.className="winTitle";this.headerLabel.appendChild(document.createTextNode(this.options.headerText));this.headerLabel.setAttribute("title",this.options.headerText);this.winHeader.appendChild(this.headerLabel);if(this.options.isWinDrag){this.winHeader.onmousedown=function(f){b.startDrag(f)}}if(this.options.headerButtons.indexOf("X")>=0){var e=document.createElement("DIV");e.className="btn_close";e.setAttribute("title",this.options.msgClose);e.onmousedown=function(f){(f||event).cancelBubble=true};e.onclick=function(f){(f||event).cancelBubble=true;b.hide()};this.winHeader.appendChild(e)}if(this.options.headerButtons.indexOf("M")>=0){var d=document.createElement("DIV");d.className="btn_mini";d.setAttribute("title",this.options.msgMinimize);d.onmousedown=function(f){(f||event).cancelBubble=true};d.onclick=function(f){this.className=this.className=="btn_mini"?"btn_maxi":"btn_mini";(f||event).cancelBubble=true;b.minimize()};this.winHeader.appendChild(d)}if(this.options.headerButtons.indexOf("C")>=0){var a=document.createElement("DIV");a.className="btn_clear";a.setAttribute("title",this.options.msgClear);a.onmousedown=function(f){(f||event).cancelBubble=true};a.onclick=function(f){(f||event).cancelBubble=true;b.activeCon.value="";b.hide()};this.winHeader.appendChild(a)}if(this.options.headerButtons.indexOf("T")>=0){var c=document.createElement("DIV");c.className="btn_today";c.setAttribute("title",this.options.msgToday);c.onmousedown=function(f){(f||event).cancelBubble=true};c.onclick=function(f){(f||event).cancelBubble=true;b.setDate(new Date())};this.winHeader.appendChild(c)}},drawMonth:function(){var self=this;if(this.monthPan.hasChildNodes()){this.monthPan.removeChild(this.monthPan.firstChild)}var row=this.monthPan.insertRow(0);var cArLeft=row.insertCell(0);var cContent=row.insertCell(1);var cArRight=row.insertCell(2);cArLeft.align="left";cArLeft.className="month_btn_left";var btnLabel=document.createElement("div");btnLabel.innerHTML=" ";cArLeft.appendChild(btnLabel);cArLeft.onclick=function(){self.prevMonth()};cArLeft.onselectstart=function(){return false};cArRight.align="right";cArRight.className="month_btn_right";var btnLabel=document.createElement("div");btnLabel.innerHTML=" ";cArRight.appendChild(btnLabel);cArRight.onclick=function(){self.nextMonth()};cArRight.onselectstart=function(){return false};cContent.align="center";var mHeader=document.createElement("TABLE");with(mHeader){cellPadding="0px";cellSpacing="0px";align="center"}var mRow=mHeader.insertRow(0);var cMonth=mRow.insertCell(0);var cComma=mRow.insertCell(1);var cYear=mRow.insertCell(2);cContent.appendChild(mHeader);var date=this.date[0];this.planeMonth=document.createElement("DIV");this.planeMonth._c=this;this.planeMonth.appendChild(document.createTextNode(this.options.monthesFNames[date.getMonth()]));this.planeMonth.className="planeMonth";cMonth.appendChild(this.planeMonth);if(this.options.isMonthEditable){this.planeMonth.style.cursor="pointer";this.editorMonth=new dhtmlxRichSelector({nodeBefore:this.planeMonth,valueList:[0,1,2,3,4,5,6,7,8,9,10,11],titleList:this.options.monthesFNames,activeValue:this.options.monthesFNames[date.getMonth()],onSelect:this.onMonthSelect,isAllowUserValue:false});this.editorMonth._c=this}cComma.appendChild(document.createTextNode(","));cComma.className="comma";this.planeYear=document.createElement("DIV");this.planeYear._c=this;this.planeYear.appendChild(document.createTextNode(date.getFullYear()));this.planeYear.className="planeYear";cYear.appendChild(this.planeYear);if(this.options.isYearEditable){this.planeYear.style.cursor="pointer";this.editorYear=new dhtmlxRichSelector({nodeBefore:this.planeYear,valueList:this.allYears,titleList:this.allYears,activeValue:date.getFullYear(),onSelect:this.onYearSelect,isOrderedList:true,isNumbersList:true,isAllowUserValue:true});this.editorYear._c=this}},drawDayLabels:function(){var a=this;if(!this.dlabelPan.hasChildNodes()){var c=this.dlabelPan.insertRow(-1);c.className="daynames";for(var b=0;b<7;b++){(this.weekCells[b]=c.insertCell(b)).appendChild(document.createTextNode(this.getDayName(b)))}}else{for(var b=0;b<7;b++){this.weekCells[b].childNodes[0].nodeValue=this.getDayName(b)}}},drawDays:function(){var q=this;var t={},p;if(!this.daysPan.hasChildNodes()){for(var a=0;a<6;a++){t=this.daysPan.insertRow(-1);this.daysCells[a]={};for(var h=0;h<7;h++){(this.daysCells[a][h]=t.insertCell(-1)).appendChild(document.createTextNode(""))}}}var d=this.date[0],e=new Date(d);var l=this.selDate[this.activeConInd].toDateString();e.setDate(1);var o=(e.getDay()-this.options.weekstart)%7;if(o<=0){o+=7}e.setDate(-o);e.setDate(e.getDate()+1);if(e.getDate()<e.getDay()){e.setMonth(e.getMonth()-1)}var b=null;for(var a=0;a<6;a++){for(var h=0;h<7;h++){if(b==e.getDate()){e.setDate(e.getDate()+1)}b=e.getDate();p=this.daysCells[a][h];p.setAttribute("id",this.uid+e.getFullYear()+e.getMonth()+e.getDate());p.childNodes[0].nodeValue=e.getDate();p.thisdate=e.toString();p.className="thismonth";p.onclick=null;if(e.getMonth()!=d.getMonth()){p.className="othermonth"}if(this.insensitiveDates){var n=false;for(var g=0;g<this.insensitiveDates.length;g++){var r=/\.|\-/.exec(this.insensitiveDates[g]);if(r){var k=(this.insensitiveDates[g].split(r).length==2?"%m"+r+"%d":"%Y"+r+"%m"+r+"%d")}if(r&&this.getFormatedDate(k,e)==this.insensitiveDates[g]||e.getDay()==this.insensitiveDates[g]){this.addClass(p,"insensitive");e.setDate(e.getDate()+1);n=true;break}}if(n){continue}}if(this.sensitiveFrom&&this.sensitiveFrom instanceof Array){var n=true;for(var g=0;g<this.sensitiveFrom.length;g++){var r=/\.|\-/.exec(this.sensitiveFrom[g]);var k=(this.sensitiveFrom[g].split(r).length==2?"%m"+r+"%d":"%Y"+r+"%m"+r+"%d");if(this.getFormatedDate(k,e)==this.sensitiveFrom[g]){n=false}}if(n){this.addClass(p,"insensitive");e.setDate(e.getDate()+1);continue}}if((this.sensitiveFrom&&(e.valueOf()<this.sensitiveFrom.valueOf()))||(this.sensitiveTo&&(e.valueOf()>this.sensitiveTo.valueOf()))){this.addClass(p,"insensitive");e.setDate(e.getDate()+1);continue}if(this.isWeekend(h)&&e.getMonth()==d.getMonth()){p.className="weekend"}if(e.toDateString()==this.curDate.toDateString()){this.addClass(p,"current")}if(e.toDateString()==l){this.activeCell=p;this.addClass(p,"selected")}if(this.holidays){for(var g=0;g<this.holidays.length;g++){var r=/\.|\-/.exec(this.holidays[g]);var k=(this.holidays[g].split(r).length==2?"%m"+r+"%d":"%Y"+r+"%m"+r+"%d");if(this.getFormatedDate(k,e)==this.holidays[g]){this.addClass(p,"holiday")}}}p.onclick=function(){var c=this.thisdate;q.setDate(c);if(!q.doOnClick||q.doOnClick(c)){q.callEvent("onClick",[c])}};e.setDate(e.getDate()+1)}}},draw:function(){if(!this.parent){this.createStructure()}var a=this;if(this.loadingLanguage){setTimeout(function(){a.draw();return},20);return}if(this.winHeader&&!this.winHeader.hasChildNodes()){this.drawHeader()}this.drawMonth();this.drawDayLabels();this.drawDays();this.isAutoDraw=true},loadUserLanguage:function(c,d){if(d){this.onLanguageLoaded=d}if(!c){c="en-us"}this.loadingLanguage=c;if(!c){this.loadUserLanguageCallback(false);return}if(c==this.options.langname){this.loadUserLanguageCallback(true);return}var g=window.dhtmlxCalendarLangModules;if(g[c]){for(lg in g[c]){this.options[lg]=g[c][lg]}this.loadUserLanguageCallback(true);return}var a,j=null;var b=document.getElementsByTagName("SCRIPT");for(var e=0;e<b.length;e++){if(a=b[e].getAttribute("src")){if(a.indexOf(this.scriptName)>=0){j=a.substr(0,a.indexOf(this.scriptName));break}}}if(j===null){this.loadUserLanguageCallback(false);return}this.options.langname=c;var f=j+"lang/"+c+".js";for(var e=0;e<b.length;e++){if(a=b[e].getAttribute("src")){if(a==f){return}}}var h=document.createElement("SCRIPT");h.setAttribute("language","Java-Script");h.setAttribute("type","text/javascript");h.setAttribute("src",f);document.body.appendChild(h)},loadUserLanguageCallback:function(a){this.loadingLanguage=null;if(this.isAutoDraw){this.draw()}if(this.onLanguageLoaded&&(typeof(this.onLanguageLoaded)=="function")){this.onLanguageLoaded(a)}},loadLanguageModule:function(c){var b=window.dhtmlxCalendarObjects;for(var a=0;a<b.length;a++){if(b[a].loadingLanguage==c.langname){for(lg in c){b[a].options[lg]=c[lg]}b[a].loadUserLanguageCallback(true)}}window.dhtmlxCalendarLangModules[c.langname]=c},show:function(b){this.activeCon=this.con[this._activeConInd(b)];this.parent.style.display="";this.parent.style.visibility="hidden";if(this.activeCon.nodeName=="INPUT"&&!this.userPosition){if(typeof window.innerWidth=="number"){docWidth=window.innerWidth;docHeight=window.innerHeight}else{docWidth=document.body.offsetWidth;docHeight=document.body.offsetHeight}var a=getAbsoluteLeft(this.activeCon);var c=getAbsoluteTop(this.activeCon);if(c+this.parent.offsetHeight>docHeight&&this.parent.offsetHeight<c){this.parent.style.top=c-this.parent.offsetHeight+this.activeCon.offsetHeight+"px"}else{this.parent.style.top=c+"px"}if(a+this.parent.offsetWidth+this.activeCon.offsetWidth>docWidth){this.parent.style.left=a+"px"}else{this.parent.style.left=a+this.activeCon.offsetWidth+"px"}}if(this.ifr!=undefined){this.ifr.style.top=this.entObj.offsetTop+"px";this.ifr.style.left=this.entObj.offsetLeft+"px";this.ifr.style.display="block"}if(this.time&&!this.minimized){this.tp.setPosition(getAbsoluteLeft(this.parent)+30,getAbsoluteTop(this.parent)+147);this.tp.show()}this.parent.style.visibility="visible";return this},hide:function(){this.parent.style.display="none";if(this.ifr!=undefined){this.ifr.style.display="none"}if(this.time){this.tp.hide()}return this},setDateFormat:function(a){this.options.dateformat=a},cutTime:function(b){b=new Date(b);var a=new Date(b.getFullYear(),b.getMonth(),b.getDate(),1,1);return a},setParent:function(a){if(a){this.parent=a;this.parent.appendChild(this.entObj)}},setDate:function(a,b){tmpDate=a;b=this._activeConInd(b);this.activeCon=this.con[b];if(typeof a!="Object"){a=this.setFormatedDate(null,tmpDate)}if(isNaN(a)||a==null){a=new Date(tmpDate)}if(!isNaN(a)){this.date[b]=new Date(this.cutTime(a));this.selDate[b]=new Date(this.cutTime(a))}if(this.isAutoDraw){this.draw()}if(this.activeCon.nodeName=="INPUT"){this.activeCon.value=this.getFormatedDate(this.options.dateformat,a)+(this.time?" "+this.getFormatedTime():"")}},addClass:function(b,a){b.className+=" "+a},resetClass:function(a){a.className=a.className.toString().split(" ")[0]},resetHotClass:function(a){a.className=a.className.toString().replace(/hover/,"")},setSkin:function(a){this.skinName=a;var b="";b=(this.minimized?"_mini":(this.time?"_long":(this.options.isWinHeader?"_maxi":"")));this.entObj.className=this.style+(a?"_"+a:"");if(b){this.entObj.className+=" "+this.entObj.className+b}if(this.ifr!=undefined){this.ifr.className=this.style+(a?"_"+a:"")+b+"_ifr"}if(this.time){(this.isVisible()&&!this.minimized)?this.tp.show():this.tp.hide()}},getDate:function(a){return this.selDate[this._activeConInd(a)].toString()},nextMonth:function(){var a=this.date[0],b;a.setDate(1);a.setMonth(b=a.getMonth()+1);this.callEvent("onChangeMonth",[(b+1>12?1:b+1),b||12]);if(this.isAutoDraw){this.draw()}},prevMonth:function(){var a=this.date[0],b;a.setDate(1);a.setMonth(b=a.getMonth()-1);this.callEvent("onChangeMonth",[b+1||12,b+2>12?1:(b+2||12)]);if(this.isAutoDraw){this.draw()}},setOnClickHandler:function(a){this.attachEvent("onClick",a)},getFormatedDate:function(c,e,b){if(!c){c=this.options.dateformat}if(!e){e=this.selDate[this._activeConInd(b)]}e=new Date(e);var d="";var h=true;for(var g=0;g<c.length;g++){var f=c.substr(g,1);if(h){if(f=="%"){h=false;continue}d+=f}else{switch(f){case"e":f=e.getDate();break;case"d":f=e.getDate();if(f.toString().length==1){f="0"+f}break;case"j":var a=new Date(e.getFullYear(),0,0,0,0,0,0);f=Math.ceil((e.valueOf()-a.valueOf())/1000/60/60/24-1);while(f.toString().length<3){f="0"+f}break;case"a":f=this.options.daysSNames[e.getDay()];break;case"W":f=this.options.daysFNames[e.getDay()];break;case"c":f=1+e.getMonth();break;case"m":f=1+e.getMonth();if(f.toString().length==1){f="0"+f}break;case"b":f=this.options.monthesSNames[e.getMonth()];break;case"M":f=this.options.monthesFNames[e.getMonth()];break;case"y":f=e.getFullYear();f=f.toString().substr(2);break;case"Y":f=e.getFullYear()}d+=f;h=true}}return d},setFormatedDate:function(s,e,g,r){if(!e||!(typeof e=="string")){return e}if(self.time){self.time.setFormatedTIme(null,e.split(" ")[1]);e=e.split(" ")[0]}if(!s){s=this.options.dateformat}function f(w){var t=new Array(this.options.monthesSNames,this.options.monthesFNames);for(var u=0;u<t.length;u++){for(var v=0;v<t[u].length;v++){if(t[u][v].indexOf(w)==0){return v}}}return -1}var l=new Date(2008,0,1);var h=0;for(var k=0;k<s.length;k++){var p=s.charAt(k);if(p=="%"){var q=s.charAt(k+1);var b=s.indexOf("%",k+1);var a=s.substr(k+2,b-k-1-1);var c=e.indexOf(a,h);if(a==""){c=e.length}if(c==-1){return null}var o=e.substr(h,c-h);if(q!="M"&&q!="b"){o=parseFloat(o)}h=c+a.length;switch(q){case"d":case"e":l.setDate(parseFloat(o));break;case"c":case"m":l.setMonth(parseFloat(o)-1);break;case"M":var d=f.call(this,o);if(d!=-1){l.setMonth(parseFloat(d))}else{return null}break;case"b":var d=f.call(this,o);if(d!=-1){l.setMonth(parseFloat(d))}else{return null}break;case"Y":l.setFullYear(parseFloat(o));break;case"y":var n=parseFloat(o);l.setFullYear(((n>20)?1900:2000)+n);break}}}if(isNaN(l)){l=new Date(this.selDate[this._activeConInd])}if(r){return l}this.setDate(l,g);return this.selDate[this.activeConInd]},isWeekend:function(a){var c=a+this.options.weekstart;if(c>6){c-=7}for(var b=0;b<this.options.weekend.length;b++){if(this.options.weekend[b]==c){return true}}return false},getDayName:function(a){var b=a+this.options.weekstart;if(b>6){b=b-7}return this.options.daysSNames[b]},isVisible:function(){return this.parent.style.display!="none"},doHotKeys:function(b){b=b||event;var a=b.target||b.srcElement;if(a.className.toString().indexOf("insensitive")>=0){this.endHotKeys()}else{if(this.hotCell){this.resetHotClass(this.hotCell)}this.addClass(a,"hover");this.hotCell=a}},endHotKeys:function(){if(this.hotCell){this.resetHotClass(this.hotCell);this.hotCell=null}},_activeConInd:function(a){if(!this.parent){this.createStructure()}return(this.activeConInd=(this.conInd[a]==0?"0":this.conInd[a])||(a==0?"0":a)||this.conInd[this.activeCon.id]||0)}};function dhtmlxRichSelector(parametres){for(x in parametres){this[x]=parametres[x]}this.initValue=this.activeValue;if(!this.selectorSize){this.selectorSize=7}var self=this;this.blurTimer=null;this.nodeBefore.onclick=function(){self.show()};this.editor=document.createElement("TEXTAREA");this.editor.value=this.activeValue;this.editor._s=this;this.editor.className="dhtmlxRichSelector";this.editor.onfocus=this.onFocus;this.editor.onblur=this.onBlur;this.selector=document.createElement("SELECT");this.selector.size=this.selectorSize;this.selector.className="dhtmlxRichSelector";if(this.valueList){for(var i=0;i<this.valueList.length;i++){this.selector.options[i]=new Option(this.titleList[i],this.valueList[i],false,false)}}this.selector._s=this;this.selector.onfocus=this.onFocus;this.selector.onblur=this.onBlur;this.selector.onclick=function(){window.t=self;self.onSelect(self.selector.value);clearTimeout(self.blurTimer)};this.selector.getIndexByValue=function(Value,isFull){var Select=this;Value=Value.toString().toUpperCase();if(!isFull){isFull=false}for(var i=0;i<Select.length;i++){var i_value=Select[i].text.toUpperCase();if(isFull){if(i_value==Value){return i}}else{if(i_value.indexOf(Value)==0){return i}}}if(Select._s.isOrderedList){if(Select._s.isNumbersList){if(isNaN(Value)){return -1}}i_value=Select[0].text.substring(0,Value.length).toUpperCase();if(i_value>Value){return 0}i_value=Select[Select.length-1].text.substring(0,Value.length);if(i_value<Value){return Select.length-1}}return -1};this.con=document.createElement("DIV");this.con.className="dhtmlxRichSelector";with(this.con.style){width="auto";display="none"}this.con.appendChild(this.editor);this.con.appendChild(this.selector);this.nodeBefore.parentNode.insertBefore(this.con,this.nodeBefore);return this}dhtmlxRichSelector.prototype.show=function(){this.con.style.display="block";with(this.selector.style){marginTop=parseInt(this.nodeBefore.offsetHeight)+"px";width="auto"}with(this.editor.style){width=parseInt(this.nodeBefore.offsetWidth)+15+"px";height=parseInt(this.nodeBefore.offsetHeight)+"px"}this.selector.selectedIndex=this.selector.getIndexByValue(this.activeValue);this.editor.focus()};dhtmlxRichSelector.prototype.hide=function(){this.con.style.display="none"};dhtmlxRichSelector.prototype.onBlur=function(){var a=this._s;a.blurTimer=setTimeout(function(){if(a.isAllowUserValue){if(a.onSelect(a.editor.value)){a.activeValue=a.editor.value}}else{if(a.onSelect(a.selector.value)){a.activeValue=a.selector.value}}},10)};dhtmlxRichSelector.prototype.onFocus=function(){var a=this._s;if(a.blurTimer){clearTimeout(a.blurTimer);a.blurTimer=null}if(this===this._s.selector){a.editor.focus()}};dhtmlxCalendarObject.prototype.setHeader=function(isVisible,isDrag,btnsOpt){with(this.options){isWinHeader=isVisible;isWinDrag=isDrag;if(btnsOpt){headerButtons=btnsOpt}}this.setSkin(this.skinName)};dhtmlxCalendarObject.prototype.setYearsRange=function(c,a){this.options.yearsRange=[parseInt(c),parseInt(a)];this.allYears=[];for(var b=c;b<=a;b++){this.allYears.push(b)}};dhtmlxCalendarObject.prototype.startDrag=function(e){e=e||event;if((e.button===0)||(e.button===1)){if(this.dragging){this.stopDrag(e)}this.drag_mx=e.clientX;this.drag_my=e.clientY;this.drag_spos=this.getPosition(this.parent);document.body.appendChild(this.parent);with(this.parent.style){left=this.drag_spos[0]+"px";top=this.drag_spos[1]+"px";margin="0px";position="absolute"}if(this.ifr){this.ifr.style.top="0px";this.ifr.style.left="0px"}this.bu_onmousemove=document.body.onmousemove;var self=this;document.body.onmousemove=function(e){self.onDrag(e)};this.bu_onmouseup=document.body.onmouseup;document.body.onmouseup=function(e){self.stopDrag(e)};this.dragging=true}};dhtmlxCalendarObject.prototype.onDrag=function(a){a=a||event;if((a.button===0)||(a.button===1)){var c=this.drag_mx-a.clientX;var b=this.drag_my-a.clientY;this.parent.style.left=this.drag_spos[0]-c+"px";this.parent.style.top=this.drag_spos[1]-b+"px";if(this.time){this.tp.setPosition(getAbsoluteLeft(this.parent)+30,getAbsoluteTop(this.parent)+160)}if(this.ifr!=undefined){this.ifr.style.left=0;this.ifr.style.top=0}}else{this.stopDrag(a)}};dhtmlxCalendarObject.prototype.stopDrag=function(a){a=a||event;document.body.onmouseup=(this.bu_onmouseup===window.undefined)?null:this.bu_onmouseup;document.body.onmousemove=(this.bu_onmousemove===window.undefined)?null:this.bu_onmousemove;this.dragging=false};dhtmlxCalendarObject.prototype.minimize=function(){if(!this.winHeader){return}this.minimized=!this.minimized;this.entBox.style.display=(!this.minimized)?"":"none";this.setSkin(this.skinName)};dhtmlxCalendarObject.prototype.onYearSelect=function(a){if(!isNaN(a)){this._c.date[this._c._activeConInd()].setFullYear(Math.min(Math.max(a,this._c.allYears[0]),this._c.allYears.slice(-1)))}this._c.draw();return(!isNaN(a))};dhtmlxCalendarObject.prototype.onMonthSelect=function(a){this._c.date[this._c._activeConInd()].setMonth(a);this._c.draw();return true};dhtmlxCalendarObject.prototype.setPosition=function(f,e,b){if(typeof(f)=="object"){var a=this.getPosition(f);var d=a[0]+f.offsetWidth+(b||0);var c=a[1]+(e||0)}this.parent.style.position="absolute";this.parent.style.top=(c||f)+"px";this.parent.style.left=(d||e)+"px";if(this.ifr!=undefined){this.ifr.style.left="0px";this.ifr.style.top="0px"}if(this.time){this.tp.setPosition(getAbsoluteLeft(this.parent)+30,getAbsoluteTop(this.parent)+160)}};dhtmlxCalendarObject.prototype.close=function(a){this.hide()};dhtmlxCalendarObject.prototype.getPosition=function(e,b){if(!b){var b=document.body}var a=e;var d=0;var c=0;while((a)&&(a!=b)){d+=a.offsetLeft-a.scrollLeft;c+=a.offsetTop-a.scrollTop;a=a.offsetParent}if(b==document.body){if(_isIE){if(document.documentElement.scrollTop){c+=document.documentElement.scrollTop}if(document.documentElement.scrollLeft){d+=document.documentElement.scrollLeft}}else{if(!_isFF){d+=document.body.offsetLeft;c+=document.body.offsetTop}}}return new Array(d,c)};dhtmlxCalendarObject.prototype.setSensitive=function(b,a){if(b){if(b instanceof Date){this.sensitiveFrom=this.cutTime(b)}else{this.sensitiveFrom=b.toString().split(",")}}if(a){this.sensitiveTo=this.cutTime(a)}if(this.isAutoDraw){this.draw()}};dhtmlxCalendarObject.prototype.setHolidays=function(a){this.holidays=a.toString().split(",");if(this.isAutoDraw){this.draw()}};dhtmlxCalendarObject.prototype.onChangeMonth=function(a){this.attachEvent("onChangeMonth",a)};dhtmlxCalendarObject.prototype.setInsensitiveDates=function(a){this.insensitiveDates=a.toString().split(",");if(this.isAutoDraw){this.draw()}};dhtmlxCalendarObject.prototype.enableTime=function(a){if(this.time=a){this.tp=new dhtmlXTimePicker();this.tp.setPosition(getAbsoluteLeft(this.parent)+30,getAbsoluteTop(this.parent)+160);for(m in dhtmlXTimePicker.prototype){(function(b){if(!dhtmlxCalendarObject.prototype[b]){dhtmlxCalendarObject.prototype[b]=function(){return this.tp[b].apply(this.tp,arguments)}}})(m)}}else{this.tp.entBox.parentNode.removeChild(this.tp.entBox);this.tp=null}this.setSkin(this.skinName)};dhtmlxCalendarObject.prototype.setHeaderText=function(a){this.options.headerText=a;if(this.headerLabel){this.headerLabel.childNodes[0].nodeValue=a;this.headerLabel.setAttribute("title",a)}};dhtmlxCalendarObject.prototype.disableIESelectFix=function(a){this.useIframe=!a;if(this.ifr!=undefined){this.ifr.parentNode.removeChild(this.ifr);this.ifr=null}};(function(){dhtmlx.extend_api("dhtmlxCalendarObject",{_init:function(a){return[a.parent,a.draw]}},{});dhtmlx.extend_api("dhtmlxDblCalendarObject",{_init:function(a){return[a.parent,a.draw]}},{})})();
