/*
 * jQuery JavaScript Library v1.4.1
 * 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: Mon Jan 25 19:43:33 2010 -0500
 */
(function(H,M){function bc(){if(!ah.isReady){try{R.documentElement.doScroll("left")}catch(c){setTimeout(bc,1);return}ah.ready()}}function bg(r,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(r,c,J,F,G,z){var v=r.length;if(typeof c==="object"){for(var K in c){ap(r,K,c[K],F,G,J)}return r}if(J!==M){F=!z&&F&&ah.isFunction(J);for(K=0;K<v;K++){G(r[K],c,F?J.call(r[K],K,G(r[K],c)):J,z)}return r}return v?G(r[0],c):null}function aF(){return(new Date).getTime()}function ao(){return false}function am(){return true}function aY(r,c,v){v[0].type=r;return ah.event.handle.apply(c,v)}function aK(O){var L,K=[],G=[],J=arguments,F,z,r,c,v,P,N=ah.extend({},ah.data(this,"events").live);if(!(O.button&&O.type==="click")){for(c in N){z=N[c];if(z.live===O.type||z.altLive&&ah.inArray(O.type,z.altLive)>-1){F=z.data;F.beforeFilter&&F.beforeFilter[O.type]&&!F.beforeFilter[O.type](O)||G.push(z.selector)}else{delete N[c]}}F=ah(O.target).closest(G,O.currentTarget);v=0;for(P=F.length;v<P;v++){for(c in N){z=N[c];r=F[v].elem;G=null;if(F[v].selector===z.selector){if(z.live==="mouseenter"||z.live==="mouseleave"){G=ah(O.relatedTarget).closest(z.selector)[0]}if(!G||G!==r){K.push({elem:r,fn:z})}}}}v=0;for(P=K.length;v<P;v++){F=K[v];O.currentTarget=F.elem;O.data=F.fn.data;if(F.fn.apply(F.elem,J)===false){L=false;break}}return L}}function ag(r,c){return"live."+(r?r+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function A(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function l(r,c){var v=0;c.each(function(){if(this.nodeName===(r[v]&&r[v].nodeName)){var G=ah.data(r[v++]),J=ah.data(this,G);if(G=G&&G.events){delete J.handle;J.events={};for(var F in G){for(var z in G[F]){ah.event.add(this,F,G[F][z],G[F][z].data)}}}}})}function bf(r,c,G){var z,F,v;if(r.length===1&&typeof r[0]==="string"&&r[0].length<512&&r[0].indexOf("<option")<0&&(ah.support.checkClone||!a2.test(r[0]))){F=true;if(v=ah.fragments[r[0]]){if(v!==1){z=v}}}if(!z){c=c&&c[0]?c[0].ownerDocument||c[0]:R;z=c.createDocumentFragment();ah.clean(r,c,z,G)}if(F){ah.fragments[r[0]]=v?z:1}return{fragment:z,cacheable:F}}function aC(r,c){var v={};ah.each(aO.concat.apply([],aO.slice(0,c)),function(){v[this]=r});return v}function ak(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ah=function(r,c){return new ah.fn.init(r,c)},a3=H.jQuery,aP=H.$,R=H.document,au,al=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,E=/^.[^:#\[\.,]*$/,p=/\S/,d=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,a5=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,az=navigator.userAgent,D=false,ax=[],aB,a0=Object.prototype.toString,aT=Object.prototype.hasOwnProperty,ay=Array.prototype.push,av=Array.prototype.slice,o=Array.prototype.indexOf;ah.fn=ah.prototype={init:function(r,c){var z,v;if(!r){return this}if(r.nodeType){this.context=this[0]=r;this.length=1;return this}if(typeof r==="string"){if((z=al.exec(r))&&(z[1]||!c)){if(z[1]){v=c?c.ownerDocument||c:R;if(r=a5.exec(r)){if(ah.isPlainObject(c)){r=[R.createElement(r[1])];ah.fn.attr.call(r,c,true)}else{r=[v.createElement(r[1])]}}else{r=bf([z[1]],[v]);r=(r.cacheable?r.fragment.cloneNode(true):r.fragment).childNodes}}else{if(c=R.getElementById(z[2])){if(c.id!==z[2]){return au.find(r)}this.length=1;this[0]=c}this.context=R;this.selector=r;return this}}else{if(!c&&/^\w+$/.test(r)){this.selector=r;this.context=R;r=R.getElementsByTagName(r)}else{return !c||c.jquery?(c||au).find(r):ah(c).find(r)}}}else{if(ah.isFunction(r)){return au.ready(r)}}if(r.selector!==M){this.selector=r.selector;this.context=r.context}return ah.isArray(r)?this.setArray(r):ah.makeArray(r,this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return av.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(r,c,v){r=ah(r||null);r.prevObject=this;r.context=this.context;if(c==="find"){r.selector=this.selector+(this.selector?" ":"")+v}else{if(c){r.selector=this.selector+"."+c+"("+v+")"}}return r},setArray:function(c){this.length=0;ay.apply(this,c);return this},each:function(r,c){return ah.each(this,r,c)},ready:function(c){ah.bindReady();if(ah.isReady){c.call(R,ah)}else{ax&&ax.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(av.apply(this,arguments),"slice",av.call(arguments).join(","))},map:function(c){return this.pushStack(ah.map(this,function(r,v){return c.call(r,v,r)}))},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 r=arguments[0]||{},c=1,J=arguments.length,F=false,G,z,v,K;if(typeof r==="boolean"){F=r;r=arguments[1]||{};c=2}if(typeof r!=="object"&&!ah.isFunction(r)){r={}}if(J===c){r=this;--c}for(;c<J;c++){if((G=arguments[c])!=null){for(z in G){v=r[z];K=G[z];if(r!==K){if(F&&K&&(ah.isPlainObject(K)||ah.isArray(K))){v=v&&(ah.isPlainObject(v)||ah.isArray(v))?v:ah.isArray(K)?[]:{};r[z]=ah.extend(F,v,K)}else{if(K!==M){r[z]=K}}}}}}return r};ah.extend({noConflict:function(c){H.$=aP;if(c){H.jQuery=a3}return ah},isReady:false,ready:function(){if(!ah.isReady){if(!R.body){return setTimeout(ah.ready,13)}ah.isReady=true;if(ax){for(var r,c=0;r=ax[c++];){r.call(R,ah)}ax=null}ah.fn.triggerHandler&&ah(R).triggerHandler("ready")}},bindReady:function(){if(!D){D=true;if(R.readyState==="complete"){return ah.ready()}if(R.addEventListener){R.addEventListener("DOMContentLoaded",aB,false);H.addEventListener("load",ah.ready,false)}else{if(R.attachEvent){R.attachEvent("onreadystatechange",aB);H.attachEvent("onload",ah.ready);var r=false;try{r=H.frameElement==null}catch(c){}R.documentElement.doScroll&&r&&bc()}}}},isFunction:function(c){return a0.call(c)==="[object Function]"},isArray:function(c){return a0.call(c)==="[object Array]"},isPlainObject:function(r){if(!r||a0.call(r)!=="[object Object]"||r.nodeType||r.setInterval){return false}if(r.constructor&&!aT.call(r,"constructor")&&!aT.call(r.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in r){}return c===M||aT.call(r,c)},isEmptyObject:function(r){for(var c in r){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}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 H.JSON&&H.JSON.parse?H.JSON.parse(c):(new Function("return "+c))()}else{ah.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(r){if(r&&p.test(r)){var c=R.getElementsByTagName("head")[0]||R.documentElement,v=R.createElement("script");v.type="text/javascript";if(ah.support.scriptEval){v.appendChild(R.createTextNode(r))}else{v.text=r}c.insertBefore(v,c.firstChild);c.removeChild(v)}},nodeName:function(r,c){return r.nodeName&&r.nodeName.toUpperCase()===c.toUpperCase()},each:function(r,c,J){var F,G=0,z=r.length,v=z===M||ah.isFunction(r);if(J){if(v){for(F in r){if(c.apply(r[F],J)===false){break}}}else{for(;G<z;){if(c.apply(r[G++],J)===false){break}}}}else{if(v){for(F in r){if(c.call(r[F],F,r[F])===false){break}}}else{for(J=r[0];G<z&&c.call(J,G,J)!==false;J=r[++G]){}}}return r},trim:function(c){return(c||"").replace(d,"")},makeArray:function(r,c){c=c||[];if(r!=null){r.length==null||typeof r==="string"||ah.isFunction(r)||typeof r!=="function"&&r.setInterval?ay.call(c,r):ah.merge(c,r)}return c},inArray:function(r,c){if(c.indexOf){return c.indexOf(r)}for(var z=0,v=c.length;z<v;z++){if(c[z]===r){return z}}return -1},merge:function(r,c){var F=r.length,v=0;if(typeof c.length==="number"){for(var z=c.length;v<z;v++){r[F++]=c[v]}}else{for(;c[v]!==M;){r[F++]=c[v++]}}r.length=F;return r},grep:function(r,c,G){for(var z=[],F=0,v=r.length;F<v;F++){!G!==!c(r[F],F)&&z.push(r[F])}return z},map:function(r,c,J){for(var F=[],G,z=0,v=r.length;z<v;z++){G=c(r[z],z,J);if(G!=null){F[F.length]=G}}return F.concat.apply([],F)},guid:1,proxy:function(r,c,v){if(arguments.length===2){if(typeof c==="string"){v=r;r=v[c];c=M}else{if(c&&!ah.isFunction(c)){v=c;c=M}}}if(!c&&r){c=function(){return r.apply(v||this,arguments)}}if(r){c.guid=r.guid=r.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:{}});az=ah.uaMatch(az);if(az.browser){ah.browser[az.browser]=true;ah.browser.version=az.version}if(ah.browser.webkit){ah.browser.safari=true}if(o){ah.inArray=function(r,c){return o.call(c,r)}}au=ah(R);if(R.addEventListener){aB=function(){R.removeEventListener("DOMContentLoaded",aB,false);ah.ready()}}else{if(R.attachEvent){aB=function(){if(R.readyState==="complete"){R.detachEvent("onreadystatechange",aB);ah.ready()}}}}(function(){ah.support={};var r=R.documentElement,c=R.createElement("script"),J=R.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("*"),z=J.getElementsByTagName("a")[0];if(!(!G||!G.length||!z)){ah.support={leadingWhitespace:J.firstChild.nodeType===3,tbody:!J.getElementsByTagName("tbody").length,htmlSerialize:!!J.getElementsByTagName("link").length,style:/red/.test(z.getAttribute("style")),hrefNormalized:z.getAttribute("href")==="/a",opacity:/^0.55$/.test(z.style.opacity),cssFloat:!!z.style.cssFloat,checkOn:J.getElementsByTagName("input")[0].value==="on",optSelected:R.createElement("select").appendChild(R.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(R.createTextNode("window."+F+"=1;"))}catch(v){}r.insertBefore(c,r.firstChild);if(H[F]){ah.support.scriptEval=true;delete H[F]}r.removeChild(c);if(J.attachEvent&&J.fireEvent){J.attachEvent("onclick",function K(){ah.support.noCloneEvent=false;J.detachEvent("onclick",K)});J.cloneNode(true).fireEvent("onclick")}J=R.createElement("div");J.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";r=R.createDocumentFragment();r.appendChild(J.firstChild);ah.support.checkClone=r.cloneNode(true).cloneNode(true).lastChild.checked;ah(function(){var L=R.createElement("div");L.style.width=L.style.paddingLeft="1px";R.body.appendChild(L);ah.boxModel=ah.support.boxModel=L.offsetWidth===2;R.body.removeChild(L).style.display="none"});r=function(O){var N=R.createElement("div");O="on"+O;var L=O in N;if(!L){N.setAttribute(O,"return;");L=typeof N[O]==="function"}return L};ah.support.submitBubbles=r("submit");ah.support.changeBubbles=r("change");r=c=J=G=z=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(),aR=0,b={},an={};ah.extend({cache:{},expando:aH,noData:{embed:true,object:true,applet:true},data:function(r,c,F){if(!(r.nodeName&&ah.noData[r.nodeName.toLowerCase()])){r=r==H?b:r;var v=r[aH],z=ah.cache;if(!c&&!v){return null}v||(v=++aR);if(typeof c==="object"){r[aH]=v;z=z[v]=ah.extend(true,{},c)}else{z=z[v]?z[v]:typeof F==="undefined"?an:(z[v]={})}if(F!==M){r[aH]=v;z[c]=F}return typeof c==="string"?z[c]:z}},removeData:function(r,c){if(!(r.nodeName&&ah.noData[r.nodeName.toLowerCase()])){r=r==H?b:r;var G=r[aH],z=ah.cache,F=z[G];if(c){if(F){delete F[c];ah.isEmptyObject(F)&&ah.removeData(r)}}else{try{delete r[aH]}catch(v){r.removeAttribute&&r.removeAttribute(aH)}delete z[G]}}}});ah.fn.extend({data:function(r,c){if(typeof r==="undefined"&&this.length){return ah.data(this[0])}else{if(typeof r==="object"){return this.each(function(){ah.data(this,r)})}}var z=r.split(".");z[1]=z[1]?"."+z[1]:"";if(c===M){var v=this.triggerHandler("getData"+z[1]+"!",[z[0]]);if(v===M&&this.length){v=ah.data(this[0],r)}return v===M&&z[1]?this.data(z[0]):v}else{return this.trigger("setData"+z[1]+"!",[z[0],c]).each(function(){ah.data(this,r,c)})}},removeData:function(c){return this.each(function(){ah.removeData(this,c)})}});ah.extend({queue:function(r,c,z){if(r){c=(c||"fx")+"queue";var v=ah.data(r,c);if(!z){return v||[]}if(!v||ah.isArray(z)){v=ah.data(r,c,ah.makeArray(z))}else{v.push(z)}return v}},dequeue:function(r,c){c=c||"fx";var z=ah.queue(r,c),v=z.shift();if(v==="inprogress"){v=z.shift()}if(v){c==="fx"&&z.unshift("inprogress");v.call(r,function(){ah.dequeue(r,c)})}}});ah.fn.extend({queue:function(r,c){if(typeof r!=="string"){c=r;r="fx"}if(c===M){return ah.queue(this[0],r)}return this.each(function(){var v=ah.queue(this,r,c);r==="fx"&&v[0]!=="inprogress"&&ah.dequeue(this,r)})},dequeue:function(c){return this.each(function(){ah.dequeue(this,c)})},delay:function(r,c){r=ah.fx?ah.fx.speeds[r]||r:r;c=c||"fx";return this.queue(c,function(){var v=this;setTimeout(function(){ah.dequeue(v,c)},r)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var a4=/[\n\t]/g,ac=/\s+/,I=/\r/g,q=/href|src|style/,e=/(button|input)/i,a6=/(button|input|object|select|textarea)/i,aM=/^(a|area)$/i,aQ=/radio|checkbox/;ah.fn.extend({attr:function(r,c){return ap(this,r,c,true,ah.attr)},removeAttr:function(c){return this.each(function(){ah.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(r){if(ah.isFunction(r)){return this.each(function(N){var L=ah(this);L.addClass(r.call(this,N,L.attr("class")))})}if(r&&typeof r==="string"){for(var c=(r||"").split(ac),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1){if(G.className){for(var z=" "+G.className+" ",v=0,K=c.length;v<K;v++){if(z.indexOf(" "+c[v]+" ")<0){G.className+=" "+c[v]}}}else{G.className=r}}}}return this},removeClass:function(r){if(ah.isFunction(r)){return this.each(function(N){var L=ah(this);L.removeClass(r.call(this,N,L.attr("class")))})}if(r&&typeof r==="string"||r===M){for(var c=(r||"").split(ac),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1&&G.className){if(r){for(var z=(" "+G.className+" ").replace(a4," "),v=0,K=c.length;v<K;v++){z=z.replace(" "+c[v]+" "," ")}G.className=z.substring(1,z.length-1)}else{G.className=""}}}}return this},toggleClass:function(r,c){var z=typeof r,v=typeof c==="boolean";if(ah.isFunction(r)){return this.each(function(G){var F=ah(this);F.toggleClass(r.call(this,G,F.attr("class"),c),c)})}return this.each(function(){if(z==="string"){for(var J,G=0,F=ah(this),L=c,K=r.split(ac);J=K[G++];){L=v?L:!F.hasClass(J);F[L?"addClass":"removeClass"](J)}}else{if(z==="undefined"||z==="boolean"){this.className&&ah.data(this,"__className__",this.className);this.className=this.className||r===false?"":ah.data(this,"__className__")||""}}})},hasClass:function(r){r=" "+r+" ";for(var c=0,v=this.length;c<v;c++){if((" "+this[c].className+" ").replace(a4," ").indexOf(r)>-1){return true}}return false},val:function(r){if(r===M){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 J=c.selectedIndex,F=[],G=c.options;c=c.type==="select-one";if(J<0){return null}var z=c?J:0;for(J=c?J+1:G.length;z<J;z++){var v=G[z];if(v.selected){r=ah(v).val();if(c){return r}F.push(r)}}return F}if(aQ.test(c.type)&&!ah.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(I,"")}return M}var K=ah.isFunction(r);return this.each(function(P){var N=ah(this),O=r;if(this.nodeType===1){if(K){O=r.call(this,P,N.val())}if(typeof O==="number"){O+=""}if(ah.isArray(O)&&aQ.test(this.type)){this.checked=ah.inArray(N.val(),O)>=0}else{if(ah.nodeName(this,"select")){var L=ah.makeArray(O);ah("option",this).each(function(){this.selected=ah.inArray(ah(this).val(),L)>=0});if(!L.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(r,c,G,z){if(!r||r.nodeType===3||r.nodeType===8){return M}if(z&&c in ah.attrFn){return ah(r)[c](G)}z=r.nodeType!==1||!ah.isXMLDoc(r);var F=G!==M;c=z&&ah.props[c]||c;if(r.nodeType===1){var v=q.test(c);if(c in r&&z&&!v){if(F){c==="type"&&e.test(r.nodeName)&&r.parentNode&&ah.error("type property can't be changed");r[c]=G}if(ah.nodeName(r,"form")&&r.getAttributeNode(c)){return r.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=r.getAttributeNode("tabIndex"))&&c.specified?c.value:a6.test(r.nodeName)||aM.test(r.nodeName)&&r.href?0:M}return r[c]}if(!ah.support.style&&z&&c==="style"){if(F){r.style.cssText=""+G}return r.style.cssText}F&&r.setAttribute(c,""+G);r=!ah.support.hrefNormalized&&z&&v?r.getAttribute(c,2):r.getAttribute(c);return r===null?M:r}return ah.style(r,c,G)}});var aS=function(c){return c.replace(/[^\w\s\.\|`]/g,function(r){return"\\"+r})};ah.event={add:function(O,L,K,G){if(!(O.nodeType===3||O.nodeType===8)){if(O.setInterval&&O!==H&&!O.frameElement){O=H}if(!K.guid){K.guid=ah.guid++}if(G!==M){K=ah.proxy(K);K.data=G}var J=ah.data(O,"events")||ah.data(O,"events",{}),F=ah.data(O,"handle"),z;if(!F){z=function(){return typeof ah!=="undefined"&&!ah.event.triggered?ah.event.handle.apply(z.elem,arguments):M};F=ah.data(O,"handle",z)}if(F){F.elem=O;L=L.split(/\s+/);for(var r,c=0;r=L[c++];){var v=r.split(".");r=v.shift();if(c>1){K=ah.proxy(K);if(G!==M){K.data=G}}K.type=v.slice(0).sort().join(".");var P=J[r],N=this.special[r]||{};if(!P){P=J[r]={};if(!N.setup||N.setup.call(O,G,v,K)===false){if(O.addEventListener){O.addEventListener(r,F,false)}else{O.attachEvent&&O.attachEvent("on"+r,F)}}}if(N.add){if((v=N.add.call(O,K,G,v,P))&&ah.isFunction(v)){v.guid=v.guid||K.guid;v.data=v.data||K.data;v.type=v.type||K.type;K=v}}P[K.guid]=K;this.global[r]=true}O=null}}},global:{},remove:function(P,N,L){if(!(P.nodeType===3||P.nodeType===8)){var J=ah.data(P,"events"),K,G,F;if(J){if(N===M||typeof N==="string"&&N.charAt(0)==="."){for(G in J){this.remove(P,G+(N||""))}}else{if(N.type){L=N.handler;N=N.type}N=N.split(/\s+/);for(var v=0;G=N[v++];){var r=G.split(".");G=r.shift();var z=!r.length,Q=ah.map(r.slice(0).sort(),aS);Q=new RegExp("(^|\\.)"+Q.join("\\.(?:.*\\.)?")+"(\\.|$)");var O=this.special[G]||{};if(J[G]){if(L){F=J[G][L.guid];delete J[G][L.guid]}else{for(var c in J[G]){if(z||Q.test(J[G][c].type)){delete J[G][c]}}}O.remove&&O.remove.call(P,r,F);for(K in J[G]){break}if(!K){if(!O.teardown||O.teardown.call(P,r)===false){if(P.removeEventListener){P.removeEventListener(G,ah.data(P,"handle"),false)}else{P.detachEvent&&P.detachEvent("on"+G,ah.data(P,"handle"))}}K=null;delete J[G]}}}}for(K in J){break}if(!K){if(c=ah.data(P,"handle")){c.elem=null}ah.removeData(P,"events");ah.removeData(P,"handle")}}}},trigger:function(r,c,J,F){var G=r.type||r;if(!F){r=typeof r==="object"?r[aH]?r:ah.extend(ah.Event(G),r):ah.Event(G);if(G.indexOf("!")>=0){r.type=G=G.slice(0,-1);r.exclusive=true}if(!J){r.stopPropagation();this.global[G]&&ah.each(ah.cache,function(){this.events&&this.events[G]&&ah.event.trigger(r,c,this.handle.elem)})}if(!J||J.nodeType===3||J.nodeType===8){return M}r.result=M;r.target=J;c=ah.makeArray(c);c.unshift(r)}r.currentTarget=J;(F=ah.data(J,"handle"))&&F.apply(J,c);F=J.parentNode||J.ownerDocument;try{if(!(J&&J.nodeName&&ah.noData[J.nodeName.toLowerCase()])){if(J["on"+G]&&J["on"+G].apply(J,c)===false){r.result=false}}}catch(z){}if(!r.isPropagationStopped()&&F){ah.event.trigger(r,c,F,true)}else{if(!r.isDefaultPrevented()){J=r.target;var v;if(!(ah.nodeName(J,"a")&&G==="click")&&!(J&&J.nodeName&&ah.noData[J.nodeName.toLowerCase()])){try{if(J[G]){if(v=J["on"+G]){J["on"+G]=null}this.triggered=true;J[G]()}}catch(K){}if(v){J["on"+G]=v}this.triggered=false}}}},handle:function(r){var c,G;r=arguments[0]=ah.event.fix(r||H.event);r.currentTarget=this;G=r.type.split(".");r.type=G.shift();c=!G.length&&!r.exclusive;var z=new RegExp("(^|\\.)"+G.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");G=(ah.data(this,"events")||{})[r.type];for(var F in G){var v=G[F];if(c||z.test(v.type)){r.handler=v;r.data=v.data;v=v.apply(this,arguments);if(v!==M){r.result=v;if(v===false){r.preventDefault();r.stopPropagation()}}if(r.isImmediatePropagationStopped()){break}}}return r.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(r){if(r[aH]){return r}var c=r;r=ah.Event(c);for(var z=this.props.length,v;z;){v=this.props[--z];r[v]=c[v]}if(!r.target){r.target=r.srcElement||R}if(r.target.nodeType===3){r.target=r.target.parentNode}if(!r.relatedTarget&&r.fromElement){r.relatedTarget=r.fromElement===r.target?r.toElement:r.fromElement}if(r.pageX==null&&r.clientX!=null){c=R.documentElement;z=R.body;r.pageX=r.clientX+(c&&c.scrollLeft||z&&z.scrollLeft||0)-(c&&c.clientLeft||z&&z.clientLeft||0);r.pageY=r.clientY+(c&&c.scrollTop||z&&z.scrollTop||0)-(c&&c.clientTop||z&&z.clientTop||0)}if(!r.which&&(r.charCode||r.charCode===0?r.charCode:r.keyCode)){r.which=r.charCode||r.keyCode}if(!r.metaKey&&r.ctrlKey){r.metaKey=r.ctrlKey}if(!r.which&&r.button!==M){r.which=r.button&1?1:r.button&2?3:r.button&4?2:0}return r},guid:100000000,proxy:ah.proxy,special:{ready:{setup:ah.bindReady,teardown:ah.noop},live:{add:function(r,c){ah.extend(r,c||{});r.guid+=c.selector+c.live;c.liveProxy=r;ah.event.add(this,c.live,aK,c)},remove:function(r){if(r.length){var c=0,v=new RegExp("(^|\\.)"+r[0]+"(\\.|$)");ah.each(ah.data(this,"events").live||{},function(){v.test(this.type)&&c++});c<1&&ah.event.remove(this,r[0],aK)}},special:{}},beforeunload:{setup:function(r,c,v){if(this.setInterval){this.onbeforeunload=v}return false},teardown:function(r,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};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 a8=function(r){for(var c=r.relatedTarget;c&&c!==this;){try{c=c.parentNode}catch(v){break}}if(c!==this){r.type=r.data;ah.event.handle.apply(this,arguments)}},aW=function(c){c.type=c.data;ah.event.handle.apply(this,arguments)};ah.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(r,c){ah.event.special[r]={setup:function(v){ah.event.add(this,c,v&&v.selector?aW:a8,r)},teardown:function(v){ah.event.remove(this,c,v&&v.selector?aW:a8)}}});if(!ah.support.submitBubbles){ah.event.special.submit={setup:function(r,c,v){if(this.nodeName.toLowerCase()!=="form"){ah.event.add(this,"click.specialSubmit."+v.guid,function(F){var G=F.target,z=G.type;if((z==="submit"||z==="image")&&ah(G).closest("form").length){return aY("submit",this,arguments)}});ah.event.add(this,"keypress.specialSubmit."+v.guid,function(F){var G=F.target,z=G.type;if((z==="text"||z==="password")&&ah(G).closest("form").length&&F.keyCode===13){return aY("submit",this,arguments)}})}else{return false}},remove:function(r,c){ah.event.remove(this,"click.specialSubmit"+(c?"."+c.guid:""));ah.event.remove(this,"keypress.specialSubmit"+(c?"."+c.guid:""))}}}if(!ah.support.changeBubbles){var t=/textarea|input|select/i;function aG(r){var c=r.type,v=r.value;if(c==="radio"||c==="checkbox"){v=r.checked}else{if(c==="select-multiple"){v=r.selectedIndex>-1?ah.map(r.options,function(z){return z.selected}).join("-"):""}else{if(r.nodeName.toLowerCase()==="select"){v=r.selectedIndex}}}return v}function g(r,c){var F=r.target,v,z;if(!(!t.test(F.nodeName)||F.readOnly)){v=ah.data(F,"_change_data");z=aG(F);if(r.type!=="focusout"||F.type!=="radio"){ah.data(F,"_change_data",z)}if(!(v===M||z===v)){if(v!=null||z){r.type="change";return ah.event.trigger(r,c,F)}}}}ah.event.special.change={filters:{focusout:g,click:function(r){var c=r.target,v=c.type;if(v==="radio"||v==="checkbox"||c.nodeName.toLowerCase()==="select"){return g.call(this,r)}},keydown:function(r){var c=r.target,v=c.type;if(r.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||r.keyCode===32&&(v==="checkbox"||v==="radio")||v==="select-multiple"){return g.call(this,r)}},beforeactivate:function(c){c=c.target;c.nodeName.toLowerCase()==="input"&&c.type==="radio"&&ah.data(c,"_change_data",aG(c))}},setup:function(r,c,z){for(var v in at){ah.event.add(this,v+".specialChange."+z.guid,at[v])}return t.test(this.nodeName)},remove:function(r,c){for(var v in at){ah.event.remove(this,v+".specialChange"+(c?"."+c.guid:""),at[v])}return t.test(this.nodeName)}};var at=ah.event.special.change.filters}R.addEventListener&&ah.each({focus:"focusin",blur:"focusout"},function(r,c){function v(z){z=ah.event.fix(z);z.type=c;return ah.event.handle.call(this,z)}ah.event.special[c]={setup:function(){this.addEventListener(r,v,true)},teardown:function(){this.removeEventListener(r,v,true)}}});ah.each(["bind","one"],function(r,c){ah.fn[c]=function(J,F,G){if(typeof J==="object"){for(var z in J){this[c](z,F,J[z],G)}return this}if(ah.isFunction(F)){G=F;F=M}var v=c==="one"?ah.proxy(G,function(K){ah(this).unbind(K,v);return G.apply(this,arguments)}):G;return J==="unload"&&c!=="one"?this.one(J,F,G):this.each(function(){ah.event.add(this,J,v,F)})}});ah.fn.extend({unbind:function(r,c){if(typeof r==="object"&&!r.preventDefault){for(var v in r){this.unbind(v,r[v])}return this}return this.each(function(){ah.event.remove(this,r,c)})},trigger:function(r,c){return this.each(function(){ah.event.trigger(r,c,this)})},triggerHandler:function(r,c){if(this[0]){r=ah.Event(r);r.preventDefault();r.stopPropagation();ah.event.trigger(r,c,this[0]);return r.result}},toggle:function(r){for(var c=arguments,v=1;v<c.length;){ah.proxy(r,c[v++])}return this.click(ah.proxy(r,function(z){var F=(ah.data(this,"lastToggle"+r.guid)||0)%v;ah.data(this,"lastToggle"+r.guid,F+1);z.preventDefault();return c[F].apply(this,arguments)||false}))},hover:function(r,c){return this.mouseenter(r).mouseleave(c||r)}});ah.each(["live","die"],function(r,c){ah.fn[c]=function(J,F,G){var z,v=0;if(ah.isFunction(F)){G=F;F=M}for(J=(J||"").split(/\s+/);(z=J[v++])!=null;){z=z==="focus"?"focusin":z==="blur"?"focusout":z==="hover"?J.push("mouseleave")&&"mouseenter":z;c==="live"?ah(this.context).bind(ag(z,this.selector),{data:F,selector:this.selector,live:z},G):ah(this.context).unbind(ag(z,this.selector),G?{guid:G.guid+this.selector+z}:null)}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(r,c){ah.fn[c]=function(v){return v?this.bind(c,v):this.trigger(c)};if(ah.attrFn){ah.attrFn[c]=true}});H.attachEvent&&!H.addEventListener&&H.attachEvent("onunload",function(){for(var r in ah.cache){if(ah.cache[r].handle){try{ah.event.remove(ah.cache[r].handle.elem)}catch(c){}}}});(function(){function X(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+=X(Z.childNodes)}}}return aa}function W(bb,ba,ab,aa,Y,Z){Y=0;for(var bi=aa.length;Y<bi;Y++){var bj=aa[Y];if(bj){bj=bj[bb];for(var bh=false;bj;){if(bj.sizcache===ab){bh=aa[bj.sizset];break}if(bj.nodeType===1&&!Z){bj.sizcache=ab;bj.sizset=Y}if(bj.nodeName.toLowerCase()===ba){bh=bj;break}bj=bj[bb]}aa[Y]=bh}}}function V(bb,ba,ab,aa,Y,Z){Y=0;for(var bi=aa.length;Y<bi;Y++){var bj=aa[Y];if(bj){bj=bj[bb];for(var bh=false;bj;){if(bj.sizcache===ab){bh=aa[bj.sizset];break}if(bj.nodeType===1){if(!Z){bj.sizcache=ab;bj.sizset=Y}if(typeof ba!=="string"){if(bj===ba){bh=true;break}}else{if(K.filter(ba,[bj]).length>0){bh=bj;break}}}bj=bj[bb]}aa[Y]=bh}}}var S=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,T=0,Q=Object.prototype.toString,P=false,N=true;[0,0].sort(function(){N=false;return 0});var K=function(bi,bh,ba,ab){ba=ba||[];var Z=bh=bh||R;if(bh.nodeType!==1&&bh.nodeType!==9){return[]}if(!bi||typeof bi!=="string"){return ba}for(var aa=[],bn,bo,bk,bb,bm=true,bj=r(bh),bl=bi;(S.exec(""),bn=S.exec(bl))!==null;){bl=bn[3];aa.push(bn[1]);if(bn[2]){bb=bn[3];break}}if(aa.length>1&&z.exec(bi)){if(aa.length===2&&O.relative[aa[0]]){bo=L(aa[0]+aa[1],bh)}else{for(bo=O.relative[aa[0]]?[bh]:K(aa.shift(),bh);aa.length;){bi=aa.shift();if(O.relative[bi]){bi+=aa.shift()}bo=L(bi,bo)}}}else{if(!ab&&aa.length>1&&bh.nodeType===9&&!bj&&O.match.ID.test(aa[0])&&!O.match.ID.test(aa[aa.length-1])){bn=K.find(aa.shift(),bh,bj);bh=bn.expr?K.filter(bn.expr,bn.set)[0]:bn.set[0]}if(bh){bn=ab?{expr:aa.pop(),set:J(ab)}:K.find(aa.pop(),aa.length===1&&(aa[0]==="~"||aa[0]==="+")&&bh.parentNode?bh.parentNode:bh,bj);bo=bn.expr?K.filter(bn.expr,bn.set):bn.set;if(aa.length>0){bk=J(bo)}else{bm=false}for(;aa.length;){var Y=aa.pop();bn=Y;if(O.relative[Y]){bn=aa.pop()}else{Y=""}if(bn==null){bn=bh}O.relative[Y](bk,bn,bj)}}else{bk=[]}}bk||(bk=bo);bk||K.error(Y||bi);if(Q.call(bk)==="[object Array]"){if(bm){if(bh&&bh.nodeType===1){for(bi=0;bk[bi]!=null;bi++){if(bk[bi]&&(bk[bi]===true||bk[bi].nodeType===1&&v(bh,bk[bi]))){ba.push(bo[bi])}}}else{for(bi=0;bk[bi]!=null;bi++){bk[bi]&&bk[bi].nodeType===1&&ba.push(bo[bi])}}}else{ba.push.apply(ba,bk)}}else{J(bk,ba)}if(bb){K(bb,Z,ba,ab);K.uniqueSort(ba)}return ba};K.uniqueSort=function(Z){if(F){P=N;Z.sort(F);if(P){for(var Y=1;Y<Z.length;Y++){Z[Y]===Z[Y-1]&&Z.splice(Y--,1)}}}return Z};K.matches=function(Z,Y){return K(Z,null,null,Y)};K.find=function(bb,ba,ab){var aa,Y;if(!bb){return[]}for(var Z=0,bi=O.order.length;Z<bi;Z++){var bj=O.order[Z];if(Y=O.leftMatch[bj].exec(bb)){var bh=Y[1];Y.splice(1,1);if(bh.substr(bh.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=O.find[bj](Y,ba,ab);if(aa!=null){bb=bb.replace(O.match[bj],"");break}}}}aa||(aa=ba.getElementsByTagName("*"));return{set:aa,expr:bb}};K.filter=function(bk,bj,bh,bb){for(var Z=bk,ab=[],bp=bj,bq,bm,bi=bj&&bj[0]&&r(bj[0]);bk&&bj.length;){for(var bo in O.filter){if((bq=O.leftMatch[bo].exec(bk))!=null&&bq[2]){var bl=O.filter[bo],bn,Y;Y=bq[1];bm=false;bq.splice(1,1);if(Y.substr(Y.length-1)!=="\\"){if(bp===ab){ab=[]}if(O.preFilter[bo]){if(bq=O.preFilter[bo](bq,bp,bh,ab,bb,bi)){if(bq===true){continue}}else{bm=bn=true}}if(bq){for(var ba=0;(Y=bp[ba])!=null;ba++){if(Y){bn=bl(Y,bq,ba,bp);var aa=bb^!!bn;if(bh&&bn!=null){if(aa){bm=true}else{bp[ba]=false}}else{if(aa){ab.push(Y);bm=true}}}}}if(bn!==M){bh||(bp=ab);bk=bk.replace(O.match[bo],"");if(!bm){return[]}break}}}}if(bk===Z){if(bm==null){K.error(bk)}else{break}}Z=bk}return bp};K.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var O=K.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&&K.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&&K.filter(aa,ab,true)}},"":function(ab,aa,Z){var Y=T++,ba=V;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=W}ba("parentNode",aa,Y,ab,bb,Z)},"~":function(ab,aa,Z){var Y=T++,ba=V;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=W}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,bh){ba=" "+ba[1].replace(/\\/g,"")+" ";if(bh){return ba}bh=0;for(var aa;(aa=ab[bh])!=null;bh++){if(aa){if(bb^(aa.className&&(" "+aa.className+" ").replace(/[\t\n]/g," ").indexOf(ba)>=0)){Z||Y.push(aa)}else{if(Z){ab[bh]=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]=T++;return Z},ATTR:function(ab,aa,Z,Y,ba,bb){aa=ab[1].replace(/\\/g,"");if(!bb&&O.attrMap[aa]){ab[1]=O.attrMap[aa]}if(ab[2]==="~="){ab[4]=" "+ab[4]+" "}return ab},PSEUDO:function(ab,aa,Z,Y,ba){if(ab[1]==="not"){if((S.exec(ab[3])||"").length>1||/^\w/.test(ab[3])){ab[3]=K(ab[3],null,null,aa)}else{ab=K.filter(ab[3],aa,Z,true^ba);Z||Y.push.apply(Y,ab);return false}}else{if(O.match.POS.test(ab[0])||O.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 !!K(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=O.filters[ba];if(bb){return bb(ab,Z,aa,Y)}else{if(ba==="contains"){return(ab.textContent||ab.innerText||X([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{K.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 bh=ba.parentNode;if(bh&&(bh.sizcache!==ab||!ba.nodeIndex)){var aa=0;for(Y=bh.firstChild;Y;Y=Y.nextSibling){if(Y.nodeType===1){Y.nodeIndex=++aa}}bh.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=O.attrHandle[Z]?O.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=O.setFilters[aa[2]];if(ba){return ba(ab,Z,aa,Y)}}}},z=O.match.POS;for(var c in O.match){O.match[c]=new RegExp(O.match[c].source+/(?![^\[]*\])(?![^\(]*\))/.source);O.leftMatch[c]=new RegExp(/(^(?:.|\r|\n)*?)/.source+O.match[c].source.replace(/\\(\d+)/g,function(Z,Y){return"\\"+(Y-0+1)}))}var J=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(R.documentElement.childNodes,0)}catch(G){J=function(ab,aa){aa=aa||[];if(Q.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 F;if(R.documentElement.compareDocumentPosition){F=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 R.documentElement){F=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(R.createRange){F=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=R.createElement("div"),Z="script"+(new Date).getTime();aa.innerHTML="<a name='"+Z+"'/>";var Y=R.documentElement;Y.insertBefore(aa,Y.firstChild);if(R.getElementById(Z)){O.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]:M:[]}};O.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=R.createElement("div");Y.appendChild(R.createComment(""));if(Y.getElementsByTagName("*").length>0){O.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")!=="#"){O.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();R.querySelectorAll&&function(){var aa=K,Z=R.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){K=function(ab,bh,bi,ba){bh=bh||R;if(!ba&&bh.nodeType===9&&!r(bh)){try{return J(bh.querySelectorAll(ab),bi)}catch(bb){}}return aa(ab,bh,bi,ba)};for(var Y in aa){K[Y]=aa[Y]}Z=null}}();(function(){var Y=R.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){O.order.splice(1,0,"CLASS");O.find.CLASS=function(ab,aa,Z){if(typeof aa.getElementsByClassName!=="undefined"&&!Z){return aa.getElementsByClassName(ab[1])}};Y=null}}})();var v=R.compareDocumentPosition?function(Z,Y){return Z.compareDocumentPosition(Y)&16}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)},r=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},L=function(ab,aa){var Z=[],Y="",ba;for(aa=aa.nodeType?[aa]:aa;ba=O.match.PSEUDO.exec(ab);){Y+=ba[0];ab=ab.replace(O.match.PSEUDO,"")}ab=O.relative[ab]?ab+"*":ab;ba=0;for(var bb=aa.length;ba<bb;ba++){K(ab,aa[ba],Z)}return K.filter(Y,Z)};ah.find=K;ah.expr=K.selectors;ah.expr[":"]=ah.expr.filters;ah.unique=K.uniqueSort;ah.getText=X;ah.isXMLDoc=r;ah.contains=v})();var aw=/Until$/,U=/^(?:parents|prevUntil|prevAll)/,s=/,/;av=Array.prototype.slice;var x=function(r,c,z){if(ah.isFunction(c)){return ah.grep(r,function(G,F){return !!c.call(G,F,G)===z})}else{if(c.nodeType){return ah.grep(r,function(F){return F===c===z})}else{if(typeof c==="string"){var v=ah.grep(r,function(F){return F.nodeType===1});if(E.test(c)){return ah.filter(c,v,!z)}else{c=ah.filter(c,v)}}}}return ah.grep(r,function(F){return ah.inArray(F,c)>=0===z})};ah.fn.extend({find:function(r){for(var c=this.pushStack("","find",r),J=0,F=0,G=this.length;F<G;F++){J=c.length;ah.find(r,this[F],c);if(F>0){for(var z=J;z<c.length;z++){for(var v=0;v<J;v++){if(c[v]===c[z]){c.splice(z--,1);break}}}}}return c},has:function(r){var c=ah(r);return this.filter(function(){for(var z=0,v=c.length;z<v;z++){if(ah.contains(this,c[z])){return true}}})},not:function(c){return this.pushStack(x(this,c,false),"not",c)},filter:function(c){return this.pushStack(x(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,z={},v;if(F&&L.length){G=0;for(var r=L.length;G<r;G++){v=L[G];z[v]||(z[v]=ah.expr.match.POS.test(v)?ah(v,K||this.context):v)}for(;F&&F.ownerDocument&&F!==K;){for(v in z){G=z[v];if(G.jquery?G.index(F)>-1:ah(F).is(G)){J.push({selector:v,elem:F});delete z[v]}}F=F.parentNode}}return J}var c=ah.expr.match.POS.test(L)?ah(L,K||this.context):null;return this.map(function(N,O){for(;O&&O.ownerDocument&&O!==K;){if(c?c.index(O)>-1:ah(O).is(L)){return O}O=O.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(r,c){r=typeof r==="string"?ah(r,c||this.context):ah.makeArray(r);c=ah.merge(this.get(),r);return this.pushStack(A(r[0])||A(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(r,c,v){return ah.dir(r,"parentNode",v)},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(r,c,v){return ah.dir(r,"nextSibling",v)},prevUntil:function(r,c,v){return ah.dir(r,"previousSibling",v)},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(r,c){ah.fn[r]=function(F,v){var z=ah.map(this,c,F);aw.test(r)||(v=F);if(v&&typeof v==="string"){z=ah.filter(v,z)}z=this.length>1?ah.unique(z):z;if((this.length>1||s.test(v))&&U.test(r)){z=z.reverse()}return this.pushStack(z,r,av.call(arguments).join(","))}});ah.extend({filter:function(r,c,v){if(v){r=":not("+r+")"}return ah.find.matches(r,c)},dir:function(r,c,z){var v=[];for(r=r[c];r&&r.nodeType!==9&&(z===M||r.nodeType!==1||!ah(r).is(z));){r.nodeType===1&&v.push(r);r=r[c]}return v},nth:function(r,c,z){c=c||1;for(var v=0;r;r=r[z]){if(r.nodeType===1&&++v===c){break}}return r},sibling:function(r,c){for(var v=[];r;r=r.nextSibling){r.nodeType===1&&r!==c&&v.push(r)}return v}});var j=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,bd=/(<([\w:]+)[^>]*?)\/>/g,f=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,aZ=/<([\w:]+)/,a7=/<tbody/i,aU=/<|&\w+;/,a2=/checked\s*(?:[^=]|=\s*.checked.)/i,aL=function(r,c,v){return f.test(v)?r:c+"></"+v+">"},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(r){var v=ah(this);v.text(c.call(this,r,v.text()))})}if(typeof c!=="object"&&c!==M){return this.empty().append((this[0]&&this[0].ownerDocument||R).createTextNode(c))}return ah.getText(this)},wrapAll:function(r){if(ah.isFunction(r)){return this.each(function(v){ah(this).wrapAll(r.call(this,v))})}if(this[0]){var c=ah(r,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var v=this;v.firstChild&&v.firstChild.nodeType===1;){v=v.firstChild}return v}).append(this)}return this},wrapInner:function(c){if(ah.isFunction(c)){return this.each(function(r){ah(this).wrapInner(c.call(this,r))})}return this.each(function(){var r=ah(this),v=r.contents();v.length?v.wrapAll(c):r.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(r){this.parentNode.insertBefore(r,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(r){this.parentNode.insertBefore(r,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ah(arguments[0]).toArray());return c}}},clone:function(r){var c=this.map(function(){if(!ah.support.noCloneEvent&&!ah.isXMLDoc(this)){var z=this.outerHTML,v=this.ownerDocument;if(!z){z=v.createElement("div");z.appendChild(this.cloneNode(true));z=z.innerHTML}return ah.clean([z.replace(j,"").replace(ar,"")],v)[0]}else{return this.cloneNode(true)}});if(r===true){l(this,c);l(this.find("*"),c.find("*"))}return c},html:function(r){if(r===M){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(j,""):null}else{if(typeof r==="string"&&!/<script/i.test(r)&&(ah.support.leadingWhitespace||!ar.test(r))&&!aJ[(aZ.exec(r)||["",""])[1].toLowerCase()]){r=r.replace(bd,aL);try{for(var c=0,z=this.length;c<z;c++){if(this[c].nodeType===1){ah.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=r}}}catch(v){this.empty().append(r)}}else{ah.isFunction(r)?this.each(function(J){var G=ah(this),F=G.html();G.empty().append(function(){return r.call(this,J,F)})}):this.empty().append(r)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ah.isFunction(c)){return this.each(function(r){var z=ah(this),v=z.html();z.replaceWith(c.call(this,r,v))})}else{c=ah(c).detach()}return this.each(function(){var r=this.nextSibling,v=this.parentNode;ah(this).remove();r?ah(r).before(c):ah(v).append(c)})}else{return this.pushStack(ah(ah.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(N,L,K){function G(O){return ah.nodeName(O,"table")?O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody")):O}var J,F,z=N[0],r=[];if(!ah.support.checkClone&&arguments.length===3&&typeof z==="string"&&a2.test(z)){return this.each(function(){ah(this).domManip(N,L,K,true)})}if(ah.isFunction(z)){return this.each(function(P){var O=ah(this);N[0]=z.call(this,P,L?O.html():M);O.domManip(N,L,K)})}if(this[0]){J=N[0]&&N[0].parentNode&&N[0].parentNode.nodeType===11?{fragment:N[0].parentNode}:bf(N,this,r);if(F=J.fragment.firstChild){L=L&&ah.nodeName(F,"tr");for(var c=0,v=this.length;c<v;c++){K.call(L?G(this[c],F):this[c],J.cacheable||this.length>1||c>0?J.fragment.cloneNode(true):J.fragment)}}r&&ah.each(r,bg)}return this}});ah.fragments={};ah.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(r,c){ah.fn[r]=function(J){var F=[];J=ah(J);for(var G=0,z=J.length;G<z;G++){var v=(G>0?this.clone(true):this).get();ah.fn[c].apply(ah(J[G]),v);F=F.concat(v)}return this.pushStack(F,r,J.selector)}});ah.each({remove:function(r,c){if(!r||ah.filter(r,[this]).length){if(!c&&this.nodeType===1){ah.cleanData(this.getElementsByTagName("*"));ah.cleanData([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&ah.cleanData(this.getElementsByTagName("*"));this.firstChild;){this.removeChild(this.firstChild)}}},function(r,c){ah.fn[r]=function(){return this.each(c,arguments)}});ah.extend({clean:function(r,c,F,v){c=c||R;if(typeof c.createElement==="undefined"){c=c.ownerDocument||c[0]&&c[0].ownerDocument||R}var z=[];ah.each(r,function(K,J){if(typeof J==="number"){J+=""}if(J){if(typeof J==="string"&&!aU.test(J)){J=c.createTextNode(J)}else{if(typeof J==="string"){J=J.replace(bd,aL);var N=(aZ.exec(J)||["",""])[1].toLowerCase(),L=aJ[N]||aJ._default,G=L[0];K=c.createElement("div");for(K.innerHTML=L[1]+J+L[2];G--;){K=K.lastChild}if(!ah.support.tbody){G=a7.test(J);N=N==="table"&&!G?K.firstChild&&K.firstChild.childNodes:L[1]==="<table>"&&!G?K.childNodes:[];for(L=N.length-1;L>=0;--L){ah.nodeName(N[L],"tbody")&&!N[L].childNodes.length&&N[L].parentNode.removeChild(N[L])}}!ah.support.leadingWhitespace&&ar.test(J)&&K.insertBefore(c.createTextNode(ar.exec(J)[0]),K.firstChild);J=ah.makeArray(K.childNodes)}}if(J.nodeType){z.push(J)}else{z=ah.merge(z,J)}}});if(F){for(r=0;z[r];r++){if(v&&ah.nodeName(z[r],"script")&&(!z[r].type||z[r].type.toLowerCase()==="text/javascript")){v.push(z[r].parentNode?z[r].parentNode.removeChild(z[r]):z[r])}else{z[r].nodeType===1&&z.splice.apply(z,[r+1,0].concat(ah.makeArray(z[r].getElementsByTagName("script"))));F.appendChild(z[r])}}}return z},cleanData:function(r){for(var c=0,v;(v=r[c])!=null;c++){ah.event.remove(v);ah.removeData(v)}}});var aD=/z-?index|font-?weight|opacity|zoom|line-?height/i,ai=/alpha\([^)]*\)/,B=/opacity=([^)]*)/,aV=/float/i,aE=/-([a-z])/ig,ad=/([A-Z])/g,u=/^-?\d+(?:px)?$/i,h=/^-?\d/,a9={position:"absolute",visibility:"hidden",display:"block"},aX=["Left","Right"],aI=["Top","Bottom"],af=R.defaultView&&R.defaultView.getComputedStyle,m=ah.support.cssFloat?"cssFloat":"styleFloat",ae=function(r,c){return c.toUpperCase()};ah.fn.css=function(r,c){return ap(this,r,c,true,function(F,v,z){if(z===M){return ah.curCSS(F,v)}if(typeof z==="number"&&!aD.test(v)){z+="px"}ah.style(F,v,z)})};ah.extend({style:function(r,c,F){if(!r||r.nodeType===3||r.nodeType===8){return M}if((c==="width"||c==="height")&&parseFloat(F)<0){F=M}var v=r.style||r,z=F!==M;if(!ah.support.opacity&&c==="opacity"){if(z){v.zoom=1;c=parseInt(F,10)+""==="NaN"?"":"alpha(opacity="+F*100+")";r=v.filter||ah.curCSS(r,"filter")||"";v.filter=ai.test(r)?r.replace(ai,c):c}return v.filter&&v.filter.indexOf("opacity=")>=0?parseFloat(B.exec(v.filter)[1])/100+"":""}if(aV.test(c)){c=m}c=c.replace(aE,ae);if(z){v[c]=F}return v[c]},css:function(r,c,J,F){if(c==="width"||c==="height"){var G,z=c==="width"?aX:aI;function v(){G=c==="width"?r.offsetWidth:r.offsetHeight;F!=="border"&&ah.each(z,function(){F||(G-=parseFloat(ah.curCSS(r,"padding"+this,true))||0);if(F==="margin"){G+=parseFloat(ah.curCSS(r,"margin"+this,true))||0}else{G-=parseFloat(ah.curCSS(r,"border"+this+"Width",true))||0}})}r.offsetWidth!==0?v():ah.swap(r,a9,v);return Math.max(0,Math.round(G))}return ah.curCSS(r,c,J)},curCSS:function(r,c,G){var z,F=r.style;if(!ah.support.opacity&&c==="opacity"&&r.currentStyle){z=B.test(r.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return z===""?"1":z}if(aV.test(c)){c=m}if(!G&&F&&F[c]){z=F[c]}else{if(af){if(aV.test(c)){c="float"}c=c.replace(ad,"-$1").toLowerCase();F=r.ownerDocument.defaultView;if(!F){return null}if(r=F.getComputedStyle(r,null)){z=r.getPropertyValue(c)}if(c==="opacity"&&z===""){z="1"}}else{if(r.currentStyle){G=c.replace(aE,ae);z=r.currentStyle[c]||r.currentStyle[G];if(!u.test(z)&&h.test(z)){c=F.left;var v=r.runtimeStyle.left;r.runtimeStyle.left=r.currentStyle.left;F.left=G==="fontSize"?"1em":z||0;z=F.pixelLeft+"px";F.left=c;r.runtimeStyle.left=v}}}}return z},swap:function(r,c,F){var v={};for(var z in c){v[z]=r.style[z];r.style[z]=c[z]}F.call(r);for(z in c){r.style[z]=v[z]}}});if(ah.expr&&ah.expr.filters){ah.expr.filters.hidden=function(r){var c=r.offsetWidth,z=r.offsetHeight,v=r.nodeName.toLowerCase()==="tr";return c===0&&z===0&&!v?true:c>0&&z>0&&!v?false:ah.curCSS(r,"display")==="none"};ah.expr.filters.visible=function(c){return !ah.expr.filters.hidden(c)}}var y=aF(),k=/<script(.|\s)*?\/script>/gi,be=/select|textarea/i,a1=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aA=/=\?(&|$)/,w=/\?/,aN=/(\?|&)_=.*?(&|$)/,aj=/^(\w+:)?\/\/([^\/?#]+)/,C=/%20/g;ah.fn.extend({_load:ah.fn.load,load:function(r,c,G){if(typeof r!=="string"){return this._load(r)}else{if(!this.length){return this}}var z=r.indexOf(" ");if(z>=0){var F=r.slice(z,r.length);r=r.slice(0,z)}z="GET";if(c){if(ah.isFunction(c)){G=c;c=null}else{if(typeof c==="object"){c=ah.param(c,ah.ajaxSettings.traditional);z="POST"}}}var v=this;ah.ajax({url:r,type:z,dataType:"html",data:c,complete:function(J,K){if(K==="success"||K==="notmodified"){v.html(F?ah("<div />").append(J.responseText.replace(k,"")).find(F):J.responseText)}G&&v.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||be.test(this.nodeName)||a1.test(this.type))}).map(function(r,c){r=ah(this).val();return r==null?null:ah.isArray(r)?ah.map(r,function(v){return{name:c.name,value:v}}):{name:c.name,value:r}}).get()}});ah.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(r,c){ah.fn[c]=function(v){return this.bind(c,v)}});ah.extend({get:function(r,c,z,v){if(ah.isFunction(c)){v=v||z;z=c;c=null}return ah.ajax({type:"GET",url:r,data:c,success:z,dataType:v})},getScript:function(r,c){return ah.get(r,null,c,"script")},getJSON:function(r,c,v){return ah.get(r,c,v,"json")},post:function(r,c,z,v){if(ah.isFunction(c)){v=v||z;z=c;c={}}return ah.ajax({type:"POST",url:r,data:c,success:z,dataType:v})},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:H.XMLHttpRequest&&(H.location.protocol!=="file:"||!H.ActiveXObject)?function(){return new H.XMLHttpRequest}:function(){try{return new H.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(ab){function aa(){Y.success&&Y.success.call(K,N,S,r);Y.global&&X("ajaxSuccess",[r,Y])}function Z(){Y.complete&&Y.complete.call(K,r,S);Y.global&&X("ajaxComplete",[r,Y]);Y.global&&!--ah.active&&ah.event.trigger("ajaxStop")}function X(ba,bb){(Y.context?ah(Y.context):ah.event).trigger(ba,bb)}var Y=ah.extend(true,{},ah.ajaxSettings,ab),T,S,N,K=ab&&ab.context||Y,O=Y.type.toUpperCase();if(Y.data&&Y.processData&&typeof Y.data!=="string"){Y.data=ah.param(Y.data,Y.traditional)}if(Y.dataType==="jsonp"){if(O==="GET"){aA.test(Y.url)||(Y.url+=(w.test(Y.url)?"&":"?")+(Y.jsonp||"callback")+"=?")}else{if(!Y.data||!aA.test(Y.data)){Y.data=(Y.data?Y.data+"&":"")+(Y.jsonp||"callback")+"=?"}}Y.dataType="json"}if(Y.dataType==="json"&&(Y.data&&aA.test(Y.data)||aA.test(Y.url))){T=Y.jsonpCallback||"jsonp"+y++;if(Y.data){Y.data=(Y.data+"").replace(aA,"="+T+"$1")}Y.url=Y.url.replace(aA,"="+T+"$1");Y.dataType="script";H[T]=H[T]||function(ba){N=ba;aa();Z();H[T]=M;try{delete H[T]}catch(bb){}J&&J.removeChild(G)}}if(Y.dataType==="script"&&Y.cache===null){Y.cache=false}if(Y.cache===false&&O==="GET"){var z=aF(),c=Y.url.replace(aN,"$1_="+z+"$2");Y.url=c+(c===Y.url?(w.test(Y.url)?"&":"?")+"_="+z:"")}if(Y.data&&O==="GET"){Y.url+=(w.test(Y.url)?"&":"?")+Y.data}Y.global&&!ah.active++&&ah.event.trigger("ajaxStart");z=(z=aj.exec(Y.url))&&(z[1]&&z[1]!==location.protocol||z[2]!==location.host);if(Y.dataType==="script"&&O==="GET"&&z){var J=R.getElementsByTagName("head")[0]||R.documentElement,G=R.createElement("script");G.src=Y.url;if(Y.scriptCharset){G.charset=Y.scriptCharset}if(!T){var F=false;G.onload=G.onreadystatechange=function(){if(!F&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){F=true;aa();Z();G.onload=G.onreadystatechange=null;J&&G.parentNode&&J.removeChild(G)}}}J.insertBefore(G,J.firstChild);return M}var v=false,r=Y.xhr();if(r){Y.username?r.open(O,Y.url,Y.async,Y.username,Y.password):r.open(O,Y.url,Y.async);try{if(Y.data||ab&&ab.contentType){r.setRequestHeader("Content-Type",Y.contentType)}if(Y.ifModified){ah.lastModified[Y.url]&&r.setRequestHeader("If-Modified-Since",ah.lastModified[Y.url]);ah.etag[Y.url]&&r.setRequestHeader("If-None-Match",ah.etag[Y.url])}z||r.setRequestHeader("X-Requested-With","XMLHttpRequest");r.setRequestHeader("Accept",Y.dataType&&Y.accepts[Y.dataType]?Y.accepts[Y.dataType]+", */*":Y.accepts._default)}catch(L){}if(Y.beforeSend&&Y.beforeSend.call(K,r,Y)===false){Y.global&&!--ah.active&&ah.event.trigger("ajaxStop");r.abort();return false}Y.global&&X("ajaxSend",[r,Y]);var W=r.onreadystatechange=function(bb){if(!r||r.readyState===0||bb==="abort"){v||Z();v=true;if(r){r.onreadystatechange=ah.noop}}else{if(!v&&r&&(r.readyState===4||bb==="timeout")){v=true;r.onreadystatechange=ah.noop;S=bb==="timeout"?"timeout":!ah.httpSuccess(r)?"error":Y.ifModified&&ah.httpNotModified(r,Y.url)?"notmodified":"success";var bh;if(S==="success"){try{N=ah.httpData(r,Y.dataType,Y)}catch(ba){S="parsererror";bh=ba}}if(S==="success"||S==="notmodified"){T||aa()}else{ah.handleError(Y,r,S,bh)}Z();bb==="timeout"&&r.abort();if(Y.async){r=null}}}};try{var V=r.abort;r.abort=function(){r&&V.call(r);W("abort")}}catch(Q){}Y.async&&Y.timeout>0&&setTimeout(function(){r&&!v&&W("timeout")},Y.timeout);try{r.send(O==="POST"||O==="PUT"||O==="DELETE"?Y.data:null)}catch(P){ah.handleError(Y,r,null,P);Z()}Y.async||W();return r}},handleError:function(r,c,z,v){if(r.error){r.error.call(r.context||r,c,z,v)}if(r.global){(r.context?ah(r.context):ah.event).trigger("ajaxError",[c,r,v])}},active:0,httpSuccess:function(r){try{return !r.status&&location.protocol==="file:"||r.status>=200&&r.status<300||r.status===304||r.status===1223||r.status===0}catch(c){}return false},httpNotModified:function(r,c){var z=r.getResponseHeader("Last-Modified"),v=r.getResponseHeader("Etag");if(z){ah.lastModified[c]=z}if(v){ah.etag[c]=v}return r.status===304||r.status===0},httpData:function(r,c,F){var v=r.getResponseHeader("content-type")||"",z=c==="xml"||!c&&v.indexOf("xml")>=0;r=z?r.responseXML:r.responseText;z&&r.documentElement.nodeName==="parsererror"&&ah.error("parsererror");if(F&&F.dataFilter){r=F.dataFilter(r,c)}if(typeof r==="string"){if(c==="json"||!c&&v.indexOf("json")>=0){r=ah.parseJSON(r)}else{if(c==="script"||!c&&v.indexOf("javascript")>=0){ah.globalEval(r)}}}return r},param:function(r,c){function G(J,K){if(ah.isArray(K)){ah.each(K,function(N,L){c?z(J,L):G(J+"["+(typeof L==="object"||ah.isArray(L)?N:"")+"]",L)})}else{!c&&K!=null&&typeof K==="object"?ah.each(K,function(N,L){G(J+"["+N+"]",L)}):z(J,K)}}function z(J,K){K=ah.isFunction(K)?K():K;F[F.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var F=[];if(c===M){c=ah.ajaxSettings.traditional}if(ah.isArray(r)||r.jquery){ah.each(r,function(){z(this.name,this.value)})}else{for(var v in r){G(v,r[v])}}return F.join("&").replace(C,"+")}});var i={},n=/toggle|show|hide/,a=/^([+-]=)?([\d+-.]+)(.*)$/,aq,aO=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ah.fn.extend({show:function(r,c){if(r||r===0){return this.animate(aC("show",3),r,c)}else{r=0;for(c=this.length;r<c;r++){var F=ah.data(this[r],"olddisplay");this[r].style.display=F||"";if(ah.css(this[r],"display")==="none"){F=this[r].nodeName;var v;if(i[F]){v=i[F]}else{var z=ah("<"+F+" />").appendTo("body");v=z.css("display");if(v==="none"){v="block"}z.remove();i[F]=v}ah.data(this[r],"olddisplay",v)}}r=0;for(c=this.length;r<c;r++){this[r].style.display=ah.data(this[r],"olddisplay")||""}return this}},hide:function(r,c){if(r||r===0){return this.animate(aC("hide",3),r,c)}else{r=0;for(c=this.length;r<c;r++){var v=ah.data(this[r],"olddisplay");!v&&v!=="none"&&ah.data(this[r],"olddisplay",ah.css(this[r],"display"))}r=0;for(c=this.length;r<c;r++){this[r].style.display="none"}return this}},_toggle:ah.fn.toggle,toggle:function(r,c){var v=typeof r==="boolean";if(ah.isFunction(r)&&ah.isFunction(c)){this._toggle.apply(this,arguments)}else{r==null||v?this.each(function(){var z=v?r:ah(this).is(":hidden");ah(this)[z?"show":"hide"]()}):this.animate(aC("toggle",3),r,c)}return this},fadeTo:function(r,c,v){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},r,v)},animate:function(r,c,F,v){var z=ah.speed(c,F,v);if(ah.isEmptyObject(r)){return this.each(z.complete)}return this[z.queue===false?"each":"queue"](function(){var K=ah.extend({},z),J,N=this.nodeType===1&&ah(this).is(":hidden"),L=this;for(J in r){var G=J.replace(aE,ae);if(J!==G){r[G]=r[J];delete r[J];J=G}if(r[J]==="hide"&&N||r[J]==="show"&&!N){return K.complete.call(this)}if((J==="height"||J==="width")&&this.style){K.display=ah.css(this,"display");K.overflow=this.style.overflow}if(ah.isArray(r[J])){(K.specialEasing=K.specialEasing||{})[J]=r[J][1];r[J]=r[J][0]}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=ah.extend({},r);ah.each(r,function(Q,P){var O=new ah.fx(L,K,Q);if(n.test(P)){O[P==="toggle"?N?"show":"hide":P](r)}else{var V=a.exec(P),T=O.cur(true)||0;if(V){P=parseFloat(V[2]);var S=V[3]||"px";if(S!=="px"){L.style[Q]=(P||1)+S;T=(P||1)/O.cur(true)*T;L.style[Q]=T+S}if(V[1]){P=(V[1]==="-="?-1:1)*P+T}O.custom(T,P,S)}else{O.custom(T,P,"")}}});return true})},stop:function(r,c){var v=ah.timers;r&&this.queue([]);this.each(function(){for(var z=v.length-1;z>=0;z--){if(v[z].elem===this){c&&v[z](true);v.splice(z,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(r,c){ah.fn[r]=function(z,v){return this.animate(c,z,v)}});ah.extend({speed:function(r,c,z){var v=r&&typeof r==="object"?r:{complete:z||!z&&c||ah.isFunction(r)&&r,duration:r,easing:z&&c||c&&!ah.isFunction(c)&&c};v.duration=ah.fx.off?0:typeof v.duration==="number"?v.duration:ah.fx.speeds[v.duration]||ah.fx.speeds._default;v.old=v.complete;v.complete=function(){v.queue!==false&&ah(this).dequeue();ah.isFunction(v.old)&&v.old.call(this)};return v},easing:{linear:function(r,c,z,v){return z+v*r},swing:function(r,c,z,v){return(-Math.cos(r*Math.PI)/2+0.5)*v+z}},timers:[],fx:function(r,c,v){this.options=c;this.elem=r;this.prop=v;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(r,c,F){function v(G){return z.step(G)}this.startTime=aF();this.start=r;this.end=c;this.unit=F||this.unit||"px";this.now=this.start;this.pos=this.state=0;var z=this;v.elem=this.elem;if(v()&&ah.timers.push(v)&&!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(r){var c=aF(),F=true;if(r||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 v in this.options.curAnim){if(this.options.curAnim[v]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;r=ah.data(this.elem,"olddisplay");this.elem.style.display=r?r: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 z in this.options.curAnim){ah.style(this.elem,z,this.options.orig[z])}}this.options.complete.call(this.elem)}return false}else{z=c-this.startTime;this.state=z/this.options.duration;r=this.options.easing||(ah.easing.swing?"swing":"linear");this.pos=ah.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||r](this.state,z,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 r=ah.timers,c=0;c<r.length;c++){r[c]()||r.splice(c--,1)}r.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(r){return c===r.elem}).length}}ah.fn.offset="getBoundingClientRect" in R.documentElement?function(r){var c=this[0];if(r){return this.each(function(F){ah.offset.setOffset(this,r,F)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return ah.offset.bodyOffset(c)}var z=c.getBoundingClientRect(),v=c.ownerDocument;c=v.body;v=v.documentElement;return{top:z.top+(self.pageYOffset||ah.support.boxModel&&v.scrollTop||c.scrollTop)-(v.clientTop||c.clientTop||0),left:z.left+(self.pageXOffset||ah.support.boxModel&&v.scrollLeft||c.scrollLeft)-(v.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,F,z=J.documentElement,r=J.body;G=(J=J.defaultView)?J.getComputedStyle(L,null):L.currentStyle;for(var c=L.offsetTop,v=L.offsetLeft;(L=L.parentNode)&&L!==r&&L!==z;){if(ah.offset.supportsFixedPosition&&G.position==="fixed"){break}F=J?J.getComputedStyle(L,null):L.currentStyle;c-=L.scrollTop;v-=L.scrollLeft;if(L===K){c+=L.offsetTop;v+=L.offsetLeft;if(ah.offset.doesNotAddBorder&&!(ah.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.nodeName))){c+=parseFloat(F.borderTopWidth)||0;v+=parseFloat(F.borderLeftWidth)||0}G=K;K=L.offsetParent}if(ah.offset.subtractsBorderForOverflowNotVisible&&F.overflow!=="visible"){c+=parseFloat(F.borderTopWidth)||0;v+=parseFloat(F.borderLeftWidth)||0}G=F}if(G.position==="relative"||G.position==="static"){c+=r.offsetTop;v+=r.offsetLeft}if(ah.offset.supportsFixedPosition&&G.position==="fixed"){c+=Math.max(z.scrollTop,r.scrollTop);v+=Math.max(z.scrollLeft,r.scrollLeft)}return{top:c,left:v}};ah.offset={initialize:function(){var r=R.body,c=R.createElement("div"),G,z,F,v=parseFloat(ah.curCSS(r,"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>";r.insertBefore(c,r.firstChild);G=c.firstChild;z=G.firstChild;F=G.nextSibling.firstChild.firstChild;this.doesNotAddBorder=z.offsetTop!==5;this.doesAddBorderForTableAndCells=F.offsetTop===5;z.style.position="fixed";z.style.top="20px";this.supportsFixedPosition=z.offsetTop===20||z.offsetTop===15;z.style.position=z.style.top="";G.style.overflow="hidden";G.style.position="relative";this.subtractsBorderForOverflowNotVisible=z.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=r.offsetTop!==v;r.removeChild(c);ah.offset.initialize=ah.noop},bodyOffset:function(r){var c=r.offsetTop,v=r.offsetLeft;ah.offset.initialize();if(ah.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ah.curCSS(r,"marginTop",true))||0;v+=parseFloat(ah.curCSS(r,"marginLeft",true))||0}return{top:c,left:v}},setOffset:function(r,c,J){if(/static/.test(ah.curCSS(r,"position"))){r.style.position="relative"}var F=ah(r),G=F.offset(),z=parseInt(ah.curCSS(r,"top",true),10)||0,v=parseInt(ah.curCSS(r,"left",true),10)||0;if(ah.isFunction(c)){c=c.call(r,J,G)}J={top:c.top-G.top+z,left:c.left-G.left+v};"using" in c?c.using.call(r,J):F.css(J)}};ah.fn.extend({position:function(){if(!this[0]){return null}var r=this[0],c=this.offsetParent(),z=this.offset(),v=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();z.top-=parseFloat(ah.curCSS(r,"marginTop",true))||0;z.left-=parseFloat(ah.curCSS(r,"marginLeft",true))||0;v.top+=parseFloat(ah.curCSS(c[0],"borderTopWidth",true))||0;v.left+=parseFloat(ah.curCSS(c[0],"borderLeftWidth",true))||0;return{top:z.top-v.top,left:z.left-v.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||R.body;c&&!/^body|html$/i.test(c.nodeName)&&ah.css(c,"position")==="static";){c=c.offsetParent}return c})}});ah.each(["Left","Top"],function(r,c){var v="scroll"+c;ah.fn[v]=function(F){var G=this[0],z;if(!G){return null}if(F!==M){return this.each(function(){if(z=ak(this)){z.scrollTo(!r?F:ah(z).scrollLeft(),r?F:ah(z).scrollTop())}else{this[v]=F}})}else{return(z=ak(G))?"pageXOffset" in z?z[r?"pageYOffset":"pageXOffset"]:ah.support.boxModel&&z.document.documentElement[v]||z.document.body[v]:G[v]}}});ah.each(["Height","Width"],function(r,c){var v=c.toLowerCase();ah.fn["inner"+c]=function(){return this[0]?ah.css(this[0],v,false,"padding"):null};ah.fn["outer"+c]=function(z){return this[0]?ah.css(this[0],v,false,z?"margin":"border"):null};ah.fn[v]=function(z){var F=this[0];if(!F){return z==null?null:this}if(ah.isFunction(z)){return this.each(function(J){var G=ah(this);G[v](z.call(this,J,G[v]()))})}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]):z===M?ah.css(F,v):this.css(v,typeof z==="string"?z:z+"px")}});H.jQuery=H.$=ah})(window);jQuery.ui||(function(p){var j=p.fn.remove,o=p.browser.mozilla&&(parseFloat(p.browser.version)<1.9);p.ui={version:"1.7.2",plugin:{add:function(c,b,e){var a=p.ui[c].prototype;for(var d in e){a.plugins[d]=a.plugins[d]||[];a.plugins[d].push([b,e[d]])}},call:function(d,b,c){var e=d.plugins[b];if(!e||!d.element[0].parentNode){return}for(var a=0;a<e.length;a++){if(d.options[e[a][0]]){e[a][1].apply(d.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,c){if(p(a).css("overflow")=="hidden"){return false}var d=(c&&c=="left")?"scrollLeft":"scrollTop",b=false;if(a[d]>0){return true}a[d]=1;b=(a[d]>0);a[d]=0;return b},isOverAxis:function(b,c,a){return(b>c)&&(b<(c+a))},isOver:function(e,c,f,a,d,b){return p.ui.isOverAxis(e,f,d)&&p.ui.isOverAxis(c,a,b)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(o){var m=p.attr,n=p.fn.removeAttr,k="http://www.w3.org/2005/07/aaa",r=/^aria-/,q=/^wairole:/;p.attr=function(c,d,b){var a=b!==undefined;return(d=="role"?(a?m.call(this,c,d,"wairole:"+b):(m.apply(this,arguments)||"").replace(q,"")):(r.test(d)?(a?c.setAttributeNS(k,d.replace(r,"aaa:"),b):m.call(this,c,d.replace(r,"aaa:"))):m.apply(this,arguments)))};p.fn.removeAttr=function(a){return(r.test(a)?this.each(function(){this.removeAttributeNS(k,a.replace(r,""))}):n.call(this,a))}}p.fn.extend({remove:function(){p("*",this).add(this).each(function(){p(this).triggerHandler("remove")});return j.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var a;if((p.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(p.curCSS(this,"position",1))&&(/(auto|scroll)/).test(p.curCSS(this,"overflow",1)+p.curCSS(this,"overflow-y",1)+p.curCSS(this,"overflow-x",1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(p.curCSS(this,"overflow",1)+p.curCSS(this,"overflow-y",1)+p.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!a.length?p(document):a}});p.extend(p.expr[":"],{data:function(a,b,c){return !!p.data(a,c[3])},focusable:function(b){var a=b.nodeName.toLowerCase(),c=p.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(a)?!b.disabled:"a"==a||"area"==a?b.href||!isNaN(c):!isNaN(c))&&!p(b)["area"==a?"parents":"closest"](":hidden").length},tabbable:function(a){var b=p.attr(a,"tabindex");return(isNaN(b)||b>=0)&&p(a).is(":focusable")}});function l(a,f,e,b){function c(g){var h=p[a][f][g]||[];return(typeof h=="string"?h.split(/,?\s+/):h)}var d=c("getter");if(b.length==1&&typeof b[0]=="string"){d=d.concat(c("getterSetter"))}return(p.inArray(e,d)!=-1)}p.widget=function(b,c){var a=b.split(".")[0];b=b.split(".")[1];p.fn[b]=function(e){var g=(typeof e=="string"),f=Array.prototype.slice.call(arguments,1);if(g&&e.substring(0,1)=="_"){return this}if(g&&l(a,b,e,f)){var d=p.data(this[0],b);return(d?d[e].apply(d,f):undefined)}return this.each(function(){var h=p.data(this,b);(!h&&!g&&p.data(this,b,new p[a][b](this,e))._init());(h&&g&&p.isFunction(h[e])&&h[e].apply(h,f))})};p[a]=p[a]||{};p[a][b]=function(e,f){var d=this;this.namespace=a;this.widgetName=b;this.widgetEventPrefix=p[a][b].eventPrefix||b;this.widgetBaseClass=a+"-"+b;this.options=p.extend({},p.widget.defaults,p[a][b].defaults,p.metadata&&p.metadata.get(e)[b],f);this.element=p(e).bind("setData."+b,function(h,i,g){if(h.target==e){return d._setData(i,g)}}).bind("getData."+b,function(g,h){if(g.target==e){return d._getData(h)}}).bind("remove",function(){return d.destroy()})};p[a][b].prototype=p.extend({},p.widget.prototype,c);p[a][b].getterSetter="option"};p.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(b,a){var c=b,d=this;if(typeof b=="string"){if(a===undefined){return this._getData(b)}c={};c[b]=a}p.each(c,function(f,e){d._setData(f,e)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;if(b=="disabled"){this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",a)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(b,a,g){var e=this.options[b],d=(b==this.widgetEventPrefix?b:this.widgetEventPrefix+b);a=p.Event(a);a.type=d;if(a.originalEvent){for(var c=p.event.props.length,f;c;){f=p.event.props[--c];a[f]=a.originalEvent[f]}}this.element.trigger(a,g);return !(p.isFunction(e)&&e.call(this.element[0],a,g)===false||a.isDefaultPrevented())}};p.widget.defaults={disabled:false};p.ui.mouse={_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});if(p.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(p.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(b));this._mouseDownEvent=b;var c=this,a=(b.which==1),d=(typeof this.options.cancel=="string"?p(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!a||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};p(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(p.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if(p.browser.msie&&!a.button){return this._mouseUp(a)}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a))}return !this._mouseStarted},_mouseUp:function(a){p(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance)},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};p.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(f){var d={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},e="ui-dialog ui-widget ui-widget-content ui-corner-all ";f.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var b=this,a=this.options,n=a.title||this.originalTitle||"&nbsp;",s=f.ui.dialog.getTitleId(this.element),c=(this.uiDialog=f("<div/>")).appendTo(document.body).hide().addClass(e+a.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:a.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(g){(a.closeOnEscape&&g.keyCode&&g.keyCode==f.ui.keyCode.ESCAPE&&b.close(g))}).attr({role:"dialog","aria-labelledby":s}).mousedown(function(g){b.moveToTop(false,g)}),q=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(c),r=(this.uiDialogTitlebar=f("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(c),o=f('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){o.addClass("ui-state-hover")},function(){o.removeClass("ui-state-hover")}).focus(function(){o.addClass("ui-state-focus")}).blur(function(){o.removeClass("ui-state-focus")}).mousedown(function(g){g.stopPropagation()}).click(function(g){b.close(g);return false}).appendTo(r),p=(this.uiDialogTitlebarCloseText=f("<span/>")).addClass("ui-icon ui-icon-closethick").text(a.closeText).appendTo(o),t=f("<span/>").addClass("ui-dialog-title").attr("id",s).html(n).prependTo(r);r.find("*").add(r).disableSelection();(a.draggable&&f.fn.draggable&&this._makeDraggable());(a.resizable&&f.fn.resizable&&this._makeResizable());this._createButtons(a.buttons);this._isOpen=false;(a.bgiframe&&f.fn.bgiframe&&c.bgiframe());(a.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(a){var c=this;if(false===c._trigger("beforeclose",a)){return}(c.overlay&&c.overlay.destroy());c.uiDialog.unbind("keypress.ui-dialog");(c.options.hide?c.uiDialog.hide(c.options.hide,function(){c._trigger("close",a)}):c.uiDialog.hide()&&c._trigger("close",a));f.ui.dialog.overlay.resize();c._isOpen=false;if(c.options.modal){var b=0;f(".ui-dialog").each(function(){if(this!=c.uiDialog[0]){b=Math.max(b,f(this).css("z-index"))}});f.ui.dialog.maxZ=b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){if((this.options.modal&&!a)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",b)}if(this.options.zIndex>f.ui.dialog.maxZ){f.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",f.ui.dialog.overlay.maxZ=++f.ui.dialog.maxZ));var c={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++f.ui.dialog.maxZ);this.element.attr(c);this._trigger("focus",b)},open:function(){if(this._isOpen){return}var a=this.options,b=this.uiDialog;this.overlay=a.modal?new f.ui.dialog.overlay(this):null;(b.next().length&&b.appendTo("body"));this._size();this._position(a.position);b.show(a.show);this.moveToTop(true);(a.modal&&b.bind("keypress.ui-dialog",function(j){if(j.keyCode!=f.ui.keyCode.TAB){return}var k=f(":tabbable",this),c=k.filter(":first")[0],l=k.filter(":last")[0];if(j.target==l&&!j.shiftKey){setTimeout(function(){c.focus()},1)}else{if(j.target==c&&j.shiftKey){setTimeout(function(){l.focus()},1)}}}));f([]).add(b.find(".ui-dialog-content :tabbable:first")).add(b.find(".ui-dialog-buttonpane :tabbable:first")).add(b).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(a){var b=this,h=false,c=f("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof a=="object"&&a!==null&&f.each(a,function(){return !(h=true)}));if(h){f.each(a,function(j,g){f('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(j).click(function(){g.apply(b.element[0],arguments)}).hover(function(){f(this).addClass("ui-state-hover")},function(){f(this).removeClass("ui-state-hover")}).focus(function(){f(this).addClass("ui-state-focus")}).blur(function(){f(this).removeClass("ui-state-focus")}).appendTo(c)});c.appendTo(this.uiDialog)}},_makeDraggable:function(){var c=this,a=this.options,b;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){b=a.height;f(this).height(f(this).height()).addClass("ui-dialog-dragging");(a.dragStart&&a.dragStart.apply(c.element[0],arguments))},drag:function(){(a.drag&&a.drag.apply(c.element[0],arguments))},stop:function(){f(this).removeClass("ui-dialog-dragging").height(b);(a.dragStop&&a.dragStop.apply(c.element[0],arguments));f.ui.dialog.overlay.resize()}})},_makeResizable:function(a){a=(a===undefined?this.options.resizable:a);var h=this,b=this.options,c=typeof a=="string"?a:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:b.minHeight,start:function(){f(this).addClass("ui-dialog-resizing");(b.resizeStart&&b.resizeStart.apply(h.element[0],arguments))},resize:function(){(b.resize&&b.resize.apply(h.element[0],arguments))},handles:c,stop:function(){f(this).removeClass("ui-dialog-resizing");b.height=f(this).height();b.width=f(this).width();(b.resizeStop&&b.resizeStop.apply(h.element[0],arguments));f.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(a){var k=f(window),j=f(document),c=j.scrollTop(),l=j.scrollLeft(),b=c;if(f.inArray(a,["center","top","right","bottom","left"])>=0){a=[a=="right"||a=="left"?a:"center",a=="top"||a=="bottom"?a:"middle"]}if(a.constructor!=Array){a=["center","middle"]}if(a[0].constructor==Number){l+=a[0]}else{switch(a[0]){case"left":l+=0;break;case"right":l+=k.width()-this.uiDialog.outerWidth();break;default:case"center":l+=(k.width()-this.uiDialog.outerWidth())/2}}if(a[1].constructor==Number){c+=a[1]}else{switch(a[1]){case"top":c+=0;break;case"bottom":c+=k.height()-this.uiDialog.outerHeight();break;default:case"middle":c+=(k.height()-this.uiDialog.outerHeight())/2}}c=Math.max(c,b);this.uiDialog.css({top:c,left:l})},_setData:function(c,b){(d[c]&&this.uiDialog.data(d[c],b));switch(c){case"buttons":this._createButtons(b);break;case"closeText":this.uiDialogTitlebarCloseText.text(b);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(e+b);break;case"draggable":(b?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(b);break;case"position":this._position(b);break;case"resizable":var h=this.uiDialog,a=this.uiDialog.is(":data(resizable)");(a&&!b&&h.resizable("destroy"));(a&&typeof b=="string"&&h.resizable("option","handles",b));(a||this._makeResizable(b));break;case"title":f(".ui-dialog-title",this.uiDialogTitlebar).html(b||"&nbsp;");break;case"width":this.uiDialog.width(b);break}f.widget.prototype._setData.apply(this,arguments)},_size:function(){var a=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var b=this.uiDialog.css({height:"auto",width:a.width}).height();this.element.css({minHeight:Math.max(a.minHeight-b,0),height:a.height=="auto"?"auto":Math.max(a.height-b,0)})}});f.extend(f.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(a){return"ui-dialog-title-"+(a.attr("id")||++this.uuid)},overlay:function(a){this.$el=f.ui.dialog.overlay.create(a)}});f.extend(f.ui.dialog.overlay,{instances:[],maxZ:0,events:f.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(a){if(this.instances.length===0){setTimeout(function(){if(f.ui.dialog.overlay.instances.length){f(document).bind(f.ui.dialog.overlay.events,function(h){var c=f(h.target).parents(".ui-dialog").css("zIndex")||0;return(c>f.ui.dialog.overlay.maxZ)})}},1);f(document).bind("keydown.dialog-overlay",function(c){(a.options.closeOnEscape&&c.keyCode&&c.keyCode==f.ui.keyCode.ESCAPE&&a.close(c))});f(window).bind("resize.dialog-overlay",f.ui.dialog.overlay.resize)}var b=f("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(a.options.bgiframe&&f.fn.bgiframe&&b.bgiframe());this.instances.push(b);return b},destroy:function(b){this.instances.splice(f.inArray(this.instances,b),1);if(this.instances.length===0){f([document,window]).unbind(".dialog-overlay")}b.remove();var a=0;f.each(this.instances,function(){a=Math.max(a,this.css("z-index"))});this.maxZ=a},height:function(){if(f.browser.msie&&f.browser.version<7){var a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(a<b){return f(window).height()+"px"}else{return a+"px"}}else{return f(document).height()+"px"}},width:function(){if(f.browser.msie&&f.browser.version<7){var b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var a=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(b<a){return f(window).width()+"px"}else{return b+"px"}}else{return f(document).width()+"px"}},resize:function(){var a=f([]);f.each(f.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:f.ui.dialog.overlay.width(),height:f.ui.dialog.overlay.height()})}});f.extend(f.ui.dialog.overlay.prototype,{destroy:function(){f.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);[].indexOf||(Array.prototype.indexOf=function(a,c){c=(c==null?0:c);for(var b=c;b<this.length;b++){if(this[b]==a){return b}}return -1});var Mfd=new Object();Mfd.AddPadding=function(a){return(a<10?"0"+a:a)};Mfd.FormatDate=function(a){return(a?Mfd.AddPadding(a.getDate())+"."+Mfd.AddPadding(a.getMonth()+1)+"."+a.getFullYear():"")};Mfd.ParseDate=function(a){var b=a.match(/^(\d{1,2})\.(\d{1,2})\.(\d{4})$/);return(b?new Date(b[3],b[2]-1,b[1]):null)};Mfd._Now=new Date();Mfd.Now=function(){return new Date(Mfd._Now.valueOf())};Mfd.Today=function(){return new Date(Mfd._Now.getFullYear(),Mfd._Now.getMonth(),Mfd._Now.getDate())};Mfd.Yesterday=function(){return new Date(Mfd._Now.getFullYear(),Mfd._Now.getMonth(),Mfd._Now.getDate()-1)};Mfd.Calendar=function(d,e,h,b,f,g){if(document.getElementById(d)==null){return}var c={0:"Пн",1:"Вт",2:"Ср",3:"Чт",4:"Пт",5:"Сб",6:"Вс"};var a={0:"Январь",1:"Февраль",2:"Март",3:"Апрель",4:"Май",5:"Июнь",6:"Июль",7:"Август",8:"Сентябрь",9:"Октябрь",10:"Ноябрь",11:"Декабрь"};var i=this;i.AlwaysVisible=e;i.CurrentDate=null;i.EndDate=f?f:Mfd.Now();i.OnChange=h;i.SelectedDate=Mfd.Now();i.StartDate=b?b:new Date(Mfd.Now().getFullYear()-10,0,1);i.TargetID=d;i.Body_OnMouseDown=function(j){if(j.target.id!=i.TargetID&&$(j.target).closest("#calendar_"+i.TargetID).length==0){i.Hide()}};i._Date_OnClick=function(l,j){var m=$("#calendar_"+i.TargetID+" select:last").val();var n=parseInt($("#calendar_"+i.TargetID+" select:first").val())+j;var k=$(l).text();i.SelectDate(new Date(m,n,k))};i.DatePreviousMonth_OnClick=function(){i.CurrentDate.setDate(0);i._Date_OnClick(this,-1)};i.Date_OnClick=function(){i._Date_OnClick(this,0)};i.DateNextMonth_OnClick=function(){i.CurrentDate.setMonth(i.CurrentDate.getMonth()+2,0);i._Date_OnClick(this,1)};i.CurrentDayOfWeek=function(){return(i.CurrentDate.getDay()+6)%7};i.DaysInMonth=function(j){return 32-new Date(j.getFullYear(),j.getMonth(),32).getDate()};i.FixCurrentDate=function(){if(i.CurrentDate<i.StartDate){i.CurrentDate=new Date(i.StartDate.valueOf())}else{if(i.CurrentDate>i.EndDate){i.CurrentDate=new Date(i.EndDate.valueOf())}}};i.Hide=function(){if(!i.AlwaysVisible){$("#calendar_"+i.TargetID).hide()}};i.Init=function(){var j=$("#"+i.TargetID);var k=Mfd.ParseDate(j.val());if(k){i.SelectedDate=k}if(document.getElementById("calendar_"+i.TargetID)){i.UpdatePosition();return}var l=$('<div class="mfd-calendar" id="calendar_'+i.TargetID+'"></div>');if(i.AlwaysVisible){l.insertAfter(j);return}l.css({display:"none",position:"absolute","z-index":1002}).appendTo($(document.body));i.UpdatePosition();$(document.body).mousedown(i.Body_OnMouseDown);j.keydown(i.Input_OnClick);$(window).resize(i.UpdatePosition)};i.Input_OnClick=function(j){if(j.keyCode==9){i.Hide()}};i.IsCurrentDateVisible=function(){return i.CurrentDate>=i.StartDate&&i.CurrentDate<=i.EndDate};i.Month_OnChange=function(){i.CurrentDate.setDate(1);i.CurrentDate.setMonth(this.options[this.selectedIndex].value);i.Update(null,true)};i.NextMonth_OnClick=function(){if(i.CurrentDate.getFullYear()==i.EndDate.getFullYear()&&i.CurrentDate.getMonth()==i.EndDate.getMonth()){return}i.CurrentDate.setDate(1);i.CurrentDate.setMonth(i.CurrentDate.getMonth()+1);i.Update(null,true)};i.PreviousMonth_OnClick=function(){if(i.CurrentDate.getFullYear()==i.StartDate.getFullYear()&&i.CurrentDate.getMonth()==i.StartDate.getMonth()){return}i.CurrentDate.setDate(1);i.CurrentDate.setMonth(i.CurrentDate.getMonth()-1);i.Update(null,true)};i.SelectDate=function(j){i.SelectedDate=j;i.UpdateInput();if(i.AlwaysVisible){i.Update()}};i.Today_OnClick=function(){i.SelectDate(Mfd.Today())};i.Update=function(k,x){i.Init();var y;if(k||(!i.CurrentDate&&!x)){i.CurrentDate=Mfd.Now();i.CurrentDate.setTime(i.SelectedDate.valueOf())}i.FixCurrentDate();var v=$("#calendar_"+i.TargetID).empty();var C=$("<div/>").appendTo(v).addClass("mfd-calendar-header");$('<button title="Предыдущий месяц" type="button">&laquo;</button>').appendTo(C).click(i.PreviousMonth_OnClick);var B=$("<select/>").appendTo(C).change(i.Month_OnChange)[0];var A=i.StartDate.getFullYear()==i.CurrentDate.getFullYear()?i.StartDate.getMonth():0;var w=i.EndDate.getFullYear()==i.CurrentDate.getFullYear()?i.EndDate.getMonth():11;B.options.length=w-A+1;for(y=0;y<B.options.length;++y){var u=A+y;B.options[y]=new Option(a[u],u);if(u==i.CurrentDate.getMonth()){B.selectedIndex=y}}var p=$("<select/>").appendTo(C).change(i.Year_OnChange)[0];p.options.length=i.EndDate.getFullYear()-i.StartDate.getFullYear()+1;for(y=0;y<p.options.length;y++){p.options[y]=new Option(i.EndDate.getFullYear()-y,i.EndDate.getFullYear()-y);if(i.EndDate.getFullYear()-y==i.CurrentDate.getFullYear()){p.selectedIndex=y}}$('<button title="Следующий месяц" type="button">&raquo;</button>').appendTo(C).click(i.NextMonth_OnClick);var s=$("<tbody/>").appendTo($("<table/>").appendTo(v));var t=$("<tr/>").appendTo(s);for(y=0;y<=6;y++){var n=$("<th/>").appendTo(t).text(c[y]);if(y>=5){n.addClass("mfd-calendar-day-weekend")}}i.CurrentDate.setMonth(i.CurrentDate.getMonth()+1,0);var l=i.CurrentDate.getDate();var q=new Array();i.CurrentDate.setDate(1);var j=i.CurrentDayOfWeek();i.CurrentDate.setMonth(i.CurrentDate.getMonth()-1,1);i.CurrentDate.setDate(i.DaysInMonth(i.CurrentDate)-j+1);for(y=0;y<j;y++){var n=$("<td/>");if(i.IsCurrentDateVisible()){n.text(i.CurrentDate.getDate()).addClass("mfd-calendar-day-other").click(i.DatePreviousMonth_OnClick)}if(i.CurrentDayOfWeek()>=5){n.addClass("mfd-calendar-day-weekend")}q.push(n);i.CurrentDate.setDate(i.CurrentDate.getDate()+1)}for(y=1;y<=l;y++){i.CurrentDate.setDate(y);var n=$("<td/>");if(i.IsCurrentDateVisible()){n.text(i.CurrentDate.getDate()).click(i.Date_OnClick)}if(i.CurrentDate.valueOf()==i.SelectedDate.valueOf()){n.addClass("mfd-calendar-day-selected")}if(i.CurrentDayOfWeek()>=5){n.addClass("mfd-calendar-day-weekend")}q.push(n)}var o=new Date(i.CurrentDate.valueOf());for(y=i.CurrentDayOfWeek()+1;y<7;y++){i.CurrentDate.setDate(i.CurrentDate.getDate()+1);var n=$("<td/>");if(i.IsCurrentDateVisible()){n.text(i.CurrentDate.getDate()).addClass("mfd-calendar-day-other").click(i.DateNextMonth_OnClick)}if(i.CurrentDayOfWeek()>=5){n.addClass("mfd-calendar-day-weekend")}q.push(n)}i.CurrentDate=o;var r=true;t=$("<tr/>").appendTo(s);for(y=0;y<q.length;y++){t.append(q[y]);if(q[y].html()){r=false}if(y%7==6){if(r){t.remove()}t=$("<tr/>").appendTo(s);r=true}}var z=$("<div/>").appendTo(v).addClass("mfd-calendar-footer");if(Mfd.Yesterday()>=i.StartDate&&Mfd.Yesterday()<=i.EndDate){$('<button type="button">Вчера</button>').appendTo(z).click(i.Yesterday_OnClick)}if(Mfd.Today()>=i.StartDate&&Mfd.Today()<=i.EndDate){$('<button type="button">Сегодня</button>').appendTo(z).click(i.Today_OnClick)}if(!i.AlwaysVisible){$('<button type="button">Закрыть</button>').appendTo(z).click(i.Hide)}v.show();i.UpdatePosition()};i.UpdateInput=function(){var j=Mfd.FormatDate(i.SelectedDate);$("#"+i.TargetID).removeClass("mfdInputBlur").val(j);if(!i.AlwaysVisible){i.Hide()}if(i.OnChange){i.OnChange(j)}};i.UpdatePosition=function(){if(i.AlwaysVisible){return}var j=document.getElementById(i.TargetID);var l=$(j).offset();var k=$("#calendar_"+i.TargetID);k.css({left:(g=="right"?l.left+j.offsetWidth-k.width():l.left)+"px",top:(l.top+j.offsetHeight)+"px"})};i.Year_OnChange=function(){i.CurrentDate.setDate(1);i.CurrentDate.setFullYear(this.options[this.selectedIndex].value);i.Update(null,true)};i.Yesterday_OnClick=function(){i.SelectDate(Mfd.Yesterday())};if(i.AlwaysVisible){i.Update()}else{$("#"+i.TargetID).focus(i.Update)}};Mfd.Calendar.EndOfNextYear=new Date(Mfd.Now().getFullYear()+1,11,31);Mfd.Calendar.Tomorrow=new Date(Mfd.Now().getFullYear(),Mfd.Now().getMonth(),Mfd.Now().getDate()+1);Mfd.HidePageMethodMessages=function(){$(".mfd-page-method-message").remove()};Mfd.ShowPageMethodMessage=function(a,c,b){Mfd.HidePageMethodMessages();$("<div/>").addClass("mfd-page-method-message").addClass(b?b:"d").text(c).insertAfter($(a))};Mfd.GetSelectedText=function(b){var a=document.getElementById(b);return a.options[a.selectedIndex].text};Mfd.GetSelectedValue=function(b){var a=document.getElementById(b);return a.options[a.selectedIndex].value};Mfd.GoTo=function(a){var b=document.createElement("a");b.style.display="none";if(!b.click){window.location=a;return}b.setAttribute("href",a);document.body.appendChild(b);b.click()};Mfd.JsonEscapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;Mfd.JsonMeta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};Mfd.JsonEncode=function(a){if(typeof(JSON)==="object"&&JSON.stringify){return JSON.stringify(a)}Mfd.JsonEscapable.lastIndex=0;return Mfd.JsonEscapable.test(a)?'"'+a.replace(Mfd.JsonEscapable,function(b){var d=Mfd.JsonMeta[b];return typeof d==="string"?d:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'};Mfd.JsonEncodeValue=function(a){return Mfd.JsonEncode(document.getElementById(a).value)};Mfd.Menu_HideSender=null;Mfd.Menu_HideTimeoutID=0;Mfd.Menu_OnMouseOver=function(a){if(Mfd.Menu_HideSender!=null){clearTimeout(Mfd.Menu_HideTimeoutID);Mfd.Menu_HideSender.className=Mfd.Menu_HideSender.className.replace("over","").replace(" over","");Mfd.Menu_HideSender=null}a.className+=" over"};Mfd.Menu_OnMouseOut=function(a){if(Mfd.Menu_HideSender!=null){clearTimeout(Mfd.Menu_HideTimeoutID);if(Mfd.Menu_HideSender!=a){Mfd.Menu_HideSender.className=Mfd.Menu_HideSender.className.replace("over","").replace(" over","")}}Mfd.Menu_HideSender=a;var b=function(){Mfd.Menu_HideSender.className=Mfd.Menu_HideSender.className.replace("over","").replace(" over","");Mfd.Menu_HideSender=null};Mfd.Menu_HideTimeoutID=setTimeout(b,300)};Mfd.PollToggle=function(a,b){document.getElementById("mfdPollResults"+b).style.display=a?"":"none";document.getElementById("mfdPollVoting"+b).style.display=a?"none":""};Mfd.PollVote=function(d,f){var b="/Polls/Default.aspx/Vote";var a;var e=document.getElementById("mfdPollForecastOption"+f);if(e!=null){if(e==""){alert("Пожалуйста, укажите прогнозируемое вами значение.");return}b+="2";a="{pollID:"+f+",forecast:"+Mfd.JsonEncode(e.value)+"}"}else{var c=$("[name=mfdPollOption"+f+"]:checked");if(c.length==0){alert("Пожалуйста, выберите вариант ответа.");return}a="{pollID:"+f+",optionID:"+c.val()+"}"}$.ajaxPageMethod2(d,b,a,function(g){g==""?window.location.reload(true):alert(g)})};Mfd.RemoveDuplicateOptions=function(f){var b=new Array();var e=document.getElementById(f);for(var d=0;d<e.options.length;){var h=false;var g=e.options[d];for(var c=0;!h&&c<b.length;c++){if(b[c]==g.value){h=true}}if(h){e.removeChild(g);continue}b.push(g.value);d++}};Mfd.Suggest=function(g,b,e,d,a){if(!g){return}var f=$("#"+g);if(f.length==0){return}var c=this;c.Cache={};c.CacheKeys=[];c.ID=g;c.MaxCacheLength=10;c.NoCache=a;c.Timeout=200;c.TimeoutID=null;c.Value="";c.WebMethodName=b;c.GetHtml=e;c.GetJson=d;c.Hide=function(){$("#"+c.ID+"Suggest").hide()};c.OnBlur=function(h){setTimeout(c.Hide,c.Timeout)};c.OnFocus=function(h){clearTimeout(c.TimeoutID);c.TimeoutID=setTimeout(c.Query,c.Timeout)};c.OnKeyDown=function(j){switch(j.keyCode){case 37:case 38:var i=$("#"+c.ID+"Suggest .mfd-selected").removeClass("mfd-selected").prev();if(i.length==0){i=$("#"+c.ID+"Suggest > div:last-child")}i.addClass("mfd-selected");return false;case 39:case 40:var h=$("#"+c.ID+"Suggest .mfd-selected").removeClass("mfd-selected").next();if(h.length==0){h=$("#"+c.ID+"Suggest > div:first-child")}h.addClass("mfd-selected");return false}};c.OnKeyPress=function(i){switch(i.keyCode){case 13:var h=$("#"+c.ID+"Suggest .mfd-selected a");if(h.length==0){return true}i.cancelBubble=true;i.returnValue=false;i.preventDefault();i.stopPropagation();Mfd.GoTo(h[0].href);return false}};c.OnKeyUp=function(h){switch(h.keyCode){default:if(c.Value==$("#"+c.ID).val()){return false}clearTimeout(c.TimeoutID);c.TimeoutID=setTimeout(c.Query,c.Timeout)}};c.OnQuery=function(h){return function(m){if(!c.NoCache){var k=c.CacheKeys.indexOf(h);if(k>=0){c.CacheKeys.splice(k,1);c.CacheKeys.push(h)}else{if(c.CacheKeys.length>=c.MaxCacheLength){delete c.Cache[c.CacheKeys.shift()]}c.CacheKeys.push(h);c.Cache[h]=m}}var o=$("#"+c.ID);if(o.val()!=h){return}var n=o.offset();var j=$("#"+c.ID+"Suggest").empty().show();if(j.length==0){j=$("<div/>").appendTo($(document.body)).addClass("mfd-suggest").attr("id",c.ID+"Suggest").css({left:n.left+"px",top:(n.top+o[0].offsetHeight)+"px"})}if(m.length==0){j.html('<div class="d">Ничего не найдено</div>');return}for(var k=0;k<m.length;++k){var l=c.GetHtml(m[k],k,m.length);if(l!=null){$("<div/>").appendTo(j).html(l)}}}};c.Query=function(){var i=$("#"+c.ID).val();c.Value=i;if(i==""){$("#"+c.ID+"Suggest").remove();return}var h=c.Cache[i];if(!c.NoCache&&h){(c.OnQuery(i))(h)}else{$.ajaxPageMethod2(null,c.WebMethodName,c.GetJson?c.GetJson(i):"{q:"+Mfd.JsonEncode(i)+"}",c.OnQuery(i),function(){})}};f.attr("autocomplete","off").blur(c.OnBlur).focus(c.OnFocus).keydown(c.OnKeyDown).keypress(c.OnKeyPress).keyup(c.OnKeyUp)};Mfd.TableBlocks={};Mfd.TableBlock=function(d,c,b){var a=this;a.Id=d;Mfd.TableBlocks[a.Id]=a;a.Selected=null;a.Tables=b;a.Timeout=c;a.TimeoutId=0;a.Check=function(){for(var f=0;f<a.Tables.length;f++){var e=$("#tb_"+a.Id+"_t_"+a.Tables[f]);if(e.length==0||!e.hasClass("mfdSelected")){continue}a.Selected=a.Tables[f];$("#b_"+a.Id+"_t_"+a.Tables[f]+"_content").load("/MarketData/TableGenerator.ashx",{id:a.Tables[f]},function(){this.style.height="";a.UpdateHash()})}};a.Select=function(h){if(a.TimeoutId){clearTimeout(a.TimeoutId)}var k=32;for(var f=0;f<a.Tables.length;f++){var e=$("#tb_"+a.Id+"_t_"+a.Tables[f]);if(e.length==0){continue}if(h!=a.Tables[f]){if(e.hasClass("mfdSelected")){k=document.getElementById("b_"+a.Id+"_t_"+a.Tables[f]+"_content").offsetHeight}e.removeClass("mfdSelected");$("#b_"+a.Id+"_t_"+a.Tables[f]+"_content").hide();continue}}for(var f=0;f<a.Tables.length;f++){var e=$("#tb_"+a.Id+"_t_"+a.Tables[f]);if(e.length==0||h!=a.Tables[f]){continue}e.addClass("mfdSelected");var g=document.getElementById("b_"+a.Id+"_t_"+a.Tables[f]+"_content");g.style.display="";if(g.innerHTML==""){g.style.height=k+"px"}var j=$(g).offset();$("<div/>").css({"background-color":"#eee",filter:"alpha(opacity=50)",height:g.offsetHeight+"px",left:j.left+"px",opacity:"0.5",position:"absolute",top:j.top+"px",width:g.offsetWidth+"px","z-index":"1"}).appendTo(g);$("<img/>").attr("src","/I/Throbber32.gif").css({left:(j.left+(g.offsetWidth-32)/2)+"px",position:"absolute",top:(j.top+(g.offsetHeight-32)/2)+"px"}).appendTo(g);a.Check()}};a.UpdateHash=function(){var f=new Array();for(var e in Mfd.TableBlocks){if(Mfd.TableBlocks[e].Selected!=null){f.push(Mfd.TableBlocks[e].Id+"="+Mfd.TableBlocks[e].Selected)}}document.location.hash=f.join("&")}};Mfd.UrlEncode=function(a){return escape(a).replace(/\+/g,"%2B").replace(/\//g,"%2F")};Mfd.UrlEncodeValue=function(a){return Mfd.UrlEncode(document.getElementById(a).value)};$.ajaxSetup({timeout:15000});jQuery.extend({ajaxPageMethod2:function(b,a,c,e,d){if(b){b.disabled=true}$.ajax({type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",url:(a.indexOf("/")==-1?("Default.aspx/"+a):a),data:c,success:function(f){if(b){b.disabled=false}if(f!=null&&f.d!=null){e?e(f.d):window.location.reload(true)}else{d?d("При загрузке данных произошла ошибка."):alert("При загрузке данных произошла ошибка.")}},error:function(h,i,f){if(b){b.disabled=false}var g="При отправке запроса произошла ошибка: "+i;d?d(g):alert(g)}})},mfdDeserializeFromDictionary:function(a){$("[id^=mfdSerialize]").each(function(){var b=this.id.substr(12);var c=a[b];if(c==undefined){return}switch(this.tagName.toLowerCase()){case"input":if(!this.type||this.type=="text"){this.value=c}else{if(this.type=="checkbox"){this.checked=(c=="1")}}break;case"select":if(!this.multiple){$(this).val(c)}break}})},mfdPageMethod:function(methodName,jsonDataString,callback){if(!callback){callback=function(success,msg){if(success){window.location.reload(true)}else{alert(msg)}}}var $enabled=$(":input:enabled").attr("disabled","disabled");$.ajax({contentType:"application/json; charset=utf-8",data:jsonDataString,dataType:"json",error:function(xhr,textStatus,errorThrown){$enabled.removeAttr("disabled");var msg=null;if(textStatus=="timeout"){msg="Истекло время ожидания ответа от сервера."}else{if(textStatus=="error"&&xhr&&xhr.status==500&&xhr.responseText){var response=eval("("+xhr.responseText+")");if(response&&response.Message){msg="При отправке запроса на сервер произошла непредвиденная ошибка: «"+response.Message+"»"}else{msg="При отправке запроса на сервер произошла непредвиденная ошибка."}}else{if(textStatus=="parsererror"){msg="При обработке полученных с сервера данных произошла непредвиденная ошибка."}else{msg="При отправке запроса на сервер произошла непредвиденная ошибка."}}}callback(false,msg)},success:function(data,textStatus,xhr){$enabled.removeAttr("disabled");if(data&&data.d){callback(data.d.IsSuccess,data.d.Message,data.d)}else{callback(false,"При загрузке данных произошла ошибка.")}},type:"POST",url:(methodName.indexOf("/")==-1?("Default.aspx/"+methodName):methodName)})},mfdPageMethodSimple:function(c,a,b){Mfd.HidePageMethodMessages();$.mfdPageMethod(a,$.mfdSerializeToJsonString(),function(e,d){if(e){if(b){if(document.referrer.match(new RegExp(b+"/?(Default.aspx)??","i"))){Mfd.GoTo(document.referrer)}else{Mfd.GoTo(b)}}else{Mfd.ShowPageMethodMessage(c,d,"u")}}else{Mfd.ShowPageMethodMessage(c,d,"d")}})},mfdSerializeToDictionary:function(){var a={};$("[id^=mfdSerialize]").each(function(){var b=this.id.substr(12);switch(this.tagName.toLowerCase()){case"input":if(!this.type||this.type=="text"){a[b]=this.value}else{if(this.type=="checkbox"){a[b]=this.checked?"1":""}}break;case"select":if(this.multiple){a[b]=$.map(this.options,function(c){return c.value}).join(",")}else{a[b]=this.options[this.selectedIndex].value}break}});return a},mfdSerializeToJsonString:function(){var a=new Array();$("[name]").each(function(){if(!this.name||this.name=="__VIEWSTATE"){return}var c=this.tagName.toLowerCase();var b=this.name=="ID"?"id":(this.name.substr(0,1).toLowerCase()+this.name.substr(1));var d;if(c=="textarea"||(c=="input"&&(this.type=="hidden"||this.type=="text"))){d=Mfd.JsonEncode(this.value)}else{if(c=="input"&&this.type=="checkbox"){d=this.checked.toString()}else{if(c=="select"){d=this.options[this.selectedIndex].value}else{return}}}a.push(b+":"+d)});return"{"+a.join(",")+"}"}});jQuery.fn.extend({mfdHelp:function(b){var a=this;if(a.val()==""){a.addClass("mfdInputBlur").val(b)}a.focus(function(){var c=$(this);if(c.hasClass("mfdInputBlur")){c.val("").removeClass("mfdInputBlur")}});a.blur(function(){var c=$(this);if(c.hasClass("mfdInputBlur")){return}if(c.val()==""){c.addClass("mfdInputBlur").val(b)}else{c.removeClass("mfdInputBlur")}});return a},mfdSort:function(){var b=this;var a=$.makeArray(b.children()).sort(function(d,c){return(d.innerHTML.toLowerCase()>c.innerHTML.toLowerCase())?1:-1});b.html(a)}});$(function(){var d=document.location.hash.substr(1).split("&");for(var b=0;b<d.length;b++){if(!d[b]){continue}var c=d[b].split("=");var a=Mfd.TableBlocks[c[0]];if(!a){break}if(c[1]!=a.Tables[0]){a.Select(c[1])}}new Mfd.Suggest("mfdSearch","/MarketData/Search/Default.aspx/Q",function(e,f,g){if(f==g-1){if(e[0]>10){return'<a href="javascript:document.forms[0].submit();"><b>Всего найдено: '+e[0]+"</b></a>"}else{return null}}var i=e[2]==null?"":'<span class="mfd-suggest-groupname">'+e[2]+"</span>";var h=e[3]==null?"":'<span class="mfd-suggest-issuername">'+e[3]+"</span>";return'<a href="/MarketData/Ticker/?ID='+e[0]+'">'+i+e[1]+h+"</a>"},function(e){return"{q:"+Mfd.JsonEncode(e)+",g:null}"})});