(function(){var K="window",D=(function(){return this[K]?this:(this[K]=this)})(),R=D.document,F="function",E="string",B=Array.prototype.slice,I,H=/([\/()[\]{}|*+-.,^$?\\])/g,M,S,C,A,N,T,P={},O=D.liligo={namespace:"",exportedExtend:N=function(U,W){for(var V in W){U[V]=W[V]}return U},extend:A=function(V){N(O,V);for(var U in V){if(V.hasOwnProperty(U)&&(U.charAt(0)!="@")){O.namespace+=["var ","=liligo.",";"].join(U)}}}},L,Q,J=function(U,V,W){return function(){this[U]=V;var X=W.apply(this,arguments);delete this[U];return X}};O.namespace+="var extend=liligo.exportedExtend;";A({Class:L=function(W,i,l){var a="constructor",k="__constructorFunc",g="hasOwnProperty",j="_base_constructor",Y="toString",c,h=function(){this[k].apply(this,arguments)},b=h.prototype,e,X=function(){},V=X,Z=null,U;if(typeof W!=F){c=W[a];if(c&&c[g]("__isSingleton")){W=c}else{l=i||{};i=W||{};W=0}}if(W){Z=W.prototype;V=Z[k];Z[k]=X;b=h.prototype=new W();if(W.__isAbstract){i[a]=i[g](a)?i[a]:X;for(U in Z){if(Z[g](U)){if((Z[U]===null)&&!i[g](U)){throw Error("Abstract error")}}}}if(Z[g](j)){b[j]=function(){this[j]=Z[j];Z[k].apply(this,arguments);delete this[j]};Z[k]=V}else{b[j]=Z[k]=V}}e=i[g](a)?i[a]:V;delete i[a];for(U in i){if(i[g](U)){if(Z&&Z[U]){if((base=b["_base_"+U])&&(typeof base==F)){b["_base_"+U]=J("_base_"+U,base,Z[U])}else{b["_base_"+U]=Z[U]}}b[U]=i[U]}}if(i[g](Y)){if(Z&&Z[Y]){b._base_toString=Z[Y]}b[Y]=i[Y]}b[k]=e;for(U in l){if(l[g](U)&&(U!="prototype")){h[U]=l[U]}}if(h.init){h.init()}return h},Singleton:function(Y,X,W){var U=L(Y,X,W);U.__isSingleton=true;U.prototype.constructor=U;var V=new U();if(V.init){V.init()}return V},Application:Q=function(Y,X,W){var U=L(Y,X,W);U.__isSingleton=true;var V=new U();if(V.init){O.domLoaded(S(V.init,V))}return V},App:Q,Abstract:function(X,W,V){var U=L(X,W,V);U.prototype.__constructorFunc=function(){throw Error("Abstract class")};U.__isAbstract=true;U.isParentOf=function(Z){var Y=this.prototype;if(typeof Z==F){return Y.isPrototypeOf(Z.prototype)}else{return Y.isPrototypeOf(Z)}};return U},nullFunc:C=function(){},require:function(){},slice:I=function(U){return B.apply(U,B.call(arguments,1))},bind:S=function(W,V){var U=I(arguments,2);return function(){return W.apply(V,U.concat(I(arguments)))}},bindAsEventListener:function(X,W,V,U,Y){return function(Z){return X.call(W,Z||D.event,V,U,Y)}},rescape:M=function(U){return String(U).replace(H,"\\$1")},$:function(U){return(typeof U==E)?R.getElementById(U):U},unique:(function(U){return function(){return U++}})(1234),escapeHTML:function(U){return String(U).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},getLang:function(){if(T){return T}var U=D.LANG;if(U&&(U=U.locale)){return T=U}U=D.language;if(U&&(U=U.lang)){return T=U}U=R.body;if(U&&(U=U.className.match(/(^|\s)[a-z]{2}(\s|$)|/i))){return T=U[0]}return null},labels:{},allLabels:P,setLang:function(U){if(!P[T=U]){P[U]={}}O.labels=P[U]},addLabels:function(U,W,V){if(U.length>5){O._addLazyLabels(U,W)}else{if(!W){W=U;U=O.getLang()}if(!P[U]){P[U]=W}else{N(P[U],W)}V&&(W=O._onLazyLabels)&&W(V)}},Trigger:function(e,c){var U={},Y={},W=e.length,V,Z,a,b,X=[];for(Z=0;Z<W;Z++){V=e[Z];b=0;if(typeof V!=E){b=V;V="$"+Z}a=U[V]=S(function(){var g=this;U[g]=C;Y[g]=arguments;if(!--W){c(Y)}},V);if(b){if(b==O.domLoaded){document.body?X.push(a):b(a)}else{O.Event.observe(b[0],b[1],a)}}}while(Z=X.shift()){Z()}return U}});if("".replace(/^/,String)){var G=String.prototype;original=G.replace;G.replace=function(a,X){if(typeof X==F){if(a instanceof RegExp){var Z=a;var Y=Z.global;if(Y==null){Y=/(g|gi)$/.test(Z)}if(Y){Z=new RegExp(Z.source)}}else{Z=new RegExp(M(a))}var W,V=this,U="";while(V&&(W=Z.exec(V))){U+=V.slice(0,W.index)+X.apply(this,W);V=V.slice(W.index+W[0].length);if(!Y){break}}return U+V}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 D=liligo,A=Math.round(Math.random()*10000000000),B=1,C=function(E){return D.IE?function(){var F=this.cloneNode(true);F.src=E;F.reload=arguments.callee;this.parentNode.replaceChild(F,this)}:function(){this.src=E}};D.extend({smartAd:function(G,J,P,M,I,H,K){var O="http://www3.smartadserver.com/call/pubif/"+G+"/"+J+"/@/"+A+"/"+encodeURIComponent(P)+"?",E=O.replace(/@/,B?"M":"S"),N,Q=H?'id="'+H+'"':"",F=K?"":'src="'+E+'"',L=D.detect("Gecko.\\d{4}")?'<iframe src="#" style="display:none;"></iframe>':"";B=0;document.write(L+"<iframe "+Q+' class="smart-ad-'+M+"x"+I+'" '+F+' name="'+document.domain+'"  width='+M+" height="+I+" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>"+L);N=document.getElementsByTagName("iframe");N[N.length-(L==""?1:2)].reload=C(O.replace(/@/,"S"))}})})();(function(){var D=liligo;if(D.DOM){return }var H=window.document,G=D.exportedExtend,I,A,C,B,F,E=function(J){return H.getElementsByTagName(J)};I=D.Singleton({addScript:A=function(J){E("head")[0].appendChild(B("script",{src:J,type:"text/javascript"}))},addStyle:C=function(K){if(!K){return }else{if(typeof K=="string"){E("head")[0].appendChild(B("link",{href:K,rel:"stylesheet",type:"text/css"}))}else{var J;while(J=K.shift()){if((J.b=="all")||(J.b=="IE6"&&D.IE6)||(J.b=="IE7"&&D.IE7)){C(J.src)}}}}},Element:B=function(J,L,K){L=L||{};J=G((K||H).createElement(J),L);L=L.style;return L?J:D.Style.set(J,L)},add:function(J){if(typeof J!="object"){J=B.apply(this,arguments)}if(!F){F=E("body")[0]}F.appendChild(J);return J},remove:function(J){J=D.$(J);J.parentNode.removeChild(J)}});D.extend({DOM:I,addScript:A,addStyle:C,Element:B})})();(function(){var C=liligo,B={},A={};C._addLazyLabels=function(D,F,E){E=D.split(/=/)[1];if(A[E]){F()}else{if(B[E]){F&&B[E].push(F)}else{B[E]=F?[F]:[];C.addScript(D)}}};C._onLazyLabels=function(F,E,D){A[F]=1;E=B[F];if(E){while(D=E.shift()){D&&D()}B[F]=0}}})();(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 E=liligo,A=E.safari,F=E.Singleton,D=E.$,G="DOMContentLoaded",K="singleObserve",L="stopObserving",J="onreadystatechange",C="readyState",H=window.document;if(E.Event){return }E.require("BOM");var B=F({_observers:[],_inited:false,_fired:false,fire:function(){if(B._fired){return }B._fired=true;if(B._timer){clearInterval(B._timer)}var O=B._observers;for(var M=0,N=O.length;M<N;M++){O[M]()}B._observers=[]},_startTimer:function(){this._timer=setInterval(function(){if(/loaded|complete/.test(H[C])){B.fire()}},100)},_init:function(){if(this._inited){return }this._inited=true;if(A||(window.opera&&1*opera.version()<9)){this._startTimer()}else{if(E.IE){var M=("__ie_onload_"+Math.random()).replace(/\./,"");H.write('<script id="'+M+'" defer="defer" src="//:"><\/script>');D(M)[J]=function(){if(this[C]=="complete"){this.removeNode();if(H[C]!="complete"){B._startTimer()}else{B.fire()}}}}}},push:function(M){this._init();this._observers.push(M)}});var I=F({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(M){return M.pageX||(M.clientX+(H.documentElement.scrollLeft||H.body.scrollLeft))},pointerY:function(M){return M.pageY||(M.clientY+(H.documentElement.scrollTop||H.body.scrollTop))},element:function(M){return M.target||M.srcElement},stop:function(M){if(!M){return }if(M.preventDefault){M.preventDefault();M.stopPropagation()}else{M.returnValue=false;M.cancelBubble=true}return M},bind:E.bindAsEventListener,bindStop:function(P,O,N,M,Q){return function(R){return P.call(O,I.stop(R||window.event),N,M,Q)}},observe:function(O,Q,P,M){O=D(O);if(!O){return false}if(typeof Q=="object"){for(var N in Q){if(Q.hasOwnProperty(N)){I[K](O,N,Q[N])}}}else{I[K](O,Q,P,M)}},Observer:E.Class({constructor:function(){this.args=arguments;I.observe.apply(I,arguments)},stop:function(){I[L].apply(I,this.args)}}),init:function(){if(E.detect("(element.addEventListener)")){this[K]=function(Q,O,N,M){var P=(O==G);if(P){Q=H}if(P&&(A||(window.opera&&1*opera.version()<9))){B.push(N)}else{if(A&&(O=="keypress")){O="keydown"}Q.addEventListener(O,N,M=M||false)}};this[L]=function(P,O,N,M){if(A&&(O=="keypress")){O="keydown"}D(P).removeEventListener(O,N,M=M||false)}}else{this[K]=function(Q,O,N,M){M=M||false;var P=(O==G);if(P){Q=H}if(O==G){B.push(N)}else{Q.attachEvent("on"+O,N)}if(!P){(this._observers||(this._observers=[])).push([Q,O,N,M])}};this[L]=function(P,O,N,M){try{D(P).detachEvent("on"+O,N)}catch(Q){}};this._unloadCache=function(){if(!I._observers){return }for(var M=0,N=I._observers.length;M<N;M++){I[L].apply(I,I._observers[M]);I._observers[M][0]=null}I._observers=false};this[K](window,"unload",this._unloadCache,false)}}});E.extend({Event:I,__Eo:I.observe,__Eb:I.bind,__EbS:I.bindStop,domLoaded:function(M){I[K](0,G,M)}})})();(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=[];D.p=D.push;D.toString=function(){return this.join("")};return 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])){F=E.length;while(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;J=J||D(I._fireEvent,I,"done");if(H[C]){I._cb=J;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&&!F.detect("chrome");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("_reallySafari {}"));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){G.ownerNode.appendChild(document.createTextNode(L))}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.appendChild(document.createTextNode(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,addCssShadow:function(H,G,J){var I=H.style;I["boxShadow"]=I["webkitBoxShadow"]=I["MozBoxShadow"]=G;if(J){I.filter="progid:DXImageTransform.Microsoft.dropshadow("+J+")"}}})})();(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.IE6){var B=C;C=new A(B,{widthOffset:0,heightOffset:0,constructor:function(I){this._base_constructor(I);var H=this.container=document.body,J=document.createElement("iframe");J.src="about:blank";J.style.zIndex=100;J.style.display="none";J.style.position="absolute";J.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";H.appendChild(J);this.iframe=J},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(I){I=D(I)||this.element;var K=this.iframe;K.style.display="none";var J=K.style,L=F.dimension(I),N=F.position(I),H=this.container;if(H!=K.parentNode){H.appendChild(K)}if(H!=document.body){var M=F.position(H);N[0]-=M[0];N[1]-=M[1]}I.style.zIndex=J.zIndex+1;J.left=N[0]+"px";J.top=N[1]+"px";this.updateSize(I);J.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 G=liligo,F=G.$,Q=G.exportedExtend,I=G.TPTemplate,N=G.nullFunc,S=G.Event,T=G.bind,C=S.bind,P=G.__Eo,B=G.__Eb,R=G.labels,K=G.JSON.decode,O=G.forEach,A=G.Style,D=A.addClass,H=G.Geometry;if(G.CompLoc2){return }var E="liligo_cl2_";var J="		#PREFIXcont,#PREFIXcont *{font-family:Arial,Verdana,sans-serif;margin:0;padding:0;font-size:13px;border:0;list-style:none}		#PREFIXcont{position:absolute;display:block}		#PREFIXcont div{background-color:#fff;border:1px solid #757575;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;color:#111;padding:2px;white-space:nowrap;background:#fff}		#PREFIXcont strong{text-decoration:underline}		#PREFIXcont .active a{background-color:#ff6d00;color:#fff}		#PREFIXcont .separator{margin:1px 0 1px 0;display:block;background:#aaadb2;font-size:1px;line-height:1px;height:1px}		#PREFIXcont ul > .separator{min-height:1px}				#PREFIXcont .air .normal a{background-image:url(/v5/liligo/comploc2/img/icons.gif);background-repeat:no-repeat;padding-left:22px}		#PREFIXcont .air .type1        {background-position:0 -50px}		#PREFIXcont .air .active .type1{background-position:0 -550px}		#PREFIXcont .air .type2        {background-position:0 0}		#PREFIXcont .air .active .type2{background-position:0 -500px}		#PREFIXcont .air .type3        {background-position:0 -100px}		#PREFIXcont .air .active .type3{background-position:0 -600px}		#PREFIXcont .air .type4        {background-position:0 -150px}		#PREFIXcont .air .active .type4{background-position:0 -650px}		#PREFIXcont .air .type5        {background-position:0 -200px}		#PREFIXcont .air .active .type5{background-position:0 -700px}				#PREFIXcont .hotel .noresult,		#PREFIXcont .hotel li.last{background:0}		#PREFIXcont .hotel a{padding:2px 4px}				#PREFIXcont .country ul{margin:1px}		#PREFIXcont .country .noresult,		#PREFIXcont .country li.last{background:0}		#PREFIXcont .country a{padding:4px 3px 4px 2px}				#PREFIXcont .car .normal a{padding-left:22px}		#PREFIXcont .car .type2{background-image:url(/v5/liligo/comploc2/img/icons.gif);background-position:0 0;background-repeat:no-repeat}		#PREFIXcont .car .active .type2{background-position:0 -500px}			";var L="		#PREFIXcont ul li.separator{height:auto;min-height:auto !important}	";var M=G.Class(G.Observable,{minChars:3,maxRows:15,offsetLeft:0,offsetTop:1,cssClass:"",format:"",fragRE:/^([^,]*)/,type:"air",url:"/air/new_comploc.jsp",AjaxRequest:G.AjaxRequest,onKeyDown:function(U){this._fireEvent("keydown",U,this)},onKeyUp:N,onFocus:N,onBlur:N,onChange:N,template:I.precompile('<ul>				{if items.length == 0}					<li class="noresult"><a href="#"><span>${labels.comploc_no_results}</span></a></li>				{/if}				{for item inarray items}					{if item.separator}						<li class="separator">&nbsp;</li>\n					{else}						<li id="${item.id}" class="normal">\n							<a {if item.type}class="type${item.type}"{/if} href="#">\n								<span>${item.highlighted}</span>\n							</a>\n						</li>\n					{/if}				{/for}			</ul>'),_visible:false,_active:0,constructor:function(U){U=U||{};
if(document.body){this._init(U)}else{S.observe(document,"DOMContentLoaded",T(this._init,this,U))}},_init:function(U){if(!M.initialized){M.initialize()}Q(this,U);this.elem=F(this.field||this.elem||"fromLocation");if(!this.elem){return }this.elem.setAttribute("autocomplete","off");if(!this.container){this.container=document.body}this.hidden=F(this.hidden);this.nextFocus=F(this.nextFocus);this.prevFocus=F(this.prevFocus);if(this.format){this._format=G.STemplate.parse(this.format)}if(!this.hidden){this._initHidden()}if(!this.lang){this.lang=G.getLang()||"fr"}if(!U.url){this._initUrl()}if(!U.offsetLeft&&(this.type=="hotel")){this.offsetLeft=0}if(U.template){this.templateFunc=I.parse(this.template)}S.observe(this.elem,{keydown:C(this._onKeyDown,this),keyup:C(this._onKeyUp,this),focus:T(this._onFocus,this),blur:T(this._onBlur,this)})},_initHidden:function(){var U=this.elem.id||this.elem.name,W=this.elem.name||this.elem.id;this.hidden=F(U+"Code");if(!this.hidden){var V=document.createElement("input");V.type="hidden";V.name=W+"Code";V.id=U+"Code";V.value="";this.elem.parentNode.insertBefore(V,this.elem);this.hidden=V}},_initUrl:function(){var U={air:"/air/new_comploc.jsp",car:"/cars/new_comploc.jsp",hotel:"/hotel/new_comploc.jsp",country:"/homepage/country_comploc.jsp"};if(U[this.type]){this.url=U[this.type]}},clear:function(){this._active=0;this._list=[];this.elem.value="";this.hidden.value=""},getValue:function(){return this.hidden.value},_onKeyUp:function(V){if(M.getActive()!=this){return }var W=V.keyCode;if(W==18||W==116||V.altKey){return }var U=this._getFrag();if(U.length<this.minChars){this._list=[];this.hidden.value=""}if(!this._visible||(this.prevValue!=U)){if(this.prevValue&&(this.prevValue.length>U.length)){this.hidden.value=""}if(U.length>=this.minChars){M.updateList(U)}else{this.hide()}}this.onKeyUp()},_onKeyDown:function(V){this.prevValue=this._getFrag();M.setActive(this);switch(V.keyCode){case S.KEY_TAB:case S.KEY_RETURN:var U=V.shiftKey?this.prevFocus:this.nextFocus;if(U){U.focus();S.stop(V)}else{this._onBlur()}break;case S.KEY_DOWN:this._nextItem();S.stop(V);break;case S.KEY_UP:this._prevItem();S.stop(V);break}this.onKeyDown(V)},_onFocus:function(){M.setActive(this);this.beforeFocus=this.hidden.value;this.elem.select();this.onFocus()},_onBlur:function(){this._select();M.noActive();this.hide();this.onBlur()},_getFrag:function(){var U=this.elem.value.match(this.fragRE);return(U&&U[1])?U[1].replace(/^\s+|\s+$/g,""):""},show:function(){this._visible=true;var b=M.div,W=M.safeLayer,V=this.elem,a=H.position(V),Y=H.dimension(V),X=b.parentNode,U=this.container;b.className=this.cssClass+" "+this.type;if(U!=X.parentNode){U.appendChild(X)}if(U!=document.body){var Z=H.position(U);a[0]-=Z[0];a[1]-=Z[1]}W.container=U;W.move(a[0]+this.offsetLeft,a[1]+Y[1]+this.offsetTop);W.show()},hide:function(){this._visible=false;M.safeLayer.hide()},prepareList:function(){var V=[];var W=1;var U={separator:true};this._active=M.prototype._active;O(this._list,function(Y,X){if(Y.value==this.hidden.value){this._active=X}if(this._format){Y.label=this._format.process(Y)}if(W!=Y.group&&Y.group!==undefined){W=Y.group;V.push(U)}Y.index=X;Y.id=E+"item_"+X;V.push(Y)},this);return V},onList:function(W){this._list=W;var V=this.prepareList();var U=this._template.process({items:V},this.lang);M.div.innerHTML=U;this._itemOver(this._active);if(!this._list.length){this.hidden.value=""}O(this._list,function(Z,X){var Y=F(Z.id);if(X==0){D(Y,"first")}if(X==this._list.length-1){D(Y,"last")}S.observe(Y.getElementsByTagName("a")[0],{mouseover:T(this._itemOver,this,X),mouseout:T(this._itemOut,this,X),mousedown:T(this._itemClick,this,X)})},this);M.safeLayer.updateSize();if(!this._visible){this.show()}},_itemOver:function(U){var W,V;if(W=F(E+"item_"+U)){if(this._active!=U){this._itemOut(this._active)}this._active=U;V=this._list[U];this.hidden.value=V.value;D(W,"active")}},_itemOut:function(U){var V;if(V=F(E+"item_"+U)){A.removeClass(V,"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(U){S.stop(U);this._onBlur()},_select:function(){var U;if(this._list&&(U=this._list[this._active])){}else{if(this.elem.value){return }U={label:"",value:""}}this.elem.value=U.label;this.hidden.value=U.value;this.value=U;if(this.beforeFocus!=this.hidden.value){this.beforeFocus=this.hidden.value;this.onChange(this.elem,U);this._fireEvent("change",this.elem,U)}else{this._fireEvent("unchange",this.elem,U)}}},{cache:{},initialized:false,initialize:function(){this.initialized=true;this.prototype._template=I.parse(this.prototype.template);if(!R.comploc_no_results){R.comploc_no_results=R.any_results}var U=document.createElement("div");U.id=E+"cont";A.hide(U);G.addCssShadow(U,"#757575 1px 1px 4px","OffX=1,OffY=1,Color='#bcbcbc'");var W=this.div=document.createElement("div");document.body.appendChild(U);U.appendChild(W);P(W,"click",B(S.stop,S));this.safeLayer=new G.SafeLayer(U);if(G.IE6){var V=this.safeLayer;S.observe(this.fader_,"end",function(X){X?V.show():V.hide()})}if(G.IE){J=J+L}J=J.replace(/PREFIX/g,E);A.addRules(J)},setActive:function(U){if(this.active&&(this.active!=U)){this.active.hide();this.nextFrag="";this.abortRequest();this.noActive()}if(!this.active||(this.active!=U)){this.active=U;this.cacheProp=U.maxRows+U.url;if(!this.cache[this.cacheProp]){this.cache[this.cacheProp]={}}}},getActive:function(){return this.active},noActive:function(){this.active=null},abortRequest:function(){if(this.request){this.request.abort();this.request=null}if(this.nextFrag){var U=this.nextFrag;this.nextFrag="";this.updateList(U)}},updateList:function(U){if(!this.active){return }if(!this._preloaded){G.preload("/v5/liligo/comploc2/img/icons.gif");this._preloaded=true}if(this.cache[this.cacheProp]&&this.cache[this.cacheProp][U]){this.nextFrag="";
this.abortRequest();this.active.onList(this.cache[this.cacheProp][U])}else{if(this.request){if(this.request.frag!=U){this.nextFrag=U}}else{this.request=new this.active.AjaxRequest(this.active.url,{method:"post",parameters:{frag:U,lang:this.active.lang,maxrows:this.active.maxRows},onComplete:T(this.onList,this,this.active),onException:T(this.abortRequest,this)});this.request.frag=U}}},onList:function(W,U,X){if(typeof X=="string"){var V=K("("+X+")")}else{V=X}if(V){W.onList(V);if(this.active!=W){W._onBlur();return this.abortRequest()}this.cache[this.cacheProp][this.request.frag]=V}this.abortRequest()}});G.extend({CompLoc2:M})})();(function(){var H=liligo,G=H.$,K=H.bind,E=H.nullFunc,L=H.allLabels,J=H.IE,I=H.IE6,N=H.Event,B=H.__Eo,M=H.Style,D=H.Element,O=H.DOM;if(H.DatePicker2){return }var A={months:["January","February","March","April","May","June","July","August","September","October","November","December"],days:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]};var C=H.Singleton({getDayInitial:function(Q,P){return L[P||H.getLang()][A.days[Q]+"_Initial"]},addDays:function(Q,R){var P=new Date(new Date().setTime(Q.getTime()+R*86400000+3600000));return new Date(P.getFullYear(),P.getMonth(),P.getDate())},fromArray:function(P){return new Date(P[0],P[1],P[2],P[3],P[4])},format:function(Q,R,P){var S=function(X){var U=Q.getDate(),W=Q.getMonth(),V=Q.getFullYear(),T=(Q.getDay()||7)-1;if(X=="%j"){return U}if(X=="%d"){return(U>9?"":"0")+U}if(X=="%S"){return L[P][A.days[T]+"_Short"]}if(X=="%l"){return L[P][A.days[T]+"_Long"]}if(X=="%m"){return(W>8?"":"0")+(1+W)}if(X=="%F"){return L[P][A.months[W]+"_Long"]}if(X=="%M"){return L[P][A.months[W]+"_Short"]}if(X=="%Y"){return V}if(X=="%y"){return(""+V).match(/..$/)[0]}};return R.replace(/(%.)%S/g,function(U,T){T=S(T);switch(T*1%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd";default:return T+"th"}}).replace(/%./g,S)},isLeapYear:function(P){if(0==P.getFullYear()%400){return true}if(0==P.getFullYear()%100){return false}return(0==P.getFullYear()%4)?true:false},getDaysInMonth:function(P){var Q={0:31,2:31,3:30,4:31,5:30,6:31,7:31,8:30,9:31,10:30,11:31}[P.getMonth()];if(Q==null){return C.isLeapYear(P)?29:28}else{return Q}},getDayDate:function(P){return new Date(P.getFullYear(),P.getMonth(),P.getDate())}});var F=new H.Class(H.Observable,{offsetLeft:0,offsetTop:0,months:2,firstDay:0,minDate:null,maxDate:new Date(3000,1,1),minDays:0,className:"",constructor:function(P){if(!F.initialized){F.initialize()}this.elem=G(P.elem||P.field);if(!this.elem){throw"DatePicker2 constructor error: no elem"}this.elem.setAttribute("readonly","readonly");this.elem.readOnly=true;this.oldNaming=P.oldNaming;this.idPrefix=(this.elem.id||this.elem.name)+"-";this.namePrefix=(this.elem.name||this.elem.id)+(this.oldNaming?"":"-");this.dayDisplay=G(P.dayDisplay||this.idPrefix+"day-display");this.locale=P.lang||P.locale||H.getLang();this.firstDay=P.firstDay||this.firstDay;this.minDays=P.minDays||this.minDays;this.preDepartureDays=(P.preDepartureDays==undefined)?7:P.preDepartureDays;this.preReturnDays=(P.preReturnDays==undefined)?7:P.preReturnDays;this.direction=P.direction||F.DIR_NORMAL;this.onClosed=P.onClosed||E;this.onSet=P.onSet||E;this.container=G(P.container||document.body);this.minDate=P.minDate||this.minDate;this.maxDate=P.maxDate||this.maxDate;this.className=P.className||this.className;if(this.direction==F.DIR_RET){this.dontModify=false;if(P.depPicker==null){throw"Datepicker constructor error: (direction == DatePicker2.DIR_RET) but no depPicker"}else{this.depPicker=P.depPicker}}this.retPicker=P.retPicker;if((P.left==null)||(P.top==null)){this.posOpener=true}else{this.left=P.left;this.top=P.top;this.posOpener=false}this.offsetLeft=P.offsetLeft||this.offsetLeft;this.offsetTop=P.offsetTop||this.offsetTop;this.fields={year:G(P.yearField)||this.newHidden("year"),month:G(P.monthField)||this.newHidden("month"),day:G(P.dayField)||this.newHidden("day")};if(P.value==null){if(this.direction==F.DIR_RET){this.value=C.addDays(this.depPicker.value,this.preReturnDays)}else{this.value=C.addDays(C.getDayDate(new Date()),this.preDepartureDays)}}else{this.value=C.getDayDate(P.value)}this.nextFocus=G(P.nextFocus);this.prevFocus=G(P.prevFocus);this.months=P.months||this.months;if(!P.topFormat){if(F.defaultFormats.top[this.locale]){this.topFormat=F.defaultFormats.top[this.locale]}else{this.topFormat=F.defaultFormats.top.def}}else{this.topFormat=P.topFormat}if(!P.displayFormat){if(F.defaultFormats.display[this.locale]){this.displayFormat=F.defaultFormats.display[this.locale]}else{this.displayFormat=F.defaultFormats.display.def}}else{this.displayFormat=P.displayFormat}this.oneWayRadio=G(P.oneWayRadio);this.init()},init:function(){this.saveToFields();N.observe(this.elem,"focus",K(function(){this.elem.select();this.open()},this));N.observe(this.elem,"keydown",N.bind(function(P){if((F.actual!=this)&&(P.keyCode==N.KEY_TAB)){N.stop(P);this.open()}},this));if(this.elem.select){this.elem.onclick=K(function(){this.elem.select();this.open()},this)}this.dontBlur=false;this.elem.onblur=K(function(){if(this.dontBlur){return false}try{F.actual.close()}catch(P){}},this)},newHidden:function(R){var P=this.namePrefix+R;if(this.oldNaming){P=this.namePrefix+R.charAt(0).toUpperCase()+R.substr(1)}var Q=D("input",{type:"hidden",name:P,id:this.idPrefix+R,value:""});this.elem.parentNode.insertBefore(Q,this.elem);return Q},saveToFields:function(){this.displayed=C.format(this.value,this.displayFormat,this.locale);if(this.elem.nodeName=="INPUT"){this.elem.value=this.displayed}if(this.dayDisplay){var P=this.value.getDay();P=(P==0)?6:(P-1);this.dayDisplay.innerHTML=L[this.locale][A.days[P]+"_Long"]}this.fields.year.value=this.value.getFullYear();this.fields.month.value=this.value.getMonth();this.fields.day.value=this.value.getDate()},open:function(){F.actual=this;var V=F.layerbg;var R=F.div;var P=F.elements;P.dpBody.removeChild(P.br);for(var U=0;U<P.months.length;U++){P.dpBody.removeChild(P.months[U])
}P.months=[];R.className=this.className+" datepicker dp"+this.months;F.overed=null;this.rowsMax=0;var S=this.getFirstMonth();for(var U=0;U<this.months;U++){var X=D("div",{className:"dpMonth dpMonth"+(U+1)});P.dpBody.appendChild(X);X.value=new Date(S.year,S.month+U,1);X.header=D("div",{className:"dpMonthHeader"});X.appendChild(X.header);X.header.span=D("span");X.header.appendChild(X.header.span);if(U==0){X.header.appendChild(P.prev)}if(U==this.months-1){X.header.appendChild(P.next)}X.table=D("table");X.thead=X.table.createTHead();X.tbody=D("tbody");X.table.appendChild(X.tbody);var b=X.thead.insertRow(-1);for(var T=0;T<7;T++){var Z=b.insertCell(-1);if(this.firstDay==0){Z.innerHTML="<span>"+C.getDayInitial(T,this.locale)+"</span>"}else{Z.innerHTML="<span>"+C.getDayInitial((T==0)?6:(T-1),this.locale)+"</span>"}if(T==0){Z.className="first"}else{if(T==6){Z.className="last"}}}this.buildMonth(X);X.appendChild(X.table);P.months.push(X)}this.equalizeRows();P.dpBody.appendChild(P.br);P.prev.onclick=function(){F.actual.prevMonth();return false};P.next.onclick=function(){F.actual.nextMonth();return false};P.prev.onmousedown=P.next.onmousedown=function(){F.actual.dontBlur=true};P.prev.onblur=P.next.onblur=this.elem.onblur;P.prev.onmouseup=P.prev.onmouseover=P.next.onmouseup=P.next.onmouseover=function(){if(F.actual){F.actual.dontBlur=false}};this.dontBlur=false;var a=this.container;if(R.parentNode!=a){a.appendChild(R)}if(this.posOpener){var Y=H.Geometry.position(this.elem);if(a!=document.body){var Q=H.Geometry.position(a);Y[0]-=Q[0];Y[1]-=Q[1]}R.style.left=Y[0]+this.offsetLeft+"px";R.style.top=Y[1]+this.offsetTop+"px"}else{R.style.left=this.left+"px";R.style.top=this.top+"px"}R.style.display="block";F.actual.oldOnKeyDown=document.onkeydown;document.onkeydown=F.actual.onKey;R.style.zIndex=101;if(I){if(V.parentNode!=a){a.appendChild(V)}V.style.left=R.offsetLeft+"px";V.style.top=R.offsetTop+"px";V.style.width=R.offsetWidth+"px";V.style.height=R.offsetHeight+"px";V.style.display="block"}try{this.elem.focus()}catch(W){}},buildMonths:function(){var Q=F.elements;this.rowsMax=0;for(var P=0;P<Q.months.length;P++){this.buildMonth(Q.months[P])}this.equalizeRows();if(I){F.layerbg.style.width=F.div.offsetWidth+"px";F.layerbg.style.height=F.div.offsetHeight+"px"}},buildMonth:function(Y){Y.header.span.innerHTML=C.format(Y.value,this.topFormat,this.locale);for(var W=Y.tbody.rows.length-1;W>=0;W--){Y.tbody.deleteRow(W)}var h=Y.tbody.insertRow(-1);var P=Y.value.getDay()-1;if(P==-1){P=6}var b=this.firstDay;if(this.firstDay!=0){P=(P==6)?0:P+1}for(var X=true;P>0;P--){var c=h.insertCell(-1);c.innerHTML="<span></span>";c.className="empty";if(X){c.className+=" first";X=false}if((b==5)||(b==6)){c.className+=" weekend"}if(++b==7){b=0}}var c,V,a=(this.firstDay==0)?6:5,e=this.value.getTime(),Q=(C.getDayDate(new Date())).getTime(),Z=this.maxDate?C.getDayDate(this.maxDate).getTime():Infinity;if(this.minDate){V=this.minDate}else{if(this.direction==F.DIR_RET){V=C.addDays(this.depPicker.value,this.minDays).getTime()}else{V=Q}}var T=new Date(Y.value.getFullYear(),Y.value.getMonth(),1);var R=C.getDaysInMonth(Y.value);for(var U=1;U<R+1;U++){if((b==this.firstDay)&&(h.cells.length!=0)){h=Y.tbody.insertRow(-1)}c=h.insertCell(-1);if(b==this.firstDay){c.className="first"}else{if(b==a){c.className="last"}}T.setDate(U);var S=T.getTime();if(S==Q){c.className+=" now"}if((S<V)||(S>Z)){c.className+=" disabled";var g=L[this.locale];if(this.direction==F.DIR_RET){c.title=g.datepicker_return_before_depart||g.return_before_depart}else{if(this.direction==F.DIR_DEP){c.title=g.datepicker_date_not_available||g.date_not_available}}c.innerHTML="<span>"+U+"</span>"}else{c.innerHTML='<a href="#" onclick="return liligo.DatePicker2.actual.select('+S+')" onmousedown="liligo.DatePicker2.actual.dontBlur=true" onmouseup="liligo.DatePicker2.actual.dontBlur=false" onmouseover="liligo.DatePicker2.mouseOver(this);" onmouseout="liligo.DatePicker2.mouseOut(this);">'+U+"</a>"}if((b==5)||(b==6)){c.className+=" weekend"}c.firstChild.value=S;if(S==e){c.className+=" actual";F.mouseOver(c.firstChild)}if(++b==7){b=0}}if(b!=this.firstDay){for(;b<=a;b++){c=h.insertCell(-1);c.innerHTML="<span>&nbsp;</span>";c.className="empty";if(b==a){c.className+=" last"}if((b==5)||(b==6)){c.className+=" weekend"}}}if(this.rowsMax<Y.tbody.rows.length){this.rowsMax=Y.tbody.rows.length}},equalizeRows:function(){var T=F.elements;for(var S=0;S<T.months.length;S++){if(this.rowsMax>T.months[S].tbody.rows.length){for(var R=0;R<this.rowsMax-T.months[S].tbody.rows.length;R++){var U=T.months[S].tbody.insertRow(-1),Q=this.firstDay;for(var P=0;P<7;P++){cell=U.insertCell(-1);cell.innerHTML="<span>&nbsp;</span>";cell.className="empty";if(P==0){cell.className+=" first"}else{if(P==6){cell.className+=" last"}}if((Q==5)||(Q==6)){cell.className+=" weekend"}if(++Q==7){Q=0}}}}}},getFirstMonth:function(){if(this.direction==F.DIR_RET){var P=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((P<=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 R=F.elements;F.overed=null;for(var Q=0;Q<R.months.length;Q++){var P=R.months[Q].value;R.months[Q].value=new Date(P.getFullYear(),P.getMonth()-1,P.getDate())}this.buildMonths()},nextMonth:function(){var R=F.elements;F.overed=null;for(var Q=0;Q<R.months.length;Q++){var P=R.months[Q].value;R.months[Q].value=new Date(P.getFullYear(),P.getMonth()+1,P.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()},dispatchValue:function(){if(this.direction==F.DIR_DEP){if(this.retPicker!=undefined){if((this.retPicker.dontModify)&&(this.retPicker.value>=this.value)){this.retPicker.dontModify=false
}else{this.retPicker.value=C.addDays(this.value,this.preReturnDays);if((!this.oneWayRadio)||this.oneWayRadio.checked==false){this.retPicker.saveToFields()}else{this.retPicker.saveToTemp()}this.retPicker._fireEvent("change",this.retPicker,this.retPicker)}}}else{if(this.direction==F.DIR_RET){this.dontModify=true}}},select:function(P){var R=F.actual;R.value.setTime(P);R.saveToFields();R.dispatchValue();R.close();try{R._fireEvent("set",R,R.value);R.onSet(R);R._fireEvent("change",R,R.value)}catch(Q){}return false},set:function(P){if(P&&P.length){P=C.fromArray(P).getTime()}this.value.setTime(P);this.value=C.getDayDate(this.value);this.saveToFields()},onKey:function(U){var V=F.actual;if(!V){return }U=U||window.event;switch(U.keyCode){case N.KEY_TAB:V.close();var T=V.elem.value;V.elem.value=T;var S=U.shiftKey?V.prevFocus:V.nextFocus;if(S){S.focus()}break;case N.KEY_ESC:V.close();break;case N.KEY_PAGEDOWN:V.nextMonth();F.mouseOver(F.elements.months[0].tbody.rows[0].cells[0].firstChild);break;case N.KEY_PAGEUP:V.prevMonth();F.mouseOver(F.elements.months[F.elements.months.length-1].tbody.rows[0].cells[0].firstChild);break;case 32:case N.KEY_RETURN:if(!F.overed){return false}if(F.overed.nodeName!="A"){return false}V.select(F.overed.value);if(V.nextFocus){try{V.nextFocus.focus()}catch(U){}}break;case N.KEY_LEFT:F.mouseOut(F.overed);var R=F.overed.parentNode;var Q=R.previousSibling;if(Q==null){Q=R.parentNode.parentNode.parentNode.parentNode.previousSibling;if(Q==null){var P=R.parentNode.sectionRowIndex;V.prevMonth();Q=F.elements.months[0].tbody.rows[P];if(Q==null){Q=F.elements.months[0].tbody.rows[P-1].lastChild}else{Q=Q.lastChild}}else{Q=Q.lastChild.lastChild.rows[R.parentNode.sectionRowIndex].lastChild}}F.mouseOver(Q.firstChild);break;case N.KEY_RIGHT:F.mouseOut(F.overed);var R=F.overed.parentNode;var Q=R.nextSibling;if(Q==null){Q=R.parentNode.parentNode.parentNode.parentNode.nextSibling;if(Q.nodeName=="BR"){var P=R.parentNode.sectionRowIndex;V.nextMonth();Q=F.elements.months[F.elements.months.length-1].tbody.rows[P];if(Q==null){Q=F.elements.months[F.elements.months.length-1].tbody.rows[P-1].firstChild}else{Q=Q.firstChild}}else{Q=Q.lastChild.lastChild.rows[R.parentNode.sectionRowIndex].firstChild}}F.mouseOver(Q.firstChild);break;case N.KEY_UP:F.mouseOut(F.overed);var R=F.overed.parentNode;var Q=R.parentNode.previousSibling;if(Q==null){Q=R}else{Q=Q.cells[R.cellIndex]}F.mouseOver(Q.firstChild);break;case N.KEY_DOWN:F.mouseOut(F.overed);var R=F.overed.parentNode;var Q=R.parentNode.nextSibling;if(Q==null){Q=R}else{Q=Q.cells[R.cellIndex]}F.mouseOver(Q.firstChild);break;case 116:return true;break}return false},close:function(){if(F.actual!=null){document.onkeydown=F.actual.oldOnKeyDown}if(I){F.layerbg.style.display="none"}M.hide(F.div);F.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"},display:{fr:"%d %M %Y",en:"%d %M %Y",es:"%d %M %Y",hu:"%M %d.",def:"%d %M %Y"}},initialize:function(){var R=D("div",{className:"datepicker",innerHTML:""});H.addCssShadow(R,"#757575 1px 1px 4px","OffX=1,OffY=1,Color='#bcbcbc'");M.hide(R);O.add(R);this.div=R;var Q={months:[]};Q.dpBody=D("div",{className:"dpBody"});R.appendChild(Q.dpBody);Q.prev=D("a",{className:"dpPrev",title:L[H.getLang()].datepicker_prev,href:"#"});Q.next=D("a",{className:"dpNext",title:L[H.getLang()].datepicker_next,href:"#"});Q.br=D("br");Q.dpBody.appendChild(Q.br);this.elements=Q;if(I){var P=D("iframe",{src:"about:blank"});P.style.zIndex=100;P.style.position="absolute";P.style.display="none";P.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";O.add(P);this.layerbg=P}if(H.detect("Gecko.\\d{4}")){M.addRules(".datepicker table{position:relative;left:1px}\n.datepicker .dpMonth1 table{position:auto;left:auto}")}M.addRules(M.fromFile([{"rules":".datepicker,.datepicker *{font-family:Arial,Verdana,sans-serif;margin:0;padding:0;font-size:12px;border:0;list-style:none;font-weight:normal;}.datepicker{position:absolute;border:1px solid #757575;padding:0 3px;margin:0;background:#fff;text-align:left;}.datepicker .dpMonth{float:left;padding:3px;width:168px;}.datepicker br{clear:both;}.datepicker .dpMonthHeader{height:30px;width:100%;position:relative;}.datepicker .dpMonthHeader span{text-align:center;display:block;font-size:14px;font-weight:bold;padding-top:7px;}.datepicker .dpMonthHeader .dpPrev,.datepicker .dpMonthHeader .dpNext{width:24px;height:24px;position:absolute;top:2px;border:0;outline:none;background:no-repeat;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAwCAMAAAA8VkqRAAAAYFBMVEXFZBuweVHdciLKilrx8fHs7OzIuK3RycPj4+PuZgK2VQ77awHY19frZgP8bAD4+PjvZwLtZgPwZwL3agH2agH4agHhYgP1aQL6awHyaAL9bADzaQLRWwP+/v7pZQP///96HgH8AAABJklEQVR42s2SyXKEIBRFGRohRkV7oB3A+/9/2SBIIKlU9bLPQql3VjwOwYHTQnUeJbSLE5LGkrNtXTfGpYoqCHeRfF4TM5cXF4W7NGxYMwNrgiFhvg0VWzAEumPzd8XMpAZxgt/mE8TfgytHtNwfJ0A6TI0mgi+3BHCeFi6IYuM9AtwzTJHOPCPA8wfTebEdAFuBkV5clwCwFARh++sBcM1MtiOKmDECjCe7Hwtu+68IkA6TocJf0JopAcS/sf6CTlC79wkc391SvxJo2Vqzl9g2LDGsvTLGtnHt0VhzOGOsnwuXn5Z6FWlpftoQg2poe0CbIob/8/nkrpDz+tVVrurtrsqyyq6qtoqu6rqKrpaqrrKrsq26q6KsN7s6q/rTFc66PrirFwv2WYkltPU0AAAAAElFTkSuQmCC);*background-image:url(/v5/liligo/datepicker2/img/sprites.png);_background-image:url(/v5/liligo/datepicker2/img/sprites.png);}.datepicker .dpMonthHeader .dpPrev{left:0;background-position:0 0;}.datepicker .dpMonthHeader .dpNext{right:0;background-position:0 -24px;}.datepicker table{border-collapse:collapse;width:100%;}.datepicker td{text-align:center;background:#dfdfdf;padding:0;border:1px solid #fff;}.datepicker .dpMonth1 td.first{border-left:0;}.datepicker thead td{background:#c1c1c1;text-align:center;height:15px;border:0;}.datepicker thead span{color:#000;font-weight:bold;font-size:11px;}.datepicker td.last{border-right:0;}.datepicker tbody a,.datepicker tbody span{background:#dfdfdf;display:block;margin:1px;padding-top:1px;height:16px;color:#000;}.datepicker tbody td.empty,.datepicker tbody td.empty span{background:#fff;}.datepicker tbody a{text-decoration:underline;font-weight:bold;}.datepicker tbody span{color:#9c9c9c;}.datepicker tbody td.now a{color:#ff6d00;}.datepicker tbody td.disabled span{color:#c0c0c0;}.datepicker tbody td.hover{background:#ff6d00;}.datepicker tbody td.hover a{background:#ff6d00;color:#fff;text-decoration:none;}.datepicker tbody td.actual{background:#ff6d00;}","b":"all"},{"rules":".dp1 .dpBody{width:133px;}.dp2 .dpBody{width:348px;}","b":"IE6"}]));
if(!liligo.BOM.detect("firefox")){B(window,"resize",K(this.close,this))}this.initialized=true},close:function(){if(F.actual){F.actual.close()}},mouseOver:function(Q){var P=new Date(),R=F.actual;if(!R){return }P.setTime(Q.value);if(F.overed!=null){this.mouseOut(F.overed)}F.overed=Q;Q.parentNode.oldClassName=Q.parentNode.className;Q.parentNode.className+=" hover"},mouseOut:function(P){if(P.parentNode!=undefined){P.parentNode.className=P.parentNode.oldClassName}if(F.actual){F.actual.dontBlur=false}}});H.extend({DateTools:C,DatePicker2:F})})();liligo.extend({config:{},extendConfig:function(A){this.exportedExtend(this.config,A)},sharedStatic:function(A){A="liligo__shared__"+A;return window[A]||(window[A]={})}})
