var requirejs,require,define;(function(ba){function G(b){return"[object Function]"===K.call(b)}function H(b){return"[object Array]"===K.call(b)}function v(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1){}}}function T(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1){}}}function t(b,c){return fa.call(b,c)}function m(b,c){return t(b,c)&&b[c]}function B(b,c){for(var d in b){if(t(b,d)&&c(b[d],d)){break}}}function U(b,c,d,e){c&&B(c,function(c,g){if(d||!t(b,g)){e&&"object"===typeof c&&c&&!H(c)&&!G(c)&&!(c instanceof RegExp)?(b[g]||(b[g]={}),U(b[g],c,d,e)):b[g]=c}});return b}function u(b,c){return function(){return c.apply(b,arguments)}}function ca(b){throw b}function da(b){if(!b){return b}var c=ba;v(b.split("."),function(b){c=c[b]});return c}function C(b,c,d,e){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=e;d&&(c.originalError=d);return c}function ga(b){function c(a,k,b){var f,l,c,d,e,g,i,p,k=k&&k.split("/"),h=j.map,n=h&&h["*"];if(a){a=a.split("/");l=a.length-1;j.nodeIdCompat&&Q.test(a[l])&&(a[l]=a[l].replace(Q,""));"."===a[0].charAt(0)&&k&&(l=k.slice(0,k.length-1),a=l.concat(a));l=a;for(c=0;c<l.length;c++){if(d=l[c],"."===d){l.splice(c,1),c-=1}else{if(".."===d&&!(0===c||1==c&&".."===l[2]||".."===l[c-1])&&0<c){l.splice(c-1,2),c-=2}}}a=a.join("/")}if(b&&h&&(k||n)){l=a.split("/");c=l.length;a:for(;0<c;c-=1){e=l.slice(0,c).join("/");if(k){for(d=k.length;0<d;d-=1){if(b=m(h,k.slice(0,d).join("/"))){if(b=m(b,e)){f=b;g=c;break a}}}}!i&&(n&&m(n,e))&&(i=m(n,e),p=c)}!f&&i&&(f=i,g=p);f&&(l.splice(0,g,f),a=l.join("/"))}return(f=m(j.pkgs,a))?f:a}function d(a){z&&v(document.getElementsByTagName("script"),function(k){if(k.getAttribute("data-requiremodule")===a&&k.getAttribute("data-requirecontext")===i.contextName){return k.parentNode.removeChild(k),!0}})}function e(a){var k=m(j.paths,a);if(k&&H(k)&&1<k.length){return k.shift(),i.require.undef(a),i.makeRequire(null,{skipMap:!0})([a]),!0}}function n(a){var k,c=a?a.indexOf("!"):-1;-1<c&&(k=a.substring(0,c),a=a.substring(c+1,a.length));return[k,a]}function p(a,k,b,f){var l,d,e=null,g=k?k.name:null,j=a,p=!0,h="";a||(p=!1,a="_@r"+(K+=1));a=n(a);e=a[0];a=a[1];e&&(e=c(e,g,f),d=m(r,e));a&&(e?h=d&&d.normalize?d.normalize(a,function(a){return c(a,g,f)}):-1===a.indexOf("!")?c(a,g,f):a:(h=c(a,g,f),a=n(h),e=a[0],h=a[1],b=!0,l=i.nameToUrl(h)));b=e&&!d&&!b?"_unnormalized"+(O+=1):"";return{prefix:e,name:h,parentMap:k,unnormalized:!!b,url:l,originalName:j,isDefine:p,id:(e?e+"!"+h:h)+b}}function s(a){var k=a.id,b=m(h,k);b||(b=h[k]=new i.Module(a));return b}function q(a,k,b){var f=a.id,c=m(h,f);if(t(r,f)&&(!c||c.defineEmitComplete)){"defined"===k&&b(r[f])}else{if(c=s(a),c.error&&"error"===k){b(c.error)}else{c.on(k,b)}}}function w(a,b){var c=a.requireModules,f=!1;if(b){b(a)}else{if(v(c,function(b){if(b=m(h,b)){b.error=a,b.events.error&&(f=!0,b.emit("error",a))}}),!f){g.onError(a)}}}function x(){R.length&&(ha.apply(A,[A.length,0].concat(R)),R=[])}function y(a){delete h[a];delete V[a]}function F(a,b,c){var f=a.map.id;a.error?a.emit("error",a.error):(b[f]=!0,v(a.depMaps,function(f,d){var e=f.id,g=m(h,e);g&&(!a.depMatched[d]&&!c[e])&&(m(b,e)?(a.defineDep(d,r[e]),a.check()):F(g,b,c))}),c[f]=!0)}function D(){var a,b,c=(a=1000*j.waitSeconds)&&i.startTime+a<(new Date).getTime(),f=[],l=[],g=!1,h=!0;if(!W){W=!0;B(V,function(a){var i=a.map,j=i.id;if(a.enabled&&(i.isDefine||l.push(a),!a.error)){if(!a.inited&&c){e(j)?g=b=!0:(f.push(j),d(j))}else{if(!a.inited&&(a.fetched&&i.isDefine)&&(g=!0,!i.prefix)){return h=!1}}}});if(c&&f.length){return a=C("timeout","Load timeout for modules: "+f,null,f),a.contextName=i.contextName,w(a)}h&&v(l,function(a){F(a,{},{})});if((!c||b)&&g){if((z||ea)&&!X){X=setTimeout(function(){X=0;D()},50)}}W=!1}}function E(a){t(r,a[0])||s(p(a[0],null,!0)).init(a[1],a[2])}function I(a){var a=a.currentTarget||a.srcElement,b=i.onScriptLoad;a.detachEvent&&!Y?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=i.onScriptError;(!a.detachEvent||Y)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function J(){var a;for(x();A.length;){a=A.shift();if(null===a[0]){return w(C("mismatch","Mismatched anonymous define() module: "+a[a.length-1]))}E(a)}}var W,Z,i,L,X,j={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},h={},V={},$={},A=[],r={},S={},aa={},K=1,O=1;L={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine){return a.exports?r[a.map.id]=a.exports:a.exports=r[a.map.id]={}}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return m(j.config,a.map.id)||{}},exports:a.exports||(a.exports={})}}};Z=function(a){this.events=m($,a.id)||{};this.map=a;this.shim=m(j.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};Z.prototype={init:function(a,b,c,f){f=f||{};if(!this.inited){this.factory=b;if(c){this.on("error",c)}else{this.events.error&&(c=u(this,function(a){this.emit("error",a)}))}this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;this.ignore=f.ignore;f.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim){i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return a.prefix?this.callPlugin():this.load()}))}else{return a.prefix?this.callPlugin():this.load()}}},load:function(){var a=this.map.url;S[a]||(S[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var f=this.exports,l=this.factory;if(this.inited){if(this.error){this.emit("error",this.error)}else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(G(l)){if(this.events.error&&this.map.isDefine||g.onError!==ca){try{f=i.execCb(c,l,b,f)}catch(d){a=d}}else{f=i.execCb(c,l,b,f)}this.map.isDefine&&void 0===f&&((b=this.module)?f=b.exports:this.usingExports&&(f=this.exports));if(a){return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",w(this.error=a)}}else{f=l}this.exports=f;if(this.map.isDefine&&!this.ignore&&(r[c]=f,g.onResourceLoad)){g.onResourceLoad(i,this.map,this.depMaps)}y(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}}else{this.fetch()}}},callPlugin:function(){var a=this.map,b=a.id,d=p(a.prefix);this.depMaps.push(d);q(d,"defined",u(this,function(f){var l,d;d=m(aa,this.map.id);var e=this.map.name,P=this.map.parentMap?this.map.parentMap.name:null,n=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(f.normalize&&(e=f.normalize(e,function(a){return c(a,P,!0)})||""),f=p(a.prefix+"!"+e,this.map.parentMap),q(f,"defined",u(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=m(h,f.id)){this.depMaps.push(f);if(this.events.error){d.on("error",u(this,function(a){this.emit("error",a)}))}d.enable()}}else{d?(this.map.url=i.nameToUrl(d),this.load()):(l=u(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),l.error=u(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];B(h,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&y(a.map.id)});w(a)}),l.fromText=u(this,function(f,c){var d=a.name,e=p(d),P=M;c&&(f=c);P&&(M=!1);s(e);t(j.config,b)&&(j.config[d]=j.config[b]);try{g.exec(f)}catch(h){return w(C("fromtexteval","fromText eval for "+b+" failed: "+h,h,[b]))}P&&(M=!0);this.depMaps.push(e);i.completeLoad(d);n([d],l)}),f.load(a.name,n,l,j))}}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){V[this.map.id]=this;this.enabling=this.enabled=!0;v(this.depMaps,u(this,function(a,b){var c,f;if("string"===typeof a){a=p(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=m(L,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;q(a,"defined",u(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&q(a,"error",u(this,this.errback))}c=a.id;f=h[c];!t(L,c)&&(f&&!f.enabled)&&i.enable(a,this)}));B(this.pluginMaps,u(this,function(a){var b=m(h,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){v(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:j,contextName:b,registry:h,defined:r,urlFetched:S,defQueue:A,Module:Z,makeModuleMap:p,nextTick:g.nextTick,onError:w,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=j.shim,c={paths:!0,bundles:!0,config:!0,map:!0};B(a,function(a,b){c[b]?(j[b]||(j[b]={}),U(j[b],a,!0,!0)):j[b]=a});a.bundles&&B(a.bundles,function(a,b){v(a,function(a){a!==b&&(aa[a]=b)})});a.shim&&(B(a.shim,function(a,c){H(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn){a.exportsFn=i.makeShimExports(a)}b[c]=a}),j.shim=b);a.packages&&v(a.packages,function(a){var b,a="string"===typeof a?{name:a}:a;b=a.name;a.location&&(j.paths[b]=a.location);j.pkgs[b]=a.name+"/"+(a.main||"main").replace(ia,"").replace(Q,"")});B(h,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=p(b))});if(a.deps||a.callback){i.require(a.deps||[],a.callback)}},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(ba,arguments));return b||a.exports&&da(a.exports)}},makeRequire:function(a,e){function j(c,d,m){var n,q;e.enableBuildCallback&&(d&&G(d))&&(d.__requireJsBuild=!0);if("string"===typeof c){if(G(d)){return w(C("requireargs","Invalid require call"),m)}if(a&&t(L,c)){return L[c](h[a.id])}if(g.get){return g.get(i,c,a,j)}n=p(c,a,!1,!0);n=n.id;return !t(r,n)?w(C("notloaded",'Module name "'+n+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[n]}J();i.nextTick(function(){J();q=s(p(null,a));q.skipMap=e.skipMap;q.init(c,d,m,{enabled:!0});D()});return j}e=e||{};U(j,{isBrowser:z,toUrl:function(b){var d,e=b.lastIndexOf("."),k=b.split("/")[0];if(-1!==e&&(!("."===k||".."===k)||1<e)){d=b.substring(e,b.length),b=b.substring(0,e)}return i.nameToUrl(c(b,a&&a.id,!0),d,!0)},defined:function(b){return t(r,p(b,a,!1,!0).id)},specified:function(b){b=p(b,a,!1,!0).id;return t(r,b)||t(h,b)}});a||(j.undef=function(b){x();var c=p(b,a,!0),e=m(h,b);d(b);delete r[b];delete S[c.url];delete $[b];T(A,function(a,c){a[0]===b&&A.splice(c,1)});e&&(e.events.defined&&($[b]=e.events),y(b))});return j},enable:function(a){m(h,a.id)&&s(a).enable()},completeLoad:function(a){var b,c,d=m(j.shim,a)||{},g=d.exports;for(x();A.length;){c=A.shift();if(null===c[0]){c[0]=a;if(b){break}b=!0}else{c[0]===a&&(b=!0)}E(c)}c=m(h,a);if(!b&&!t(r,a)&&c&&!c.inited){if(j.enforceDefine&&(!g||!da(g))){return e(a)?void 0:w(C("nodefine","No define call for "+a,null,[a]))}E([a,d.deps||[],d.exportsFn])}D()},nameToUrl:function(a,b,c){var d,e,h;(d=m(j.pkgs,a))&&(a=d);if(d=m(aa,a)){return i.nameToUrl(d,b,c)}if(g.jsExtRegExp.test(a)){d=a+(b||"")}else{d=j.paths;a=a.split("/");for(e=a.length;0<e;e-=1){if(h=a.slice(0,e).join("/"),h=m(d,h)){H(h)&&(h=h[0]);a.splice(0,e,h);break}}d=a.join("/");d+=b||(/^data\:|\?/.test(d)||c?"":".js");d=("/"===d.charAt(0)||d.match(/^[\w\+\.\-]+:/)?"":j.baseUrl)+d}return j.urlArgs?d+((-1===d.indexOf("?")?"?":"&")+j.urlArgs):d},load:function(a,b){g.load(i,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||ja.test((a.currentTarget||a.srcElement).readyState)){N=null,a=I(a),i.completeLoad(a.id)}},onScriptError:function(a){var b=I(a);if(!e(b.id)){return w(C("scripterror","Script error for: "+b.id,a,[b.id]))}}};i.require=i.makeRequire();return i}var g,x,y,D,I,E,N,J,s,O,ka=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,la=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,Q=/\.js$/,ia=/^\.\//;x=Object.prototype;var K=x.toString,fa=x.hasOwnProperty,ha=Array.prototype.splice,z=!!("undefined"!==typeof window&&"undefined"!==typeof navigator&&window.document),ea=!z&&"undefined"!==typeof importScripts,ja=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Y="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),F={},q={},R=[],M=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(G(requirejs)){return}q=requirejs;requirejs=void 0}"undefined"!==typeof require&&!G(require)&&(q=require,require=void 0);g=requirejs=function(b,c,d,e){var n,p="_";!H(b)&&"string"!==typeof b&&(n=b,H(c)?(b=c,c=d,d=e):b=[]);n&&n.context&&(p=n.context);(e=m(F,p))||(e=F[p]=g.s.newContext(p));n&&e.configure(n);return e.require(b,c,d)};g.config=function(b){return g(b)};g.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=g);g.version="2.1.15";g.jsExtRegExp=/^\/|:|\?|\.js$/;g.isBrowser=z;x=g.s={contexts:F,newContext:ga};g({});v(["toUrl","undef","defined","specified"],function(b){g[b]=function(){var c=F._;return c.require[b].apply(c,arguments)}});if(z&&(y=x.head=document.getElementsByTagName("head")[0],D=document.getElementsByTagName("base")[0])){y=x.head=D.parentNode}g.onError=ca;g.createNode=function(b){var c=b.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");c.type=b.scriptType||"text/javascript";c.charset="utf-8";c.async=!0;return c};g.load=function(b,c,d){var e=b&&b.config||{};if(z){return e=g.createNode(e,c,d),e.setAttribute("data-requirecontext",b.contextName),e.setAttribute("data-requiremodule",c),e.attachEvent&&!(e.attachEvent.toString&&0>e.attachEvent.toString().indexOf("[native code"))&&!Y?(M=!0,e.attachEvent("onreadystatechange",b.onScriptLoad)):(e.addEventListener("load",b.onScriptLoad,!1),e.addEventListener("error",b.onScriptError,!1)),e.src=d,J=e,D?y.insertBefore(e,D):y.appendChild(e),J=null,e}if(ea){try{importScripts(d),b.completeLoad(c)}catch(m){b.onError(C("importscripts","importScripts failed for "+c+" at "+d,m,[c]))}}};z&&!q.skipDataMain&&T(document.getElementsByTagName("script"),function(b){y||(y=b.parentNode);if(I=b.getAttribute("data-main")){return s=I,q.baseUrl||(E=s.split("/"),s=E.pop(),O=E.length?E.join("/")+"/":"./",q.baseUrl=O),s=s.replace(Q,""),g.jsExtRegExp.test(s)&&(s=I),q.deps=q.deps?q.deps.concat(s):[s],!0}});define=function(b,c,d){var e,g;"string"!==typeof b&&(d=c,c=b,b=null);H(c)||(d=c,c=null);!c&&G(d)&&(c=[],d.length&&(d.toString().replace(ka,"").replace(la,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(M){if(!(e=J)){N&&"interactive"===N.readyState||T(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState){return N=b}}),e=N}e&&(b||(b=e.getAttribute("data-requiremodule")),g=F[e.getAttribute("data-requirecontext")])}(g?g.defQueue:R).push([b,c,d])};define.amd={jQuery:!0};g.exec=function(b){return eval(b)};g(q)}})(this);
/* jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(f,d){"object"==typeof module&&"object"==typeof module.exports?module.exports=f.document?d(f,!0):function(b){if(!b.document){throw new Error("jQuery requires a window with a document")}return d(b)}:d(f)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++){if(null!=(e=arguments[h])){for(d in e){a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c))}}}return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return !m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a){return !1}return !0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a)){return !1}try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf")){return !1}}catch(c){return !1}if(k.ownLast){for(b in a){return j.call(a,b)}}for(b in a){}return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++){if(d=b.apply(a[e],c),d===!1){break}}}else{for(e in a){if(d=b.apply(a[e],c),d===!1){break}}}}else{if(g){for(;f>e;e++){if(d=b.call(a[e],e,a[e]),d===!1){break}}}else{for(e in a){if(d=b.call(a[e],e,a[e]),d===!1){break}}}}return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g){return g.call(b,a,c)}for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++){if(c in b&&b[c]===a){return c}}}return -1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d){a[e++]=b[d++]}if(c!==c){while(void 0!==b[d]){a[e++]=b[d++]}}return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++){d=!b(a[f],f),d!==h&&e.push(a[f])}return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h){for(;g>f;f++){d=b(a[f],f,c),null!=d&&i.push(d)}}else{for(f in a){d=b(a[f],f,c),null!=d&&i.push(d)}}return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return +new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length" in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++){if(a[c]===b){return c}}return -1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]){}a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k){return d}if(!e&&p){if(11!==k&&(f=_.exec(a))){if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode){return d}if(h.id===j){return d.push(h),d}}else{if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j){return d.push(h),d}}}else{if(f[2]){return H.apply(d,b.getElementsByTagName(a)),d}if((j=f[3])&&c.getElementsByClassName){return H.apply(d,b.getElementsByClassName(j)),d}}}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--){o[l]=s+ra(o[l])}w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x){try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return !!a(b)}catch(c){return !1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--){d.attrHandle[c[e]]=b}}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d){return d}if(c){while(c=c.nextSibling){if(c===b){return -1}}}return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--){c[e=f[g]]&&(c[e]=!(d[e]=c[e]))}})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++]){1===c.nodeType&&d.push(c)}return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return !0}}}return !1},B=b?function(a,b){if(a===b){return l=!0,0}var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b){return l=!0,0}var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f){return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0}if(e===f){return la(a,b)}c=a;while(c=c.parentNode){h.unshift(c)}c=b;while(c=c.parentNode){i.unshift(c)}while(h[d]===i[d]){d++}return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b))){try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType){return d}}catch(e){}}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++]){b===a[f]&&(e=d.push(f))}while(e--){a.splice(d[e],1)}}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent){return a.textContent}for(a=a.firstChild;a;a=a.nextSibling){c+=e(a)}}else{if(3===f||4===f){return a.nodeValue}}}else{while(b=a[d++]){c+=e(b)}}return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return !0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return !!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p]){if(h?l.nodeName.toLowerCase()===r:1===l.nodeType){return !1}}o=p="only"===a&&!o&&"nextSibling"}return !0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}}else{if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w){m=j[1]}else{while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b)){break}}}}return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--){d=J(a,f[g]),a[d]=!(c[d]=f[g])}}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--){(f=g[h])&&(a[h]=!(b[h]=f))}}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do{if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang")){return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-")}}while((b=b.parentNode)&&1===b.nodeType);return !1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling){if(a.nodeType<6){return !1}}return !0},parent:function(a){return !d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2){a.push(c)}return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2){a.push(c)}return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;){a.push(d)}return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;){a.push(d)}return a})}},d.pseudos.nth=d.pseudos.eq;for(b in {radio:!0,checkbox:!0,file:!0,password:!0,image:!0}){d.pseudos[b]=ma(b)}for(b in {submit:!0,reset:!0}){d.pseudos[b]=na(b)}function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k){return b?0:k.slice(0)}h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter){!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length))}if(!c){break}}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++){d+=a[b].value}return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d]){if(1===b.nodeType||e){return a(b,c,f)}}}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d]){if((1===b.nodeType||e)&&a(b,c,g)){return !0}}}else{while(b=b[d]){if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f){return j[2]=h[2]}if(i[d]=j,j[2]=a(b,c,g)){return !0}}}}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--){if(!a[e](b,c,d)){return !1}}return !0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++){ga(a,b[d],c)}return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++){(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h))}return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--){(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}}if(f){if(e||a){if(e){j=[],k=r.length;while(k--){(l=r[k])&&j.push(q[k]=l)}e(null,r=[],j,i)}k=r.length;while(k--){(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}}else{r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)}})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++){if(c=d.relative[a[i].type]){m=[sa(ta(m),c)]}else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++){if(d.relative[a[e].type]){break}}return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||0.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++]){if(o(l,g,h)){i.push(l);break}}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++]){o(r,s,g,h)}if(f){if(p>0){while(q--){r[q]||s[q]||(s[q]=F.call(i))}}s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--){f=xa(b[c]),f[u]?d.push(f):e.push(f)}f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b){return e}n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type]){break}if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a){return H.apply(e,f),e}break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b)){return m.grep(a,function(a,d){return !!b.call(a,d,a)!==c})}if(b.nodeType){return m.grep(a,function(a){return a===b!==c})}if("string"==typeof b){if(v.test(b)){return m.filter(b,a,c)}b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a){return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++){if(m.contains(d[b],this)){return !0}}}))}for(b=0;e>b;b++){m.find(a,d[b],c)}return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return !!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a){return this}if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b){return !b||b.jquery?(b||x).find(a):this.constructor(b).find(a)}if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b)){for(c in b){m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c])}}return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2]){return x.find(a)}this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c))){1===e.nodeType&&d.push(e),e=e[b]}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling){1===a.nodeType&&a!==b&&c.push(a)}return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++){if(m.contains(this,c[b])){return !0}}})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++){for(c=this[d];c&&c!==b;c=c.parentNode){if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}}}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do{a=a[b]}while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++){if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1){h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return !h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return !i},fireWith:function(a,c){return !h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return !!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1){for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++){c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f}}return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body){return setTimeout(m.ready)}m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H){if(H=m.Deferred(),"complete"===y.readyState){setTimeout(m.ready)}else{if(y.addEventListener){y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1)}else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}}}return H.promise(b)};var K="undefined",L;for(L in m(k)){break}k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else{c=void 0}}return c}function P(a){var b;for(b in a){if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b){return !1}}return !0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b){return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--){delete d[b[e]]}if(c?!P(d):!m.isEmptyObject(d)){return}}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--){g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])))}m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--){c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h))}return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c){m.access(a,b,h,c[h],!0,f,g)}}else{if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b)){for(;i>h;h++){b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)))}}}return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in {submit:!0,change:!0,focusin:!0}){c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1)}d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return !0}function ba(){return !1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--){f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0)}a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--){if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--){g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g))}i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else{for(o in k){m.event.remove(a,o+b[j],c,d,!0)}}}m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode){o.push(h),l=h}l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped()){b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault())}if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped()){(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type)){for(;i!=this;i=i.parentNode||this){if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++){d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d)}e.length&&g.push({elem:i,handlers:e})}}}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando]){return a}var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--){c=d[b],a[c]=f[c]}return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus){try{return this.focus(),!1}catch(a){}}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void (this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a){this.on(f,b,c,a[f],e)}return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1){d=ba}else{if(!d){return this}}return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj){return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this}if("object"==typeof a){for(e in a){this.off(e,b,a[e])}return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement){while(b.length){c.createElement(b.pop())}}return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f){for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++){!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b))}}return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++){m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h){for(d=0,e=h[c].length;e>d;d++){m.event.add(b,c,h[c][d])}}}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events){m.removeEvent(b,d,e.handle)}b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a))){for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g){d[g]&&Ba(e,d[g])}}if(b){if(c){for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++){Aa(e,d[g])}}else{Aa(a,f)}}return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++){if(f=a[q],f||0===f){if("object"===m.type(f)){m.merge(p,f.nodeType?[f]:f)}else{if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1></$2>")+l[2],e=l[0];while(e--){h=h.lastChild}if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?"<table>"!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--){m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild){h.removeChild(h.firstChild)}h=o.lastChild}else{p.push(b.createTextNode(f))}}}}h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++]){if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++]){oa.test(f.type||"")&&c.push(f)}}}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++){if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events){for(e in g.events){n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle)}}j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++){b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c))}return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild){a.removeChild(a.firstChild)}a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a){return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0}if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1></$2>");try{for(;d>c;c++){b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a)}b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p)){return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)})}if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++){d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j)}if(f){for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++){d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")))}}i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++){c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get())}return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a){return a}a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c){return c?void delete this.get:(this.get=b).apply(this,arguments)}}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b){g[f]=a.style[f],a.style[f]=b[f]}e=c.apply(a,d||[]);for(f in b){a.style[f]=g[f]}return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a){return b}var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--){if(b=Ta[e]+c,b in a){return b}}return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++){d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))))}for(g=0;h>g;g++){d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"))}return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2){"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)))}return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e)){return e}d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c){return g&&"get" in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]}if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set" in g&&void 0===(c=g.set(a,c,d))))){try{i[b]=c}catch(j){}}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get" in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++){e[a+T[d]+b]=f[d]||f[d-2]||f[0]}return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++){f[b[g]]=m.css(a,b[g],!1,d)}return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do{h=h||".5",g/=h,m.style(c.elem,a,g+f)}while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b){c=T[e],d["margin"+c]=d["padding"+c]=a}return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++){if(d=e[f].call(c,b,a)){return d}}}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height" in b||"width" in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b){if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d]){continue}q=!0}o[d]=r&&r[d]||m.style(a,d)}else{j=void 0}}if(m.isEmptyObject(o)){"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j)}else{r?"hidden" in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o){m.style(a,b,o[b])}});for(d in o){g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}}function jb(a,b){var c,d,e,f,g;for(c in a){if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand" in g){f=g.expand(f),delete a[d];for(c in f){c in a||(a[c]=f[c],b[c]=e)}}else{b[d]=e}}}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e){return !1}for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++){j.tweens[g].run(f)}return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e){return this}for(e=!0;d>c;c++){j.tweens[c].run(1)}return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++){if(d=db[f].call(j,a,k,j.opts)){return d}}return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++){c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)}},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e){g[e]&&g[e].stop&&d(g[e])}else{for(e in g){g[e]&&g[e].stop&&cb.test(e)&&d(g[e])}}for(e=f.length;e--;){f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1))}(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;){f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1))}for(b=0;g>b;b++){d[b]&&d[b].finish&&d[b].finish.call(this)}delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++){a=b[c],a()||b[c]!==a||b.splice(c--,1)}b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];if(arguments.length){return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set" in b&&void 0!==b.set(this,e,"value")||(this.value=e))})}if(e){return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get" in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++){if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f){return b}g.push(b)}}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--){if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0){try{d.selected=c=!0}catch(h){d.scrollHeight}}else{d.selected=!1}}return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f){return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get" in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set" in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType){while(c=f[e++]){d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)}}},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void (a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g){return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set" in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get" in e&&null!==(d=e.get(a,b))?d:a[b]}},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a)){return this.each(function(b){m(this).addClass(a.call(this,b,this.className))})}if(j){for(b=(a||"").match(E)||[];i>h;h++){if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++]){d.indexOf(" "+e+" ")<0&&(d+=e+" ")}g=m.trim(d),c.className!==g&&(c.className=g)}}}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a)){return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))})}if(j){for(b=(a||"").match(E)||[];i>h;h++){if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++]){while(d.indexOf(" "+e+" ")>=0){d=d.replace(" "+e+" "," ")}}g=a?m.trim(d):"",c.className!==g&&(c.className=g)}}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++]){e.hasClass(b)?e.removeClass(b):e.addClass(b)}}else{(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")}})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++){if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0){return !0}}return !1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse){return a.JSON.parse(b+"")}var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b){return null}try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c)){while(d=f[e++]){"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b){void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d])}return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0]){i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"))}if(e){for(g in h){if(h[g]&&h[g].test(e)){i.unshift(g);break}}}if(i[0] in c){f=i[0]}else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1]){for(g in a.converters){j[g.toLowerCase()]=a.converters[g]}}f=k.shift();while(f){if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift()){if("*"===f){f=i}else{if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g){for(e in j){if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}}}if(g!==!0){if(g&&a["throws"]){b=g(b)}else{try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}}}}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f)){j[b[1].toLowerCase()]=b[2]}}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a){if(2>t){for(b in a){q[b]=[q[b],a[b]]}}else{v.always(a[v.status])}}return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t){return v}h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers){v.setRequestHeader(d,k.headers[d])}if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t)){return v.abort()}u="abort";for(d in {success:1,error:1,complete:1}){v[d](k[d])}if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t)){throw w}x(-1,w)}}else{x(-1,"No Transport")}function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a)){return this.each(function(b){m(this).wrapAll(a.call(this,b))})}if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return !m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b)){m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)})}else{if(c||"object"!==m.type(b)){d(a,b)}else{for(e in b){Vb(a+"["+e+"]",b[e],c,d)}}}}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a)){m.each(a,function(){e(this.name,this.value)})}else{for(c in a){Vb(c,a[c],b,e)}}return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return !this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb){Xb[a](void 0,!0)}}),k.cors=!!Yb&&"withCredentials" in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields){for(e in a.xhrFields){f[e]=a.xhrFields[e]}}a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c){void 0!==c[e]&&f.setRequestHeader(e,c[e]+"")}f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState)){if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e){4!==f.readyState&&f.abort()}else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a){return null}"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc){return bc.apply(this,arguments)}var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using" in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length){return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)})}var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f){return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d}},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position")){a=a.offsetParent}return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void (f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});
/* jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(ah,O,Y){function U(b){var a=O.console;ad[b]||(ad[b]=!0,ah.migrateWarnings.push(b),a&&a.warn&&!ah.migrateMute&&(a.warn("JQMIGRATE: "+b),ah.migrateTrace&&a.trace&&a.trace()))}function al(f,b,d,h){if(Object.defineProperty){try{return Object.defineProperty(f,b,{configurable:!0,enumerable:!0,get:function(){return U(h),d},set:function(a){U(h),d=a}}),Y}catch(g){}}ah._definePropertyBroken=!0,f[b]=d}var ad={};ah.migrateWarnings=[],!ah.migrateMute&&O.console&&O.console.log&&O.console.log("JQMIGRATE: Logging is active"),ah.migrateTrace===Y&&(ah.migrateTrace=!0),ah.migrateReset=function(){ad={},ah.migrateWarnings.length=0},"BackCompat"===document.compatMode&&U("jQuery is not compatible with Quirks Mode");var X=ah("<input/>",{size:1}).attr("size")&&ah.attrFn,P=ah.attr,L=ah.attrHooks.value&&ah.attrHooks.value.get||function(){return null},aj=ah.attrHooks.value&&ah.attrHooks.value.set||function(){return Y},aa=/^(?:input|button)$/i,ai=/^[238]$/,W=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ag=/^(?:checked|selected)$/i;al(ah,"attrFn",X||{},"jQuery.attrFn is deprecated"),ah.attr=function(h,b,f,d){var k=b.toLowerCase(),j=h&&h.nodeType;return d&&(4>P.length&&U("jQuery.fn.attr( props, pass ) is deprecated"),h&&!ai.test(j)&&(X?b in X:ah.isFunction(ah.fn[b])))?ah(h)[b](f):("type"===b&&f!==Y&&aa.test(h.nodeName)&&h.parentNode&&U("Can't change the 'type' of an input or button in IE 6/7/8"),!ah.attrHooks[k]&&W.test(k)&&(ah.attrHooks[k]={get:function(m,n){var g,l=ah.prop(m,n);return l===!0||"boolean"!=typeof l&&(g=m.getAttributeNode(n))&&g.nodeValue!==!1?n.toLowerCase():Y},set:function(l,o,m){var g;return o===!1?ah.removeAttr(l,m):(g=ah.propFix[m]||m,g in l&&(l[g]=!0),l.setAttribute(m,m.toLowerCase())),m}},ag.test(k)&&U("jQuery.fn.attr('"+k+"') may use property instead of attribute")),P.call(ah,h,b,f))},ah.attrHooks.value={get:function(b,a){var d=(b.nodeName||"").toLowerCase();return"button"===d?L.apply(this,arguments):("input"!==d&&"option"!==d&&U("jQuery.fn.attr('value') no longer gets properties"),a in b?b.value:null)},set:function(f,d){var b=(f.nodeName||"").toLowerCase();return"button"===b?aj.apply(this,arguments):("input"!==b&&"option"!==b&&U("jQuery.fn.attr('value', val) no longer sets properties"),f.value=d,Y)}};var af,ae,K=ah.fn.init,Z=ah.parseJSON,F=/^([^<]*)(<[\w\W]+>)([^>]*)$/;ah.fn.init=function(f,g,b){var d;return f&&"string"==typeof f&&!ah.isPlainObject(g)&&(d=F.exec(ah.trim(f)))&&d[0]&&("<"!==f.charAt(0)&&U("$(html) HTML strings must start with '<' character"),d[3]&&U("$(html) HTML text after last tag is ignored"),"#"===d[0].charAt(0)&&(U("HTML string cannot start with a '#' character"),ah.error("JQMIGRATE: Invalid selector string (XSS)")),g&&g.context&&(g=g.context),ah.parseHTML)?K.call(this,ah.parseHTML(d[2],g,!0),g,b):K.apply(this,arguments)},ah.fn.init.prototype=ah.fn,ah.parseJSON=function(a){return a||null===a?Z.apply(this,arguments):(U("jQuery.parseJSON requires a valid JSON string"),null)},ah.uaMatch=function(b){b=b.toLowerCase();var a=/(chrome)[ \/]([\w.]+)/.exec(b)||/(webkit)[ \/]([\w.]+)/.exec(b)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(b)||/(msie) ([\w.]+)/.exec(b)||0>b.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(b)||[];return{browser:a[1]||"",version:a[2]||"0"}},ah.browser||(af=ah.uaMatch(navigator.userAgent),ae={},af.browser&&(ae[af.browser]=!0,ae.version=af.version),ae.chrome?ae.webkit=!0:ae.webkit&&(ae.safari=!0),ah.browser=ae),al(ah,"browser",ah.browser,"jQuery.browser is deprecated"),ah.sub=function(){function a(d,f){return new a.fn.init(d,f)}ah.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(f,d){return d&&d instanceof ah&&!(d instanceof a)&&(d=a(d)),ah.fn.init.call(this,f,d,b)},a.fn.init.prototype=a.fn;var b=a(document);return U("jQuery.sub() is deprecated"),a},ah.ajaxSetup({converters:{"text json":ah.parseJSON}});var ak=ah.fn.data;ah.fn.data=function(f){var b,d,g=this[0];return !g||"events"!==f||1!==arguments.length||(b=ah.data(g,f),d=ah._data(g,f),b!==Y&&b!==d||d===Y)?ak.apply(this,arguments):(U("Use of jQuery.fn.data('events') is deprecated"),d)};var ac=/\/(java|ecma)script/i,J=ah.fn.andSelf||ah.fn.addBack;ah.fn.andSelf=function(){return U("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),J.apply(this,arguments)},ah.clean||(ah.clean=function(n,k,g,b){k=k||document,k=!k.nodeType&&k[0]||k,k=k.ownerDocument||k,U("jQuery.clean() is deprecated");var r,m,j,f,h=[];if(ah.merge(h,ah.buildFragment(n,k).childNodes),g){for(j=function(a){return !a.type||ac.test(a.type)?b?b.push(a.parentNode?a.parentNode.removeChild(a):a):g.appendChild(a):Y},r=0;null!=(m=h[r]);r++){ah.nodeName(m,"script")&&j(m)||(g.appendChild(m),m.getElementsByTagName!==Y&&(f=ah.grep(ah.merge([],m.getElementsByTagName("script")),j),h.splice.apply(h,[r+1,0].concat(f)),r+=f.length))}}return h});var B=ah.event.add,G=ah.event.remove,ab=ah.event.trigger,D=ah.fn.toggle,q=ah.fn.live,E=ah.fn.die,z="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",R=RegExp("\\b(?:"+z+")\\b"),I=/(?:^|\s)hover(\.\S+|)\b/,V=function(a){return"string"!=typeof a||ah.event.special.hover?a:(I.test(a)&&U("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),a&&a.replace(I,"mouseenter$1 mouseleave$1"))};ah.event.props&&"attrChange"!==ah.event.props[0]&&ah.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),ah.event.dispatch&&al(ah.event,"handle",ah.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),ah.event.add=function(g,f,h,b,d){g!==document&&R.test(f)&&U("AJAX events should be attached to document: "+f),B.call(this,g,V(f||""),h,b,d)},ah.event.remove=function(g,d,h,f,b){G.call(this,g,V(d)||"",h,f,b)},ah.fn.error=function(){var a=Array.prototype.slice.call(arguments,0);return U("jQuery.fn.error() is deprecated"),a.splice(0,0,"error"),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this)},ah.fn.toggle=function(f,j){if(!ah.isFunction(f)||!ah.isFunction(j)){return D.apply(this,arguments)}U("jQuery.fn.toggle(handler, handler...) is deprecated");var b=arguments,d=f.guid||ah.guid++,h=0,g=function(k){var a=(ah._data(this,"lastToggle"+f.guid)||0)%h;return ah._data(this,"lastToggle"+f.guid,a+1),k.preventDefault(),b[a].apply(this,arguments)||!1};for(g.guid=d;b.length>h;){b[h++].guid=d}return this.click(g)},ah.fn.live=function(d,f,b){return U("jQuery.fn.live() is deprecated"),q?q.apply(this,arguments):(ah(this.context).on(d,this.selector,f,b),this)},ah.fn.die=function(a,b){return U("jQuery.fn.die() is deprecated"),E?E.apply(this,arguments):(ah(this.context).off(a,this.selector||"**",b),this)},ah.event.trigger=function(f,d,g,b){return g||R.test(f)||U("Global events are undocumented and deprecated"),ab.call(this,f,d,g||document,b)},ah.each(z.split("|"),function(a,b){ah.event.special[b]={setup:function(){var d=this;return d!==document&&(ah.event.add(document,b+"."+ah.guid,function(){ah.event.trigger(b,null,d,!0)}),ah._data(this,b,ah.guid++)),!1},teardown:function(){return this!==document&&ah.event.remove(document,b+"."+ah._data(this,b)),!1}}})}(jQuery,window);jQuery.cookie=function(f,g,b){if(arguments.length>1&&String(g)!=="[object Object]"){b=jQuery.extend({},b);if(g===null||g===undefined){b.expires=-1}if(typeof b.expires==="number"){var j=b.expires,d=b.expires=new Date();d.setDate(d.getDate()+j)}g=String(g);return(document.cookie=[encodeURIComponent(f),"=",b.raw?g:encodeURIComponent(g),b.expires?"; expires="+b.expires.toUTCString():"",b.path?"; path="+b.path:"",b.domain?"; domain="+b.domain:"",b.secure?"; secure":""].join(""))}b=g||{};var a,h=b.raw?function(k){return k}:decodeURIComponent;return(a=new RegExp("(?:^|; )"+encodeURIComponent(f)+"=([^;]*)").exec(document.cookie))?h(a[1]):null};
/*
 * jQuery.ScrollTo
 * Copyright (c) 2007-2012 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 12/14/2012
 *
 * @projectDescription Easy element scrolling using jQuery.
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 * @author Ariel Flesler
 * @version 1.4.5 BETA
 *
 * @id jQuery.scrollTo
 * @id jQuery.fn.scrollTo
 * @param {String, Number, DOMElement, jQuery, Object} target Where to scroll the matched elements.
 *	  The different options for target are:
 *		- A number position (will be applied to all axes).
 *		- A string position ('44', '100px', '+=90', etc ) will be applied to all axes
 *		- A jQuery/DOM element ( logically, child of the element to scroll )
 *		- A string selector, that will be relative to the element to scroll ( 'li:eq(2)', etc )
 *		- A hash { top:x, left:y }, x and y can be any kind of number/string like above.
 *		- A percentage of the container's dimension/s, for example: 50% to go to the middle.
 *		- The string 'max' for go-to-end. 
 * @param {Number, Function} duration The OVERALL length of the animation, this argument can be the settings object instead.
 * @param {Object,Function} settings Optional set of settings or the onAfter callback.
 *	 @option {String} axis Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'.
 *	 @option {Number, Function} duration The OVERALL length of the animation.
 *	 @option {String} easing The easing method for the animation.
 *	 @option {Boolean} margin If true, the margin of the target element will be deducted from the final position.
 *	 @option {Object, Number} offset Add/deduct from the end position. One number for both axes or { top:x, left:y }.
 *	 @option {Object, Number} over Add/deduct the height/width multiplied by 'over', can be { top:x, left:y } when using both axes.
 *	 @option {Boolean} queue If true, and both axis are given, the 2nd axis will only be animated after the first one ends.
 *	 @option {Function} onAfter Function to be called after the scrolling ends. 
 *	 @option {Function} onAfterFirst If queuing is activated, this function will be called after the first scrolling ends.
 * @return {jQuery} Returns the same jQuery object, for chaining.
 *
 * @desc Scroll to a fixed position
 * @example $('div').scrollTo( 340 );
 *
 * @desc Scroll relatively to the actual position
 * @example $('div').scrollTo( '+=340px', { axis:'y' } );
 *
 * @desc Scroll using a selector (relative to the scrolled element)
 * @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { easing:'swing', queue:true, axis:'xy' } );
 *
 * @desc Scroll to a DOM element (same for jQuery object)
 * @example var second_child = document.getElementById('container').firstChild.nextSibling;
 *			$('#container').scrollTo( second_child, { duration:500, axis:'x', onAfter:function(){
 *				alert('scrolled!!');																   
 *			}});
 *
 * @desc Scroll on both axes, to different values
 * @example $('div').scrollTo( { top: 300, left:'+=200' }, { axis:'xy', offset:-20 } );
 */
(function(d){var a=d.scrollTo=function(h,g,f){d(window).scrollTo(h,g,f)};a.defaults={axis:"xy",duration:parseFloat(d.fn.jquery)>=1.3?0:1,limit:true};a.window=function(f){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var g=this,f=!g.nodeName||d.inArray(g.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!f){return g}var h=(g.contentWindow||g).document||g.ownerDocument||g;return/webkit/i.test(navigator.userAgent)||h.compatMode=="BackCompat"?h.body:h.documentElement})};d.fn.scrollTo=function(h,g,f){if(typeof g=="object"){f=g;g=0}if(typeof f=="function"){f={onAfter:f}}if(h=="max"){h=9000000000}f=d.extend({},a.defaults,f);g=g||f.duration;f.queue=f.queue&&f.axis.length>1;if(f.queue){g/=2}f.offset=b(f.offset);f.over=b(f.over);return this._scrollable().each(function(){if(h==null){return}var o=this,m=d(o),n=h,l,j={},q=m.is("html,body");switch(typeof n){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(n)){n=b(n);break}n=d(n,this);if(!n.length){return}case"object":if(n.is||n.style){l=(n=d(n)).offset()}}d.each(f.axis.split(""),function(u,v){var w=v=="x"?"Left":"Top",y=w.toLowerCase(),t="scroll"+w,s=o[t],r=a.max(o,v);if(l){j[t]=l[y]+(q?0:s-m.offset()[y]);if(f.margin){j[t]-=parseInt(n.css("margin"+w))||0;j[t]-=parseInt(n.css("border"+w+"Width"))||0}j[t]+=f.offset[y]||0;if(f.over[y]){j[t]+=n[v=="x"?"width":"height"]()*f.over[y]}}else{var x=n[y];j[t]=x.slice&&x.slice(-1)=="%"?parseFloat(x)/100*r:x}if(f.limit&&/^\d+$/.test(j[t])){j[t]=j[t]<=0?0:Math.min(j[t],r)}if(!u&&f.queue){if(s!=j[t]){k(f.onAfterFirst)}delete j[t]}});k(f.onAfter);function k(r){m.animate(j,g,f.easing,r&&function(){r.call(this,h,f)})}}).end()};a.max=function(m,l){var k=l=="x"?"Width":"Height",g="scroll"+k;if(!d(m).is("html,body")){return m[g]-d(m)[k.toLowerCase()]()}var j="client"+k,h=m.ownerDocument.documentElement,f=m.ownerDocument.body;return Math.max(h[g],f[g])-Math.min(h[j],f[j])};function b(f){return typeof f=="object"?f:{top:f,left:f}}})(jQuery);(function(a){a.fn.btxData=function(b){var g=a(this).data("btx");try{var d=a.parseJSON(decodeURIComponent(g))}catch(f){return false}return d}})(jQuery);(function(b){b.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}};function a(f){if(typeof f.data!=="string"){return}var d=f.handler,g=f.data.toLowerCase().split(" ");f.handler=function(q){var k=q.type!=="keypress"&&b.hotkeys.specialKeys[q.which],r=String.fromCharCode(q.which).toLowerCase(),n,o="",j={};if(q.altKey&&k!=="alt"){o+="alt+"}if(q.ctrlKey&&k!=="ctrl"){o+="ctrl+"}if(q.metaKey&&!q.ctrlKey&&k!=="meta"){o+="meta+"}if(q.shiftKey&&k!=="shift"){o+="shift+"}if(k){j[o+k]=true}else{j[o+r]=true;j[o+b.hotkeys.shiftNums[r]]=true;if(o==="shift+"){j[b.hotkeys.shiftNums[r]]=true}}for(var m=0,h=g.length;m<h;m++){if(j[g[m]]){return d.apply(this,arguments)}}}}b.each(["keydown","keyup","keypress"],function(){b.event.special[this]={add:a}})})(jQuery);(function(n,q,v){var x=n([]),t=n.resize=n.extend(n.resize,{}),o,l="setTimeout",m="resize",u=m+"-special-event",w="delay",s="throttleWindow";t[w]=250;t[s]=true;n.event.special[m]={setup:function(){if(!t[s]&&this[l]){return false}var a=n(this);x=x.add(a);n.data(this,u,{w:a.width(),h:a.height()});if(x.length===1){r()}},teardown:function(){if(!t[s]&&this[l]){return false}var a=n(this);x=x.not(a);a.removeData(u);if(!x.length){clearTimeout(o)}},add:function(b){if(!t[s]&&this[l]){return false}var d;function a(f,k,j){var h=n(this),g=n.data(this,u);g.w=k!==v?k:h.width();g.h=j!==v?j:h.height();d.apply(this,arguments)}if(n.isFunction(b)){d=b;return a}else{d=b.handler;b.handler=a}}};function r(){o=q[l](function(){x.each(function(){var f=n(this),a=f.width(),b=f.height(),d=n.data(this,u);if(a!==d.w||b!==d.h){f.trigger(m,[d.w=a,d.h=b])}});r()},t[w])}})(jQuery,this);(function(d){var a=d.hint=function(f,g){return d(document).hint(f,g)},b=function(f,g){if(!g&&typeof f=="object"){g=f;f=null}g=g||{};if(f){g.text=""+f}if(g.keepLabel){g.method="valueSwap"}return g};d.fn.hint=function(f,g){g=b(f,g);return this.each(function(){a.init.call(this,g)})};d.extend(a,{version:"1.7",query:"input:password,input:text:not(._hintPw),textarea",on:"hint",toggleOnFocus:true,attr:false,inline:false,text:undefined,method:"labelOver",parentCss:{position:"relative"},inlineCss:{display:"inline"},labelCss:{position:"absolute",top:"4px",left:"5px"},getElements:function(g){var h=g.query||a.query,f=this.is(h)?this:this.find(h);return(f.length==0?this:f)},init:function(h){var g=d(this),j=d.metadata,f=j?g.metadata():null;a.getElements.call(g,h).each(function(){var m=d(this),l=j?m.metadata():null,k=d.extend(true,{},a,f,l,h);d.extend(k,k[k.method]);k.create.call(m,k)})},hasValue:function(g){var f=this.val();return(f&&d.trim(f)!="")},start:function(){var f=d(this),g=f.data("hint"),j=g.hasValue.call(f,g)?"hide":"show";g[j].call(f,g)},end:function(){var f=d(this),g=f.data("hint");if(g&&g.hasHint.call(f,g)){g.hide.call(f,g)}},getText:function(f){return f.text||this.attr(f.attr||"title")},create:function(f){if(this.data("hint")){this.data("hint").destroy.call(this)}this.data("hint",f);f.setup.call(this,f);f.start.call(this)},destroy:function(){var f=this.data("hint");f.teardown.call(this,f);this.data("hint",null)},valueSwap:{setup:function(g){var f=this,j=g.getText.call(f,g);g.kill=function(){g.destroy.call(f)};if(f.is(":password")){g.password=d('<input type="text" value="'+j+'" class="_hintPw">').focus(function(){f.show().focus()}).addClass(g.on).insertBefore(f)}else{if(d.browser.msie&&!f.attr("defaultValue")&&f.val()==j){f.val("")}}f.blur(g.start).focus(g.end);d(window).unload(g.kill);d(this[0].form).submit(g.kill)},hide:function(f){if(f.password){f.password.hide();this.show()}else{if(f.hasHint.call(this,f)){this.val("")}this.removeClass(f.on)}},show:function(f){if(f.password){this.hide();f.password.show()}else{this.addClass(f.on).val(f.getText.call(this,f))}},hasHint:function(f){if(f.password){return f.password.is(":visible")}return this.hasClass(f.on)&&(this.val()==f.getText.call(this,f))},teardown:function(f){f.end.call(this);if(f.password){f.password.remove()}d(window).unbind("unload",f.kill);d(this[0].form).unbind("submit",f.kill)}},labelOver:{setup:function(k){var j=this,r=this.attr("name"),g=d("label[for="+r+"]"),q=j.parent();if(g.size()==0){k.newLabel=true;g=d('<label for="'+r+'">'+k.getText.call(this,k)+"</label>");j.before(g)}else{if(k.text||k.attr){k.labelText=g.text();g.text(k.getText.call(this,k))}}q=j.parent().css(k.parentCss);if(k.inline){q.css(k.inlineCss)}k.labelStyle=g.attr("style")||"";k.label=g.addClass(k.on).css(k.labelCss).click(function(){j.focus()});var f=this.position();var o=(this.outerWidth(true)-this.width())/2+f.left;var m=(this.outerHeight(true)-this.height())/2+f.top;g.css({left:o,top:m});g.css({width:d(this).width()-8});j.resize(function(h){g.css({width:d(this).width()-8})});if(k.toggleOnFocus){j.blur(k.start).focus(k.end)}else{j.keyup(k.toggle=function(){(k.hasValue.call(j,k)?k.end:k.start).call(j)})}},hide:function(f){f.label.css("textIndent",-10000)},show:function(f){f.label.css("textIndent",0)},hasHint:function(f){return f.label.css("textIndent").charAt(0)=="0"},teardown:function(f){if(f.toggleOnFocus){this.unbind("blur",f.start).unbind("focus",f.end)}else{this.unbind("keyup",f.toggle)}f.label.removeClass(f.on).attr("style",f.labelStyle);if(f.newLabel){f.label.remove();f.label=null}else{if(f.labelText){f.label.text(f.labelText)}}var g=this.parent().after(this);if(f.label){g.before(f.label)}g.remove()}}})})(jQuery);(function(a){a.fn.tipTip=function(d){var j={activation:"hover",keepAlive:false,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:false,enter:function(){},exit:function(){}};var g=a.extend(j,d);if(a("#tiptip_holder").length<=0){var b=a('<div id="tiptip_holder" style="max-width:'+g.maxWidth+';"></div>');var f=a('<div id="tiptip_content"></div>');var h=a('<div id="tiptip_arrow"></div>');a("body").append(b.html(f).prepend(h.html('<div id="tiptip_arrow_inner"></div>')))}else{var b=a("#tiptip_holder");var f=a("#tiptip_content");var h=a("#tiptip_arrow")}return this.each(function(){var l=a(this);if(g.content){var o=g.content}else{var o=l.attr(g.attribute)}if(o!=""){if(!g.content){l.removeAttr(g.attribute)}var k=false;if(g.activation=="hover"){l.hover(function(){n()},function(){if(!g.keepAlive){m()}});if(g.keepAlive){b.hover(function(){},function(){m()})}}else{if(g.activation=="focus"){l.focus(function(){n()}).blur(function(){m()})}else{if(g.activation=="click"){l.click(function(){n();return false}).hover(function(){},function(){if(!g.keepAlive){m()}});if(g.keepAlive){b.hover(function(){},function(){m()})}}}}function n(){g.enter.call(this);f.html(o);b.hide().removeAttr("class").css("margin","0");h.removeAttr("style");var C=parseInt(l.offset()["top"]);var t=parseInt(l.offset()["left"]);var z=parseInt(l.outerWidth());var E=parseInt(l.outerHeight());var B=b.outerWidth();var w=b.outerHeight();var A=Math.round((z-B)/2);var s=Math.round((E-w)/2);var r=Math.round(t+A);var q=Math.round(C+E+g.edgeOffset);var x="";var G="";var y=Math.round(B-12)/2;if(g.defaultPosition=="bottom"){x="_bottom"}else{if(g.defaultPosition=="top"){x="_top"}else{if(g.defaultPosition=="left"){x="_left"}else{if(g.defaultPosition=="right"){x="_right"}}}}var v=(A+t)<parseInt(a(window).scrollLeft());var u=(B+t)>parseInt(a(window).width());if((v&&A<0)||(x=="_right"&&!u)||(x=="_left"&&t<(B+g.edgeOffset+5))){x="_right";G=Math.round(w-13)/2;y=-12;r=Math.round(t+z+g.edgeOffset);q=Math.round(C+s)}else{if((u&&A<0)||(x=="_left"&&!v)){x="_left";G=Math.round(w-13)/2;y=Math.round(B);r=Math.round(t-(B+g.edgeOffset+5));q=Math.round(C+s)}}var D=(C+E+g.edgeOffset+w+8)>parseInt(a(window).height()+a(window).scrollTop());var F=((C+E)-(g.edgeOffset+w+8))<0;if(D||(x=="_bottom"&&D)||(x=="_top"&&!F)){if(x=="_top"||x=="_bottom"){x="_top"}else{x=x+"_top"}G=w;q=Math.round(C-(w+5+g.edgeOffset))}else{if(F|(x=="_top"&&F)||(x=="_bottom"&&!D)){if(x=="_top"||x=="_bottom"){x="_bottom"}else{x=x+"_bottom"}G=-12;q=Math.round(C+E+g.edgeOffset)}}if(x=="_right_top"||x=="_left_top"){q=q+5}else{if(x=="_right_bottom"||x=="_left_bottom"){q=q-5}}if(x=="_left_top"||x=="_left_bottom"){r=r+5}h.css({"margin-left":y+"px","margin-top":G+"px"});b.css({"margin-left":r+"px","margin-top":q+"px"}).attr("class","tip"+x);if(k){clearTimeout(k)}k=setTimeout(function(){b.stop(true,true).fadeIn(g.fadeIn)},g.delay)}function m(){g.exit.call(this);if(k){clearTimeout(k)}b.fadeOut(g.fadeOut)}}})}})(jQuery);
/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (MIT_LICENSE.txt)
 * and GPL Version 2 (GPL_LICENSE.txt) licenses.
 *
 * Version: 1.1.1
 * Requires jQuery 1.3+
 * Docs: http://docs.jquery.com/Plugins/livequery
 */
(function(a){a.extend(a.fn,{livequery:function(g,f,d){var b=this,h;if(a.isFunction(g)){d=f,f=g,g=undefined}a.each(a.livequery.queries,function(j,k){if(b.selector==k.selector&&b.context==k.context&&g==k.type&&(!f||f.$lqguid==k.fn.$lqguid)&&(!d||d.$lqguid==k.fn2.$lqguid)){return(h=k)&&false}});h=h||new a.livequery(this.selector,this.context,g,f,d);h.stopped=false;h.run();return this},expire:function(g,f,d){var b=this;if(a.isFunction(g)){d=f,f=g,g=undefined}a.each(a.livequery.queries,function(h,j){if(b.selector==j.selector&&b.context==j.context&&(!g||g==j.type)&&(!f||f.$lqguid==j.fn.$lqguid)&&(!d||d.$lqguid==j.fn2.$lqguid)&&!this.stopped){a.livequery.stop(j.id)}});return this}});a.livequery=function(b,f,h,g,d){this.selector=b;this.context=f;this.type=h;this.fn=g;this.fn2=d;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;g.$lqguid=g.$lqguid||a.livequery.guid++;if(d){d.$lqguid=d.$lqguid||a.livequery.guid++}return this};a.livequery.prototype={stop:function(){var b=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(d,f){b.fn2.apply(f)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return}var f=this;var g=this.elements,d=a(this.selector,this.context),b=d.not(g);this.elements=d;if(this.type){b.bind(this.type,this.fn);if(g.length>0){a.each(g,function(h,j){if(a.inArray(j,d)<0){a.event.remove(j,f.type,f.fn)}})}}else{b.each(function(){f.fn.apply(this)});if(this.fn2&&g.length>0){a.each(g,function(h,j){if(a.inArray(j,d)<0){f.fn2.apply(j)}})}}}};a.extend(a.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length){var b=a.livequery.queue.length;while(b--){a.livequery.queries[a.livequery.queue.shift()].run()}}},pause:function(){a.livequery.running=false},play:function(){a.livequery.running=true;a.livequery.run()},registerPlugin:function(){a.each(arguments,function(d,f){if(!a.fn[f]){return}var b=a.fn[f];a.fn[f]=function(){var g=b.apply(this,arguments);a.livequery.run();return g}})},run:function(b){if(b!=undefined){if(a.inArray(b,a.livequery.queue)<0){a.livequery.queue.push(b)}}else{a.each(a.livequery.queries,function(d){if(a.inArray(d,a.livequery.queue)<0){a.livequery.queue.push(d)}})}if(a.livequery.timeout){clearTimeout(a.livequery.timeout)}a.livequery.timeout=setTimeout(a.livequery.checkQueue,20)},stop:function(b){if(b!=undefined){a.livequery.queries[b].stop()}else{a.each(a.livequery.queries,function(d){a.livequery.queries[d].stop()})}}});a.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove","html","prop","removeProp");a(function(){a.livequery.play()})})(jQuery);(function(x,v){var q,y="([^/]+)",u=/:([\w\d]+)/g,t=/\?([^#]*)$/,C=function(a){return Array.prototype.slice.call(a)},B=function(a){return Object.prototype.toString.call(a)==="[object Function]"},s=function(a){return Object.prototype.toString.call(a)==="[object Array]"},w=function(a){return decodeURIComponent(a.replace(/\+/g," "))},D=encodeURIComponent,z=function(a){return String(a).replace(/&(?!\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},r=function(a){return function(d,b){return this.route.apply(this,[a,d,b])}},E={},A=[];q=function(){var b=C(arguments),a,d;q.apps=q.apps||{};if(b.length===0||b[0]&&B(b[0])){return q.apply(q,["body"].concat(b))}else{if(typeof(d=b.shift())=="string"){a=q.apps[d]||new q.Application();a.element_selector=d;if(b.length>0){x.each(b,function(g,f){a.use(f)})}if(a.element_selector!=d){delete q.apps[d]}q.apps[a.element_selector]=a;return a}}};q.VERSION="0.6.3";q.addLogger=function(a){A.push(a)};q.log=function(){var a=C(arguments);a.unshift("["+Date()+"]");x.each(A,function(b,d){d.apply(q,a)})};if(typeof v.console!="undefined"){if(B(v.console.log.apply)){q.addLogger(function(){v.console.log.apply(v.console,arguments)})}else{q.addLogger(function(){v.console.log(arguments)})}}else{if(typeof console!="undefined"){q.addLogger(function(){console.log.apply(console,arguments)})}}x.extend(q,{makeArray:C,isFunction:B,isArray:s});q.Object=function(a){return x.extend(this,a||{})};x.extend(q.Object.prototype,{escapeHTML:z,h:z,toHash:function(){var a={};x.each(this,function(b,d){if(!B(d)){a[b]=d}});return a},toHTML:function(){var a="";x.each(this,function(b,d){if(!B(d)){a+="<strong>"+b+"</strong> "+d+"<br />"}});return a},keys:function(d){var b=[];for(var a in this){if(!B(this[a])||!d){b.push(a)}}return b},has:function(a){return this[a]&&x.trim(this[a].toString())!=""},join:function(){var a=C(arguments);var b=a.shift();return a.join(b)},log:function(){q.log.apply(q,arguments)},toString:function(b){var a=[];x.each(this,function(d,f){if(!B(f)||b){a.push('"'+d+'": '+f.toString())}});return"Sammy.Object: {"+a.join(",")+"}"}});q.HashLocationProxy=function(a,b){this.app=a;this.is_native=false;this._startPolling(b)};q.HashLocationProxy.prototype={bind:function(){var b=this,a=this.app;x(v).bind("hashchange."+this.app.eventNamespace(),function(d,f){if(b.is_native===false&&!f){q.log("native hash change exists, using");b.is_native=true;v.clearInterval(q.HashLocationProxy._interval)}a.trigger("location-changed")});if(!q.HashLocationProxy._bindings){q.HashLocationProxy._bindings=0}q.HashLocationProxy._bindings++},unbind:function(){x(v).unbind("hashchange."+this.app.eventNamespace());q.HashLocationProxy._bindings--;if(q.HashLocationProxy._bindings<=0){v.clearInterval(q.HashLocationProxy._interval)}},getLocation:function(){var a=v.location.toString().match(/^[^#]*(#.+)$/);return a?a[1]:""},setLocation:function(a){return(v.location=a)},_startPolling:function(a){var b=this;if(!q.HashLocationProxy._interval){if(!a){a=10}var d=function(){var f=b.getLocation();if(!q.HashLocationProxy._last_location||f!=q.HashLocationProxy._last_location){v.setTimeout(function(){x(v).trigger("hashchange",[true])},13)}q.HashLocationProxy._last_location=f};d();q.HashLocationProxy._interval=v.setInterval(d,a)}}};q.Application=function(b){var a=this;this.routes={};this.listeners=new q.Object({});this.arounds=[];this.befores=[];this.namespace=(new Date()).getTime()+"-"+parseInt(Math.random()*1000,10);this.context_prototype=function(){q.EventContext.apply(this,arguments)};this.context_prototype.prototype=new q.EventContext();if(B(b)){b.apply(this,[this])}if(!this._location_proxy){this.setLocationProxy(new q.HashLocationProxy(this,this.run_interval_every))}if(this.debug){this.bindToAllEvents(function(d,f){a.log(a.toString(),d.cleaned_type,f||{})})}};q.Application.prototype=x.extend({},q.Object.prototype,{ROUTE_VERBS:["get","post","put","delete"],APP_EVENTS:["run","unload","lookup-route","run-route","route-found","event-context-before","event-context-after","changed","error","check-form-submission","redirect","location-changed"],_last_route:null,_location_proxy:null,_running:false,element_selector:"body",debug:false,raise_errors:false,run_interval_every:50,template_engine:null,toString:function(){return"Sammy.Application:"+this.element_selector},$element:function(a){return a?x(this.element_selector).find(a):x(this.element_selector)},use:function(){var f=C(arguments),b=f.shift(),d=b||"";try{f.unshift(this);if(typeof b=="string"){d="Sammy."+b;b=q[b]}b.apply(this,f)}catch(a){if(typeof b==="undefined"){this.error("Plugin Error: called use() but plugin ("+d.toString()+") is not defined",a)}else{if(!B(b)){this.error("Plugin Error: called use() but '"+d.toString()+"' is not a function",a)}else{this.error("Plugin Error",a)}}}return this},setLocationProxy:function(b){var a=this._location_proxy;this._location_proxy=b;if(this.isRunning()){if(a){a.unbind()}this._location_proxy.bind()}},route:function(d,h,a){var f=this,b=[],j,g;if(!a&&B(h)){h=d;a=h;d="any"}d=d.toLowerCase();if(h.constructor==String){u.lastIndex=0;while((g=u.exec(h))!==null){b.push(g[1])}h=new RegExp("^"+h.replace(u,y)+"$")}if(typeof a=="string"){a=f[a]}j=function(l){var k={verb:l,path:h,callback:a,param_names:b};f.routes[l]=f.routes[l]||[];f.routes[l].push(k)};if(d==="any"){x.each(this.ROUTE_VERBS,function(k,l){j(l)})}else{j(d)}return this},get:r("get"),post:r("post"),put:r("put"),del:r("delete"),any:r("any"),mapRoutes:function(a){var b=this;x.each(a,function(f,d){b.route.apply(b,d)});return this},eventNamespace:function(){return["sammy-app",this.namespace].join("-")},bind:function(g,d,a){var b=this;if(typeof a=="undefined"){a=d}var f=function(){var h,k,j;h=arguments[0];j=arguments[1];if(j&&j.context){k=j.context;delete j.context}else{k=new b.context_prototype(b,"bind",h.type,j,h.target)}h.cleaned_type=h.type.replace(b.eventNamespace(),"");a.apply(k,[h,j])};if(!this.listeners[g]){this.listeners[g]=[]}this.listeners[g].push(f);if(this.isRunning()){this._listen(g,f)}return this},trigger:function(b,a){this.$element().trigger([b,this.eventNamespace()].join("."),[a]);return this},refresh:function(){this.last_location=null;this.trigger("location-changed");return this},before:function(b,a){if(B(b)){a=b;b={}}this.befores.push([b,a]);return this},after:function(a){return this.bind("event-context-after",a)},around:function(a){this.arounds.push(a);return this},isRunning:function(){return this._running},helpers:function(a){x.extend(this.context_prototype.prototype,a);return this},helper:function(b,a){this.context_prototype.prototype[b]=a;return this},run:function(b){if(this.isRunning()){return false}var a=this;x.each(this.listeners.toHash(),function(f,d){x.each(d,function(g,h){a._listen(f,h)})});this.trigger("run",{start_url:b});this._running=true;this.last_location=null;if(this.getLocation()==""&&typeof b!="undefined"){this.setLocation(b)}this._checkLocation();this._location_proxy.bind();this.bind("location-changed",function(){a._checkLocation()});this.bind("submit",function(d){var f=a._checkFormSubmission(x(d.target).closest("form"));return(f===false)?d.preventDefault():false});x(v).bind("beforeunload",function(){a.unload()});return this.trigger("changed")},unload:function(){if(!this.isRunning()){return false}var a=this;this.trigger("unload");this._location_proxy.unbind();this.$element().unbind("submit").removeClass(a.eventNamespace());x.each(this.listeners.toHash(),function(d,b){x.each(b,function(f,g){a._unlisten(d,g)})});this._running=false;return this},bindToAllEvents:function(a){var b=this;x.each(this.APP_EVENTS,function(f,d){b.bind(d,a)});x.each(this.listeners.keys(true),function(d,f){if(b.APP_EVENTS.indexOf(f)==-1){b.bind(f,a)}});return this},routablePath:function(a){return a.replace(t,"")},lookupRoute:function(a,d){var b=this,f=false;this.trigger("lookup-route",{verb:a,path:d});if(typeof this.routes[a]!="undefined"){x.each(this.routes[a],function(g,h){if(b.routablePath(d).match(h.path)){f=h;return false}})}return f},runRoute:function(b,H,G,n){var I=this,d=this.lookupRoute(b,H),f,k,F,l,a,j,m,h,g;this.log("runRoute",[b,H].join(" "));this.trigger("run-route",{verb:b,path:H,params:G});if(typeof G=="undefined"){G={}}x.extend(G,this._parseQueryString(H));if(d){this.trigger("route-found",{route:d});if((h=d.path.exec(this.routablePath(H)))!==null){h.shift();x.each(h,function(K,J){if(d.param_names[K]){G[d.param_names[K]]=w(J)}else{if(!G.splat){G.splat=[]}G.splat.push(w(J))}})}f=new this.context_prototype(this,b,H,G,n);F=this.arounds.slice(0);a=this.befores.slice(0);m=[f].concat(G.splat);k=function(){var J;while(a.length>0){j=a.shift();if(I.contextMatchesOptions(f,j[0])){J=j[1].apply(f,[f]);if(J===false){return false}}}I.last_route=d;f.trigger("event-context-before",{context:f});J=d.callback.apply(f,m);f.trigger("event-context-after",{context:f});return J};x.each(F.reverse(),function(L,K){var J=k;k=function(){return K.apply(f,[J])}});try{g=k()}catch(o){this.error(["500 Error",b,H].join(" "),o)}return g}else{return this.notFound(b,H)}},contextMatchesOptions:function(d,a,g){var f=a;if(typeof f==="undefined"||f=={}){return true}if(typeof g==="undefined"){g=true}if(typeof f==="string"||B(f.test)){f={path:f}}if(f.only){return this.contextMatchesOptions(d,f.only,true)}else{if(f.except){return this.contextMatchesOptions(d,f.except,false)}}var h=true,b=true;if(f.path){if(B(f.path.test)){h=f.path.test(d.path)}else{h=(f.path.toString()===d.path)}}if(f.verb){b=f.verb===d.verb}return g?(b&&h):!(b&&h)},getLocation:function(){return this._location_proxy.getLocation()},setLocation:function(a){return this._location_proxy.setLocation(a)},swap:function(a){return this.$element().html(a)},templateCache:function(b,a){if(typeof a!="undefined"){return E[b]=a}else{return E[b]}},clearTemplateCache:function(){return E={}},notFound:function(a,b){var d=this.error(["404 Not Found",a,b].join(" "));return(a==="get")?d:true},error:function(a,b){if(!b){b=new Error()}b.message=[a,b.message].join(" ");this.trigger("error",{message:b.message,error:b});if(this.raise_errors){throw (b)}else{this.log(b.message,b)}},_checkLocation:function(){var b,a;b=this.getLocation();if(!this.last_location||this.last_location[0]!="get"||this.last_location[1]!=b){this.last_location=["get",b];a=this.runRoute("get",b)}return a},_getFormVerb:function(b){var d=x(b),a,f;f=d.find('input[name="_method"]');if(f.length>0){a=f.val()}if(!a){a=d[0].getAttribute("method")}if(!a||a==""){a="get"}return x.trim(a.toString().toLowerCase())},_checkFormSubmission:function(f){var h,d,a,b,g;this.trigger("check-form-submission",{form:f});h=x(f);d=h.attr("action");a=this._getFormVerb(h);this.log("_checkFormSubmission",h,d,a);if(a==="get"){this.setLocation(d+"?"+this._serializeFormParams(h));g=false}else{b=x.extend({},this._parseFormParams(h));g=this.runRoute(a,d,b,f.get(0))}return(typeof g=="undefined")?false:g},_serializeFormParams:function(d){var a="",f=d.serializeArray(),b;if(f.length>0){a=this._encodeFormPair(f[0].name,f[0].value);for(b=1;b<f.length;b++){a=a+"&"+this._encodeFormPair(f[b].name,f[b].value)}}return a},_encodeFormPair:function(b,a){return D(b)+"="+D(a)},_parseFormParams:function(f){var a={},b=f.serializeArray(),d;for(d=0;d<b.length;d++){a=this._parseParamPair(a,b[d].name,b[d].value)}return a},_parseQueryString:function(d){var a={},f,g,b,h;f=d.match(t);if(f){g=f[1].split("&");for(h=0;h<g.length;h++){b=g[h].split("=");a=this._parseParamPair(a,w(b[0]),w(b[1]))}}return a},_parseParamPair:function(a,d,b){if(a[d]){if(s(a[d])){a[d].push(b)}else{a[d]=[a[d],b]}}else{a[d]=b}return a},_listen:function(b,a){return this.$element().bind([b,this.eventNamespace()].join("."),a)},_unlisten:function(b,a){return this.$element().unbind([b,this.eventNamespace()].join("."),a)}});q.RenderContext=function(a){this.event_context=a;this.callbacks=[];this.previous_content=null;this.content=null;this.next_engine=false;this.waiting=false};q.RenderContext.prototype=x.extend({},q.Object.prototype,{then:function(a){if(!B(a)){if(typeof a==="string"&&a in this.event_context){var b=this.event_context[a];a=function(f){return b.apply(this.event_context,[f])}}else{return this}}var d=this;if(this.waiting){this.callbacks.push(a)}else{this.wait();v.setTimeout(function(){var f=a.apply(d,[d.content,d.previous_content]);if(f!==false){d.next(f)}},13)}return this},wait:function(){this.waiting=true},next:function(a){this.waiting=false;if(typeof a!=="undefined"){this.previous_content=this.content;this.content=a}if(this.callbacks.length>0){this.then(this.callbacks.shift())}},load:function(f,d,a){var b=this;return this.then(function(){var k,j,g,h;if(B(d)){a=d;d={}}else{d=x.extend({},d)}if(a){this.then(a)}if(typeof f==="string"){g=(f.match(/\.json$/)||d.json);k=((g&&d.cache===true)||d.cache!==false);b.next_engine=b.event_context.engineFor(f);delete d.cache;delete d.json;if(d.engine){b.next_engine=d.engine;delete d.engine}if(k&&(j=this.event_context.app.templateCache(f))){return j}this.wait();x.ajax(x.extend({url:f,data:{},dataType:g?"json":null,type:"get",success:function(l){if(k){b.event_context.app.templateCache(f,l)}b.next(l)}},d));return false}else{if(f.nodeType){return f.innerHTML}if(f.selector){b.next_engine=f.attr("data-engine");if(d.clone===false){return f.remove()[0].innerHTML.toString()}else{return f[0].innerHTML.toString()}}}})},render:function(d,b,a){if(B(d)&&!b){return this.then(d)}else{if(!b&&this.content){b=this.content}return this.load(d).interpolate(b,d).then(a)}},partial:function(b,a){return this.render(b,a).swap()},send:function(){var a=this,b=C(arguments),d=b.shift();if(s(b[0])){b=b[0]}return this.then(function(f){b.push(function(g){a.next(g)});a.wait();d.apply(d,b);return false})},collect:function(a,b,g){var d=this;var f=function(){if(B(a)){b=a;a=this.content}var j=[],h=false;x.each(a,function(l,m){var k=b.apply(d,[l,m]);if(k.jquery&&k.length==1){k=k[0];h=true}j.push(k);return k});return h?j:j.join("")};return g?f():this.then(f)},renderEach:function(f,d,b,a){if(s(d)){a=b;b=d;d=null}return this.load(f).then(function(g){var h=this;if(!b){b=s(this.previous_content)?this.previous_content:[]}if(a){x.each(b,function(l,j){var m={},k=this.next_engine||f;d?(m[d]=j):(m=j);a(j,h.event_context.interpolate(g,m,k))})}else{return this.collect(b,function(l,j){var m={},k=this.next_engine||f;d?(m[d]=j):(m=j);return this.event_context.interpolate(g,m,k)},true)}})},interpolate:function(a,b,f){var d=this;return this.then(function(h,j){if(!a&&j){a=j}if(this.next_engine){b=this.next_engine;this.next_engine=false}var g=d.event_context.interpolate(h,a,b);return f?j+g:g})},swap:function(){return this.then(function(a){this.event_context.swap(a)}).trigger("changed",{})},appendTo:function(a){return this.then(function(b){x(a).append(b)}).trigger("changed",{})},prependTo:function(a){return this.then(function(b){x(a).prepend(b)}).trigger("changed",{})},replace:function(a){return this.then(function(b){x(a).html(b)}).trigger("changed",{})},trigger:function(b,a){return this.then(function(d){if(typeof a=="undefined"){a={content:d}}this.event_context.trigger(b,a)})}});q.EventContext=function(a,b,f,d,g){this.app=a;this.verb=b;this.path=f;this.params=new q.Object(d);this.target=g};q.EventContext.prototype=x.extend({},q.Object.prototype,{$element:function(){return this.app.$element(C(arguments).shift())},engineFor:function(a){var b=this,d;if(B(a)){return a}a=(a||b.app.template_engine).toString();if((d=a.match(/\.([^\.]+)$/))){a=d[1]}if(a&&B(b[a])){return b[a]}if(b.app.template_engine){return this.engineFor(b.app.template_engine)}return function(g,f){return g}},interpolate:function(b,a,d){return this.engineFor(d).apply(this,[b,a])},render:function(d,b,a){return new q.RenderContext(this).render(d,b,a)},renderEach:function(f,d,b,a){return new q.RenderContext(this).renderEach(f,d,b,a)},load:function(d,b,a){return new q.RenderContext(this).load(d,b,a)},partial:function(b,a){return new q.RenderContext(this).partial(b,a)},send:function(){var a=new q.RenderContext(this);return a.send.apply(a,arguments)},redirect:function(){var a,b=C(arguments),d=this.app.getLocation();if(b.length>1){b.unshift("/");a=this.join.apply(this,b)}else{a=b[0]}this.trigger("redirect",{to:a});this.app.last_location=[this.verb,this.path];this.app.setLocation(a);if(d==a){this.app.trigger("location-changed")}},trigger:function(b,a){if(typeof a=="undefined"){a={}}if(!a.context){a.context=this}return this.app.trigger(b,a)},eventNamespace:function(){return this.app.eventNamespace()},swap:function(a){return this.app.swap(a)},notFound:function(){return this.app.notFound(this.verb,this.path)},json:function(a){return x.parseJSON(a)},toString:function(){return"Sammy.EventContext: "+[this.verb,this.path,this.params].join(" ")}});x.sammy=v.Sammy=q})(jQuery,window);(function(a){a.fn.classData=function(b,f){var d=a(this).classDataGlue();if((f==undefined)||(f==null)||(!f)){var g=Array(this.length);b=b+d;this.each(function(h){var j=a(this);a.each(j.attr("class").split(" "),function(k,l){if(l.substr(0,b.length)==b){g[h]=decodeURIComponent(l.replace(b,""));return false}})});return g}else{return this.each(function(){var h=a(this);h.removeClass(b+d+h.classData(b));h.addClass(b+d+encodeURIComponent(f))})}};a.fn.classDataGlue=function(b){if(b!=undefined){a.fn.classData.glue=b;return this}else{if(!a.fn.classData.glue){a.fn.classData.glue="_"}return a.fn.classData.glue}}})(jQuery);
/*
 * jQuery Raty - A Star Rating Plugin
 *
 * Licensed under The MIT License
 *
 * @version        2.4.5
 * @author         Washington Botelho
 * @documentation  wbotelhos.com/raty
 * 
 */
