/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(aO,I){function a0(){if(!ah.isReady){try{M.documentElement.doScroll("left")}catch(c){setTimeout(a0,1);return}ah.ready()}}function E(s,c){c.src?ah.ajax({url:c.src,async:false,dataType:"script"}):ah.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function ap(s,c,K,F,G,w){var A=s.length;if(typeof c==="object"){for(var J in c){ap(s,J,c[J],F,G,K)}return s}if(K!==I){F=!w&&F&&ah.isFunction(K);for(J=0;J<A;J++){G(s[J],c,F?K.call(s[J],J,G(s[J],c)):K,w)}return s}return A?G(s[0],c):I}function aF(){return(new Date).getTime()}function ao(){return false}function am(){return true}function aK(s,c,w){w[0].type=s;return ah.event.handle.apply(c,w)}function ag(O){var N,L=[],J=[],K=arguments,F,G,s,A,w,c;G=ah.data(this,"events");if(!(O.liveFired===this||!G||!G.live||O.button&&O.type==="click")){O.liveFired=this;var P=G.live.slice(0);for(A=0;A<P.length;A++){G=P[A];G.origType.replace(az,"")===O.type?J.push(G.selector):P.splice(A--,1)}F=ah(O.target).closest(J,O.currentTarget);w=0;for(c=F.length;w<c;w++){for(A=0;A<P.length;A++){G=P[A];if(F[w].selector===G.selector){s=F[w].elem;J=null;if(G.preType==="mouseenter"||G.preType==="mouseleave"){J=ah(O.relatedTarget).closest(G.selector)[0]}if(!J||J!==s){L.push({elem:s,handleObj:G})}}}}w=0;for(c=L.length;w<c;w++){F=L[w];O.currentTarget=F.elem;O.data=F.handleObj.data;O.handleObj=F.handleObj;if(F.handleObj.origHandler.apply(F.elem,K)===false){N=false;break}}return N}}function z(s,c){return"live."+(s&&s!=="*"?s+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function l(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function bj(s,c){var w=0;c.each(function(){if(this.nodeName===(s[w]&&s[w].nodeName)){var G=ah.data(s[w++]),J=ah.data(this,G);if(G=G&&G.events){delete J.handle;J.events={};for(var A in G){for(var F in G[A]){ah.event.add(this,A,G[A][F],G[A][F].data)}}}}})}function a3(s,c,G){var A,F,w;c=c&&c[0]?c[0].ownerDocument||c[0]:M;if(s.length===1&&typeof s[0]==="string"&&s[0].length<512&&c===M&&!aP.test(s[0])&&(ah.support.checkClone||!ak.test(s[0]))){F=true;if(w=ah.fragments[s[0]]){if(w!==1){A=w}}}if(!A){A=c.createDocumentFragment();ah.clean(s,c,A,G)}if(F){ah.fragments[s[0]]=w?A:1}return{fragment:A,cacheable:F}}function aC(s,c){var w={};ah.each(D.concat.apply([],D.slice(0,c)),function(){w[this]=s});return w}function o(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ah=function(s,c){return new ah.fn.init(s,c)},p=aO.jQuery,d=aO.$,M=aO.document,at,a7=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aT=/^.[^:#\[\.,]*$/,an=/\S/,H=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,q=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ax=navigator.userAgent,b=false,av=[],aB,a1=Object.prototype.toString,aV=Object.prototype.hasOwnProperty,ay=Array.prototype.push,au=Array.prototype.slice,a6=Array.prototype.indexOf;ah.fn=ah.prototype={init:function(s,c){var A,w;if(!s){return this}if(s.nodeType){this.context=this[0]=s;this.length=1;return this}if(s==="body"&&!c){this.context=M;this[0]=M.body;this.selector="body";this.length=1;return this}if(typeof s==="string"){if((A=a7.exec(s))&&(A[1]||!c)){if(A[1]){w=c?c.ownerDocument||c:M;if(s=q.exec(s)){if(ah.isPlainObject(c)){s=[M.createElement(s[1])];ah.fn.attr.call(s,c,true)}else{s=[w.createElement(s[1])]}}else{s=a3([A[1]],[w]);s=(s.cacheable?s.fragment.cloneNode(true):s.fragment).childNodes}return ah.merge(this,s)}else{if(c=M.getElementById(A[2])){if(c.id!==A[2]){return at.find(s)}this.length=1;this[0]=c}this.context=M;this.selector=s;return this}}else{if(!c&&/^\w+$/.test(s)){this.selector=s;this.context=M;s=M.getElementsByTagName(s);return ah.merge(this,s)}else{return !c||c.jquery?(c||at).find(s):ah(c).find(s)}}}else{if(ah.isFunction(s)){return at.ready(s)}}if(s.selector!==I){this.selector=s.selector;this.context=s.context}return ah.makeArray(s,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return au.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(s,c,A){var w=ah();ah.isArray(s)?ay.apply(w,s):ah.merge(w,s);w.prevObject=this;w.context=this.context;if(c==="find"){w.selector=this.selector+(this.selector?" ":"")+A}else{if(c){w.selector=this.selector+"."+c+"("+A+")"}}return w},each:function(s,c){return ah.each(this,s,c)},ready:function(c){ah.bindReady();if(ah.isReady){c.call(M,ah)}else{av&&av.push(c)}return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(au.apply(this,arguments),"slice",au.call(arguments).join(","))},map:function(c){return this.pushStack(ah.map(this,function(s,w){return c.call(s,w,s)}))},end:function(){return this.prevObject||ah(null)},push:ay,sort:[].sort,splice:[].splice};ah.fn.init.prototype=ah.fn;ah.extend=ah.fn.extend=function(){var s=arguments[0]||{},c=1,K=arguments.length,F=false,G,w,A,J;if(typeof s==="boolean"){F=s;s=arguments[1]||{};c=2}if(typeof s!=="object"&&!ah.isFunction(s)){s={}}if(K===c){s=this;--c}for(;c<K;c++){if((G=arguments[c])!=null){for(w in G){A=s[w];J=G[w];if(s!==J){if(F&&J&&(ah.isPlainObject(J)||ah.isArray(J))){A=A&&(ah.isPlainObject(A)||ah.isArray(A))?A:ah.isArray(J)?[]:{};s[w]=ah.extend(F,A,J)}else{if(J!==I){s[w]=J}}}}}}return s};ah.extend({noConflict:function(c){aO.$=d;if(c){aO.jQuery=p}return ah},isReady:false,ready:function(){if(!ah.isReady){if(!M.body){return setTimeout(ah.ready,13)}ah.isReady=true;if(av){for(var s,c=0;s=av[c++];){s.call(M,ah)}av=null}ah.fn.triggerHandler&&ah(M).triggerHandler("ready")}},bindReady:function(){if(!b){b=true;if(M.readyState==="complete"){return ah.ready()}if(M.addEventListener){M.addEventListener("DOMContentLoaded",aB,false);aO.addEventListener("load",ah.ready,false)}else{if(M.attachEvent){M.attachEvent("onreadystatechange",aB);aO.attachEvent("onload",ah.ready);var s=false;try{s=aO.frameElement==null}catch(c){}M.documentElement.doScroll&&s&&a0()}}}},isFunction:function(c){return a1.call(c)==="[object Function]"},isArray:function(c){return a1.call(c)==="[object Array]"},isPlainObject:function(s){if(!s||a1.call(s)!=="[object Object]"||s.nodeType||s.setInterval){return false}if(s.constructor&&!aV.call(s,"constructor")&&!aV.call(s.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in s){}return c===I||aV.call(s,c)},isEmptyObject:function(s){for(var c in s){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=ah.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aO.JSON&&aO.JSON.parse?aO.JSON.parse(c):(new Function("return "+c))()}else{ah.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(s){if(s&&an.test(s)){var c=M.getElementsByTagName("head")[0]||M.documentElement,w=M.createElement("script");w.type="text/javascript";if(ah.support.scriptEval){w.appendChild(M.createTextNode(s))}else{w.text=s}c.insertBefore(w,c.firstChild);c.removeChild(w)}},nodeName:function(s,c){return s.nodeName&&s.nodeName.toUpperCase()===c.toUpperCase()},each:function(s,c,J){var F,G=0,w=s.length,A=w===I||ah.isFunction(s);if(J){if(A){for(F in s){if(c.apply(s[F],J)===false){break}}}else{for(;G<w;){if(c.apply(s[G++],J)===false){break}}}}else{if(A){for(F in s){if(c.call(s[F],F,s[F])===false){break}}}else{for(J=s[0];G<w&&c.call(J,G,J)!==false;J=s[++G]){}}}return s},trim:function(c){return(c||"").replace(H,"")},makeArray:function(s,c){c=c||[];if(s!=null){s.length==null||typeof s==="string"||ah.isFunction(s)||typeof s!=="function"&&s.setInterval?ay.call(c,s):ah.merge(c,s)}return c},inArray:function(s,c){if(c.indexOf){return c.indexOf(s)}for(var A=0,w=c.length;A<w;A++){if(c[A]===s){return A}}return -1},merge:function(s,c){var F=s.length,w=0;if(typeof c.length==="number"){for(var A=c.length;w<A;w++){s[F++]=c[w]}}else{for(;c[w]!==I;){s[F++]=c[w++]}}s.length=F;return s},grep:function(s,c,G){for(var A=[],F=0,w=s.length;F<w;F++){!G!==!c(s[F],F)&&A.push(s[F])}return A},map:function(s,c,J){for(var F=[],G,w=0,A=s.length;w<A;w++){G=c(s[w],w,J);if(G!=null){F[F.length]=G}}return F.concat.apply([],F)},guid:1,proxy:function(s,c,w){if(arguments.length===2){if(typeof c==="string"){w=s;s=w[c];c=I}else{if(c&&!ah.isFunction(c)){w=c;c=I}}}if(!c&&s){c=function(){return s.apply(w||this,arguments)}}if(s){c.guid=s.guid=s.guid||c.guid||ah.guid++}return c},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});ax=ah.uaMatch(ax);if(ax.browser){ah.browser[ax.browser]=true;ah.browser.version=ax.version}if(ah.browser.webkit){ah.browser.safari=true}if(a6){ah.inArray=function(s,c){return a6.call(c,s)}}at=ah(M);if(M.addEventListener){aB=function(){M.removeEventListener("DOMContentLoaded",aB,false);ah.ready()}}else{if(M.attachEvent){aB=function(){if(M.readyState==="complete"){M.detachEvent("onreadystatechange",aB);ah.ready()}}}}(function(){ah.support={};var L=M.documentElement,K=M.createElement("script"),J=M.createElement("div"),F="script"+aF();J.style.display="none";J.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var G=J.getElementsByTagName("*"),w=J.getElementsByTagName("a")[0];if(!(!G||!G.length||!w)){ah.support={leadingWhitespace:J.firstChild.nodeType===3,tbody:!J.getElementsByTagName("tbody").length,htmlSerialize:!!J.getElementsByTagName("link").length,style:/red/.test(w.getAttribute("style")),hrefNormalized:w.getAttribute("href")==="/a",opacity:/^0.55$/.test(w.style.opacity),cssFloat:!!w.style.cssFloat,checkOn:J.getElementsByTagName("input")[0].value==="on",optSelected:M.createElement("select").appendChild(M.createElement("option")).selected,parentNode:J.removeChild(J.appendChild(M.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};K.type="text/javascript";try{K.appendChild(M.createTextNode("window."+F+"=1;"))}catch(A){}L.insertBefore(K,L.firstChild);if(aO[F]){ah.support.scriptEval=true;delete aO[F]}try{delete K.test}catch(c){ah.support.deleteExpando=false}L.removeChild(K);if(J.attachEvent&&J.fireEvent){J.attachEvent("onclick",function s(){ah.support.noCloneEvent=false;J.detachEvent("onclick",s)});J.cloneNode(true).fireEvent("onclick")}J=M.createElement("div");J.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";L=M.createDocumentFragment();L.appendChild(J.firstChild);ah.support.checkClone=L.cloneNode(true).cloneNode(true).lastChild.checked;ah(function(){var N=M.createElement("div");N.style.width=N.style.paddingLeft="1px";M.body.appendChild(N);ah.boxModel=ah.support.boxModel=N.offsetWidth===2;M.body.removeChild(N).style.display="none"});L=function(N){var P=M.createElement("div");N="on"+N;var O=N in P;if(!O){P.setAttribute(N,"return;");O=typeof P[N]==="function"}return O};ah.support.submitBubbles=L("submit");ah.support.changeBubbles=L("change");L=K=J=G=w=null}})();ah.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aH="jQuery"+aF(),e=0,aS={};ah.extend({cache:{},expando:aH,noData:{embed:true,object:true,applet:true},data:function(s,c,F){if(!(s.nodeName&&ah.noData[s.nodeName.toLowerCase()])){s=s==aO?aS:s;var w=s[aH],A=ah.cache;if(!w&&typeof c==="string"&&F===I){return null}w||(w=++e);if(typeof c==="object"){s[aH]=w;A[w]=ah.extend(true,{},c)}else{if(!A[w]){s[aH]=w;A[w]={}}}s=A[w];if(F!==I){s[c]=F}return typeof c==="string"?s[c]:s}},removeData:function(s,c){if(!(s.nodeName&&ah.noData[s.nodeName.toLowerCase()])){s=s==aO?aS:s;var F=s[aH],w=ah.cache,A=w[F];if(c){if(A){delete A[c];ah.isEmptyObject(A)&&ah.removeData(s)}}else{if(ah.support.deleteExpando){delete s[ah.expando]}else{s.removeAttribute&&s.removeAttribute(ah.expando)}delete w[F]}}}});ah.fn.extend({data:function(s,c){if(typeof s==="undefined"&&this.length){return ah.data(this[0])}else{if(typeof s==="object"){return this.each(function(){ah.data(this,s)})}}var A=s.split(".");A[1]=A[1]?"."+A[1]:"";if(c===I){var w=this.triggerHandler("getData"+A[1]+"!",[A[0]]);if(w===I&&this.length){w=ah.data(this[0],s)}return w===I&&A[1]?this.data(A[0]):w}else{return this.trigger("setData"+A[1]+"!",[A[0],c]).each(function(){ah.data(this,s,c)})}},removeData:function(c){return this.each(function(){ah.removeData(this,c)})}});ah.extend({queue:function(s,c,A){if(s){c=(c||"fx")+"queue";var w=ah.data(s,c);if(!A){return w||[]}if(!w||ah.isArray(A)){w=ah.data(s,c,ah.makeArray(A))}else{w.push(A)}return w}},dequeue:function(s,c){c=c||"fx";var A=ah.queue(s,c),w=A.shift();if(w==="inprogress"){w=A.shift()}if(w){c==="fx"&&A.unshift("inprogress");w.call(s,function(){ah.dequeue(s,c)})}}});ah.fn.extend({queue:function(s,c){if(typeof s!=="string"){c=s;s="fx"}if(c===I){return ah.queue(this[0],s)}return this.each(function(){var w=ah.queue(this,s,c);s==="fx"&&w[0]!=="inprogress"&&ah.dequeue(this,s)})},dequeue:function(c){return this.each(function(){ah.dequeue(this,c)})},delay:function(s,c){s=ah.fx?ah.fx.speeds[s]||s:s;c=c||"fx";return this.queue(c,function(){var w=this;setTimeout(function(){ah.dequeue(w,c)},s)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var be=/[\n\t]/g,U=/\s+/,a8=/\r/g,aM=/href|src|style/,aU=/(button|input)/i,aw=/(button|input|object|select|textarea)/i,S=/^(a|area)$/i,aY=/radio|checkbox/;ah.fn.extend({attr:function(s,c){return ap(this,s,c,true,ah.attr)},removeAttr:function(c){return this.each(function(){ah.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(L){if(ah.isFunction(L)){return this.each(function(O){var N=ah(this);N.addClass(L.call(this,O,N.attr("class")))})}if(L&&typeof L==="string"){for(var K=(L||"").split(U),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1){if(G.className){for(var w=" "+G.className+" ",A=G.className,c=0,s=K.length;c<s;c++){if(w.indexOf(" "+K[c]+" ")<0){A+=" "+K[c]}}G.className=ah.trim(A)}else{G.className=L}}}}return this},removeClass:function(s){if(ah.isFunction(s)){return this.each(function(L){var N=ah(this);N.removeClass(s.call(this,L,N.attr("class")))})}if(s&&typeof s==="string"||s===I){for(var c=(s||"").split(U),K=0,F=this.length;K<F;K++){var G=this[K];if(G.nodeType===1&&G.className){if(s){for(var w=(" "+G.className+" ").replace(be," "),A=0,J=c.length;A<J;A++){w=w.replace(" "+c[A]+" "," ")}G.className=ah.trim(w)}else{G.className=""}}}}return this},toggleClass:function(s,c){var A=typeof s,w=typeof c==="boolean";if(ah.isFunction(s)){return this.each(function(G){var F=ah(this);F.toggleClass(s.call(this,G,F.attr("class"),c),c)})}return this.each(function(){if(A==="string"){for(var K,G=0,J=ah(this),L=c,F=s.split(U);K=F[G++];){L=w?L:!J.hasClass(K);J[L?"addClass":"removeClass"](K)}}else{if(A==="undefined"||A==="boolean"){this.className&&ah.data(this,"__className__",this.className);this.className=this.className||s===false?"":ah.data(this,"__className__")||""}}})},hasClass:function(s){s=" "+s+" ";for(var c=0,w=this.length;c<w;c++){if((" "+this[c].className+" ").replace(be," ").indexOf(s)>-1){return true}}return false},val:function(s){if(s===I){var c=this[0];if(c){if(ah.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text}if(ah.nodeName(c,"select")){var K=c.selectedIndex,F=[],G=c.options;c=c.type==="select-one";if(K<0){return null}var w=c?K:0;for(K=c?K+1:G.length;w<K;w++){var A=G[w];if(A.selected){s=ah(A).val();if(c){return s}F.push(s)}}return F}if(aY.test(c.type)&&!ah.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(a8,"")}return I}var J=ah.isFunction(s);return this.each(function(L){var P=ah(this),O=s;if(this.nodeType===1){if(J){O=s.call(this,L,P.val())}if(typeof O==="number"){O+=""}if(ah.isArray(O)&&aY.test(this.type)){this.checked=ah.inArray(P.val(),O)>=0}else{if(ah.nodeName(this,"select")){var N=ah.makeArray(O);ah("option",this).each(function(){this.selected=ah.inArray(ah(this).val(),N)>=0});if(!N.length){this.selectedIndex=-1}}else{this.value=O}}}})}});ah.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(s,c,G,A){if(!s||s.nodeType===3||s.nodeType===8){return I}if(A&&c in ah.attrFn){return ah(s)[c](G)}A=s.nodeType!==1||!ah.isXMLDoc(s);var F=G!==I;c=A&&ah.props[c]||c;if(s.nodeType===1){var w=aM.test(c);if(c in s&&A&&!w){if(F){c==="type"&&aU.test(s.nodeName)&&s.parentNode&&ah.error("type property can't be changed");s[c]=G}if(ah.nodeName(s,"form")&&s.getAttributeNode(c)){return s.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=s.getAttributeNode("tabIndex"))&&c.specified?c.value:aw.test(s.nodeName)||S.test(s.nodeName)&&s.href?0:I}return s[c]}if(!ah.support.style&&A&&c==="style"){if(F){s.style.cssText=""+G}return s.style.cssText}F&&s.setAttribute(c,""+G);s=!ah.support.hrefNormalized&&A&&w?s.getAttribute(c,2):s.getAttribute(c);return s===null?I:s}return ah.style(s,c,G)}});var az=/\.(.*)$/,r=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s})};ah.event={add:function(P,O,L,J){if(!(P.nodeType===3||P.nodeType===8)){if(P.setInterval&&P!==aO&&!P.frameElement){P=aO}var K,F;if(L.handler){K=L;L=K.handler}if(!L.guid){L.guid=ah.guid++}if(F=ah.data(P)){var G=F.events=F.events||{},s=F.handle;if(!s){F.handle=s=function(){return typeof ah!=="undefined"&&!ah.event.triggered?ah.event.handle.apply(s.elem,arguments):I}}s.elem=P;O=O.split(" ");for(var A,w=0,c;A=O[w++];){F=K?ah.extend({},K):{handler:L,data:J};if(A.indexOf(".")>-1){c=A.split(".");A=c.shift();F.namespace=c.slice(0).sort().join(".")}else{c=[];F.namespace=""}F.type=A;F.guid=L.guid;var Q=G[A],N=ah.event.special[A]||{};if(!Q){Q=G[A]=[];if(!N.setup||N.setup.call(P,J,c,s)===false){if(P.addEventListener){P.addEventListener(A,s,false)}else{P.attachEvent&&P.attachEvent("on"+A,s)}}}if(N.add){N.add.call(P,F);if(!F.handler.guid){F.handler.guid=L.guid}}Q.push(F);ah.event.global[A]=true}P=null}}},global:{},remove:function(R,Q,O,L){if(!(R.nodeType===3||R.nodeType===8)){var N,J=0,K,A,G,F,c,T,P=ah.data(R),s=P&&P.events;if(P&&s){if(Q&&Q.type){O=Q.handler;Q=Q.type}if(!Q||typeof Q==="string"&&Q.charAt(0)==="."){Q=Q||"";for(N in s){ah.event.remove(R,N+Q)}}else{for(Q=Q.split(" ");N=Q[J++];){F=N;K=N.indexOf(".")<0;A=[];if(!K){A=N.split(".");N=A.shift();G=new RegExp("(^|\\.)"+ah.map(A.slice(0).sort(),r).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(c=s[N]){if(O){F=ah.event.special[N]||{};for(w=L||0;w<c.length;w++){T=c[w];if(O.guid===T.guid){if(K||G.test(T.namespace)){L==null&&c.splice(w--,1);F.remove&&F.remove.call(R,T)}if(L!=null){break}}}if(c.length===0||L!=null&&c.length===1){if(!F.teardown||F.teardown.call(R,A)===false){aG(R,N,P.handle)}delete s[N]}}else{for(var w=0;w<c.length;w++){T=c[w];if(K||G.test(T.namespace)){ah.event.remove(R,F,T.handler,w);c.splice(w--,1)}}}}}if(ah.isEmptyObject(s)){if(Q=P.handle){Q.elem=null}delete P.events;delete P.handle;ah.isEmptyObject(P)&&ah.removeData(R)}}}}},trigger:function(N,L,K,G){var J=N.type||N;if(!G){N=typeof N==="object"?N[aH]?N:ah.extend(ah.Event(J),N):ah.Event(J);if(J.indexOf("!")>=0){N.type=J=J.slice(0,-1);N.exclusive=true}if(!K){N.stopPropagation();ah.event.global[J]&&ah.each(ah.cache,function(){this.events&&this.events[J]&&ah.event.trigger(N,L,this.handle.elem)})}if(!K||K.nodeType===3||K.nodeType===8){return I}N.result=I;N.target=K;L=ah.makeArray(L);L.unshift(N)}N.currentTarget=K;(G=ah.data(K,"handle"))&&G.apply(K,L);G=K.parentNode||K.ownerDocument;try{if(!(K&&K.nodeName&&ah.noData[K.nodeName.toLowerCase()])){if(K["on"+J]&&K["on"+J].apply(K,L)===false){N.result=false}}}catch(A){}if(!N.isPropagationStopped()&&G){ah.event.trigger(N,L,G,true)}else{if(!N.isDefaultPrevented()){G=N.target;var F,c=ah.nodeName(G,"a")&&J==="click",w=ah.event.special[J]||{};if((!w._default||w._default.call(K,N)===false)&&!c&&!(G&&G.nodeName&&ah.noData[G.nodeName.toLowerCase()])){try{if(G[J]){if(F=G["on"+J]){G["on"+J]=null}ah.event.triggered=true;G[J]()}}catch(s){}if(F){G["on"+J]=F}ah.event.triggered=false}}}},handle:function(s){var c,J,F,G;s=arguments[0]=ah.event.fix(s||aO.event);s.currentTarget=this;c=s.type.indexOf(".")<0&&!s.exclusive;if(!c){J=s.type.split(".");s.type=J.shift();F=new RegExp("(^|\\.)"+J.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}G=ah.data(this,"events");J=G[s.type];if(G&&J){J=J.slice(0);G=0;for(var w=J.length;G<w;G++){var A=J[G];if(c||F.test(A.namespace)){s.handler=A.handler;s.data=A.data;s.handleObj=A;A=A.handler.apply(this,arguments);if(A!==I){s.result=A;if(A===false){s.preventDefault();s.stopPropagation()}}if(s.isImmediatePropagationStopped()){break}}}}return s.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(s){if(s[aH]){return s}var c=s;s=ah.Event(c);for(var A=this.props.length,w;A;){w=this.props[--A];s[w]=c[w]}if(!s.target){s.target=s.srcElement||M}if(s.target.nodeType===3){s.target=s.target.parentNode}if(!s.relatedTarget&&s.fromElement){s.relatedTarget=s.fromElement===s.target?s.toElement:s.fromElement}if(s.pageX==null&&s.clientX!=null){c=M.documentElement;A=M.body;s.pageX=s.clientX+(c&&c.scrollLeft||A&&A.scrollLeft||0)-(c&&c.clientLeft||A&&A.clientLeft||0);s.pageY=s.clientY+(c&&c.scrollTop||A&&A.scrollTop||0)-(c&&c.clientTop||A&&A.clientTop||0)}if(!s.which&&(s.charCode||s.charCode===0?s.charCode:s.keyCode)){s.which=s.charCode||s.keyCode}if(!s.metaKey&&s.ctrlKey){s.metaKey=s.ctrlKey}if(!s.which&&s.button!==I){s.which=s.button&1?1:s.button&2?3:s.button&4?2:0}return s},guid:100000000,proxy:ah.proxy,special:{ready:{setup:ah.bindReady,teardown:ah.noop},live:{add:function(c){ah.event.add(this,c.origType,ah.extend({},c,{handler:ag}))},remove:function(s){var c=true,w=s.origType.replace(az,"");ah.each(ah.data(this,"events").live||[],function(){if(w===this.origType.replace(az,"")){return c=false}});c&&ah.event.remove(this,s.origType,ag)}},beforeunload:{setup:function(s,c,w){if(this.setInterval){this.onbeforeunload=w}return false},teardown:function(s,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};var aG=M.removeEventListener?function(s,c,w){s.removeEventListener(c,w,false)}:function(s,c,w){s.detachEvent("on"+c,w)};ah.Event=function(c){if(!this.preventDefault){return new ah.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=aF();this[aH]=true};ah.Event.prototype={preventDefault:function(){this.isDefaultPrevented=am;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=am;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=am;this.stopPropagation()},isDefaultPrevented:ao,isPropagationStopped:ao,isImmediatePropagationStopped:ao};var ae=function(s){var c=s.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){s.type=s.data;ah.event.handle.apply(this,arguments)}}catch(w){}},x=function(c){c.type=c.data;ah.event.handle.apply(this,arguments)};ah.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(s,c){ah.event.special[s]={setup:function(w){ah.event.add(this,c,w&&w.selector?x:ae,s)},teardown:function(w){ah.event.remove(this,c,w&&w.selector?x:ae)}}});if(!ah.support.submitBubbles){ah.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){ah.event.add(this,"click.specialSubmit",function(s){var c=s.target,w=c.type;if((w==="submit"||w==="image")&&ah(c).closest("form").length){return aK("submit",this,arguments)}});ah.event.add(this,"keypress.specialSubmit",function(s){var c=s.target,w=c.type;if((w==="text"||w==="password")&&ah(c).closest("form").length&&s.keyCode===13){return aK("submit",this,arguments)}})}else{return false}},teardown:function(){ah.event.remove(this,".specialSubmit")}}}if(!ah.support.changeBubbles){var t=/textarea|input|select/i,g,j=function(s){var c=s.type,w=s.value;if(c==="radio"||c==="checkbox"){w=s.checked}else{if(c==="select-multiple"){w=s.selectedIndex>-1?ah.map(s.options,function(A){return A.selected}).join("-"):""}else{if(s.nodeName.toLowerCase()==="select"){w=s.selectedIndex}}}return w},bd=function(s,c){var F=s.target,w,A;if(!(!t.test(F.nodeName)||F.readOnly)){w=ah.data(F,"_change_data");A=j(F);if(s.type!=="focusout"||F.type!=="radio"){ah.data(F,"_change_data",A)}if(!(w===I||A===w)){if(w!=null||A){s.type="change";return ah.event.trigger(s,c,F)}}}};ah.event.special.change={filters:{focusout:bd,click:function(s){var c=s.target,w=c.type;if(w==="radio"||w==="checkbox"||c.nodeName.toLowerCase()==="select"){return bd.call(this,s)}},keydown:function(s){var c=s.target,w=c.type;if(s.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||s.keyCode===32&&(w==="checkbox"||w==="radio")||w==="select-multiple"){return bd.call(this,s)}},beforeactivate:function(c){c=c.target;ah.data(c,"_change_data",j(c))}},setup:function(){if(this.type==="file"){return false}for(var c in g){ah.event.add(this,c+".specialChange",g[c])}return t.test(this.nodeName)},teardown:function(){ah.event.remove(this,".specialChange");return t.test(this.nodeName)}};g=ah.event.special.change.filters}M.addEventListener&&ah.each({focus:"focusin",blur:"focusout"},function(s,c){function w(A){A=ah.event.fix(A);A.type=c;return ah.event.handle.call(this,A)}ah.event.special[c]={setup:function(){this.addEventListener(s,w,true)},teardown:function(){this.removeEventListener(s,w,true)}}});ah.each(["bind","one"],function(s,c){ah.fn[c]=function(K,F,G){if(typeof K==="object"){for(var w in K){this[c](w,F,K[w],G)}return this}if(ah.isFunction(F)){G=F;F=I}var A=c==="one"?ah.proxy(G,function(L){ah(this).unbind(L,A);return G.apply(this,arguments)}):G;if(K==="unload"&&c!=="one"){this.one(K,F,G)}else{w=0;for(var J=this.length;w<J;w++){ah.event.add(this[w],K,A,F)}}return this}});ah.fn.extend({unbind:function(s,c){if(typeof s==="object"&&!s.preventDefault){for(var A in s){this.unbind(A,s[A])}}else{A=0;for(var w=this.length;A<w;A++){ah.event.remove(this[A],s,c)}}return this},delegate:function(s,c,A,w){return this.live(c,A,w,s)},undelegate:function(s,c,w){return arguments.length===0?this.unbind("live"):this.die(c,null,w,s)},trigger:function(s,c){return this.each(function(){ah.event.trigger(s,c,this)})},triggerHandler:function(s,c){if(this[0]){s=ah.Event(s);s.preventDefault();s.stopPropagation();ah.event.trigger(s,c,this[0]);return s.result}},toggle:function(s){for(var c=arguments,w=1;w<c.length;){ah.proxy(s,c[w++])}return this.click(ah.proxy(s,function(A){var F=(ah.data(this,"lastToggle"+s.guid)||0)%w;ah.data(this,"lastToggle"+s.guid,F+1);A.preventDefault();return c[F].apply(this,arguments)||false}))},hover:function(s,c){return this.mouseenter(s).mouseleave(c||s)}});var bh={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};ah.each(["live","die"],function(s,c){ah.fn[c]=function(O,L,N,J){var K,A=0,G,F,w=J||this.selector,P=J?this:ah(this.context);if(ah.isFunction(L)){N=L;L=I}for(O=(O||"").split(" ");(K=O[A++])!=null;){J=az.exec(K);G="";if(J){G=J[0];K=K.replace(az,"")}if(K==="hover"){O.push("mouseenter"+G,"mouseleave"+G)}else{F=K;if(K==="focus"||K==="blur"){O.push(bh[K]+G);K+=G}else{K=(bh[K]||K)+G}c==="live"?P.each(function(){ah.event.add(this,z(K,w),{data:L,selector:w,handler:N,origType:K,origHandler:N,preType:F})}):P.unbind(z(K,w),N)}}return this}});ah.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(s,c){ah.fn[c]=function(w){return w?this.bind(c,w):this.trigger(c)};if(ah.attrFn){ah.attrFn[c]=true}});aO.attachEvent&&!aO.addEventListener&&aO.attachEvent("onunload",function(){for(var s in ah.cache){if(ah.cache[s].handle){try{ah.event.remove(ah.cache[s].handle.elem)}catch(c){}}}});(function(){function W(ab){for(var aa="",Z,Y=0;ab[Y];Y++){Z=ab[Y];if(Z.nodeType===3||Z.nodeType===4){aa+=Z.nodeValue}else{if(Z.nodeType!==8){aa+=W(Z.childNodes)}}}return aa}function V(bb,ba,ab,aa,Y,Z){Y=0;for(var bm=aa.length;Y<bm;Y++){var bn=aa[Y];if(bn){bn=bn[bb];for(var bl=false;bn;){if(bn.sizcache===ab){bl=aa[bn.sizset];break}if(bn.nodeType===1&&!Z){bn.sizcache=ab;bn.sizset=Y}if(bn.nodeName.toLowerCase()===ba){bl=bn;break}bn=bn[bb]}aa[Y]=bl}}}function T(bb,ba,ab,aa,Y,Z){Y=0;for(var bm=aa.length;Y<bm;Y++){var bn=aa[Y];if(bn){bn=bn[bb];for(var bl=false;bn;){if(bn.sizcache===ab){bl=aa[bn.sizset];break}if(bn.nodeType===1){if(!Z){bn.sizcache=ab;bn.sizset=Y}if(typeof ba!=="string"){if(bn===ba){bl=true;break}}else{if(N.filter(ba,[bn]).length>0){bl=bn;break}}}bn=bn[bb]}aa[Y]=bl}}}var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,R=0,O=Object.prototype.toString,P=false,K=true;[0,0].sort(function(){K=false;return 0});var N=function(bm,bl,ba,ab){ba=ba||[];var Z=bl=bl||M;if(bl.nodeType!==1&&bl.nodeType!==9){return[]}if(!bm||typeof bm!=="string"){return ba}for(var aa=[],br,bs,bo,bb,bq=true,bn=s(bl),bp=bm;(Q.exec(""),br=Q.exec(bp))!==null;){bp=br[3];aa.push(br[1]);if(br[2]){bb=br[3];break}}if(aa.length>1&&G.exec(bm)){if(aa.length===2&&L.relative[aa[0]]){bs=X(aa[0]+aa[1],bl)}else{for(bs=L.relative[aa[0]]?[bl]:N(aa.shift(),bl);aa.length;){bm=aa.shift();if(L.relative[bm]){bm+=aa.shift()}bs=X(bm,bs)}}}else{if(!ab&&aa.length>1&&bl.nodeType===9&&!bn&&L.match.ID.test(aa[0])&&!L.match.ID.test(aa[aa.length-1])){br=N.find(aa.shift(),bl,bn);bl=br.expr?N.filter(br.expr,br.set)[0]:br.set[0]}if(bl){br=ab?{expr:aa.pop(),set:c(ab)}:N.find(aa.pop(),aa.length===1&&(aa[0]==="~"||aa[0]==="+")&&bl.parentNode?bl.parentNode:bl,bn);bs=br.expr?N.filter(br.expr,br.set):br.set;if(aa.length>0){bo=c(bs)}else{bq=false}for(;aa.length;){var Y=aa.pop();br=Y;if(L.relative[Y]){br=aa.pop()}else{Y=""}if(br==null){br=bl}L.relative[Y](bo,br,bn)}}else{bo=[]}}bo||(bo=bs);bo||N.error(Y||bm);if(O.call(bo)==="[object Array]"){if(bq){if(bl&&bl.nodeType===1){for(bm=0;bo[bm]!=null;bm++){if(bo[bm]&&(bo[bm]===true||bo[bm].nodeType===1&&A(bl,bo[bm]))){ba.push(bs[bm])}}}else{for(bm=0;bo[bm]!=null;bm++){bo[bm]&&bo[bm].nodeType===1&&ba.push(bs[bm])}}}else{ba.push.apply(ba,bo)}}else{c(bo,ba)}if(bb){N(bb,Z,ba,ab);N.uniqueSort(ba)}return ba};N.uniqueSort=function(Z){if(J){P=K;Z.sort(J);if(P){for(var Y=1;Y<Z.length;Y++){Z[Y]===Z[Y-1]&&Z.splice(Y--,1)}}}return Z};N.matches=function(Z,Y){return N(Z,null,null,Y)};N.find=function(bb,ba,ab){var aa,Y;if(!bb){return[]}for(var Z=0,bm=L.order.length;Z<bm;Z++){var bn=L.order[Z];if(Y=L.leftMatch[bn].exec(bb)){var bl=Y[1];Y.splice(1,1);if(bl.substr(bl.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=L.find[bn](Y,ba,ab);if(aa!=null){bb=bb.replace(L.match[bn],"");break}}}}aa||(aa=ba.getElementsByTagName("*"));return{set:aa,expr:bb}};N.filter=function(bn,bm,bb,ab){for(var Z=bn,aa=[],bt=bm,bu,bq,bl=bm&&bm[0]&&s(bm[0]);bn&&bm.length;){for(var bs in L.filter){if((bu=L.leftMatch[bs].exec(bn))!=null&&bu[2]){var bo=L.filter[bs],br,Y;Y=bu[1];bq=false;bu.splice(1,1);if(Y.substr(Y.length-1)!=="\\"){if(bt===aa){aa=[]}if(L.preFilter[bs]){if(bu=L.preFilter[bs](bu,bt,bb,aa,ab,bl)){if(bu===true){continue}}else{bq=br=true}}if(bu){for(var ba=0;(Y=bt[ba])!=null;ba++){if(Y){br=bo(Y,bu,ba,bt);var bp=ab^!!br;if(bb&&br!=null){if(bp){bq=true}else{bt[ba]=false}}else{if(bp){aa.push(Y);bq=true}}}}}if(br!==I){bb||(bt=aa);bn=bn.replace(L.match[bs],"");if(!bq){return[]}break}}}}if(bn===Z){if(bq==null){N.error(bn)}else{break}}Z=bn}return bt};N.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var L=N.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Y){return Y.getAttribute("href")}},relative:{"+":function(ab,aa){var Z=typeof aa==="string",Y=Z&&!/\W/.test(aa);Z=Z&&!Y;if(Y){aa=aa.toLowerCase()}Y=0;for(var ba=ab.length,bb;Y<ba;Y++){if(bb=ab[Y]){for(;(bb=bb.previousSibling)&&bb.nodeType!==1;){}ab[Y]=Z||bb&&bb.nodeName.toLowerCase()===aa?bb||false:bb===aa}}Z&&N.filter(aa,ab,true)},">":function(ab,aa){var Z=typeof aa==="string";if(Z&&!/\W/.test(aa)){aa=aa.toLowerCase();for(var Y=0,ba=ab.length;Y<ba;Y++){var bb=ab[Y];if(bb){Z=bb.parentNode;ab[Y]=Z.nodeName.toLowerCase()===aa?Z:false}}}else{Y=0;for(ba=ab.length;Y<ba;Y++){if(bb=ab[Y]){ab[Y]=Z?bb.parentNode:bb.parentNode===aa}}Z&&N.filter(aa,ab,true)}},"":function(ab,aa,Z){var Y=R++,ba=T;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=V}ba("parentNode",aa,Y,ab,bb,Z)},"~":function(ab,aa,Z){var Y=R++,ba=T;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=V}ba("previousSibling",aa,Y,ab,bb,Z)}},find:{ID:function(aa,Z,Y){if(typeof Z.getElementById!=="undefined"&&!Y){return(aa=Z.getElementById(aa[1]))?[aa]:[]}},NAME:function(ab,aa){if(typeof aa.getElementsByName!=="undefined"){var Z=[];aa=aa.getElementsByName(ab[1]);for(var Y=0,ba=aa.length;Y<ba;Y++){aa[Y].getAttribute("name")===ab[1]&&Z.push(aa[Y])}return Z.length===0?null:Z}},TAG:function(Z,Y){return Y.getElementsByTagName(Z[1])}},preFilter:{CLASS:function(ba,ab,Z,Y,bb,bl){ba=" "+ba[1].replace(/\\/g,"")+" ";if(bl){return ba}bl=0;for(var aa;(aa=ab[bl])!=null;bl++){if(aa){if(bb^(aa.className&&(" "+aa.className+" ").replace(/[\t\n]/g," ").indexOf(ba)>=0)){Z||Y.push(aa)}else{if(Z){ab[bl]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Z){if(Z[1]==="nth"){var Y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Z[2]==="even"&&"2n"||Z[2]==="odd"&&"2n+1"||!/\D/.test(Z[2])&&"0n+"+Z[2]||Z[2]);Z[2]=Y[1]+(Y[2]||1)-0;Z[3]=Y[3]-0}Z[0]=R++;return Z},ATTR:function(ab,aa,Z,Y,ba,bb){aa=ab[1].replace(/\\/g,"");if(!bb&&L.attrMap[aa]){ab[1]=L.attrMap[aa]}if(ab[2]==="~="){ab[4]=" "+ab[4]+" "}return ab},PSEUDO:function(ab,aa,Z,Y,ba){if(ab[1]==="not"){if((Q.exec(ab[3])||"").length>1||/^\w/.test(ab[3])){ab[3]=N(ab[3],null,null,aa)}else{ab=N.filter(ab[3],aa,Z,true^ba);Z||Y.push.apply(Y,ab);return false}}else{if(L.match.POS.test(ab[0])||L.match.CHILD.test(ab[0])){return true}}return ab},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(aa,Z,Y){return !!N(Y[3],aa).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Z,Y){return Y===0},last:function(ab,aa,Z,Y){return aa===Y.length-1},even:function(Z,Y){return Y%2===0},odd:function(Z,Y){return Y%2===1},lt:function(aa,Z,Y){return Z<Y[3]-0},gt:function(aa,Z,Y){return Z>Y[3]-0},nth:function(aa,Z,Y){return Y[3]-0===Z},eq:function(aa,Z,Y){return Y[3]-0===Z}},filter:{PSEUDO:function(ab,aa,Z,Y){var ba=aa[1],bb=L.filters[ba];if(bb){return bb(ab,Z,aa,Y)}else{if(ba==="contains"){return(ab.textContent||ab.innerText||W([ab])||"").indexOf(aa[3])>=0}else{if(ba==="not"){aa=aa[3];Z=0;for(Y=aa.length;Z<Y;Z++){if(aa[Z]===ab){return false}}return true}else{N.error("Syntax error, unrecognized expression: "+ba)}}}},CHILD:function(ba,ab){var Z=ab[1],Y=ba;switch(Z){case"only":case"first":for(;Y=Y.previousSibling;){if(Y.nodeType===1){return false}}if(Z==="first"){return true}Y=ba;case"last":for(;Y=Y.nextSibling;){if(Y.nodeType===1){return false}}return true;case"nth":Z=ab[2];var bb=ab[3];if(Z===1&&bb===0){return true}ab=ab[0];var bl=ba.parentNode;if(bl&&(bl.sizcache!==ab||!ba.nodeIndex)){var aa=0;for(Y=bl.firstChild;Y;Y=Y.nextSibling){if(Y.nodeType===1){Y.nodeIndex=++aa}}bl.sizcache=ab}ba=ba.nodeIndex-bb;return Z===0?ba===0:ba%Z===0&&ba/Z>=0}},ID:function(Z,Y){return Z.nodeType===1&&Z.getAttribute("id")===Y},TAG:function(Z,Y){return Y==="*"&&Z.nodeType===1||Z.nodeName.toLowerCase()===Y},CLASS:function(Z,Y){return(" "+(Z.className||Z.getAttribute("class"))+" ").indexOf(Y)>-1},ATTR:function(ab,aa){var Z=aa[1];ab=L.attrHandle[Z]?L.attrHandle[Z](ab):ab[Z]!=null?ab[Z]:ab.getAttribute(Z);Z=ab+"";var Y=aa[2];aa=aa[4];return ab==null?Y==="!=":Y==="="?Z===aa:Y==="*="?Z.indexOf(aa)>=0:Y==="~="?(" "+Z+" ").indexOf(aa)>=0:!aa?Z&&ab!==false:Y==="!="?Z!==aa:Y==="^="?Z.indexOf(aa)===0:Y==="$="?Z.substr(Z.length-aa.length)===aa:Y==="|="?Z===aa||Z.substr(0,aa.length+1)===aa+"-":false},POS:function(ab,aa,Z,Y){var ba=L.setFilters[aa[2]];if(ba){return ba(ab,Z,aa,Y)}}}},G=L.match.POS;for(var w in L.match){L.match[w]=new RegExp(L.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);L.leftMatch[w]=new RegExp(/(^(?:.|\r|\n)*?)/.source+L.match[w].source.replace(/\\(\d+)/g,function(Z,Y){return"\\"+(Y-0+1)}))}var c=function(Z,Y){Z=Array.prototype.slice.call(Z,0);if(Y){Y.push.apply(Y,Z);return Y}return Z};try{Array.prototype.slice.call(M.documentElement.childNodes,0)}catch(F){c=function(ab,aa){aa=aa||[];if(O.call(ab)==="[object Array]"){Array.prototype.push.apply(aa,ab)}else{if(typeof ab.length==="number"){for(var Z=0,Y=ab.length;Z<Y;Z++){aa.push(ab[Z])}}else{for(Z=0;ab[Z];Z++){aa.push(ab[Z])}}}return aa}}var J;if(M.documentElement.compareDocumentPosition){J=function(Z,Y){if(!Z.compareDocumentPosition||!Y.compareDocumentPosition){if(Z==Y){P=true}return Z.compareDocumentPosition?-1:1}Z=Z.compareDocumentPosition(Y)&4?-1:Z===Y?0:1;if(Z===0){P=true}return Z}}else{if("sourceIndex" in M.documentElement){J=function(Z,Y){if(!Z.sourceIndex||!Y.sourceIndex){if(Z==Y){P=true}return Z.sourceIndex?-1:1}Z=Z.sourceIndex-Y.sourceIndex;if(Z===0){P=true}return Z}}else{if(M.createRange){J=function(ab,aa){if(!ab.ownerDocument||!aa.ownerDocument){if(ab==aa){P=true}return ab.ownerDocument?-1:1}var Z=ab.ownerDocument.createRange(),Y=aa.ownerDocument.createRange();Z.setStart(ab,0);Z.setEnd(ab,0);Y.setStart(aa,0);Y.setEnd(aa,0);ab=Z.compareBoundaryPoints(Range.START_TO_END,Y);if(ab===0){P=true}return ab}}}}(function(){var aa=M.createElement("div"),Z="script"+(new Date).getTime();aa.innerHTML="<a name='"+Z+"'/>";var Y=M.documentElement;Y.insertBefore(aa,Y.firstChild);if(M.getElementById(Z)){L.find.ID=function(ab,ba,bb){if(typeof ba.getElementById!=="undefined"&&!bb){return(ba=ba.getElementById(ab[1]))?ba.id===ab[1]||typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id").nodeValue===ab[1]?[ba]:I:[]}};L.filter.ID=function(ab,ba){var bb=typeof ab.getAttributeNode!=="undefined"&&ab.getAttributeNode("id");return ab.nodeType===1&&bb&&bb.nodeValue===ba}}Y.removeChild(aa);Y=aa=null})();(function(){var Y=M.createElement("div");Y.appendChild(M.createComment(""));if(Y.getElementsByTagName("*").length>0){L.find.TAG=function(ab,aa){aa=aa.getElementsByTagName(ab[1]);if(ab[1]==="*"){ab=[];for(var Z=0;aa[Z];Z++){aa[Z].nodeType===1&&ab.push(aa[Z])}aa=ab}return aa}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){L.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();M.querySelectorAll&&function(){var aa=N,Z=M.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){N=function(ab,bl,bm,ba){bl=bl||M;if(!ba&&bl.nodeType===9&&!s(bl)){try{return c(bl.querySelectorAll(ab),bm)}catch(bb){}}return aa(ab,bl,bm,ba)};for(var Y in aa){N[Y]=aa[Y]}Z=null}}();(function(){var Y=M.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){L.order.splice(1,0,"CLASS");L.find.CLASS=function(ab,aa,Z){if(typeof aa.getElementsByClassName!=="undefined"&&!Z){return aa.getElementsByClassName(ab[1])}};Y=null}}})();var A=M.compareDocumentPosition?function(Z,Y){return !!(Z.compareDocumentPosition(Y)&16)}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)},s=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},X=function(ab,aa){var Z=[],Y="",ba;for(aa=aa.nodeType?[aa]:aa;ba=L.match.PSEUDO.exec(ab);){Y+=ba[0];ab=ab.replace(L.match.PSEUDO,"")}ab=L.relative[ab]?ab+"*":ab;ba=0;for(var bb=aa.length;ba<bb;ba++){N(ab,aa[ba],Z)}return N.filter(Y,Z)};ah.find=N;ah.expr=N.selectors;ah.expr[":"]=ah.expr.filters;ah.unique=N.uniqueSort;ah.text=W;ah.isXMLDoc=s;ah.contains=A})();var f=/Until$/,a9=/^(?:parents|prevUntil|prevAll)/,aW=/,/;au=Array.prototype.slice;var aL=function(s,c,A){if(ah.isFunction(c)){return ah.grep(s,function(G,F){return !!c.call(G,F,G)===A})}else{if(c.nodeType){return ah.grep(s,function(F){return F===c===A})}else{if(typeof c==="string"){var w=ah.grep(s,function(F){return F.nodeType===1});if(aT.test(c)){return ah.filter(c,w,!A)}else{c=ah.filter(c,w)}}}}return ah.grep(s,function(F){return ah.inArray(F,c)>=0===A})};ah.fn.extend({find:function(s){for(var c=this.pushStack("","find",s),J=0,F=0,G=this.length;F<G;F++){J=c.length;ah.find(s,this[F],c);if(F>0){for(var w=J;w<c.length;w++){for(var A=0;A<J;A++){if(c[A]===c[w]){c.splice(w--,1);break}}}}}return c},has:function(s){var c=ah(s);return this.filter(function(){for(var A=0,w=c.length;A<w;A++){if(ah.contains(this,c[A])){return true}}})},not:function(c){return this.pushStack(aL(this,c,false),"not",c)},filter:function(c){return this.pushStack(aL(this,c,true),"filter",c)},is:function(c){return !!c&&ah.filter(c,this).length>0},closest:function(L,K){if(ah.isArray(L)){var J=[],F=this[0],G,w={},A;if(F&&L.length){G=0;for(var c=L.length;G<c;G++){A=L[G];w[A]||(w[A]=ah.expr.match.POS.test(A)?ah(A,K||this.context):A)}for(;F&&F.ownerDocument&&F!==K;){for(A in w){G=w[A];if(G.jquery?G.index(F)>-1:ah(F).is(G)){J.push({selector:A,elem:F});delete w[A]}}F=F.parentNode}}return J}var s=ah.expr.match.POS.test(L)?ah(L,K||this.context):null;return this.map(function(O,N){for(;N&&N.ownerDocument&&N!==K;){if(s?s.index(N)>-1:ah(N).is(L)){return N}N=N.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return ah.inArray(this[0],c?ah(c):this.parent().children())}return ah.inArray(c.jquery?c[0]:c,this)},add:function(s,c){s=typeof s==="string"?ah(s,c||this.context):ah.makeArray(s);c=ah.merge(this.get(),s);return this.pushStack(l(s[0])||l(c[0])?c:ah.unique(c))},andSelf:function(){return this.add(this.prevObject)}});ah.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ah.dir(c,"parentNode")},parentsUntil:function(s,c,w){return ah.dir(s,"parentNode",w)},next:function(c){return ah.nth(c,2,"nextSibling")},prev:function(c){return ah.nth(c,2,"previousSibling")},nextAll:function(c){return ah.dir(c,"nextSibling")},prevAll:function(c){return ah.dir(c,"previousSibling")},nextUntil:function(s,c,w){return ah.dir(s,"nextSibling",w)},prevUntil:function(s,c,w){return ah.dir(s,"previousSibling",w)},siblings:function(c){return ah.sibling(c.parentNode.firstChild,c)},children:function(c){return ah.sibling(c.firstChild)},contents:function(c){return ah.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ah.makeArray(c.childNodes)}},function(s,c){ah.fn[s]=function(F,w){var A=ah.map(this,c,F);f.test(s)||(w=F);if(w&&typeof w==="string"){A=ah.filter(w,A)}A=this.length>1?ah.unique(A):A;if((this.length>1||aW.test(w))&&a9.test(s)){A=A.reverse()}return this.pushStack(A,s,au.call(arguments).join(","))}});ah.extend({filter:function(s,c,w){if(w){s=":not("+s+")"}return ah.find.matches(s,c)},dir:function(s,c,A){var w=[];for(s=s[c];s&&s.nodeType!==9&&(A===I||s.nodeType!==1||!ah(s).is(A));){s.nodeType===1&&w.push(s);s=s[c]}return w},nth:function(s,c,A){c=c||1;for(var w=0;s;s=s[A]){if(s.nodeType===1&&++w===c){break}}return s},sibling:function(s,c){for(var w=[];s;s=s.nextSibling){s.nodeType===1&&s!==c&&w.push(s)}return w}});var ai=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,B=/(<([\w:]+)[^>]*?)\/>/g,aD=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,m=/<([\w:]+)/,ac=/<tbody/i,u=/<|&#?\w+;/,aP=/<script|<object|<embed|<option|<style/i,ak=/checked\s*(?:[^=]|=\s*.checked.)/i,bk=function(s,c,w){return aD.test(w)?s:c+"></"+w+">"},aJ={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};aJ.optgroup=aJ.option;aJ.tbody=aJ.tfoot=aJ.colgroup=aJ.caption=aJ.thead;aJ.th=aJ.td;if(!ah.support.htmlSerialize){aJ._default=[1,"div<div>","</div>"]}ah.fn.extend({text:function(c){if(ah.isFunction(c)){return this.each(function(s){var w=ah(this);w.text(c.call(this,s,w.text()))})}if(typeof c!=="object"&&c!==I){return this.empty().append((this[0]&&this[0].ownerDocument||M).createTextNode(c))}return ah.text(this)},wrapAll:function(s){if(ah.isFunction(s)){return this.each(function(w){ah(this).wrapAll(s.call(this,w))})}if(this[0]){var c=ah(s,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var w=this;w.firstChild&&w.firstChild.nodeType===1;){w=w.firstChild}return w}).append(this)}return this},wrapInner:function(c){if(ah.isFunction(c)){return this.each(function(s){ah(this).wrapInner(c.call(this,s))})}return this.each(function(){var s=ah(this),w=s.contents();w.length?w.wrapAll(c):s.append(c)})},wrap:function(c){return this.each(function(){ah(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ah.nodeName(this,"body")||ah(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this)})}else{if(arguments.length){var c=ah(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ah(arguments[0]).toArray());return c}}},remove:function(s,c){for(var A=0,w;(w=this[A])!=null;A++){if(!s||ah.filter(s,[w]).length){if(!c&&w.nodeType===1){ah.cleanData(w.getElementsByTagName("*"));ah.cleanData([w])}w.parentNode&&w.parentNode.removeChild(w)}}return this},empty:function(){for(var s=0,c;(c=this[s])!=null;s++){for(c.nodeType===1&&ah.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(s){var c=this.map(function(){if(!ah.support.noCloneEvent&&!ah.isXMLDoc(this)){var A=this.outerHTML,w=this.ownerDocument;if(!A){A=w.createElement("div");A.appendChild(this.cloneNode(true));A=A.innerHTML}return ah.clean([A.replace(ai,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(ar,"")],w)[0]}else{return this.cloneNode(true)}});if(s===true){bj(this,c);bj(this.find("*"),c.find("*"))}return c},html:function(s){if(s===I){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ai,""):null}else{if(typeof s==="string"&&!aP.test(s)&&(ah.support.leadingWhitespace||!ar.test(s))&&!aJ[(m.exec(s)||["",""])[1].toLowerCase()]){s=s.replace(B,bk);try{for(var c=0,A=this.length;c<A;c++){if(this[c].nodeType===1){ah.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=s}}}catch(w){this.empty().append(s)}}else{ah.isFunction(s)?this.each(function(J){var F=ah(this),G=F.html();F.empty().append(function(){return s.call(this,J,G)})}):this.empty().append(s)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ah.isFunction(c)){return this.each(function(s){var A=ah(this),w=A.html();A.replaceWith(c.call(this,s,w))})}if(typeof c!=="string"){c=ah(c).detach()}return this.each(function(){var s=this.nextSibling,w=this.parentNode;ah(this).remove();s?ah(s).before(c):ah(w).append(c)})}else{return this.pushStack(ah(ah.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(O,N,L){function J(P){return ah.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var K,F,G=O[0],s=[],A;if(!ah.support.checkClone&&arguments.length===3&&typeof G==="string"&&ak.test(G)){return this.each(function(){ah(this).domManip(O,N,L,true)})}if(ah.isFunction(G)){return this.each(function(P){var Q=ah(this);O[0]=G.call(this,P,N?Q.html():I);Q.domManip(O,N,L)})}if(this[0]){K=G&&G.parentNode;K=ah.support.parentNode&&K&&K.nodeType===11&&K.childNodes.length===this.length?{fragment:K}:a3(O,this,s);A=K.fragment;if(F=A.childNodes.length===1?(A=A.firstChild):A.firstChild){N=N&&ah.nodeName(F,"tr");for(var w=0,c=this.length;w<c;w++){L.call(N?J(this[w],F):this[w],w>0||K.cacheable||this.length>1?A.cloneNode(true):A)}}s.length&&ah.each(s,E)}return this}});ah.fragments={};ah.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,c){ah.fn[s]=function(J){var F=[];J=ah(J);var G=this.length===1&&this[0].parentNode;if(G&&G.nodeType===11&&G.childNodes.length===1&&J.length===1){J[c](this[0]);return this}else{G=0;for(var w=J.length;G<w;G++){var A=(G>0?this.clone(true):this).get();ah.fn[c].apply(ah(J[G]),A);F=F.concat(A)}return this.pushStack(F,s,J.selector)}}});ah.extend({clean:function(O,N,L,J){N=N||M;if(typeof N.createElement==="undefined"){N=N.ownerDocument||N[0]&&N[0].ownerDocument||M}for(var K=[],F=0,G;(G=O[F])!=null;F++){if(typeof G==="number"){G+=""}if(G){if(typeof G==="string"&&!u.test(G)){G=N.createTextNode(G)}else{if(typeof G==="string"){G=G.replace(B,bk);var s=(m.exec(G)||["",""])[1].toLowerCase(),A=aJ[s]||aJ._default,w=A[0],c=N.createElement("div");for(c.innerHTML=A[1]+G+A[2];w--;){c=c.lastChild}if(!ah.support.tbody){w=ac.test(G);s=s==="table"&&!w?c.firstChild&&c.firstChild.childNodes:A[1]==="<table>"&&!w?c.childNodes:[];for(A=s.length-1;A>=0;--A){ah.nodeName(s[A],"tbody")&&!s[A].childNodes.length&&s[A].parentNode.removeChild(s[A])}}!ah.support.leadingWhitespace&&ar.test(G)&&c.insertBefore(N.createTextNode(ar.exec(G)[0]),c.firstChild);G=c.childNodes}}if(G.nodeType){K.push(G)}else{K=ah.merge(K,G)}}}if(L){for(F=0;K[F];F++){if(J&&ah.nodeName(K[F],"script")&&(!K[F].type||K[F].type.toLowerCase()==="text/javascript")){J.push(K[F].parentNode?K[F].parentNode.removeChild(K[F]):K[F])}else{K[F].nodeType===1&&K.splice.apply(K,[F+1,0].concat(ah.makeArray(K[F].getElementsByTagName("script"))));L.appendChild(K[F])}}}return K},cleanData:function(L){for(var K,J,F=ah.cache,G=ah.event.special,w=ah.support.deleteExpando,A=0,c;(c=L[A])!=null;A++){if(J=c[ah.expando]){K=F[J];if(K.events){for(var s in K.events){G[s]?ah.event.remove(c,s):aG(c,s,K.handle)}}if(w){delete c[ah.expando]}else{c.removeAttribute&&c.removeAttribute(ah.expando)}delete F[J]}}}});var h=/z-?index|font-?weight|opacity|zoom|line-?height/i,a4=/alpha\([^)]*\)/,aQ=/opacity=([^)]*)/,aE=/float/i,ad=/-([a-z])/ig,bf=/([A-Z])/g,aZ=/^-?\d+(?:px)?$/i,aI=/^-?\d/,af={position:"absolute",visibility:"hidden",display:"block"},y=["Left","Right"],k=["Top","Bottom"],bi=M.defaultView&&M.defaultView.getComputedStyle,al=ah.support.cssFloat?"cssFloat":"styleFloat",v=function(s,c){return c.toUpperCase()};ah.fn.css=function(s,c){return ap(this,s,c,true,function(F,w,A){if(A===I){return ah.curCSS(F,w)}if(typeof A==="number"&&!h.test(w)){A+="px"}ah.style(F,w,A)})};ah.extend({style:function(s,c,F){if(!s||s.nodeType===3||s.nodeType===8){return I}if((c==="width"||c==="height")&&parseFloat(F)<0){F=I}var w=s.style||s,A=F!==I;if(!ah.support.opacity&&c==="opacity"){if(A){w.zoom=1;c=parseInt(F,10)+""==="NaN"?"":"alpha(opacity="+F*100+")";s=w.filter||ah.curCSS(s,"filter")||"";w.filter=a4.test(s)?s.replace(a4,c):c}return w.filter&&w.filter.indexOf("opacity=")>=0?parseFloat(aQ.exec(w.filter)[1])/100+"":""}if(aE.test(c)){c=al}c=c.replace(ad,v);if(A){w[c]=F}return w[c]},css:function(s,c,J,F){if(c==="width"||c==="height"){var G,w=c==="width"?y:k;function A(){G=c==="width"?s.offsetWidth:s.offsetHeight;F!=="border"&&ah.each(w,function(){F||(G-=parseFloat(ah.curCSS(s,"padding"+this,true))||0);if(F==="margin"){G+=parseFloat(ah.curCSS(s,"margin"+this,true))||0}else{G-=parseFloat(ah.curCSS(s,"border"+this+"Width",true))||0}})}s.offsetWidth!==0?A():ah.swap(s,af,A);return Math.max(0,Math.round(G))}return ah.curCSS(s,c,J)},curCSS:function(s,c,G){var A,F=s.style;if(!ah.support.opacity&&c==="opacity"&&s.currentStyle){A=aQ.test(s.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return A===""?"1":A}if(aE.test(c)){c=al}if(!G&&F&&F[c]){A=F[c]}else{if(bi){if(aE.test(c)){c="float"}c=c.replace(bf,"-$1").toLowerCase();F=s.ownerDocument.defaultView;if(!F){return null}if(s=F.getComputedStyle(s,null)){A=s.getPropertyValue(c)}if(c==="opacity"&&A===""){A="1"}}else{if(s.currentStyle){G=c.replace(ad,v);A=s.currentStyle[c]||s.currentStyle[G];if(!aZ.test(A)&&aI.test(A)){c=F.left;var w=s.runtimeStyle.left;s.runtimeStyle.left=s.currentStyle.left;F.left=G==="fontSize"?"1em":A||0;A=F.pixelLeft+"px";F.left=c;s.runtimeStyle.left=w}}}}return A},swap:function(s,c,F){var w={};for(var A in c){w[A]=s.style[A];s.style[A]=c[A]}F.call(s);for(A in c){s.style[A]=w[A]}}});if(ah.expr&&ah.expr.filters){ah.expr.filters.hidden=function(s){var c=s.offsetWidth,A=s.offsetHeight,w=s.nodeName.toLowerCase()==="tr";return c===0&&A===0&&!w?true:c>0&&A>0&&!w?false:ah.curCSS(s,"display")==="none"};ah.expr.filters.visible=function(c){return !ah.expr.filters.hidden(c)}}var a2=aF(),aN=/<script(.|\s)*?\/script>/gi,aj=/select|textarea/i,C=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aA=/=\?(&|$)/,i=/\?/,n=/(\?|&)_=.*?(&|$)/,a=/^(\w+:)?\/\/([^\/?#]+)/,a5=/%20/g,aR=ah.fn.load;ah.fn.extend({load:function(s,c,G){if(typeof s!=="string"){return aR.call(this,s)}else{if(!this.length){return this}}var A=s.indexOf(" ");if(A>=0){var F=s.slice(A,s.length);s=s.slice(0,A)}A="GET";if(c){if(ah.isFunction(c)){G=c;c=null}else{if(typeof c==="object"){c=ah.param(c,ah.ajaxSettings.traditional);A="POST"}}}var w=this;ah.ajax({url:s,type:A,dataType:"html",data:c,complete:function(J,K){if(K==="success"||K==="notmodified"){w.html(F?ah("<div />").append(J.responseText.replace(aN,"")).find(F):J.responseText)}G&&w.each(G,[J.responseText,K,J])}});return this},serialize:function(){return ah.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ah.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||aj.test(this.nodeName)||C.test(this.type))}).map(function(s,c){s=ah(this).val();return s==null?null:ah.isArray(s)?ah.map(s,function(w){return{name:c.name,value:w}}):{name:c.name,value:s}}).get()}});ah.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(s,c){ah.fn[c]=function(w){return this.bind(c,w)}});ah.extend({get:function(s,c,A,w){if(ah.isFunction(c)){w=w||A;A=c;c=null}return ah.ajax({type:"GET",url:s,data:c,success:A,dataType:w})},getScript:function(s,c){return ah.get(s,null,c,"script")},getJSON:function(s,c,w){return ah.get(s,c,w,"json")},post:function(s,c,A,w){if(ah.isFunction(c)){w=w||A;A=c;c={}}return ah.ajax({type:"POST",url:s,data:c,success:A,dataType:w})},ajaxSetup:function(c){ah.extend(ah.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aO.XMLHttpRequest&&(aO.location.protocol!=="file:"||!aO.ActiveXObject)?function(){return new aO.XMLHttpRequest}:function(){try{return new aO.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(aa){function Z(){X.success&&X.success.call(P,K,R,s);X.global&&W("ajaxSuccess",[s,X])}function Y(){X.complete&&X.complete.call(P,s,R);X.global&&W("ajaxComplete",[s,X]);X.global&&!--ah.active&&ah.event.trigger("ajaxStop")}function W(ba,bb){(X.context?ah(X.context):ah.event).trigger(ba,bb)}var X=ah.extend(true,{},ah.ajaxSettings,aa),Q,R,K,P=aa&&aa.context||X,L=X.type.toUpperCase();if(X.data&&X.processData&&typeof X.data!=="string"){X.data=ah.param(X.data,X.traditional)}if(X.dataType==="jsonp"){if(L==="GET"){aA.test(X.url)||(X.url+=(i.test(X.url)?"&":"?")+(X.jsonp||"callback")+"=?")}else{if(!X.data||!aA.test(X.data)){X.data=(X.data?X.data+"&":"")+(X.jsonp||"callback")+"=?"}}X.dataType="json"}if(X.dataType==="json"&&(X.data&&aA.test(X.data)||aA.test(X.url))){Q=X.jsonpCallback||"jsonp"+a2++;if(X.data){X.data=(X.data+"").replace(aA,"="+Q+"$1")}X.url=X.url.replace(aA,"="+Q+"$1");X.dataType="script";aO[Q]=aO[Q]||function(ba){K=ba;Z();Y();aO[Q]=I;try{delete aO[Q]}catch(bb){}c&&c.removeChild(F)}}if(X.dataType==="script"&&X.cache===null){X.cache=false}if(X.cache===false&&L==="GET"){var G=aF(),w=X.url.replace(n,"$1_="+G+"$2");X.url=w+(w===X.url?(i.test(X.url)?"&":"?")+"_="+G:"")}if(X.data&&L==="GET"){X.url+=(i.test(X.url)?"&":"?")+X.data}X.global&&!ah.active++&&ah.event.trigger("ajaxStart");G=(G=a.exec(X.url))&&(G[1]&&G[1]!==location.protocol||G[2]!==location.host);if(X.dataType==="script"&&L==="GET"&&G){var c=M.getElementsByTagName("head")[0]||M.documentElement,F=M.createElement("script");F.src=X.url;if(X.scriptCharset){F.charset=X.scriptCharset}if(!Q){var J=false;F.onload=F.onreadystatechange=function(){if(!J&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){J=true;Z();Y();F.onload=F.onreadystatechange=null;c&&F.parentNode&&c.removeChild(F)}}}c.insertBefore(F,c.firstChild);return I}var A=false,s=X.xhr();if(s){X.username?s.open(L,X.url,X.async,X.username,X.password):s.open(L,X.url,X.async);try{if(X.data||aa&&aa.contentType){s.setRequestHeader("Content-Type",X.contentType)}if(X.ifModified){ah.lastModified[X.url]&&s.setRequestHeader("If-Modified-Since",ah.lastModified[X.url]);ah.etag[X.url]&&s.setRequestHeader("If-None-Match",ah.etag[X.url])}G||s.setRequestHeader("X-Requested-With","XMLHttpRequest");s.setRequestHeader("Accept",X.dataType&&X.accepts[X.dataType]?X.accepts[X.dataType]+", */*":X.accepts._default)}catch(ab){}if(X.beforeSend&&X.beforeSend.call(P,s,X)===false){X.global&&!--ah.active&&ah.event.trigger("ajaxStop");s.abort();return false}X.global&&W("ajaxSend",[s,X]);var V=s.onreadystatechange=function(bb){if(!s||s.readyState===0||bb==="abort"){A||Y();A=true;if(s){s.onreadystatechange=ah.noop}}else{if(!A&&s&&(s.readyState===4||bb==="timeout")){A=true;s.onreadystatechange=ah.noop;R=bb==="timeout"?"timeout":!ah.httpSuccess(s)?"error":X.ifModified&&ah.httpNotModified(s,X.url)?"notmodified":"success";var bl;if(R==="success"){try{K=ah.httpData(s,X.dataType,X)}catch(ba){R="parsererror";bl=ba}}if(R==="success"||R==="notmodified"){Q||Z()}else{ah.handleError(X,s,R,bl)}Y();bb==="timeout"&&s.abort();if(X.async){s=null}}}};try{var T=s.abort;s.abort=function(){s&&T.call(s);V("abort")}}catch(O){}X.async&&X.timeout>0&&setTimeout(function(){s&&!A&&V("timeout")},X.timeout);try{s.send(L==="POST"||L==="PUT"||L==="DELETE"?X.data:null)}catch(N){ah.handleError(X,s,null,N);Y()}X.async||V();return s}},handleError:function(s,c,A,w){if(s.error){s.error.call(s.context||s,c,A,w)}if(s.global){(s.context?ah(s.context):ah.event).trigger("ajaxError",[c,s,w])}},active:0,httpSuccess:function(s){try{return !s.status&&location.protocol==="file:"||s.status>=200&&s.status<300||s.status===304||s.status===1223||s.status===0}catch(c){}return false},httpNotModified:function(s,c){var A=s.getResponseHeader("Last-Modified"),w=s.getResponseHeader("Etag");if(A){ah.lastModified[c]=A}if(w){ah.etag[c]=w}return s.status===304||s.status===0},httpData:function(s,c,F){var w=s.getResponseHeader("content-type")||"",A=c==="xml"||!c&&w.indexOf("xml")>=0;s=A?s.responseXML:s.responseText;A&&s.documentElement.nodeName==="parsererror"&&ah.error("parsererror");if(F&&F.dataFilter){s=F.dataFilter(s,c)}if(typeof s==="string"){if(c==="json"||!c&&w.indexOf("json")>=0){s=ah.parseJSON(s)}else{if(c==="script"||!c&&w.indexOf("javascript")>=0){ah.globalEval(s)}}}return s},param:function(s,c){function G(J,K){if(ah.isArray(K)){ah.each(K,function(L,N){c||/\[\]$/.test(J)?A(J,N):G(J+"["+(typeof N==="object"||ah.isArray(N)?L:"")+"]",N)})}else{!c&&K!=null&&typeof K==="object"?ah.each(K,function(L,N){G(J+"["+L+"]",N)}):A(J,K)}}function A(J,K){K=ah.isFunction(K)?K():K;F[F.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var F=[];if(c===I){c=ah.ajaxSettings.traditional}if(ah.isArray(s)||s.jquery){ah.each(s,function(){A(this.name,this.value)})}else{for(var w in s){G(w,s[w])}}return F.join("&").replace(a5,"+")}});var bg={},bc=/toggle|show|hide/,aX=/^([+-]=)?([\d+-.]+)(.*)$/,aq,D=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ah.fn.extend({show:function(s,c){if(s||s===0){return this.animate(aC("show",3),s,c)}else{s=0;for(c=this.length;s<c;s++){var F=ah.data(this[s],"olddisplay");this[s].style.display=F||"";if(ah.css(this[s],"display")==="none"){F=this[s].nodeName;var w;if(bg[F]){w=bg[F]}else{var A=ah("<"+F+" />").appendTo("body");w=A.css("display");if(w==="none"){w="block"}A.remove();bg[F]=w}ah.data(this[s],"olddisplay",w)}}s=0;for(c=this.length;s<c;s++){this[s].style.display=ah.data(this[s],"olddisplay")||""}return this}},hide:function(s,c){if(s||s===0){return this.animate(aC("hide",3),s,c)}else{s=0;for(c=this.length;s<c;s++){var w=ah.data(this[s],"olddisplay");!w&&w!=="none"&&ah.data(this[s],"olddisplay",ah.css(this[s],"display"))}s=0;for(c=this.length;s<c;s++){this[s].style.display="none"}return this}},_toggle:ah.fn.toggle,toggle:function(s,c){var w=typeof s==="boolean";if(ah.isFunction(s)&&ah.isFunction(c)){this._toggle.apply(this,arguments)}else{s==null||w?this.each(function(){var A=w?s:ah(this).is(":hidden");ah(this)[A?"show":"hide"]()}):this.animate(aC("toggle",3),s,c)}return this},fadeTo:function(s,c,w){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},s,w)},animate:function(s,c,F,w){var A=ah.speed(c,F,w);if(ah.isEmptyObject(s)){return this.each(A.complete)}return this[A.queue===false?"each":"queue"](function(){var J=ah.extend({},A),K,L=this.nodeType===1&&ah(this).is(":hidden"),G=this;for(K in s){var N=K.replace(ad,v);if(K!==N){s[N]=s[K];delete s[K];K=N}if(s[K]==="hide"&&L||s[K]==="show"&&!L){return J.complete.call(this)}if((K==="height"||K==="width")&&this.style){J.display=ah.css(this,"display");J.overflow=this.style.overflow}if(ah.isArray(s[K])){(J.specialEasing=J.specialEasing||{})[K]=s[K][1];s[K]=s[K][0]}}if(J.overflow!=null){this.style.overflow="hidden"}J.curAnim=ah.extend({},s);ah.each(s,function(P,O){var T=new ah.fx(G,J,P);if(bc.test(O)){T[O==="toggle"?L?"show":"hide":O](s)}else{var R=aX.exec(O),V=T.cur(true)||0;if(R){O=parseFloat(R[2]);var Q=R[3]||"px";if(Q!=="px"){G.style[P]=(O||1)+Q;V=(O||1)/T.cur(true)*V;G.style[P]=V+Q}if(R[1]){O=(R[1]==="-="?-1:1)*O+V}T.custom(V,O,Q)}else{T.custom(V,O,"")}}});return true})},stop:function(s,c){var w=ah.timers;s&&this.queue([]);this.each(function(){for(var A=w.length-1;A>=0;A--){if(w[A].elem===this){c&&w[A](true);w.splice(A,1)}}});c||this.dequeue();return this}});ah.each({slideDown:aC("show",1),slideUp:aC("hide",1),slideToggle:aC("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(s,c){ah.fn[s]=function(A,w){return this.animate(c,A,w)}});ah.extend({speed:function(s,c,A){var w=s&&typeof s==="object"?s:{complete:A||!A&&c||ah.isFunction(s)&&s,duration:s,easing:A&&c||c&&!ah.isFunction(c)&&c};w.duration=ah.fx.off?0:typeof w.duration==="number"?w.duration:ah.fx.speeds[w.duration]||ah.fx.speeds._default;w.old=w.complete;w.complete=function(){w.queue!==false&&ah(this).dequeue();ah.isFunction(w.old)&&w.old.call(this)};return w},easing:{linear:function(s,c,A,w){return A+w*s},swing:function(s,c,A,w){return(-Math.cos(s*Math.PI)/2+0.5)*w+A}},timers:[],fx:function(s,c,w){this.options=c;this.elem=s;this.prop=w;if(!c.orig){c.orig={}}}});ah.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ah.fx.step[this.prop]||ah.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(c=parseFloat(ah.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ah.curCSS(this.elem,this.prop))||0},custom:function(s,c,F){function w(G){return A.step(G)}this.startTime=aF();this.start=s;this.end=c;this.unit=F||this.unit||"px";this.now=this.start;this.pos=this.state=0;var A=this;w.elem=this.elem;if(w()&&ah.timers.push(w)&&!aq){aq=setInterval(ah.fx.tick,13)}},show:function(){this.options.orig[this.prop]=ah.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ah(this.elem).show()},hide:function(){this.options.orig[this.prop]=ah.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(s){var c=aF(),F=true;if(s||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var w in this.options.curAnim){if(this.options.curAnim[w]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;s=ah.data(this.elem,"olddisplay");this.elem.style.display=s?s:this.options.display;if(ah.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&ah(this.elem).hide();if(this.options.hide||this.options.show){for(var A in this.options.curAnim){ah.style(this.elem,A,this.options.orig[A])}}this.options.complete.call(this.elem)}return false}else{A=c-this.startTime;this.state=A/this.options.duration;s=this.options.easing||(ah.easing.swing?"swing":"linear");this.pos=ah.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||s](this.state,A,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ah.extend(ah.fx,{tick:function(){for(var s=ah.timers,c=0;c<s.length;c++){s[c]()||s.splice(c--,1)}s.length||ah.fx.stop()},stop:function(){clearInterval(aq);aq=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ah.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(ah.expr&&ah.expr.filters){ah.expr.filters.animated=function(c){return ah.grep(ah.timers,function(s){return c===s.elem}).length}}ah.fn.offset="getBoundingClientRect" in M.documentElement?function(s){var c=this[0];if(s){return this.each(function(F){ah.offset.setOffset(this,s,F)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return ah.offset.bodyOffset(c)}var A=c.getBoundingClientRect(),w=c.ownerDocument;c=w.body;w=w.documentElement;return{top:A.top+(self.pageYOffset||ah.support.boxModel&&w.scrollTop||c.scrollTop)-(w.clientTop||c.clientTop||0),left:A.left+(self.pageXOffset||ah.support.boxModel&&w.scrollLeft||c.scrollLeft)-(w.clientLeft||c.clientLeft||0)}}:function(N){var L=this[0];if(N){return this.each(function(O){ah.offset.setOffset(this,N,O)})}if(!L||!L.ownerDocument){return null}if(L===L.ownerDocument.body){return ah.offset.bodyOffset(L)}ah.offset.initialize();var K=L.offsetParent,G=L,J=L.ownerDocument,A,F=J.documentElement,c=J.body;G=(J=J.defaultView)?J.getComputedStyle(L,null):L.currentStyle;for(var w=L.offsetTop,s=L.offsetLeft;(L=L.parentNode)&&L!==c&&L!==F;){if(ah.offset.supportsFixedPosition&&G.position==="fixed"){break}A=J?J.getComputedStyle(L,null):L.currentStyle;w-=L.scrollTop;s-=L.scrollLeft;if(L===K){w+=L.offsetTop;s+=L.offsetLeft;if(ah.offset.doesNotAddBorder&&!(ah.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.nodeName))){w+=parseFloat(A.borderTopWidth)||0;s+=parseFloat(A.borderLeftWidth)||0}G=K;K=L.offsetParent}if(ah.offset.subtractsBorderForOverflowNotVisible&&A.overflow!=="visible"){w+=parseFloat(A.borderTopWidth)||0;s+=parseFloat(A.borderLeftWidth)||0}G=A}if(G.position==="relative"||G.position==="static"){w+=c.offsetTop;s+=c.offsetLeft}if(ah.offset.supportsFixedPosition&&G.position==="fixed"){w+=Math.max(F.scrollTop,c.scrollTop);s+=Math.max(F.scrollLeft,c.scrollLeft)}return{top:w,left:s}};ah.offset={initialize:function(){var s=M.body,c=M.createElement("div"),G,A,F,w=parseFloat(ah.curCSS(s,"marginTop",true))||0;ah.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";s.insertBefore(c,s.firstChild);G=c.firstChild;A=G.firstChild;F=G.nextSibling.firstChild.firstChild;this.doesNotAddBorder=A.offsetTop!==5;this.doesAddBorderForTableAndCells=F.offsetTop===5;A.style.position="fixed";A.style.top="20px";this.supportsFixedPosition=A.offsetTop===20||A.offsetTop===15;A.style.position=A.style.top="";G.style.overflow="hidden";G.style.position="relative";this.subtractsBorderForOverflowNotVisible=A.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=s.offsetTop!==w;s.removeChild(c);ah.offset.initialize=ah.noop},bodyOffset:function(s){var c=s.offsetTop,w=s.offsetLeft;ah.offset.initialize();if(ah.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ah.curCSS(s,"marginTop",true))||0;w+=parseFloat(ah.curCSS(s,"marginLeft",true))||0}return{top:c,left:w}},setOffset:function(s,c,J){if(/static/.test(ah.curCSS(s,"position"))){s.style.position="relative"}var F=ah(s),G=F.offset(),w=parseInt(ah.curCSS(s,"top",true),10)||0,A=parseInt(ah.curCSS(s,"left",true),10)||0;if(ah.isFunction(c)){c=c.call(s,J,G)}J={top:c.top-G.top+w,left:c.left-G.left+A};"using" in c?c.using.call(s,J):F.css(J)}};ah.fn.extend({position:function(){if(!this[0]){return null}var s=this[0],c=this.offsetParent(),A=this.offset(),w=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();A.top-=parseFloat(ah.curCSS(s,"marginTop",true))||0;A.left-=parseFloat(ah.curCSS(s,"marginLeft",true))||0;w.top+=parseFloat(ah.curCSS(c[0],"borderTopWidth",true))||0;w.left+=parseFloat(ah.curCSS(c[0],"borderLeftWidth",true))||0;return{top:A.top-w.top,left:A.left-w.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||M.body;c&&!/^body|html$/i.test(c.nodeName)&&ah.css(c,"position")==="static";){c=c.offsetParent}return c})}});ah.each(["Left","Top"],function(s,c){var w="scroll"+c;ah.fn[w]=function(F){var G=this[0],A;if(!G){return null}if(F!==I){return this.each(function(){if(A=o(this)){A.scrollTo(!s?F:ah(A).scrollLeft(),s?F:ah(A).scrollTop())}else{this[w]=F}})}else{return(A=o(G))?"pageXOffset" in A?A[s?"pageYOffset":"pageXOffset"]:ah.support.boxModel&&A.document.documentElement[w]||A.document.body[w]:G[w]}}});ah.each(["Height","Width"],function(s,c){var w=c.toLowerCase();ah.fn["inner"+c]=function(){return this[0]?ah.css(this[0],w,false,"padding"):null};ah.fn["outer"+c]=function(A){return this[0]?ah.css(this[0],w,false,A?"margin":"border"):null};ah.fn[w]=function(A){var F=this[0];if(!F){return A==null?null:this}if(ah.isFunction(A)){return this.each(function(G){var J=ah(this);J[w](A.call(this,G,J[w]()))})}return"scrollTo" in F&&F.document?F.document.compatMode==="CSS1Compat"&&F.document.documentElement["client"+c]||F.document.body["client"+c]:F.nodeType===9?Math.max(F.documentElement["client"+c],F.body["scroll"+c],F.documentElement["scroll"+c],F.body["offset"+c],F.documentElement["offset"+c]):A===I?ah.css(F,w):this.css(w,typeof A==="string"?A:A+"px")}});aO.jQuery=aO.$=ah})(window);var _;(function(c){var b=function(){},a=b;c.extend(b,{initialize:function(){a.lang=window.__lang||{};a.debug=window.__gettext_debug||0},gettext:function(){if(!arguments||arguments.length<1||!RegExp){return}var f=Array.prototype.slice.call(arguments),h=a.translate(f.shift()),e=function(j){j=parseInt(j);if(f[j-1]!=undefined){return f[j-1]}return""};if(h&&(h.indexOf("[_")+1)){h=h.replace(/\[_([0-9]+)\]/g,function(j,k){return e(k)})}if(h.substr(0,7)=="[quant,"){h=h.substr(7);h=h.substr(0,h.length-1);h=h.replace(/_([0-9]+)/g,function(j,k){return e(k)});var g=h.split(","),i=parseInt(g.shift()),d=((i%10==1&&i%100!=11)?0:(i%10>=2&&i%10<=4&&(i%100<10||i%100>=20))?1:2);return g[d]}return h},translate:function(d){return a.lang[d]!=undefined?a.lang[d]:(a.debug==0?d:"{{{"+d+"}}}")}});b.initialize();_=function(){return b.gettext.apply(this,arguments)}})(jQuery);var SITE_URL=[(location.protocol||"http:"),"//",location.hostname].join("");function isset(a){return(a!=undefined)}function valueInLimits(c,b,a){return Math.max((a!=undefined?Math.min(c,a):c),b)}var BROWSER=(function(){var ua=navigator.userAgent,webkit=/AppleWebKit/.test(ua),safari=webkit&&/Safari\//.test(ua);return{isIE:
/*@cc_on!@*/
false,isIE6:false
/*@cc_on || @_jscript_version < 5.7 @*/
||/msie 6/i.test(navigator.userAgent.toLowerCase()),isIE7:false
/*@cc_on || @_jscript_version == 5.7 @*/
||/msie 7/i.test(navigator.userAgent.toLowerCase()),isOpera:!!(window.opera&&opera.version),isOpera95:!!((window.opera&&opera.version)&&window.scrollX==undefined),isFirefox:(ua.indexOf("Firefox")!=-1),isFirefox3:(ua.indexOf("Firefox/3")!=-1),isGecko:!!(!document.attachEvent&&document.addEventListener),isWebkit:webkit,isSafari:safari&&/Version\//.test(ua),isChrome:safari&&/Chrome\//.test(ua)}})(),OPERATING_SYSTEM=(function(){var a={isLinux:navigator&&navigator.platform&&navigator.platform.search("Linux")>=0,isBsd:navigator&&navigator.platform&&navigator.platform.search(/Bsd/i)>=0};a.isUnix=(a.isLinux||a.isBsd);return a})(),DEVICE={isIpad:navigator.userAgent.match(/iPad/i)!=null,isTouchDevice:(function(){var a=document.createElement("div");a.setAttribute("ongesturestart","return;");return(typeof a.ongesturestart=="function")})()};Function.prototype.inheritsFrom=function(a,b){var c=function(){};c.prototype=a.prototype;this.prototype=new c();this.prototype.constructor=this;this.superClass=a;this.prototype._parent=a.prototype;this.prototype._parentMethod=function(f){var e=Array.prototype.slice.call(arguments);if(is_function(this._parent[f])){var d=e.slice(1);return this._parent[f].call(this,d[0],d[1],d[2])}};this.prototype._superMethod=function(d){if(typeof this._parent[d]=="function"){return this._parent[d].apply(this,Array.prototype.slice.call(arguments,1))}};if(is_object(b)){$.extend(this.prototype,b)}return this};function is_function(a){return(a&&typeof(a)=="function")}function is_object(a){return(typeof(a)=="object")}function is_array(a){return(a!=null&&typeof(a)=="object"&&a.unshift!=undefined)}function is_string(a){return(typeof(a)=="string")}function is_numeric(a){return !isNaN(a)}function is_null(a){return a===null}function is_date(a){return(Object.prototype.toString.call(a)==="[object Date]"&&!isNaN(a.getTime()))}function is_valid_date(a){return(is_date(a)&&a.getDay&&!isNaN(a.getDay()))}function method_exists(b,a){return(b&&is_object(b)&&is_function((b)[a]))}if(window.jQuery){jQuery.fn.showBlock=function(){for(var b=0,a=this.length;b<a;b++){this[b].style.display="block"}return this};jQuery.fn.showInline=function(){for(var b=0,a=this.length;b<a;b++){this[b].style.display="inline"}return this};jQuery.fn.showInlineBlock=function(){for(var b=0,a=this.length;b<a;b++){this[b].style.display="inline-block";if(BROWSER.isIE){this[b].style.zoom=1;this[b].style.display="inline"}}return this};jQuery.fn.hideBlock=function(){for(var b=0,a=this.length;b<a;b++){this[b].style.display="none"}return this};jQuery.fn.searchInClass=function(c){if(this.length&&this[0]){var d=(this.attr("class")||"").split(" ");for(var b=0;b<d.length;b++){var a=d[b];if(a.search(c)==0){return a.substr(c.length)}}return""}return""};jQuery.fn.maxlength=function(f){var b=$(this),e,d;for(var c=0,a=this.length;c<a;c++){b=$(this[c]);b.bind("click keyup change",function(){d=f==undefined?parseInt(b.attr("maxlength")):f;e=b.val();if(e.length>d){b.val(e.substr(0,d))}})}return this}}function getRadioValue(e){var c=null,d;e=$name(e);if(!e){return""}for(var b=0,a=e.length;b<a;b++){d=e[b];if(d.checked){c=d.value;break}}return c}function getFileName(b){b=b.replace(/^\s|\s$/g,"");if(/\.\w+$/.test(b)){var a=b.match(/([^\/\\]+)\.(\w+)$/);if(a){return a[1]+"."+a[2]}else{return"(file)"}}else{var a=b.match(/([^\/\\]+)$/);if(a){return a[1]}else{return"(file)"}}}function selfBlur(){return this.blur()}function parseLineXML(f){if(!f){return false}var h=[],b=f.firstChild,k={};if(!b){return{}}if(b.nodeType!=1){b=b.nextSibling}for(var j=0,d=b.attributes.length;j<d;j++){var g=b.attributes[j];if(g.nodeType!=2){continue}k[g.nodeName]=g.nodeValue}for(var e=0,d=b.childNodes.length;e<d;e++){var c=b.childNodes[e];if(c.nodeType!=1){continue}h[e]={value:c.firstChild?c.firstChild.data:"",data:{}};for(var j=0,d=c.attributes.length;j<d;j++){var g=c.attributes[j];if(g.nodeType!=2){continue}h[e].data[g.nodeName]=g.nodeValue}}return{head:k,body:h}}if(typeof DOMParser=="undefined"){DOMParser=function(){return false};DOMParser.prototype.parseFromString=function(c,e){if(typeof ActiveXObject!="undefined"){var b=new ActiveXObject("MSXML.DomDocument");b.loadXML(c);return b}else{if(typeof XMLHttpRequest!="undefined"){var a=new XMLHttpRequest;a.open("GET","data:"+(e||"application/xml")+";charset=utf-8,"+encodeURIComponent(c),false);if(a.overrideMimeType){a.overrideMimeType(e)}a.send(null);return a.responseXML}}return false}}function moveCaretToStart(b){if(b.createTextRange){var a=b.createTextRange();a.collapse(true);a.select()}else{if(b.selectionStart){b.setSelectionRange(0,0);b.focus()}}}function moveCaretToEnd(a){setCaretPosition(a,$value(a).length)}function getCaretPosition(c){c=$id(c);var b=0;if(document.selection){c.focus();var a=document.selection.createRange();a.moveStart("character",-$value(c).length);b=a.text.length}else{if(c.selectionStart||c.selectionStart=="0"){b=c.selectionStart}}return b}function setCaretPosition(c,b){c=$id(c);if(c!=null){if(c.createTextRange){var a=c.createTextRange();a.move("character",b);a.select()}else{if(c.selectionStart){c.setSelectionRange(b,b);c.focus();triggerKeyPress(c,0,32);triggerKeyPress(c,8,0)}else{c.focus()}}}}function setSelection(c,d,a){c=$id(c);if(c!=null){if(c.createTextRange){var b=c.createTextRange();b.moveStart("character",d);b.moveEnd("character",a);b.select()}else{if(c.selectionStart){c.setSelectionRange(d,a);c.focus()}else{c.focus()}}}}function triggerKeyPress(e,c,b){e=$id(e);var a;if(BROWSER.isOpera){a=document.createEvent("Events");a.initEvent("keyup",true,true);try{a.keyCode=c}catch(d){}try{a.which=b}catch(d){}}else{a=document.createEvent("KeyboardEvent");if(typeof a.initKeyboardEvent=="function"){a.initKeyboardEvent("keypress",true,true,null,false,false,false,false,c,b)}else{a.initKeyEvent("keypress",true,true,null,false,false,false,false,c,b)}}e.dispatchEvent(a)}function getCaretPos(a){a=$id(a);a.focus();if(a.selectionStart){return a.selectionStart}else{if(document.selection){return getCaretPosition(a)}}return 0}function selectNode(c){c=$id(c);if(!c){return}var b,a,e,d;if((e=c.ownerDocument)&&(d=e.defaultView)&&typeof d.getSelection!="undefined"&&typeof e.createRange!="undefined"&&(b=window.getSelection())&&typeof b.removeAllRanges!="undefined"){a=e.createRange();a.selectNodeContents(c);b.removeAllRanges();b.addRange(a)}else{if(document.body&&typeof document.body.createTextRange!="undefined"&&(a=document.body.createTextRange())){a.moveToElementText(c);a.select()}}}function $id(b){var a;if(!b){return false}a=null;if(typeof(b)!="object"){if(document.getElementById(b)){a=document.getElementById(b)}}else{if(b.length!=undefined&&b.slideDown!=undefined){a=b[0]}else{a=b}}return a}function $name(b){if(!b){return false}var a=[];if(typeof(b)!="object"){a=document.getElementsByName(b)}if(a.length!=0){return a}else{return null}}function $value(a,b){a=$id(a);if(!a){return""}if(isset(b)){a.value=is_null(b)?"":b}return a.value||""}function $displaying(a){return !!((a=$id(a))&&a.offsetHeight)}function setChild(e,b,f,a,c,g){if(!e&&!b){return false}var d=$id(b);if(e&&!d&&a){e=$id(e);d=document.createElement(a);d=e.appendChild(d);if(b){d.id=b}}if(!d){return false}if(f){d.className=f}if(c){d.innerHTML=c}if(g){d=concatObjects(d,g)}return d}function unsetChild(a){a=$id(a);if(a&&a.parentNode){return a.parentNode.removeChild(a)}return false}function searchInClass(c,d){c=$id(c);if(c&&c.className){var e=c.className.split(" ");for(var b=0;b<e.length;b++){var a=e[b];if(a.search(d)==0){return a.substr(d.length)}}}return undefined}function setChildExt(e){var d={parent:document.body,setType:"append",tag:"DIV",id:"",baseDocument:document};if(is_string(e)){e={className:e}}e=concatObjects(e,d);var c=$id(e.id);if(c){return c}var b=$id(e.parent);if(e.name&&BROWSER.isIE){c=e.baseDocument.createElement("<"+e.tag+' name="'+e.name+'">')}else{c=e.baseDocument.createElement(e.tag);if(e.name){c.name=e.name}}if(!c){return false}if(e.id){c.id=e.id}if(e.type){c.type=e.type}if(isset(e.value)){c.value=e.value}if(e.className){c.className=e.className}if(e.content){c.innerHTML=e.content}if(isset(e.title)){c.title=e.title}if(e.params&&is_object(e.params)){for(var a in e.params){c[a]=e.params[a]}}if(e.style&&is_object(e.style)){setStyle(c,e.style)}if(e.onclick&&is_function(e.onclick)){c.onclick=e.onclick}if(e.onfocus&&is_function(e.onfocus)){c.onfocus=e.onfocus}if(e.onmouseover&&is_function(e.onmouseover)){c.onmouseover=e.onmouseover}if(e.onmouseout&&is_function(e.onmouseout)){c.onmouseout=e.onmouseout}switch(e.setType){case"insertBefore":c=b.parentNode.insertBefore(c,b);break;case"append":c=b.appendChild(c);break}if(e.child&&is_object(e.child)){setChildExt(concatObjects(e.child,{parent:c}))}if(e.children&&is_object(e.children)){for(var a in e.children){var f=e.children[a];if(!is_object(f)){continue}setChildExt(concatObjects(f,{parent:c}))}}if(isset(e.checked)){c.checked=e.checked}if(isset(e.selected)){c.selected=e.selected}if(isset(e.disabled)){c.disabled=e.disabled}if(e.handlerFunction&&is_function(e.handlerFunction)){e.handlerFunction(c)}return c}function setChildren(d,c){d=$id(d);if(!d){d=document.body}if(!is_object(c)){return false}for(var b=0;b<c.length;b++){var a=c[b];if(is_string(a)){a={className:a}}d=setChildExt(rConcatObjects(a,{parent:d}))}return d}function setStyle(b,a){b=$id(b);if(!b||!a||!b.style||typeof a!="object"){return false}var g=["top","left","width","height"];for(var d in a){var c=a[d];try{if(typeof c!="object"&&typeof c!="function"){b.style[d]=c+((in_array(g,d)&&!isNaN(c))?"px":"")}}catch(f){document.writeln("error "+b+": "+d+"="+c)}}return true}function $where(d){var a=$id(d),c=0,b=0;if(!a){return false}while(d){c+=d.offsetLeft;b+=d.offsetTop;d=d.offsetParent}return{left:c,top:b,right:c+a.offsetWidth,bottom:b+a.offsetHeight}}function getWhereIs(a){return $where(a)}function getWhereIsEvent(a){if(a.pageX){return{left:a.pageX,top:a.pageY}}return{left:a.clientX+document.body.parentElement.scrollLeft,top:a.clientY+document.body.parentElement.scrollTop}}function placeUnderCursor(b,a,c){b=$id(b);if(!b){return false}b.style.position="absolute";b.style.left=(a-b.offsetWidth+10)+"px";b.style.top=(c-5)+"px"}function setPosition(a,b){a=$id(a);if(!a){return false}if(b.left!=null){a.style.left=b.left+"px"}if(b.top!=null){a.style.top=b.top+"px"}return false}function putInScreenCenter(a,i,b,c){a=$id(a);if(!a){return false}a.style.position="absolute";var d=(window.opera)?window.innerHeight:document.documentElement.clientHeight,g=(document.all)?document.documentElement.scrollTop:window.pageYOffset,e=Math.max(0,Math.round(g+d/2-a.clientHeight/2)+(b||0)),h=document.documentElement.offsetWidth,f=i?Math.round(h/2-a.offsetWidth/2):null;if(document.all){e-=30}setPosition(a,{left:f,top:e})}function toggleClass(d,e,c){c=c?c:["hidden","showed"];d=$id(d);if(!d){return false}var a="/"+c[0]+"/",f=(e==null)?((d.className.search(c[0])>-1)?1:0):e,b=(f==0)?1:0;if(d.className!=null&&d.className.search(c[b])>-1){d.className=d.className.replace(c[b],c[f])}else{if(d.className!=null&&d.className.search(c[f])<0){d.className+=" "+c[f]}}return f}function getScrollBarWidth(){var c=document.createElement("p"),b,a;c.style.width="100%";c.style.height="200px";var d=document.createElement("div");d.style.position="absolute";d.style.top="0px";d.style.left="0px";d.style.visibility="hidden";d.style.width="200px";d.style.height="150px";d.style.overflow="hidden";d.appendChild(c);document.body.appendChild(d);b=c.offsetWidth;d.style.overflow="scroll";a=c.offsetWidth;if(b==a){a=d.clientWidth}document.body.removeChild(d);return(b-a)}var $drag;(function(){var d={};function b(i,k,f,h){d.This=$id(k);d.Target=$id(f);if(!d.This||!d.Target){throw new Error("error dragging "+d.Target);return false}d.$target=$(d.Target);var j=d.$target.offset();d.StartLeft=parseInt(d.$target.css("left"));d.StartTop=parseInt(d.$target.css("top"));if(isNaN(d.StartLeft)){d.StartLeft=j.left}if(isNaN(d.StartTop)){d.StartTop=j.top}var g={minLeft:1,minTop:1};d.settings=concatObjects(h,g);if(d.settings.onbegin){d.settings.onbegin(d.Target,i,d.settings)}if(!isNaN(d.settings.maxXDelta)){d.settings.minLeft=d.StartLeft-d.settings.maxXDelta;d.settings.maxLeft=d.StartLeft+d.settings.maxXDelta}if(isset(d.settings.maxYDelta)){d.settings.minTop=d.StartTop-d.settings.maxYDelta;d.settings.maxTop=d.StartTop+d.settings.maxYDelta}var e=new Object();if(BROWSER.isIE||BROWSER.isOpera95){e.x=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;e.y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop}else{if(BROWSER.isGecko||BROWSER.isOpera){e.x=i.clientX+window.scrollX;e.y=i.clientY+window.scrollY}}d.cursorStartX=e.x;d.cursorStartY=e.y;d.Target.style.position="absolute";if(BROWSER.isIE){document.attachEvent("onmousemove",a);document.attachEvent("onmouseup",c);window.event.cancelBubble=true;window.event.returnValue=false}else{if(BROWSER.isGecko||BROWSER.isOpera){document.addEventListener("mousemove",a,true);document.addEventListener("mouseup",c,true);i.preventDefault()}}}function a(f){var h,g,e,i;if(BROWSER.isIE||BROWSER.isOpera95){e=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;i=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop}else{if(BROWSER.isGecko||BROWSER.isOpera){e=f.clientX+window.scrollX;i=f.clientY+window.scrollY}}h=d.StartLeft+e-d.cursorStartX;h=valueInLimits(h,d.settings.minLeft,d.settings.maxLeft);d.Target.style.left=h+"px";g=d.StartTop+i-d.cursorStartY;g=valueInLimits(g,d.settings.minTop,d.settings.maxTop);d.Target.style.top=g+"px";if(BROWSER.isIE){window.event.cancelBubble=true;window.event.returnValue=false}if(BROWSER.isGecko||BROWSER.isOpera95){f.preventDefault()}if(d.settings.onmove){d.settings.onmove(d.Target,h,g)}}function c(e){if(BROWSER.isIE){document.detachEvent("onmousemove",a);document.detachEvent("onmouseup",c)}if(BROWSER.isGecko||BROWSER.isOpera){document.removeEventListener("mousemove",a,true);document.removeEventListener("mouseup",c,true)}if(d.settings.oncomplete&&is_function(d.settings.oncomplete)){d.settings.oncomplete(d.Target)}}$drag=function(g,h,e,f){b(g,h,e,f)};if(window.jQuery){(function(i){var e="dragging-over",h="_dragTrackingOffset",g=function(j,m,l){var k;j.area&&i.each(j.area,function(){var o=i(this),q=o.data(h)||o.offset(),p={left:0,top:0,leftFactor:0,topFactor:0},n=(m>=q.left&&l>=q.top&&m<=(q.right||(q.right=q.left+o.outerWidth()))&&l<=(q.bottom||(q.bottom=q.top+o.outerHeight())));if(n){p={left:m-q.left,top:l-q.top};p.leftFactor=p.left/(q.right-q.left);p.topFactor=p.top/(q.bottom-q.top)}o.toggleClass(e,n);if(k!==false){k=n}j.handler&&j.handler(o,n,p)});return k},f=function(j){j.area&&i.each(j.area,function(){i(this).data(h,null).removeClass(e)})};i.fn.allowDrag=function(u){var B={useClone:false,trackAreas:[],useMoveCursor:true},m,r,k,z,v,n,q,o,p,s,j,A=[],w,t={setTrackAreas:function(E,C){!C&&(A=[]);for(var F=0,D=E.length;F<D;F++){if(i.isFunction(E[F])){A.push({area:w,handler:E[F]});w=undefined}else{if(!w){w=i(E[F])}else{w=w.add(i(E[F]))}}}if(w){A.push({area:w})}}};u&&i.extend(B,u);if(B.trackAreas.length){t.setTrackAreas(B.trackAreas)}if(typeof(B.dragger)=="object"){k=i(B.dragger)}else{if(typeof(B.dragger)=="string"){z=B.dragger}}i.data(this,"_dragControl",t);for(var y=0,x=this.length;y<x;y++){m=i(this[y]);if(z){k=i(z,m)}else{k=is_object(B.dragger)?i(B.dragger):m}B.useMoveCursor&&k.css({cursor:"move"});if(B.useClone){n=B.oncomplete;v=B.onmove;k.mousedown(function(l){o=m.width();p=m.height();r=m.clone().addClass("dragging-clone").css({position:"absolute",zIndex:10010}).css(m.offset()).width(o).height(p).appendTo(document.body);B.oncomplete=function(){i(document.body).removeClass("dragging-process");q=r.offset();r.remove();n&&n(m,q);if(A.length){for(var D=0,C=A.length;D<C;D++){f(A[D])}}};B.onmove=function(G,F,E){s=F+o;j=E+p;if(A.length){for(var D=0,C=A.length;D<C;D++){g(A[D],(F+s)*0.5,E)}}v&&v.apply(this,arguments)};i(document.body).addClass("dragging-process");b(l,m,r,B)})}else{m.mousedown(function(l){b(l,k||m,m,B)})}}return this}})(jQuery)}})();function in_array(a,c){var b=0;for(var d in a){if(c==a[d]){b++}}return b}function setArray(c){if(is_array(c)){return c}else{var b=[];isset(c)&&b.push(c);return b}}function array_rearrange(b,a,e){var d=b[a];b.splice(a,1);b.splice(e,0,d);return b}function array_rand(a){var b=a.length;var c=(Math.round(Math.random()*(b-1))).between(0,b-1);return a[c]}function storage(c,b,a){if(b!=undefined){if(typeof b=="object"){$.extend(c,b)}else{if(a==undefined){return c[b]}else{c[b]=a}}}return c}function _prop(e,f){if(e&&f&&(f in e)){return e[f]}var d=f.split("."),c;if(!e||!f){return undefined}if(d.length){c=e;for(var b=0,a=d.length;b<a;b++){if(c==undefined){return undefined}c=c[d[b]]}return c}else{return e[f]}}function concatObjects(e,d,c){var b={};for(var a in e){b[a]=e[a]}for(var a in d){if(c&&is_object(d[a])&&is_object(b[a])){b[a]=concatObjects(b[a],d[a])}else{if(!isset(b[a])){b[a]=d[a]}}}return b}function rConcatObjects(b,a){return concatObjects(b,a,"recursive")}function duplicateObject(c){if(is_date(c)){return c}var b=is_array(c)?[]:{};for(var a in c){if(is_object(c[a])){b[a]=duplicateObject(c[a])}else{b[a]=c[a]}}return b}function removeFromObject(c,b){var d={};for(var a in c){if(a!=b){d[a]=c[a]}}return d}function testObject(f,m,a,b){var d="",j=m?"<br/>":"\n";if(!b){b=0}var h="";var l=256;for(var e=0;e<b;e++){h+="  "}if(b>256){return"..too much iterations"}if(is_object(f)){var g=0;for(var c in f){if(++g>l){return"..too much iterations"}var n=f[c];var k=typeof(n);if(n==null){k="Null"}else{if(n.pop){k="Array"}else{if(n.charAt||n==""){k="String"}else{if(!isNaN(Number(n))){k="Number"}}}}if(is_function(n)){continue}d+=j+h+c+"["+k+"]: ";if(is_object(n)){d+=testObject(n,false,true,b+1)}else{d+=n}}}else{d+=h+f}if(m){document.write("<pre>"+d+"</pre>")}else{if(!a){alert(d)}}return d}function dumpObject(f,d,c){var g="",a=d?"<br/>":"\n";for(var e in f){var b=f[e];g+=e+"=>"+b+a}if(d){document.write(g)}else{if(!c){alert(g)}}return g}function getKeyPressed(f){var c=new Array();c[9]="TAB";c[13]="ENTER";c[27]="ESC";c[35]="END";c[36]="HOME";c[37]="ARROWLEFT";c[38]="ARROWUP";c[39]="ARROWRIGHT";c[40]="ARROWDOWN";var a=-1,d;if(window.event){a=event.keyCode;d=event.srcElement}else{a=f.which;d=f.target}var b=(c[a])?c[a]:a;return b}function blockScreen(b){if($id("blockscreen")){return false}var a=setChildExt({id:"blockscreen",className:b||""});resizeBlockScreen()}function unblockScreen(){if(!$id("blockscreen")){return false}unsetChild("blockscreen")}function resizeBlockScreen(){var a=$id("blockscreen");if(!a){return false}var b=$id("body-wrap")?$id("body-wrap").clientHeight:$id("page-body-wrap")?$id("page-body-wrap").clientHeight:0;var c={height:Math.max(document.documentElement.clientHeight,document.body.clientHeight,b),width:Math.max(document.documentElement.clientWidth,document.body.clientWidth)};setStyle(a,c);return true}if(window.jQuery){jQuery(window).resize(resizeBlockScreen)}function paramString(c,d){if(typeof c!="object"){return c}var b=[];for(var a in c){b.push(a+"="+(d?encodeURIComponent(c[a]):c[a]))}return b.join("&amp;")}function parseParamString(e){var d={};var c=e.split("?").pop().split("&");for(var b=0;b<c.length;b++){var a=c[b].split("=");d[a[0]]=a[1]}return d}function buildFlashExt(d){var c={version:7,width:"100%",height:"100%",name:"flashmovie",wmode:"transparent",isWrite:false},a,b;d=concatObjects(d,c);a=d.params?paramString(d.params,true):"";if(!FLASH_CHECKING.DetectFlashVer(d.version)){if(typeof d.noFlash=="function"){d.noFlash()}else{if(d.noFlash!=undefined){b=d.noFlash.toString()}}}else{b=BROWSER.isIE?["<","object ",'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ','width="',d.width,'" ','height="',d.height,'" ','id="',d.name,'">',"<",'param name="movie" value="',d.src,'">',"<",'param name="wmode" value="',d.wmode,'" />',"<",'param name="quality" value="high">',"<",'param name="allowScriptAccess" value="always" />','<param name="menu" value="false" />','<param name="FlashVars" value="',a,'" />',"<","/object>"].join(""):["<","embed ",'src="',d.src,'" ','quality="high" ','wmode="',d.wmode,'" ','width="',d.width,'" ','height="',d.height,'" ','name="',d.name,'"  ','id="',d.name,'" ','menu="false" ','allowscriptaccess="always" ','type="application/x-shockwave-flash" ','flashvars="',a,'"/>'].join("")}d.isWrite&&document.write(b);return b}function $flash(a){return buildFlashExt(a)}function $flashMovie(a){return BROWSER.isIE?window[a]:document.getElementById(a)}var FLASH_CHECKING={isIE:(navigator.appVersion.indexOf("MSIE")!=-1)?true:false,isWin:(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false,isOpera:(navigator.userAgent.indexOf("Opera")!=-1)?true:false,ControlVersion:function(){var a;var b;var c;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(c){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(c){a=-1}}return a},GetSwfVer:function(){var g=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var f=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var a=navigator.plugins["Shockwave Flash"+f].description;var e=a.split(" ");var c=e[2].split(".");var h=c[0];var b=c[1];var d=e[3];if(d==""){d=e[4]}if(d[0]=="d"){d=d.substring(1)}else{if(d[0]=="r"){d=d.substring(1);if(d.indexOf("d")>0){d=d.substring(0,d.indexOf("d"))}}}var g=h+"."+b+"."+d}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){g=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){g=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){g=2}else{if(this.isIE&&this.isWin&&!this.isOpera){g=this.ControlVersion()}}}}}return g},DetectFlashVer:function(f,d,c){versionStr=this.GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(this.isIE&&this.isWin&&!this.isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var e=versionArray[0];var a=versionArray[1];var b=versionArray[2];if(e>=parseFloat(f)){return true}else{if(e==parseFloat(f)){if(a>parseFloat(d)){return true}else{if(a==parseFloat(d)){if(b>=parseFloat(c)){return true}}}}}return false}}}};function popUp(b){var a={url:"",width:350,height:600,top:200,left:200,menubar:"no",directories:"no",location:"no",resizable:"yes",scrollbars:"no",toolbar:"no"};b=concatObjects(b,a);if(b.width){b.width+=20}if(b.height){b.height+=20}if(b.content){b.url=""}POPUP_WIN=window.open(b.url,"POPUP_WINDOW",(function(){var c=[];for(var d in b){if(d!="url"&&b[d]){c.push(d+"="+b[d])}}return c.join(", ")})());if(b.content){if(!POPUP_WIN.document.body){b.content="<body>"+b.content+"</body>"}POPUP_WIN.document.open();POPUP_WIN.document.write("<head><title>"+(b.title||"")+'</title><style type="text/css">A{cursor:pointer;}</style></head>'+b.content);POPUP_WIN.document.title=(b.title||"");POPUP_WIN.document.close()}return false}function _tmpl(tmpl,ns,actions){if(!tmpl){return""}var fn=function(w,g){g=g.split("|");var cnt=_prop(ns,g[0]);for(var i=1,l=g.length;i<l;i++){cnt=eval(g[i])(cnt)}return isset(cnt)?cnt:""};return tmpl.replace(/\%\(([A-Za-z0-9_|.]+)\)/g,fn)}function trimStr(b,a){a=!a?" \\s\\xA0":a.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,"$1");return b?b.replace(new RegExp("^["+a+"]+|["+a+"]+$","g"),""):""}function NtoBR(b){var a=new RegExp(/\r?\n/i);while(b.search(a)>=0){b=b.replace(a,"<br>")}return b}function BRtoN(a){a=a.replace(/<br\s*\/?>/i,"\n");return a}function str_quote(a,b){return a?(b||"'")+a+(b||"'"):""}function wrapBreakWord(b,a){if(!a){a=15}if(BROWSER.isIE){return b}b=b.replace(new RegExp("(.{"+a+"})","ig"),'<span class="wrap-quantum">$1</span>');return b}function parseTemplate(c,g){var f=new RegExp(/\{\%\w+\%\}/);var b=0;while(c.search(f)>0&&++b<10){var h=c.search(f)+2;var a=h;var e;var d="";do{d+=c.charAt(a++)}while(c.charAt(a)!="%"&&c.charAt(a+1)!="}"&&a<(c.length-1));c=c.substr(0,h-2)+(g[d]||"")+c.substr(a+2)}return c}function getDomainName(a){if(!a){return""}if(a.search(/http:\/\//i)==0){a=a.slice(7)}else{if(a.search(/https:\/\//i)==0){a=a.slice(8)}}if(a.search(/www\./i)==0){a=a.slice(4)}if(a.substr(-1)=="/"){a=a.slice(0,-1)}return a}function getHost(c){var e,b,a;if(c){e=c.toString().split("://");return e.shift()+"://"+e.join("://").split("/").shift()}}function removeUrlSchema(a){return a?a.replace(/^(?:https?:\/\/)/i,""):""}function isClickableUrl(a){return !!/^https?:\/\/|ftp:\/\//i.test(a)}function makeUrl(a){return(/https?:\/\//i.test(a)?"":"http://")+a}function parseUrl(b,c){if(typeof b=="undefined"){b=location.href}var d="^(([^:/\\?#]+):)?(//(([^:/\\?#]*)(?::([^/\\?#]*))?))?([^\\?#]*)(\\?([^#]*))?(#(.*))?$",f=new RegExp(d),e=f.exec(b),a={href:e[0]||"",protocol:e[1]||"",host:e[4]||"",hostname:e[5]||"",port:e[6]||"",pathname:e[7]||"/",search:e[8]||"",hash:e[10]||""};return c?a[c]:a}function getHostName(a){return parseUrl(a,"host")}function UrlComposer(d,b){var a={parts:[],query:{},hash:undefined},c={parts:function(){var g=arguments.length;if(g==1&&$.isArray(arguments[0])){for(var f=0,e=arguments[0].length;f<e;f++){c.parts(arguments[0][f])}}else{if(g>1){for(var f=0,e=arguments.length;f<e;f++){c.parts(arguments[f])}}else{if(g==1&&typeof arguments[0]!="undefined"){a.parts.push(arguments[0])}}}return this},query:function(){var g=arguments.length;if(g==2&&!$.isPlainObject(arguments[0])&&!$.isPlainObject(arguments[1])){a.query[arguments[0]]=("boolean"==(typeof arguments[1]).toLowerCase())?+arguments[1]:arguments[1]}else{if(g>=2){for(var f=0,e=arguments.length;f<e;f++){c.query(arguments[f])}}else{if(g==1&&$.isPlainObject(arguments[0])){a.query=$.extend({},a.query,arguments[0])}}}return this},hash:function(e){if(typeof e=="undefined"){a.hash=undefined}else{a.hash=e.toString()}return this},parse:function(g){if(typeof g=="undefined"){g=location.href}var j=parseUrl(g),f,k;c.parts(j.pathname.split("/"));if(j.search){f=j.search.substr(1).split("&");for(var h=0,e=f.length;h<e;h++){k=f[h].split("=");c.query(k[0],k[1])}}if(j.hash){a.hash=j.hash}return this},compose:function(){var f="",e=[];$.each(a.query,function(g){e.push(g+"="+this.toString())});return a.parts.join("/")+(e.length?"?"+e.join("&"):"")+(typeof a.hash!="undefined"?"#"+a.hash:"")},toString:function(){return this.compose()},toObject:function(){return $.extend({},a)}};if(d&&d.length){c.parts(d)}if(b){c.query(b)}return c}function isEmail(b){var a=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i;return b?a.test(b):false}function getNumeralEndingType(a){var c=a%10,b=0;if(c>0&&c<=4){b=c}if(a%100>=11&&a%100<=14){b=0}return b}function getPopped(c,a){if(!a){a="_"}var b=c.split(a);b.pop();return b.join(a)}String.prototype.popped=function(a){if(!a){a="_"}var b=this.split(a);b.pop();return b.join(a)};String.prototype.firstCharUpper=function(){return this.substr(0,1).toUpperCase()+this.substr(1)};String.prototype.isNullDate=function(){return(this=="0000-00-00 00:00:00")};String.prototype.html_entity_decode=function(){return this.replace_multiply([[/\&nbsp\;/," "],[/\&mdash\;/,"—"]])};function htmlspecialchars(a){return a?String(a).htmlspecialchars():""}String.prototype.htmlspecialchars=function(){var a=String(this);a=a.replace(/\&(?:.{6})?/g,function(b,d,c){if(/^\&(nbsp|amp|laquo|raquo|quot);/.test(b)){return b}return"&amp;"+b.substr(1)});a=a.replace_multiply([["<","&lt;"],[">","&gt;"],['"',"&quot;"],["«","&laquo;"],["»","&raquo;"]]);return a};function htmlspecialquotes(a){return a?a.replace_multiply([[/\"/,"&quot;"],[/«/,"&laquo;"],[/»/,"&raquo;"]]):""}function strip_tags(c,b){var a="<.*?>";if(b){a="<\\/?s*(?:"+($.isArray(b)?b.join("|"):b.toString())+")(\\s[^>]+)*>"}return c.toString().replace(new RegExp(a,"g"),"")}function typo(a){if(!a){return""}a=a.toString();a=a.replace(/([\s\,\.\;\?\!\:])([а-яА-ЯёЁ]{1,2})\s/g,"$1$2&nbsp;");a=a.replace(/([\s\,\.\;\?\!\:])(\d+)\s/g,"$1$2&nbsp;");a=a.replace(/([\s\,\.\;\?\!\:])\"([а-яА-ЯёЁ0-9\,\!\:\-\s]+)\"([\s\,\.\;\?\!\:])/g,"$1&laquo;$2&raquo;$3");return a}String.prototype.replace_multiply=function(c){var b=this;for(var a in c){var e=c[a];if(!e||!isset(e[0])||!isset(e[1])){continue}if(e[0] instanceof RegExp){while(b.search(e[0])>=0){b=b.replace(e[0],e[1])}}else{b=b.replace(new RegExp(e[0],"g"),e[1])}}return b};String.prototype.nl2br=function(){return NtoBR(this)};String.prototype.truncate=function(a,e,c){if(isNaN(a)){a=30}if(this.length<=a){return this}var d=this.slice(0,a),b;if(d){if(e&&(b=d.match(/^(.+)[\s\,\.]+.+$/))&&b[1]){d=b[1]}d+=typeof c=="undefined"?"...":c}return d};String.prototype.rmnl=function(){var a=new RegExp(/\r?\n/i);return this.replace_multiply([[/\r?\n/i,""],[/\t/,""]])};String.prototype.dateStr=function(){if(this.isNullDate()){return}var a=new Date();return a.getFromDT(this).getReadable()};String.prototype.dateStrFull=function(){if(this.isNullDate()){return}var a=new Date();return a.getFromDT(this).getReadableFull()};String.prototype.dateReadableSimpleStr=function(){if(!this.length||this.isNullDate()){return}var a=new Date();return a.getFromDT(this).getReadableSimple()};String.prototype.dateGetHoursFromDt=function(){if(this.isNullDate()){return}var a=new Date();return String(a.getFromDT(this).getHours()).setDigits()};String.prototype.dateGetMinutesFromDt=function(){if(this.isNullDate()){return}var a=new Date();return String(a.getFromDT(this).getMinutes()).setDigits()};String.prototype.dateFromDt=function(){if(this.isNullDate()){return}return(new Date()).getFromDT(this)};String.prototype.dateFromTs=function(){if(this.isNullDate()){return}return(new Date()).getFromTimeStamp(this)};String.prototype.dateFromTsStr=function(){return(new Date()).getFromTsStr(this)};String.prototype.isTime=function(){return(this.search(/^\d{1,2}\:\d{1,2}(\:\d{1,2})?$/)>=0)};String.prototype.isDate=function(){return this.match(/^\d{4}\-\d{2}\-\d{2}(\s\d{2}:\d{2}:\d{2})?$/)};String.prototype.parseTime=function(){if(!this.isTime()){return{}}var a=this.split(":");return{h:Number(a[0]),m:Number(a[1]),s:Number(a[2])}};String.prototype.setDigits=function(b){if(isNaN(b)){b=2}var d=this,a="",f="",e=0;if(d.charAt(0)=="-"){a="-";d=d.slice(1)}if(d.length<b){e=b-d.length;for(var c=0;c<e;c++){f+="0"}d=f+d}return a+d};String.prototype.twoDigits=function(){if(this.length<2){return"0"+this}return this};Number.prototype.setDigits=function(a){return(String(this)).setDigits(a)};Number.prototype.between=function(d,c){return(Math.min(Math.max(this,Math.min(d,c)),Math.max(d,c)))};Number.prototype.isBetween=function(d,c){return(this>d&&this<c)};Number.prototype.isBetween_s=function(d,c){return(this>=d&&this<=c)};Number.prototype.format=function(){return String(this).numberFormat()};function outputFormat(a){if(is_numeric(a)){a=Number(a).format()}return a}Number.prototype.roundFloat=function(a){a=(a==undefined?2:a);return Math.round(this*Math.pow(10,a))/Math.pow(10,a)};String.prototype.numberFormat=function(c){var g=c!=undefined?String(Number(this).roundFloat(c)):this,b=g.split("."),e=b.shift(),d=b.shift(),a="",f=[];while(e.length>2){f.unshift(e.substr(e.length-3,e.length));e=e.substr(0,e.length-3)}if(e.length){f.unshift(e)}if(c){d=(function(){var j="";d==undefined&&(d="");if(d.length<c){for(var h=0;h<(c-d.length);h++,j+="0"){}}return d+j})()}return['<span class="nmf"><span class="nmf-g">',f.join('</span><span class="nmf-g">'),"</span>",(d?","+d:""),"</span>"].join("")};function ip2long(a){var b=a.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);return b?b[1]*16777216+b[2]*65536+b[3]*256+b[4]*1:false}function long2ip(b){var a=false;if(!isNaN(b)&&(b>=0||b<=4294967295)){a=Math.floor(b/Math.pow(256,3))+"."+Math.floor((b%Math.pow(256,3))/Math.pow(256,2))+"."+Math.floor(((b%Math.pow(256,3))%Math.pow(256,2))/Math.pow(256,1))+"."+Math.floor((((b%Math.pow(256,3))%Math.pow(256,2))%Math.pow(256,1))/Math.pow(256,0))}return a}function bindec(a){a=(a+"").replace(/[^01]/gi,"");return parseInt(a,2)}function decbin(a){if(a<0){a=4294967295+a+1}return parseInt(a,10).toString(2)}var ColorsConverter={hex2rgb:function(b){var a=new Array();a[0]=b>>16;a[1]=b>>8&255;a[2]=b&255;return a},rgb2hex:function(a){var b=a[0]<<16^a[1]<<8^a[2];return b},hsb2rgb:function(d){var c,k,h,e,g,b,a,j;d[0]%=360;if(d[2]==0){return(new Array(0,0,0))}d[1]/=100;d[2]/=100;d[0]/=60;e=Math.floor(d[0]);g=d[0]-e;b=d[2]*(1-d[1]);a=d[2]*(1-(d[1]*g));j=d[2]*(1-(d[1]*(1-g)));if(e==0){c=d[2];k=j;h=b}else{if(e==1){c=a;k=d[2];h=b}else{if(e==2){c=b;k=d[2];h=j}else{if(e==3){c=b;k=a;h=d[2]}else{if(e==4){c=j;k=b;h=d[2]}else{if(e==5){c=d[2];k=b;h=a}}}}}}c=Math.floor(c*255);k=Math.floor(k*255);h=Math.floor(h*255);return(new Array(c,k,h))},rgb2hsb:function(d){var a,g,e,c,b,h;d[0]/=255;d[1]/=255;d[2]/=255;a=Math.min(Math.min(d[0],d[1]),d[2]);h=Math.max(Math.max(d[0],d[1]),d[2]);if(a==h){return(new Array(undefined,0,h*100))}g=(d[0]==a)?d[1]-d[2]:((d[1]==a)?d[2]-d[0]:d[0]-d[1]);e=(d[0]==a)?3:((d[1]==a)?5:1);c=Math.floor((e-g/(h-a))*60)%360;b=Math.floor(((h-a)/h)*100);h=Math.floor(h*100);return(new Array(c,b,h))},hsb2hex:function(a){var b=this.hsb2rgb(a);return(this.rgb2hex(b))},hex2hsb:function(b){var a=this.hex2rgb(b);return(this.rgb2hsb(a))}};var MONTHS=[_("January (gn)"),_("February (gn)"),_("March (gn)"),_("April (gn)"),_("May (gn)"),_("June (gn)"),_("July (gn)"),_("August (gn)"),_("September (gn)"),_("October (gn)"),_("November (gn)"),_("December (gn)")],MONTHS_SHORT=[_("Jan"),_("Feb"),_("Mar"),_("Apr"),_("May (sh)"),_("Jun"),_("Jul"),_("Aug"),_("Sep"),_("Oct"),_("Nov"),_("Dec")],MONTHS_NOMINATIVE=[_("January"),_("February"),_("March"),_("April"),_("May"),_("June"),_("July"),_("August"),_("September"),_("October"),_("November"),_("December")],MONTHS_LENGTHS=[31,((new Date).getFullYear()%4?28:29),31,30,31,30,31,31,30,31,30,31],WEEKDAYS=[_("Mo"),_("Tu"),_("We"),_("Th"),_("Fr"),_("Sa"),_("Su")],WEEKDAYS_FULL=[_("Monday"),_("Tuesday"),_("Wednesday"),_("Thursday"),_("Friday"),_("Saturday"),_("Sunday")];function getMonthLength(a,b){return a==1?isLeapYear(b)?29:28:MONTHS_LENGTHS[a]}function isLeapYear(a){if(!a){a=(new Date()).getFullYear()}return(new Date(a,1,29)).getMonth()==1?true:false}Date.prototype.getReadable=function(){return this.getDate()+"&nbsp;"+MONTHS[this.getMonth()]+"&nbsp;"+this.getFullYear()};Date.prototype.getReadableShort=function(){return this.getDate()+"&nbsp;"+MONTHS_SHORT[this.getMonth()]};Date.prototype.getMonthReadable=function(){return MONTHS_NOMINATIVE[this.getMonth()]+"&nbsp;"+this.getFullYear()};Date.prototype.getWeekReadable=function(){var a=this.duplicate().getWeek(),b=a.begin.getFullYear()==a.end.getFullYear()?"":" "+a.begin.getFullYear();return[a.begin.getReadableShort(),b,"&nbsp;&mdash; ",a.end.getReadableShort()," ",a.end.getFullYear()].join("")};Date.prototype.getWeekReadableShort=function(){var a=this.duplicate().getWeek();return[a.begin.format("d"+(a.begin.getMonth()==a.end.getMonth()?"":" M")),"&nbsp;&mdash; ",a.end.format("d M")].join("")};Date.prototype.getHourReadable=function(){return[this.duplicate().offset({hours:-1}).format("H:i"),"&nbsp;&mdash; ",this.format("H:i")].join("")};Date.prototype.getReadableFull=function(){return _("-dateFullStr",this.getDate(),MONTHS[this.getMonth()],this.getFullYear(),this.getHours().setDigits(),this.getMinutes().setDigits())};Date.prototype.getReadableSimple=function(){var c=this.getDate().toString(),a=(this.getMonth()+1).toString(),e=this.getFullYear().toString();if(c.length<2){c="0"+c}if(a.length<2){a="0"+a}var b=c+"."+a+"."+e;return b};Date.prototype.getPeriodReadable=function(a){var b=a.greater(this)?[this,a]:[a,this];sameYear=b[0].getFullYear()==b[1].getFullYear()?" "+b[0].getFullYear():"",sameMonth=sameYear&&b[0].getMonth()==b[1].getMonth()?" "+b[0].format("F"):"";return sameMonth?[b[0].format("j"),"&nbsp;&mdash; ",b[1].format("j M Y")].join(""):[b[0].format("j F"),(sameYear?"":" "+b[0].getFullYear()),"&nbsp;&ndash; ",b[1].format("j F"),(sameYear?"":" "+b[1].getFullYear()),sameYear].join("")};Date.prototype.toDT=function(){var g=this.getDate().toString(),a=(this.getMonth()+1).toString(),f=this.getFullYear().toString(),c=this.getHours().toString(),b=this.getMinutes().toString(),e=this.getSeconds().toString();return[f.setDigits(4),"-",a.setDigits(2),"-",g.setDigits(2)," ",c.setDigits(2),":",b.setDigits(2),":",e.setDigits(2)].join("")};Date.prototype.getDateStr=function(){return this.format("Y-m-d")};Date.prototype.getTimeStr=function(){return this.toDT().split(" ").pop()};Date.prototype.getTimeStamp=function(){var b=this.getDate(),a=this.getMonth()+1,c=this.getFullYear();if(b<10){b="0"+b}if(a<10){a="0"+a}return["",c,a,b,"000000"].join("")};Date.prototype.getFullTimeStamp=function(){return this.format("YmdHis")};Date.prototype.getTsShort=function(){return[this.getFullYear().toString(),String(this.getMonth()+1).setDigits(),String(this.getDate()).setDigits()].join("")};Date.prototype.getFromTimeStamp=function(e){e=e+"";var i=Number(e.substr(0,4)),a=Number(e.substr(4,2))-1,g=Number(e.substr(6,2))||1,c=Number(e.substr(8,2))||0,f=Number(e.substr(10,2))||0,b=Number(e.substr(12,2))||0;this.setDate(1);this.setFullYear(i);this.setMonth(a);this.setDate(g);this.setHours(c);this.setMinutes(f);this.setSeconds(b);return this};Date.prototype.getFromDT=function(a){a=String(a);this.set({days:a.substr(8,2)||1,months:a.substr(5,2)-1,years:parseInt(a.substr(0,4)),hours:a.substr(11,2)||0,minutes:a.substr(14,2)||0,seconds:a.substr(17,2)||0,milliseconds:0});return this};Date.prototype.getFromTsStr=function(a){var b=a.split(".");this.set({years:Number(b[2]),months:Number(b[1]),days:Number(b[0])});return this};Date.prototype.set=function(b){var a=b.year||this.getFullYear();if(isset(b.days)&&isset(b.months)&&getMonthLength(this.getMonth(),a)<Number(b.days)){this.setMonth(b.months);if(getMonthLength(this.getMonth(),a)<Number(b.days)){this.setDate(getMonthLength(this.getMonth(),a))}else{this.setDate(b.days)}}else{if(isset(b.days)){this.setDate(b.days)}if(isset(b.months)){if(getMonthLength(b.months,a)<this.getDate()){this.setDate(getMonthLength(b.months,a))}this.setMonth(b.months)}}if(isset(b.years)){this.setFullYear(b.years)}if(isset(b.hours)){this.setHours(b.hours)}if(isset(b.minutes)){this.setMinutes(b.minutes)}if(isset(b.seconds)){this.setSeconds(b.seconds)}if(isset(b.milliseconds)){this.setMilliseconds(b.milliseconds)}return this};Date.prototype.offset=function(b){var a={};if(b.days){a.days=this.getDate()+b.days}if(b.weeks){a.days=this.getDate()+b.weeks*7}if(b.months){a.months=this.getMonth()+b.months}if(b.years){a.years=this.getFullYear()+b.years}if(b.hours){a.hours=this.getHours()+b.hours}if(b.minutes){a.minutes=this.getMinutes()+b.minutes}if(b.seconds){a.seconds=this.getSeconds()+b.seconds}this.set(a);return this};Date.prototype.offsetDaysFromDate=function(a,b){this.setDate(a.getDate()+b);return this};Date.prototype.offsetDays=function(a){return this.offsetDaysFromDate(this,a)};Date.prototype.offsetMonthsFromDate=function(b,a){this.setMonth(this.getMonth()+(a||1));return this};Date.prototype.offsetMonths=function(a){return this.offsetMonthsFromDate(this,a)};Date.prototype.changeMonth=function(a){var b=this.getMonth()+a;this.setMonth(b);if(b>11){b=b%11-1}if(b<0){b=12+b}while(this.getMonth()!=b){this.offsetDaysFromDate(this,-1)}return this};Date.prototype.changeYear=function(a){var b=this.getMonth();this.setFullYear(this.getFullYear()+a);while(this.getMonth()!=b){this.offsetDaysFromDate(this,-1)}return this};Date.prototype.offsetYearsFromDate=function(b,a){this.setFullYear(this.getFullYear()+(a||1));return this};Date.prototype.offsetYears=function(a){return this.offsetYearsFromDate(this,a)};Date.prototype.getNearestWeekday=function(b,c){var a=0;while(this.getDay()!=b){this.offsetDays(c<0?-1:1);if(++a>6){return false}}return this};Date.prototype.getLastFullWeekBegin=function(){return this.getNearestWeekday(1,-1).offsetDays(-1).getNearestWeekday(1,-1)};Date.prototype.getLastFullWeekEnd=function(){return this.getNearestWeekday(1,-1).offsetDays(-1)};Date.prototype.getLastFullMonthEnd=function(){this.setDate(1);return this.offsetDays(-1)};Date.prototype.getLastFullMonthBegin=function(){this.offsetMonths(-1);this.setDate(1);return this};Date.prototype.getFullMonth=function(){var b=this.duplicate();var a=this.duplicate();b.setDate(1);a.offsetMonths(1).setDate(1);return{begin:b,end:a}};Date.prototype.getMonthBegin=function(){this.setDate(1);this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};Date.prototype.getMonthEnd=function(){this.setDate(1);this.setHours(23);this.setMinutes(59);this.setSeconds(59);this.setMilliseconds(999);this.offsetMonths(1);this.offsetDays(-1);return this};Date.prototype.getFullDay=function(){var b=this.duplicate();var a=this.duplicate();b.setHours(0);b.setMinutes(0);b.setSeconds(0);a.setHours(23);a.setMinutes(59);a.setSeconds(59);return{begin:b,end:a}};Date.prototype.getNextMonthBegin=function(){this.setDate(1);this.offsetMonths(1);return this};Date.prototype.getWeek=function(){return{begin:this.duplicate().getNearestWeekday(1,-1),end:this.duplicate().getNearestWeekday(0,1)}};Date.prototype.getWeekday=function(){var a=this.getDay();return WEEKDAYS[a==0?6:a-1]};Date.prototype.getLastYearEnd=function(){this.setDate(1);this.setMonth(1);return this.offsetDays(-1)};Date.prototype.getNextYearBegin=function(){this.setDate(1);this.setMonth(1);return this.offsetYears(1)};Date.prototype.nullHms=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);return this};Date.prototype.equal=function(b,a){if(!is_date(b)){return false}return(this.getFullYear()==b.getFullYear()&&(a=="year"||this.getMonth()==b.getMonth()&&(a=="month"||this.getDate()==b.getDate())))};Date.prototype.equalMonth=function(a){if(!is_date(a)){return false}return(this.getFullYear()==a.getFullYear()&&this.getMonth()==a.getMonth())};Date.prototype.less=function(b,a){return(is_date(b)&&((!a&&this.getTime()<b.getTime())||(a&&Math.floor(this.getTime()/1000)<=Math.floor(b.getTime()/1000))))};Date.prototype.greater=function(b,a){return(!!(is_date(b)&&((!a&&this.getTime()>b.getTime())||(a&&this.getTime()>=b.getTime()))))};Date.prototype.between=function(b,a){return(is_date(b)&&is_date(a)&&this.getTime()>b.getTime()&&this.getTime()<a.getTime())};Date.prototype.between_s=function(b,a){if(is_date(b)&&is_date(a)){b.setMilliseconds(0);a.setMilliseconds(0);this.setMilliseconds(0);return(this.getTime()>=b.getTime()&&this.getTime()<=a.getTime())}return false};Date.prototype.setBetween=function(b,a){if(this.less(b)){return this.duplicate(b)}else{if(this.greater(a)){this.duplicate(a)}}return this};function getDaysDiff(b,a){return Math.round((b.duplicate().set({hours:0,minutes:0,seconds:0,milliseconds:0}).getTime()-a.duplicate().set({hours:0,minutes:0,seconds:0,milliseconds:0}).getTime())/(3600*24*1000))}Date.prototype.getDaysDiffStr=function(b,a){var c=getDaysDiff(b,a);switch(c){case 0:return _("today");case 1:return _("tomorrow");case 2:return _("after tomorrow");case -1:return _("yesterday");case -2:return _("before yesterday");default:if(c>0){return _("after (1) days",c)}else{return _("(1) days before",Math.abs(c))}}};Date.prototype.duplicate=function(a){if(a){this.setTime(a.getTime());return this}else{return new Date(this.getTime())}};Date.prototype.format=function(a){var b=this;if(!a){return}return a.replace(/([a-zA-Z]{1})/g,function(c,d){switch(d){case"H":return b.getHours().setDigits();break;case"i":return b.getMinutes().setDigits();break;case"s":return b.getSeconds().setDigits();break;case"j":return b.getDate();break;case"d":return b.getDate().setDigits();break;case"m":return(b.getMonth()+1).setDigits();break;case"M":return MONTHS[b.getMonth()];break;case"n":return String(MONTHS_SHORT[b.getMonth()]).firstCharUpper();break;case"F":return MONTHS_SHORT[b.getMonth()];break;case"G":return String(MONTHS_SHORT[b.getMonth()]).firstCharUpper();break;case"f":return MONTHS_NOMINATIVE[b.getMonth()];break;case"Y":return b.getFullYear().setDigits();break;case"y":return b.getFullYear().toString().substr(-2);break;case"r":return b.getDaysDiffStr(b,new Date());break;case"k":return b.getWeekday();break;case"e":return b.getWeekday().toLowerCase();break;case"w":return b.getWeekReadable();break;case"a":return b.duplicate().getNearestWeekday(1,-1);case"z":return b.duplicate().getNearestWeekday(0,1);case"o":return b.getMonthReadable();break}})};(function(c){c.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}};function d(b){if(typeof b.data!=="string"){return}var f=b.handler,a=b.data.toLowerCase().split(" ");b.handler=function(t){if(this!==t.target&&(/textarea|select/i.test(t.target.nodeName)||t.target.type==="text")){return}var p=t.type!=="keypress"&&c.hotkeys.specialKeys[t.which],s=String.fromCharCode(t.which).toLowerCase(),i,e="",q={};if(t.altKey&&p!=="alt"){e+="alt+"}if(t.ctrlKey&&p!=="ctrl"){e+="ctrl+"}if(t.metaKey&&!t.ctrlKey&&p!=="meta"){e+="meta+"}if(t.shiftKey&&p!=="shift"){e+="shift+"}if(p){q[e+p]=true}else{q[e+s]=true;q[e+c.hotkeys.shiftNums[s]]=true;if(e==="shift+"){q[c.hotkeys.shiftNums[s]]=true}}for(var l=0,r=a.length;l<r;l++){if(q[a[l]]){return f.apply(this,arguments)}}}}c.each(["keydown","keyup","keypress"],function(){c.event.special[this]={add:d}})})(jQuery);(function(a,b){a.store=function(f,c){var e=this;if(typeof f=="string"){if(a.store.drivers[f]){this.driver=a.store.drivers[f]}else{throw new Error("Unknown driver "+f)}}else{if(typeof f=="object"){var d=!a.isFunction(f.init)||!a.isFunction(f.get)||!a.isFunction(f.set)||!a.isFunction(f.del)||!a.isFunction(f.flush);if(d){throw new Error("The specified driver does not fulfill the API requirements")}this.driver=f}else{a.each(a.store.drivers,function(){if(!a.isFunction(this.available)||!this.available()){return true}e.driver=this;if(e.driver.init()===false){e.driver=null;return true}return false})}}if(!c){c=a.store.serializers}this.serializers={};a.each(c,function(g,h){if(!a.isFunction(this.init)){return true}e.serializers[g]=this;e.serializers[g].init(e.encoders,e.decoders)})};a.extend(a.store.prototype,{get:function(c){var d=this.driver.get(c);return this.driver.encodes?d:this.unserialize(d)},set:function(c,d){this.driver.set(c,this.driver.encodes?d:this.serialize(d))},del:function(c){this.driver.del(c)},flush:function(){this.driver.flush()},driver:b,encoders:[],decoders:[],serialize:function(d){var c=this;a.each(this.encoders,function(){var f=c.serializers[this+""];if(!f||!f.encode){return true}try{d=f.encode(d)}catch(g){}});return d},unserialize:function(d){var c=this;if(!d){return d}a.each(this.decoders,function(){var e=c.serializers[this+""];if(!e||!e.decode){return true}d=e.decode(d)});return d}});a.store.drivers={localStorage:{ident:"$.store.drivers.localStorage",scope:"browser",available:function(){try{return !!window.localStorage}catch(c){return false}},init:a.noop,get:function(c){return window.localStorage.getItem(c)},set:function(c,d){window.localStorage.setItem(c,d)},del:function(c){window.localStorage.removeItem(c)},flush:function(){window.localStorage.clear()}},userData:{ident:"$.store.drivers.userData",element:null,nodeName:"userdatadriver",scope:"browser",initialized:false,available:function(){try{return !!(document.documentElement&&document.documentElement.addBehavior)}catch(c){return false}},init:function(){if(this.initialized){return}try{this.element=document.createElement(this.nodeName);document.documentElement.insertBefore(this.element,document.getElementsByTagName("title")[0]);this.element.addBehavior("#default#userData");this.initialized=true}catch(c){return false}},get:function(c){this.element.load(this.nodeName);return this.element.getAttribute(c)},set:function(c,d){this.element.setAttribute(c,d);this.element.save(this.nodeName)},del:function(c){this.element.removeAttribute(c);this.element.save(this.nodeName)},flush:function(){this.element.expires=(new Date).toUTCString();this.element.save(this.nodeName)}},windowName:{ident:"$.store.drivers.windowName",scope:"window",cache:{},encodes:true,available:function(){return true},init:function(){this.load()},save:function(){window.name=a.store.serializers.json.encode(this.cache)},load:function(){try{this.cache=a.store.serializers.json.decode(window.name+"");if(typeof this.cache!="object"){this.cache={}}}catch(c){this.cache={};window.name="{}"}},get:function(c){return this.cache[c]},set:function(c,d){this.cache[c]=d;this.save()},del:function(c){try{delete this.cache[c]}catch(d){this.cache[c]=b}this.save()},flush:function(){window.name="{}"}}};a.store.serializers={json:{ident:"$.store.serializers.json",init:function(d,c){d.push("json");c.push("json")},encode:function(c){return a.toJSON(c)},decode:function(f){var c;try{c=a.evalJSON(f)}catch(d){c=f}return c}},xml:{ident:"$.store.serializers.xml",init:function(d,c){d.unshift("xml");c.push("xml")},isXML:function(d){var c=(d?d.ownerDocument||d:0).documentElement;return c?c.nodeName.toLowerCase()!=="html":false},encode:function(e){if(!e||e._serialized||!this.isXML(e)){return e}var d={_serialized:this.ident,value:e};try{d.value=new XMLSerializer().serializeToString(e);return d}catch(c){try{d.value=e.xml;return d}catch(f){}}return e},decode:function(d){if(!d||!d._serialized||d._serialized!=this.ident){return d}var c=("DOMParser" in window&&(new DOMParser()).parseFromString);if(!c&&window.ActiveXObject){c=function(e){var f=new ActiveXObject("Microsoft.XMLDOM");f.async="false";f.loadXML(e);return f}}if(!c){return b}d.value=c.call("DOMParser" in window&&(new DOMParser())||window,d.value,"text/xml");return this.isXML(d.value)?d.value:b}}};a.storage=new a.store(b,{json:a.store.serializers.json})})(jQuery);(function(a){a.extend(a,{templater:function(){return Templater}})})(jQuery);$.extend($.fn,{htmlTemplate:function(c,d){if(this.length){var b=$.templater().fetch(c,d);for(var a=0;a<this.length;a++){$(this[a]).html(b)}}return this}});function Templater(){}$.extend(Templater,{debug:false,templates:{_checkedAttr:' checked="checked"',_selectedAttr:' selected="selected"',_disabledAttr:' disabled="disabled"'},fetch:function(a,b){return Templater.parse(Templater.templates[a]||String(a),b||{})},display:function(b,a,c){},parse:function(a,b){if(!a){return""}var c=function(e){if(typeof(e)=="object"){$.each(e,function(f){e[f]=c(e[f])});return e}if(e.charAt(0)=="`"&&e.charAt(e.length-1)=="`"){return _prop(b,e.slice(1,-1))}return String(e).replace(/(\`.+\`)/g,function(f,g){return _prop(b,g.slice(1,-1))})};var d=function(e,m){var n=m.split(" "),l={};m=n.shift();if(n.length){(" "+n.join(" ")).replace(/\s([^=]+?)=\"([^\"]+?)\"/g,function(g,i,h){l[i]=c(h)})}m=m.split("|");var k=m[0].split(":");if(k[1]&&Templater.handlers[k[0]]){var j=Templater.handlers[k[0]](c(k[1].split(",")),$.extend({},b,l))}else{var j=_prop(b,m[0])}for(var f=1;f<m.length;f++){if($.isFunction(Templater.modifiers[m[f]])){j=Templater.modifiers[m[f]](j,b)}else{if($.isFunction(window[m[f]])){j=window[m[f]](j)}}}return isset(j)?j:""};return a.replace(/\%\(([A-Za-zА-Яа-яёЁ0-9_|.:,\` \=\"\-\!]+)\)/g,d)},register:function(b,a){if(typeof(b)=="object"){$.each(b,function(c){Templater.register(String(c),this)})}else{Templater.templates[b]=$.isArray(a)?a.join(""):String(a)}},modifiers:{round:function(a){return is_numeric(a)?Math.round(a):a},wrap:function(b){if(BROWSER.isIE){return b}var a=15;b=b?String(b).replace(new RegExp("(.{"+a+"})","ig"),'<span class="wrap-quantum">$1</span>'):"";return b},clearUrl:function(a){a=a?a.replace(/^((?:https?:\/\/)?(?:www\.)?)(.+?)(\/?)$/i,"$2"):"";return a},escapehtml:function(a){if(!a){return a}return String(a).replace(/«/g,"&laquo;").replace(/»/g,"&raquo;").replace(/\"/g,"&quot;").replace(/\</g,"&lt;").replace(/\>/g,"&gt;")},dump:function(a){if(window.console){if(is_object(a)){console.dir(a)}else{console.log(a)}}}},appendModifier:function(b,a){if(typeof(b)=="object"){for(var c in b){Templater.appendModifier(c,b[c])}return}if(typeof(a)=="function"){Templater.modifiers[b]=a}},handlers:{include:function(b,c){return Templater.fetch(b[0],c)},applyForEach:function(c,e){if(!c||!c[0]||!c[1]){return""}var f=_prop(e,c[0]);var d="";var b=0;typeof(f)=="object"&&$.each(f,function(a){d+=Templater.fetch(c[1],$.extend({},e,{__item:this,__key:a,__isFirst:!(b++),__isLast:(f.length&&f.length==a+1)}))});return d},applyIf:function(a,data){var t=true,r=false;if(!a||!a[0]){return""}if(String(a[0]).charAt(0)=="!"){a[0]=String(a[0]).substr(1);t=false}try{r=!!eval(_prop(data,a[0]))}catch(err){r=!!eval("'"+_prop(data,a[0])+"'")}return((t&&r)||(!t&&!r))?Templater.fetch(a[1],data):Templater.fetch(a[2]||"",data)}}});(function(a){a.extend(a.fn,{validate:function(c){if(!this.length){return}var b=a.data(this[0],"validator");if(b){return b}b=new FormValidator(this[0],c);a.data(this[0],"validator",b);return b}})})(jQuery);var FormValidator=function(b,a){this.settings=$.extend({},FormValidator.defaultSettings,a);this.form=$(b);this.initialize()};FormValidator.FIELD_ERROR_CLASS="fielderror";$.extend(FormValidator,{defaultSettings:{fieldErrorClass:FormValidator.FIELD_ERROR_CLASS,rules:{},incorrectValueMsg:_("Incorrect value")},FIELD_VALIDATION_STATUS:{ok:1,error_mask:10,error_minlength:11,error_maxlength:12,error_length:13,error_compare:14,error_comparenot:15,error_minvalue:16,error_callback:17,error:100},defaultFieldRule:{},rules:{mail:{mask:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i},freemail:{mask:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,minlength:0},url:{mask:/^((https?|ftp):\/\/)?(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i},freeurl:{mask:/^((https?|ftp):\/\/)?(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,minlength:0},stricturl:{mask:/^((https?|ftp):\/\/)(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i},login:{mask:/^[A-Za-z0-9!@#\$%^&\*\(\)_\-\+\.]+?$/i,minlength:3},password:{mask:/^[a-zA-Z0-9\.\,\!\@\#\$\%\^\&\*\(\)_\-\+]+$/,minlength:8},password2:{mask:/^[a-zA-Z0-9\.\,\!\@\#\$\%\^\&\*\(\)_\-\+]+$/,minlength:8,compare:"password"},givenname:{mask:/^[a-zA-Zа-яА-ЯёЁ\-]+$/i},captcha:{strictlength:6},phone:{minlength:1,mask:/^[0-9\+\-\s\(\)\.\#]+$/},notnullvalue:{minvalue:1},notemptyvalue:{minlength:1}},getErrorStr:function(a){for(var b in FormValidator.FIELD_VALIDATION_STATUS){if(FormValidator.FIELD_VALIDATION_STATUS[b]==a){return b}}}});(function(){var a=(function(){var b={};$.each(FormValidator.FIELD_VALIDATION_STATUS,function(c){b[this]=c});return b})();FormValidator.prototype={fields:undefined,initialize:function(){var b=this;this.updateFields();this.putEvents()},putEvents:function(){var b=this;this.form.submit(function(){return b.submitFormHandler()})},updateFields:function(){var c=this,d=this.settings.skipDisabled?":enabled":"",b;this.fields=$("input"+d+",textarea"+d+",select"+d,this.form).each(function(){if($.data(this,"validator")){return}var f=this.name,h=$(this),i=$.extend({},c.settings.defaultFieldRule);var e=searchInClass(this,"field-");if(e&&FormValidator.rules[e]){i=$.extend({},i,FormValidator.rules[e])}if(c.settings.rules[f]){i=$.extend({},i,c.settings.rules[f])}$.each(["focus","blur","change","keydown","keyup"],function(){var j=String(this);h.bind(j,function(){var k=this;var l=$.data(k,"rules");if(method_exists(c,"fieldHandler"+j.firstCharUpper())){c["fieldHandler"+j.firstCharUpper()](k)}if(l&&l["on"+j]){l["on"+j].call(k,k,c)}if(c.settings["onField"+j.firstCharUpper()]){c.settings["onField"+j.firstCharUpper()].call(k,k)}})});var g=function(){c.fieldErrorFree(this)};$(this).click(g).keydown(g);if(!i.errorContainer&&(b=$("#"+this.id+"-error"))&&b.length){i.errorContainer=b}$.data(this,"validator",c);$.data(this,"rules",i)})},validate:function(){var c=this;var d=0;var b;this.errorFields={};$.each(this.fields,function(){var f=this,e=c.validateField(f),h={},g=$.data(f,"rules");f.blur();if(typeof e=="object"){h=e.data;e=e.valid}if(e!==true&&e>FormValidator.FIELD_VALIDATION_STATUS.ok){if(!g.warn){d++;if(!b){b=f}if(f.name){c.errorFields[f.name]=e}}c.fieldError(f,e,h)}else{if(f.name){c.errorFields[f.name]=false}}});$(b).focus();return(d==0)},validateField:function(c){var e=$.data(c,"rules"),d=this.fieldVal(c),b;if(e){if(e.trim){d=trimStr(d)}if($.isFunction(this.settings.fieldCallback)&&(!(b=this.settings.fieldCallback(d,c)))||(typeof b=="object"&&!b.valid)){return{valid:FormValidator.FIELD_VALIDATION_STATUS.error_callback,data:b.data}}if(!isNaN(e.minlength)&&d.length<e.minlength){return FormValidator.FIELD_VALIDATION_STATUS.error_minlength}if(e.maxlength&&d.length>e.maxlength){return FormValidator.FIELD_VALIDATION_STATUS.error_maxlength}if($.isFunction(e.callback)&&(!(b=e.callback(d,c)))||(typeof b=="object"&&!b.valid)){return{valid:FormValidator.FIELD_VALIDATION_STATUS.error_callback,data:b.data}}if(e.minvalue&&(isNaN(Number(d))||Number(d)<e.minvalue)){return FormValidator.FIELD_VALIDATION_STATUS.error_minvalue}if(e.strictlength&&d.length!=e.strictlength){return FormValidator.FIELD_VALIDATION_STATUS.error_length}if(e.mask&&(e.minlength!==0||d.length>0)&&!e.mask.test(d)){return FormValidator.FIELD_VALIDATION_STATUS.error_mask}if(e.compare&&(!d||d!=this.fieldVal(this.fieldByName(e.compare)))){return FormValidator.FIELD_VALIDATION_STATUS.error_compare}if(e.comparenot&&(!d||d==this.fieldVal(this.fieldByName(e.comparenot)))){return FormValidator.FIELD_VALIDATION_STATUS.error_comparenot}}return FormValidator.FIELD_VALIDATION_STATUS.ok},fieldVal:function(b){return(b.type=="radio")?getRadioValue(b.name):$(b).val()},fieldByName:function(b){var c=this.form[0];return $(document.getElementsByName(b)).map(function(d,e){return e.form==c&&e.name==b&&e||null})},fieldError:function(e,b,g){var d=this,f,c=b?FormValidator.getErrorStr(b)||b.toString():b.toString();if(is_string(e)){e=this.form.find("[name="+e+"]")[0]}f=$.data(e,"rules");if(f.errorContainer){$(f.errorContainer).show().html((function(){var h="";if(g&&g.msg){h=g.msg}else{if(f["msg_"+a[b]]){h=f["msg_"+a[b]]}else{h=d.settings.incorrectValueMsg}}return h})())}if(f.onerror){f.onerror.call(e,e,c,g)}if(!f.warn){$(e).addClass(this.settings.fieldErrorClass)}if(g&&g.startPos!=undefined&&g.endPos!=undefined){setSelection(e,g.startPos,g.endPos)}if(this.settings.onFieldError){this.settings.onFieldError.call(e,e,c,g)}return this},fieldErrorFree:function(b){var c=$.data(b,"rules");if($(b).hasClass(this.settings.fieldErrorClass)){$(b).removeClass(this.settings.fieldErrorClass);if(c.errorContainer){$(c.errorContainer).hide().empty()}if(this.settings.onFieldErrorFree){this.settings.onFieldErrorFree.call(b,b)}}},fieldHandlerBlur:function(d){var c=this;var e=$.data(d,"rules");if((e&&e.validateOnBlur)||this.settings.validateFieldsOnBlur){var b=c.validateField(d);if(b>FormValidator.FIELD_VALIDATION_STATUS.ok){this.fieldError(d,b)}}},fieldHandlerKeyup:function(d){var c=this,e=$.data(d,"rules");if((e&&e.validateOnKeyup)||this.settings.validateFieldsOnKeyup){var b=c.validateField(d);if(b>FormValidator.FIELD_VALIDATION_STATUS.ok){this.fieldError(d,b)}}},submitFormHandler:function(){if(this.settings.onpresubmit){this.settings.onpresubmit.call(this.form[0])}if(this.settings.updateFieldsOnSubmit){this.updateFields()}if(this.validate()){if($.isFunction(this.settings.onsubmit)){return this.settings.onsubmit(this.getResults(),this.form[0],this)}else{return true}}else{if($.isFunction(this.settings.onerror)){this.settings.onerror(this.errorFields||{})}return false}},getResults:function(){var c=this;var b={};$.each(this.fields,function(){var e=this,d=this.name,g,f=$.data(e,"rules");if(e.type=="radio"){g=b[d]==undefined?c.fieldVal(this):b[d]}else{if(e.type=="checkbox"){g=Number(e.checked)}else{d=e.name||e.id;g=$(e).val();if(f.trim){g=trimStr(g)}}}b[d]=(f&&f.getVal)?f.getVal(g,e):g});return b},focusError:function(){this.fields.filter("."+this.settings.fieldErrorClass).eq(0).focus()}}})();(function($){function toIntegersAtLease(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(date){return this.getUTCFullYear()+"-"+toIntegersAtLease(this.getUTCMonth())+"-"+toIntegersAtLease(this.getUTCDate())};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};$.quoteString=function(string){if(escapeable.test(string)){return'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+string+'"'};$.toJSON=function(o,compact){var type=typeof(o);if(type=="undefined"){return"undefined"}else{if(type=="number"||type=="boolean"){return o+""}else{if(o===null){return"null"}}}if(type=="string"){return $.quoteString(o)}if(type=="object"&&typeof o.toJSON=="function"){return o.toJSON(compact)}if(type!="function"&&typeof(o.length)=="number"){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i],compact))}if(compact){return"["+ret.join(",")+"]"}else{return"["+ret.join(", ")+"]"}}if(type=="function"){throw new TypeError("Unable to convert object of type 'function' to json.")}var ret=[];for(var k in o){var name;type=typeof(k);if(type=="number"){name='"'+k+'"'}else{if(type=="string"){name=$.quoteString(k)}else{continue}}var val=$.toJSON(o[k],compact);if(typeof(val)!="string"){continue}if(compact){ret.push(name+":"+val)}else{ret.push(name+": "+val)}}return"{"+ret.join(", ")+"}"};$.compactJSON=function(o){return $.toJSON(o,true)};$.evalJSON=function(src){return eval("("+src+")")};$.secureEvalJSON=function(src){var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")")}else{throw new SyntaxError("Error parsing JSON, source is not valid.")}}})(jQuery);(function($){$.fn.autocomplete=function(settings){if(!this.length){return}var a=$.data(this[0],"_autocomplete");if(a){a.updateSettings(settings);return a}a=new iAutocomplete(this[0],settings);$.data(this[0],"_autocomplete",a);return a};var global_count=0,iAutocomplete=function(field,settings){this.initialize(field,settings)};var self=iAutocomplete;$.extend(iAutocomplete,{defaultSettings:{data:{},minSensitiveLength:0,maxSensitiveLength:25,maxItemsInSelect:50,selectMinWidth:200,maxSelectedItems:0,smartMatching:true,caseSensitive:false,selectedUnique:true,enableFreeSelect:true,enableTypeIn:true,enableTypeInSuggest:true,alwaysFullList:false,displaySelectOnEmptyValue:true,updateEvent:undefined,updateEventCallback:undefined,itemsSeparator:",",onSelect:null,url:undefined,request:{data:{limit:10},dataType:"text",type:"GET",caching:true},sensitiveDelay:200},fieldClass:"autocompletion-field",fieldWrapperClass:"autocompletion-field-wrap",selectClass:"autocompletion-select",selectCoreClass:"autocompletion-select-core",activeSelectItemClass:"autocompletion-select-item-active",freeSelectHandlerClass:"autocompletion-freeselector",selectCss:{position:"absolute"},iframeCss:{opacity:0,position:"absolute",top:0,left:0,zIndex:-1,width:"100px",height:"100px"},freeSelectHandlerCss:{position:"absolute",top:0,right:0,bottom:0,height:"100%"},fieldWrapperCss:{display:"inline-block",position:"relative"}});iAutocomplete.prototype={initialize:function(field,settings){this.settings=$.extend(true,{},self.defaultSettings);this.settings._globalId=global_count++;this.updateSettings(settings);this.field=$(field);this.hashData={};this.requestCache={};this.field.addClass(self.fieldClass).attr(self.fieldClass,true);this.select=$("<div/>").addClass(self.selectClass+"-"+this.settings._globalId).addClass(self.selectClass).css(self.selectCss).hide().appendTo(document.body);this.selectCore=$("<div/>").addClass(self.selectCoreClass).appendTo(this.select);if(OPERATING_SYSTEM.isUnix){this.iframe=$('<iframe src="javascript:false;" frameborder="0"></iframe>').css(self.iframeCss).fadeTo(0,"fast").appendTo(this.select)}if(this.settings.enableFreeSelect){this.fieldWrapper=this.field.wrap("<span/>").closest("span").addClass(self.fieldWrapperClass).css(self.fieldWrapperCss);this.freeSelectHandler=$("<span/>").addClass(self.freeSelectHandlerClass).css(self.freeSelectHandlerCss).insertAfter(this.field).attr(self.freeSelectHandlerClass,true).html('<span class="'+self.freeSelectHandlerClass+'-core">'+(function(){var o="";for(var i=1;i<5;o+='<span class="'+self.freeSelectHandlerClass+"-core-"+i+++'"></span>'){}return o})()+"</span>");BROWSER.isIE6&&this.freeSelectHandler.height("1.7em")}this._selectQt=0;this._it=0;this._suggestingItems=[];this._selectedHashData={};this._activeFieldTagBegin=0;this._activeFieldTagEnd=0;this._selfClick=false;this._loadTimer=undefined;this.setData(this.settings.data);this.fillSelectedByFieldValue();this.bindEvents();this.placeSelect();this.caretPos=undefined},bindEvents:function(){var $this=this;var onFieldUse=function(e){var isFree=($this.settings.displaySelectOnEmptyValue&&this.value=="")||!$this.settings.enableTypeIn||$this.settings.alwaysFullList;if(!$this.settings.enableTypeInSuggest){return}else{if($this.settings.url){if($this.settings.displaySelectOnEmptyValue||this.value!=""){$this.load(e,isFree)}else{$this.hideSelect()}}else{$this.refreshSelect(e,isFree);if(!$this.settings.enableTypeIn){$this.field.select()}}}};this.field.attr("autocomplete","off").blur(function(e){!$this._selfClick&&$this.hideSelect();$this._selfClick=false}).click(function(e){e.stopPropagation();$this.caretPos=getCaretPos($this.field);onFieldUse.call(this,e);return false}).keyup(function(e){$this.caretPos=getCaretPos($this.field);onFieldUse.call(this,e);return false}).keydown(function(e){if((e.keyCode==40)||(e.keyCode==38)||(e.keyCode==13)){return $this.updateActiveSelectItem(e)}if(!$this.settings.enableTypeIn){$this.freeSelectHandler.click();return false}});this.selectCore.click(function(e){$this._selfClick=true;e.stopPropagation();var li=$(e.target);if(!li.is("li,li *")){return}li=li.closest("li");var d=$this._suggestingItems[li.prevAll("li").length],title=$this.itemTitle(d),needToReopen=$this.replaceActiveInField(title);$this.selectItem(title);$.isFunction($this.settings.onSelect)&&$this.settings.onSelect(title);$this.hideSelect();needToReopen&&$this.field.trigger("keyup",[{preventDefault:function(){},keyCode:32}])}).mousedown(function(e){$this._selfClick=true});this.settings.enableFreeSelect&&this.freeSelectHandler.click(function(e){if($this.field.is(":disabled")){return false}$this._selfClick=true;e.stopPropagation();$this.field.focus();BROWSER.isIE&&setCaretPosition($this.field,$this.caretPos||$this.field.val().length);if($this.settings.maxSelectedItems==1){$this.field.select()}if($this.isSelectVisible()){$this.hideSelect()}else{if($this.settings.url){$this.load(e,true,true)}else{$this.refreshSelect(e,true)}}});this.settings.updateEvent&&$(document).bind(this.settings.updateEvent,function(e,data){if($.isFunction($this.settings.updateEventCallback)){$this.settings.updateEventCallback(e,data)}else{$this.setData(data.data)}});$(document.body).bind("anyClick."+this.settings._globalId,function(e,target){if(!$this.isTargetInSelect(target)){$this.hideSelect()}else{$this._selfClick=true}});$(window).bind("resize."+this.settings._globalId,function(){$this.placeSelect()})},isTargetInSelect:function($target){return($target.attr(self.fieldClass)||$target.is(this.freeSelectHandler)||$target.is("."+self.selectClass+"-"+this.settings._globalId+" *, ."+self.selectClass+"-"+this.settings._globalId))},load:function(e,isFree,force){var $this=this,keyword=isFree?"":this.field.val();this.settings.request.data.q=keyword;if(!isFree&&!this.settings.caseSensitive){this.settings.request.data.q=this.settings.request.data.q.toLocaleLowerCase()}if($this.settings.request.caching){var cacheKey=this.settings.url+"?"+$.param(this.settings.request.data);if(this.requestCache[cacheKey]){this.resetData();this.hashData=this.requestCache[cacheKey];this.refreshSelect(e,isFree);return}}$this._loadTimer&&clearTimeout($this._loadTimer);$this._loadTimer=setTimeout(function(){$.ajax($.extend(true,{},$this.settings.request,{url:$this.settings.url,data:{rnd:Math.round(Math.random()*10000)},success:function(res){res=$.trim(res);var data=$.trim(res).split("\n");if(keyword==$this.field.val()||isFree){$this.setData(data,true);if($this.settings.request.caching){$this.requestCache[cacheKey]=$this.hashData}if($this.isFieldActive()){$this.refreshSelect(e,isFree)}}else{if($this.settings.request.caching){$this.requestCache[cacheKey]=$this.data2hash(data)}}},error:function(res){}}));clearTimeout($this._loadTimer);$this._loadTimer=undefined},$this.settings.sensitiveDelay);var loadFromRemote=function(){}},selectItem:function(title){this._selectedHashData[title]=this.hashData[title]||title},placeSelect:function(){var fieldOffset=this.field.offset();this.select.css({left:fieldOffset.left,top:fieldOffset.top+this.field.outerHeight()}).width(Math.max(this.field.outerWidth(),this.settings.selectMinWidth))},fillSelectedByFieldValue:function(skipActive){this._selectedHashData={};var p=this.settings.maxSelectedItems==1?[this.field.val()]:this.field.val().split(this.settings.itemsSeparator),_l=0;for(var i in p){if(p.hasOwnProperty(i)){if(skipActive&&this.caretPos!=undefined&&this.caretPos>_l&&this.caretPos<=_l+p[i].length){continue}this.selectItem(this.trimStr(p[i]));_l+=p[i].length+1}}},hideSelect:function(){this.select.hide();this._suggestingItems=[];this._selectQt=-1;this._it=0},showSelect:function(){this.placeSelect();this.select.show();if(this.iframe){this.iframe.height(this.select.outerHeight()).width(this.select.outerWidth())}},isSelectVisible:function(){return this.select.is(":visible")},isFieldActive:function(){return document.activeElement==this.field[0]},searchText:function(fullStr,cpos){this._activeFieldTagBegin=0;this._activeFieldTagEnd=fullStr.length;if(this.settings.maxSelectedItems!=1){this._activeFieldTagBegin=cpos;this._activeFieldTagEnd=cpos;for(var i=cpos;i>0&&fullStr.charAt(i-1)!=this.settings.itemsSeparator;this._activeFieldTagBegin=--i){}for(var i=cpos;i<fullStr.length&&fullStr.charAt(i)!=this.settings.itemsSeparator;this._activeFieldTagEnd=++i){}}return this.trimStr(fullStr.substr(this._activeFieldTagBegin,this._activeFieldTagEnd-this._activeFieldTagBegin))},refreshSelect:function(e,isFree){if((e.keyCode==40)||(e.keyCode==38)||(e.keyCode==13)){return false}if(e.keyCode==27){this.select.hide();this.field.blur();return}this._selectQt=-1;this._it=0;var stext=this.searchText(this.field.val(),getCaretPos(this.field.get(0))),rawStext=stext;if(!stext&&this.settings.displaySelectOnEmptyValue){isFree=true}var selectHtml="";this._suggestingItems=[];if(isFree||(stext&&stext.length>=this.settings.minSensitiveLength&&stext.length<=this.settings.maxSensitiveLength)){this._it=0;if(!this.settings.caseSensitive){stext=stext.toLocaleLowerCase()}this.settings.selectedUnique&&this.fillSelectedByFieldValue(true);for(var key in this.hashData){if(!this.hashData.hasOwnProperty(key)){continue}if(this.settings.maxItemsInSelect!=0&&this._it>(this.settings.maxItemsInSelect-1)){break}var val=key;if(
/*isFree && */
this.settings.selectedUnique&&this._selectedHashData[val]){continue}if(isFree||this.isMatchItem(this.settings.caseSensitive?val:val.toLocaleLowerCase(),stext)){selectHtml+='<li class="autocompletion-select-item-'+ ++this._it+'">'+val.replace(new RegExp("("+stext+")","g"+(this.settings.caseSensitive?"":"i")),"<strong>$1</strong>")+"</li>";this._suggestingItems.push({title:key,data:this.hashData[key]})}}}if(selectHtml){this.selectCore.html("<ul>"+selectHtml+"</ul>");this.showSelect()}else{this.hideSelect()}},isMatchItem:function(val,item){return(this.settings.smartMatching&&val.indexOf(item)>=0)||(!this.settings.smartMatching&&val.indexOf(item)==0)},updateActiveSelectItem:function(e){if(!this._suggestingItems.length){return true}switch(e.keyCode){case 40:this._selectQt++;if(this._selectQt>(this._suggestingItems.length-1)){this._selectQt=0}if(!this.isSelectVisible()){this.showSelect()}break;case 38:this._selectQt--;if(this._selectQt<0){this._selectQt=this._suggestingItems.length-1}break;case 13:if(!this.isSelectVisible()){return true}if(this._selectQt>=0){this.selectCore.find("li."+self.activeSelectItemClass).removeClass(self.activeSelectItemClass).click();return false}else{this.hideSelect();return true}break}var targetLi=this.selectCore.find("li").removeClass(self.activeSelectItemClass).eq(this._selectQt).addClass(self.activeSelectItemClass);var top=targetLi.position().top;var st=this.select.scrollTop();var h=this.select.height();if(top>=h){this.select.scrollTop(st+(top-h)+targetLi.outerHeight())}else{if(top<0){this.select.scrollTop(st+top)}}return false},replaceActiveInField:function(active){var val=this.field.val(),prefix=val.substr(0,this._activeFieldTagBegin),suffix=val.substr(this._activeFieldTagEnd,(val.length-this._activeFieldTagEnd));active=this.trimStr(active);if(this.settings.maxSelectedItems!=1&&!suffix){active+=this.settings.itemsSeparator}this.field.val(prefix+active+suffix);setCaretPosition(this.field,prefix.length+active.length);return(this.settings.maxSelectedItems!=1&&!suffix)},trimStr:function(str,charlist){charlist=(!charlist?" \\s\\xA0":charlist.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,"$1"));return str.replace(new RegExp("^["+charlist+"]+|["+charlist+"]+$","g"),"")},getSelectedStr:function(){var str=this.getSelected().join(this.settings.itemsSeparator);return this.settings.maxSelectedItems==1?str:this.trimStr(str," "+this.settings.itemsSeparator)},getSelected:function(){this.fillSelectedByFieldValue();var s=[];for(var title in this._selectedHashData){title&&s.push(title)}return s},getFullSelectedData:function(){this.fillSelectedByFieldValue();var s=[];for(var title in this._selectedHashData){s.push(this._selectedHashData[title])}return s},updateSettings:function(s){$.extend(true,this.settings,s);return this},setData:function(data,reset){if(!data||typeof(data)!="object"){return}reset&&this.resetData();this.settings.data=data;this.hashData=this.data2hash(data)},data2hash:function(data){var hash={};for(var i in data){var k=this.itemTitle(data[i]);if(k){hash[k]=data[i]}}return hash},resetData:function(){this.hashData={}},itemTitle:function(item){return typeof(item)=="object"?item.title:String(item)},destroy:function(){this.select.remove();$(document.body).unbind("anyClick."+this.settings._globalId);$(window).unbind("resize."+this.settings._globalId)}};if(typeof(OPERATING_SYSTEM)=="undefined"){var OPERATING_SYSTEM={isLinux:navigator&&navigator.platform&&navigator.platform.search("Linux")>=0,isBsd:navigator&&navigator.platform&&navigator.platform.search(/Bsd/i)>=0};OPERATING_SYSTEM.isUnix=(OPERATING_SYSTEM.isLinux||OPERATING_SYSTEM.isBsd)}if(typeof(BROWSER)=="undefined"){var BROWSER={isIE:
/*@cc_on!@*/
false,isIE6:false
/*@cc_on || @_jscript_version < 5.7 @*/
||/msie 6/i.test(navigator.userAgent.toLowerCase())}}if(typeof(getCaretPos)!="function"){var getCaretPos=function(obj){if(obj.length!=undefined){obj=obj[0]}obj.focus();if(!obj.value){return 0}if($(obj).is(":visible")&&obj.selectionStart){return obj.selectionStart}else{if(document.selection){return getCaretPosition(obj)}}return 0}}if(typeof(getCaretPosition)!="function"){var getCaretPosition=function(ctrl){ctrl=$id(ctrl);var CaretPos=0;if(document.selection){ctrl.focus();var Sel=document.selection.createRange();Sel.moveStart("character",-ctrl.value.length);CaretPos=Sel.text.length}else{if(ctrl.selectionStart||ctrl.selectionStart=="0"){CaretPos=ctrl.selectionStart}}return CaretPos}}if(typeof(setCaretPosition)!="function"){var setCaretPosition=function(elem,caretPos){elem=$id(elem);if(elem!=null){if(elem.createTextRange){var range=elem.createTextRange();range.move("character",caretPos);range.select()}else{if($(elem).is(":visible")&&elem.selectionStart){elem.setSelectionRange(caretPos,caretPos);elem.focus();triggerKeyPress(elem,0,32);triggerKeyPress(elem,8,0)}else{elem.focus()}}}}}if(typeof($id)!="function"){var $id=function(el){var res;if(!el){return false}res=null;if(typeof(el)!="object"){if(document.getElementById(el)){res=document.getElementById(el)}}else{if(el.length!=undefined&&el.slideDown!=undefined){res=el[0]}else{res=el}}return res}}if(typeof(triggerKeyPress)!="function"){function triggerKeyPress(elem,keyCode1,keyCode2){elem=$id(elem);var evt=document.createEvent("KeyboardEvent");if(typeof evt.initKeyboardEvent=="function"){evt.initKeyboardEvent("keypress",true,true,null,false,false,false,false,keyCode1,keyCode2)}else{evt.initKeyEvent("keypress",true,true,null,false,false,false,false,keyCode1,keyCode2)}elem.dispatchEvent(evt)}}$(function(){if(!document.body._bodyClickBounded){$("*",document.body).live("mousedown",function(e){$(document.body).triggerHandler("anyClick",[$(e.target)])});document.body._bodyClickBounded=true}})})(jQuery);var MESSAGES={error:_("Error occured"),loading:_("Loading...")},message=function(a){return MESSAGES[a]||""},appendMessages=function(a){$.extend(MESSAGES,a)};if(!window.console){var console={dir:function(){},log:function(){},time:function(){},timeEnd:function(){}}}var USER_RIGHTSDATA={},USER_RIGHTS_STATVIEW=2,USER_RIGHTS_VIEW=10,USER_RIGHTS_EDIT=50,USER_RIGHTS_ADMIN=90,USER_RIGHTS_OWN=100,REPRESENTATION_CLASS_BASE="base",REPRESENTATION_CLASS_UNBOUND="unbound",REPRESENTATION_CLASS_HIERARCHICAL="hierarchical",REPRESENTATION_CLASS_SEARCHTERMS="searchterms",REPRESENTATION_CLASS_NAVIGATION="navigation",REPRESENTATION_CLASS_HISTOGRAM="histogram",DETALISATION_HOURLY="hour",DETALISATION_DAILY="day",DETALISATION_WEEKLY="week",DETALISATION_MONTHLY="month",SYSTEM_BIRTH=new Date(2009,0,1,0,0,0,0);function trackerUserAccess(a){return !!(window.TRACKER_DATA&&window.TRACKER_DATA["counter"]&&window.TRACKER_DATA["counter"]["rights"]>=a)}function counterUrl(d){var c=[],b="",a=!d;if(!d&&!(d=window.SEID)){return""}if(a&&arguments.callee._defaultUrl){return arguments.callee._defaultUrl}c.push(d.type=="s"?"site":"counter");if(d.flow=="t"){c.push(":meta")}c.push("/");if(d.user_id){c.push("user:",d.user_id,":")}else{if(d.provider&&!(d.provider=="openstat"&&d.type=="c")&&d.provider!="user"){c.push(d.provider,":")}}c.push(d.entity_id);b=c.join("");if(a){arguments.callee._defaultUrl=b}return b}function counterCompactUrl(a){if(!a&&!(a=window.SEID)){return""}return a.compact_id}$(function(){OPERATING_SYSTEM.isUnix&&$(document.body).addClass("unix");$(document.body).ajaxError(function(b,d,c){if(d.status&&(d.status=="403"||d.status=="401")){window.location.reload(false);return}!d.__errorHandled&&unblockScreen()});if(!document.body._bodyClickBounded){$("*",document.body).live("mousedown",function(b){$(document.body).triggerHandler("anyClick",[$(b.target)])});document.body._bodyClickBounded=true}window.selectors=[];$("."+ISELECTOR_INIT_CLASS).each(function(){window.selectors.push(new iSelector(this));if(window.selectors.length==1){$(document.body).click(hideAllSelectors)}});var a=(location.hash||"#").substr(1);$(document.body).click(function(f){var d=$(f.target);if(d.is("a.slider-link")){var b=d.attr("href"),g=b.substr(0,1)=="#"?$(b):d.next();g.slideToggle("fast",function(){$(window).trigger("resize")});return false}else{if(d.is(".inline-dropdown")){d.inlineDropdown({showOnInit:true})}else{if(d.is(".open-feedback")){if(window.OpenstatWidget&&OpenstatWidget.feedback&&OpenstatWidget.feedback.engine&&OpenstatWidget.feedback.engine.open){}OpenstatWidget.feedback.engine.open();return false}else{if(d.is(".nmf, .nmf *")){selectNode(d.closest(".nmf"))}else{if(d.is(".digits-selectable, .digits-selectable *")){selectNode(d.closest(".digits-selectable"))}}}}}});$("a.slider-link").each(function(){var b=this.href.split("#").pop();(a==b)&&$("#"+b).show()}).focus(selfBlur);$("#feedback-error, #feedback-question").click(function(){var b=this,c="popup-width_",d="popup-height_",f="popup-pre_",e={url:this.href};$.each(this.className.split(" "),function(h,g){if(g.search(c)==0){e.width=Number(g.substr(c.length))}if(g.search(d)==0){e.height=Number(g.substr(d.length))}if(g.search(f)==0){var j=window["popup_pre_"+g.substr(f.length)];if($.isFunction(j)){e.url=j(b)}}});popUp(e);$.hideInlineDropdowns();return false});$("#setupmenu-list-core a").click(function(){return preserveHashOnClick(this)});$("div.meta-msg-ads>span.meta-msg-close").click(function(){var b=$(this).parent(),c=b.searchInClass("meta-msg-id-");b.remove();$(window).trigger("resize");$(document.body).removeClass("with-meta-msg");UserStore.set("msg.off."+c,Math.round(new Date().getTime()/1000));GlobalListener.trackEvent("msg-off-"+c)});$("button.meta-msg-button-close").click(function(){$(this).closest(".meta-msg").remove();$(window).trigger("resize");$.request({url:"/counters",type:"POST",data:{migration_message_off:1},quite:true})})});function popup_pre_addurl(b){var d=["","pagefrom="+escape(window.location)],c=window.TRACKER_USER;if(c){c.email&&c.email!="no@such.email"&&isEmail(c.email)&&d.push("email="+c.email);c.login&&d.push("login="+c.login)}return b.href+d.join("&")}function preserveHashOnClick(b,c){var d=(location.hash).substr(1);if(d&&(c||d.indexOf("=")>-1)){b=$(b);b.attr("href",b.attr("href")+"#"+d)}return true}function getExternalLinkClass(b){var a,c=(a=b.match(/^(.+):\/\//))?a[1]:"";return c?["","link-external","link-schema-"+c].join(" "):""}var SitePage=(function(){var c=",",g={},i={},a=1,b=10,d=100,f=function(k){return encodeURIComponent(k)},h=function(k){return decodeURIComponent(k)},j=function(m){var o="";if(is_object(m)){var k=[];for(var l in m){var n=m[l];if((is_string(n)||is_numeric(n))&&typeof(n)!="undefined"){k.push(l+"="+f(String(n)))}else{if(is_array(n)){k.push(l+"="+f(n.join(c)))}}}o=k.join("&")}else{if(is_string(m)){o=m}else{return false}}return o},e={redirect:function(k){if(!k){k="/"}if(k.search(/^https?\:\/\//i)<0){if(k.substr(0,1)!="/"){k="/"+k}k=SITE_URL+k}window.location=k;return false},refresh:function(){window.location.reload(false)},getHash:function(){return(location.hash).substr(1)},setHash:function(l){var m=j(l),k=location.href.charAt(location.href.length-1)=="#";if(k){window.location=location.href+(m||"")}else{if(m||location.hash){location.hash=(m||"")}}return m},parseHash:function(){var q=this.getHash(),m={};if(!isset(q)||q==""){return false}var r=q.split("&");for(var o in r){var k=r[o];if(!is_string(k)){continue}var l=k.split("=");if(!l.length||l.length<2){continue}var s=l[0],t=h(l[1]);var n=t.split(c);if(n.length>1){t=n}m[s]=t}return m},appendHash:function(k){this.setHash($.extend(this.parseHash(),k))},removeFromHash:function(l){var k=this.parseHash();if(k){delete k[l];this.setHash(k)}},setTitle:function(k,l){if(k){document.title=l?[k,l].join(" | "):k}},loadJs:function(){var k=function(z,y,l){var A=document.getElementsByTagName("head")[0],x,w,v=false,u=function(E){var D=[];if(g[z].status!=a){return false}if(E){g[z].status=b;D=g[z]["listenersSuccess"]}else{g[z].status=d;D=g[z]["listenersError"]}if(D.length){for(var C=0,B=D.length;C<B;C++){D[C]&&D[C]()}}};if(!A||!A.firstChild){throw new Error("Cannot load script until DOM ready")}if(l===false){l=y}if(g[z]&&g[z].status){switch(g[z].status){case a:g[z].listenersSuccess.push(y);g[z].listenersError.push(l);return true;case b:y&&y();return true;case d:l&&l();return true}}g[z]={status:a,listenersSuccess:[y],listenersError:[l]};x=document.createElement("script");x.charset="utf-8";x.src=z;x.onload=function(B){u(true)};x.onerror=function(){u(false)};x.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){x.onload()}};A.insertBefore(x,A.firstChild)},p=[],o,r,m,t,s;if(arguments.length){for(var q=0,n=arguments.length;q<n;q++){if($.isFunction(arguments[q])){if(o==undefined){o=arguments[q]}else{if(r==undefined){r=arguments[q]}else{break}}}else{if(arguments[q]===false){if(o!=undefined&&r==undefined){r=o}}else{m=arguments[q].toString();if(m.search(/https?:\/\//)!==0&&m.charAt(0)!="/"){m="/"+m}p.push(m)}}}t=p.length;s=0;for(var q=0;q<t;q++){m=p[q];k(m,function(){if(++s>=t){o&&o()}},function(){r&&r(m)})}}},loadCss:function(){var o,n=function(p){var q=document.getElementsByTagName("head")[0],l;if(i[p]&&i[p].status==b){return true}if(!q||!q.firstChild){throw new Error("Cannot load css until DOM ready")}l=document.createElement("link");l.rel="stylesheet";l.href=p;q.appendChild(l);i[p]={status:b}};if(arguments.length){for(var m=0,k=arguments.length;m<k;m++){o=arguments[m];if(o.search(/https?:\/\//)!==0&&o.charAt(0)!="/"){o="/"+o}n(o)}}}};return e})();var LocationHash=(function(){var g=[],j=undefined,c,f=function(){var n;if((typeof j!="undefined")&&(location.hash.substr(1)==j||location.hash.substr(1)==decodeURIComponent(j))){return}b.getData(true);n=b.Data(c);j=c.raw;for(var m=0,k=g.length;m<k;m++){g[m](n)}},d=function(k){return encodeURIComponent(k)},e=function(k){return decodeURIComponent(k)},h=function(q){var u,k,m,t,o,r;if(typeof q=="undefined"){q=location.hash.substr(1)}u=b.Data({raw:q});k=q.split(b.paramsInitSign);m=k.shift();t=k.join(b.paramsInitSign);u.parts=m.split(b.partsSeparator);if(t){o=t.split(b.paramsSeparator);for(var s=0,n=o.length;s<n;s++){r=o[s].split("=");if(r[0]&&(typeof r[1]!="undefined")){u.params[e(r[0])]=e(r[1])}}}return u},a=function(n){var l,k=[],m;if(n.parts){l=n.parts.join(b.partsSeparator)}if(n.params){$.each(n.params,function(o){if(typeof this!="undefined"){k.push([d(o),d(this.toString())].join("="))}});if(k.length){m=b.paramsInitSign+k.join(b.paramsSeparator)}}return[l,m].join("")},i=function(l,m){var k;j=l;c=undefined;if(!location.hash&&!l){return}if(m){k=location.href.split("#");k[1]=l;location.replace(k.join("#"))}else{location.hash=l}},b={partsSeparator:"/",paramsSeparator:"&",paramsInitSign:":",addListener:function(k){if(!$.isFunction(k)){return}g.push(k)},getData:function(k){if(!c||k){c=h()}return c},update:function(){var l,m=false,k=Array.prototype.slice.call(arguments);if(k[0]===false||k[0]===true){m=k.shift()}switch(k.length){case 0:return;case 1:l=a(this.Data(k[0]));break;case 2:default:l=a(this.Data({parts:setArray(k[0]),params:k[1]}));break}if(typeof l!="undefined"){i(l,m)}},extend:function(){var l=false,k=Array.prototype.slice.call(arguments);if(k[0]===false||k[0]===true){l=k.shift()}i(a(this.Data($.extend({},this.getData(),k[0]))),l)},Data:function(k){var l={parts:[],params:{},raw:"",update:function(m){$.extend(l,m)},toString:function(){return a(this)}};if($.isPlainObject(k)){$.extend(l,k)}else{if(k){l=h(k.toString().split("#").pop())}}return l},getParamsStr:function(){var k=location.hash.substr(1),l=k.split(this.paramsInitSign);return l.length>1?l.pop():""}};$(window).bind("hashchange",f);return b})();var GlobalListener={};(function(){var c,b="/"+trimStr(location.pathname,"/ "),d=function(){if(window.__cntQueues){c=window.__cntQueues;return c}return false};var a=GlobalListener={track:function(f){var g=[];if((!c&&!d())||typeof c!="object"){return false}for(var e in c){if(c.hasOwnProperty(e)&&c[e]&&c[e].push){c[e].push(f)}}},trackEvent:function(e){var f={url:b};if(!e||!$.isPlainObject(e)){e={url:(e||"")}}$.extend(f,e);f.url=(f.url.charAt(0)=="/"?"":b+"***")+f.url;a.track(f)},trackUrl:function(e){if(typeof(e)=="string"){e={url:e}}e.url=(e.url.charAt(0)=="/"?e.url:b+"/")+e.url;a.track(e)}}})();CounterParams=(function(){var a={created:undefined,id:undefined,lastrvmod:0,rights:0,title:undefined,url:undefined};if(window.TRACKER_DATA&&TRACKER_DATA.counter){$.extend(a,TRACKER_DATA.counter)}return a})();var UserStore=(function(){var a={url:"/user_store",quite:true},b={set:function(d){var c={data:{},key:undefined,value:undefined,success:function(){},complete:function(){},error:function(){}};if($.isPlainObject(d)){$.extend(c,d)}else{if(arguments.length){c.data.key=arguments[0];c.data.value=arguments[1]}}if(typeof c.key!="undefined"){c.data.key=c.key;c.data.value=c.value}$.request({type:"POST",quite:a.quite,url:a.url,data:c.data,success:function(e){c.success(e)},error:function(e){c.error(e)},complete:function(e){c.complete(e)}})},unset:function(c){this.set(c)},get:function(d){var c={data:{},key:undefined,success:function(){},complete:function(){},error:function(){}};if(d&&$.isPlainObject(d)){$.extend(c,d)}else{if(arguments.length){c.data.key=arguments[0]}}if(typeof c.key!="undefined"){c.data.key=c.key}$.request({type:"GET",quite:a.quite,url:a.url,data:c.data,success:function(e){if($.isEmptyObject(e)){e=undefined}c.success(e)},error:function(e){c.error(e)},complete:function(e){c.complete(e)}})}};return b})();$.status=function(d){var a=$.status,c,b=function(){clearTimeout(c);c=undefined};!$.status.isInitialized&&$.extend($.status,{settings:{delayOff:1000,align:"center",topAttach:true,defaultProgressMsg:message("loading"),defaultErrorMsg:message("error"),containerCss:{},hiddenCss:{top:-1000},visibleCss:{top:""}},initialize:function(){a.container=$('<div id="statusbar" />').css(a.settings.containerCss).css(a.settings.hiddenCss).appendTo(document.body);a.bindEvents();a.isInitialized=true;return a},bindEvents:function(){a.container.click(function(h){var g=$(h.target);if(g.is("a")){var f=searchInClass(g,"action-");if($.isFunction(window[f])){window[f]();return false}return true}else{a.hide()}});return a},hide:function(){a.container.css(a.settings.hiddenCss);b(c);return a},show:function(){a.container.css(a.settings.visibleCss);a.place();return a},place:function(){if(a.settings.align=="center"){a.container.css({left:"50%",marginLeft:-a.container[0].clientWidth/2})}return a},msg:function(f,e){a.container.attr("class",e||"").html("<strong>"+f+"</strong>");a.show();return a},msgTmp:function(f,e){a.msg(f,e).show();b(c);c=setTimeout(function(){c&&a.hide();b()},a.settings.delayOff);return a},msgProgress:function(e){b();a.msg(e||a.settings.defaultProgressMsg,"progress");return a},msgError:function(e){b();a.msgTmp(e||a.settings.defaultErrorMsg,"error");return a},msgErrorSticky:function(e){b();a.msg(e||a.settings.defaultErrorMsg,"error");return a}})&&$.status.initialize();if(d){$.status.msgTmp(d)}return $.status};$.status.progress=function(a){return $.status().msgProgress(a)};$.status.error=function(a){return $.status().msgError(a)};$.status.errorSticky=function(a){return $.status().msgErrorSticky(a)};var metaStatus=(function(){var l,k=false,c=0,j=undefined,a=undefined,h=function(){if(k){return}l=$('<div id="meta-status" />').hide().delegate("a","click",function(){var m=$(this).searchInClass("action-");if(m&&e[m]){e[m](f);return false}}).delegate("#meta-status-del","click",function(){f.hide()}).appendTo($("#body-wrap"));l.show();c=l.offset().top;l.hide();$(window).scroll(d);k=true},g={},e={},i=false,b=function(){if(a){clearTimeout(a);a=undefined}},d=function(){if(!i){return}var m=$(window).scrollTop(),n=5;if(m>c-n){l.css({position:"fixed",top:n})}else{l.css({position:"absolute",top:typeof j=="undefined"?"":j})}},f={show:function(m){h();var n={html:undefined,actions:{},delBtn:true,delay:60};m&&$.extend(true,n,m);if(!n.html){this.hide();return}if(n.actions){e=n.actions}l.html(n.html).show();i=true;if(n.delBtn){$('<span id="meta-status-del" />').appendTo(l)}d();b();if(n.delay&&n.delay>0){a=setTimeout(function(){f.hide()},n.delay*1000)}},hide:function(){b();l&&l.hide();i=false},setPosition:function(m){h();if($.isFunction(m)){}else{if($.isPlainObject(m)){l.css(m);if(m.top){c=m.top;j=m.top}}}}};return f})();(function(){var b={},a=function(d){var e={data:{},url:location.pathname,start:function(){},cancel:function(){},success:function(){},error:function(){},complete:function(){},type:"GET",dataType:"json",queueEngine:undefined};d&&$.extend(e,d);return e},c=function(k){var d=[],l=true,f=undefined,e={clear:[],run:[],stop:[]},j=function(n){if(e[n]&&e[n].length){for(var o=0,m=e[n].length;o<m;o++){e[n][o].apply(h)}}},i=function(){if(f||!l){return}if(d.length==0){j("clear");return}f=d.shift();f.start();$.request(f)},g=function(o){var n=a(o),m=n.success,p=n.error,q=n.complete;delete n.queue;n.queueEngine=h;n.success=function(){m.apply(n,arguments)};n.error=function(){p.apply(n,arguments)};n.complete=function(){q.apply(n,arguments);f=undefined;i()};return n},h={push:function(m){d.push(g(m));i()},run:function(){if(!l){l=true;i()}},stop:function(){if(l){l=false}},clear:function(){for(var n=0,m=d.length;n<m;n++){d[n].cancel()}d=[];j("clear")},addListener:function(m,n){if(!e[m]){e[m]=[]}e[m].push(n)},getLength:function(){return d.length},isEmpty:function(){return(d.length==0&&!h.isInAction())},isRunning:function(){return l},isInAction:function(){return !!f}};if(k){if(k.clear){h.addListener("clear",k.clear)}}return h};$.request=function(f){var d=f.success,e=f.error;f.success=function(g){$.status().hide();if(g&&g.lastrvmod){CounterParams.lastrvmod=+g.lastrvmod}d&&d(g)};f.error=function(g){$.status().hide();e&&e(g)};if(!f.quite){$.status.progress()}if(!f.data){f.data={}}if(!f.type||f.type.toLowerCase()=="get"){f.rnd!==false&&(f.data.rnd=Math.round(Math.random()*10000));!f.data.lc&&window.LANG&&(f.data.lc=window.LANG)}if(!f.url){f.url=location.pathname}f=$.extend({dataType:"json",type:"GET"},f);if(f.queue===true){$.requestQueue().push(f)}else{if(f.queue){$.requestsQueue(f.queue).push(f)}else{$.ajax(f)}}};$.requestsQueue=function(){var h="_main",d,g=Array.prototype.slice.call(arguments,0);if(!$.isPlainObject(g[0])){h=g.shift()}if(!(d=b[h])){d=c();b[h]=d}if(g.length){for(var f=0,e=g.length;f<e;f++){d.push(g[f])}}return d}})();var ISELECTOR_INIT_CLASS="selector-holder",ISELECTOR_SUBNAME_BASE="selector-",ISELECTOR_PLUGINS_BASE="plugin_";function iSelector(a){a&&this.initialize(a)}iSelector.prototype={initialize:function(a){var c=this;this.container=a;this.subnames=[];if(!this.container){return false}$.each(this.container.className.split(" "),function(d){if(this!=ISELECTOR_INIT_CLASS&&this.search(ISELECTOR_SUBNAME_BASE)==0){c.subnames.push(this.substr(ISELECTOR_SUBNAME_BASE.length))}});this.selector=$('<span class="selector-btn"><span></span><strong>▼</strong></span>').appendTo(this.container)[0];this.body=$('<div class="selector-body"><div class="shadow iepng"></div></div>').appendTo(this.container);this.bodyShadow=$(".shadow",this.body)[0];this.bodyCore=$('<div><span class="selector-body-collapse"><span><strong>▲</strong><span></span></span></span></div>').appendTo(this.body)[0];this.bodyCollapseBtn=$(".selector-body-collapse",this.container)[0];if(OPERATING_SYSTEM.isUnix||BROWSER.isIE6){this.bodyIframe=$('<iframe src="javascript:false;" frameborder="0"></iframe>').appendTo(this.body);$(window).resize(function(){c.hideBody()})}var b=function(){c.toggleBody();return false};$(this.selector).click(b);$(this.bodyCollapseBtn).click(b);$(this.bodyCore).hide();$(this.bodyShadow).hide();$(this.body).click(function(d){d.stopPropagation()});this.runAlternate("initialize");this.actualize()},kill:function(){$(this.selector).remove();$(this.body).remove()},actualize:function(){this.runAlternate("actualize")},toggleBody:function(a){$(document.body).triggerHandler("anyClick",[$(this.selector)]);var c=this;var b=function(){if(c.bodyIframe){var d=$(c.bodyCore).height();if(!d){$(c.bodyCore).show();d=$(c.bodyCore).children().height()*1.2;$(c.bodyCore).hide()}c.bodyIframe.width($(c.bodyCore).width()+4).height($(c.bodyCore).height()+4);$(c.bodyIframe).show()}};if(this.isBodyActive()){$(this.bodyShadow).hide();this.bodyIframe&&$(this.bodyIframe).hide();c.runAlternate("close")}$(this.bodyCore).slideToggle(100,function(){c.setLayout();$.isFunction(a)&&a();if(c.isBodyActive()){b();c.runAlternate("open")}})},setLayout:function(){var d=this;if(this.isBodyActive()){if(this.bodySpecialCore){var b={width:this.sizerWidth||$(this.bodySpecialCore).width(),height:$(this.bodySpecialCore).height()+($displaying($(this.bodyCollapseBtn))?$(this.bodyCollapseBtn).height():20)},a=[this.bodyCore,this.bodyShadow]}else{var b={width:$(this.bodyCore).width(),height:$(this.bodyCore).height()+100},a=this.bodyShadow}$(a).css(b);if(this.bodyIframe){var c=$(this.bodyCore).height();if(!c){$(this.bodyCore).show();c=$(this.bodyCore).children().height()+10;$(this.bodyCore).hide()}this.bodyIframe.css({width:$(this.bodyCore).width()+6,height:c+6})}}else{$(this.bodyShadow).hide()}},setIframe:function(){if(this.bodyIframe){var a=$(this.bodyCore).height();if(!a){$(this.bodyCore).show();a=$(this.bodyCore).children().height()+10;$(this.bodyCore).hide()}this.bodyIframe.css({width:$(this.bodyCore).width()+6,height:a})}},hideBody:function(){$(this.bodyCore).hide();$(this.bodyShadow).hide();if(this.bodyIframe){$(this.bodyIframe).hide()}},showBody:function(){$(this.bodyCore).show();$(this.bodyShadow).show();if(this.bodyIframe){$(this.bodyIframe).show()}},refreshBodyDisplaying:function(){if(this.isBodyActive()){this.hideBody();this.showBody()}},isBodyActive:function(){return $displaying(this.bodyCore)},foreachSubnames:function(a){$(this.subnames).each(function(){a(this)})},runAlternate:function(b){var a=this;this.foreachSubnames(function(d){var c=ISELECTOR_PLUGINS_BASE+b+"_"+d;if($.isFunction(a[c])){a[c](a)}})}};iSelector.prototype[ISELECTOR_PLUGINS_BASE+"initialize_top"]=function(){var g=this,j=getActiveCounters(undefined,false),n=getActiveDomains(),h=getCounterId(),i=isServerlog(),c=window.PAGE_TYPE=="grants"?0:1,m=$(this.container).parent();if((!j||j.length<=c)&&(!n||n.length<=c)){this.kill();$("#current-top-selected").html($("#current-top-selected a").html());m.addClass("selector-disabled");return}$(this.body).appendTo(document.body).addClass("selector-body-top").css("position","absolute");var k=$(g.selector).height()+(BROWSER.isIE?-1:0);var d=function(){var o=$where(g.selector);$(g.body).css({left:o.left,top:(o.top+k)})};$(window).resize(d);d();this.bodySpecialCore=$('<div class="selector-central-core"  id="top-counters-selector-core"></div>').prependTo(this.bodyCore);var e=location.pathname.split("/"),a="/"+counterUrl(),f=(e[3]=="report"?e.slice(3,5):(e[3]=="printable"?e.slice(3,4):e.slice(3))).join("/"),l=function(p){var q=[];$.each(p,function(r){var o="/"+counterUrl(this.seid),t=f+(e[3]=="report"?"/":"");if((i&&!this.serverlog)||(!i&&this.serverlog)){t="report/summary/"}var s=['<em class="accent">',(this.domain||this.url),"</em>",(this.title?"&nbsp;&mdash; "+this.title:"")].join("");q.push("<li>");if((this.id!=h&&!(!Number(this.id)&&this.url==h))){q.push('<a href="',o,"/",t,'"',' title ="',htmlspecialchars(this.url),(this.title?" — "+htmlspecialchars(this.title):""),'"',">",s,"</a>")}else{q.push('<strong title="',htmlspecialchars(this.url),(this.title?" — "+htmlspecialchars(this.title):""),'">',s,"</strong>")}q.push("</li>")});return q.join("")};if(a=="/grants"){a="/counter";f="report/summary"}this.counterListWrap=$(['<div id="top-counters-selector-list-wrap">',(n.length&&j.length?"<h3>"+_("Counters")+"</h3>":""),"<ul>",l(j),"</ul>",(n.length?(j.length?"<h3>"+_("Domains")+"</h3>":"")+"<ul>"+l(n)+"</ul>":""),"</div>"].join("")).prependTo(this.bodySpecialCore);this.bodySpecialCore.width(320);var b=$('<span class="fade"><span class="fade-core"></span></span>').appendTo(this.counterListWrap);$("a",this.bodySpecialCore).click(function(){if(window.ActiveTrackerReport&&ActiveTrackerReport.transformExitUrl){SitePage.redirect(ActiveTrackerReport.transformExitUrl(this.href));return false}else{preserveHashOnClick(this,true)}return true});this.title=$("#current-top-selected a").click(function(){g.toggleBody();return false});(function(){var o=m.offset();o.right=o.left+m.outerWidth();if(window.metaStatus){metaStatus.setPosition({top:o.top-2,left:o.right+10})}})()};iSelector.prototype[ISELECTOR_PLUGINS_BASE+"open_top"]=function(){var c=this.bodySpecialCore.find("li:has(>strong)"),a=c.position(),b=c.parent().position();a&&!isNaN(a.top)&&this.bodySpecialCore.scrollTop(a.top+(b.top||0))};iSelector.prototype[ISELECTOR_PLUGINS_BASE+"close_top"]=function(){BROWSER.isGecko&&this.bodySpecialCore.scrollTop(0)};function hideAllSelectors(){$.each(window.selectors,function(){this.hideBody()})}function getActiveCounters(d,a){if(d==undefined){d=1}if(!window.ACTIVE_COUNTERS){window.ACTIVE_COUNTERS=[];var e=window.USER_ALL_COUNTERS||window.USER_COUNTERS;if(e){$.each(e,function(){if(this.id||a){this.domain=getDomainName(this.url);window.ACTIVE_COUNTERS.push(this)}})}}var c=[];if(d){for(var b=0;b<window.ACTIVE_COUNTERS.length;b++){if((window.ACTIVE_COUNTERS[b]["rights"]!=undefined&&window.ACTIVE_COUNTERS[b]["rights"]>=d)||(window.ACTIVE_COUNTERS[b]["rights"]==undefined&&a)){c.push(window.ACTIVE_COUNTERS[b])}}}else{c=$.extend([],window.ACTIVE_COUNTERS)}return c}function getActiveDomains(){if(window.USER_DOMAINS){return window.USER_DOMAINS}return[]}function getCounterId(){return window.TRACKER_DATA?TRACKER_DATA.counter["id"]:null}function isServerlog(){return !!(window.TRACKER_DATA&&TRACKER_DATA.counter&&TRACKER_DATA.counter.serverlog)}function getDiffSign(b,a){b=Number(b);return(!isNaN(b)?'<em class="diff '+(b>0?"positive":(b==0?"neutral":"negative"))+'">'+(b>0?'<span class="digit-sign digit-sign-plus">+</span>':(b==0?'<span class="digit-sign digit-sign-empty"></span>':'<span class="digit-sign digit-sign-empty">-</span>'))+Math.abs(b).toString().numberFormat(a)+"%<span></span></em>":"")}(function(){$.fn.inlineDropdown=function(f){if(!this.length){return}for(var d=0;d<this.length;d++){var e=this[d],c=$.data(this[d],"_inlineDropdown");if(!c){c=inlineDropdown.create(e,f);$.data(e,"_inlineDropdown",c)}else{c.update(f)}}if(f==undefined){return $.data(this[0],"_inlineDropdown")}return this};$.hideInlineDropdowns=function(c){inlineDropdown.hideAll(c)};var b=false,a=inlineDropdown=function(c,d){this.initialize(c,d)};$.extend(a,{instances:[],defaultSettings:{containerCss:{position:"absolute",top:-9000,left:-9000,zIndex:10000},bodyCss:{},iframeCss:{position:"absolute",zIndex:1,top:"-1px",left:"-1px"},offset:{left:0,top:0},keyword:undefined,targetClass:"inline-dropdown-target",targetDisabledClass:"inline-dropdown-disabled",containerClass:"inline-dropdown-container",containerKeywordBaseClass:"inline-dropdown-container-id-",bodyClass:"inline-dropdown-body",bodyCoreClass:"inline-dropdown-body-core",bodyContentClass:"inline-dropdown-content",shadowClass:"inline-dropdown-shadow",align:"l"},create:function(d,e){if(!b){a.initialize();b=true}var c=new inlineDropdown(d,$.extend(e,{_id:a.instances.length}));a.instances.push(c);return c},remove:function(c){if(c&&a.instances[c]){a.instances.splice(c,1);a.actualize()}},actualize:function(){var d,e;for(var c=0;c<a.instances.length;c++){d=a.instances[c];if(!d.settings||!d.id){continue}d.id(c)}},initialize:function(){$.templater().register({inlineDropdownContainer:['<div class="%(containerClass)">','<div class="%(bodyClass)">','<div class="%(bodyCoreClass)">',"</div>","</div>","</div>"],inlineDropdownIframe:'<iframe frameborder="0" src="javascript:false;"></iframe>',inlineDropdownShadow:'<div class="%(shadowClass)"></div>'});a.bindEvents()},hideAll:function(d){for(var c=0;c<a.instances.length;c++){var e=a.instances[c];if(!e.settings||e.id()==d||!e.isVisible()){continue}e.hide()}},bindEvents:function(){$(document.body).bind("anyClick",function(f,d){var c=a.defaultSettings.targetClass,h=a.defaultSettings.containerClass;if(d.is(["."+c,"."+c+" *"].join(", "))){var g=$.data(d.closest("."+c)[0],"_inlineDropdown");a.hideAll(g?g.id():null)}else{if(d.is("."+h+" *")){var g=$.data(d.closest("."+h)[0],"_inlineDropdown");a.hideAll(g.id())}else{a.hideAll()}}});$(window).resize(function(){a.hideAll()})}});inlineDropdown.prototype={container:undefined,target:undefined,settings:{onHide:function(){},showOnInit:false,destroyOnHide:false},initialize:function(e,c){var d=this;this.enabled=true;this.settings=$.extend(true,{},a.defaultSettings,c);this.target=$(e).addClass(this.settings.targetClass);$.each(this.target.attr("class").split(" "),function(){var f;if((f=trimStr(String(this)).match(/^inline-dropdown-settings-(.+)-(.+)$/))&&f.length&&f[1]){d.settings[f[1]]=f[2]}});this.container=$($.templater().fetch("inlineDropdownContainer",this.settings)).css(this.settings.containerCss).hide();if(this.settings.keyword){this.container.addClass(this.settings.containerKeywordBaseClass+this.settings.keyword)}$.data(this.container[0],"_inlineDropdown",this);this.body=$("."+this.settings.bodyClass,this.container).css(this.settings.bodyCss);this.bodyCore=$("."+this.settings.bodyCoreClass,this.container);this.shadow=$("."+this.settings.shadowClass,this.container);this.bodyContent=(this.settings.bodyContent?$(this.settings.bodyContent):this.target.nextAll("div").eq(0)).addClass(this.settings.bodyContentClass);this.bodyContent.show().appendTo(this.bodyCore);this.iframe=(BROWSER.isIE6||OPERATING_SYSTEM.isUnix)?$($.templater().fetch("inlineDropdownIframe")).css(this.settings.iframeCss).appendTo(this.container):undefined;this.container.appendTo(document.body);this.bindEvents();if(this.settings.showOnInit){this.show()}return this},bindEvents:function(){var c=this;this.target.bind("click.inlineDropdown",function(){c.toggle()});this.bodyContent.bind("click.inlineDropdown",function(d){if($.isFunction(c.settings.bodyClick)){return c.settings.bodyClick(d,c)}});return this},toggle:function(){this[this.isVisible()?"hide":"show"]();return this},isVisible:function(){return this.container.is(":visible")},hide:function(){this.container.hide();this.settings.onHide&&this.settings.onHide();this.settings.destroyOnHide&&this.destroy();return this},show:function(){if(!this.enabled){return false}this.container.show();this.place();this.settings.onShow&&this.settings.onShow(this);return this},disable:function(){this.enabled=false;this.target.addClass(this.settings.targetDisabledClass)},enable:function(){this.enabled=true;this.target.removeClass(this.settings.targetDisabledClass)},place:function(){var d=this.target.offset();this.container.css({left:d.left+(this.settings.align=="r"?-this.body.width()+this.target.width():0)+(this.settings.offset.left||+this.settings.offsetLeft||0),top:d.top+this.target.height()-1+(this.settings.offset.top||+this.settings.offsetTop||0)});if(this.iframe){var c={width:this.body.width(),height:this.body.height()};this.iframe&&this.iframe.css({width:c.width+4,height:c.height+4})}return this},update:function(c){$.extend(true,this.settings,c);return this},id:function(c){if(typeof c!="undefined"){this.settings._id=c}return this.settings._id},destroy:function(){$.data(this.target[0],"_inlineDropdown",undefined);$.data(this.container[0],"_inlineDropdown",undefined);this.target.unbind("click.inlineDropdown");this.bodyContent.unbind("click.inlineDropdown");this.container.remove();a.remove(this.id())}}})();(function(b){if(!b){return false}if(!window._wSelectsGlobal){window._wSelectsGlobal=[]}var c=window._wSelectsGlobal,a=function(h){var j;for(var g=0,f=c.length;g<f;g++){j=c[g];if(j.globalId&&j.hide&&j.globalId()!=h){j.hide()}}},e=function(f){if(!c.length){b(document.body).bind("anyClick",function(j,i){var h="w-select",k="w-select-dd",g;if(i.is(["."+h,"."+h+" *"].join(", "))){g=b.data(i.closest("."+h)[0],"_wSelect");a(g?g.globalId():undefined)}else{if(i.is("."+k+",."+k+" *")){if((g=b.data(i.closest("."+k)[0],"_wSelect"))&&g.globalId){a(g.globalId())}}else{a()}}});b(window).resize(a)}c.push(f);return c.length-1},d=(function(l,f){var r=false,v,p,s,g,t={fitSelect:true,fitContent:true,slide:100,offsetLeft:0,offsetTop:-1,onchange:function(){}},w=0,j,k=[],m=true,u=function(){p.toggleClass("w-select-disabled",!m)},q=function(){if(!s||!s.length){s=b('<div class="w-select-dd"></div>').css({position:"absolute",zIndex:"10000"}).hide().appendTo(document.body);b.data(s[0],"_wSelect",this);g=b('<ul class="w-select-dd-list"></ul>').appendTo(s).delegate("li:not(.w-select-item-disabled)","click",function(A){var y=b(A.target),z,x;z=y.prevAll("li").length;x=(z!=j);o.val(z);o.hide();if(x){t.onchange.apply(o,[i()])}});n()}return s},n=function(){if(!g||!g.length){return false}var z=[];for(var y=0,x=k.length;y<x;y++){z.push('<li class="',k[y]["disabled"]?" w-select-item-disabled":"",k[y]["accented"]?" w-select-item-accented":"",'">',k[y]["caption"],"</li>")}g.html(z.join(""));if(!s.is(":visible")){s.css({left:-9000,top:-9000}).show();w=g.width();s.hide()}if(j!=undefined){g.find(">li").eq(j).addClass("selected")}},h=function(A){var z,B;if(A==undefined){B=0}else{if(!isNaN(A)){B=parseInt(A)}else{if(typeof A=="object"){A=A.value}for(var y=0,x=k.length;y<x;y++){if(k[y]["value"]==A){B=y;break}}}}if(B!=undefined&&k[B]){j=B;z=k[B];g&&g.find(">li").removeClass("selected").eq(B).addClass("selected");p.html(z.caption)}},i=function(){return k[j]?k[j].value:undefined},o={init:function(){if(r||!p||!p.length){return false}p.click(function(){m&&o.toggle()});v=e(o);r=true},setOptions:function(x,y){k=x.concat();n();h((function(){var B;for(var A=0,z=k.length;A<z;A++){if(k[A]&&!k[A].disabled){if(typeof B=="undefined"){B=A}if(typeof y=="undefined"||y==k[A]["value"]){B=A;break}}}return B||0})())},getOptionsLength:function(){return k.length},disable:function(){m=false;u()},enable:function(){m=true;u()},val:function(x){if(x!=undefined){h(x)}return i()},render:function(){},show:function(){q();if(t.slide){this.place();s.slideDown(t.slide!==true?t.slide:"fast")}else{s.show();this.place()}},getSelectedData:function(){return k[j]?k[j].data:{}},hide:function(){s&&s.hide()},toggle:function(){if(s&&s.is(":visible")){this.hide()}else{this.show()}},place:function(){var y=p.offset(),x;s.css({left:y.left+(t.offsetLeft||0),top:y.top+p.outerHeight()+(t.offsetTop||0)});if(t.fitSelect){x=p.width()}if(t.fitContent&&w){x=Math.max(x||0,w)}if(x){s.width(x)}return this},update:function(x){b.extend(true,t,x)},globalId:function(){return v}};l&&(p=b(l));f&&b.extend(t,f);o.init();return o});b.fn.wSelect=function(k){if(!this.length){return}for(var h=0,g=this.length;h<g;h++){var j=this[h],f=b.data(this[h],"_wSelect");if(!f){f=d(j,k);b.data(j,"_wSelect",f)}else{f.update(k)}}return b.data(this[0],"_wSelect")}})(jQuery);(function(a){a.fn.urlPlaceholder=function(){var c=_("-field-url-placeholder"),b=_("-field-url-placeholder-prefix");if(this&&this.length){a(this).each(function(){var f=a(this),h=f.attr("id")||(function(){var i="field-url-"+Math.round(Math.random()*10000);f.attr("id",i);return i})(),g=f.wrap('<span class="field-url-wrapper" />').parent().css({position:"relative"}),e=a(['<label for="',h,'" class="field-url-label">',"<em>",b,"</em>",c,"</label>"].join("")).css({display:"none",position:"absolute",zIndex:10,top:f.css("paddingTop"),left:f.css("paddingLeft"),marginTop:f.css("borderTopWidth"),marginLeft:parseInt(f.css("borderLeftWidth"))+1+"px"}).insertBefore(f),d=function(){var i=trimStr(f.val());if(i&&i!=b){e.hide()}else{e.show();f.val("")}};f.focus(function(){e.hide();if(!trimStr(f.val())){setTimeout(function(){f.val(b);moveCaretToEnd(f)},0)}}).blur(d);d()})}return this}})(jQuery);var helpHint=function(a,b){this.initialize(a,b)};(function(){var b=helpHint,a;$.extend(b,{defaultData:{containerId:"help-hint",offset:{left:0,top:0}},initialize:function(){$.templater().register({helpHintContainer:['<div id="%(containerId)" class="%(containerClass)">','<div id="%(containerId)-core">','<h3 id="%(containerId)-title" class="%(applyIf:!title,hidden)">%(title)</h3>','<div id="%(containerId)-content" class="%(contentClass)">',"%(content)","</div>","</div>",'<span id="%(containerId)-bottom"></span>',"</div>"]})},getInstance:function(c,d){if(!a){b.initialize();a=new helpHint(c,d)}else{c&&a.setTarget(c);d&&a.setData(d)}return a},show:function(c,d){return b.getInstance(c,d).render().place()},hide:function(){return b.getInstance().hide()}});helpHint.prototype={initialize:function(c,d){this.data=$.extend(true,{},b.defaultData,d);this.setTarget(c);this.container=$($.templater().fetch("helpHintContainer",this.data)).hide().css({position:"absolute",zIndex:10005}).appendTo(document.body);this.contentContainer=$("#"+this.data.containerId+"-content",this.container);this.titleContainer=$("#"+this.data.containerId+"-title",this.container);this.bindEvents();return this},bindEvents:function(){var c=this;$(document.body).bind("anyClick",function(f,d){if(!d.is("#"+c.data.containerId+" *")){c.hide()}});return this},render:function(){this.setTitle(this.data.title).setContent(this.data.content);return this},setData:function(c){this.data=$.extend(true,this.data,c);return this},setTarget:function(c){this.target=$(c);return this},setTitle:function(c){this.titleContainer.html(c||"").toggle(!!c);return this},setContent:function(c){this.contentContainer.html(c);return this},place:function(){this.show();var c=this.target.offset();this.container.css({top:c.top-this.container.outerHeight()-13+this.data.offset.top,left:c.left-25+this.data.offset.left});return this},show:function(){this.container.show();return this},hide:function(){this.container.hide();return this}}})();var helpBalloon=function(f,m){var n,c,o,e,d,p,k=false,l=false,a=false,b,g,h=12,s={html:"",className:"",keyword:"",type:"info",orientation:undefined,offsetX:0,offsetY:0,css:{},live:true,liveClick:false,liveHover:true,smartHover:true,hoverDelay:300,onShow:function(){},onHide:function(){},targetCursor:undefined,preventDefault:true,closeButton:true,hideTarget:false},q=function(){var t;if(o&&o.length){return false}if(!helpBalloon._items){helpBalloon._items=[];$(document.body).bind("anyClick",function(y,u){var x=u.attr("__helpBalloonId");if(!u.is(".help-balloon, .help-balloon *")){for(var w=0,v=helpBalloon._items.length;w<v;w++){if(x==undefined||helpBalloon._items[w].data("id")!=x){helpBalloon._items[w].hide()}}}});$(window).resize(function(){for(var v=0,u=helpBalloon._items.length;v<u;v++){helpBalloon._items[v].isVisible()&&helpBalloon._items[v].place()}})}t=helpBalloon._items.length;helpBalloon._items.push(j);if(DEVICE.isTouchDevice&&s.liveHover){s.liveHover=false;s.liveClick=true;s.closeButton=true}j.data("id",t);if(c){if(s.live){if(s.liveHover){c.hover(function(){if(window.__disableTooltips){return}l=true;if(s.smartHover){j.smartShow()}else{j.show()}},function(){if(window.__disableTooltips){return}l=false;if(s.smartHover){j.smartHide()}else{j.hide()}});if(s.preventDefault){c.click(function(u){u.preventDefault()})}c.css("cursor","default")}if(s.liveClick){c.click(function(u){u.preventDefault();u.stopPropagation();if(window.__disableTooltips){return}j.toggle();return false}).css("cursor","pointer")}}if(s.targetCursor){c.css("cursor",s.targetCursor)}c.attr("__helpBalloonId",t);c.data("__helpBalloon",j)}return true},i=function(){if(!o||!o.length){o=$(['<div class="',r(),'">','<div class="help-balloon-content">',s.html,"</div>",'<span class="help-balloon-pin"></span>','<span class="help-balloon-close"></span>',"</div>"].join("")).css({position:"absolute",left:-9000,top:-900}).css(s.css).appendTo(document.body).hover(function(){a=true},function(){a=false;if(s.liveHover&&s.smartHover){j.smartHide()}});e=o.find(">div.help-balloon-content");d=o.find(">span.help-balloon-close").click(function(){j.hide()});p=o.find(">span.help-balloon-pin")}},r=function(){var t=["help-balloon","help-balloon-type-"+s.type,"help-balloon-closebtn-"+(s.closeButton?"on":"off")];if(s.className){t.push(s.className)}if(s.keyword){t.push("help-balloon-id-"+s.keyword)}return t.join(" ")},j={show:function(){if(!k){i();this.place();if(s.hideTarget){c.css("visibility","hidden")}k=true;s.onShow()}return this},hide:function(){if(k){o&&o.remove();o=undefined;e=undefined;d=undefined;if(s.hideTarget){c.css("visibility","visible")}k=false;s.onHide()}return this},smartShow:function(){if(b){clearTimeout(b);b=undefined}b=setTimeout(function(){if(l||a){j.show()}b=undefined},s.hoverDelay)},smartHide:function(){if(g){clearTimeout(g);g=undefined}g=setTimeout(function(){if(!l&&!a){j.hide()}g=undefined},s.hoverDelay)},toggle:function(){if(k){this.hide()}else{this.show()}return this},place:function(){if(!o){return this}var w=s.orientation,C=c.offset(),E=c.width(),A=c.height(),D=o.outerWidth(),z=o.height(),y,u,v,t={left:"",top:"",marginLeft:"",visibility:"visible"},B=20,x;if(!w){y=$(document.body).width();u=$(document.body).height();if(C.left+E+h+s.offsetX+D<y){w="r"}else{if(C.left-D-h+s.offsetX>0){w="l"}else{if(C.top-z-h+s.offsetY>0){w="t"}else{w="r"}}}}switch(w){case"r":v={left:C.left+E+h+s.offsetX,top:Math.max(0,C.top-0.5*(z-A)+s.offsetY)};break;case"tr":v={left:C.left+E+h+s.offsetX,top:Math.max(0,C.top-z+s.offsetY)};break;case"t":y=$(document.body).width();v={left:C.left-0.5*(D+E)+s.offsetX,top:Math.max(0,C.top-z-h+s.offsetY)};if(v.left<0){t.marginLeft=v.left;v.left=0}if(v.left+D>y){x=v.left+D-y+5;v.left-=x;if(x+B>D/2){t.visibility="hidden"}else{t.marginLeft=x}}break;case"l":v={left:C.left-D-h+s.offsetX,top:Math.max(0,C.top-0.5*(z-A)+s.offsetY)};break}o.css(v).attr("class",r()+" help-balloon-orientation-"+w);p.css(t);k=true;return this},content:function(t){if(t!=undefined){s.html=t}e&&e.html(s.html);return this},isVisible:function(){return k},data:function(t,u){return storage(s,t,u)}};if(f){c=$(f);n=c.data("__helpBalloon");if(n){n.data(m);return n}}if(m!=undefined){if((m.liveHover||!m.liveClick)&&(typeof m.closeButton=="undefined")){m.closeButton=false}j.data(typeof m=="object"?m:{html:m})}if(c&&c.hasClass("icon-pin")&&m.hideTarget==undefined){s.hideTarget=true}q();return j};$.fn.helpBalloon=function(d){var b,e;for(var c=0,a=this.length;c<a;c++){b=$(this[c]);e=b.data("__helpBalloon");if(e){return e}else{e=helpBalloon(b,d);b.data("__helpBalloon",e)}return e}return this};var iconPin=function(b){var d={$parent:undefined,$target:undefined,type:"info",orientation:"tr",keyword:undefined,balloon:undefined,htmlClass:undefined},c,a,g=false,f=function(){if(g){return}if(!d.$parent&&!d.$target){return false}a=$(e.asHtml());if(d.$parent){a.appendTo(d.$parent)}else{if(d.$target){switch(d.orientation){case"tr":case"br":d.$target.after(a);break;case"tl":case"bl":default:d.$target.before(a);break}}}if(d.balloon){if(typeof d.balloon.liveClick=="undefined"&&typeof d.balloon.liveHover=="undefined"){d.balloon.liveClick=true;d.balloon.liveHover=false}c=a.helpBalloon(d.balloon)}g=true},e={data:function(h,i){return storage(d,h,i)},asHtml:function(){return['<span class="icon-pin icon-pin-',d.type," icon-pin-orientation-",d.orientation,(d.htmlClass?" "+d.htmlClass:""),'"',(d.keyword?' id="icon-pin-'+d.type+"-"+d.keyword+'"':""),"></span>"].join("")},remove:function(){a.remove()}};if(b!=undefined){e.data(typeof b=="object"?b:{html:b})}f();return e};var fieldHint=function(l,b){var h,c,o,a,m,j=false,i=12,f={html:"",orientation:"t",offsetX:0,offsetY:0,live:true,css:{}},k=true,d=false,n=function(){var p=false;if(o&&o.length){return false}if(c){if(f.live){c.bind("focus select",function(){e.show()}).blur(function(r){var q=$(r.target);d=true;setTimeout(e.hide,100)})}c.attr("__fieldHintTarget","1");c.data("__fieldHint",e)}$(document.body).bind("anyClick",function(r,q){if(e.isVisible()&&!q.is(".field-hint, .field-hint *, [__fieldHintTarget]")){e.hide()}});$(window).resize(function(){e.isVisible()&&e.place()});return true},g=function(){if(!o||!o.length){o=$(['<div class="field-hint">','<div class="field-hint-content">',f.html,"</div>",'<span class="field-hint-pin"></span>',"</div>"].join("")).css(f.css).appendTo(document.body);a=o.find(">div.field-hint-content")}},e={show:function(){g();this.place();if(d){k=false}j=true;return this},hide:function(){d=false;if(!k){k=true;return false}o&&o.remove();o=undefined;a=undefined;j=false;return this},toggle:function(){if(j){this.hide()}else{this.show()}return this},place:function(){var r=f.orientation,v=c.offset(),q=c.width(),u=c.height(),p=o.width(),t=o.height(),w,s;if(!r){w=$(document.body).width();s=$(document.body).height();if(v.left+q+i+f.offsetX+p<w){r="r"}else{if(v.left-p-i+f.offsetX>0){r="l"}else{if(v.top-t-i+f.offsetY>0){r="t"}else{r="r"}}}}switch(r){case"r":o.css({left:v.left+q+i+f.offsetX,top:v.top-0.5*(t-u)+f.offsetY});break;case"t":o.css({left:v.left+f.offsetX,top:v.top-t-i+f.offsetY});break;case"l":o.css({left:v.left-p-i+f.offsetX,top:v.top-0.5*(t-u)+f.offsetY});break}o.attr("class","field-hint field-hint-orientation-"+r);j=true;return this},content:function(p){if(p!=undefined){f.html=p}a&&a.html(f.html);return this},isVisible:function(){return j},data:function(p,q){return storage(f,p,q)}};if(b!=undefined){e.data(typeof b=="object"?b:{html:b})}if(l){c=$(l);h=c.data("__fieldHint");if(h){h.data(b);return h}}n();return e};$.fn.fieldHint=function(d){var b,e;for(var c=0,a=this.length;c<a;c++){b=$(this[c]);e=b.data("__fieldHint");if(e){return e}else{e=fieldHint(b,d);b.data("__fieldHint",e)}return e}return this};$.fn.blinkOver=function(e){var c,d={top:0,right:0,bottom:0,left:0},e=$.extend(true,{css:{position:"absolute",zIndex:10,left:0,top:0,right:0,bottom:0,width:"100%",height:"100%",background:"#E2E2E1",opacity:0.9},speed:500},e);for(var b=0,a=this.length;b<a;b++){c=$(this[b]);d=c.offset();d.width=c.outerWidth();d.height=c.outerHeight();$.extend(e.css,d);$("<div/>").appendTo(document.body).css(e.css).fadeOut(e.speed,function(){$(this).css("background","");c.css("position","");$(this).remove()})}return this};
