From 79ef2226b76675ec532a59cbbc062e2b830ce365 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sun, 26 Jun 2011 19:44:44 +0100 Subject: remove history plugin, it doesn't work with newer jquery --- docs/examples/assets/js/dependencies.js | 635 ++++++++++++++++---------------- 1 file changed, 321 insertions(+), 314 deletions(-) diff --git a/docs/examples/assets/js/dependencies.js b/docs/examples/assets/js/dependencies.js index cb7ac1d..8cc00ea 100644 --- a/docs/examples/assets/js/dependencies.js +++ b/docs/examples/assets/js/dependencies.js @@ -1,4 +1,4 @@ -// Compiled with closure-compiler on 2011-06-19 22:53:43.697107 +// Compiled with closure-compiler on 2011-06-26 19:43:10.232880 // @code_url https://raw.github.com/mochi/mochikit/master/MochiKit/Base.js // @code_url https://raw.github.com/mochi/mochikit/master/MochiKit/Async.js // @code_url http://code.jquery.com/jquery-1.6.1.js @@ -7,14 +7,15 @@ // @code_url http://flot.googlecode.com/svn/trunk/jquery.flot.stack.js // @code_url http://flot.googlecode.com/svn/trunk/jquery.flot.selection.js // @code_url http://javascriptrrd.cvs.sourceforge.net/viewvc/javascriptrrd/v0/src/lib/rrdFile.js -// @code_url https://raw.github.com/jquerytools/jquerytools/master/src/dateinput/dateinput.js -// @code_url https://raw.github.com/jquerytools/jquerytools/master/src/tabs/tabs.js -// @code_url https://raw.github.com/jquerytools/jquerytools/master/src/toolbox/toolbox.history.js +// @code_url https://raw.github.com/jquerytools/jquerytools/dev/src/dateinput/dateinput.js +// @code_url https://raw.github.com/jquerytools/jquerytools/dev/src/tabs/tabs.js // @compilation_level SIMPLE_OPTIMIZATIONS +// @formatting print_input_delimiter // @output_format text // @output_info compiled_code +// Input 0 var MochiKit=MochiKit||{};if(typeof MochiKit.__export__=="undefined")MochiKit.__export__=!0;MochiKit.NAME="MochiKit";MochiKit.VERSION="1.5";MochiKit.__repr__=function(){return"["+this.NAME+" "+this.VERSION+"]"};MochiKit.toString=function(){return this.__repr__()};MochiKit.Base=MochiKit.Base||{}; -MochiKit.Base.module=function(a,b,e,f){var j=a[b]=a[b]||{},k=a.NAME?a.NAME+".":"";j.NAME=k+b;j.VERSION=e;j.__repr__=function(){return"["+this.NAME+" "+this.VERSION+"]"};j.toString=function(){return this.__repr__()};for(b=0;f!=null&&b=0;f--)b.unshift(e[f]);else a.push(e)}return a},extend:function(a,b,e){e||(e=0);if(b){var f=b.length;if(typeof f!="number")if(typeof MochiKit.Iter!="undefined")b=MochiKit.Iter.list(b),f=b.length;else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");for(a||(a=[]);e0&&a!="false"&&a!="null"&&a!="undefined"&&a!="0":typeof a==="number"||a instanceof Number?!isNaN(a)&&a!=0:a!=null&&typeof a.length==="number"?a.length!==0:a!=null},typeMatcher:function(){for(var a={},b=0;bl)k= -l}f=[];for(e=0;ek)l= +k}f=[];for(e=0;e=0;e--)b=[a[e].apply(this,b)];return b[0]}},bind:function(a,b){typeof a=="string"&&(a=b[a]);var e=a.im_func,f=a.im_preargs,j=a.im_self,k=MochiKit.Base;typeof a=="function"&&typeof a.apply=="undefined"&&(a=k._wrapDumbFunction(a));typeof e!="function"&&(e=a);typeof b!="undefined"&&(j=b);f=typeof f=="undefined"?[]:f.slice();k.extend(f,arguments,2);var l=function(){var a=arguments,b=arguments.callee;b.im_preargs.length> -0&&(a=k.concat(b.im_preargs,a));var e=b.im_self;e||(e=this);return b.im_func.apply(e,a)};l.im_self=j;l.im_func=e;l.im_preargs=f;if(typeof e.NAME=="string")l.NAME="bind("+e.NAME+",...)";return l},bindLate:function(a){var b=MochiKit.Base,e=arguments;typeof a==="string"&&(e=b.extend([b.forwardCall(a)],arguments,1));return b.bind.apply(this,e)},bindMethods:function(a){var b=MochiKit.Base.bind,e;for(e in a){var f=a[e];typeof f=="function"&&(a[e]=b(f,a))}},registerComparator:function(a,b,e,f){MochiKit.Base.comparatorRegistry.register(a, +" is not a function");a.push(f)}return function(){for(var b=arguments,e=a.length-1;e>=0;e--)b=[a[e].apply(this,b)];return b[0]}},bind:function(a,b){typeof a=="string"&&(a=b[a]);var e=a.im_func,f=a.im_preargs,j=a.im_self,l=MochiKit.Base;typeof a=="function"&&typeof a.apply=="undefined"&&(a=l._wrapDumbFunction(a));typeof e!="function"&&(e=a);typeof b!="undefined"&&(j=b);f=typeof f=="undefined"?[]:f.slice();l.extend(f,arguments,2);var k=function(){var a=arguments,b=arguments.callee;b.im_preargs.length> +0&&(a=l.concat(b.im_preargs,a));var e=b.im_self;e||(e=this);return b.im_func.apply(e,a)};k.im_self=j;k.im_func=e;k.im_preargs=f;if(typeof e.NAME=="string")k.NAME="bind("+e.NAME+",...)";return k},bindLate:function(a){var b=MochiKit.Base,e=arguments;typeof a==="string"&&(e=b.extend([b.forwardCall(a)],arguments,1));return b.bind.apply(this,e)},bindMethods:function(a){var b=MochiKit.Base.bind,e;for(e in a){var f=a[e];typeof f=="function"&&(a[e]=b(f,a))}},registerComparator:function(a,b,e,f){MochiKit.Base.comparatorRegistry.register(a, b,e,f)},_primitives:{"boolean":!0,string:!0,number:!0},compare:function(a,b){if(a==b)return 0;var e=typeof a=="undefined"||a===null,f=typeof b=="undefined"||b===null;if(e&&f)return 0;else if(e)return-1;else if(f)return 1;e=MochiKit.Base;f=e._primitives;if(!(typeof a in f&&typeof b in f))try{return e.comparatorRegistry.match(a,b)}catch(j){if(j!=e.NotFound)throw j;}if(ab)return 1;e=e.repr;throw new TypeError(e(a)+" and "+e(b)+" can not be compared");},compareDateLike:function(a, -b){return MochiKit.Base.compare(a.getTime(),b.getTime())},compareArrayLike:function(a,b){var e=MochiKit.Base.compare,f=a.length,j=0;f>b.length?(j=1,f=b.length):fb.length?(j=1,f=b.length):f=0;j--)a+=f[j]}else a+=f}if(e<=0)throw new TypeError("mean() requires at least one argument"); return a/e},median:function(){var a=MochiKit.Base.flattenArguments(arguments);if(a.length===0)throw new TypeError("median() requires at least one argument");a.sort(MochiKit.Base.compare);if(a.length%2==0){var b=a.length/2;return(a[b]+a[b-1])/2}else return a[(a.length-1)/2]},findValue:function(a,b,e,f){if(typeof f=="undefined"||f===null)f=a.length;if(typeof e=="undefined"||e===null)e=0;for(var j=MochiKit.Base.compare;e0))var e=MochiKit.DOM.formContents(a),a=e[0],b=e[1];else if(arguments.length==1){if(typeof a.length=="number"&& -a.length==2)return arguments.callee(a[0],a[1]);var f=a,a=[],b=[],j;for(j in f)if(e=f[j],typeof e!="function")if(MochiKit.Base.isArrayLike(e))for(var k=0;k1&&(a=MochiKit.Base.partial.apply(null,arguments));return this.addCallbacks(a,a)},addCallback:function(a){arguments.length>1&&(a=MochiKit.Base.partial.apply(null,arguments));return this.addCallbacks(a,null)},addErrback:function(a){arguments.length> 1&&(a=MochiKit.Base.partial.apply(null,arguments));return this.addCallbacks(null,a)},addCallbacks:function(a,b){if(this.chained)throw Error("Chained Deferreds can not be re-used");if(this.finalized)throw Error("Finalized Deferreds can not be re-used");this.chain.push([a,b]);this.fired>=0&&this._fire();return this},setFinalizer:function(a){if(this.chained)throw Error("Chained Deferreds can not be re-used");if(this.finalized)throw Error("Finalized Deferreds can not be re-used");arguments.length>1&& -(a=MochiKit.Base.partial.apply(null,arguments));this._finalizer=a;this.fired>=0&&this._fire();return this},_fire:function(){for(var a=this.chain,b=this.fired,e=this.results[b],f=this,j=null;a.length>0&&this.paused===0;){var k=a.shift()[b];if(k!==null)try{e=k(e),b=e instanceof Error?1:0,e instanceof MochiKit.Async.Deferred&&(j=function(a){f.paused--;f._resback(a)},this.paused++)}catch(l){b=1,l instanceof Error||(l=new MochiKit.Async.GenericError(l)),e=l}}this.fired=b;this.results[b]=e;if(this.chain.length== +(a=MochiKit.Base.partial.apply(null,arguments));this._finalizer=a;this.fired>=0&&this._fire();return this},_fire:function(){for(var a=this.chain,b=this.fired,e=this.results[b],f=this,j=null;a.length>0&&this.paused===0;){var l=a.shift()[b];if(l!==null)try{e=l(e),b=e instanceof Error?1:0,e instanceof MochiKit.Async.Deferred&&(j=function(a){f.paused--;f._resback(a)},this.paused++)}catch(k){b=1,k instanceof Error||(k=new MochiKit.Async.GenericError(k)),e=k}}this.fired=b;this.results[b]=e;if(this.chain.length== 0&&this.paused===0&&this._finalizer)this.finalized=!0,this._finalizer(e);if(j&&this.paused)e.addBoth(j),e.chained=!0}}; MochiKit.Base.update(MochiKit.Async,{evalJSONRequest:function(a){return MochiKit.Base.evalJSON(a.responseText)},succeed:function(){var a=new MochiKit.Async.Deferred;a.callback.apply(a,arguments);return a},fail:function(){var a=new MochiKit.Async.Deferred;a.errback.apply(a,arguments);return a},getXMLHttpRequest:function(){var a=arguments.callee;if(!a.XMLHttpRequest)for(var b=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}, function(){return new ActiveXObject("Msxml2.XMLHTTP.4.0")},function(){throw new MochiKit.Async.BrowserComplianceError("Browser does not support XMLHttpRequest");}],e=0;e1){var b=MochiKit.Base;if(b=b.queryString.apply(null,b.extend(null,arguments,1)))return a+"?"+b}return a},doSimpleXMLHttpRequest:function(a){var b=MochiKit.Async,a=b._buildURL.apply(b,arguments);return b.doXHR(a)},loadJSONDoc:function(a){var b= +304)}catch(l){}j==200||j==201||j==204||j==304||j==1223?a.callback(this):(b=new MochiKit.Async.XMLHttpRequestError(this,"Request failed"),a.errback(b))}},_xhr_canceller:function(a){try{a.onreadystatechange=null}catch(b){try{a.onreadystatechange=MochiKit.Base.noop}catch(e){}}a.abort()},sendXMLHttpRequest:function(a,b){if(typeof b=="undefined"||b===null)b="";var e=MochiKit.Base,f=MochiKit.Async,j=new f.Deferred(e.partial(f._xhr_canceller,a));try{a.onreadystatechange=e.bind(f._xhr_onreadystatechange, +a,j),a.send(b)}catch(l){try{a.onreadystatechange=null}catch(k){}j.errback(l)}return j},doXHR:function(a,b){var e=MochiKit.Async;return e.callLater(0,e._doXHR,a,b)},_doXHR:function(a,b){var e=MochiKit.Base,b=e.update({method:"GET",sendContent:""},b),f=MochiKit.Async,j=f.getXMLHttpRequest();if(b.queryString){var l=e.queryString(b.queryString);l&&(a+="?"+l)}"username"in b?j.open(b.method,a,!0,b.username,b.password):j.open(b.method,a,!0);j.overrideMimeType&&b.mimeType&&j.overrideMimeType(b.mimeType); +j.setRequestHeader("X-Requested-With","XMLHttpRequest");if(b.headers){l=b.headers;e.isArrayLike(l)||(l=e.items(l));for(e=0;e1){var b=MochiKit.Base;if(b=b.queryString.apply(null,b.extend(null,arguments,1)))return a+"?"+b}return a},doSimpleXMLHttpRequest:function(a){var b=MochiKit.Async,a=b._buildURL.apply(b,arguments);return b.doXHR(a)},loadJSONDoc:function(a){var b= MochiKit.Async,a=b._buildURL.apply(b,arguments),e=b.doXHR(a,{mimeType:"text/plain",headers:[["Accept","application/json"]]});return e=e.addCallback(b.evalJSONRequest)},loadScript:function(a){var b=new MochiKit.Async.Deferred,e=document.createElement("script");e.type="text/javascript";e.src=a;e.onload=function(){e.onload=null;e.onerror=null;e=e.onreadystatechange=null;b.callback()};e.onerror=function(f){e.onload=null;e.onerror=null;e=e.onreadystatechange=null;f="Failed to load script at "+a+": "+f; b.errback(new URIError(f,a))};e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete")e.onload();else MochiKit.Async.callLater(10,e.onerror,"Script loading timed out")};document.getElementsByTagName("head")[0].appendChild(e);return b},wait:function(a,b){var e=new MochiKit.Async.Deferred,f=MochiKit.Base.bind("callback",e,b),j=setTimeout(f,Math.floor(a*1E3));e.canceller=function(){try{clearTimeout(j)}catch(a){}};return e},callLater:function(a){var b=MochiKit.Base,e=b.partial.apply(b, b.extend(null,arguments,1));return MochiKit.Async.wait(a).addCallback(function(){return e()})}});MochiKit.Async.DeferredLock=function(){this.waiting=[];this.locked=!1;this.id=this._nextId()}; MochiKit.Async.DeferredLock.prototype={__class__:MochiKit.Async.DeferredLock,acquire:function(){var a=new MochiKit.Async.Deferred;this.locked?this.waiting.push(a):(this.locked=!0,a.callback(this));return a},release:function(){if(!this.locked)throw TypeError("Tried to release an unlocked DeferredLock");this.locked=!1;if(this.waiting.length>0)this.locked=!0,this.waiting.shift().callback(this)},_nextId:MochiKit.Base.counter(),repr:function(){return"DeferredLock("+this.id+", "+(this.locked?"locked, "+ -this.waiting.length+" waiting":"unlocked")+")"},toString:MochiKit.Base.forwardCall("repr")};MochiKit.Async.DeferredList=function(a,b,e,f,j){MochiKit.Async.Deferred.apply(this,[j]);this.list=a;this.resultList=j=[];this.finishedCount=0;this.fireOnOneCallback=b;this.fireOnOneErrback=e;this.consumeErrors=f;e=MochiKit.Base.bind(this._cbDeferred,this);for(f=0;fa)break;c.currentTarget=x.elem;c.data=x.handleObj.data;c.handleObj=x.handleObj;s=x.handleObj.origHandler.apply(x.elem,arguments);if(s===!1||c.isPropagationStopped())if(a=x.level,s===!1&&(p=!1),c.isImmediatePropagationStopped())break}return p}}function I(c,p){return(c&&c!=="*"?c+".":"")+p.replace(pa,"`").replace(w,"&")}function M(c,p,a){p=p||0;if(d.isFunction(p))return d.grep(c,function(c,d){return!!p.call(c,d,c)===a});else if(p.nodeType)return d.grep(c, -function(c){return c===p===a});else if(typeof p==="string"){var b=d.grep(c,function(c){return c.nodeType===1});if(Da.test(p))return d.filter(p,b,!a);else p=d.filter(p,b)}return d.grep(c,function(c){return d.inArray(c,p)>=0===a})}function G(c,a){if(a.nodeType===1&&d.hasData(c)){var n=d.expando,b=d.data(c),x=d.data(a,b);if(b=b[n]){var e=b.events,x=x[n]=d.extend({},b);if(e){delete x.handle;x.events={};for(var h in e){n=0;for(b=e[h].length;n").appendTo("body"),n=a.css("display");a.remove();if(n==="none"||n===""){if(!Aa)Aa=u.createElement("iframe"),Aa.frameBorder=Aa.width=Aa.height=0;u.body.appendChild(Aa);if(!La||!Aa.createElement)La=(Aa.contentWindow|| -Aa.contentDocument).document,La.write("");a=La.createElement(c);La.body.appendChild(a);n=d.css(a,"display");u.body.removeChild(Aa)}Ta[c]=n}return Ta[c]}function va(c){return d.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:!1}var u=a.document,Q=a.navigator,W=a.location,d=function(){function c(){if(!p.isReady){try{u.documentElement.doScroll("left")}catch(a){setTimeout(c,1);return}p.ready()}}var p=function(c,a){return new p.fn.init(c,a,x)},d=a.jQuery, -C=a.$,x,e=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,f=/^\s+/,g=/\s+$/,q=/\d/,z=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,s=/^[\],:{}\s]*$/,E=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,o=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,R=/(?:^|:|,)(?:\s*\[)+/g,j=/(webkit)[ \/]([\w.]+)/,L=/(opera)(?:.*version)?[ \/]([\w.]+)/,l=/(msie) ([\w.]+)/,ba=/(mozilla)(?:.*? rv:([\w.]+))?/,Ma=Q.userAgent,Pa,X,k=Object.prototype.toString,Ua=Object.prototype.hasOwnProperty,Va=Array.prototype.push,ka=Array.prototype.slice, -K=String.prototype.trim,J=Array.prototype.indexOf,ga={};p.fn=p.prototype={constructor:p,init:function(c,a,d){var n;if(!c)return this;if(c.nodeType)return this.context=this[0]=c,this.length=1,this;if(c==="body"&&!a&&u.body)return this.context=u,this[0]=u.body,this.selector=c,this.length=1,this;if(typeof c==="string")if((n=c.charAt(0)==="<"&&c.charAt(c.length-1)===">"&&c.length>=3?[null,c,null]:e.exec(c))&&(n[1]||!a))if(n[1])return d=(a=a instanceof p?a[0]:a)?a.ownerDocument||a:u,(c=z.exec(c))?p.isPlainObject(a)? -(c=[u.createElement(c[1])],p.fn.attr.call(c,a,!0)):c=[d.createElement(c[1])]:(c=p.buildFragment([n[1]],[d]),c=(c.cacheable?p.clone(c.fragment):c.fragment).childNodes),p.merge(this,c);else{if((a=u.getElementById(n[2]))&&a.parentNode){if(a.id!==n[2])return d.find(c);this.length=1;this[0]=a}this.context=u;this.selector=c;return this}else return!a||a.jquery?(a||d).find(c):this.constructor(a).find(c);else if(p.isFunction(c))return d.ready(c);if(c.selector!==b)this.selector=c.selector,this.context=c.context; -return p.makeArray(c,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return ka.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this[this.length+c]:this[c]},pushStack:function(c,a,d){var n=this.constructor();p.isArray(c)?Va.apply(n,c):p.merge(n,c);n.prevObject=this;n.context=this.context;if(a==="find")n.selector=this.selector+(this.selector?" ":"")+d;else if(a)n.selector=this.selector+"."+a+"("+d+")";return n},each:function(c,a){return p.each(this, -c,a)},ready:function(c){p.bindReady();Pa.done(c);return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ka.apply(this,arguments),"slice",ka.call(arguments).join(","))},map:function(c){return this.pushStack(p.map(this,function(a,p){return c.call(a,p,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:Va,sort:[].sort,splice:[].splice};p.fn.init.prototype= -p.fn;p.extend=p.fn.extend=function(){var c,a,d,n,C,x=arguments[0]||{},e=1,h=arguments.length,Ga=!1;typeof x==="boolean"&&(Ga=x,x=arguments[1]||{},e=2);typeof x!=="object"&&!p.isFunction(x)&&(x={});h===e&&(x=this,--e);for(;e0||(Pa.resolveWith(u,[p]),p.fn.trigger&&p(u).trigger("ready").unbind("ready"))}},bindReady:function(){if(!Pa){Pa=p._Deferred();if(u.readyState==="complete")return setTimeout(p.ready,1);if(u.addEventListener)u.addEventListener("DOMContentLoaded",X,!1),a.addEventListener("load", -p.ready,!1);else if(u.attachEvent){u.attachEvent("onreadystatechange",X);a.attachEvent("onload",p.ready);var d=!1;try{d=a.frameElement==null}catch(n){}u.documentElement.doScroll&&d&&c()}}},isFunction:function(c){return p.type(c)==="function"},isArray:Array.isArray||function(c){return p.type(c)==="array"},isWindow:function(c){return c&&typeof c==="object"&&"setInterval"in c},isNaN:function(c){return c==null||!q.test(c)||isNaN(c)},type:function(c){return c==null?String(c):ga[k.call(c)]||"object"},isPlainObject:function(c){if(!c|| -p.type(c)!=="object"||c.nodeType||p.isWindow(c))return!1;if(c.constructor&&!Ua.call(c,"constructor")&&!Ua.call(c.constructor.prototype,"isPrototypeOf"))return!1;for(var a in c);return a===b||Ua.call(c,a)},isEmptyObject:function(c){for(var a in c)return!1;return!0},error:function(c){throw c;},parseJSON:function(c){if(typeof c!=="string"||!c)return null;c=p.trim(c);if(a.JSON&&a.JSON.parse)return a.JSON.parse(c);if(s.test(c.replace(E,"@").replace(o,"]").replace(R,"")))return(new Function("return "+c))(); -p.error("Invalid JSON: "+c)},parseXML:function(c,d,n){a.DOMParser?(n=new DOMParser,d=n.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c));n=d.documentElement;(!n||!n.nodeName||n.nodeName==="parsererror")&&p.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(c){c&&h.test(c)&&(a.execScript||function(c){a.eval.call(a,c)})(c)},nodeName:function(c,a){return c.nodeName&&c.nodeName.toUpperCase()===a.toUpperCase()},each:function(c,a, -d){var n,C=0,x=c.length,e=x===b||p.isFunction(c);if(d)if(e)for(n in c){if(a.apply(c[n],d)===!1)break}else for(;C0&&c[0]&&c[h-1]||h===0||p.isArray(c)))for(;e1?na.call(arguments,0):a;--e||h.resolveWith(h,na.call(n,0))}}var n=arguments,b=0,x=n.length,e=x,h=x<=1&&c&&d.isFunction(c.promise)?c:d.Deferred();if(x>1){for(;b
a"; -d=c.getElementsByTagName("*");b=c.getElementsByTagName("a")[0];if(!d||!d.length||!b)return{};x=u.createElement("select");e=x.appendChild(u.createElement("option"));d=c.getElementsByTagName("input")[0];h={leadingWhitespace:c.firstChild.nodeType===3,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/top/.test(b.getAttribute("style")),hrefNormalized:b.getAttribute("href")==="/a",opacity:/^0.55$/.test(b.style.opacity),cssFloat:!!b.style.cssFloat, -checkOn:d.value==="on",optSelected:e.selected,getSetAttribute:c.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};d.checked=!0;h.noCloneChecked=d.cloneNode(!0).checked;x.disabled=!0;h.optDisabled=!e.disabled;try{delete c.test}catch(g){h.deleteExpando=!1}!c.addEventListener&&c.attachEvent&&c.fireEvent&&(c.attachEvent("onclick",function ib(){h.noCloneEvent=!1;c.detachEvent("onclick", -ib)}),c.cloneNode(!0).fireEvent("onclick"));d=u.createElement("input");d.value="t";d.setAttribute("type","radio");h.radioValue=d.value==="t";d.setAttribute("checked","checked");c.appendChild(d);b=u.createDocumentFragment();b.appendChild(c.firstChild);h.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked;c.innerHTML="";c.style.width=c.style.paddingLeft="1px";b=u.createElement("body");x={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(f in x)b.style[f]=x[f];b.appendChild(c); -a.insertBefore(b,a.firstChild);h.appendChecked=d.checked;h.boxModel=c.offsetWidth===2;if("zoom"in c.style)c.style.display="inline",c.style.zoom=1,h.inlineBlockNeedsLayout=c.offsetWidth===2,c.style.display="",c.innerHTML="
",h.shrinkWrapBlocks=c.offsetWidth!==2;c.innerHTML="
t
";x=c.getElementsByTagName("td");d=x[0].offsetHeight===0;x[0].style.display="";x[1].style.display="none";h.reliableHiddenOffsets= -d&&x[0].offsetHeight===0;c.innerHTML="";if(u.defaultView&&u.defaultView.getComputedStyle)d=u.createElement("div"),d.style.width="0",d.style.marginRight="0",c.appendChild(d),h.reliableMarginRight=(parseInt((u.defaultView.getComputedStyle(d,null)||{marginRight:0}).marginRight,10)||0)===0;b.innerHTML="";a.removeChild(b);if(c.attachEvent)for(f in{submit:1,change:1,focusin:1})a="on"+f,d=a in c,d||(c.setAttribute(a,"return;"),d=typeof c[a]==="function"),h[f+"Bubbles"]=d;return h}();d.boxModel=d.support.boxModel; -var D=/^(?:\{.*\}|\[.*\])$/,da=/([a-z])([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(c){c=c.nodeType?d.cache[c[d.expando]]:c[d.expando];return!!c&&!f(c)},data:function(c,a,n,C){if(d.acceptData(c)){var e=d.expando,h=typeof a==="string",f=c.nodeType,g=f?d.cache:c,q=f?c[d.expando]:c[d.expando]&&d.expando;if(q&&(!C||!q||g[q][e])||!(h&&n===b)){if(!q)f?c[d.expando]= -q=++d.uuid:q=d.expando;if(!g[q]&&(g[q]={},!f))g[q].toJSON=d.noop;if(typeof a==="object"||typeof a==="function")C?g[q][e]=d.extend(g[q][e],a):g[q]=d.extend(g[q],a);c=g[q];C&&(c[e]||(c[e]={}),c=c[e]);n!==b&&(c[d.camelCase(a)]=n);if(a==="events"&&!c[a])return c[e]&&c[e].events;return h?c[d.camelCase(a)]:c}}},removeData:function(c,p,n){if(d.acceptData(c)){var b=d.expando,e=c.nodeType,h=e?d.cache:c,g=e?c[d.expando]:d.expando;if(h[g]){if(p){var q=n?h[g][b]:h[g];if(q&&(delete q[p],!f(q)))return}if(n&&(delete h[g][b], -!f(h[g])))return;p=h[g][b];d.support.deleteExpando||h!=a?delete h[g]:h[g]=null;if(p){h[g]={};if(!e)h[g].toJSON=d.noop;h[g][b]=p}else e&&(d.support.deleteExpando?delete c[d.expando]:c.removeAttribute?c.removeAttribute(d.expando):c[d.expando]=null)}}},_data:function(c,a,n){return d.data(c,a,n,!0)},acceptData:function(c){if(c.nodeName){var a=d.noData[c.nodeName.toLowerCase()];if(a)return!(a===!0||c.getAttribute("classid")!==a)}return!0}});d.fn.extend({data:function(c,a){var n=null;if(typeof c==="undefined"){if(this.length&& -(n=d.data(this[0]),this[0].nodeType===1))for(var C=this[0].attributes,x,h=0,f=C.length;h-1)return!0;return!1},val:function(c){var a,n,e=this[0];if(!arguments.length){if(e){if((a=d.valHooks[e.nodeName.toLowerCase()]||d.valHooks[e.type])&&"get"in a&&(n=a.get(e,"value"))!==b)return n;return(e.value||"").replace(ra,"")}return b}var h=d.isFunction(c);return this.each(function(n){var e=d(this);if(this.nodeType===1&&(n=h?c.call(this,n,e.val()):c,n==null?n="":typeof n=== -"number"?n+="":d.isArray(n)&&(n=d.map(n,function(c){return c==null?"":c+""})),a=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type],!a||!("set"in a)||a.set(this,n,"value")===b))this.value=n})}});d.extend({valHooks:{option:{get:function(c){var a=c.attributes.value;return!a||a.specified?c.value:c.text}},select:{get:function(c){var a,b=c.selectedIndex,e=[],h=c.options,c=c.type==="select-one";if(b<0)return null;for(var g=c?b:0,f=c?b+1:h.length;g=0});if(!b.length)c.selectedIndex=-1;return b}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(c,a,n,e){var h= -c.nodeType;if(!c||h===3||h===8||h===2)return b;if(e&&a in d.attrFn)return d(c)[a](n);if(!("getAttribute"in c))return d.prop(c,a,n);var g,a=(h=h!==1||!d.isXMLDoc(c))&&d.attrFix[a]||a,e=d.attrHooks[a];if(!e)if(E.test(a)&&(typeof n==="boolean"||n===b||n.toLowerCase()===a.toLowerCase()))e=o;else if(K&&(d.nodeName(c,"form")||X.test(a)))e=K;return n!==b?n===null?(d.removeAttr(c,a),b):e&&"set"in e&&h&&(g=e.set(c,n,a))!==b?g:(c.setAttribute(a,""+n),n):e&&"get"in e&&h?e.get(c,a):(g=c.getAttribute(a),g===null? -b:g)},removeAttr:function(c,a){var b;if(c.nodeType===1&&(a=d.attrFix[a]||a,d.support.getSetAttribute?c.removeAttribute(a):(d.attr(c,a,""),c.removeAttributeNode(c.getAttributeNode(a))),E.test(a)&&(b=d.propFix[a]||a)in c))c[b]=!1},attrHooks:{type:{set:function(c,a){if(wa.test(c.nodeName)&&c.parentNode)d.error("type property can't be changed");else if(!d.support.radioValue&&a==="radio"&&d.nodeName(c,"input")){var b=c.value;c.setAttribute("type",a);if(b)c.value=b;return a}}},tabIndex:{get:function(c){var a= -c.getAttributeNode("tabIndex");return a&&a.specified?parseInt(a.value,10):Ha.test(c.nodeName)||g.test(c.nodeName)&&c.href?0:b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(c,a,n){var e=c.nodeType;if(!c||e===3||e===8||e===2)return b;var h,a=(e!==1||!d.isXMLDoc(c))&& -d.propFix[a]||a,e=d.propHooks[a];return n!==b?e&&"set"in e&&(h=e.set(c,n,a))!==b?h:c[a]=n:e&&"get"in e&&(h=e.get(c,a))!==b?h:c[a]},propHooks:{}});o={get:function(c,a){return c[d.propFix[a]||a]?a.toLowerCase():b},set:function(c,a,b){var e;a===!1?d.removeAttr(c,b):(e=d.propFix[b]||b,e in c&&(c[e]=a),c.setAttribute(b,b.toLowerCase()));return b}};d.attrHooks.value={get:function(c,a){if(K&&d.nodeName(c,"button"))return K.get(c,a);return c.value},set:function(c,a,b){if(K&&d.nodeName(c,"button"))return K.set(c, -a,b);c.value=a}};if(!d.support.getSetAttribute)d.attrFix=d.propFix,K=d.attrHooks.name=d.valHooks.button={get:function(c,a){var d;return(d=c.getAttributeNode(a))&&d.nodeValue!==""?d.nodeValue:b},set:function(c,a,d){if(c=c.getAttributeNode(d))return c.nodeValue=a}},d.each(["width","height"],function(c,a){d.attrHooks[a]=d.extend(d.attrHooks[a],{set:function(c,d){if(d==="")return c.setAttribute(a,"auto"),d}})});d.support.hrefNormalized||d.each(["href","src","width","height"],function(c,a){d.attrHooks[a]= +MochiKit.Async.__new__=function(){var a=MochiKit.Base,b=a.partial(a._newNamedError,this);b("AlreadyCalledError",function(a){this.deferred=a});b("CancelledError",function(a){this.deferred=a});b("BrowserComplianceError",function(a){this.message=a});b("GenericError",function(a){this.message=a});b("XMLHttpRequestError",function(a,b){this.req=a;this.message=b;try{this.number=a.status}catch(j){}});a.nameFunctions(this)};MochiKit.Async.__new__();MochiKit.Base._exportSymbols(this,MochiKit.Async); +// Input 2 +(function(a,b){function e(c,o,a){if(a===b&&c.nodeType===1)if(a="data-"+o.replace(oa,"$1-$2").toLowerCase(),a=c.getAttribute(a),typeof a==="string"){try{a=a==="true"?!0:a==="false"?!1:a==="null"?null:!d.isNaN(a)?parseFloat(a):F.test(a)?d.parseJSON(a):a}catch(u){}d.data(c,o,a)}else a=b;return a}function f(c){for(var o in c)if(o!=="toJSON")return!1;return!0}function j(c,o,a){var u=o+"defer",y=o+"queue",e=o+"mark",h=d.data(c,u,b,!0);h&&(a==="queue"||!d.data(c,y,b,!0))&&(a==="mark"||!d.data(c,e,b,!0))&& +setTimeout(function(){!d.data(c,y,b,!0)&&!d.data(c,e,b,!0)&&(d.removeData(c,u,!0),h.resolve())},0)}function l(){return!1}function k(){return!0}function A(c,o,a){var u=d.extend({},a[0]);u.type=c;u.originalEvent={};u.liveFired=b;d.event.handle.call(o,u);u.isDefaultPrevented()&&a[0].preventDefault()}function G(c){var o,a,b,y,e,h,f,g,q,w,H,p=[];y=[];e=d._data(this,"events");if(!(c.liveFired===this||!e||!e.live||c.target.disabled||c.button&&c.type==="click")){c.namespace&&(H=RegExp("(^|\\.)"+c.namespace.split(".").join("\\.(?:.*\\.)?")+ +"(\\.|$)"));c.liveFired=this;var n=e.live.slice(0);for(f=0;fa)break;c.currentTarget=y.elem;c.data=y.handleObj.data;c.handleObj=y.handleObj;H=y.handleObj.origHandler.apply(y.elem,arguments);if(H===!1||c.isPropagationStopped())if(a=y.level,H===!1&&(o=!1),c.isImmediatePropagationStopped())break}return o}}function D(c,o){return(c&&c!=="*"?c+".":"")+o.replace(pa,"`").replace(x,"&")}function L(c,o,a){o=o||0;if(d.isFunction(o))return d.grep(c,function(c,d){return!!o.call(c,d,c)===a});else if(o.nodeType)return d.grep(c, +function(c){return c===o===a});else if(typeof o==="string"){var b=d.grep(c,function(c){return c.nodeType===1});if(Da.test(o))return d.filter(o,b,!a);else o=d.filter(o,b)}return d.grep(c,function(c){return d.inArray(c,o)>=0===a})}function B(c,o){if(o.nodeType===1&&d.hasData(c)){var a=d.expando,b=d.data(c),y=d.data(o,b);if(b=b[a]){var e=b.events,y=y[a]=d.extend({},b);if(e){delete y.handle;y.events={};for(var h in e){a=0;for(b=e[h].length;a").appendTo("body"),b=a.css("display");a.remove();if(b==="none"||b===""){if(!Aa)Aa=v.createElement("iframe"),Aa.frameBorder=Aa.width=Aa.height=0;v.body.appendChild(Aa);if(!Ma||!Aa.createElement)Ma=(Aa.contentWindow|| +Aa.contentDocument).document,Ma.write("");a=Ma.createElement(c);Ma.body.appendChild(a);b=d.css(a,"display");v.body.removeChild(Aa)}Ua[c]=b}return Ua[c]}function va(c){return d.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:!1}var v=a.document,S=a.navigator,X=a.location,d=function(){function c(){if(!o.isReady){try{v.documentElement.doScroll("left")}catch(a){setTimeout(c,1);return}o.ready()}}var o=function(c,a){return new o.fn.init(c,a,y)},d=a.jQuery, +u=a.$,y,e=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,f=/^\s+/,g=/\s+$/,q=/\d/,w=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,H=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,n=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Q=/(?:^|:|,)(?:\s*\[)+/g,j=/(webkit)[ \/]([\w.]+)/,K=/(opera)(?:.*version)?[ \/]([\w.]+)/,Y=/(msie) ([\w.]+)/,V=/(mozilla)(?:.*? rv:([\w.]+))?/,Na=S.userAgent,Qa,k,l=Object.prototype.toString,Va=Object.prototype.hasOwnProperty,Wa=Array.prototype.push,W=Array.prototype.slice, +J=String.prototype.trim,I=Array.prototype.indexOf,ja={};o.fn=o.prototype={constructor:o,init:function(c,a,d){var r;if(!c)return this;if(c.nodeType)return this.context=this[0]=c,this.length=1,this;if(c==="body"&&!a&&v.body)return this.context=v,this[0]=v.body,this.selector=c,this.length=1,this;if(typeof c==="string")if((r=c.charAt(0)==="<"&&c.charAt(c.length-1)===">"&&c.length>=3?[null,c,null]:e.exec(c))&&(r[1]||!a))if(r[1])return d=(a=a instanceof o?a[0]:a)?a.ownerDocument||a:v,(c=w.exec(c))?o.isPlainObject(a)? +(c=[v.createElement(c[1])],o.fn.attr.call(c,a,!0)):c=[d.createElement(c[1])]:(c=o.buildFragment([r[1]],[d]),c=(c.cacheable?o.clone(c.fragment):c.fragment).childNodes),o.merge(this,c);else{if((a=v.getElementById(r[2]))&&a.parentNode){if(a.id!==r[2])return d.find(c);this.length=1;this[0]=a}this.context=v;this.selector=c;return this}else return!a||a.jquery?(a||d).find(c):this.constructor(a).find(c);else if(o.isFunction(c))return d.ready(c);if(c.selector!==b)this.selector=c.selector,this.context=c.context; +return o.makeArray(c,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return W.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this[this.length+c]:this[c]},pushStack:function(c,a,d){var b=this.constructor();o.isArray(c)?Wa.apply(b,c):o.merge(b,c);b.prevObject=this;b.context=this.context;if(a==="find")b.selector=this.selector+(this.selector?" ":"")+d;else if(a)b.selector=this.selector+"."+a+"("+d+")";return b},each:function(c,a){return o.each(this, +c,a)},ready:function(c){o.bindReady();Qa.done(c);return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(W.apply(this,arguments),"slice",W.call(arguments).join(","))},map:function(c){return this.pushStack(o.map(this,function(a,o){return c.call(a,o,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:Wa,sort:[].sort,splice:[].splice};o.fn.init.prototype= +o.fn;o.extend=o.fn.extend=function(){var c,a,d,r,u,y=arguments[0]||{},e=1,h=arguments.length,Ha=!1;typeof y==="boolean"&&(Ha=y,y=arguments[1]||{},e=2);typeof y!=="object"&&!o.isFunction(y)&&(y={});h===e&&(y=this,--e);for(;e0||(Qa.resolveWith(v,[o]),o.fn.trigger&&o(v).trigger("ready").unbind("ready"))}},bindReady:function(){if(!Qa){Qa=o._Deferred();if(v.readyState==="complete")return setTimeout(o.ready,1);if(v.addEventListener)v.addEventListener("DOMContentLoaded",k,!1),a.addEventListener("load", +o.ready,!1);else if(v.attachEvent){v.attachEvent("onreadystatechange",k);a.attachEvent("onload",o.ready);var d=!1;try{d=a.frameElement==null}catch(b){}v.documentElement.doScroll&&d&&c()}}},isFunction:function(c){return o.type(c)==="function"},isArray:Array.isArray||function(c){return o.type(c)==="array"},isWindow:function(c){return c&&typeof c==="object"&&"setInterval"in c},isNaN:function(c){return c==null||!q.test(c)||isNaN(c)},type:function(c){return c==null?String(c):ja[l.call(c)]||"object"},isPlainObject:function(c){if(!c|| +o.type(c)!=="object"||c.nodeType||o.isWindow(c))return!1;if(c.constructor&&!Va.call(c,"constructor")&&!Va.call(c.constructor.prototype,"isPrototypeOf"))return!1;for(var a in c);return a===b||Va.call(c,a)},isEmptyObject:function(c){for(var a in c)return!1;return!0},error:function(c){throw c;},parseJSON:function(c){if(typeof c!=="string"||!c)return null;c=o.trim(c);if(a.JSON&&a.JSON.parse)return a.JSON.parse(c);if(H.test(c.replace(p,"@").replace(n,"]").replace(Q,"")))return(new Function("return "+c))(); +o.error("Invalid JSON: "+c)},parseXML:function(c,d,b){a.DOMParser?(b=new DOMParser,d=b.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c));b=d.documentElement;(!b||!b.nodeName||b.nodeName==="parsererror")&&o.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(c){c&&h.test(c)&&(a.execScript||function(c){a.eval.call(a,c)})(c)},nodeName:function(c,a){return c.nodeName&&c.nodeName.toUpperCase()===a.toUpperCase()},each:function(c,a, +d){var r,u=0,y=c.length,e=y===b||o.isFunction(c);if(d)if(e)for(r in c){if(a.apply(c[r],d)===!1)break}else for(;u0&&c[0]&&c[h-1]||h===0||o.isArray(c)))for(;e1?ba.call(arguments,0):a;--e||h.resolveWith(h,ba.call(b,0))}}var b=arguments,u=0,y=b.length,e=y,h=y<=1&&c&&d.isFunction(c.promise)?c:d.Deferred();if(y>1){for(;u
a"; +d=c.getElementsByTagName("*");b=c.getElementsByTagName("a")[0];if(!d||!d.length||!b)return{};y=v.createElement("select");e=y.appendChild(v.createElement("option"));d=c.getElementsByTagName("input")[0];h={leadingWhitespace:c.firstChild.nodeType===3,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/top/.test(b.getAttribute("style")),hrefNormalized:b.getAttribute("href")==="/a",opacity:/^0.55$/.test(b.style.opacity),cssFloat:!!b.style.cssFloat, +checkOn:d.value==="on",optSelected:e.selected,getSetAttribute:c.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};d.checked=!0;h.noCloneChecked=d.cloneNode(!0).checked;y.disabled=!0;h.optDisabled=!e.disabled;try{delete c.test}catch(g){h.deleteExpando=!1}!c.addEventListener&&c.attachEvent&&c.fireEvent&&(c.attachEvent("onclick",function ib(){h.noCloneEvent=!1;c.detachEvent("onclick", +ib)}),c.cloneNode(!0).fireEvent("onclick"));d=v.createElement("input");d.value="t";d.setAttribute("type","radio");h.radioValue=d.value==="t";d.setAttribute("checked","checked");c.appendChild(d);b=v.createDocumentFragment();b.appendChild(c.firstChild);h.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked;c.innerHTML="";c.style.width=c.style.paddingLeft="1px";b=v.createElement("body");y={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(f in y)b.style[f]=y[f];b.appendChild(c); +a.insertBefore(b,a.firstChild);h.appendChecked=d.checked;h.boxModel=c.offsetWidth===2;if("zoom"in c.style)c.style.display="inline",c.style.zoom=1,h.inlineBlockNeedsLayout=c.offsetWidth===2,c.style.display="",c.innerHTML="
",h.shrinkWrapBlocks=c.offsetWidth!==2;c.innerHTML="
t
";y=c.getElementsByTagName("td");d=y[0].offsetHeight===0;y[0].style.display="";y[1].style.display="none";h.reliableHiddenOffsets= +d&&y[0].offsetHeight===0;c.innerHTML="";if(v.defaultView&&v.defaultView.getComputedStyle)d=v.createElement("div"),d.style.width="0",d.style.marginRight="0",c.appendChild(d),h.reliableMarginRight=(parseInt((v.defaultView.getComputedStyle(d,null)||{marginRight:0}).marginRight,10)||0)===0;b.innerHTML="";a.removeChild(b);if(c.attachEvent)for(f in{submit:1,change:1,focusin:1})a="on"+f,d=a in c,d||(c.setAttribute(a,"return;"),d=typeof c[a]==="function"),h[f+"Bubbles"]=d;return h}();d.boxModel=d.support.boxModel; +var F=/^(?:\{.*\}|\[.*\])$/,oa=/([a-z])([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(c){c=c.nodeType?d.cache[c[d.expando]]:c[d.expando];return!!c&&!f(c)},data:function(c,a,r,u){if(d.acceptData(c)){var y=d.expando,e=typeof a==="string",h=c.nodeType,f=h?d.cache:c,g=h?c[d.expando]:c[d.expando]&&d.expando;if(g&&(!u||!g||f[g][y])||!(e&&r===b)){if(!g)h?c[d.expando]= +g=++d.uuid:g=d.expando;if(!f[g]&&(f[g]={},!h))f[g].toJSON=d.noop;if(typeof a==="object"||typeof a==="function")u?f[g][y]=d.extend(f[g][y],a):f[g]=d.extend(f[g],a);c=f[g];u&&(c[y]||(c[y]={}),c=c[y]);r!==b&&(c[d.camelCase(a)]=r);if(a==="events"&&!c[a])return c[y]&&c[y].events;return e?c[d.camelCase(a)]:c}}},removeData:function(c,o,b){if(d.acceptData(c)){var u=d.expando,y=c.nodeType,e=y?d.cache:c,h=y?c[d.expando]:d.expando;if(e[h]){if(o){var g=b?e[h][u]:e[h];if(g&&(delete g[o],!f(g)))return}if(b&&(delete e[h][u], +!f(e[h])))return;o=e[h][u];d.support.deleteExpando||e!=a?delete e[h]:e[h]=null;if(o){e[h]={};if(!y)e[h].toJSON=d.noop;e[h][u]=o}else y&&(d.support.deleteExpando?delete c[d.expando]:c.removeAttribute?c.removeAttribute(d.expando):c[d.expando]=null)}}},_data:function(c,a,b){return d.data(c,a,b,!0)},acceptData:function(c){if(c.nodeName){var a=d.noData[c.nodeName.toLowerCase()];if(a)return!(a===!0||c.getAttribute("classid")!==a)}return!0}});d.fn.extend({data:function(c,a){var r=null;if(typeof c==="undefined"){if(this.length&& +(r=d.data(this[0]),this[0].nodeType===1))for(var u=this[0].attributes,y,h=0,f=u.length;h-1)return!0;return!1},val:function(c){var a,r,u=this[0];if(!arguments.length){if(u){if((a=d.valHooks[u.nodeName.toLowerCase()]||d.valHooks[u.type])&&"get"in a&&(r=a.get(u,"value"))!==b)return r;return(u.value||"").replace(ra,"")}return b}var e=d.isFunction(c);return this.each(function(r){var u=d(this);if(this.nodeType===1&&(r=e?c.call(this,r,u.val()):c,r==null?r="":typeof r=== +"number"?r+="":d.isArray(r)&&(r=d.map(r,function(c){return c==null?"":c+""})),a=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type],!a||!("set"in a)||a.set(this,r,"value")===b))this.value=r})}});d.extend({valHooks:{option:{get:function(c){var a=c.attributes.value;return!a||a.specified?c.value:c.text}},select:{get:function(c){var a,b=c.selectedIndex,u=[],e=c.options,c=c.type==="select-one";if(b<0)return null;for(var h=c?b:0,g=c?b+1:e.length;h=0});if(!b.length)c.selectedIndex=-1;return b}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(c,a,r,u){var e= +c.nodeType;if(!c||e===3||e===8||e===2)return b;if(u&&a in d.attrFn)return d(c)[a](r);if(!("getAttribute"in c))return d.prop(c,a,r);var h,a=(e=e!==1||!d.isXMLDoc(c))&&d.attrFix[a]||a,u=d.attrHooks[a];if(!u)if(p.test(a)&&(typeof r==="boolean"||r===b||r.toLowerCase()===a.toLowerCase()))u=n;else if(J&&(d.nodeName(c,"form")||V.test(a)))u=J;return r!==b?r===null?(d.removeAttr(c,a),b):u&&"set"in u&&e&&(h=u.set(c,r,a))!==b?h:(c.setAttribute(a,""+r),r):u&&"get"in u&&e?u.get(c,a):(h=c.getAttribute(a),h===null? +b:h)},removeAttr:function(c,a){var b;if(c.nodeType===1&&(a=d.attrFix[a]||a,d.support.getSetAttribute?c.removeAttribute(a):(d.attr(c,a,""),c.removeAttributeNode(c.getAttributeNode(a))),p.test(a)&&(b=d.propFix[a]||a)in c))c[b]=!1},attrHooks:{type:{set:function(c,a){if(wa.test(c.nodeName)&&c.parentNode)d.error("type property can't be changed");else if(!d.support.radioValue&&a==="radio"&&d.nodeName(c,"input")){var b=c.value;c.setAttribute("type",a);if(b)c.value=b;return a}}},tabIndex:{get:function(c){var a= +c.getAttributeNode("tabIndex");return a&&a.specified?parseInt(a.value,10):$.test(c.nodeName)||g.test(c.nodeName)&&c.href?0:b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(c,a,r){var e=c.nodeType;if(!c||e===3||e===8||e===2)return b;var h,a=(e!==1||!d.isXMLDoc(c))&& +d.propFix[a]||a,e=d.propHooks[a];return r!==b?e&&"set"in e&&(h=e.set(c,r,a))!==b?h:c[a]=r:e&&"get"in e&&(h=e.get(c,a))!==b?h:c[a]},propHooks:{}});n={get:function(c,a){return c[d.propFix[a]||a]?a.toLowerCase():b},set:function(c,a,b){var e;a===!1?d.removeAttr(c,b):(e=d.propFix[b]||b,e in c&&(c[e]=a),c.setAttribute(b,b.toLowerCase()));return b}};d.attrHooks.value={get:function(c,a){if(J&&d.nodeName(c,"button"))return J.get(c,a);return c.value},set:function(c,a,b){if(J&&d.nodeName(c,"button"))return J.set(c, +a,b);c.value=a}};if(!d.support.getSetAttribute)d.attrFix=d.propFix,J=d.attrHooks.name=d.valHooks.button={get:function(c,a){var d;return(d=c.getAttributeNode(a))&&d.nodeValue!==""?d.nodeValue:b},set:function(c,a,d){if(c=c.getAttributeNode(d))return c.nodeValue=a}},d.each(["width","height"],function(c,a){d.attrHooks[a]=d.extend(d.attrHooks[a],{set:function(c,d){if(d==="")return c.setAttribute(a,"auto"),d}})});d.support.hrefNormalized||d.each(["href","src","width","height"],function(c,a){d.attrHooks[a]= d.extend(d.attrHooks[a],{get:function(c){c=c.getAttribute(a,2);return c===null?b:c}})});if(!d.support.style)d.attrHooks.style={get:function(c){return c.style.cssText.toLowerCase()||b},set:function(c,a){return c.style.cssText=""+a}};if(!d.support.optSelected)d.propHooks.selected=d.extend(d.propHooks.selected,{get:function(){}});d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(c){return c.getAttribute("value")===null?"on":c.value}}});d.each(["radio","checkbox"], -function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(c,a){if(d.isArray(a))return c.checked=d.inArray(d(c).val(),a)>=0}})});var za=/\.(.*)$/,sa=/^(?:textarea|input|select)$/i,pa=/\./g,w=/ /g,Y=/[^\w\s.|`]/g,fa=function(c){return c.replace(Y,"\\$&")};d.event={add:function(c,a,n,e){if(!(c.nodeType===3||c.nodeType===8)){if(n===!1)n=k;else if(!n)return;var h,g;if(n.handler)h=n,n=h.handler;if(!n.guid)n.guid=d.guid++;if(g=d._data(c)){var f=g.events,q=g.handle;if(!f)g.events=f={};if(!q)g.handle= -q=function(c){return typeof d!=="undefined"&&(!c||d.event.triggered!==c.type)?d.event.handle.apply(q.elem,arguments):b};q.elem=c;for(var a=a.split(" "),z,s=0,E;z=a[s++];){g=h?d.extend({},h):{handler:n,data:e};z.indexOf(".")>-1?(E=z.split("."),z=E.shift(),g.namespace=E.slice(0).sort().join(".")):(E=[],g.namespace="");g.type=z;if(!g.guid)g.guid=n.guid;var o=f[z],R=d.event.special[z]||{};if(!o&&(o=f[z]=[],!R.setup||R.setup.call(c,e,E,q)===!1))c.addEventListener?c.addEventListener(z,q,!1):c.attachEvent&& -c.attachEvent("on"+z,q);if(R.add&&(R.add.call(c,g),!g.handler.guid))g.handler.guid=n.guid;o.push(g);d.event.global[z]=!0}c=null}}},global:{},remove:function(c,a,n,e){if(!(c.nodeType===3||c.nodeType===8)){n===!1&&(n=k);var h,g,f=0,q,z,s,E,o,R,j=d.hasData(c)&&d._data(c),L=j&&j.events;if(j&&L){if(a&&a.type)n=a.handler,a=a.type;if(!a||typeof a==="string"&&a.charAt(0)===".")for(h in a=a||"",L)d.event.remove(c,h+a);else{for(a=a.split(" ");h=a[f++];)if(E=h,q=h.indexOf(".")<0,z=[],q||(z=h.split("."),h=z.shift(), -s=RegExp("(^|\\.)"+d.map(z.slice(0).sort(),fa).join("\\.(?:.*\\.)?")+"(\\.|$)")),o=L[h])if(n){E=d.event.special[h]||{};for(g=e||0;g=0&&(h=h.slice(0,-1),f=!0);h.indexOf(".")>=0&&(g=h.split("."),h=g.shift(),g.sort());if(n&&!d.event.customEvent[h]||d.event.global[h]){c=typeof c==="object"?c[d.expando]?c:new d.Event(h,c):new d.Event(h);c.type=h;c.exclusive=f;c.namespace=g.join(".");c.namespace_re=RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+ -"(\\.|$)");if(e||!n)c.preventDefault(),c.stopPropagation();if(n){if(!(n.nodeType===3||n.nodeType===8)){c.result=b;c.target=n;p=p?d.makeArray(p):[];p.unshift(c);g=n;e=h.indexOf(":")<0?"on"+h:"";do{f=d._data(g,"handle");c.currentTarget=g;f&&f.apply(g,p);if(e&&d.acceptData(g)&&g[e]&&g[e].apply(g,p)===!1)c.result=!1,c.preventDefault();g=g.parentNode||g.ownerDocument||g===c.target.ownerDocument&&a}while(g&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var q,g=d.event.special[h]||{};if((!g._default|| -g._default.call(n.ownerDocument,c)===!1)&&!(h==="click"&&d.nodeName(n,"a"))&&d.acceptData(n)){try{if(e&&n[h])(q=n[e])&&(n[e]=null),d.event.triggered=h,n[h]()}catch(z){}q&&(n[e]=q);d.event.triggered=b}}return c.result}}else d.each(d.cache,function(){var a=this[d.expando];a&&a.events&&a.events[h]&&d.event.trigger(c,p,a.handle.elem)})}},handle:function(c){var c=d.event.fix(c||a.event),p=((d._data(this,"events")||{})[c.type]||[]).slice(0),n=!c.exclusive&&!c.namespace,e=Array.prototype.slice.call(arguments, -0);e[0]=c;c.currentTarget=this;for(var h=0,g=p.length;h-1?d.map(c.options,function(c){return c.selected}).join("-"):"";else if(d.nodeName(c,"select"))b=c.selectedIndex;return b},xa=function(c,a){var n=c.target,e,h;if(sa.test(n.nodeName)&&!n.readOnly&&(e=d._data(n,"_change_data"),h=ja(n),(c.type!=="focusout"||n.type!=="radio")&&d._data(n,"_change_data",h),!(e===b||h===e)))if(e!= -null||h)c.type="change",c.liveFired=b,d.event.trigger(c,a,n)};d.event.special.change={filters:{focusout:xa,beforedeactivate:xa,click:function(c){var a=c.target,b=d.nodeName(a,"input")?a.type:"";(b==="radio"||b==="checkbox"||d.nodeName(a,"select"))&&xa.call(this,c)},keydown:function(c){var a=c.target,b=d.nodeName(a,"input")?a.type:"";(c.keyCode===13&&!d.nodeName(a,"textarea")||c.keyCode===32&&(b==="checkbox"||b==="radio")||b==="select-multiple")&&xa.call(this,c)},beforeactivate:function(c){c=c.target; -d._data(c,"_change_data",ja(c))}},setup:function(){if(this.type==="file")return!1;for(var c in Z)d.event.add(this,c+".specialChange",Z[c]);return sa.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return sa.test(this.nodeName)}};Z=d.event.special.change.filters;Z.focus=Z.beforeactivate}d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(c,a){function b(c){var n=d.event.fix(c);n.type=a;n.originalEvent={};d.event.trigger(n,null,n.target);n.isDefaultPrevented()&& -c.preventDefault()}var e=0;d.event.special[a]={setup:function(){e++===0&&u.addEventListener(c,b,!0)},teardown:function(){--e===0&&u.removeEventListener(c,b,!0)}}});d.each(["bind","one"],function(c,a){d.fn[a]=function(c,e,h){var g;if(typeof c==="object"){for(var f in c)this[a](f,e,c[f],h);return this}if(arguments.length===2||e===!1)h=e,e=b;a==="one"?(g=function(c){d(this).unbind(c,g);return h.apply(this,arguments)},g.guid=h.guid||d.guid++):g=h;if(c==="unload"&&a!=="one")this.one(c,e,h);else{f=0;for(var q= +function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(c,a){if(d.isArray(a))return c.checked=d.inArray(d(c).val(),a)>=0}})});var za=/\.(.*)$/,sa=/^(?:textarea|input|select)$/i,pa=/\./g,x=/ /g,da=/[^\w\s.|`]/g,ia=function(c){return c.replace(da,"\\$&")};d.event={add:function(c,a,r,e){if(!(c.nodeType===3||c.nodeType===8)){if(r===!1)r=l;else if(!r)return;var h,g;if(r.handler)h=r,r=h.handler;if(!r.guid)r.guid=d.guid++;if(g=d._data(c)){var f=g.events,q=g.handle;if(!f)g.events=f={};if(!q)g.handle= +q=function(c){return typeof d!=="undefined"&&(!c||d.event.triggered!==c.type)?d.event.handle.apply(q.elem,arguments):b};q.elem=c;for(var a=a.split(" "),w,H=0,p;w=a[H++];){g=h?d.extend({},h):{handler:r,data:e};w.indexOf(".")>-1?(p=w.split("."),w=p.shift(),g.namespace=p.slice(0).sort().join(".")):(p=[],g.namespace="");g.type=w;if(!g.guid)g.guid=r.guid;var n=f[w],Q=d.event.special[w]||{};if(!n&&(n=f[w]=[],!Q.setup||Q.setup.call(c,e,p,q)===!1))c.addEventListener?c.addEventListener(w,q,!1):c.attachEvent&& +c.attachEvent("on"+w,q);if(Q.add&&(Q.add.call(c,g),!g.handler.guid))g.handler.guid=r.guid;n.push(g);d.event.global[w]=!0}c=null}}},global:{},remove:function(c,a,r,e){if(!(c.nodeType===3||c.nodeType===8)){r===!1&&(r=l);var h,g,f=0,q,w,p,H,n,Q,j=d.hasData(c)&&d._data(c),K=j&&j.events;if(j&&K){if(a&&a.type)r=a.handler,a=a.type;if(!a||typeof a==="string"&&a.charAt(0)===".")for(h in a=a||"",K)d.event.remove(c,h+a);else{for(a=a.split(" ");h=a[f++];)if(H=h,q=h.indexOf(".")<0,w=[],q||(w=h.split("."),h=w.shift(), +p=RegExp("(^|\\.)"+d.map(w.slice(0).sort(),ia).join("\\.(?:.*\\.)?")+"(\\.|$)")),n=K[h])if(r){H=d.event.special[h]||{};for(g=e||0;g=0&&(h=h.slice(0,-1),f=!0);h.indexOf(".")>=0&&(g=h.split("."),h=g.shift(),g.sort());if(r&&!d.event.customEvent[h]||d.event.global[h]){c=typeof c==="object"?c[d.expando]?c:new d.Event(h,c):new d.Event(h);c.type=h;c.exclusive=f;c.namespace=g.join(".");c.namespace_re=RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+ +"(\\.|$)");if(e||!r)c.preventDefault(),c.stopPropagation();if(r){if(!(r.nodeType===3||r.nodeType===8)){c.result=b;c.target=r;o=o?d.makeArray(o):[];o.unshift(c);g=r;e=h.indexOf(":")<0?"on"+h:"";do{f=d._data(g,"handle");c.currentTarget=g;f&&f.apply(g,o);if(e&&d.acceptData(g)&&g[e]&&g[e].apply(g,o)===!1)c.result=!1,c.preventDefault();g=g.parentNode||g.ownerDocument||g===c.target.ownerDocument&&a}while(g&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var q,g=d.event.special[h]||{};if((!g._default|| +g._default.call(r.ownerDocument,c)===!1)&&!(h==="click"&&d.nodeName(r,"a"))&&d.acceptData(r)){try{if(e&&r[h])(q=r[e])&&(r[e]=null),d.event.triggered=h,r[h]()}catch(w){}q&&(r[e]=q);d.event.triggered=b}}return c.result}}else d.each(d.cache,function(){var a=this[d.expando];a&&a.events&&a.events[h]&&d.event.trigger(c,o,a.handle.elem)})}},handle:function(c){var c=d.event.fix(c||a.event),o=((d._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,h=Array.prototype.slice.call(arguments, +0);h[0]=c;c.currentTarget=this;for(var g=0,f=o.length;g-1?d.map(c.options,function(c){return c.selected}).join("-"):"";else if(d.nodeName(c,"select"))b=c.selectedIndex;return b},xa=function(c,a){var e=c.target,h,g;if(sa.test(e.nodeName)&&!e.readOnly&&(h=d._data(e,"_change_data"),g=ma(e),(c.type!=="focusout"||e.type!=="radio")&&d._data(e,"_change_data",g),!(h===b||g===h)))if(h!= +null||g)c.type="change",c.liveFired=b,d.event.trigger(c,a,e)};d.event.special.change={filters:{focusout:xa,beforedeactivate:xa,click:function(c){var a=c.target,b=d.nodeName(a,"input")?a.type:"";(b==="radio"||b==="checkbox"||d.nodeName(a,"select"))&&xa.call(this,c)},keydown:function(c){var a=c.target,b=d.nodeName(a,"input")?a.type:"";(c.keyCode===13&&!d.nodeName(a,"textarea")||c.keyCode===32&&(b==="checkbox"||b==="radio")||b==="select-multiple")&&xa.call(this,c)},beforeactivate:function(c){c=c.target; +d._data(c,"_change_data",ma(c))}},setup:function(){if(this.type==="file")return!1;for(var c in ea)d.event.add(this,c+".specialChange",ea[c]);return sa.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return sa.test(this.nodeName)}};ea=d.event.special.change.filters;ea.focus=ea.beforeactivate}d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(c,a){function b(c){var e=d.event.fix(c);e.type=a;e.originalEvent={};d.event.trigger(e,null,e.target);e.isDefaultPrevented()&& +c.preventDefault()}var e=0;d.event.special[a]={setup:function(){e++===0&&v.addEventListener(c,b,!0)},teardown:function(){--e===0&&v.removeEventListener(c,b,!0)}}});d.each(["bind","one"],function(c,a){d.fn[a]=function(c,e,h){var g;if(typeof c==="object"){for(var f in c)this[a](f,e,c[f],h);return this}if(arguments.length===2||e===!1)h=e,e=b;a==="one"?(g=function(c){d(this).unbind(c,g);return h.apply(this,arguments)},g.guid=h.guid||d.guid++):g=h;if(c==="unload"&&a!=="one")this.one(c,e,h);else{f=0;for(var q= this.length;f0?this.bind(a,c,d):this.trigger(a)};d.attrFn&&(d.attrFn[a]= -!0)});(function(){function c(c,a,d,b,e,n){for(var e=0,h=b.length;e0){f=g;break}}g=g[c]}e[n]=f}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,g=Object.prototype.toString,f=!1,q=!0,z=/\\/g,E=/\W/;[0,0].sort(function(){q=!1;return 0});var s=function(c,a,d,b){var d=d||[],h=a=a||u;if(a.nodeType!==1&&a.nodeType!==9)return[];if(!c||typeof c!=="string")return d;var p,f,C,q,z,E=!0,j=s.isXML(a),L=[],Ga=c;do if(e.exec(""),p=e.exec(Ga))if(Ga=p[3],L.push(p[1]),p[2]){q= -p[3];break}while(p);if(L.length>1&&R.exec(c))if(L.length===2&&o.relative[L[0]])f=ka(L[0]+L[1],a);else for(f=o.relative[L[0]]?[a]:s(L.shift(),a);L.length;)c=L.shift(),o.relative[c]&&(c+=L.shift()),f=ka(c,f);else if(!b&&L.length>1&&a.nodeType===9&&!j&&o.match.ID.test(L[0])&&!o.match.ID.test(L[L.length-1])&&(p=s.find(L.shift(),a,j),a=p.expr?s.filter(p.expr,p.set)[0]:p.set[0]),a){p=b?{expr:L.pop(),set:l(b)}:s.find(L.pop(),L.length===1&&(L[0]==="~"||L[0]==="+")&&a.parentNode?a.parentNode:a,j);f=p.expr? -s.filter(p.expr,p.set):p.set;for(L.length>0?C=l(f):E=!1;L.length;)p=z=L.pop(),o.relative[z]?p=L.pop():z="",p==null&&(p=a),o.relative[z](C,p,j)}else C=[];C||(C=f);C||s.error(z||c);if(g.call(C)==="[object Array]")if(E)if(a&&a.nodeType===1)for(c=0;C[c]!=null;c++)C[c]&&(C[c]===!0||C[c].nodeType===1&&s.contains(a,C[c]))&&d.push(f[c]);else for(c=0;C[c]!=null;c++)C[c]&&C[c].nodeType===1&&d.push(f[c]);else d.push.apply(d,C);else l(C,d);q&&(s(q,h,d,b),s.uniqueSort(d));return d};s.uniqueSort=function(c){if(X&& -(f=q,c.sort(X),f))for(var a=1;a0};s.find=function(c,a,d){var b;if(!c)return[];for(var e=0,n=o.order.length;e0?this.bind(a,c,d):this.trigger(a)};d.attrFn&&(d.attrFn[a]= +!0)});(function(){function c(c,a,d,b,e,h){for(var e=0,o=b.length;e0){u=r;break}}r=r[c]}e[h]=u}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,g=Object.prototype.toString,f=!1,q=!0,w=/\\/g,H=/\W/;[0,0].sort(function(){q=!1;return 0});var p=function(c,a,d,b){var d=d||[],h=a=a||v;if(a.nodeType!==1&&a.nodeType!==9)return[];if(!c||typeof c!=="string")return d;var o,u,f,q,w,H=!0,j=p.isXML(a),K=[],Ha=c;do if(e.exec(""),o=e.exec(Ha))if(Ha=o[3],K.push(o[1]),o[2]){q= +o[3];break}while(o);if(K.length>1&&Q.exec(c))if(K.length===2&&n.relative[K[0]])u=l(K[0]+K[1],a);else for(u=n.relative[K[0]]?[a]:p(K.shift(),a);K.length;)c=K.shift(),n.relative[c]&&(c+=K.shift()),u=l(c,u);else if(!b&&K.length>1&&a.nodeType===9&&!j&&n.match.ID.test(K[0])&&!n.match.ID.test(K[K.length-1])&&(o=p.find(K.shift(),a,j),a=o.expr?p.filter(o.expr,o.set)[0]:o.set[0]),a){o=b?{expr:K.pop(),set:Y(b)}:p.find(K.pop(),K.length===1&&(K[0]==="~"||K[0]==="+")&&a.parentNode?a.parentNode:a,j);u=o.expr?p.filter(o.expr, +o.set):o.set;for(K.length>0?f=Y(u):H=!1;K.length;)o=w=K.pop(),n.relative[w]?o=K.pop():w="",o==null&&(o=a),n.relative[w](f,o,j)}else f=[];f||(f=u);f||p.error(w||c);if(g.call(f)==="[object Array]")if(H)if(a&&a.nodeType===1)for(c=0;f[c]!=null;c++)f[c]&&(f[c]===!0||f[c].nodeType===1&&p.contains(a,f[c]))&&d.push(u[c]);else for(c=0;f[c]!=null;c++)f[c]&&f[c].nodeType===1&&d.push(u[c]);else d.push.apply(d,f);else Y(f,d);q&&(p(q,h,d,b),p.uniqueSort(d));return d};p.uniqueSort=function(c){if(V&&(f=q,c.sort(V), +f))for(var a=1;a0};p.find=function(c,a,d){var b;if(!c)return[];for(var e=0,o=n.order.length;e":function(c,a){var d,b=typeof a==="string",e=0,p=c.length;if(b&&!E.test(a))for(a=a.toLowerCase();e=0)?d||b.push(n):d&&(a[p]=!1));return!1},ID:function(c){return c[1].replace(z,"")},TAG:function(c){return c[1].replace(z,"").toLowerCase()},CHILD:function(c){if(c[1]=== -"nth"){c[2]||s.error(c[0]);c[2]=c[2].replace(/^\+|\s*/g,"");var a=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=a[1]+(a[2]||1)-0;c[3]=a[3]-0}else c[2]&&s.error(c[0]);c[0]=h++;return c},ATTR:function(c,a,d,b,e,p){a=c[1]=c[1].replace(z,"");!p&&o.attrMap[a]&&(c[1]=o.attrMap[a]);c[4]=(c[4]||c[5]||"").replace(z,"");c[2]==="~="&&(c[4]=" "+c[4]+" ");return c},PSEUDO:function(c,a,d,b,p){if(c[1]==="not")if((e.exec(c[3])||"").length>1|| -/^\w/.test(c[3]))c[3]=s(c[3],null,null,a);else return c=s.filter(c[3],a,d,1^p),d||b.push.apply(b,c),!1;else if(o.match.POS.test(c[0])||o.match.CHILD.test(c[0]))return!0;return c},POS:function(c){c.unshift(!0);return c}},filters:{enabled:function(c){return c.disabled===!1&&c.type!=="hidden"},disabled:function(c){return c.disabled===!0},checked:function(c){return c.checked===!0},selected:function(c){return c.selected===!0},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild}, -has:function(c,a,d){return!!s(d[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){var a=c.getAttribute("type"),d=c.type;return c.nodeName.toLowerCase()==="input"&&"text"===d&&(a===d||a===null)},radio:function(c){return c.nodeName.toLowerCase()==="input"&&"radio"===c.type},checkbox:function(c){return c.nodeName.toLowerCase()==="input"&&"checkbox"===c.type},file:function(c){return c.nodeName.toLowerCase()==="input"&&"file"===c.type},password:function(c){return c.nodeName.toLowerCase()=== +typeof a==="string",b=d&&!H.test(a),d=d&&!b;b&&(a=a.toLowerCase());for(var b=0,e=c.length,o;b":function(c,a){var d,b=typeof a==="string",e=0,o=c.length;if(b&&!H.test(a))for(a=a.toLowerCase();e=0)?d||b.push(h):d&&(a[o]=!1));return!1},ID:function(c){return c[1].replace(w,"")},TAG:function(c){return c[1].replace(w,"").toLowerCase()},CHILD:function(c){if(c[1]=== +"nth"){c[2]||p.error(c[0]);c[2]=c[2].replace(/^\+|\s*/g,"");var a=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=a[1]+(a[2]||1)-0;c[3]=a[3]-0}else c[2]&&p.error(c[0]);c[0]=h++;return c},ATTR:function(c,a,d,b,e,o){a=c[1]=c[1].replace(w,"");!o&&n.attrMap[a]&&(c[1]=n.attrMap[a]);c[4]=(c[4]||c[5]||"").replace(w,"");c[2]==="~="&&(c[4]=" "+c[4]+" ");return c},PSEUDO:function(c,a,d,b,o){if(c[1]==="not")if((e.exec(c[3])||"").length>1|| +/^\w/.test(c[3]))c[3]=p(c[3],null,null,a);else return c=p.filter(c[3],a,d,1^o),d||b.push.apply(b,c),!1;else if(n.match.POS.test(c[0])||n.match.CHILD.test(c[0]))return!0;return c},POS:function(c){c.unshift(!0);return c}},filters:{enabled:function(c){return c.disabled===!1&&c.type!=="hidden"},disabled:function(c){return c.disabled===!0},checked:function(c){return c.checked===!0},selected:function(c){return c.selected===!0},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild}, +has:function(c,a,d){return!!p(d[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){var a=c.getAttribute("type"),d=c.type;return c.nodeName.toLowerCase()==="input"&&"text"===d&&(a===d||a===null)},radio:function(c){return c.nodeName.toLowerCase()==="input"&&"radio"===c.type},checkbox:function(c){return c.nodeName.toLowerCase()==="input"&&"checkbox"===c.type},file:function(c){return c.nodeName.toLowerCase()==="input"&&"file"===c.type},password:function(c){return c.nodeName.toLowerCase()=== "input"&&"password"===c.type},submit:function(c){var a=c.nodeName.toLowerCase();return(a==="input"||a==="button")&&"submit"===c.type},image:function(c){return c.nodeName.toLowerCase()==="input"&&"image"===c.type},reset:function(c){var a=c.nodeName.toLowerCase();return(a==="input"||a==="button")&&"reset"===c.type},button:function(c){var a=c.nodeName.toLowerCase();return a==="input"&&"button"===c.type||a==="button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)},focus:function(c){return c=== -c.ownerDocument.activeElement}},setFilters:{first:function(c,a){return a===0},last:function(c,a,d,b){return a===b.length-1},even:function(c,a){return a%2===0},odd:function(c,a){return a%2===1},lt:function(c,a,d){return ad[3]-0},nth:function(c,a,d){return d[3]-0===a},eq:function(c,a,d){return d[3]-0===a}},filter:{PSEUDO:function(c,a,d,b){var e=a[1],p=o.filters[e];if(p)return p(c,d,a,b);else if(e==="contains")return(c.textContent||c.innerText||s.getText([c])||"").indexOf(a[3])>= -0;else if(e==="not"){a=a[3];d=0;for(b=a.length;d=0}},ID:function(c,a){return c.nodeType===1&&c.getAttribute("id")===a},TAG:function(c,a){return a==="*"&&c.nodeType===1||c.nodeName.toLowerCase()===a},CLASS:function(c,a){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(a)>-1},ATTR:function(c,a){var d=a[1],d=o.attrHandle[d]?o.attrHandle[d](c):c[d]!=null?c[d]:c.getAttribute(d),b=d+"",e=a[2],p=a[4];return d==null?e==="!=":e==="="?b===p:e==="*="?b.indexOf(p)>= -0:e==="~="?(" "+b+" ").indexOf(p)>=0:!p?b&&d!==!1:e==="!="?b!==p:e==="^="?b.indexOf(p)===0:e==="$="?b.substr(b.length-p.length)===p:e==="|="?b===p||b.substr(0,p.length+1)===p+"-":!1},POS:function(c,a,d,b){var e=o.setFilters[a[2]];if(e)return e(c,d,a,b)}}},R=o.match.POS,j=function(c,a){return"\\"+(a-0+1)},L;for(L in o.match)o.match[L]=RegExp(o.match[L].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[L]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[L].source.replace(/\\(\d+)/g,j));var l=function(c, -a){c=Array.prototype.slice.call(c,0);if(a)return a.push.apply(a,c),a;return c};try{Array.prototype.slice.call(u.documentElement.childNodes,0)}catch(ba){l=function(c,a){var d=0,b=a||[];if(g.call(c)==="[object Array]")Array.prototype.push.apply(b,c);else if(typeof c.length==="number")for(var e=c.length;d";d.insertBefore(c,d.firstChild);if(u.getElementById(a))o.find.ID=function(c,a,d){if(typeof a.getElementById!=="undefined"&&!d)return(a=a.getElementById(c[1]))? -a.id===c[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===c[1]?[a]:b:[]},o.filter.ID=function(c,a){var d=typeof c.getAttributeNode!=="undefined"&&c.getAttributeNode("id");return c.nodeType===1&&d&&d.nodeValue===a};d.removeChild(c);d=c=null})();(function(){var c=u.createElement("div");c.appendChild(u.createComment(""));if(c.getElementsByTagName("*").length>0)o.find.TAG=function(c,a){var d=a.getElementsByTagName(c[1]);if(c[1]==="*"){for(var b=[],e=0;d[e];e++)d[e].nodeType=== -1&&b.push(d[e]);d=b}return d};c.innerHTML="";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(c){return c.getAttribute("href",2)};c=null})();u.querySelectorAll&&function(){var c=s,a=u.createElement("div");a.innerHTML="

