﻿(function(d,b){var c=d.document,Rb=d.navigator,Wb=d.location,a=function(){var a=function(b,c){return new a.fn.init(b,c,m)},E=d.jQuery,I=d.$,m,z=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,n=/\S/,p=/^\s+/,o=/\s+$/,F=/\d/,y=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,v=/^[\],:{}\s]*$/,t=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,u=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,s=/(?:^|:|,)(?:\s*\[)+/g,D=/(webkit)[ \/]([\w.]+)/,G=/(opera)(?:.*version)?[ \/]([\w.]+)/,H=/(msie) ([\w.]+)/,B=/(mozilla)(?:.*? rv:([\w.]+))?/,x=/-([a-z])/ig,w=function(b,a){return a.toUpperCase()},A=Rb.userAgent,g,h,e,C=Object.prototype.toString,i=Object.prototype.hasOwnProperty,j=Array.prototype.push,f=Array.prototype.slice,r=String.prototype.trim,q=Array.prototype.indexOf,l={};a.fn=a.prototype={constructor:a,init:function(d,e,i){var f,h,g,j;if(!d)return this;if(d.nodeType){this.context=this[0]=d;this.length=1;return this}if(d==="body"&&!e&&c.body){this.context=c;this[0]=c.body;this.selector=d;this.length=1;return this}if(typeof d==="string"){if(d.charAt(0)==="<"&&d.charAt(d.length-1)===">"&&d.length>=3)f=[null,d,null];else f=z.exec(d);if(f&&(f[1]||!e))if(f[1]){e=e instanceof a?e[0]:e;j=e?e.ownerDocument||e:c;g=y.exec(d);if(g)if(a.isPlainObject(e)){d=[c.createElement(g[1])];a.fn.attr.call(d,e,true)}else d=[j.createElement(g[1])];else{g=a.buildFragment([f[1]],[j]);d=(g.cacheable?a.clone(g.fragment):g.fragment).childNodes}return a.merge(this,d)}else{h=c.getElementById(f[2]);if(h&&h.parentNode){if(h.id!==f[2])return i.find(d);this.length=1;this[0]=h}this.context=c;this.selector=d;return this}else return!e||e.jquery?(e||i).find(d):this.constructor(e).find(d)}else if(a.isFunction(d))return i.ready(d);if(d.selector!==b){this.selector=d.selector;this.context=d.context}return a.makeArray(d,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},"get":function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(c,d,e){var b=this.constructor();if(a.isArray(c))j.apply(b,c);else a.merge(b,c);b.prevObject=this;b.context=this.context;if(d==="find")b.selector=this.selector+(this.selector?" ":"")+e;else if(d)b.selector=this.selector+"."+d+"("+e+")";return b},each:function(b,c){return a.each(this,b,c)},ready:function(b){a.bindReady();h.done(b);return this},eq:function(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(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(b){return this.pushStack(a.map(this,function(a,c){return b.call(a,c,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice};a.fn.init.prototype=a.fn;a.extend=a.fn.extend=function(){var i,g,e,d,h,j,c=arguments[0]||{},f=1,l=arguments.length,k=false;if(typeof c==="boolean"){k=c;c=arguments[1]||{};f=2}if(typeof c!=="object"&&!a.isFunction(c))c={};if(l===f){c=this;--f}for(;f<l;f++)if((i=arguments[f])!=null)for(g in i){e=c[g];d=i[g];if(c===d)continue;if(k&&d&&(a.isPlainObject(d)||(h=a.isArray(d)))){if(h){h=false;j=e&&a.isArray(e)?e:[]}else j=e&&a.isPlainObject(e)?e:{};c[g]=a.extend(k,j,d)}else if(d!==b)c[g]=d}return c};a.extend({noConflict:function(b){if(d.$===a)d.$=I;if(b&&d.jQuery===a)d.jQuery=E;return a},isReady:false,readyWait:1,holdReady:function(b){if(b)a.readyWait++;else a.ready(true)},ready:function(b){if(b===true&&!--a.readyWait||b!==true&&!a.isReady){if(!c.body)return setTimeout(a.ready,1);a.isReady=true;if(b!==true&&--a.readyWait>0)return;h.resolveWith(c,[a]);a.fn.trigger&&a(c).trigger("ready").unbind("ready")}},bindReady:function(){if(h)return;h=a._Deferred();if(c.readyState==="complete")return setTimeout(a.ready,1);if(c.addEventListener){c.addEventListener("DOMContentLoaded",e,false);d.addEventListener("load",a.ready,false)}else if(c.attachEvent){c.attachEvent("onreadystatechange",e);d.attachEvent("onload",a.ready);var b=false;try{b=d.frameElement==null}catch(f){}c.documentElement.doScroll&&b&&k()}},isFunction:function(b){return a.type(b)==="function"},isArray:Array.isArray||function(b){return a.type(b)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!F.test(a)||isNaN(a)},type:function(a){return a==null?String(a):l[C.call(a)]||"object"},isPlainObject:function(c){if(!c||a.type(c)!=="object"||c.nodeType||a.isWindow(c))return false;if(c.constructor&&!i.call(c,"constructor")&&!i.call(c.constructor.prototype,"isPrototypeOf"))return false;var d;for(d in c);return d===b||i.call(c,d)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=a.trim(b);if(d.JSON&&d.JSON.parse)return d.JSON.parse(b);if(v.test(b.replace(t,"@").replace(u,"]").replace(s,"")))return new Function("return "+b)();a.error("Invalid JSON: "+b)},parseXML:function(e,c,b){if(d.DOMParser){b=new DOMParser;c=b.parseFromString(e,"text/xml")}else{c=new ActiveXObject("Microsoft.XMLDOM");c.async="false";c.loadXML(e)}b=c.documentElement;(!b||!b.nodeName||b.nodeName==="parsererror")&&a.error("Invalid XML: "+e);return c},noop:function(){},globalEval:function(a){a&&n.test(a)&&(d.execScript||function(a){d.eval.call(d,a)})(a)},camelCase:function(a){return a.replace(x,w)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(c,f,h){var d,e=0,g=c.length,i=g===b||a.isFunction(c);if(h){if(i){for(d in c)if(f.apply(c[d],h)===false)break}else for(;e<g;)if(f.apply(c[e++],h)===false)break}else if(i){for(d in c)if(f.call(c[d],d,c[d])===false)break}else for(;e<g;)if(f.call(c[e],e,c[e++])===false)break;return c},trim:r?function(a){return a==null?"":r.call(a)}:function(a){return a==null?"":a.toString().replace(p,"").replace(o,"")},makeArray:function(b,e){var d=e||[];if(b!=null){var c=a.type(b);if(b.length==null||c==="string"||c==="function"||c==="regexp"||a.isWindow(b))j.call(d,b);else a.merge(d,b)}return d},inArray:function(c,b){if(q)return q.call(b,c);for(var a=0,d=b.length;a<d;a++)if(b[a]===c)return a;return-1},merge:function(c,a){var e=c.length,d=0;if(typeof a.length==="number")for(var f=a.length;d<f;d++)c[e++]=a[d];else while(a[d]!==b)c[e++]=a[d++];c.length=e;return c},grep:function(b,f,c){var e=[],d;c=!!c;for(var a=0,g=b.length;a<g;a++){d=!!f(b[a],a);c!==d&&e.push(b[a])}return e},map:function(c,i,j){var e,h,f=[],g=0,d=c.length,k=c instanceof a||d!==b&&typeof d==="number"&&(d>0&&c[0]&&c[d-1]||d===0||a.isArray(c));if(k)for(;g<d;g++){e=i(c[g],g,j);if(e!=null)f[f.length]=e}else for(h in c){e=i(c[h],h,j);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(c,d){if(typeof d==="string"){var h=c[d];d=c;c=h}if(!a.isFunction(c))return b;var g=f.call(arguments,2),e=function(){return c.apply(d,g.concat(f.call(arguments)))};e.guid=c.guid=c.guid||e.guid||a.guid++;return e},access:function(c,d,f,g,h,j){var i=c.length;if(typeof d==="object"){for(var k in d)a.access(c,k,d[k],g,h,f);return c}if(f!==b){g=!j&&g&&a.isFunction(f);for(var e=0;e<i;e++)h(c[e],d,g?f.call(c[e],e,h(c[e],d)):f,j);return c}return i?h(c[0],d):b},now:function(){return+new Date},uaMatch:function(a){a=a.toLowerCase();var b=D.exec(a)||G.exec(a)||H.exec(a)||a.indexOf("compatible")<0&&B.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function b(a,c){return new b.fn.init(a,c)}a.extend(true,b,this);b.superclass=this;b.fn=b.prototype=this();b.fn.constructor=b;b.sub=this.sub;b.fn.init=function(e,c){if(c&&c instanceof a&&!(c instanceof b))c=b(c);return a.fn.init.call(this,e,c,d)};b.fn.init.prototype=b.fn;var d=b(c);return b},browser:{}});a.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b,a){l["[object "+a+"]"]=a.toLowerCase()});g=a.uaMatch(A);if(g.browser){a.browser[g.browser]=true;a.browser.version=g.version}if(a.browser.webkit)a.browser.safari=true;if(n.test(" ")){p=/^[\s\xA0]+/;o=/[\s\xA0]+$/}m=a(c);if(c.addEventListener)e=function(){c.removeEventListener("DOMContentLoaded",e,false);a.ready()};else if(c.attachEvent)e=function(){if(c.readyState==="complete"){c.detachEvent("onreadystatechange",e);a.ready()}};function k(){if(a.isReady)return;try{c.documentElement.doScroll("left")}catch(b){setTimeout(k,1);return}a.ready()}return a}(),B="done fail isResolved isRejected promise then always pipe".split(" "),T=[].slice;a.extend({_Deferred:function(){var d=[],b,e,f,c={done:function(){if(!f){var k=arguments,h,j,g,i,e;if(b){e=b;b=0}for(h=0,j=k.length;h<j;h++){g=k[h];i=a.type(g);if(i==="array")c.done.apply(c,g);else i==="function"&&d.push(g)}e&&c.resolveWith(e[0],e[1])}return this},resolveWith:function(c,a){if(!f&&!b&&!e){a=a||[];e=1;try{while(d[0])d.shift().apply(c,a)}finally{b=[c,a];e=0}}return this},resolve:function(){c.resolveWith(this,arguments);return this},isResolved:function(){return!!(e||b)},cancel:function(){f=1;d=[];return this}};return c},Deferred:function(e){var b=a._Deferred(),c=a._Deferred(),d;a.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(c,d){return a.Deferred(function(e){a.each({done:[c,"resolve"],fail:[d,"reject"]},function(d,g){var h=g[0],f=g[1],c;if(a.isFunction(h))b[d](function(){c=h.apply(this,arguments);if(c&&a.isFunction(c.promise))c.promise().then(e.resolve,e.reject);else e[f](c)});else b[d](e[f])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=B.length;while(c--)a[B[c]]=b[B[c]];return a}});b.done(c.cancel).fail(b.cancel);delete b.cancel;e&&e.call(b,b);return b},when:function(e){var c=arguments,d=0,f=c.length,g=f,b=f<=1&&e&&a.isFunction(e.promise)?e:a.Deferred();function h(a){return function(d){c[a]=arguments.length>1?T.call(arguments,0):d;!--g&&b.resolveWith(b,T.call(c,0))}}if(f>1){for(;d<f;d++)if(c[d]&&a.isFunction(c[d].promise))c[d].promise().then(h(d),b.reject);else--g;!g&&b.resolveWith(b,c)}else b!==e&&b.resolveWith(b,f?[e]:[]);return b.promise()}});a.support=function(){var b=c.createElement("div"),t=c.documentElement,s,i,q,r,e,h,d,p,k,m,f,n,l,u,o,j,g;b.setAttribute("className","t");b.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";s=b.getElementsByTagName("*");i=b.getElementsByTagName("a")[0];if(!s||!s.length||!i)return{};q=c.createElement("select");r=q.appendChild(c.createElement("option"));e=b.getElementsByTagName("input")[0];d={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:e.value==="on",optSelected:r.selected,getSetAttribute:b.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};e.checked=true;d.noCloneChecked=e.cloneNode(true).checked;q.disabled=true;d.optDisabled=!r.disabled;try{delete b.test}catch(v){d.deleteExpando=false}if(!b.addEventListener&&b.attachEvent&&b.fireEvent){b.attachEvent("onclick",function(){d.noCloneEvent=false});b.cloneNode(true).fireEvent("onclick")}e=c.createElement("input");e.value="t";e.setAttribute("type","radio");d.radioValue=e.value==="t";e.setAttribute("checked","checked");b.appendChild(e);p=c.createDocumentFragment();p.appendChild(b.firstChild);d.checkClone=p.cloneNode(true).cloneNode(true).lastChild.checked;b.innerHTML="";b.style.width=b.style.paddingLeft="1px";k=c.getElementsByTagName("body")[0];f=c.createElement(k?"div":"body");n={visibility:"hidden",width:0,height:0,border:0,margin:0};k&&a.extend(n,{position:"absolute",left:-1e3,top:-1e3});for(j in n)f.style[j]=n[j];f.appendChild(b);m=k||t;m.insertBefore(f,m.firstChild);d.appendChecked=e.checked;d.boxModel=b.offsetWidth===2;if("zoom"in b.style){b.style.display="inline";b.style.zoom=1;d.inlineBlockNeedsLayout=b.offsetWidth===2;b.style.display="";b.innerHTML="<div style='width:4px;'></div>";d.shrinkWrapBlocks=b.offsetWidth!==2}b.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";l=b.getElementsByTagName("td");g=l[0].offsetHeight===0;l[0].style.display="";l[1].style.display="none";d.reliableHiddenOffsets=g&&l[0].offsetHeight===0;b.innerHTML="";if(c.defaultView&&c.defaultView.getComputedStyle){h=c.createElement("div");h.style.width="0";h.style.marginRight="0";b.appendChild(h);d.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(h,null)||{marginRight:0}).marginRight,10)||0)===0}f.innerHTML="";m.removeChild(f);if(b.attachEvent)for(j in{submit:1,change:1,focusin:1}){o="on"+j;g=o in b;if(!g){b.setAttribute(o,"return;");g=typeof b[o]==="function"}d[j+"Bubbles"]=g}f=p=q=r=k=h=b=e=null;return d}();a.boxModel=a.support.boxModel;var ic=/^(?:\{.*\}|\[.*\])$/,Ob=/([a-z])([A-Z])/g;a.extend({cache:{},uuid:0,expando:"jQuery"+(a.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(b){b=b.nodeType?a.cache[b[a.expando]]:b[a.expando];return!!b&&!z(b)},data:function(h,e,j,k){if(!a.acceptData(h))return;var g=a.expando,l=typeof e==="string",d,i=h.nodeType,f=i?a.cache:h,c=i?h[a.expando]:h[a.expando]&&a.expando;if((!c||k&&c&&!f[c][g])&&l&&j===b)return;if(!c)if(i)h[a.expando]=c=++a.uuid;else c=a.expando;if(!f[c]){f[c]={};if(!i)f[c].toJSON=a.noop}if(typeof e==="object"||typeof e==="function")if(k)f[c][g]=a.extend(f[c][g],e);else f[c]=a.extend(f[c],e);d=f[c];if(k){if(!d[g])d[g]={};d=d[g]}if(j!==b)d[a.camelCase(e)]=j;return e==="events"&&!d[e]?d[g]&&d[g].events:l?d[a.camelCase(e)]||d[e]:d},removeData:function(e,j,k){if(!a.acceptData(e))return;var f=a.expando,g=e.nodeType,b=g?a.cache:e,c=g?e[a.expando]:a.expando;if(!b[c])return;if(j){var h=k?b[c][f]:b[c];if(h){delete h[j];if(!z(h))return}}if(k){delete b[c][f];if(!z(b[c]))return}var i=b[c][f];if(a.support.deleteExpando||b!=d)delete b[c];else b[c]=null;if(i){b[c]={};if(!g)b[c].toJSON=a.noop;b[c][f]=i}else if(g)if(a.support.deleteExpando)delete e[a.expando];else if(e.removeAttribute)e.removeAttribute(a.expando);else e[a.expando]=null},_data:function(c,d,b){return a.data(c,d,b,true)},acceptData:function(c){if(c.nodeName){var b=a.noData[c.nodeName.toLowerCase()];if(b)return!(b===true||c.getAttribute("classid")!==b)}return true}});a.fn.extend({data:function(e,g){var d=null;if(typeof e==="undefined"){if(this.length){d=a.data(this[0]);if(this[0].nodeType===1)for(var i=this[0].attributes,f,h=0,j=i.length;h<j;h++){f=i[h].name;if(f.indexOf("data-")===0){f=a.camelCase(f.substring(5));cb(this[0],f,d[f])}}}return d}else if(typeof e==="object")return this.each(function(){a.data(this,e)});var c=e.split(".");c[1]=c[1]?"."+c[1]:"";if(g===b){d=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(d===b&&this.length){d=a.data(this[0],e);d=cb(this[0],e,d)}return d===b&&c[1]?this.data(c[0]):d}else return this.each(function(){var b=a(this),d=[c[0],g];b.triggerHandler("setData"+c[1]+"!",d);a.data(this,e,g);b.triggerHandler("changeData"+c[1]+"!",d)})},removeData:function(b){return this.each(function(){a.removeData(this,b)})}});function cb(d,e,c){if(c===b&&d.nodeType===1){var f="data-"+e.replace(Ob,"$1-$2").toLowerCase();c=d.getAttribute(f);if(typeof c==="string"){try{c=c==="true"?true:c==="false"?false:c==="null"?null:!a.isNaN(c)?parseFloat(c):ic.test(c)?a.parseJSON(c):c}catch(g){}a.data(d,e,c)}else c=b}return c}function z(b){for(var a in b)if(a!=="toJSON")return false;return true}function L(c,d,i){var e=d+"defer",f=d+"queue",g=d+"mark",h=a.data(c,e,b,true);h&&(i==="queue"||!a.data(c,f,b,true))&&(i==="mark"||!a.data(c,g,b,true))&&setTimeout(function(){if(!a.data(c,f,b,true)&&!a.data(c,g,b,true)){a.removeData(c,e,true);h.resolve()}},0)}a.extend({_mark:function(d,c){if(d){c=(c||"fx")+"mark";a.data(d,c,(a.data(d,c,b,true)||0)+1,true)}},_unmark:function(e,c,d){if(e!==true){d=c;c=e;e=false}if(c){d=d||"fx";var f=d+"mark",g=e?0:(a.data(c,f,b,true)||1)-1;if(g)a.data(c,f,g,true);else{a.removeData(c,f,true);L(c,d,"mark")}}},queue:function(f,d,c){if(f){d=(d||"fx")+"queue";var e=a.data(f,d,b,true);if(c)if(!e||a.isArray(c))e=a.data(f,d,a.makeArray(c),true);else e.push(c);return e||[]}},dequeue:function(c,b){b=b||"fx";var d=a.queue(c,b),e=d.shift(),f;if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(c,function(){a.dequeue(c,b)})}if(!d.length){a.removeData(c,b+"queue",true);L(c,b,"queue")}}});a.fn.extend({queue:function(c,d){if(typeof c!=="string"){d=c;c="fx"}return d===b?a.queue(this[0],c):this.each(function(){var b=a.queue(this,c,d);c==="fx"&&b[0]!=="inprogress"&&a.dequeue(this,c)})},dequeue:function(b){return this.each(function(){a.dequeue(this,b)})},delay:function(b,c){b=a.fx?a.fx.speeds[b]||b:b;c=c||"fx";return this.queue(c,function(){var d=this;setTimeout(function(){a.dequeue(d,c)},b)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(c,m){if(typeof c!=="string"){m=c;c=b}c=c||"fx";var i=a.Deferred(),d=this,e=d.length,h=1,f=c+"defer",k=c+"queue",l=c+"mark",j;function g(){!--h&&i.resolveWith(d,[d])}while(e--)if(j=a.data(d[e],f,b,true)||(a.data(d[e],k,b,true)||a.data(d[e],l,b,true))&&a.data(d[e],f,a._Deferred(),true)){h++;j.done(g)}g();return i.promise()}});var mb=/[\n\t\r]/g,J=/\s+/,fc=/\r/g,rc=/^(?:button|input)$/i,Nb=/^(?:button|input|object|select|textarea)$/i,Mb=/^a(?:rea)?$/i,eb=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Fb=/\:|^on/,j,bb;a.fn.extend({attr:function(c,b){return a.access(this,c,b,true,a.attr)},removeAttr:function(b){return this.each(function(){a.removeAttr(this,b)})},prop:function(c,b){return a.access(this,c,b,true,a.prop)},removeProp:function(c){c=a.propFix[c]||c;return this.each(function(){try{this[c]=b;delete this[c]}catch(a){}})},addClass:function(b){var d,g,i,c,f,e,h;if(a.isFunction(b))return this.each(function(c){a(this).addClass(b.call(this,c,this.className))});if(b&&typeof b==="string"){d=b.split(J);for(g=0,i=this.length;g<i;g++){c=this[g];if(c.nodeType===1)if(!c.className&&d.length===1)c.className=b;else{f=" "+c.className+" ";for(e=0,h=d.length;e<h;e++)if(!~f.indexOf(" "+d[e]+" "))f+=d[e]+" ";c.className=a.trim(f)}}}return this},removeClass:function(c){var h,g,j,d,e,f,i;if(a.isFunction(c))return this.each(function(b){a(this).removeClass(c.call(this,b,this.className))});if(c&&typeof c==="string"||c===b){h=(c||"").split(J);for(g=0,j=this.length;g<j;g++){d=this[g];if(d.nodeType===1&&d.className)if(c){e=(" "+d.className+" ").replace(mb," ");for(f=0,i=h.length;f<i;f++)e=e.replace(" "+h[f]+" "," ");d.className=a.trim(e)}else d.className=""}}return this},toggleClass:function(b,c){var d=typeof b,e=typeof c==="boolean";return a.isFunction(b)?this.each(function(d){a(this).toggleClass(b.call(this,d,this.className,c),c)}):this.each(function(){if(d==="string"){var f,j=0,h=a(this),g=c,i=b.split(J);while(f=i[j++]){g=e?g:!h.hasClass(f);h[g?"addClass":"removeClass"](f)}}else if(d==="undefined"||d==="boolean"){this.className&&a._data(this,"__className__",this.className);this.className=this.className||b===false?"":a._data(this,"__className__")||""}})},hasClass:function(c){for(var b=" "+c+" ",a=0,d=this.length;a<d;a++)if((" "+this[a].className+" ").replace(mb," ").indexOf(b)>-1)return true;return false},val:function(f){var c,d,e=this[0];if(!arguments.length){if(e){c=a.valHooks[e.nodeName.toLowerCase()]||a.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d==="string"?d.replace(fc,""):d==null?"":d}return b}var g=a.isFunction(f);return this.each(function(h){var e=a(this),d;if(this.nodeType!==1)return;if(g)d=f.call(this,h,e.val());else d=f;if(d==null)d="";else if(typeof d==="number")d+="";else if(a.isArray(d))d=a.map(d,function(a){return a==null?"":a+""});c=a.valHooks[this.nodeName.toLowerCase()]||a.valHooks[this.type];if(!c||!("set"in c)||c.set(this,d,"value")===b)this.value=d})}});a.extend({valHooks:{option:{"get":function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{"get":function(h){var g,d=h.selectedIndex,f=[],c=h.options,e=h.type==="select-one";if(d<0)return null;for(var i=e?d:0,j=e?d+1:c.length;i<j;i++){var b=c[i];if(b.selected&&(a.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!a.nodeName(b.parentNode,"optgroup"))){g=a(b).val();if(e)return g;f.push(g)}}return e&&!f.length&&c.length?a(c[d]).val():f},"set":function(c,d){var b=a.makeArray(d);a(c).find("option").each(function(){this.selected=a.inArray(a(this).val(),b)>=0});if(!b.length)c.selectedIndex=-1;return b}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(d,c,f,k){var h=d.nodeType;if(!d||h===3||h===8||h===2)return b;if(k&&c in a.attrFn)return a(d)[c](f);if(!("getAttribute"in d))return a.prop(d,c,f);var g,e,i=h!==1||!a.isXMLDoc(d);if(i){c=a.attrFix[c]||c;e=a.attrHooks[c];if(!e)if(eb.test(c))e=bb;else if(j&&c!=="className"&&(a.nodeName(d,"form")||Fb.test(c)))e=j}if(f!==b)if(f===null){a.removeAttr(d,c);return b}else if(e&&"set"in e&&i&&(g=e.set(d,f,c))!==b)return g;else{d.setAttribute(c,""+f);return f}else if(e&&"get"in e&&i&&(g=e.get(d,c))!==null)return g;else{g=d.getAttribute(c);return g===null?b:g}},removeAttr:function(c,b){var d;if(c.nodeType===1){b=a.attrFix[b]||b;if(a.support.getSetAttribute)c.removeAttribute(b);else{a.attr(c,b,"");c.removeAttributeNode(c.getAttributeNode(b))}if(eb.test(b)&&(d=a.propFix[b]||b)in c)c[d]=false}},attrHooks:{type:{"set":function(b,c){if(rc.test(b.nodeName)&&b.parentNode)a.error("type property can't be changed");else if(!a.support.radioValue&&c==="radio"&&a.nodeName(b,"input")){var d=b.value;b.setAttribute("type",c);if(d)b.value=d;return c}}},tabIndex:{"get":function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):Nb.test(a.nodeName)||Mb.test(a.nodeName)&&a.href?0:b}},value:{"get":function(b,c){return j&&a.nodeName(b,"button")?j.get(b,c):c in b?b.value:null},"set":function(b,c,d){if(j&&a.nodeName(b,"button"))return j.set(b,c,d);b.value=c}}},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(e,c,h){var f=e.nodeType;if(!e||f===3||f===8||f===2)return b;var g,d,i=f!==1||!a.isXMLDoc(e);if(i){c=a.propFix[c]||c;d=a.propHooks[c]}return h!==b?d&&"set"in d&&(g=d.set(e,h,c))!==b?g:e[c]=h:d&&"get"in d&&(g=d.get(e,c))!==b?g:e[c]},propHooks:{}});bb={"get":function(d,c){return a.prop(d,c)?c.toLowerCase():b},"set":function(c,e,b){var d;if(e===false)a.removeAttr(c,b);else{d=a.propFix[b]||b;if(d in c)c[d]=true;c.setAttribute(b,b.toLowerCase())}return b}};if(!a.support.getSetAttribute){a.attrFix=a.propFix;j=a.attrHooks.name=a.attrHooks.title=a.valHooks.button={"get":function(c,d){var a;a=c.getAttributeNode(d);return a&&a.nodeValue!==""?a.nodeValue:b},"set":function(c,a,d){var b=c.getAttributeNode(d);if(b){b.nodeValue=a;return a}}};a.each(["width","height"],function(c,b){a.attrHooks[b]=a.extend(a.attrHooks[b],{"set":function(c,a){if(a===""){c.setAttribute(b,"auto");return a}}})})}!a.support.hrefNormalized&&a.each(["href","src","width","height"],function(d,c){a.attrHooks[c]=a.extend(a.attrHooks[c],{"get":function(d){var a=d.getAttribute(c,2);return a===null?b:a}})});if(!a.support.style)a.attrHooks.style={"get":function(a){return a.style.cssText.toLowerCase()||b},"set":function(b,a){return b.style.cssText=""+a}};if(!a.support.optSelected)a.propHooks.selected=a.extend(a.propHooks.selected,{"get":function(b){var a=b.parentNode;if(a){a.selectedIndex;if(a.parentNode)a.parentNode.selectedIndex}}});!a.support.checkOn&&a.each(["radio","checkbox"],function(){a.valHooks[this]={"get":function(a){return a.getAttribute("value")===null?"on":a.value}}});a.each(["radio","checkbox"],function(){a.valHooks[this]=a.extend(a.valHooks[this],{"set":function(c,b){if(a.isArray(b))return c.checked=a.inArray(a(c).val(),b)>=0}})});var E=/\.(.*)$/,G=/^(?:textarea|input|select)$/i,dc=/\./g,hc=/ /g,cc=/[^\w\s.|`]/g,Ub=function(a){return a.replace(cc,"\\$&")};a.event={add:function(d,o,c,p){if(d.nodeType===3||d.nodeType===8)return;if(c===false)c=i;else if(!c)return;var k,f;if(c.handler){k=c;c=k.handler}if(!c.guid)c.guid=a.guid++;var j=a._data(d);if(!j)return;var m=j.events,g=j.handle;if(!m)j.events=m={};if(!g)j.handle=g=function(c){return typeof a!=="undefined"&&(!c||a.event.triggered!==c.type)?a.event.handle.apply(g.elem,arguments):b};g.elem=d;o=o.split(" ");var e,q=0,h;while(e=o[q++]){f=k?a.extend({},k):{handler:c,data:p};if(e.indexOf(".")>-1){h=e.split(".");e=h.shift();f.namespace=h.slice(0).sort().join(".")}else{h=[];f.namespace=""}f.type=e;if(!f.guid)f.guid=c.guid;var n=m[e],l=a.event.special[e]||{};if(!n){n=m[e]=[];if(!l.setup||l.setup.call(d,p,h,g)===false)if(d.addEventListener)d.addEventListener(e,g,false);else d.attachEvent&&d.attachEvent("on"+e,g)}if(l.add){l.add.call(d,f);if(!f.handler.guid)f.handler.guid=c.guid}n.push(f);a.event.global[e]=true}d=null},global:{},remove:function(g,c,l,p){if(g.nodeType===3||g.nodeType===8)return;if(l===false)l=i;var t,d,v,e,u=0,o,k,q,m,f,h,r,j=a.hasData(g)&&a._data(g),n=j&&j.events;if(!j||!n)return;if(c&&c.type){l=c.handler;c=c.type}if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(d in n)a.event.remove(g,d+c);return}c=c.split(" ");while(d=c[u++]){r=d;h=null;o=d.indexOf(".")<0;k=[];if(!o){k=d.split(".");d=k.shift();q=new RegExp("(^|\\.)"+a.map(k.slice(0).sort(),Ub).join("\\.(?:.*\\.)?")+"(\\.|$)")}f=n[d];if(!f)continue;if(!l){for(e=0;e<f.length;e++){h=f[e];if(o||q.test(h.namespace)){a.event.remove(g,r,h.handler,e);f.splice(e--,1)}}continue}m=a.event.special[d]||{};for(e=p||0;e<f.length;e++){h=f[e];if(l.guid===h.guid){if(o||q.test(h.namespace)){p==null&&f.splice(e--,1);m.remove&&m.remove.call(g,h)}if(p!=null)break}}if(f.length===0||p!=null&&f.length===1){(!m.teardown||m.teardown.call(g,k)===false)&&a.removeEvent(g,d,j.handle);t=null;delete n[d]}}if(a.isEmptyObject(n)){var s=j.handle;if(s)s.elem=null;delete j.events;delete j.handle;a.isEmptyObject(j)&&a.removeData(g,b,true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(c,i,f,o){var e=c.type||c,j=[],l;if(e.indexOf("!")>=0){e=e.slice(0,-1);l=true}if(e.indexOf(".")>=0){j=e.split(".");e=j.shift();j.sort()}if((!f||a.event.customEvent[e])&&!a.event.global[e])return;c=typeof c==="object"?c[a.expando]?c:new a.Event(e,c):new a.Event(e);c.type=e;c.exclusive=l;c.namespace=j.join(".");c.namespace_re=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)");if(o||!f){c.preventDefault();c.stopPropagation()}if(!f){a.each(a.cache,function(){var d=a.expando,b=this[d];b&&b.events&&b.events[e]&&a.event.trigger(c,i,b.handle.elem)});return}if(f.nodeType===3||f.nodeType===8)return;c.result=b;c.target=f;i=i!=null?a.makeArray(i):[];i.unshift(c);var g=f,h=e.indexOf(":")<0?"on"+e:"";do{var n=a._data(g,"handle");c.currentTarget=g;n&&n.apply(g,i);if(h&&a.acceptData(g)&&g[h]&&g[h].apply(g,i)===false){c.result=false;c.preventDefault()}g=g.parentNode||g.ownerDocument||g===c.target.ownerDocument&&d}while(g&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var k,m=a.event.special[e]||{};if((!m._default||m._default.call(f.ownerDocument,c)===false)&&!(e==="click"&&a.nodeName(f,"a"))&&a.acceptData(f)){try{if(h&&f[e]){k=f[h];if(k)f[h]=null;a.event.triggered=e;f[e]()}}catch(p){}if(k)f[h]=k;a.event.triggered=b}}return c.result},handle:function(c){c=a.event.fix(c||d.event);var h=((a._data(this,"events")||{})[c.type]||[]).slice(0),j=!c.exclusive&&!c.namespace,i=Array.prototype.slice.call(arguments,0);i[0]=c;c.currentTarget=this;for(var g=0,k=h.length;g<k;g++){var e=h[g];if(j||c.namespace_re.test(e.namespace)){c.handler=e.handler;c.data=e.data;c.handleObj=e;var f=e.handler.apply(this,i);if(f!==b){c.result=f;if(f===false){c.preventDefault();c.stopPropagation()}}if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(d){if(d[a.expando])return d;var i=d;d=a.Event(i);for(var j=this.props.length,g;j;){g=this.props[--j];d[g]=i[g]}if(!d.target)d.target=d.srcElement||c;if(d.target.nodeType===3)d.target=d.target.parentNode;if(!d.relatedTarget&&d.fromElement)d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement;if(d.pageX==null&&d.clientX!=null){var h=d.target.ownerDocument||c,f=h.documentElement,e=h.body;d.pageX=d.clientX+(f&&f.scrollLeft||e&&e.scrollLeft||0)-(f&&f.clientLeft||e&&e.clientLeft||0);d.pageY=d.clientY+(f&&f.scrollTop||e&&e.scrollTop||0)-(f&&f.clientTop||e&&e.clientTop||0)}if(d.which==null&&(d.charCode!=null||d.keyCode!=null))d.which=d.charCode!=null?d.charCode:d.keyCode;if(!d.metaKey&&d.ctrlKey)d.metaKey=d.ctrlKey;if(!d.which&&d.button!==b)d.which=d.button&1?1:d.button&2?3:d.button&4?2:0;return d},guid:1e8,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(b){a.event.add(this,r(b.origType,b.selector),a.extend({},b,{handler:Ib,guid:b.handler.guid}))},remove:function(b){a.event.remove(this,r(b.origType,b.selector),b)}},beforeunload:{setup:function(d,c,b){if(a.isWindow(this))this.onbeforeunload=b},teardown:function(b,a){if(this.onbeforeunload===a)this.onbeforeunload=null}}}};a.removeEvent=c.removeEventListener?function(a,c,b){a.removeEventListener&&a.removeEventListener(c,b,false)}:function(a,c,b){a.detachEvent&&a.detachEvent("on"+c,b)};a.Event=function(b,c){if(!this.preventDefault)return new a.Event(b,c);if(b&&b.type){this.originalEvent=b;this.type=b.type;this.isDefaultPrevented=b.defaultPrevented||b.returnValue===false||b.getPreventDefault&&b.getPreventDefault()?s:i}else this.type=b;c&&a.extend(this,c);this.timeStamp=a.now();this[a.expando]=true};function i(){return false}function s(){return true}a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=s;var a=this.originalEvent;if(!a)return;if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=s;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation();a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=s;this.stopPropagation()},isDefaultPrevented:i,isPropagationStopped:i,isImmediatePropagationStopped:i};var U=function(b){var c=b.relatedTarget,d=false,e=b.type;b.type=b.data;if(c!==this){if(c)d=a.contains(this,c);if(!d){a.event.handle.apply(this,arguments);b.type=e}}},db=function(b){b.type=b.data;a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,c){a.event.special[b]={setup:function(d){a.event.add(this,c,d&&d.selector?db:U,b)},teardown:function(b){a.event.remove(this,c,b&&b.selector?db:U)}}});if(!a.support.submitBubbles)a.event.special.submit={setup:function(){if(!a.nodeName(this,"form")){a.event.add(this,"click.specialSubmit",function(d){var b=d.target,c=b.type;(c==="submit"||c==="image")&&a(b).closest("form").length&&jb("submit",this,arguments)});a.event.add(this,"keypress.specialSubmit",function(d){var b=d.target,c=b.type;(c==="text"||c==="password")&&a(b).closest("form").length&&d.keyCode===13&&jb("submit",this,arguments)})}else return false},teardown:function(){a.event.remove(this,".specialSubmit")}};if(!a.support.changeBubbles){var p,kb=function(b){var d=b.type,c=b.value;if(d==="radio"||d==="checkbox")c=b.checked;else if(d==="select-multiple")c=b.selectedIndex>-1?a.map(b.options,function(a){return a.selected}).join("-"):"";else if(a.nodeName(b,"select"))c=b.selectedIndex;return c},t=function(d){var c=d.target,e,f;if(!G.test(c.nodeName)||c.readOnly)return;e=a._data(c,"_change_data");f=kb(c);(d.type!=="focusout"||c.type!=="radio")&&a._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f){d.type="change";d.liveFired=b;a.event.trigger(d,arguments[1],c)}};a.event.special.change={filters:{focusout:t,beforedeactivate:t,click:function(d){var b=d.target,c=a.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||a.nodeName(b,"select"))&&t.call(this,d)},keydown:function(b){var c=b.target,d=a.nodeName(c,"input")?c.type:"";(b.keyCode===13&&!a.nodeName(c,"textarea")||b.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")&&t.call(this,b)},beforeactivate:function(c){var b=c.target;a._data(b,"_change_data",kb(b))}},setup:function(){if(this.type==="file")return false;for(var b in p)a.event.add(this,b+".specialChange",p[b]);return G.test(this.nodeName)},teardown:function(){a.event.remove(this,".specialChange");return G.test(this.nodeName)}};p=a.event.special.change.filters;p.focus=p.beforeactivate}function jb(f,e,d){var c=a.extend({},d[0]);c.type=f;c.originalEvent={};c.liveFired=b;a.event.handle.call(e,c);c.isDefaultPrevented()&&d[0].preventDefault()}!a.support.focusinBubbles&&a.each({focus:"focusin",blur:"focusout"},function(e,f){var b=0;a.event.special[f]={setup:function(){b++===0&&c.addEventListener(e,d,true)},teardown:function(){--b===0&&c.removeEventListener(e,d,true)}};function d(c){var b=a.event.fix(c);b.type=f;b.originalEvent={};a.event.trigger(b,null,b.target);b.isDefaultPrevented()&&c.preventDefault()}});a.each(["bind","one"],function(d,c){a.fn[c]=function(e,d,f){var g;if(typeof e==="object"){for(var i in e)this[c](i,d,e[i],f);return this}if(arguments.length===2||d===false){f=d;d=b}if(c==="one"){g=function(b){a(this).unbind(b,g);return f.apply(this,arguments)};g.guid=f.guid||a.guid++}else g=f;if(e==="unload"&&c!=="one")this.one(e,d,f);else for(var h=0,j=this.length;h<j;h++)a.event.add(this[h],e,g,d);return this}});a.fn.extend({unbind:function(b,e){if(typeof b==="object"&&!b.preventDefault)for(var d in b)this.unbind(d,b[d]);else for(var c=0,f=this.length;c<f;c++)a.event.remove(this[c],b,e);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(c,b){return this.each(function(){a.event.trigger(c,b,this)})},triggerHandler:function(c,b){if(this[0])return a.event.trigger(c,b,this[0],true)},toggle:function(c){var b=arguments,f=c.guid||a.guid++,d=0,e=function(f){var e=(a.data(this,"lastToggle"+c.guid)||0)%d;a.data(this,"lastToggle"+c.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false};e.guid=f;while(d<b.length)b[d++].guid=f;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var I={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};a.each(["live","die"],function(d,c){a.fn[c]=function(e,g,l,h){var d,q=0,m,f,o,k=h||this.selector,j=h?this:a(this.context);if(typeof e==="object"&&!e.preventDefault){for(var p in e)j[c](p,g,e[p],k);return this}if(c==="die"&&!e&&h&&h.charAt(0)==="."){j.unbind(h);return this}if(g===false||a.isFunction(g)){l=g||i;g=b}e=(e||"").split(" ");while((d=e[q++])!=null){m=E.exec(d);f="";if(m){f=m[0];d=d.replace(E,"")}if(d==="hover"){e.push("mouseenter"+f,"mouseleave"+f);continue}o=d;if(I[d]){e.push(I[d]+f);d=d+f}else d=(I[d]||d)+f;if(c==="live")for(var n=0,s=j.length;n<s;n++)a.event.add(j[n],"live."+r(d,k),{data:g,selector:k,handler:l,origType:d,origHandler:l,preType:o});else j.unbind("live."+r(d,k),l)}return this}});function Ib(b){var r,m,g,d,c,i,e,f,k,s,h,l,p,o=[],q=[],n=a._data(this,"events");if(b.liveFired===this||!n||!n.live||b.target.disabled||b.button&&b.type==="click")return;if(b.namespace)l=new RegExp("(^|\\.)"+b.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");b.liveFired=this;var j=n.live.slice(0);for(e=0;e<j.length;e++){c=j[e];if(c.origType.replace(E,"")===b.type)q.push(c.selector);else j.splice(e--,1)}d=a(b.target).closest(q,b.currentTarget);for(f=0,k=d.length;f<k;f++){h=d[f];for(e=0;e<j.length;e++){c=j[e];if(h.selector===c.selector&&(!l||l.test(c.namespace))&&!h.elem.disabled){i=h.elem;g=null;if(c.preType==="mouseenter"||c.preType==="mouseleave"){b.type=c.preType;g=a(b.relatedTarget).closest(c.selector)[0];if(g&&a.contains(i,g))g=i}(!g||g!==i)&&o.push({elem:i,handleObj:c,level:h.level})}}}for(f=0,k=o.length;f<k;f++){d=o[f];if(m&&d.level>m)break;b.currentTarget=d.elem;b.data=d.handleObj.data;b.handleObj=d.handleObj;p=d.handleObj.origHandler.apply(d.elem,arguments);if(p===false||b.isPropagationStopped()){m=d.level;if(p===false)r=false;if(b.isImmediatePropagationStopped())break}}return r}function r(a,b){return(a&&a!=="*"?a+".":"")+b.replace(dc,"`").replace(hc,"&")}a.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(c,b){a.fn[b]=function(a,c){if(c==null){c=a;a=null}return arguments.length>0?this.bind(b,a,c):this.trigger(b)};if(a.attrFn)a.attrFn[b]=true});
/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var m=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n=0,s=Object.prototype.toString,i=false,o=true,g=/\\/g,k=/\W/;[0,0].sort(function(){o=false;return 0});var d=function(k,b,i,t){i=i||[];b=b||c;var y=b;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!k||typeof k!=="string")return i;var n,l,g,v,j,o,p,h,w=true,r=d.isXML(b),a=[],x=k;do{m.exec("");n=m.exec(x);if(n){x=n[3];a.push(n[1]);if(n[2]){v=n[3];break}}}while(n);if(a.length>1&&u.exec(k))if(a.length===2&&e.relative[a[0]])l=q(a[0]+a[1],b);else{l=e.relative[a[0]]?[b]:d(a.shift(),b);while(a.length){k=a.shift();if(e.relative[k])k+=a.shift();l=q(k,l)}}else{if(!t&&a.length>1&&b.nodeType===9&&!r&&e.match.ID.test(a[0])&&!e.match.ID.test(a[a.length-1])){j=d.find(a.shift(),b,r);b=j.expr?d.filter(j.expr,j.set)[0]:j.set[0]}if(b){j=t?{expr:a.pop(),"set":f(t)}:d.find(a.pop(),a.length===1&&(a[0]==="~"||a[0]==="+")&&b.parentNode?b.parentNode:b,r);l=j.expr?d.filter(j.expr,j.set):j.set;if(a.length>0)g=f(l);else w=false;while(a.length){o=a.pop();p=o;if(!e.relative[o])o="";else p=a.pop();if(p==null)p=b;e.relative[o](g,p,r)}}else g=a=[]}if(!g)g=l;!g&&d.error(o||k);if(s.call(g)==="[object Array]")if(!w)i.push.apply(i,g);else if(b&&b.nodeType===1)for(h=0;g[h]!=null;h++)g[h]&&(g[h]===true||g[h].nodeType===1&&d.contains(b,g[h]))&&i.push(l[h]);else for(h=0;g[h]!=null;h++)g[h]&&g[h].nodeType===1&&i.push(l[h]);else f(g,i);if(v){d(v,y,i,t);d.uniqueSort(i)}return i};d.uniqueSort=function(a){if(j){i=o;a.sort(j);if(i)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a};d.matches=function(a,b){return d(a,null,null,b)};d.matchesSelector=function(b,a){return d(a,null,null,[b]).length>0};d.find=function(b,d,j){var c;if(!b)return[];for(var h=0,k=e.order.length;h<k;h++){var a,f=e.order[h];if(a=e.leftMatch[f].exec(b)){var i=a[1];a.splice(1,1);if(i.substr(i.length-1)!=="\\"){a[1]=(a[1]||"").replace(g,"");c=e.find[f](a,d,j);if(c!=null){b=b.replace(e.match[f],"");break}}}}if(!c)c=typeof d.getElementsByTagName!=="undefined"?d.getElementsByTagName("*"):[];return{"set":c,expr:b}};d.filter=function(c,k,n,q){var a,g,r=c,h=[],f=k,s=k&&k[0]&&d.isXML(k[0]);while(c&&k.length){for(var j in e.filter)if((a=e.leftMatch[j].exec(c))!=null&&a[2]){var i,l,t=e.filter[j],o=a[1];g=false;a.splice(1,1);if(o.substr(o.length-1)==="\\")continue;if(f===h)h=[];if(e.preFilter[j]){a=e.preFilter[j](a,f,n,h,q,s);if(!a)g=i=true;else if(a===true)continue}if(a)for(var m=0;(l=f[m])!=null;m++)if(l){i=t(l,a,m,f);var p=q^!!i;if(n&&i!=null)if(p)g=true;else f[m]=false;else if(p){h.push(l);g=true}}if(i!==b){if(!n)f=h;c=c.replace(e.match[j],"");if(!g)return[];break}}if(c===r)if(g==null)d.error(c);else break;r=c}return f};d.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var e=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\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\u00c0-\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(c,b){var g=typeof b==="string",h=g&&!k.test(b),f=g&&!h;if(h)b=b.toLowerCase();for(var e=0,i=c.length,a;e<i;e++)if(a=c[e]){while((a=a.previousSibling)&&a.nodeType!==1);c[e]=f||a&&a.nodeName.toLowerCase()===b?a||false:a===b}f&&d.filter(b,c,true)},">":function(e,c){var b,f=typeof c==="string",a=0,h=e.length;if(f&&!k.test(c)){c=c.toLowerCase();for(;a<h;a++){b=e[a];if(b){var g=b.parentNode;e[a]=g.nodeName.toLowerCase()===c?g:false}}}else{for(;a<h;a++){b=e[a];if(b)e[a]=f?b.parentNode:b.parentNode===c}f&&d.filter(c,e,true)}},"":function(d,a,f){var b,e=n++,c=r;if(typeof a==="string"&&!k.test(a)){a=a.toLowerCase();b=a;c=p}c("parentNode",a,e,d,b,f)},"~":function(d,a,f){var b,e=n++,c=r;if(typeof a==="string"&&!k.test(a)){a=a.toLowerCase();b=a;c=p}c("previousSibling",a,e,d,b,f)}},find:{ID:function(d,b,c){if(typeof b.getElementById!=="undefined"&&!c){var a=b.getElementById(d[1]);return a&&a.parentNode?[a]:[]}},NAME:function(e,d){if(typeof d.getElementsByName!=="undefined"){for(var c=[],b=d.getElementsByName(e[1]),a=0,f=b.length;a<f;a++)b[a].getAttribute("name")===e[1]&&c.push(b[a]);return c.length===0?null:c}},TAG:function(b,a){if(typeof a.getElementsByTagName!=="undefined")return a.getElementsByTagName(b[1])}},preFilter:{CLASS:function(b,d,e,f,i,h){b=" "+b[1].replace(g,"")+" ";if(h)return b;for(var c=0,a;(a=d[c])!=null;c++)if(a)if(i^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(b)>=0))!e&&f.push(a);else if(e)d[c]=false;return false},ID:function(a){return a[1].replace(g,"")},TAG:function(a){return a[1].replace(g,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){!a[2]&&d.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 a[2]&&d.error(a[0]);a[0]=n++;return a},ATTR:function(a,d,f,h,i,c){var b=a[1]=a[1].replace(g,"");if(!c&&e.attrMap[b])a[1]=e.attrMap[b];a[4]=(a[4]||a[5]||"").replace(g,"");if(a[2]==="~=")a[4]=" "+a[4]+" ";return a},PSEUDO:function(a,b,c,f,g){if(a[1]==="not")if((m.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=d(a[3],null,null,b);else{var h=d.filter(a[3],b,c,true^g);!c&&f.push.apply(f,h);return false}else if(e.match.POS.test(a[0])||e.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){if(a.parentNode)a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(b,c,a){return!!d(a[3],b).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(b,a){return a===0},last:function(d,b,c,a){return b===a.length-1},even:function(b,a){return a%2===0},odd:function(b,a){return a%2===1},lt:function(c,b,a){return b<a[3]-0},gt:function(c,b,a){return b>a[3]-0},nth:function(c,b,a){return a[3]-0===b},eq:function(c,b,a){return a[3]-0===b}},filter:{PSEUDO:function(a,b,j,i){var c=b[1],g=e.filters[c];if(g)return g(a,j,b,i);else if(c==="contains")return(a.textContent||a.innerText||d.getText([a])||"").indexOf(b[3])>=0;else if(c==="not"){for(var h=b[3],f=0,k=h.length;f<k;f++)if(h[f]===a)return false;return true}else d.error(c)},CHILD:function(b,e){var i=e[1],a=b;switch(i){case"only":case"first":while(a=a.previousSibling)if(a.nodeType===1)return false;if(i==="first")return true;a=b;case"last":while(a=a.nextSibling)if(a.nodeType===1)return false;return true;case"nth":var d=e[2],h=e[3];if(d===1&&h===0)return true;var g=e[0],c=b.parentNode;if(c&&(c.sizcache!==g||!b.nodeIndex)){var j=0;for(a=c.firstChild;a;a=a.nextSibling)if(a.nodeType===1)a.nodeIndex=++j;c.sizcache=g}var f=b.nodeIndex-h;return d===0?f===0:f%d===0&&f/d>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(b,a){return a==="*"&&b.nodeType===1||b.nodeName.toLowerCase()===a},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(f,h){var d=h[1],g=e.attrHandle[d]?e.attrHandle[d](f):f[d]!=null?f[d]:f.getAttribute(d),b=g+"",c=h[2],a=h[4];return g==null?c==="!=":c==="="?b===a:c==="*="?b.indexOf(a)>=0:c==="~="?(" "+b+" ").indexOf(a)>=0:!a?b&&g!==false:c==="!="?b!==a:c==="^="?b.indexOf(a)===0:c==="$="?b.substr(b.length-a.length)===a:c==="|="?b===a||b.substr(0,a.length+1)===a+"-":false},POS:function(d,b,g,c){var f=b[2],a=e.setFilters[f];if(a)return a(d,g,b,c)}}},u=e.match.POS,t=function(b,a){return"\\"+(+a+1)};for(var l in e.match){e.match[l]=new RegExp(e.match[l].source+/(?![^\[]*\])(?![^\(]*\))/.source);e.leftMatch[l]=new RegExp(/(^(?:.|\r|\n)*?)/.source+e.match[l].source.replace(/\\(\d+)/g,t))}var f=function(b,a){b=Array.prototype.slice.call(b,0);if(a){a.push.apply(a,b);return a}return b};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(v){f=function(a,d){var b=0,c=d||[];if(s.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var e=a.length;b<e;b++)c.push(a[b]);else for(;a[b];b++)c.push(a[b]);return c}}var j,h;if(c.documentElement.compareDocumentPosition)j=function(a,b){if(a===b){i=true;return 0}return!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1};else{j=function(c,d){if(c===d){i=true;return 0}else if(c.sourceIndex&&d.sourceIndex)return c.sourceIndex-d.sourceIndex;var k,l,e=[],f=[],g=c.parentNode,j=d.parentNode,b=g;if(g===j)return h(c,d);else if(!g)return-1;else if(!j)return 1;while(b){e.unshift(b);b=b.parentNode}b=j;while(b){f.unshift(b);b=b.parentNode}k=e.length;l=f.length;for(var a=0;a<k&&a<l;a++)if(e[a]!==f[a])return h(e[a],f[a]);return a===k?h(c,f[a],-1):h(e[a],d,1)};h=function(b,c,d){if(b===c)return d;var a=b.nextSibling;while(a){if(a===c)return-1;a=a.nextSibling}return 1}}d.getText=function(e){for(var b="",a,c=0;e[c];c++){a=e[c];if(a.nodeType===3||a.nodeType===4)b+=a.nodeValue;else if(a.nodeType!==8)b+=d.getText(a.childNodes)}return b};(function(){var a=c.createElement("div"),f="script"+ +new Date,d=c.documentElement;a.innerHTML="<a name='"+f+"'/>";d.insertBefore(a,d.firstChild);if(c.getElementById(f)){e.find.ID=function(c,d,e){if(typeof d.getElementById!=="undefined"&&!e){var a=d.getElementById(c[1]);return a?a.id===c[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===c[1]?[a]:b:[]}};e.filter.ID=function(a,c){var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===c}}d.removeChild(a);d=a=null})();(function(){var a=c.createElement("div");a.appendChild(c.createComment(""));if(a.getElementsByTagName("*").length>0)e.find.TAG=function(c,e){var a=e.getElementsByTagName(c[1]);if(c[1]==="*"){for(var d=[],b=0;a[b];b++)a[b].nodeType===1&&d.push(a[b]);a=d}return a};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")e.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();c.querySelectorAll&&(function(){var b=d,a=c.createElement("div"),h="__sizzle__";a.innerHTML="<p class='TEST'></p>";if(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0)return;d=function(j,a,g,p){a=a||c;if(!p&&!d.isXML(a)){var i=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(j);if(i&&(a.nodeType===1||a.nodeType===9))if(i[1])return f(a.getElementsByTagName(j),g);else if(i[2]&&e.find.CLASS&&a.getElementsByClassName)return f(a.getElementsByClassName(i[2]),g);if(a.nodeType===9){if(j==="body"&&a.body)return f([a.body],g);else if(i&&i[3]){var k=a.getElementById(i[3]);if(k&&k.parentNode){if(k.id===i[3])return f([k],g)}else return f([],g)}try{return f(a.querySelectorAll(j),g)}catch(s){}}else if(a.nodeType===1&&a.nodeName.toLowerCase()!=="object"){var q=a,m=a.getAttribute("id"),l=m||h,o=a.parentNode,n=/^\s*[+~]/.test(j);if(!m)a.setAttribute("id",l);else l=l.replace(/'/g,"\\$&");if(n&&o)a=a.parentNode;try{if(!n||o)return f(a.querySelectorAll("[id='"+l+"'] "+j),g)}catch(r){}finally{!m&&q.removeAttribute("id")}}}return b(j,a,g,p)};for(var g in b)d[g]=b[g];a=null})();(function(){var b=c.documentElement,a=b.matchesSelector||b.mozMatchesSelector||b.webkitMatchesSelector||b.msMatchesSelector;if(a){var g=!a.call(c.createElement("div"),"div"),f=false;try{a.call(c.documentElement,"[test!='']:sizzle")}catch(h){f=true}d.matchesSelector=function(c,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!d.isXML(c))try{if(f||!e.match.PSEUDO.test(b)&&!/!=/.test(b)){var h=a.call(c,b);if(h||!g||c.document&&c.document.nodeType!==11)return h}}catch(i){}return d(b,null,null,[c]).length>0}}})();(function(){var a=c.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;e.order.splice(1,0,"CLASS");e.find.CLASS=function(c,a,b){if(typeof a.getElementsByClassName!=="undefined"&&!b)return a.getElementsByClassName(c[1])};a=null})();function p(f,h,e,c,j,g){for(var b=0,i=c.length;b<i;b++){var a=c[b];if(a){var d=false;a=a[f];while(a){if(a.sizcache===e){d=c[a.sizset];break}if(a.nodeType===1&&!g){a.sizcache=e;a.sizset=b}if(a.nodeName.toLowerCase()===h){d=a;break}a=a[f]}c[b]=d}}}function r(h,f,g,c,k,i){for(var b=0,j=c.length;b<j;b++){var a=c[b];if(a){var e=false;a=a[h];while(a){if(a.sizcache===g){e=c[a.sizset];break}if(a.nodeType===1){if(!i){a.sizcache=g;a.sizset=b}if(typeof f!=="string"){if(a===f){e=true;break}}else if(d.filter(f,[a]).length>0){e=a;break}}a=a[h]}c[b]=e}}}if(c.documentElement.contains)d.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):true)};else if(c.documentElement.compareDocumentPosition)d.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)};else d.contains=function(){return false};d.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":false};var q=function(a,b){var h,f=[],g="",i=b.nodeType?[b]:b;while(h=e.match.PSEUDO.exec(a)){g+=h[0];a=a.replace(e.match.PSEUDO,"")}a=e.relative[a]?a+"*":a;for(var c=0,j=i.length;c<j;c++)d(a,i[c],f);return d.filter(g,f)};a.find=d;a.expr=d.selectors;a.expr[":"]=a.expr.filters;a.unique=d.uniqueSort;a.text=d.getText;a.isXMLDoc=d.isXML;a.contains=d.contains})();var nc=/Until$/,Gb=/^(?:parents|prevUntil|prevAll)/,Bb=/,/,Vb=/^.[^:#\[\.,]*$/,sc=Array.prototype.slice,vb=a.expr.match.POS,xb={children:true,contents:true,next:true,prev:true};a.fn.extend({find:function(e){var i=this,b,f;if(typeof e!=="string")return a(e).filter(function(){for(b=0,f=i.length;b<f;b++)if(a.contains(i[b],this))return true});var c=this.pushStack("","find",e),h,d,g;for(b=0,f=this.length;b<f;b++){h=c.length;a.find(e,this[b],c);if(b>0)for(d=h;d<c.length;d++)for(g=0;g<h;g++)if(c[g]===c[d]){c.splice(d--,1);break}}return c},has:function(c){var b=a(c);return this.filter(function(){for(var c=0,d=b.length;c<d;c++)if(a.contains(this,b[c]))return true})},not:function(a){return this.pushStack(pb(this,a,false),"not",a)},filter:function(a){return this.pushStack(pb(this,a,true),"filter",a)},is:function(b){return!!b&&(typeof b==="string"?a.filter(b,this).length>0:this.filter(b).length>0)},closest:function(c,g){var e=[],f,j,b=this[0];if(a.isArray(c)){var i,d,h={},k=1;if(b&&c.length){for(f=0,j=c.length;f<j;f++){d=c[f];if(!h[d])h[d]=vb.test(d)?a(d,g||this.context):d}while(b&&b.ownerDocument&&b!==g){for(d in h){i=h[d];(i.jquery?i.index(b)>-1:a(b).is(i))&&e.push({selector:d,elem:b,level:k})}b=b.parentNode;k++}}return e}var l=vb.test(c)||typeof c!=="string"?a(c,g||this.context):0;for(f=0,j=this.length;f<j;f++){b=this[f];while(b)if(l?l.index(b)>-1:a.find.matchesSelector(b,c)){e.push(b);break}else{b=b.parentNode;if(!b||!b.ownerDocument||b===g||b.nodeType===11)break}}e=e.length>1?a.unique(e):e;return this.pushStack(e,"closest",c)},index:function(b){return!b||typeof b==="string"?a.inArray(this[0],b?a(b):this.parent().children()):a.inArray(b.jquery?b[0]:b,this)},add:function(b,e){var d=typeof b==="string"?a(b,e):a.makeArray(b&&b.nodeType?[b]:b),c=a.merge(this.get(),d);return this.pushStack(S(d[0])||S(c[0])?c:a.unique(c))},andSelf:function(){return this.add(this.prevObject)}});function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}a.each({parent:function(b){var a=b.parentNode;return a&&a.nodeType!==11?a:null},parents:function(b){return a.dir(b,"parentNode")},parentsUntil:function(c,d,b){return a.dir(c,"parentNode",b)},next:function(b){return a.nth(b,2,"nextSibling")},prev:function(b){return a.nth(b,2,"previousSibling")},nextAll:function(b){return a.dir(b,"nextSibling")},prevAll:function(b){return a.dir(b,"previousSibling")},nextUntil:function(c,d,b){return a.dir(c,"nextSibling",b)},prevUntil:function(c,d,b){return a.dir(c,"previousSibling",b)},siblings:function(b){return a.sibling(b.parentNode.firstChild,b)},children:function(b){return a.sibling(b.firstChild)},contents:function(b){return a.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:a.makeArray(b.childNodes)}},function(b,c){a.fn[b]=function(f,e){var d=a.map(this,c,f),g=sc.call(arguments);if(!nc.test(b))e=f;if(e&&typeof e==="string")d=a.filter(e,d);d=this.length>1&&!xb[b]?a.unique(d):d;if((this.length>1||Bb.test(e))&&Gb.test(b))d=d.reverse();return this.pushStack(d,b,g.join(","))}});a.extend({filter:function(c,b,d){if(d)c=":not("+c+")";return b.length===1?a.find.matchesSelector(b[0],c)?[b[0]]:[]:a.find.matches(c,b)},dir:function(g,f,e){var d=[],c=g[f];while(c&&c.nodeType!==9&&(e===b||c.nodeType!==1||!a(c).is(e))){c.nodeType===1&&d.push(c);c=c[f]}return d},nth:function(a,b,c){b=b||1;for(var d=0;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,c){for(var b=[];a;a=a.nextSibling)a.nodeType===1&&a!==c&&b.push(a);return b}});function pb(c,b,d){b=b||0;if(a.isFunction(b))return a.grep(c,function(a,e){var c=!!b.call(a,e,a);return c===d});else if(b.nodeType)return a.grep(c,function(a){return a===b===d});else if(typeof b==="string"){var e=a.grep(c,function(a){return a.nodeType===1});if(Vb.test(b))return a.filter(b,e,!d);else b=a.filter(b,e)}return a.grep(c,function(c){return a.inArray(c,b)>=0===d})}var Cb=/ jQuery\d+="(?:\d+|null)"/g,y=/^\s+/,ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,hb=/<([\w:]+)/,mc=/<tbody/i,qc=/<|&#?\w+;/,gb=/<(?:script|object|embed|option|style)/i,fb=/checked\s*(?:[^=]|=\s*.checked.)/i,Jb=/\/(java|ecma)script/i,Eb=/^\s*<!(?:\[CDATA\[|\-\-)/,e={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,"",""]};e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;if(!a.support.htmlSerialize)e._default=[1,"div<div>","</div>"];a.fn.extend({text:function(d){return a.isFunction(d)?this.each(function(c){var b=a(this);b.text(d.call(this,c,b.text()))}):typeof d!=="object"&&d!==b?this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(d)):a.text(this)},wrapAll:function(b){if(a.isFunction(b))return this.each(function(c){a(this).wrapAll(b.call(this,c))});if(this[0]){var c=a(b,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(b){return a.isFunction(b)?this.each(function(c){a(this).wrapInner(b.call(this,c))}):this.each(function(){var d=a(this),c=d.contents();if(c.length)c.wrapAll(b);else d.append(b)})},wrap:function(b){return this.each(function(){a(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){!a.nodeName(this,"body")&&a(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});else if(arguments.length){var b=a(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,a(arguments[0]).toArray());return b}},remove:function(c,e){for(var d=0,b;(b=this[d])!=null;d++)if(!c||a.filter(c,[b]).length){if(!e&&b.nodeType===1){a.cleanData(b.getElementsByTagName("*"));a.cleanData([b])}b.parentNode&&b.parentNode.removeChild(b)}return this},empty:function(){for(var c=0,b;(b=this[c])!=null;c++){b.nodeType===1&&a.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(b,c){b=b==null?false:b;c=c==null?b:c;return this.map(function(){return a.clone(this,b,c)})},html:function(c){if(c===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Cb,""):null;else if(typeof c==="string"&&!gb.test(c)&&(a.support.leadingWhitespace||!y.test(c))&&!e[(hb.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(ab,"<$1></$2>");try{for(var d=0,f=this.length;d<f;d++)if(this[d].nodeType===1){a.cleanData(this[d].getElementsByTagName("*"));this[d].innerHTML=c}}catch(g){this.empty().append(c)}}else if(a.isFunction(c))this.each(function(d){var b=a(this);b.html(c.call(this,d,b.html()))});else this.empty().append(c);return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(a.isFunction(b))return this.each(function(e){var c=a(this),d=c.html();c.replaceWith(b.call(this,e,d))});if(typeof b!=="string")b=a(b).detach();return this.each(function(){var c=this.nextSibling,d=this.parentNode;a(this).remove();if(c)a(c).before(b);else a(d).append(b)})}else return this.length?this.pushStack(a(a.isFunction(b)?b():b),"replaceWith",b):this},detach:function(a){return this.remove(a,true)},domManip:function(h,d,k){var j,g,c,f,e=h[0],l=[];if(!a.support.checkClone&&arguments.length===3&&typeof e==="string"&&fb.test(e))return this.each(function(){a(this).domManip(h,d,k,true)});if(a.isFunction(e))return this.each(function(f){var c=a(this);h[0]=e.call(this,f,d?c.html():b);c.domManip(h,d,k)});if(this[0]){f=e&&e.parentNode;if(a.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length)j={fragment:f};else j=a.buildFragment(h,this,l);c=j.fragment;if(c.childNodes.length===1)g=c=c.firstChild;else g=c.firstChild;if(g){d=d&&a.nodeName(g,"tr");for(var i=0,m=this.length,n=m-1;i<m;i++)k.call(d?vc(this[i],g):this[i],j.cacheable||m>1&&i<n?a.clone(c,true,true):c)}l.length&&a.each(l,Lb)}return this}});function vc(b){return a.nodeName(b,"table")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}function Q(i,g){if(g.nodeType!==1||!a.hasData(i))return;var h=a.expando,e=a.data(i),f=a.data(g,e);if(e=e[h]){var b=e.events;f=f[h]=a.extend({},e);if(b){delete f.handle;f.events={};for(var c in b)for(var d=0,j=b[c].length;d<j;d++)a.event.add(g,c+(b[c][d].namespace?".":"")+b[c][d].namespace,b[c][d],b[c][d].data)}}}function M(c,b){var d;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(c);d=b.nodeName.toLowerCase();if(d==="object")b.outerHTML=c.outerHTML;else if(d==="input"&&(c.type==="checkbox"||c.type==="radio")){if(c.checked)b.defaultChecked=b.checked=c.checked;if(b.value!==c.value)b.value=c.value}else if(d==="option")b.selected=c.defaultSelected;else if(d==="input"||d==="textarea")b.defaultValue=c.defaultValue;b.removeAttribute(a.expando)}a.buildFragment=function(b,g,i){var d,h,f,e;if(g&&g[0])e=g[0].ownerDocument||g[0];if(!e.createDocumentFragment)e=c;if(b.length===1&&typeof b[0]==="string"&&b[0].length<512&&e===c&&b[0].charAt(0)==="<"&&!gb.test(b[0])&&(a.support.checkClone||!fb.test(b[0]))){h=true;f=a.fragments[b[0]];if(f&&f!==1)d=f}if(!d){d=e.createDocumentFragment();a.clean(b,e,d,i)}if(h)a.fragments[b[0]]=f?d:1;return{fragment:d,cacheable:h}};a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,b){a.fn[c]=function(i){var g=[],d=a(i),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{for(var e=0,j=d.length;e<j;e++){var h=(e>0?this.clone(true):this).get();a(d[e])[b](h);g=g.concat(h)}return this.pushStack(g,c,d.selector)}}});function u(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function O(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function Y(b){if(a.nodeName(b,"input"))O(b);else"getElementsByTagName"in b&&a.grep(b.getElementsByTagName("input"),O)}a.extend({clone:function(c,h,g){var f=c.cloneNode(true),d,e,b;if((!a.support.noCloneEvent||!a.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!a.isXMLDoc(c)){M(c,f);d=u(c);e=u(f);for(b=0;d[b];++b)M(d[b],e[b])}if(h){Q(c,f);if(g){d=u(c);e=u(f);for(b=0;d[b];++b)Q(d[b],e[b])}}d=e=null;return f},clean:function(t,h,m,o){var l;h=h||c;if(typeof h.createElement==="undefined")h=h.ownerDocument||h[0]&&h[0].ownerDocument||c;for(var d=[],g,f=0,b;(b=t[f])!=null;f++){if(typeof b==="number")b+="";if(!b)continue;if(typeof b==="string")if(!qc.test(b))b=h.createTextNode(b);else{b=b.replace(ab,"<$1></$2>");var q=(hb.exec(b)||["",""])[1].toLowerCase(),k=e[q]||e._default,s=k[0],i=h.createElement("div");i.innerHTML=k[1]+b+k[2];while(s--)i=i.lastChild;if(!a.support.tbody){var n=mc.test(b),j=q==="table"&&!n?i.firstChild&&i.firstChild.childNodes:k[1]==="<table>"&&!n?i.childNodes:[];for(g=j.length-1;g>=0;--g)a.nodeName(j[g],"tbody")&&!j[g].childNodes.length&&j[g].parentNode.removeChild(j[g])}!a.support.leadingWhitespace&&y.test(b)&&i.insertBefore(h.createTextNode(y.exec(b)[0]),i.firstChild);b=i.childNodes}var p;if(!a.support.appendChecked)if(b[0]&&typeof(p=b.length)==="number")for(g=0;g<p;g++)Y(b[g]);else Y(b);if(b.nodeType)d.push(b);else d=a.merge(d,b)}if(m){l=function(a){return!a.type||Jb.test(a.type)};for(f=0;d[f];f++)if(o&&a.nodeName(d[f],"script")&&(!d[f].type||d[f].type.toLowerCase()==="text/javascript"))o.push(d[f].parentNode?d[f].parentNode.removeChild(d[f]):d[f]);else{if(d[f].nodeType===1){var r=a.grep(d[f].getElementsByTagName("script"),l);d.splice.apply(d,[f+1,0].concat(r))}m.appendChild(d[f])}}return d},cleanData:function(k){for(var c,d,e=a.cache,i=a.expando,j=a.event.special,h=a.support.deleteExpando,g=0,b;(b=k[g])!=null;g++){if(b.nodeName&&a.noData[b.nodeName.toLowerCase()])continue;d=b[a.expando];if(d){c=e[d]&&e[d][i];if(c&&c.events){for(var f in c.events)if(j[f])a.event.remove(b,f);else a.removeEvent(b,f,c.handle);if(c.handle)c.handle.elem=null}if(h)delete b[a.expando];else b.removeAttribute&&b.removeAttribute(a.expando);delete e[d]}}}});function Lb(c,b){if(b.src)a.ajax({url:b.src,async:false,dataType:"script"});else a.globalEval((b.text||b.textContent||b.innerHTML||"").replace(Eb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}var lb=/alpha\([^)]*\)/i,ac=/opacity=([^)]*)/,oc=/([A-Z]|^ms)/g,nb=/^-?\d+(?:px)?$/i,uc=/^-?\d/,ec=/^[+\-]=/,Db=/[^+\-\.\de]+/g,bc={position:"absolute",visibility:"hidden",display:"block"},Tb=["Left","Right"],Qb=["Top","Bottom"],n,P,V;a.fn.css=function(d,c){return arguments.length===2&&c===b?this:a.access(this,d,c,true,function(d,e,c){return c!==b?a.style(d,e,c):a.css(d,e)})};a.extend({cssHooks:{opacity:{"get":function(a,c){if(c){var b=n(a,"opacity","opacity");return b===""?"1":b}else return a.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":a.support.cssFloat?"cssFloat":"styleFloat"},style:function(d,f,c,k){if(!d||d.nodeType===3||d.nodeType===8||!d.style)return;var j,g,h=a.camelCase(f),i=d.style,e=a.cssHooks[h];f=a.cssProps[h]||h;if(c!==b){g=typeof c;if(g==="number"&&isNaN(c)||c==null)return;if(g==="string"&&ec.test(c)){c=+c.replace(Db,"")+parseFloat(a.css(d,f));g="number"}if(g==="number"&&!a.cssNumber[h])c+="px";if(!e||!("set"in e)||(c=e.set(d,c))!==b)try{i[f]=c}catch(l){}}else return e&&"get"in e&&(j=e.get(d,false,k))!==b?j:i[f]},css:function(e,c,g){var f,d;c=a.camelCase(c);d=a.cssHooks[c];c=a.cssProps[c]||c;if(c==="cssFloat")c="float";return d&&"get"in d&&(f=d.get(e,true,g))!==b?f:n?n(e,c):void 0},swap:function(b,c,e){var d={};for(var a in c){d[a]=b.style[a];b.style[a]=c[a]}e.call(b);for(a in c)b.style[a]=d[a]}});a.curCSS=a.css;a.each(["height","width"],function(c,b){a.cssHooks[b]={"get":function(c,f,d){var e;if(f){if(c.offsetWidth!==0)return qb(c,b,d);else a.swap(c,bc,function(){e=qb(c,b,d)});return e}},"set":function(b,a){if(nb.test(a)){a=parseFloat(a);if(a>=0)return a+"px"}else return a}}});if(!a.support.opacity)a.cssHooks.opacity={"get":function(a,b){return ac.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},"set":function(g,f){var c=g.style,d=g.currentStyle;c.zoom=1;var e=a.isNaN(f)?"":"alpha(opacity="+f*100+")",b=d&&d.filter||c.filter||"";c.filter=lb.test(b)?b.replace(lb,e):b+" "+e}};a(function(){if(!a.support.reliableMarginRight)a.cssHooks.marginRight={"get":function(b,d){var c;a.swap(b,{display:"inline-block"},function(){if(d)c=n(b,"margin-right","marginRight");else c=b.style.marginRight});return c}}});if(c.defaultView&&c.defaultView.getComputedStyle)P=function(c,d){var e,g,f;d=d.replace(oc,"-$1").toLowerCase();if(!(g=c.ownerDocument.defaultView))return b;if(f=g.getComputedStyle(c,null)){e=f.getPropertyValue(d);if(e===""&&!a.contains(c.ownerDocument.documentElement,c))e=a.style(c,d)}return e};if(c.documentElement.currentStyle)V=function(a,e){var f,b=a.currentStyle&&a.currentStyle[e],d=a.runtimeStyle&&a.runtimeStyle[e],c=a.style;if(!nb.test(b)&&uc.test(b)){f=c.left;if(d)a.runtimeStyle.left=a.currentStyle.left;c.left=e==="fontSize"?"1em":b||0;b=c.pixelLeft+"px";c.left=f;if(d)a.runtimeStyle.left=d}return b===""?"auto":b};n=P||V;function qb(c,e,d){var b=e==="width"?c.offsetWidth:c.offsetHeight,f=e==="width"?Tb:Qb;if(b>0){d!=="border"&&a.each(f,function(){if(!d)b-=parseFloat(a.css(c,"padding"+this))||0;if(d==="margin")b+=parseFloat(a.css(c,d+this))||0;else b-=parseFloat(a.css(c,"border"+this+"Width"))||0});return b+"px"}b=n(c,e,e);if(b<0||b==null)b=c.style[e]||0;b=parseFloat(b)||0;d&&a.each(f,function(){b+=parseFloat(a.css(c,"padding"+this))||0;if(d!=="padding")b+=parseFloat(a.css(c,"border"+this+"Width"))||0;if(d==="margin")b+=parseFloat(a.css(c,d+this))||0});return b+"px"}if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(b){var d=b.offsetWidth,c=b.offsetHeight;return d===0&&c===0||!a.support.reliableHiddenOffsets&&(b.style.display||a.css(b,"display"))==="none"};a.expr.filters.visible=function(b){return!a.expr.filters.hidden(b)}}var xc=/%20/g,Xb=/\[\]$/,rb=/\r?\n/g,pc=/#.*$/,Zb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,kc=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ab=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,Pb=/^(?:GET|HEAD)$/,Sb=/^\/\//,ob=/\?/,gc=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,zb=/^(?:select|textarea)/i,X=/\s+/,yc=/([?&])_=[^&]*/,ub=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,tb=a.fn.load,F={},Z={},g,h;try{g=Wb.href}catch(zc){g=c.createElement("a");g.href="";g=g.href}h=ub.exec(g.toLowerCase())||[];function K(b){return function(d,f){if(typeof d!=="string"){f=d;d="*"}if(a.isFunction(f))for(var h=d.toLowerCase().split(X),g=0,j=h.length,c,i,e;g<j;g++){c=h[g];e=/^\+/.test(c);if(e)c=c.substr(1)||"*";i=b[c]=b[c]||[];i[e?"unshift":"push"](f)}}}function q(e,d,g,i,f,c){f=f||d.dataTypes[0];c=c||{};c[f]=true;for(var j=e[f],k=0,l=j?j.length:0,h=e===F,a;k<l&&(h||!a);k++){a=j[k](d,g,i);if(typeof a==="string")if(!h||c[a])a=b;else{d.dataTypes.unshift(a);a=q(e,d,g,i,a,c)}}if((h||!a)&&!c["*"])a=q(e,d,g,i,"*",c);return a}a.fn.extend({load:function(d,c,e){if(typeof d!=="string"&&tb)return tb.apply(this,arguments);else if(!this.length)return this;var f=d.indexOf(" ");if(f>=0){var g=d.slice(f,d.length);d=d.slice(0,f)}var i="GET";if(c)if(a.isFunction(c)){e=c;c=b}else if(typeof c==="object"){c=a.param(c,a.ajaxSettings.traditional);i="POST"}var h=this;a.ajax({url:d,type:i,dataType:"html",data:c,complete:function(c,d,b){b=c.responseText;if(c.isResolved()){c.done(function(a){b=a});h.html(g?a("<div>").append(b.replace(gc,"")).find(g):b)}e&&h.each(e,[b,d,c])}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||zb.test(this.nodeName)||kc.test(this.type))}).map(function(d,c){var b=a(this).val();return b==null?null:a.isArray(b)?a.map(b,function(a){return{name:c.name,value:a.replace(rb,"\r\n")}}):{name:c.name,value:b.replace(rb,"\r\n")}}).get()}});a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,b){a.fn[b]=function(a){return this.bind(b,a)}});a.each(["get","post"],function(d,c){a[c]=function(g,d,e,f){if(a.isFunction(d)){f=f||e;e=d;d=b}return a.ajax({type:c,url:g,data:d,success:e,dataType:f})}});a.extend({getScript:function(d,c){return a.get(d,b,c,"script")},getJSON:function(d,c,b){return a.get(d,c,b,"json")},ajaxSetup:function(c,b){if(!b){b=c;c=a.extend(true,a.ajaxSettings,b)}else a.extend(true,c,a.ajaxSettings,b);for(var d in{context:1,url:1})if(d in b)c[d]=b[d];else if(d in a.ajaxSettings)c[d]=a.ajaxSettings[d];return c},ajaxSettings:{url:g,isLocal:Ab.test(h[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":d.String,"text html":true,"text json":a.parseJSON,"text xml":a.parseXML}},ajaxPrefilter:K(F),ajaxTransport:K(Z),ajax:function(r,i){if(typeof r==="object"){i=r;r=b}i=i||{};var c=a.ajaxSetup({},i),g=c.context||c,t=g!==c&&(g.nodeType||g instanceof a)?a(g):a.event,v=a.Deferred(),x=a._Deferred(),o=c.statusCode||{},f,y={},w={},s,n,j,u,k,e=0,m,l,d={readyState:0,setRequestHeader:function(a,c){if(!e){var b=a.toLowerCase();a=w[b]=w[b]||a;y[a]=c}return this},getAllResponseHeaders:function(){return e===2?s:null},getResponseHeader:function(c){var a;if(e===2){if(!n){n={};while(a=Zb.exec(s))n[a[1].toLowerCase()]=a[2]}a=n[c.toLowerCase()]}return a===b?null:a},overrideMimeType:function(a){if(!e)c.mimeType=a;return this},abort:function(a){a=a||"abort";j&&j.abort(a);p(0,a);return this}};function p(i,h,q,y){if(e===2)return;e=2;u&&clearTimeout(u);j=b;s=y||"";d.readyState=i?4:0;var k,n,l,w=q?wb(c,d,q):b,p,r;if(i>=200&&i<300||i===304){if(c.ifModified){if(p=d.getResponseHeader("Last-Modified"))a.lastModified[f]=p;if(r=d.getResponseHeader("Etag"))a.etag[f]=r}if(i===304){h="notmodified";k=true}else try{n=Hb(c,w);h="success";k=true}catch(z){h="parsererror";l=z}}else{l=h;if(!h||i){h="error";if(i<0)i=0}}d.status=i;d.statusText=h;if(k)v.resolveWith(g,[n,h,d]);else v.rejectWith(g,[d,h,l]);d.statusCode(o);o=b;m&&t.trigger("ajax"+(k?"Success":"Error"),[d,c,k?n:l]);x.resolveWith(g,[d,h]);if(m){t.trigger("ajaxComplete",[d,c]);!--a.active&&a.event.trigger("ajaxStop")}}v.promise(d);d.success=d.done;d.error=d.fail;d.complete=x.done;d.statusCode=function(b){if(b){var a;if(e<2)for(a in b)o[a]=[o[a],b[a]];else{a=b[d.status];d.then(a,a)}}return this};c.url=((r||c.url)+"").replace(pc,"").replace(Sb,h[1]+"//");c.dataTypes=a.trim(c.dataType||"*").toLowerCase().split(X);if(c.crossDomain==null){k=ub.exec(c.url.toLowerCase());c.crossDomain=!!(k&&(k[1]!=h[1]||k[2]!=h[2]||(k[3]||(k[1]==="http:"?80:443))!=(h[3]||(h[1]==="http:"?80:443))))}if(c.data&&c.processData&&typeof c.data!=="string")c.data=a.param(c.data,c.traditional);q(F,c,i,d);if(e===2)return false;m=c.global;c.type=c.type.toUpperCase();c.hasContent=!Pb.test(c.type);m&&a.active++===0&&a.event.trigger("ajaxStart");if(!c.hasContent){if(c.data)c.url+=(ob.test(c.url)?"&":"?")+c.data;f=c.url;if(c.cache===false){var A=a.now(),z=c.url.replace(yc,"$1_="+A);c.url=z+(z===c.url?(ob.test(c.url)?"&":"?")+"_="+A:"")}}(c.data&&c.hasContent&&c.contentType!==false||i.contentType)&&d.setRequestHeader("Content-Type",c.contentType);if(c.ifModified){f=f||c.url;a.lastModified[f]&&d.setRequestHeader("If-Modified-Since",a.lastModified[f]);a.etag[f]&&d.setRequestHeader("If-None-Match",a.etag[f])}d.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", */*; q=0.01":""):c.accepts["*"]);for(l in c.headers)d.setRequestHeader(l,c.headers[l]);if(c.beforeSend&&(c.beforeSend.call(g,d,c)===false||e===2)){d.abort();return false}for(l in{success:1,error:1,complete:1})d[l](c[l]);j=q(Z,c,i,d);if(!j)p(-1,"No Transport");else{d.readyState=1;m&&t.trigger("ajaxSend",[d,c]);if(c.async&&c.timeout>0)u=setTimeout(function(){d.abort("timeout")},c.timeout);try{e=1;j.send(y,p)}catch(B){if(status<2)p(-1,B);else a.error(B)}}return d},param:function(c,d){var e=[],g=function(c,b){b=a.isFunction(b)?b():b;e[e.length]=encodeURIComponent(c)+"="+encodeURIComponent(b)};if(d===b)d=a.ajaxSettings.traditional;if(a.isArray(c)||c.jquery&&!a.isPlainObject(c))a.each(c,function(){g(this.name,this.value)});else for(var f in c)C(f,c[f],d,g);return e.join("&").replace(xc,"+")}});function C(c,b,d,e){if(a.isArray(b))a.each(b,function(f,b){if(d||Xb.test(c))e(c,b);else C(c+"["+(typeof b==="object"||a.isArray(b)?f:"")+"]",b,d,e)});else if(!d&&b!=null&&typeof b==="object")for(var f in b)C(c+"["+f+"]",b[f],d,e);else e(c,b)}a.extend({active:0,lastModified:{},etag:{}});function wb(f,k,e){var i=f.contents,c=f.dataTypes,j=f.responseFields,g,a,d,h;for(a in j)if(a in e)k[j[a]]=e[a];while(c[0]==="*"){c.shift();if(g===b)g=f.mimeType||k.getResponseHeader("content-type")}if(g)for(a in i)if(i[a]&&i[a].test(g)){c.unshift(a);break}if(c[0]in e)d=c[0];else{for(a in e){if(!c[0]||f.converters[a+" "+c[0]]){d=a;break}if(!h)h=a}d=d||h}if(d){d!==c[0]&&c.unshift(d);return e[d]}}function Hb(j,h){if(j.dataFilter)h=j.dataFilter(h,j.dataType);for(var o=j.dataTypes,g={},k,p=o.length,l,c=o[0],i,n,d,e,f,m=1;m<p;m++){if(m===1)for(k in j.converters)if(typeof k==="string")g[k.toLowerCase()]=j.converters[k];i=c;c=o[m];if(c==="*")c=i;else if(i!=="*"&&i!==c){n=i+" "+c;d=g[n]||g["* "+c];if(!d){f=b;for(e in g){l=e.split(" ");if(l[0]===i||l[0]==="*"){f=g[l[1]+" "+c];if(f){e=g[e];if(e===true)d=f;else if(f===true)d=e;break}}}}!(d||f)&&a.error("No conversion from "+n.replace(" "," to "));if(d!==true)h=d?d(h):f(e(h))}}return h}var wc=a.now(),w=/(\=)\?(&|$)|\?\?/i;a.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return a.expando+"_"+wc++}});a.ajaxPrefilter("json jsonp",function(b,l,k){var h=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==false&&(w.test(b.url)||h&&w.test(b.data))){var f,c=b.jsonpCallback=a.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=d[c],e=b.url,g=b.data,j="$1"+c+"$2";if(b.jsonp!==false){e=e.replace(w,j);if(b.url===e){if(h)g=g.replace(w,j);if(b.data===g)e+=(/\?/.test(e)?"&":"?")+b.jsonp+"="+c}}b.url=e;b.data=g;d[c]=function(a){f=[a]};k.always(function(){d[c]=i;f&&a.isFunction(i)&&d[c](f[0])});b.converters["script json"]=function(){!f&&a.error(c+" was not called");return f[0]};b.dataTypes[0]="json";return"script"}});a.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(b){a.globalEval(b);return b}}});a.ajaxPrefilter("script",function(a){if(a.cache===b)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});a.ajaxTransport("script",function(e){if(e.crossDomain){var a,d=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(g,f){a=c.createElement("script");a.async="async";if(e.scriptCharset)a.charset=e.scriptCharset;a.src=e.url;a.onload=a.onreadystatechange=function(e,c){if(c||!a.readyState||/loaded|complete/.test(a.readyState)){a.onload=a.onreadystatechange=null;d&&a.parentNode&&d.removeChild(a);a=b;!c&&f(200,"success")}};d.insertBefore(a,d.firstChild)},abort:function(){if(a)a.onload(0,1)}}}});var A=d.ActiveXObject?function(){for(var a in k)k[a](0,1)}:false,tc=0,k;function N(){try{return new d.XMLHttpRequest}catch(a){}}function yb(){try{return new d.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}a.ajaxSettings.xhr=d.ActiveXObject?function(){return!this.isLocal&&N()||yb()}:N;(function(b){a.extend(a.support,{ajax:!!b,cors:!!b&&"withCredentials"in b})})(a.ajaxSettings.xhr());a.support.ajax&&a.ajaxTransport(function(c){if(!c.crossDomain||a.support.cors){var e;return{send:function(h,j){var f=c.xhr(),i,g;if(c.username)f.open(c.type,c.url,c.async,c.username,c.password);else f.open(c.type,c.url,c.async);if(c.xhrFields)for(g in c.xhrFields)f[g]=c.xhrFields[g];c.mimeType&&f.overrideMimeType&&f.overrideMimeType(c.mimeType);if(!c.crossDomain&&!h["X-Requested-With"])h["X-Requested-With"]="XMLHttpRequest";try{for(g in h)f.setRequestHeader(g,h[g])}catch(l){}f.send(c.hasContent&&c.data||null);e=function(q,m){var g,l,n,d,h;try{if(e&&(m||f.readyState===4)){e=b;if(i){f.onreadystatechange=a.noop;if(A)delete k[i]}if(m)f.readyState!==4&&f.abort();else{g=f.status;n=f.getAllResponseHeaders();d={};h=f.responseXML;if(h&&h.documentElement)d.xml=h;d.text=f.responseText;try{l=f.statusText}catch(p){l=""}if(!g&&c.isLocal&&!c.crossDomain)g=d.text?200:404;else if(g===1223)g=204}}}catch(o){!m&&j(-1,o)}d&&j(g,l,d,n)};if(!c.async||f.readyState===4)e();else{i=++tc;if(A){if(!k){k={};a(d).unload(A)}k[i]=e}f.onreadystatechange=e}},abort:function(){e&&e(0,1)}}}});var D={},f,l,Yb=/^(?:toggle|show|hide)$/,jc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,m,ib=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],v,x=d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame;a.fn.extend({show:function(e,h,g){var b,c;if(e||e===0)return this.animate(o("show",3),e,h,g);else{for(var d=0,f=this.length;d<f;d++){b=this[d];if(b.style){c=b.style.display;if(!a._data(b,"olddisplay")&&c==="none")c=b.style.display="";c===""&&a.css(b,"display")==="none"&&a._data(b,"olddisplay",R(b.nodeName))}}for(d=0;d<f;d++){b=this[d];if(b.style){c=b.style.display;if(c===""||c==="none")b.style.display=a._data(b,"olddisplay")||""}}return this}},hide:function(c,g,f){if(c||c===0)return this.animate(o("hide",3),c,g,f);else{for(var b=0,e=this.length;b<e;b++)if(this[b].style){var d=a.css(this[b],"display");d!=="none"&&!a._data(this[b],"olddisplay")&&a._data(this[b],"olddisplay",d)}for(b=0;b<e;b++)if(this[b].style)this[b].style.display="none";return this}},_toggle:a.fn.toggle,toggle:function(b,d,e){var c=typeof b==="boolean";if(a.isFunction(b)&&a.isFunction(d))this._toggle.apply(this,arguments);else if(b==null||c)this.each(function(){var d=c?b:a(this).is(":hidden");a(this)[d?"show":"hide"]()});else this.animate(o("toggle",3),b,d,e);return this},fadeTo:function(c,d,b,a){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:d},c,b,a)},animate:function(b,f,e,d){var c=a.speed(f,e,d);if(a.isEmptyObject(b))return this.each(c.complete,[false]);b=a.extend({},b);return this[c.queue===false?"each":"queue"](function(){c.queue===false&&a._mark(this);var g=a.extend({},c),n=this.nodeType===1,m=n&&a(this).is(":hidden"),f,d,e,o,k,i,h,j,l;g.animatedProperties={};for(e in b){f=a.camelCase(e);if(e!==f){b[f]=b[e];delete b[e]}d=b[f];if(a.isArray(d)){g.animatedProperties[f]=d[1];d=b[f]=d[0]}else g.animatedProperties[f]=g.specialEasing&&g.specialEasing[f]||g.easing||"swing";if(d==="hide"&&m||d==="show"&&!m)return g.complete.call(this);if(n&&(f==="height"||f==="width")){g.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(a.css(this,"display")==="inline"&&a.css(this,"float")==="none")if(!a.support.inlineBlockNeedsLayout)this.style.display="inline-block";else{o=R(this.nodeName);if(o==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}}}}if(g.overflow!=null)this.style.overflow="hidden";for(e in b){k=new a.fx(this,g,e);d=b[e];if(Yb.test(d))k[d==="toggle"?m?"show":"hide":d]();else{i=jc.exec(d);h=k.cur();if(i){j=parseFloat(i[2]);l=i[3]||(a.cssNumber[e]?"":"px");if(l!=="px"){a.style(this,e,(j||1)+l);h=(j||1)/k.cur()*h;a.style(this,e,h+l)}if(i[1])j=(i[1]==="-="?-1:1)*j+h;k.custom(h,j,l)}else k.custom(h,d,"")}}return true})},stop:function(c,b){c&&this.queue([]);this.each(function(){var c=a.timers,d=c.length;!b&&a._unmark(true,this);while(d--)if(c[d].elem===this){b&&c[d](true);c.splice(d,1)}});!b&&this.dequeue();return this}});function W(){setTimeout(Kb,0);return v=a.now()}function Kb(){v=b}function o(c,d){var b={};a.each(ib.concat.apply([],ib.slice(0,d)),function(){b[this]=c});return b}a.each({slideDown:o("show",1),slideUp:o("hide",1),slideToggle:o("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,b){a.fn[c]=function(d,c,a){return this.animate(b,d,c,a)}});a.extend({speed:function(c,d,e){var b=c&&typeof c==="object"?a.extend({},c):{complete:e||!e&&d||a.isFunction(c)&&c,duration:c,easing:e&&d||d&&!a.isFunction(d)&&d};b.duration=a.fx.off?0:typeof b.duration==="number"?b.duration:b.duration in a.fx.speeds?a.fx.speeds[b.duration]:a.fx.speeds._default;b.old=b.complete;b.complete=function(c){a.isFunction(b.old)&&b.old.call(this);if(b.queue!==false)a.dequeue(this);else c!==false&&a._unmark(this)};return b},easing:{linear:function(c,d,a,b){return a+b*c},swing:function(c,d,a,b){return(-Math.cos(c*Math.PI)/2+.5)*b+a}},timers:[],fx:function(b,a,c){this.options=a;this.elem=b;this.prop=c;a.orig=a.orig||{}}});a.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(a.fx.step[this.prop]||a.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 c,b=a.css(this.elem,this.prop);return isNaN(c=parseFloat(b))?!b||b==="auto"?0:b:c},custom:function(e,h,g){var f=this,c=a.fx,b;this.startTime=v||W();this.start=e;this.end=h;this.unit=g||this.unit||(a.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;function d(a){return f.step(a)}d.elem=this.elem;if(d()&&a.timers.push(d)&&!m)if(x){m=true;b=function(){if(m){x(b);c.tick()}};x(b)}else m=setInterval(c.tick,c.interval)},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(i){var e=v||W(),f=true,c=this.elem,b=this.options,g,d;if(i||e>=b.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();b.animatedProperties[this.prop]=true;for(g in b.animatedProperties)if(b.animatedProperties[g]!==true)f=false;if(f){b.overflow!=null&&!a.support.shrinkWrapBlocks&&a.each(["","X","Y"],function(a,d){c.style["overflow"+d]=b.overflow[a]});b.hide&&a(c).hide();if(b.hide||b.show)for(var h in b.animatedProperties)a.style(c,h,b.orig[h]);b.complete.call(c)}return false}else{if(b.duration==Infinity)this.now=e;else{d=e-this.startTime;this.state=d/b.duration;this.pos=a.easing[b.animatedProperties[this.prop]](this.state,d,0,1,b.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return true}};a.extend(a.fx,{tick:function(){for(var b=a.timers,c=0;c<b.length;++c)!b[c]()&&b.splice(c--,1);!b.length&&a.fx.stop()},interval:13,stop:function(){clearInterval(m);m=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){a.style(b.elem,"opacity",b.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(a.expr&&a.expr.filters)a.expr.filters.animated=function(b){return a.grep(a.timers,function(a){return b===a.elem}).length};function R(b){if(!D[b]){var g=c.body,d=a("<"+b+">").appendTo(g),e=d.css("display");d.remove();if(e==="none"||e===""){if(!f){f=c.createElement("iframe");f.frameBorder=f.width=f.height=0}g.appendChild(f);if(!l||!f.createElement){l=(f.contentWindow||f.contentDocument).document;l.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");l.close()}d=l.createElement(b);l.body.appendChild(d);e=a.css(d,"display");g.removeChild(f)}D[b]=e}return D[b]}var lc=/^t(?:able|d|h)$/i,sb=/^(?:body|html)$/i;if("getBoundingClientRect"in c.documentElement)a.fn.offset=function(g){var b=this[0],c;if(g)return this.each(function(b){a.offset.setOffset(this,g,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(o){}var f=b.ownerDocument,d=f.documentElement;if(!c||!a.contains(d,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var e=f.body,h=H(f),k=d.clientTop||e.clientTop||0,i=d.clientLeft||e.clientLeft||0,l=h.pageYOffset||a.support.boxModel&&d.scrollTop||e.scrollTop,j=h.pageXOffset||a.support.boxModel&&d.scrollLeft||e.scrollLeft,n=c.top+l-k,m=c.left+j-i;return{top:n,left:m}};else a.fn.offset=function(l){var b=this[0];if(l)return this.each(function(b){a.offset.setOffset(this,l,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);a.offset.initialize();var c,i=b.offsetParent,m=b,k=b.ownerDocument,j=k.documentElement,g=k.body,h=k.defaultView,f=h?h.getComputedStyle(b,null):b.currentStyle,e=b.offsetTop,d=b.offsetLeft;while((b=b.parentNode)&&b!==g&&b!==j){if(a.offset.supportsFixedPosition&&f.position==="fixed")break;c=h?h.getComputedStyle(b,null):b.currentStyle;e-=b.scrollTop;d-=b.scrollLeft;if(b===i){e+=b.offsetTop;d+=b.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&lc.test(b.nodeName))){e+=parseFloat(c.borderTopWidth)||0;d+=parseFloat(c.borderLeftWidth)||0}m=i;i=b.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){e+=parseFloat(c.borderTopWidth)||0;d+=parseFloat(c.borderLeftWidth)||0}f=c}if(f.position==="relative"||f.position==="static"){e+=g.offsetTop;d+=g.offsetLeft}if(a.offset.supportsFixedPosition&&f.position==="fixed"){e+=Math.max(j.scrollTop,g.scrollTop);d+=Math.max(j.scrollLeft,g.scrollLeft)}return{top:e,left:d}};a.offset={initialize:function(){var f=c.body,d=c.createElement("div"),e,b,j,g,h=parseFloat(a.css(f,"marginTop"))||0,i="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.extend(d.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});d.innerHTML=i;f.insertBefore(d,f.firstChild);e=d.firstChild;b=e.firstChild;g=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=b.offsetTop!==5;this.doesAddBorderForTableAndCells=g.offsetTop===5;b.style.position="fixed";b.style.top="20px";this.supportsFixedPosition=b.offsetTop===20||b.offsetTop===15;b.style.position=b.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=b.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=f.offsetTop!==h;f.removeChild(d);a.offset.initialize=a.noop},bodyOffset:function(b){var d=b.offsetTop,c=b.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){d+=parseFloat(a.css(b,"marginTop"))||0;c+=parseFloat(a.css(b,"marginLeft"))||0}return{top:d,left:c}},setOffset:function(c,b,n){var g=a.css(c,"position");if(g==="static")c.style.position="relative";var h=a(c),f=h.offset(),l=a.css(c,"top"),k=a.css(c,"left"),m=(g==="absolute"||g==="fixed")&&a.inArray("auto",[l,k])>-1,d={},e={},j,i;if(m){e=h.position();j=e.top;i=e.left}else{j=parseFloat(l)||0;i=parseFloat(k)||0}if(a.isFunction(b))b=b.call(c,n,f);if(b.top!=null)d.top=b.top-f.top+j;if(b.left!=null)d.left=b.left-f.left+i;if("using"in b)b.using.call(c,d);else h.css(d)}};a.fn.extend({position:function(){if(!this[0])return null;var e=this[0],b=this.offsetParent(),d=this.offset(),c=sb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(a.css(e,"marginTop"))||0;d.left-=parseFloat(a.css(e,"marginLeft"))||0;c.top+=parseFloat(a.css(b[0],"borderTopWidth"))||0;c.left+=parseFloat(a.css(b[0],"borderLeftWidth"))||0;return{top:d.top-c.top,left:d.left-c.left}},offsetParent:function(){return this.map(function(){var b=this.offsetParent||c.body;while(b&&!sb.test(b.nodeName)&&a.css(b,"position")==="static")b=b.offsetParent;return b})}});a.each(["Left","Top"],function(d,e){var c="scroll"+e;a.fn[c]=function(g){var f,e;if(g===b){f=this[0];if(!f)return null;e=H(f);return e?"pageXOffset"in e?e[d?"pageYOffset":"pageXOffset"]:a.support.boxModel&&e.document.documentElement[c]||e.document.body[c]:f[c]}return this.each(function(){e=H(this);if(e)e.scrollTo(!d?g:a(e).scrollLeft(),d?g:a(e).scrollTop());else this[c]=g})}});function H(b){return a.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:false}a.each(["Height","Width"],function(e,c){var d=c.toLowerCase();a.fn["inner"+c]=function(){var b=this[0];return b&&b.style?parseFloat(a.css(b,d,"padding")):null};a.fn["outer"+c]=function(c){var b=this[0];return b&&b.style?parseFloat(a.css(b,d,c?"margin":"border")):null};a.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(a.isFunction(f))return this.each(function(c){var b=a(this);b[d](f.call(this,c,b[d]()))});if(a.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}else if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);else if(f===b){var h=a.css(e,d),i=parseFloat(h);return a.isNaN(i)?h:i}else return this.css(d,typeof f==="string"?f:f+"px")}});d.jQuery=d.$=a})(window);(function(a){a.toJSON=function(b){if(typeof JSON=="object"&&JSON.stringify)return JSON.stringify(b);var d=typeof b;if(b===null)return"null";if(d=="undefined")return undefined;if(d=="number"||d=="boolean")return b+"";if(d=="string")return a.quoteString(b);if(d=="object"){if(typeof b.toJSON=="function")return a.toJSON(b.toJSON());if(b.constructor===Date){var i=b.getUTCMonth()+1;if(i<10)i="0"+i;var j=b.getUTCDate();if(j<10)j="0"+j;var o=b.getUTCFullYear(),h=b.getUTCHours();if(h<10)h="0"+h;var f=b.getUTCMinutes();if(f<10)f="0"+f;var g=b.getUTCSeconds();if(g<10)g="0"+g;var c=b.getUTCMilliseconds();if(c<100)c="0"+c;if(c<10)c="0"+c;return'"'+o+"-"+i+"-"+j+"T"+h+":"+f+":"+g+"."+c+'Z"'}if(b.constructor===Array){for(var n=[],l=0;l<b.length;l++)n.push(a.toJSON(b[l])||"null");return"["+n.join(",")+"]"}var m=[];for(var e in b){var k,d=typeof e;if(d=="number")k='"'+e+'"';else if(d=="string")k=a.quoteString(e);else continue;if(typeof b[e]=="function")continue;var p=a.toJSON(b[e]);m.push(k+":"+p)}return"{"+m.join(", ")+"}"}};a.evalJSON=function(a){return typeof JSON=="object"&&JSON.parse?JSON.parse(a):eval("("+a+")")};a.secureEvalJSON=function(b){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(b);var a=b;a=a.replace(/\\["\\\/bfnrtu]/g,"@");a=a.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");a=a.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(a))return eval("("+b+")");else throw new SyntaxError("Error parsing JSON, source is not valid.");};a.quoteString=function(a){return a.match(b)?'"'+a.replace(b,function(b){var a=c[b];if(typeof a==="string")return a;a=b.charCodeAt();return"\\u00"+Math.floor(a/16).toString(16)+(a%16).toString(16)})+'"':'"'+a+'"'};var b=/["\\\x00-\x1f\x7f-\x9f]/g,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery);var JSON;if(!JSON)JSON={};(function(){"use strict";function c(a){return a<10?"0"+a:a}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+c(this.getUTCMonth()+1)+"-"+c(this.getUTCDate())+"T"+c(this.getUTCHours())+":"+c(this.getUTCMinutes())+":"+c(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var h=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a,d,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},b;function g(a){f.lastIndex=0;return f.test(a)?'"'+a.replace(f,function(a){var b=i[a];return typeof b==="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function e(m,n){var h,j,i,k,l=a,f,c=n[m];if(c&&typeof c==="object"&&typeof c.toJSON==="function")c=c.toJSON(m);if(typeof b==="function")c=b.call(n,m,c);switch(typeof c){case"string":return g(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";a+=d;f=[];if(Object.prototype.toString.apply(c)==="[object Array]"){k=c.length;for(h=0;h<k;h+=1)f[h]=e(h,c)||"null";i=f.length===0?"[]":a?"[\n"+a+f.join(",\n"+a)+"\n"+l+"]":"["+f.join(",")+"]";a=l;return i}if(b&&typeof b==="object"){k=b.length;for(h=0;h<k;h+=1)if(typeof b[h]==="string"){j=b[h];i=e(j,c);i&&f.push(g(j)+(a?": ":":")+i)}}else for(j in c)if(Object.prototype.hasOwnProperty.call(c,j)){i=e(j,c);i&&f.push(g(j)+(a?": ":":")+i)}i=f.length===0?"{}":a?"{\n"+a+f.join(",\n"+a)+"\n"+l+"}":"{"+f.join(",")+"}";a=l;return i}}if(typeof JSON.stringify!=="function")JSON.stringify=function(h,c,f){var g;a="";d="";if(typeof f==="number")for(g=0;g<f;g+=1)d+=" ";else if(typeof f==="string")d=f;b=c;if(c&&typeof c!=="function"&&(typeof c!=="object"||typeof c.length!=="number"))throw new Error("JSON.stringify");return e("",{"":h})};if(typeof JSON.parse!=="function")JSON.parse=function(a,c){var b;function d(f,g){var b,e,a=f[g];if(a&&typeof a==="object")for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){e=d(a,b);if(e!==undefined)a[b]=e;else delete a[b]}return c.call(f,g,a)}a=String(a);h.lastIndex=0;if(h.test(a))a=a.replace(h,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){b=eval("("+a+")");return typeof c==="function"?d({"":b},""):b}throw new SyntaxError("JSON.parse");}})();
/*!
 * jQuery UI 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(a,b){function c(b,e){var c=b.nodeName.toLowerCase();if("area"===c){e=b.parentNode;c=e.name;if(!b.href||!c||e.nodeName.toLowerCase()!=="map")return false;b=a("img[usemap=#"+c+"]")[0];return!!b&&d(b)}return(/input|select|textarea|button|object/.test(c)?!b.disabled:"a"==c?b.href||e:e)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.15",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b==="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus();c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var d;c.length&&c[0]!==document;){d=c.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){d=parseInt(c.css("zIndex"),10);if(!isNaN(d)&&d!==0)return d}c=c.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(h,c){function d(c,b,d,e){a.each(g,function(){b-=parseFloat(a.curCSS(c,"padding"+this,true))||0;if(d)b-=parseFloat(a.curCSS(c,"border"+this+"Width",true))||0;if(e)b-=parseFloat(a.curCSS(c,"margin"+this,true))||0});return b}var g=c==="Width"?["Left","Right"]:["Top","Bottom"],e=c.toLowerCase(),f={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(g){return g===b?f["inner"+c].call(this):this.each(function(){a(this).css(e,d(this,g)+"px")})};a.fn["outer"+c]=function(b,g){return typeof b!=="number"?f["outer"+c].call(this,b):this.each(function(){a(this).css(e,d(this,b,true,g)+"px")})}});a.extend(a.expr[":"],{data:function(b,d,c){return!!a.data(b,c[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}});a(function(){var c=document.body,b=c.appendChild(b=document.createElement("div"));a.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=b.offsetHeight===100;a.support.selectstart="onselectstart"in b;c.removeChild(b).style.display="none"});a.extend(a.ui,{plugin:{add:function(b,e,d){b=a.ui[b].prototype;for(var c in d){b.plugins[c]=b.plugins[c]||[];b.plugins[c].push([e,d[c]])}},call:function(b,a,d){if((a=b.plugins[a])&&b.element[0].parentNode)for(var c=0;c<a.length;c++)b.options[a[c][0]]&&a[c][1].apply(b.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(c,b){if(a(c).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(c[b]>0)return true;c[b]=1;d=c[b]>0;c[b]=0;return d},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}})}})(jQuery);
/*!
 * jQuery UI Widget 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)a(e).triggerHandler("remove");c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){if(!c)(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return d.call(a(this),b,c)})}}a.widget=function(b,d,e){var c=b.split(".")[0],f;b=b.split(".")[1];f=c+"-"+b;if(!e){e=d;d=a.Widget}a.expr[":"][f]=function(c){return!!a.data(c,b)};a[c]=a[c]||{};a[c][b]=function(b,a){arguments.length&&this._createWidget(b,a)};d=new d;d.options=a.extend(true,{},d.options);a[c][b].prototype=a.extend(true,d,{"namespace":c,widgetName:b,widgetEventPrefix:a[c][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},e);a.widget.bridge(b,a[c][b])};a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e==="string",g=Array.prototype.slice.call(arguments,1),h=this;e=!f&&g.length?a.extend.apply(null,[true,e].concat(g)):e;if(f&&e.charAt(0)==="_")return h;f?this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!==d&&f!==b){h=f;return false}}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))});return h}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(c,b){a.data(b,this.widgetName,this);this.element=a(b);this.options=a.extend(true,{},this.options,this._getCreateOptions(),c);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(c,e){var d=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c==="string"){if(e===b)return this.options[c];d={};d[c]=e}this._setOptions(d);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(b,a){this.options[b]=a;b==="disabled"&&this.widget()[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",a);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(c,b,d){var f=this.options[c];b=a.Event(b);b.type=(c===this.widgetEventPrefix?c:this.widgetEventPrefix+c).toLowerCase();d=d||{};if(b.originalEvent){c=a.event.props.length;for(var e;c;){e=a.event.props[--c];b[e]=b.originalEvent[e]}}this.element.trigger(b,d);return!(a.isFunction(f)&&f.call(this.element[0],b,d)===false||b.isDefaultPrevented())}}})(jQuery);
/*!
 * jQuery UI Mouse 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(true===a.data(c.target,b.widgetName+".preventClickEvent")){a.removeData(c.target,b.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(!b.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var c=this,d=b.which==1,e=typeof this.options.cancel=="string"?a(b.target).closest(this.options.cancel).length:false;if(!d||e||!this._mouseCapture(b))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}true===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.preventDefault();return b.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b);return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",true);this._mouseStop(b)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(a){a.ui=a.ui||{};var b=/left|center|right/,c=/top|center|bottom/,d=a.fn.position,e=a.fn.offset;a.fn.position=function(e){if(!e||!e.of)return d.apply(this,arguments);e=a.extend({},e);var g=a(e.of),l=g[0],k=(e.collision||"flip").split(" "),h=e.offset?e.offset.split(" "):[0,0],i,j,f;if(l.nodeType===9){i=g.width();j=g.height();f={top:0,left:0}}else if(l.setTimeout){i=g.width();j=g.height();f={top:g.scrollTop(),left:g.scrollLeft()}}else if(l.preventDefault){e.at="left top";i=j=0;f={top:e.of.pageY,left:e.of.pageX}}else{i=g.outerWidth();j=g.outerHeight();f=g.offset()}a.each(["my","at"],function(){var a=(e[this]||"").split(" ");if(a.length===1)a=b.test(a[0])?a.concat(["center"]):c.test(a[0])?["center"].concat(a):["center","center"];a[0]=b.test(a[0])?a[0]:"center";a[1]=c.test(a[1])?a[1]:"center";e[this]=a});if(k.length===1)k[1]=k[0];h[0]=parseInt(h[0],10)||0;if(h.length===1)h[1]=h[0];h[1]=parseInt(h[1],10)||0;if(e.at[0]==="right")f.left+=i;else if(e.at[0]==="center")f.left+=i/2;if(e.at[1]==="bottom")f.top+=j;else if(e.at[1]==="center")f.top+=j/2;f.left+=h[0];f.top+=h[1];return this.each(function(){var c=a(this),d=c.outerWidth(),g=c.outerHeight(),l=parseInt(a.curCSS(this,"marginLeft",true))||0,m=parseInt(a.curCSS(this,"marginTop",true))||0,o=d+l+(parseInt(a.curCSS(this,"marginRight",true))||0),p=g+m+(parseInt(a.curCSS(this,"marginBottom",true))||0),b=a.extend({},f),n;if(e.my[0]==="right")b.left-=d;else if(e.my[0]==="center")b.left-=d/2;if(e.my[1]==="bottom")b.top-=g;else if(e.my[1]==="center")b.top-=g/2;b.left=Math.round(b.left);b.top=Math.round(b.top);n={left:b.left-l,top:b.top-m};a.each(["left","top"],function(c,f){a.ui.position[k[c]]&&a.ui.position[k[c]][f](b,{targetWidth:i,targetHeight:j,elemWidth:d,elemHeight:g,collisionPosition:n,collisionWidth:o,collisionHeight:p,offset:h,my:e.my,at:e.at})});a.fn.bgiframe&&c.bgiframe();c.offset(a.extend(b,{using:e.using}))})};a.ui.position={fit:{left:function(c,d){var b=a(window);b=d.collisionPosition.left+d.collisionWidth-b.width()-b.scrollLeft();c.left=b>0?c.left-b:Math.max(c.left-d.collisionPosition.left,c.left)},top:function(c,d){var b=a(window);b=d.collisionPosition.top+d.collisionHeight-b.height()-b.scrollTop();c.top=b>0?c.top-b:Math.max(c.top-d.collisionPosition.top,c.top)}},flip:{left:function(g,b){if(b.at[0]!=="center"){var c=a(window);c=b.collisionPosition.left+b.collisionWidth-c.width()-c.scrollLeft();var e=b.my[0]==="left"?-b.elemWidth:b.my[0]==="right"?b.elemWidth:0,d=b.at[0]==="left"?b.targetWidth:-b.targetWidth,f=-2*b.offset[0];g.left+=b.collisionPosition.left<0?e+d+f:c>0?e+d+f:0}},top:function(g,b){if(b.at[1]!=="center"){var c=a(window);c=b.collisionPosition.top+b.collisionHeight-c.height()-c.scrollTop();var e=b.my[1]==="top"?-b.elemHeight:b.my[1]==="bottom"?b.elemHeight:0,d=b.at[1]==="top"?b.targetHeight:-b.targetHeight,f=-2*b.offset[1];g.top+=b.collisionPosition.top<0?e+d+f:c>0?e+d+f:0}}}};if(!a.offset.setOffset){a.offset.setOffset=function(b,d){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var e=a(b),c=e.offset(),f=parseInt(a.curCSS(b,"top",true),10)||0,g=parseInt(a.curCSS(b,"left",true),10)||0;c={top:d.top-c.top+f,left:d.left-c.left+g};"using"in d?d.using.call(b,c):e.css(c)};a.fn.offset=function(c){var b=this[0];return!b||!b.ownerDocument?null:c?this.each(function(){a.offset.setOffset(this,c)}):e.call(this)}}})(jQuery);(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(c){var b=this.options;if(this.helper||b.disabled||a(c.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(c);if(!this.handle)return false;a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")});return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",b)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b);return true},_mouseDrag:function(c,b){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",c,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);return false},_mouseStop:function(c){var b=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)b=a.ui.ddmanager.drop(this,c);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var d=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){d._trigger("stop",c)!==false&&d._clear()})}else this._trigger("stop",c)!==false&&this._clear();return false},_mouseUp:function(b){this.options.iframeFix===true&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b);return a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var b=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target)b=true});return b},_createHelper:function(b){var c=this.options;b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element;b.parents("body").length||b.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&b.css("position","absolute");return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(a.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[b.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){b=a(b.containment);var c=b[0];if(c){b.offset();var d=a(c).css("overflow")!="hidden";this.containment=[(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0),(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0),(d?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(d?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=b}}else if(b.containment.constructor==Array)this.containment=b.containment},_convertPositionTo:function(b,c){if(!c)c=this.position;b=b=="absolute"?1:-1;var d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())*b)}},_generatePosition:function(f){var e=this.options,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(g[0].tagName),c=f.pageX,d=f.pageY;if(this.originalPosition){var b;if(this.containment){if(this.relative_container){b=this.relative_container.offset();b=[this.containment[0]+b.left,this.containment[1]+b.top,this.containment[2]+b.left,this.containment[3]+b.top]}else b=this.containment;if(f.pageX-this.offset.click.left<b[0])c=b[0]+this.offset.click.left;if(f.pageY-this.offset.click.top<b[1])d=b[1]+this.offset.click.top;if(f.pageX-this.offset.click.left>b[2])c=b[2]+this.offset.click.left;if(f.pageY-this.offset.click.top>b[3])d=b[3]+this.offset.click.top}if(e.grid){d=e.grid[1]?this.originalPageY+Math.round((d-this.originalPageY)/e.grid[1])*e.grid[1]:this.originalPageY;d=b?!(d-this.offset.click.top<b[1]||d-this.offset.click.top>b[3])?d:!(d-this.offset.click.top<b[1])?d-e.grid[1]:d+e.grid[1]:d;c=e.grid[0]?this.originalPageX+Math.round((c-this.originalPageX)/e.grid[0])*e.grid[0]:this.originalPageX;c=b?!(c-this.offset.click.left<b[0]||c-this.offset.click.left>b[2])?c:!(c-this.offset.click.left<b[0])?c-e.grid[0]:c+e.grid[0]:c}}return{top:d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:g.scrollTop()),left:c-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:g.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,d,b){b=b||this._uiHash();a.ui.plugin.call(this,c,[d,b]);if(c=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,c,d,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.15"});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,d){var b=a(this).data("draggable"),f=b.options,e=a.extend({},d,{item:b.element});b.sortables=[];a(f.connectToSortable).each(function(){var d=a.data(this,"sortable");if(d&&!d.options.disabled){b.sortables.push({instance:d,shouldRevert:d.options.revert});d.refreshPositions();d._trigger("activate",c,e)}})},stop:function(c,d){var b=a(this).data("draggable"),e=a.extend({},d,{item:b.element});a.each(b.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;b.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;b.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,e)}})},drag:function(c,d){var b=a(this).data("draggable"),e=this;a.each(b.sortables,function(){this.instance.positionAbs=b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(e).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=b.offset.click.top;this.instance.offset.click.left=b.offset.click.left;this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top;b._trigger("toSortable",c);b.dropped=this.instance.element;b.currentItem=b.element;this.instance.fromOutside=b}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();b._trigger("fromSortable",c);b.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("draggable").options;if(b.css("cursor"))c._cursor=b.css("cursor");b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(b,c){b=a(c.helper);c=a(this).data("draggable").options;if(b.css("opacity"))c._opacity=b.css("opacity");b.css("opacity",c.opacity)},stop:function(b,c){b=a(this).data("draggable").options;b._opacity&&a(c.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML")b.overflowOffset=b.scrollParent.offset()},drag:function(d){var c=a(this).data("draggable"),b=c.options,e=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!b.axis||b.axis!="x")if(c.overflowOffset.top+c.scrollParent[0].offsetHeight-d.pageY<b.scrollSensitivity)c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop+b.scrollSpeed;else if(d.pageY-c.overflowOffset.top<b.scrollSensitivity)c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop-b.scrollSpeed;if(!b.axis||b.axis!="y")if(c.overflowOffset.left+c.scrollParent[0].offsetWidth-d.pageX<b.scrollSensitivity)c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft+b.scrollSpeed;else if(d.pageX-c.overflowOffset.left<b.scrollSensitivity)c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(!b.axis||b.axis!="x")if(d.pageY-a(document).scrollTop()<b.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed);else if(a(window).height()-(d.pageY-a(document).scrollTop())<b.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed);if(!b.axis||b.axis!="y")if(d.pageX-a(document).scrollLeft()<b.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed);else if(a(window).width()-(d.pageX-a(document).scrollLeft())<b.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed)}e!==false&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,d)}});a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("draggable"),c=b.options;b.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var c=a(this),d=c.offset();this!=b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})})},drag:function(s,e){for(var b=a(this).data("draggable"),r=b.options,c=r.snapTolerance,j=e.offset.left,l=j+b.helperProportions.width,k=e.offset.top,m=k+b.helperProportions.height,d=b.snapElements.length-1;d>=0;d--){var f=b.snapElements[d].left,h=f+b.snapElements[d].width,g=b.snapElements[d].top,i=g+b.snapElements[d].height;if(f-c<j&&j<h+c&&g-c<k&&k<i+c||f-c<j&&j<h+c&&g-c<m&&m<i+c||f-c<l&&l<h+c&&g-c<k&&k<i+c||f-c<l&&l<h+c&&g-c<m&&m<i+c){if(r.snapMode!="inner"){var n=Math.abs(g-m)<=c,o=Math.abs(i-k)<=c,p=Math.abs(f-l)<=c,q=Math.abs(h-j)<=c;if(n)e.position.top=b._convertPositionTo("relative",{top:g-b.helperProportions.height,left:0}).top-b.margins.top;if(o)e.position.top=b._convertPositionTo("relative",{top:i,left:0}).top-b.margins.top;if(p)e.position.left=b._convertPositionTo("relative",{top:0,left:f-b.helperProportions.width}).left-b.margins.left;if(q)e.position.left=b._convertPositionTo("relative",{top:0,left:h}).left-b.margins.left}var t=n||o||p||q;if(r.snapMode!="outer"){n=Math.abs(g-k)<=c;o=Math.abs(i-m)<=c;p=Math.abs(f-j)<=c;q=Math.abs(h-l)<=c;if(n)e.position.top=b._convertPositionTo("relative",{top:g,left:0}).top-b.margins.top;if(o)e.position.top=b._convertPositionTo("relative",{top:i-b.helperProportions.height,left:0}).top-b.margins.top;if(p)e.position.left=b._convertPositionTo("relative",{top:0,left:f}).left-b.margins.left;if(q)e.position.left=b._convertPositionTo("relative",{top:0,left:h-b.helperProportions.width}).left-b.margins.left}if(!b.snapElements[d].snapping&&(n||o||p||q||t))b.options.snap.snap&&b.options.snap.snap.call(b.element,s,a.extend(b._uiHash(),{snapItem:b.snapElements[d].item}));b.snapElements[d].snapping=n||o||p||q||t}else{b.snapElements[d].snapping&&b.options.snap.release&&b.options.snap.release.call(b.element,s,a.extend(b._uiHash(),{snapItem:b.snapElements[d].item}));b.snapElements[d].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options;b=a.makeArray(a(b.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(b.length){var c=parseInt(b[0].style.zIndex)||0;a(b).each(function(a){this.style.zIndex=c+a});this[0].style.zIndex=c+b.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(b,c){b=a(c.helper);c=a(this).data("draggable").options;if(b.css("zIndex"))c._zIndex=b.css("zIndex");b.css("zIndex",c.zIndex)},stop:function(b,c){b=a(this).data("draggable").options;b._zIndex&&a(c.helper).css("zIndex",b._zIndex)}})})(jQuery);(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var b=this.options,c=b.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(c)?c:function(a){return a.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[];a.ui.ddmanager.droppables[b.scope].push(this);b.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var c=a.ui.ddmanager.droppables[this.options.scope],b=0;b<c.length;b++)c[b]==this&&c.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,b){if(c=="accept")this.accept=a.isFunction(b)?b:function(a){return a.is(b)};a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(c){var b=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);b&&this._trigger("activate",c,this.ui(b))},_deactivate:function(c){var b=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",c,this.ui(b))},_over:function(c){var b=a.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",c,this.ui(b))}},_drop:function(d,e){var b=e||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0])return false;var c=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var d=a.data(this,"droppable");if(d.options.greedy&&!d.options.disabled&&d.options.scope==b.options.scope&&d.accept.call(d.element[0],b.currentItem||b.element)&&a.ui.intersect(b,a.extend(d,{offset:d.element.offset()}),d.options.tolerance)){c=true;return false}});if(c)return false;if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",d,this.ui(b));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.15"});a.ui.intersect=function(b,c,l){if(!c.offset)return false;var f=(b.positionAbs||b.position.absolute).left,h=f+b.helperProportions.width,g=(b.positionAbs||b.position.absolute).top,i=g+b.helperProportions.height,d=c.offset.left,j=d+c.proportions.width,e=c.offset.top,k=e+c.proportions.height;switch(l){case"fit":return d<=f&&h<=j&&e<=g&&i<=k;case"intersect":return d<f+b.helperProportions.width/2&&h-b.helperProportions.width/2<j&&e<g+b.helperProportions.height/2&&i-b.helperProportions.height/2<k;case"pointer":return a.ui.isOver((b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top,(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left,e,d,c.proportions.height,c.proportions.width);case"touch":return(g>=e&&g<=k||i>=e&&i<=k||g<e&&i>k)&&(f>=d&&f<=j||h>=d&&h<=j||f<d&&h>j);default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,e){var c=a.ui.ddmanager.droppables[d.options.scope]||[],h=e?e.type:null,g=(d.currentItem||d.element).find(":data(droppable)").andSelf(),b=0;a:for(;b<c.length;b++)if(!(c[b].options.disabled||d&&!c[b].accept.call(c[b].element[0],d.currentItem||d.element))){for(var f=0;f<g.length;f++)if(g[f]==c[b].element[0]){c[b].proportions.height=0;continue a}c[b].visible=c[b].element.css("display")!="none";if(c[b].visible){h=="mousedown"&&c[b]._activate.call(c[b],e);c[b].offset=c[b].element.offset();c[b].proportions={width:c[b].element[0].offsetWidth,height:c[b].element[0].offsetHeight}}}},drop:function(b,d){var c=false;a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance))c=c||this._drop.call(this,d);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)){this.isout=1;this.isover=0;this._deactivate.call(this,d)}}});return c},dragStart:function(b,c){b.element.parentsUntil("body").bind("scroll.droppable",function(){b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c);a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var e=a.ui.intersect(b,this,this.options.tolerance);if(e=!e&&this.isover==1?"isout":e&&this.isover==0?"isover":null){var d;if(this.options.greedy){var f=this.element.parents(":data(droppable):eq(0)");if(f.length){d=a.data(f[0],"droppable");d.greedyChild=e=="isover"?1:0}}if(d&&e=="isover"){d.isover=0;d.isout=1;d._out.call(d,c)}this[e]=1;this[e=="isout"?"isover":"isout"]=0;this[e=="isover"?"_over":"_out"].call(this,c);if(d&&e=="isout"){d.isout=0;d.isover=1;d._over.call(d,c)}}}})},dragStop:function(b,c){b.element.parentsUntil("body").unbind("scroll.droppable");b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)}}})(jQuery);(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var c=this,b=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!b.aspectRatio,aspectRatio:b.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=b.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var g=this.handles.split(",");this.handles={};for(var e=0;e<g.length;e++){var d=a.trim(g[e]),f=a('<div class="ui-resizable-handle ui-resizable-'+d+'"></div>');/sw|se|ne|nw/.test(d)&&f.css({zIndex:++b.zIndex});"se"==d&&f.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[d]=".ui-resizable-"+d;this.element.append(f)}}this._renderAxis=function(d){d=d||this.element;for(var b in this.handles){if(this.handles[b].constructor==String)this.handles[b]=a(this.handles[b],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var c=a(this.handles[b],this.element),e=0;e=/sw|ne|nw|se|n|s/.test(b)?c.outerHeight():c.outerWidth();c=["padding",/ne|nw|n/.test(b)?"Top":/se|sw|s/.test(b)?"Bottom":/^e$/.test(b)?"Right":"Left"].join("");d.css(c,e);this._proportionallyResize()}a(this.handles[b])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!c.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);c.axis=a&&a[1]?a[1]:"se"}});if(b.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){if(!b.disabled){a(this).removeClass("ui-resizable-autohide");c._handles.show()}},function(){if(!b.disabled)if(!c.resizing){a(this).addClass("ui-resizable-autohide");c._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var c=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){c(this.element);var b=this.element;b.after(this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);c(this.originalElement);return this},_mouseCapture:function(c){var b=false;for(var d in this.handles)if(a(this.handles[d])[0]==c.target)b=true;return!this.options.disabled&&b},_mouseStart:function(f){var d=this.options,e=this.element.position(),b=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};(b.is(".ui-draggable")||/absolute/.test(b.css("position")))&&b.css({position:"absolute",top:e.top,left:e.left});a.browser.opera&&/relative/.test(b.css("position"))&&b.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();e=c(this.helper.css("left"));var g=c(this.helper.css("top"));if(d.containment){e+=a(d.containment).scrollLeft()||0;g+=a(d.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:e,top:g};this.size=this._helper?{width:b.outerWidth(),height:b.outerHeight()}:{width:b.width(),height:b.height()};this.originalSize=this._helper?{width:b.outerWidth(),height:b.outerHeight()}:{width:b.width(),height:b.height()};this.originalPosition={left:e,top:g};this.sizeDiff={width:b.outerWidth()-b.width(),height:b.outerHeight()-b.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=typeof d.aspectRatio=="number"?d.aspectRatio:this.originalSize.width/this.originalSize.height||1;d=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",d=="auto"?this.axis+"-resize":d);b.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(a){var d=this.helper,b=this.originalMousePosition,c=this._change[this.axis];if(!c)return false;b=c.apply(this,[a,a.pageX-b.left||0,a.pageY-b.top||0]);this._updateVirtualBoundaries(a.shiftKey);if(this._aspectRatio||a.shiftKey)b=this._updateRatio(b,a);b=this._respectSize(b,a);this._propagate("resize",a);d.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(b);this._trigger("resize",a,this.ui());return false},_mouseStop:function(f){this.resizing=false;var e=this.options,b=this;if(this._helper){var c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName);c=d&&a.ui.hasScroll(c[0],"left")?0:b.sizeDiff.height;d=d?0:b.sizeDiff.width;d={width:b.helper.width()-d,height:b.helper.height()-c};c=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null;var g=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;e.animate||this.element.css(a.extend(d,{top:g,left:c}));b.helper.height(b.size.height);b.helper.width(b.size.width);this._helper&&!e.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",f);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(c){var a=this.options,d,e,f;a={minWidth:b(a.minWidth)?a.minWidth:0,maxWidth:b(a.maxWidth)?a.maxWidth:Infinity,minHeight:b(a.minHeight)?a.minHeight:0,maxHeight:b(a.maxHeight)?a.maxHeight:Infinity};if(this._aspectRatio||c){c=a.minHeight*this.aspectRatio;e=a.minWidth/this.aspectRatio;d=a.maxHeight*this.aspectRatio;f=a.maxWidth/this.aspectRatio;if(c>a.minWidth)a.minWidth=c;if(e>a.minHeight)a.minHeight=e;if(d<a.maxWidth)a.maxWidth=d;if(f<a.maxHeight)a.maxHeight=f}this._vBoundaries=a},_updateCache:function(a){this.offset=this.helper.offset();if(b(a.left))this.position.left=a.left;if(b(a.top))this.position.top=a.top;if(b(a.height))this.size.height=a.height;if(b(a.width))this.size.width=a.width},_updateRatio:function(a){var c=this.position,d=this.size,e=this.axis;if(b(a.height))a.width=a.height*this.aspectRatio;else if(b(a.width))a.height=a.width/this.aspectRatio;if(e=="sw"){a.left=c.left+(d.width-a.width);a.top=null}if(e=="nw"){a.top=c.top+(d.height-a.height);a.left=c.left+(d.width-a.width)}return a},_respectSize:function(a){var c=this._vBoundaries,d=this.axis,e=b(a.width)&&c.maxWidth&&c.maxWidth<a.width,f=b(a.height)&&c.maxHeight&&c.maxHeight<a.height,g=b(a.width)&&c.minWidth&&c.minWidth>a.width,h=b(a.height)&&c.minHeight&&c.minHeight>a.height;if(g)a.width=c.minWidth;if(h)a.height=c.minHeight;if(e)a.width=c.maxWidth;if(f)a.height=c.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,k=/sw|nw|w/.test(d);d=/nw|ne|n/.test(d);if(g&&k)a.left=i-c.minWidth;if(e&&k)a.left=i-c.maxWidth;if(h&&d)a.top=j-c.minHeight;if(f&&d)a.top=j-c.maxHeight;if((c=!a.width&&!a.height)&&!a.left&&a.top)a.top=null;else if(c&&!a.top&&a.left)a.left=null;return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var c=this.helper||this.element,d=0;d<this._proportionallyResizeElements.length;d++){var b=this._proportionallyResizeElements[d];if(!this.borderDif){var e=[b.css("borderTopWidth"),b.css("borderRightWidth"),b.css("borderBottomWidth"),b.css("borderLeftWidth")],f=[b.css("paddingTop"),b.css("paddingRight"),b.css("paddingBottom"),b.css("paddingLeft")];this.borderDif=a.map(e,function(a,b){a=parseInt(a,10)||0;b=parseInt(f[b],10)||0;return a+b})}a.browser.msie&&(a(c).is(":hidden")||a(c).parents(":hidden").length)||b.css({height:c.height()-this.borderDif[0]-this.borderDif[2]||0,width:c.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var d=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var b=a.browser.msie&&a.browser.version<7,c=b?1:0;b=b?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++d.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(c,b,a){return{top:this.originalPosition.top+a,height:this.originalSize.height-a}},s:function(c,b,a){return{height:this.originalSize.height+a}},se:function(c,b,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[c,b,d]))},sw:function(c,b,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[c,b,d]))},ne:function(c,b,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[c,b,d]))},nw:function(c,b,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[c,b,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]);b!="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.15"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("resizable").options,c=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10),position:b.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];c(b.alsoResize)}else a.each(b.alsoResize,function(a){c(a)});else c(b.alsoResize)},resize:function(c,g){var b=a(this).data("resizable");c=b.options;var d=b.originalSize,e=b.originalPosition,h={height:b.size.height-d.height||0,width:b.size.width-d.width||0,top:b.position.top-e.top||0,left:b.position.left-e.left||0},f=function(d,c){a(d).each(function(){var d=a(this),f=a(this).data("resizable-alsoresize"),e={},i=c&&c.length?c:d.parents(g.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(i,function(a,b){if((a=(f[b]||0)+(h[b]||0))&&a>=0)e[b]=a||null});if(a.browser.opera&&/relative/.test(d.css("position"))){b._revertToRelativePosition=true;d.css({position:"absolute",top:"auto",left:"auto"})}d.css(e)})};typeof c.alsoResize=="object"&&!c.alsoResize.nodeType?a.each(c.alsoResize,function(a,b){f(a,b)}):f(c.alsoResize)},stop:function(){var c=a(this).data("resizable"),b=c.options,d=function(b){a(b).each(function(){var b=a(this);b.css({position:b.data("resizable-alsoresize").position})})};if(c._revertToRelativePosition){c._revertToRelativePosition=false;typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?a.each(b.alsoResize,function(a){d(a)}):d(b.alsoResize)}a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(h){var b=a(this).data("resizable"),f=b.options,c=b._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),e=d&&a.ui.hasScroll(c[0],"left")?0:b.sizeDiff.height;d={width:b.size.width-(d?0:b.sizeDiff.width),height:b.size.height-e};e=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null;var g=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;b.element.animate(a.extend(d,g&&e?{top:g,left:e}:{}),{duration:f.animateDuration,easing:f.animateEasing,step:function(){var d={width:parseInt(b.element.css("width"),10),height:parseInt(b.element.css("height"),10),top:parseInt(b.element.css("top"),10),left:parseInt(b.element.css("left"),10)};c&&c.length&&a(c[0]).css({width:d.width,height:d.height});b._updateCache(d);b._propagate("resize",h)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var b=a(this).data("resizable"),d=b.element,e=b.options.containment;if(d=e instanceof a?e.get(0):/parent/.test(e)?d.parent().get(0):e){b.containerElement=a(d);if(/document/.test(e)||e==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var f=a(d),g=[];a(["Top","Right","Left","Bottom"]).each(function(a,b){g[a]=c(f.css("padding"+b))});b.containerOffset=f.offset();b.containerPosition=f.position();b.containerSize={height:f.innerHeight()-g[3],width:f.innerWidth()-g[1]};e=b.containerOffset;var h=b.containerSize.height,i=b.containerSize.width;i=a.ui.hasScroll(d,"left")?d.scrollWidth:i;h=a.ui.hasScroll(d)?d.scrollHeight:h;b.parentData={element:d,left:e.left,top:e.top,width:i,height:h}}}},resize:function(f){var b=a(this).data("resizable"),d=b.options,c=b.containerOffset,g=b.position;f=b._aspectRatio||f.shiftKey;var e={top:0,left:0},h=b.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))e=c;if(g.left<(b._helper?c.left:0)){b.size.width+=b._helper?b.position.left-c.left:b.position.left-e.left;if(f)b.size.height=b.size.width/d.aspectRatio;b.position.left=d.helper?c.left:0}if(g.top<(b._helper?c.top:0)){b.size.height+=b._helper?b.position.top-c.top:b.position.top;if(f)b.size.width=b.size.height*d.aspectRatio;b.position.top=b._helper?c.top:0}b.offset.left=b.parentData.left+b.position.left;b.offset.top=b.parentData.top+b.position.top;d=Math.abs((b._helper?b.offset.left-e.left:b.offset.left-e.left)+b.sizeDiff.width);c=Math.abs((b._helper?b.offset.top-e.top:b.offset.top-c.top)+b.sizeDiff.height);g=b.containerElement.get(0)==b.element.parent().get(0);e=/relative|absolute/.test(b.containerElement.css("position"));if(g&&e)d-=b.parentData.left;if(d+b.size.width>=b.parentData.width){b.size.width=b.parentData.width-d;if(f)b.size.height=b.size.width/b.aspectRatio}if(c+b.size.height>=b.parentData.height){b.size.height=b.parentData.height-c;if(f)b.size.width=b.size.height*b.aspectRatio}},stop:function(){var b=a(this).data("resizable"),d=b.options,e=b.containerOffset,f=b.containerPosition,g=b.containerElement,c=a(b.helper),h=c.offset(),i=c.outerWidth()-b.sizeDiff.width;c=c.outerHeight()-b.sizeDiff.height;b._helper&&!d.animate&&/relative/.test(g.css("position"))&&a(this).css({left:h.left-f.left-e.left,width:i,height:c});b._helper&&!d.animate&&/static/.test(g.css("position"))&&a(this).css({left:h.left-f.left-e.left,width:i,height:c})}});a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("resizable"),c=b.options,d=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof c.ghost=="string"?c.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var c=a(this).data("resizable"),b=c.options,h=c.size,d=c.originalSize,f=c.originalPosition,g=c.axis;b.grid=typeof b.grid=="number"?[b.grid,b.grid]:b.grid;var e=Math.round((h.width-d.width)/(b.grid[0]||1))*(b.grid[0]||1);b=Math.round((h.height-d.height)/(b.grid[1]||1))*(b.grid[1]||1);if(/^(se|s|e)$/.test(g)){c.size.width=d.width+e;c.size.height=d.height+b}else if(/^(ne)$/.test(g)){c.size.width=d.width+e;c.size.height=d.height+b;c.position.top=f.top-b}else{if(/^(sw)$/.test(g)){c.size.width=d.width+e;c.size.height=d.height+b}else{c.size.width=d.width+e;c.size.height=d.height+b;c.position.top=f.top-b}c.position.left=f.left-e}}});var c=function(a){return parseInt(a,10)||0},b=function(a){return!isNaN(parseInt(a,10))}})(jQuery);(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var b;this.refresh=function(){b=a(c.options.filter,c.element[0]);b.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:false,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})};this.refresh();this.selectees=b.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(b){var d=this;this.opos=[b.pageX,b.pageY];if(!this.options.disabled){var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger("start",b);a(c.appendTo).append(this.helper);this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0});c.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var c=a.data(this,"selectable-item");c.startselected=true;if(!b.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;d._trigger("unselecting",b,{unselecting:c.element})}});a(b.target).parents().andSelf().each(function(){var c=a.data(this,"selectable-item");if(c){var e=!b.metaKey||!c.$element.hasClass("ui-selected");c.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting");c.unselecting=!e;c.selecting=e;(c.selected=e)?d._trigger("selecting",b,{selecting:c.element}):d._trigger("unselecting",b,{unselecting:c.element});return false}})}},_mouseDrag:function(c){var g=this;this.dragged=true;if(!this.options.disabled){var i=this.options,b=this.opos[0],d=this.opos[1],e=c.pageX,f=c.pageY;if(b>e){var h=e;e=b;b=h}if(d>f){h=f;f=d;d=h}this.helper.css({left:b,top:d,width:e-b,height:f-d});this.selectees.each(function(){var h=a.data(this,"selectable-item");if(!(!h||h.element==g.element[0])){var j=false;if(i.tolerance=="touch")j=!(h.left>e||h.right<b||h.top>f||h.bottom<d);else if(i.tolerance=="fit")j=h.left>b&&h.right<e&&h.top>d&&h.bottom<f;if(j){if(h.selected){h.$element.removeClass("ui-selected");h.selected=false}if(h.unselecting){h.$element.removeClass("ui-unselecting");h.unselecting=false}if(!h.selecting){h.$element.addClass("ui-selecting");h.selecting=true;g._trigger("selecting",c,{selecting:h.element})}}else{if(h.selecting)if(c.metaKey&&h.startselected){h.$element.removeClass("ui-selecting");h.selecting=false;h.$element.addClass("ui-selected");h.selected=true}else{h.$element.removeClass("ui-selecting");h.selecting=false;if(h.startselected){h.$element.addClass("ui-unselecting");h.unselecting=true}g._trigger("unselecting",c,{unselecting:h.element})}if(h.selected)if(!c.metaKey&&!h.startselected){h.$element.removeClass("ui-selected");h.selected=false;h.$element.addClass("ui-unselecting");h.unselecting=true;g._trigger("unselecting",c,{unselecting:h.element})}}}});return false}},_mouseStop:function(b){var c=this;this.dragged=false;a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;c._trigger("unselected",b,{unselected:d.element})});a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;c._trigger("selected",b,{selected:d.element})});this._trigger("stop",b);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.15"})})(jQuery);(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(b,c){if(b==="disabled"){this.options[b]=c;this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")}else a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(b);var c=null,d=this;a(b.target).parents().each(function(){if(a.data(this,"sortable-item")==d){c=a(this);return false}});if(a.data(b.target,"sortable-item")==d)c=a(b.target);if(!c)return false;if(this.options.handle&&!f){var e=false;a(this.options.handle,c).find("*").andSelf().each(function(){if(this==b.target)e=true});if(!e)return false}this.currentItem=c;this._removeCurrentsFromItems();return true},_mouseStart:function(c,b,d){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(c);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();if(b.cursor){if(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",c,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!d)for(d=this.containers.length-1;d>=0;d--)this.containers[d]._trigger("activate",c,e._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(c);return true},_mouseDrag:function(c){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,d=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-c.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(c.pageY-this.overflowOffset.top<b.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-c.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(c.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(c.pageY-a(document).scrollTop()<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed);else if(a(window).height()-(c.pageY-a(document).scrollTop())<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed);if(c.pageX-a(document).scrollLeft()<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed)}d!==false&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){d=this.items[b];var e=d.item[0],f=this._intersectsWithPointer(d);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!a.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(d))this._rearrange(c,d);else break;this._trigger("change",c,this._uiHash());break}}this._contactContainers(c);a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);this._trigger("sort",c,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(c){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,c);if(this.options.revert){var b=this;d=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else this._clear(c,d);return false}},cancel:function(){var c=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,c._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,c._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(b){var d=this._getItemsAsjQuery(b&&b.connected),c=[];b=b||{};a(d).each(function(){var d=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);d&&c.push((b.key||d[1]+"[]")+"="+(b.key&&b.expression?d[1]:d[2]))});!c.length&&b.key&&c.push(b.key+"=");return c.join("&")},toArray:function(b){var d=this._getItemsAsjQuery(b&&b.connected),c=[];b=b||{};d.each(function(){c.push(a(b.item||this).attr(b.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,j=b+this.helperProportions.width,c=this.positionAbs.top,k=c+this.helperProportions.height,e=a.left,g=e+a.width,f=a.top,h=f+a.height,d=this.offset.click.top,i=this.offset.click.left;d=c+d>f&&c+d<h&&b+i>e&&b+i<g;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?d:e<b+this.helperProportions.width/2&&j-this.helperProportions.width/2<g&&f<c+this.helperProportions.height/2&&k-this.helperProportions.height/2<h},_intersectsWithPointer:function(b){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height);b=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width);c=c&&b;b=this._getDragVerticalDirection();var d=this._getDragHorizontalDirection();return!c?false:this.floating?d&&d=="right"||b=="down"?2:1:b&&(b=="down"?2:1)},_intersectsWithSides:function(b){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);var c=this._getDragVerticalDirection(),d=this._getDragHorizontalDirection();return this.floating&&d?d=="right"&&b||d=="left"&&!b:c&&(c=="down"&&e||c=="up"&&!e)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var g=[],d=[],e=this._connectWith();if(e&&b)for(b=e.length-1;b>=0;b--)for(var h=a(e[b]),f=h.length-1;f>=0;f--){var c=a.data(h[f],"sortable");c&&c!=this&&!c.options.disabled&&d.push([a.isFunction(c.options.items)?c.options.items.call(c.element):a(c.options.items,c.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),c])}d.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=d.length-1;b>=0;b--)d[b][0].each(function(){g.push(this)});return a(g)},_removeCurrentsFromItems:function(){for(var c=this.currentItem.find(":data(sortable-item)"),a=0;a<this.items.length;a++)for(var b=0;b<c.length;b++)c[b]==this.items[a].item[0]&&this.items.splice(a,1)},_refreshItems:function(f){this.items=[];this.containers=[this];var i=this.items,g=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],f,{item:this.currentItem}):a(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var c=e.length-1;c>=0;c--)for(var h=a(e[c]),d=h.length-1;d>=0;d--){var b=a.data(h[d],"sortable");if(b&&b!=this&&!b.options.disabled){g.push([a.isFunction(b.options.items)?b.options.items.call(b.element[0],f,{item:this.currentItem}):a(b.options.items,b.element),b]);this.containers.push(b)}}for(c=g.length-1;c>=0;c--){f=g[c][1];e=g[c][0];d=0;for(h=e.length;d<h;d++){b=a(e[d]);b.data("sortable-item",f);i.push({item:b,instance:f,width:0,height:0,left:0,top:0})}}},refreshPositions:function(e){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var d=this.items[b];if(!(d.instance!=this.currentContainer&&this.currentContainer&&d.item[0]!=this.currentItem[0])){var c=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item;if(!e){d.width=c.outerWidth();d.height=c.outerHeight()}c=c.offset();d.left=c.left;d.top=c.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=this.containers.length-1;b>=0;b--){c=this.containers[b].element.offset();this.containers[b].containerCache.left=c.left;this.containers[b].containerCache.top=c.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(e){var b=e||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var d=c.placeholder;c.placeholder={element:function(){var c=a(document.createElement(b.currentItem[0].nodeName)).addClass(d||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!d)c.style.visibility="hidden";return c},update:function(e,a){if(!(d&&!c.forcePlaceholderSize)){a.height()||a.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));a.width()||a.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=a(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(d){for(var e=null,c=null,b=this.containers.length-1;b>=0;b--)if(!a.ui.contains(this.currentItem[0],this.containers[b].element[0]))if(this._intersectsWith(this.containers[b].containerCache)){if(!(e&&a.ui.contains(this.containers[b].element[0],e.element[0]))){e=this.containers[b];c=b}}else if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",d,this._uiHash(this));this.containers[b].containerCache.over=0}if(e)if(this.containers.length===1){this.containers[c]._trigger("over",d,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){e=1e4;b=null;for(var g=this.positionAbs[this.containers[c].floating?"left":"top"],f=this.items.length-1;f>=0;f--)if(a.ui.contains(this.containers[c].element[0],this.items[f].item[0])){var h=this.items[f][this.containers[c].floating?"left":"top"];if(Math.abs(h-g)<e){e=Math.abs(h-g);b=this.items[f]}}if(b||this.options.dropOnEmpty){this.currentContainer=this.containers[c];b?this._rearrange(d,b,null,true):this._rearrange(d,null,this.containers[c].element,true);this._trigger("change",d,this._uiHash());this.containers[c]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",d,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(b){var c=this.options;b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;b.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);if(b[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};(b[0].style.width==""||c.forceHelperSize)&&b.width(this.currentItem.width());(b[0].style.height==""||c.forceHelperSize)&&b.height(this.currentItem.height());return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(a.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)){var b=a(c.containment)[0];c=a(c.containment).offset();var d=a(b).css("overflow")!="hidden";this.containment=[c.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,c){if(!c)c=this.position;b=b=="absolute"?1:-1;var d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())*b)}},_generatePosition:function(e){var d=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var b=e.pageX,c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0])b=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])c=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])b=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])c=this.containment[3]+this.offset.click.top}if(d.grid){c=this.originalPageY+Math.round((c-this.originalPageY)/d.grid[1])*d.grid[1];c=this.containment?!(c-this.offset.click.top<this.containment[1]||c-this.offset.click.top>this.containment[3])?c:!(c-this.offset.click.top<this.containment[1])?c-d.grid[1]:c+d.grid[1]:c;b=this.originalPageX+Math.round((b-this.originalPageX)/d.grid[0])*d.grid[0];b=this.containment?!(b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2])?b:!(b-this.offset.click.left<this.containment[0])?b-d.grid[0]:b+d.grid[0]:b}}return{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())}},_rearrange:function(f,a,b,d){b?b[0].appendChild(this.placeholder[0]):a.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?a.item[0]:a.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var c=this,e=this.counter;window.setTimeout(function(){e==c.counter&&c.refreshPositions(!d)},0)},_clear:function(e,d){this.reverting=false;var c=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var b in this._storedCSS)if(this._storedCSS[b]=="auto"||this._storedCSS[b]=="static")this._storedCSS[b]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&c.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))});(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!d&&c.push(function(a){this._trigger("update",a,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){d||c.push(function(a){this._trigger("remove",a,this._uiHash())});for(b=this.containers.length-1;b>=0;b--)if(a.ui.contains(this.containers[b].element[0],this.currentItem[0])&&!d){c.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.containers[b]));c.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.containers[b]))}}for(b=this.containers.length-1;b>=0;b--){d||c.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[b]));if(this.containers[b].containerCache.over){c.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[b]));this.containers[b].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",e,this._uiHash());for(b=0;b<c.length;b++)c[b].call(this,e);this._trigger("stop",e,this._uiHash())}return false}d||this._trigger("beforeStop",e,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(b=0;b<c.length;b++)c[b].call(this,e);this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}});a.extend(a.ui.sortable,{version:"1.8.15"})})(jQuery);(function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var b=this,c=b.options;b.running=0;b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");b.headers=b.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c.disabled||a(this).removeClass("ui-state-focus")});b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var d=b.element.find("a").filter(c.navigationFilter).eq(0);if(d.length){var e=d.closest(".ui-accordion-header");b.active=e.length?e:d.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");b.active.next().addClass("ui-accordion-content-active");b._createIcons();b.resize();b.element.attr("role","tablist");b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel");b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();b.active.length?b.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0);a.browser.safari||b.headers.find("a").attr("tabIndex",-1);c.event&&b.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this);a.preventDefault()})},_createIcons:function(){var b=this.options;if(b.icons){a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");(b.autoHeight||b.fillHeight)&&c.css("height","");return a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);b=="active"&&this.activate(c);if(b=="icons"){this._destroyIcons();c&&this._createIcons()}b=="disabled"&&this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(!(this.options.disabled||b.altKey||b.ctrlKey)){var c=a.ui.keyCode,e=this.headers.length,f=this.headers.index(b.target),d=false;switch(b.keyCode){case c.RIGHT:case c.DOWN:d=this.headers[(f+1)%e];break;case c.LEFT:case c.UP:d=this.headers[(f-1+e)%e];break;case c.SPACE:case c.ENTER:this._clickHandler({target:b.target},b.target);b.preventDefault()}if(d){a(b.target).attr("tabIndex",-1);a(d).attr("tabIndex",0);d.focus();return false}return true}},resize:function(){var c=this.options,b;if(c.fillSpace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else if(c.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,a(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(b){return b?typeof b==="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(c,d){var b=this.options;if(!b.disabled)if(c.target){c=a(c.currentTarget||d);d=c[0]===this.active[0];b.active=b.collapsible&&d?false:this.headers.index(c);if(!(this.running||!b.collapsible&&d)){var i=this.active;f=c.next();e=this.active.next();g={options:b,newHeader:d&&b.collapsible?a([]):c,oldHeader:this.active,newContent:d&&b.collapsible?a([]):f,oldContent:e};var h=this.headers.index(this.active[0])>this.headers.index(c[0]);this.active=d?a([]):c;this._toggle(f,e,g,d,h);i.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(b.icons.headerSelected).addClass(b.icons.header);if(!d){c.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(b.icons.header).addClass(b.icons.headerSelected);c.next().addClass("ui-accordion-content-active")}}}else if(b.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(b.icons.headerSelected).addClass(b.icons.header);this.active.next().addClass("ui-accordion-content-active");var e=this.active.next(),g={options:b,newHeader:a([]),oldHeader:b.active,newContent:a([]),oldContent:e},f=this.active=a([]);this._toggle(f,e,g)}},_toggle:function(g,e,h,f,j){var c=this,b=c.options;c.toShow=g;c.toHide=e;c.data=h;var i=function(){if(c)return c._completed.apply(c,arguments)};c._trigger("changestart",null,c.data);c.running=e.size()===0?g.size():e.size();if(b.animated){h={};h=b.collapsible&&f?{toShow:a([]),toHide:e,complete:i,down:j,autoHeight:b.autoHeight||b.fillSpace}:{toShow:g,toHide:e,complete:i,down:j,autoHeight:b.autoHeight||b.fillSpace};if(!b.proxied)b.proxied=b.animated;if(!b.proxiedDuration)b.proxiedDuration=b.duration;b.animated=a.isFunction(b.proxied)?b.proxied(h):b.proxied;b.duration=a.isFunction(b.proxiedDuration)?b.proxiedDuration(h):b.proxiedDuration;f=a.ui.accordion.animations;var k=b.duration,d=b.animated;if(d&&!f[d]&&!a.easing[d])d="slide";f[d]||(f[d]=function(a){this.slide(a,{easing:d,duration:k||700})});f[d](h)}else{if(b.collapsible&&f)g.toggle();else{e.hide();g.show()}i(true)}e.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();g.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});a.extend(a.ui.accordion,{version:"1.8.15",animations:{slide:function(b,c){b=a.extend({easing:"swing",duration:300},b,c);if(b.toHide.size())if(b.toShow.size()){var h=b.toShow.css("overflow"),g=0,d={},f={},e;c=b.toShow;e=c[0].style.width;c.width(parseInt(c.parent().width(),10)-parseInt(c.css("paddingLeft"),10)-parseInt(c.css("paddingRight"),10)-(parseInt(c.css("borderLeftWidth"),10)||0)-(parseInt(c.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(e,c){f[c]="hide";e=(""+a.css(b.toShow[0],c)).match(/^([\d+-.]+)(.*)$/);d[c]={value:e[1],unit:e[2]||"px"}});b.toShow.css({height:0,overflow:"hidden"}).show();b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(f,{step:function(c,a){if(a.prop=="height")g=a.end-a.start===0?0:(a.now-a.start)/(a.end-a.start);b.toShow[0].style[a.prop]=g*d[a.prop].value+d[a.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height","");b.toShow.css({width:e,overflow:h});b.complete()}})}else b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b);else b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})})(jQuery);(function(a){var b=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,d=this.element[0].ownerDocument,c;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(d){if(!(b.options.disabled||b.element.propAttr("readOnly"))){c=false;var e=a.ui.keyCode;switch(d.keyCode){case e.PAGE_UP:b._move("previousPage",d);break;case e.PAGE_DOWN:b._move("nextPage",d);break;case e.UP:b._move("previous",d);d.preventDefault();break;case e.DOWN:b._move("next",d);d.preventDefault();break;case e.ENTER:case e.NUMPAD_ENTER:if(b.menu.active){c=true;d.preventDefault()}case e.TAB:if(!b.menu.active)return;b.menu.select(d);break;case e.ESCAPE:b.element.val(b.term);b.close(d);break;default:clearTimeout(b.searching);b.searching=setTimeout(function(){if(b.term!=b.element.val()){b.selectedItem=null;b.search(null,d)}},b.options.delay)}}}).bind("keypress.autocomplete",function(a){if(c){c=false;a.preventDefault()}}).bind("focus.autocomplete",function(){if(!b.options.disabled){b.selectedItem=null;b.previous=b.element.val()}}).bind("blur.autocomplete",function(a){if(!b.options.disabled){clearTimeout(b.searching);b.closing=setTimeout(function(){b.close(a);b._change(a)},150)}});this._initSource();this.response=function(){return b._response.apply(b,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",d)[0]).mousedown(function(d){var c=b.menu.element[0];a(d.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(d){d.target!==b.element[0]&&d.target!==c&&!a.ui.contains(c,d.target)&&b.close()})},1);setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(c,a){a=a.item.data("item.autocomplete");false!==b._trigger("focus",c,{item:a})&&/^key/.test(c.originalEvent.type)&&b.element.val(a.value)},selected:function(c,f){var a=f.item.data("item.autocomplete"),e=b.previous;if(b.element[0]!==d.activeElement){b.element.focus();b.previous=e;setTimeout(function(){b.previous=e;b.selectedItem=a},1)}false!==b._trigger("select",c,{item:a})&&b.element.val(a.value);b.term=b.element.val();b.close(c);b.selectedItem=a},blur:function(){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);b==="source"&&this._initSource();b==="appendTo"&&this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0]);b==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var c=this,d,e;if(a.isArray(this.options.source)){d=this.options.source;this.source=function(b,c){c(a.ui.autocomplete.filter(d,b.term))}}else if(typeof this.options.source==="string"){e=this.options.source;this.source=function(f,d){c.xhr&&c.xhr.abort();c.xhr=a.ajax({url:e,data:f,dataType:"json",autocompleteRequest:++b,success:function(a){this.autocompleteRequest===b&&d(a)},error:function(){this.autocompleteRequest===b&&d([])}})}}else this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==false)return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(!this.options.disabled&&a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return typeof b==="string"?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(c){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,c);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(a.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new a.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(b,c){var d=this;a.each(c,function(c,a){d._renderItem(b,a)})},_renderItem:function(c,b){return a("<li></li>").data("item.autocomplete",b).append(a("<a></a>").text(b.label)).appendTo(c)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}})})(jQuery);(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(a(c.target).closest(".ui-menu-item a").length){c.preventDefault();b.select(c)}});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,d=this.element.scrollTop(),c=this.element.height();if(b<0)this.element.scrollTop(d+b);else b>=c&&this.element.scrollTop(d+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,c,b){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0);a.length?this.activate(b,a):this.activate(b,this.element.children(c))}else this.activate(b,this.element.children(c))},nextPage:function(b){if(this.hasScroll())if(!this.active||this.last())this.activate(b,this.element.children(".ui-menu-item:first"));else{var d=this.active.offset().top,e=this.element.height(),c=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-d-e+a(this).height();return b<10&&b>-10});c.length||(c=this.element.children(".ui-menu-item:last"));this.activate(b,c)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll())if(!this.active||this.first())this.activate(b,this.element.children(".ui-menu-item:last"));else{var c=this.active.offset().top,d=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c+d-a(this).height();return b<10&&b>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(b,result)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(a){this._trigger("selected",a,{item:this.active})}})})(jQuery);(function(a){var c,d,e,b,g=function(){var b=a(this).find(":ui-button");setTimeout(function(){b.button("refresh")},1)},f=function(b){var c=b.name,d=b.form,e=a([]);if(c)e=d?a(d).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form});return e};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",g);if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.propAttr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var i=this,h=this.options,j=this.type==="checkbox"||this.type==="radio",k="ui-state-hover"+(!j?" ui-state-active":"");if(h.label===null)h.label=this.buttonElement.html();if(this.element.is(":disabled"))h.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!h.disabled){a(this).addClass("ui-state-hover");this===c&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){h.disabled||a(this).removeClass(k)}).bind("click.button",function(a){if(h.disabled){a.preventDefault();a.stopImmediatePropagation()}});this.element.bind("focus.button",function(){i.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){i.buttonElement.removeClass("ui-state-focus")});if(j){this.element.bind("change.button",function(){b||i.refresh()});this.buttonElement.bind("mousedown.button",function(a){if(!h.disabled){b=false;d=a.pageX;e=a.pageY}}).bind("mouseup.button",function(a){if(!h.disabled)if(d!==a.pageX||e!==a.pageY)b=true})}if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(h.disabled||b)return false;a(this).toggleClass("ui-state-active");i.buttonElement.attr("aria-pressed",i.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(h.disabled||b)return false;a(this).addClass("ui-state-active");i.buttonElement.attr("aria-pressed","true");var c=i.element[0];f(c).not(c).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")});else{this.buttonElement.bind("mousedown.button",function(){if(h.disabled)return false;a(this).addClass("ui-state-active");c=this;a(document).one("mouseup",function(){c=null})}).bind("mouseup.button",function(){if(h.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(b){if(h.disabled)return false;(b.keyCode==a.ui.keyCode.SPACE||b.keyCode==a.ui.keyCode.ENTER)&&a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",h.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){var a=this.element.parents().filter(":last"),b="label[for="+this.element.attr("id")+"]";this.buttonElement=a.find(b);if(!this.buttonElement.length){a=a.length?a.siblings():this.element.siblings();this.buttonElement=a.filter(b);if(!this.buttonElement.length)this.buttonElement=a.find(b)}this.element.addClass("ui-helper-hidden-accessible");(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",a)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);if(b==="disabled")c?this.element.propAttr("disabled",true):this.element.propAttr("disabled",false);else this._resetButton()},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b);if(this.type==="radio")f(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var c=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),f=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(c.empty()).text(),b=this.options.icons,e=b.primary&&b.secondary,d=[];if(b.primary||b.secondary){this.options.text&&d.push("ui-button-text-icon"+(e?"s":b.primary?"-primary":"-secondary"));b.primary&&c.prepend("<span class='ui-button-icon-primary ui-icon "+b.primary+"'></span>");b.secondary&&c.append("<span class='ui-button-icon-secondary ui-icon "+b.secondary+"'></span>");if(!this.options.text){d.push(e?"ui-button-icons-only":"ui-button-icon-only");this.hasTitle||c.attr("title",f)}}else d.push("ui-button-text-only");c.addClass(d.join(" "))}}});a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var b=this.element.css("direction")==="ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(b?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery);(function(a,b){var c={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},d={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},e=a.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var b=this,c=b.options,h=c.title||"&#160;",g=a.ui.dialog.getTitleId(b.element),f=(b.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(d){if(c.closeOnEscape&&d.keyCode&&d.keyCode===a.ui.keyCode.ESCAPE){b.close(d);d.preventDefault()}}).attr({role:"dialog","aria-labelledby":g}).mousedown(function(a){b.moveToTop(false,a)});b.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(f);var e=(b.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(f),d=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){d.addClass("ui-state-hover")},function(){d.removeClass("ui-state-hover")}).focus(function(){d.addClass("ui-state-focus")}).blur(function(){d.removeClass("ui-state-focus")}).click(function(a){b.close(a);return false}).appendTo(e);(b.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(d);a("<span></span>").addClass("ui-dialog-title").attr("id",g).html(h).prependTo(e);if(a.isFunction(c.beforeclose)&&!a.isFunction(c.beforeClose))c.beforeClose=c.beforeclose;e.find("*").add(e).disableSelection();c.draggable&&a.fn.draggable&&b._makeDraggable();c.resizable&&a.fn.resizable&&b._makeResizable();b._createButtons(c.buttons);b._isOpen=false;a.fn.bgiframe&&f.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(d){var b=this,c,e;if(false!==b._trigger("beforeClose",d)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",d)});else{b.uiDialog.hide();b._trigger("close",d)}a.ui.dialog.overlay.resize();if(b.options.modal){c=0;a(".ui-dialog").each(function(){if(this!==b.uiDialog[0]){e=a(this).css("z-index");isNaN(e)||(c=Math.max(c,e))}});a.ui.dialog.maxZ=c}return b}},isOpen:function(){return this._isOpen},moveToTop:function(d,e){var b=this,c=b.options;if(c.modal&&!d||!c.stack&&!c.modal)return b._trigger("focus",e);if(c.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=c.zIndex;if(b.overlay){a.ui.dialog.maxZ+=1;b.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}d={scrollTop:b.element.scrollTop(),scrollLeft:b.element.scrollLeft()};a.ui.dialog.maxZ+=1;b.uiDialog.css("z-index",a.ui.dialog.maxZ);b.element.attr(d);b._trigger("focus",e);return b},open:function(){if(!this._isOpen){var b=this,c=b.options,d=b.uiDialog;b.overlay=c.modal?new a.ui.dialog.overlay(b):null;b._size();b._position(c.position);d.show(c.show);b.moveToTop(true);c.modal&&d.bind("keypress.ui-dialog",function(b){if(b.keyCode===a.ui.keyCode.TAB){var c=a(":tabbable",this),d=c.filter(":first");c=c.filter(":last");if(b.target===c[0]&&!b.shiftKey){d.focus(1);return false}else if(b.target===d[0]&&b.shiftKey){c.focus(1);return false}}});a(b.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();b._isOpen=true;b._trigger("open");return b}},_createButtons:function(b){var c=this,d=false,f=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(f);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof b==="object"&&b!==null&&a.each(b,function(){return!(d=true)});if(d){a.each(b,function(f,b){b=a.isFunction(b)?{click:b,text:f}:b;var d=a('<button type="button"></button>').click(function(){b.click.apply(c.element[0],arguments)}).appendTo(g);a.each(b,function(a,b){if(a!=="click")a in e?d[a](b):d.attr(a,b)});a.fn.button&&d.button()});f.appendTo(c.uiDialog)}},_makeDraggable:function(){function c(a){return{position:a.position,offset:a.offset}}var b=this,d=b.options,e=a(document),f;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,g){f=d.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",e,c(g))},drag:function(a,d){b._trigger("drag",a,c(d))},stop:function(h,g){d.position=[g.position.left-e.scrollLeft(),g.position.top-e.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(f);b._trigger("dragStop",h,c(g));a.ui.dialog.overlay.resize()}})},_makeResizable:function(d){function f(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}d=d===b?this.options.resizable:d;var c=this,e=c.options,g=c.uiDialog.css("position");d=typeof d==="string"?d:"n,e,s,w,se,sw,ne,nw";c.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:c.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:c._minHeight(),handles:d,start:function(b,d){a(this).addClass("ui-dialog-resizing");c._trigger("resizeStart",b,f(d))},resize:function(a,b){c._trigger("resize",a,f(b))},stop:function(b,d){a(this).removeClass("ui-dialog-resizing");e.height=a(this).height();e.width=a(this).width();c._trigger("resizeStop",b,f(d));a.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(b){var c=[],d=[0,0],e;if(b){if(typeof b==="string"||typeof b==="object"&&"0"in b){c=b.split?b.split(" "):[b[0],b[1]];if(c.length===1)c[1]=c[0];a.each(["left","top"],function(a,b){if(+c[a]===c[a]){d[a]=c[a];c[a]=b}});b={my:c.join(" "),at:c.join(" "),offset:d.join(" ")}}b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},b));e||this.uiDialog.hide()},_setOptions:function(f){var g=this,b={},e=false;a.each(f,function(a,f){g._setOption(a,f);if(a in c)e=true;if(a in d)b[a]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",b)},_setOption:function(f,b){var c=this,d=c.uiDialog;switch(f){case"beforeclose":f="beforeClose";break;case"buttons":c._createButtons(b);break;case"closeText":c.uiDialogTitlebarCloseText.text(""+b);break;case"dialogClass":d.removeClass(c.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case"disabled":b?d.addClass("ui-dialog-disabled"):d.removeClass("ui-dialog-disabled");break;case"draggable":var e=d.is(":data(draggable)");e&&!b&&d.draggable("destroy");!e&&b&&c._makeDraggable();break;case"position":c._position(b);break;case"resizable":(e=d.is(":data(resizable)"))&&!b&&d.resizable("destroy");e&&typeof b==="string"&&d.resizable("option","handles",b);!e&&b!==false&&c._makeResizable(b);break;case"title":a(".ui-dialog-title",c.uiDialogTitlebar).html(""+(b||"&#160;"))}a.Widget.prototype._setOption.apply(c,arguments)},_size:function(){var b=this.options,c,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(b.minWidth>b.width)b.width=b.minWidth;c=this.uiDialog.css({height:"auto",width:b.width}).height();d=Math.max(0,b.minHeight-c);if(b.height==="auto")if(a.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();b=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(b,d))}else this.element.height(Math.max(b.height-c,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.15",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(c){if(this.instances.length===0){setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zIndex()<a.ui.dialog.overlay.maxZ)return false})},1);a(document).bind("keydown.dialog-overlay",function(b){if(c.options.closeOnEscape&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE){c.close(b);b.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(c){var d=a.inArray(c,this.instances);d!=-1&&this.oldInstances.push(this.instances.splice(d,1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");c.remove();var b=0;a.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var b,c;if(a.browser.msie&&a.browser.version<7){b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return b<c?a(window).height()+"px":b+"px"}else return a(document).height()+"px"},width:function(){var b,c;if(a.browser.msie){b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return b<c?a(window).width()+"px":b+"px"}else return a(document).width()+"px"},resize:function(){var b=a([]);a.each(a.ui.dialog.overlay.instances,function(){b=b.add(this)});b.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var b=this,c=this.options,d=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),g=c.values&&c.values.length||1,e=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(c.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);if(c.range){if(c.range===true){if(!c.values)c.values=[this._valueMin(),this._valueMin()];if(c.values.length&&c.values.length!==2)c.values=[c.values[0],c.values[0]]}this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(c.range==="min"||c.range==="max"?" ui-slider-range-"+c.range:""))}for(var f=d.length;f<g;f+=1)e.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=d.add(a(e.join("")).appendTo(b.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){c.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(c.disabled)a(this).blur();else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",b)});this.handles.keydown(function(e){var h=true,f=a(this).data("index.ui-slider-handle"),d,c,g;if(!b.options.disabled){switch(e.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:h=false;if(!b._keySliding){b._keySliding=true;a(this).addClass("ui-state-active");d=b._start(e,f);if(d===false)return}}g=b.options.step;d=b.options.values&&b.options.values.length?c=b.values(f):c=b.value();switch(e.keyCode){case a.ui.keyCode.HOME:c=b._valueMin();break;case a.ui.keyCode.END:c=b._valueMax();break;case a.ui.keyCode.PAGE_UP:c=b._trimAlignValue(d+(b._valueMax()-b._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:c=b._trimAlignValue(d-(b._valueMax()-b._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(d===b._valueMax())return;c=b._trimAlignValue(d+g);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(d===b._valueMin())return;c=b._trimAlignValue(d-g)}b._slide(e,f,c);return h}}).keyup(function(c){var d=a(this).data("index.ui-slider-handle");if(b._keySliding){b._keySliding=false;b._stop(c,d);b._change(c,d);a(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(c){var d=this.options,f,g,b,h,e;if(d.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();f=this._normValueFromMouse({x:c.pageX,y:c.pageY});g=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(c){var d=Math.abs(f-h.values(c));if(g>d){g=d;b=a(this);e=c}});if(d.range===true&&this.values(1)===d.min){e+=1;b=a(this.handles[e])}if(this._start(c,e)===false)return false;this._mouseSliding=true;h._handleIndex=e;b.addClass("ui-state-active").focus();d=b.offset();this._clickOffset=!a(c.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:c.pageX-d.left-b.width()/2,top:c.pageY-d.top-b.height()/2-(parseInt(b.css("borderTopWidth"),10)||0)-(parseInt(b.css("borderBottomWidth"),10)||0)+(parseInt(b.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(c,e,f);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var a;if(this.orientation==="horizontal"){a=this.elementSize.width;b=b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{a=this.elementSize.height;b=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}a=b/a;if(a>1)a=1;if(a<0)a=0;if(this.orientation==="vertical")a=1-a;b=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+a*b)},_start:function(c,b){var a={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(b);a.values=this.values()}return this._trigger("start",c,a)},_slide:function(d,b,a){var c;if(this.options.values&&this.options.values.length){c=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&a>c||b===1&&a<c))a=c;if(a!==this.values(b)){c=this.values();c[b]=a;d=this._trigger("slide",d,{handle:this.handles[b],value:a,values:c});this.values(b?0:1);d!==false&&this.values(b,a,true)}}else if(a!==this.value()){d=this._trigger("slide",d,{handle:this.handles[b],value:a});d!==false&&this.value(a)}},_stop:function(c,b){var a={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(b);a.values=this.values()}this._trigger("stop",c,a)},_change:function(c,b){if(!this._keySliding&&!this._mouseSliding){var a={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(b);a.values=this.values()}this._trigger("change",c,a)}},value:function(a){if(arguments.length){this.options.value=this._trimAlignValue(a);this._refreshValue();this._change(null,0)}else return this._value()},values:function(c,f){var d,e,b;if(arguments.length>1){this.options.values[c]=this._trimAlignValue(f);this._refreshValue();this._change(null,c)}else if(arguments.length)if(a.isArray(arguments[0])){d=this.options.values;e=arguments[0];for(b=0;b<d.length;b+=1){d[b]=this._trimAlignValue(e[b]);this._change(null,b)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(c):this.value();else return this._values()},_setOption:function(d,e){var b,c=0;if(a.isArray(this.options.values))c=this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(d){case"disabled":if(e){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{this.handles.propAttr("disabled",false);this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(b=0;b<c;b+=1)this._change(null,b);this._animateOff=false}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(c){var a,b;if(arguments.length){a=this.options.values[c];return a=this._trimAlignValue(a)}else{a=this.options.values.slice();for(b=0;b<a.length;b+=1)a[b]=this._trimAlignValue(a[b]);return a}},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var f=this.options.range,d=this.options,c=this,e=!this._animateOff?d.animate:false,b,g={},i,k,h,j;if(this.options.values&&this.options.values.length)this.handles.each(function(f){b=(c.values(f)-c._valueMin())/(c._valueMax()-c._valueMin())*100;g[c.orientation==="horizontal"?"left":"bottom"]=b+"%";a(this).stop(1,1)[e?"animate":"css"](g,d.animate);if(c.options.range===true)if(c.orientation==="horizontal"){f===0&&c.range.stop(1,1)[e?"animate":"css"]({left:b+"%"},d.animate);f===1&&c.range[e?"animate":"css"]({width:b-i+"%"},{queue:false,duration:d.animate})}else{f===0&&c.range.stop(1,1)[e?"animate":"css"]({bottom:b+"%"},d.animate);f===1&&c.range[e?"animate":"css"]({height:b-i+"%"},{queue:false,duration:d.animate})}i=b});else{k=this.value();h=this._valueMin();j=this._valueMax();b=j!==h?(k-h)/(j-h)*100:0;g[c.orientation==="horizontal"?"left":"bottom"]=b+"%";this.handle.stop(1,1)[e?"animate":"css"](g,d.animate);f==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[e?"animate":"css"]({width:b+"%"},d.animate);f==="max"&&this.orientation==="horizontal"&&this.range[e?"animate":"css"]({width:NaN-b},{queue:false,duration:d.animate});f==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:b+"%"},d.animate);f==="max"&&this.orientation==="vertical"&&this.range[e?"animate":"css"]({height:NaN-b},{queue:false,duration:d.animate})}}});a.extend(a.ui.slider,{version:"1.8.15"})})(jQuery);(function(a,b){function c(){return++d}function e(){return++f}var d=0,f=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,a){if(b=="selected")this.options.collapsible&&a==this.options.selected||this.select(a);else{this.options[b]=a;this._tabify()}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+c()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+e());return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(g){function i(b,c){b.css("display","");!a.support.opacity&&c.opacity&&b[0].style.removeAttribute("filter")}var d=this,c=this.options,n=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(g,e){var b=a(e).attr("href"),f=b.split("#")[0],h;if(f&&(f===location.toString().split("#")[0]||(h=a("base")[0])&&f===h.href)){b=e.hash;e.href=b}if(n.test(b))d.panels=d.panels.add(d.element.find(d._sanitizeSelector(b)));else if(b&&b!=="#"){a.data(e,"href.tabs",b);a.data(e,"load.tabs",b.replace(/#.*$/,""));b=d._tabId(e);e.href="#"+b;e=d.element.find("#"+b);if(!e.length){e=a(c.panelTemplate).attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[g-1]||d.list);e.data("destroy.tabs",true)}d.panels=d.panels.add(e)}else c.disabled.push(g)});if(g){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===b){location.hash&&this.anchors.each(function(b,a){if(a.hash==location.hash){c.selected=b;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(d._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=a.unique(c.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a){return d.lis.index(a)}))).sort();a.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(a.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(c.selected>=0&&this.anchors.length){d.element.find(d._sanitizeSelector(d.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[c.selected],d.element.find(d._sanitizeSelector(d.anchors[c.selected].hash))[0]))});this.load(c.selected)}a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs");d.lis=d.anchors=d.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);g=0;for(var h;h=this.lis[g];g++)a(h)[a.inArray(g,c.disabled)!=-1&&!a(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var j=function(b,a){a.is(":not(.ui-state-disabled)")&&a.addClass("ui-state-"+b)},k=function(b,a){a.removeClass("ui-state-"+b)};this.lis.bind("mouseover.tabs",function(){j("hover",a(this))});this.lis.bind("mouseout.tabs",function(){k("hover",a(this))});this.anchors.bind("focus.tabs",function(){j("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){k("focus",a(this).closest("li"))})}var e,f;if(c.fx)if(a.isArray(c.fx)){e=c.fx[0];f=c.fx[1]}else e=f=c.fx;var l=f?function(c,b){a(c).closest("li").addClass("ui-tabs-selected ui-state-active");b.hide().removeClass("ui-tabs-hide").animate(f,f.duration||"normal",function(){i(b,f);d._trigger("show",null,d._ui(c,b[0]))})}:function(c,b){a(c).closest("li").addClass("ui-tabs-selected ui-state-active");b.removeClass("ui-tabs-hide");d._trigger("show",null,d._ui(c,b[0]))},m=e?function(b,a){a.animate(e,e.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active");a.addClass("ui-tabs-hide");i(a,e);d.element.dequeue("tabs")})}:function(b,a){d.lis.removeClass("ui-tabs-selected ui-state-active");a.addClass("ui-tabs-hide");d.element.dequeue("tabs")};this.anchors.bind(c.event+".tabs",function(){var b=this,e=a(b).closest("li"),f=d.panels.filter(":not(.ui-tabs-hide)"),g=d.element.find(d._sanitizeSelector(b.hash));if(e.hasClass("ui-tabs-selected")&&!c.collapsible||e.hasClass("ui-state-disabled")||e.hasClass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,g[0]))===false){this.blur();return false}c.selected=d.anchors.index(this);d.abort();if(c.collapsible)if(e.hasClass("ui-tabs-selected")){c.selected=-1;c.cookie&&d._cookie(c.selected,c.cookie);d.element.queue("tabs",function(){m(b,f)}).dequeue("tabs");this.blur();return false}else if(!f.length){c.cookie&&d._cookie(c.selected,c.cookie);d.element.queue("tabs",function(){l(b,g)});d.load(d.anchors.index(this));this.blur();return false}c.cookie&&d._cookie(c.selected,c.cookie);if(g.length){f.length&&d.element.queue("tabs",function(){m(b,f)});d.element.queue("tabs",function(){l(b,g)});d.load(d.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(a){if(typeof a=="string")a=this.anchors.index(this.anchors.filter("[href$="+a+"]"));return a},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var b=a.data(this,"href.tabs");if(b)this.href=b;var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(b,a){c.removeData(a+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(e,d,c){if(c===b)c=this.anchors.length;var g=this,h=this.options;d=a(h.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,d));e=!e.indexOf("#")?e.replace("#",""):this._tabId(a("a",d)[0]);d.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var f=g.element.find("#"+e);f.length||(f=a(h.panelTemplate).attr("id",e).data("destroy.tabs",true));f.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(c>=this.lis.length){d.appendTo(this.list);f.appendTo(this.list[0].parentNode)}else{d.insertBefore(this.lis[c]);f.insertBefore(this.panels[c])}h.disabled=a.map(h.disabled,function(a){return a>=c?++a:a});this._tabify();if(this.anchors.length==1){h.selected=0;d.addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[0],g.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[c],this.panels[c]));return this},remove:function(b){b=this._getIndex(b);var d=this.options,c=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();c.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1<this.anchors.length?1:-1));d.disabled=a.map(a.grep(d.disabled,function(a){return a!=b}),function(a){return a>=b?--a:a});this._tabify();this._trigger("remove",null,this._ui(c.find("a")[0],e[0]));return this},enable:function(b){b=this._getIndex(b);var c=this.options;if(a.inArray(b,c.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");c.disabled=a.grep(c.disabled,function(a){return a!=b});this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(a){a=this._getIndex(a);var b=this.options;if(a!=b.selected){this.lis.eq(a).addClass("ui-state-disabled");b.disabled.push(a);b.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))}return this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;this.anchors.eq(a).trigger(this.options.event+".tabs");return this},load:function(c){c=this._getIndex(c);var b=this,d=this.options,e=this.anchors.eq(c)[0],f=a.data(e,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&a.data(e,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(c).addClass("ui-state-processing");if(d.spinner){var g=a("span",e);g.data("label.tabs",g.html()).html(d.spinner)}this.xhr=a.ajax(a.extend({},d.ajaxOptions,{url:f,success:function(f,g){b.element.find(b._sanitizeSelector(e.hash)).html(f);b._cleanup();d.cache&&a.data(e,"cache.tabs",true);b._trigger("load",null,b._ui(b.anchors[c],b.panels[c]));try{d.ajaxOptions.success(f,g)}catch(h){}},error:function(a,f){b._cleanup();b._trigger("load",null,b._ui(b.anchors[c],b.panels[c]));try{d.ajaxOptions.error(a,f,c,e)}catch(g){}}}));b.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(a,b){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",b);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.15"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(e,c){var a=this,b=this.options,d=a._rotate||(a._rotate=function(c){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var c=b.selected;a.select(++c<a.anchors.length?c:0)},e);c&&c.stopPropagation()});c=a._unrotate||(a._unrotate=!c?function(b){b.clientX&&a.rotate(null)}:function(){t=b.selected;d()});if(e){this.element.bind("tabsshow",d);this.anchors.bind(b.event+".tabs",c);d()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",d);this.anchors.unbind(b.event+".tabs",c);delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function(a,c){function f(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};a.extend(this._defaults,this.regional[""]);this.dpDiv=g(a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function g(b){return b.bind("mouseout",function(b){b=a(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(c){c=a(c.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(a.datepicker._isDisabledDatepicker(e.inline?b.parent()[0]:e.input[0])||!c.length)){c.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");c.addClass("ui-state-hover");c.hasClass("ui-datepicker-prev")&&c.addClass("ui-datepicker-prev-hover");c.hasClass("ui-datepicker-next")&&c.addClass("ui-datepicker-next-hover")}})}function d(e,b){a.extend(e,b);for(var d in b)if(b[d]==null||b[d]==c)e[d]=b[d];return e}a.extend(a.ui,{datepicker:{version:"1.8.15"}});var b=+new Date,e;a.extend(f.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){d(this._defaults,a||{});return this},_attachDatepicker:function(b,g){var e=null;for(var c in this._defaults){var d=b.getAttribute("date:"+c);if(d){e=e||{};try{e[c]=eval(d)}catch(h){e[c]=d}}}c=b.nodeName.toLowerCase();d=c=="div"||c=="span";if(!b.id){this.uuid+=1;b.id="dp"+this.uuid}var f=this._newInst(a(b),d);f.settings=a.extend({},g||{},e||{});if(c=="input")this._connectDatepicker(b,f);else d&&this._inlineDatepicker(b,f)},_newInst:function(b,c){return{id:b[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:!c?this.dpDiv:g(a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(c,b){var d=a(c);b.append=a([]);b.trigger=a([]);if(!d.hasClass(this.markerClassName)){this._attachments(d,b);d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(d,a,c){b.settings[a]=c}).bind("getData.datepicker",function(c,a){return this._get(b,a)});this._autoSize(b);a.data(c,"datepicker",b);b.settings.disabled&&this._disableDatepicker(c)}},_attachments:function(d,b){var c=this._get(b,"appendText"),f=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=a('<span class="'+this._appendClass+'">'+c+"</span>");d[f?"before":"after"](b.append)}d.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");(c=="focus"||c=="both")&&d.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var e=this._get(b,"buttonImage");b.trigger=a(this._get(b,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:e,alt:c,title:c}):a('<button type="button"></button>').addClass(this._triggerClass).html(e==""?c:a("<img/>").attr({src:e,alt:c,title:c})));d[f?"before":"after"](b.trigger);b.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==d[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(d[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var d=function(b){for(var c=0,d=0,a=0;a<b.length;a++)if(b[a].length>c){c=b[a].length;d=a}return d};b.setMonth(d(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(d(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(c,b){var d=a(c);if(!d.hasClass(this.markerClassName)){d.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(d,a,c){b.settings[a]=c}).bind("getData.datepicker",function(c,a){return this._get(b,a)});a.data(c,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(c);b.dpDiv.css("display","block")}},_dialogDatepicker:function(b,c,f,g,e){b=this._dialogInst;if(!b){this.uuid+=1;this._dialogInput=a('<input type="text" id="dp'+this.uuid+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);a("body").append(this._dialogInput);b=this._dialogInst=this._newInst(this._dialogInput,false);b.settings={};a.data(this._dialogInput[0],"datepicker",b)}d(b.settings,g||{});c=c&&c.constructor==Date?this._formatDate(b,c):c;this._dialogInput.val(c);this._pos=e?e.length?e:[e.pageX,e.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");b.settings.onSelect=f;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",b);return this},_destroyDatepicker:function(b){var c=a(b),e=a.data(b,"datepicker");if(c.hasClass(this.markerClassName)){var d=b.nodeName.toLowerCase();a.removeData(b,"datepicker");if(d=="input"){e.append.remove();e.trigger.remove();c.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else(d=="div"||d=="span")&&c.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(b){var c=a(b),e=a.data(b,"datepicker");if(c.hasClass(this.markerClassName)){var d=b.nodeName.toLowerCase();if(d=="input"){b.disabled=false;e.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(d=="div"||d=="span"){c=c.children("."+this._inlineClass);c.children().removeClass("ui-state-disabled");c.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=a.map(this._disabledInputs,function(a){return a==b?null:a})}},_disableDatepicker:function(b){var c=a(b),e=a.data(b,"datepicker");if(c.hasClass(this.markerClassName)){var d=b.nodeName.toLowerCase();if(d=="input"){b.disabled=true;e.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(d=="div"||d=="span"){c=c.children("."+this._inlineClass);c.children().addClass("ui-state-disabled");c.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=a.map(this._disabledInputs,function(a){return a==b?null:a});this._disabledInputs[this._disabledInputs.length]=b}},_isDisabledDatepicker:function(b){if(!b)return false;for(var a=0;a<this._disabledInputs.length;a++)if(this._disabledInputs[a]==b)return true;return false},_getInst:function(b){try{return a.data(b,"datepicker")}catch(c){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(g,e,j){var b=this._getInst(g);if(arguments.length==2&&typeof e=="string")return e=="defaults"?a.extend({},a.datepicker._defaults):b?e=="all"?a.extend({},b.settings):this._get(b,e):null;var f=e||{};if(typeof e=="string"){f={};f[e]=j}if(b){this._curInst==b&&this._hideDatepicker();var k=this._getDateDatepicker(g,true),i=this._getMinMaxDate(b,"min"),h=this._getMinMaxDate(b,"max");d(b.settings,f);if(i!==null&&f.dateFormat!==c&&f.minDate===c)b.settings.minDate=this._formatDate(b,i);if(h!==null&&f.dateFormat!==c&&f.maxDate===c)b.settings.maxDate=this._formatDate(b,h);this._attachments(a(g),b);this._autoSize(b);this._setDate(b,k);this._updateAlternate(b);this._updateDatepicker(b)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(b){var c=a.datepicker._getInst(b.target),d=true,e=c.dpDiv.is(".ui-datepicker-rtl");c._keyEvent=true;if(a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker();d=false;break;case 13:d=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",c.dpDiv);d[0]&&a.datepicker._selectDay(b.target,c.selectedMonth,c.selectedYear,d[0]);if(b=a.datepicker._get(c,"onSelect")){d=a.datepicker._formatDate(c);b.apply(c.input?c.input[0]:null,[d,c])}else a.datepicker._hideDatepicker();return false;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(c,"stepBigMonths"):-a.datepicker._get(c,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(c,"stepBigMonths"):+a.datepicker._get(c,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.datepicker._clearDate(b.target);d=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.datepicker._gotoToday(b.target);d=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,e?1:-1,"D");d=b.ctrlKey||b.metaKey;b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(c,"stepBigMonths"):-a.datepicker._get(c,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,-7,"D");d=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,e?-1:1,"D");d=b.ctrlKey||b.metaKey;b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(c,"stepBigMonths"):+a.datepicker._get(c,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,7,"D");d=b.ctrlKey||b.metaKey;break;default:d=false}else if(b.keyCode==36&&b.ctrlKey)a.datepicker._showDatepicker(this);else d=false;if(d){b.preventDefault();b.stopPropagation()}},_doKeyPress:function(b){var d=a.datepicker._getInst(b.target);if(a.datepicker._get(d,"constrainInput")){d=a.datepicker._possibleChars(a.datepicker._get(d,"dateFormat"));var e=String.fromCharCode(b.charCode==c?b.keyCode:b.charCode);return b.ctrlKey||b.metaKey||e<" "||!d||d.indexOf(e)>-1}},_doKeyUp:function(b){b=a.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal)try{if(a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,a.datepicker._getFormatConfig(b))){a.datepicker._setDateFromField(b);a.datepicker._updateAlternate(b);a.datepicker._updateDatepicker(b)}}catch(c){a.datepicker.log(c)}return true},_showDatepicker:function(c){c=c.target||c;if(c.nodeName.toLowerCase()!="input")c=a("input",c.parentNode)[0];if(!(a.datepicker._isDisabledDatepicker(c)||a.datepicker._lastInput==c)){var b=a.datepicker._getInst(c);if(a.datepicker._curInst&&a.datepicker._curInst!=b){a.datepicker._datepickerShowing&&a.datepicker._triggerOnClose(a.datepicker._curInst);a.datepicker._curInst.dpDiv.stop(true,true)}var e=a.datepicker._get(b,"beforeShow");d(b.settings,e?e.apply(c,[c,b]):{});b.lastVal=null;a.datepicker._lastInput=c;a.datepicker._setDateFromField(b);if(a.datepicker._inDialog)c.value="";if(!a.datepicker._pos){a.datepicker._pos=a.datepicker._findPos(c);a.datepicker._pos[1]+=c.offsetHeight}var f=false;a(c).parents().each(function(){f|=a(this).css("position")=="fixed";return!f});if(f&&a.browser.opera){a.datepicker._pos[0]-=document.documentElement.scrollLeft;a.datepicker._pos[1]-=document.documentElement.scrollTop}e={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(b);e=a.datepicker._checkOffset(b,e,f);b.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"});if(!b.inline){e=a.datepicker._get(b,"showAnim");var g=a.datepicker._get(b,"duration"),h=function(){var d=b.dpDiv.find("iframe.ui-datepicker-cover");if(d.length){var c=a.datepicker._getBorders(b.dpDiv);d.css({left:-c[0],top:-c[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(a(c).zIndex()+1);a.datepicker._datepickerShowing=true;a.effects&&a.effects[e]?b.dpDiv.show(e,a.datepicker._get(b,"showOptions"),g,h):b.dpDiv[e||"show"](e?g:null,h);(!e||!g)&&h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();a.datepicker._curInst=b}}},_updateDatepicker:function(b){this.maxRows=4;var c=a.datepicker._getBorders(b.dpDiv);e=b;b.dpDiv.empty().append(this._generateHTML(b));var d=b.dpDiv.find("iframe.ui-datepicker-cover");d.length&&d.css({left:-c[0],top:-c[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()});b.dpDiv.find("."+this._dayOverClass+" a").mouseover();c=this._getNumberOfMonths(b);d=c[1];b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");d>1&&b.dpDiv.addClass("ui-datepicker-multi-"+d).css("width",17*d+"em");b.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");b==a.datepicker._curInst&&a.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input[0]!=document.activeElement&&b.input.focus();if(b.yearshtml){var f=b.yearshtml;setTimeout(function(){f===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml);f=b.yearshtml=null},0)}},_getBorders:function(a){var b=function(a){return({thin:1,medium:2,thick:3})[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(c,b,g){var d=c.dpDiv.outerWidth(),e=c.dpDiv.outerHeight(),j=c.input?c.input.outerWidth():0,h=c.input?c.input.outerHeight():0,f=document.documentElement.clientWidth+a(document).scrollLeft(),i=document.documentElement.clientHeight+a(document).scrollTop();b.left-=this._get(c,"isRTL")?d-j:0;b.left-=g&&b.left==c.input.offset().left?a(document).scrollLeft():0;b.top-=g&&b.top==c.input.offset().top+h?a(document).scrollTop():0;b.left-=Math.min(b.left,b.left+d>f&&f>d?Math.abs(b.left+d-f):0);b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+h):0);return b},_findPos:function(b){for(var c=this._get(this._getInst(b),"isRTL");b&&(b.type=="hidden"||b.nodeType!=1||a.expr.filters.hidden(b));)b=b[c?"previousSibling":"nextSibling"];b=a(b).offset();return[b.left,b.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");b&&b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])},_hideDatepicker:function(b){var c=this._curInst;if(!(!c||b&&c!=a.data(b,"datepicker")))if(this._datepickerShowing){b=this._get(c,"showAnim");var e=this._get(c,"duration"),d=function(){a.datepicker._tidyDialog(c);this._curInst=null};a.effects&&a.effects[b]?c.dpDiv.hide(b,a.datepicker._get(c,"showOptions"),e,d):c.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?e:null,d);b||d();a.datepicker._triggerOnClose(c);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(a.blockUI){a.unblockUI();a("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){b=a(b.target);b[0].id!=a.datepicker._mainDivId&&b.parents("#"+a.datepicker._mainDivId).length==0&&!b.hasClass(a.datepicker.markerClassName)&&!b.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&!(a.datepicker._inDialog&&a.blockUI)&&a.datepicker._hideDatepicker()}},_adjustDate:function(b,e,d){b=a(b);var c=this._getInst(b[0]);if(!this._isDisabledDatepicker(b[0])){this._adjustInstDate(c,e+(d=="M"?this._get(c,"showCurrentAtPos"):0),d);this._updateDatepicker(c)}},_gotoToday:function(c){c=a(c);var b=this._getInst(c[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var d=new Date;b.selectedDay=d.getDate();b.drawMonth=b.selectedMonth=d.getMonth();b.drawYear=b.selectedYear=d.getFullYear()}this._notifyChange(b);this._adjustDate(c)},_selectMonthYear:function(b,d,e){b=a(b);var c=this._getInst(b[0]);c["selected"+(e=="M"?"Month":"Year")]=c["draw"+(e=="M"?"Month":"Year")]=parseInt(d.options[d.selectedIndex].value,10);this._notifyChange(c);this._adjustDate(b)},_selectDay:function(c,e,f,d){var b=a(c);if(!(a(d).hasClass(this._unselectableClass)||this._isDisabledDatepicker(b[0]))){b=this._getInst(b[0]);b.selectedDay=b.currentDay=a("a",d).html();b.selectedMonth=b.currentMonth=e;b.selectedYear=b.currentYear=f;this._selectDate(c,this._formatDate(b,b.currentDay,b.currentMonth,b.currentYear))}},_clearDate:function(b){b=a(b);this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(b,c){b=this._getInst(a(b)[0]);c=c!=null?c:this._formatDate(b);b.input&&b.input.val(c);this._updateAlternate(b);var d=this._get(b,"onSelect");if(d)d.apply(b.input?b.input[0]:null,[c,b]);else b.input&&b.input.trigger("change");if(b.inline)this._updateDatepicker(b);else{this._hideDatepicker();this._lastInput=b.input[0];b.input.focus();this._lastInput=null}},_updateAlternate:function(b){var c=this._get(b,"altField");if(c){var d=this._get(b,"altFormat")||this._get(b,"dateFormat"),e=this._getDate(b),f=this.formatDate(d,e,this._getFormatConfig(b));a(c).each(function(){a(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864e5)/7)+1},parseDate:function(j,d,b){if(j==null||d==null)throw"Invalid arguments";d=typeof d=="object"?d.toString():d+"";if(d=="")return null;var h=(b?b.shortYearCutoff:null)||this._defaults.shortYearCutoff;h=typeof h!="string"?h:(new Date).getFullYear()%100+parseInt(h,10);for(var q=(b?b.dayNamesShort:null)||this._defaults.dayNamesShort,s=(b?b.dayNames:null)||this._defaults.dayNames,t=(b?b.monthNamesShort:null)||this._defaults.monthNamesShort,r=(b?b.monthNames:null)||this._defaults.monthNames,f=b=-1,i=-1,o=-1,m=false,l=function(a){(a=g+1<j.length&&j.charAt(g+1)==a)&&g++;return a},k=function(a){var b=l(a);a=new RegExp("^\\d{1,"+(a=="@"?14:a=="!"?20:a=="y"&&b?4:a=="o"?3:2)+"}");a=d.substring(e).match(a);if(!a)throw"Missing number at position "+e;e+=a[0].length;return parseInt(a[0],10)},p=function(c,f,g){c=a.map(l(c)?g:f,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});var b=-1;a.each(c,function(a,c){a=c[1];if(d.substr(e,a.length).toLowerCase()==a.toLowerCase()){b=c[0];e+=a.length;return false}});if(b!=-1)return b+1;else throw"Unknown name at position "+e;},n=function(){if(d.charAt(e)!=j.charAt(g))throw"Unexpected literal at position "+e;e++},e=0,g=0;g<j.length;g++)if(m)if(j.charAt(g)=="'"&&!l("'"))m=false;else n();else switch(j.charAt(g)){case"d":i=k("d");break;case"D":p("D",q,s);break;case"o":o=k("o");break;case"m":f=k("m");break;case"M":f=p("M",t,r);break;case"y":b=k("y");break;case"@":var c=new Date(k("@"));b=c.getFullYear();f=c.getMonth()+1;i=c.getDate();break;case"!":c=new Date((k("!")-this._ticksTo1970)/1e4);b=c.getFullYear();f=c.getMonth()+1;i=c.getDate();break;case"'":if(l("'"))n();else m=true;break;default:n()}if(e<d.length)throw"Extra/unparsed characters found in date: "+d.substring(e);if(b==-1)b=(new Date).getFullYear();else if(b<100)b+=(new Date).getFullYear()-(new Date).getFullYear()%100+(b<=h?0:-100);if(o>-1){f=1;i=o;do{h=this._getDaysInMonth(b,f-1);if(i<=h)break;f++;i-=h}while(1)}c=this._daylightSavingAdjust(new Date(b,f-1,i));if(c.getFullYear()!=b||c.getMonth()+1!=f||c.getDate()!=i)throw"Invalid date";return c},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864e9,formatDate:function(e,a,c){if(!a)return"";var j=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,k=(c?c.dayNames:null)||this._defaults.dayNames,l=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var f=function(a){(a=d+1<e.length&&e.charAt(d+1)==a)&&d++;return a},g=function(c,a,b){a=""+a;if(f(c))for(;a.length<b;)a="0"+a;return a},i=function(c,a,b,d){return f(c)?d[a]:b[a]},b="",h=false;if(a)for(var d=0;d<e.length;d++)if(h)if(e.charAt(d)=="'"&&!f("'"))h=false;else b+=e.charAt(d);else switch(e.charAt(d)){case"d":b+=g("d",a.getDate(),2);break;case"D":b+=i("D",a.getDay(),j,k);break;case"o":b+=g("o",Math.round((+new Date(a.getFullYear(),a.getMonth(),a.getDate())-+new Date(a.getFullYear(),0,0))/864e5),3);break;case"m":b+=g("m",a.getMonth()+1,2);break;case"M":b+=i("M",a.getMonth(),l,c);break;case"y":b+=f("y")?a.getFullYear():(a.getYear()%100<10?"0":"")+a.getYear()%100;break;case"@":b+=a.getTime();break;case"!":b+=a.getTime()*1e4+this._ticksTo1970;break;case"'":if(f("'"))b+="'";else h=true;break;default:b+=e.charAt(d)}return b},_possibleChars:function(b){for(var c="",d=false,e=function(c){(c=a+1<b.length&&b.charAt(a+1)==c)&&a++;return c},a=0;a<b.length;a++)if(d)if(b.charAt(a)=="'"&&!e("'"))d=false;else c+=b.charAt(a);else switch(b.charAt(a)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":if(e("'"))c+="'";else d=true;break;default:c+=b.charAt(a)}return c},_get:function(b,a){return b.settings[a]!==c?b.settings[a]:this._defaults[a]},_setDateFromField:function(a,e){if(a.input.val()!=a.lastVal){var f=this._get(a,"dateFormat"),c=a.lastVal=a.input?a.input.val():null,b,d;b=d=this._getDefaultDate(a);var g=this._getFormatConfig(a);try{b=this.parseDate(f,c,g)||d}catch(h){this.log(h);c=e?"":c}a.selectedDay=b.getDate();a.drawMonth=a.selectedMonth=b.getMonth();a.drawYear=a.selectedYear=b.getFullYear();a.currentDay=c?b.getDate():0;a.currentMonth=c?b.getMonth():0;a.currentYear=c?b.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(c,b,d){var e=function(b){var a=new Date;a.setDate(a.getDate()+b);return a},f=function(e){try{return a.datepicker.parseDate(a.datepicker._get(c,"dateFormat"),e,a.datepicker._getFormatConfig(c))}catch(i){}var b=(e.toLowerCase().match(/^c/)?a.datepicker._getDate(c):null)||new Date,f=b.getFullYear(),g=b.getMonth();b=b.getDate();for(var h=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,d=h.exec(e);d;){switch(d[2]||"d"){case"d":case"D":b+=parseInt(d[1],10);break;case"w":case"W":b+=parseInt(d[1],10)*7;break;case"m":case"M":g+=parseInt(d[1],10);b=Math.min(b,a.datepicker._getDaysInMonth(f,g));break;case"y":case"Y":f+=parseInt(d[1],10);b=Math.min(b,a.datepicker._getDaysInMonth(f,g))}d=h.exec(e)}return new Date(f,g,b)};if(b=(b=b==null||b===""?d:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?d:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?d:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();(e!=a.selectedMonth||f!=a.selectedYear)&&!c&&this._notifyChange(a);this._adjustInstDate(a);a.input&&a.input.val(d?"":this._formatDate(a));if(c=this._get(a,"onSelect")){d=this._formatDate(a);c.apply(a.input?a.input[0]:null,[d,a])}},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(c){var p=new Date;p=this._daylightSavingAdjust(new Date(p.getFullYear(),p.getMonth(),p.getDate()));var n=this._get(c,"isRTL"),y=this._get(c,"showButtonPanel"),t=this._get(c,"hideIfNoPrevNext"),h=this._get(c,"navigationAsDateFormat"),o=this._getNumberOfMonths(c),d=this._get(c,"showCurrentAtPos"),j=this._get(c,"stepMonths"),z=o[0]!=1||o[1]!=1,B=this._daylightSavingAdjust(!c.currentDay?new Date(9999,9,9):new Date(c.currentYear,c.currentMonth,c.currentDay)),s=this._getMinMaxDate(c,"min"),q=this._getMinMaxDate(c,"max");d=c.drawMonth-d;var g=c.drawYear;if(d<0){d+=12;g--}if(q)for(var i=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-o[0]*o[1]+1,q.getDate())),i=s&&i<s?s:i;this._daylightSavingAdjust(new Date(g,d,1))>i;){d--;if(d<0){d=11;g--}}c.drawMonth=d;c.drawYear=g;i=this._get(c,"prevText");i=!h?i:this.formatDate(i,this._daylightSavingAdjust(new Date(g,d-j,1)),this._getFormatConfig(c));i=this._canAdjustMonth(c,-1,g,d)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+b+".datepicker._adjustDate('#"+c.id+"', -"+j+", 'M');\" title=\""+i+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"e":"w")+'">'+i+"</span></a>":t?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+i+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"e":"w")+'">'+i+"</span></a>";var k=this._get(c,"nextText");k=!h?k:this.formatDate(k,this._daylightSavingAdjust(new Date(g,d+j,1)),this._getFormatConfig(c));t=this._canAdjustMonth(c,1,g,d)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+b+".datepicker._adjustDate('#"+c.id+"', +"+j+", 'M');\" title=\""+k+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"w":"e")+'">'+k+"</span></a>":t?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+k+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"w":"e")+'">'+k+"</span></a>";j=this._get(c,"currentText");k=this._get(c,"gotoCurrent")&&c.currentDay?B:p;j=!h?j:this.formatDate(j,k,this._getFormatConfig(c));h=!c.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+b+'.datepicker._hideDatepicker();">'+this._get(c,"closeText")+"</button>":"";y=y?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(n?h:"")+(this._isInRange(c,k)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+b+".datepicker._gotoToday('#"+c.id+"');\">"+j+"</button>":"")+(n?"":h)+"</div>":"";h=parseInt(this._get(c,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(c,"showWeek");k=this._get(c,"dayNames");this._get(c,"dayNamesShort");var L=this._get(c,"dayNamesMin"),J=this._get(c,"monthNames"),M=this._get(c,"monthNamesShort"),G=this._get(c,"beforeShowDay"),x=this._get(c,"showOtherMonths"),K=this._get(c,"selectOtherMonths");this._get(c,"calculateWeek");for(var D=this._getDefaultDate(c),C="",v=0;v<o[0];v++){var E="";this.maxRows=4;for(var u=0;u<o[1];u++){var F=this._daylightSavingAdjust(new Date(g,d,c.selectedDay)),f=" ui-corner-all",l="";if(z){l+='<div class="ui-datepicker-group';if(o[1]>1)switch(u){case 0:l+=" ui-datepicker-group-first";f=" ui-corner-"+(n?"right":"left");break;case o[1]-1:l+=" ui-datepicker-group-last";f=" ui-corner-"+(n?"left":"right");break;default:l+=" ui-datepicker-group-middle";f=""}l+='">'}l+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+f+'">'+(/all|left/.test(f)&&v==0?n?t:i:"")+(/all|right/.test(f)&&v==0?n?i:t:"")+this._generateMonthYearHeader(c,d,g,s,q,v>0||u>0,J,M)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var m=j?'<th class="ui-datepicker-week-col">'+this._get(c,"weekHeader")+"</th>":"";for(f=0;f<7;f++){var e=(f+h)%7;m+="<th"+((f+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+k[e]+'">'+L[e]+"</span></th>"}l+=m+"</tr></thead><tbody>";m=this._getDaysInMonth(g,d);if(g==c.selectedYear&&d==c.selectedMonth)c.selectedDay=Math.min(c.selectedDay,m);f=(this._getFirstDayOfMonth(g,d)-h+7)%7;m=Math.ceil((f+m)/7);this.maxRows=m=z?this.maxRows>m?this.maxRows:m:m;e=this._daylightSavingAdjust(new Date(g,d,1-f));for(var H=0;H<m;H++){l+="<tr>";var I=!j?"":'<td class="ui-datepicker-week-col">'+this._get(c,"calculateWeek")(e)+"</td>";for(f=0;f<7;f++){var w=G?G.apply(c.input?c.input[0]:null,[e]):[true,""],r=e.getMonth()!=d,A=r&&!K||!w[0]||s&&e<s||q&&e>q;I+='<td class="'+((f+h+6)%7>=5?" ui-datepicker-week-end":"")+(r?" ui-datepicker-other-month":"")+(e.getTime()==F.getTime()&&d==c.selectedMonth&&c._keyEvent||D.getTime()==e.getTime()&&D.getTime()==F.getTime()?" "+this._dayOverClass:"")+(A?" "+this._unselectableClass+" ui-state-disabled":"")+(r&&!x?"":" "+w[1]+(e.getTime()==B.getTime()?" "+this._currentClass:"")+(e.getTime()==p.getTime()?" ui-datepicker-today":""))+'"'+((!r||x)&&w[2]?' title="'+w[2]+'"':"")+(A?"":' onclick="DP_jQuery_'+b+".datepicker._selectDay('#"+c.id+"',"+e.getMonth()+","+e.getFullYear()+', this);return false;"')+">"+(r&&!x?"&#xa0;":A?'<span class="ui-state-default">'+e.getDate()+"</span>":'<a class="ui-state-default'+(e.getTime()==p.getTime()?" ui-state-highlight":"")+(e.getTime()==B.getTime()?" ui-state-active":"")+(r?" ui-priority-secondary":"")+'" href="#">'+e.getDate()+"</a>")+"</td>";e.setDate(e.getDate()+1);e=this._daylightSavingAdjust(e)}l+=I+"</tr>"}d++;if(d>11){d=0;g++}l+="</tbody></table>"+(z?"</div>"+(o[0]>0&&u==o[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");E+=l}C+=E}C+=y+(a.browser.msie&&parseInt(a.browser.version,10)<7&&!c.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");c._keyEvent=false;return C},_generateMonthYearHeader:function(a,c,i,j,k,l,g,d){var m=this._get(a,"changeMonth"),n=this._get(a,"changeYear"),p=this._get(a,"showMonthAfterYear"),e='<div class="ui-datepicker-title">',h="";if(l||!m)h+='<span class="ui-datepicker-month">'+g[c]+"</span>";else{g=j&&j.getFullYear()==i;var q=k&&k.getFullYear()==i;h+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+b+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" >";for(var f=0;f<12;f++)if((!g||f>=j.getMonth())&&(!q||f<=k.getMonth()))h+='<option value="'+f+'"'+(f==c?' selected="selected"':"")+">"+d[f]+"</option>";h+="</select>"}p||(e+=h+(l||!(m&&n)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(l||!n)e+='<span class="ui-datepicker-year">'+i+"</span>";else{d=this._get(a,"yearRange").split(":");var o=(new Date).getFullYear();g=function(a){a=a.match(/c[+-].*/)?i+parseInt(a.substring(1),10):a.match(/[+-].*/)?o+parseInt(a,10):parseInt(a,10);return isNaN(a)?o:a};c=g(d[0]);d=Math.max(c,g(d[1]||""));c=j?Math.max(c,j.getFullYear()):c;d=k?Math.min(d,k.getFullYear()):d;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+b+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" >";c<=d;c++)a.yearshtml+='<option value="'+c+'"'+(c==i?' selected="selected"':"")+">"+c+"</option>";a.yearshtml+="</select>";e+=a.yearshtml;a.yearshtml=null}}e+=this._get(a,"yearSuffix");if(p)e+=(l||!(m&&n)?"&#xa0;":"")+h;e+="</div>";return e},_adjustInstDate:function(a,c,d){var b=a.drawYear+(d=="Y"?c:0),e=a.drawMonth+(d=="M"?c:0);c=Math.min(a.selectedDay,this._getDaysInMonth(b,e))+(d=="D"?c:0);b=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(b,e,c)));a.selectedDay=b.getDate();a.drawMonth=a.selectedMonth=b.getMonth();a.drawYear=a.selectedYear=b.getFullYear();(d=="M"||d=="Y")&&this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(c,b,a,e){var d=this._getNumberOfMonths(c);a=this._daylightSavingAdjust(new Date(a,e+(b<0?b:d[0]*d[1]),1));b<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth()));return this._isInRange(c,a)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});a.fn.datepicker=function(b){if(!this.length)return this;if(!a.datepicker.initialized){a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv);a.datepicker.initialized=true}var c=Array.prototype.slice.call(arguments,1);return typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget")?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):b=="option"&&arguments.length==2&&typeof arguments[1]=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){typeof b=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)})};a.datepicker=new f;a.datepicker.initialized=false;a.datepicker.uuid=+new Date;a.datepicker.version="1.8.15";window["DP_jQuery_"+b]=a})(jQuery);(function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===b)return this._value();this._setOption("value",a);return this},_setOption:function(b,c){if(b==="value"){this.options.value=c;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var a=this.value(),b=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(b.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});a.extend(a.ui.progressbar,{version:"1.8.15"})})(jQuery);jQuery.effects||function(a,b){function e(c){var b;return c&&c.constructor==Array&&c.length==3?c:(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))?[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)]:(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))?[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55]:(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))?[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]:/rgba\(0, 0, 0, 0\)/.exec(c)?f.transparent:f[a.trim(c).toLowerCase()]}function j(c,d){var b;do{b=a.curCSS(c,d);if(b!=""&&b!="transparent"||a.nodeName(c,"body"))break;d="backgroundColor"}while(c=c.parentNode);return e(b)}function g(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,c={},b,d;if(a&&a.length&&a[0]&&a[a[0]])for(var e=a.length;e--;){b=a[e];if(typeof a[b]=="string"){d=b.replace(/\-(\w)/g,function(b,a){return a.toUpperCase()});c[d]=a[b]}}else for(b in a)if(typeof a[b]==="string")c[b]=a[b];return c}function h(d){var b,c;for(b in d){c=d[b];if(c==null||a.isFunction(c)||b in k||/scrollbar/.test(b)||!/color/i.test(b)&&isNaN(parseFloat(c)))delete d[b]}return d}function l(d,b){var c={_:0},a;for(a in b)if(d[a]!=b[a])c[a]=b[a];return c}function c(e,b,c,d){if(typeof e=="object"){d=b;c=null;b=e;e=b.effect}if(a.isFunction(b)){d=b;c=null;b={}}if(typeof b=="number"||a.fx.speeds[b]){d=c;c=b;b={}}if(a.isFunction(c)){d=c;c=null}b=b||{};c=c||b.duration;c=a.fx.off?0:typeof c=="number"?c:c in a.fx.speeds?a.fx.speeds[c]:a.fx.speeds._default;d=d||b.complete;return[e,b,c,d]}function d(b){return!b||typeof b==="number"||a.fx.speeds[b]?true:typeof b==="string"&&!a.effects[b]?true:false}a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(c,b){a.fx.step[b]=function(a){if(!a.colorInit){a.start=j(a.elem,b);a.end=e(a.end);a.colorInit=true}a.elem.style[b]="rgb("+Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)+")"}});var f={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},i=["add","remove","toggle"],k={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(c,e,b,d){if(a.isFunction(b)){d=b;b=null}return this.queue(function(){var f=a(this),j=f.attr("style")||" ",m=h(g.call(this)),k,n=f.attr("class");a.each(i,function(b,a){c[a]&&f[a+"Class"](c[a])});k=h(g.call(this));f.attr("class",n);f.animate(l(m,k),{queue:false,duration:e,easing:b,complete:function(){a.each(i,function(b,a){c[a]&&f[a+"Class"](c[a])});if(typeof f.attr("style")=="object"){f.attr("style").cssText="";f.attr("style").cssText=j}else f.attr("style",j);d&&d.apply(this,arguments);a.dequeue(this)}})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(c,b,d,e){return b?a.effects.animateClass.apply(this,[{add:c},b,d,e]):this._addClass(c)},_removeClass:a.fn.removeClass,removeClass:function(c,b,d,e){return b?a.effects.animateClass.apply(this,[{remove:c},b,d,e]):this._removeClass(c)},_toggleClass:a.fn.toggleClass,toggleClass:function(d,c,e,f,g){return typeof c=="boolean"||c===b?e?a.effects.animateClass.apply(this,[c?{add:d}:{remove:d},e,f,g]):this._toggleClass(d,c):a.effects.animateClass.apply(this,[{toggle:d},c,e,f])},switchClass:function(d,b,c,e,f){return a.effects.animateClass.apply(this,[{add:b,remove:d},c,e,f])}});a.extend(a.effects,{version:"1.8.15",save:function(c,b){for(var a=0;a<b.length;a++)b[a]!==null&&c.data("ec.storage."+b[a],c[0].style[b[a]])},restore:function(c,b){for(var a=0;a<b.length;a++)b[a]!==null&&c.css(b[a],c.data("ec.storage."+b[a]))},setMode:function(b,a){if(a=="toggle")a=b.is(":hidden")?"show":"hide";return a},getBaseline:function(a,c){var b;switch(a[0]){case"top":b=0;break;case"middle":b=.5;break;case"bottom":b=1;break;default:b=a[0]/c.height}switch(a[1]){case"left":a=0;break;case"center":a=.5;break;case"right":a=1;break;default:a=a[1]/c.width}return{x:a,y:b}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(true),height:b.outerHeight(true),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});b.wrap(d);d=b.parent();if(b.css("position")=="static"){d.css({position:"relative"});b.css({position:"relative"})}else{a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")});a.each(["top","left","bottom","right"],function(d,a){c[a]=b.css(a);if(isNaN(parseInt(c[a],10)))c[a]="auto"});b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return d.css(c).show()},removeWrapper:function(a){return a.parent().is(".ui-effects-wrapper")?a.parent().replaceWith(a):a},setTransition:function(e,c,d,b){b=b||{};a.each(c,function(c,a){unit=e.cssUnit(a);if(unit[0]>0)b[a]=unit[0]*d+unit[1]});return b}});a.fn.extend({effect:function(f){var b=c.apply(this,arguments),d={options:b[1],duration:b[2],callback:b[3]};b=d.options.mode;var e=a.effects[f];return a.fx.off||!e?b?this[b](d.duration,d.callback):this.each(function(){d.callback&&d.callback.call(this)}):e.call(this,d)},_show:a.fn.show,show:function(b){if(d(b))return this._show.apply(this,arguments);else{var a=c.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:a.fn.hide,hide:function(b){if(d(b))return this._hide.apply(this,arguments);else{var a=c.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:a.fn.toggle,toggle:function(b){if(d(b)||typeof b==="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);else{var e=c.apply(this,arguments);e[1].mode="toggle";return this.effect.apply(this,e)}},cssUnit:function(d){var b=this.css(d),c=[];a.each(["em","px","%","pt"],function(d,a){if(b.indexOf(a)>0)c=[parseFloat(b),a]});return c}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(d,b,c,e,f){return a.easing[a.easing.def](d,b,c,e,f)},easeInQuad:function(e,a,b,c,d){return c*(a/=d)*a+b},easeOutQuad:function(e,a,b,c,d){return-c*(a/=d)*(a-2)+b},easeInOutQuad:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b},easeInCubic:function(e,a,b,c,d){return c*(a/=d)*a*a+b},easeOutCubic:function(e,a,b,c,d){return c*((a=a/d-1)*a*a+1)+b},easeInOutCubic:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a+b:c/2*((a-=2)*a*a+2)+b},easeInQuart:function(e,a,b,c,d){return c*(a/=d)*a*a*a+b},easeOutQuart:function(e,a,b,c,d){return-c*((a=a/d-1)*a*a*a-1)+b},easeInOutQuart:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a+b:-c/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(e,a,b,c,d){return c*(a/=d)*a*a*a*a+b},easeOutQuint:function(e,a,b,c,d){return c*((a=a/d-1)*a*a*a*a+1)+b},easeInOutQuint:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(e,b,c,a,d){return-a*Math.cos(b/d*(Math.PI/2))+a+c},easeOutSine:function(e,a,b,c,d){return c*Math.sin(a/d*(Math.PI/2))+b},easeInOutSine:function(e,a,b,c,d){return-c/2*(Math.cos(Math.PI*a/d)-1)+b},easeInExpo:function(e,a,b,c,d){return a==0?b:c*Math.pow(2,10*(a/d-1))+b},easeOutExpo:function(e,a,b,c,d){return a==d?b+c:c*(-Math.pow(2,-10*a/d)+1)+b},easeInOutExpo:function(e,a,b,c,d){return a==0?b:a==d?b+c:(a/=d/2)<1?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(e,a,b,c,d){return-c*(Math.sqrt(1-(a/=d)*a)-1)+b},easeOutCirc:function(e,a,b,c,d){return c*Math.sqrt(1-(a=a/d-1)*a)+b},easeInOutCirc:function(e,a,b,c,d){return(a/=d/2)<1?-c/2*(Math.sqrt(1-a*a)-1)+b:c/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(d,c,f,a,g){d=1.70158;var b=0,e=a;if(c==0)return f;if((c/=g)==1)return f+a;b||(b=g*.3);if(e<Math.abs(a)){e=a;d=b/4}else d=b/(2*Math.PI)*Math.asin(a/e);return-(e*Math.pow(2,10*(c-=1))*Math.sin((c*g-d)*2*Math.PI/b))+f},easeOutElastic:function(d,c,f,a,g){d=1.70158;var b=0,e=a;if(c==0)return f;if((c/=g)==1)return f+a;b||(b=g*.3);if(e<Math.abs(a)){e=a;d=b/4}else d=b/(2*Math.PI)*Math.asin(a/e);return e*Math.pow(2,-10*c)*Math.sin((c*g-d)*2*Math.PI/b)+a+f},easeInOutElastic:function(d,a,f,b,g){d=1.70158;var c=0,e=b;if(a==0)return f;if((a/=g/2)==2)return f+b;c||(c=g*.3*1.5);if(e<Math.abs(b)){e=b;d=c/4}else d=c/(2*Math.PI)*Math.asin(b/e);return a<1?-.5*e*Math.pow(2,10*(a-=1))*Math.sin((a*g-d)*2*Math.PI/c)+f:e*Math.pow(2,-10*(a-=1))*Math.sin((a*g-d)*2*Math.PI/c)*.5+b+f},easeInBack:function(g,c,d,e,f,a){if(a==b)a=1.70158;return e*(c/=f)*c*((a+1)*c-a)+d},easeOutBack:function(g,a,d,e,f,c){if(c==b)c=1.70158;return e*((a=a/f-1)*a*((c+1)*a+c)+1)+d},easeInOutBack:function(g,a,d,e,f,c){if(c==b)c=1.70158;return(a/=f/2)<1?e/2*a*a*(((c*=1.525)+1)*a-c)+d:e/2*((a-=2)*a*(((c*=1.525)+1)*a+c)+2)+d},easeInBounce:function(f,d,e,b,c){return b-a.easing.easeOutBounce(f,c-d,0,b,c)+e},easeOutBounce:function(e,a,b,c,d){return(a/=d)<1/2.75?c*7.5625*a*a+b:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+.75)+b:a<2.5/2.75?c*(7.5625*(a-=2.25/2.75)*a+.9375)+b:c*(7.5625*(a-=2.625/2.75)*a+.984375)+b},easeInOutBounce:function(f,c,e,d,b){return c<b/2?a.easing.easeInBounce(f,c*2,0,d,b)*.5+e:a.easing.easeOutBounce(f,c*2-b,0,d,b)*.5+d*.5+e}})}(jQuery);(function(a){a.effects.blind=function(b){return this.queue(function(){var c=a(this),g=["position","top","bottom","left","right"],f=a.effects.setMode(c,b.options.mode||"hide"),d=b.options.direction||"vertical";a.effects.save(c,g);c.show();var e=a.effects.createWrapper(c).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,b.duration,b.options.easing,function(){f=="hide"&&c.hide();a.effects.restore(c,g);a.effects.removeWrapper(c);b.callback&&b.callback.apply(c[0],arguments);c.dequeue()})})}})(jQuery);(function(a){a.effects.bounce=function(b){return this.queue(function(){var c=a(this),l=["position","top","bottom","left","right"],h=a.effects.setMode(c,b.options.mode||"effect"),e=b.options.direction||"up",d=b.options.distance||20,m=b.options.times||5,i=b.duration||250;/show|hide/.test(h)&&l.push("opacity");a.effects.save(c,l);c.show();a.effects.createWrapper(c);var f=e=="up"||e=="down"?"top":"left";e=e=="up"||e=="left"?"pos":"neg";d=b.options.distance||(f=="top"?c.outerHeight({margin:true})/3:c.outerWidth({margin:true})/3);h=="show"&&c.css("opacity",0).css(f,e=="pos"?-d:d);if(h=="hide")d/=m*2;h!="hide"&&m--;if(h=="show"){var g={opacity:1};g[f]=(e=="pos"?"+=":"-=")+d;c.animate(g,i/2,b.options.easing);d/=2;m--}for(g=0;g<m;g++){var j={},k={};j[f]=(e=="pos"?"-=":"+=")+d;k[f]=(e=="pos"?"+=":"-=")+d;c.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing);d=h=="hide"?d*2:d/2}if(h=="hide"){g={opacity:0};g[f]=(e=="pos"?"-=":"+=")+d;c.animate(g,i/2,b.options.easing,function(){c.hide();a.effects.restore(c,l);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments)})}else{j={};k={};j[f]=(e=="pos"?"-=":"+=")+d;k[f]=(e=="pos"?"+=":"-=")+d;c.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing,function(){a.effects.restore(c,l);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments)})}c.queue("fx",function(){c.dequeue()});c.dequeue()})}})(jQuery);(function(a){a.effects.clip=function(b){return this.queue(function(){var c=a(this),i=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(c,b.options.mode||"hide"),d=b.options.direction||"vertical";a.effects.save(c,i);c.show();var e=a.effects.createWrapper(c).css({overflow:"hidden"});e=c[0].tagName=="IMG"?e:c;var g={size:d=="vertical"?"height":"width",position:d=="vertical"?"top":"left"};d=d=="vertical"?e.height():e.width();if(f=="show"){e.css(g.size,0);e.css(g.position,d/2)}var h={};h[g.size]=f=="show"?d:0;h[g.position]=f=="show"?0:d/2;e.animate(h,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){f=="hide"&&c.hide();a.effects.restore(c,i);a.effects.removeWrapper(c);b.callback&&b.callback.apply(c[0],arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.drop=function(b){return this.queue(function(){var c=a(this),h=["position","top","bottom","left","right","opacity"],e=a.effects.setMode(c,b.options.mode||"hide"),d=b.options.direction||"left";a.effects.save(c,h);c.show();a.effects.createWrapper(c);var f=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var g=b.options.distance||(f=="top"?c.outerHeight({margin:true})/2:c.outerWidth({margin:true})/2);e=="show"&&c.css("opacity",0).css(f,d=="pos"?-g:g);var i={opacity:e=="show"?1:0};i[f]=(e=="show"?d=="pos"?"+=":"-=":d=="pos"?"-=":"+=")+g;c.animate(i,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide();a.effects.restore(c,h);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.explode=function(b){return this.queue(function(){var d=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,e=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":b.options.mode;var c=a(this).show().css("visibility","hidden"),h=c.offset();h.top-=parseInt(c.css("marginTop"),10)||0;h.left-=parseInt(c.css("marginLeft"),10)||0;for(var i=c.outerWidth(true),j=c.outerHeight(true),f=0;f<d;f++)for(var g=0;g<e;g++)c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-g*(i/e),top:-f*(j/d)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:i/e,height:j/d,left:h.left+g*(i/e)+(b.options.mode=="show"?(g-Math.floor(e/2))*(i/e):0),top:h.top+f*(j/d)+(b.options.mode=="show"?(f-Math.floor(d/2))*(j/d):0),opacity:b.options.mode=="show"?0:1}).animate({left:h.left+g*(i/e)+(b.options.mode=="show"?0:(g-Math.floor(e/2))*(i/e)),top:h.top+f*(j/d)+(b.options.mode=="show"?0:(f-Math.floor(d/2))*(j/d)),opacity:b.options.mode=="show"?1:0},b.duration||500);setTimeout(function(){b.options.mode=="show"?c.css({visibility:"visible"}):c.css({visibility:"visible"}).hide();b.callback&&b.callback.apply(c[0]);c.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);(function(a){a.effects.fade=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.fold=function(b){return this.queue(function(){var c=a(this),j=["position","top","bottom","left","right"],d=a.effects.setMode(c,b.options.mode||"hide"),g=b.options.size||15,h=!!b.options.horizFirst,k=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(c,j);c.show();var e=a.effects.createWrapper(c).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1],10)/100*f[d=="hide"?0:1];d=="show"&&e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,b.options.easing).animate(i,k,b.options.easing,function(){d=="hide"&&c.hide();a.effects.restore(c,j);a.effects.removeWrapper(c);b.callback&&b.callback.apply(c[0],arguments);c.dequeue()})})}})(jQuery);(function(a){a.effects.highlight=function(b){return this.queue(function(){var c=a(this),e=["backgroundImage","backgroundColor","opacity"],d=a.effects.setMode(c,b.options.mode||"show"),f={backgroundColor:c.css("backgroundColor")};if(d=="hide")f.opacity=0;a.effects.save(c,e);c.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){d=="hide"&&c.hide();a.effects.restore(c,e);d=="show"&&!a.support.opacity&&this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.pulsate=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"show");times=(b.options.times||5)*2-1;duration=b.duration?b.duration/2:a.fx.speeds._default/2;isVisible=c.is(":visible");animateTo=0;if(!isVisible){c.css("opacity",0).show();animateTo=1}if(d=="hide"&&isVisible||d=="show"&&!isVisible)times--;for(d=0;d<times;d++){c.animate({opacity:animateTo},duration,b.options.easing);animateTo=(animateTo+1)%2}c.animate({opacity:animateTo},duration,b.options.easing,function(){animateTo==0&&c.hide();b.callback&&b.callback.apply(this,arguments)});c.queue("fx",function(){c.dequeue()}).dequeue()})}})(jQuery);(function(a){a.effects.puff=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"hide"),f=parseInt(b.options.percent,10)||150,g=f/100,e={height:c.height(),width:c.width()};a.extend(b.options,{fade:true,mode:d,percent:d=="hide"?f:100,from:d=="hide"?e:{height:e.height*g,width:e.width*g}});c.effect("scale",b.options,b.duration,b.callback);c.dequeue()})};a.effects.scale=function(b){return this.queue(function(){var c=a(this),d=a.extend(true,{},b.options),e=a.effects.setMode(c,b.options.mode||"effect"),g=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:e=="hide"?0:100),h=b.options.direction||"both",f=b.options.origin;if(e!="effect"){d.origin=f||["middle","center"];d.restore=true}f={height:c.height(),width:c.width()};c.from=b.options.from||(e=="show"?{height:0,width:0}:f);g={y:h!="horizontal"?g/100:1,x:h!="vertical"?g/100:1};c.to={height:f.height*g.y,width:f.width*g.x};if(b.options.fade){if(e=="show"){c.from.opacity=0;c.to.opacity=1}if(e=="hide"){c.from.opacity=1;c.to.opacity=0}}d.from=c.from;d.to=c.to;d.mode=e;c.effect("size",d,b.duration,b.callback);c.dequeue()})};a.effects.size=function(b){return this.queue(function(){var c=a(this),f=["position","top","bottom","left","right","width","height","overflow","opacity"],n=["position","top","bottom","left","right","overflow","opacity"],m=["width","height","overflow"],k=["fontSize"],g=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],o=a.effects.setMode(c,b.options.mode||"effect"),l=b.options.restore||false,j=b.options.scale||"both",i=b.options.origin,e={height:c.height(),width:c.width()};c.from=b.options.from||e;c.to=b.options.to||e;if(i){i=a.effects.getBaseline(i,e);c.from.top=(e.height-c.from.height)*i.y;c.from.left=(e.width-c.from.width)*i.x;c.to.top=(e.height-c.to.height)*i.y;c.to.left=(e.width-c.to.width)*i.x}var d={from:{y:c.from.height/e.height,x:c.from.width/e.width},to:{y:c.to.height/e.height,x:c.to.width/e.width}};if(j=="box"||j=="both"){if(d.from.y!=d.to.y){f=f.concat(g);c.from=a.effects.setTransition(c,g,d.from.y,c.from);c.to=a.effects.setTransition(c,g,d.to.y,c.to)}if(d.from.x!=d.to.x){f=f.concat(h);c.from=a.effects.setTransition(c,h,d.from.x,c.from);c.to=a.effects.setTransition(c,h,d.to.x,c.to)}}if(j=="content"||j=="both")if(d.from.y!=d.to.y){f=f.concat(k);c.from=a.effects.setTransition(c,k,d.from.y,c.from);c.to=a.effects.setTransition(c,k,d.to.y,c.to)}a.effects.save(c,l?f:n);c.show();a.effects.createWrapper(c);c.css("overflow","hidden").css(c.from);if(j=="content"||j=="both"){g=g.concat(["marginTop","marginBottom"]).concat(k);h=h.concat(["marginLeft","marginRight"]);m=f.concat(g).concat(h);c.find("*[width]").each(function(){child=a(this);l&&a.effects.save(child,m);var c={height:child.height(),width:child.width()};child.from={height:c.height*d.from.y,width:c.width*d.from.x};child.to={height:c.height*d.to.y,width:c.width*d.to.x};if(d.from.y!=d.to.y){child.from=a.effects.setTransition(child,g,d.from.y,child.from);child.to=a.effects.setTransition(child,g,d.to.y,child.to)}if(d.from.x!=d.to.x){child.from=a.effects.setTransition(child,h,d.from.x,child.from);child.to=a.effects.setTransition(child,h,d.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){l&&a.effects.restore(child,m)})})}c.animate(c.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){c.to.opacity===0&&c.css("opacity",c.from.opacity);o=="hide"&&c.hide();a.effects.restore(c,l?f:n);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.shake=function(b){return this.queue(function(){var c=a(this),j=["position","top","bottom","left","right"];a.effects.setMode(c,b.options.mode||"effect");var d=b.options.direction||"left",e=b.options.distance||20,l=b.options.times||3,f=b.duration||b.options.duration||140;a.effects.save(c,j);c.show();a.effects.createWrapper(c);var g=d=="up"||d=="down"?"top":"left",h=d=="up"||d=="left"?"pos":"neg";d={};var i={},k={};d[g]=(h=="pos"?"-=":"+=")+e;i[g]=(h=="pos"?"+=":"-=")+e*2;k[g]=(h=="pos"?"-=":"+=")+e*2;c.animate(d,f,b.options.easing);for(e=1;e<l;e++)c.animate(i,f,b.options.easing).animate(k,f,b.options.easing);c.animate(i,f,b.options.easing).animate(d,f/2,b.options.easing,function(){a.effects.restore(c,j);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments)});c.queue("fx",function(){c.dequeue()});c.dequeue()})}})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var c=a(this),h=["position","top","bottom","left","right"],f=a.effects.setMode(c,b.options.mode||"show"),d=b.options.direction||"left";a.effects.save(c,h);c.show();a.effects.createWrapper(c).css({overflow:"hidden"});var g=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var e=b.options.distance||(g=="top"?c.outerHeight({margin:true}):c.outerWidth({margin:true}));f=="show"&&c.css(g,d=="pos"?isNaN(e)?"-"+e:-e:e);var i={};i[g]=(f=="show"?d=="pos"?"+=":"-=":d=="pos"?"-=":"+=")+e;c.animate(i,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){f=="hide"&&c.hide();a.effects.restore(c,h);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.transfer=function(b){return this.queue(function(){var c=a(this),d=a(b.options.to),e=d.offset();d={top:e.top,left:e.left,height:d.innerHeight(),width:d.innerWidth()};e=c.offset();var f=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:e.top,left:e.left,height:c.innerHeight(),width:c.innerWidth(),position:"absolute"}).animate(d,b.duration,b.options.easing,function(){f.remove();b.callback&&b.callback.apply(c[0],arguments);c.dequeue()})})}})(jQuery);$.cnblogs={};$.cnblogs.Extensible=function(a){a=a||{};this.initialize(a)};$.extend($.cnblogs.Extensible,{initialize:function(a){$.extend(this,a)}});$.cnblogs.Extensible.extend=function(d){var b=this,a=function(b){b=b||{};$.extend(this,a);this.initialize(b)};$.extend(a,b);$.extend(a,d);var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.baseClass=b;return a};$.cnblogs.Control=$.cnblogs.Extensible.extend({getContentObj:function(){},cacheResult:false,initialize:function(a){this.container=a.container;$.cnblogs.Control.baseClass.initialize.call(this,a)},render:function(){var a;if(!this.cacheResult||!this.contentObj){a=this.getContentObj();if(this.cacheResult)this.contentObj=a}else a=this.contentObj;if(typeof this.container=="string")this.container=$("#"+this.container);$(this.container).html("").append(a)}});$.cnblogs.BindingSource=$.cnblogs.Extensible.extend({clearHtml:true,getDataObj:function(a){return a},bindTo:function(){}});$.cnblogs.AjaxBindingSource=$.cnblogs.BindingSource.extend({initialize:function(a){$.cnblogs.AjaxBindingSource.baseClass.initialize.call(this,a);this.url=a.url;this.method=a.method||"post";this.contentType=a.contentType||"application/json; charset=utf-8";this.data=a.data||{};this.isAsmx=a.isAsmx==null?true:a.isAsmx;this.wrapper=a.wrapper;this.callback=a.callback||{scope:this,handler:function(){}};this.isPending=false},prepareData:function(){var a=this.data;if(a){if(this.isAsmx)a=JSON.stringify(a);return a}else return null},bindTo:function(c){if(!this.isPending){var b;b=c.target;if(typeof b=="string")b=$("#"+c.target);var a=this;this.clearHtml&&b.html("");var d=this.prepareData(c);this.isPending=true;$.ajax({url:this.url||c.url,type:this.method,data:d,contentType:this.contentType,dataType:"json",cache:false,success:function(c){a.isPending=false;a.callback.handler.call(a.callback.scope,c);if(a.wrapper)c=c[a.wrapper];if(c.length){if(c.length>1)for(var d=0;d<c.length;d++){var e=a.getDataObj(c[d],d);b.append(e)}else if(c.length==1){var e=a.getDataObj(c[0],0);b.append(e)}}else{var e=a.getDataObj(c[0],0);b.append(e)}},error:function(c){a.isPending=false;b.append(c.responseText)}})}}});$.cnblogs.PagedAjaxBindingSource=$.cnblogs.AjaxBindingSource.extend({prepareData:function(b){var a=this.data||{},c=b.pageIndex||1,d=b.pageSize||20;a.pageIndex=c;a.pageSize=d;if(this.isAsmx)a=JSON.stringify(a);return a}});$.cnblogs.SimpleBindingSource=$.cnblogs.BindingSource.extend({initialize:function(a){$.cnblogs.SimpleBindingSource.baseClass.initialize.call(this,a);if(a.data)this.data=a.data;else{this.data=[];this.initializeData(this.data)}},initializeData:function(){},bindTo:function(b){var a=$("#"+b.target),c=this;this.clearHtml&&a.html("");$.each(this.data,function(b){var d=c.getDataObj(this,b);a.append(d)})}});$.cnblogs.Dialog=$.cnblogs.Extensible.extend({getContentObj:function(){},cacheResult:true,isDialogWrapped:false,show:function(){if(!this.cacheResult||!this.contentObj)this.contentObj=this.getContentObj();if(this.isDialogWrapped)this.contentObj.dialog("open");else{this.isDialogWrapped=true;this.contentObj.dialog(this.dialogOptions)}},close:function(a){if(this.cacheResult)!a&&this.contentObj.dialog("close");else{this.contentObj.dialog("destroy").remove();this.isDialogWrapped=false;this.contentObj=null}},initialize:function(a){var b=this;this.dialogOptions=a.dialogOptions||{};if(a.cacheResult!=null)this.cacheResult=a.cacheResult;$.extend(this.dialogOptions,{bgiframe:true,close:function(){b.close(true)}})}});$.cnblogs.GenericDialog=$.cnblogs.Dialog.extend({initialize:function(a){$.cnblogs.GenericDialog.baseClass.initialize.call(this,a);this.getContentObj=a.getContentObj||function(){}}});$.cnblogs.LocationList=$.cnblogs.BindingSource.extend({initialize:function(a){$.cnblogs.LocationList.baseClass.initialize.call(this,a);this.data=[{name:"北京",cities:["西城","东城","崇文","宣武","朝阳","海淀","丰台","石景山","门头沟","房山","通州","顺义","大兴","昌平","平谷","怀柔","密云","延庆"]},{name:"天津",cities:["青羊","河东","河西","南开","河北","红桥","塘沽","汉沽","大港","东丽","西青","北辰","津南","武清","宝坻","静海","宁河","蓟县","开发区"]},{name:"河北",cities:["石家庄","秦皇岛","廊坊","保定","邯郸","唐山","邢台","衡水","张家口","承德","沧州","衡水"]},{name:"山西",cities:["太原","大同","长治","晋中","阳泉","朔州","运城","临汾"]},{name:"内蒙古",cities:["呼和浩特","赤峰","通辽","锡林郭勒","兴安"]},{name:"辽宁",cities:["大连","沈阳","鞍山","抚顺","营口","锦州","丹东","朝阳","辽阳","阜新","铁岭","盘锦","本溪","葫芦岛"]},{name:"吉林",cities:["长春","吉林","四平","辽源","通化","延吉","白城","辽源","松原","临江","珲春"]},{name:"黑龙江",cities:["哈尔滨","齐齐哈尔","大庆","牡丹江","鹤岗","佳木斯","绥化"]},{name:"上海",cities:["浦东","杨浦","徐汇","静安","卢湾","黄浦","普陀","闸北","虹口","长宁","宝山","闵行","嘉定","金山","松江","青浦","崇明","奉贤","南汇"]},{name:"江苏",cities:["南京","苏州","无锡","常州","扬州","徐州","南通","镇江","泰州","淮安","连云港","宿迁","盐城","淮阴","沐阳","张家港"]},{name:"浙江",cities:["杭州","金华","宁波","温州","嘉兴","绍兴","丽水","湖州","台州","舟山","衢州"]},{name:"安徽",cities:["合肥","马鞍山","蚌埠","黄山","芜湖","淮南","铜陵","阜阳","宣城","安庆"]},{name:"福建",cities:["福州","厦门","泉州","漳州","南平","龙岩","莆田","三明","宁德"]},{name:"江西",cities:["南昌","景德镇","上饶","萍乡","九江","吉安","宜春","鹰潭","新余","赣州"]},{name:"山东",cities:["青岛","济南","淄博","烟台","泰安","临沂","日照","德州","威海","东营","荷泽","济宁","潍坊","枣庄","聊城"]},{name:"河南",cities:["郑州","洛阳","开封","平顶山","濮阳","安阳","许昌","南阳","信阳","周口","新乡","焦作","三门峡","商丘"]},{name:"湖北",cities:["武汉","襄樊","孝感","十堰","荆州","黄石","宜昌","黄冈","恩施","鄂州","江汉","随枣","荆沙","咸宁"]},{name:"湖南",cities:["长沙","湘潭","岳阳","株洲","怀化","永州","益阳","张家界","常德","衡阳","湘西","邵阳","娄底","郴州"]},{name:"广东",cities:["广州","深圳","东莞","佛山","珠海","汕头","韶关","江门","梅州","揭阳","中山","河源","惠州","茂名","湛江","阳江","潮州","云浮","汕尾","潮阳","肇庆","顺德","清远"]},{name:"广西",cities:["南宁","桂林","柳州","梧州","来宾","贵港","玉林","贺州"]},{name:"海南",cities:["海口","三亚"]},{name:"重庆",cities:["渝中","大渡口","江北","沙坪坝","九龙坡","南岸","北碚","万盛","双桥","渝北","巴南","万州","涪陵","黔江","长寿"]},{name:"四川",cities:["成都","达州","南充","乐山","绵阳","德阳","内江","遂宁","宜宾","巴中","自贡","康定","攀枝花"]},{name:"贵州",cities:["贵阳","遵义","安顺","黔西南","都匀"]},{name:"云南",cities:["昆明","丽江","昭通","玉溪","临沧","文山","红河","楚雄","大理"]},{name:"西藏",cities:["拉萨","林芝","日喀则","昌都"]},{name:"陕西",cities:["西安","咸阳","延安","汉中","榆林","商南","略阳","宜君","麟游","白河"]},{name:"甘肃",cities:["兰州","金昌","天水","武威","张掖","平凉","酒泉"]},{name:"青海",cities:["黄南","海南","西宁","海东","海西","海北","果洛","玉树"]},{name:"宁夏",cities:["银川","吴忠"]},{name:"新疆",cities:["乌鲁木齐","哈密","喀什","巴音郭楞","昌吉","伊犁","阿勒泰","克拉玛依","博尔塔拉"]}]},getOptionHtml:function(a){return'<option value="'+a+'">'+a+"</option>"},getProvinceHtml:function(c){var d="",b="",a="";if(c=="")a=' selected="true"';d+='<option value="请选择"'+a+">--请选择--</option>";a="";for(var e=0;e<this.data.length;e++){b=this.data[e].name;if(c!=""&&b==c)a=' selected="true"';else a="";d+='<option value="'+b+'"'+a+">"+b+"</option>"}return d},getCityHtml:function(c,e){for(var f='<option value="'+c+'">'+c+"</option>",b=this.getCities(c),d="",a=0;a<b.length;a++){if(e!=""&&e==b[a])d=" selected";else d="";f+='<option value="'+b[a]+'"'+d+">"+b[a]+"</option>"}return f},getCities:function(b){for(var a=0;a<this.data.length;a++)if(this.data[a].name==b)return this.data[a].cities;return[]},bindTo:function(a){a=a||{};this.pList=$("#"+a.pList);this.cList=$("#"+a.cList);this.pList.html("").append($(this.getOptionHtml(a.defaultProvince))).append($(this.getProvinceHtml()));var b=this;this.pList.bind("change",function(){var a=this.value,c=$(b.getCityHtml(a));b.cList.html("").append(c)});this.select(a.selected)},bind:function(a){a=a||{};this.pList=$("#"+a.pList);this.cList=$("#"+a.cList);this.pList.html("").append($(this.getProvinceHtml(a.defaultProvince)));a.defaultCity!=""&&this.cList.html("").append($(this.getCityHtml(a.defaultProvince,a.defaultCity)));var b=this;this.pList.bind("change",function(){var c=this.value,d=$(b.getCityHtml(c,a.defaultCity));b.cList.html("").append(d)});this.select(a.selected)},select:function(a){if(a&&a.province){this.pList.attr("value",a.province).change();this.cList.attr("value",a.city)}}});$.create=function(a,d){if(!a||!a.tag)return;var b;if(a.tag.toLowerCase()=="input")b='<input type="'+a.type+'" />';else b="<"+a.tag+" />";b=$(b);d&&d.append(b);typeof a.attributes=="object"&&b.attr(a.attributes);typeof a.style=="object"&&b.css(a.style);typeof a.className=="string"&&b.addClass(a.className);typeof a.text=="string"&&b.html(a.text);typeof a.value=="string"&&b.val(a.value);a.callback&&a.callback(b);if(a.children)if(a.children.length)for(var c=0;c<a.children.length;c++)var e=$.create(a.children[c],b);else{var e=$.create(a.children);b.append(e)}return b};$.cnblogs.DoubleListBindingSource=$.cnblogs.BindingSource.extend({initialize:function(a){$.cnblogs.DoubleListBindingSource.baseClass.initialize.call(this,a);this.data=a.data||[]},bindTo:function(d){var e=this,b=d.parent,c=d.child;if(typeof b=="string")b=$("#"+b);if(typeof c=="string")c=$("#"+c);var a=d.defaultItem;if(a){b.append($.create({tag:"option",value:a.value,text:a.text}));c.append($.create({tag:"option",value:a.value,text:a.text}))}$.each(this.data,function(){b.append($.create({tag:"option",value:this.value,text:this.text}))});b.change(function(){c.html("");a&&c.append($.create({tag:"option",value:a.value,text:a.text}));var f=b.val();if(!a||f!=a.value){var d=$.grep(e.data,function(a){return a.value==f});if(d.length>0){var g=d[0].items;$.each(g,function(){c.append($.create({tag:"option",value:this.value,text:this.text}))})}}})}});var dateFormat=function(){var d=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,b=/[^-+\dA-Z]/g,a=function(a,b){a=String(a);b=b||2;while(a.length<b)a="0"+a;return a};return function(e,f,k){var i=dateFormat;if(arguments.length==1&&Object.prototype.toString.call(e)=="[object String]"&&!/\d/.test(e)){f=e;e=undefined}e=e?new Date(e):new Date;if(isNaN(e))throw SyntaxError("invalid date");f=String(i.masks[f]||f||i.masks["default"]);if(f.slice(0,4)=="UTC:"){f=f.slice(4);k=true}var h=k?"getUTC":"get",j=e[h+"Date"](),p=e[h+"Day"](),m=e[h+"Month"](),s=e[h+"FullYear"](),g=e[h+"Hours"](),q=e[h+"Minutes"](),r=e[h+"Seconds"](),l=e[h+"Milliseconds"](),n=k?0:e.getTimezoneOffset(),o={d:j,dd:a(j),ddd:i.i18n.dayNames[p],dddd:i.i18n.dayNames[p+7],m:m+1,mm:a(m+1),mmm:i.i18n.monthNames[m],mmmm:i.i18n.monthNames[m+12],yy:String(s).slice(2),yyyy:s,h:g%12||12,hh:a(g%12||12),H:g,HH:a(g),M:q,MM:a(q),s:r,ss:a(r),l:a(l,3),L:a(l>99?Math.round(l/10):l),t:g<12?"a":"p",tt:g<12?"am":"pm",T:g<12?"A":"P",TT:g<12?"AM":"PM",Z:k?"UTC":(String(e).match(c)||[""]).pop().replace(b,""),o:(n>0?"-":"+")+a(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4),S:(["th","st","nd","rd"])[j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(d,function(a){return a in o?o[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)};var loadingText="我在努力加载......";function login(){var a="http://"+location.hostname.replace("job.","passport.")+"/login.aspx?ReturnUrl="+location.href;location.href=a;return false}function register(){location.href="http://"+location.hostname.replace("job.","passport.")+"/register.aspx?ReturnUrl="+location.href;return false}function logout(){if(confirm("确定要退出吗?"))location.href="http://"+location.hostname.replace("job.","passport.")+"/logout.aspx?ReturnUrl="+location.href+"&random="+Math.random();return false}function goToIdByScroll(a){$("html,body").animate({scrollTop:$("#"+a).offset().top},"slow")}function goToAnchorByScroll(a){if($.browser.msie&&parseInt($.browser.version,10)<9)$('a[name="'+a+'"]').focus();else $('a[name="'+a+'"]')&&$("html,body").animate({scrollTop:$('a[name="'+a+'"]').offset().top},"slow")}function build_pager(l,c,j,g,e,h){if(j>=e)return;var b=parseInt((e+j-1)/j),d=c-g,f=c+g;if(b>g*2-1){if(d<1){d=1;f=d+2*g}else if(f>b){d=b-2*g;f=b}}else{d=1;f=b}var a=document.createDocumentFragment();if(c>1){a.appendChild(build_pager_link("&lt; Prev",c-1,j,h));if(d>1){a.appendChild(build_pager_link(1,1,e,h));a.appendChild(document.createTextNode("···"))}}for(i=d;i<=f;i++)if(i==c){var k=document.createElement("span");k.setAttribute("class","current");k.innerHTML=c;a.appendChild(k)}else a.appendChild(build_pager_link(i,i,e,h));if(c<b){if(f<b){a.appendChild(document.createTextNode("···"));a.appendChild(build_pager_link(b,b,e,h))}a.appendChild(build_pager_link("Next &gt;",c+1,e,h))}l.html(a)}function build_pager_link(c,b,e,d){var a=document.createElement("a");a.href="javascript:void(0);";a.setAttribute("onclick",d+"("+b+");");a.innerHTML=c;return a}function htmlDecode(a){return $("<div/>").html(a).text()}function htmlEncode(b){var a=$("<div/>").text(b).html();a=a.replace(/['"]/g,"&quot;");return a}function GetJSDateFromJsonDate(a){return eval(a.replace(/\/Date\((.*?)\)\//gi,"new Date($1)"))}function CreateDialog(){return $("<div/>").dialog({autoOpen:false,title:"博客园-招聘频道",width:240,height:80,modal:true,draggable:false})}function ShowPagePrepareState(a){$d=$("#forDialog");$d.find("img:first").attr("src","/image/loading.gif");$d.find("p").removeAttr("style").html("");$d.find("h3>span:first").html("正在准备页面,请稍等......").css("color","#66CC00");a.dialog("option","height",120);a.dialog("option","width",280);a.html($d.html()).dialog("open")}function ShowLoading(a){$d=$("#forDialog");$d.find("img:first").attr("src","/image/loading.gif");$d.find("p").removeAttr("style").html("");$d.find("h3>span:first").html("正在提交,请稍等......");a.dialog("option","height",120);a.dialog("option","width",250);a.html($d.html()).dialog("open")}function ShowPrepare(a){$d=$("#forDialog");$d.find("img:first").attr("src","/image/loading.gif");$d.find("p").removeAttr("style").html("");$d.find("h3>span:first").html("正在加载,请稍等......");a.dialog("option","height",120);a.dialog("option","width",250);a.html($d.html()).dialog("open")}function ShowMessage(a,b,c,d){$d=$("#forDialog");$d.find("h3>span:first").html(b);$d.find("img:first").attr("src",c);$d.find("p").removeAttr("style").html(d);a.html($d.html()).dialog("open")}function ShowConfirm(b,a,c){$d.find("h3>span:first").html(c);$d.find("img:first").attr("src","/image/error.gif");b.dialog("option","buttons",{"确定":function(){a=true},"取消":function(){a=false}});b.html($d.html()).dialog("open")}function ShowContent(a,c,d,b){$d=$("#forDialog");$d.find("img:first").attr("src",d);$d.find("h3>span:first").html(c);var e=$d.find("div.content>p:first").clone();$d.find("div.content:first").empty();$d.find("div.content:first").append(e);$d.find("div.content:first").append(b);a.html($d.html()).dialog("open")}function SetOfferNavTab(a){$("#main_nav_content>li").removeAttr("class");$("#main_nav_content").first().find("a").eq(a).parent().attr("class","current");$("#second_nav_content>div.tab"+a+":first").show();$("div#second_nav_right:first").show()}$.cnblogs.LocationDialog=$.cnblogs.Dialog.extend({data:[{name:"北京",cities:["西城","东城","崇文","宣武","朝阳","海淀","丰台","石景山","门头沟","房山","通州","顺义","大兴","昌平","平谷","怀柔","密云","延庆"]},{name:"天津",cities:["青羊","河东","河西","南开","河北","红桥","塘沽","汉沽","大港","东丽","西青","北辰","津南","武清","宝坻","静海","宁河","蓟县","开发区"]},{name:"河北",cities:["石家庄","秦皇岛","廊坊","保定","邯郸","唐山","邢台","衡水","张家口","承德","沧州","衡水"]},{name:"山西",cities:["太原","大同","长治","晋中","阳泉","朔州","运城","临汾"]},{name:"内蒙古",cities:["呼和浩特","赤峰","通辽","锡林郭勒","兴安"]},{name:"辽宁",cities:["大连","沈阳","鞍山","抚顺","营口","锦州","丹东","朝阳","辽阳","阜新","铁岭","盘锦","本溪","葫芦岛"]},{name:"吉林",cities:["长春","吉林","四平","辽源","通化","延吉","白城","辽源","松原","临江","珲春"]},{name:"黑龙江",cities:["哈尔滨","齐齐哈尔","大庆","牡丹江","鹤岗","佳木斯","绥化"]},{name:"上海",cities:["浦东","杨浦","徐汇","静安","卢湾","黄浦","普陀","闸北","虹口","长宁","宝山","闵行","嘉定","金山","松江","青浦","崇明","奉贤","南汇"]},{name:"江苏",cities:["南京","苏州","无锡","常州","扬州","徐州","南通","镇江","泰州","淮安","连云港","宿迁","盐城","淮阴","沐阳","张家港"]},{name:"浙江",cities:["杭州","金华","宁波","温州","嘉兴","绍兴","丽水","湖州","台州","舟山","衢州"]},{name:"安徽",cities:["合肥","马鞍山","蚌埠","黄山","芜湖","淮南","铜陵","阜阳","宣城","安庆"]},{name:"福建",cities:["福州","厦门","泉州","漳州","南平","龙岩","莆田","三明","宁德"]},{name:"江西",cities:["南昌","景德镇","上饶","萍乡","九江","吉安","宜春","鹰潭","新余","赣州"]},{name:"山东",cities:["青岛","济南","淄博","烟台","泰安","临沂","日照","德州","威海","东营","荷泽","济宁","潍坊","枣庄","聊城"]},{name:"河南",cities:["郑州","洛阳","开封","平顶山","濮阳","安阳","许昌","南阳","信阳","周口","新乡","焦作","三门峡","商丘"]},{name:"湖北",cities:["武汉","襄樊","孝感","十堰","荆州","黄石","宜昌","黄冈","恩施","鄂州","江汉","随枣","荆沙","咸宁"]},{name:"湖南",cities:["长沙","湘潭","岳阳","株洲","怀化","永州","益阳","张家界","常德","衡阳","湘西","邵阳","娄底","郴州"]},{name:"广东",cities:["广州","深圳","东莞","佛山","珠海","汕头","韶关","江门","梅州","揭阳","中山","河源","惠州","茂名","湛江","阳江","潮州","云浮","汕尾","潮阳","肇庆","顺德","清远"]},{name:"广西",cities:["南宁","桂林","柳州","梧州","来宾","贵港","玉林","贺州"]},{name:"海南",cities:["海口","三亚"]},{name:"重庆",cities:["渝中","大渡口","江北","沙坪坝","九龙坡","南岸","北碚","万盛","双桥","渝北","巴南","万州","涪陵","黔江","长寿"]},{name:"四川",cities:["成都","达州","南充","乐山","绵阳","德阳","内江","遂宁","宜宾","巴中","自贡","康定","攀枝花"]},{name:"贵州",cities:["贵阳","遵义","安顺","黔西南","都匀"]},{name:"云南",cities:["昆明","丽江","昭通","玉溪","临沧","文山","红河","楚雄","大理"]},{name:"西藏",cities:["拉萨","林芝","日喀则","昌都"]},{name:"陕西",cities:["西安","咸阳","延安","汉中","榆林","商南","略阳","宜君","麟游","白河"]},{name:"甘肃",cities:["兰州","金昌","天水","武威","张掖","平凉","酒泉"]},{name:"青海",cities:["黄南","海南","西宁","海东","海西","海北","果洛","玉树"]},{name:"宁夏",cities:["银川","吴忠"]},{name:"新疆",cities:["乌鲁木齐","哈密","喀什","巴音郭楞","昌吉","伊犁","阿勒泰","克拉玛依","博尔塔拉"]}],areEqual:function(a,b){return a.province==b.province&&a.city==b.city},createSpan:function(a){var c=this,b=$.create({tag:"span",text:a.province==a.city?a.city:a.province+"-"+a.city,children:{tag:"img",attributes:{src:"/Image/btn_delete.png",alt:"删除",title:"删除该项"},style:{width:"13px",height:"13px",position:"relative",top:"2px",cursor:"pointer"},callback:function(a){a.click(function(){var b=a.parent().data("item");c.removeItem(b)})}}});b.data("item",a);return b},isDuplicated:function(a){var b=this;return $.grep(this.items,function(c){return b.areEqual(c,a)}).length>0},addItem:function(a){if(this.isDuplicated(a)==false){if(this.max==this.items.length)if(this.max==1){this.selectedArea.children("span:gt(0)").remove();this.items=[]}else{alert("最多只能选择五个地区，请删除后再选择！");return}var b=this.createSpan(a);a.associatedSpan=b;this.selectedArea.append(b);this.items.push(a)}},getItem:function(b){var a=b.attr("title"),c=b.html();if(!a)a=c;var d={province:a,city:c};return d},removeItem:function(c){var b=this.items;this.items=[];for(var a=0;a<b.length;a++)if(this.areEqual(c,b[a]))b[a].associatedSpan.remove();else this.items.push(b[a])},showCities:function(d){var f=this,e=$.grep(this.data,function(a){return a.name==d})[0].cities;this.cityArea.empty();for(var g=function(a){a.click(function(){var b=f.getItem(a);f.addItem(b)})},a=0,b,c=0;c<e.length;c++){if(a++==0){b=$.create({tag:"tr"});this.cityArea.append(b)}if(a==3)a=0;var h=e[c],i=$.create({tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);",title:d},text:h,callback:g}});b.append(i)}},initialize:function(b){var a=this;$.cnblogs.LocationDialog.baseClass.initialize.call(this,b);this.confirmed=b.confirmed||{scope:this,handler:function(){}};this.items=[];this.max=b.max||5;if(!this.dialogOptions)this.dialogOptions={};$.extend(this.dialogOptions,{width:600,height:495,title:"请选择地区",resizable:false,modal:true,overlay:{"background-color":"#EEEEEE",opacity:.6},buttons:{"确定":function(){a.close();a.confirmed.handler.call(a.confirmed.scope,a.items)}}})},getContentObj:function(){var b=this,c=function(a){a.click(function(){b.cityArea.empty();b.selectedProvince.empty();var c=b.getItem(a);b.addItem(c)})},a=function(a){a.click(function(){b.selectedProvince.html($(this).text());b.showCities($(this).text())})},d=$.create({tag:"div",attributes:{id:"dialog"},children:{tag:"div",attributes:{id:"dialog_wrapper"},children:{tag:"div",style:{margin:"10px 20px"},children:[{tag:"div",children:[{tag:"div",attributes:{id:"dialog_left"},style:{"float":"left",width:"310px"},children:[{tag:"h3",className:"dialog_title_name",text:"省份列表"},{tag:"table",className:"dialog_list dialog_province_block",children:[{tag:"tr",children:[{tag:"td",className:"th",text:"直辖市："},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"北京",callback:c}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"上海",callback:c}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"天津",callback:c}}]},{tag:"tr",children:[{tag:"td",className:"th",text:"&nbsp;"},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"重庆",callback:c}},{tag:"td",attributes:{colspan:"2"}}]},{tag:"tr",className:"dialog_even",children:[{tag:"td",className:"th",text:"华北-东北:"},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"河北",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"山西",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"内蒙古",callback:a}}]},{tag:"tr",className:"dialog_even",children:[{tag:"td",className:"th",text:"&nbsp;"},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"辽宁",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"吉林",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"黑龙江",callback:a}}]},{tag:"tr",children:[{tag:"td",className:"th",text:"华东地区："},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"江苏",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"浙江",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"安徽",callback:a}}]},{tag:"tr",children:[{tag:"td",className:"th",text:"&nbsp;"},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"福建",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"江西",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"山东",callback:a}}]},{tag:"tr",className:"dialog_even",children:[{tag:"td",className:"th",text:"华南-华中："},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"广东",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"广西",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"海南",callback:a}}]},{tag:"tr",className:"dialog_even",children:[{tag:"td",className:"th",text:"&nbsp;"},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"河南",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"湖北",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"湖南",callback:a}}]},{tag:"tr",children:[{tag:"td",className:"th",text:"西北-西南："},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"陕西",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"甘肃",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"青海",callback:a}}]},{tag:"tr",children:[{tag:"td",className:"th",text:"&nbsp;"},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"宁夏",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"新疆",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"四川",callback:a}}]},{tag:"tr",children:[{tag:"td",className:"th",text:"&nbsp;"},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"贵州",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"云南",callback:a}},{tag:"td",children:{tag:"a",attributes:{href:"javascript:void(0);"},text:"西藏",callback:a}}]}]}]},{tag:"div",attributes:{id:"dialog_right"},style:{"float":"right",width:"230px","border-left":"1px dotted #ccc","margin-top":"30px",height:"300px"},children:[{tag:"div",attributes:{id:"dialog_select_tip"},text:"请选择工作城市--"},{tag:"h3",className:"dialog_title_name",callback:function(a){b.selectedProvince=a}},{tag:"table",className:"dialog_list dialog_province_block",style:{width:"210px","margin-left":"30px"},callback:function(a){b.cityArea=a}}]},{tag:"div",style:{clear:"both"}}]},{tag:"div",className:"dialog_joboffer_block",children:[{tag:"span",className:"dialog_selected_span",text:"已选地点："}],callback:function(a){b.selectedArea=a}}]}}});return d}});$.cnblogs.IndustryDialog=$.cnblogs.Dialog.extend({createSpan:function(a,d){var c=this,b=$.create({tag:"span",text:a,attributes:{title:a},children:{tag:"img",attributes:{src:"/Image/btn_delete.png",alt:"删除",title:"删除该项"},style:{width:"13px",height:"13px",position:"relative",top:"2px",cursor:"pointer"},callback:function(a){a.click(function(){var b=a.parent().data("item"),d=a.parent().data("checkbox");c.removeItem(b,d)})}}});b.data("item",a).data("checkbox",d);return b},addItem:function(a,b){if(this.max==this.items.length)if(this.max==1){this.selectedArea.children("span:last").data("checkbox").attr("checked",false);this.selectedArea.children("span:gt(0)").remove();this.items=[]}else{alert("最多只能选择五个，请删除后重新选择！");b.attr("checked",false);return}var c=this.createSpan(a,b);this.selectedArea.append(c);this.items.push(a)},removeItem:function(e,d){var c=this.selectedArea.children('span[@title="'+e+'"]:eq(1)'),b=this.items;this.items=[];for(var a=0;a<b.length;a++)b[a]!=c.attr("title")&&this.items.push(b[a]);c.remove();d&&d.attr("checked",false)},initialize:function(b){var a=this;$.cnblogs.IndustryDialog.baseClass.initialize.call(this,b);this.confirmed=b.confirmed||{scope:this,handler:function(){}};this.items=[];this.max=b.max||5;if(!this.dialogOptions)this.dialogOptions={};$.extend(this.dialogOptions,{width:600,height:300,title:"请选择行业类别",resizable:false,modal:true,overlay:{"background-color":"#EEEEEE",opacity:.6},buttons:{"确定":function(){a.close();a.confirmed.handler.call(a.confirmed.scope,a.items)}}})},getContentObj:function(){var b=this,a=function(a){a.change(function(){var a=$(this),c=a.val(),d=a.attr("checked");if(d)b.addItem(c,a);else b.removeItem(c)});a.click(function(){document.body.focus()})},c=$.create({tag:"div",attributes:{id:"dialog"},children:{tag:"div",attributes:{id:"dialog_wrapper"},children:{tag:"div",style:{margin:"10px 20px"},children:[{tag:"table",className:"dialog_list",children:{tag:"tbody",children:[{tag:"tr",className:"dialog_odd",children:[{tag:"th",text:"计算机类："},{tag:"td",children:{tag:"table",className:"dialog_inner_table",children:{tag:"tbody",children:[{tag:"tr",children:[{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_internet",value:"互联网"},callback:a},{tag:"label",attributes:{"for":"chk_internet"},text:"互联网"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_soft",value:"计算机软件"},callback:a},{tag:"label",attributes:{"for":"chk_soft"},text:"计算机软件"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_hardware",value:"计算机硬件"},callback:a},{tag:"label",attributes:{"for":"chk_hardware"},text:"计算机硬件"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_service",value:"计算机服务"},callback:a},{tag:"label",attributes:{"for":"chk_service"},text:"计算机服务"}]}]},{tag:"tr",children:[{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_business",value:"电子商务"},callback:a},{tag:"label",attributes:{"for":"chk_business"},text:"电子商务"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_game",value:"游戏"},callback:a},{tag:"label",attributes:{"for":"chk_game"},text:"游戏"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_consult",value:"咨询"},callback:a},{tag:"label",attributes:{"for":"chk_consult"},text:"咨询"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_embed",value:"嵌入式"},callback:a},{tag:"label",attributes:{"for":"chk_embed"},text:"嵌入式"}]}]},{tag:"tr",children:[{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_network",value:"电信/通信/网络设备"},callback:a},{tag:"label",attributes:{"for":"chk_network"},text:"电信/通信/网络设备"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_computer_other",value:"计算机其他"},callback:a},{tag:"label",attributes:{"for":"chk_computer_other"},text:"计算机其他"}]}]}]}}}]},{tag:"tr",className:"dialog_even",children:[{tag:"th",text:"非计算机类："},{tag:"td",children:[{tag:"table",className:"dialog_inner_table",children:[{tag:"tbody",children:[{tag:"tr",children:[{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_finance",value:"金融/银行"},callback:a},{tag:"label",attributes:{"for":"chk_finance"},text:"金融/银行"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_manu",value:"制造"},callback:a},{tag:"label",attributes:{"for":"chk_manu"},text:"制造"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_education",value:"教育/培训"},callback:a},{tag:"label",attributes:{"for":"chk_education"},text:"教育/培训"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_biology",value:"生物/医药"},callback:a},{tag:"label",attributes:{"for":"chk_biology"},text:"生物/医药"}]}]},{tag:"tr",children:[{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_life",value:"餐饮/酒店/旅游"},callback:a},{tag:"label",attributes:{"for":"chk_life"},text:"餐饮/酒店/旅游"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_traffic",value:"物流/交通/运输"},callback:a},{tag:"label",attributes:{"for":"chk_traffic"},text:"物流/交通/运输"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_build",value:"房地产/建筑/装潢"},callback:a},{tag:"label",attributes:{"for":"chk_build"},text:"房地产/建筑/装潢"}]},{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_gov",value:"政府"},callback:a},{tag:"label",attributes:{"for":"chk_gov"},text:"政府"}]}]},{tag:"tr",children:[{tag:"td",children:[{tag:"input",type:"checkbox",attributes:{id:"chk_other",value:"其他"},callback:a},{tag:"label",attributes:{"for":"chk_other"},text:"其他"}]}]}]}]}]}]}]}},{tag:"div",className:"dialog_joboffer_block",callback:function(a){b.selectedArea=a},children:[{tag:"span",className:"dialog_selected_span",text:"已选行业："}]}]}}});return c}});$.cnblogs.TechniqueRequirementDialog=$.cnblogs.Dialog.extend({data:[{text:"ASP.NET",value:"ASP.NET",items:[{text:"ASP.NET",value:"ASP.NET"},{text:"C#",value:"C#"}]},{text:"C#",value:"C#",items:[{text:"C#",value:"C#"},{text:"Enterprise Library",value:"Enterprise Library"}]}],areEqual:function(a,b){return a.technique==b.technique},isDuplicated:function(a){var b=this;return $.grep(this.items,function(c){return b.areEqual(c,a)}).length>0},createSpan:function(a){var c=this,b=$.create({tag:"span",text:a.technique+"-"+a.levelName,children:{tag:"img",attributes:{src:"/Image/btn_delete.png",alt:"删除",title:"删除该项"},style:{width:"13px",height:"13px",position:"relative",top:"2px",cursor:"pointer"},callback:function(a){a.click(function(){var b=a.parent().data("item");c.removeItem(b)})}}});b.data("item",a);return b},getItem:function(){return{technique:this.technique.val(),experience:this.experience.val(),level:this.level.val(),levelName:this.level.children("option:selected").html(),comment:this.comment.val()}},addItem:function(a){if(this.isDuplicated(a)==false){var b=this.createSpan(a);a.associatedSpan=b;this.selectedArea.append(b);this.items.push(a)}else this.modifyItem(a)},modifyItem:function(b){var c=this,a=$.grep(this.items,function(a){return c.areEqual(b,a)});if(a.length>0){a[0].level=b.level;a[0].levelTip=b.levelTip;a[0].comment=b.comment;var d=c.createSpan(b);a[0].associatedSpan.remove();a[0].associatedSpan=d;c.selectedArea.append(d)}},removeItem:function(c){var b=this.items;this.items=[];for(var a=0;a<b.length;a++)this.areEqual(b[a],c)==false&&this.items.push(b[a]);c.associatedSpan.remove()},ensureValid:function(){if(this.technique.val().length==0){this.techniqueTip.show();return false}else this.techniqueTip.hide();if(parseInt(this.experience.val())==NaN){this.experienceTip.show();return false}else this.experienceTip.hide();if(this.level.val().length==0){this.levelTip.show();return false}else this.levelTip.hide();return true},initialize:function(b){var a=this;$.cnblogs.TechniqueRequirementDialog.baseClass.initialize.call(this,b);this.items=[];this.confirmed=b.confirmed||{scope:this,handler:function(){}};if(!this.dialogOptions)this.dialogOptions={};$.extend(this.dialogOptions,{width:420,height:334,title:"请选择技能要求",resizable:false,modal:true,overlay:{"background-color":"#EEEEEE",opacity:.6},buttons:{"确定":function(){a.close();a.confirmed.handler.call(a.confirmed.scope,a.items)}}});if(b.items)a.initItems=b.items},getContentObj:function(){var a=this,c=$.create({tag:"div",attributes:{id:"dialog"},children:[{tag:"div",attributes:{id:"dialog_wrapper_small"},children:[{tag:"div",style:{margin:"10px 20px"},children:[{tag:"table",className:"dialog_list",style:{width:"390px"},children:[{tag:"tbody",children:[{tag:"tr",className:"dialog_odd",children:[{tag:"th",attributes:{valign:"top"},style:{"padding-top":"10px"},text:"请选择："},{tag:"td",children:[{tag:"table",style:{width:"294px"},children:[{tag:"tbody",children:[{tag:"tr",children:[{tag:"td",text:"类别："},{tag:"td",children:[{tag:"select",style:{width:"120px"},callback:function(b){a.type=b}}]},{tag:"td"}]},{tag:"tr",children:[{tag:"td",text:"技能："},{tag:"td",children:[{tag:"select",style:{width:"120px"},callback:function(b){a.technique=b}}]},{tag:"td",children:[{tag:"div",style:{display:"none"},className:"validation-erorr",text:"请选择",callback:function(b){a.techniqueTip=b}}]}]},{tag:"tr",children:[{tag:"td",text:"掌握程度："},{tag:"td",children:[{tag:"select",style:{width:"120px"},callback:function(b){a.level=b},children:[{tag:"option",value:"",text:"请选择"},{tag:"option",value:"1",text:"入门"},{tag:"option",value:"2",text:"了解"},{tag:"option",value:"3",text:"一般"},{tag:"option",value:"4",text:"熟练"},{tag:"option",value:"5",text:"精通"}]}]},{tag:"td",children:[{tag:"div",style:{display:"none"},className:"validation-erorr",text:"请选择",callback:function(b){a.levelTip=b}}]}]},{tag:"tr",children:[{tag:"td",text:"使用时间："},{tag:"td",children:[{tag:"input",type:"text",className:"input_default",style:{width:"60px"},callback:function(b){a.experience=b}},{tag:"span",text:"月"}]},{tag:"td",children:[{tag:"div",style:{display:"none"},className:"validation-erorr",text:"请输入",callback:function(b){a.experienceTip=b}}]}]},{tag:"tr",children:[{tag:"td",attributes:{valign:"top"},style:{"padding-top":"12px"},text:"备注"},{tag:"td",attributes:{colspan:"2"},children:[{tag:"textarea",className:"memo",callback:function(b){a.comment=b}}]}]},{tag:"tr",children:[{tag:"td"},{tag:"td",attributes:{colspan:"2",align:"left"},children:[{tag:"input",type:"button",className:"btn_add",value:"",callback:function(b){b.click(function(){if(a.ensureValid()){var b=a.getItem();a.addItem(b)}})}}]}]}]}]}]}]}]}]},{tag:"div",className:"dialog_joboffer_block_2",callback:function(b){a.selectedArea=b},children:[{tag:"span",className:"dialog_selected_span",text:"技能要求："}]}]}]}]}),b=new $.cnblogs.DoubleListBindingSource({data:a.data});b.bindTo({parent:a.type,child:a.technique,defaultItem:{text:"请选择",value:""}});a.initItems&&$.each(a.initItems,function(){a.addItem(this)});return c}});$.cnblogs.LanguageRequirementDialog=$.cnblogs.Dialog.extend({areEqual:function(a,b){return a.language==b.language},isDuplicated:function(a){var b=this;return $.grep(this.items,function(c){return b.areEqual(a,c)}).length>0},createSpan:function(a){var c=this,b=$.create({tag:"span",text:a.language+"-"+a.levelName,children:{tag:"img",attributes:{src:"/Image/btn_delete.png",alt:"删除",title:"删除该项"},style:{width:"13px",height:"13px",position:"relative",top:"2px",cursor:"pointer"},callback:function(a){a.click(function(){var b=a.parent().data("item");c.removeItem(b)})}}});b.data("item",a);return b},ensureValid:function(){if(this.language.val().length==0){this.languageTip.show();return false}else this.languageTip.hide();if(this.level.val().length==0){this.levelTip.show();return false}else this.levelTip.hide();return true},getItem:function(){return{language:this.language.val(),level:this.level.val(),levelName:this.level.children("option:selected").html(),comment:this.comment.val()}},addItem:function(a){if(this.isDuplicated(a)==false){var b=this.createSpan(a);a.associatedSpan=b;this.selectedArea.append(b);this.items.push(a)}else this.modifyItem(a)},modifyItem:function(b){var c=this,a=$.grep(this.items,function(a){return c.areEqual(b,a)});if(a.length>0){a[0].level=b.level;a[0].levelTip=b.levelTip;a[0].comment=b.comment;var d=c.createSpan(b);a[0].associatedSpan.remove();a[0].associatedSpan=d;c.selectedArea.append(d)}},removeItem:function(c){var b=this.items;this.items=[];for(var a=0;a<b.length;a++)this.areEqual(b[a],c)==false&&this.items.push(b[a]);c.associatedSpan.remove()},initialize:function(b){var a=this;$.cnblogs.LanguageRequirementDialog.baseClass.initialize.call(this,b);this.confirmed=b.confirmed||{scope:this,handler:function(){}};this.items=[];if(!this.dialogOptions)this.dialogOptions={};$.extend(this.dialogOptions,{width:420,height:288,title:"请选择外语要求",resizable:false,modal:true,overlay:{"background-color":"#EEEEEE",opacity:.6},buttons:{"确定":function(){a.close();a.confirmed.handler.call(a.confirmed.scope,a.items)}}});if(b.items)a.initItems=b.items},getContentObj:function(){var a=this,b=$.create({tag:"div",attributes:{id:"dialog"},children:[{tag:"div",attributes:{id:"dialog_wrapper_small"},children:[{tag:"div",style:{margin:"10px 20px"},children:[{tag:"table",className:"dialog_list",style:{width:"390px"},children:[{tag:"tbody",children:[{tag:"tr",className:"dialog_odd",children:[{tag:"th",attributes:{valign:"top"},style:{"padding-top":"10px"},text:"请选择："},{tag:"td",children:[{tag:"table",style:{width:"294px"},children:[{tag:"tbody",children:[{tag:"tr",children:[{tag:"td",text:"语种："},{tag:"td",children:[{tag:"select",style:{width:"120px"},callback:function(b){a.language=b},children:[{tag:"option",value:"",text:"请选择"},{tag:"option",value:"英语",text:"英语"},{tag:"option",value:"日语",text:"日语"},{tag:"option",value:"法语",text:"法语"}]}]},{tag:"td",children:[{tag:"div",style:{display:"none"},text:"请选择",callback:function(b){a.languageTip=b}}]}]},{tag:"tr",children:[{tag:"td",text:"程度："},{tag:"td",children:[{tag:"select",style:{width:"120px"},callback:function(b){a.level=b},children:[{tag:"option",value:"",text:"请选择"},{tag:"option",value:"1",text:"入门"},{tag:"option",value:"2",text:"了解"},{tag:"option",value:"3",text:"一般"},{tag:"option",value:"4",text:"良好"},{tag:"option",value:"5",text:"精通"}]}]},{tag:"td",style:{display:"none"},text:"请选择",callback:function(b){a.levelTip=b}}]},{tag:"tr",children:[{tag:"td",attributes:{valign:"top"},style:{"padding-top":"12px"},text:"备注："},{tag:"td",attributes:{colspan:"2"},children:[{tag:"textarea",className:"memo",callback:function(b){a.comment=b}}]}]},{tag:"tr",children:[{tag:"td"},{tag:"td",attributes:{colspan:"2",align:"left"},children:[{tag:"input",type:"button",className:"btn_add",value:"",callback:function(b){b.click(function(){if(a.ensureValid()){var b=a.getItem();a.addItem(b)}})}}]}]}]}]}]}]}]}]}]},{tag:"div",className:"dialog_joboffer_block",callback:function(b){a.selectedArea=b},children:[{tag:"span",className:"dialog_selected_span",text:"外语要求："}]}]}]});a.initItems&&$.each(a.initItems,function(){a.addItem(this)});return b}});$.cnblogs.JobPositionGrid=$.cnblogs.Control.extend({initialize:function(a){$.cnblogs.JobPositionGrid.baseClass.initialize.call(this,a);this.data=a.data;if(!this.data)this.data=[{name:"程序开发：",items:[".NET工程师","JAVA工程师","PHP工程师","C/C++工程师","移动开发","其他"]},{name:"数据库开发：",items:["SQL Server开发","Oracle开发","DB2开发","MySql开发","其他"]},{name:"网页设计：",items:["页面制作","平面/3D设计","Flex工程师","Flash设计师","Silvelight工程师","其他"]},{name:"管理/架构：",items:["项目经理","技术总监","首席技术官(CTO)","产品经理","系统分析师","系统架构师","质量管理与测试","其他"]},{name:"其他职位：",items:["用户体验设计师","技术支持","网站编辑","技术讲师","产品运营","产品销售","产品策划","其他"]}];this.columns=a.columns||4;this.selected=a.selected||{scope:this,handler:function(){}}},getContentObj:function(){var j=this,k=$('<table class="dialog_list" style="margin-top: 10px;"></table>'),i=$("<tbody></tbody>");k.append(i);for(var a=0;a<this.data.length;a++){var e=$("<tr></tr>");if(a%2!=0)e=$('<tr class="dialog_even"></tr>');var o=$("<th></th>").html(this.data[a].name),h=$("<td></td>"),g=$('<table class="dialog_inner_table"></table>'),c=$("<tbody></tbody>");h.append(g);g.append(c);e.append(o).append(h);i.append(e);var n=0,b=$("<tr></tr>");c.append(b);for(var f=0;f<this.data[a].items.length;f++){var d=this.data[a].items[f];if(n++==this.columns){b=$("<tr></tr>");c.append(b)}var m=d=="其他"?this.data[a].name.substring(0,this.data[a].name.length-1):d,l=$("<a></a>").attr("href","javascript:void(0);").attr("title",m).html(d).click(function(){j.selected.handler.call(j.selected.scope,$(this).attr("title"))});b.append($("<td></td>").append(l))}}return k}});$.cnblogs.JobPositionSelectDialog=$.cnblogs.Dialog.extend({initialize:function(b){var a=this;$.cnblogs.JobPositionSelectDialog.baseClass.initialize.call(this,b);this.confirmed=b.confirmed||{scope:this,handler:function(){}};if(!this.dialogOptions)this.dialogOptions={};$.extend(this.dialogOptions,{width:600,height:410,title:"请选择职位名称(只能选择一个)",resizable:false,buttons:{"确定":function(){a.close()}},close:function(){a.confirmed.handler.call(a.confirmed.scope,a.selectedSpan.html());a.close(true)},modal:true,overlay:{"background-color":"#EEEEEE",opacity:.6}});this.selected={scope:this,handler:function(a){this.selectedSpan.html(a)}}},getContentObj:function(){var e=$('<div id="dialog"></div>'),c=$('<div style="margin:10px 20px;"></div>');e.append(c);var a=$('<div id="dialog_wrapper"></div>');c.append(a);var d=$("<div></div>");a.append(d);var f=new $.cnblogs.JobPositionGrid({container:d,selected:this.selected});f.render();var b=$('<div class="dialog_joboffer_block"></div>').append('<span class="dialog_selected_span">已选职位：</span>');a.append(b);this.selectedSpan=$('<span id="selected"></span>');b.append(this.selectedSpan);return e}});function getQueryString(){var a=location.search.match(new RegExp("[?&][^?&]+=[^?&]+","g"));if(a==null)return"";for(var b=0;b<a.length;b++)a[b]=a[b].substring(1);return a}function getQueryStringByName(b){var a=location.search.match(new RegExp("[?&]"+b+"=([^&]+)","i"));return a==null||a.length<1?"":a[1]}function getQueryStringByIndex(b){if(b==null)return"";var c=getQueryString();if(b>=c.length)return"";var a=c[b],d=a.indexOf("=")+1;a=a.substring(d);return a}function waterInputText(b,a){if($("#"+b).val().length>0&&$("#"+b).val()!=a)return;$("#"+b).val(a).addClass("waterText");$("#"+b).focus(function(){$(this).val()==a&&$(this).val("").removeClass("waterText")}).blur(function(){$(this).val()==""&&$(this).val(a).addClass("waterText")})}
