function dialog_radio_line(a,b,c,d){var e='<tr><td style="width:150px;"><label>'+$._(b)+":</label></td><td>";for(var f=0;f<d.length;f++){e+='<input id="id_'+c+"_"+d[f][0]+'" name="'+c+'" value="'+d[f][0]+'" type="radio"';if(a[c]==d[f][0])e+=' checked="checked"';e+=' /><label for="id_'+c+"_"+d[f][0]+'" class="rmargin">'+$._(d[f][1])+"</label>"}e+="</td></tr>";return e}function TDialog(a){this.id=a["id"];this.style=a["style"];this.title=a["title"];this.icon=a["icon"];this.width=a["width"];this.height=a["height"];this.closable=a["closable"];this.content=a["content"];this.buttons=a["buttons"];if(!this.style)this.style="normal";this.dragging=!1;this.is_show=!1;this.set_style=function(a){if(this.style!=a){this.o_container.removeClass("tdialog-style-"+this.style);this.style=a;this.o_container.addClass("tdialog-style-"+this.style)}};this.activate=function(a){for(i in tdm.l){if(tdm.l[i].id!=this.id)$(".tdialog").removeClass("tdialog-active")}tdm.tdialog_index+=1;this.o_container.css("zIndex",tdm.tdialog_index);this.o_container.addClass("tdialog-active")};this.onmousedown=function(a){this.save_x=a.pageX;this.save_y=a.pageY;var b=function(a){var b=/([0-9]+)(\.[0-9]*)?px/;try{return parseInt(b.exec(a)[1])}catch(c){return 0}};var c=b(this.o_container.css("left")),d=b(this.o_container.css("top"));this.draggable_bounds=[this.save_x-c,this.save_y-d,c+this.o_container.outerWidth()-this.save_x,d+this.o_container.outerHeight()-this.save_y];var e;if(this.o_container.css("zIndex")!=tdm.tdialog_index){this.activate()}for(e in tdm.l)tdm.l[e].dragging=!1;this.dragging=!0;return!1};this.get_caption_width=function(){var a=this.width;if(this.closable)a-=55;if(this.icon)a-=40;return a};this.set_title=function(a){$("#tdialog-id-"+this.id+" .tdialog-caption").html(a)};this.set_content=function(a){this.o_content.html(a)};this.set_buttons=function(a){this.buttons=a;if(this.buttons){var b='<div class="tdialog-buttons">';var c;var d=1;for(c in this.buttons){b+='<div style="float:right; margin-left:5px;" id="tdialog-button-'+this.id+"-"+d+'" class="clk tdialog-button tdialog-button-brown">'+c+"</div>";d+=1}b+='<div style="clear:both;"></div></div>';if(!this.o_buttons){this.o_buttons=$(b);this.o_container.append(this.o_buttons)}else $("#tdialog-id-"+this.id+" .tdialog-buttons").html(b);d=1;for(c in this.buttons){$("#tdialog-button-"+this.id+"-"+d).bind("click",this.buttons[c]);d+=1}}else $("#tdialog-id-"+this.id+" .tdialog-buttons").html("")};this.create=function(){var a={width:this.width+"px"};if(this.height)a["height"]=this.height+"px";this.o_container=$('<div id="tdialog-id-'+this.id+'" />').appendTo(document.body).hide().addClass("tdialog").addClass("tdialog-style-"+this.style).css(a);var b="";if(this.closable)b='<div class="tdialog-close" title="'+$._("Close")+'" onclick="tdm.hide(\''+this.id+"')\"></div>";var c="";if(this.icon)c="padding-left:52px; background:url("+this.icon+") left top no-repeat; background-position:10px 7px;";this.o_title=$('<div class="tdialog-title"><div class="tdialog-caption" style="'+c+"width:"+this.get_caption_width()+'px;">'+this.title+"</div>"+b+"</div>");this.o_content=$('<div class="tdialog-content">'+this.content+"</div>");this.o_container.append(this.o_title);this.o_container.append(this.o_content);this.set_buttons(this.buttons);this.o_title.bind("mousedown",$.proxy(this,"onmousedown")).bind("selectstart",function(){return!1})};this.create()}function TDialogManager(){this.tdialog_index=5e3;this.l={};this.show=function(a){var b=$(window),c=$(document);if(!this.l[a.id]){a.x=(b.width()-a.o_container.outerWidth())/2;a.y=(b.height()-a.o_container.outerHeight())/2+c.scrollTop();a.o_container.css({top:a.y,left:a.x,zIndex:this.tdialog_index});this.tdialog_index+=1;this.l[a.id]=a}else{if(this.l[a.id].y-c.scrollTop()<0){this.l[a.id].y=c.scrollTop()+10}else if(this.l[a.id].y+this.l[a.id].o_container.outerHeight()>c.scrollTop()+b.height()){this.l[a.id].y=c.scrollTop()+b.height()-this.l[a.id].o_container.outerHeight()-10}tdm.l[a.id].o_container.animate({top:this.l[a.id].y,left:this.l[a.id].x},200)}this.l[a.id].rel_y=this.l[a.id].y-$(document).scrollTop();if(this.l[a.id].rel_y<0)this.l[a.id].rel_y=0;a.activate();a.o_container.show();a.is_show=!0};this.hide=function(a){if(!this.l[a])return;this.l[a].o_container.hide();this.l[a].is_show=!1;var b=0;var c=null;var d;$(".tdialog").removeClass("tdialog-active");for(d in this.l){if(this.l[d].o_container.css("zIndex")>b&&this.l[d].is_show){b=this.l[d].o_container.css("zIndex");c=d}}if(c){this.l[c].o_container.addClass("tdialog-active")}}}function tdm_onresize(){if(!tdm)return;clearTimeout(onresize_timeout);onresize_timeout=setTimeout(function(){var a=$(document),b=$(window);for(var c in tdm.l){var d=parseFloat(tdm.l[c].o_container.css("top")),e=parseFloat(tdm.l[c].o_container.css("left"));if(d<0){tdm.l[c].y=0}else if(d+tdm.l[c].o_container.outerHeight()>a.scrollTop()+b.height()){tdm.l[c].y=a.scrollTop()+b.height()-tdm.l[c].o_container.outerHeight()}if(e+tdm.l[c].o_container.outerWidth()>b.width()){tdm.l[c].x=b.width()-tdm.l[c].o_container.outerWidth()}if(tdm.l[c].y<a.scrollTop())tdm.l[c].y=a.scrollTop();if(tdm.l[c].x<0)tdm.l[c].x=0;tdm.l[c].o_container.animate({top:tdm.l[c].y,left:tdm.l[c].x},100);tdm.l[c].rel_y=tdm.l[c].y-a.scrollTop();if(tdm.l[c].rel_y<0)tdm.l[c].rel_y=0}},100)}function tdm_onscroll(){if(!tdm)return;clearTimeout(onscroll_timeout);onscroll_timeout=setTimeout(function(){var a=$(document);for(var b in tdm.l){tdm.l[b].y=a.scrollTop()+tdm.l[b].rel_y;tdm.l[b].o_container.animate({top:tdm.l[b].y},100)}},100)}function tdm_onmouseup(){var a;for(a in tdm.l){if(tdm.l[a].dragging){tdm.l[a].dragging=!1}}}function tdm_onmousemove(a){var b;for(b in tdm.l){if(tdm.l[b].dragging){var c=tdm.l[b].draggable_bounds;var d=$(window),e=$(document);var f=a.pageX,g=a.pageY,h=e.scrollTop();if(f<c[0])f=c[0];if(g-h<c[1])g=c[1]+h;if(f>d.width()-c[2])f=d.width()-c[2];if(g-h>d.height()-c[3])g=d.height()-c[3]+h;tdm.l[b].x+=f-tdm.l[b].save_x;tdm.l[b].y+=g-tdm.l[b].save_y;tdm.l[b].save_x=f;tdm.l[b].save_y=g;tdm.l[b].o_container.css({top:tdm.l[b].y,left:tdm.l[b].x,zIndex:tdm.tdialog_index});tdm.l[b].rel_y=tdm.l[b].y-e.scrollTop();if(tdm.l[b].rel_y<0)tdm.l[b].rel_y=0}}}(function(a,undefined){function cx(a){return e.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var c=b.body,d=e("<"+a+">").appendTo(c),f=d.css("display");d.remove();if(f==="none"||f===""){if(!ck){ck=b.createElement("iframe");ck.frameBorder=ck.width=ck.height=0}c.appendChild(ck);if(!cl||!ck.createElement){cl=(ck.contentWindow||ck.contentDocument).document;cl.write((b.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");cl.close()}d=cl.createElement(a);cl.body.appendChild(d);f=e.css(d,"display");c.removeChild(ck)}cj[a]=f}return cj[a]}function ct(a,b){var c={};e.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=undefined}function cr(){setTimeout(cs,0);return cq=e.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,b){if(a.dataFilter){b=a.dataFilter(b,a.dataType)}var c=a.dataTypes,d={},f,g,h=c.length,i,j=c[0],k,l,m,n,o;for(f=1;f<h;f++){if(f===1){for(g in a.converters){if(typeof g==="string"){d[g.toLowerCase()]=a.converters[g]}}}k=j;j=c[f];if(j==="*"){j=k}else if(k!=="*"&&k!==j){l=k+" "+j;m=d[l]||d["* "+j];if(!m){o=undefined;for(n in d){i=n.split(" ");if(i[0]===k||i[0]==="*"){o=d[i[1]+" "+j];if(o){n=d[n];if(n===!0){m=o}else if(o===!0){m=n}break}}}}if(!(m||o)){e.error("No conversion from "+l.replace(" "," to "))}if(m!==!0){b=m?m(b):o(n(b))}}}return b}function ca(a,b,c){var d=a.contents,e=a.dataTypes,f=a.responseFields,g,h,i,j;for(h in f){if(h in c){b[f[h]]=c[h]}}while(e[0]==="*"){e.shift();if(g===undefined){g=a.mimeType||b.getResponseHeader("content-type")}}if(g){for(h in d){if(d[h]&&d[h].test(g)){e.unshift(h);break}}}if(e[0]in c){i=e[0]}else{for(h in c){if(!e[0]||a.converters[h+" "+e[0]]){i=h;break}if(!j){j=h}}i=i||j}if(i){if(i!==e[0]){e.unshift(i)}return c[i]}}function b_(a,b,c,d){if(e.isArray(b)){e.each(b,function(b,f){if(c||bD.test(a)){d(a,f)}else{b_(a+"["+(typeof f==="object"||e.isArray(f)?b:"")+"]",f,c,d)}})}else if(!c&&b!=null&&typeof b==="object"){for(var f in b){b_(a+"["+f+"]",b[f],c,d)}}else{d(a,b)}}function b$(a,b){var c,d,f=e.ajaxSettings.flatOptions||{};for(c in b){if(b[c]!==undefined){(f[c]?a:d||(d={}))[c]=b[c]}}if(d){e.extend(!0,a,d)}}function bZ(a,b,c,d,e,f){e=e||b.dataTypes[0];f=f||{};f[e]=!0;var g=a[e],h=0,i=g?g.length:0,j=a===bS,k;for(;h<i&&(j||!k);h++){k=g[h](b,c,d);if(typeof k==="string"){if(!j||f[k]){k=undefined}else{b.dataTypes.unshift(k);k=bZ(a,b,c,d,k,f)}}}if((j||!k)&&!f["*"]){k=bZ(a,b,c,d,"*",f)}return k}function bY(a){return function(b,c){if(typeof b!=="string"){c=b;b="*"}if(e.isFunction(c)){var d=b.toLowerCase().split(bO),f=0,g=d.length,h,i,j;for(;f<g;f++){h=d[f];j=/^\+/.test(h);if(j){h=h.substr(1)||"*"}i=a[h]=a[h]||[];i[j?"unshift":"push"](c)}}}}function bB(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,f=b==="width"?bw:bx,g=0,h=f.length;if(d>0){if(c!=="border"){for(;g<h;g++){if(!c){d-=parseFloat(e.css(a,"padding"+f[g]))||0}if(c==="margin"){d+=parseFloat(e.css(a,c+f[g]))||0}else{d-=parseFloat(e.css(a,"border"+f[g]+"Width"))||0}}}return d+"px"}d=by(a,b,b);if(d<0||d==null){d=a.style[b]||0}d=parseFloat(d)||0;if(c){for(;g<h;g++){d+=parseFloat(e.css(a,"padding"+f[g]))||0;if(c!=="padding"){d+=parseFloat(e.css(a,"border"+f[g]+"Width"))||0}if(c==="margin"){d+=parseFloat(e.css(a,c+f[g]))||0}}}return d+"px"}function bo(a,b){if(b.src){e.ajax({url:b.src,async:!1,dataType:"script"})}else{e.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/"))}if(b.parentNode){b.parentNode.removeChild(b)}}function bn(a){var c=b.createElement("div");bg.appendChild(c);c.innerHTML=a.outerHTML;return c.firstChild}function bm(a){var b=(a.nodeName||"").toLowerCase();if(b==="input"){bl(a)}else if(b!=="script"&&typeof a.getElementsByTagName!=="undefined"){e.grep(a.getElementsByTagName("input"),bl)}}function bl(a){if(a.type==="checkbox"||a.type==="radio"){a.defaultChecked=a.checked}}function bk(a){if(typeof a.getElementsByTagName!=="undefined"){return a.getElementsByTagName("*")}else if(typeof a.querySelectorAll!=="undefined"){return a.querySelectorAll("*")}else{return[]}}function bj(a,b){var c;if(b.nodeType!==1){return}if(b.clearAttributes){b.clearAttributes()}if(b.mergeAttributes){b.mergeAttributes(a)}c=b.nodeName.toLowerCase();if(c==="object"){b.outerHTML=a.outerHTML}else if(c==="input"&&(a.type==="checkbox"||a.type==="radio")){if(a.checked){b.defaultChecked=b.checked=a.checked}if(b.value!==a.value){b.value=a.value}}else if(c==="option"){b.selected=a.defaultSelected}else if(c==="input"||c==="textarea"){b.defaultValue=a.defaultValue}b.removeAttribute(e.expando)}function bi(a,b){if(b.nodeType!==1||!e.hasData(a)){return}var c,d,f,g=e._data(a),h=e._data(b,g),i=g.events;if(i){delete h.handle;h.events={};for(c in i){for(d=0,f=i[c].length;d<f;d++){e.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}}}if(h.data){h.data=e.extend({},h.data)}}function bh(a,b){return e.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function T(a){var b=U.split("|"),c=a.createDocumentFragment();if(c.createElement){while(b.length){c.createElement(b.pop())}}return c}function S(a,b,c){b=b||0;if(e.isFunction(b)){return e.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c})}else if(b.nodeType){return e.grep(a,function(a,d){return a===b===c})}else if(typeof b==="string"){var d=e.grep(a,function(a){return a.nodeType===1});if(N.test(b)){return e.filter(b,d,!c)}else{b=e.filter(b,d)}}return e.grep(a,function(a,d){return e.inArray(a,b)>=0===c})}function R(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function J(){return!0}function I(){return!1}function m(a,b,c){var d=b+"defer",f=b+"queue",g=b+"mark",h=e._data(a,d);if(h&&(c==="queue"||!e._data(a,f))&&(c==="mark"||!e._data(a,g))){setTimeout(function(){if(!e._data(a,f)&&!e._data(a,g)){e.removeData(a,d,!0);h.fire()}},0)}}function l(a){for(var b in a){if(b==="data"&&e.isEmptyObject(a[b])){continue}if(b!=="toJSON"){return!1}}return!0}function k(a,b,c){if(c===undefined&&a.nodeType===1){var d="data-"+b.replace(j,"-$1").toLowerCase();c=a.getAttribute(d);if(typeof c==="string"){try{c=c==="true"?!0:c==="false"?!1:c==="null"?null:e.isNumeric(c)?parseFloat(c):i.test(c)?e.parseJSON(c):c}catch(f){}e.data(a,b,c)}else{c=undefined}}return c}function g(a){var b=f[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++){b[a[c]]=!0}return b}var b=a.document,c=a.navigator,d=a.location;var e=function(){function I(){if(d.isReady){return}try{b.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,o=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,p=/(?:^|:|,)(?:\s*\[)+/g,q=/(webkit)[ \/]([\w.]+)/,r=/(opera)(?:.*version)?[ \/]([\w.]+)/,s=/(msie) ([\w.]+)/,t=/(mozilla)(?:.*? rv:([\w.]+))?/,u=/-([a-z]|[0-9])/ig,v=/^-ms-/,w=function(a,b){return(b+"").toUpperCase()},x=c.userAgent,y,z,A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,c,e){var f,g,i,j;if(!a){return this}if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!c&&b.body){this.context=b;this[0]=b.body;this.selector=a;this.length=1;return this}if(typeof a==="string"){if(a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3){f=[null,a,null]}else{f=h.exec(a)}if(f&&(f[1]||!c)){if(f[1]){c=c instanceof d?c[0]:c;j=c?c.ownerDocument||c:b;i=l.exec(a);if(i){if(d.isPlainObject(c)){a=[b.createElement(i[1])];d.fn.attr.call(a,c,!0)}else{a=[j.createElement(i[1])]}}else{i=d.buildFragment([f[1]],[j]);a=(i.cacheable?d.clone(i.fragment):i.fragment).childNodes}return d.merge(this,a)}else{g=b.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2]){return e.find(a)}this.length=1;this[0]=g}this.context=b;this.selector=a;return this}}else if(!c||c.jquery){return(c||e).find(a)}else{return this.constructor(c).find(a)}}else if(d.isFunction(a)){return e.ready(a)}if(a.selector!==undefined){this.selector=a.selector;this.context=a.context}return d.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();if(d.isArray(a)){D.apply(e,a)}else{d.merge(e,a)}e.prevObject=this;e.context=this.context;if(b==="find"){e.selector=this.selector+(this.selector?" ":"")+c}else if(b){e.selector=this.selector+"."+b+"("+c+")"}return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady();z.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a,b,c,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;if(typeof h==="boolean"){k=h;h=arguments[1]||{};i=2}if(typeof h!=="object"&&!d.isFunction(h)){h={}}if(j===i){h=this;--i}for(;i<j;i++){if((a=arguments[i])!=null){for(b in a){c=h[b];e=a[b];if(h===e){continue}if(k&&e&&(d.isPlainObject(e)||(f=d.isArray(e)))){if(f){f=!1;g=c&&d.isArray(c)?c:[]}else{g=c&&d.isPlainObject(c)?c:{}}h[b]=d.extend(k,g,e)}else if(e!==undefined){h[b]=e}}}}return h};d.extend({noConflict:function(b){if(a.$===d){a.$=f}if(b&&a.jQuery===d){a.jQuery=e}return d},isReady:!1,readyWait:1,holdReady:function(a){if(a){d.readyWait++}else{d.ready(!0)}},ready:function(a){if(a===!0&&!--d.readyWait||a!==!0&&!d.isReady){if(!b.body){return setTimeout(d.ready,1)}d.isReady=!0;if(a!==!0&&--d.readyWait>0){return}z.fireWith(b,[d]);if(d.fn.trigger){d(b).trigger("ready").off("ready")}}},bindReady:function(){if(z){return}z=d.Callbacks("once memory");if(b.readyState==="complete"){return setTimeout(d.ready,1)}if(b.addEventListener){b.addEventListener("DOMContentLoaded",A,!1);a.addEventListener("load",d.ready,!1)}else if(b.attachEvent){b.attachEvent("onreadystatechange",A);a.attachEvent("onload",d.ready);var c=!1;try{c=a.frameElement==null}catch(e){}if(b.documentElement.doScroll&&c){I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a)){return!1}try{if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf")){return!1}}catch(b){return!1}var c;for(c in a){}return c===undefined||C.call(a,c)},isEmptyObject:function(a){for(var b in a){return!1}return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!=="string"||!b){return null}b=d.trim(b);if(a.JSON&&a.JSON.parse){return a.JSON.parse(b)}if(m.test(b.replace(n,"@").replace(o,"]").replace(p,""))){return(new Function("return "+b))()}d.error("Invalid JSON: "+b)},parseXML:function(b){var c,e;try{if(a.DOMParser){e=new DOMParser;c=e.parseFromString(b,"text/xml")}else{c=new ActiveXObject("Microsoft.XMLDOM");c.async="false";c.loadXML(b)}}catch(f){c=undefined}if(!c||!c.documentElement||c.getElementsByTagName("parsererror").length){d.error("Invalid XML: "+b)}return c},noop:function(){},globalEval:function(b){if(b&&i.test(b)){(a.execScript||function(b){a["eval"].call(a,b)})(b)}},camelCase:function(a){return a.replace(v,"ms-").replace(u,w)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,c){var e,f=0,g=a.length,h=g===undefined||d.isFunction(a);if(c){if(h){for(e in a){if(b.apply(a[e],c)===!1){break}}}else{for(;f<g;){if(b.apply(a[f++],c)===!1){break}}}}else{if(h){for(e in a){if(b.call(a[e],e,a[e])===!1){break}}}else{for(;f<g;){if(b.call(a[f],f,a[f++])===!1){break}}}}return a},trim:F?function(a){return a==null?"":F.call(a)}:function(a){return a==null?"":a.toString().replace(j,"").replace(k,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var e=d.type(a);if(a.length==null||e==="string"||e==="function"||e==="regexp"||d.isWindow(a)){D.call(c,a)}else{d.merge(c,a)}}return c},inArray:function(a,b,c){var d;if(b){if(G){return G.call(b,a,c)}d=b.length;c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++){if(c in b&&b[c]===a){return c}}}return-1},merge:function(a,b){var c=a.length,d=0;if(typeof b.length==="number"){for(var e=b.length;d<e;d++){a[c++]=b[d]}}else{while(b[d]!==undefined){a[c++]=b[d++]}}a.length=c;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++){e=!!b(a[f],f);if(c!==e){d.push(a[f])}}return d},map:function(a,b,c){var e,f,g=[],h=0,i=a.length,j=a instanceof d||i!==undefined&&typeof i==="number"&&(i>0&&a[0]&&a[i-1]||i===0||d.isArray(a));if(j){for(;h<i;h++){e=b(a[h],h,c);if(e!=null){g[g.length]=e}}}else{for(f in a){e=b(a[f],f,c);if(e!=null){g[g.length]=e}}}return g.concat.apply([],g)},guid:1,proxy:function(a,b){if(typeof b==="string"){var c=a[b];b=a;a=c}if(!d.isFunction(a)){return undefined}var e=E.call(arguments,2),f=function(){return a.apply(b,e.concat(E.call(arguments)))};f.guid=a.guid=a.guid||f.guid||d.guid++;return f},access:function(a,b,c,e,f,g){var h=a.length;if(typeof b==="object"){for(var i in b){d.access(a,i,b[i],e,f,c)}return a}if(c!==undefined){e=!g&&e&&d.isFunction(c);for(var j=0;j<h;j++){f(a[j],b,e?c.call(a[j],j,f(a[j],b)):c,g)}return a}return h?f(a[0],b):undefined},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=q.exec(a)||r.exec(a)||s.exec(a)||a.indexOf("compatible")<0&&t.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function c(b,c){if(c&&c instanceof d&&!(c instanceof a)){c=a(c)}return d.fn.init.call(this,b,c,e)};a.fn.init.prototype=a.fn;var e=a(b);return a},browser:{}});d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()});y=d.uaMatch(x);if(y.browser){d.browser[y.browser]=!0;d.browser.version=y.version}if(d.browser.webkit){d.browser.safari=!0}if(i.test(" ")){j=/^[\s\xA0]+/;k=/[\s\xA0]+$/}g=d(b);if(b.addEventListener){A=function(){b.removeEventListener("DOMContentLoaded",A,!1);d.ready()}}else if(b.attachEvent){A=function(){if(b.readyState==="complete"){b.detachEvent("onreadystatechange",A);d.ready()}}}return d}();var f={};e.Callbacks=function(a){a=a?f[a]||g(a):{};var b=[],c=[],d,h,i,j,k,l=function(c){var d,f,g,h,i;for(d=0,f=c.length;d<f;d++){g=c[d];h=e.type(g);if(h==="array"){l(g)}else if(h==="function"){if(!a.unique||!n.has(g)){b.push(g)}}}},m=function(e,f){f=f||[];d=!a.memory||[e,f];h=!0;k=i||0;i=0;j=b.length;for(;b&&k<j;k++){if(b[k].apply(e,f)===!1&&a.stopOnFalse){d=!0;break}}h=!1;if(b){if(!a.once){if(c&&c.length){d=c.shift();n.fireWith(d[0],d[1])}}else if(d===!0){n.disable()}else{b=[]}}},n={add:function(){if(b){var a=b.length;l(arguments);if(h){j=b.length}else if(d&&d!==!0){i=a;m(d[0],d[1])}}return this},remove:function(){if(b){var c=arguments,d=0,e=c.length;for(;d<e;d++){for(var f=0;f<b.length;f++){if(c[d]===b[f]){if(h){if(f<=j){j--;if(f<=k){k--}}}b.splice(f--,1);if(a.unique){break}}}}}return this},has:function(a){if(b){var c=0,d=b.length;for(;c<d;c++){if(a===b[c]){return!0}}}return!1},empty:function(){b=[];return this},disable:function(){b=c=d=undefined;return this},disabled:function(){return!b},lock:function(){c=undefined;if(!d||d===!0){n.disable()}return this},locked:function(){return!c},fireWith:function(b,e){if(c){if(h){if(!a.once){c.push([b,e])}}else if(!(a.once&&d)){m(b,e)}}return this},fire:function(){n.fireWith(this,arguments);return this},fired:function(){return!!d}};return n};var h=[].slice;e.extend({Deferred:function(a){var b=e.Callbacks("once memory"),c=e.Callbacks("once memory"),d=e.Callbacks("memory"),f="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return f},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return e.Deferred(function(d){e.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],f=b[1],g;if(e.isFunction(c)){i[a](function(){g=c.apply(this,arguments);if(g&&e.isFunction(g.promise)){g.promise().then(d.resolve,d.reject,d.notify)}else{d[f+"With"](this===i?d:this,[g])}})}else{i[a](d[f])}})}).promise()},promise:function(a){if(a==null){a=h}else{for(var b in h){a[b]=h[b]}}return a}},i=h.promise({}),j;for(j in g){i[j]=g[j].fire;i[j+"With"]=g[j].fireWith}i.done(function(){f="resolved"},c.disable,d.lock).fail(function(){f="rejected"},b.disable,d.lock);if(a){a.call(i,i)}return i},when:function(a){function m(a){return function(b){f[a]=arguments.length>1?h.call(arguments,0):b;j.notifyWith(k,f)}}function l(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c;if(!--g){j.resolveWith(j,b)}}}var b=h.call(arguments,0),c=0,d=b.length,f=new Array(d),g=d,i=d,j=d<=1&&a&&e.isFunction(a.promise)?a:e.Deferred(),k=j.promise();if(d>1){for(;c<d;c++){if(b[c]&&b[c].promise&&e.isFunction(b[c].promise)){b[c].promise().then(l(c),j.reject,m(c))}else{--g}}if(!g){j.resolveWith(j,b)}}else if(j!==a){j.resolveWith(j,d?[a]:[])}return k}});e.support=function(){var c,d,f,g,h,i,j,k,l,m,n,o,p,q=b.createElement("div"),r=b.documentElement;q.setAttribute("className","t");q.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";d=q.getElementsByTagName("*");f=q.getElementsByTagName("a")[0];if(!d||!d.length||!f){return{}}g=b.createElement("select");h=g.appendChild(b.createElement("option"));i=q.getElementsByTagName("input")[0];c={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!b.createElement("form").enctype,html5Clone:b.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};i.checked=!0;c.noCloneChecked=i.cloneNode(!0).checked;g.disabled=!0;c.optDisabled=!h.disabled;try{delete q.test}catch(s){c.deleteExpando=!1}if(!q.addEventListener&&q.attachEvent&&q.fireEvent){q.attachEvent("onclick",function(){c.noCloneEvent=!1});q.cloneNode(!0).fireEvent("onclick")}i=b.createElement("input");i.value="t";i.setAttribute("type","radio");c.radioValue=i.value==="t";i.setAttribute("checked","checked");q.appendChild(i);k=b.createDocumentFragment();k.appendChild(q.lastChild);c.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked;c.appendChecked=i.checked;k.removeChild(i);k.appendChild(q);q.innerHTML="";if(a.getComputedStyle){j=b.createElement("div");j.style.width="0";j.style.marginRight="0";q.style.width="2px";q.appendChild(j);c.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0}if(q.attachEvent){for(o in {submit:1,change:1,focusin:1}){n="on"+o;p=n in q;if(!p){q.setAttribute(n,"return;");p=typeof q[n]==="function"}c[o+"Bubbles"]=p}}k.removeChild(q);k=g=h=j=q=i=null;e(function(){var a,d,f,g,h,i,j,k,m,n,o,r=b.getElementsByTagName("body")[0];if(!r){return}j=1;k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";m="visibility:hidden;border:0;";n="style='"+k+"border:5px solid #000;padding:0;'";o="<div "+n+"><div></div></div>"+"<table "+n+" cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>";a=b.createElement("div");a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px";r.insertBefore(a,r.firstChild);q=b.createElement("div");a.appendChild(q);q.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";l=q.getElementsByTagName("td");p=l[0].offsetHeight===0;l[0].style.display="";l[1].style.display="none";c.reliableHiddenOffsets=p&&l[0].offsetHeight===0;q.innerHTML="";q.style.width=q.style.paddingLeft="1px";e.boxModel=c.boxModel=q.offsetWidth===2;if(typeof q.style.zoom!=="undefined"){q.style.display="inline";q.style.zoom=1;c.inlineBlockNeedsLayout=q.offsetWidth===2;q.style.display="";q.innerHTML="<div style='width:4px;'></div>";c.shrinkWrapBlocks=q.offsetWidth!==2}q.style.cssText=k+m;q.innerHTML=o;d=q.firstChild;f=d.firstChild;h=d.nextSibling.firstChild.firstChild;i={doesNotAddBorder:f.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5};f.style.position="fixed";f.style.top="20px";i.fixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";i.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j;r.removeChild(a);q=a=null;e.extend(c,i)});return c}();var i=/^(?:\{.*\}|\[.*\])$/,j=/([A-Z])/g;e.extend({cache:{},uuid:0,expando:"jQuery"+(e.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?e.cache[a[e.expando]]:a[e.expando];return!!a&&!l(a)},data:function(a,b,c,d){if(!e.acceptData(a)){return}var f,g,h,i=e.expando,j=typeof b==="string",k=a.nodeType,l=k?e.cache:a,m=k?a[i]:a[i]&&i,n=b==="events";if((!m||!l[m]||!n&&!d&&!l[m].data)&&j&&c===undefined){return}if(!m){if(k){a[i]=m=++e.uuid}else{m=i}}if(!l[m]){l[m]={};if(!k){l[m].toJSON=e.noop}}if(typeof b==="object"||typeof b==="function"){if(d){l[m]=e.extend(l[m],b)}else{l[m].data=e.extend(l[m].data,b)}}f=g=l[m];if(!d){if(!g.data){g.data={}}g=g.data}if(c!==undefined){g[e.camelCase(b)]=c}if(n&&!g[b]){return f.events}if(j){h=g[b];if(h==null){h=g[e.camelCase(b)]}}else{h=g}return h},removeData:function(a,b,c){if(!e.acceptData(a)){return}var d,f,g,h=e.expando,i=a.nodeType,j=i?e.cache:a,k=i?a[h]:h;if(!j[k]){return}if(b){d=c?j[k]:j[k].data;if(d){if(!e.isArray(b)){if(b in d){b=[b]}else{b=e.camelCase(b);if(b in d){b=[b]}else{b=b.split(" ")}}}for(f=0,g=b.length;f<g;f++){delete d[b[f]]}if(!(c?l:e.isEmptyObject)(d)){return}}}if(!c){delete j[k].data;if(!l(j[k])){return}}if(e.support.deleteExpando||!j.setInterval){delete j[k]}else{j[k]=null}if(i){if(e.support.deleteExpando){delete a[h]}else if(a.removeAttribute){a.removeAttribute(h)}else{a[h]=null}}},_data:function(a,b,c){return e.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=e.noData[a.nodeName.toLowerCase()];if(b){return!(b===!0||a.getAttribute("classid")!==b)}}return!0}});e.fn.extend({data:function(a,b){var c,d,f,g=null;if(typeof a==="undefined"){if(this.length){g=e.data(this[0]);if(this[0].nodeType===1&&!e._data(this[0],"parsedAttrs")){d=this[0].attributes;for(var h=0,i=d.length;h<i;h++){f=d[h].name;if(f.indexOf("data-")===0){f=e.camelCase(f.substring(5));k(this[0],f,g[f])}}e._data(this[0],"parsedAttrs",!0)}}return g}else if(typeof a==="object"){return this.each(function(){e.data(this,a)})}c=a.split(".");c[1]=c[1]?"."+c[1]:"";if(b===undefined){g=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(g===undefined&&this.length){g=e.data(this[0],a);g=k(this[0],a,g)}return g===undefined&&c[1]?this.data(c[0]):g}else{return this.each(function(){var d=e(this),f=[c[0],b];d.triggerHandler("setData"+c[1]+"!",f);e.data(this,a,b);d.triggerHandler("changeData"+c[1]+"!",f)})}},removeData:function(a){return this.each(function(){e.removeData(this,a)})}});e.extend({_mark:function(a,b){if(a){b=(b||"fx")+"mark";e._data(a,b,(e._data(a,b)||0)+1)}},_unmark:function(a,b,c){if(a!==!0){c=b;b=a;a=!1}if(b){c=c||"fx";var d=c+"mark",f=a?0:(e._data(b,d)||1)-1;if(f){e._data(b,d,f)}else{e.removeData(b,d,!0);m(b,c,"mark")}}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue";d=e._data(a,b);if(c){if(!d||e.isArray(c)){d=e._data(a,b,e.makeArray(c))}else{d.push(c)}}return d||[]}},dequeue:function(a,b){b=b||"fx";var c=e.queue(a,b),d=c.shift(),f={};if(d==="inprogress"){d=c.shift()}if(d){if(b==="fx"){c.unshift("inprogress")}e._data(a,b+".run",f);d.call(a,function(){e.dequeue(a,b)},f)}if(!c.length){e.removeData(a,b+"queue "+b+".run",!0);m(a,b,"queue")}}});e.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===undefined){return e.queue(this[0],a)}return this.each(function(){var c=e.queue(this,a,b);if(a==="fx"&&c[0]!=="inprogress"){e.dequeue(this,a)}})},dequeue:function(a){return this.each(function(){e.dequeue(this,a)})},delay:function(a,b){a=e.fx?e.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){function l(){if(!--g){c.resolveWith(d,[d])}}if(typeof a!=="string"){b=a;a=undefined}a=a||"fx";var c=e.Deferred(),d=this,f=d.length,g=1,h=a+"defer",i=a+"queue",j=a+"mark",k;while(f--){if(k=e.data(d[f],h,undefined,!0)||(e.data(d[f],i,undefined,!0)||e.data(d[f],j,undefined,!0))&&e.data(d[f],h,e.Callbacks("once memory"),!0)){g++;k.add(l)}}l();return c.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=e.support.getSetAttribute,v,w,x;e.fn.extend({attr:function(a,b){return e.access(this,a,b,!0,e.attr)},removeAttr:function(a){return this.each(function(){e.removeAttr(this,a)})},prop:function(a,b){return e.access(this,a,b,!0,e.prop)},removeProp:function(a){a=e.propFix[a]||a;return this.each(function(){try{this[a]=undefined;delete this[a]}catch(b){}})},addClass:function(a){var b,c,d,f,g,h,i;if(e.isFunction(a)){return this.each(function(b){e(this).addClass(a.call(this,b,this.className))})}if(a&&typeof a==="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){f=this[c];if(f.nodeType===1){if(!f.className&&b.length===1){f.className=a}else{g=" "+f.className+" ";for(h=0,i=b.length;h<i;h++){if(!~ g.indexOf(" "+b[h]+" ")){g+=b[h]+" "}}f.className=e.trim(g)}}}}return this},removeClass:function(a){var b,c,d,f,g,h,i;if(e.isFunction(a)){return this.each(function(b){e(this).removeClass(a.call(this,b,this.className))})}if(a&&typeof a==="string"||a===undefined){b=(a||"").split(o);for(c=0,d=this.length;c<d;c++){f=this[c];if(f.nodeType===1&&f.className){if(a){g=(" "+f.className+" ").replace(n," ");for(h=0,i=b.length;h<i;h++){g=g.replace(" "+b[h]+" "," ")}f.className=e.trim(g)}else{f.className=""}}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b==="boolean";if(e.isFunction(a)){return this.each(function(c){e(this).toggleClass(a.call(this,c,this.className,b),b)})}return this.each(function(){if(c==="string"){var f,g=0,h=e(this),i=b,j=a.split(o);while(f=j[g++]){i=d?i:!h.hasClass(f);h[i?"addClass":"removeClass"](f)}}else if(c==="undefined"||c==="boolean"){if(this.className){e._data(this,"__className__",this.className)}this.className=this.className||a===!1?"":e._data(this,"__className__")||""}})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++){if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(n," ").indexOf(b)>-1){return!0}}return!1},val:function(a){var b,c,d,f=this[0];if(!arguments.length){if(f){b=e.valHooks[f.nodeName.toLowerCase()]||e.valHooks[f.type];if(b&&"get"in b&&(c=b.get(f,"value"))!==undefined){return c}c=f.value;return typeof c==="string"?c.replace(p,""):c==null?"":c}return}d=e.isFunction(a);return this.each(function(c){var f=e(this),g;if(this.nodeType!==1){return}if(d){g=a.call(this,c,f.val())}else{g=a}if(g==null){g=""}else if(typeof g==="number"){g+=""}else if(e.isArray(g)){g=e.map(g,function(a){return a==null?"":a+""})}b=e.valHooks[this.nodeName.toLowerCase()]||e.valHooks[this.type];if(!b||!("set"in b)||b.set(this,g,"value")===undefined){this.value=g}})}});e.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,f,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0){return null}c=j?g:0;d=j?g+1:i.length;for(;c<d;c++){f=i[c];if(f.selected&&(e.support.optDisabled?!f.disabled:f.getAttribute("disabled")===null)&&(!f.parentNode.disabled||!e.nodeName(f.parentNode,"optgroup"))){b=e(f).val();if(j){return b}h.push(b)}}if(j&&!h.length&&i.length){return e(i[g]).val()}return h},set:function(a,b){var c=e.makeArray(b);e(a).find("option").each(function(){this.selected=e.inArray(e(this).val(),c)>=0});if(!c.length){a.selectedIndex=-1}return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,b,c,d){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2){return}if(d&&b in e.attrFn){return e(a)[b](c)}if(typeof a.getAttribute==="undefined"){return e.prop(a,b,c)}h=i!==1||!e.isXMLDoc(a);if(h){b=b.toLowerCase();g=e.attrHooks[b]||(t.test(b)?w:v)}if(c!==undefined){if(c===null){e.removeAttr(a,b);return}else if(g&&"set"in g&&h&&(f=g.set(a,c,b))!==undefined){return f}else{a.setAttribute(b,""+c);return c}}else if(g&&"get"in g&&h&&(f=g.get(a,b))!==null){return f}else{f=a.getAttribute(b);return f===null?undefined:f}},removeAttr:function(a,b){var c,d,f,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(o);g=d.length;for(;h<g;h++){f=d[h];if(f){c=e.propFix[f]||f;e.attr(a,f,"");a.removeAttribute(u?f:c);if(t.test(f)&&c in a){a[c]=!1}}}}},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode){e.error("type property can't be changed")}else if(!e.support.radioValue&&b==="radio"&&e.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b);if(c){a.value=c}return b}}},value:{get:function(a,b){if(v&&e.nodeName(a,"button")){return v.get(a,b)}return b in a?a.value:null},set:function(a,b,c){if(v&&e.nodeName(a,"button")){return v.set(a,b,c)}a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,c){var d,f,g,h=a.nodeType;if(!a||h===3||h===8||h===2){return}g=h!==1||!e.isXMLDoc(a);if(g){b=e.propFix[b]||b;f=e.propHooks[b]}if(c!==undefined){if(f&&"set"in f&&(d=f.set(a,c,b))!==undefined){return d}else{return a[b]=c}}else{if(f&&"get"in f&&(d=f.get(a,b))!==null){return d}else{return a[b]}}},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:undefined}}}});e.attrHooks.tabindex=e.propHooks.tabIndex;w={get:function(a,b){var c,d=e.prop(a,b);return d===!0||typeof d!=="boolean"&&(c=a.getAttributeNode(b))&&c.nodeValue!==!1?b.toLowerCase():undefined},set:function(a,b,c){var d;if(b===!1){e.removeAttr(a,c)}else{d=e.propFix[c]||c;if(d in a){a[d]=!0}a.setAttribute(c,c.toLowerCase())}return c}};if(!u){x={name:!0,id:!0};v=e.valHooks.button={get:function(a,b){var c;c=a.getAttributeNode(b);return c&&(x[b]?c.nodeValue!=="":c.specified)?c.nodeValue:undefined},set:function(a,c,d){var e=a.getAttributeNode(d);if(!e){e=b.createAttribute(d);a.setAttributeNode(e)}return e.nodeValue=c+""}};e.attrHooks.tabindex.set=v.set;e.each(["width","height"],function(a,b){e.attrHooks[b]=e.extend(e.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})});e.attrHooks.contenteditable={get:v.get,set:function(a,b,c){if(b===""){b="false"}v.set(a,b,c)}}}if(!e.support.hrefNormalized){e.each(["href","src","width","height"],function(a,b){e.attrHooks[b]=e.extend(e.attrHooks[b],{get:function(a){var c=a.getAttribute(b,2);return c===null?undefined:c}})})}if(!e.support.style){e.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||undefined},set:function(a,b){return a.style.cssText=""+b}}}if(!e.support.optSelected){e.propHooks.selected=e.extend(e.propHooks.selected,{get:function(a){var b=a.parentNode;if(b){b.selectedIndex;if(b.parentNode){b.parentNode.selectedIndex}}return null}})}if(!e.support.enctype){e.propFix.enctype="encoding"}if(!e.support.checkOn){e.each(["radio","checkbox"],function(){e.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}})}e.each(["radio","checkbox"],function(){e.valHooks[this]=e.extend(e.valHooks[this],{set:function(a,b){if(e.isArray(b)){return a.checked=e.inArray(e(a).val(),b)>=0}}})});var y=/^(?:textarea|input|select)$/i,z=/^([^\.]*)?(?:\.(.+))?$/,A=/\bhover(\.\S+)?\b/,B=/^key/,C=/^(?:mouse|contextmenu)|click/,D=/^(?:focusinfocus|focusoutblur)$/,E=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,F=function(a){var b=E.exec(a);if(b){b[1]=(b[1]||"").toLowerCase();b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)")}return b},G=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},H=function(a){return e.event.special.hover?a:a.replace(A,"mouseenter$1 mouseleave$1")};e.event={add:function(a,b,c,d,f){var g,h,i,j,k,l,m,n,o,p,q,r;if(a.nodeType===3||a.nodeType===8||!b||!c||!(g=e._data(a))){return}if(c.handler){o=c;c=o.handler}if(!c.guid){c.guid=e.guid++}i=g.events;if(!i){g.events=i={}}h=g.handle;if(!h){g.handle=h=function(a){return typeof e!=="undefined"&&(!a||e.event.triggered!==a.type)?e.event.dispatch.apply(h.elem,arguments):undefined};h.elem=a}b=e.trim(H(b)).split(" ");for(j=0;j<b.length;j++){k=z.exec(b[j])||[];l=k[1];m=(k[2]||"").split(".").sort();r=e.event.special[l]||{};l=(f?r.delegateType:r.bindType)||l;r=e.event.special[l]||{};n=e.extend({type:l,origType:k[1],data:d,handler:c,guid:c.guid,selector:f,quick:F(f),namespace:m.join(".")},o);q=i[l];if(!q){q=i[l]=[];q.delegateCount=0;if(!r.setup||r.setup.call(a,d,m,h)===!1){if(a.addEventListener){a.addEventListener(l,h,!1)}else if(a.attachEvent){a.attachEvent("on"+l,h)}}}if(r.add){r.add.call(a,n);if(!n.handler.guid){n.handler.guid=c.guid}}if(f){q.splice(q.delegateCount++,0,n)}else{q.push(n)}e.event.global[l]=!0}a=null},global:{},remove:function(a,b,c,d,f){var g=e.hasData(a)&&e._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!g||!(o=g.events)){return}b=e.trim(H(b||"")).split(" ");for(h=0;h<b.length;h++){i=z.exec(b[h])||[];j=k=i[1];l=i[2];if(!j){for(j in o){e.event.remove(a,j+b[h],c,d,!0)}continue}p=e.event.special[j]||{};j=(d?p.delegateType:p.bindType)||j;r=o[j]||[];m=r.length;l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++){s=r[n];if((f||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)){r.splice(n--,1);if(s.selector){r.delegateCount--}if(p.remove){p.remove.call(a,s)}}}if(r.length===0&&m!==r.length){if(!p.teardown||p.teardown.call(a,l)===!1){e.removeEvent(a,j,g.handle)}delete o[j]}}if(e.isEmptyObject(o)){q=g.handle;if(q){q.elem=null}e.removeData(a,["events","handle"],!0)}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(b,c,d,f){if(d&&(d.nodeType===3||d.nodeType===8)){return}var g=b.type||b,h=[],i,j,k,l,m,n,o,p,q,r;if(D.test(g+e.event.triggered)){return}if(g.indexOf("!")>=0){g=g.slice(0,-1);j=!0}if(g.indexOf(".")>=0){h=g.split(".");g=h.shift();h.sort()}if((!d||e.event.customEvent[g])&&!e.event.global[g]){return}b=typeof b==="object"?b[e.expando]?b:new e.Event(g,b):new e.Event(g);b.type=g;b.isTrigger=!0;b.exclusive=j;b.namespace=h.join(".");b.namespace_re=b.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;n=g.indexOf(":")<0?"on"+g:"";if(!d){i=e.cache;for(k in i){if(i[k].events&&i[k].events[g]){e.event.trigger(b,c,i[k].handle.elem,!0)}}return}b.result=undefined;if(!b.target){b.target=d}c=c!=null?e.makeArray(c):[];c.unshift(b);o=e.event.special[g]||{};if(o.trigger&&o.trigger.apply(d,c)===!1){return}q=[[d,o.bindType||g]];if(!f&&!o.noBubble&&!e.isWindow(d)){r=o.delegateType||g;l=D.test(r+g)?d:d.parentNode;m=null;for(;l;l=l.parentNode){q.push([l,r]);m=l}if(m&&m===d.ownerDocument){q.push([m.defaultView||m.parentWindow||a,r])}}for(k=0;k<q.length&&!b.isPropagationStopped();k++){l=q[k][0];b.type=q[k][1];p=(e._data(l,"events")||{})[b.type]&&e._data(l,"handle");if(p){p.apply(l,c)}p=n&&l[n];if(p&&e.acceptData(l)&&p.apply(l,c)===!1){b.preventDefault()}}b.type=g;if(!f&&!b.isDefaultPrevented()){if((!o._default||o._default.apply(d.ownerDocument,c)===!1)&&!(g==="click"&&e.nodeName(d,"a"))&&e.acceptData(d)){if(n&&d[g]&&(g!=="focus"&&g!=="blur"||b.target.offsetWidth!==0)&&!e.isWindow(d)){m=d[n];if(m){d[n]=null}e.event.triggered=g;d[g]();e.event.triggered=undefined;if(m){d[n]=m}}}}return b.result},dispatch:function(b){b=e.event.fix(b||a.event);var c=(e._data(this,"events")||{})[b.type]||[],d=c.delegateCount,f=[].slice.call(arguments,0),g=!b.exclusive&&!b.namespace,h=[],i,j,k,l,m,n,o,p,q,r,s;f[0]=b;b.delegateTarget=this;if(d&&!b.target.disabled&&!(b.button&&b.type==="click")){l=e(this);l.context=this.ownerDocument||this;for(k=b.target;k!=this;k=k.parentNode||this){n={};p=[];l[0]=k;for(i=0;i<d;i++){q=c[i];r=q.selector;if(n[r]===undefined){n[r]=q.quick?G(k,q.quick):l.is(r)}if(n[r]){p.push(q)}}if(p.length){h.push({elem:k,matches:p})}}}if(c.length>d){h.push({elem:this,matches:c.slice(d)})}for(i=0;i<h.length&&!b.isPropagationStopped();i++){o=h[i];b.currentTarget=o.elem;for(j=0;j<o.matches.length&&!b.isImmediatePropagationStopped();j++){q=o.matches[j];if(g||!b.namespace&&!q.namespace||b.namespace_re&&b.namespace_re.test(q.namespace)){b.data=q.data;b.handleObj=q;m=((e.event.special[q.origType]||{}).handle||q.handler).apply(o.elem,f);if(m!==undefined){b.result=m;if(m===!1){b.preventDefault();b.stopPropagation()}}}}}return b.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){if(a.which==null){a.which=b.charCode!=null?b.charCode:b.keyCode}return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var d,e,f,g=c.button,h=c.fromElement;if(a.pageX==null&&c.clientX!=null){d=a.target.ownerDocument||b;e=d.documentElement;f=d.body;a.pageX=c.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0);a.pageY=c.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)}if(!a.relatedTarget&&h){a.relatedTarget=h===a.target?c.toElement:h}if(!a.which&&g!==undefined){a.which=g&1?1:g&2?3:g&4?2:0}return a}},fix:function(a){if(a[e.expando]){return a}var c,d,f=a,g=e.event.fixHooks[a.type]||{},h=g.props?this.props.concat(g.props):this.props;a=e.Event(f);for(c=h.length;c;){d=h[--c];a[d]=f[d]}if(!a.target){a.target=f.srcElement||b}if(a.target.nodeType===3){a.target=a.target.parentNode}if(a.metaKey===undefined){a.metaKey=a.ctrlKey}return g.filter?g.filter(a,f):a},special:{ready:{setup:e.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){if(e.isWindow(this)){this.onbeforeunload=c}},teardown:function(a,b){if(this.onbeforeunload===b){this.onbeforeunload=null}}}},simulate:function(a,b,c,d){var f=e.extend(new e.Event,c,{type:a,isSimulated:!0,originalEvent:{}});if(d){e.event.trigger(f,null,b)}else{e.event.dispatch.call(b,f)}if(f.isDefaultPrevented()){c.preventDefault()}}};e.event.handle=e.event.dispatch;e.removeEvent=b.removeEventListener?function(a,b,c){if(a.removeEventListener){a.removeEventListener(b,c,!1)}}:function(a,b,c){if(a.detachEvent){a.detachEvent("on"+b,c)}};e.Event=function(a,b){if(!(this instanceof e.Event)){return new e.Event(a,b)}if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?J:I}else{this.type=a}if(b){e.extend(this,b)}this.timeStamp=a&&a.timeStamp||e.now();this[e.expando]=!0};e.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}else{a.returnValue=!1}},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:I,isPropagationStopped:I,isImmediatePropagationStopped:I};e.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){e.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,f=a.handleObj,g=f.selector,h;if(!d||d!==c&&!e.contains(c,d)){a.type=f.origType;h=f.handler.apply(this,arguments);a.type=b}return h}}});if(!e.support.submitBubbles){e.event.special.submit={setup:function(){if(e.nodeName(this,"form")){return!1}e.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=e.nodeName(b,"input")||e.nodeName(b,"button")?b.form:undefined;if(c&&!c._submit_attached){e.event.add(c,"submit._submit",function(a){if(this.parentNode&&!a.isTrigger){e.event.simulate("submit",this.parentNode,a,!0)}});c._submit_attached=!0}})},teardown:function(){if(e.nodeName(this,"form")){return!1}e.event.remove(this,"._submit")}}}if(!e.support.changeBubbles){e.event.special.change={setup:function(){if(y.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){e.event.add(this,"propertychange._change",function(a){if(a.originalEvent.propertyName==="checked"){this._just_changed=!0}});e.event.add(this,"click._change",function(a){if(this._just_changed&&!a.isTrigger){this._just_changed=!1;e.event.simulate("change",this,a,!0)}})}return!1}e.event.add(this,"beforeactivate._change",function(a){var b=a.target;if(y.test(b.nodeName)&&!b._change_attached){e.event.add(b,"change._change",function(a){if(this.parentNode&&!a.isSimulated&&!a.isTrigger){e.event.simulate("change",this.parentNode,a,!0)}});b._change_attached=!0}})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox"){return a.handleObj.handler.apply(this,arguments)}},teardown:function(){e.event.remove(this,"._change");return y.test(this.nodeName)}}}if(!e.support.focusinBubbles){e.each({focus:"focusin",blur:"focusout"},function(a,c){var d=0,f=function(a){e.event.simulate(c,a.target,e.event.fix(a),!0)};e.event.special[c]={setup:function(){if(d++===0){b.addEventListener(a,f,!0)}},teardown:function(){if(--d===0){b.removeEventListener(a,f,!0)}}}})}e.fn.extend({on:function(a,b,c,d,f){var g,h;if(typeof a==="object"){if(typeof b!=="string"){c=b;b=undefined}for(h in a){this.on(h,b,c,a[h],f)}return this}if(c==null&&d==null){d=b;c=b=undefined}else if(d==null){if(typeof b==="string"){d=c;c=undefined}else{d=c;c=b;b=undefined}}if(d===!1){d=I}else if(!d){return this}if(f===1){g=d;d=function(a){e().off(a);return g.apply(this,arguments)};d.guid=g.guid||(g.guid=e.guid++)}return this.each(function(){e.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,b,c){if(a&&a.preventDefault&&a.handleObj){var d=a.handleObj;e(a.delegateTarget).off(d.namespace?d.type+"."+d.namespace:d.type,d.selector,d.handler);return this}if(typeof a==="object"){for(var f in a){this.off(f,b,a[f])}return this}if(b===!1||typeof b==="function"){c=b;b=undefined}if(c===!1){c=I}return this.each(function(){e.event.remove(this,a,c,b)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){e(this.context).on(a,this.selector,b,c);return this},die:function(a,b){e(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){e.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){return e.event.trigger(a,b,this[0],!0)}},toggle:function(a){var b=arguments,c=a.guid||e.guid++,d=0,f=function(c){var f=(e._data(this,"lastToggle"+a.guid)||0)%d;e._data(this,"lastToggle"+a.guid,f+1);c.preventDefault();return b[f].apply(this,arguments)||!1};f.guid=c;while(d<b.length){b[d++].guid=c}return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});e.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 contextmenu").split(" "),function(a,b){e.fn[b]=function(a,c){if(c==null){c=a;a=null}return arguments.length>0?this.on(b,null,a,c):this.trigger(b)};if(e.attrFn){e.attrFn[b]=!0}if(B.test(b)){e.event.fixHooks[b]=e.event.keyHooks}if(C.test(b)){e.event.fixHooks[b]=e.event.mouseHooks}});(function(){function w(a,b,d,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[c]===d){k=e[j.sizset];break}if(j.nodeType===1){if(!g){j[c]=d;j.sizset=h}if(typeof b!=="string"){if(j===b){k=!0;break}}else if(l.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function v(a,b,d,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[c]===d){k=e[j.sizset];break}if(j.nodeType===1&&!g){j[c]=d;j.sizset=h}if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,c="sizcache"+(Math.random()+"").replace(".",""),d=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\r\n/g,k=/\W/;[0,0].sort(function(){h=!1;return 0});var l=function(c,d,e,g){e=e||[];d=d||b;var h=d;if(d.nodeType!==1&&d.nodeType!==9){return[]}if(!c||typeof c!=="string"){return e}var i,j,k,m,p,q,s,t,u=!0,v=l.isXML(d),w=[],y=c;do{a.exec("");i=a.exec(y);if(i){y=i[3];w.push(i[1]);if(i[2]){m=i[3];break}}}while(i);if(w.length>1&&o.exec(c)){if(w.length===2&&n.relative[w[0]]){j=x(w[0]+w[1],d,g)}else{j=n.relative[w[0]]?[d]:l(w.shift(),d);while(w.length){c=w.shift();if(n.relative[c]){c+=w.shift()}j=x(c,j,g)}}}else{if(!g&&w.length>1&&d.nodeType===9&&!v&&n.match.ID.test(w[0])&&!n.match.ID.test(w[w.length-1])){p=l.find(w.shift(),d,v);d=p.expr?l.filter(p.expr,p.set)[0]:p.set[0]}if(d){p=g?{expr:w.pop(),set:r(g)}:l.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v);j=p.expr?l.filter(p.expr,p.set):p.set;if(w.length>0){k=r(j)}else{u=!1}while(w.length){q=w.pop();s=q;if(!n.relative[q]){q=""}else{s=w.pop()}if(s==null){s=d}n.relative[q](k,s,v)}}else{k=w=[]}}if(!k){k=j}if(!k){l.error(q||c)}if(f.call(k)==="[object Array]"){if(!u){e.push.apply(e,k)}else if(d&&d.nodeType===1){for(t=0;k[t]!=null;t++){if(k[t]&&(k[t]===!0||k[t].nodeType===1&&l.contains(d,k[t]))){e.push(j[t])}}}else{for(t=0;k[t]!=null;t++){if(k[t]&&k[t].nodeType===1){e.push(j[t])}}}}else{r(k,e)}if(m){l(m,h,e,g);l.uniqueSort(e)}return e};l.uniqueSort=function(a){if(t){g=h;a.sort(t);if(g){for(var b=1;b<a.length;b++){if(a[b]===a[b-1]){a.splice(b--,1)}}}}return a};l.matches=function(a,b){return l(a,null,null,b)};l.matchesSelector=function(a,b){return l(b,null,null,[a]).length>0};l.find=function(a,b,c){var d,e,f,g,h,j;if(!a){return[]}for(e=0,f=n.order.length;e<f;e++){h=n.order[e];if(g=n.leftMatch[h].exec(a)){j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,"");d=n.find[h](g,b,c);if(d!=null){a=a.replace(n.match[h],"");break}}}}if(!d){d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]}return{set:d,expr:a}};l.filter=function(a,b,c,d){var e,f,g,h,i,j,k,m,o,p=a,q=[],r=b,s=b&&b[0]&&l.isXML(b[0]);while(a&&b.length){for(g in n.filter){if((e=n.leftMatch[g].exec(a))!=null&&e[2]){j=n.filter[g];k=e[1];f=!1;e.splice(1,1);if(k.substr(k.length-1)==="\\"){continue}if(r===q){q=[]}if(n.preFilter[g]){e=n.preFilter[g](e,r,c,q,d,s);if(!e){f=h=!0}else if(e===!0){continue}}if(e){for(m=0;(i=r[m])!=null;m++){if(i){h=j(i,e,m,r);o=d^h;if(c&&h!=null){if(o){f=!0}else{r[m]=!1}}else if(o){q.push(i);f=!0}}}}if(h!==undefined){if(!c){r=q}a=a.replace(n.match[g],"");if(!f){return[]}break}}}if(a===p){if(f==null){l.error(a)}else{break}}p=a}return r};l.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var m=l.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9){if(typeof a.textContent==="string"){return a.textContent}else if(typeof a.innerText==="string"){return a.innerText.replace(j,"")}else{for(a=a.firstChild;a;a=a.nextSibling){e+=m(a)}}}else if(d===3||d===4){return a.nodeValue}}else{for(b=0;c=a[b];b++){if(c.nodeType!==8){e+=m(c)}}}return e};var n=l.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\xC0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\xC0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\xC0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\xC0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\xC0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\xC0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\xC0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",d=c&&!k.test(b),e=c&&!d;if(d){b=b.toLowerCase()}for(var f=0,g=a.length,h;f<g;f++){if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}}if(e){l.filter(b,a,!0)}},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!k.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++){c=a[e];if(c){a[e]=d?c.parentNode:c.parentNode===b}}if(d){l.filter(b,a,!0)}}},"":function(a,b,c){var e,f=d++,g=w;if(typeof b==="string"&&!k.test(b)){b=b.toLowerCase();e=b;g=v}g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=w;if(typeof b==="string"&&!k.test(b)){b=b.toLowerCase();e=b;g=v}g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++){if(d[e].getAttribute("name")===a[1]){c.push(d[e])}}return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined"){return b.getElementsByTagName(a[1])}}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f){return a}for(var g=0,h;(h=b[g])!=null;g++){if(h){if(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)){if(!c){d.push(h)}}else if(c){b[g]=!1}}}return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){if(!a[2]){l.error(a[0])}a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else if(a[2]){l.error(a[0])}a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");if(!f&&n.attrMap[g]){a[1]=n.attrMap[g]}a[4]=(a[4]||a[5]||"").replace(i,"");if(a[2]==="~="){a[4]=" "+a[4]+" "}return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"){if((a.exec(b[3])||"").length>1||/^\w/.test(b[3])){b[3]=l(b[3],null,null,c)}else{var g=l.filter(b[3],c,d,!0^f);if(!d){e.push.apply(e,g)}return!1}}else if(n.match.POS.test(b[0])||n.match.CHILD.test(b[0])){return!0}return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){if(a.parentNode){a.parentNode.selectedIndex}return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!l(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=n.filters[e];if(f){return f(a,c,b,d)}else if(e==="contains"){return(a.textContent||a.innerText||m([a])||"").indexOf(b[3])>=0}else if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++){if(g[h]===a){return!1}}return!0}else{l.error(e)}},CHILD:function(a,b){var d,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling){if(l.nodeType===1){return!1}}if(k==="first"){return!0}l=a;case"last":while(l=l.nextSibling){if(l.nodeType===1){return!1}}return!0;case"nth":d=b[2];e=b[3];if(d===1&&e===0){return!0}f=b[0];g=a.parentNode;if(g&&(g[c]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling){if(l.nodeType===1){l.nodeIndex=++i}}g[c]=f}j=a.nodeIndex-e;if(d===0){return j===0}else{return j%d===0&&j/d>=0}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attr?l.attr(a,c):n.attrHandle[c]?n.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&l.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:!g?e&&d!==!1:f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1},POS:function(a,b,c,d){var e=b[2],f=n.setFilters[e];if(f){return f(a,c,b,d)}}}};var o=n.match.POS,p=function(a,b){return"\\"+(b-0+1)};for(var q in n.match){n.match[q]=new RegExp(n.match[q].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[q]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[q].source.replace(/\\(\d+)/g,p))}var r=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(b.documentElement.childNodes,0)[0].nodeType}catch(s){r=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length==="number"){for(var e=a.length;c<e;c++){d.push(a[c])}}else{for(;a[c];c++){d.push(a[c])}}}return d}}var t,u;if(b.documentElement.compareDocumentPosition){t=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition){return a.compareDocumentPosition?-1:1}return a.compareDocumentPosition(b)&4?-1:1}}else{t=function(a,b){if(a===b){g=!0;return 0}else if(a.sourceIndex&&b.sourceIndex){return a.sourceIndex-b.sourceIndex}var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i){return u(a,b)}else if(!h){return-1}else if(!i){return 1}while(j){e.unshift(j);j=j.parentNode}j=i;while(j){f.unshift(j);j=j.parentNode}c=e.length;d=f.length;for(var k=0;k<c&&k<d;k++){if(e[k]!==f[k]){return u(e[k],f[k])}}return k===c?u(a,f[k],-1):u(e[k],b,1)};u=function(a,b,c){if(a===b){return c}var d=a.nextSibling;while(d){if(d===b){return-1}d=d.nextSibling}return 1}}(function(){var a=b.createElement("div"),c="script"+(new Date).getTime(),d=b.documentElement;a.innerHTML="<a name='"+c+"'/>";d.insertBefore(a,d.firstChild);if(b.getElementById(c)){n.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d?d.id===a[1]||typeof d.getAttributeNode!=="undefined"&&d.getAttributeNode("id").nodeValue===a[1]?[d]:undefined:[]}};n.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}}d.removeChild(a);d=a=null})();(function(){var a=b.createElement("div");a.appendChild(b.createComment(""));if(a.getElementsByTagName("*").length>0){n.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++){if(c[e].nodeType===1){d.push(c[e])}}c=d}return c}}a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"){n.attrHandle.href=function(a){return a.getAttribute("href",2)}}a=null})();if(b.querySelectorAll){(function(){var a=l,c=b.createElement("div"),d="__sizzle__";c.innerHTML="<p class='TEST'></p>";if(c.querySelectorAll&&c.querySelectorAll(".TEST").length===0){return}l=function(c,e,f,g){e=e||b;if(!g&&!l.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(c);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1]){return r(e.getElementsByTagName(c),f)}else if(h[2]&&n.find.CLASS&&e.getElementsByClassName){return r(e.getElementsByClassName(h[2]),f)}}if(e.nodeType===9){if(c==="body"&&e.body){return r([e.body],f)}else if(h&&h[3]){var i=e.getElementById(h[3]);if(i&&i.parentNode){if(i.id===h[3]){return r([i],f)}}else{return r([],f)}}try{return r(e.querySelectorAll(c),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,m=e.getAttribute("id"),o=m||d,p=e.parentNode,q=/^\s*[+~]/.test(c);if(!m){e.setAttribute("id",o)}else{o=o.replace(/'/g,"\\$&")}if(q&&p){e=e.parentNode}try{if(!q||p){return r(e.querySelectorAll("[id='"+o+"'] "+c),f)}}catch(s){}finally{if(!m){k.removeAttribute("id")}}}}return a(c,e,f,g)};for(var e in a){l[e]=a[e]}c=null})()}(function(){var a=b.documentElement,c=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(c){var d=!c.call(b.createElement("div"),"div"),e=!1;try{c.call(b.documentElement,"[test!='']:sizzle")}catch(f){e=!0}l.matchesSelector=function(a,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!l.isXML(a)){try{if(e||!n.match.PSEUDO.test(b)&&!/!=/.test(b)){var f=c.call(a,b);if(f||!d||a.document&&a.document.nodeType!==11){return f}}}catch(g){}}return l(b,null,null,[a]).length>0}}})();(function(){var a=b.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!a.getElementsByClassName||a.getElementsByClassName("e").length===0){return}a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}n.order.splice(1,0,"CLASS");n.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c){return b.getElementsByClassName(a[1])}};a=null})();if(b.documentElement.contains){l.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}}else if(b.documentElement.compareDocumentPosition){l.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}}else{l.contains=function(){return!1}}l.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var x=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=n.match.PSEUDO.exec(a)){f+=d[0];a=a.replace(n.match.PSEUDO,"")}a=n.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++){l(a,g[h],e,c)}return l.filter(f,e)};l.attr=e.attr;l.selectors.attrMap={};e.find=l;e.expr=l.selectors;e.expr[":"]=e.expr.filters;e.unique=l.uniqueSort;e.text=l.getText;e.isXMLDoc=l.isXML;e.contains=l.contains})();var K=/Until$/,L=/^(?:parents|prevUntil|prevAll)/,M=/,/,N=/^.[^:#\[\.,]*$/,O=Array.prototype.slice,P=e.expr.match.POS,Q={children:!0,contents:!0,next:!0,prev:!0};e.fn.extend({find:function(a){var b=this,c,d;if(typeof a!=="string"){return e(a).filter(function(){for(c=0,d=b.length;c<d;c++){if(e.contains(b[c],this)){return!0}}})}var f=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=f.length;e.find(a,this[c],f);if(c>0){for(h=g;h<f.length;h++){for(i=0;i<g;i++){if(f[i]===f[h]){f.splice(h--,1);break}}}}}return f},has:function(a){var b=e(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++){if(e.contains(this,b[a])){return!0}}})},not:function(a){return this.pushStack(S(this,a,!1),"not",a)},filter:function(a){return this.pushStack(S(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a==="string"?P.test(a)?e(a,this.context).index(this[0])>=0:e.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,f,g=this[0];if(e.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++){if(e(g).is(a[d])){c.push({selector:a[d],elem:g,level:h})}}g=g.parentNode;h++}return c}var i=P.test(a)||typeof a!=="string"?e(a,b||this.context):0;for(d=0,f=this.length;d<f;d++){g=this[d];while(g){if(i?i.index(g)>-1:e.find.matchesSelector(g,a)){c.push(g);break}else{g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11){break}}}}c=c.length>1?e.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a){return this[0]&&this[0].parentNode?this.prevAll().length:-1}if(typeof a==="string"){return e.inArray(this[0],e(a))}return e.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?e(a,b):e.makeArray(a&&a.nodeType?[a]:a),d=e.merge(this.get(),c);return this.pushStack(R(c[0])||R(d[0])?d:e.unique(d))},andSelf:function(){return this.add(this.prevObject)}});e.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return e.dir(a,"parentNode")},parentsUntil:function(a,b,c){return e.dir(a,"parentNode",c)},next:function(a){return e.nth(a,2,"nextSibling")},prev:function(a){return e.nth(a,2,"previousSibling")},nextAll:function(a){return e.dir(a,"nextSibling")},prevAll:function(a){return e.dir(a,"previousSibling")},nextUntil:function(a,b,c){return e.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return e.dir(a,"previousSibling",c)},siblings:function(a){return e.sibling(a.parentNode.firstChild,a)},children:function(a){return e.sibling(a.firstChild)},contents:function(a){return e.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:e.makeArray(a.childNodes)}},function(a,b){e.fn[a]=function(c,d){var f=e.map(this,b,c);if(!K.test(a)){d=c}if(d&&typeof d==="string"){f=e.filter(d,f)}f=this.length>1&&!Q[a]?e.unique(f):f;if((this.length>1||M.test(d))&&L.test(a)){f=f.reverse()}return this.pushStack(f,a,O.call(arguments).join(","))}});e.extend({filter:function(a,b,c){if(c){a=":not("+a+")"}return b.length===1?e.find.matchesSelector(b[0],a)?[b[0]]:[]:e.find.matches(a,b)},dir:function(a,b,c){var d=[],f=a[b];while(f&&f.nodeType!==9&&(c===undefined||f.nodeType!==1||!e(f).is(c))){if(f.nodeType===1){d.push(f)}f=f[b]}return d},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c]){if(a.nodeType===1&&++e===b){break}}return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling){if(a.nodeType===1&&a!==b){c.push(a)}}return c}});var U="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|"+"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",V=/ jQuery\d+="(?:\d+|null)"/g,W=/^\s+/,X=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Y=/<([\w:]+)/,Z=/<tbody/i,$=/<|&#?\w+;/,_=/<(?:script|style)/i,ba=/<(?:script|object|embed|option|style)/i,bb=new RegExp("<(?:"+U+")","i"),bc=/checked\s*(?:[^=]|=\s*.checked.)/i,bd=/\/(java|ecma)script/i,be=/^\s*<!(?:\[CDATA\[|\-\-)/,bf={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,"",""]},bg=T(b);bf.optgroup=bf.option;bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead;bf.th=bf.td;if(!e.support.htmlSerialize){bf._default=[1,"div<div>","</div>"]}e.fn.extend({text:function(a){if(e.isFunction(a)){return this.each(function(b){var c=e(this);c.text(a.call(this,b,c.text()))})}if(typeof a!=="object"&&a!==undefined){return this.empty().append((this[0]&&this[0].ownerDocument||b).createTextNode(a))}return e.text(this)},wrapAll:function(a){if(e.isFunction(a)){return this.each(function(b){e(this).wrapAll(a.call(this,b))})}if(this[0]){var b=e(a,this[0].ownerDocument).eq(0).clone(!0);if(this[0].parentNode){b.insertBefore(this[0])}b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(a){if(e.isFunction(a)){return this.each(function(b){e(this).wrapInner(a.call(this,b))})}return this.each(function(){var b=e(this),c=b.contents();if(c.length){c.wrapAll(a)}else{b.append(a)}})},wrap:function(a){var b=e.isFunction(a);return this.each(function(c){e(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){if(!e.nodeName(this,"body")){e(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,!0,function(a){if(this.nodeType===1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,!0,function(a){if(this.nodeType===1){this.insertBefore(a,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})}else if(arguments.length){var a=e.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})}else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,e.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++){if(!a||e.filter(a,[d]).length){if(!b&&d.nodeType===1){e.cleanData(d.getElementsByTagName("*"));e.cleanData([d])}if(d.parentNode){d.parentNode.removeChild(d)}}}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){if(b.nodeType===1){e.cleanData(b.getElementsByTagName("*"))}while(b.firstChild){b.removeChild(b.firstChild)}}return this},clone:function(a,b){a=a==null?!1:a;b=b==null?a:b;return this.map(function(){return e.clone(this,a,b)})},html:function(a){if(a===undefined){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(V,""):null}else if(typeof a==="string"&&!_.test(a)&&(e.support.leadingWhitespace||!W.test(a))&&!bf[(Y.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(X,"<$1></$2>");try{for(var b=0,c=this.length;b<c;b++){if(this[b].nodeType===1){e.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}}catch(d){this.empty().append(a)}}else if(e.isFunction(a)){this.each(function(b){var c=e(this);c.html(a.call(this,b,c.html()))})}else{this.empty().append(a)}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(e.isFunction(a)){return this.each(function(b){var c=e(this),d=c.html();c.replaceWith(a.call(this,b,d))})}if(typeof a!=="string"){a=e(a).detach()}return this.each(function(){var b=this.nextSibling,c=this.parentNode;e(this).remove();if(b){e(b).before(a)}else{e(c).append(a)}})}else{return this.length?this.pushStack(e(e.isFunction(a)?a():a),"replaceWith",a):this}},detach:function(a){return this.remove(a,!0)},domManip:function(a,b,c){var d,f,g,h,i=a[0],j=[];if(!e.support.checkClone&&arguments.length===3&&typeof i==="string"&&bc.test(i)){return this.each(function(){e(this).domManip(a,b,c,!0)})}if(e.isFunction(i)){return this.each(function(d){var f=e(this);a[0]=i.call(this,d,b?f.html():undefined);f.domManip(a,b,c)})}if(this[0]){h=i&&i.parentNode;if(e.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length){d={fragment:h}}else{d=e.buildFragment(a,this,j)}g=d.fragment;if(g.childNodes.length===1){f=g=g.firstChild}else{f=g.firstChild}if(f){b=b&&e.nodeName(f,"tr");for(var k=0,l=this.length,m=l-1;k<l;k++){c.call(b?bh(this[k],f):this[k],d.cacheable||l>1&&k<m?e.clone(g,!0,!0):g)}}if(j.length){e.each(j,bo)}}return this}});e.buildFragment=function(a,c,d){var f,g,h,i,j=a[0];if(c&&c[0]){i=c[0].ownerDocument||c[0]}if(!i.createDocumentFragment){i=b}if(a.length===1&&typeof j==="string"&&j.length<512&&i===b&&j.charAt(0)==="<"&&!ba.test(j)&&(e.support.checkClone||!bc.test(j))&&(e.support.html5Clone||!bb.test(j))){g=!0;h=e.fragments[j];if(h&&h!==1){f=h}}if(!f){f=i.createDocumentFragment();e.clean(a,i,f,d)}if(g){e.fragments[j]=h?f:1}return{fragment:f,cacheable:g}};e.fragments={};e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){e.fn[a]=function(c){var d=[],f=e(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&f.length===1){f[b](this[0]);return this}else{for(var h=0,i=f.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();e(f[h])[b](j);d=d.concat(j)}return this.pushStack(d,a,f.selector)}}});e.extend({clone:function(a,b,c){var d,f,g,h=e.support.html5Clone||!bb.test("<"+a.nodeName)?a.cloneNode(!0):bn(a);if((!e.support.noCloneEvent||!e.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!e.isXMLDoc(a)){bj(a,h);d=bk(a);f=bk(h);for(g=0;d[g];++g){if(f[g]){bj(d[g],f[g])}}}if(b){bi(a,h);if(c){d=bk(a);f=bk(h);for(g=0;d[g];++g){bi(d[g],f[g])}}}d=f=null;return h},clean:function(a,c,d,f){var g;c=c||b;if(typeof c.createElement==="undefined"){c=c.ownerDocument||c[0]&&c[0].ownerDocument||b}var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){if(typeof k==="number"){k+=""}if(!k){continue}if(typeof k==="string"){if(!$.test(k)){k=c.createTextNode(k)}else{k=k.replace(X,"<$1></$2>");var l=(Y.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=c.createElement("div");if(c===b){bg.appendChild(o)}else{T(c).appendChild(o)}o.innerHTML=m[1]+k+m[2];while(n--){o=o.lastChild}if(!e.support.tbody){var p=Z.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i){if(e.nodeName(q[i],"tbody")&&!q[i].childNodes.length){q[i].parentNode.removeChild(q[i])}}}if(!e.support.leadingWhitespace&&W.test(k)){o.insertBefore(c.createTextNode(W.exec(k)[0]),o.firstChild)}k=o.childNodes}}var r;if(!e.support.appendChecked){if(k[0]&&typeof (r=k.length)==="number"){for(i=0;i<r;i++){bm(k[i])}}else{bm(k)}}if(k.nodeType){h.push(k)}else{h=e.merge(h,k)}}if(d){g=function(a){return!a.type||bd.test(a.type)};for(j=0;h[j];j++){if(f&&e.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript")){f.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j])}else{if(h[j].nodeType===1){var s=e.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}}return h},cleanData:function(a){var b,c,d=e.cache,f=e.event.special,g=e.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&e.noData[i.nodeName.toLowerCase()]){continue}c=i[e.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events){if(f[j]){e.event.remove(i,j)}else{e.removeEvent(i,j,b.handle)}}if(b.handle){b.handle.elem=null}}if(g){delete i[e.expando]}else if(i.removeAttribute){i.removeAttribute(e.expando)}delete d[c]}}}});var bp=/alpha\([^)]*\)/i,bq=/opacity=([^)]*)/,br=/([A-Z]|^ms)/g,bs=/^-?\d+(?:px)?$/i,bt=/^-?\d/,bu=/^([\-+])=([\-+.\de]+)/,bv={position:"absolute",visibility:"hidden",display:"block"},bw=["Left","Right"],bx=["Top","Bottom"],by,bz,bA;e.fn.css=function(a,b){if(arguments.length===2&&b===undefined){return this}return e.access(this,a,b,!0,function(a,b,c){return c!==undefined?e.style(a,b,c):e.css(a,b)})};e.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity","opacity");return c===""?"1":c}else{return a.style.opacity}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":e.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(!a||a.nodeType===3||a.nodeType===8||!a.style){return}var f,g,h=e.camelCase(b),i=a.style,j=e.cssHooks[h];b=e.cssProps[h]||h;if(c!==undefined){g=typeof c;if(g==="string"&&(f=bu.exec(c))){c=+(f[1]+1)*+f[2]+parseFloat(e.css(a,b));g="number"}if(c==null||g==="number"&&isNaN(c)){return}if(g==="number"&&!e.cssNumber[h]){c+="px"}if(!j||!("set"in j)||(c=j.set(a,c))!==undefined){try{i[b]=c}catch(k){}}}else{if(j&&"get"in j&&(f=j.get(a,!1,d))!==undefined){return f}return i[b]}},css:function(a,b,c){var d,f;b=e.camelCase(b);f=e.cssHooks[b];b=e.cssProps[b]||b;if(b==="cssFloat"){b="float"}if(f&&"get"in f&&(d=f.get(a,!0,c))!==undefined){return d}else if(by){return by(a,b)}},swap:function(a,b,c){var d={};for(var e in b){d[e]=a.style[e];a.style[e]=b[e]}c.call(a);for(e in b){a.style[e]=d[e]}}});e.curCSS=e.css;e.each(["height","width"],function(a,b){e.cssHooks[b]={get:function(a,c,d){var f;if(c){if(a.offsetWidth!==0){return bB(a,b,d)}else{e.swap(a,bv,function(){f=bB(a,b,d)})}return f}},set:function(a,b){if(bs.test(b)){b=parseFloat(b);if(b>=0){return b+"px"}}else{return b}}}});if(!e.support.opacity){e.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,f=e.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&e.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter){return}}c.filter=bp.test(g)?g.replace(bp,f):g+" "+f}}}e(function(){if(!e.support.reliableMarginRight){e.cssHooks.marginRight={get:function(a,b){var c;e.swap(a,{display:"inline-block"},function(){if(b){c=by(a,"margin-right","marginRight")}else{c=a.style.marginRight}});return c}}}});if(b.defaultView&&b.defaultView.getComputedStyle){bz=function(a,b){var c,d,f;b=b.replace(br,"-$1").toLowerCase();if((d=a.ownerDocument.defaultView)&&(f=d.getComputedStyle(a,null))){c=f.getPropertyValue(b);if(c===""&&!e.contains(a.ownerDocument.documentElement,a)){c=e.style(a,b)}}return c}}if(b.documentElement.currentStyle){bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;if(f===null&&g&&(e=g[b])){f=e}if(!bs.test(f)&&bt.test(f)){c=g.left;d=a.runtimeStyle&&a.runtimeStyle.left;if(d){a.runtimeStyle.left=a.currentStyle.left}g.left=b==="fontSize"?"1em":f||0;f=g.pixelLeft+"px";g.left=c;if(d){a.runtimeStyle.left=d}}return f===""?"auto":f}}by=bz||bA;if(e.expr&&e.expr.filters){e.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!e.support.reliableHiddenOffsets&&(a.style&&a.style.display||e.css(a,"display"))==="none"};e.expr.filters.visible=function(a){return!e.expr.filters.hidden(a)}}var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=e.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=d.href}catch(bX){bU=b.createElement("a");bU.href="";bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[];e.fn.extend({load:function(a,b,c){if(typeof a!=="string"&&bR){return bR.apply(this,arguments)}else if(!this.length){return this}var d=a.indexOf(" ");if(d>=0){var f=a.slice(d,a.length);a=a.slice(0,d)}var g="GET";if(b){if(e.isFunction(b)){c=b;b=undefined}else if(typeof b==="object"){b=e.param(b,e.ajaxSettings.traditional);g="POST"}}var h=this;e.ajax({url:a,type:g,dataType:"html",data:b,complete:function(a,b,d){d=a.responseText;if(a.isResolved()){a.done(function(a){d=a});h.html(f?e("<div>").append(d.replace(bM,"")).find(f):d)}if(c){h.each(c,[d,b,a])}}});return this},serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?e.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=e(this).val();return c==null?null:e.isArray(c)?e.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}});e.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){e.fn[b]=function(a){return this.on(b,a)}});e.each(["get","post"],function(a,b){e[b]=function(a,c,d,f){if(e.isFunction(c)){f=f||d;d=c;c=undefined}return e.ajax({type:b,url:a,data:c,success:d,dataType:f})}});e.extend({getScript:function(a,b){return e.get(a,undefined,b,"script")},getJSON:function(a,b,c){return e.get(a,b,c,"json")},ajaxSetup:function(a,b){if(b){b$(a,e.ajaxSettings)}else{b=a;a=e.ajaxSettings}b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":e.parseJSON,"text xml":e.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,b){function v(a,b,k,l){if(r===2){return}r=2;if(p){clearTimeout(p)}o=undefined;m=l||"";u.readyState=a>0?4:0;var n,q,t,v=b,w=k?ca(c,u,k):undefined,x,y;if(a>=200&&a<300||a===304){if(c.ifModified){if(x=u.getResponseHeader("Last-Modified")){e.lastModified[j]=x}if(y=u.getResponseHeader("Etag")){e.etag[j]=y}}if(a===304){v="notmodified";n=!0}else{try{q=cb(c,w);v="success";n=!0}catch(z){v="parsererror";t=z}}}else{t=v;if(!v||a){v="error";if(a<0){a=0}}}u.status=a;u.statusText=""+(b||v);if(n){g.resolveWith(d,[q,v,u])}else{g.rejectWith(d,[u,v,t])}u.statusCode(i);i=undefined;if(s){f.trigger("ajax"+(n?"Success":"Error"),[u,c,n?q:t])}h.fireWith(d,[u,v]);if(s){f.trigger("ajaxComplete",[u,c]);if(!--e.active){e.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=undefined}b=b||{};var c=e.ajaxSetup({},b),d=c.context||c,f=d!==c&&(d.nodeType||d instanceof e)?e(d):e.event,g=e.Deferred(),h=e.Callbacks("once memory"),i=c.statusCode||{},j,k={},l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){if(!r){var c=a.toLowerCase();a=l[c]=l[c]||a;k[a]=b}return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var b;if(r===2){if(!n){n={};while(b=bG.exec(m)){n[b[1].toLowerCase()]=b[2]}}b=n[a.toLowerCase()]}return b===undefined?null:b},overrideMimeType:function(a){if(!r){c.mimeType=a}return this},abort:function(a){a=a||"abort";if(o){o.abort(a)}v(0,a);return this}};g.promise(u);u.success=u.done;u.error=u.fail;u.complete=h.add;u.statusCode=function(a){if(a){var b;if(r<2){for(b in a){i[b]=[i[b],a[b]]}}else{b=a[u.status];u.then(b,b)}}return this};c.url=((a||c.url)+"").replace(bF,"").replace(bK,bV[1]+"//");c.dataTypes=e.trim(c.dataType||"*").toLowerCase().split(bO);if(c.crossDomain==null){q=bQ.exec(c.url.toLowerCase());c.crossDomain=!!(q&&(q[1]!=bV[1]||q[2]!=bV[2]||(q[3]||(q[1]==="http:"?80:443))!=(bV[3]||(bV[1]==="http:"?80:443))))}if(c.data&&c.processData&&typeof c.data!=="string"){c.data=e.param(c.data,c.traditional)}bZ(bS,c,b,u);if(r===2){return!1}s=c.global;c.type=c.type.toUpperCase();c.hasContent=!bJ.test(c.type);if(s&&e.active++===0){e.event.trigger("ajaxStart")}if(!c.hasContent){if(c.data){c.url+=(bL.test(c.url)?"&":"?")+c.data;delete c.data}j=c.url;if(c.cache===!1){var w=e.now(),x=c.url.replace(bP,"$1_="+w);c.url=x+(x===c.url?(bL.test(c.url)?"&":"?")+"_="+w:"")}}if(c.data&&c.hasContent&&c.contentType!==!1||b.contentType){u.setRequestHeader("Content-Type",c.contentType)}if(c.ifModified){j=j||c.url;if(e.lastModified[j]){u.setRequestHeader("If-Modified-Since",e.lastModified[j])}if(e.etag[j]){u.setRequestHeader("If-None-Match",e.etag[j])}}u.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):c.accepts["*"]);for(t in c.headers){u.setRequestHeader(t,c.headers[t])}if(c.beforeSend&&(c.beforeSend.call(d,u,c)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1}){u[t](c[t])}o=bZ(bT,c,b,u);if(!o){v(-1,"No Transport")}else{u.readyState=1;if(s){f.trigger("ajaxSend",[u,c])}if(c.async&&c.timeout>0){p=setTimeout(function(){u.abort("timeout")},c.timeout)}try{r=1;o.send(k,v)}catch(y){if(r<2){v(-1,y)}else{throw y}}}return u},param:function(a,b){var c=[],d=function(a,b){b=e.isFunction(b)?b():b;c[c.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(b===undefined){b=e.ajaxSettings.traditional}if(e.isArray(a)||a.jquery&&!e.isPlainObject(a)){e.each(a,function(){d(this.name,this.value)})}else{for(var f in a){b_(f,a[f],b,d)}}return c.join("&").replace(bC,"+")}});e.extend({active:0,lastModified:{},etag:{}});var cc=e.now(),cd=/(\=)\?(&|$)|\?\?/i;e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return e.expando+"_"+cc++}});e.ajaxPrefilter("json jsonp",function(b,c,d){var f=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||f&&cd.test(b.data))){var g,h=b.jsonpCallback=e.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";if(b.jsonp!==!1){j=j.replace(cd,l);if(b.url===j){if(f){k=k.replace(cd,l)}if(b.data===k){j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h}}}b.url=j;b.data=k;a[h]=function(a){g=[a]};d.always(function(){a[h]=i;if(g&&e.isFunction(i)){a[h](g[0])}});b.converters["script json"]=function(){if(!g){e.error(h+" was not called")}return g[0]};b.dataTypes[0]="json";return"script"}});e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){e.globalEval(a);return a}}});e.ajaxPrefilter("script",function(a){if(a.cache===undefined){a.cache=!1}if(a.crossDomain){a.type="GET";a.global=!1}});e.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=b.head||b.getElementsByTagName("head")[0]||b.documentElement;return{send:function(e,f){c=b.createElement("script");c.async="async";if(a.scriptCharset){c.charset=a.scriptCharset}c.src=a.url;c.onload=c.onreadystatechange=function(a,b){if(b||!c.readyState||/loaded|complete/.test(c.readyState)){c.onload=c.onreadystatechange=null;if(d&&c.parentNode){d.removeChild(c)}c=undefined;if(!b){f(200,"success")}}};d.insertBefore(c,d.firstChild)},abort:function(){if(c){c.onload(0,1)}}}}});var ce=a.ActiveXObject?function(){for(var a in cg){cg[a](0,1)}}:!1,cf=0,cg;e.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch;(function(a){e.extend(e.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(e.ajaxSettings.xhr());if(e.support.ajax){e.ajaxTransport(function(b){if(!b.crossDomain||e.support.cors){var c;return{send:function(d,f){var g=b.xhr(),h,i;if(b.username){g.open(b.type,b.url,b.async,b.username,b.password)}else{g.open(b.type,b.url,b.async)}if(b.xhrFields){for(i in b.xhrFields){g[i]=b.xhrFields[i]}}if(b.mimeType&&g.overrideMimeType){g.overrideMimeType(b.mimeType)}if(!b.crossDomain&&!d["X-Requested-With"]){d["X-Requested-With"]="XMLHttpRequest"}try{for(i in d){g.setRequestHeader(i,d[i])}}catch(j){}g.send(b.hasContent&&b.data||null);c=function(a,d){var i,j,k,l,m;try{if(c&&(d||g.readyState===4)){c=undefined;if(h){g.onreadystatechange=e.noop;if(ce){delete cg[h]}}if(d){if(g.readyState!==4){g.abort()}}else{i=g.status;k=g.getAllResponseHeaders();l={};m=g.responseXML;if(m&&m.documentElement){l.xml=m}l.text=g.responseText;try{j=g.statusText}catch(n){j=""}if(!i&&b.isLocal&&!b.crossDomain){i=l.text?200:404}else if(i===1223){i=204}}}}catch(o){if(!d){f(-1,o)}}if(l){f(i,j,l,k)}};if(!b.async||g.readyState===4){c()}else{h=++cf;if(ce){if(!cg){cg={};e(a).unload(ce)}cg[h]=c}g.onreadystatechange=c}},abort:function(){if(c){c(0,1)}}}}})}var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;e.fn.extend({show:function(a,b,c){var d,f;if(a||a===0){return this.animate(ct("show",3),a,b,c)}else{for(var g=0,h=this.length;g<h;g++){d=this[g];if(d.style){f=d.style.display;if(!e._data(d,"olddisplay")&&f==="none"){f=d.style.display=""}if(f===""&&e.css(d,"display")==="none"){e._data(d,"olddisplay",cu(d.nodeName))}}}for(g=0;g<h;g++){d=this[g];if(d.style){f=d.style.display;if(f===""||f==="none"){d.style.display=e._data(d,"olddisplay")||""}}}return this}},hide:function(a,b,c){if(a||a===0){return this.animate(ct("hide",3),a,b,c)}else{var d,f,g=0,h=this.length;for(;g<h;g++){d=this[g];if(d.style){f=e.css(d,"display");if(f!=="none"&&!e._data(d,"olddisplay")){e._data(d,"olddisplay",f)}}}for(g=0;g<h;g++){if(this[g].style){this[g].style.display="none"}}return this}},_toggle:e.fn.toggle,toggle:function(a,b,c){var d=typeof a==="boolean";if(e.isFunction(a)&&e.isFunction(b)){this._toggle.apply(this,arguments)}else if(a==null||d){this.each(function(){var b=d?a:e(this).is(":hidden");e(this)[b?"show":"hide"]()})}else{this.animate(ct("toggle",3),a,b,c)}return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){if(f.queue===!1){e._mark(this)}var b=e.extend({},f),c=this.nodeType===1,d=c&&e(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=e.camelCase(i);if(i!==g){a[g]=a[i];delete a[i]}h=a[g];if(e.isArray(h)){b.animatedProperties[g]=h[1];h=a[g]=h[0]}else{b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing"}if(h==="hide"&&d||h==="show"&&!d){return b.complete.call(this)}if(c&&(g==="height"||g==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(e.css(this,"display")==="inline"&&e.css(this,"float")==="none"){if(!e.support.inlineBlockNeedsLayout||cu(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.zoom=1}}}}if(b.overflow!=null){this.style.overflow="hidden"}for(i in a){j=new e.fx(this,b,i);h=a[i];if(cm.test(h)){o=e._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0);if(o){e._data(this,"toggle"+i,o==="show"?"hide":"show");j[o]()}else{j[h]()}}else{k=cn.exec(h);l=j.cur();if(k){m=parseFloat(k[2]);n=k[3]||(e.cssNumber[i]?"":"px");if(n!=="px"){e.style(this,i,(m||1)+n);l=(m||1)/j.cur()*l;e.style(this,i,l+n)}if(k[1]){m=(k[1]==="-="?-1:1)*m+l}j.custom(l,m,n)}else{j.custom(l,h,"")}}}return!0}var f=e.speed(b,c,d);if(e.isEmptyObject(a)){return this.each(f.complete,[!1])}a=e.extend({},a);return f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){if(typeof a!=="string"){c=b;b=a;a=undefined}if(b&&a!==!1){this.queue(a||"fx",[])}return this.each(function(){function h(a,b,d){var f=b[d];e.removeData(a,d,!0);f.stop(c)}var b,d=!1,f=e.timers,g=e._data(this);if(!c){e._unmark(!0,this)}if(a==null){for(b in g){if(g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4){h(this,g,b)}}}else if(g[b=a+".run"]&&g[b].stop){h(this,g,b)}for(b=f.length;b--;){if(f[b].elem===this&&(a==null||f[b].queue===a)){if(c){f[b](!0)}else{f[b].saveState()}d=!0;f.splice(b,1)}}if(!(c&&d)){e.dequeue(this,a)}})}});e.each({slideDown:ct("show",1),slideUp:ct("hide",1),slideToggle:ct("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){e.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}});e.extend({speed:function(a,b,c){var d=a&&typeof a==="object"?e.extend({},a):{complete:c||!c&&b||e.isFunction(a)&&a,duration:a,easing:c&&b||b&&!e.isFunction(b)&&b};d.duration=e.fx.off?0:typeof d.duration==="number"?d.duration:d.duration in e.fx.speeds?e.fx.speeds[d.duration]:e.fx.speeds._default;if(d.queue==null||d.queue===!0){d.queue="fx"}d.old=d.complete;d.complete=function(a){if(e.isFunction(d.old)){d.old.call(this)}if(d.queue){e.dequeue(this,d.queue)}else if(a!==!1){e._unmark(this)}};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});e.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(e.fx.step[this.prop]||e.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var a,b=e.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return d.step(a)}var d=this,f=e.fx;this.startTime=cq||cr();this.end=b;this.now=this.start=a;this.pos=this.state=0;this.unit=c||this.unit||(e.cssNumber[this.prop]?"":"px");g.queue=this.options.queue;g.elem=this.elem;g.saveState=function(){if(d.options.hide&&e._data(d.elem,"fxshow"+d.prop)===undefined){e._data(d.elem,"fxshow"+d.prop,d.start)}};if(g()&&e.timers.push(g)&&!co){co=setInterval(f.tick,f.interval)}},show:function(){var a=e._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||e.style(this.elem,this.prop);this.options.show=!0;if(a!==undefined){this.custom(this.cur(),a)}else{this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur())}e(this.elem).show()},hide:function(){this.options.orig[this.prop]=e._data(this.elem,"fxshow"+this.prop)||e.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b,c,d,f=cq||cr(),g=!0,h=this.elem,i=this.options;if(a||f>=i.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties){if(i.animatedProperties[b]!==!0){g=!1}}if(g){if(i.overflow!=null&&!e.support.shrinkWrapBlocks){e.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]})}if(i.hide){e(h).hide()}if(i.hide||i.show){for(b in i.animatedProperties){e.style(h,b,i.orig[b]);e.removeData(h,"fxshow"+b,!0);e.removeData(h,"toggle"+b,!0)}}d=i.complete;if(d){i.complete=!1;d.call(h)}}return!1}else{if(i.duration==Infinity){this.now=f}else{c=f-this.startTime;this.state=c/i.duration;this.pos=e.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return!0}};e.extend(e.fx,{tick:function(){var a,b=e.timers,c=0;for(;c<b.length;c++){a=b[c];if(!a()&&b[c]===a){b.splice(c--,1)}}if(!b.length){e.fx.stop()}},interval:13,stop:function(){clearInterval(co);co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){e.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit}else{a.elem[a.prop]=a.now}}}});e.each(["width","height"],function(a,b){e.fx.step[b]=function(a){e.style(a.elem,b,Math.max(0,a.now)+a.unit)}});if(e.expr&&e.expr.filters){e.expr.filters.animated=function(a){return e.grep(e.timers,function(b){return a===b.elem}).length}}var cv=/^t(?:able|d|h)$/i,cw=/^(?:body|html)$/i;if("getBoundingClientRect"in b.documentElement){e.fn.offset=function(a){var b=this[0],c;if(a){return this.each(function(b){e.offset.setOffset(this,a,b)})}if(!b||!b.ownerDocument){return null}if(b===b.ownerDocument.body){return e.offset.bodyOffset(b)}try{c=b.getBoundingClientRect()}catch(d){}var f=b.ownerDocument,g=f.documentElement;if(!c||!e.contains(g,b)){return c?{top:c.top,left:c.left}:{top:0,left:0}}var h=f.body,i=cx(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||e.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||e.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}}else{e.fn.offset=function(a){var b=this[0];if(a){return this.each(function(b){e.offset.setOffset(this,a,b)})}if(!b||!b.ownerDocument){return null}if(b===b.ownerDocument.body){return e.offset.bodyOffset(b)}var c,d=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(e.support.fixedPosition&&k.position==="fixed"){break}c=j?j.getComputedStyle(b,null):b.currentStyle;l-=b.scrollTop;m-=b.scrollLeft;if(b===d){l+=b.offsetTop;m+=b.offsetLeft;if(e.support.doesNotAddBorder&&!(e.support.doesAddBorderForTableAndCells&&cv.test(b.nodeName))){l+=parseFloat(c.borderTopWidth)||0;m+=parseFloat(c.borderLeftWidth)||0}f=d;d=b.offsetParent}if(e.support.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){l+=parseFloat(c.borderTopWidth)||0;m+=parseFloat(c.borderLeftWidth)||0}k=c}if(k.position==="relative"||k.position==="static"){l+=i.offsetTop;m+=i.offsetLeft}if(e.support.fixedPosition&&k.position==="fixed"){l+=Math.max(h.scrollTop,i.scrollTop);m+=Math.max(h.scrollLeft,i.scrollLeft)}return{top:l,left:m}}}e.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;if(e.support.doesNotIncludeMarginInBodyOffset){b+=parseFloat(e.css(a,"marginTop"))||0;c+=parseFloat(e.css(a,"marginLeft"))||0}return{top:b,left:c}},setOffset:function(a,b,c){var d=e.css(a,"position");if(d==="static"){a.style.position="relative"}var f=e(a),g=f.offset(),h=e.css(a,"top"),i=e.css(a,"left"),j=(d==="absolute"||d==="fixed")&&e.inArray("auto",[h,i])>-1,k={},l={},m,n;if(j){l=f.position();m=l.top;n=l.left}else{m=parseFloat(h)||0;n=parseFloat(i)||0}if(e.isFunction(b)){b=b.call(a,c,g)}if(b.top!=null){k.top=b.top-g.top+m}if(b.left!=null){k.left=b.left-g.left+n}if("using"in b){b.using.call(a,k)}else{f.css(k)}}};e.fn.extend({position:function(){if(!this[0]){return null}var a=this[0],b=this.offsetParent(),c=this.offset(),d=cw.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(e.css(a,"marginTop"))||0;c.left-=parseFloat(e.css(a,"marginLeft"))||0;d.top+=parseFloat(e.css(b[0],"borderTopWidth"))||0;d.left+=parseFloat(e.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||b.body;while(a&&(!cw.test(a.nodeName)&&e.css(a,"position")==="static")){a=a.offsetParent}return a})}});e.each(["Left","Top"],function(a,b){var c="scroll"+b;e.fn[c]=function(b){var d,f;if(b===undefined){d=this[0];if(!d){return null}f=cx(d);return f?"pageXOffset"in f?f[a?"pageYOffset":"pageXOffset"]:e.support.boxModel&&f.document.documentElement[c]||f.document.body[c]:d[c]}return this.each(function(){f=cx(this);if(f){f.scrollTo(!a?b:e(f).scrollLeft(),a?b:e(f).scrollTop())}else{this[c]=b}})}});e.each(["Height","Width"],function(a,b){var c=b.toLowerCase();e.fn["inner"+b]=function(){var a=this[0];return a?a.style?parseFloat(e.css(a,c,"padding")):this[c]():null};e.fn["outer"+b]=function(a){var b=this[0];return b?b.style?parseFloat(e.css(b,c,a?"margin":"border")):this[c]():null};e.fn[c]=function(a){var d=this[0];if(!d){return a==null?null:this}if(e.isFunction(a)){return this.each(function(b){var d=e(this);d[c](a.call(this,b,d[c]()))})}if(e.isWindow(d)){var f=d.document.documentElement["client"+b],g=d.document.body;return d.document.compatMode==="CSS1Compat"&&f||g&&g["client"+b]||f}else if(d.nodeType===9){return Math.max(d.documentElement["client"+b],d.body["scroll"+b],d.documentElement["scroll"+b],d.body["offset"+b],d.documentElement["offset"+b])}else if(a===undefined){var h=e.css(d,c),i=parseFloat(h);return e.isNumeric(i)?i:h}else{return this.css(c,typeof a==="string"?a:a+"px")}}});a.jQuery=a.$=e;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return e})}})(window);(function(a){a.fn.hoverIntent=function(b,c){var d={sensitivity:7,interval:100,timeout:0};d=a.extend(d,c?{over:b,out:c}:b);var e,f,g,h;var i=function(a){e=a.pageX;f=a.pageY};var j=function(b,c){c.hoverIntent_t=clearTimeout(c.hoverIntent_t);if(Math.abs(g-e)+Math.abs(h-f)<d.sensitivity){a(c).unbind("mousemove",i);c.hoverIntent_s=1;return d.over.apply(c,[b])}else{g=e;h=f;c.hoverIntent_t=setTimeout(function(){j(b,c)},d.interval)}};var k=function(a,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);b.hoverIntent_s=0;return d.out.apply(b,[a])};var l=function(b){var c=jQuery.extend({},b);var e=this;if(e.hoverIntent_t){e.hoverIntent_t=clearTimeout(e.hoverIntent_t)}if(b.type=="mouseenter"){g=c.pageX;h=c.pageY;a(e).bind("mousemove",i);if(e.hoverIntent_s!=1){e.hoverIntent_t=setTimeout(function(){j(c,e)},d.interval)}}else{a(e).unbind("mousemove",i);if(e.hoverIntent_s==1){e.hoverIntent_t=setTimeout(function(){k(c,e)},d.timeout)}}};return this.bind("mouseenter",l).bind("mouseleave",l)}})(jQuery);(function($){$.toJSON=function(a){if(typeof JSON=="object"&&JSON.stringify)return JSON.stringify(a);var b=typeof a;if(a===null)return"null";if(b=="undefined")return undefined;if(b=="number"||b=="boolean")return a+"";if(b=="string")return $.quoteString(a);if(b=="object"){if(typeof a.toJSON=="function")return $.toJSON(a.toJSON());if(a.constructor===Date){var c=a.getUTCMonth()+1;if(c<10)c="0"+c;var d=a.getUTCDate();if(d<10)d="0"+d;var e=a.getUTCFullYear();var f=a.getUTCHours();if(f<10)f="0"+f;var g=a.getUTCMinutes();if(g<10)g="0"+g;var h=a.getUTCSeconds();if(h<10)h="0"+h;var i=a.getUTCMilliseconds();if(i<100)i="0"+i;if(i<10)i="0"+i;return'"'+e+"-"+c+"-"+d+"T"+f+":"+g+":"+h+"."+i+'Z"'}if(a.constructor===Array){var j=[];for(var k=0;k<a.length;k++)j.push($.toJSON(a[k])||"null");return"["+j.join(",")+"]"}var l=[];for(var m in a){var n;var b=typeof m;if(b=="number")n='"'+m+'"';else if(b=="string")n=$.quoteString(m);else continue;if(typeof a[m]=="function")continue;var o=$.toJSON(a[m]);l.push(n+":"+o)}return"{"+l.join(", ")+"}"}};$.evalJSON=function(src){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(src);return eval("("+src+")")};$.secureEvalJSON=function(src){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(src);var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered))return eval("("+src+")");else throw new SyntaxError("Error parsing JSON, source is not valid.")};$.quoteString=function(a){if(a.match(_escapeable)){return'"'+a.replace(_escapeable,function(a){var b=_meta[a];if(typeof b==="string")return b;b=a.charCodeAt();return"\\u00"+Math.floor(b/16).toString(16)+(b%16).toString(16)})+'"'}return'"'+a+'"'};var _escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var _meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery);(function(a){a.i18n=function(b,c){var d=c||a.i18n.lang;if(!this.i18n[d]||!this.i18n[d].strings){return b}return this.i18n[d].strings[b]||b};a._=a.i18n;a.i18n.setLocale=function(b){a.i18n.lang=b};a.i18n.getLocale=function(){return a.i18n.lang};a.i18n._n=function(a,b,c){b=b||2;return a.toFixed(b)};a._n=a.i18n._n;a.i18n._dm=function(b,c){c=c||a.i18n.lang;if(!this.i18n[c]||!this.i18n[c].monthes){return b}var d=b.split("-");return parseInt(d[2],10)+" "+this.i18n[c].monthes[parseInt(d[1],10)-1]+" "+parseInt(d[0],10)};a._dm=a.i18n._dm})(jQuery);jQuery(function(a){a.fn.quicksearch=function(b,c){var d,e,f,g,h="",i=this,j=a.extend({delay:100,selector:null,stripeRows:null,loader:null,noResults:"",bind:"keyup",onBefore:function(){return},onAfter:function(){return},show:function(){this.style.display=""},hide:function(){this.style.display="none"}},c);this.go=function(){var a=0,b=!0,c=h.toLowerCase().split(" ");var d=f.length;for(var a=0;a<d;a++){if(this.test(c,e[a])||h==""){j.show.apply(f[a]);b=!1}else{j.hide.apply(f[a])}}if(b){this.results(!1)}else{this.results(!0);this.stripe()}this.loader(!1);j.onAfter();return this};this.stripe=function(){if(typeof j.stripeRows==="object"&&j.stripeRows!==null){var b=j.stripeRows.join(" ");var c=j.stripeRows.length;g.not(":hidden").each(function(d){a(this).removeClass(b).addClass(j.stripeRows[d%c])})}return this};this.strip_html=function(b){var c=b.replace(new RegExp("<[^<]+>","g"),"");c=a.trim(c.toLowerCase());return c};this.results=function(b){if(typeof j.noResults==="string"&&j.noResults!==""){if(b){a(j.noResults).hide()}else{a(j.noResults).show()}}return this};this.loader=function(b){if(typeof j.loader==="string"&&j.loader!==""){b?a(j.loader).show():a(j.loader).hide()}return this};this.test=function(a,b){for(var c=0;c<a.length;c+=1){if(b.indexOf(a[c])===-1){return!1}}return!0};this.cache=function(){g=a(b);if(typeof j.noResults==="string"&&j.noResults!==""){g=g.not(j.noResults)}var c=typeof j.selector==="string"?g.find(j.selector):a(b).not(j.noResults);e=c.map(function(){return i.strip_html(this.innerHTML)});f=g.map(function(){return this});return this.go()};this.trigger=function(){this.loader(!0);j.onBefore();window.clearTimeout(d);d=window.setTimeout(function(){i.go()},j.delay);return this};this.cache();this.results(!0);this.stripe();this.loader(!1);return this.each(function(){a(this).bind(j.bind,function(){h=a(this).val();i.trigger()})})}});(function(a){a.extend({tsorter:new function(){function h(a,b){if(a>b)return-1;if(a<b)return 1;return 0}function g(a,b){if(a<b)return-1;if(a>b)return 1;return 0}function f(a){if(typeof a=="string")return a.replace(/<\/?(?!\!)[^>]*>/gi,"");return a}function e(b){$tableHeaders=a("thead th",b).each(function(a){this.column=a;this.order=null});return $tableHeaders}function d(b,c){var d=b.tBodies[0]&&b.tBodies[0].rows.length||0,e=b.tBodies[0].rows[0]&&b.tBodies[0].rows[0].cells.length||0;for(var f=0;f<d;++f){var g=a(b.tBodies[0].rows[f]);for(var h=0;h<e;++h){g[0].cells[h].innerHTML=c[f][h]}}}function c(c){var d=c.tBodies[0]&&c.tBodies[0].rows.length||0,e=c.tBodies[0].rows[0]&&c.tBodies[0].rows[0].cells.length||0,f=[];for(var g=0;g<d;++g){var h=a(c.tBodies[0].rows[g]),i=[];for(var j=0;j<e;++j){i.push(b(h[0].cells[j]))}f.push(i)}return f}function b(a){if(!a)return"";var b=parseFloat(a.innerHTML);if(isNaN(b))return a.innerHTML;else return b}this.construct=function(b){return this.each(function(){if(!this.tHead||!this.tBodies)return;var b,i,j,k,l;b=a(this);i=e(this);j=c(this);l=this;i.click(function(b){var c=a(this);var e=this.column;i.removeClass("down");i.removeClass("up");if(this.order==null)this.order=!0;else this.order=!this.order;var k=this.order;if(k)c.addClass("up");else c.addClass("down");j.sort(function(a,b){if(k)return g(f(a[e]),f(b[e]));else return h(f(a[e]),f(b[e]))});d(l,j)}).mousedown(function(){this.onselectstart=function(){return!1};return!1})})}}});a.fn.extend({tsorter:a.tsorter.construct})})(jQuery);var onscroll_timeout;var onresize_timeout;var tdm=null;$(document).ready(function(){tdm=new TDialogManager;$(document).bind("mousemove",tdm_onmousemove);$(document).bind("mouseup",tdm_onmouseup);$(window).bind("scroll",tdm_onscroll);$(window).bind("resize",tdm_onresize)});(function(a){a.fn.extend({autoComplete:function(b){var c="autocomplete";var d="sel";var e="rel";var f=a(this);a(":not(div."+c+")").click(function(){a("div."+c).remove()});f.attr("autocomplete","off");f.keypress(function(a){return a.keyCode!=13});f.keyup(function(e){kc=typeof e.charCode=="undefined"||e.charCode===0?e.keyCode:e.charCode;key=String.fromCharCode(kc);if(kc==27){a("div."+c).remove()}if(kc==13){a("div."+c+" li."+d).trigger("click")}if(kc!=27&&kc!=13&&kc!=37&&kc!=39&&kc!=38&&kc!=40){a.postJSON(b,{q:f.val()},function(b){a("div."+c).remove();autoCompleteList=a("<div>").addClass(c).html(b.players);if(b!=""){autoCompleteList.insertAfter(f);var e=f.position();var g=f.height();var h=f.width();a("div."+c).css({top:g+e.top+6+"px",left:e.left+"px",margin:"0px"});a("div."+c+" ul").css({"margin-left":"0px"});a("div."+c+" li").each(function(b,e){e=a(e);e.mouseenter(function(){a("div."+c+" li."+d).removeClass(d);a(this).addClass(d)});e.click(function(){f.attr("value",e.text());a("div."+c).remove();f.focus()})})}})}if(kc==38||kc==40){if(a("div."+c+" li."+d).length==0){if(kc==38){a(a("div."+c+" li")[a("div."+c+" li").length-1]).addClass(d)}else{a(a("div."+c+" li")[0]).addClass(d)}}else{sel=!1;a("div."+c+" li").each(function(b,e){e=a(e);if(!sel&&e.hasClass(d)){e.removeClass(d);a(a("div."+c+" li")[kc==38?b-1:b+1]).addClass(d);sel=!0}})}}if(f.val()==""){a("div."+c).remove()}})}})})(jQuery);