";if(!(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0)){s=function(a,d,b,e){d=d||u;if(!e&&!s.isXML(d)){var p=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a); -if(p&&(d.nodeType===1||d.nodeType===9))if(p[1])return l(d.getElementsByTagName(a),b);else if(p[2]&&o.find.CLASS&&d.getElementsByClassName)return l(d.getElementsByClassName(p[2]),b);if(d.nodeType===9){if(a==="body"&&d.body)return l([d.body],b);else if(p&&p[3]){var n=d.getElementById(p[3]);if(n&&n.parentNode){if(n.id===p[3])return l([n],b)}else return l([],b)}try{return l(d.querySelectorAll(a),b)}catch(h){}}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var p=d,g=(n=d.getAttribute("id"))|| -"__sizzle__",f=d.parentNode,C=/^\s*[+~]/.test(a);n?g=g.replace(/'/g,"\\$&"):d.setAttribute("id",g);if(C&&f)d=d.parentNode;try{if(!C||f)return l(d.querySelectorAll("[id='"+g+"'] "+a),b)}catch(q){}finally{n||p.removeAttribute("id")}}}return c(a,d,b,e)};for(var d in c)s[d]=c[d];a=null}}();(function(){var c=u.documentElement,a=c.matchesSelector||c.mozMatchesSelector||c.webkitMatchesSelector||c.msMatchesSelector;if(a){var d=!a.call(u.createElement("div"),"div"),b=!1;try{a.call(u.documentElement,"[test!='']:sizzle")}catch(e){b= -!0}s.matchesSelector=function(c,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!s.isXML(c))try{if(b||!o.match.PSEUDO.test(e)&&!/!=/.test(e)){var p=a.call(c,e);if(p||!d||c.document&&c.document.nodeType!==11)return p}}catch(n){}return s(e,null,null,[c]).length>0}}})();(function(){var c=u.createElement("div");c.innerHTML="
";if(c.getElementsByClassName&&c.getElementsByClassName("e").length!==0&&(c.lastChild.className="e",c.getElementsByClassName("e").length!== -1))o.order.splice(1,0,"CLASS"),o.find.CLASS=function(c,a,d){if(typeof a.getElementsByClassName!=="undefined"&&!d)return a.getElementsByClassName(c[1])},c=null})();s.contains=u.documentElement.contains?function(c,a){return c!==a&&(c.contains?c.contains(a):!0)}:u.documentElement.compareDocumentPosition?function(c,a){return!!(c.compareDocumentPosition(a)&16)}:function(){return!1};s.isXML=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":!1};var ka=function(c,a){for(var d, -b=[],e="",p=a.nodeType?[a]:a;d=o.match.PSEUDO.exec(c);)e+=d[0],c=c.replace(o.match.PSEUDO,"");c=o.relative[c]?c+"*":c;d=0;for(var n=p.length;d0)for(f=g;f0:this.filter(c).length>0)},closest:function(c,a){var b=[],e,h,g=this[0];if(d.isArray(c)){var f,q={},z=1;if(g&&c.length){e=0;for(h=c.length;e-1:d(g).is(e))&&b.push({selector:f,elem:g,level:z});g=g.parentNode;z++}}return b}f=s.test(c)|| +c.ownerDocument.activeElement}},setFilters:{first:function(c,a){return a===0},last:function(c,a,d,b){return a===b.length-1},even:function(c,a){return a%2===0},odd:function(c,a){return a%2===1},lt:function(c,a,d){return ad[3]-0},nth:function(c,a,d){return d[3]-0===a},eq:function(c,a,d){return d[3]-0===a}},filter:{PSEUDO:function(c,a,d,b){var e=a[1],o=n.filters[e];if(o)return o(c,d,a,b);else if(e==="contains")return(c.textContent||c.innerText||p.getText([c])||"").indexOf(a[3])>= +0;else if(e==="not"){a=a[3];d=0;for(b=a.length;d=0}},ID:function(c,a){return c.nodeType===1&&c.getAttribute("id")===a},TAG:function(c,a){return a==="*"&&c.nodeType===1||c.nodeName.toLowerCase()===a},CLASS:function(c,a){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(a)>-1},ATTR:function(c,a){var d=a[1],d=n.attrHandle[d]?n.attrHandle[d](c):c[d]!=null?c[d]:c.getAttribute(d),b=d+"",e=a[2],o=a[4];return d==null?e==="!=":e==="="?b===o:e==="*="?b.indexOf(o)>= +0:e==="~="?(" "+b+" ").indexOf(o)>=0:!o?b&&d!==!1:e==="!="?b!==o:e==="^="?b.indexOf(o)===0:e==="$="?b.substr(b.length-o.length)===o:e==="|="?b===o||b.substr(0,o.length+1)===o+"-":!1},POS:function(c,a,d,b){var e=n.setFilters[a[2]];if(e)return e(c,d,a,b)}}},Q=n.match.POS,j=function(c,a){return"\\"+(a-0+1)},K;for(K in n.match)n.match[K]=RegExp(n.match[K].source+/(?![^\[]*\])(?![^\(]*\))/.source),n.leftMatch[K]=RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[K].source.replace(/\\(\d+)/g,j));var Y=function(c, +a){c=Array.prototype.slice.call(c,0);if(a)return a.push.apply(a,c),a;return c};try{Array.prototype.slice.call(v.documentElement.childNodes,0)}catch(k){Y=function(c,a){var d=0,b=a||[];if(g.call(c)==="[object Array]")Array.prototype.push.apply(b,c);else if(typeof c.length==="number")for(var e=c.length;d";d.insertBefore(c,d.firstChild);if(v.getElementById(a))n.find.ID=function(c,a,d){if(typeof a.getElementById!=="undefined"&&!d)return(a=a.getElementById(c[1]))? +a.id===c[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===c[1]?[a]:b:[]},n.filter.ID=function(c,a){var d=typeof c.getAttributeNode!=="undefined"&&c.getAttributeNode("id");return c.nodeType===1&&d&&d.nodeValue===a};d.removeChild(c);d=c=null})();(function(){var c=v.createElement("div");c.appendChild(v.createComment(""));if(c.getElementsByTagName("*").length>0)n.find.TAG=function(c,a){var d=a.getElementsByTagName(c[1]);if(c[1]==="*"){for(var b=[],e=0;d[e];e++)d[e].nodeType=== +1&&b.push(d[e]);d=b}return d};c.innerHTML="";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(c){return c.getAttribute("href",2)};c=null})();v.querySelectorAll&&function(){var c=p,a=v.createElement("div");a.innerHTML="

";if(!(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0)){p=function(a,d,b,e){d=d||v;if(!e&&!p.isXML(d)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a); +if(o&&(d.nodeType===1||d.nodeType===9))if(o[1])return Y(d.getElementsByTagName(a),b);else if(o[2]&&n.find.CLASS&&d.getElementsByClassName)return Y(d.getElementsByClassName(o[2]),b);if(d.nodeType===9){if(a==="body"&&d.body)return Y([d.body],b);else if(o&&o[3]){var h=d.getElementById(o[3]);if(h&&h.parentNode){if(h.id===o[3])return Y([h],b)}else return Y([],b)}try{return Y(d.querySelectorAll(a),b)}catch(r){}}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var o=d,g=(h=d.getAttribute("id"))|| +"__sizzle__",u=d.parentNode,f=/^\s*[+~]/.test(a);h?g=g.replace(/'/g,"\\$&"):d.setAttribute("id",g);if(f&&u)d=d.parentNode;try{if(!f||u)return Y(d.querySelectorAll("[id='"+g+"'] "+a),b)}catch(y){}finally{h||o.removeAttribute("id")}}}return c(a,d,b,e)};for(var d in c)p[d]=c[d];a=null}}();(function(){var c=v.documentElement,a=c.matchesSelector||c.mozMatchesSelector||c.webkitMatchesSelector||c.msMatchesSelector;if(a){var d=!a.call(v.createElement("div"),"div"),b=!1;try{a.call(v.documentElement,"[test!='']:sizzle")}catch(e){b= +!0}p.matchesSelector=function(c,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!p.isXML(c))try{if(b||!n.match.PSEUDO.test(e)&&!/!=/.test(e)){var o=a.call(c,e);if(o||!d||c.document&&c.document.nodeType!==11)return o}}catch(h){}return p(e,null,null,[c]).length>0}}})();(function(){var c=v.createElement("div");c.innerHTML="
";if(c.getElementsByClassName&&c.getElementsByClassName("e").length!==0&&(c.lastChild.className="e",c.getElementsByClassName("e").length!== +1))n.order.splice(1,0,"CLASS"),n.find.CLASS=function(c,a,d){if(typeof a.getElementsByClassName!=="undefined"&&!d)return a.getElementsByClassName(c[1])},c=null})();p.contains=v.documentElement.contains?function(c,a){return c!==a&&(c.contains?c.contains(a):!0)}:v.documentElement.compareDocumentPosition?function(c,a){return!!(c.compareDocumentPosition(a)&16)}:function(){return!1};p.isXML=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":!1};var l=function(c,a){for(var d, +b=[],e="",o=a.nodeType?[a]:a;d=n.match.PSEUDO.exec(c);)e+=d[0],c=c.replace(n.match.PSEUDO,"");c=n.relative[c]?c+"*":c;d=0;for(var h=o.length;d0)for(f=g;f0:this.filter(c).length>0)},closest:function(c,a){var b=[],e,h,g=this[0];if(d.isArray(c)){var f,q={},p=1;if(g&&c.length){e=0;for(h=c.length;e-1:d(g).is(e))&&b.push({selector:f,elem:g,level:p});g=g.parentNode;p++}}return b}f=H.test(c)|| typeof c!=="string"?d(c,a||this.context):0;e=0;for(h=this.length;e-1:d.find.matchesSelector(g,c)){b.push(g);break}else if(g=g.parentNode,!g||!g.ownerDocument||g===a||g.nodeType===11)break;b=b.length>1?d.unique(b):b;return this.pushStack(b,"closest",c)},index:function(c){if(!c||typeof c==="string")return d.inArray(this[0],c?d(c):this.parent().children());return d.inArray(c.jquery?c[0]:c,this)},add:function(c,a){var b=typeof c==="string"?d(c,a):d.makeArray(c&& c.nodeType?[c]:c),e=d.merge(this.get(),b);return this.pushStack(!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return d.dir(c,"parentNode")},parentsUntil:function(c,a,b){return d.dir(c,"parentNode",b)},next:function(c){return d.nth(c,2,"nextSibling")},prev:function(c){return d.nth(c, 2,"previousSibling")},nextAll:function(c){return d.dir(c,"nextSibling")},prevAll:function(c){return d.dir(c,"previousSibling")},nextUntil:function(c,a,b){return d.dir(c,"nextSibling",b)},prevUntil:function(c,a,b){return d.dir(c,"previousSibling",b)},siblings:function(c){return d.sibling(c.parentNode.firstChild,c)},children:function(c){return d.sibling(c.firstChild)},contents:function(c){return d.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:d.makeArray(c.childNodes)}},function(c, -a){d.fn[c]=function(b,e){var g=d.map(this,a,b),f=h.call(arguments);ua.test(c)||(e=b);e&&typeof e==="string"&&(g=d.filter(e,g));g=this.length>1&&!q[c]?d.unique(g):g;if((this.length>1||ya.test(e))&&U.test(c))g=g.reverse();return this.pushStack(g,c,f.join(","))}});d.extend({filter:function(c,a,b){b&&(c=":not("+c+")");return a.length===1?d.find.matchesSelector(a[0],c)?[a[0]]:[]:d.find.matches(c,a)},dir:function(c,a,e){for(var h=[],c=c[a];c&&c.nodeType!==9&&(e===b||c.nodeType!==1||!d(c).is(e));)c.nodeType=== -1&&h.push(c),c=c[a];return h},nth:function(c,a,d){for(var a=a||1,b=0;c;c=c[d])if(c.nodeType===1&&++b===a)break;return c},sibling:function(c,a){for(var d=[];c;c=c.nextSibling)c.nodeType===1&&c!==a&&d.push(c);return d}});var R=/ jQuery\d+="(?:\d+|null)"/g,z=/^\s+/,L=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ba=/<([\w:]+)/,ga=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};oa.optgroup=oa.option;oa.tbody=oa.tfoot=oa.colgroup=oa.caption=oa.thead;oa.th=oa.td;if(!d.support.htmlSerialize)oa._default=[1,"div
","
"];d.fn.extend({text:function(c){if(d.isFunction(c))return this.each(function(a){var b= -d(this);b.text(c.call(this,a,b.text()))});if(typeof c!=="object"&&c!==b)return this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(c));return d.text(this)},wrapAll:function(c){if(d.isFunction(c))return this.each(function(a){d(this).wrapAll(c.call(this,a))});if(this[0]){var a=d(c,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var c=this;c.firstChild&&c.firstChild.nodeType===1;)c=c.firstChild;return c}).append(this)}return this}, +a){d.fn[c]=function(b,e){var g=d.map(this,a,b),f=h.call(arguments);ua.test(c)||(e=b);e&&typeof e==="string"&&(g=d.filter(e,g));g=this.length>1&&!q[c]?d.unique(g):g;if((this.length>1||ya.test(e))&&T.test(c))g=g.reverse();return this.pushStack(g,c,f.join(","))}});d.extend({filter:function(c,a,b){b&&(c=":not("+c+")");return a.length===1?d.find.matchesSelector(a[0],c)?[a[0]]:[]:d.find.matches(c,a)},dir:function(c,a,e){for(var h=[],c=c[a];c&&c.nodeType!==9&&(e===b||c.nodeType!==1||!d(c).is(e));)c.nodeType=== +1&&h.push(c),c=c[a];return h},nth:function(c,a,d){for(var a=a||1,b=0;c;c=c[d])if(c.nodeType===1&&++b===a)break;return c},sibling:function(c,a){for(var d=[];c;c=c.nextSibling)c.nodeType===1&&c!==a&&d.push(c);return d}});var Q=/ jQuery\d+="(?:\d+|null)"/g,w=/^\s+/,K=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Y=/<([\w:]+)/,ja=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};na.optgroup=na.option;na.tbody=na.tfoot=na.colgroup=na.caption=na.thead;na.th=na.td;if(!d.support.htmlSerialize)na._default=[1,"div
","
"];d.fn.extend({text:function(c){if(d.isFunction(c))return this.each(function(a){var b= +d(this);b.text(c.call(this,a,b.text()))});if(typeof c!=="object"&&c!==b)return this.empty().append((this[0]&&this[0].ownerDocument||v).createTextNode(c));return d.text(this)},wrapAll:function(c){if(d.isFunction(c))return this.each(function(a){d(this).wrapAll(c.call(this,a))});if(this[0]){var a=d(c,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var c=this;c.firstChild&&c.firstChild.nodeType===1;)c=c.firstChild;return c}).append(this)}return this}, wrapInner:function(c){if(d.isFunction(c))return this.each(function(a){d(this).wrapInner(c.call(this,a))});return this.each(function(){var a=d(this),b=a.contents();b.length?b.wrapAll(c):a.append(c)})},wrap:function(c){return this.each(function(){d(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments, !0,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this)});else if(arguments.length){var c=d(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this.nextSibling)});else if(arguments.length){var c= this.pushStack(this,"after",arguments);c.push.apply(c,d(arguments[0]).toArray());return c}},remove:function(c,a){for(var b=0,e;(e=this[b])!=null;b++)if(!c||d.filter(c,[e]).length)!a&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var c=0,a;(a=this[c])!=null;c++)for(a.nodeType===1&&d.cleanData(a.getElementsByTagName("*"));a.firstChild;)a.removeChild(a.firstChild);return this},clone:function(c,a){c= -c==null?!1:c;a=a==null?c:a;return this.map(function(){return d.clone(this,c,a)})},html:function(c){if(c===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(R,""):null;else if(typeof c==="string"&&!ca.test(c)&&(d.support.leadingWhitespace||!z.test(c))&&!oa[(ba.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(L,"<$1>");try{for(var a=0,e=this.length;a");try{for(var a=0,e=this.length;a1&&g0?this.clone(!0):this).get();d(b[h])[a](f);e=e.concat(f)}return this.pushStack(e,c,b.selector)}}});d.extend({clone:function(c,a,b){var e=c.cloneNode(!0),h,g,f;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!d.isXMLDoc(c)){r(c,e);h=t(c);g=t(e);for(f=0;h[f];++f)r(h[f],g[f])}if(a&&(G(c,e),b)){h=t(c);g=t(e);for(f=0;h[f];++f)G(h[f],g[f])}return e},clean:function(c,a,b,e){a= -a||u;typeof a.createElement==="undefined"&&(a=a.ownerDocument||a[0]&&a[0].ownerDocument||u);for(var h=[],g,f=0,q;(q=c[f])!=null;f++)if(typeof q==="number"&&(q+=""),q){if(typeof q==="string")if(ka.test(q)){q=q.replace(L,"<$1>");g=(ba.exec(q)||["",""])[1].toLowerCase();var s=oa[g]||oa._default,o=s[0],E=a.createElement("div");for(E.innerHTML=s[1]+q+s[2];o--;)E=E.lastChild;if(!d.support.tbody){o=ga.test(q);s=g==="table"&&!o?E.firstChild&&E.firstChild.childNodes:s[1]===""&&!o?E.childNodes: -[];for(g=s.length-1;g>=0;--g)d.nodeName(s[g],"tbody")&&!s[g].childNodes.length&&s[g].parentNode.removeChild(s[g])}!d.support.leadingWhitespace&&z.test(q)&&E.insertBefore(a.createTextNode(z.exec(q)[0]),E.firstChild);q=E.childNodes}else q=a.createTextNode(q);var R;if(!d.support.appendChecked)if(q[0]&&typeof(R=q.length)==="number")for(g=0;g=0)return a+"px"}else return a}}});if(!d.support.opacity)d.cssHooks.opacity={get:function(c,a){return Wa.test((a&&c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100+"":a?"1":""},set:function(c,a){var b=c.style,e=c.currentStyle;b.zoom=1;var h=d.isNaN(a)?"":"alpha(opacity="+a*100+")",e=e&&e.filter||b.filter||"";b.filter=Ca.test(e)?e.replace(Ca,h):e+" "+h}};d(function(){if(!d.support.reliableMarginRight)d.cssHooks.marginRight= -{get:function(c,a){var b;d.swap(c,{display:"inline-block"},function(){b=a?Ia(c,"margin-right","marginRight"):c.style.marginRight});return b}}});u.defaultView&&u.defaultView.getComputedStyle&&(bb=function(c,a){var e,h,a=a.replace(Na,"-$1").toLowerCase();if(!(h=c.ownerDocument.defaultView))return b;if(h=h.getComputedStyle(c,null))e=h.getPropertyValue(a),e===""&&!d.contains(c.ownerDocument.documentElement,c)&&(e=d.style(c,a));return e});u.documentElement.currentStyle&&(Qa=function(c,a){var d,b=c.currentStyle&& -c.currentStyle[a],e=c.runtimeStyle&&c.runtimeStyle[a],h=c.style;if(!ab.test(b)&&nb.test(b)){d=h.left;if(e)c.runtimeStyle.left=c.currentStyle.left;h.left=a==="fontSize"?"1em":b||0;b=h.pixelLeft+"px";h.left=d;if(e)c.runtimeStyle.left=e}return b===""?"auto":b});Ia=bb||Qa;if(d.expr&&d.expr.filters)d.expr.filters.hidden=function(c){var a=c.offsetHeight;return c.offsetWidth===0&&a===0||!d.support.reliableHiddenOffsets&&(c.style.display||d.css(c,"display"))==="none"},d.expr.filters.visible=function(c){return!d.expr.filters.hidden(c)}; -var sb=/%20/g,mb=/\[\]$/,cb=/\r?\n/g,tb=/#.*$/,ub=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,vb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,wb=/^(?:GET|HEAD)$/,xb=/^\/\//,db=/\?/,yb=/)<[^<]*)*<\/script>/gi,zb=/^(?:select|textarea)/i,Za=/\s+/,Ab=/([?&])_=[^&]*/,eb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,fb=d.fn.load,Sa={},gb={},Ea,Fa;try{Ea=W.href}catch(Gb){Ea=u.createElement("a"),Ea.href="",Ea=Ea.href}Fa=eb.exec(Ea.toLowerCase())|| +c):this},detach:function(c){return this.remove(c,!0)},domManip:function(c,a,e){var h,g,f,q=c[0],p=[];if(!d.support.checkClone&&arguments.length===3&&typeof q==="string"&&I.test(q))return this.each(function(){d(this).domManip(c,a,e,!0)});if(d.isFunction(q))return this.each(function(h){var g=d(this);c[0]=q.call(this,h,a?g.html():b);g.domManip(c,a,e)});if(this[0]){h=q&&q.parentNode;h=d.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length?{fragment:h}:d.buildFragment(c,this,p);f= +h.fragment;if(g=f.childNodes.length===1?f=f.firstChild:f.firstChild){a=a&&d.nodeName(g,"tr");g=0;for(var w=this.length,n=w-1;g1&&g0?this.clone(!0):this).get();d(b[h])[a](f);e=e.concat(f)}return this.pushStack(e,c,b.selector)}}});d.extend({clone:function(c,a,b){var e=c.cloneNode(!0),h,g,f;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!d.isXMLDoc(c)){z(c,e);h=s(c);g=s(e);for(f=0;h[f];++f)z(h[f],g[f])}if(a&&(B(c,e),b)){h=s(c);g=s(e);for(f=0;h[f];++f)B(h[f],g[f])}return e},clean:function(c,a,b,e){a= +a||v;typeof a.createElement==="undefined"&&(a=a.ownerDocument||a[0]&&a[0].ownerDocument||v);for(var h=[],g,f=0,q;(q=c[f])!=null;f++)if(typeof q==="number"&&(q+=""),q){if(typeof q==="string")if(W.test(q)){q=q.replace(K,"<$1>");g=(Y.exec(q)||["",""])[1].toLowerCase();var p=na[g]||na._default,n=p[0],H=a.createElement("div");for(H.innerHTML=p[1]+q+p[2];n--;)H=H.lastChild;if(!d.support.tbody){n=ja.test(q);p=g==="table"&&!n?H.firstChild&&H.firstChild.childNodes:p[1]==="
"&&!n?H.childNodes:[]; +for(g=p.length-1;g>=0;--g)d.nodeName(p[g],"tbody")&&!p[g].childNodes.length&&p[g].parentNode.removeChild(p[g])}!d.support.leadingWhitespace&&w.test(q)&&H.insertBefore(a.createTextNode(w.exec(q)[0]),H.firstChild);q=H.childNodes}else q=a.createTextNode(q);var Q;if(!d.support.appendChecked)if(q[0]&&typeof(Q=q.length)==="number")for(g=0;g=0)return a+"px"}else return a}}});if(!d.support.opacity)d.cssHooks.opacity={get:function(c,a){return Ia.test((a&&c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100+"":a?"1":""},set:function(c,a){var b=c.style,e=c.currentStyle;b.zoom=1;var h=d.isNaN(a)?"":"alpha(opacity="+a*100+")",e=e&&e.filter||b.filter||"";b.filter=Ca.test(e)?e.replace(Ca,h):e+" "+h}};d(function(){if(!d.support.reliableMarginRight)d.cssHooks.marginRight= +{get:function(c,a){var b;d.swap(c,{display:"inline-block"},function(){b=a?Ja(c,"margin-right","marginRight"):c.style.marginRight});return b}}});v.defaultView&&v.defaultView.getComputedStyle&&(bb=function(c,a){var e,h,a=a.replace(Oa,"-$1").toLowerCase();if(!(h=c.ownerDocument.defaultView))return b;if(h=h.getComputedStyle(c,null))e=h.getPropertyValue(a),e===""&&!d.contains(c.ownerDocument.documentElement,c)&&(e=d.style(c,a));return e});v.documentElement.currentStyle&&(Ra=function(c,a){var d,b=c.currentStyle&& +c.currentStyle[a],e=c.runtimeStyle&&c.runtimeStyle[a],h=c.style;if(!ab.test(b)&&nb.test(b)){d=h.left;if(e)c.runtimeStyle.left=c.currentStyle.left;h.left=a==="fontSize"?"1em":b||0;b=h.pixelLeft+"px";h.left=d;if(e)c.runtimeStyle.left=e}return b===""?"auto":b});Ja=bb||Ra;if(d.expr&&d.expr.filters)d.expr.filters.hidden=function(c){var a=c.offsetHeight;return c.offsetWidth===0&&a===0||!d.support.reliableHiddenOffsets&&(c.style.display||d.css(c,"display"))==="none"},d.expr.filters.visible=function(c){return!d.expr.filters.hidden(c)}; +var sb=/%20/g,mb=/\[\]$/,cb=/\r?\n/g,tb=/#.*$/,ub=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,vb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,wb=/^(?:GET|HEAD)$/,xb=/^\/\//,db=/\?/,yb=/)<[^<]*)*<\/script>/gi,zb=/^(?:select|textarea)/i,Za=/\s+/,Ab=/([?&])_=[^&]*/,eb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,fb=d.fn.load,Ta={},gb={},Fa,Ga;try{Fa=X.href}catch(Gb){Fa=v.createElement("a"),Fa.href="",Fa=Fa.href}Ga=eb.exec(Fa.toLowerCase())|| [];d.fn.extend({load:function(c,a,e){if(typeof c!=="string"&&fb)return fb.apply(this,arguments);else if(!this.length)return this;var h=c.indexOf(" ");if(h>=0)var g=c.slice(h,c.length),c=c.slice(0,h);h="GET";a&&(d.isFunction(a)?(e=a,a=b):typeof a==="object"&&(a=d.param(a,d.ajaxSettings.traditional),h="POST"));var f=this;d.ajax({url:c,type:h,dataType:"html",data:a,complete:function(c,a,b){b=c.responseText;c.isResolved()&&(c.done(function(c){b=c}),f.html(g?d("
").append(b.replace(yb,"")).find(g): b));e&&f.each(e,[b,a,c])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||zb.test(this.nodeName)||vb.test(this.type))}).map(function(c,a){var b=d(this).val();return b==null?null:d.isArray(b)?d.map(b,function(c){return{name:a.name,value:c.replace(cb,"\r\n")}}):{name:a.name,value:b.replace(cb,"\r\n")}}).get()}}); d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,a){d.fn[a]=function(c){return this.bind(a,c)}});d.each(["get","post"],function(c,a){d[a]=function(c,e,h,g){d.isFunction(e)&&(g=g||h,h=e,e=b);return d.ajax({type:a,url:c,data:e,success:h,dataType:g})}});d.extend({getScript:function(c,a){return d.get(c,b,a,"script")},getJSON:function(c,a,b){return d.get(c,a,b,"json")},ajaxSetup:function(c,a){a?d.extend(!0,c,d.ajaxSettings,a):(a=c,c=d.extend(!0,d.ajaxSettings, -a));for(var b in{context:1,url:1})b in a?c[b]=a[b]:b in d.ajaxSettings&&(c[b]=d.ajaxSettings[b]);return c},ajaxSettings:{url:Ea,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|widget):$/.test(Fa[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML", -text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:y(Sa),ajaxTransport:y(gb),ajax:function(c,a){function e(c,a,n,p){if(k!==2){k=2;X&&clearTimeout(X);l=b;j=p||"";J.readyState=c?4:0;var E,R,L;if(n){var p=h,ba=J,K=p.contents,ga=p.dataTypes,w=p.responseFields,ca,t,r,v;for(t in w)t in n&&(ba[w[t]]=n[t]);for(;ga[0]==="*";)ga.shift(),ca===b&&(ca=p.mimeType||ba.getResponseHeader("content-type"));if(ca)for(t in K)if(K[t]&&K[t].test(ca)){ga.unshift(t); -break}if(ga[0]in n)r=ga[0];else{for(t in n){if(!ga[0]||p.converters[t+" "+ga[0]]){r=t;break}v||(v=t)}r=r||v}r?(r!==ga[0]&&ga.unshift(r),n=n[r]):n=void 0}else n=b;if(c>=200&&c<300||c===304){if(h.ifModified){if(ca=J.getResponseHeader("Last-Modified"))d.lastModified[o]=ca;if(ca=J.getResponseHeader("Etag"))d.etag[o]=ca}if(c===304)a="notmodified",E=!0;else try{ca=h;ca.dataFilter&&(n=ca.dataFilter(n,ca.dataType));var sa=ca.dataTypes;t={};var la,A,Wa=sa.length,y,Ba=sa[0],u,Na,F,Ca,H;for(la=1;la0&&(X=setTimeout(function(){J.abort("timeout")},h.timeout));try{k=1,l.send(E, -e)}catch(w){status<2?e(-1,w):d.error(w)}}else e(-1,"No Transport");return J},param:function(c,a){var e=[],h=function(c,a){a=d.isFunction(a)?a():a;e[e.length]=encodeURIComponent(c)+"="+encodeURIComponent(a)};if(a===b)a=d.ajaxSettings.traditional;if(d.isArray(c)||c.jquery&&!d.isPlainObject(c))d.each(c,function(){h(this.name,this.value)});else for(var g in c)O(g,c[g],a,h);return e.join("&").replace(sb,"+")}});d.extend({active:0,lastModified:{},etag:{}});var Bb=d.now(),Ra=/(\=)\?(&|$)|\?\?/i;d.ajaxSetup({jsonp:"callback", -jsonpCallback:function(){return d.expando+"_"+Bb++}});d.ajaxPrefilter("json jsonp",function(c,b,e){b=c.contentType==="application/x-www-form-urlencoded"&&typeof c.data==="string";if(c.dataTypes[0]==="jsonp"||c.jsonp!==!1&&(Ra.test(c.url)||b&&Ra.test(c.data))){var h,g=c.jsonpCallback=d.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,f=a[g],q=c.url,s=c.data,z="$1"+g+"$2";c.jsonp!==!1&&(q=q.replace(Ra,z),c.url===q&&(b&&(s=s.replace(Ra,z)),c.data===s&&(q+=(/\?/.test(q)?"&":"?")+c.jsonp+ -"="+g)));c.url=q;c.data=s;a[g]=function(c){h=[c]};e.always(function(){a[g]=f;if(h&&d.isFunction(f))a[g](h[0])});c.converters["script json"]=function(){h||d.error(g+" was not called");return h[0]};c.dataTypes[0]="json";return"script"}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(c){d.globalEval(c);return c}}});d.ajaxPrefilter("script",function(c){if(c.cache=== -b)c.cache=!1;if(c.crossDomain)c.type="GET",c.global=!1});d.ajaxTransport("script",function(c){if(c.crossDomain){var a,d=u.head||u.getElementsByTagName("head")[0]||u.documentElement;return{send:function(e,h){a=u.createElement("script");a.async="async";if(c.scriptCharset)a.charset=c.scriptCharset;a.src=c.url;a.onload=a.onreadystatechange=function(c,e){if(e||!a.readyState||/loaded|complete/.test(a.readyState))a.onload=a.onreadystatechange=null,d&&a.parentNode&&d.removeChild(a),a=b,e||h(200,"success")}; -d.insertBefore(a,d.firstChild)},abort:function(){if(a)a.onload(0,1)}}}});var Xa=a.ActiveXObject?function(){for(var a in Ja)Ja[a](0,1)}:!1,Cb=0,Ja;d.ajaxSettings.xhr=a.ActiveXObject?function(){var c;if(!(c=!this.isLocal&&T()))a:{try{c=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(d){}c=void 0}return c}:T;(function(a){d.extend(d.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(d.ajaxSettings.xhr());d.support.ajax&&d.ajaxTransport(function(c){if(!c.crossDomain||d.support.cors){var e;return{send:function(h, -g){var f=c.xhr(),q,s;c.username?f.open(c.type,c.url,c.async,c.username,c.password):f.open(c.type,c.url,c.async);if(c.xhrFields)for(s in c.xhrFields)f[s]=c.xhrFields[s];c.mimeType&&f.overrideMimeType&&f.overrideMimeType(c.mimeType);!c.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");try{for(s in h)f.setRequestHeader(s,h[s])}catch(z){}f.send(c.hasContent&&c.data||null);e=function(a,h){var n,s,z,o,E;try{if(e&&(h||f.readyState===4)){e=b;if(q)f.onreadystatechange=d.noop,Xa&& -delete Ja[q];if(h)f.readyState!==4&&f.abort();else{n=f.status;z=f.getAllResponseHeaders();o={};if((E=f.responseXML)&&E.documentElement)o.xml=E;o.text=f.responseText;try{s=f.statusText}catch(R){s=""}!n&&c.isLocal&&!c.crossDomain?n=o.text?200:404:n===1223&&(n=204)}}}catch(j){h||g(-1,j)}o&&g(n,s,o,z)};!c.async||f.readyState===4?e():(q=++Cb,Xa&&(Ja||(Ja={},d(a).unload(Xa)),Ja[q]=e),f.onreadystatechange=e)},abort:function(){e&&e(0,1)}}}});var Ta={},Aa,La,Db=/^(?:toggle|show|hide)$/,Eb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i, -Ka,$a=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Oa,Ya=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;d.fn.extend({show:function(a,b,e){if(a||a===0)return this.animate(aa("show",3),a,b,e);else{for(var e=0,h=this.length;e=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=!0;for(f in g.animatedProperties)g.animatedProperties[f]!==!0&&(e=!1);if(e){g.overflow!=null&&!d.support.shrinkWrapBlocks&&d.each(["", +a));for(var b in{context:1,url:1})b in a?c[b]=a[b]:b in d.ajaxSettings&&(c[b]=d.ajaxSettings[b]);return c},ajaxSettings:{url:Fa,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|widget):$/.test(Ga[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML", +text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:N(Ta),ajaxTransport:N(gb),ajax:function(c,a){function e(c,a,o,r){if(W!==2){W=2;k&&clearTimeout(k);Y=b;j=r||"";I.readyState=c?4:0;var H,Q,K;if(o){var r=h,V=I,J=r.contents,ja=r.dataTypes,x=r.responseFields,s,Z,z,t;for(Z in x)Z in o&&(V[x[Z]]=o[Z]);for(;ja[0]==="*";)ja.shift(),s===b&&(s=r.mimeType||V.getResponseHeader("content-type"));if(s)for(Z in J)if(J[Z]&&J[Z].test(s)){ja.unshift(Z); +break}if(ja[0]in o)z=ja[0];else{for(Z in o){if(!ja[0]||r.converters[Z+" "+ja[0]]){z=Z;break}t||(t=Z)}z=z||t}z?(z!==ja[0]&&ja.unshift(z),o=o[z]):o=void 0}else o=b;if(c>=200&&c<300||c===304){if(h.ifModified){if(s=I.getResponseHeader("Last-Modified"))d.lastModified[n]=s;if(s=I.getResponseHeader("Etag"))d.etag[n]=s}if(c===304)a="notmodified",H=!0;else try{s=h;s.dataFilter&&(o=s.dataFilter(o,s.dataType));var sa=s.dataTypes;Z={};var Ea,C,A=sa.length,Ia,Ba=sa[0],v,Oa,E,Ca,R;for(Ea=1;Ea0&&(k=setTimeout(function(){I.abort("timeout")},h.timeout));try{W=1,Y.send(H,e)}catch(x){status<2?e(-1,x):d.error(x)}}else e(-1, +"No Transport");return I},param:function(c,a){var e=[],h=function(c,a){a=d.isFunction(a)?a():a;e[e.length]=encodeURIComponent(c)+"="+encodeURIComponent(a)};if(a===b)a=d.ajaxSettings.traditional;if(d.isArray(c)||c.jquery&&!d.isPlainObject(c))d.each(c,function(){h(this.name,this.value)});else for(var g in c)U(g,c[g],a,h);return e.join("&").replace(sb,"+")}});d.extend({active:0,lastModified:{},etag:{}});var Bb=d.now(),Sa=/(\=)\?(&|$)|\?\?/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+ +"_"+Bb++}});d.ajaxPrefilter("json jsonp",function(c,b,e){b=c.contentType==="application/x-www-form-urlencoded"&&typeof c.data==="string";if(c.dataTypes[0]==="jsonp"||c.jsonp!==!1&&(Sa.test(c.url)||b&&Sa.test(c.data))){var h,g=c.jsonpCallback=d.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,f=a[g],q=c.url,p=c.data,w="$1"+g+"$2";c.jsonp!==!1&&(q=q.replace(Sa,w),c.url===q&&(b&&(p=p.replace(Sa,w)),c.data===p&&(q+=(/\?/.test(q)?"&":"?")+c.jsonp+"="+g)));c.url=q;c.data=p;a[g]=function(c){h= +[c]};e.always(function(){a[g]=f;if(h&&d.isFunction(f))a[g](h[0])});c.converters["script json"]=function(){h||d.error(g+" was not called");return h[0]};c.dataTypes[0]="json";return"script"}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(c){d.globalEval(c);return c}}});d.ajaxPrefilter("script",function(c){if(c.cache===b)c.cache=!1;if(c.crossDomain)c.type= +"GET",c.global=!1});d.ajaxTransport("script",function(c){if(c.crossDomain){var a,d=v.head||v.getElementsByTagName("head")[0]||v.documentElement;return{send:function(e,h){a=v.createElement("script");a.async="async";if(c.scriptCharset)a.charset=c.scriptCharset;a.src=c.url;a.onload=a.onreadystatechange=function(c,e){if(e||!a.readyState||/loaded|complete/.test(a.readyState))a.onload=a.onreadystatechange=null,d&&a.parentNode&&d.removeChild(a),a=b,e||h(200,"success")};d.insertBefore(a,d.firstChild)},abort:function(){if(a)a.onload(0, +1)}}}});var Xa=a.ActiveXObject?function(){for(var c in Ka)Ka[c](0,1)}:!1,Cb=0,Ka;d.ajaxSettings.xhr=a.ActiveXObject?function(){var c;if(!(c=!this.isLocal&&M()))a:{try{c=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(d){}c=void 0}return c}:M;(function(c){d.extend(d.support,{ajax:!!c,cors:!!c&&"withCredentials"in c})})(d.ajaxSettings.xhr());d.support.ajax&&d.ajaxTransport(function(c){if(!c.crossDomain||d.support.cors){var e;return{send:function(h,g){var f=c.xhr(),q,p;c.username?f.open(c.type, +c.url,c.async,c.username,c.password):f.open(c.type,c.url,c.async);if(c.xhrFields)for(p in c.xhrFields)f[p]=c.xhrFields[p];c.mimeType&&f.overrideMimeType&&f.overrideMimeType(c.mimeType);!c.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");try{for(p in h)f.setRequestHeader(p,h[p])}catch(w){}f.send(c.hasContent&&c.data||null);e=function(a,h){var p,w,n,r,H;try{if(e&&(h||f.readyState===4)){e=b;if(q)f.onreadystatechange=d.noop,Xa&&delete Ka[q];if(h)f.readyState!==4&&f.abort(); +else{p=f.status;n=f.getAllResponseHeaders();r={};if((H=f.responseXML)&&H.documentElement)r.xml=H;r.text=f.responseText;try{w=f.statusText}catch(Q){w=""}!p&&c.isLocal&&!c.crossDomain?p=r.text?200:404:p===1223&&(p=204)}}}catch(j){h||g(-1,j)}r&&g(p,w,r,n)};!c.async||f.readyState===4?e():(q=++Cb,Xa&&(Ka||(Ka={},d(a).unload(Xa)),Ka[q]=e),f.onreadystatechange=e)},abort:function(){e&&e(0,1)}}}});var Ua={},Aa,Ma,Db=/^(?:toggle|show|hide)$/,Eb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,La,$a=[["height","marginTop", +"marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Pa,Ya=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;d.fn.extend({show:function(c,a,b){if(c||c===0)return this.animate(ha("show",3),c,a,b);else{for(var b=0,e=this.length;b=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=!0;for(f in g.animatedProperties)g.animatedProperties[f]!==!0&&(e=!1);if(e){g.overflow!=null&&!d.support.shrinkWrapBlocks&&d.each(["", "X","Y"],function(a,c){h.style["overflow"+c]=g.overflow[a]});g.hide&&d(h).hide();if(g.hide||g.show)for(var q in g.animatedProperties)d.style(h,q,g.orig[q]);g.complete.call(h)}return!1}else g.duration==Infinity?this.now=b:(a=b-this.startTime,this.state=a/g.duration,this.pos=d.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}};d.extend(d.fx,{tick:function(){for(var a=d.timers,b=0;b-1?(o=g.position(),h=o.top,s=o.left):(h=parseFloat(q)||0,s=parseFloat(s)||0);d.isFunction(b)&&(b=b.call(a,e,f));if(b.top!=null)z.top=b.top-f.top+h;if(b.left!=null)z.left=b.left-f.left+s;"using"in b?b.using.call(a,z):g.css(z)}};d.fn.extend({position:function(){if(!this[0])return null; -var a=this[0],b=this.offsetParent(),e=this.offset(),h=hb.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(d.css(a,"marginTop"))||0;e.left-=parseFloat(d.css(a,"marginLeft"))||0;h.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0;h.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:e.top-h.top,left:e.left-h.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||u.body;a&&!hb.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}}); +"marginLeft"))||0);return{top:b,left:e}},setOffset:function(a,b,e){var h=d.css(a,"position");if(h==="static")a.style.position="relative";var g=d(a),f=g.offset(),q=d.css(a,"top"),p=d.css(a,"left"),w={},n={};(h==="absolute"||h==="fixed")&&d.inArray("auto",[q,p])>-1?(n=g.position(),h=n.top,p=n.left):(h=parseFloat(q)||0,p=parseFloat(p)||0);d.isFunction(b)&&(b=b.call(a,e,f));if(b.top!=null)w.top=b.top-f.top+h;if(b.left!=null)w.left=b.left-f.left+p;"using"in b?b.using.call(a,w):g.css(w)}};d.fn.extend({position:function(){if(!this[0])return null; +var a=this[0],b=this.offsetParent(),e=this.offset(),h=hb.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(d.css(a,"marginTop"))||0;e.left-=parseFloat(d.css(a,"marginLeft"))||0;h.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0;h.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:e.top-h.top,left:e.left-h.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||v.body;a&&!hb.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}}); d.each(["Left","Top"],function(a,e){var h="scroll"+e;d.fn[h]=function(e){var g,f;if(e===b){g=this[0];if(!g)return null;return(f=va(g))?"pageXOffset"in f?f[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&f.document.documentElement[h]||f.document.body[h]:g[h]}return this.each(function(){(f=va(this))?f.scrollTo(!a?e:d(f).scrollLeft(),a?e:d(f).scrollTop()):this[h]=e})}});d.each(["Height","Width"],function(a,e){var h=e.toLowerCase();d.fn["inner"+e]=function(){return this[0]?parseFloat(d.css(this[0], h,"padding")):null};d.fn["outer"+e]=function(a){return this[0]?parseFloat(d.css(this[0],h,a?"margin":"border")):null};d.fn[h]=function(a){var c=this[0];if(!c)return a==null?null:this;if(d.isFunction(a))return this.each(function(c){var b=d(this);b[h](a.call(this,c,b[h]()))});if(d.isWindow(c)){var g=c.document.documentElement["client"+e];return c.document.compatMode==="CSS1Compat"&&g||c.document.body["client"+e]||g}else return c.nodeType===9?Math.max(c.documentElement["client"+e],c.body["scroll"+e], -c.documentElement["scroll"+e],c.body["offset"+e],c.documentElement["offset"+e]):a===b?(c=d.css(c,h),g=parseFloat(c),d.isNaN(g)?c:g):this.css(h,typeof a==="string"?a:a+"px")}});a.jQuery=a.$=d})(window);document.createElement("canvas").getContext||function(){function a(){return this.context_||(this.context_=new t(this))}function b(a,b){var e=d.call(arguments,2);return function(){return a.apply(b,e.concat(d.call(arguments)))}}function e(a){return String(a).replace(/&/g,"&").replace(/"/g,""")}function f(a){a.namespaces.g_vml_||a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");a.namespaces.g_o_||a.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML"); +c.documentElement["scroll"+e],c.body["offset"+e],c.documentElement["offset"+e]):a===b?(c=d.css(c,h),g=parseFloat(c),d.isNaN(g)?c:g):this.css(h,typeof a==="string"?a:a+"px")}});a.jQuery=a.$=d})(window); +// Input 3 +document.createElement("canvas").getContext||function(){function a(){return this.context_||(this.context_=new s(this))}function b(a,b){var e=d.call(arguments,2);return function(){return a.apply(b,e.concat(d.call(arguments)))}}function e(a){return String(a).replace(/&/g,"&").replace(/"/g,""")}function f(a){a.namespaces.g_vml_||a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");a.namespaces.g_o_||a.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML"); if(!a.styleSheets.ex_canvas_)a=a.createStyleSheet(),a.owningElement.id="ex_canvas_",a.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}function j(a){var b=a.srcElement;switch(a.propertyName){case "width":b.getContext().clearRect();b.style.width=b.attributes.width.nodeValue+"px";b.firstChild.style.width=b.clientWidth+"px";break;case "height":b.getContext().clearRect(),b.style.height=b.attributes.height.nodeValue+"px",b.firstChild.style.height=b.clientHeight+ -"px"}}function k(a){a=a.srcElement;if(a.firstChild)a.firstChild.style.width=a.clientWidth+"px",a.firstChild.style.height=a.clientHeight+"px"}function l(){return[[1,0,0],[0,1,0],[0,0,1]]}function v(a,b){for(var d=l(),e=0;e<3;e++)for(var f=0;f<3;f++){for(var j=0,k=0;k<3;k++)j+=a[e][k]*b[k][f];d[e][f]=j}return d}function B(a,b){b.fillStyle=a.fillStyle;b.lineCap=a.lineCap;b.lineJoin=a.lineJoin;b.lineWidth=a.lineWidth;b.miterLimit=a.miterLimit;b.shadowBlur=a.shadowBlur;b.shadowColor=a.shadowColor;b.shadowOffsetX= -a.shadowOffsetX;b.shadowOffsetY=a.shadowOffsetY;b.strokeStyle=a.strokeStyle;b.globalAlpha=a.globalAlpha;b.font=a.font;b.textAlign=a.textAlign;b.textBaseline=a.textBaseline;b.arcScaleX_=a.arcScaleX_;b.arcScaleY_=a.arcScaleY_;b.lineScale_=a.lineScale_}function I(a){var b=a.indexOf("(",3),d=a.indexOf(")",b+1),b=a.substring(b+1,d).split(",");if(b.length!=4||a.charAt(3)!="a")b[3]=1;return b}function M(a,b,d){return Math.min(d,Math.max(b,a))}function G(a,b,d){d<0&&d++;d>1&&d--;return 6*d<1?a+(b-a)*6*d: -2*d<1?b:3*d<2?a+(b-a)*(2/3-d)*6:a}function r(a){if(a in qa)return qa[a];var b,d=1,a=String(a);if(a.charAt(0)=="#")b=a;else if(/^rgb/.test(a)){d=I(a);b="#";for(var e,f=0;f<3;f++)e=d[f].indexOf("%")!=-1?Math.floor(parseFloat(d[f])/100*255):+d[f],b+=na[M(e,0,255)];d=+d[3]}else if(/^hsl/.test(a)){f=d=I(a);b=parseFloat(f[0])/360%360;b<0&&b++;e=M(parseFloat(f[1])/100,0,1);f=M(parseFloat(f[2])/100,0,1);if(e==0)e=f=b=f;else{var j=f<0.5?f*(1+e):f+e-f*e,l=2*f-j;e=G(l,j,b+1/3);f=G(l,j,b);b=G(l,j,b-1/3)}b="#"+ -na[Math.floor(e*255)]+na[Math.floor(f*255)]+na[Math.floor(b*255)];d=d[3]}else b=ha[a]||a;return qa[a]={color:b,alpha:d}}function t(a){this.m_=l();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=Q*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=a;var b="width:"+a.clientWidth+"px;height:"+a.clientHeight+"px;overflow:hidden;position:absolute", -d=a.ownerDocument.createElement("div");d.style.cssText=b;a.appendChild(d);b=d.cloneNode(!1);b.style.backgroundColor="red";b.style.filter="alpha(opacity=0)";a.appendChild(b);this.element_=d;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}function A(a,b,d,e){a.currentPath_.push({type:"bezierCurveTo",cp1x:b.x,cp1y:b.y,cp2x:d.x,cp2y:d.y,x:e.x,y:e.y});a.currentX_=e.x;a.currentY_=e.y}function V(a,b){var d=r(a.strokeStyle),e=d.color,d=d.alpha*a.globalAlpha,f=a.lineScale_*a.lineWidth;f<1&&(d*=f);b.push("')}function H(a,b,d,e){var f=a.fillStyle,j=a.arcScaleX_,l=a.arcScaleY_,k=e.x-d.x,t=e.y-d.y;if(f instanceof N){var v=0,e={x:0,y:0},A=0,y=1;if(f.type_=="gradient"){var v=f.x1_/j,d=f.y1_/l,u=S(a,f.x0_/j,f.y0_/l),v=S(a,v,d),v=Math.atan2(v.x-u.x,v.y-u.y)*180/Math.PI;v<0&&(v+=360);v<1.0E-6&&(v=0)}else u=S(a,f.x0_,f.y0_),e={x:(u.x-d.x)/k,y:(u.y-d.y)/ -t},k/=j*Q,t/=l*Q,y=$.max(k,t),A=2*f.r0_/y,y=2*f.r1_/y-A;j=f.colors_;j.sort(function(a,b){return a.offset-b.offset});for(var l=j.length,u=j[0].color,d=j[l-1].color,k=j[0].alpha*a.globalAlpha,a=j[l-1].alpha*a.globalAlpha,t=[],H=0;H')}else f instanceof O?k&&t&&b.push("'):(f=r(a.fillStyle),b.push(''))}function S(a,b,d){a=a.m_;return{x:Q*(b*a[0][0]+d*a[1][0]+a[2][0])-W,y:Q*(b*a[0][1]+d*a[1][1]+a[2][1])-W}}function y(a,b,d){if(isFinite(b[0][0])&&isFinite(b[0][1])&&isFinite(b[1][0])&&isFinite(b[1][1])&&isFinite(b[2][0])&&isFinite(b[2][1])&&(a.m_=b,d))a.lineScale_= -u(va(b[0][0]*b[1][1]-b[0][1]*b[1][0]))}function N(a){this.type_=a;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}function O(a,b){if(!a||a.nodeType!=1||a.tagName!="IMG")throw new T("TYPE_MISMATCH_ERR");if(a.readyState!="complete")throw new T("INVALID_STATE_ERR");switch(b){case "repeat":case null:case "":this.repetition_="repeat";break;case "repeat-x":case "repeat-y":case "no-repeat":this.repetition_=b;break;default:throw new T("SYNTAX_ERR");}this.src_=a.src;this.width_=a.width; -this.height_=a.height}function T(a){this.code=this[a];this.message=a+": DOM Exception "+this.code}var $=Math,P=$.round,aa=$.sin,ma=$.cos,va=$.abs,u=$.sqrt,Q=10,W=Q/2;navigator.userAgent.match(/MSIE ([\d.]+)?/);var d=Array.prototype.slice;f(document);var ea={init:function(a){a=a||document;a.createElement("canvas");a.attachEvent("onreadystatechange",b(this.init_,this,a))},init_:function(a){for(var a=a.getElementsByTagName("canvas"),b=0;b1&&d--;return 6*d<1?a+(b-a)*6*d: +2*d<1?b:3*d<2?a+(b-a)*(2/3-d)*6:a}function z(a){if(a in ca)return ca[a];var b,d=1,a=String(a);if(a.charAt(0)=="#")b=a;else if(/^rgb/.test(a)){d=D(a);b="#";for(var e,f=0;f<3;f++)e=d[f].indexOf("%")!=-1?Math.floor(parseFloat(d[f])/100*255):+d[f],b+=ba[L(e,0,255)];d=+d[3]}else if(/^hsl/.test(a)){f=d=D(a);b=parseFloat(f[0])/360%360;b<0&&b++;e=L(parseFloat(f[1])/100,0,1);f=L(parseFloat(f[2])/100,0,1);if(e==0)e=f=b=f;else{var j=f<0.5?f*(1+e):f+e-f*e,k=2*f-j;e=B(k,j,b+1/3);f=B(k,j,b);b=B(k,j,b-1/3)}b="#"+ +ba[Math.floor(e*255)]+ba[Math.floor(f*255)]+ba[Math.floor(b*255)];d=d[3]}else b=ka[a]||a;return ca[a]={color:b,alpha:d}}function s(a){this.m_=k();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=S*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=a;var b="width:"+a.clientWidth+"px;height:"+a.clientHeight+"px;overflow:hidden;position:absolute", +d=a.ownerDocument.createElement("div");d.style.cssText=b;a.appendChild(d);b=d.cloneNode(!1);b.style.backgroundColor="red";b.style.filter="alpha(opacity=0)";a.appendChild(b);this.element_=d;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}function C(a,b,d,e){a.currentPath_.push({type:"bezierCurveTo",cp1x:b.x,cp1y:b.y,cp2x:d.x,cp2y:d.y,x:e.x,y:e.y});a.currentX_=e.x;a.currentY_=e.y}function fa(a,b){var d=z(a.strokeStyle),e=d.color,d=d.alpha*a.globalAlpha,f=a.lineScale_*a.lineWidth;f<1&&(d*=f);b.push("')}function R(a,b,d,e){var f=a.fillStyle,j=a.arcScaleX_,k=a.arcScaleY_,l=e.x-d.x,s=e.y-d.y;if(f instanceof t){var C=0,e={x:0,y:0},A=0,v=1;if(f.type_=="gradient"){var C=f.x1_/j,d=f.y1_/k,E=P(a,f.x0_/j,f.y0_/k),C=P(a,C,d),C=Math.atan2(C.x-E.x,C.y-E.y)*180/Math.PI;C<0&&(C+=360);C<1.0E-6&&(C=0)}else E=P(a,f.x0_,f.y0_),e={x:(E.x-d.x)/l,y:(E.y-d.y)/ +s},l/=j*S,s/=k*S,v=ga.max(l,s),A=2*f.r0_/v,v=2*f.r1_/v-A;j=f.colors_;j.sort(function(a,b){return a.offset-b.offset});for(var k=j.length,E=j[0].color,d=j[k-1].color,l=j[0].alpha*a.globalAlpha,a=j[k-1].alpha*a.globalAlpha,s=[],R=0;R')}else f instanceof U?l&&s&&b.push("'):(f=z(a.fillStyle),b.push(''))}function P(a,b,d){a=a.m_;return{x:S*(b*a[0][0]+d*a[1][0]+a[2][0])-X,y:S*(b*a[0][1]+d*a[1][1]+a[2][1])-X}}function N(a,b,d){if(isFinite(b[0][0])&&isFinite(b[0][1])&&isFinite(b[1][0])&&isFinite(b[1][1])&&isFinite(b[2][0])&&isFinite(b[2][1])&&(a.m_=b,d))a.lineScale_= +v(va(b[0][0]*b[1][1]-b[0][1]*b[1][0]))}function t(a){this.type_=a;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}function U(a,b){if(!a||a.nodeType!=1||a.tagName!="IMG")throw new M("TYPE_MISMATCH_ERR");if(a.readyState!="complete")throw new M("INVALID_STATE_ERR");switch(b){case "repeat":case null:case "":this.repetition_="repeat";break;case "repeat-x":case "repeat-y":case "no-repeat":this.repetition_=b;break;default:throw new M("SYNTAX_ERR");}this.src_=a.src;this.width_=a.width; +this.height_=a.height}function M(a){this.code=this[a];this.message=a+": DOM Exception "+this.code}var ga=Math,O=ga.round,ha=ga.sin,qa=ga.cos,va=ga.abs,v=ga.sqrt,S=10,X=S/2;navigator.userAgent.match(/MSIE ([\d.]+)?/);var d=Array.prototype.slice;f(document);var aa={init:function(a){a=a||document;a.createElement("canvas");a.attachEvent("onreadystatechange",b(this.init_,this,a))},init_:function(a){for(var a=a.getElementsByTagName("canvas"),b=0;b','","");this.element_.insertAdjacentHTML("BeforeEnd",u.join(""))};D.stroke=function(a){for(var b={x:null,y:null},d={x:null,y:null},e=0;ed.x)d.x=l.x;if(b.y==null||l.yd.y)d.y=l.y}}f.push(' ">');a? -H(this,f,b,d):V(this,f);f.push("");this.element_.insertAdjacentHTML("beforeEnd",f.join(""))}};D.fill=function(){this.stroke(!0)};D.closePath=function(){this.currentPath_.push({type:"close"})};D.save=function(){var a={};B(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=v(l(),this.m_)};D.restore=function(){if(this.aStack_.length)B(this.aStack_.pop(),this),this.m_=this.mStack_.pop()};D.translate=function(a,b){y(this,v([[1,0,0],[0,1,0],[a,b,1]],this.m_),!1)};D.rotate=function(a){var b= -ma(a),a=aa(a);y(this,v([[b,a,0],[-a,b,0],[0,0,1]],this.m_),!1)};D.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;y(this,v([[a,0,0],[0,b,0],[0,0,1]],this.m_),!0)};D.transform=function(a,b,d,e,f,j){y(this,v([[a,b,0],[d,e,0],[f,j,1]],this.m_),!0)};D.setTransform=function(a,b,d,e,f,j){y(this,[[a,b,0],[d,e,0],[f,j,1]],!0)};D.drawText_=function(a,b,d,f,j){var l=this.m_,f=0,k=1E3,t={x:0,y:0},v=[],r;r=this.font;if(wa[r])r=wa[r];else{var A=document.createElement("div").style;try{A.font=r}catch(u){}r= -wa[r]={style:A.fontStyle||ra.style,variant:A.fontVariant||ra.variant,weight:A.fontWeight||ra.weight,size:A.fontSize||ra.size,family:A.fontFamily||ra.family}}var A=r,y=this.element_;r={};for(var B in A)r[B]=A[B];B=parseFloat(y.currentStyle.fontSize);y=parseFloat(A.size);r.size=typeof A.size=="number"?A.size:A.size.indexOf("px")!=-1?y:A.size.indexOf("em")!=-1?B*y:A.size.indexOf("%")!=-1?B/100*y:A.size.indexOf("pt")!=-1?y/0.75:B;r.size*=0.981;B=r.style+" "+r.variant+" "+r.weight+" "+r.size+"px "+r.family; -y=this.element_.currentStyle;A=this.textAlign.toLowerCase();switch(A){case "left":case "center":case "right":break;case "end":A=y.direction=="ltr"?"right":"left";break;case "start":A=y.direction=="rtl"?"right":"left";break;default:A="left"}switch(this.textBaseline){case "hanging":case "top":t.y=r.size/1.75;break;case "middle":break;default:case null:case "alphabetic":case "ideographic":case "bottom":t.y=-r.size/2.25}switch(A){case "right":f=1E3;k=0.05;break;case "center":f=k=500}b=S(this,b+t.x,d+ -t.y);v.push('');j?V(this,v):H(this,v,{x:-f,y:0},{x:k,y:r.size});j=l[0][0].toFixed(3)+","+l[1][0].toFixed(3)+","+l[0][1].toFixed(3)+","+l[1][1].toFixed(3)+",0,0";b=P(b.x/Q)+","+P(b.y/Q);v.push('','','');this.element_.insertAdjacentHTML("beforeEnd",v.join(""))};D.fillText=function(a,b,d,e){this.drawText_(a,b,d,e,!1)};D.strokeText=function(a,b,d,e){this.drawText_(a,b,d,e,!0)};D.measureText=function(a){if(!this.textMeasureEl_)this.element_.insertAdjacentHTML("beforeEnd",''),this.textMeasureEl_=this.element_.lastChild;var b=this.element_.ownerDocument; -this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return{width:this.textMeasureEl_.offsetWidth}};D.clip=function(){};D.arcTo=function(){};D.createPattern=function(a,b){return new O(a,b)};N.prototype.addColorStop=function(a,b){b=r(b);this.colors_.push({offset:a,color:b.color,alpha:b.alpha})};D=T.prototype=Error();D.INDEX_SIZE_ERR=1;D.DOMSTRING_SIZE_ERR=2;D.HIERARCHY_REQUEST_ERR=3;D.WRONG_DOCUMENT_ERR=4;D.INVALID_CHARACTER_ERR= -5;D.NO_DATA_ALLOWED_ERR=6;D.NO_MODIFICATION_ALLOWED_ERR=7;D.NOT_FOUND_ERR=8;D.NOT_SUPPORTED_ERR=9;D.INUSE_ATTRIBUTE_ERR=10;D.INVALID_STATE_ERR=11;D.SYNTAX_ERR=12;D.INVALID_MODIFICATION_ERR=13;D.NAMESPACE_ERR=14;D.INVALID_ACCESS_ERR=15;D.VALIDATION_ERR=16;D.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=ea;CanvasRenderingContext2D=t;CanvasGradient=N;CanvasPattern=O;DOMException=T}();(function(a){a.color={};a.color.make=function(b,f,j,k){var l={};l.r=b||0;l.g=f||0;l.b=j||0;l.a=k!=null?k:1;l.add=function(a,b){for(var e=0;e=1?"rgb("+[l.r,l.g,l.b].join(",")+")":"rgba("+[l.r,l.g,l.b,l.a].join(",")+")"};l.normalize=function(){function a(b,e,f){return ef?f:e}l.r=a(0,parseInt(l.r),255);l.g=a(0,parseInt(l.g), -255);l.b=a(0,parseInt(l.b),255);l.a=a(0,l.a,1);return l};l.clone=function(){return a.color.make(l.r,l.b,l.g,l.a)};return l.normalize()};a.color.extract=function(b,f){var j;do{j=b.css(f).toLowerCase();if(j!=""&&j!="transparent")break;b=b.parent()}while(!a.nodeName(b.get(0),"body"));j=="rgba(0, 0, 0, 0)"&&(j="transparent");return a.color.parse(j)};a.color.parse=function(e){var f,j=a.color.make;if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))return j(parseInt(f[1],10), +ca={},ra={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"},wa={},$={butt:"flat",round:"round"},F=s.prototype;F.clearRect=function(){if(this.textMeasureEl_)this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null;this.element_.innerHTML=""};F.beginPath=function(){this.currentPath_=[]};F.moveTo=function(a,b){var d=P(this,a,b);this.currentPath_.push({type:"moveTo",x:d.x,y:d.y});this.currentX_=d.x;this.currentY_=d.y};F.lineTo=function(a,b){var d=P(this,a,b);this.currentPath_.push({type:"lineTo", +x:d.x,y:d.y});this.currentX_=d.x;this.currentY_=d.y};F.bezierCurveTo=function(a,b,d,e,f,j){f=P(this,f,j);a=P(this,a,b);d=P(this,d,e);C(this,a,d,f)};F.quadraticCurveTo=function(a,b,d,e){a=P(this,a,b);d=P(this,d,e);e={x:this.currentX_+2/3*(a.x-this.currentX_),y:this.currentY_+2/3*(a.y-this.currentY_)};C(this,e,{x:e.x+(d.x-this.currentX_)/3,y:e.y+(d.y-this.currentY_)/3},d)};F.arc=function(a,b,d,e,f,j){d*=S;var k=j?"at":"wa",l=a+qa(e)*d-X,s=b+ha(e)*d-X,e=a+qa(f)*d-X,f=b+ha(f)*d-X;l==e&&!j&&(l+=0.125); +a=P(this,a,b);l=P(this,l,s);e=P(this,e,f);this.currentPath_.push({type:k,x:a.x,y:a.y,radius:d,xStart:l.x,yStart:l.y,xEnd:e.x,yEnd:e.y})};F.rect=function(a,b,d,e){this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+e);this.lineTo(a,b+e);this.closePath()};F.strokeRect=function(a,b,d,e){var f=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+e);this.lineTo(a,b+e);this.closePath();this.stroke();this.currentPath_=f};F.fillRect=function(a,b,d,e){var f=this.currentPath_; +this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+e);this.lineTo(a,b+e);this.closePath();this.fill();this.currentPath_=f};F.createLinearGradient=function(a,b,d,e){var f=new t("gradient");f.x0_=a;f.y0_=b;f.x1_=d;f.y1_=e;return f};F.createRadialGradient=function(a,b,d,e,f,j){var k=new t("gradientradial");k.x0_=a;k.y0_=b;k.r0_=d;k.x1_=e;k.y1_=f;k.r1_=j;return k};F.drawImage=function(a){var b,d,e,f,j,k,l,s;e=a.runtimeStyle.width;f=a.runtimeStyle.height;a.runtimeStyle.width="auto"; +a.runtimeStyle.height="auto";var z=a.width,C=a.height;a.runtimeStyle.width=e;a.runtimeStyle.height=f;if(arguments.length==3)b=arguments[1],d=arguments[2],j=k=0,l=e=z,s=f=C;else if(arguments.length==5)b=arguments[1],d=arguments[2],e=arguments[3],f=arguments[4],j=k=0,l=z,s=C;else if(arguments.length==9)j=arguments[1],k=arguments[2],l=arguments[3],s=arguments[4],b=arguments[5],d=arguments[6],e=arguments[7],f=arguments[8];else throw Error("Invalid number of arguments");var t=P(this,b,d),A=[];A.push(" ','","");this.element_.insertAdjacentHTML("BeforeEnd",A.join(""))};F.stroke=function(a){for(var b={x:null,y:null},d={x:null,y:null},e=0;ed.x)d.x=k.x;if(b.y==null||k.yd.y)d.y=k.y}}f.push(' ">');a? +R(this,f,b,d):fa(this,f);f.push("");this.element_.insertAdjacentHTML("beforeEnd",f.join(""))}};F.fill=function(){this.stroke(!0)};F.closePath=function(){this.currentPath_.push({type:"close"})};F.save=function(){var a={};G(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=A(k(),this.m_)};F.restore=function(){if(this.aStack_.length)G(this.aStack_.pop(),this),this.m_=this.mStack_.pop()};F.translate=function(a,b){N(this,A([[1,0,0],[0,1,0],[a,b,1]],this.m_),!1)};F.rotate=function(a){var b= +qa(a),a=ha(a);N(this,A([[b,a,0],[-a,b,0],[0,0,1]],this.m_),!1)};F.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;N(this,A([[a,0,0],[0,b,0],[0,0,1]],this.m_),!0)};F.transform=function(a,b,d,e,f,j){N(this,A([[a,b,0],[d,e,0],[f,j,1]],this.m_),!0)};F.setTransform=function(a,b,d,e,f,j){N(this,[[a,b,0],[d,e,0],[f,j,1]],!0)};F.drawText_=function(a,b,d,f,j){var k=this.m_,f=0,l=1E3,s={x:0,y:0},z=[],C;C=this.font;if(wa[C])C=wa[C];else{var t=document.createElement("div").style;try{t.font=C}catch(A){}C= +wa[C]={style:t.fontStyle||ra.style,variant:t.fontVariant||ra.variant,weight:t.fontWeight||ra.weight,size:t.fontSize||ra.size,family:t.fontFamily||ra.family}}var t=C,v=this.element_;C={};for(var $ in t)C[$]=t[$];$=parseFloat(v.currentStyle.fontSize);v=parseFloat(t.size);C.size=typeof t.size=="number"?t.size:t.size.indexOf("px")!=-1?v:t.size.indexOf("em")!=-1?$*v:t.size.indexOf("%")!=-1?$/100*v:t.size.indexOf("pt")!=-1?v/0.75:$;C.size*=0.981;$=C.style+" "+C.variant+" "+C.weight+" "+C.size+"px "+C.family; +v=this.element_.currentStyle;t=this.textAlign.toLowerCase();switch(t){case "left":case "center":case "right":break;case "end":t=v.direction=="ltr"?"right":"left";break;case "start":t=v.direction=="rtl"?"right":"left";break;default:t="left"}switch(this.textBaseline){case "hanging":case "top":s.y=C.size/1.75;break;case "middle":break;default:case null:case "alphabetic":case "ideographic":case "bottom":s.y=-C.size/2.25}switch(t){case "right":f=1E3;l=0.05;break;case "center":f=l=500}b=P(this,b+s.x,d+ +s.y);z.push('');j?fa(this,z):R(this,z,{x:-f,y:0},{x:l,y:C.size});j=k[0][0].toFixed(3)+","+k[1][0].toFixed(3)+","+k[0][1].toFixed(3)+","+k[1][1].toFixed(3)+",0,0";b=O(b.x/S)+","+O(b.y/S);z.push('','','');this.element_.insertAdjacentHTML("beforeEnd",z.join(""))};F.fillText=function(a,b,d,e){this.drawText_(a,b,d,e,!1)};F.strokeText=function(a,b,d,e){this.drawText_(a,b,d,e,!0)};F.measureText=function(a){if(!this.textMeasureEl_)this.element_.insertAdjacentHTML("beforeEnd",''),this.textMeasureEl_=this.element_.lastChild;var b=this.element_.ownerDocument; +this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return{width:this.textMeasureEl_.offsetWidth}};F.clip=function(){};F.arcTo=function(){};F.createPattern=function(a,b){return new U(a,b)};t.prototype.addColorStop=function(a,b){b=z(b);this.colors_.push({offset:a,color:b.color,alpha:b.alpha})};F=M.prototype=Error();F.INDEX_SIZE_ERR=1;F.DOMSTRING_SIZE_ERR=2;F.HIERARCHY_REQUEST_ERR=3;F.WRONG_DOCUMENT_ERR=4;F.INVALID_CHARACTER_ERR= +5;F.NO_DATA_ALLOWED_ERR=6;F.NO_MODIFICATION_ALLOWED_ERR=7;F.NOT_FOUND_ERR=8;F.NOT_SUPPORTED_ERR=9;F.INUSE_ATTRIBUTE_ERR=10;F.INVALID_STATE_ERR=11;F.SYNTAX_ERR=12;F.INVALID_MODIFICATION_ERR=13;F.NAMESPACE_ERR=14;F.INVALID_ACCESS_ERR=15;F.VALIDATION_ERR=16;F.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=aa;CanvasRenderingContext2D=s;CanvasGradient=t;CanvasPattern=U;DOMException=M}(); +// Input 4 +(function(a){a.color={};a.color.make=function(b,f,j,l){var k={};k.r=b||0;k.g=f||0;k.b=j||0;k.a=l!=null?l:1;k.add=function(a,b){for(var e=0;e=1?"rgb("+[k.r,k.g,k.b].join(",")+")":"rgba("+[k.r,k.g,k.b,k.a].join(",")+")"};k.normalize=function(){function a(b,e,f){return ef?f:e}k.r=a(0,parseInt(k.r),255);k.g=a(0,parseInt(k.g), +255);k.b=a(0,parseInt(k.b),255);k.a=a(0,k.a,1);return k};k.clone=function(){return a.color.make(k.r,k.b,k.g,k.a)};return k.normalize()};a.color.extract=function(b,f){var j;do{j=b.css(f).toLowerCase();if(j!=""&&j!="transparent")break;b=b.parent()}while(!a.nodeName(b.get(0),"body"));j=="rgba(0, 0, 0, 0)"&&(j="transparent");return a.color.parse(j)};a.color.parse=function(e){var f,j=a.color.make;if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))return j(parseInt(f[1],10), parseInt(f[2],10),parseInt(f[3],10));if(f=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(e))return j(parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10),parseFloat(f[4]));if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))return j(parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55);if(f=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(e))return j(parseFloat(f[1])* 2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55,parseFloat(f[4]));if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))return j(parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16));if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))return j(parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16));e=a.trim(e).toLowerCase();return e=="transparent"?j(255,255,255,0):(f=b[e]||[0,0,0],j(f[0],f[1],f[2]))};var b={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0, 0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211, 211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery); -(function(a){function b(b,j,k,l){function v(a,b){for(var b=[U].concat(b),d=0;d=o.colors.length&&(b=0,++f);for(b=d=0;ba.datamax&&e!=f)a.datamax=e}var d=Number.POSITIVE_INFINITY,e=Number.NEGATIVE_INFINITY,f=Number.MAX_VALUE,g,j,l,o,k,t,J,r,A,y;a.each(M(),function(a,b){b.datamin=d;b.datamax=e;b.used=!1});for(g=0;g0&&t[l-J]!=null&&t[l-J]!=t[l]&&t[l-J+1]!=t[l+1]){for(o=0;ow&&(w=r)),A.y&&(rla&&(la=r));k.bars.show&&(j=k.bars.align=="left"?0:-k.bars.barWidth/2,k.bars.horizontal?(y+=j,la+=j+k.bars.barWidth):(l+=j,w+=j+k.bars.barWidth));b(k.xaxis,l,w);b(k.yaxis,y,la)}a.each(M(),function(a,b){if(b.datamin==d)b.datamin=null;if(b.datamax==e)b.datamax=null})}function A(d,e){var g=document.createElement("canvas");g.className=e;g.width=Z;g.height=ja;d||a(g).css({position:"absolute", -left:0,top:0});a(g).appendTo(b);g.getContext||(g=window.G_vmlCanvasManager.initElement(g));g.getContext("2d").save();return g}function V(){Z=b.width();ja=b.height();if(Z<=0||ja<=0)throw"Invalid dimensions for plot, width = "+Z+", height = "+ja;}function H(a){if(a.width!=Z)a.width=Z;if(a.height!=ja)a.height=ja;a=a.getContext("2d");a.restore();a.save()}function S(a){function b(a){return a}var d,e,f=a.options.transform||b,g=a.options.inverseTransform;a.direction=="x"?(d=a.scale=xa/Math.abs(f(a.max)- -f(a.min)),e=Math.min(f(a.max),f(a.min))):(d=a.scale=ta/Math.abs(f(a.max)-f(a.min)),d=-d,e=Math.max(f(a.max),f(a.min)));a.p2c=f==b?function(a){return(a-e)*d}:function(a){return(f(a)-e)*d};a.c2p=g?function(a){return g(e+a/d)}:function(a){return e+a/d}}function y(b){var d=b.labelWidth,e=b.labelHeight,f=b.options.position,g=b.options.tickLength,j=o.grid.axisMargin,l=o.grid.labelMargin,k=b.direction=="x"?fa:ia,r=a.grep(k,function(a){return a&&a.options.position==f&&a.reserveSpace});a.inArray(b,r)==r.length- -1&&(j=0);if(g==null)var g=a.grep(k,function(a){return a&&a.reserveSpace}),t=a.inArray(b,g)==0,g=t?"full":5;isNaN(+g)||(l+=+g);b.direction=="x"?(e+=l,f=="bottom"?(F.bottom+=e+j,b.box={top:ja-F.bottom,height:e}):(b.box={top:F.top+j,height:e},F.top+=e+j)):(d+=l,f=="left"?(b.box={left:F.left+j,width:d},F.left+=d+j):(F.right+=d+j,b.box={left:Z-F.right,width:d}));b.position=f;b.tickLength=g;b.box.padding=l;b.innermost=t}function N(){var b=o.grid.minBorderMargin,d={x:0,y:0},e;if(b==null)for(e=b=0;e=n.colors.length&&(b=0,++f);for(b=d=0;ba.datamax&&e!=f)a.datamax=e}var d=Number.POSITIVE_INFINITY,e=Number.NEGATIVE_INFINITY,f=Number.MAX_VALUE,g,j,k,n,p,l,I,s,t,z;a.each(L(),function(a,b){b.datamin=d;b.datamax=e;b.used=!1});for(g=0;g0&&l[k-I]!=null&&l[k-I]!=l[k]&&l[k-I+1]!=l[k+1]){for(n=0;nC&&(C=s)),t.y&&(sx&&(x=s));p.bars.show&&(j=p.bars.align=="left"?0:-p.bars.barWidth/2,p.bars.horizontal?(z+=j,x+=j+p.bars.barWidth):(k+=j,C+=j+p.bars.barWidth));b(p.xaxis,k,C);b(p.yaxis,z,x)}a.each(L(),function(a,b){if(b.datamin==d)b.datamin=null;if(b.datamax==e)b.datamax=null})}function C(d,e){var g=document.createElement("canvas");g.className=e;g.width=ea;g.height=ma;d||a(g).css({position:"absolute", +left:0,top:0});a(g).appendTo(b);g.getContext||(g=window.G_vmlCanvasManager.initElement(g));g.getContext("2d").save();return g}function fa(){ea=b.width();ma=b.height();if(ea<=0||ma<=0)throw"Invalid dimensions for plot, width = "+ea+", height = "+ma;}function R(a){if(a.width!=ea)a.width=ea;if(a.height!=ma)a.height=ma;a=a.getContext("2d");a.restore();a.save()}function P(a){function b(a){return a}var d,e,f=a.options.transform||b,g=a.options.inverseTransform;a.direction=="x"?(d=a.scale=xa/Math.abs(f(a.max)- +f(a.min)),e=Math.min(f(a.max),f(a.min))):(d=a.scale=ta/Math.abs(f(a.max)-f(a.min)),d=-d,e=Math.max(f(a.max),f(a.min)));a.p2c=f==b?function(a){return(a-e)*d}:function(a){return(f(a)-e)*d};a.c2p=g?function(a){return g(e+a/d)}:function(a){return e+a/d}}function N(b){var d=b.labelWidth,e=b.labelHeight,f=b.options.position,g=b.options.tickLength,j=n.grid.axisMargin,k=n.grid.labelMargin,p=b.direction=="x"?ia:la,l=a.grep(p,function(a){return a&&a.options.position==f&&a.reserveSpace});a.inArray(b,l)==l.length- +1&&(j=0);if(g==null)var g=a.grep(p,function(a){return a&&a.reserveSpace}),s=a.inArray(b,g)==0,g=s?"full":5;isNaN(+g)||(k+=+g);b.direction=="x"?(e+=k,f=="bottom"?(E.bottom+=e+j,b.box={top:ma-E.bottom,height:e}):(b.box={top:E.top+j,height:e},E.top+=e+j)):(d+=k,f=="left"?(b.box={left:E.left+j,width:d},E.left+=d+j):(E.right+=d+j,b.box={left:ea-E.right,width:d}));b.position=f;b.tickLength=g;b.box.padding=k;b.innermost=s}function t(){var b=n.grid.minBorderMargin,d={x:0,y:0},e;if(b==null)for(e=b=0;e=0&&(e=0)),d.max==null&&(h+=f*g,h>0&&b.datamax!=null&&b.datamax<=0&&(h=0)))}b.min=e;b.max=h});if(d){var j={style:b.css("font-style"),size:Math.round(0.8*(+b.css("font-size").replace("px","")||13)),variant:b.css("font-variant"), -weight:b.css("font-weight"),family:b.css("font-family")};g=a.grep(e,function(a){return a.reserveSpace});a.each(g,function(b,d){T(d);var e=d.options.ticks,h=[];e==null||typeof e=="number"&&e>0?h=d.tickGenerator(d):e&&(h=a.isFunction(e)?e({min:d.min,max:d.max}):e);var f;d.ticks=[];for(e=0;e1&&(g=q[1])):f=+q;g==null&&(g=d.tickFormatter(f,d));isNaN(f)||d.ticks.push({v:f,label:g})}h=d.ticks;if(d.options.autoscaleMargin&&h.length>0){if(d.options.min== -null)d.min=Math.min(d.min,h[0].v);if(d.options.max==null&&h.length>1)d.max=Math.max(d.max,h[h.length-1].v)}d.font=a.extend({},j,d.options.font);h=d.options;e=d.ticks||[];f=h.labelWidth||0;g=h.labelHeight||0;q=d.font;w.save();w.font=q.style+" "+q.variant+" "+q.weight+" "+q.size+"px '"+q.family+"'";for(var s=0;s|\r\n|\r/g,"\n").split("\n"),k=0;k=0;--d)y(g[d]);N();a.each(g,function(a,b){b.direction=="x"?(b.box.left=F.left-b.labelWidth/2,b.box.width=Z-F.left-F.right+b.labelWidth):(b.box.top=F.top-b.labelHeight/ -2,b.box.height=ja-F.bottom-F.top+b.labelHeight)})}xa=Z-F.left-F.right;ta=ja-F.bottom-F.top;a.each(e,function(a,b){S(b)});ea()}function T(b){var d=b.options,f=(b.max-b.min)/(typeof d.ticks=="number"&&d.ticks>0?d.ticks:0.3*Math.sqrt(b.direction=="x"?Z:ja)),g,j,l,o;if(d.mode=="time"){var k={second:1E3,minute:6E4,hour:36E5,day:864E5,month:2592E6,year:525949.2*6E4};o=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1, -"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[0.25,"month"],[0.5,"month"],[1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"year"]];g=0;d.minTickSize!=null&&(g=typeof d.tickSize=="number"?d.tickSize:d.minTickSize[0]*k[d.minTickSize[1]]);for(j=0;j=g)break;g=o[j][0];l=o[j][1];l=="year"&&(j=Math.pow(10,Math.floor(Math.log(f/k.year)/Math.LN10)),o=f/k.year/j,g=o<1.5?1:o<3?2:o< -7.5?5:10,g*=j);b.tickSize=d.tickSize||[g,l];j=function(a){var b=[],d=a.tickSize[0],h=a.tickSize[1],f=new Date(a.min),g=d*k[h];h=="second"&&f.setUTCSeconds(e(f.getUTCSeconds(),d));h=="minute"&&f.setUTCMinutes(e(f.getUTCMinutes(),d));h=="hour"&&f.setUTCHours(e(f.getUTCHours(),d));h=="month"&&f.setUTCMonth(e(f.getUTCMonth(),d));h=="year"&&f.setUTCFullYear(e(f.getUTCFullYear(),d));f.setUTCMilliseconds(0);g>=k.minute&&f.setUTCSeconds(0);g>=k.hour&&f.setUTCMinutes(0);g>=k.day&&f.setUTCHours(0);g>=k.day* -4&&f.setUTCDate(1);g>=k.year&&f.setUTCMonth(0);var q=0,j=Number.NaN,l;do if(l=j,j=f.getTime(),b.push(j),h=="month")if(d<1){f.setUTCDate(1);var s=f.getTime();f.setUTCMonth(f.getUTCMonth()+1);var o=f.getTime();f.setTime(j+q*k.hour+(o-s)*d);q=f.getUTCHours();f.setUTCHours(0)}else f.setUTCMonth(f.getUTCMonth()+d);else h=="year"?f.setUTCFullYear(f.getUTCFullYear()+d):f.setTime(j+g);while(jl&&(r=l);j=Math.pow(10,-r);o=f/j;if(o<1.5)g=1;else if(o<3){if(g=2,o>2.25&&(l==null||r+1<=l))g=2.5,++r}else g=o<7.5?5:10;g*=j;if(d.minTickSize!=null&&g0){if(d.min==null)b.min=Math.min(b.min,j[0]);if(d.max==null&&j.length>1)b.max=Math.max(b.max,j[j.length-1])}j=function(a){var b= -[],d,e;for(e=0;e1&&/\..*0$/.test((o[1]-o[0]).toFixed(f)))))b.tickDecimals=f}}b.tickGenerator=j;b.tickFormatter=a.isFunction(d.tickFormatter)?function(a,b){return""+d.tickFormatter(a,b)}:g}function $(){w.clearRect(0,0,Z,ja);var a=o.grid;if(a.show&&a.backgroundColor)w.save(),w.translate(F.left, -F.top),w.fillStyle=X(o.grid.backgroundColor,ta,0,"rgba(255, 255, 255, 0)"),w.fillRect(0,0,xa,ta),w.restore();a.show&&!a.aboveData&&(aa(),ma());for(var b=0;bf&&(g=e,e=f,f=g);return{from:e,to:f,axis:d}}function aa(){var b;w.save();w.translate(F.left,F.top);var d=o.grid.markings;if(d){if(a.isFunction(d)){var e=U.getAxes();e.xmin=e.xaxis.min;e.xmax=e.xaxis.max;e.ymin=e.yaxis.min;e.ymax=e.yaxis.max;d=d(e)}for(b=0;b -f.axis.max||g.tog.axis.max))if(f.from=Math.max(f.from,f.axis.min),f.to=Math.min(f.to,f.axis.max),g.from=Math.max(g.from,g.axis.min),g.to=Math.min(g.to,g.axis.max),!(f.from==f.to&&g.from==g.to))f.from=f.axis.p2c(f.from),f.to=f.axis.p2c(f.to),g.from=g.axis.p2c(g.from),g.to=g.axis.p2c(g.to),f.from==f.to||g.from==g.to?(w.beginPath(),w.strokeStyle=e.color||o.grid.markingsColor,w.lineWidth=e.lineWidth||o.grid.markingsLineWidth,w.moveTo(f.from,g.from),w.lineTo(f.to,g.to),w.stroke()): -(w.fillStyle=e.color||o.grid.markingsColor,w.fillRect(f.from,g.to,f.to-f.from,g.from-g.to))}}e=M();d=o.grid.borderWidth;for(f=0;fg.max||j=="full"&&d>0&&(A==g.min||A==g.max)||(g.direction=="x"?(l=g.p2c(A),t=j=="full"?-ta:j,g.position=="top"&&(t=-t)):(k=g.p2c(A),r=j=="full"?-xa:j,g.position=="left"&&(r=-r)),w.lineWidth==1&&(g.direction=="x"?l=Math.floor(l)+0.5:k=Math.floor(k)+0.5),w.moveTo(l, -k),w.lineTo(l+r,k+t))}w.stroke()}}if(d)w.lineWidth=d,w.strokeStyle=o.grid.borderColor,w.strokeRect(-d/2,-d/2,xa+d,ta+d);w.restore()}function ma(){w.save();a.each(M(),function(b,d){if(d.show&&d.ticks.length!=0){var e=d.box,f=d.font;w.fillStyle=d.options.color;w.font=f.style+" "+f.variant+" "+f.weight+" "+f.size+"px '"+f.family+"'";w.textAlign="start";w.textBaseline="middle";for(f=0;fd.max))for(var j,l,k=0,o,r=0;r=r&&o>h.max){if(r>h.max)continue;k=(h.max-o)/(r-o)*(s-k)+k;o=h.max}else if(r>=o&&r>h.max){if(o>h.max)continue;s=(h.max-o)/(r-o)*(s-k)+k;r=h.max}if(k<=s&&k=s&&k>f.max){if(s> -f.max)continue;o=(f.max-k)/(s-k)*(r-o)+o;k=f.max}else if(s>=k&&s>f.max){if(k>f.max)continue;r=(f.max-k)/(s-k)*(r-o)+o;s=f.max}(k!=j||o!=l)&&w.moveTo(f.p2c(k)+d,h.p2c(o)+e);j=s;l=r;w.lineTo(f.p2c(s)+d,h.p2c(r)+e)}}w.stroke()}function e(a,b,d){for(var f=a.points,a=a.pointsize,h=Math.min(Math.max(0,d.min),d.max),g=0,j=!1,q=1,l=0,k=0;;){if(a>0&&g>f.length+a)break;g+=a;var o=f[g-a],s=f[g-a+q],r=f[g],t=f[g+q];if(j){if(a>0&&o!=null&&r==null){k=g;a=-a;q=2;continue}if(a<0&&g==l+a){w.fill();j=!1;a=-a;q=1;g= -l=k+a;continue}}if(!(o==null||r==null)){if(o<=r&&o=r&&o>b.max){if(r>b.max)continue;s=(b.max-o)/(r-o)*(t-s)+s;o=b.max}else if(r>=o&&r>b.max){if(o>b.max)continue;t=(b.max-o)/(r-o)*(t-s)+s;r=b.max}j||(w.beginPath(),w.moveTo(b.p2c(o),d.p2c(h)),j=!0);if(s>=d.max&&t>=d.max)w.lineTo(b.p2c(o),d.p2c(d.max)),w.lineTo(b.p2c(r),d.p2c(d.max));else if(s<=d.min&&t<=d.min)w.lineTo(b.p2c(o), -d.p2c(d.min)),w.lineTo(b.p2c(r),d.p2c(d.min));else{var z=o,A=r;if(s<=t&&s=d.min)o=(d.min-s)/(t-s)*(r-o)+o,s=d.min;else if(t<=s&&t=d.min)r=(d.min-s)/(t-s)*(r-o)+o,t=d.min;if(s>=t&&s>d.max&&t<=d.max)o=(d.max-s)/(t-s)*(r-o)+o,s=d.max;else if(t>=s&&t>d.max&&s<=d.max)r=(d.max-s)/(t-s)*(r-o)+o,t=d.max;o!=z&&w.lineTo(b.p2c(z),d.p2c(s));w.lineTo(b.p2c(o),d.p2c(s));w.lineTo(b.p2c(r),d.p2c(t));r!=A&&(w.lineTo(b.p2c(r),d.p2c(t)),w.lineTo(b.p2c(A),d.p2c(t)))}}}}w.save();w.translate(F.left, -F.top);w.lineJoin="round";var f=a.lines.lineWidth,g=a.shadowSize;if(f>0&&g>0){w.lineWidth=g;w.strokeStyle="rgba(0,0,0,0.1)";var j=Math.PI/18;b(a.datapoints,Math.sin(j)*(f/2+g/2),Math.cos(j)*(f/2+g/2),a.xaxis,a.yaxis);w.lineWidth=g/2;b(a.datapoints,Math.sin(j)*(f/2+g/4),Math.cos(j)*(f/2+g/4),a.xaxis,a.yaxis)}w.lineWidth=f;w.strokeStyle=a.color;if(g=d(a.lines,a.color,0,ta))w.fillStyle=g,e(a.datapoints,a.xaxis,a.yaxis);f>0&&b(a.datapoints,0,0,a.xaxis,a.yaxis);w.restore()}function u(a){function b(a,d, -e,f,h,g,j,o){for(var q=a.points,a=a.pointsize,l=0;lg.max||sj.max)){w.beginPath();k=g.p2c(k);s=j.p2c(s)+f;o=="circle"?w.arc(k,s,d,0,h?Math.PI:Math.PI*2,!1):o(w,k,s,d,h);w.closePath();if(e)w.fillStyle=e,w.fill();w.stroke()}}}w.save();w.translate(F.left,F.top);var e=a.points.lineWidth,f=a.shadowSize,g=a.points.radius,j=a.points.symbol;if(e>0&&f>0)f/=2,w.lineWidth=f,w.strokeStyle="rgba(0,0,0,0.1)",b(a.datapoints,g,null,f+f/2,!0,a.xaxis, -a.yaxis,j),w.strokeStyle="rgba(0,0,0,0.2)",b(a.datapoints,g,null,f/2,!0,a.xaxis,a.yaxis,j);w.lineWidth=e;w.strokeStyle=a.color;b(a.datapoints,g,d(a.points,a.color),0,!1,a.xaxis,a.yaxis,j);w.restore()}function Q(a,b,d,e,f,g,j,o,l,k,r,t){var A,v,u,y;r?(y=v=u=!0,A=!1,r=d,d=b+e,f=b+f,ao.max||dl.max)){if(ro.max)a=o.max,v=!1;if(fl.max)d= -l.max,u=!1;r=o.p2c(r);f=l.p2c(f);a=o.p2c(a);d=l.p2c(d);if(j)k.beginPath(),k.moveTo(r,f),k.lineTo(r,d),k.lineTo(a,d),k.lineTo(a,f),k.fillStyle=j(f,d),k.fill();if(t>0&&(A||v||u||y))k.beginPath(),k.moveTo(r,f+g),A?k.lineTo(r,d+g):k.moveTo(r,d+g),u?k.lineTo(a,d+g):k.moveTo(a,d+g),v?k.lineTo(a,f+g):k.moveTo(a,f+g),y?k.lineTo(r,f+g):k.moveTo(r,f+g),k.stroke()}}function W(a){w.save();w.translate(F.left,F.top);w.lineWidth=a.bars.lineWidth;w.strokeStyle=a.color;var b=a.bars.align=="left"?0:-a.bars.barWidth/ -2;(function(b,d,e,f,g,j,o){for(var l=b.points,b=b.pointsize,k=0;k"),d.push("
"),e=!0),g&&(l=g(l,j)),d.push('");e&&d.push("");if(d.length!=0)if(e='
'+l+"
'+d.join("")+"
",o.legend.container!=null)a(o.legend.container).html(e);else if(d="",g=o.legend.position,j=o.legend.margin,j[0]==null&&(j=[j,j]),g.charAt(0)=="n"?d+="top:"+(j[1]+F.top)+"px;":g.charAt(0)=="s"&&(d+="bottom:"+(j[1]+F.bottom)+"px;"),g.charAt(1)=="e"?d+="right:"+(j[0]+F.right)+"px;":g.charAt(1)=="w"&&(d+="left:"+(j[0]+F.left)+"px;"),e=a('
'+e.replace('style="','style="position:absolute;'+d+";")+"
").appendTo(b),o.legend.backgroundOpacity!= -0){g=o.legend.backgroundColor;if(g==null)g=(g=o.grid.backgroundColor)&&typeof g=="string"?a.color.parse(g):a.color.extract(e,"background-color"),g.a=1,g=g.toString();j=e.children();a('
').prependTo(e).css("opacity",o.legend.backgroundOpacity)}}}function na(a){o.grid.hoverable&&ha("plothover",a,function(a){return a.hoverable!=!1})}function D(a){o.grid.hoverable&&ha("plothover",a,function(){return!1})} -function da(a){ha("plotclick",a,function(a){return a.clickable!=!1})}function ha(a,d,e){var g=pa.offset(),j=d.pageX-g.left-F.left,l=d.pageY-g.top-F.top,k=G({left:j,top:l});k.pageX=d.pageX;k.pageY=d.pageY;var d=o.grid.mouseActiveRadius,r=d*d+1,t=null,A,v;for(A=K.length-1;A>=0;--A)if(e(K[A])){var u=K[A],y=u.xaxis,w=u.yaxis,E=u.datapoints.points,H=u.datapoints.pointsize,B=y.c2p(j),D=w.c2p(l),S=d/y.scale,N=d/w.scale;if(y.options.inverseTransform)S=Number.MAX_VALUE;if(w.options.inverseTransform)N=Number.MAX_VALUE; -if(u.lines.show||u.points.show)for(v=0;vS||V-B<-S||I-D>N||I-D<-N))V=Math.abs(y.p2c(V)-j),I=Math.abs(w.p2c(I)-l),I=V*V+I*I,I=Math.min(w,V)&&D>=I+y&&D<=I+u:B>=V+y&&B<=V+u&&D>=Math.min(w,I)&&D<=Math.max(w,I)))t=[A,v/H]}}t?(A=t[0],v=t[1],H=K[A].datapoints.pointsize, -e={datapoint:K[A].datapoints.points.slice(v*H,(v+1)*H),dataIndex:v,series:K[A],seriesIndex:A}):e=null;if(e)e.pageX=parseInt(e.series.xaxis.p2c(e.datapoint[0])+g.left+F.left),e.pageY=parseInt(e.series.yaxis.p2c(e.datapoint[1])+g.top+F.top);if(o.grid.autoHighlight){for(g=0;gg.max||fj.max)){var o=e.points.radius+e.points.lineWidth/2;Y.lineWidth=o;Y.strokeStyle=a.color.parse(e.color).scale("a",0.5).toString();o*=1.5;d=g.p2c(d);f=j.p2c(f);Y.beginPath();e.points.symbol=="circle"?Y.arc(d, -f,o,0,2*Math.PI,!1):e.points.symbol(Y,d,f,o,!1);Y.closePath();Y.stroke()}}Y.restore();v(ua.drawOverlay,[Y])}function wa(a,b,d){typeof a=="number"&&(a=K[a]);if(typeof b=="number")var e=a.datapoints.pointsize,b=a.datapoints.points.slice(e*b,e*(b+1));e=g(a,b);if(e==-1)ya.push({series:a,point:b,auto:d}),qa();else if(!d)ya[e].auto=!1}function Ha(a,b){a==null&&b==null&&(ya=[],qa());typeof a=="number"&&(a=K[a]);typeof b=="number"&&(b=a.data[b]);var d=g(a,b);d!=-1&&(ya.splice(d,1),qa())}function g(a,b){for(var d= -0;d12?M-=12:M==0&&(M=12));for(var r=0;r2&&(r?j.format[2].x:j.format[2].y),b=V&&b.lines.steps;G=!0;for(var S=r?1:0,y=r?0:1,N=0,O=0,T;;){if(N>=l.length)break;T=B.length;if(l[N]==null){for(m= -0;m=k.length){if(!V)for(m=0;mr){if(V&&N>0&&l[N-a]!=null){G=M+(l[N-a+y]-M)*(r-I)/(l[N-a+S]-I);B.push(r);B.push(G+t);for(m=2;m0&&k[O-v]!=null&&(A=t+(k[O-v+y]-t)*(I-r)/ -(k[O-v+S]-r));B[T+y]+=A;N+=a}G=!1;T!=B.length&&H&&(B[T+2]+=A)}if(b&&T!=B.length&&T>0&&B[T]!=null&&B[T]!=B[T-a]&&B[T+1]!=B[T-a+1]){for(m=0;mr?r:k;j=e.pageY-j.top-l.top;l=b.height();a.y=j<0?0:j>l?l:j;if(f.selection.mode=="y")a.x=a==G.first?0:b.width();if(f.selection.mode=="x")a.y=a==G.first?0:b.height()}function v(a){if(a.pageX!=null)l(G.second,a),M()?(G.show=!0,b.triggerRedrawOverlay()): -B(!0)}function B(a){if(G.show)G.show=!1,b.triggerRedrawOverlay(),a||b.getPlaceholder().trigger("plotunselected",[])}function I(a,e){var f,j,l,k,r=b.getAxes(),t;for(t in r)if(f=r[t],f.direction==e&&(k=e+f.n+"axis",!a[k]&&f.n==1&&(k=e+"axis"),a[k])){j=a[k].from;l=a[k].to;break}a[k]||(f=e=="x"?b.getXAxes()[0]:b.getYAxes()[0],j=a[e+"1"],l=a[e+"2"]);j!=null&&l!=null&&j>l&&(k=j,j=l,l=k);return{from:j,to:l,axis:f}}function M(){return Math.abs(G.second.x-G.first.x)>=5&&Math.abs(G.second.y-G.first.y)>=5}var G= -{first:{x:-1,y:-1},second:{x:-1,y:-1},show:!1,active:!1},r={},t=null;b.clearSelection=B;b.setSelection=function(a,e){var f,j=b.getOptions();j.selection.mode=="y"?(G.first.x=0,G.second.x=b.width()):(f=I(a,"x"),G.first.x=f.axis.p2c(f.from),G.second.x=f.axis.p2c(f.to));j.selection.mode=="x"?(G.first.y=0,G.second.y=b.height()):(f=I(a,"y"),G.first.y=f.axis.p2c(f.from),G.second.y=f.axis.p2c(f.to));G.show=!0;b.triggerRedrawOverlay();!e&&M()&&k()};b.getSelection=j;b.hooks.bindEvents.push(function(a,b){a.getOptions().selection.mode!= -null&&(b.mousemove(e),b.mousedown(f))});b.hooks.drawOverlay.push(function(b,e){if(G.show&&M()){var f=b.getPlotOffset(),j=b.getOptions();e.save();e.translate(f.left,f.top);f=a.color.parse(j.selection.color);e.strokeStyle=f.scale("a",0.8).toString();e.lineWidth=1;e.lineJoin="round";e.fillStyle=f.scale("a",0.4).toString();var f=Math.min(G.first.x,G.second.x),j=Math.min(G.first.y,G.second.y),l=Math.abs(G.second.x-G.first.x),k=Math.abs(G.second.y-G.first.y);e.fillRect(f,j,l,k);e.strokeRect(f,j,l,k);e.restore()}}); -b.hooks.shutdown.push(function(b,j){j.unbind("mousemove",e);j.unbind("mousedown",f);t&&a(document).unbind("mouseup",t)})},options:{selection:{mode:null,color:"#e8cfac"}},name:"selection",version:"1.1"})})(jQuery);function InvalidRRD(a){this.message=a;this.name="Invalid RRD"}InvalidRRD.prototype.toString=function(){return this.name+': "'+this.message+'"'};function RRDDS(a,b,e){this.rrd_data=a;this.rrd_data_idx=b;this.my_idx=e}RRDDS.prototype.getIdx=function(){return this.my_idx};RRDDS.prototype.getName=function(){return this.rrd_data.getCStringAt(this.rrd_data_idx,20)};RRDDS.prototype.getType=function(){return this.rrd_data.getCStringAt(this.rrd_data_idx+20,20)}; -RRDDS.prototype.getMin=function(){return this.rrd_data.getDoubleAt(this.rrd_data_idx+48)};RRDDS.prototype.getMax=function(){return this.rrd_data.getDoubleAt(this.rrd_data_idx+56)};function RRDRRAInfo(a,b,e,f,j,k){this.rrd_data=a;this.rra_def_idx=b;this.rrd_align=e;this.row_cnt=f;this.pdp_step=j;this.my_idx=k}RRDRRAInfo.prototype.getIdx=function(){return this.my_idx};RRDRRAInfo.prototype.getNrRows=function(){return this.row_cnt}; +weight:b.css("font-weight"),family:b.css("font-family")};g=a.grep(e,function(a){return a.reserveSpace});a.each(g,function(b,d){M(d);var e=d.options.ticks,h=[];e==null||typeof e=="number"&&e>0?h=d.tickGenerator(d):e&&(h=a.isFunction(e)?e(d):e);var f;d.ticks=[];for(e=0;e1&&(g=q[1])):f=+q;g==null&&(g=d.tickFormatter(f,d));isNaN(f)||d.ticks.push({v:f,label:g})}h=d.ticks;if(d.options.autoscaleMargin&&h.length>0){if(d.options.min==null)d.min= +Math.min(d.min,h[0].v);if(d.options.max==null&&h.length>1)d.max=Math.max(d.max,h[h.length-1].v)}d.font=a.extend({},j,d.options.font);h=d.options;e=d.ticks||[];f=h.labelWidth||0;g=h.labelHeight||0;q=d.font;x.save();x.font=q.style+" "+q.variant+" "+q.weight+" "+q.size+"px '"+q.family+"'";for(var k=0;k|\r\n|\r/g,"\n").split("\n"),H=0;H=0;--d)N(g[d]);t();a.each(g,function(a,b){b.direction=="x"?(b.box.left=E.left-b.labelWidth/2,b.box.width=ea-E.left-E.right+b.labelWidth):(b.box.top=E.top-b.labelHeight/2,b.box.height= +ma-E.bottom-E.top+b.labelHeight)})}xa=ea-E.left-E.right;ta=ma-E.bottom-E.top;a.each(e,function(a,b){P(b)});aa()}function M(b){var d=b.options,f=(b.max-b.min)/(typeof d.ticks=="number"&&d.ticks>0?d.ticks:0.3*Math.sqrt(b.direction=="x"?ea:ma)),g,j,k,n;if(d.mode=="time"){var p={second:1E3,minute:6E4,hour:36E5,day:864E5,month:2592E6,year:525949.2*6E4};n=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2, +"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[0.25,"month"],[0.5,"month"],[1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"year"]];g=0;d.minTickSize!=null&&(g=typeof d.tickSize=="number"?d.tickSize:d.minTickSize[0]*p[d.minTickSize[1]]);for(j=0;j=g)break;g=n[j][0];k=n[j][1];k=="year"&&(j=Math.pow(10,Math.floor(Math.log(f/p.year)/Math.LN10)),n=f/p.year/j,g=n<1.5?1:n<3?2:n<7.5?5:10,g*= +j);b.tickSize=d.tickSize||[g,k];j=function(a){var b=[],d=a.tickSize[0],h=a.tickSize[1],f=new Date(a.min),g=d*p[h];h=="second"&&f.setUTCSeconds(e(f.getUTCSeconds(),d));h=="minute"&&f.setUTCMinutes(e(f.getUTCMinutes(),d));h=="hour"&&f.setUTCHours(e(f.getUTCHours(),d));h=="month"&&f.setUTCMonth(e(f.getUTCMonth(),d));h=="year"&&f.setUTCFullYear(e(f.getUTCFullYear(),d));f.setUTCMilliseconds(0);g>=p.minute&&f.setUTCSeconds(0);g>=p.hour&&f.setUTCMinutes(0);g>=p.day&&f.setUTCHours(0);g>=p.day*4&&f.setUTCDate(1); +g>=p.year&&f.setUTCMonth(0);var j=0,q=Number.NaN,k;do if(k=q,q=f.getTime(),b.push(q),h=="month")if(d<1){f.setUTCDate(1);var n=f.getTime();f.setUTCMonth(f.getUTCMonth()+1);var w=f.getTime();f.setTime(q+j*p.hour+(w-n)*d);j=f.getUTCHours();f.setUTCHours(0)}else f.setUTCMonth(f.getUTCMonth()+d);else h=="year"?f.setUTCFullYear(f.getUTCFullYear()+d):f.setTime(q+g);while(qk&&(l=k);j=Math.pow(10,-l);n=f/j;if(n<1.5)g=1;else if(n<3){if(g=2,n>2.25&&(k==null||l+1<=k))g=2.5,++l}else g=n<7.5?5:10;g*=j;if(d.minTickSize!=null&&g0){if(d.min==null)b.min=Math.min(b.min,j[0]);if(d.max==null&&j.length>1)b.max=Math.max(b.max,j[j.length-1])}j=function(a){var b=[], +d,e;for(e=0;e1&&/\..*0$/.test((n[1]-n[0]).toFixed(f)))))b.tickDecimals=f}}b.tickGenerator=j;b.tickFormatter=a.isFunction(d.tickFormatter)?function(a,b){return""+d.tickFormatter(a,b)}:g}function ga(){x.clearRect(0,0,ea,ma);var a=n.grid;if(a.show&&a.backgroundColor)x.save(),x.translate(E.left,E.top), +x.fillStyle=V(n.grid.backgroundColor,ta,0,"rgba(255, 255, 255, 0)"),x.fillRect(0,0,xa,ta),x.restore();a.show&&!a.aboveData&&(ha(),qa());for(var b=0;bf&&(g=e,e=f,f=g);return{from:e,to:f,axis:d}}function ha(){var b;x.save();x.translate(E.left,E.top);var d=n.grid.markings;if(d){if(a.isFunction(d)){var e=T.getAxes();e.xmin=e.xaxis.min;e.xmax=e.xaxis.max;e.ymin=e.yaxis.min;e.ymax=e.yaxis.max;d=d(e)}for(b=0;bf.axis.max|| +g.tog.axis.max))if(f.from=Math.max(f.from,f.axis.min),f.to=Math.min(f.to,f.axis.max),g.from=Math.max(g.from,g.axis.min),g.to=Math.min(g.to,g.axis.max),!(f.from==f.to&&g.from==g.to))f.from=f.axis.p2c(f.from),f.to=f.axis.p2c(f.to),g.from=g.axis.p2c(g.from),g.to=g.axis.p2c(g.to),f.from==f.to||g.from==g.to?(x.beginPath(),x.strokeStyle=e.color||n.grid.markingsColor,x.lineWidth=e.lineWidth||n.grid.markingsLineWidth,x.moveTo(f.from,g.from),x.lineTo(f.to,g.to),x.stroke()):(x.fillStyle= +e.color||n.grid.markingsColor,x.fillRect(f.from,g.to,f.to-f.from,g.from-g.to))}}e=L();d=n.grid.borderWidth;for(f=0;fg.max||j=="full"&&d>0&&(t==g.min||t==g.max)||(g.direction=="x"?(k=g.p2c(t),s=j=="full"?-ta:j,g.position=="top"&&(s=-s)):(p=g.p2c(t),l=j=="full"?-xa:j,g.position=="left"&&(l=-l)),x.lineWidth==1&&(g.direction=="x"?k=Math.floor(k)+0.5:p=Math.floor(p)+0.5),x.moveTo(k,p),x.lineTo(k+ +l,p+s))}x.stroke()}}if(d)x.lineWidth=d,x.strokeStyle=n.grid.borderColor,x.strokeRect(-d/2,-d/2,xa+d,ta+d);x.restore()}function qa(){x.save();a.each(L(),function(b,d){if(d.show&&d.ticks.length!=0){var e=d.box,f=d.font;x.fillStyle=d.options.color;x.font=f.style+" "+f.variant+" "+f.weight+" "+f.size+"px "+f.family;x.textAlign="start";x.textBaseline="middle";for(f=0;fd.max))for(var j,k,n=0,p,l=0;l=s&&n>h.max){if(s>h.max)continue;p=(h.max-n)/(s-n)*(l-p)+p;n=h.max}else if(s>=n&&s>h.max){if(n>h.max)continue;l=(h.max-n)/(s-n)*(l-p)+p;s=h.max}if(p<=l&&p=l&&p>f.max){if(l>f.max)continue; +n=(f.max-p)/(l-p)*(s-n)+n;p=f.max}else if(l>=p&&l>f.max){if(p>f.max)continue;s=(f.max-p)/(l-p)*(s-n)+n;l=f.max}(p!=j||n!=q)&&x.moveTo(f.p2c(p)+d,h.p2c(n)+e);j=l;q=s;x.lineTo(f.p2c(l)+d,h.p2c(s)+e)}}x.stroke()}function e(a,b,d){for(var f=a.points,a=a.pointsize,h=Math.min(Math.max(0,d.min),d.max),g=0,j=!1,p=1,n=0,k=0;;){if(a>0&&g>f.length+a)break;g+=a;var q=f[g-a],l=f[g-a+p],s=f[g],w=f[g+p];if(j){if(a>0&&q!=null&&s==null){k=g;a=-a;p=2;continue}if(a<0&&g==n+a){x.fill();j=!1;a=-a;p=1;g=n=k+a;continue}}if(!(q== +null||s==null)){if(q<=s&&q=s&&q>b.max){if(s>b.max)continue;l=(b.max-q)/(s-q)*(w-l)+l;q=b.max}else if(s>=q&&s>b.max){if(q>b.max)continue;w=(b.max-q)/(s-q)*(w-l)+l;s=b.max}j||(x.beginPath(),x.moveTo(b.p2c(q),d.p2c(h)),j=!0);if(l>=d.max&&w>=d.max)x.lineTo(b.p2c(q),d.p2c(d.max)),x.lineTo(b.p2c(s),d.p2c(d.max));else if(l<=d.min&&w<=d.min)x.lineTo(b.p2c(q),d.p2c(d.min)), +x.lineTo(b.p2c(s),d.p2c(d.min));else{var H=q,t=s;if(l<=w&&l=d.min)q=(d.min-l)/(w-l)*(s-q)+q,l=d.min;else if(w<=l&&w=d.min)s=(d.min-l)/(w-l)*(s-q)+q,w=d.min;if(l>=w&&l>d.max&&w<=d.max)q=(d.max-l)/(w-l)*(s-q)+q,l=d.max;else if(w>=l&&w>d.max&&l<=d.max)s=(d.max-l)/(w-l)*(s-q)+q,w=d.max;q!=H&&x.lineTo(b.p2c(H),d.p2c(l));x.lineTo(b.p2c(q),d.p2c(l));x.lineTo(b.p2c(s),d.p2c(w));s!=t&&(x.lineTo(b.p2c(s),d.p2c(w)),x.lineTo(b.p2c(t),d.p2c(w)))}}}}x.save();x.translate(E.left,E.top);x.lineJoin= +"round";var f=a.lines.lineWidth,g=a.shadowSize;if(f>0&&g>0){x.lineWidth=g;x.strokeStyle="rgba(0,0,0,0.1)";var j=Math.PI/18;b(a.datapoints,Math.sin(j)*(f/2+g/2),Math.cos(j)*(f/2+g/2),a.xaxis,a.yaxis);x.lineWidth=g/2;b(a.datapoints,Math.sin(j)*(f/2+g/4),Math.cos(j)*(f/2+g/4),a.xaxis,a.yaxis)}x.lineWidth=f;x.strokeStyle=a.color;if(g=d(a.lines,a.color,0,ta))x.fillStyle=g,e(a.datapoints,a.xaxis,a.yaxis);f>0&&b(a.datapoints,0,0,a.xaxis,a.yaxis);x.restore()}function v(a){function b(a,d,e,f,h,g,j,q){for(var p= +a.points,a=a.pointsize,n=0;ng.max||lj.max)){x.beginPath();k=g.p2c(k);l=j.p2c(l)+f;q=="circle"?x.arc(k,l,d,0,h?Math.PI:Math.PI*2,!1):q(x,k,l,d,h);x.closePath();if(e)x.fillStyle=e,x.fill();x.stroke()}}}x.save();x.translate(E.left,E.top);var e=a.points.lineWidth,f=a.shadowSize,g=a.points.radius,j=a.points.symbol;if(e>0&&f>0)f/=2,x.lineWidth=f,x.strokeStyle="rgba(0,0,0,0.1)",b(a.datapoints,g,null,f+f/2,!0,a.xaxis,a.yaxis,j),x.strokeStyle= +"rgba(0,0,0,0.2)",b(a.datapoints,g,null,f/2,!0,a.xaxis,a.yaxis,j);x.lineWidth=e;x.strokeStyle=a.color;b(a.datapoints,g,d(a.points,a.color),0,!1,a.xaxis,a.yaxis,j);x.restore()}function S(a,b,d,e,f,g,j,p,n,k,l,s){var t,z,C,v;l?(v=z=C=!0,t=!1,l=d,d=b+e,f=b+f,ap.max||dn.max)){if(lp.max)a=p.max,z=!1;if(fn.max)d=n.max,C=!1;l=p.p2c(l);f= +n.p2c(f);a=p.p2c(a);d=n.p2c(d);if(j)k.beginPath(),k.moveTo(l,f),k.lineTo(l,d),k.lineTo(a,d),k.lineTo(a,f),k.fillStyle=j(f,d),k.fill();if(s>0&&(t||z||C||v))k.beginPath(),k.moveTo(l,f+g),t?k.lineTo(l,d+g):k.moveTo(l,d+g),C?k.lineTo(a,d+g):k.moveTo(a,d+g),z?k.lineTo(a,f+g):k.moveTo(a,f+g),v?k.lineTo(l,f+g):k.moveTo(l,f+g),k.stroke()}}function X(a){x.save();x.translate(E.left,E.top);x.lineWidth=a.bars.lineWidth;x.strokeStyle=a.color;var b=a.bars.align=="left"?0:-a.bars.barWidth/2;(function(b,d,e,f,g, +j,k){for(var p=b.points,b=b.pointsize,n=0;n"),d.push(""),e=!0),g&&(k=g(k,j)),d.push('
'+k+"");e&&d.push("");if(d.length!=0)if(e=''+d.join("")+ +"
",n.legend.container!=null)a(n.legend.container).html(e);else if(d="",g=n.legend.position,j=n.legend.margin,j[0]==null&&(j=[j,j]),g.charAt(0)=="n"?d+="top:"+(j[1]+E.top)+"px;":g.charAt(0)=="s"&&(d+="bottom:"+(j[1]+E.bottom)+"px;"),g.charAt(1)=="e"?d+="right:"+(j[0]+E.right)+"px;":g.charAt(1)=="w"&&(d+="left:"+(j[0]+E.left)+"px;"),e=a('
'+e.replace('style="','style="position:absolute;'+d+";")+"
").appendTo(b),n.legend.backgroundOpacity!=0){g=n.legend.backgroundColor; +if(g==null)g=(g=n.grid.backgroundColor)&&typeof g=="string"?a.color.parse(g):a.color.extract(e,"background-color"),g.a=1,g=g.toString();j=e.children();a('
').prependTo(e).css("opacity",n.legend.backgroundOpacity)}}}function ba(a){n.grid.hoverable&&ka("plothover",a,function(a){return a.hoverable!=!1})}function F(a){n.grid.hoverable&&ka("plothover",a,function(){return!1})}function oa(a){ka("plotclick", +a,function(a){return a.clickable!=!1})}function ka(a,d,e){var g=pa.offset(),j=d.pageX-g.left-E.left,k=d.pageY-g.top-E.top,p=B({left:j,top:k});p.pageX=d.pageX;p.pageY=d.pageY;var d=n.grid.mouseActiveRadius,l=d*d+1,s=null,t,z;for(t=J.length-1;t>=0;--t)if(e(J[t])){var C=J[t],v=C.xaxis,x=C.yaxis,A=C.datapoints.points,R=C.datapoints.pointsize,P=v.c2p(j),F=x.c2p(k),fa=d/v.scale,G=d/x.scale;if(v.options.inverseTransform)fa=Number.MAX_VALUE;if(x.options.inverseTransform)G=Number.MAX_VALUE;if(C.lines.show|| +C.points.show)for(z=0;zfa||N-P<-fa||D-F>G||D-F<-G))N=Math.abs(v.p2c(N)-j),D=Math.abs(x.p2c(D)-k),D=N*N+D*D,D=Math.min(x,N)&&F>=D+v&&F<=D+C:P>=N+v&&P<=N+C&&F>=Math.min(x,D)&&F<=Math.max(x,D)))s=[t,z/R]}}s?(t=s[0],z=s[1],R=J[t].datapoints.pointsize, +e={datapoint:J[t].datapoints.points.slice(z*R,(z+1)*R),dataIndex:z,series:J[t],seriesIndex:t}):e=null;if(e)e.pageX=parseInt(e.series.xaxis.p2c(e.datapoint[0])+g.left+E.left),e.pageY=parseInt(e.series.yaxis.p2c(e.datapoint[1])+g.top+E.top);if(n.grid.autoHighlight){for(g=0;gg.max||fj.max)){var k=e.points.radius+e.points.lineWidth/2;da.lineWidth=k;da.strokeStyle=a.color.parse(e.color).scale("a",0.5).toString();k*=1.5;d=g.p2c(d);f=j.p2c(f);da.beginPath();e.points.symbol=="circle"? +da.arc(d,f,k,0,2*Math.PI,!1):e.points.symbol(da,d,f,k,!1);da.closePath();da.stroke()}}da.restore();A(ua.drawOverlay,[da])}function wa(a,b,d){typeof a=="number"&&(a=J[a]);if(typeof b=="number")var e=a.datapoints.pointsize,b=a.datapoints.points.slice(e*b,e*(b+1));e=g(a,b);if(e==-1)ya.push({series:a,point:b,auto:d}),ca();else if(!d)ya[e].auto=!1}function $(a,b){a==null&&b==null&&(ya=[],ca());typeof a=="number"&&(a=J[a]);typeof b=="number"&&(b=a.data[b]);var d=g(a,b);d!=-1&&(ya.splice(d,1),ca())}function g(a, +b){for(var d=0;d12?L-=12:L==0&&(L=12));for(var z=0;z2&&(z?j.format[2].x:j.format[2].y),b=fa&&b.lines.steps;B=!0;for(var P=z?1:0,N=z?0:1,t=0,U=0,M;;){if(t>=k.length)break;M=G.length;if(k[t]==null){for(m= +0;m=l.length){if(!fa)for(m=0;mz){if(fa&&t>0&&k[t-a]!=null){B=L+(k[t-a+N]-L)*(z-D)/(k[t-a+P]-D);G.push(z);G.push(B+s);for(m=2;m0&&l[U-A]!=null&&(C=s+(l[U-A+N]-s)*(D- +z)/(l[U-A+P]-z));G[M+N]+=C;t+=a}B=!1;M!=G.length&&R&&(G[M+2]+=C)}if(b&&M!=G.length&&M>0&&G[M]!=null&&G[M]!=G[M-a]&&G[M+1]!=G[M-a+1]){for(m=0;ms?s:l;j=e.pageY-j.top-k.top;k=b.height();a.y=j<0?0:j>k?k:j;if(f.selection.mode=="y")a.x=a==B.first?0:b.width();if(f.selection.mode=="x")a.y=a==B.first?0:b.height()}function A(a){if(a.pageX!=null)k(B.second,a),L()?(B.show=!0,b.triggerRedrawOverlay()): +G(!0)}function G(a){if(B.show)B.show=!1,b.triggerRedrawOverlay(),a||b.getPlaceholder().trigger("plotunselected",[])}function D(a,e){var f,j,k,l,s=b.getAxes(),z;for(z in s)if(f=s[z],f.direction==e&&(l=e+f.n+"axis",!a[l]&&f.n==1&&(l=e+"axis"),a[l])){j=a[l].from;k=a[l].to;break}a[l]||(f=e=="x"?b.getXAxes()[0]:b.getYAxes()[0],j=a[e+"1"],k=a[e+"2"]);j!=null&&k!=null&&j>k&&(l=j,j=k,k=l);return{from:j,to:k,axis:f}}function L(){return Math.abs(B.second.x-B.first.x)>=5&&Math.abs(B.second.y-B.first.y)>=5}var B= +{first:{x:-1,y:-1},second:{x:-1,y:-1},show:!1,active:!1},z={},s=null;b.clearSelection=G;b.setSelection=function(a,e){var f,j=b.getOptions();j.selection.mode=="y"?(B.first.x=0,B.second.x=b.width()):(f=D(a,"x"),B.first.x=f.axis.p2c(f.from),B.second.x=f.axis.p2c(f.to));j.selection.mode=="x"?(B.first.y=0,B.second.y=b.height()):(f=D(a,"y"),B.first.y=f.axis.p2c(f.from),B.second.y=f.axis.p2c(f.to));B.show=!0;b.triggerRedrawOverlay();!e&&L()&&l()};b.getSelection=j;b.hooks.bindEvents.push(function(a,b){a.getOptions().selection.mode!= +null&&(b.mousemove(e),b.mousedown(f))});b.hooks.drawOverlay.push(function(b,e){if(B.show&&L()){var f=b.getPlotOffset(),j=b.getOptions();e.save();e.translate(f.left,f.top);f=a.color.parse(j.selection.color);e.strokeStyle=f.scale("a",0.8).toString();e.lineWidth=1;e.lineJoin="round";e.fillStyle=f.scale("a",0.4).toString();var f=Math.min(B.first.x,B.second.x),j=Math.min(B.first.y,B.second.y),k=Math.abs(B.second.x-B.first.x),l=Math.abs(B.second.y-B.first.y);e.fillRect(f,j,k,l);e.strokeRect(f,j,k,l);e.restore()}}); +b.hooks.shutdown.push(function(b,j){j.unbind("mousemove",e);j.unbind("mousedown",f);s&&a(document).unbind("mouseup",s)})},options:{selection:{mode:null,color:"#e8cfac"}},name:"selection",version:"1.1"})})(jQuery); +// Input 7 +function InvalidRRD(a){this.message=a;this.name="Invalid RRD"}InvalidRRD.prototype.toString=function(){return this.name+': "'+this.message+'"'};function RRDDS(a,b,e){this.rrd_data=a;this.rrd_data_idx=b;this.my_idx=e}RRDDS.prototype.getIdx=function(){return this.my_idx};RRDDS.prototype.getName=function(){return this.rrd_data.getCStringAt(this.rrd_data_idx,20)};RRDDS.prototype.getType=function(){return this.rrd_data.getCStringAt(this.rrd_data_idx+20,20)}; +RRDDS.prototype.getMin=function(){return this.rrd_data.getDoubleAt(this.rrd_data_idx+48)};RRDDS.prototype.getMax=function(){return this.rrd_data.getDoubleAt(this.rrd_data_idx+56)};function RRDRRAInfo(a,b,e,f,j,l){this.rrd_data=a;this.rra_def_idx=b;this.rrd_align=e;this.row_cnt=f;this.pdp_step=j;this.my_idx=l}RRDRRAInfo.prototype.getIdx=function(){return this.my_idx};RRDRRAInfo.prototype.getNrRows=function(){return this.row_cnt}; RRDRRAInfo.prototype.getPdpPerRow=function(){return this.rrd_align==32?this.rrd_data.getLongAt(this.rra_def_idx+24,20):this.rrd_data.getLongAt(this.rra_def_idx+32,20)};RRDRRAInfo.prototype.getStep=function(){return this.pdp_step*this.getPdpPerRow()};RRDRRAInfo.prototype.getCFName=function(){return this.rrd_data.getCStringAt(this.rra_def_idx,20)}; -function RRDRRA(a,b,e,f,j,k){this.rrd_data=a;this.rra_info=e;this.row_cnt=e.row_cnt;this.ds_cnt=k;var l=k*8;this.base_rrd_db_idx=f+j*l;this.cur_row=a.getLongAt(b);this.calc_idx=function(a,b){if(a>=0&&a=0&&b=this.row_cnt&&(e-=this.row_cnt);return l*e+b*8}else throw RangeError("DS idx ("+a+") out of range [0-"+k+").");else throw RangeError("Row idx ("+a+") out of range [0-"+this.row_cnt+").");}}RRDRRA.prototype.getIdx=function(){return this.rra_info.getIdx()}; +function RRDRRA(a,b,e,f,j,l){this.rrd_data=a;this.rra_info=e;this.row_cnt=e.row_cnt;this.ds_cnt=l;var k=l*8;this.base_rrd_db_idx=f+j*k;this.cur_row=a.getLongAt(b);this.calc_idx=function(a,b){if(a>=0&&a=0&&b=this.row_cnt&&(e-=this.row_cnt);return k*e+b*8}else throw RangeError("DS idx ("+a+") out of range [0-"+l+").");else throw RangeError("Row idx ("+a+") out of range [0-"+this.row_cnt+").");}}RRDRRA.prototype.getIdx=function(){return this.rra_info.getIdx()}; RRDRRA.prototype.getNrRows=function(){return this.row_cnt};RRDRRA.prototype.getNrDSs=function(){return this.ds_cnt};RRDRRA.prototype.getStep=function(){return this.rra_info.getStep()};RRDRRA.prototype.getCFName=function(){return this.rra_info.getCFName()};RRDRRA.prototype.getEl=function(a,b){return this.rrd_data.getDoubleAt(this.base_rrd_db_idx+this.calc_idx(a,b))};RRDRRA.prototype.getElFast=function(a,b){return this.rrd_data.getFastDoubleAt(this.base_rrd_db_idx+this.calc_idx(a,b))}; function RRDHeader(a){this.rrd_data=a;this.validate_rrd();this.load_header();this.calc_idxs()} RRDHeader.prototype.validate_rrd=function(){if(this.rrd_data.getCStringAt(0,4)!=="RRD")throw new InvalidRRD("Wrong magic id.");this.rrd_version=this.rrd_data.getCStringAt(4,5);if(this.rrd_version!=="0003"&&this.rrd_version!=="0004")throw new InvalidRRD("Unsupported RRD version "+this.rrd_version+".");if(this.rrd_data.getDoubleAt(12)==8.642135E130)this.rrd_align=32;else if(this.rrd_data.getDoubleAt(16)==8.642135E130)this.rrd_align=64;else throw new InvalidRRD("Unsupported platform.");}; @@ -366,7 +381,9 @@ RRDHeader.prototype.getNrDSs=function(){return this.ds_cnt};RRDHeader.prototype. RRDHeader.prototype.getDSbyName=function(a){for(var b=0;b=0&&a for humans @@ -377,22 +394,24 @@ this.getRRAInfo=function(a){return this.rrd_header.getRRAInfo(a)};this.getRRA=fu Since: Mar 2010 Date: @DATE */ -(function(a){function b(a,b){a=""+a;for(b=b||2;a.length=0){if(!ea)return H.show(d),d.preventDefault();var f=a("#"+y.weeks+" a"),j=a("."+y.focus),k=f.index(j);j.removeClass(y.focus);if(e==74||e==40)k+=7;else if(e==75||e==38)k-=7;else if(e==76||e==39)k+=1;else if(e==72||e==37)k-=1;k>41?(H.addMonth(),j=a("#"+y.weeks+" a:eq("+(k-42)+")")):k<0?(H.addMonth(-1),j=a("#"+y.weeks+" a:eq("+ -(k+42)+")")):j=f.eq(k);j.addClass(y.focus);return d.preventDefault()}if(e==34)return H.addMonth();if(e==33)return H.addMonth(-1);if(e==36)return H.today();e==13&&(a(d.target).is("select")||a("."+y.focus).click());return a([16,17,18,9]).index(e)>=0});a(document).bind("click.d",function(d){var e=d.target;!a(e).parents("#"+y.root).length&&e!=b[0]&&(!$||e!=$[0])&&H.hide(d)})}var H=this,M=new Date,y=k.css,N=I[k.lang],O=a("#"+y.root),T=O.find("#"+y.title),$,P,aa,ma,va,u,Q=b.attr("data-value")||k.value|| -b.val(),W=b.attr("min")||k.min,d=b.attr("max")||k.max,ea;W===0&&(W="0");Q=j(Q)||M;W=j(W||k.yearRange[0]*365);d=j(d||k.yearRange[1]*365);if(!N)throw"Dateinput: invalid language: "+k.lang;if(b.attr("type")=="date"){var na=a("");a.each("class,disabled,id,maxlength,name,readonly,required,size,style,tabindex,title,value".split(","),function(a,d){na.attr(d,b.attr(d))});b.replaceWith(na);b=na}b.addClass(y.input);var D=b.add(H);if(!O.length){O=a("
").hide().css({position:"absolute"}).attr("id", -y.root);O.children().eq(0).attr("id",y.head).end().eq(1).attr("id",y.body).children().eq(0).attr("id",y.days).end().eq(1).attr("id",y.weeks).end().end().end().find("a").eq(0).attr("id",y.prev).end().eq(1).attr("id",y.next);T=O.find("#"+y.head).find("div").attr("id",y.title);if(k.selectors){var da=a("").attr("id",y.year);T.html(da.add(ha))}for(var qa=O.find("#"+y.days),ra=0;ra<7;ra++)qa.append(a("").text(N.shortDays[(ra+k.firstDay)%7]));a("body").append(O)}k.trigger&& -($=a("").attr("href","#").addClass(y.trigger).click(function(a){H.show();return a.preventDefault()}).insertAfter(b));var wa=O.find("#"+y.weeks),ha=O.find("#"+y.year),da=O.find("#"+y.month);a.extend(H,{show:function(d){if(!b.attr("readonly")&&!b.attr("disabled")&&!ea&&(d=d||a.Event(),d.type="onBeforeShow",D.trigger(d),!d.isDefaultPrevented())){a.each(l,function(){this.hide()});ea=!0;da.unbind("change").change(function(){H.setValue(ha.val(),a(this).val())});ha.unbind("change").change(function(){H.setValue(a(this).val(), -da.val())});P=O.find("#"+y.prev).unbind("click").click(function(){P.hasClass(y.disabled)||H.addMonth(-1);return!1});aa=O.find("#"+y.next).unbind("click").click(function(){aa.hasClass(y.disabled)||H.addMonth();return!1});H.setValue(Q);var e=b.offset();/iPad/i.test(navigator.userAgent)&&(e.top-=a(window).scrollTop());O.css({top:e.top+b.outerHeight({margins:!0})+k.offset[0],left:e.left+k.offset[1]});k.speed?O.show(k.speed,function(){G(d)}):(O.show(),G(d));return H}},setValue:function(b,e,j){var l=parseInt(e, -10)>=-1?new Date(parseInt(b,10),parseInt(e,10),parseInt(j||1,10)):b||Q;ld&&(l=d);b=l.getFullYear();e=l.getMonth();j=l.getDate();e==-1?(e=11,b--):e==12&&(e=0,b++);if(!ea)return v(l,k),H;va=e;ma=b;var j=(new Date(b,e,1-k.firstDay)).getDay(),r=32-(new Date(b,e,32)).getDate(),o=32-(new Date(b,e-1,32)).getDate(),u;if(k.selectors){da.empty();a.each(N.months,function(e,f){Wnew Date(b,e,0)&&da.append(a(""),B%7===0&&(u=a("
").addClass(y.week),wa.append(u)),B=j+r?(D.addClass(y.off),w=B-r-j+1,l=new Date(b,e+1,w)):(w=B-j+1,l=new Date(b,e,w),f(Q,l)?D.attr("id",y.current).addClass(y.focus): -f(M,l)&&D.attr("id",y.today)),W&&ld&&D.add(aa).addClass(y.disabled),D.attr("href","#"+w).text(w).data("date",l),u.append(D);wa.find("a").click(function(b){var d=a(this);d.hasClass(y.disabled)||(a("#"+y.current).removeAttr("id"),d.attr("id",y.current),v(d.data("date"),k,b));return!1});y.sunday&&wa.find(y.week).each(function(){var b=k.firstDay?7-k.firstDay:0;a(this).children().slice(b,b+1).addClass(y.sunday)});return H},setMin:function(a,b){W=j(a);b&&Qd&&H.setValue(d);return H},today:function(){return H.setValue(M)},addDay:function(a){return this.setValue(ma,va,u+(a||1))},addMonth:function(a){return this.setValue(ma,va+(a||1),u)},addYear:function(a){return this.setValue(ma+(a||1),va,u)},hide:function(b){if(ea){b=a.Event();b.type="onHide";D.trigger(b);a(document).unbind("click.d").unbind("keydown.d");if(b.isDefaultPrevented())return;O.hide();ea=!1}return H},getConf:function(){return k},getInput:function(){return b}, -getCalendar:function(){return O},getValue:function(a){return a?e(Q,a,k.lang):Q},isOpen:function(){return ea}});a.each(["onBeforeShow","onShow","change","onHide"],function(b,d){a.isFunction(k[d])&&a(H).bind(d,k[d]);H[d]=function(b){b&&a(H).bind(d,b);return H}});b.bind("focus click",H.show).keydown(function(b){var d=b.keyCode;if(!ea&&a(B).index(d)>=0)return H.show(b),b.preventDefault();return b.shiftKey||b.ctrlKey||b.altKey||d==9?!0:b.preventDefault()});j(b.val())&&v(Q,k)}a.tools=a.tools||{version:"@VERSION"}; -var l=[],v,B=[75,76,38,39,74,72,40,37],I={};v=a.tools.dateinput={conf:{format:"mm/dd/yy",selectors:!1,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:void 0,max:void 0,trigger:!1,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(b,e){a.each(e,function(a,b){e[a]=b.split(",")});I[b]=e}};v.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December", -shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var M=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,G=a("");a.expr[":"].date=function(b){var e=b.getAttribute("type");return e&&e=="date"||!!a(b).data("dateinput")};a.fn.dateinput=function(b){if(this.data("dateinput"))return this;b=a.extend(!0,{},v.conf,b);a.each(b.css,function(a,e){!e&&a!="prefix"&&(b.css[a]=(b.css.prefix||"")+(e|| -a))});var e;this.each(function(){var f=new k(a(this),b);l.push(f);f=f.getInput().data("dateinput",f);e=e?e.add(f):f});return e?e:this}})(jQuery);/* +(function(a){function b(a,b){a=""+a;for(b=b||2;a.length=0){if(!ba)return B.show(d),d.preventDefault();var f=a("#"+t.weeks+" a"),j=a("."+t.focus),k=f.index(j);j.removeClass(t.focus);if(e==74||e==40)k+=7;else if(e==75||e==38)k-=7;else if(e==76||e==39)k+=1;else if(e==72||e==37)k-=1;k>41?(B.addMonth(),j=a("#"+t.weeks+" a:eq("+(k-42)+")")):k<0?(B.addMonth(-1), +j=a("#"+t.weeks+" a:eq("+(k+42)+")")):j=f.eq(k);j.addClass(t.focus);return d.preventDefault()}if(e==34)return B.addMonth();if(e==33)return B.addMonth(-1);if(e==36)return B.today();e==13&&(a(d.target).is("select")||a("."+t.focus).click());return a([16,17,18,9]).index(e)>=0});a(document).bind("click.d",function(d){var e=d.target;!a(e).parents("#"+t.root).length&&e!=b[0]&&(!O||e!=O[0])&&B.hide(d)})}var B=this,L=new Date,N=L.getFullYear(),t=l.css,U=D[l.lang],M=a("#"+t.root),ga=M.find("#"+t.title),O,ha, +qa,va,v,S,X=b.attr("data-value")||l.value||b.val(),d=b.attr("min")||l.min,aa=b.attr("max")||l.max,ba,F;d===0&&(d="0");X=j(X)||L;d=j(d||new Date(N+l.yearRange[0],1,1));aa=j(aa||new Date(N+l.yearRange[1]+1,1,-1));if(!U)throw"Dateinput: invalid language: "+l.lang;b.attr("type")=="date"&&(F=b.clone(),N=F.wrap("
").parent().html(),N=a(N.replace(/type/i,"type=text data-orig-type")),N.val(l.value),b.replaceWith(N),b=N);b.addClass(t.input);var oa=b.add(B);if(!M.length){M=a("
").hide().css({position:"absolute"}).attr("id", +t.root);M.children().eq(0).attr("id",t.head).end().eq(1).attr("id",t.body).children().eq(0).attr("id",t.days).end().eq(1).attr("id",t.weeks).end().end().end().find("a").eq(0).attr("id",t.prev).end().eq(1).attr("id",t.next);ga=M.find("#"+t.head).find("div").attr("id",t.title);if(l.selectors){var ka=a("").attr("id",t.year);ga.html(ka.add(ca))}for(var N=M.find("#"+t.days),ra=0;ra<7;ra++)N.append(a("").text(U.shortDays[(ra+l.firstDay)%7]));a("body").append(M)}l.trigger&& +(O=a("").attr("href","#").addClass(t.trigger).click(function(a){B.show();return a.preventDefault()}).insertAfter(b));var wa=M.find("#"+t.weeks),ca=M.find("#"+t.year),ka=M.find("#"+t.month);a.extend(B,{show:function(d){if(!b.attr("readonly")&&!b.attr("disabled")&&!ba&&(d=d||a.Event(),d.type="onBeforeShow",oa.trigger(d),!d.isDefaultPrevented())){a.each(k,function(){this.hide()});ba=!0;ka.unbind("change").change(function(){B.setValue(ca.val(),a(this).val())});ca.unbind("change").change(function(){B.setValue(a(this).val(), +ka.val())});ha=M.find("#"+t.prev).unbind("click").click(function(){ha.hasClass(t.disabled)||B.addMonth(-1);return!1});qa=M.find("#"+t.next).unbind("click").click(function(){qa.hasClass(t.disabled)||B.addMonth();return!1});B.setValue(X);var e=b.offset();/iPad/i.test(navigator.userAgent)&&(e.top-=a(window).scrollTop());M.css({top:e.top+b.outerHeight({margins:!0})+l.offset[0],left:e.left+l.offset[1]});l.speed?M.show(l.speed,function(){A(d)}):(M.show(),A(d));return B}},setValue:function(b,e,k){var z= +parseInt(e,10)>=-1?new Date(parseInt(b,10),parseInt(e,10),parseInt(k||1,10)):b||X;zaa&&(z=aa);typeof b=="string"&&(z=j(b));b=z.getFullYear();e=z.getMonth();k=z.getDate();e==-1?(e=11,b--):e==12&&(e=0,b++);if(!ba)return C(z,l),B;v=e;va=b;var k=(new Date(b,e,1-l.firstDay)).getDay(),A=32-(new Date(b,e,32)).getDate(),n=32-(new Date(b,e-1,32)).getDate(),F;if(l.selectors){ka.empty();a.each(U.months,function(e,f){dnew Date(b,e,0)&&ka.append(a(""),D%7===0&&(F=a("
").addClass(t.week),wa.append(F)),D=k+A?(G.addClass(t.off),x=D-A-k+1,z=new Date(b,e+1,x)):(x=D-k+1,z=new Date(b,e, +x),f(X,z)?G.attr("id",t.current).addClass(t.focus):f(L,z)&&G.attr("id",t.today)),d&&zaa&&G.add(qa).addClass(t.disabled),G.attr("href","#"+x).text(x).data("date",z),F.append(G);wa.find("a").click(function(b){var d=a(this);d.hasClass(t.disabled)||(a("#"+t.current).removeAttr("id"),d.attr("id",t.current),C(d.data("date"),l,b));return!1});t.sunday&&wa.find(t.week).each(function(){var b=l.firstDay?7-l.firstDay:0;a(this).children().slice(b,b+1).addClass(t.sunday)}); +return B},setMin:function(a,b){d=j(a);b&&Xaa&&B.setValue(aa);return B},today:function(){return B.setValue(L)},addDay:function(a){return this.setValue(va,v,S+(a||1))},addMonth:function(a){return this.setValue(va,v+(a||1),S)},addYear:function(a){return this.setValue(va+(a||1),v,S)},destroy:function(){b.add(document).unbind("click.d").unbind("keydown.d");M.add(O).remove();b.removeData("dateinput").removeClass(t.input);F&&b.replaceWith(F)}, +hide:function(b){if(ba){b=a.Event();b.type="onHide";oa.trigger(b);a(document).unbind("click.d").unbind("keydown.d");if(b.isDefaultPrevented())return;M.hide();ba=!1}return B},getConf:function(){return l},getInput:function(){return b},getCalendar:function(){return M},getValue:function(a){return a?e(X,a,l.lang):X},isOpen:function(){return ba}});a.each(["onBeforeShow","onShow","change","onHide"],function(b,d){a.isFunction(l[d])&&a(B).bind(d,l[d]);B[d]=function(b){b&&a(B).bind(d,b);return B}});l.editable|| +b.bind("focus.d click.d",B.show).keydown(function(b){var d=b.keyCode;if(!ba&&a(G).index(d)>=0)return B.show(b),b.preventDefault();return b.shiftKey||b.ctrlKey||b.altKey||d==9?!0:b.preventDefault()});j(b.val())&&C(X,l)}a.tools=a.tools||{version:"@VERSION"};var k=[],A,G=[75,76,38,39,74,72,40,37],D={};A=a.tools.dateinput={conf:{format:"mm/dd/yy",selectors:!1,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:void 0,max:void 0,trigger:0,editable:0,css:{prefix:"cal",input:"date",root:0,head:0, +title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(b,e){a.each(e,function(a,b){e[a]=b.split(",")});D[b]=e}};A.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var L=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g, +B=a("");a.expr[":"].date=function(b){var e=b.getAttribute("type");return e&&e=="date"||!!a(b).data("dateinput")};a.fn.dateinput=function(b){if(this.data("dateinput"))return this;b=a.extend(!0,{},A.conf,b);a.each(b.css,function(a,e){!e&&a!="prefix"&&(b.css[a]=(b.css.prefix||"")+(e||a))});var e;this.each(function(){var f=new l(a(this),b);k.push(f);f=f.getInput().data("dateinput",f);e=e?e.add(f):f});return e?e:this}})(jQuery); +// Input 9 +/* jQuery Tools @VERSION Tabs- The basics of UI design. @@ -403,21 +422,9 @@ a))});var e;this.each(function(){var f=new k(a(this),b);l.push(f);f=f.getInput() Since: November 2008 Date: @DATE */ -(function(a){function b(b,f,l){var v=this,B=b.add(this),I=b.find(l.tabs),M=f.jquery?f:b.children(f),G;I.length||(I=b.children());M.length||(M=b.parent().find(f));M.length||(M=a(f));a.extend(this,{click:function(b,f){var j=I.eq(b);typeof b=="string"&&b.replace("#","")&&(j=I.filter("[href*="+b.replace("#","")+"]"),b=Math.max(I.index(j),0));if(l.rotate){var k=I.length-1;if(b<0)return v.click(k,f);if(b>k)return v.click(0,f)}if(!j.length){if(G>=0)return v;b=l.initialIndex;j=I.eq(b)}if(b===G)return v;f= -f||a.Event();f.type="onBeforeClick";B.trigger(f,[b]);if(!f.isDefaultPrevented())return e[l.effect].call(v,b,function(){f.type="onClick";B.trigger(f,[b])}),G=b,I.removeClass(l.current),j.addClass(l.current),v},getConf:function(){return l},getTabs:function(){return I},getPanes:function(){return M},getCurrentPane:function(){return M.eq(G)},getCurrentTab:function(){return I.eq(G)},getIndex:function(){return G},next:function(){return v.click(G+1)},prev:function(){return v.click(G-1)},destroy:function(){I.unbind(l.event).removeClass(l.current); -M.find("a[href^=#]").unbind("click.T");return v}});a.each("onBeforeClick,onClick".split(","),function(b,e){a.isFunction(l[e])&&a(v).bind(e,l[e]);v[e]=function(b){b&&a(v).bind(e,b);return v}});if(l.history&&a.fn.history)a.tools.history.init(I),l.event="history";I.each(function(b){a(this).bind(l.event,function(a){v.click(b,a);return a.preventDefault()})});M.find("a[href^=#]").bind("click.T",function(b){v.click(a(this).attr("href"),b)});location.hash&&l.tabs=="a"&&b.find("[href="+location.hash+"]").length? -v.click(location.hash):(l.initialIndex===0||l.initialIndex>0)&&v.click(l.initialIndex)}a.tools=a.tools||{version:"@VERSION"};a.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:!1,history:!1},addEffect:function(a,b){e[a]=b}};var e={"default":function(a,b){this.getPanes().hide().eq(a).show();b.call()},fade:function(a,b){var e=this.getConf(),f=e.fadeOutSpeed,B=this.getPanes();f?B.fadeOut(f):B.hide();B.eq(a).fadeIn(e.fadeInSpeed, -b)},slide:function(a,b){this.getPanes().slideUp(200);this.getPanes().eq(a).slideDown(400,b)},ajax:function(a,b){this.getPanes().eq(0).load(this.getTabs().eq(a).attr("href"),b)}},f;a.tools.tabs.addEffect("horizontal",function(b,e){f||(f=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){a(this).hide()});this.getPanes().eq(b).animate({width:f},function(){a(this).show();e.call()})});a.fn.tabs=function(e,f){var l=this.data("tabs");l&&(l.destroy(),this.removeData("tabs")); -a.isFunction(f)&&(f={onBeforeClick:f});f=a.extend({},a.tools.tabs.conf,f);this.each(function(){l=new b(a(this),e,f);a(this).data("tabs",l)});return f.api?l:this}})(jQuery);/* - - jQuery Tools @VERSION History "Back button for AJAX apps" - - NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. - - http://flowplayer.org/tools/toolbox/history.html - - Since: Mar 2010 - Date: @DATE -*/ -(function(a){function b(a){if(a){var b=f.contentWindow.document;b.open().close();b.location.hash=a}}var e,f,j,k;a.tools=a.tools||{version:"@VERSION"};a.tools.history={init:function(l){k||(a.browser.msie&&a.browser.version<"8"?f||(f=a("