(function(d){var f={init:function(a){return this.each(function(){var m=this,b=d(m).empty();m.opt=d.extend(true,{},d.fn.raty.defaults,a);b.data("settings",m.opt);m.opt.number=f.between(m.opt.number,0,20);if(m.opt.path.substring(m.opt.path.length-1,m.opt.path.length)!="/"){m.opt.path+="/"}if(typeof m.opt.score=="function"){m.opt.score=m.opt.score.call(m)}if(m.opt.score){m.opt.score=f.between(m.opt.score,0,m.opt.number)}for(var l=1;l<=m.opt.number;l++){d("<img />",{src:m.opt.path+((!m.opt.score||m.opt.score<l)?m.opt.starOff:m.opt.starOn),alt:l,title:(l<=m.opt.hints.length&&m.opt.hints[l-1]!==null)?m.opt.hints[l-1]:l}).appendTo(m);if(m.opt.space){b.append((l<m.opt.number)?"&#160;":"")}}m.stars=b.children('img:not(".raty-cancel")');m.score=d("<input />",{type:"hidden",name:m.opt.scoreName}).appendTo(m);if(m.opt.score&&m.opt.score>0){m.score.val(m.opt.score);f.roundStar.call(m,m.opt.score)}if(m.opt.iconRange){f.fill.call(m,m.opt.score)}f.setTarget.call(m,m.opt.score,m.opt.targetKeep);var j=m.opt.space?4:0,k=m.opt.width||(m.opt.number*m.opt.size+m.opt.number*j);if(m.opt.cancel){m.cancel=d("<img />",{src:m.opt.path+m.opt.cancelOff,alt:"x",title:m.opt.cancelHint,"class":"raty-cancel"});if(m.opt.cancelPlace=="left"){b.prepend("&#160;").prepend(m.cancel)}else{b.append("&#160;").append(m.cancel)}k+=(m.opt.size+j)}if(m.opt.readOnly){f.fixHint.call(m);if(m.cancel){m.cancel.hide()}}else{b.css("cursor","pointer");f.bindAction.call(m)}b.css("width",k)})},between:function(a,b,g){return Math.min(Math.max(parseFloat(a),b),g)},bindAction:function(){var g=this,a=d(g);a.mouseleave(function(){var h=g.score.val()||undefined;f.initialize.call(g,h);f.setTarget.call(g,h,g.opt.targetKeep);if(g.opt.mouseover){g.opt.mouseover.call(g,h)}});var b=g.opt.half?"mousemove":"mouseover";if(g.opt.cancel){g.cancel.mouseenter(function(){d(this).attr("src",g.opt.path+g.opt.cancelOn);g.stars.attr("src",g.opt.path+g.opt.starOff);f.setTarget.call(g,null,true);if(g.opt.mouseover){g.opt.mouseover.call(g,null)}}).mouseleave(function(){d(this).attr("src",g.opt.path+g.opt.cancelOff);if(g.opt.mouseover){g.opt.mouseover.call(g,g.score.val()||null)}}).click(function(h){g.score.removeAttr("value");if(g.opt.click){g.opt.click.call(g,null,h)}})}g.stars.bind(b,function(l){var k=parseInt(this.alt,10);if(g.opt.half){var m=parseFloat((l.pageX-d(this).offset().left)/g.opt.size),j=(m>0.5)?1:0.5;k=parseFloat(this.alt)-1+j;f.fill.call(g,k);if(g.opt.precision){k=k-j+m}f.showHalf.call(g,k)}else{f.fill.call(g,k)}a.data("score",k);f.setTarget.call(g,k,true);if(g.opt.mouseover){g.opt.mouseover.call(g,k,l)}}).click(function(h){g.score.val((g.opt.half||g.opt.precision)?a.data("score"):this.alt);if(g.opt.click){g.opt.click.call(g,g.score.val(),h)}})},cancel:function(a){return d(this).each(function(){var g=this,b=d(g);if(b.data("readonly")===true){return this}if(a){f.click.call(g,null)}else{f.score.call(g,null)}g.score.removeAttr("value")})},click:function(a){return d(this).each(function(){if(d(this).data("readonly")===true){return this}f.initialize.call(this,a);if(this.opt.click){this.opt.click.call(this,a)}else{f.error.call(this,'you must add the "click: function(score, evt) { }" callback.')}f.setTarget.call(this,a,true)})},error:function(a){d(this).html(a);d.error(a)},fill:function(a){var r=this,l=r.stars.length,m=0,q,b,n;for(var o=1;o<=l;o++){q=r.stars.eq(o-1);if(r.opt.iconRange&&r.opt.iconRange.length>m){b=r.opt.iconRange[m];if(r.opt.single){n=(o==a)?(b.on||r.opt.starOn):(b.off||r.opt.starOff)}else{n=(o<=a)?(b.on||r.opt.starOn):(b.off||r.opt.starOff)}if(o<=b.range){q.attr("src",r.opt.path+n)}if(o==b.range){m++}}else{if(r.opt.single){n=(o==a)?r.opt.starOn:r.opt.starOff}else{n=(o<=a)?r.opt.starOn:r.opt.starOff}q.attr("src",r.opt.path+n)}}},fixHint:function(){var g=d(this),a=parseInt(this.score.val(),10),b=this.opt.noRatedMsg;if(!isNaN(a)&&a>0){b=(a<=this.opt.hints.length&&this.opt.hints[a-1]!==null)?this.opt.hints[a-1]:a}g.data("readonly",true).css("cursor","default").attr("title",b);this.score.attr("readonly","readonly");this.stars.attr("title",b)},getScore:function(){var a=[],b;d(this).each(function(){b=this.score.val();a.push(b?parseFloat(b):undefined)});return(a.length>1)?a:a[0]},readOnly:function(a){return this.each(function(){var b=d(this);if(b.data("readonly")===a){return this}if(this.cancel){if(a){this.cancel.hide()}else{this.cancel.show()}}if(a){b.unbind();b.children("img").unbind();f.fixHint.call(this)}else{f.bindAction.call(this);f.unfixHint.call(this)}b.data("readonly",a)})},reload:function(){return f.set.call(this,{})},roundStar:function(a){var b=(a-Math.floor(a)).toFixed(2);if(b>this.opt.round.down){var g=this.opt.starOn;if(b<this.opt.round.up&&this.opt.halfShow){g=this.opt.starHalf}else{if(b<this.opt.round.full){g=this.opt.starOff}}this.stars.eq(Math.ceil(a)-1).attr("src",this.opt.path+g)}},score:function(){return arguments.length?f.setScore.apply(this,arguments):f.getScore.call(this)},set:function(a){this.each(function(){var h=d(this),b=h.data("settings"),g=h.clone().removeAttr("style").insertBefore(h);h.remove();g.raty(d.extend(b,a))});return d(this.selector)},setScore:function(a){return d(this).each(function(){if(d(this).data("readonly")===true){return this}f.initialize.call(this,a);f.setTarget.call(this,a,true)})},setTarget:function(b,g){if(this.opt.target){var h=d(this.opt.target);if(h.length==0){f.error.call(this,"target selector invalid or missing!")}var a=b;if(!g||a===undefined){a=this.opt.targetText}else{if(this.opt.targetType=="hint"){a=(a===null&&this.opt.cancel)?this.opt.cancelHint:this.opt.hints[Math.ceil(a-1)]}else{a=this.opt.precision?parseFloat(a).toFixed(1):parseInt(a,10)}}if(this.opt.targetFormat.indexOf("{score}")<0){f.error.call(this,'template "{score}" missing!')}if(b!==null){a=this.opt.targetFormat.toString().replace("{score}",a)}if(h.is(":input")){h.val(a)}else{h.html(a)}}},showHalf:function(a){var b=(a-Math.floor(a)).toFixed(1);if(b>0&&b<0.6){this.stars.eq(Math.ceil(a)-1).attr("src",this.opt.path+this.opt.starHalf)}},initialize:function(a){a=!a?0:f.between(a,0,this.opt.number);f.fill.call(this,a);if(a>0){if(this.opt.halfShow){f.roundStar.call(this,a)}this.score.val(a)}},unfixHint:function(){for(var a=0;a<this.opt.number;a++){this.stars.eq(a).attr("title",(a<this.opt.hints.length&&this.opt.hints[a]!==null)?this.opt.hints[a]:a)}d(this).data("readonly",false).css("cursor","pointer").removeAttr("title");this.score.attr("readonly","readonly")}};d.fn.raty=function(a){if(f[a]){return f[a].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof a==="object"||!a){return f.init.apply(this,arguments)}else{d.error("Method "+a+" does not exist!")}}};d.fn.raty.defaults={cancel:false,cancelHint:"cancel this rating!",cancelOff:"cancel-off.png",cancelOn:"cancel-on.png",cancelPlace:"left",click:undefined,half:false,halfShow:true,hints:["bad","poor","regular","good","gorgeous"],iconRange:undefined,mouseover:undefined,noRatedMsg:"not rated yet",number:5,path:"img/",precision:false,round:{down:0.25,full:0.6,up:0.76},readOnly:false,score:undefined,scoreName:"score",single:false,size:16,space:true,starHalf:"star-half.png",starOff:"star-off.png",starOn:"star-on.png",target:undefined,targetFormat:"{score}",targetKeep:false,targetText:"",targetType:"hint",width:undefined}})(jQuery);(function(a){a.fn.serializeObject=function(){var d={};var b=this.serializeArray();a.each(b,function(){if(d[this.name]!==undefined){if(!d[this.name].push){d[this.name]=[d[this.name]]}d[this.name].push(this.value||"")}else{d[this.name]=this.value||""}});return d}})(jQuery);var $j=jQuery.noConflict();if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var a=arguments,b=null,f,g,d;for(f=0;f<a.length;f=f+1){d=(""+a[f]).split(".");b=YAHOO;for(g=(d[0]=="YAHOO")?1:0;g<d.length;g=g+1){b[d[g]]=b[d[g]]||{};b=b[d[g]]}}return b};YAHOO.log=function(b,a,d){var f=YAHOO.widget.Logger;if(f&&f.log){return f.log(b,a,d)}else{return false}};YAHOO.register=function(f,l,a){var g=YAHOO.env.modules,d,h,j,k,b;if(!g[f]){g[f]={versions:[],builds:[]}}d=g[f];h=a.version;j=a.build;k=YAHOO.env.listeners;d.name=f;d.version=h;d.build=j;d.versions.push(h);d.builds.push(j);d.mainClass=l;for(b=0;b<k.length;b=b+1){k[b](d)}if(l){l.VERSION=h;l.BUILD=j}else{YAHOO.log("mainClass is undefined for module "+f,"warn")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(a){return YAHOO.env.modules[a]||null};YAHOO.env.ua=function(){var b={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0},d=navigator.userAgent,a;if((/KHTML/).test(d)){b.webkit=1}a=d.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){b.webkit=parseFloat(a[1]);if(/ Mobile\//.test(d)){b.mobile="Apple"}else{a=d.match(/NokiaN[^\/]*/);if(a){b.mobile=a[0]}}a=d.match(/AdobeAIR\/([^\s]*)/);if(a){b.air=a[0]}}if(!b.webkit){a=d.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){b.opera=parseFloat(a[1]);a=d.match(/Opera Mini[^;]*/);if(a){b.mobile=a[0]}}else{a=d.match(/MSIE\s([^;]*)/);if(a&&a[1]){b.ie=parseFloat(a[1])}else{a=d.match(/Gecko\/([^\s]*)/);if(a){b.gecko=1;a=d.match(/rv:([^\s\)]*)/);if(a&&a[1]){b.gecko=parseFloat(a[1])}}}}}a=d.match(/Caja\/([^\s]*)/);if(a&&a[1]){b.caja=parseFloat(a[1])}return b}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var f=YAHOO_config.listener,a=YAHOO.env.listeners,b=true,d;if(f){for(d=0;d<a.length;d=d+1){if(a[d]==f){b=false;break}}if(b){a.push(f)}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var h=YAHOO.lang,b="[object Array]",g="[object Function]",a=Object.prototype,d=["toString","valueOf"],f={isArray:function(j){return a.toString.apply(j)===b},isBoolean:function(j){return typeof j==="boolean"},isFunction:function(j){return a.toString.apply(j)===g},isNull:function(j){return j===null},isNumber:function(j){return typeof j==="number"&&isFinite(j)},isObject:function(j){return(j&&(typeof j==="object"||h.isFunction(j)))||false},isString:function(j){return typeof j==="string"},isUndefined:function(j){return typeof j==="undefined"},_IEEnumFix:(YAHOO.env.ua.ie)?function(l,m){var n,j,k;for(n=0;n<d.length;n=n+1){j=d[n];k=m[j];if(h.isFunction(k)&&k!=a[j]){l[j]=k}}}:function(){},extend:function(k,j,l){if(!j||!k){throw new Error("extend failed, please check that all dependencies are included.")}var m=function(){},n;m.prototype=j.prototype;k.prototype=new m();k.prototype.constructor=k;k.superclass=j.prototype;if(j.prototype.constructor==a.constructor){j.prototype.constructor=j}if(l){for(n in l){if(h.hasOwnProperty(l,n)){k.prototype[n]=l[n]}}h._IEEnumFix(k.prototype,l)}},augmentObject:function(k,l){if(!l||!k){throw new Error("Absorb failed, verify dependencies.")}var o=arguments,m,j,n=o[2];if(n&&n!==true){for(m=2;m<o.length;m=m+1){k[o[m]]=l[o[m]]}}else{for(j in l){if(n||!(j in k)){k[j]=l[j]}}h._IEEnumFix(k,l)}},augmentProto:function(j,k){if(!k||!j){throw new Error("Augment failed, verify dependencies.")}var m=[j.prototype,k.prototype],l;for(l=2;l<arguments.length;l=l+1){m.push(arguments[l])}h.augmentObject.apply(this,m)},dump:function(s,m){var q,n,k=[],j="{...}",r="f(){...}",l=", ",o=" => ";if(!h.isObject(s)){return s+""}else{if(s instanceof Date||("nodeType" in s&&"tagName" in s)){return s}else{if(h.isFunction(s)){return r}}}m=(h.isNumber(m))?m:3;if(h.isArray(s)){k.push("[");for(q=0,n=s.length;q<n;q=q+1){if(h.isObject(s[q])){k.push((m>0)?h.dump(s[q],m-1):j)}else{k.push(s[q])}k.push(l)}if(k.length>1){k.pop()}k.push("]")}else{k.push("{");for(q in s){if(h.hasOwnProperty(s,q)){k.push(q+o);if(h.isObject(s[q])){k.push((m>0)?h.dump(s[q],m-1):j)}else{k.push(s[q])}k.push(l)}}if(k.length>1){k.pop()}k.push("}")}return k.join("")},substitute:function(j,y,r){var u,v,w,n,m,k,o=[],x,t="dump",q=" ",z="{",l="}",s;for(;;){u=j.lastIndexOf(z);if(u<0){break}v=j.indexOf(l,u);if(u+1>=v){break}x=j.substring(u+1,v);n=x;k=null;w=n.indexOf(q);if(w>-1){k=n.substring(w+1);n=n.substring(0,w)}m=y[n];if(r){m=r(n,m,k)}if(h.isObject(m)){if(h.isArray(m)){m=h.dump(m,parseInt(k,10))}else{k=k||"";s=k.indexOf(t);if(s>-1){k=k.substring(4)}if(m.toString===a.toString||s>-1){m=h.dump(m,parseInt(k,10))}else{m=m.toString()}}}else{if(!h.isString(m)&&!h.isNumber(m)){m="~-"+o.length+"-~";o[o.length]=x}}j=j.substring(0,u)+m+j.substring(v+1)}for(u=o.length-1;u>=0;u=u-1){j=j.replace(new RegExp("~-"+u+"-~"),"{"+o[u]+"}","g")}return j},trim:function(k){try{return k.replace(/^\s+|\s+$/g,"")}catch(j){return k}},merge:function(){var j={},l=arguments,m=l.length,k;for(k=0;k<m;k=k+1){h.augmentObject(j,l[k],true)}return j},later:function(k,r,j,o,n){k=k||0;r=r||{};var q=j,l=o,m,s;if(h.isString(j)){q=r[j]}if(!q){throw new TypeError("method undefined")}if(!h.isArray(l)){l=[o]}m=function(){q.apply(r,l)};s=(n)?setInterval(m,k):setTimeout(m,k);return{interval:n,cancel:function(){if(this.interval){clearInterval(s)}else{clearTimeout(s)}}}},isValue:function(j){return(h.isObject(j)||h.isString(j)||h.isNumber(j)||h.isBoolean(j))}};h.hasOwnProperty=(a.hasOwnProperty)?function(k,j){return k&&k.hasOwnProperty(j)}:function(k,j){return !h.isUndefined(k[j])&&k.constructor.prototype[j]!==k[j]};f.augmentObject(h,f,true);YAHOO.util.Lang=h;h.augment=h.augmentProto;YAHOO.augment=h.augmentProto;YAHOO.extend=h.extend})();YAHOO.register("yahoo",YAHOO,{version:"2.7.0",build:"1799"});YAHOO.lang.JSON=(function(){var l=YAHOO.lang,_UNICODE_EXCEPTIONS=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_ESCAPES=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,_VALUES=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_BRACKETS=/(?:^|:|,)(?:\s*\[)+/g,_INVALID=/^[\],:{}\s]*$/,_SPECIAL_CHARS=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_CHARS={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function _revive(data,reviver){var walk=function(o,key){var k,v,value=o[key];if(value&&typeof value==="object"){for(k in value){if(l.hasOwnProperty(value,k)){v=walk(value,k);if(v===undefined){delete value[k]}else{value[k]=v}}}}return reviver.call(o,key,value)};return typeof reviver==="function"?walk({"":data},""):data}function _char(c){if(!_CHARS[c]){_CHARS[c]="\\u"+("0000"+(+(c.charCodeAt(0))).toString(16)).slice(-4)}return _CHARS[c]}function _prepare(s){return s.replace(_UNICODE_EXCEPTIONS,_char)}function _isValid(str){return l.isString(str)&&_INVALID.test(str.replace(_ESCAPES,"@").replace(_VALUES,"]").replace(_BRACKETS,""))}function _string(s){return'"'+s.replace(_SPECIAL_CHARS,_char)+'"'}function _stringify(h,key,d,w,pstack){var o=typeof w==="function"?w.call(h,key,h[key]):h[key],i,len,j,k,v,isArray,a;if(o instanceof Date){o=l.JSON.dateToString(o)}else{if(o instanceof String||o instanceof Boolean||o instanceof Number){o=o.valueOf()}}switch(typeof o){case"string":return _string(o);case"number":return isFinite(o)?String(o):"null";case"boolean":return String(o);case"object":if(o===null){return"null"}for(i=pstack.length-1;i>=0;--i){if(pstack[i]===o){return"null"}}pstack[pstack.length]=o;a=[];isArray=l.isArray(o);if(d>0){if(isArray){for(i=o.length-1;i>=0;--i){a[i]=_stringify(o,i,d-1,w,pstack)||"null"}}else{j=0;if(l.isArray(w)){for(i=0,len=w.length;i<len;++i){k=w[i];v=_stringify(o,k,d-1,w,pstack);if(v){a[j++]=_string(k)+":"+v}}}else{for(k in o){if(typeof k==="string"&&l.hasOwnProperty(o,k)){v=_stringify(o,k,d-1,w,pstack);if(v){a[j++]=_string(k)+":"+v}}}}a.sort()}}pstack.pop();return isArray?"["+a.join(",")+"]":"{"+a.join(",")+"}"}return undefined}return{isValid:function(s){return _isValid(_prepare(s))},parse:function(s,reviver){s=_prepare(s);if(_isValid(s)){return _revive(eval("("+s+")"),reviver)}throw new SyntaxError("parseJSON")},stringify:function(o,w,d){if(o!==undefined){if(l.isArray(w)){w=(function(a){var uniq=[],map={},v,i,j,len;for(i=0,j=0,len=a.length;i<len;++i){v=a[i];if(typeof v==="string"&&map[v]===undefined){uniq[(map[v]=j++)]=v}}return uniq})(w)}d=d>=0?d:1/0;return _stringify({"":o},"",d,w,[])}return undefined},dateToString:function(d){function _zeroPad(v){return v<10?"0"+v:v}return d.getUTCFullYear()+"-"+_zeroPad(d.getUTCMonth()+1)+"-"+_zeroPad(d.getUTCDate())+"T"+_zeroPad(d.getUTCHours())+":"+_zeroPad(d.getUTCMinutes())+":"+_zeroPad(d.getUTCSeconds())+"Z"},stringToDate:function(str){if(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/.test(str)){var d=new Date();d.setUTCFullYear(RegExp.$1,(RegExp.$2|0)-1,RegExp.$3);d.setUTCHours(RegExp.$4,RegExp.$5,RegExp.$6);return d}return str}}})();YAHOO.register("json",YAHOO.lang.JSON,{version:"2.7.0",build:"1799"});YAHOO.util.CustomEvent=function(d,f,g,a){this.type=d;this.scope=f||window;this.silent=g;this.signature=a||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var b="_YUICEOnSubscribe";if(d!==b){this.subscribeEvent=new YAHOO.util.CustomEvent(b,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(a,d,b){if(!a){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(a,d,b)}this.subscribers.push(new YAHOO.util.Subscriber(a,d,b))},unsubscribe:function(f,b){if(!f){return this.unsubscribeAll()}var d=false;for(var h=0,a=this.subscribers.length;h<a;++h){var g=this.subscribers[h];if(g&&g.contains(f,b)){this._delete(h);d=true}}return d},fire:function(){this.lastError=null;var j=[],q=this.subscribers.length;if(!q&&this.silent){return true}var l=[].slice.call(arguments,0),n=true,a,k=false;if(!this.silent){}var b=this.subscribers.slice(),f=YAHOO.util.Event.throwErrors;for(a=0;a<q;++a){var g=b[a];if(!g){k=true}else{if(!this.silent){}var h=g.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var d=null;if(l.length>0){d=l[0]}try{n=g.fn.call(h,d,g.obj)}catch(o){this.lastError=o;if(f){throw o}}}else{try{n=g.fn.call(h,this.type,l,g.obj)}catch(m){this.lastError=m;if(f){throw m}}}if(false===n){if(!this.silent){}break}}}return(n!==false)},unsubscribeAll:function(){var a=this.subscribers.length,b;for(b=a-1;b>-1;b--){this._delete(b)}this.subscribers=[];return a},_delete:function(a){var b=this.subscribers[a];if(b){delete b.fn;delete b.obj}this.subscribers.splice(a,1)},toString:function(){return"CustomEvent: '"+this.type+"', context: "+this.scope}};YAHOO.util.Subscriber=function(a,d,b){this.fn=a;this.obj=YAHOO.lang.isUndefined(d)?null:d;this.overrideContext=b};YAHOO.util.Subscriber.prototype.getScope=function(a){if(this.overrideContext){if(this.overrideContext===true){return this.obj}else{return this.overrideContext}}return a};YAHOO.util.Subscriber.prototype.contains=function(a,b){if(b){return(this.fn==a&&this.obj==b)}else{return(this.fn==a)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var l=false;var k=[];var j=[];var m=[];var o=[];var b=0;var n=[];var d=[];var f=0;var a={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};var h=YAHOO.env.ua.ie?"focusin":"focus";var g=YAHOO.env.ua.ie?"focusout":"blur";return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var r=this;var q=function(){r._tryPreloadAttach()};this._interval=setInterval(q,this.POLL_INTERVAL)}},onAvailable:function(q,u,s,r,t){var w=(YAHOO.lang.isString(q))?[q]:q;for(var v=0;v<w.length;v=v+1){n.push({id:w[v],fn:u,obj:s,overrideContext:r,checkReady:t})}b=this.POLL_RETRYS;this.startInterval()},onContentReady:function(q,t,s,r){this.onAvailable(q,t,s,r,true)},onDOMReady:function(s,r,q){if(this.DOMReady){setTimeout(function(){var t=window;if(q){if(q===true){t=r}else{t=q}}s.call(t,"DOMReady",[],r)},0)}else{this.DOMReadyEvent.subscribe(s,r,q)}},_addListener:function(B,D,r,x,t,E){if(!r||!r.call){return false}if(this._isValidCollection(B)){var q=true;for(var w=0,u=B.length;w<u;++w){q=this.on(B[w],D,r,x,t)&&q}return q}else{if(YAHOO.lang.isString(B)){var y=this.getEl(B);if(y){B=y}else{this.onAvailable(B,function(){YAHOO.util.Event.on(B,D,r,x,t)});return true}}}if(!B){return false}if("unload"==D&&x!==this){j[j.length]=[B,D,r,x,t];return true}var C=B;if(t){if(t===true){C=x}else{C=t}}var A=function(G){return r.call(C,YAHOO.util.Event.getEvent(G,B),x)};var F=[B,D,r,A,C,x,t];var v=k.length;k[v]=F;if(this.useLegacyEvent(B,D)){var z=this.getLegacyIndex(B,D);if(z==-1||B!=m[z][0]){z=m.length;d[B.id+D]=z;m[z]=[B,D,B["on"+D]];o[z]=[];B["on"+D]=function(G){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(G),z)}}o[z].push(F)}else{try{this._simpleAdd(B,D,A,E)}catch(s){this.lastError=s;this.removeListener(B,D,r);return false}}return true},addListener:function(t,q,u,s,r){return this._addListener(t,q,u,s,r,false)},addFocusListener:function(s,t,r,q){return this._addListener(s,h,t,r,q,true)},removeFocusListener:function(q,r){return this.removeListener(q,h,r)},addBlurListener:function(s,t,r,q){return this._addListener(s,g,t,r,q,true)},removeBlurListener:function(q,r){return this.removeListener(q,g,r)},fireLegacyEvent:function(u,w){var s=true,z,q,r,y,t;q=o[w].slice();for(var x=0,v=q.length;x<v;++x){r=q[x];if(r&&r[this.WFN]){y=r[this.ADJ_SCOPE];t=r[this.WFN].call(y,u);s=(s&&t)}}z=m[w];if(z&&z[2]){z[2](u)}return s},getLegacyIndex:function(r,q){var s=this.generateId(r)+q;if(typeof d[s]=="undefined"){return -1}else{return d[s]}},useLegacyEvent:function(r,q){return(this.webkit&&this.webkit<419&&("click"==q||"dblclick"==q))},removeListener:function(A,B,s){var x,u,q;if(typeof A=="string"){A=this.getEl(A)}else{if(this._isValidCollection(A)){var r=true;for(x=A.length-1;x>-1;x--){r=(this.removeListener(A[x],B,s)&&r)}return r}}if(!s||!s.call){return this.purgeElement(A,false,B)}if("unload"==B){for(x=j.length-1;x>-1;x--){q=j[x];if(q&&q[0]==A&&q[1]==B&&q[2]==s){j.splice(x,1);return true}}return false}var w=null;var v=arguments[3];if("undefined"===typeof v){v=this._getCacheIndex(A,B,s)}if(v>=0){w=k[v]}if(!A||!w){return false}if(this.useLegacyEvent(A,B)){var y=this.getLegacyIndex(A,B);var z=o[y];if(z){for(x=0,u=z.length;x<u;++x){q=z[x];if(q&&q[this.EL]==A&&q[this.TYPE]==B&&q[this.FN]==s){z.splice(x,1);break}}}}else{try{this._simpleRemove(A,B,w[this.WFN],false)}catch(t){this.lastError=t;return false}}delete k[v][this.WFN];delete k[v][this.FN];k.splice(v,1);return true},getTarget:function(q,r){var s=q.target||q.srcElement;return this.resolveTextNode(s)},resolveTextNode:function(q){try{if(q&&3==q.nodeType){return q.parentNode}}catch(r){}return q},getPageX:function(q){var r=q.pageX;if(!r&&0!==r){r=q.clientX||0;if(this.isIE){r+=this._getScrollLeft()}}return r},getPageY:function(r){var q=r.pageY;if(!q&&0!==q){q=r.clientY||0;if(this.isIE){q+=this._getScrollTop()}}return q},getXY:function(q){return[this.getPageX(q),this.getPageY(q)]},getRelatedTarget:function(q){var r=q.relatedTarget;if(!r){if(q.type=="mouseout"){r=q.toElement}else{if(q.type=="mouseover"){r=q.fromElement}}}return this.resolveTextNode(r)},getTime:function(q){if(!q.time){var r=new Date().getTime();try{q.time=r}catch(s){this.lastError=s;return r}}return q.time},stopEvent:function(q){this.stopPropagation(q);this.preventDefault(q)},stopPropagation:function(q){if(q.stopPropagation){q.stopPropagation()}else{q.cancelBubble=true}},preventDefault:function(q){if(q.preventDefault){q.preventDefault()}else{q.returnValue=false}},getEvent:function(r,t){var s=r||window.event;if(!s){var q=this.getEvent.caller;while(q){s=q.arguments[0];if(s&&Event==s.constructor){break}q=q.caller}}return s},getCharCode:function(q){var r=q.keyCode||q.charCode||0;if(YAHOO.env.ua.webkit&&(r in a)){r=a[r]}return r},_getCacheIndex:function(r,q,s){for(var t=0,u=k.length;t<u;t=t+1){var v=k[t];if(v&&v[this.FN]==s&&v[this.EL]==r&&v[this.TYPE]==q){return t}}return -1},generateId:function(r){var q=r.id;if(!q){q="yuievtautoid-"+f;++f;r.id=q}return q},_isValidCollection:function(q){try{return(q&&typeof q!=="string"&&q.length&&!q.tagName&&!q.alert&&typeof q[0]!=="undefined")}catch(r){return false}},elCache:{},getEl:function(q){return(typeof q==="string")?document.getElementById(q):q},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(q){if(!l){l=true;var r=YAHOO.util.Event;r._ready();r._tryPreloadAttach()}},_ready:function(q){var r=YAHOO.util.Event;if(!r.DOMReady){r.DOMReady=true;r.DOMReadyEvent.fire();r._simpleRemove(document,"DOMContentLoaded",r._ready)}},_tryPreloadAttach:function(){if(n.length===0){b=0;if(this._interval){clearInterval(this._interval);this._interval=null}return}if(this.locked){return}if(this.isIE){if(!this.DOMReady){this.startInterval();return}}this.locked=true;var r=!l;if(!r){r=(b>0&&n.length>0)}var s=[];var q=function(z,y){var A=z;if(y.overrideContext){if(y.overrideContext===true){A=y.obj}else{A=y.overrideContext}}y.fn.call(A,y.obj)};var w,x,t,u,v=[];for(w=0,x=n.length;w<x;w=w+1){t=n[w];if(t){u=this.getEl(t.id);if(u){if(t.checkReady){if(l||u.nextSibling||!r){v.push(t);n[w]=null}}else{q(u,t);n[w]=null}}else{s.push(t)}}}for(w=0,x=v.length;w<x;w=w+1){t=v[w];q(this.getEl(t.id),t)}b--;if(r){for(w=n.length-1;w>-1;w--){t=n[w];if(!t||!t.id){n.splice(w,1)}}this.startInterval()}else{if(this._interval){clearInterval(this._interval);this._interval=null}}this.locked=false},purgeElement:function(t,s,q){var v=(YAHOO.lang.isString(t))?this.getEl(t):t;var r=this.getListeners(v,q),u,x;if(r){for(u=r.length-1;u>-1;u--){var w=r[u];this.removeListener(v,w.type,w.fn)}}if(s&&v&&v.childNodes){for(u=0,x=v.childNodes.length;u<x;++u){this.purgeElement(v.childNodes[u],s,q)}}},getListeners:function(x,z){var u=[],y;if(!z){y=[k,j]}else{if(z==="unload"){y=[j]}else{y=[k]}}var s=(YAHOO.lang.isString(x))?this.getEl(x):x;for(var v=0;v<y.length;v=v+1){var q=y[v];if(q){for(var t=0,r=q.length;t<r;++t){var w=q[t];if(w&&w[this.EL]===s&&(!z||z===w[this.TYPE])){u.push({type:w[this.TYPE],fn:w[this.FN],obj:w[this.OBJ],adjust:w[this.OVERRIDE],scope:w[this.ADJ_SCOPE],index:t})}}}}return(u.length)?u:null},_unload:function(r){var x=YAHOO.util.Event,u,v,w,s,t,q=j.slice(),y;for(u=0,s=j.length;u<s;++u){w=q[u];if(w){y=window;if(w[x.ADJ_SCOPE]){if(w[x.ADJ_SCOPE]===true){y=w[x.UNLOAD_OBJ]}else{y=w[x.ADJ_SCOPE]}}w[x.FN].call(y,x.getEvent(r,w[x.EL]),w[x.UNLOAD_OBJ]);q[u]=null}}w=null;y=null;j=null;if(k){for(v=k.length-1;v>-1;v--){w=k[v];if(w){x.removeListener(w[x.EL],w[x.TYPE],w[x.FN],v)}}w=null}m=null;x._simpleRemove(window,"unload",x._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var r=document.documentElement,q=document.body;if(r&&(r.scrollTop||r.scrollLeft)){return[r.scrollTop,r.scrollLeft]}else{if(q){return[q.scrollTop,q.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(r,q,s,t){r.addEventListener(q,s,(t))}}else{if(window.attachEvent){return function(r,q,s,t){r.attachEvent("on"+q,s)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(r,q,s,t){r.removeEventListener(q,s,(t))}}else{if(window.detachEvent){return function(r,q,s){r.detachEvent("on"+q,s)}}else{return function(){}}}}()}}();(function(){var a=YAHOO.util.Event;a.on=a.addListener;a.onFocus=a.addFocusListener;a.onBlur=a.addBlurListener;if(a.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var b=document.createElement("p");a._dri=setInterval(function(){try{b.doScroll("left");clearInterval(a._dri);a._dri=null;a._ready();b=null}catch(d){}},a.POLL_INTERVAL)}else{if(a.webkit&&a.webkit<525){a._dri=setInterval(function(){var d=document.readyState;if("loaded"==d||"complete"==d){clearInterval(a._dri);a._dri=null;a._ready()}},a.POLL_INTERVAL)}else{a._simpleAdd(document,"DOMContentLoaded",a._ready)}}a._simpleAdd(window,"load",a._load);a._simpleAdd(window,"unload",a._unload);a._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,g,b,d){this.__yui_events=this.__yui_events||{};var f=this.__yui_events[a];if(f){f.subscribe(g,b,d)}else{this.__yui_subscribers=this.__yui_subscribers||{};var h=this.__yui_subscribers;if(!h[a]){h[a]=[]}h[a].push({fn:g,obj:b,overrideContext:d})}},unsubscribe:function(h,f,b){this.__yui_events=this.__yui_events||{};var a=this.__yui_events;if(h){var d=a[h];if(d){return d.unsubscribe(f,b)}}else{var j=true;for(var g in a){if(YAHOO.lang.hasOwnProperty(a,g)){j=j&&a[g].unsubscribe(f,b)}}return j}return false},unsubscribeAll:function(a){return this.unsubscribe(a)},createEvent:function(j,a){this.__yui_events=this.__yui_events||{};var f=a||{};var g=this.__yui_events;if(g[j]){}else{var h=f.scope||this;var l=(f.silent);var d=new YAHOO.util.CustomEvent(j,h,l,YAHOO.util.CustomEvent.FLAT);g[j]=d;if(f.onSubscribeCallback){d.subscribeEvent.subscribe(f.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var k=this.__yui_subscribers[j];if(k){for(var b=0;b<k.length;++b){d.subscribe(k[b].fn,k[b].obj,k[b].overrideContext)}}}return g[j]},fireEvent:function(f,g,a,h){this.__yui_events=this.__yui_events||{};var b=this.__yui_events[f];if(!b){return null}var j=[];for(var d=1;d<arguments.length;++d){j.push(arguments[d])}return b.fire.apply(b,j)},hasEvent:function(a){if(this.__yui_events){if(this.__yui_events[a]){return true}}return false}};(function(){var a=YAHOO.util.Event,b=YAHOO.lang;YAHOO.util.KeyListener=function(l,f,k,j){if(!l){}else{if(!f){}else{if(!k){}}}if(!j){j=YAHOO.util.KeyListener.KEYDOWN}var h=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(b.isString(l)){l=document.getElementById(l)}if(b.isFunction(k)){h.subscribe(k)}else{h.subscribe(k.fn,k.scope,k.correctScope)}function g(q,r){if(!f.shift){f.shift=false}if(!f.alt){f.alt=false}if(!f.ctrl){f.ctrl=false}if(q.shiftKey==f.shift&&q.altKey==f.alt&&q.ctrlKey==f.ctrl){var o,s=f.keys,m;if(YAHOO.lang.isArray(s)){for(var n=0;n<s.length;n++){o=s[n];m=a.getCharCode(q);if(o==m){h.fire(m,q);break}}}else{m=a.getCharCode(q);if(s==m){h.fire(m,q)}}}}this.enable=function(){if(!this.enabled){a.on(l,j,g);this.enabledEvent.fire(f)}this.enabled=true};this.disable=function(){if(this.enabled){a.removeListener(l,j,g);this.disabledEvent.fire(f)}this.enabled=false};this.toString=function(){return"KeyListener ["+f.keys+"] "+l.tagName+(l.id?"["+l.id+"]":"")}};var d=YAHOO.util.KeyListener;d.KEYDOWN="keydown";d.KEYUP="keyup";d.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38}})();YAHOO.register("event",YAHOO.util.Event,{version:"2.7.0",build:"1799"});(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var ao=YAHOO.util,ai=YAHOO.lang,aE=YAHOO.env.ua,at=YAHOO.lang.trim,aN={},aJ={},ag=/^t(?:able|d|h)$/i,y=/color$/i,aj=window.document,z=aj.documentElement,aM="ownerDocument",aD="defaultView",av="documentElement",ax="compatMode",aP="offsetLeft",ae="offsetTop",aw="offsetParent",x="parentNode",aF="nodeType",aq="tagName",af="scrollLeft",aI="scrollTop",ad="getBoundingClientRect",au="getComputedStyle",aQ="currentStyle",ah="CSS1Compat",aO="BackCompat",aK="class",an="className",ak="",ar=" ",ay="(?:^|\\s)",aG="(?= |$)",Y="g",aB="position",aL="fixed",G="relative",aH="left",aC="top",az="medium",aA="borderLeftWidth",ac="borderTopWidth",ap=aE.opera,al=aE.webkit,am=aE.gecko,aa=aE.ie;ao.Dom={CUSTOM_ATTRIBUTES:(!z.hasAttribute)?{"for":"htmlFor","class":an}:{htmlFor:"for",className:aK},get:function(h){var g,f,d,a,b;if(h){if(h[aF]||h.item){return h}if(typeof h==="string"){g=h;h=aj.getElementById(h);if(h&&h.id===g){return h}else{if(h&&aj.all){h=null;f=aj.all[g];for(a=0,b=f.length;a<b;++a){if(f[a].id===g){return f[a]}}}}return h}if(h.DOM_EVENTS){h=h.get("element")}if("length" in h){d=[];for(a=0,b=h.length;a<b;++a){d[d.length]=ao.Dom.get(h[a])}return d}return h}return null},getComputedStyle:function(a,b){if(window[au]){return a[aM][aD][au](a,null)[b]}else{if(a[aQ]){return ao.Dom.IE_ComputedStyle.get(a,b)}}},getStyle:function(a,b){return ao.Dom.batch(a,ao.Dom._getStyle,b)},_getStyle:function(){if(window[au]){return function(b,f){f=(f==="float")?f="cssFloat":ao.Dom._toCamel(f);var a=b.style[f],d;if(!a){d=b[aM][aD][au](b,null);if(d){a=d[f]}}return a}}else{if(z[aQ]){return function(b,g){var a;switch(g){case"opacity":a=100;try{a=b.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(f){try{a=b.filters("alpha").opacity}catch(d){}}return a/100;case"float":g="styleFloat";default:g=ao.Dom._toCamel(g);a=b[aQ]?b[aQ][g]:null;return(b.style[g]||a)}}}}}(),setStyle:function(b,d,a){ao.Dom.batch(b,ao.Dom._setStyle,{prop:d,val:a})},_setStyle:function(){if(aa){return function(d,b){var a=ao.Dom._toCamel(b.prop),f=b.val;if(d){switch(a){case"opacity":if(ai.isString(d.style.filter)){d.style.filter="alpha(opacity="+f*100+")";if(!d[aQ]||!d[aQ].hasLayout){d.style.zoom=1}}break;case"float":a="styleFloat";default:d.style[a]=f}}else{}}}else{return function(d,b){var a=ao.Dom._toCamel(b.prop),f=b.val;if(d){if(a=="float"){a="cssFloat"}d.style[a]=f}else{}}}}(),getXY:function(a){return ao.Dom.batch(a,ao.Dom._getXY)},_canPosition:function(a){return(ao.Dom._getStyle(a,"display")!=="none"&&ao.Dom._inDoc(a))},_getXY:function(){if(aj[av][ad]){return function(m){var l,a,k,d,f,g,h,o,n,j=Math.floor,b=false;if(ao.Dom._canPosition(m)){k=m[ad]();d=m[aM];l=ao.Dom.getDocumentScrollLeft(d);a=ao.Dom.getDocumentScrollTop(d);b=[j(k[aH]),j(k[aC])];if(aa&&aE.ie<8){f=2;g=2;h=d[ax];o=ab(d[av],aA);n=ab(d[av],ac);if(aE.ie===6){if(h!==aO){f=0;g=0}}if((h==aO)){if(o!==az){f=parseInt(o,10)}if(n!==az){g=parseInt(n,10)}}b[0]-=f;b[1]-=g}if((a||l)){b[0]+=l;b[1]+=a}b[0]=j(b[0]);b[1]=j(b[1])}else{}return b}}else{return function(k){var a,j,h,f,d,g=false,b=k;if(ao.Dom._canPosition(k)){g=[k[aP],k[ae]];a=ao.Dom.getDocumentScrollLeft(k[aM]);j=ao.Dom.getDocumentScrollTop(k[aM]);d=((am||aE.webkit>519)?true:false);while((b=b[aw])){g[0]+=b[aP];g[1]+=b[ae];if(d){g=ao.Dom._calcBorders(b,g)}}if(ao.Dom._getStyle(k,aB)!==aL){b=k;while((b=b[x])&&b[aq]){h=b[aI];f=b[af];if(am&&(ao.Dom._getStyle(b,"overflow")!=="visible")){g=ao.Dom._calcBorders(b,g)}if(h||f){g[0]-=f;g[1]-=h}}g[0]+=a;g[1]+=j}else{if(ap){g[0]-=a;g[1]-=j}else{if(al||am){g[0]+=a;g[1]+=j}}}g[0]=Math.floor(g[0]);g[1]=Math.floor(g[1])}else{}return g}}}(),getX:function(a){var b=function(d){return ao.Dom.getXY(d)[0]};return ao.Dom.batch(a,b,ao.Dom,true)},getY:function(a){var b=function(d){return ao.Dom.getXY(d)[1]};return ao.Dom.batch(a,b,ao.Dom,true)},setXY:function(b,a,d){ao.Dom.batch(b,ao.Dom._setXY,{pos:a,noRetry:d})},_setXY:function(l,h){var g=ao.Dom._getStyle(l,aB),j=ao.Dom.setStyle,b=h.pos,a=h.noRetry,f=[parseInt(ao.Dom.getComputedStyle(l,aH),10),parseInt(ao.Dom.getComputedStyle(l,aC),10)],d,k;if(g=="static"){g=G;j(l,aB,g)}d=ao.Dom._getXY(l);if(!b||d===false){return false}if(isNaN(f[0])){f[0]=(g==G)?0:l[aP]}if(isNaN(f[1])){f[1]=(g==G)?0:l[ae]}if(b[0]!==null){j(l,aH,b[0]-d[0]+f[0]+"px")}if(b[1]!==null){j(l,aC,b[1]-d[1]+f[1]+"px")}if(!a){k=ao.Dom._getXY(l);if((b[0]!==null&&k[0]!=b[0])||(b[1]!==null&&k[1]!=b[1])){ao.Dom._setXY(l,{pos:b,noRetry:true})}}},setX:function(b,a){ao.Dom.setXY(b,[a,null])},setY:function(a,b){ao.Dom.setXY(a,[null,b])},getRegion:function(a){var b=function(d){var f=false;if(ao.Dom._canPosition(d)){f=ao.Region.getRegion(d)}else{}return f};return ao.Dom.batch(a,b,ao.Dom,true)},getClientWidth:function(){return ao.Dom.getViewportWidth()},getClientHeight:function(){return ao.Dom.getViewportHeight()},getElementsByClassName:function(h,b,g,d,m,f){h=ai.trim(h);b=b||"*";g=(g)?ao.Dom.get(g):null||aj;if(!g){return[]}var a=[],n=g.getElementsByTagName(b),k=ao.Dom.hasClass;for(var l=0,j=n.length;l<j;++l){if(k(n[l],h)){a[a.length]=n[l]}}if(d){ao.Dom.batch(a,d,m,f)}return a},hasClass:function(b,a){return ao.Dom.batch(b,ao.Dom._hasClass,a)},_hasClass:function(a,d){var b=false,f;if(a&&d){f=ao.Dom.getAttribute(a,an)||ak;if(d.exec){b=d.test(f)}else{b=d&&(ar+f+ar).indexOf(ar+d+ar)>-1}}else{}return b},addClass:function(b,a){return ao.Dom.batch(b,ao.Dom._addClass,a)},_addClass:function(a,d){var b=false,f;if(a&&d){f=ao.Dom.getAttribute(a,an)||ak;if(!ao.Dom._hasClass(a,d)){ao.Dom.setAttribute(a,an,at(f+ar+d));b=true}}else{}return b},removeClass:function(b,a){return ao.Dom.batch(b,ao.Dom._removeClass,a)},_removeClass:function(h,a){var g=false,f,d,b;if(h&&a){f=ao.Dom.getAttribute(h,an)||ak;ao.Dom.setAttribute(h,an,f.replace(ao.Dom._getClassRegex(a),ak));d=ao.Dom.getAttribute(h,an);if(f!==d){ao.Dom.setAttribute(h,an,at(d));g=true;if(ao.Dom.getAttribute(h,an)===""){b=(h.hasAttribute&&h.hasAttribute(aK))?aK:an;h.removeAttribute(b)}}}else{}return g},replaceClass:function(a,d,b){return ao.Dom.batch(a,ao.Dom._replaceClass,{from:d,to:b})},_replaceClass:function(j,a){var h,d,g,b=false,f;if(j&&a){d=a.from;g=a.to;if(!g){b=false}else{if(!d){b=ao.Dom._addClass(j,a.to)}else{if(d!==g){f=ao.Dom.getAttribute(j,an)||ak;h=(ar+f.replace(ao.Dom._getClassRegex(d),ar+g)).split(ao.Dom._getClassRegex(g));h.splice(1,0,ar+g);ao.Dom.setAttribute(j,an,at(h.join(ak)));b=true}}}}else{}return b},generateId:function(b,a){a=a||"yui-gen";var d=function(g){if(g&&g.id){return g.id}var f=a+YAHOO.env._id_counter++;if(g){if(g[aM].getElementById(f)){return ao.Dom.generateId(g,f+a)}g.id=f}return f};return ao.Dom.batch(b,d,ao.Dom,true)||d.apply(ao.Dom,arguments)},isAncestor:function(d,a){d=ao.Dom.get(d);a=ao.Dom.get(a);var b=false;if((d&&a)&&(d[aF]&&a[aF])){if(d.contains&&d!==a){b=d.contains(a)}else{if(d.compareDocumentPosition){b=!!(d.compareDocumentPosition(a)&16)}}}else{}return b},inDocument:function(a,b){return ao.Dom._inDoc(ao.Dom.get(a),b)},_inDoc:function(d,a){var b=false;if(d&&d[aq]){a=a||d[aM];b=ao.Dom.isAncestor(a[av],d)}else{}return b},getElementsBy:function(a,b,h,f,l,g,d){b=b||"*";h=(h)?ao.Dom.get(h):null||aj;if(!h){return[]}var m=[],n=h.getElementsByTagName(b);for(var k=0,j=n.length;k<j;++k){if(a(n[k])){if(d){m=n[k];break}else{m[m.length]=n[k]}}}if(f){ao.Dom.batch(m,f,l,g)}return m},getElementBy:function(a,b,d){return ao.Dom.getElementsBy(a,b,d,null,null,null,true)},batch:function(a,d,h,g){var j=[],f=(g)?h:window;a=(a&&(a[aq]||a.item))?a:ao.Dom.get(a);if(a&&d){if(a[aq]||a.length===undefined){return d.call(f,a,h)}for(var b=0;b<a.length;++b){j[j.length]=d.call(f,a[b],h)}}else{return false}return j},getDocumentHeight:function(){var b=(aj[ax]!=ah||al)?aj.body.scrollHeight:z.scrollHeight,a=Math.max(b,ao.Dom.getViewportHeight());return a},getDocumentWidth:function(){var b=(aj[ax]!=ah||al)?aj.body.scrollWidth:z.scrollWidth,a=Math.max(b,ao.Dom.getViewportWidth());return a},getViewportHeight:function(){var a=self.innerHeight,b=aj[ax];if((b||aa)&&!ap){a=(b==ah)?z.clientHeight:aj.body.clientHeight}return a},getViewportWidth:function(){var a=self.innerWidth,b=aj[ax];if(b||aa){a=(b==ah)?z.clientWidth:aj.body.clientWidth}return a},getAncestorBy:function(a,b){while((a=a[x])){if(ao.Dom._testElement(a,b)){return a}}return null},getAncestorByClassName:function(d,b){d=ao.Dom.get(d);if(!d){return null}var a=function(f){return ao.Dom.hasClass(f,b)};return ao.Dom.getAncestorBy(d,a)},getAncestorByTagName:function(d,b){d=ao.Dom.get(d);if(!d){return null}var a=function(f){return f[aq]&&f[aq].toUpperCase()==b.toUpperCase()};return ao.Dom.getAncestorBy(d,a)},getPreviousSiblingBy:function(a,b){while(a){a=a.previousSibling;if(ao.Dom._testElement(a,b)){return a}}return null},getPreviousSibling:function(a){a=ao.Dom.get(a);if(!a){return null}return ao.Dom.getPreviousSiblingBy(a)},getNextSiblingBy:function(a,b){while(a){a=a.nextSibling;if(ao.Dom._testElement(a,b)){return a}}return null},getNextSibling:function(a){a=ao.Dom.get(a);if(!a){return null}return ao.Dom.getNextSiblingBy(a)},getFirstChildBy:function(b,a){var d=(ao.Dom._testElement(b.firstChild,a))?b.firstChild:null;return d||ao.Dom.getNextSiblingBy(b.firstChild,a)},getFirstChild:function(a,b){a=ao.Dom.get(a);if(!a){return null}return ao.Dom.getFirstChildBy(a)},getLastChildBy:function(b,a){if(!b){return null}var d=(ao.Dom._testElement(b.lastChild,a))?b.lastChild:null;return d||ao.Dom.getPreviousSiblingBy(b.lastChild,a)},getLastChild:function(a){a=ao.Dom.get(a);return ao.Dom.getLastChildBy(a)},getChildrenBy:function(d,f){var a=ao.Dom.getFirstChildBy(d,f),b=a?[a]:[];ao.Dom.getNextSiblingBy(a,function(g){if(!f||f(g)){b[b.length]=g}return false});return b},getChildren:function(a){a=ao.Dom.get(a);if(!a){}return ao.Dom.getChildrenBy(a)},getDocumentScrollLeft:function(a){a=a||aj;return Math.max(a[av].scrollLeft,a.body.scrollLeft)},getDocumentScrollTop:function(a){a=a||aj;return Math.max(a[av].scrollTop,a.body.scrollTop)},insertBefore:function(b,a){b=ao.Dom.get(b);a=ao.Dom.get(a);if(!b||!a||!a[x]){return null}return a[x].insertBefore(b,a)},insertAfter:function(b,a){b=ao.Dom.get(b);a=ao.Dom.get(a);if(!b||!a||!a[x]){return null}if(a.nextSibling){return a[x].insertBefore(b,a.nextSibling)}else{return a[x].appendChild(b)}},getClientRegion:function(){var a=ao.Dom.getDocumentScrollTop(),d=ao.Dom.getDocumentScrollLeft(),f=ao.Dom.getViewportWidth()+d,b=ao.Dom.getViewportHeight()+a;return new ao.Region(a,f,b,d)},setAttribute:function(d,b,a){b=ao.Dom.CUSTOM_ATTRIBUTES[b]||b;d.setAttribute(b,a)},getAttribute:function(b,a){a=ao.Dom.CUSTOM_ATTRIBUTES[a]||a;return b.getAttribute(a)},_toCamel:function(d){var a=aN;function b(g,f){return f.toUpperCase()}return a[d]||(a[d]=d.indexOf("-")===-1?d:d.replace(/-([a-z])/gi,b))},_getClassRegex:function(b){var a;if(b!==undefined){if(b.exec){a=b}else{a=aJ[b];if(!a){b=b.replace(ao.Dom._patterns.CLASS_RE_TOKENS,"\\$1");a=aJ[b]=new RegExp(ay+b+aG,Y)}}}return a},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}])/g},_testElement:function(a,b){return a&&a[aF]==1&&(!b||b(a))},_calcBorders:function(a,f){var d=parseInt(ao.Dom[au](a,ac),10)||0,b=parseInt(ao.Dom[au](a,aA),10)||0;if(am){if(ag.test(a[aq])){d=0;b=0}}f[0]+=b;f[1]+=d;return f}};var ab=ao.Dom[au];if(aE.opera){ao.Dom[au]=function(d,b){var a=ab(d,b);if(y.test(b)){a=ao.Dom.Color.toRGB(a)}return a}}if(aE.webkit){ao.Dom[au]=function(d,b){var a=ab(d,b);if(a==="rgba(0, 0, 0, 0)"){a="transparent"}return a}}})();YAHOO.util.Region=function(d,b,a,f){this.top=d;this.y=d;this[1]=d;this.right=b;this.bottom=a;this.left=f;this.x=f;this[0]=f;this.width=this.right-this.left;this.height=this.bottom-this.top};YAHOO.util.Region.prototype.contains=function(a){return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(b){var f=Math.max(this.top,b.top),d=Math.min(this.right,b.right),a=Math.min(this.bottom,b.bottom),g=Math.max(this.left,b.left);if(a>=f&&d>=g){return new YAHOO.util.Region(f,d,a,g)}else{return null}};YAHOO.util.Region.prototype.union=function(b){var f=Math.min(this.top,b.top),d=Math.max(this.right,b.right),a=Math.max(this.bottom,b.bottom),g=Math.min(this.left,b.left);return new YAHOO.util.Region(f,d,a,g)};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}")};YAHOO.util.Region.getRegion=function(f){var b=YAHOO.util.Dom.getXY(f),g=b[1],d=b[0]+f.offsetWidth,a=b[1]+f.offsetHeight,h=b[0];return new YAHOO.util.Region(g,d,a,h)};YAHOO.util.Point=function(a,b){if(YAHOO.lang.isArray(a)){b=a[1];a=a[0]}YAHOO.util.Point.superclass.constructor.call(this,b,a,b,a)};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var z=YAHOO.util,X="clientTop",v="clientLeft",r="parentNode",q="right",a="hasLayout",s="px",d="opacity",o="auto",x="borderLeftWidth",u="borderTopWidth",k="borderRightWidth",b="borderBottomWidth",g="visible",j="transparent",m="height",w="width",t="style",f="currentStyle",h=/^width|height$/,l=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,n={get:function(D,B){var C="",A=D[f][B];if(B===d){C=z.Dom.getStyle(D,d)}else{if(!A||(A.indexOf&&A.indexOf(s)>-1)){C=A}else{if(z.Dom.IE_COMPUTED[B]){C=z.Dom.IE_COMPUTED[B](D,B)}else{if(l.test(A)){C=z.Dom.IE.ComputedStyle.getPixel(D,B)}else{C=A}}}}return C},getOffset:function(D,C){var A=D[f][C],H=C.charAt(0).toUpperCase()+C.substr(1),G="offset"+H,F="pixel"+H,B="",E;if(A==o){E=D[G];if(E===undefined){B=0}B=E;if(h.test(C)){D[t][C]=E;if(D[G]>E){B=E-(D[G]-E)}D[t][C]=o}}else{if(!D[t][F]&&!D[t][C]){D[t][C]=A}B=D[t][F]}return B+s},getBorderWidth:function(C,A){var B=null;if(!C[f][a]){C[t].zoom=1}switch(A){case u:B=C[X];break;case b:B=C.offsetHeight-C.clientHeight-C[X];break;case x:B=C[v];break;case k:B=C.offsetWidth-C.clientWidth-C[v];break}return B+s},getPixel:function(D,E){var B=null,A=D[f][q],C=D[f][E];D[t][q]=C;B=D[t].pixelRight;D[t][q]=A;return B+s},getMargin:function(B,C){var A;if(B[f][C]==o){A=0+s}else{A=z.Dom.IE.ComputedStyle.getPixel(B,C)}return A},getVisibility:function(B,C){var A;while((A=B[f])&&A[C]=="inherit"){B=B[r]}return(A)?A[C]:g},getColor:function(A,B){return z.Dom.Color.toRGB(A[f][B])||j},getBorderColor:function(C,D){var B=C[f],A=B[D]||B.color;return z.Dom.Color.toRGB(z.Dom.Color.toHex(A))}},y={};y.top=y.right=y.bottom=y.left=y[w]=y[m]=n.getOffset;y.color=n.getColor;y[u]=y[k]=y[b]=y[x]=n.getBorderWidth;y.marginTop=y.marginRight=y.marginBottom=y.marginLeft=n.getMargin;y.visibility=n.getVisibility;y.borderColor=y.borderTopColor=y.borderRightColor=y.borderBottomColor=y.borderLeftColor=n.getBorderColor;z.Dom.IE_COMPUTED=y;z.Dom.IE_ComputedStyle=n})();(function(){var d="toString",a=parseInt,f=RegExp,b=YAHOO.util;b.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(g){if(!b.Dom.Color.re_RGB.test(g)){g=b.Dom.Color.toHex(g)}if(b.Dom.Color.re_hex.exec(g)){g="rgb("+[a(f.$1,16),a(f.$2,16),a(f.$3,16)].join(", ")+")"}return g},toHex:function(g){g=b.Dom.Color.KEYWORDS[g]||g;if(b.Dom.Color.re_RGB.exec(g)){var h=(f.$1.length===1)?"0"+f.$1:Number(f.$1),j=(f.$2.length===1)?"0"+f.$2:Number(f.$2),k=(f.$3.length===1)?"0"+f.$3:Number(f.$3);g=[h[d](16),j[d](16),k[d](16)].join("")}if(g.length<6){g=g.replace(b.Dom.Color.re_hex3,"$1$1")}if(g!=="transparent"&&g.indexOf("#")<0){g="#"+g}return g.toLowerCase()}}}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.7.0",build:"1799"});YAHOO.util.Attribute=function(b,a){if(a){this.owner=a;this.configure(b,true)}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,setter:null,getter:null,validator:null,getValue:function(){var a=this.value;if(this.getter){a=this.getter.call(this.owner,this.name)}return a},setValue:function(b,h){var d,a=this.owner,g=this.name;var f={type:g,prevValue:this.getValue(),newValue:b};if(this.readOnly||(this.writeOnce&&this._written)){return false}if(this.validator&&!this.validator.call(a,b)){return false}if(!h){d=a.fireBeforeChangeEvent(f);if(d===false){return false}}if(this.setter){b=this.setter.call(a,b,this.name);if(b===undefined){}}if(this.method){this.method.call(a,b,this.name)}this.value=b;this._written=true;f.type=g;if(!h){this.owner.fireChangeEvent(f)}return true},configure:function(d,b){d=d||{};if(b){this._written=false}this._initialConfig=this._initialConfig||{};for(var a in d){if(d.hasOwnProperty(a)){this[a]=d[a];if(b){this._initialConfig[a]=d[a]}}}},resetValue:function(){return this.setValue(this._initialConfig.value)},resetConfig:function(){this.configure(this._initialConfig,true)},refresh:function(a){this.setValue(this.value,a)}};(function(){var a=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(b){this._configs=this._configs||{};var d=this._configs[b];if(!d||!this._configs.hasOwnProperty(b)){return null}return d.getValue()},set:function(d,b,g){this._configs=this._configs||{};var f=this._configs[d];if(!f){return false}return f.setValue(b,g)},getAttributeKeys:function(){this._configs=this._configs;var b=[],d;for(d in this._configs){if(a.hasOwnProperty(this._configs,d)&&!a.isUndefined(this._configs[d])){b[b.length]=d}}return b},setAttributes:function(b,f){for(var d in b){if(a.hasOwnProperty(b,d)){this.set(d,b[d],f)}}},resetValue:function(b,d){this._configs=this._configs||{};if(this._configs[b]){this.set(b,this._configs[b]._initialConfig.value,d);return true}return false},refresh:function(d,g){this._configs=this._configs||{};var b=this._configs;d=((a.isString(d))?[d]:d)||this.getAttributeKeys();for(var f=0,h=d.length;f<h;++f){if(b.hasOwnProperty(d[f])){this._configs[d[f]].refresh(g)}}},register:function(d,b){this.setAttributeConfig(d,b)},getAttributeConfig:function(d){this._configs=this._configs||{};var f=this._configs[d]||{};var b={};for(d in f){if(a.hasOwnProperty(f,d)){b[d]=f[d]}}return b},setAttributeConfig:function(f,d,b){this._configs=this._configs||{};d=d||{};if(!this._configs[f]){d.name=f;this._configs[f]=this.createAttribute(d)}else{this._configs[f].configure(d,b)}},configureAttribute:function(f,d,b){this.setAttributeConfig(f,d,b)},resetAttributeConfig:function(b){this._configs=this._configs||{};this._configs[b].resetConfig()},subscribe:function(d,b){this._events=this._events||{};if(!(d in this._events)){this._events[d]=this.createEvent(d)}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.subscribe.apply(this,arguments)},addListener:function(){this.subscribe.apply(this,arguments)},fireBeforeChangeEvent:function(b){var d="before";d+=b.type.charAt(0).toUpperCase()+b.type.substr(1)+"Change";b.type=d;return this.fireEvent(b.type,b)},fireChangeEvent:function(b){b.type+="Change";return this.fireEvent(b.type,b)},createAttribute:function(b){return new YAHOO.util.Attribute(b,this)}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider)})();(function(){var d=YAHOO.util.Dom,b=YAHOO.util.AttributeProvider;var a=function(g,f){this.init.apply(this,arguments)};a.DOM_EVENTS={click:true,dblclick:true,keydown:true,keypress:true,keyup:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,focus:true,blur:true,submit:true,change:true};a.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(f,h){var g=this.get("element");if(g){g[h]=f}},DEFAULT_HTML_GETTER:function(h){var g=this.get("element"),f;if(g){f=g[h]}return f},appendChild:function(f){f=f.get?f.get("element"):f;return this.get("element").appendChild(f)},getElementsByTagName:function(f){return this.get("element").getElementsByTagName(f)},hasChildNodes:function(){return this.get("element").hasChildNodes()},insertBefore:function(g,f){g=g.get?g.get("element"):g;f=(f&&f.get)?f.get("element"):f;return this.get("element").insertBefore(g,f)},removeChild:function(f){f=f.get?f.get("element"):f;return this.get("element").removeChild(f)},replaceChild:function(g,f){g=g.get?g.get("element"):g;f=f.get?f.get("element"):f;return this.get("element").replaceChild(g,f)},initAttributes:function(f){},addListener:function(g,h,f,j){var k=this.get("element")||this.get("id");j=j||this;var l=this;if(!this._events[g]){if(k&&this.DOM_EVENTS[g]){YAHOO.util.Event.addListener(k,g,function(m){if(m.srcElement&&!m.target){m.target=m.srcElement}l.fireEvent(g,m)},f,j)}this.createEvent(g,this)}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){return this.addListener.apply(this,arguments)},subscribe:function(){return this.addListener.apply(this,arguments)},removeListener:function(f,g){return this.unsubscribe.apply(this,arguments)},addClass:function(f){d.addClass(this.get("element"),f)},getElementsByClassName:function(f,g){return d.getElementsByClassName(f,g,this.get("element"))},hasClass:function(f){return d.hasClass(this.get("element"),f)},removeClass:function(f){return d.removeClass(this.get("element"),f)},replaceClass:function(f,g){return d.replaceClass(this.get("element"),f,g)},setStyle:function(f,g){return d.setStyle(this.get("element"),f,g)},getStyle:function(f){return d.getStyle(this.get("element"),f)},fireQueue:function(){var g=this._queue;for(var f=0,h=g.length;f<h;++f){this[g[f][0]].apply(this,g[f][1])}},appendTo:function(g,f){g=(g.get)?g.get("element"):d.get(g);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:g});f=(f&&f.get)?f.get("element"):d.get(f);var h=this.get("element");if(!h){return false}if(!g){return false}if(h.parent!=g){if(f){g.insertBefore(h,f)}else{g.appendChild(h)}}this.fireEvent("appendTo",{type:"appendTo",target:g});return h},get:function(h){var f=this._configs||{},g=f.element;if(g&&!f[h]&&!YAHOO.lang.isUndefined(g.value[h])){this._setHTMLAttrConfig(h)}return b.prototype.get.call(this,h)},setAttributes:function(f,j){var l={},h=this._configOrder;for(var g=0,m=h.length;g<m;++g){if(f[h[g]]!==undefined){l[h[g]]=true;this.set(h[g],f[h[g]],j)}}for(var k in f){if(f.hasOwnProperty(k)&&!l[k]){this.set(k,f[k],j)}}},set:function(h,f,j){var g=this.get("element");if(!g){this._queue[this._queue.length]=["set",arguments];if(this._configs[h]){this._configs[h].value=f}return}if(!this._configs[h]&&!YAHOO.lang.isUndefined(g[h])){this._setHTMLAttrConfig(h)}return b.prototype.set.apply(this,arguments)},setAttributeConfig:function(h,g,f){this._configOrder.push(h);b.prototype.setAttributeConfig.apply(this,arguments)},createEvent:function(f,g){this._events[f]=true;return b.prototype.createEvent.apply(this,arguments)},init:function(f,g){this._initElement(f,g)},destroy:function(){var f=this.get("element");YAHOO.util.Event.purgeElement(f,true);this.unsubscribeAll();if(f&&f.parentNode){f.parentNode.removeChild(f)}this._queue=[];this._events={};this._configs={};this._configOrder=[]},_initElement:function(h,j){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];j=j||{};j.element=j.element||h||null;var f=false;var k=a.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var g in k){if(k.hasOwnProperty(g)){this.DOM_EVENTS[g]=k[g]}}if(typeof j.element==="string"){this._setHTMLAttrConfig("id",{value:j.element})}if(d.get(j.element)){f=true;this._initHTMLElement(j);this._initContent(j)}YAHOO.util.Event.onAvailable(j.element,function(){if(!f){this._initHTMLElement(j)}this.fireEvent("available",{type:"available",target:d.get(j.element)})},this,true);YAHOO.util.Event.onContentReady(j.element,function(){if(!f){this._initContent(j)}this.fireEvent("contentReady",{type:"contentReady",target:d.get(j.element)})},this,true)},_initHTMLElement:function(f){this.setAttributeConfig("element",{value:d.get(f.element),readOnly:true})},_initContent:function(f){this.initAttributes(f);this.setAttributes(f,true);this.fireQueue()},_setHTMLAttrConfig:function(h,f){var g=this.get("element");f=f||{};f.name=h;f.setter=f.setter||this.DEFAULT_HTML_SETTER;f.getter=f.getter||this.DEFAULT_HTML_GETTER;f.value=f.value||g[h];this._configs[h]=new YAHOO.util.Attribute(f,this)}};YAHOO.augment(a,b);YAHOO.util.Element=a})();YAHOO.register("element",YAHOO.util.Element,{version:"2.7.0",build:"1799"});if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var a=YAHOO.util.Event,b=YAHOO.util.Dom;return{useShim:false,_shimActive:false,_shimState:false,_debugShim:false,_createShim:function(){var d=document.createElement("div");d.id="yui-ddm-shim";if(document.body.firstChild){document.body.insertBefore(d,document.body.firstChild)}else{document.body.appendChild(d)}d.style.display="none";d.style.backgroundColor="red";d.style.position="absolute";d.style.zIndex="99999";b.setStyle(d,"opacity","0");this._shim=d;a.on(d,"mouseup",this.handleMouseUp,this,true);a.on(d,"mousemove",this.handleMouseMove,this,true);a.on(window,"scroll",this._sizeShim,this,true)},_sizeShim:function(){if(this._shimActive){var d=this._shim;d.style.height=b.getDocumentHeight()+"px";d.style.width=b.getDocumentWidth()+"px";d.style.top="0";d.style.left="0"}},_activateShim:function(){if(this.useShim){if(!this._shim){this._createShim()}this._shimActive=true;var f=this._shim,d="0";if(this._debugShim){d=".5"}b.setStyle(f,"opacity",d);this._sizeShim();f.style.display="block"}},_deactivateShim:function(){this._shim.style.display="none";this._shimActive=false},_shim:null,ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(g,h){for(var f in this.ids){for(var j in this.ids[f]){var d=this.ids[f][j];if(!this.isTypeOfDD(d)){continue}d[g].apply(d,h)}}},_onLoad:function(){this.init();a.on(document,"mouseup",this.handleMouseUp,this,true);a.on(document,"mousemove",this.handleMouseMove,this,true);a.on(window,"unload",this._onUnload,this,true);a.on(window,"resize",this._onResize,this,true)},_onResize:function(d){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(d,f){if(!this.initialized){this.init()}if(!this.ids[f]){this.ids[f]={}}this.ids[f][d.id]=d},removeDDFromGroup:function(d,g){if(!this.ids[g]){this.ids[g]={}}var f=this.ids[g];if(f&&f[d.id]){delete f[d.id]}},_remove:function(d){for(var f in d.groups){if(f){var g=this.ids[f];if(g&&g[d.id]){delete g[d.id]}}}delete this.handleIds[d.id]},regHandle:function(d,f){if(!this.handleIds[d]){this.handleIds[d]={}}this.handleIds[d][f]=f},isDragDrop:function(d){return(this.getDDById(d))?true:false},getRelated:function(d,j){var f=[];for(var g in d.groups){for(var h in this.ids[g]){var k=this.ids[g][h];if(!this.isTypeOfDD(k)){continue}if(!j||k.isTarget){f[f.length]=k}}}return f},isLegalTarget:function(d,f){var h=this.getRelated(d,true);for(var g=0,j=h.length;g<j;++g){if(h[g].id==f.id){return true}}return false},isTypeOfDD:function(d){return(d&&d.__ygDragDrop)},isHandle:function(d,f){return(this.handleIds[d]&&this.handleIds[d][f])},getDDById:function(d){for(var f in this.ids){if(this.ids[f][d]){return this.ids[f][d]}}return null},handleMouseDown:function(d,f){this.currentTarget=YAHOO.util.Event.getTarget(d);this.dragCurrent=f;var g=f.getEl();this.startX=YAHOO.util.Event.getPageX(d);this.startY=YAHOO.util.Event.getPageY(d);this.deltaX=this.startX-g.offsetLeft;this.deltaY=this.startY-g.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var h=YAHOO.util.DDM;h.startDrag(h.startX,h.startY);h.fromTimeout=true},this.clickTimeThresh)},startDrag:function(g,d){if(this.dragCurrent&&this.dragCurrent.useShim){this._shimState=this.useShim;this.useShim=true}this._activateShim();clearTimeout(this.clickTimeout);var f=this.dragCurrent;if(f&&f.events.b4StartDrag){f.b4StartDrag(g,d);f.fireEvent("b4StartDragEvent",{x:g,y:d})}if(f&&f.events.startDrag){f.startDrag(g,d);f.fireEvent("startDragEvent",{x:g,y:d})}this.dragThreshMet=true},handleMouseUp:function(d){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(d)}this.fromTimeout=false;this.fireEvents(d,true)}else{}this.stopDrag(d);this.stopEvent(d)}},stopEvent:function(d){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(d)}if(this.preventDefault){YAHOO.util.Event.preventDefault(d)}},stopDrag:function(d,f){var g=this.dragCurrent;if(g&&!f){if(this.dragThreshMet){if(g.events.b4EndDrag){g.b4EndDrag(d);g.fireEvent("b4EndDragEvent",{e:d})}if(g.events.endDrag){g.endDrag(d);g.fireEvent("endDragEvent",{e:d})}}if(g.events.mouseUp){g.onMouseUp(d);g.fireEvent("mouseUpEvent",{e:d})}}if(this._shimActive){this._deactivateShim();if(this.dragCurrent&&this.dragCurrent.useShim){this.useShim=this._shimState;this._shimState=false}}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(d){var h=this.dragCurrent;if(h){if(YAHOO.util.Event.isIE&&!d.button){this.stopEvent(d);return this.handleMouseUp(d)}else{if(d.clientX<0||d.clientY<0){}}if(!this.dragThreshMet){var f=Math.abs(this.startX-YAHOO.util.Event.getPageX(d));var g=Math.abs(this.startY-YAHOO.util.Event.getPageY(d));if(f>this.clickPixelThresh||g>this.clickPixelThresh){this.startDrag(this.startX,this.startY)}}if(this.dragThreshMet){if(h&&h.events.b4Drag){h.b4Drag(d);h.fireEvent("b4DragEvent",{e:d})}if(h&&h.events.drag){h.onDrag(d);h.fireEvent("dragEvent",{e:d})}if(h){this.fireEvents(d,false)}}this.stopEvent(d)}},fireEvents:function(k,v){var af=this.dragCurrent;if(!af||af.isLocked()||af.dragOnly){return}var t=YAHOO.util.Event.getPageX(k),u=YAHOO.util.Event.getPageY(k),r=new YAHOO.util.Point(t,u),w=af.getTargetCoord(r.x,r.y),B=af.getDragEl(),aa=["out","over","drop","enter"],l=new YAHOO.util.Region(w.y,w.x+B.offsetWidth,w.y+B.offsetHeight,w.x),y=[],ab={},q=[],ae={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var n in this.dragOvers){var ad=this.dragOvers[n];if(!this.isTypeOfDD(ad)){continue}if(!this.isOverTarget(r,ad,this.mode,l)){ae.outEvts.push(ad)}y[n]=true;delete this.dragOvers[n]}for(var o in af.groups){if("string"!=typeof o){continue}for(n in this.ids[o]){var A=this.ids[o][n];if(!this.isTypeOfDD(A)){continue}if(A.isTarget&&!A.isLocked()&&A!=af){if(this.isOverTarget(r,A,this.mode,l)){ab[o]=true;if(v){ae.dropEvts.push(A)}else{if(!y[A.id]){ae.enterEvts.push(A)}else{ae.overEvts.push(A)}this.dragOvers[A.id]=A}}}}}this.interactionInfo={out:ae.outEvts,enter:ae.enterEvts,over:ae.overEvts,drop:ae.dropEvts,point:r,draggedRegion:l,sourceRegion:this.locationCache[af.id],validDrop:v};for(var ac in ab){q.push(ac)}if(v&&!ae.dropEvts.length){this.interactionInfo.validDrop=false;if(af.events.invalidDrop){af.onInvalidDrop(k);af.fireEvent("invalidDropEvent",{e:k})}}for(n=0;n<aa.length;n++){var g=null;if(ae[aa[n]+"Evts"]){g=ae[aa[n]+"Evts"]}if(g&&g.length){var z=aa[n].charAt(0).toUpperCase()+aa[n].substr(1),h="onDrag"+z,x="b4Drag"+z,s="drag"+z+"Event",j="drag"+z;if(this.mode){if(af.events[x]){af[x](k,g,q);af.fireEvent(x+"Event",{event:k,info:g,group:q})}if(af.events[j]){af[h](k,g,q);af.fireEvent(s,{event:k,info:g,group:q})}}else{for(var f=0,m=g.length;f<m;++f){if(af.events[x]){af[x](k,g[f].id,q[0]);af.fireEvent(x+"Event",{event:k,info:g[f].id,group:q[0]})}if(af.events[j]){af[h](k,g[f].id,q[0]);af.fireEvent(s,{event:k,info:g[f].id,group:q[0]})}}}}}},getBestMatch:function(g){var d=null;var h=g.length;if(h==1){d=g[0]}else{for(var f=0;f<h;++f){var j=g[f];if(this.mode==this.INTERSECT&&j.cursorIsOver){d=j;break}else{if(!d||!d.overlap||(j.overlap&&d.overlap.getArea()<j.overlap.getArea())){d=j}}}}return d},refreshCache:function(j){var g=j||this.ids;for(var k in g){if("string"!=typeof k){continue}for(var h in this.ids[k]){var f=this.ids[k][h];if(this.isTypeOfDD(f)){var d=this.getLocation(f);if(d){this.locationCache[f.id]=d}else{delete this.locationCache[f.id]}}}}},verifyEl:function(f){try{if(f){var g=f.offsetParent;if(g){return true}}}catch(d){}return false},getLocation:function(n){if(!this.isTypeOfDD(n)){return null}var q=n.getEl(),k,r,d,h,j,g,f,l,o;try{k=YAHOO.util.Dom.getXY(q)}catch(m){}if(!k){return null}r=k[0];d=r+q.offsetWidth;h=k[1];j=h+q.offsetHeight;g=h-n.padding[0];f=d+n.padding[1];l=j+n.padding[2];o=r-n.padding[3];return new YAHOO.util.Region(g,f,l,o)},isOverTarget:function(g,f,n,m){var l=this.locationCache[f.id];if(!l||!this.useCache){l=this.getLocation(f);this.locationCache[f.id]=l}if(!l){return false}f.cursorIsOver=l.contains(g);var h=this.dragCurrent;if(!h||(!n&&!h.constrainX&&!h.constrainY)){return f.cursorIsOver}f.overlap=null;if(!m){var k=h.getTargetCoord(g.x,g.y);var d=h.getDragEl();m=new YAHOO.util.Region(k.y,k.x+d.offsetWidth,k.y+d.offsetHeight,k.x)}var j=m.intersect(l);if(j){f.overlap=j;return(n)?true:f.cursorIsOver}else{return false}},_onUnload:function(d,f){this.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll("unreg",[]);this.ids={}},elementCache:{},getElWrapper:function(d){var f=this.elementCache[d];if(!f||!f.el){f=this.elementCache[d]=new this.ElementWrapper(YAHOO.util.Dom.get(d))}return f},getElement:function(d){return YAHOO.util.Dom.get(d)},getCss:function(d){var f=YAHOO.util.Dom.get(d);return(f)?f.style:null},ElementWrapper:function(d){this.el=d||null;this.id=this.el&&d.id;this.css=this.el&&d.style},getPosX:function(d){return YAHOO.util.Dom.getX(d)},getPosY:function(d){return YAHOO.util.Dom.getY(d)},swapNode:function(f,h){if(f.swapNode){f.swapNode(h)}else{var d=h.parentNode;var g=h.nextSibling;if(g==f){d.insertBefore(f,h)}else{if(h==f.nextSibling){d.insertBefore(h,f)}else{f.parentNode.replaceChild(h,f);d.insertBefore(f,g)}}}},getScroll:function(){var f,h,d=document.documentElement,g=document.body;if(d&&(d.scrollTop||d.scrollLeft)){f=d.scrollTop;h=d.scrollLeft}else{if(g){f=g.scrollTop;h=g.scrollLeft}else{}}return{top:f,left:h}},getStyle:function(d,f){return YAHOO.util.Dom.getStyle(d,f)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(g,d){var f=YAHOO.util.Dom.getXY(d);YAHOO.util.Dom.setXY(g,f)},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight()},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth()},numericSort:function(d,f){return(d-f)},_timeoutCount:0,_addListeners:function(){var d=YAHOO.util.DDM;if(YAHOO.util.Event&&document){d._onLoad()}else{if(d._timeoutCount>2000){}else{setTimeout(d._addListeners,10);if(document&&document.body){d._timeoutCount+=1}}}},handleWasClicked:function(g,d){if(this.isHandle(d,g.id)){return true}else{var f=g.parentNode;while(f){if(this.isHandle(d,f.id)){return true}else{f=f.parentNode}}}return false}}}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners()}(function(){var a=YAHOO.util.Event;var b=YAHOO.util.Dom;YAHOO.util.DragDrop=function(d,g,f){if(d){this.init(d,g,f)}};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments)},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},unlock:function(){this.locked=false},isTarget:true,padding:null,dragOnly:false,useShim:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(f,d){},startDrag:function(f,d){},b4Drag:function(d){},onDrag:function(d){},onDragEnter:function(f,d){},b4DragOver:function(d){},onDragOver:function(f,d){},b4DragOut:function(d){},onDragOut:function(f,d){},b4DragDrop:function(d){},onDragDrop:function(f,d){},onInvalidDrop:function(d){},b4EndDrag:function(d){},endDrag:function(d){},b4MouseDown:function(d){},onMouseDown:function(d){},onMouseUp:function(d){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=b.get(this.id)}return this._domRef},getDragEl:function(){return b.get(this.dragElId)},init:function(d,h,g){this.initTarget(d,h,g);a.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var f in this.events){this.createEvent(f+"Event")}},initTarget:function(d,g,f){this.config=f||{};this.events={};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof d!=="string"){this._domRef=d;d=b.generateId(d)}this.id=d;this.addToGroup((g)?g:"default");this.handleElId=d;a.onAvailable(d,this.handleOnAvailable,this,true);this.setDragElId(d);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig()},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events){for(var d in this.config.events){if(this.config.events[d]===false){this.events[d]=false}}}this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false);this.useShim=((this.config.useShim===true)?true:false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(f,h,d,g){if(!h&&0!==h){this.padding=[f,f,f,f]}else{if(!d&&0!==d){this.padding=[f,h,f,h]}else{this.padding=[f,h,d,g]}}},setInitPosition:function(g,h){var f=this.getEl();if(!this.DDM.verifyEl(f)){if(f&&f.style&&(f.style.display=="none")){}else{}return}var j=g||0;var k=h||0;var d=b.getXY(f);this.initPageX=d[0]-j;this.initPageY=d[1]-k;this.lastPageX=d[0];this.lastPageY=d[1];this.setStartPosition(d)},setStartPosition:function(d){var f=d||b.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=f[0];this.startPageY=f[1]},addToGroup:function(d){this.groups[d]=true;this.DDM.regDragDrop(this,d)},removeFromGroup:function(d){if(this.groups[d]){delete this.groups[d]}this.DDM.removeDDFromGroup(this,d)},setDragElId:function(d){this.dragElId=d},setHandleElId:function(d){if(typeof d!=="string"){d=b.generateId(d)}this.handleElId=d;this.DDM.regHandle(this.id,d)},setOuterHandleElId:function(d){if(typeof d!=="string"){d=b.generateId(d)}a.on(d,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(d);this.hasOuterHandles=true},unreg:function(){a.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},isLocked:function(){return(this.DDM.isLocked()||this.locked)},handleMouseDown:function(d,f){var l=d.which||d.button;if(this.primaryButtonOnly&&l>1){return}if(this.isLocked()){return}var m=this.b4MouseDown(d),j=true;if(this.events.b4MouseDown){j=this.fireEvent("b4MouseDownEvent",d)}var k=this.onMouseDown(d),g=true;if(this.events.mouseDown){g=this.fireEvent("mouseDownEvent",d)}if((m===false)||(k===false)||(j===false)||(g===false)){return}this.DDM.refreshCache(this.groups);var h=new YAHOO.util.Point(a.getPageX(d),a.getPageY(d));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(h,this)){}else{if(this.clickValidator(d)){this.setStartPosition();this.DDM.handleMouseDown(d,this);this.DDM.stopEvent(d)}else{}}},clickValidator:function(d){var f=YAHOO.util.Event.getTarget(d);return(this.isValidHandleChild(f)&&(this.id==this.handleElId||this.DDM.handleWasClicked(f,this.id)))},getTargetCoord:function(f,g){var h=f-this.deltaX;var d=g-this.deltaY;if(this.constrainX){if(h<this.minX){h=this.minX}if(h>this.maxX){h=this.maxX}}if(this.constrainY){if(d<this.minY){d=this.minY}if(d>this.maxY){d=this.maxY}}h=this.getTick(h,this.xTicks);d=this.getTick(d,this.yTicks);return{x:h,y:d}},addInvalidHandleType:function(f){var d=f.toUpperCase();this.invalidHandleTypes[d]=d},addInvalidHandleId:function(d){if(typeof d!=="string"){d=b.generateId(d)}this.invalidHandleIds[d]=d},addInvalidHandleClass:function(d){this.invalidHandleClasses.push(d)},removeInvalidHandleType:function(f){var d=f.toUpperCase();delete this.invalidHandleTypes[d]},removeInvalidHandleId:function(d){if(typeof d!=="string"){d=b.generateId(d)}delete this.invalidHandleIds[d]},removeInvalidHandleClass:function(f){for(var d=0,g=this.invalidHandleClasses.length;d<g;++d){if(this.invalidHandleClasses[d]==f){delete this.invalidHandleClasses[d]}}},isValidHandleChild:function(g){var h=true;var d;try{d=g.nodeName.toUpperCase()}catch(f){d=g.nodeName}h=h&&!this.invalidHandleTypes[d];h=h&&!this.invalidHandleIds[g.id];for(var j=0,k=this.invalidHandleClasses.length;h&&j<k;++j){h=!b.hasClass(g,this.invalidHandleClasses[j])}return h},setXTicks:function(d,h){this.xTicks=[];this.xTickSize=h;var f={};for(var g=this.initPageX;g>=this.minX;g=g-h){if(!f[g]){this.xTicks[this.xTicks.length]=g;f[g]=true}}for(g=this.initPageX;g<=this.maxX;g=g+h){if(!f[g]){this.xTicks[this.xTicks.length]=g;f[g]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(d,h){this.yTicks=[];this.yTickSize=h;var f={};for(var g=this.initPageY;g>=this.minY;g=g-h){if(!f[g]){this.yTicks[this.yTicks.length]=g;f[g]=true}}for(g=this.initPageY;g<=this.maxY;g=g+h){if(!f[g]){this.yTicks[this.yTicks.length]=g;f[g]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(d,f,g){this.leftConstraint=parseInt(d,10);this.rightConstraint=parseInt(f,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(g){this.setXTicks(this.initPageX,g)}this.constrainX=true},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(g,d,f){this.topConstraint=parseInt(g,10);this.bottomConstraint=parseInt(d,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(f){this.setYTicks(this.initPageY,f)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var d=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var f=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(d,f)}else{this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(d,h){if(!h){return d}else{if(h[0]>=d){return h[0]}else{for(var k=0,l=h.length;k<l;++k){var j=k+1;if(h[j]&&h[j]>=d){var f=d-h[k];var g=h[j]-d;return(g>f)?h[k]:h[j]}}return h[h.length-1]}}},toString:function(){return("DragDrop "+this.id)}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider)})();YAHOO.util.DD=function(b,a,d){if(b){this.init(b,a,d)}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(d,f){var a=d-this.startPageX;var b=f-this.startPageY;this.setDelta(a,b)},setDelta:function(b,a){this.deltaX=b;this.deltaY=a},setDragElPos:function(b,d){var a=this.getDragEl();this.alignElWithMouse(a,b,d)},alignElWithMouse:function(j,d,f){var g=this.getTargetCoord(d,f);if(!this.deltaSetXY){var b=[g.x,g.y];YAHOO.util.Dom.setXY(j,b);var h=parseInt(YAHOO.util.Dom.getStyle(j,"left"),10);var k=parseInt(YAHOO.util.Dom.getStyle(j,"top"),10);this.deltaSetXY=[h-g.x,k-g.y]}else{YAHOO.util.Dom.setStyle(j,"left",(g.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(j,"top",(g.y+this.deltaSetXY[1])+"px")}this.cachePosition(g.x,g.y);var a=this;setTimeout(function(){a.autoScroll.call(a,g.x,g.y,j.offsetHeight,j.offsetWidth)},0)},cachePosition:function(d,a){if(d){this.lastPageX=d;this.lastPageY=a}else{var b=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=b[0];this.lastPageY=b[1]}},autoScroll:function(l,m,r,k){if(this.scroll){var j=this.DDM.getClientHeight();var d=this.DDM.getClientWidth();var g=this.DDM.getScrollTop();var a=this.DDM.getScrollLeft();var n=r+m;var h=k+l;var o=(j+g-m-this.deltaY);var q=(d+a-l-this.deltaX);var b=40;var f=(document.all)?80:30;if(n>j&&o<b){window.scrollTo(a,g+f)}if(m<g&&g>0&&m-g<b){window.scrollTo(a,g-f)}if(h>d&&q<b){window.scrollTo(a+f,g)}if(l<a&&a>0&&l-a<b){window.scrollTo(a-f,g)}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(a){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(a),YAHOO.util.Event.getPageY(a))},b4Drag:function(a){this.setDragElPos(YAHOO.util.Event.getPageX(a),YAHOO.util.Event.getPageY(a))},toString:function(){return("DD "+this.id)}});YAHOO.util.DDProxy=function(b,a,d){if(b){this.init(b,a,d);this.initFrame()}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var h=this,a=document.body;if(!a||!a.firstChild){setTimeout(function(){h.createFrame()},50);return}var b=this.getDragEl(),d=YAHOO.util.Dom;if(!b){b=document.createElement("div");b.id=this.dragElId;var f=b.style;f.position="absolute";f.visibility="hidden";f.cursor="move";f.border="2px solid #aaa";f.zIndex=999;f.height="25px";f.width="25px";var g=document.createElement("div");d.setStyle(g,"height","100%");d.setStyle(g,"width","100%");d.setStyle(g,"background-color","#ccc");d.setStyle(g,"opacity","0");b.appendChild(g);a.insertBefore(b,a.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId)},showFrame:function(b,d){var f=this.getEl();var a=this.getDragEl();var g=a.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(g.width,10)/2),Math.round(parseInt(g.height,10)/2))}this.setDragElPos(b,d);YAHOO.util.Dom.setStyle(a,"visibility","visible")},_resizeProxy:function(){if(this.resizeFrame){var h=YAHOO.util.Dom;var d=this.getEl();var b=this.getDragEl();var j=parseInt(h.getStyle(b,"borderTopWidth"),10);var g=parseInt(h.getStyle(b,"borderRightWidth"),10);var k=parseInt(h.getStyle(b,"borderBottomWidth"),10);var a=parseInt(h.getStyle(b,"borderLeftWidth"),10);if(isNaN(j)){j=0}if(isNaN(g)){g=0}if(isNaN(k)){k=0}if(isNaN(a)){a=0}var l=Math.max(0,d.offsetWidth-g-a);var f=Math.max(0,d.offsetHeight-j-k);h.setStyle(b,"width",l+"px");h.setStyle(b,"height",f+"px")}},b4MouseDown:function(d){this.setStartPosition();var a=YAHOO.util.Event.getPageX(d);var b=YAHOO.util.Event.getPageY(d);this.autoOffset(a,b)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden")},endDrag:function(b){var d=YAHOO.util.Dom;var f=this.getEl();var a=this.getDragEl();d.setStyle(a,"visibility","");d.setStyle(f,"visibility","hidden");YAHOO.util.DDM.moveToEl(f,a);d.setStyle(a,"visibility","hidden");d.setStyle(f,"visibility","")},toString:function(){return("DDProxy "+this.id)}});YAHOO.util.DDTarget=function(b,a,d){if(b){this.initTarget(b,a,d)}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id)}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.7.0",build:"1799"});YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,"click",function(b){var d=YAHOO.util.Event.getTarget(b),a=d.nodeName.toLowerCase();if((a==="input"||a==="button")&&(d.type&&d.type.toLowerCase()=="submit")){YAHOO.util.Connect._submitElementValue=encodeURIComponent(d.name)+"="+encodeURIComponent(d.value)}});return true}return false})(),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(a){this._msxml_progid.unshift(a)},setDefaultPostHeader:function(a){if(typeof a=="string"){this._default_post_header=a}else{if(typeof a=="boolean"){this._use_default_post_header=a}}},setDefaultXhrHeader:function(a){if(typeof a=="string"){this._default_xhr_header=a}else{this._use_default_xhr_header=a}},setPollingInterval:function(a){if(typeof a=="number"&&isFinite(a)){this._polling_interval=a}},createXhrObject:function(b){var d,a;try{a=new XMLHttpRequest();d={conn:a,tId:b}}catch(f){for(var h=0;h<this._msxml_progid.length;++h){try{a=new ActiveXObject(this._msxml_progid[h]);d={conn:a,tId:b};break}catch(g){}}}finally{return d}},getConnectionObject:function(a){var d;var b=this._transaction_id;try{if(!a){d=this.createXhrObject(b)}else{d={};d.tId=b;d.isUpload=true}if(d){this._transaction_id++}}catch(f){}finally{return d}},asyncRequest:function(b,g,d,a){var f=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();var h=(d&&d.argument)?d.argument:null;if(!f){return null}else{if(d&&d.customevents){this.initCustomEvents(f,d)}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(f,d,g,a);return f}if(b.toUpperCase()=="GET"){if(this._sFormData.length!==0){g+=((g.indexOf("?")==-1)?"?":"&")+this._sFormData}}else{if(b.toUpperCase()=="POST"){a=a?this._sFormData+"&"+a:this._sFormData}}}if(b.toUpperCase()=="GET"&&(d&&d.cache===false)){g+=((g.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString()}f.conn.open(b,g,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true)}}if((b.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header)}if(this._has_default_headers||this._has_http_headers){this.setHeader(f)}this.handleReadyState(f,d);f.conn.send(a||"");if(this._isFormSubmit===true){this.resetFormState()}this.startEvent.fire(f,h);if(f.startEvent){f.startEvent.fire(f,h)}return f}},initCustomEvents:function(a,b){var d;for(d in b.customevents){if(this._customEvents[d][0]){a[this._customEvents[d][0]]=new YAHOO.util.CustomEvent(this._customEvents[d][1],(b.scope)?b.scope:null);a[this._customEvents[d][0]].subscribe(b.customevents[d])}}},handleReadyState:function(d,b){var f=this;var a=(b&&b.argument)?b.argument:null;if(b&&b.timeout){this._timeOut[d.tId]=window.setTimeout(function(){f.abort(d,b,true)},b.timeout)}this._poll[d.tId]=window.setInterval(function(){if(d.conn&&d.conn.readyState===4){window.clearInterval(f._poll[d.tId]);delete f._poll[d.tId];if(b&&b.timeout){window.clearTimeout(f._timeOut[d.tId]);delete f._timeOut[d.tId]}f.completeEvent.fire(d,a);if(d.completeEvent){d.completeEvent.fire(d,a)}f.handleTransactionResponse(d,b)}},this._polling_interval)},handleTransactionResponse:function(d,b,a){var g,h;var j=(b&&b.argument)?b.argument:null;try{if(d.conn.status!==undefined&&d.conn.status!==0){g=d.conn.status}else{g=13030}}catch(f){g=13030}if(g>=200&&g<300||g===1223){h=this.createResponseObject(d,j);if(b&&b.success){if(!b.scope){b.success(h)}else{b.success.apply(b.scope,[h])}}this.successEvent.fire(h);if(d.successEvent){d.successEvent.fire(h)}}else{switch(g){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:h=this.createExceptionObject(d.tId,j,(a?a:false));if(b&&b.failure){if(!b.scope){b.failure(h)}else{b.failure.apply(b.scope,[h])}}break;default:h=this.createResponseObject(d,j);if(b&&b.failure){if(!b.scope){b.failure(h)}else{b.failure.apply(b.scope,[h])}}}this.failureEvent.fire(h);if(d.failureEvent){d.failureEvent.fire(h)}}this.releaseObject(d);h=null},createResponseObject:function(f,j){var a={};var g={};try{var b=f.conn.getAllResponseHeaders();var k=b.split("\n");for(var l=0;l<k.length;l++){var d=k[l].indexOf(":");if(d!=-1){g[k[l].substring(0,d)]=k[l].substring(d+2)}}}catch(h){}a.tId=f.tId;a.status=(f.conn.status==1223)?204:f.conn.status;a.statusText=(f.conn.status==1223)?"No Content":f.conn.statusText;a.getResponseHeader=g;a.getAllResponseHeaders=b;a.responseText=f.conn.responseText;a.responseXML=f.conn.responseXML;if(j){a.argument=j}return a},createExceptionObject:function(b,h,a){var f=0;var d="communication failure";var j=-1;var k="transaction aborted";var g={};g.tId=b;if(a){g.status=j;g.statusText=k}else{g.status=f;g.statusText=d}if(h){g.argument=h}return g},initHeader:function(a,b,d){var f=(d)?this._default_headers:this._http_headers;f[a]=b;if(d){this._has_default_headers=true}else{this._has_http_headers=true}},setHeader:function(a){var b;if(this._has_default_headers){for(b in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,b)){a.conn.setRequestHeader(b,this._default_headers[b])}}}if(this._has_http_headers){for(b in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,b)){a.conn.setRequestHeader(b,this._http_headers[b])}}delete this._http_headers;this._http_headers={};this._has_http_headers=false}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false},setForm:function(k,q,b){var l,d,m,o,g,n=false,s=[],h=0,t,r,a,j,f;this.resetFormState();if(typeof k=="string"){l=(document.getElementById(k)||document.forms[k])}else{if(typeof k=="object"){l=k}else{return}}if(q){this.createFrame(b?b:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=l;return}for(t=0,r=l.elements.length;t<r;++t){d=l.elements[t];g=d.disabled;m=d.name;if(!g&&m){m=encodeURIComponent(m)+"=";o=encodeURIComponent(d.value);switch(d.type){case"select-one":if(d.selectedIndex>-1){f=d.options[d.selectedIndex];s[h++]=m+encodeURIComponent((f.attributes.value&&f.attributes.value.specified)?f.value:f.text)}break;case"select-multiple":if(d.selectedIndex>-1){for(a=d.selectedIndex,j=d.options.length;a<j;++a){f=d.options[a];if(f.selected){s[h++]=m+encodeURIComponent((f.attributes.value&&f.attributes.value.specified)?f.value:f.text)}}}break;case"radio":case"checkbox":if(d.checked){s[h++]=m+o}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(n===false){if(this._hasSubmitListener&&this._submitElementValue){s[h++]=this._submitElementValue}n=true}break;default:s[h++]=m+o}}}this._isFormSubmit=true;this._sFormData=s.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData=""},createFrame:function(a){var d="yuiIO"+this._transaction_id;var b;if(YAHOO.env.ua.ie){b=document.createElement('<iframe id="'+d+'" name="'+d+'" />');if(typeof a=="boolean"){b.src="javascript:false"}}else{b=document.createElement("iframe");b.id=d;b.name=d}b.style.position="absolute";b.style.top="-1000px";b.style.left="-1000px";document.body.appendChild(b)},appendPostData:function(a){var d=[],g=a.split("&"),f,b;for(f=0;f<g.length;f++){b=g[f].indexOf("=");if(b!=-1){d[f]=document.createElement("input");d[f].type="hidden";d[f].name=decodeURIComponent(g[f].substring(0,b));d[f].value=decodeURIComponent(g[f].substring(b+1));this._formNode.appendChild(d[f])}}return d},uploadFile:function(a,h,s,b){var n="yuiIO"+a.tId,m="multipart/form-data",k=document.getElementById(n),g=this,l=(h&&h.argument)?h.argument:null,j,o,d,q;var f={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",s);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",n);if(YAHOO.env.ua.ie){this._formNode.setAttribute("encoding",m)}else{this._formNode.setAttribute("enctype",m)}if(b){j=this.appendPostData(b)}this._formNode.submit();this.startEvent.fire(a,l);if(a.startEvent){a.startEvent.fire(a,l)}if(h&&h.timeout){this._timeOut[a.tId]=window.setTimeout(function(){g.abort(a,h,true)},h.timeout)}if(j&&j.length>0){for(o=0;o<j.length;o++){this._formNode.removeChild(j[o])}}for(d in f){if(YAHOO.lang.hasOwnProperty(f,d)){if(f[d]){this._formNode.setAttribute(d,f[d])}else{this._formNode.removeAttribute(d)}}}this.resetFormState();var r=function(){if(h&&h.timeout){window.clearTimeout(g._timeOut[a.tId]);delete g._timeOut[a.tId]}g.completeEvent.fire(a,l);if(a.completeEvent){a.completeEvent.fire(a,l)}q={tId:a.tId,argument:h.argument};try{q.responseText=k.contentWindow.document.body?k.contentWindow.document.body.innerHTML:k.contentWindow.document.documentElement.textContent;q.responseXML=k.contentWindow.document.XMLDocument?k.contentWindow.document.XMLDocument:k.contentWindow.document}catch(t){}if(h&&h.upload){if(!h.scope){h.upload(q)}else{h.upload.apply(h.scope,[q])}}g.uploadEvent.fire(q);if(a.uploadEvent){a.uploadEvent.fire(q)}YAHOO.util.Event.removeListener(k,"load",r);setTimeout(function(){document.body.removeChild(k);g.releaseObject(a)},100)};YAHOO.util.Event.addListener(k,"load",r)},abort:function(f,b,a){var g;var j=(b&&b.argument)?b.argument:null;if(f&&f.conn){if(this.isCallInProgress(f)){f.conn.abort();window.clearInterval(this._poll[f.tId]);delete this._poll[f.tId];if(a){window.clearTimeout(this._timeOut[f.tId]);delete this._timeOut[f.tId]}g=true}}else{if(f&&f.isUpload===true){var h="yuiIO"+f.tId;var d=document.getElementById(h);if(d){YAHOO.util.Event.removeListener(d,"load");document.body.removeChild(d);if(a){window.clearTimeout(this._timeOut[f.tId]);delete this._timeOut[f.tId]}g=true}}else{g=false}}if(g===true){this.abortEvent.fire(f,j);if(f.abortEvent){f.abortEvent.fire(f,j)}this.handleTransactionResponse(f,b,true)}return g},isCallInProgress:function(b){if(b&&b.conn){return b.conn.readyState!==4&&b.conn.readyState!==0}else{if(b&&b.isUpload===true){var a="yuiIO"+b.tId;return document.getElementById(a)?true:false}else{return false}}},releaseObject:function(a){if(a&&a.conn){a.conn=null;a=null}}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.7.0",build:"1799"});(function(){var lang=YAHOO.lang,util=YAHOO.util,Ev=util.Event;util.DataSourceBase=function(oLiveData,oConfigs){if(oLiveData===null||oLiveData===undefined){return}this.liveData=oLiveData;this._oQueue={interval:null,conn:null,requests:[]};this.responseSchema={};if(oConfigs&&(oConfigs.constructor==Object)){for(var sConfig in oConfigs){if(sConfig){this[sConfig]=oConfigs[sConfig]}}}var maxCacheEntries=this.maxCacheEntries;if(!lang.isNumber(maxCacheEntries)||(maxCacheEntries<0)){maxCacheEntries=0}this._aIntervals=[];this.createEvent("cacheRequestEvent");this.createEvent("cacheResponseEvent");this.createEvent("requestEvent");this.createEvent("responseEvent");this.createEvent("responseParseEvent");this.createEvent("responseCacheEvent");this.createEvent("dataErrorEvent");this.createEvent("cacheFlushEvent");var DS=util.DataSourceBase;this._sName="DataSource instance"+DS._nIndex;DS._nIndex++};var DS=util.DataSourceBase;lang.augmentObject(DS,{TYPE_UNKNOWN:-1,TYPE_JSARRAY:0,TYPE_JSFUNCTION:1,TYPE_XHR:2,TYPE_JSON:3,TYPE_XML:4,TYPE_TEXT:5,TYPE_HTMLTABLE:6,TYPE_SCRIPTNODE:7,TYPE_LOCAL:8,ERROR_DATAINVALID:"Invalid data",ERROR_DATANULL:"Null data",_nIndex:0,_nTransactionId:0,issueCallback:function(callback,params,error,scope){if(lang.isFunction(callback)){callback.apply(scope,params)}else{if(lang.isObject(callback)){scope=callback.scope||scope||window;var callbackFunc=callback.success;if(error){callbackFunc=callback.failure}if(callbackFunc){callbackFunc.apply(scope,params.concat([callback.argument]))}}}},parseString:function(oData){if(!lang.isValue(oData)){return null}var string=oData+"";if(lang.isString(string)){return string}else{return null}},parseNumber:function(oData){if(!lang.isValue(oData)||(oData==="")){return null}var number=oData*1;if(lang.isNumber(number)){return number}else{return null}},convertNumber:function(oData){return DS.parseNumber(oData)},parseDate:function(oData){var date=null;if(!(oData instanceof Date)){date=new Date(oData)}else{return oData}if(date instanceof Date){return date}else{return null}},convertDate:function(oData){return DS.parseDate(oData)}});DS.Parser={string:DS.parseString,number:DS.parseNumber,date:DS.parseDate};DS.prototype={_sName:null,_aCache:null,_oQueue:null,_aIntervals:null,maxCacheEntries:0,liveData:null,dataType:DS.TYPE_UNKNOWN,responseType:DS.TYPE_UNKNOWN,responseSchema:null,toString:function(){return this._sName},getCachedResponse:function(oRequest,oCallback,oCaller){var aCache=this._aCache;if(this.maxCacheEntries>0){if(!aCache){this._aCache=[]}else{var nCacheLength=aCache.length;if(nCacheLength>0){var oResponse=null;this.fireEvent("cacheRequestEvent",{request:oRequest,callback:oCallback,caller:oCaller});for(var i=nCacheLength-1;i>=0;i--){var oCacheElem=aCache[i];if(this.isCacheHit(oRequest,oCacheElem.request)){oResponse=oCacheElem.response;this.fireEvent("cacheResponseEvent",{request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});if(i<nCacheLength-1){aCache.splice(i,1);this.addToCache(oRequest,oResponse)}oResponse.cached=true;break}}return oResponse}}}else{if(aCache){this._aCache=null}}return null},isCacheHit:function(oRequest,oCachedRequest){return(oRequest===oCachedRequest)},addToCache:function(oRequest,oResponse){var aCache=this._aCache;if(!aCache){return}while(aCache.length>=this.maxCacheEntries){aCache.shift()}var oCacheElem={request:oRequest,response:oResponse};aCache[aCache.length]=oCacheElem;this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse})},flushCache:function(){if(this._aCache){this._aCache=[];this.fireEvent("cacheFlushEvent")}},setInterval:function(nMsec,oRequest,oCallback,oCaller){if(lang.isNumber(nMsec)&&(nMsec>=0)){var oSelf=this;var nId=setInterval(function(){oSelf.makeConnection(oRequest,oCallback,oCaller)},nMsec);this._aIntervals.push(nId);return nId}else{}},clearInterval:function(nId){var tracker=this._aIntervals||[];for(var i=tracker.length-1;i>-1;i--){if(tracker[i]===nId){tracker.splice(i,1);clearInterval(nId)}}},clearAllIntervals:function(){var tracker=this._aIntervals||[];for(var i=tracker.length-1;i>-1;i--){clearInterval(tracker[i])}tracker=[]},sendRequest:function(oRequest,oCallback,oCaller){var oCachedResponse=this.getCachedResponse(oRequest,oCallback,oCaller);if(oCachedResponse){DS.issueCallback(oCallback,[oRequest,oCachedResponse],false,oCaller);return null}return this.makeConnection(oRequest,oCallback,oCaller)},makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=this.liveData;this.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);return tId},handleResponse:function(oRequest,oRawResponse,oCallback,oCaller,tId){this.fireEvent("responseEvent",{tId:tId,request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller});var xhr=(this.dataType==DS.TYPE_XHR)?true:false;var oParsedResponse=null;var oFullResponse=oRawResponse;if(this.responseType===DS.TYPE_UNKNOWN){var ctype=(oRawResponse&&oRawResponse.getResponseHeader)?oRawResponse.getResponseHeader["Content-Type"]:null;if(ctype){if(ctype.indexOf("text/xml")>-1){this.responseType=DS.TYPE_XML}else{if(ctype.indexOf("application/json")>-1){this.responseType=DS.TYPE_JSON}else{if(ctype.indexOf("text/plain")>-1){this.responseType=DS.TYPE_TEXT}}}}else{if(YAHOO.lang.isArray(oRawResponse)){this.responseType=DS.TYPE_JSARRAY}else{if(oRawResponse&&oRawResponse.nodeType&&oRawResponse.nodeType==9){this.responseType=DS.TYPE_XML}else{if(oRawResponse&&oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE}else{if(YAHOO.lang.isObject(oRawResponse)){this.responseType=DS.TYPE_JSON}else{if(YAHOO.lang.isString(oRawResponse)){this.responseType=DS.TYPE_TEXT}}}}}}}switch(this.responseType){case DS.TYPE_JSARRAY:if(xhr&&oRawResponse&&oRawResponse.responseText){oFullResponse=oRawResponse.responseText}try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);if(lang.JSON){oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs)}else{if(window.JSON&&JSON.parse){oFullResponse=JSON.parse.apply(JSON,parseArgs)}else{if(oFullResponse.parseJSON){oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1))}else{while(oFullResponse.length>0&&(oFullResponse.charAt(0)!="{")&&(oFullResponse.charAt(0)!="[")){oFullResponse=oFullResponse.substring(1,oFullResponse.length)}if(oFullResponse.length>0){var arrayEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,arrayEnd+1);oFullResponse=eval("("+oFullResponse+")")}}}}}}catch(e1){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseArrayData(oRequest,oFullResponse);break;case DS.TYPE_JSON:if(xhr&&oRawResponse&&oRawResponse.responseText){oFullResponse=oRawResponse.responseText}try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);if(lang.JSON){oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs)}else{if(window.JSON&&JSON.parse){oFullResponse=JSON.parse.apply(JSON,parseArgs)}else{if(oFullResponse.parseJSON){oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1))}else{while(oFullResponse.length>0&&(oFullResponse.charAt(0)!="{")&&(oFullResponse.charAt(0)!="[")){oFullResponse=oFullResponse.substring(1,oFullResponse.length)}if(oFullResponse.length>0){var objEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,objEnd+1);oFullResponse=eval("("+oFullResponse+")")}}}}}}catch(e){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseJSONData(oRequest,oFullResponse);break;case DS.TYPE_HTMLTABLE:if(xhr&&oRawResponse.responseText){var el=document.createElement("div");el.innerHTML=oRawResponse.responseText;oFullResponse=el.getElementsByTagName("table")[0]}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseHTMLTableData(oRequest,oFullResponse);break;case DS.TYPE_XML:if(xhr&&oRawResponse.responseXML){oFullResponse=oRawResponse.responseXML}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseXMLData(oRequest,oFullResponse);break;case DS.TYPE_TEXT:if(xhr&&lang.isString(oRawResponse.responseText)){oFullResponse=oRawResponse.responseText}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseTextData(oRequest,oFullResponse);break;default:oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseData(oRequest,oFullResponse);break}oParsedResponse=oParsedResponse||{};if(!oParsedResponse.results){oParsedResponse.results=[]}if(!oParsedResponse.meta){oParsedResponse.meta={}}if(oParsedResponse&&!oParsedResponse.error){oParsedResponse=this.doBeforeCallback(oRequest,oFullResponse,oParsedResponse,oCallback);this.fireEvent("responseParseEvent",{request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller});this.addToCache(oRequest,oParsedResponse)}else{oParsedResponse.error=true;this.fireEvent("dataErrorEvent",{request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller,message:DS.ERROR_DATANULL})}oParsedResponse.tId=tId;DS.issueCallback(oCallback,[oRequest,oParsedResponse],oParsedResponse.error,oCaller)},doBeforeParseData:function(oRequest,oFullResponse,oCallback){return oFullResponse},doBeforeCallback:function(oRequest,oFullResponse,oParsedResponse,oCallback){return oParsedResponse},parseData:function(oRequest,oFullResponse){if(lang.isValue(oFullResponse)){var oParsedResponse={results:oFullResponse,meta:{}};return oParsedResponse}return null},parseArrayData:function(oRequest,oFullResponse){if(lang.isArray(oFullResponse)){var results=[],i,j,rec,field,data;if(lang.isArray(this.responseSchema.fields)){var fields=this.responseSchema.fields;for(i=fields.length-1;i>=0;--i){if(typeof fields[i]!=="object"){fields[i]={key:fields[i]}}}var parsers={},p;for(i=fields.length-1;i>=0;--i){p=(typeof fields[i].parser==="function"?fields[i].parser:DS.Parser[fields[i].parser+""])||fields[i].converter;if(p){parsers[fields[i].key]=p}}var arrType=lang.isArray(oFullResponse[0]);for(i=oFullResponse.length-1;i>-1;i--){var oResult={};rec=oFullResponse[i];if(typeof rec==="object"){for(j=fields.length-1;j>-1;j--){field=fields[j];data=arrType?rec[j]:rec[field.key];if(parsers[field.key]){data=parsers[field.key].call(this,data)}if(data===undefined){data=null}oResult[field.key]=data}}else{if(lang.isString(rec)){for(j=fields.length-1;j>-1;j--){field=fields[j];data=rec;if(parsers[field.key]){data=parsers[field.key].call(this,data)}if(data===undefined){data=null}oResult[field.key]=data}}}results[i]=oResult}}else{results=oFullResponse}var oParsedResponse={results:results};return oParsedResponse}return null},parseTextData:function(oRequest,oFullResponse){if(lang.isString(oFullResponse)){if(lang.isString(this.responseSchema.recordDelim)&&lang.isString(this.responseSchema.fieldDelim)){var oParsedResponse={results:[]};var recDelim=this.responseSchema.recordDelim;var fieldDelim=this.responseSchema.fieldDelim;if(oFullResponse.length>0){var newLength=oFullResponse.length-recDelim.length;if(oFullResponse.substr(newLength)==recDelim){oFullResponse=oFullResponse.substr(0,newLength)}if(oFullResponse.length>0){var recordsarray=oFullResponse.split(recDelim);for(var i=0,len=recordsarray.length,recIdx=0;i<len;++i){var bError=false,sRecord=recordsarray[i];if(lang.isString(sRecord)&&(sRecord.length>0)){var fielddataarray=recordsarray[i].split(fieldDelim);var oResult={};if(lang.isArray(this.responseSchema.fields)){var fields=this.responseSchema.fields;for(var j=fields.length-1;j>-1;j--){try{var data=fielddataarray[j];if(lang.isString(data)){if(data.charAt(0)=='"'){data=data.substr(1)}if(data.charAt(data.length-1)=='"'){data=data.substr(0,data.length-1)}var field=fields[j];var key=(lang.isValue(field.key))?field.key:field;if(!field.parser&&field.converter){field.parser=field.converter}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data)}if(data===undefined){data=null}oResult[key]=data}else{bError=true}}catch(e){bError=true}}}else{oResult=fielddataarray}if(!bError){oParsedResponse.results[recIdx++]=oResult}}}}}return oParsedResponse}}return null},parseXMLResult:function(result){var oResult={},schema=this.responseSchema;try{for(var m=schema.fields.length-1;m>=0;m--){var field=schema.fields[m];var key=(lang.isValue(field.key))?field.key:field;var data=null;var xmlAttr=result.attributes.getNamedItem(key);if(xmlAttr){data=xmlAttr.value}else{var xmlNode=result.getElementsByTagName(key);if(xmlNode&&xmlNode.item(0)){var item=xmlNode.item(0);data=(item)?((item.text)?item.text:(item.textContent)?item.textContent:null):null;if(!data){var datapieces=[];for(var j=0,len=item.childNodes.length;j<len;j++){if(item.childNodes[j].nodeValue){datapieces[datapieces.length]=item.childNodes[j].nodeValue}}if(datapieces.length>0){data=datapieces.join("")}}}}if(data===null){data=""}if(!field.parser&&field.converter){field.parser=field.converter}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data)}if(data===undefined){data=null}oResult[key]=data}}catch(e){}return oResult},parseXMLData:function(oRequest,oFullResponse){var bError=false,schema=this.responseSchema,oParsedResponse={meta:{}},xmlList=null,metaNode=schema.metaNode,metaLocators=schema.metaFields||{},i,k,loc,v;try{xmlList=(schema.resultNode)?oFullResponse.getElementsByTagName(schema.resultNode):null;metaNode=metaNode?oFullResponse.getElementsByTagName(metaNode)[0]:oFullResponse;if(metaNode){for(k in metaLocators){if(lang.hasOwnProperty(metaLocators,k)){loc=metaLocators[k];v=metaNode.getElementsByTagName(loc)[0];if(v){v=v.firstChild.nodeValue}else{v=metaNode.attributes.getNamedItem(loc);if(v){v=v.value}}if(lang.isValue(v)){oParsedResponse.meta[k]=v}}}}}catch(e){}if(!xmlList||!lang.isArray(schema.fields)){bError=true}else{oParsedResponse.results=[];for(i=xmlList.length-1;i>=0;--i){var oResult=this.parseXMLResult(xmlList.item(i));oParsedResponse.results[i]=oResult}}if(bError){oParsedResponse.error=true}else{}return oParsedResponse},parseJSONData:function(oRequest,oFullResponse){var oParsedResponse={results:[],meta:{}};if(lang.isObject(oFullResponse)&&this.responseSchema.resultsList){var schema=this.responseSchema,fields=schema.fields,resultsList=oFullResponse,results=[],metaFields=schema.metaFields||{},fieldParsers=[],fieldPaths=[],simpleFields=[],bError=false,i,len,j,v,key,parser,path;var buildPath=function(needle){var path=null,keys=[],i=0;if(needle){needle=needle.replace(/\[(['"])(.*?)\1\]/g,function(x,$1,$2){keys[i]=$2;return".@"+(i++)}).replace(/\[(\d+)\]/g,function(x,$1){keys[i]=parseInt($1,10)|0;return".@"+(i++)}).replace(/^\./,"");if(!/[^\w\.\$@]/.test(needle)){path=needle.split(".");for(i=path.length-1;i>=0;--i){if(path[i].charAt(0)==="@"){path[i]=keys[parseInt(path[i].substr(1),10)]}}}else{}}return path};var walkPath=function(path,origin){var v=origin,i=0,len=path.length;for(;i<len&&v;++i){v=v[path[i]]}return v};path=buildPath(schema.resultsList);if(path){resultsList=walkPath(path,oFullResponse);if(resultsList===undefined){bError=true}}else{bError=true}if(!resultsList){resultsList=[]}if(!lang.isArray(resultsList)){resultsList=[resultsList]}if(!bError){if(schema.fields){var field;for(i=0,len=fields.length;i<len;i++){field=fields[i];key=field.key||field;parser=((typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""])||field.converter;path=buildPath(key);if(parser){fieldParsers[fieldParsers.length]={key:key,parser:parser}}if(path){if(path.length>1){fieldPaths[fieldPaths.length]={key:key,path:path}}else{simpleFields[simpleFields.length]={key:key,path:path[0]}}}else{}}for(i=resultsList.length-1;i>=0;--i){var r=resultsList[i],rec={};if(r){for(j=simpleFields.length-1;j>=0;--j){rec[simpleFields[j].key]=(r[simpleFields[j].path]!==undefined)?r[simpleFields[j].path]:r[j]}for(j=fieldPaths.length-1;j>=0;--j){rec[fieldPaths[j].key]=walkPath(fieldPaths[j].path,r)}for(j=fieldParsers.length-1;j>=0;--j){var p=fieldParsers[j].key;rec[p]=fieldParsers[j].parser(rec[p]);if(rec[p]===undefined){rec[p]=null}}}results[i]=rec}}else{results=resultsList}for(key in metaFields){if(lang.hasOwnProperty(metaFields,key)){path=buildPath(metaFields[key]);if(path){v=walkPath(path,oFullResponse);oParsedResponse.meta[key]=v}}}}else{oParsedResponse.error=true}oParsedResponse.results=results}else{oParsedResponse.error=true}return oParsedResponse},parseHTMLTableData:function(oRequest,oFullResponse){var bError=false;var elTable=oFullResponse;var fields=this.responseSchema.fields;var oParsedResponse={results:[]};if(lang.isArray(fields)){for(var i=0;i<elTable.tBodies.length;i++){var elTbody=elTable.tBodies[i];for(var j=elTbody.rows.length-1;j>-1;j--){var elRow=elTbody.rows[j];var oResult={};for(var k=fields.length-1;k>-1;k--){var field=fields[k];var key=(lang.isValue(field.key))?field.key:field;var data=elRow.cells[k].innerHTML;if(!field.parser&&field.converter){field.parser=field.converter}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data)}if(data===undefined){data=null}oResult[key]=data}oParsedResponse.results[j]=oResult}}}else{bError=true}if(bError){oParsedResponse.error=true}else{}return oParsedResponse}};lang.augmentProto(DS,util.EventProvider);util.LocalDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_LOCAL;if(oLiveData){if(YAHOO.lang.isArray(oLiveData)){this.responseType=DS.TYPE_JSARRAY}else{if(oLiveData.nodeType&&oLiveData.nodeType==9){this.responseType=DS.TYPE_XML}else{if(oLiveData.nodeName&&(oLiveData.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;oLiveData=oLiveData.cloneNode(true)}else{if(YAHOO.lang.isString(oLiveData)){this.responseType=DS.TYPE_TEXT}else{if(YAHOO.lang.isObject(oLiveData)){this.responseType=DS.TYPE_JSON}}}}}}else{oLiveData=[];this.responseType=DS.TYPE_JSARRAY}util.LocalDataSource.superclass.constructor.call(this,oLiveData,oConfigs)};lang.extend(util.LocalDataSource,DS);lang.augmentObject(util.LocalDataSource,DS);util.FunctionDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_JSFUNCTION;oLiveData=oLiveData||function(){};util.FunctionDataSource.superclass.constructor.call(this,oLiveData,oConfigs)};lang.extend(util.FunctionDataSource,DS,{scope:null,makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=(this.scope)?this.liveData.call(this.scope,oRequest,this):this.liveData(oRequest);if(this.responseType===DS.TYPE_UNKNOWN){if(YAHOO.lang.isArray(oRawResponse)){this.responseType=DS.TYPE_JSARRAY}else{if(oRawResponse&&oRawResponse.nodeType&&oRawResponse.nodeType==9){this.responseType=DS.TYPE_XML}else{if(oRawResponse&&oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE}else{if(YAHOO.lang.isObject(oRawResponse)){this.responseType=DS.TYPE_JSON}else{if(YAHOO.lang.isString(oRawResponse)){this.responseType=DS.TYPE_TEXT}}}}}}this.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);return tId}});lang.augmentObject(util.FunctionDataSource,DS);util.ScriptNodeDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_SCRIPTNODE;oLiveData=oLiveData||"";util.ScriptNodeDataSource.superclass.constructor.call(this,oLiveData,oConfigs)};lang.extend(util.ScriptNodeDataSource,DS,{getUtility:util.Get,asyncMode:"allowAll",scriptCallbackParam:"callback",generateRequestCallback:function(id){return"&"+this.scriptCallbackParam+"=YAHOO.util.ScriptNodeDataSource.callbacks["+id+"]"},doBeforeGetScriptNode:function(sUri){return sUri},makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});if(util.ScriptNodeDataSource._nPending===0){util.ScriptNodeDataSource.callbacks=[];util.ScriptNodeDataSource._nId=0}var id=util.ScriptNodeDataSource._nId;util.ScriptNodeDataSource._nId++;var oSelf=this;util.ScriptNodeDataSource.callbacks[id]=function(oRawResponse){if((oSelf.asyncMode!=="ignoreStaleResponses")||(id===util.ScriptNodeDataSource.callbacks.length-1)){if(oSelf.responseType===DS.TYPE_UNKNOWN){if(YAHOO.lang.isArray(oRawResponse)){oSelf.responseType=DS.TYPE_JSARRAY}else{if(oRawResponse.nodeType&&oRawResponse.nodeType==9){oSelf.responseType=DS.TYPE_XML}else{if(oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){oSelf.responseType=DS.TYPE_HTMLTABLE}else{if(YAHOO.lang.isObject(oRawResponse)){oSelf.responseType=DS.TYPE_JSON}else{if(YAHOO.lang.isString(oRawResponse)){oSelf.responseType=DS.TYPE_TEXT}}}}}}oSelf.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId)}else{}delete util.ScriptNodeDataSource.callbacks[id]};util.ScriptNodeDataSource._nPending++;var sUri=this.liveData+oRequest+this.generateRequestCallback(id);sUri=this.doBeforeGetScriptNode(sUri);this.getUtility.script(sUri,{autopurge:true,onsuccess:util.ScriptNodeDataSource._bumpPendingDown,onfail:util.ScriptNodeDataSource._bumpPendingDown});return tId}});lang.augmentObject(util.ScriptNodeDataSource,DS);lang.augmentObject(util.ScriptNodeDataSource,{_nId:0,_nPending:0,callbacks:[]});util.XHRDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_XHR;this.connMgr=this.connMgr||util.Connect;oLiveData=oLiveData||"";util.XHRDataSource.superclass.constructor.call(this,oLiveData,oConfigs)};lang.extend(util.XHRDataSource,DS,{connMgr:null,connXhrMode:"allowAll",connMethodPost:false,connTimeout:0,makeConnection:function(oRequest,oCallback,oCaller){var oRawResponse=null;var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oSelf=this;var oConnMgr=this.connMgr;var oQueue=this._oQueue;var _xhrSuccess=function(oResponse){if(oResponse&&(this.connXhrMode=="ignoreStaleResponses")&&(oResponse.tId!=oQueue.conn.tId)){return null}else{if(!oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:DS.ERROR_DATANULL});DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller);return null}else{if(this.responseType===DS.TYPE_UNKNOWN){var ctype=(oResponse.getResponseHeader)?oResponse.getResponseHeader["Content-Type"]:null;if(ctype){if(ctype.indexOf("text/xml")>-1){this.responseType=DS.TYPE_XML}else{if(ctype.indexOf("application/json")>-1){this.responseType=DS.TYPE_JSON}else{if(ctype.indexOf("text/plain")>-1){this.responseType=DS.TYPE_TEXT}}}}}this.handleResponse(oRequest,oResponse,oCallback,oCaller,tId)}}};var _xhrFailure=function(oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:DS.ERROR_DATAINVALID});if(lang.isString(this.liveData)&&lang.isString(oRequest)&&(this.liveData.lastIndexOf("?")!==this.liveData.length-1)&&(oRequest.indexOf("?")!==0)){}oResponse=oResponse||{};oResponse.error=true;DS.issueCallback(oCallback,[oRequest,oResponse],true,oCaller);return null};var _xhrCallback={success:_xhrSuccess,failure:_xhrFailure,scope:this};if(lang.isNumber(this.connTimeout)){_xhrCallback.timeout=this.connTimeout}if(this.connXhrMode=="cancelStaleRequests"){if(oQueue.conn){if(oConnMgr.abort){oConnMgr.abort(oQueue.conn);oQueue.conn=null}else{}}}if(oConnMgr&&oConnMgr.asyncRequest){var sLiveData=this.liveData;var isPost=this.connMethodPost;var sMethod=(isPost)?"POST":"GET";var sUri=(isPost||!lang.isValue(oRequest))?sLiveData:sLiveData+oRequest;var sRequest=(isPost)?oRequest:null;if(this.connXhrMode!="queueRequests"){oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,_xhrCallback,sRequest)}else{if(oQueue.conn){var allRequests=oQueue.requests;allRequests.push({request:oRequest,callback:_xhrCallback});if(!oQueue.interval){oQueue.interval=setInterval(function(){if(oConnMgr.isCallInProgress(oQueue.conn)){return}else{if(allRequests.length>0){sUri=(isPost||!lang.isValue(allRequests[0].request))?sLiveData:sLiveData+allRequests[0].request;sRequest=(isPost)?allRequests[0].request:null;oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,allRequests[0].callback,sRequest);allRequests.shift()}else{clearInterval(oQueue.interval);oQueue.interval=null}}},50)}}else{oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,_xhrCallback,sRequest)}}}else{DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller)}return tId}});lang.augmentObject(util.XHRDataSource,DS);util.DataSource=function(oLiveData,oConfigs){oConfigs=oConfigs||{};var dataType=oConfigs.dataType;if(dataType){if(dataType==DS.TYPE_LOCAL){lang.augmentObject(util.DataSource,util.LocalDataSource);return new util.LocalDataSource(oLiveData,oConfigs)}else{if(dataType==DS.TYPE_XHR){lang.augmentObject(util.DataSource,util.XHRDataSource);return new util.XHRDataSource(oLiveData,oConfigs)}else{if(dataType==DS.TYPE_SCRIPTNODE){lang.augmentObject(util.DataSource,util.ScriptNodeDataSource);return new util.ScriptNodeDataSource(oLiveData,oConfigs)}else{if(dataType==DS.TYPE_JSFUNCTION){lang.augmentObject(util.DataSource,util.FunctionDataSource);return new util.FunctionDataSource(oLiveData,oConfigs)}}}}}if(YAHOO.lang.isString(oLiveData)){lang.augmentObject(util.DataSource,util.XHRDataSource);return new util.XHRDataSource(oLiveData,oConfigs)}else{if(YAHOO.lang.isFunction(oLiveData)){lang.augmentObject(util.DataSource,util.FunctionDataSource);return new util.FunctionDataSource(oLiveData,oConfigs)}else{lang.augmentObject(util.DataSource,util.LocalDataSource);return new util.LocalDataSource(oLiveData,oConfigs)}}};lang.augmentObject(util.DataSource,DS)})();YAHOO.util.Number={format:function(b,n){var d=YAHOO.lang;if(!d.isValue(b)||(b==="")){return""}n=n||{};if(!d.isNumber(b)){b*=1}if(d.isNumber(b)){var q=(b<0);var j=b+"";var m=(n.decimalSeparator)?n.decimalSeparator:".";var l;if(d.isNumber(n.decimalPlaces)){var k=n.decimalPlaces;var a=Math.pow(10,k);j=Math.round(b*a)/a+"";l=j.lastIndexOf(".");if(k>0){if(l<0){j+=m;l=j.length-1}else{if(m!=="."){j=j.replace(".",m)}}while((j.length-1-l)<k){j+="0"}}}if(n.thousandsSeparator){var g=n.thousandsSeparator;l=j.lastIndexOf(m);l=(l>-1)?l:j.length;var h=j.substring(l);var f=-1;for(var o=l;o>0;o--){f++;if((f%3===0)&&(o!==l)&&(!q||(o>1))){h=g+h}h=j.charAt(o-1)+h}j=h}j=(n.prefix)?n.prefix+j:j;j=(n.suffix)?j+n.suffix:j;return j}else{return b}}};(function(){var a=function(g,d,f){if(typeof f==="undefined"){f=10}for(;parseInt(g,10)<f&&f>1;f/=10){g=d.toString()+g}return g.toString()};var b={formats:{a:function(d,f){return f.a[d.getDay()]},A:function(d,f){return f.A[d.getDay()]},b:function(d,f){return f.b[d.getMonth()]},B:function(d,f){return f.B[d.getMonth()]},C:function(d){return a(parseInt(d.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(d){return a(parseInt(b.formats.G(d)%100,10),0)},G:function(f){var d=f.getFullYear();var g=parseInt(b.formats.V(f),10);var h=parseInt(b.formats.W(f),10);if(h>g){d++}else{if(h===0&&g>=52){d--}}return d},H:["getHours","0"],I:function(d){var f=d.getHours()%12;return a(f===0?12:f,0)},j:function(d){var f=new Date(""+d.getFullYear()+"/1/1 GMT");var h=new Date(""+d.getFullYear()+"/"+(d.getMonth()+1)+"/"+d.getDate()+" GMT");var j=h-f;var g=parseInt(j/60000/60/24,10)+1;return a(g,0,100)},k:["getHours"," "],l:function(d){var f=d.getHours()%12;return a(f===0?12:f," ")},m:function(d){return a(d.getMonth()+1,0)},M:["getMinutes","0"],p:function(d,f){return f.p[d.getHours()>=12?1:0]},P:function(d,f){return f.P[d.getHours()>=12?1:0]},s:function(d,f){return parseInt(d.getTime()/1000,10)},S:["getSeconds","0"],u:function(f){var d=f.getDay();return d===0?7:d},U:function(d){var h=parseInt(b.formats.j(d),10);var f=6-d.getDay();var g=parseInt((h+f)/7,10);return a(g,0)},V:function(d){var f=parseInt(b.formats.W(d),10);var h=(new Date(""+d.getFullYear()+"/1/1")).getDay();var g=f+(h>4||h<=1?0:1);if(g===53&&(new Date(""+d.getFullYear()+"/12/31")).getDay()<4){g=1}else{if(g===0){g=b.formats.V(new Date(""+(d.getFullYear()-1)+"/12/31"))}}return a(g,0)},w:"getDay",W:function(d){var h=parseInt(b.formats.j(d),10);var f=7-b.formats.u(d);var g=parseInt((h+f)/7,10);return a(g,0,10)},y:function(d){return a(d.getFullYear()%100,0)},Y:"getFullYear",z:function(f){var g=f.getTimezoneOffset();var h=a(parseInt(Math.abs(g/60),10),0);var d=a(Math.abs(g%60),0);return(g>0?"-":"+")+h+d},Z:function(f){var d=f.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");if(d.length>4){d=b.formats.z(f)}return d},"%":function(d){return"%"}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(h,j,l){j=j||{};if(!(h instanceof Date)){return YAHOO.lang.isValue(h)?h:""}var g=j.format||"%m/%d/%Y";if(g==="YYYY/MM/DD"){g="%Y/%m/%d"}else{if(g==="DD/MM/YYYY"){g="%d/%m/%Y"}else{if(g==="MM/DD/YYYY"){g="%m/%d/%Y"}}}l=l||"en";if(!(l in YAHOO.util.DateLocale)){if(l.replace(/-[a-zA-Z]+$/,"") in YAHOO.util.DateLocale){l=l.replace(/-[a-zA-Z]+$/,"")}else{l="en"}}var d=YAHOO.util.DateLocale[l];var m=function(n,o){var q=b.aggregates[o];return(q==="locale"?d[o]:q)};var k=function(n,o){var q=b.formats[o];if(typeof q==="string"){return h[q]()}else{if(typeof q==="function"){return q.call(h,h,d)}else{if(typeof q==="object"&&typeof q[0]==="string"){return a(h[q[0]](),q[1])}else{return o}}}};while(g.match(/%[cDFhnrRtTxX]/)){g=g.replace(/%([cDFhnrRtTxX])/g,m)}var f=g.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,k);m=k=undefined;return f}};YAHOO.namespace("YAHOO.util");YAHOO.util.Date=b;YAHOO.util.DateLocale={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"};YAHOO.util.DateLocale.en=YAHOO.lang.merge(YAHOO.util.DateLocale,{});YAHOO.util.DateLocale["en-US"]=YAHOO.lang.merge(YAHOO.util.DateLocale.en,{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"});YAHOO.util.DateLocale["en-GB"]=YAHOO.lang.merge(YAHOO.util.DateLocale.en,{r:"%l:%M:%S %P %Z"});YAHOO.util.DateLocale["en-AU"]=YAHOO.lang.merge(YAHOO.util.DateLocale.en)})();YAHOO.register("datasource",YAHOO.util.DataSource,{version:"2.7.0",build:"1799"});YAHOO.widget.DS_JSArray=YAHOO.util.LocalDataSource;YAHOO.widget.DS_JSFunction=YAHOO.util.FunctionDataSource;YAHOO.widget.DS_XHR=function(f,a,b){var d=new YAHOO.util.XHRDataSource(f,b);d._aDeprecatedSchema=a;return d};YAHOO.widget.DS_ScriptNode=function(f,a,b){var d=new YAHOO.util.ScriptNodeDataSource(f,b);d._aDeprecatedSchema=a;return d};YAHOO.widget.DS_XHR.TYPE_JSON=YAHOO.util.DataSourceBase.TYPE_JSON;YAHOO.widget.DS_XHR.TYPE_XML=YAHOO.util.DataSourceBase.TYPE_XML;YAHOO.widget.DS_XHR.TYPE_FLAT=YAHOO.util.DataSourceBase.TYPE_TEXT;YAHOO.widget.AutoComplete=function(l,d,h,b){if(l&&d&&h){if(h instanceof YAHOO.util.DataSourceBase){this.dataSource=h}else{return}this.key=0;var a=h.responseSchema;if(h._aDeprecatedSchema){var g=h._aDeprecatedSchema;if(YAHOO.lang.isArray(g)){if((h.responseType===YAHOO.util.DataSourceBase.TYPE_JSON)||(h.responseType===YAHOO.util.DataSourceBase.TYPE_UNKNOWN)){a.resultsList=g[0];this.key=g[1];a.fields=(g.length<3)?null:g.slice(1)}else{if(h.responseType===YAHOO.util.DataSourceBase.TYPE_XML){a.resultNode=g[0];this.key=g[1];a.fields=g.slice(1)}else{if(h.responseType===YAHOO.util.DataSourceBase.TYPE_TEXT){a.recordDelim=g[0];a.fieldDelim=g[1]}}}h.responseSchema=a}}if(YAHOO.util.Dom.inDocument(l)){if(YAHOO.lang.isString(l)){this._sName="instance"+YAHOO.widget.AutoComplete._nIndex+" "+l;this._elTextbox=document.getElementById(l)}else{this._sName=(l.id)?"instance"+YAHOO.widget.AutoComplete._nIndex+" "+l.id:"instance"+YAHOO.widget.AutoComplete._nIndex;this._elTextbox=l}YAHOO.util.Dom.addClass(this._elTextbox,"yui-ac-input")}else{return}if(YAHOO.util.Dom.inDocument(d)){if(YAHOO.lang.isString(d)){this._elContainer=document.getElementById(d)}else{this._elContainer=d}if(this._elContainer.style.display=="none"){}var n=this._elContainer.parentNode;var f=n.tagName.toLowerCase();if(f=="div"){YAHOO.util.Dom.addClass(n,"yui-ac")}else{}}else{return}if(this.dataSource.dataType===YAHOO.util.DataSourceBase.TYPE_LOCAL){this.applyLocalFilter=true}if(b&&(b.constructor==Object)){for(var j in b){if(j){this[j]=b[j]}}}this._initContainerEl();this._initProps();this._initListEl();this._initContainerHelperEls();var k=this;var m=this._elTextbox;YAHOO.util.Event.addListener(m,"keyup",k._onTextboxKeyUp,k);YAHOO.util.Event.addListener(m,"keydown",k._onTextboxKeyDown,k);YAHOO.util.Event.addListener(m,"focus",k._onTextboxFocus,k);YAHOO.util.Event.addListener(m,"blur",k._onTextboxBlur,k);YAHOO.util.Event.addListener(d,"mouseover",k._onContainerMouseover,k);YAHOO.util.Event.addListener(d,"mouseout",k._onContainerMouseout,k);YAHOO.util.Event.addListener(d,"click",k._onContainerClick,k);YAHOO.util.Event.addListener(d,"scroll",k._onContainerScroll,k);YAHOO.util.Event.addListener(d,"resize",k._onContainerResize,k);YAHOO.util.Event.addListener(m,"keypress",k._onTextboxKeyPress,k);YAHOO.util.Event.addListener(window,"unload",k._onWindowUnload,k);this.textboxFocusEvent=new YAHOO.util.CustomEvent("textboxFocus",this);this.textboxKeyEvent=new YAHOO.util.CustomEvent("textboxKey",this);this.dataRequestEvent=new YAHOO.util.CustomEvent("dataRequest",this);this.dataReturnEvent=new YAHOO.util.CustomEvent("dataReturn",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.containerPopulateEvent=new YAHOO.util.CustomEvent("containerPopulate",this);this.containerExpandEvent=new YAHOO.util.CustomEvent("containerExpand",this);this.typeAheadEvent=new YAHOO.util.CustomEvent("typeAhead",this);this.itemMouseOverEvent=new YAHOO.util.CustomEvent("itemMouseOver",this);this.itemMouseOutEvent=new YAHOO.util.CustomEvent("itemMouseOut",this);this.itemArrowToEvent=new YAHOO.util.CustomEvent("itemArrowTo",this);this.itemArrowFromEvent=new YAHOO.util.CustomEvent("itemArrowFrom",this);this.itemSelectEvent=new YAHOO.util.CustomEvent("itemSelect",this);this.unmatchedItemSelectEvent=new YAHOO.util.CustomEvent("unmatchedItemSelect",this);this.selectionEnforceEvent=new YAHOO.util.CustomEvent("selectionEnforce",this);this.containerCollapseEvent=new YAHOO.util.CustomEvent("containerCollapse",this);this.textboxBlurEvent=new YAHOO.util.CustomEvent("textboxBlur",this);this.textboxChangeEvent=new YAHOO.util.CustomEvent("textboxChange",this);m.setAttribute("autocomplete","off");YAHOO.widget.AutoComplete._nIndex++}else{}};YAHOO.widget.AutoComplete.prototype.dataSource=null;YAHOO.widget.AutoComplete.prototype.applyLocalFilter=null;YAHOO.widget.AutoComplete.prototype.queryMatchCase=false;YAHOO.widget.AutoComplete.prototype.queryMatchContains=false;YAHOO.widget.AutoComplete.prototype.queryMatchSubset=false;YAHOO.widget.AutoComplete.prototype.minQueryLength=1;YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed=10;YAHOO.widget.AutoComplete.prototype.queryDelay=0.2;YAHOO.widget.AutoComplete.prototype.typeAheadDelay=0.5;YAHOO.widget.AutoComplete.prototype.queryInterval=500;YAHOO.widget.AutoComplete.prototype.highlightClassName="yui-ac-highlight";YAHOO.widget.AutoComplete.prototype.prehighlightClassName=null;YAHOO.widget.AutoComplete.prototype.delimChar=null;YAHOO.widget.AutoComplete.prototype.autoHighlight=true;YAHOO.widget.AutoComplete.prototype.typeAhead=false;YAHOO.widget.AutoComplete.prototype.animHoriz=false;YAHOO.widget.AutoComplete.prototype.animVert=true;YAHOO.widget.AutoComplete.prototype.animSpeed=0.3;YAHOO.widget.AutoComplete.prototype.forceSelection=false;YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete=true;YAHOO.widget.AutoComplete.prototype.alwaysShowContainer=false;YAHOO.widget.AutoComplete.prototype.useIFrame=false;YAHOO.widget.AutoComplete.prototype.useShadow=false;YAHOO.widget.AutoComplete.prototype.suppressInputUpdate=false;YAHOO.widget.AutoComplete.prototype.resultTypeList=true;YAHOO.widget.AutoComplete.prototype.queryQuestionMark=true;YAHOO.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName};YAHOO.widget.AutoComplete.prototype.getInputEl=function(){return this._elTextbox};YAHOO.widget.AutoComplete.prototype.getContainerEl=function(){return this._elContainer};YAHOO.widget.AutoComplete.prototype.isFocused=function(){return(this._bFocused===null)?false:this._bFocused};YAHOO.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen};YAHOO.widget.AutoComplete.prototype.getListEl=function(){return this._elList};YAHOO.widget.AutoComplete.prototype.getListItemMatch=function(a){if(a._sResultMatch){return a._sResultMatch}else{return null}};YAHOO.widget.AutoComplete.prototype.getListItemData=function(a){if(a._oResultData){return a._oResultData}else{return null}};YAHOO.widget.AutoComplete.prototype.getListItemIndex=function(a){if(YAHOO.lang.isNumber(a._nItemIndex)){return a._nItemIndex}else{return null}};YAHOO.widget.AutoComplete.prototype.setHeader=function(b){if(this._elHeader){var a=this._elHeader;if(b){a.innerHTML=b;a.style.display="block"}else{a.innerHTML="";a.style.display="none"}}};YAHOO.widget.AutoComplete.prototype.setFooter=function(b){if(this._elFooter){var a=this._elFooter;if(b){a.innerHTML=b;a.style.display="block"}else{a.innerHTML="";a.style.display="none"}}};YAHOO.widget.AutoComplete.prototype.setBody=function(a){if(this._elBody){var b=this._elBody;YAHOO.util.Event.purgeElement(b,true);if(a){b.innerHTML=a;b.style.display="block"}else{b.innerHTML="";b.style.display="none"}this._elList=null}};YAHOO.widget.AutoComplete.prototype.generateRequest=function(b){var a=this.dataSource.dataType;if(a===YAHOO.util.DataSourceBase.TYPE_XHR){if(!this.dataSource.connMethodPost){b=(this.queryQuestionMark?"?":"")+(this.dataSource.scriptQueryParam||"query")+"="+b+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"")}else{b=(this.dataSource.scriptQueryParam||"query")+"="+b+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"")}}else{if(a===YAHOO.util.DataSourceBase.TYPE_SCRIPTNODE){b="&"+(this.dataSource.scriptQueryParam||"query")+"="+b+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"")}}return b};YAHOO.widget.AutoComplete.prototype.sendQuery=function(b){this._bFocused=null;var a=(this.delimChar)?this._elTextbox.value+b:b;this._sendQuery(a)};YAHOO.widget.AutoComplete.prototype.collapseContainer=function(){this._toggleContainer(false)};YAHOO.widget.AutoComplete.prototype.getSubsetMatches=function(b){var d,f,a;for(var g=b.length;g>=this.minQueryLength;g--){a=this.generateRequest(b.substr(0,g));this.dataRequestEvent.fire(this,d,a);f=this.dataSource.getCachedResponse(a);if(f){return this.filterResults.apply(this.dataSource,[b,f,f,{scope:this}])}}return null};YAHOO.widget.AutoComplete.prototype.preparseRawResponse=function(d,f,a){var b=((this.responseStripAfter!=="")&&(f.indexOf))?f.indexOf(this.responseStripAfter):-1;if(b!=-1){f=f.substring(0,b)}return f};YAHOO.widget.AutoComplete.prototype.filterResults=function(n,l,g,m){if(m&&m.argument&&m.argument.query){n=m.argument.query}if(n&&n!==""){g=YAHOO.widget.AutoComplete._cloneObject(g);var q=m.scope,h=this,d=g.results,k=[],a=false,o=(h.queryMatchCase||q.queryMatchCase),f=(h.queryMatchContains||q.queryMatchContains);for(var b=d.length-1;b>=0;b--){var s=d[b];var t=null;if(YAHOO.lang.isString(s)){t=s}else{if(YAHOO.lang.isArray(s)){t=s[0]}else{if(this.responseSchema.fields){var j=this.responseSchema.fields[0].key||this.responseSchema.fields[0];t=s[j]}else{if(this.key){t=s[this.key]}}}}if(YAHOO.lang.isString(t)){var r=(o)?t.indexOf(decodeURIComponent(n)):t.toLowerCase().indexOf(decodeURIComponent(n).toLowerCase());if((!f&&(r===0))||(f&&(r>-1))){k.unshift(s)}}}g.results=k}else{}return g};YAHOO.widget.AutoComplete.prototype.handleResponse=function(b,a,d){if((this instanceof YAHOO.widget.AutoComplete)&&this._sName){this._populateList(b,a,d)}};YAHOO.widget.AutoComplete.prototype.doBeforeLoadData=function(b,a,d){return true};YAHOO.widget.AutoComplete.prototype.formatResult=function(f,b,a){var d=(a)?a:"";return d};YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(b,a,d,f){return true};YAHOO.widget.AutoComplete.prototype.destroy=function(){var f=this.toString();var a=this._elTextbox;var b=this._elContainer;this.textboxFocusEvent.unsubscribeAll();this.textboxKeyEvent.unsubscribeAll();this.dataRequestEvent.unsubscribeAll();this.dataReturnEvent.unsubscribeAll();this.dataErrorEvent.unsubscribeAll();this.containerPopulateEvent.unsubscribeAll();this.containerExpandEvent.unsubscribeAll();this.typeAheadEvent.unsubscribeAll();this.itemMouseOverEvent.unsubscribeAll();this.itemMouseOutEvent.unsubscribeAll();this.itemArrowToEvent.unsubscribeAll();this.itemArrowFromEvent.unsubscribeAll();this.itemSelectEvent.unsubscribeAll();this.unmatchedItemSelectEvent.unsubscribeAll();this.selectionEnforceEvent.unsubscribeAll();this.containerCollapseEvent.unsubscribeAll();this.textboxBlurEvent.unsubscribeAll();this.textboxChangeEvent.unsubscribeAll();YAHOO.util.Event.purgeElement(a,true);YAHOO.util.Event.purgeElement(b,true);b.innerHTML="";for(var d in this){if(YAHOO.lang.hasOwnProperty(this,d)){this[d]=null}}};YAHOO.widget.AutoComplete.prototype.textboxFocusEvent=null;YAHOO.widget.AutoComplete.prototype.textboxKeyEvent=null;YAHOO.widget.AutoComplete.prototype.dataRequestEvent=null;YAHOO.widget.AutoComplete.prototype.dataReturnEvent=null;YAHOO.widget.AutoComplete.prototype.dataErrorEvent=null;YAHOO.widget.AutoComplete.prototype.containerPopulateEvent=null;YAHOO.widget.AutoComplete.prototype.containerExpandEvent=null;YAHOO.widget.AutoComplete.prototype.typeAheadEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowToEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent=null;YAHOO.widget.AutoComplete.prototype.itemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent=null;YAHOO.widget.AutoComplete.prototype.containerCollapseEvent=null;YAHOO.widget.AutoComplete.prototype.textboxBlurEvent=null;YAHOO.widget.AutoComplete.prototype.textboxChangeEvent=null;YAHOO.widget.AutoComplete._nIndex=0;YAHOO.widget.AutoComplete.prototype._sName=null;YAHOO.widget.AutoComplete.prototype._elTextbox=null;YAHOO.widget.AutoComplete.prototype._elContainer=null;YAHOO.widget.AutoComplete.prototype._elContent=null;YAHOO.widget.AutoComplete.prototype._elHeader=null;YAHOO.widget.AutoComplete.prototype._elBody=null;YAHOO.widget.AutoComplete.prototype._elFooter=null;YAHOO.widget.AutoComplete.prototype._elShadow=null;YAHOO.widget.AutoComplete.prototype._elIFrame=null;YAHOO.widget.AutoComplete.prototype._bFocused=null;YAHOO.widget.AutoComplete.prototype._oAnim=null;YAHOO.widget.AutoComplete.prototype._bContainerOpen=false;YAHOO.widget.AutoComplete.prototype._bOverContainer=false;YAHOO.widget.AutoComplete.prototype._elList=null;YAHOO.widget.AutoComplete.prototype._nDisplayedItems=0;YAHOO.widget.AutoComplete.prototype._sCurQuery=null;YAHOO.widget.AutoComplete.prototype._sPastSelections="";YAHOO.widget.AutoComplete.prototype._sInitInputValue=null;YAHOO.widget.AutoComplete.prototype._elCurListItem=null;YAHOO.widget.AutoComplete.prototype._bItemSelected=false;YAHOO.widget.AutoComplete.prototype._nKeyCode=null;YAHOO.widget.AutoComplete.prototype._nDelayID=-1;YAHOO.widget.AutoComplete.prototype._nTypeAheadDelayID=-1;YAHOO.widget.AutoComplete.prototype._iFrameSrc="javascript:false;";YAHOO.widget.AutoComplete.prototype._queryInterval=null;YAHOO.widget.AutoComplete.prototype._sLastTextboxValue=null;YAHOO.widget.AutoComplete.prototype._initProps=function(){var h=this.minQueryLength;if(!YAHOO.lang.isNumber(h)){this.minQueryLength=1}var d=this.maxResultsDisplayed;if(!YAHOO.lang.isNumber(d)||(d<1)){this.maxResultsDisplayed=10}var b=this.queryDelay;if(!YAHOO.lang.isNumber(b)||(b<0)){this.queryDelay=0.2}var g=this.typeAheadDelay;if(!YAHOO.lang.isNumber(g)||(g<0)){this.typeAheadDelay=0.2}var a=this.delimChar;if(YAHOO.lang.isString(a)&&(a.length>0)){this.delimChar=[a]}else{if(!YAHOO.lang.isArray(a)){this.delimChar=null}}var f=this.animSpeed;if((this.animHoriz||this.animVert)&&YAHOO.util.Anim){if(!YAHOO.lang.isNumber(f)||(f<0)){this.animSpeed=0.3}if(!this._oAnim){this._oAnim=new YAHOO.util.Anim(this._elContent,{},this.animSpeed)}else{this._oAnim.duration=this.animSpeed}}if(this.forceSelection&&a){}};YAHOO.widget.AutoComplete.prototype._initContainerHelperEls=function(){if(this.useShadow&&!this._elShadow){var a=document.createElement("div");a.className="yui-ac-shadow";a.style.width=0;a.style.height=0;this._elShadow=this._elContainer.appendChild(a)}if(this.useIFrame&&!this._elIFrame){var b=document.createElement("iframe");b.src=this._iFrameSrc;b.frameBorder=0;b.scrolling="no";b.style.position="absolute";b.style.width=0;b.style.height=0;b.tabIndex=-1;b.style.padding=0;this._elIFrame=this._elContainer.appendChild(b)}};YAHOO.widget.AutoComplete.prototype._initContainerEl=function(){YAHOO.util.Dom.addClass(this._elContainer,"yui-ac-container");if(!this._elContent){var d=document.createElement("div");d.className="yui-ac-content";d.style.display="none";this._elContent=this._elContainer.appendChild(d);var f=document.createElement("div");f.className="yui-ac-hd";f.style.display="none";this._elHeader=this._elContent.appendChild(f);var b=document.createElement("div");b.className="yui-ac-bd";this._elBody=this._elContent.appendChild(b);var a=document.createElement("div");a.className="yui-ac-ft";a.style.display="none";this._elFooter=this._elContent.appendChild(a)}else{}};YAHOO.widget.AutoComplete.prototype._initListEl=function(){var d=this.maxResultsDisplayed;var a=this._elList||document.createElement("ul");var f;while(a.childNodes.length<d){f=document.createElement("li");f.style.display="none";f._nItemIndex=a.childNodes.length;a.appendChild(f)}if(!this._elList){var b=this._elBody;YAHOO.util.Event.purgeElement(b,true);b.innerHTML="";this._elList=b.appendChild(a)}};YAHOO.widget.AutoComplete.prototype._focus=function(){var a=this;setTimeout(function(){try{a._elTextbox.focus()}catch(b){}},0)};YAHOO.widget.AutoComplete.prototype._enableIntervalDetection=function(){var a=this;if(!a._queryInterval&&a.queryInterval){a._queryInterval=setInterval(function(){a._onInterval()},a.queryInterval)}};YAHOO.widget.AutoComplete.prototype._onInterval=function(){var a=this._elTextbox.value;var b=this._sLastTextboxValue;if(a!=b){this._sLastTextboxValue=a;this._sendQuery(a)}};YAHOO.widget.AutoComplete.prototype._clearInterval=function(){if(this._queryInterval){clearInterval(this._queryInterval);this._queryInterval=null}};YAHOO.widget.AutoComplete.prototype._isIgnoreKey=function(a){if((a==9)||(a==13)||(a==16)||(a==17)||(a>=18&&a<=20)||(a==27)||(a>=33&&a<=35)||(a>=36&&a<=40)||(a>=44&&a<=45)||(a==229)){return true}return false};YAHOO.widget.AutoComplete.prototype._sendQuery=function(b){if(this.minQueryLength<0){this._toggleContainer(false);return}if(this.delimChar){var a=this._extractQuery(b);b=a.query;this._sPastSelections=a.previous}if((b&&(b.length<this.minQueryLength))||(!b&&this.minQueryLength>0)){if(this._nDelayID!=-1){clearTimeout(this._nDelayID)}this._toggleContainer(false);return}b=encodeURIComponent(b);this._nDelayID=-1;if(this.dataSource.queryMatchSubset||this.queryMatchSubset){var d=this.getSubsetMatches(b);if(d){this.handleResponse(b,d,{query:b});return}}if(this.responseStripAfter){this.dataSource.doBeforeParseData=this.preparseRawResponse}if(this.applyLocalFilter){this.dataSource.doBeforeCallback=this.filterResults}var f=this.generateRequest(b);this.dataRequestEvent.fire(this,b,f);this.dataSource.sendRequest(f,{success:this.handleResponse,failure:this.handleResponse,scope:this,argument:{query:b}})};YAHOO.widget.AutoComplete.prototype._populateList=function(l,r,u){if(this._nTypeAheadDelayID!=-1){clearTimeout(this._nTypeAheadDelayID)}l=(u&&u.query)?u.query:l;var o=this.doBeforeLoadData(l,r,u);if(o&&!r.error){this.dataReturnEvent.fire(this,l,r.results);if(this._bFocused||(this._bFocused===null)){var j=decodeURIComponent(l);this._sCurQuery=j;this._bItemSelected=false;var b=r.results,w=Math.min(b.length,this.maxResultsDisplayed),m=(this.dataSource.responseSchema.fields)?(this.dataSource.responseSchema.fields[0].key||this.dataSource.responseSchema.fields[0]):0;if(w>0){if(!this._elList||(this._elList.childNodes.length<w)){this._initListEl()}this._initContainerHelperEls();var n=this._elList.childNodes;for(var d=w-1;d>=0;d--){var f=n[d],s=b[d];if(this.resultTypeList){var v=[];v[0]=(YAHOO.lang.isString(s))?s:s[m]||s[this.key];var k=this.dataSource.responseSchema.fields;if(YAHOO.lang.isArray(k)&&(k.length>1)){for(var h=1,a=k.length;h<a;h++){v[v.length]=s[k[h].key||k[h]]}}else{if(YAHOO.lang.isArray(s)){v=s}else{if(YAHOO.lang.isString(s)){v=[s]}else{v[1]=s}}}s=v}f._sResultMatch=(YAHOO.lang.isString(s))?s:(YAHOO.lang.isArray(s))?s[0]:(s[m]||"");f._oResultData=s;f.innerHTML=this.formatResult(s,j,f._sResultMatch);f.style.display=""}if(w<n.length){var q;for(var g=n.length-1;g>=w;g--){q=n[g];q.style.display="none"}}this._nDisplayedItems=w;this.containerPopulateEvent.fire(this,l,b);if(this.autoHighlight){var t=this._elList.firstChild;this._toggleHighlight(t,"to");this.itemArrowToEvent.fire(this,t);this._typeAhead(t,l)}else{this._toggleHighlight(this._elCurListItem,"from")}o=this.doBeforeExpandContainer(this._elTextbox,this._elContainer,l,b);this._toggleContainer(o)}else{this._toggleContainer(false)}return}}else{this.dataErrorEvent.fire(this,l)}};YAHOO.widget.AutoComplete.prototype._clearSelection=function(){var a=(this.delimChar)?this._extractQuery(this._elTextbox.value):{previous:"",query:this._elTextbox.value};this._elTextbox.value=a.previous;this.selectionEnforceEvent.fire(this,a.query)};YAHOO.widget.AutoComplete.prototype._textMatchesOption=function(){var a=null;for(var f=0;f<this._nDisplayedItems;f++){var d=this._elList.childNodes[f];var b=(""+d._sResultMatch).toLowerCase();if(b==this._sCurQuery.toLowerCase()){a=d;break}}return(a)};YAHOO.widget.AutoComplete.prototype._typeAhead=function(f,b){if(!this.typeAhead||(this._nKeyCode==8)){return}var a=this,d=this._elTextbox;if(d.setSelectionRange||d.createTextRange){this._nTypeAheadDelayID=setTimeout(function(){var h=d.value.length;a._updateValue(f);var g=d.value.length;a._selectText(d,h,g);var j=d.value.substr(h,g);a.typeAheadEvent.fire(a,b,j)},(this.typeAheadDelay*1000))}};YAHOO.widget.AutoComplete.prototype._selectText=function(b,a,f){if(b.setSelectionRange){b.setSelectionRange(a,f)}else{if(b.createTextRange){var d=b.createTextRange();d.moveStart("character",a);d.moveEnd("character",f-b.value.length);d.select()}else{b.select()}}};YAHOO.widget.AutoComplete.prototype._extractQuery=function(b){var j=this.delimChar,f=-1,d,g,k=j.length-1,h;for(;k>=0;k--){d=b.lastIndexOf(j[k]);if(d>f){f=d}}if(j[k]==" "){for(var a=j.length-1;a>=0;a--){if(b[f-1]==j[a]){f--;break}}}if(f>-1){g=f+1;while(b.charAt(g)==" "){g+=1}h=b.substring(0,g);b=b.substr(g)}else{h=""}return{previous:h,query:b}};YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers=function(d){var b=this._elContent.offsetWidth+"px";var g=this._elContent.offsetHeight+"px";if(this.useIFrame&&this._elIFrame){var f=this._elIFrame;if(d){f.style.width=b;f.style.height=g;f.style.padding=""}else{f.style.width=0;f.style.height=0;f.style.padding=0}}if(this.useShadow&&this._elShadow){var a=this._elShadow;if(d){a.style.width=b;a.style.height=g}else{a.style.width=0;a.style.height=0}}};YAHOO.widget.AutoComplete.prototype._toggleContainer=function(h){var a=this._elContainer;if(this.alwaysShowContainer&&this._bContainerOpen){return}if(!h){this._toggleHighlight(this._elCurListItem,"from");this._nDisplayedItems=0;this._sCurQuery=null;if(this._elContent.style.display=="none"){return}}var f=this._oAnim;if(f&&f.getEl()&&(this.animHoriz||this.animVert)){if(f.isAnimated()){f.stop(true)}var k=this._elContent.cloneNode(true);a.appendChild(k);k.style.top="-9000px";k.style.width="";k.style.height="";k.style.display="";var l=k.offsetWidth;var b=k.offsetHeight;var d=(this.animHoriz)?0:l;var m=(this.animVert)?0:b;f.attributes=(h)?{width:{to:l},height:{to:b}}:{width:{to:d},height:{to:m}};if(h&&!this._bContainerOpen){this._elContent.style.width=d+"px";this._elContent.style.height=m+"px"}else{this._elContent.style.width=l+"px";this._elContent.style.height=b+"px"}a.removeChild(k);k=null;var j=this;var g=function(){f.onComplete.unsubscribeAll();if(h){j._toggleContainerHelpers(true);j._bContainerOpen=h;j.containerExpandEvent.fire(j)}else{j._elContent.style.display="none";j._bContainerOpen=h;j.containerCollapseEvent.fire(j)}};this._toggleContainerHelpers(false);this._elContent.style.display="";f.onComplete.subscribe(g);f.animate()}else{if(h){this._elContent.style.display="";this._toggleContainerHelpers(true);this._bContainerOpen=h;this.containerExpandEvent.fire(this)}else{this._toggleContainerHelpers(false);this._elContent.style.display="none";this._bContainerOpen=h;this.containerCollapseEvent.fire(this)}}};YAHOO.widget.AutoComplete.prototype._toggleHighlight=function(a,b){if(a){var d=this.highlightClassName;if(this._elCurListItem){YAHOO.util.Dom.removeClass(this._elCurListItem,d);this._elCurListItem=null}if((b=="to")&&d){YAHOO.util.Dom.addClass(a,d);this._elCurListItem=a}}};YAHOO.widget.AutoComplete.prototype._togglePrehighlight=function(d,b){if(d==this._elCurListItem){return}var a=this.prehighlightClassName;if((b=="mouseover")&&a){YAHOO.util.Dom.addClass(d,a)}else{YAHOO.util.Dom.removeClass(d,a)}};YAHOO.widget.AutoComplete.prototype._updateValue=function(g){if(!this.suppressInputUpdate){var b=this._elTextbox;var d=(this.delimChar)?(this.delimChar[0]||this.delimChar):null;var h=g._sResultMatch;var f="";if(d){f=this._sPastSelections;f+=h+d;if(d!=" "){f+=" "}}else{f=h}b.value=f;if(b.type=="textarea"){b.scrollTop=b.scrollHeight}var a=b.value.length;this._selectText(b,a,a);this._elCurListItem=g}};YAHOO.widget.AutoComplete.prototype._selectItem=function(a){this._bItemSelected=true;this._updateValue(a);this._sPastSelections=this._elTextbox.value;this._clearInterval();this.itemSelectEvent.fire(this,a,a._oResultData);this._toggleContainer(false)};YAHOO.widget.AutoComplete.prototype._jumpSelection=function(){if(this._elCurListItem){this._selectItem(this._elCurListItem)}else{this._toggleContainer(false)}};YAHOO.widget.AutoComplete.prototype._moveSelection=function(j){if(this._bContainerOpen){var h=this._elCurListItem,a=-1;if(h){a=h._nItemIndex}var l=(j==40)?(a+1):(a-1);if(l<-2||l>=this._nDisplayedItems){return}if(h){this._toggleHighlight(h,"from");this.itemArrowFromEvent.fire(this,h)}if(l==-1){if(this.delimChar){this._elTextbox.value=this._sPastSelections+this._sCurQuery}else{this._elTextbox.value=this._sCurQuery}return}if(l==-2){this._toggleContainer(false);return}var k=this._elList.childNodes[l],d=this._elContent,b=YAHOO.util.Dom.getStyle(d,"overflow"),g=YAHOO.util.Dom.getStyle(d,"overflowY"),f=((b=="auto")||(b=="scroll")||(g=="auto")||(g=="scroll"));if(f&&(l>-1)&&(l<this._nDisplayedItems)){if(j==40){if((k.offsetTop+k.offsetHeight)>(d.scrollTop+d.offsetHeight)){d.scrollTop=(k.offsetTop+k.offsetHeight)-d.offsetHeight}else{if((k.offsetTop+k.offsetHeight)<d.scrollTop){d.scrollTop=k.offsetTop}}}else{if(k.offsetTop<d.scrollTop){this._elContent.scrollTop=k.offsetTop}else{if(k.offsetTop>(d.scrollTop+d.offsetHeight)){this._elContent.scrollTop=(k.offsetTop+k.offsetHeight)-d.offsetHeight}}}}this._toggleHighlight(k,"to");this.itemArrowToEvent.fire(this,k);if(this.typeAhead){this._updateValue(k)}}};YAHOO.widget.AutoComplete.prototype._onContainerMouseover=function(a,d){var b=YAHOO.util.Event.getTarget(a);var f=b.nodeName.toLowerCase();while(b&&(f!="table")){switch(f){case"body":return;case"li":if(d.prehighlightClassName){d._togglePrehighlight(b,"mouseover")}else{d._toggleHighlight(b,"to")}d.itemMouseOverEvent.fire(d,b);break;case"div":if(YAHOO.util.Dom.hasClass(b,"yui-ac-container")){d._bOverContainer=true;return}break;default:break}b=b.parentNode;if(b){f=b.nodeName.toLowerCase()}}};YAHOO.widget.AutoComplete.prototype._onContainerMouseout=function(a,d){var b=YAHOO.util.Event.getTarget(a);var f=b.nodeName.toLowerCase();while(b&&(f!="table")){switch(f){case"body":return;case"li":if(d.prehighlightClassName){d._togglePrehighlight(b,"mouseout")}else{d._toggleHighlight(b,"from")}d.itemMouseOutEvent.fire(d,b);break;case"ul":d._toggleHighlight(d._elCurListItem,"to");break;case"div":if(YAHOO.util.Dom.hasClass(b,"yui-ac-container")){d._bOverContainer=false;return}break;default:break}b=b.parentNode;if(b){f=b.nodeName.toLowerCase()}}};YAHOO.widget.AutoComplete.prototype._onContainerClick=function(a,d){var b=YAHOO.util.Event.getTarget(a);var f=b.nodeName.toLowerCase();while(b&&(f!="table")){switch(f){case"body":return;case"li":d._toggleHighlight(b,"to");d._selectItem(b);return;default:break}b=b.parentNode;if(b){f=b.nodeName.toLowerCase()}}};YAHOO.widget.AutoComplete.prototype._onContainerScroll=function(a,b){b._focus()};YAHOO.widget.AutoComplete.prototype._onContainerResize=function(a,b){b._toggleContainerHelpers(b._bContainerOpen)};YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown=function(a,d){var b=a.keyCode;if(d._nTypeAheadDelayID!=-1){clearTimeout(d._nTypeAheadDelayID)}switch(b){case 9:if(!YAHOO.env.ua.opera&&(navigator.userAgent.toLowerCase().indexOf("mac")==-1)||(YAHOO.env.ua.webkit>420)){if(d._elCurListItem){if(d.delimChar&&(d._nKeyCode!=b)){if(d._bContainerOpen){YAHOO.util.Event.stopEvent(a)}}d._selectItem(d._elCurListItem)}else{d._toggleContainer(false)}}break;case 13:if(!YAHOO.env.ua.opera&&(navigator.userAgent.toLowerCase().indexOf("mac")==-1)||(YAHOO.env.ua.webkit>420)){if(d._elCurListItem){if(d._nKeyCode!=b){if(d._bContainerOpen){YAHOO.util.Event.stopEvent(a)}}d._selectItem(d._elCurListItem)}else{d._toggleContainer(false)}}break;case 27:d._toggleContainer(false);return;case 39:d._jumpSelection();break;case 38:if(d._bContainerOpen){YAHOO.util.Event.stopEvent(a);d._moveSelection(b)}break;case 40:if(d._bContainerOpen){YAHOO.util.Event.stopEvent(a);d._moveSelection(b)}break;default:d._bItemSelected=false;d._toggleHighlight(d._elCurListItem,"from");d.textboxKeyEvent.fire(d,b);break}if(b===18){d._enableIntervalDetection()}d._nKeyCode=b};YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress=function(a,d){var b=a.keyCode;if(YAHOO.env.ua.opera||(navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&(YAHOO.env.ua.webkit<420)){switch(b){case 9:if(d._bContainerOpen){if(d.delimChar){YAHOO.util.Event.stopEvent(a)}if(d._elCurListItem){d._selectItem(d._elCurListItem)}else{d._toggleContainer(false)}}break;case 13:if(d._bContainerOpen){YAHOO.util.Event.stopEvent(a);if(d._elCurListItem){d._selectItem(d._elCurListItem)}else{d._toggleContainer(false)}}break;default:break}}else{if(b==229){d._enableIntervalDetection()}}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp=function(a,d){var f=this.value;d._initProps();var b=a.keyCode;if(d._isIgnoreKey(b)){return}if(d._nDelayID!=-1){clearTimeout(d._nDelayID)}d._nDelayID=setTimeout(function(){d._sendQuery(f)},(d.queryDelay*1000))};YAHOO.widget.AutoComplete.prototype._onTextboxFocus=function(a,b){if(!b._bFocused){b._elTextbox.setAttribute("autocomplete","off");b._bFocused=true;b._sInitInputValue=b._elTextbox.value;b.textboxFocusEvent.fire(b)}};YAHOO.widget.AutoComplete.prototype._onTextboxBlur=function(a,b){if(!b._bOverContainer||(b._nKeyCode==9)){if(!b._bItemSelected){var d=b._textMatchesOption();if(!b._bContainerOpen||(b._bContainerOpen&&(d===null))){if(b.forceSelection){b._clearSelection()}else{b.unmatchedItemSelectEvent.fire(b,b._sCurQuery)}}else{if(b.forceSelection){b._selectItem(d)}}}b._clearInterval();b._bFocused=false;if(b._sInitInputValue!==b._elTextbox.value){b.textboxChangeEvent.fire(b)}b.textboxBlurEvent.fire(b);b._toggleContainer(false)}else{b._focus()}};YAHOO.widget.AutoComplete.prototype._onWindowUnload=function(a,b){if(b&&b._elTextbox&&b.allowBrowserAutocomplete){b._elTextbox.setAttribute("autocomplete","on")}};YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery=function(a){return this.generateRequest(a)};YAHOO.widget.AutoComplete.prototype.getListItems=function(){var b=[],d=this._elList.childNodes;for(var a=d.length-1;a>=0;a--){b[a]=d[a]}return b};YAHOO.widget.AutoComplete._cloneObject=function(f){if(!YAHOO.lang.isValue(f)){return f}var b={};if(YAHOO.lang.isFunction(f)){b=f}else{if(YAHOO.lang.isArray(f)){var d=[];for(var g=0,h=f.length;g<h;g++){d[g]=YAHOO.widget.AutoComplete._cloneObject(f[g])}b=d}else{if(YAHOO.lang.isObject(f)){for(var a in f){if(YAHOO.lang.hasOwnProperty(f,a)){if(YAHOO.lang.isValue(f[a])&&YAHOO.lang.isObject(f[a])||YAHOO.lang.isArray(f[a])){b[a]=YAHOO.widget.AutoComplete._cloneObject(f[a])}else{b[a]=f[a]}}}}else{b=f}}}return b};YAHOO.register("autocomplete",YAHOO.widget.AutoComplete,{version:"2.7.0",build:"1799"});var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};Object.extend=function(a,b){for(property in b){a[property]=b[property]}return a};Function.prototype.bind=function(b){var a=this;return function(){return a.apply(b,arguments)}};Function.prototype.bindAsEventListener=function(b){var a=this;return function(d){a.call(b,d||window.event)}};function $(){if(arguments.length==1){return b(arguments[0])}var a=[];$c(arguments).each(function(d){a.push(b(d))});return a;function b(d){if(typeof d=="string"){d=document.getElementById(d)}return d}}if(!window.Element){var Element=new Object()}Object.extend(Element,{remove:function(a){a=$(a);a.parentNode.removeChild(a)},hasClassName:function(b,d){b=$(b);if(!b||!b.className||!b.className.split){return}var a=false;b.className.split(" ").each(function(f){if(f==d){a=true}});return a},addClassName:function(a,b){a=$(a);Element.removeClassName(a,b);a.className+=" "+b},removeClassName:function(b,d){b=$(b);if(!b){return}var a="";b.className.split(" ").each(function(g,f){if(g!=d){if(f>0){a+=" "}a+=g}});b.className=a},cleanWhitespace:function(a){a=$(a);$c(a.childNodes).each(function(b){if(b.nodeType==3&&!/\S/.test(b.nodeValue)){Element.remove(b)}})},find:function(a,b){a=$(a)[b];while(a.nodeType!=1){a=a[b]}return a}});var Position={cumulativeOffset:function(b){var a=0,d=0;do{a+=b.offsetTop||0;d+=b.offsetLeft||0;b=b.offsetParent}while(b);return[d,a]}};document.getElementsByClassName=function(b){var a=document.getElementsByTagName("*")||document.all;var d=[];$c(a).each(function(f){if(Element.hasClassName(f,b)){d.push(f)}});return d};Array.prototype.each=function(b){for(var a=0;ob=this[a];a++){b(ob,a)}};function $c(b){var a=[];for(i=0;el=b[i];i++){a.push(el)}return a}var fx=new Object();fx.Base=function(){};fx.Base.prototype={setOptions:function(a){this.options={duration:500,onComplete:"",transition:fx.sinoidal};Object.extend(this.options,a||{})},step:function(){var b=(new Date).getTime();if(b>=this.options.duration+this.startTime){this.now=this.to;clearInterval(this.timer);this.timer=null;if(this.options.onComplete){setTimeout(this.options.onComplete.bind(this),10)}}else{var a=(b-this.startTime)/(this.options.duration);this.now=this.options.transition(a)*(this.to-this.from)+this.from}this.increase()},custom:function(b,a){if(this.timer!=null){return}this.from=b;this.to=a;this.startTime=(new Date).getTime();this.timer=setInterval(this.step.bind(this),13)},hide:function(){this.now=0;this.increase()},clearTimer:function(){clearInterval(this.timer);this.timer=null}};fx.Layout=Class.create();fx.Layout.prototype=Object.extend(new fx.Base(),{initialize:function(b,a){this.el=$(b);this.el.style.overflow="hidden";this.iniWidth=this.el.offsetWidth;this.iniHeight=this.el.offsetHeight;this.setOptions(a)}});fx.Height=Class.create();Object.extend(Object.extend(fx.Height.prototype,fx.Layout.prototype),{increase:function(){this.el.style.height=this.now+"px"},toggle:function(){if(this.el.offsetHeight>0){this.custom(this.el.offsetHeight,0)}else{this.custom(0,this.el.scrollHeight)}}});fx.Width=Class.create();Object.extend(Object.extend(fx.Width.prototype,fx.Layout.prototype),{increase:function(){this.el.style.width=this.now+"px"},toggle:function(){if(this.el.offsetWidth>0){this.custom(this.el.offsetWidth,0)}else{this.custom(0,this.iniWidth)}}});fx.Opacity=Class.create();fx.Opacity.prototype=Object.extend(new fx.Base(),{initialize:function(b,a){this.el=$(b);this.now=1;this.increase();this.setOptions(a)},increase:function(){if(this.now==1&&(/Firefox/.test(navigator.userAgent))){this.now=0.9999}this.setOpacity(this.now)},setOpacity:function(a){if(a==0&&this.el.style.visibility!="hidden"){this.el.style.visibility="hidden"}else{if(this.el.style.visibility!="visible"){this.el.style.visibility="visible"}}this.el.style.filter="alpha(opacity="+a*100+")";this.el.style.opacity=a},toggle:function(){if(this.now>0){this.custom(1,0)}else{this.custom(0,1)}}});fx.sinoidal=function(a){return((-Math.cos(a*Math.PI)/2)+0.5)};fx.linear=function(a){return a};fx.cubic=function(a){return Math.pow(a,3)};fx.circ=function(a){return Math.sqrt(a)};fx.Scroll=Class.create();fx.Scroll.prototype=Object.extend(new fx.Base(),{initialize:function(a){this.setOptions(a)},scrollTo:function(f){var b=Position.cumulativeOffset($(f))[1];var a=YAHOO.util.Dom.getClientHeight();var d=OZONE.visuals.bodyHeight();var g=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(b+a>d){this.custom(g,b-a+(d-b))}else{this.custom(g,b)}},increase:function(){window.scrollTo(0,this.now)}});fx.ScrollCenter=Class.create();fx.ScrollCenter.prototype=Object.extend(new fx.Base(),{initialize:function(a){this.setOptions(a)},scrollTo:function(g){var b=$(g).offsetHeight;var d=Position.cumulativeOffset($(g))[1];var a=YAHOO.util.Dom.getClientHeight();if(b<a){d=Math.max(d-a*0.5+b*0.5,0)}var f=OZONE.visuals.bodyHeight();var h=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(d+a>f){this.custom(h,f-a)}else{this.custom(h,d)}},increase:function(){window.scrollTo(0,this.now)}});fx.ScrollBottom=Class.create();fx.ScrollBottom.prototype=Object.extend(new fx.Base(),{initialize:function(a){this.setOptions(a)},scrollTo:function(f){var b=Position.cumulativeOffset($(f))[1];var a=YAHOO.util.Dom.getClientHeight();var b=Math.max(b-a+40,0);var d=OZONE.visuals.bodyHeight();var g=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(b+a>d){this.custom(g,b-a+(d-b))}else{this.custom(g,b)}},increase:function(){window.scrollTo(0,this.now)}});fx.Text=Class.create();fx.Text.prototype=Object.extend(new fx.Base(),{initialize:function(b,a){this.el=$(b);this.setOptions(a);if(!this.options.unit){this.options.unit="em"}},increase:function(){this.el.style.fontSize=this.now+this.options.unit}});fx.Combo=Class.create();fx.Combo.prototype={setOptions:function(a){this.options={opacity:true,height:true,width:false};Object.extend(this.options,a||{})},initialize:function(b,a){this.el=$(b);this.setOptions(a);if(this.options.opacity){this.o=new fx.Opacity(b,a);a.onComplete=null}if(this.options.height){this.h=new fx.Height(b,a);a.onComplete=null}if(this.options.width){this.w=new fx.Width(b,a)}},toggle:function(){this.checkExec("toggle")},hide:function(){this.checkExec("hide")},clearTimer:function(){this.checkExec("clearTimer")},checkExec:function(a){if(this.o){this.o[a]()}if(this.h){this.h[a]()}if(this.w){this.w[a]()}},resizeTo:function(a,b){if(this.h&&this.w){this.h.custom(this.el.offsetHeight,this.el.offsetHeight+a);this.w.custom(this.el.offsetWidth,this.el.offsetWidth+b)}},customSize:function(a,b){if(this.h&&this.w){this.h.custom(this.el.offsetHeight,a);this.w.custom(this.el.offsetWidth,b)}}};fx.Accordion=Class.create();fx.Accordion.prototype={setOptions:function(a){this.options={delay:100,opacity:false};Object.extend(this.options,a||{})},initialize:function(b,d,a){this.elements=d;this.setOptions(a);var a=a||"";d.each(function(g,f){a.onComplete=function(){if(g.offsetHeight>0){g.style.height="1%"}};g.fx=new fx.Combo(g,a);g.fx.hide()});b.each(function(g,f){g.onclick=function(){this.showThisHideOpen(d[f])}.bind(this)}.bind(this))},showThisHideOpen:function(a){this.elements.each(function(d,b){if(d.offsetHeight>0&&d!=a){this.clearAndToggle(d)}}.bind(this));if(a.offsetHeight==0){setTimeout(function(){this.clearAndToggle(a)}.bind(this),this.options.delay)}},clearAndToggle:function(a){a.fx.clearTimer();a.fx.toggle()}};var Remember=new Object();Remember=function(){};Remember.prototype={initialize:function(d,a){this.el=$(d);this.days=365;this.options=a;this.effect();var b=this.readCookie();if(b){this.fx.now=b;this.fx.increase()}},setCookie:function(d){var b=new Date();b.setTime(b.getTime()+(this.days*24*60*60*1000));var a="; expires="+b.toGMTString();document.cookie=this.el+this.el.id+this.prefix+"="+d+a+"; path=/"},readCookie:function(){var d=this.el+this.el.id+this.prefix+"=";var a=document.cookie.split(";");for(var b=0;c=a[b];b++){while(c.charAt(0)==" "){c=c.substring(1,c.length)}if(c.indexOf(d)==0){return c.substring(d.length,c.length)}}return false},custom:function(b,a){if(this.fx.now!=a){this.setCookie(a);this.fx.custom(b,a)}}};fx.RememberHeight=Class.create();fx.RememberHeight.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Height(this.el,this.options);this.prefix="height"},toggle:function(){if(this.el.offsetHeight==0){this.setCookie(this.el.scrollHeight)}else{this.setCookie(0)}this.fx.toggle()},resize:function(a){this.setCookie(this.el.offsetHeight+a);this.fx.custom(this.el.offsetHeight,this.el.offsetHeight+a)},hide:function(){if(!this.readCookie()){this.fx.hide()}}});fx.RememberText=Class.create();fx.RememberText.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Text(this.el,this.options);this.prefix="text"}});Array.prototype.each=function(b){for(var a=0;ob=this[a];a++){b(ob,a)}};fx.expoIn=function(a){return Math.pow(2,10*(a-1))};fx.expoOut=function(a){return(-Math.pow(2,-10*a)+1)};fx.quadIn=function(a){return Math.pow(a,2)};fx.quadOut=function(a){return -(a)*(a-2)};fx.circOut=function(a){return Math.sqrt(1-Math.pow(a-1,2))};fx.circIn=function(a){return -(Math.sqrt(1-Math.pow(a,2))-1)};fx.backIn=function(a){return(a)*a*((2.7)*a-1.7)};fx.backOut=function(a){return((a-1)*(a-1)*((2.7)*(a-1)+1.7)+1)};fx.sineOut=function(a){return Math.sin(a*(Math.PI/2))};fx.sineIn=function(a){return -Math.cos(a*(Math.PI/2))+1};fx.sineInOut=function(a){return -(Math.cos(Math.PI*a)-1)/2};var JSON=JSON||{copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(d){var b=[];function h(a){b[b.length]=a}function f(a){var m,k,g,j;switch(typeof a){case"object":if(a){if(a instanceof Array){h("[");g=b.length;for(k=0;k<a.length;k+=1){j=a[k];if(typeof j!="undefined"&&typeof j!="function"){if(g<b.length){h(",")}f(j)}}h("]");return}else{if(typeof a.valueOf=="function"){h("{");g=b.length;for(k in a){j=a[k];if(typeof j!="undefined"&&typeof j!="function"&&(!j||typeof j!="object"||typeof j.valueOf=="function")){if(g<b.length){h(",")}f(k);h(":");f(j)}}return h("}")}}}h("null");return;case"number":h(isFinite(a)?+a:"null");return;case"string":g=a.length;h('"');for(k=0;k<g;k+=1){m=a.charAt(k);if(m>=" "){if(m=="\\"||m=='"'){h("\\")}h(m)}else{switch(m){case"\b":h("\\b");break;case"\f":h("\\f");break;case"\n":h("\\n");break;case"\r":h("\\r");break;case"\t":h("\\t");break;default:m=m.charCodeAt();h("\\u00"+Math.floor(m/16).toString(16)+(m%16).toString(16))}}}h('"');return;case"boolean":h(String(a));return;default:h("null");return}}f(d);return b.join("")},parse:function(text){return(/^(\s+|[,:{}\[\]]|"(\\["\\\/bfnrtu]|[^\x00-\x1f"\\]+)*"|-?\d+(\.\d*)?([eE][+-]?\d+)?|true|false|null)+$/.test(text))&&eval("("+text+")")}};(function(a){SpamKiller=(function(){var f=false;var d=false;var b={init:function(){b.displayLogout();b.bindActions()},bindActions:function(){if(!b.actionsBinded){b.bindToolbar();b.bindUsers();b.bindLinks();b.bindQueueButtons();b.actionsBinded=true}},loadCss:function(){if(!b.cssLoaded){a("head").append('<link href="/common--misc/spamkiller/tools.css" rel="stylesheet">');b.cssLoaded=true}},displayLogin:function(){b.loadCss();b.bindActions();var g=a('<div class="sk-toolbar">                         <form>Login: <input type="password" name="password"></form>                     </div>');a(".sk-toolbar").remove();a(g).appendTo("body");a("input",g).focus()},displayLogout:function(){b.loadCss();var g=a('<div class="sk-toolbar">                         <span class="logout">Logout</span>                         <span class="sk-more actions" style="display: none;"></span>                         <span class="sk-more log" style="display: none;"></span>                     </div>');var h=a(".actions",g);a('<span class="sk-queue-button sk-btn-danger">KILL SITE</span>').data("action","kill").data("type","site").data("id",WIKIREQUEST.info.siteId).appendTo(h);a('<span class="sk-queue-button sk-btn-success">RESTORE SITE</span>').data("action","restore").data("type","site").data("id",WIKIREQUEST.info.siteId).appendTo(h);a(".sk-toolbar").remove();a(g).appendTo("body")},bindToolbar:function(){a("body").on("submit",".sk-toolbar form",function(){a.ajax({url:"/killer.php",type:"POST",data:{action:"login",password:a("input[name=password]",this).val()},dataType:"json"}).success(function(h,g,j){if(h.error){b.displayLogin()}else{b.init()}});return false});a("body").on("click",".sk-toolbar .logout",function(){a.ajax({url:"/killer.php",type:"POST",data:{action:"logout"}}).success(function(){b.displayLogin()})});a("body").on("mouseenter",".sk-toolbar",function(){a(".sk-more",this).show()}).on("mouseleave",".sk-toolbar",function(){a(".sk-more",this).hide()})},bindUsers:function(){a("body").on("mouseenter",".printuser",function(){a(this).addClass("sk-chrome-fix");var j=a(this).children("a:first");var h=a(this).data("id");if(j.length){var g=(a(j).attr("onclick")).match(/\(([0-9]+)\)/);a('<span class="sk-queue-button sk-btn-danger">&#9760;</span>').data("action","kill").data("type","user").data("id",g[1]).appendTo(this)}else{if(h){a('<span class="sk-queue-button sk-btn-success">&#10014;</span>').data("action","restore").data("type","user").data("id",h).appendTo(this)}}}).on("mouseleave",".printuser",function(){a(this).removeClass("sk-chrome-fix");a(".sk-queue-button",this).remove()})},bindLinks:function(){a("body").on("mouseenter","a",function(){var g=(a(this).attr("href")).match(/^http[s]?:\/\/.*/);if(g&&g[0].indexOf("wikidot.com")==-1&&g[0].indexOf("wikidot.dev")==-1&&g[0].indexOf("wdfiles.com")==-1&&g[0].indexOf("wdfiles.dev")==-1){a(this).addClass("sk-chrome-fix");var h=a('<span class="sk-queue-button sk-btn-danger">&#9760;</span>').data("action","blacklist").data("type","domain").data("name",g[0]).appendTo(this);var j=a('<span class="sk-queue-button sk-btn-success">&check;</span>').data("action","whitelist").data("type","domain").data("name",g[0]).appendTo(this)}}).on("mouseleave","a",function(){a(this).removeClass("sk-chrome-fix");a(".sk-queue-button",this).remove()})},bindQueueButtons:function(){a("body").on("click",".sk-queue-button",function(){if(!a(this).hasClass("sk-btn-disabled")){a(this).removeClass("sk-btn-danger sk-btn-primary sk-btn-success").addClass("sk-btn-disabled");var g={action:"queue",options:{type:a(this).data("type"),action:a(this).data("action"),id:a(this).data("id"),name:a(this).data("name")}};a.ajax({url:"/killer.php",type:"POST",data:g,dataType:"json"}).success(function(j,h,k){if(j.error=="session_disabled"){b.displayLogin();alert(j.msg)}else{if(j.error){a('<div class="error">'+j.msg+"</div>").prependTo(".sk-toolbar .log")}else{a('<div class="success">'+j.msg+"</div>").prependTo(".sk-toolbar .log")}}})}return false})}};return b})()})(jQuery);var OZONE=function(){};OZONE.ajax={_callbackArray:new Array(),_callbackArrayIndex:0,_javascriptLoadLock:false,requestModule:function(d,h,k,a,b){if(!b||!b.noCursorWait){OZONE.visuals.cursorWait()}if(h==null){h=new Object()}if(d==null||d==""){d="Empty"}h.moduleName=d;if(b&&b.clearRequestQueue){OZONE.ajax._callbackArray=new Array()}var j=OZONE.ajax._callbackArrayIndex++;OZONE.ajax._callbackArray[j]={callback:k,arg:a};h.callbackIndex=j;var f=OZONE.ajax.requestModuleCallback;var g=function(){var l=jQuery.param(h);YAHOO.util.Connect.asyncRequest("POST","/ajax-module-connector.php",{success:function(q){var n=OZONE.ajax.parseResponse(q.responseText);if(n.status=="wrong_token7"){alert("wikidot.com security error:\n\nYour authentication token in the request is not valid. Please enable cookies in your browser and try to repeat the action.\n\nIf you see this message on the page not associated with the wikidot.com wiki hosting it probably means an indentity theft attempt or improper use of wikidot.com service.");OZONE.visuals.cursorClear();return}if(n.status=="try_again"){setTimeout(g,n.time_to_wait*1000);return}if(OZONE.request&&OZONE.request.timestamp&&n.CURRENT_TIMESTAMP){OZONE.request.timestamp=n.CURRENT_TIMESTAMP}var r=n.callbackIndex;if(r==null){OZONE.visuals.cursorClear();OZONE.dialog.cleanAll()}if(!OZONE.ajax._callbackArray[r]){return}var s=OZONE.ajax._callbackArray[r]["callback"];if(!s){alert("internal: callback error")}var m=OZONE.ajax._callbackArray[r]["arg"];if(m!=null){s(n,m)}else{s(n)}if(n.jsInclude!=null){for(var o=0;o<n.jsInclude.length;o++){OZONE.utils.addJavascriptUrl(n.jsInclude[o])}}if(n.cssInclude!=null){for(var o=0;o<n.cssInclude.length;o++){OZONE.utils.addStyleUrl(n.cssInclude[o])}}OZONE.visuals.cursorClear()},failure:function(m){if((b&&b.ignoreCodeZero&&m.status=="0")||!h.action){}else{alert("The ajax request failed. Please check your internet connection or\nreport a bug if the error repeats during your work.\ncode:"+m.status)}OZONE.visuals.cursorClear();OZONE.dialog.cleanAll()}},l)};g()},parseResponse:function(a){res=JSON.parse(a);if(!res){alert(a.replace(/\r?\n/g," "))}return res},requestQuickModule:function(a,f,h){if(f==null){f=new Object()}if(a==null||a==""){alert("Quick module name empty.")}var g=OZONE.ajax._callbackArrayIndex++;OZONE.ajax._callbackArray[g]=h;f.callbackIndex=g;var d=JSON.stringify(f);var b=OZONE.ajax.requestQuickModuleCallback;YAHOO.util.Connect.asyncRequest("POST","/quickmodule.php?module="+a,b,d)},requestQuickModuleCallback:{success:function(b){var a=OZONE.ajax.parseResponse(b.responseText);var d=a.callbackIndex;var f=OZONE.ajax._callbackArray[d];f(a)},failure:function(a){alert("The ajax request failed. Please check your internet connection or\nreport a bug if the error repeats during your work.")}}};OZONE.utils={formToArray:function(f){f=$(f);if(f==null){return}var d=new Object();for(i=0;i<f.length;i++){var a=f.elements[i];var b=a.type;if(b=="text"||b=="hidden"||b=="password"||b=="select-one"||b=="textarea"||b=="select"){d[a.name]=a.value}if(b=="checkbox"&&a.checked==true){d[a.name]="on"}if(b=="radio"&&a.checked==true){d[a.name]=a.value}}return d},arrayToPostData:function(a){if(a==null){return null}var b="";var d;for(key in a){d=encodeURIComponent(a[key]);b+="&"+key+"="+d}if(b.length>0){b=b.substring(1)}return b},addJavascriptUrl:function(d,g,b){if(OZONE.utils._javascripLoadLock&&(new Date()).getTime()<OZONE.utils._javascripLoadLock+2000){setTimeout(function(){OZONE.utils.addJavascriptUrl(d,g,b)},50);return}OZONE.utils._javascripLoadLock=false;var f=document.getElementsByTagName("head").item(0);var a=f.getElementsByTagName("script");for(i=0;i<a.length;i++){if(a[i].getAttribute("src")==d){if(b){if(g){g()}return}f.removeChild(a[i])}}OZONE.utils._javascripLoadLock=(new Date()).getTime();var h=document.createElement("script");h.setAttribute("type","text/javascript");h.setAttribute("src",d);if(YAHOO.env.ua.ie){h.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){h.onreadystatechange=null;OZONE.utils._javascripLoadLock=false;if(g){g.call()}}}}else{YAHOO.util.Event.addListener(h,"load",function(){OZONE.utils._javascripLoadLock=false;if(g){g.call()}})}f.appendChild(h)},addStyleUrl:function(b,f,a){var d=document.getElementsByTagName("head").item(0);var g=d.getElementsByTagName("link");for(i=0;i<g.length;i++){if(g[i].type=="text/css"&&g[i].getAttribute("src")==b){if(a){if(f){f()}return}d.removeChild(g[i])}}var h=document.createElement("link");h.rel="stylesheet";h.type="text/css";h.href=b;if(f){YAHOO.util.Event.addListener(h,"load",f)}d.appendChild(h)},setInnerHTMLContent:function(a,d){var b=$(a);if(b){$j(b).html(d);OZONE.dialog.hovertip.dominit(b)}},disableEnterKey:function(d){var a;var b=(d.target)?d.target:d.srcElement;if(b.tagName=="TEXTAREA"){return true}if(window.event){a=window.event.keyCode}else{a=d.which}if(a==13){return false}else{return true}},escapeHtml:function(a){if(a==null||a==""){return""}return a.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},unescapeHtml:function(a){if(a==null||a==""){return""}return a.split("&gt;").join(">").split("&lt;").join("<").split("&amp;").join("&")},formatOdate:function(f){var j=$j;if(j(f).data("qwert")==true){return}j(f).data("qwert",true);var g=j(f).classData("time");var u=j(f).classData("format");u=u.toString();var o=false;var k="";var h="";var n=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var a=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var B=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var t=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");var A=new Date();if(!g[0]){var E=j(f).text();if(E.match(/^[0-9]+$/)){g=E;A.setTime(g*1000);k=A.toLocaleString()}if(E.match(/^[0-9]+\s*\|.*$/)){g=E.replace(/^([0-9]+)\s*\|.*/,"$1");k=E.replace(/^[0-9]+\s*\|\s*(.*?)(?:\|(.*))?$/,"$1");h=E.replace(/^[0-9]+\s*\|\s*(.*?)(?:\|(.*))?$/,"$2");A.setTime(g*1000);o=true}}else{A.setTime(g*1000);if(u[0]&&u.match(/^.*$/)){k=u.replace(/^\s*(.*?)(?:\|(.*))?$/,"$1");h=u.replace(/^\s*(.*?)(?:\|(.*))?$/,"$2");o=true}else{k=A.toLocaleString()}}if(o){var D;j(f).data("timestamp",g);k=k.replace(/%r/g,"%I:%M:%S %p");k=k.replace(/%R/g,"%H:%M");k=k.replace(/%T/g,"%H:%M:%S");k=k.replace(/%D/g,"%m/%d/%y");k=k.replace(/%a/g,t[A.getDay()]);k=k.replace(/%A/g,B[A.getDay()]);k=k.replace(/%b/g,a[A.getMonth()]);k=k.replace(/%B/g,n[A.getMonth()]);k=k.replace(/%c/g,A.toLocaleString());D=A.getDate();k=k.replace(/%d/g,(D<10)?"0"+D:D);k=k.replace(/%e/g,A.getDate());var v=A.getHours();k=k.replace(/%H/g,(v<10)?"0"+v:v);var w=(v-1)%12+1;k=k.replace(/%I/g,(w<10)?"0"+w:w);var C=A.getMonth();k=k.replace(/%m/g,(C+1<10)?"0"+(C+1):C+1);var s=A.getMinutes();k=k.replace(/%M/g,(s<10)?"0"+s:s);k=k.replace(/%p/g,(v<12)?"AM":"PM");var r=A.getSeconds();k=k.replace(/%S/g,(r<10)?"0"+r:r);var m=A.getYear();m=(m<10)?"0"+m:""+m;k=k.replace(/%y/g,m.substring(m.length-2));var d=A.getFullYear();k=k.replace(/%Y/g,d);if(k.match(/%z/i)){var z;z=A.toLocaleString().replace(/^.*?([A-Z]{3,}(?:\+[0-9]+)?).*$/,"$1");if(z==A.toLocaleString()){var q=A.getTimezoneOffset();if(q==0){z="GMT"}else{q=-q/60;if(Math.abs(q)<10){q=q.toString().replace(/([0-9])/,"0$1")}z=(q>0?"+":"")+q;z=z.replace(/\.5/,"30");z="GMT"+z}}k=k.replace(/%z/ig,z)}if(k.match(/%O/)||h.match(/agohover/)){var x=OZONE.request.timestamp-g;x+=Math.floor(((new Date()).getTime()-OZONE.request.date.getTime())*0.001);var l=OZONE.utils.calculateDateAgo(Math.abs(x));k=k.replace(/%O/,l);if(h.match(/agohover/)){var b=l+" "+((x<0)?ogettext("till"):ogettext("ago"));OZONE.dialog.hovertip.makeTip(f,{text:b,style:{width:"auto"}});YAHOO.util.Event.addListener(f,"mouseover",function(I){var G=$j;var H=OZONE.request.timestamp-G(this).data("timestamp");H+=Math.floor(((new Date()).getTime()-OZONE.request.date.getTime())*0.001);var F=OZONE.utils.calculateDateAgo(Math.abs(H));var y=F+" "+((H<0)?ogettext("till"):ogettext("ago"));this.hovertip.getElementsByTagName("div").item(0).innerHTML=y})}}}if(k){j(f).html(OZONE.utils.escapeHtml(k)).show()}},calculateDateAgo:function(f){var a;if(f>=60*60*24){var g=Math.floor(f/(60*60*24));a=""+g+" "+((g)>1?ogettext("days"):ogettext("day"))}else{if(f>=60*60){var b=Math.floor(f/(60*60));a=""+b+" "+((b)>1?ogettext("hours"):ogettext("hour"))}else{if(f>=60){var d=Math.floor(f/60);a=""+d+" "+((d)>1?ogettext("minutes"):ogettext("minute"))}else{if(f==0){f++}a=""+f+" "+((f)>1?ogettext("seconds"):ogettext("second"))}}}return a},loadPage:function(b,f){var d=document.createElement("form");for(p in f){var a=document.createElement("input");a.type="hidden";a.name=p;a.value=f[p];d.appendChild(a)}d.name="loadPageForm";d.action=b;d.method="post";d.display="none";d.target="_self";document.getElementsByTagName("body").item(0).appendChild(d);d.submit()},getCookie:function(d){if(document.cookie.length>0){var b=document.cookie.indexOf(d+"=");if(b!=-1){b=b+d.length+1;var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(b,a))}}return null},olang:function(a){return a.replace(/\[\[olang (.*?)\|\]\]/g,function(k,j,h,d){var g=OZONE.lang;var b=new RegExp(g+":([^|]*)(||]])");var f=k.match(b);if(f){return f[1]}})}};OZONE.lang="en";OZONE.loc={};OZONE.loc.messages={};OZONE.loc.addMessages=function(a,d){if(!OZONE.loc.messages[d]){OZONE.loc.messages[d]={}}for(var b in a){OZONE.loc.messages[d][b]=a[b]}};OZONE.loc.addMessage=function(b,a,d){if(!OZONE.loc.messages[d]){OZONE.loc.messages[d]={}}OZONE.loc.messages[d][b]=a};OZONE.loc.getMessage=function(a,b){if(OZONE.loc.messages[b]){if(OZONE.loc.messages[b][a]){return OZONE.loc.messages[b][a]}}return a};ogettext=function(a){return OZONE.loc.getMessage(a,OZONE.lang)};OZONE.visuals={cursorWait:function(){var a=document.getElementsByTagName("body")[0];YAHOO.util.Dom.addClass(a,"wait")},cursorClear:function(){var a=document.getElementsByTagName("body")[0];YAHOO.util.Dom.removeClass(a,"wait")},scrollTo:function(a,b){a=(a=="header")?"body":"#"+a;jQuery("body").scrollTo(a,0)},scrollToCenter:function(b,a){var g=null;if(a!=null&&a.blink==true){var d=b;g=function(){var h=new fx.Opacity(d,{duration:150,transition:fx.circ,onComplete:function(){this.options.onComplete="";var j=this;setTimeout(function(){j.custom(0.2,1)},500)}});h.custom(1,0.2)}}var f=new fx.ScrollCenter({duration:200,transition:fx.sineOut,onComplete:g});f.scrollTo(b);if(a!=null&&a.alterHref==true){}},scrollOffsetY:function(){var a;if(self.pageYOffset){a=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body){a=document.body.scrollTop}}}return a},bodyHeight:function(){var a,f;var d=document.body.scrollHeight;var b=document.body.offsetHeight;if(d>b){return document.body.scrollHeight}else{return document.body.offsetHeight}},initScroll:function(){if(window.location.hash!=null&&window.location.href!=""){var a=window.location.hash.replace(/#/,"");if(a!=null&&a!=""&&$(a)){OZONE.visuals.scrollTo(a,{blink:true})}}},highlightText:function(j,l){if(l.indexOf(" ")!=-1){var a=l.split(/ +/);for(var d=0;d<a.length;d++){if(!a[d].match(/^\-/)){OZONE.visuals.highlightText(j,a[d])}}return}j=$(j);if(!j){return}if(j.hasChildNodes){var g=j.childNodes;for(var d=g.length-1;d>=0;d--){OZONE.visuals.highlightText(g[d],l)}}if(j.nodeType==3){var b=new RegExp(l,"gi");if(j.nodeValue.match(b)){var f=(" "+j.nodeValue+" ").split(b);p=j.parentNode;for(var d=0;d<f.length;d++){if(d!=0){var k=document.createElement("span");k.className="search-highlight";k.appendChild(document.createTextNode(l));p.insertBefore(k,j)}var h=document.createTextNode(f[d]);if(d!=f.length-1){p.insertBefore(h,j)}else{p.replaceChild(h,j)}}}}}};OZONE.forms={};OZONE.forms.lengthLimiter=function(b,d,a){this.textElement=$(b);this.countElement=$(d);this.limit=a;YAHOO.util.Event.addListener(this.textElement,"keyup",this.keyListener,this,true);this.keyListener()};OZONE.forms.lengthLimiter.prototype.keyListener=function(d){if(this.textElement==null){return}var a=this.textElement.value.replace(/\r\n/,"\n").length;this.countElement.innerHTML=this.limit-a;if(a>this.limit){var b=this.textElement.scrollTop;this.textElement.value=this.textElement.value.substr(0,this.limit);this.textElement.scrollTop=b;a=this.textElement.value.replace(/\r\n/,"\n").length;this.countElement.innerHTML=this.limit-a}};OZONE.dom={insertAfter:function(a,d,b){if(b.nextSibling){a.insertBefore(d,b.nextSibling)}else{a.appendChild(d)}},onDomReady:function(d,b,g){if(!g){g=document}if(typeof g.getElementsByTagName!="undefined"&&(g.getElementsByTagName("body")[0]!=null||g.body!=null)&&(typeof b!="string"||$(b))){if(typeof d=="function"){d()}else{OZONE.dom.onDomReady.fs[d].call()}}else{var h;if(typeof d=="function"){if(!OZONE.dom.onDomReady.fs){OZONE.dom.onDomReady.fs=new Array()}h=OZONE.dom.onDomReady.fs.push(d)-1}else{h=d}var a="OZONE.dom.onDomReady("+h;if(typeof b=="string"){a+=',"'+b+'"'}a+=")";setTimeout(a,200)}}};OZONE.request={};OZONE.init=function(){};OZONE.dialog={};OZONE.dialog.stock=new Array();OZONE.dialog.cleanAll=function(a){var b;if(!a||typeof(a.timeout)!="number"){b=200}else{b=a.timeout}setTimeout("OZONE.dialog.factory.boxcontainer().hide()",b);setTimeout("OZONE.dialog.factory.shader().hide()",b)};OZONE.dialog.factory={shader:function(){if(OZONE.dialog.factory.stock.shader==null){OZONE.dialog.factory.stock.shader=new OZONE.dialog.shader()}return OZONE.dialog.factory.stock.shader},boxcontainer:function(){if(OZONE.dialog.factory.stock.boxcontainer==null){OZONE.dialog.factory.stock.boxcontainer=new OZONE.dialog.boxcontainer2()}return OZONE.dialog.factory.stock.boxcontainer}};OZONE.dialog.factory.stock={};OZONE.dialog.shader=function(){this.color=null;this.cssClass=null;this.setColor=function(a){this.color=a};this.show=function(){var d=document.getElementById("odialog-shader");if(d!=null){return}d=document.createElement("div");d.id="odialog-shader";var a=document.getElementsByTagName("body").item(0);if(this.color!=null){d.style.backgroundColor=this.color}if(this.cssClass!=null){d.className=this.cssClass}else{d.className="odialog-shader"}var b=document.createElement("iframe");b.id="odialog-shader-iframe";b.src="/common--misc/blank.html";b.frameBorder=0;b.className="odialog-shader-iframe";a.appendChild(b);a.appendChild(d)};this.hide=function(){var a=document.getElementsByTagName("body").item(0);var d=$("odialog-shader");var b=$("odialog-shader-iframe");if(d!=null){a.removeChild(d)}if(b!=null){a.removeChild(b)}}};OZONE.dialog.boxcontainer2=function(){this.mDiv=null;this.cDiv=null;this.init=function(){var b=$("odialog-container");if(!b){b=document.createElement("div");b.id="odialog-container";var a=document.getElementsByTagName("body").item(0);a.appendChild(b);this.mDiv=b}b.style.display="block"};this.setContent=function(g){this.clearContent();if(typeof g=="string"){$j(this.mDiv).html(g)}else{this.mDiv.appendChild(g)}OZONE.dialog.hovertip.dominit(this.mDiv,{delay:300});var f=this.mDiv.getElementsByTagName("div").item(0);f.style.visibility="hidden";this.cDiv=f;this.mDiv.style.display="block";this.centerContent();f.id="owindow-1";var d=f.getElementsByTagName("div");var b;for(b in d){if(d[b].className=="title"){d[b].id="ohandle-1";var a=new YAHOO.util.DD(this.cDiv.id);a.setHandleElId(d[b].id)}if(d[b].className=="close"){YAHOO.util.Event.addListener(d[b],"click",OZONE.dialog.cleanAll)}}};this.attachDD=function(){var d=this.cDiv.getElementsByTagName("div");var b;for(b in d){if(d[b].className=="title"){d[b].id="ohandle-1";var a=new YAHOO.util.DD(this.cDiv.id);a.setHandleElId(d[b].id)}if(d[b].className=="close"){YAHOO.util.Event.addListener(d[b],"click",OZONE.dialog.cleanAll)}}};this.clearContent=function(){this.cDiv=null;$j(this.mDiv).html("")};this.centerContent=function(){var f=this.cDiv;var a=f.offsetHeight;var d=f.offsetWidth;var g=YAHOO.util.Dom.getClientHeight();var b=YAHOO.util.Dom.getClientWidth();var j=Math.max((b-d)*0.5,0);var h=Math.max(OZONE.visuals.scrollOffsetY()+(g-a)*0.5,0);j=Math.max(0,j);h=Math.max(0,h);YAHOO.util.Dom.setXY(f,[j,h])};this.setContentObject=function(a){this.mDiv.appendChild(a)};this.showContent=function(b){this.mDiv.style.display="block";if(b&&b.smooth==true){var a=new fx.Opacity(this.cDiv,{duration:300});a.setOpacity(0);this.cDiv.style.visibility="visible";a.custom(0,1)}else{this.cDiv.style.visibility="visible"}},this.hideContent=function(){this.cDiv.style.visibility="hidden"};this.hide=function(b){if(b&&b.smooth==true){var a=new fx.Opacity(this.cDiv,{duration:300});a.setOpacity(1);a.custom(1,0)}this.clearContent();$("odialog-container").style.display="none"};this.clickOutsideToHide=function(a){YAHOO.util.Event.addListener("odialog-shader","click",OZONE.dialog.cleanAll)};this.changeContent=function(a){this.setContent(a);this.showContent()};this.init()};OZONE.dialog.hovertip={container:null,bindings:new Array(),init:function(){var b=$("odialog-hovertips");if(!b){b=document.createElement("div");b.id="odialog-hovertips";b.style.position="absolute";b.style.zIndex=100;b.style.top=0;b.style.width="100%";var a=document.getElementsByTagName("body").item(0);a.appendChild(b);OZONE.dialog.hovertip.container=b}},makeTip:function(g,o){if(typeof g!="string"&&g.length>0){for(var h=0;h<g.length;h++){OZONE.dialog.hovertip.makeTip(g[h],o)}}OZONE.dialog.hovertip.init();var j=document.getElementsByTagName("body").item(0);var d=$(g);if(!d){return}if(d.hovertip){return}var b;if(o&&o.context){b=$(o.context);if(!b){return}}else{if(o&&o.text){b=document.createElement("div");b.innerHTML='<div class="content">'+o.text+"</div>"}else{var k;if(d.attributes){for(var l=0;l<d.attributes.length;l++){if(d.attributes[l].nodeName.toLowerCase()=="title"){k=d.attributes[l].nodeValue;d.attributes[l].nodeValue=""}}}if(!k){return}b=document.createElement("div");b.innerHTML='<div class="content">'+k+"</div>"}}if(!b.className.match(/hovertip/)){b.className="hovertip "+b.className}if(o){d.hovertipOptions=o}if(o&&o.style){for(var m in o.style){b.style[m]=o.style[m]}}var n=b.getElementsByTagName("div");var f=false;for(var h=0;h<n.length;h++){if(YAHOO.util.Dom.hasClass(n[h],"content")){f=true}}if(!f){b.innerHTML='<div class="content">'+b.innerHTML+"</div>"}d.hovertip=b;var a=new fx.Opacity(d.hovertip,{duration:300});d.hovertipEffect=a;b.style.position="absolute";b.style.display="none";b.style.border="1px solid black";if(d.tagName.toLowerCase()!="a"&&(!o||!o.noCursorHelp)){d.style.cursor="help"}$("odialog-hovertips").appendChild(b);OZONE.dialog.hovertip.bindings.push([d,b]);YAHOO.util.Event.addListener(d,"mousemove",OZONE.dialog.hovertip._mousemove);YAHOO.util.Event.addListener(d,"mouseout",OZONE.dialog.hovertip._mouseout);YAHOO.util.Event.addListener(d,"mouseover",OZONE.dialog.hovertip._mouseover);return},_mouseover:function(g){var d=YAHOO.util.Event.getTarget(g);var f=d.hovertip;f.style.visibility="hidden";f.style.opacity=0;f.style.display="block";var a=d.hovertipOptions;var b=d.hovertipEffect;YAHOO.util.Dom.setXY(d.hovertip,[0,0]);OZONE.dialog.hovertip._mousemove(g);if(a&&a.delay){OZONE.dialog.tmpeff=b;setTimeout("if(OZONE.dialog.tmpeff.el.style.opacity==0)OZONE.dialog.tmpeff.custom(0,1)",a.delay)}else{b.custom(0,1)}},_mousemove:function(k){var d=YAHOO.util.Event.getTarget(k);var b=d.hovertip;var m=0;var l=0;if(!k){var k=window.event}if(k.pageX||k.pageY){m=k.pageX;l=k.pageY}else{if(k.clientX||k.clientY){m=k.clientX+document.documentElement.scrollLeft;l=k.clientY+document.documentElement.scrollTop}}var n=YAHOO.util.Dom.getViewportHeight();var a=YAHOO.util.Dom.getViewportWidth();var h=b.offsetHeight;var g=b.offsetWidth;var f=20;if(d.hovertipOptions&&d.hovertipOptions.smartWidthLimit){var j=d.hovertipOptions.smartWidthLimit;if(g>j*a){b.style.width=j*a+"px"}}if(d.hovertipOptions&&d.hovertipOptions.valign){switch(d.hovertipOptions.valign){case"center":if(n-k.clientY<h+2*f&&k.clientY>h+1.5*f){l-=h+1.5*f}l+=f;m=k.clientX-g*0.5;if(m+g>a-f){m=a-g-f}if(m<f){m=f}}}else{if(a-k.clientX<g+2*f&&k.clientX>g+1.5*f){m-=g+1.5*f}if(n-k.clientY<h+2*f&&k.clientY>h+1.5*f){l-=h+1.5*f}m+=f;l+=f}YAHOO.util.Dom.setXY(b,[m,l])},_mouseout:function(d){var a=YAHOO.util.Event.getTarget(d);var b=a.hovertip;b.style.display="none"},dominit:function(k,b){OZONE.dialog.hovertip.init();var g;if(k){g=$(k).getElementsByTagName("div")}else{g=document.getElementsByTagName("div")}var f=new Array();for(var d=0;d<g.length;d++){if(g[d].id.match(/\-hovertip$/)){f.push(g[d])}}for(var d=0;d<f.length;d++){var j=f[d];var a=j.id.replace(/\-hovertip$/,"");var h=$(a);if(h){if(!b){var b=new Object()}b.context=j;OZONE.dialog.hovertip.makeTip(h,b)}}},hideAll:function(){var a=$("odialog-hovertips");if(a){var d=a.getElementsByTagName("div");for(var b=0;b<d.length;b++){if(d[b].className.match(/hovertip/)){d[b].style.display="none"}}}}};OZONE.dialogs={};OZONE.dialogs.Base=function(){};OZONE.dialogs.Base.prototype={initialize:function(){this.templateBase="/common--dialogs/";this.template="";this.title=null;this.buttons=new Array();this.buttonObjects=new Array();this.clickOutsideToClose=false;this.smooth=false;this.focusButton=null;this.buttonListeners=new Object();this.windowClass="";this.content="";this.windowDiv=null;this.fixODate=true;this.style=new Object()},setButtons:function(a){},addButtonListener:function(d,b,a){this.buttonListeners[d]=b},show:function(){var f=document.createElement("div");this.windowDiv=f;f.className="owindow "+this.windowClass;var l;for(l in this.style){f.style[l]=this.style[l]}var n=document.createElement("div");$j(n).html(this.content);if(n.getElementsByTagName("div").item(0)&&YAHOO.util.Dom.hasClass(n.getElementsByTagName("div").item(0),"owindow")){f=n.getElementsByTagName("div").item(0)}else{if(YAHOO.util.Dom.getElementsByClassName("content","div",n).length==1){$j(f).html(n.innerHTML)}else{if(this.title!=null){var b=document.createElement("div");b.className="title modal-header";$j(b).html(this.title);f.appendChild(b)}var d=n;d.className="content modal-body";f.appendChild(d);if(this.buttons.length>0){var g=document.createElement("div");g.className="button-bar modal-footer";for(var h=0;h<this.buttons.length;h++){var m=this.buttons[h];var k=document.createElement("a");k.href="javascript:;";k.innerHTML=ogettext(m);k.className="btn btn-default button button-"+m.toLowerCase().replace(/ /g,"-");if(this.buttonListeners[m]){YAHOO.util.Event.addListener(k,"click",this.buttonListeners[m],this,true)}g.appendChild(k);this.buttonObjects[m]=k}f.appendChild(g)}}}OZONE.dialog.factory.shader().show();var a=OZONE.dialog.factory.boxcontainer();a.setContent(f);if(this.smooth==true){a.showContent({smooth:true})}else{a.showContent()}if(this.clickOutsideToClose){a.clickOutsideToHide()}if(this.focusButton&&this.buttonObjects[this.focusButton]){this.buttonObjects[this.focusButton].focus()}},hide:function(){if(this.smooth==true){var a=new fx.Opacity(this.windowDiv,{duration:100});a.custom(1,0)}},close:function(){this.hide();OZONE.dialog.cleanAll({timeout:200})}};OZONE.dialogs.SmallInfoBox=Class.create();OZONE.dialogs.SmallInfoBox.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="o-infobox"}});OZONE.dialogs.WaitBox=Class.create();OZONE.dialogs.WaitBox.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="owait"}});OZONE.dialogs.SuccessBox=Class.create();OZONE.dialogs.SuccessBox.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="osuccess";this.timeout=1500}});OZONE.dialogs.SuccessBox.prototype.show=function(){OZONE.dialogs.Base.prototype.show.call(this);if(this.timeout){setTimeout("OZONE.dialog.cleanAll()",this.timeout)}};OZONE.dialogs.ErrorDialog=Class.create();OZONE.dialogs.ErrorDialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.windowClass="error";this.title="Error";var a="close message";this.buttons=[a];this.addButtonListener(a,this.close);this.focusButton=a}});OZONE.dialogs.ConfirmationDialog=Class.create();OZONE.dialogs.ConfirmationDialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.windowClass="confirmation";this.title="Confirmation"}});OZONE.dialogs.SuccessDialog=Class.create();OZONE.dialogs.SuccessDialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="confirm";this.title="Success";this.buttons=["close message"];this.addButtonListener("close message",this.close);this.focusButton="close message"}});OZONE.dialogs.InfoDialog=Class.create();OZONE.dialogs.InfoDialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="info";this.title=" ";this.buttons=["close window"];this.addButtonListener("close window",this.close);this.focusButton="close window"}});OZONE.dialogs.ActionDialog=Class.create();OZONE.dialogs.ActionDialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="info";this.title=" ";this.buttons=["Cancel"];this.addButtonListener("Cancel",this.close);this.focusButton="Cancel"}});OZONE.dialogs.Dialog=Class.create();OZONE.dialogs.Dialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.title=""}});function exinfo2(){this.show=function(){var b=OZONE.dialog.factory.shader();b.show();var a=OZONE.dialog.factory.boxcontainer();a.setContent('<div class="box444">DUPA</div>');a.showContent()}}function listener1(){var a=new OZONE.dialog.shader();a.show()}function listener2(){e=new exinfo2();e.show()}function testdialog(){var a=new OZONE.dialogs.Base();a.template="Warning";a.content="dupowy content";a.buttons=["cancel","Ok"];a.addButtonListener("cancel",a.close);a.smooth=true;a.show()}function testdialog2(){var a=new OZONE.dialogs.ErrorDialog();a.content="<h1>Error processing template...</h1>test";a.show()}function testdialog3(){var a=new OZONE.dialogs.SuccessBox();a.content="Loading file...";a.timeout=1000;a.show()};