(function(){var J="window",D=(function(){return this[J]?this:(this[J]=this)})(),Q=D.document,E="function",B=Array.prototype.slice,H,G=/([\/()[\]{}|*+-.,^$?\\])/g,L,R,C,A,M,S,O={},N=D.liligo={namespace:"",exportedExtend:M=function(T,V){for(var U in V){T[U]=V[U]}return T},extend:A=function(U){M(N,U);for(var T in U){if(U.hasOwnProperty(T)&&(T.charAt(0)!="@")){N.namespace+=["var ","=liligo.",";"].join(T)}}}},K,P,I=function(T,U,V){return function(){this[T]=U;var W=V.apply(this,arguments);delete this[T];return W}};N.namespace+="var extend=liligo.exportedExtend;";A({Class:K=function(V,h,k){var Z="constructor",j="__constructorFunc",e="hasOwnProperty",i="_base_constructor",X="toString",b,g=function(){this[j].apply(this,arguments)},a=g.prototype,c,W=function(){},U=W,Y=null,T;if(typeof V!=E){b=V[Z];if(b&&b[e]("__isSingleton")){V=b}else{k=h||{};h=V||{};V=0}}if(V){Y=V.prototype;U=Y[j];Y[j]=W;a=g.prototype=new V();if(V.__isAbstract){h[Z]=h[e](Z)?h[Z]:W;for(T in Y){if(Y[e](T)){if((Y[T]===null)&&!h[e](T)){throw Error("Abstract error")}}}}if(Y[e](i)){a[i]=function(){this[i]=Y[i];Y[j].apply(this,arguments);delete this[i]};Y[j]=U}else{a[i]=Y[j]=U}}c=h[e](Z)?h[Z]:U;delete h[Z];for(T in h){if(h[e](T)){if(Y&&Y[T]){if((base=a["_base_"+T])&&(typeof base==E)){a["_base_"+T]=I("_base_"+T,base,Y[T])}else{a["_base_"+T]=Y[T]}}a[T]=h[T]}}if(h[e](X)){if(Y&&Y[X]){a._base_toString=Y[X]}a[X]=h[X]}a[j]=c;for(T in k){if(k[e](T)&&(T!="prototype")){g[T]=k[T]}}if(g.init){g.init()}return g},Singleton:function(X,W,V){var T=K(X,W,V);T.__isSingleton=true;T.prototype.constructor=T;var U=new T();if(U.init){U.init()}return U},Application:P=function(X,W,V){var T=K(X,W,V);T.__isSingleton=true;var U=new T();if(U.init){N.domLoaded(R(U.init,U))}return U},App:P,Abstract:function(W,V,U){var T=K(W,V,U);T.prototype.__constructorFunc=function(){throw Error("Abstract class")};T.__isAbstract=true;T.isParentOf=function(Y){var X=this.prototype;if(typeof Y==E){return X.isPrototypeOf(Y.prototype)}else{return X.isPrototypeOf(Y)}};return T},nullFunc:C=function(){},require:function(){},slice:H=function(T){return B.apply(T,B.call(arguments,1))},bind:R=function(V,U){var T=H(arguments,2);return function(){return V.apply(U,T.concat(H(arguments)))}},bindAsEventListener:function(W,V,U,T,X){return function(Y){return W.call(V,Y||D.event,U,T,X)}},rescape:L=function(T){return String(T).replace(G,"\\$1")},$:function(T){return(typeof T=="string")?Q.getElementById(T):T},unique:(function(T){return function(){return T++}})(1234),escapeHTML:function(T){return String(T).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},getLang:function(){if(S){return S}var T=D.LANG;if(T&&(T=T.locale)){return S=T}T=D.language;if(T&&(T=T.lang)){return S=T}T=Q.body;if(T&&(T=T.className.match(/(^|\s)[a-z]{2}(\s|$)|/i))){return S=T[0]}return null},labels:{},allLabels:O,setLang:function(T){if(!O[S=T]){O[T]={}}N.labels=O[T]},addLabels:function(T,U){if(!U){U=T;T=N.getLang()}if(!O[T]){O[T]=U}else{M(O[T],U)}},Trigger:function(c,b){var T={},X={},V=c.length,U,Y,Z,a,W=[];for(Y=0;Y<V;Y++){U=c[Y];a=0;if(typeof U!="string"){a=U;U="$"+Y}Z=T[U]=R(function(){var e=this;T[e]=C;X[e]=arguments;if(!--V){b(X)}},U);if(a){if(a==N.domLoaded){document.body?W.push(Z):a(Z)}else{N.Event.observe(a[0],a[1],Z)}}}while(Y=W.shift()){Y()}return T}});if("".replace(/^/,String)){var F=String.prototype;original=F.replace;F.replace=function(Z,W){if(typeof W==E){if(Z instanceof RegExp){var Y=Z;var X=Y.global;if(X==null){X=/(g|gi)$/.test(Y)}if(X){Y=new RegExp(Y.source)}}else{Y=new RegExp(L(Z))}var V,U=this,T="";while(U&&(V=Y.exec(U))){T+=U.slice(0,V.index)+W.apply(this,V);U=U.slice(V.index+V[0].length);if(!X){break}}return T+U}else{return original.apply(this,arguments)}}}})();(function(){var _liligo=liligo,Class=_liligo.Class,Singleton=_liligo.Singleton;if(_liligo.BOM){return }var MSIE=/*@cc_on!@*/false,navigator=window.navigator,isBrowser=!!((typeof navigator=="object")&&navigator.userAgent),element=isBrowser?document.createElement("span"):{addEventListener:1},IE6,IE7;if(!isBrowser&&(!navigator)){try{if(Packages.org.mozilla.javascript){navigator={platform:"Java",userAgent:"Rhino"}}}catch(e){navigator={platform:"unknown",userAgent:"unknown"}}}var userAgent;var BOM=Singleton({userAgent:"",_cache:{},init:function(url,options){userAgent=navigator.userAgent;IE6=MSIE&&/IE\s*6/.test(userAgent);IE7=!IE6&&(false/*@cc_on || (@_jscript_version == 5.7) @*/);if(!MSIE){userAgent=userAgent.replace(/MSIE\s[\d.]+/,"")}userAgent=userAgent.replace(/([a-z])[\s\/](\d)/gi,"$1$2");this.userAgent=userAgent=navigator.platform+" "+userAgent;if(IE6){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}var sTmp;this.isSafari2=false;if((sTmp=navigator.userAgent.match(/Safari\/([0-9]*)/))&&(sTmp.length>0)&&(sTmp[1]*1<420)){this.isSafari2=true}},detect:function(test){if(typeof BOM._cache[test]!="undefined"){return BOM._cache[test]}var retVal=false;var not=test.charAt(0)=="!";test=test.replace(/^IE/,"MSIE").replace(/^(["']?)([^\(].*)(\1)$/,"/$2/i.test(userAgent)");try{eval("retVal=!!"+test)}catch(e){}return BOM._cache[test]=Boolean(not^retVal)},isBrowser:function(){return isBrowser},helpers:Singleton({safariXMLWrapper:Class({constructor:function(node){this.node=node},getElementsByTagName:function(tag){var list=this.node.getElementsByTagName(tag),r=[],tmpNode;if(!list.length){list=this.node.getElementsByTagNameNS("*",tag)}forEach(list,function(lItem){tmpNode=new BOM.helpers.safariXMLWrapper(lItem);if(lItem.firstChild){tmpNode.firstChild=lItem.firstChild;if(lItem.firstChild.nodeValue){tmpNode.text=tmpNode.firstChild.nodeValue=lItem.firstChild.nodeValue}}if(lItem.attributes){tmpNode.attributes=lItem.attributes}r.push(tmpNode)},this);return r}}),safariImageButton:Class({constructor:function(){this.error=[];for(var i=0;i<arguments.length;i++){this._makeBtn(arguments[i])}if(this.error.length>0){return false}else{return true}},getBroken:function(){return this.error},_makeBtn:function(target){var ot=target,target=$(target);if(target){if(target.value.replace(/\s/,"").length==0){target.type="image";
target.value=" ";target.src="/img/spacer.gif"}else{var cnt=Query.up(target.id,".bumper");if(cnt){var sp=document.createElement("SPAN");sp.style.display="inline-block";sp.className=target.className;sp.targetId=target.id;sp.targetType=target.type;sp.id="_"+sp.targetId;sp.appendChild(document.createTextNode(target.value));sp.onclick=function(){if(this.targetType=="submit"){var form=Query.up(this.targetId,"form"),evt=document.createEvent("HTMLEvents");evt.initEvent("submit",true,true);form.dispatchEvent(evt)}else{var evt=document.createEvent("MouseEvents");evt.initEvent("click",true,true);$(this.targetId).dispatchEvent(evt)}};target.style.display="none";cnt.appendChild(sp)}else{this.error.push(ot+": no bumper")}}}else{this.error.push(target)}}})})});_liligo.extend({BOM:BOM,detect:BOM.detect,IE:MSIE,IE6:IE6,IE7:IE7,safari:BOM.detect("Konqueror|Safari|KHTML|AppleWebKit")})})();(function(){var H=liligo;if(H.DOM){return }var F=window.document,G=H.exportedExtend,D,C,B,A,E=function(I){return F.getElementsByTagName(I)};D=H.Singleton({addScript:C=function(I){E("head")[0].appendChild(B("script",{src:I,type:"text/javascript"}))},Element:B=function(I,K,J){return G((J||F).createElement(I),K||{})},add:function(I){if(typeof I!="object"){I=B.apply(this,arguments)}if(!A){A=E("body")[0]}A.appendChild(I);return I},remove:function(I){I=$(I);I.parentNode.removeChild(I)}});H.extend({DOM:D,addScript:C,Element:B})})();(function(){var D=liligo,B=D.$;if(D.Query){return }var N={},M={},K={};var T=/\S/;var F=/^\s*(.*?)\s*$/;var R=/\{(\d+)\}/g;var H=/^(\s?[\/>]\s?|\s|$)/;var J=/^(#)?([\w-\*]+)/;var I=/*@cc_on!@*/false;function E(X,V){var W=0;var Y=X.firstChild;while(Y){if(Y.nodeType==1){if(++W==V){return Y}}Y=Y.nextSibling}return null}function P(V){while((V=V.nextSibling)&&V.nodeType!=1){}return V}function O(V){while((V=V.previousSibling)&&V.nodeType!=1){}return V}function Q(X){var Y=X.firstChild,W=-1;while(Y){var V=Y.nextSibling;if(Y.nodeType==3&&!T.test(Y.nodeValue)){X.removeChild(Y)}else{Y.nodeIndex=++W}Y=V}return this}function byClassName(g,V,W,Z,e){if(!W){return g}var b=[];for(var Y=0,X;X=g[Y];Y++){e=X.className;if(e&&(" "+e+" ").indexOf(W)!=-1){b.push(X)}}return b}function attrValue(W,V){if(!W.tagName&&typeof W.length!="undefined"){W=W[0]}if(!W){return null}if(V=="for"){return W.htmlFor}if(V=="class"||V=="className"){return W.className}return W.getAttribute(V)||W[V]}function getNodes(b,Z,W){var h=[],a;if(!b){return h}Z=Z?Z.replace(F,"$1"):"";W=W||"*";if(typeof b.getElementsByTagName!="undefined"){b=[b]}if(Z!="/"&&Z!=">"){for(var Y=0,V;V=b[Y];Y++){a=V.getElementsByTagName(W);for(var X=0,g;g=a[X];X++){h.push(g)}}}else{for(var Y=0,V;V=b[Y];Y++){var c=V.getElementsByTagName(W);for(var X=0,e;e=c[X];X++){if(e.parentNode==V){h.push(e)}}}}return h}function C(X,V){if(V.slice){return X.concat(V)}for(var Y=0,W=V.length;Y<W;Y++){X.push(V[Y])}return X}function byTag(Y,X){if(Y.tagName||Y==document){Y=[Y]}if(!X){return Y}var Z=[];X=X.toLowerCase();for(var W=0,V;V=Y[W];W++){if(V.nodeType==1&&V.tagName.toLowerCase()==X){Z.push(V)}}return Z}function byId(Y,V,a){if(Y.tagName||Y==document){Y=[Y]}if(!a){return Y}var Z=[];for(var X=0,W;W=Y[X];X++){if(W&&W.id==a){Z.push(W);return Z}}return Z}function byAttribute(b,c,g,Y,W){var V=[],h=(W=="{");var Z=L.operators[Y],e,X;for(X=0;ci=b[X];X++){if(h){e=Style.get(ci,c)}else{if(c=="class"||c=="className"){e=ci.className}else{if(c=="for"){e=ci.htmlFor}else{if(c=="href"){e=ci.getAttribute("href",2)}else{e=ci.getAttribute(c)}}}}if((Z&&Z(e,g))||(!Z&&e)){V.push(ci)}}return V}function byPseudo(W,V,X){return L.pseudos[V](W,X)}var U=30803;function S(X){var Z=++U;X[0].setAttribute("_nodup",Z);var Y=[X[0]];for(var W=1,V=X.length;W<V;W++){var a=X[W];if(!a.getAttribute("_nodup")!=Z){a.setAttribute("_nodup",Z);Y.push(a)}}for(var W=0,V=X.length;W<V;W++){X[W].removeAttribute("_nodup")}return Y}function nodup(Z){var V=Z.length,e,Y,a=Z,X;if(!V||typeof Z.nodeType!="undefined"||V==1){return Z}if(I&&typeof Z[0].selectSingleNode!="undefined"){return S(Z)}var b=++U;Z[0]._nodup=b;for(Y=1;e=Z[Y];Y++){if(e._nodup!=b){e._nodup=b}else{a=[];for(var W=0;W<Y;W++){a.push(Z[W])}for(W=Y+1;X=Z[W];W++){if(X._nodup!=b){X._nodup=b;a.push(X)}}return a}}return a}function A(Y,X){var a=++U;for(var W=0,V=Y.length;W<V;W++){Y[W].setAttribute("_qdiff",a)}var Z=[];for(var W=0,V=X.length;W<V;W++){if(X[W].getAttribute("_qdiff")!=a){Z.push(X[W])}}for(var W=0,V=Y.length;W<V;W++){Y[W].removeAttribute("_qdiff")}return Z}function G(Z,Y){var W=Z.length;if(!W){return Y}if(I&&Z[0].selectSingleNode){return A(Z,Y)}var b=++U;for(var X=0;X<W;X++){Z[X]._qdiff=b}var a=[];for(var X=0,V=Y.length;X<V;X++){if(Y[X]._qdiff!=b){a.push(Y[X])}}return a}function quickId(W,Y,V,Z){if(W==V){var X=V.ownerDocument||V;return X.getElementById(Z)}W=getNodes(W,Y,"*");return byId(W,null,Z)}var L=D.Singleton({compile:function(k,e){while(k.substr(0,1)=="/"){k=k.substr(1)}e=e||"select";var g=["var f=function(root){var mode,n=root||document;"];var V=k,a,b;var l=L.matchers;var c=l.length;var Y;while(V&&b!=V){b=V;var h=V.match(J);if(e=="select"){if(h){if(h[1]=="#"){g.push('n=quickId(n,mode,root,"',h[2],'");')}else{g.push('n=getNodes(n,mode,"',h[2],'");')}V=V.replace(h[0],"")}else{if(V.substr(0,1)!="@"){g.push('n=getNodes(n,mode,"*");')}}}else{if(h){if(h[1]=="#"){g.push('n=byId(n,null,"',h[2],'");')}else{g.push('n=byTag(n,"',h[2],'");')}V=V.replace(h[0],"")}}while(!(Y=V.match(H))){var W=false;for(var Z=0;Z<c;Z++){var i=l[Z];var X=V.match(i[0]);if(X){g.push(i[1].replace(R,function(j,m){return X[m]}));V=V.replace(X[0],"");W=true;break}}if(!W){throw'Error parsing selector, parsing failed at "'+V+'"'}}if(Y[1]){g.push('mode="',Y[1],'";');V=V.replace(Y[1],"")}}g.push("return nodup(n);}");eval(g.join(""));return f},select:function(b,X){X=(!X||X==document)?document:B(X);var c=b.split(",");var Z=[];for(var Y=0,W=c.length;Y<W;Y++){var a=c[Y].replace(F,"$1");if(!N[a]){if(!(N[a]=L.compile(a))){throw a+" is not a valid selector"}}var V=N[a](X);if(V&&V!=document){Z=Z.concat(V)}}return Z},selectNode:function(W,V){return L.select(W,V)[0]
},is:function(W,V){return(L.filter([B(W)],V).length>0)},up:function(W,V){W=B(W);while(W){if(L.is(W,V)){return W}W=W.parentNode}},filter:function(X,W,Y){W=W.replace(F,"$1");if(!M[W]){M[W]=L.compile(W,"simple")}var V=M[W](X);return Y?G(V,X):V},matchers:[[/^\.([\w-]+)/,'n=byClassName(n,null," {1} ");'],[/^\:([\w-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,'n=byPseudo(n,"{1}","{2}");'],[/^(?:([\[\{])(?:@)?([\w-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,'n=byAttribute(n,"{2}","{4}","{3}","{1}");'],[/^#([\w-]+)/,'n=byId(n,null,"{1}");'],[/^@([\w-]+)/,'return {firstChild:{nodeValue:attrValue(n,"{1}")}};']],operators:{"=":function(V,W){return V==W},"!=":function(V,W){return V!=W},"^=":function(V,W){return V&&V.substr(0,W.length)==W},"$=":function(V,W){return V&&V.substr(V.length-W.length)==W},"*=":function(V,W){return V&&V.indexOf(W)!==-1},"%=":function(V,W){return(V%W)==0}},pseudos:{"first-child":function(Z){for(var W=0,V,X=[],Y;V=Y=Z[W];W++){Y=O(Y);if(!Y){X.push(V)}}return X},"last-child":function(Y){for(var W=0,V,X=[];V=n=Y[W];W++){n=P(n);if(!n){X.push(V)}}return X},"nth-child":function(e,g){var V=[];if(g!="odd"&&g!="even"){for(var Z=0,h;h=e[Z];Z++){var X=E(h.parentNode,g);if(X==h){V.push(X)}}return V}for(var Z=0,W,Y=e.length;Z<Y;Z++){var b=e[Z].parentNode;if(b!=W){Q(b);W=b}}for(var Z=0,h;h=e[Z];Z++){var X=false;if(g=="odd"){X=((h.nodeIndex+1)%2==1)}else{if(g=="even"){X=((h.nodeIndex+1)%2==0)}}if(X){V.push(h)}}return V},"only-child":function(Y){for(var W=0,V,X=[];V=Y[W];W++){if(!O(V)&&!P(V)){X.push(V)}}return X},"empty":function(e){for(var X=0,W,Z=[];W=e[X];X++){var Y=W.childNodes,V=0,b,a=true;while(b=Y[V]){++V;if(b.nodeType==1||b.nodeType==3){a=false;break}}if(a){Z.push(W)}}return Z},"contains":function(Z,V){for(var X=0,W,Y=[];W=Z[X];X++){if(W.innerHTML.indexOf(V)!==-1){Y.push(W)}}return Y},"nodeValue":function(Z,V){for(var X=0,W,Y=[];W=Z[X];X++){if(W.firstChild&&W.firstChild.nodeValue==V){Y.push(W)}}return Y},"checked":function(Y){for(var W=0,V,X=[];V=Y[W];W++){if(V.checked==true){X.push(V)}}return X},"not":function(W,V){return L.filter(W,V,true)},"odd":function(V){return this["nth-child"](V,"odd")},"even":function(V){return this["nth-child"](V,"even")},"nth":function(W,V){return W[V-1]},"first":function(V){return V[0]},"last":function(V){return V[V.length-1]},"has":function(a,X){var Y=L.select;for(var W=0,V,Z=[];V=a[W];W++){if(Y(X,V).length>0){Z.push(V)}}return Z},"next":function(b,X){for(var W=0,V,Z=[],Y=L.is;V=b[W];W++){var a=P(V);if(a&&Y(a,X)){Z.push(V)}}return Z},"prev":function(b,X){for(var W=0,V,Z=[],Y=L.is;V=b[W];W++){var a=O(V);if(a&&Y(a,X)){Z.push(V)}}return Z}}});D.extend({Query:L,$$:L.select})})();(function(){var C=liligo;if(C.JSON){return }var A={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};var B=C.Singleton({encode:function(F){var I=typeof F,E="null";switch(I){case"undefined":case"function":case"unknown":return E;case"boolean":return F?"true":"false";case"string":return B.escape(F);case"number":return isFinite(F)?(""+F):E}if(F===null){return E}if(window.document&&(F.ownerDocument===document)){return }if(F.getTimezoneOffset){return B._date(F)}else{if(F.join&&F.slice){var H=[];for(var G=0,D=F.length;G<D;G++){H.push(B.encode(F[G]))}return"["+H.join(",")+"]"}else{var H=[];for(var K in F){if(F.hasOwnProperty(K)){var J=B.encode(F[K]);if(J!==undefined){H.push(B.escape(K)+":"+J)}}}return"{"+H.join(",")+"}"}}},escape:function(D){if(/["\\\x00-\x1f]/.test(D)){return'"'+D.replace(/([\x00-\x1f\\"])/g,function(F,E){var G=A[E];if(G){return G}G=E.charCodeAt();return"\\u00"+Math.floor(G/16).toString(16)+(G%16).toString(16)})+'"'}return'"'+D+'"'},validate:function(D){return(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(D))},decode:function(D){try{return eval("("+D+")")}catch(E){return undefined}},_date:(function(){if(Date.toISOString){return function(E){return Date.toISOString(E)}}else{var D=function(E){return E<10?("0"+E):E};return function(E){return['"',E.getFullYear(),"-",D(E.getMonth()+1),"-",D(E.getDate()),"T",D(E.getHours()),":",D(E.getMinutes()),":",D(E.getSeconds()),'"'].join("")}}})()});C.extend({JSON:B})})();(function(){if(liligo.ArrayGen){return }var A=liligo.Singleton({contains:function(B,E){for(var D=0,C=B.length;D<C;D++){if(B[D]==E){return true}}return false},forEach:function(F,E,B){B=B||null;var D,C;if((typeof F.forEach=="function")&&(F.forEach!=arguments.callee)){return F.forEach(E,B)}else{if(typeof F.length=="number"){if(typeof Array.forEach=="function"){return Array.forEach(F,E,B)}else{return A.forEachArray(F,E,B)}}else{return A.forEachObject(F,E,B)}}},forEachArray:function(F,E,B){if(typeof F=="string"){for(var D=0,C=F.length;D<C;D++){E.call(B,F.charAt(D),D)}}else{for(var D=0,C=F.length;D<C;D++){E.call(B,F[D],D)}}},forEachObject:function(E,D,B){var C;for(C in E){if(E.hasOwnProperty(C)){D.call(B,E[C],C)}}},filter:function(E,D,B){if((typeof E.filter=="function")&&(E.filter!=arguments.callee)){return E.filter(D,B)}else{if(typeof E.length=="number"){var C=[];A.forEachArray(E,function(F){if(D.apply(this,arguments)){C.push(F)}},B);return C}else{var C={};A.forEachObject(E,function(G,F){if(D.apply(this,arguments)){C[F]=G}},B);return C}}},optionsPush:function(C,D){var B=this.length++;this[B].text=C;this[B].value=D},htmlOptions:function(C){var B={};B.self=C;B.reset=function(){this.self.length=0};B.push=function(E,F){var D=this.self.length++;this.self[D].text=E;this.self[D].value=F};return B}});liligo.extend({ArrayGen:A,contains:A.contains,forEach:A.forEach,filter:A.filter,htmlOptions:A.htmlOptions})})();(function(){var D=liligo,A=D.safari,E=D.Singleton,C=D.$,F="DOMContentLoaded",I="singleObserve",J="stopObserving",G=window.document;if(D.Event){return }D.require("BOM");var B=E({_observers:[],_inited:false,_fired:false,fire:function(){if(B._fired){return }B._fired=true;if(B._timer){clearInterval(B._timer)}var M=B._observers;for(var K=0,L=M.length;K<L;K++){M[K]()}B._observers=[]},_init:function(){if(this._inited){return }this._inited=true;if(A||(window.opera&&1*opera.version()<9)){this._timer=setInterval(function(){if(/loaded|complete/.test(G.readyState)){B.fire()
}},100)}else{if(D.IE){var K=("__ie_onload_"+Math.random()).replace(/\./,"");G.write('<script id="'+K+'" defer="defer" src="//:"><\/script>');C(K).onreadystatechange=function(){if(this.readyState=="complete"){this.removeNode();B.fire()}}}}},push:function(K){this._init();this._observers.push(K)}});var H=E({KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,pointerX:function(K){return K.pageX||(K.clientX+(G.documentElement.scrollLeft||G.body.scrollLeft))},pointerY:function(K){return K.pageY||(K.clientY+(G.documentElement.scrollTop||G.body.scrollTop))},element:function(K){return K.target||K.srcElement},stop:function(K){if(!K){return }if(K.preventDefault){K.preventDefault();K.stopPropagation()}else{K.returnValue=false;K.cancelBubble=true}return K},bind:D.bindAsEventListener,bindStop:function(N,M,L,K,O){return function(P){return N.call(M,H.stop(P||window.event),L,K,O)}},observe:function(M,O,N,K){M=C(M);if(!M){return false}if(typeof O=="object"){for(var L in O){if(O.hasOwnProperty(L)){H[I](M,L,O[L])}}}else{H[I](M,O,N,K)}},Observer:D.Class({constructor:function(){this.args=arguments;H.observe.apply(H,arguments)},stop:function(){H[J].apply(H,this.args)}}),init:function(){if(D.detect("(element.addEventListener)")){this[I]=function(O,M,L,K){var N=(M==F);if(N){O=G}if(N&&(A||(window.opera&&1*opera.version()<9))){B.push(L)}else{if(A&&(M=="keypress")){M="keydown"}O.addEventListener(M,L,K=K||false)}};this[J]=function(N,M,L,K){if(A&&(M=="keypress")){M="keydown"}C(N).removeEventListener(M,L,K=K||false)}}else{this[I]=function(O,M,L,K){K=K||false;var N=(M==F);if(N){O=G}if(M==F){B.push(L)}else{O.attachEvent("on"+M,L)}if(!N){(this._observers||(this._observers=[])).push([O,M,L,K])}};this[J]=function(N,M,L,K){try{C(N).detachEvent("on"+M,L)}catch(O){}};this._unloadCache=function(){if(!H._observers){return }for(var K=0,L=H._observers.length;K<L;K++){H[J].apply(H,H._observers[K]);H._observers[K][0]=null}H._observers=false};this[I](window,"unload",this._unloadCache,false)}}});D.extend({Event:H,__Eo:H.observe,__Eb:H.bind,__EbS:H.bindStop,domLoaded:function(K){H[I](0,F,K)}})})();(function(){var C=liligo,B=C.bind;if(C.VTemplate){return }var A={};C.extend({VTemplate:C.Class({constructor:function(E,D){this._render=D;if(E){A[E]=this}},process:function(E,D){D=D||{};if(typeof D=="string"){D={lang:D}}E=E||{};if(D.lang&&!E.labels){E.labels=C.allLabels[D.lang]||{}}else{E.labels=E.labels||C.labels}return this._render(E||{})}}),__VT_cache:A,__VT_StringCat:function(){var D=[],E=this;E.push=E.p=B(D.push,D);E.toString=B(D.join,D,"")}})})();(function(){var G=liligo,A=G.Class;if(G.TPTemplate){return }var D=false;function F(J,I,H){return H.replace(/\s*\n\s*/g," ").replace(/^\s+|\s+$/g,"")}function C(H){return H.replace(/([\\'])/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")}var __LSC__=function(){this.level=-1;this.goUp=function(){this.level++;this[this.level]=0};this.goDown=function(){this.level--};this.increment=function(){this[this.level]++};this.getCurrent=function(){return this[this.level]}};var B={"if":function(H){return"if("+H+"){"},elseif:function(H){return"}else if("+H+"){"},"else":function(){return"}else{"},"/if":function(){return"}"},"for":function(K){var I=K.match(/^(\w+) in(\s*arr\S*)? (.+)$/i);if(I){var H="__LIST__"+I[1];var J=I[1]+"_index";if(I[2]){return["var ",H,"=",I[3],";","__LS__.goUp();","if (",H,"!=null){","for(var ",J,"=0,",H,"_len=",H,".length;",J,"<",H,"_len;",J,"++){","__LS__.increment();","var ",I[1],"=",H,"[",J,"];"].join("")}else{return["var ",H,"=",I[3],";","__LS__.goUp();","if (",H,"!=null){","for(var ",J," in ",H,"){","if (typeof ",H,"[",J,"]=='function') continue;","__LS__.increment();","var ",I[1],"=",H,"[",J,"];"].join("")}}},forelse:function(){return"}}if(!__LS__.getCurrent()){if(true){"},"/for":function(){return"}}__LS__.goDown();"},"var":function(H){return"var "+H+";"},macro:function(I){var H=I.match(/^(\w+)\s*\(([^\)]*)\)\s*$/);if(H){return["function ",H[1],"(",H[2],"){","var __LS__= new __LSC__();","var __OUT__=[];var _ECHO=function(s) {__OUT__[__OUT__.length]=s};",].join("")}},"/macro":function(){return"return __OUT__.join('')}"},"eval":function(H){return"eval('"+C(H.replace(/\x07/g,"}"))+"');"},cdata:function(H){return"_ECHO('"+C(H.replace(/\x07/g,"}"))+"');"}};var E=A({constructor:function(H){if(typeof H=="function"){this._source="";this._render=H}else{this._source=H?String(H):""}this.modifiers=new E._Modifiers()},parse:function(){var W=this._source.replace(/\s+$/,"");W=W.replace(/[\x00-\x08\x0b\x0c\x0e-\x19]/g,"");if(!D){W=W.replace(/\r/g,"")}if(/\{eval/.test(W)){W=W.replace(/\{(\/?eval)\}/g,"{$1\x05");var P=/\{eval\x05([^\x05]*)\{\/eval\x05/g;W=W.replace(P,function(c,b){return"{eval "+b.replace(/\}/g,"\x07")+"}"});W=W.replace(/\x05/g,"}");var U=/\{eval\s+(\w+)\s*\}([\s\S]*)\1/g;W=W.replace(U,function(e,c,b){return"{eval "+b.replace(/\}/g,"\x07")+"}"})}if(/\{cdata/.test(W)){W=W.replace(/\{(\/?cdata)\}/g,"{$1\x05");var H=/\{cdata\x05([^\x05]*)\{\/cdata\x05/g;do{var O=false;W=W.replace(H,function(c,b){O=true;return"{cdata\x06"+b.replace(/[\}\x06]/g,"\x07")+"{/cdata\x06"})}while(O);W=W.replace(/\x06/g,"\x05");W=W.replace(H,function(c,b){return"{cdata "+b+"}"});W=W.replace(/\x05/g,"}");var L=/\{cdata\s+(\w+)\s*\}([\s\S]*)\1/g;W=W.replace(L,function(e,c,b){return"{cdata "+b.replace(/\}/g,"\x07")+"}"})}var I=/\{(minify)\}([^\}]*)\{\/minify\}/g;W=W.replace(I,F);var N=/\{minify (\w+)\s*\}([^\}]*)\1/g;W=W.replace(N,F);var a=/\$\{(%?)\s*([^\}\x07]+)\1\}/g;var Y=[];W=W.replace(a,function(e,c,k){var l=/([^\|])\|([^\|])/g;if(l.test(k)){k=k.replace(l,"$1\x08$2").replace(l,"$1\x08$2");var b=k.split("\x08");var j=b[0];var p="_ECHO(";var m=");";var o=/^([^:]*):?(.*)$/;for(var g=b.length-1;g>0;g--){var h=b[g].match(o);params=h[2]&&(","+h[2]);p+='_MODIFIERS["'+h[1]+'"](';m=params+")"+m}Y[Y.length]=p+j+m}else{Y[Y.length]="_ECHO("+k+");"}return"\x01"});var J=/\{(%?)((\/?[^\}\s]+)\s*([^\}]*))\1\}/g;
var X=[];W=W.replace(J,function(e,c,i,b,h){var g=B[b];if(g){X[X.length]=g(h)||"";return"\x02"}else{return e}});var Z=/([\r\n]*)([^\x01\x02]+)/g;W=W.replace(Z,"$1\x04$2");var M=/(\x04[^\x01\x02]*[\r\n])([\t ]+[\x02])/g;W=W.replace(M,"$1\x04$2");W=C(W);var Q=/([^\x01\x02\x04]*)\x04([^\x01\x02\x04]+)\x04?([^\x01\x02\x04]*)/g;var K=[];W=W.replace(Q,function(e,c,b,g){c=c&&("if(_FLAGS.keepWhitespace==true)_ECHO('"+c+"');");b=b&&("_ECHO('"+b+"');");g=g&&("if(_FLAGS.keepWhitespace==true)_ECHO('"+g+"');");K[K.length]=c+b+g;return"\x03"});var T=0,S=0,R=0;W=W.replace(/\x01/g,function(){return Y[T++]});W=W.replace(/\x02/g,function(){return X[S++]});W=W.replace(/\x03/g,function(){return K[R++]});this._sourceFunc=["var _renderFunc=function(_CONTEXT,_ECHO,_FLAGS,_MODIFIERS) {function defined(p){return (_CONTEXT[p]!=null)};var __LS__= new __LSC__();with(_CONTEXT){",W,"}};_renderFunc"].join("");try{this._render=eval(this._sourceFunc)}catch(V){this._render=function(b,c){c("Error parsing template. Use original TrimPath engine to debug.")}}},process:function(J,H){H=H||{};if(typeof H=="string"){H={lang:H}}var I=[];J=J||{};if(H.lang&&!J.labels){J.labels=G.allLabels[H.lang]||{}}else{J.labels=J.labels||G.labels}try{this._render(J||{},function(L){I.push(L)},H,this.modifiers)}catch(K){if(H.throwExceptions){throw K}return I.join("")+"[ERROR: "+K.toString()+(K.message?"; "+K.message:"")+"]"}return I.join("")}},{_Modifiers:A({eat:function(){return""},escape:function(H){return G.escapeHTML(String(H))},capitalize:function(H){return String(H).toUpperCase()},"default":function(H,I){return H!=null?H:I}},{init:function(){this.prototype.h=this.prototype.escape}}),init:function(){this.modifiers=this._Modifiers.prototype},parse:function(I){if(typeof I=="number"){var H=new E(E._precompiled[I])}else{var H=new E(I);H.parse()}return H},parseDOM:function(I,H){H=H||window.document;var J=H.getElementById(I);return E.parse((J.value||J.innerHTML).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/^<!\[CDATA\[/,"").replace(/\]\]>$/,""))},processDOM:function(J,K,I,H){return E.parseDOM(J,H).process(K,I)},precompile:function(H){return H},_precompiled:[]});G.extend({TPTemplate:E})})();(function(){var B=liligo;if(B.STemplate){return }var A=B.Class({constructor:function(D,C){C=C||/(^|[^\\]|\r|\n)\$\{(.*?)\}/g;this.source='return ["'+D.replace(/(\n|"|\\)/g,"\\$1").replace(C,function(F,G,E){if(E.match(/^[a-z0-9_]*$/)||E.match(/\./)){return G+'",d.'+E+',"'}else{return G+'",d["'+E+'"],"'}})+'"].join("");';if(window.opera){this.process=B.bind(function(){d=arguments[0];this.source=this.source.replace(/^return /g,"");this.source=this.source.replace(/\\\n/g,"");this.source=this.source.replace(/\s/g," ");return eval(this.source)},this)}else{this.process=new Function("d",this.source)}}},{parse:function(C){return new A(C)},process:function(D,C){return(new A(D)).process(C)}});B.extend({STemplate:A})})();(function(){var D=liligo,C=D.slice,B="_eventMap";if(D.Observable){return }var A=D.Abstract({_fireEvent:function(E){var F;if((F=this[B])&&(E=F[E])){for(F=0;F<E.length;F++){E[F].apply(this,C(arguments,1))}}},addEventListener:function(F,E){var G=this[B]||(this[B]={});(G[F]||(G[F]=[])).push(E)},removeEventListener:function(F,E){var G,H=this[B];if(!H){return false}if(F=H[F]){for(G=0;G<F.length;G++){if(F[G]==E){F.splice(G,1);return true}}}return false},attachEvent:function(F,E){this.addEventListener(F.substring(2),E)},detachEvent:function(F,E){this.removeEventListener(F.substring(2),E)}},{makeIt:function(E){var F=E.__constructorFunc;D.exportedExtend(E,A.prototype);if(F!==undefined){E.__constructorFunc=F}}});D.extend({Observable:A})})();(function(){var E=liligo,D=E.bind,C="length";if(E.Preloader){return }E.require("Observable");var B=function(G,H){var F=new Image;F.onload=F.onerror=F.onabort=function(){if(F){F=null;H()}};F.src=G};var A=E.Class(E.Observable,{_pos:0,constructor:function(H,J){var I=this;H=I._urls=(typeof H=="string")?[H]:H;if(H[C]){I._cb=J||D(I._fireEvent,I,"done");var G=I._next,F=D(G,I);I._next=function(){setTimeout(F,5)};G.apply(I)}else{J()}},_next:function(){var F=this;B(F._urls[F._pos++],(F._pos==F._urls[C])?F._cb:F._next)}},{add:function(F,G){new A(F,G)}});E.extend({Preloader:A,preload:A.add,preloaded:function(){var F=arguments;if(F[C]==1){F=F[0]}return[new A(F),"done"]}})})();(function(){var D=liligo,C=D.exportedExtend,B=D.nullFunc;if(D.AjaxRequest){return }var A=D.Class({_complete:false,constructor:function(F,E){this.url=F;this.setOptions(E);var H=this.options.parameters;if(typeof H=="object"){var I=[];for(var G in H){if(H.hasOwnProperty(G)){I.push(encodeURIComponent(G),"=",encodeURIComponent(H[G]),"&")}}H=this.options.parameters=I.join("").replace(/&$/,"")}if((this.options.method=="GET")&&H){this.url+=(this.url.indexOf("?")>-1?"&":"?")+H}try{this.xhr=A.newXHR();this.xhr.open(this.options.method,this.url,this.options.asynchronous);this.xhr.onreadystatechange=D.bind(this.onStateChange,this);this.setRequestHeaders();this.xhr.send(this.options.method=="POST"?(this.options.postBody||H):null)}catch(J){this.options.onException(J)}},setOptions:function(E){this.options={method:"POST",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",onException:function(F){if(D.IE){throw F}else{setTimeout(function(){throw F},0)}}};if(typeof E=="function"){this.options.onComplete=E}else{C(this.options,E||{})}this.options.method=this.options.method.toUpperCase()=="GET"?"GET":"POST"},onStateChange:function(){var E=this.xhr.readyState,G=A.Events[E];try{if(E==4){if(this._complete){return }this._complete=true;var F=this.xhr.status;if(this.options.onReady4){this.options.onReady4()}(this.options["on"+F]||this.options["on"+(!F||(F>=200&&F<300)?"Success":"Failure")]||B)(this.xhr,this.xhr.responseText)}}catch(H){this.options.onException(H)}try{if(E==4){(this.options["on"+G]||B)(this.xhr,this.xhr.responseText)}else{(this.options["on"+G]||B)(this.xhr)}}catch(H){this.options.onException(H)}if(E==4){this.xhr.onreadystatechange=B}return 
},setRequestHeaders:function(){var I=this.xhr;I.setRequestHeader("X-Requested-With","XMLHttpRequest");I.setRequestHeader("Accept","text/javascript, text/html, application/xml, text/xml, * /*");var H={};if(this.options.method=="POST"){I.setRequestHeader("Content-type",this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:""));if(this.xhr.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){I.setRequestHeader("Connection","close")}}if(typeof this.options.requestHeaders=="object"){var E=this.options.requestHeaders;if(E.constructor==Array){for(var F=0,G=E.length;F<G;F+=2){I.setRequestHeader(E[F],E[F+1])}}else{for(var F in E){if(E.hasOwnProperty(F)){I.setRequestHeader(F,E[F])}}}}},abort:function(){try{this.xhr.onreadystatechange=B;this.xhr.abort();this.options.onReady4()}catch(E){}}},{Events:["Uninitialized","Loading","Loaded","Interactive","Complete"],init:function(){this.newXHR=window.XMLHttpRequest?function(){return new XMLHttpRequest()}:function(){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(E){return new ActiveXObject("Microsoft.XMLHTTP")}}}});D.extend({AjaxRequest:A})})();(function(){var F=liligo,B=F.contains,D=F.$,C=F.safari;if(F.Style){return }F.require("BOM,ArrayGen");var E=function(G){return String(G).replace(/\-([a-z])/g,function(H,I){return I.toUpperCase()})};var A=F.Singleton({set:function(H,I){if(!(H=D(H))){return }for(var G in I){if(I.hasOwnProperty(G)){var J=I[G];if(G=="opacity"){A.setOpacity(H,J)}else{G=E(G);if(B(["float","cssFloat"],G)){G=A._floatProp}H.style[G]=J}}}return H},get:function(H,G){H=D(H);G=E(G);if(B(["float","cssFloat"],G)){G=A._floatProp}var I=H.style[G];if(!I){I=A._getComputedStyle(H,G)}if((I=="auto")&&B(["width","height"],G)&&(A.get(H,"display")!="none")){I=H["offset"+style.replace(/./,function(J){return J.toUpperCase()})]+"px"}if(window.opera&&B(["left","top","right","bottom"],G)){if(A.get(H,"position")=="static"){I="auto"}}if(G=="opacity"){if(I){return parseFloat(I)}if((I=(H.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/i))&&I[1]){return parseFloat(I[1])/100}return 1}return(I=="auto")?null:I},hide:function(H){if(!(H=D(H))){return }H.style.display="none";if(arguments.length>1){for(var G=0;G<arguments.length;G++){arguments.callee(arguments[G])}}return H},show:function(H){if(!(H=D(H))){return }H.style.display="";if(arguments.length>1){for(var G=0;G<arguments.length;G++){arguments.callee(arguments[G])}}return H},showIf:function(G,H){(G?this.show:this.hide)(H)},addClass:function(H,G){if(!(H=D(H))){return }if(!A.hasClass(H,G)){H.className+=(H.className?" ":"")+G}},removeClass:function(H,G){if(!(H=D(H))){return }H.className=H.className.replace(new RegExp("(^|\\s)"+G+"(\\s|$)"),"$2")},setClassIf:function(I,G,H){(I?this.addClass:this.removeClass)(G,H)},hasClass:function(H,G){return(new RegExp("(^|\\s)"+G+"(\\s|$)")).test(D(H).className)},setOpacity:function(G,H){if(!(G=D(G))){return }if(H==1){H=0.999999}else{if(H<0.00001){H=0}}G.style.MozOpacity=G.style.opacity=H;return G},_getStyleCont:function(){if(!this.styleTag){var G=this.styleTag=document.createElement("style");G.type="text/css";G.media="screen, projection";document.getElementsByTagName("head")[0].appendChild(G);if(C){G.appendChild(document.createTextNode("_safari {}"));this.styleTag=document.styleSheets[document.styleSheets.length-1]}}return this.styleTag},addRulesSafari:function(I,L){var J=L.split("}"),K,H,G=I;if(L.length>0){for(H=0;H<J.length;H++){K=J[H].replace(/^\s+|\s+$/g,"");if(K.length>0){G.ownerNode.appendChild(document.createTextNode(K+"}"))}}}else{while(G.ownerNode.firstChild){G.ownerNode.removeChild(G.ownerNode.firstChild)}}},addRules:function(H){var G=this._getStyleCont();if((typeof H!="string")&&(H.join)){H=H.join("\n")}if(!C){if(G.styleSheet){G.styleSheet.cssText+="\n"+H}else{G.innerHTML+="\n"+H}}else{this.addRulesSafari(G,H)}},fromFile:function(I){var G="",H;while(H=I.shift()){if((H.b=="all")||(H.b=="IE6"&&F.IE6)||(H.b=="IE7"&&F.IE7)){G+=H.rules+"\n"}}return G},init:function(){this._floatProp=F.detect("(typeof element.style.cssFloat == 'undefined')")?"styleFloat":"cssFloat";if(F.IE){this._getComputedStyle=function(H,G){return H.currentStyle?H.currentStyle[G]:null};this.setOpacity=function(G,I){G=D(G);var H=A.get(G,"filter");if(H){H=H.replace(/alpha\([^\)]*\)/gi,"")}if(I==1){G.style.filter=H+"alpha(opacity=100)"}else{if(I==""){G.style.filter=H}else{if(I<0.00001){I=0}G.style.filter=H+"alpha(opacity="+I*100+")"}}return G}}else{if(window.document&&document.defaultView&&document.defaultView.getComputedStyle){this._getComputedStyle=function(H,G){var I=document.defaultView.getComputedStyle(H,"");return I?I[G]:null}}else{this._getComputedStyle=function(){return""}}}}});F.extend({Style:A})})();(function(){var D=liligo,A=D.Style,B=D.$;if(D.Geometry){return }D.require("Style");var C=D.Singleton({position:function(F){F=B(F);var E=0,G=0;do{E+=F.offsetTop||0;G+=F.offsetLeft||0;F=F.offsetParent}while(F);return[G,E]},dimension:function(G){G=B(G);var F=G.style;var K=A.get(G,"display");if((K!="none")&&(K!=null)){return[G.offsetWidth,G.offsetHeight]}var I=F.visibility,H=F.position,E=F.display;F.visibility="hidden";F.position="absolute";F.display="block";var J=[G.clientWidth,G.clientHeight];F.display=E;F.position=H;F.visibility=I;return J}});D.extend({Geometry:C})})();(function(){var G=liligo,A=G.Class,F=G.Geometry,D=G.$,E=G.nullFunc;if(G.SafeLayer){return }G.require("BOM,Geometry");var C=A({constructor:function(H){H=this.element=D(H);H.style.zIndex=101},hide:function(H){H=D(H)||this.element;H.style.zIndex=101;H.style.display="none"},show:function(H){H=D(H)||this.element;H.style.zIndex=101;H.style.display="block";H.style.visibility="visible"},cover:E,updateSize:E,bind:function(H){this.element=H},move:function(H,I){this.element.style.left=H+"px";this.element.style.top=I+"px"}});if(G.IE){var B=C;C=new A(B,{widthOffset:0,heightOffset:0,constructor:function(H){this._base_constructor(H);var I=document.createElement("iframe");I.src="about:blank";I.style.zIndex=100;
I.style.display="none";I.style.position="absolute";document.body.appendChild(I);this.iframe=I},show:function(H){H=D(H)||this.element;H.style.visibility="hidden";H.style.display="block";this.cover(H);H.style.visibility="visible"},cover:function(H){H=D(H)||this.element;this.iframe.style.display="none";var I=this.iframe.style,J=F.dimension(H),K=F.position(H);H.style.zIndex=I.zIndex+1;I.left=K[0]+"px";I.top=K[1]+"px";this.updateSize(H);I.display="block"},updateSize:function(H){H=D(H)||this.element;var I=this.iframe.style,J=F.dimension(H);I.width=J[0]+this.widthOffset+"px";I.height=J[1]+this.heightOffset+"px"},hide:function(H){H=D(H)||this.element;this.iframe.style.display="none";H.style.display="none"},move:function(H,I){this.iframe.style.left=this.element.style.left=H+"px";this.iframe.style.top=this.element.style.top=I+"px"}})}G.extend({SafeLayer:C})})();(function(){var F=liligo,E=F.$,N=F.exportedExtend,H=F.TPTemplate,L=F.nullFunc,Q=F.Event,R=F.bind,B=Q.bind,O=F.labels,J=F.JSON.decode,M=F.forEach,A=F.Style,C=A.addClass,G=F.Geometry;if(F.CompLoc){return }F.require("Event,SafeLayer,TPTemplate,STemplate,Style,Preloader,Geometry,AjaxRequest,ArrayGen,Observable");var D="liligo_cl_";var I="		#PREFIXcont,#PREFIXcont *{font-family:Verdana,sans-serif,Tahoma,Arial;margin:0;padding:0;font-size:11px;border:0;list-style:none}		#PREFIXcont{position:absolute;display:block}		#PREFIXcont div{background-color:#ffecdd;border:1px solid #bebebe;width:auto}		#PREFIXcont ul{margin:1px}		#PREFIXcont li{display:block;cursor:pointer;cursor:hand}		#PREFIXcont a{display:block;text-decoration:none;cursor:pointer;cursor:hand;font-size:bold;color:#111;padding:2px 2px 2px 2px}		#PREFIXcont .active a{background-color:#ff6d00;color:#fff}		#PREFIXcont .separator{margin:2px 0 1px 0;display:block;background:url(/img/hdots_transparent.gif) repeat-x;font-size:1px}		#PREFIXcont ul > .separator{min-height:1px}				#PREFIXcont .air .type1{background:transparent url(/liligo/img/comploc-icons.png) no-repeat 0 -51px;padding-left:20px}		#PREFIXcont .air .type2{background:transparent url(/liligo/img/comploc-icons.png) no-repeat 0 -1px;padding-left:20px}		#PREFIXcont .air .type3{background:transparent url(/liligo/img/comploc-icons.png) no-repeat 0 -101px;padding-left:20px}				#PREFIXcont .hotel ul{margin:1px}		#PREFIXcont .hotel .noresult,		#PREFIXcont .hotel li.last{background:0}		#PREFIXcont .hotel a{padding:4px 3px 4px 2px}				#PREFIXcont .country ul{margin:1px}		#PREFIXcont .country .noresult,		#PREFIXcont .country li.last{background:0}		#PREFIXcont .country a{padding:4px 3px 4px 2px}	";var K="		#PREFIXcont ul li.separator{height:auto;min-height:auto !important}	";var P=F.Class(F.Observable,{minChars:3,maxRows:15,offsetLeft:0,offsetTop:1,cssClass:"",format:"",fragRE:/^([^,]*)/,type:"air",url:"/air/new_comploc.jsp",AjaxRequest:F.AjaxRequest,onKeyDown:function(S){this._fireEvent("keydown",S,this)},onKeyUp:L,onFocus:L,onBlur:L,onChange:L,template:H.precompile('<ul>				{if items.length == 0}					<li class="noresult"><a href="#"><span>${labels.comploc_no_results_found}</span></a></li>				{/if}				{for item inarray items}					{if item.separator}						<li class="separator"></li>\n					{else}						<li id="${item.id}" class="normal {if item.type}type${item.type}{/if}">\n							<a href="#">\n								<span>${item.label}</span>\n							</a>\n						</li>\n					{/if}				{/for}			</ul>'),_visible:false,_active:0,constructor:function(S){S=S||{};if(document.body){this._init(S)}else{Q.observe(document,"DOMContentLoaded",R(this._init,this,S))}},_init:function(S){if(!P.initialized){P.initialize()}N(this,S);this.elem=E(this.field||this.elem||"fromLocation");if(!this.elem){return }this.elem.setAttribute("autocomplete","off");this.hidden=E(this.hidden);this.nextFocus=E(this.nextFocus);this.prevFocus=E(this.prevFocus);if(this.format){this._format=F.STemplate.parse(this.format)}if(!this.hidden){this._initHidden()}if(!this.lang){this.lang=F.getLang()||"fr"}if(!S.url){this._initUrl()}if(!S.offsetLeft&&(this.type=="hotel")){this.offsetLeft=0}if(S.template){this.templateFunc=H.parse(this.template)}this._bindedOnBlur=R(this._onBlur,this);Q.observe(this.elem,{keydown:B(this._onKeyDown,this),keyup:B(this._onKeyUp,this),focus:R(this._onFocus,this),blur:this._bindedOnBlur})},_initHidden:function(){var S=this.elem.id||this.elem.name,U=this.elem.name||this.elem.id;this.hidden=E(S+"Code");if(!this.hidden){var T=document.createElement("input");T.type="hidden";T.name=U+"Code";T.id=S+"Code";T.value="";this.elem.parentNode.insertBefore(T,this.elem);this.hidden=T}},_initUrl:function(){var S={air:"/air/new_comploc.jsp",hotel:"/hotel/new_comploc.jsp",country:"/homepage/country_comploc.jsp"};if(S[this.type]){this.url=S[this.type]}},clear:function(){this._active=0;this._list=[];this.elem.value="";this.hidden.value=""},_onKeyUp:function(T){if(P.getActive()!=this){return }var S=this._getFrag();if(S.length<this.minChars){this._list=[];this.hidden.value=""}if(!this._visible||(this.prevValue!=S)){if(this.prevValue&&(this.prevValue.length>S.length)){this.hidden.value=""}if(S.length>=this.minChars){P.updateList(S)}else{this.hide()}}this.onKeyUp()},_onKeyDown:function(T){this.prevValue=this._getFrag();P.setActive(this);switch(T.keyCode){case Q.KEY_TAB:case Q.KEY_RETURN:var S=T.shiftKey?this.prevFocus:this.nextFocus;if(S){S.focus();Q.stop(T)}else{this._onBlur()}break;case Q.KEY_DOWN:this._nextItem();Q.stop(T);break;case Q.KEY_UP:this._prevItem();Q.stop(T);break}this.onKeyDown(T)},_onFocus:function(){P.setActive(this);this.beforeFocus=this.hidden.value;this.elem.select();this.onFocus()},_onBlur:function(){this._select();P.noActive();this.hide();this.onBlur()},_getFrag:function(){var S=this.elem.value.match(this.fragRE);return(S&&S[1])?S[1].replace(/^\s+|\s+$/g,""):""},show:function(){this._visible=true;P.div.className=this.cssClass+" "+this.type;var T=G.position(this.elem);var S=G.dimension(this.elem);P.safeLayer.move(T[0]+this.offsetLeft,T[1]+S[1]+this.offsetTop);P.safeLayer.show()},hide:function(){this._visible=false;
P.safeLayer.hide()},prepareList:function(){var T=[];var U=1;var S={separator:true};this._active=P.prototype._active;M(this._list,function(W,V){if(W.value==this.hidden.value){this._active=V}if(this._format){W.label=this._format.process(W)}if(U!=W.group&&W.group!==undefined){U=W.group;T.push(S)}W.index=V;W.id=D+"item_"+V;T.push(W)},this);return T},onList:function(U){this._list=U;var T=this.prepareList();var S=this._template.process({items:T},this.lang);P.div.innerHTML=S;this._itemOver(this._active);M(this._list,function(X,V){var W=E(X.id);if(V==0){C(W,"first")}if(V==this._list.length-1){C(W,"last")}Q.observe(W,{mouseover:R(this._itemOver,this,V),mouseout:R(this._itemOut,this,V),mousedown:R(this._itemClick,this,V)})},this);P.safeLayer.updateSize();if(!this._visible){this.show()}},_itemOver:function(S){var T;if(T=E(D+"item_"+S)){this._itemOut(this._active);this._active=S;this.hidden.value=this._list[S].value;C(T,"active")}},_itemOut:function(S){if(S=E(D+"item_"+S)){A.removeClass(S,"active")}},_nextItem:function(){if(this._list){this._itemOut(this._active);this._itemOver((++this._active>=this._list.length)?this._active=0:this._active)}},_prevItem:function(){if(this._list){this._itemOut(this._active);this._itemOver((--this._active<0)?this.active=this._list.length-1:this._active)}},_itemClick:function(S){if(this.nextFocus){setTimeout(R(function(){this.nextFocus.focus()},this),10)}Q.stop(S)},_select:function(){var S;if(this._list&&(S=this._list[this._active])){this.elem.value=S.label;this.hidden.value=S.value;this.value=S;if(this.beforeFocus!=S.value){this.beforeFocus=this.hidden.value;this.onChange(this.elem,S);this._fireEvent("change",this.elem,S)}}}},{cache:{},initialized:false,initialize:function(){this.initialized=true;this.prototype._template=H.parse(this.prototype.template);if(!O.comploc_no_results_found){O.comploc_no_results_found=O.any_results}var T=document.createElement("div");T.id=D+"cont";A.hide(T);this.div=document.createElement("div");document.body.appendChild(T);T.appendChild(this.div);this.safeLayer=new F.SafeLayer(T);if(F.IE){I=I+K}I=I.replace(/PREFIX/g,D);A.addRules(I);var S=[];I.replace(/url\((.*?)\)/g,function(U,V){S.push(V);return U});F.preload(S)},setActive:function(S){if(this.active&&(this.active!=S)){this.active.hide();this.nextFrag="";this.abortRequest();this.noActive()}if(!this.active||(this.active!=S)){this.active=S;this.cacheProp=S.maxRows+S.url;if(!this.cache[this.cacheProp]){this.cache[this.cacheProp]={}}}},getActive:function(){return this.active},noActive:function(){this.cache[this.cacheProp]=null;this.active=null},abortRequest:function(){if(this.request){this.request.abort();this.request=null}if(this.nextFrag){var S=this.nextFrag;this.nextFrag="";this.updateList(S)}},updateList:function(S){if(!this.active){return }if(this.cache[this.cacheProp]&&this.cache[this.cacheProp][S]){this.nextFrag="";this.abortRequest();this.active.onList(this.cache[this.cacheProp][S])}else{if(this.request){if(this.request.frag!=S){this.nextFrag=S}}else{this.request=new this.active.AjaxRequest(this.active.url,{method:"get",parameters:{frag:S,lang:this.active.lang,maxrows:this.active.maxRows},onComplete:R(this.onList,this,this.active),onException:R(this.abortRequest,this)});this.request.frag=S}}},onList:function(U,S,V){if(typeof V=="string"){var T=J("("+V+")")}else{T=V}if(T){U.onList(T);if(this.active!=U){U._onBlur();return this.abortRequest()}this.cache[this.cacheProp][this.request.frag]=T}this.abortRequest()}});F.extend({CompLoc:P})})();(function(){var F=liligo,E=F.$,H=F.bind,D=F.nullFunc,J=F.allLabels,G=F.IE,K=F.Event,L=F.Style,C=F.Element,M=F.DOM;if(F.DatePicker){return }F.require("BOM,DOM,Event,SafeLayer,Preloader,Geometry,Style,Observable");var A={months:["January","February","March","April","May","June","July","August","September","October","November","December"],days:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]};var B=F.Singleton({getDayInitial:function(O,N){return J[N||F.getLang()][A.days[O]+"_Initial"]},addDays:function(O,P){var N=new Date(new Date().setTime(O.getTime()+P*86400000+3600000));return new Date(N.getFullYear(),N.getMonth(),N.getDate())},format:function(O,P,N){var Q=function(U){var R=O.getDate(),T=O.getMonth(),S=O.getFullYear();if(U=="%j"){return R}if(U=="%d"){return(R>9?"":"0")+R}if(U=="%m"){return(T>8?"":"0")+(1+T)}if(U=="%F"){return J[N][A.months[T]+"_Long"]}if(U=="%M"){return J[N][A.months[T]+"_Short"]}if(U=="%Y"){return S}if(U=="%y"){return(""+S).match(/..$/)[0]}};return P.replace(/(%.)%S/g,function(S,R){R=Q(R);switch(R*1%10){case 1:return R+"st";case 2:return R+"nd";case 3:return R+"rd";default:return R+"th"}}).replace(/%./g,Q)},isLeapYear:function(N){if(0==N.getFullYear()%400){return true}if(0==N.getFullYear()%100){return false}return(0==N.getFullYear()%4)?true:false},getDaysInMonth:function(N){var O={0:31,2:31,3:30,4:31,5:30,6:31,7:31,8:30,9:31,10:30,11:31}[N.getMonth()];if(O==null){return B.isLeapYear(N)?29:28}else{return O}},getDayDate:function(N){return new Date(N.getFullYear(),N.getMonth(),N.getDate())}});var I=new F.Class(F.Observable,{offsetLeft:0,offsetTop:0,months:2,firstDay:0,minDate:null,maxDate:new Date(3000,1,1),minDays:0,className:"",constructor:function(N){if(!I.initialized){I.initialize()}this.elem=E(N.elem||N.field);if(!this.elem){throw"DatePicker constructor error: no elem"}this.elem.setAttribute("readonly","readonly");this.elem.readOnly=true;this.oldNaming=N.oldNaming;this.idPrefix=(this.elem.id||this.elem.name)+"-";this.namePrefix=(this.elem.name||this.elem.id)+(this.oldNaming?"":"-");this.opener=N.opener||N.picker||E(this.idPrefix+"picker");if(!this.opener){throw"DatePicker constructor error: no opener/picker found"}this.dayDisplay=E(N.dayDisplay||this.idPrefix+"day-display");this.locale=N.lang||N.locale||F.getLang();this.firstDay=N.firstDay||this.firstDay;this.minDays=N.minDays||this.minDays;this.preDepartureDays=(N.preDepartureDays==undefined)?7:N.preDepartureDays;this.preReturnDays=(N.preReturnDays==undefined)?7:N.preReturnDays;
this.direction=N.direction||I.DIR_NORMAL;this.onClosed=N.onClosed||D;this.onSet=N.onSet||D;this.container=E(N.container||document.body);this.minDate=N.minDate||this.minDate;this.maxDate=N.maxDate||this.maxDate;this.className=N.className||this.className;this.filter=(N.filter==undefined)?this.filter:N.filter;if(this.direction==I.DIR_RET){this.dontModify=false;if(N.depPicker==null){throw"Datepicker constructor error: (direction == DatePicker.DIR_RET) but no depPicker"}else{this.depPicker=N.depPicker}}this.retPicker=N.retPicker;if((N.left==null)||(N.top==null)){this.posOpener=true}else{this.left=N.left;this.top=N.top;this.posOpener=false}this.offsetLeft=N.offsetLeft||this.offsetLeft;this.offsetTop=N.offsetTop||this.offsetTop;this.fields={year:E(N.yearField)||this.newHidden("year"),month:E(N.monthField)||this.newHidden("month"),day:E(N.dayField)||this.newHidden("day")};if(N.value==null){if(this.direction==I.DIR_RET){this.value=B.addDays(this.depPicker.value,this.preReturnDays)}else{this.value=B.addDays(B.getDayDate(new Date()),this.preDepartureDays)}}else{this.value=B.getDayDate(N.value)}this.nextFocus=E(N.nextFocus);this.months=N.months||this.months;if(!N.topFormat){if(I.defaultFormats.top[this.locale]){this.topFormat=I.defaultFormats.top[this.locale]}else{this.topFormat=I.defaultFormats.top.def}}else{this.topFormat=N.topFormat}if(!N.bottomFormat){if(I.defaultFormats.bottom[this.locale]){this.bottomFormat=I.defaultFormats.bottom[this.locale]}else{this.bottomFormat=I.defaultFormats.bottom.def}}else{this.bottomFormat=N.bottomFormat}if(!N.displayFormat){if(I.defaultFormats.display[this.locale]){this.displayFormat=I.defaultFormats.display[this.locale]}else{this.displayFormat=I.defaultFormats.display.def}}else{this.displayFormat=N.displayFormat}this.oneWayRadio=E(N.oneWayRadio);this.init()},init:function(){this.saveToFields();this.opener.onfocus=this.opener.onclick=H(function(){this.open();return false},this);K.observe(this.elem,"focus",H(function(){this.elem.select();this.open()},this));K.observe(this.elem,"keydown",K.bind(function(N){if((I.actual!=this)&&(N.keyCode==K.KEY_TAB)){K.stop(N);this.open()}},this));if(this.elem.select){this.elem.onclick=H(function(){this.elem.select();this.open()},this)}this.dontBlur=false;this.elem.onblur=this.opener.onblur=H(function(){if(this.dontBlur){return false}try{I.actual.close()}catch(N){}},this)},newHidden:function(P){var N=this.namePrefix+P;if(this.oldNaming){N=this.namePrefix+P.charAt(0).toUpperCase()+P.substr(1)}var O=C("input",{type:"hidden",name:N,id:this.idPrefix+P,value:""});this.elem.parentNode.insertBefore(O,this.elem);return O},saveToFields:function(){this.displayed=B.format(this.value,this.displayFormat,this.locale);if(this.elem.nodeName=="INPUT"){this.elem.value=this.displayed}if(this.dayDisplay){var N=this.value.getDay();N=(N==0)?6:(N-1);this.dayDisplay.innerHTML=J[this.locale][A.days[N]+"_Long"]}this.fields.year.value=this.value.getFullYear();this.fields.month.value=this.value.getMonth();this.fields.day.value=this.value.getDate()},open:function(){I.actual=this;var S=I.layerbg;var O=I.div;var N=I.elements;N.dpBody.removeChild(N.br);for(var R=0;R<N.months.length;R++){N.dpBody.removeChild(N.months[R])}N.months=[];O.className=this.className+" datepicker dp"+this.months;I.overed=null;this.rowsMax=0;var P=this.getFirstMonth();for(var R=0;R<this.months;R++){var T=C("div",{className:"dpMonth dpMonth"+(R+1)});N.dpBody.appendChild(T);T.value=new Date(P.year,P.month+R,1);T.header=C("div",{className:"dpMonthHeader"});T.appendChild(T.header);T.header.span=C("span");T.header.appendChild(T.header.span);if(R==0){T.header.appendChild(N.prev)}if(R==this.months-1){T.header.appendChild(N.next)}T.table=C("table");T.thead=T.table.createTHead();T.tbody=C("tbody");T.table.appendChild(T.tbody);var X=T.thead.insertRow(-1);for(var Q=0;Q<7;Q++){var V=X.insertCell(-1);if(this.firstDay==0){V.innerHTML="<span>"+B.getDayInitial(Q,this.locale)+"</span>"}else{V.innerHTML="<span>"+B.getDayInitial((Q==0)?6:(Q-1),this.locale)+"</span>"}if(Q==0){V.className="first"}else{if(Q==6){V.className="last"}}}this.buildMonth(T);T.appendChild(T.table);N.months.push(T)}this.equalizeRows();N.dpBody.appendChild(N.br);N.prev.onclick=function(){I.actual.prevMonth();return false};N.next.onclick=function(){I.actual.nextMonth();return false};N.prev.onmousedown=N.next.onmousedown=function(){I.actual.dontBlur=true};N.prev.onmouseup=N.prev.onmouseover=N.next.onmouseup=N.next.onmouseover=function(){I.actual.dontBlur=false};if(this.posOpener){var U=F.Geometry.position(this.opener);O.style.left=U[0]+this.offsetLeft+"px";O.style.top=U[1]+this.offsetTop+"px"}else{O.style.left=this.left+"px";O.style.top=this.top+"px"}var W=I.actual.container;if(O.parentNode!=W){W.appendChild(O)}O.style.display="block";I.actual.oldOnKeyDown=document.onkeydown;document.onkeydown=I.actual.onKey;O.style.zIndex=101;if(G){S.style.left=O.offsetLeft+"px";S.style.top=O.offsetTop+"px";S.style.width=O.offsetWidth+"px";S.style.height=O.offsetHeight+"px";S.style.display="block"}},buildMonths:function(){var O=I.elements;this.rowsMax=0;for(var N=0;N<O.months.length;N++){this.buildMonth(O.months[N])}this.equalizeRows();if(G){I.layerbg.style.width=I.div.offsetWidth+"px";I.layerbg.style.height=I.div.offsetHeight+"px"}},buildMonth:function(W){W.header.span.innerHTML=B.format(W.value,this.topFormat,this.locale);for(var U=W.tbody.rows.length-1;U>=0;U--){W.tbody.deleteRow(U)}var e=W.tbody.insertRow(-1);var N=W.value.getDay()-1;if(N==-1){N=6}var Z=this.firstDay;if(this.firstDay!=0){N=(N==6)?0:N+1}for(var V=true;N>0;N--){var a=e.insertCell(-1);a.innerHTML="<span></span>";if(V){a.className="first";V=false}if((Z==5)||(Z==6)){a.className+=" weekend"}if(++Z==7){Z=0}}var a,T,Y=(this.firstDay==0)?6:5,b=this.value.getTime(),O=(B.getDayDate(new Date())).getTime(),X=this.maxDate?B.getDayDate(this.maxDate).getTime():Infinity;if(this.minDate){T=this.minDate}else{if(this.direction==I.DIR_RET){T=B.addDays(this.depPicker.value,this.minDays).getTime()}else{T=O}}var R=new Date(W.value.getFullYear(),W.value.getMonth(),1);
var P=B.getDaysInMonth(W.value);for(var S=1;S<P+1;S++){if((Z==this.firstDay)&&(e.cells.length!=0)){e=W.tbody.insertRow(-1)}a=e.insertCell(-1);if(Z==this.firstDay){a.className="first"}else{if(Z==Y){a.className="last"}}R.setDate(S);var Q=R.getTime();if(Q==O){a.className+=" now"}if(Q>=T&&this.filter&&!this.filter[Q]){a.className+=" filtered";a.innerHTML="<span>"+S+"</span>"}else{if((Q<T)||(Q>X)){a.className+=" disabled";var c=J[this.locale];if(this.direction==I.DIR_RET){a.title=c.datepicker_return_before_depart||c.return_before_depart}else{if(this.direction==I.DIR_DEP){a.title=c.datepicker_date_not_available||c.date_not_available}}a.innerHTML="<span>"+S+"</span>"}else{a.innerHTML='<a href="#" onclick="return liligo.DatePicker.actual.select('+Q+')" onmousedown="liligo.DatePicker.actual.dontBlur=true" onmouseup="liligo.DatePicker.actual.dontBlur=false" onmouseover="liligo.DatePicker.mouseOver(this);" onmouseout="liligo.DatePicker.mouseOut(this);">'+S+"</a>"}}if((Z==5)||(Z==6)){a.className+=" weekend"}a.firstChild.value=Q;if(Q==b){a.className+=" actual";I.mouseOver(a.firstChild)}if(++Z==7){Z=0}}if(Z!=this.firstDay){for(;Z<=Y;Z++){a=e.insertCell(-1);a.innerHTML="<span></span>";if(Z==Y){a.className="last"}if((Z==5)||(Z==6)){a.className+=" weekend"}}}if(this.rowsMax<W.tbody.rows.length){this.rowsMax=W.tbody.rows.length}},equalizeRows:function(){var R=I.elements;for(var Q=0;Q<R.months.length;Q++){if(this.rowsMax>R.months[Q].tbody.rows.length){for(var P=0;P<this.rowsMax-R.months[Q].tbody.rows.length;P++){var S=R.months[Q].tbody.insertRow(-1),O=this.firstDay;for(var N=0;N<7;N++){cell=S.insertCell(-1);cell.innerHTML="<span></span>";if(N==0){cell.className="first"}else{if(N==6){cell.className="last"}}if((O==5)||(O==6)){cell.className+=" weekend"}if(++O==7){O=0}}}}}},getFirstMonth:function(){if(this.direction==I.DIR_RET){var N=new Date(this.depPicker.value.getFullYear(),this.depPicker.value.getMonth(),1);depTo=new Date(this.depPicker.value.getFullYear(),this.depPicker.value.getMonth()+this.months,1);if((N<=this.value)&&(this.value<depTo)){return{year:this.depPicker.value.getFullYear(),month:this.depPicker.value.getMonth()}}}return{year:this.value.getFullYear(),month:this.value.getMonth()}},prevMonth:function(){var P=I.elements;I.overed=null;for(var O=0;O<P.months.length;O++){var N=P.months[O].value;P.months[O].value=new Date(N.getFullYear(),N.getMonth()-1,N.getDate())}this.buildMonths()},nextMonth:function(){var P=I.elements;I.overed=null;for(var O=0;O<P.months.length;O++){var N=P.months[O].value;P.months[O].value=new Date(N.getFullYear(),N.getMonth()+1,N.getDate())}this.buildMonths()},saveToTemp:function(){this.fields.year.value=this.value.getFullYear();this.fields.month.value=this.value.getMonth();this.fields.day.value=this.value.getDate()},select:function(N){var P=I.actual;P.value.setTime(N);P.saveToFields();if(P.direction==I.DIR_DEP){if(P.retPicker!=undefined){if((P.retPicker.dontModify)&&(P.retPicker.value>=P.value)){P.retPicker.dontModify=false}else{P.retPicker.value=B.addDays(P.value,this.preReturnDays);if((!P.oneWayRadio)||P.oneWayRadio.checked==false){P.retPicker.saveToFields()}else{P.retPicker.saveToTemp()}}}}else{if(P.direction==I.DIR_RET){this.dontModify=true}}P.close();if(P.nextFocus){try{P.nextFocus.focus()}catch(O){}}try{P._fireEvent("set",P,P.value);P.onSet(P)}catch(O){}return false},set:function(N){this.value.setTime(N);this.value=B.getDayDate(this.value);this.saveToFields()},onKey:function(S){var T=I.actual;if(!T){return }S=S||window.event;switch(S.keyCode){case K.KEY_TAB:T.close();var R=T.elem.value;if(T.nextFocus){T.nextFocus.focus()}T.elem.value=R;break;case K.KEY_ESC:T.close();break;case K.KEY_PAGEDOWN:T.nextMonth();I.mouseOver(I.elements.months[0].tbody.rows[0].cells[0].firstChild);break;case K.KEY_PAGEUP:T.prevMonth();I.mouseOver(I.elements.months[I.elements.months.length-1].tbody.rows[0].cells[0].firstChild);break;case 32:case K.KEY_RETURN:if(!I.overed){return false}if(I.overed.nodeName!="A"){return false}if(!G){var O=K.bindStop(function(){T.select(I.overed.value);K.stopObserving(document,"keypress",O)});K.observe(document,"keypress",O)}else{T.select(I.overed.value)}break;case K.KEY_LEFT:I.mouseOut(I.overed);var Q=I.overed.parentNode;var P=Q.previousSibling;if(P==null){P=Q.parentNode.parentNode.parentNode.parentNode.previousSibling;if(P==null){var N=Q.parentNode.sectionRowIndex;T.prevMonth();P=I.elements.months[0].tbody.rows[N];if(P==null){P=I.elements.months[0].tbody.rows[N-1].lastChild}else{P=P.lastChild}}else{P=P.lastChild.lastChild.rows[Q.parentNode.sectionRowIndex].lastChild}}I.mouseOver(P.firstChild);break;case K.KEY_RIGHT:I.mouseOut(I.overed);var Q=I.overed.parentNode;var P=Q.nextSibling;if(P==null){P=Q.parentNode.parentNode.parentNode.parentNode.nextSibling;if(P.nodeName=="BR"){var N=Q.parentNode.sectionRowIndex;T.nextMonth();P=I.elements.months[I.elements.months.length-1].tbody.rows[N];if(P==null){P=I.elements.months[I.elements.months.length-1].tbody.rows[N-1].firstChild}else{P=P.firstChild}}else{P=P.lastChild.lastChild.rows[Q.parentNode.sectionRowIndex].firstChild}}I.mouseOver(P.firstChild);break;case K.KEY_UP:I.mouseOut(I.overed);var Q=I.overed.parentNode;var P=Q.parentNode.previousSibling;if(P==null){P=Q}else{P=P.cells[Q.cellIndex]}I.mouseOver(P.firstChild);break;case K.KEY_DOWN:I.mouseOut(I.overed);var Q=I.overed.parentNode;var P=Q.parentNode.nextSibling;if(P==null){P=Q}else{P=P.cells[Q.cellIndex]}I.mouseOver(P.firstChild);break;case 116:return true;break}return false},close:function(){if(I.actual!=null){document.onkeydown=I.actual.oldOnKeyDown}I.div.style.display="none";if(G){I.layerbg.style.display="none"}I.actual=null;this.onClosed()}},{DIR_NORMAL:0,DIR_DEP:1,DIR_RET:2,initialized:false,defaultFormats:{top:{fr:"%F, %Y",en:"%F, %Y",es:"%F, %Y",hu:"%Y. %F",def:"%F, %Y"},bottom:{fr:"%d %F %Y",en:"%d %F %Y",es:"%d %F %Y",hu:"%Y. %F %d.",def:"%d %F %Y"},display:{fr:"%d %F %Y",en:"%d %F %Y",es:"%d %F %Y",hu:"%Y. %M %d.",def:"%d %F %Y"}},initialize:function(){var P=C("div",{className:"datepicker",innerHTML:""});
L.hide(P);M.add(P);this.div=P;var O={months:[]};O.dpHeader=C("div",{className:"dpHeader"});P.appendChild(O.dpHeader);O.dpHeader.a=C("a",{href:"#"});O.dpHeader.appendChild(O.dpHeader.a);O.dpHeader.a.onclick=function(){I.actual.close();return false};O.dpBody=C("div",{className:"dpBody"});P.appendChild(O.dpBody);O.dpFooter=C("div",{className:"dpFooter"});O.dpFooter.span=C("span");O.dpFooter.appendChild(O.dpFooter.span);P.appendChild(O.dpFooter);O.prev=C("a",{className:"dpPrev",href:"#"});O.next=C("a",{className:"dpNext",href:"#"});O.br=C("br");O.dpBody.appendChild(O.br);this.elements=O;if(G){var N=C("iframe",{src:"about:blank"});N.style.zIndex=100;N.style.position="absolute";N.style.display="none";M.add(N);this.layerbg=N}if(F.detect("Gecko.\\d{4}")){L.addRules(".datepicker table{position:relative;left:1px}\n.datepicker .dpMonth1 table{position:auto;left:auto}")}L.addRules(L.fromFile([{"rules":".datepicker,.datepicker div,.datepicker span,.datepicker a{margin:0;padding:0;font-family:Verdana;font-size:9px;font-weight:normal;}.datepicker{position:absolute;border:1px solid #bebebe;padding:1px;margin:0;background:#fff;text-align:left;}.datepicker .dpHeader{background:#bebebe url(/liligo/img/datepicker-close.gif) no-repeat;height:18px;text-align:right;}.datepicker .dpHeader a{display:block;float:right;height:18px;width:26px;outline:none;}.dp1 .dpHeader{background-position:111px 2px;}.dp2 .dpHeader{background-position:246px 2px;}.datepicker .dpBody{background:#bebebe;height:1%;}.datepicker .dpFooter{background:#ff6d00;height:18px;}.datepicker .dpFooter span{display:block;text-align:center;color:#fff;padding-top:3px;}.dp1 .dpHeader,.dp1 .dpFooter,.dp1 .dpBody{width:133px;}.dp2 .dpHeader,.dp2 .dpFooter,.dp2 .dpBody{width:267px;}.datepicker .dpMonth{width:133px;float:left;background:#fff;}.datepicker .dpMonth2{margin-left:1px;}.datepicker br{clear:both;}.datepicker .dpMonthHeader{height:14px;position:relative;}.datepicker .dpMonthHeader span{text-align:center;display:block;}.datepicker .dpMonthHeader .dpPrev,.datepicker .dpMonthHeader .dpNext{width:20px;height:12px;position:absolute;top:0;border:0;outline:none;}.datepicker .dpMonthHeader .dpPrev{left:0;background:url(/liligo/img/datepicker-prevnext.gif) 2px 1px no-repeat;}.datepicker .dpMonthHeader .dpNext{left:116px;background:url(/liligo/img/datepicker-prevnext.gif) 2px -49px no-repeat;}.datepicker table{border-collapse:collapse;}.datepicker table td{text-align:center;background:#cdcdcd;padding:0;border:1px solid #fff;}.datepicker table thead td{background:#ff6d00;}.datepicker .dpMonth1 table td.first{border-left:0;}.datepicker table td.last{border-right:0;}.datepicker thead span{background:#ff6d00;display:block;margin:1px;width:16px;height:12px;color:#fff;font-weight:bold;}.datepicker tbody a{background:#fff;display:block;margin:1px;width:16px;height:12px;text-decoration:none;color:#000;}.datepicker tbody span{background:#fff;display:block;margin:1px;width:16px;height:12px;}.datepicker tbody td.weekend a,.datepicker tbody td.weekend span{background:#feecde;}.datepicker tbody td.now{background:#ff6d00;}.datepicker tbody td.disabled span{color:#c0c0c0;}.datepicker tbody td.hover{background:#ff6d00;}.datepicker tbody td.hover a{background:#ff6d00;color:#fff;}.datepicker tbody td.actual a{font-weight:bold;}.datepicker tbody td.filtered span{background-image:url(/liligo/img/datepicker-filter.png);}","b":"all"},{"rules":".datepicker tbody td.filtered span{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/liligo/img/datepicker-filter.png',sizingmethod='crop');}","b":"IE6"}]));F.preload(["/liligo/img/datepicker-close.gif","/liligo/img/datepicker-prevnext.gif"]);this.initialized=true},mouseOver:function(O){var N=new Date(),P=I.actual;if(!P){return }N.setTime(O.value);if(O.value==undefined){I.elements.dpFooter.span.innerHTML=""}else{I.elements.dpFooter.span.innerHTML=B.format(N,P.bottomFormat,P.locale)}if(I.overed!=null){this.mouseOut(I.overed)}I.overed=O;O.parentNode.oldClassName=O.parentNode.className;O.parentNode.className+=" hover"},mouseOut:function(N){if(N.parentNode!=undefined){N.parentNode.className=N.parentNode.oldClassName}if(I.actual){I.actual.dontBlur=false}}});F.extend({DateTools:B,DatePicker:I})})()
