// Compiled with closure-compiler on 2011-06-18 16:19:16.171580 // @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 // @code_url http://flot.googlecode.com/svn/trunk/excanvas.js // @code_url http://flot.googlecode.com/svn/trunk/jquery.flot.js // @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/binaryXHR.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 // @compilation_level SIMPLE_OPTIMIZATIONS // @output_format text // @output_info compiled_code 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]||{},l=a.NAME?a.NAME+".":"";j.NAME=l+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=[]);e>b},zrshift:function(a,b){return a>>>b},eq:function(a,b){return a==b},ne:function(a,b){return a!=b},gt:function(a,b){return a>b},ge:function(a,b){return a>=b},lt:function(a,b){return a0&&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;bn)l= n}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,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 n=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)};n.im_self=j;n.im_func=e;n.im_preargs=f;if(typeof e.NAME=="string")n.NAME="bind("+e.NAME+",...)";return n},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):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 l=0;l1&&(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 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(n){b=1,n instanceof Error||(n=new MochiKit.Async.GenericError(n)),e=n}}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= 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;fk)break;c.currentTarget=A.elem;c.data=A.handleObj.data;c.handleObj=A.handleObj;r=A.handleObj.origHandler.apply(A.elem,arguments);if(r===!1||c.isPropagationStopped())if(k=A.level,r===!1&&(a=!1),c.isImmediatePropagationStopped())break}return a}}function G(c,a){return(c&&c!=="*"?c+".":"")+a.replace(ma,"`").replace(u,"&")}function M(c,a,k){a=a||0;if(d.isFunction(a))return d.grep(c,function(c,d){return!!a.call(c,d,c)===k});else if(a.nodeType)return d.grep(c, function(c){return c===a===k});else if(typeof a==="string"){var b=d.grep(c,function(c){return c.nodeType===1});if(Ba.test(a))return d.filter(a,b,!k);else a=d.filter(a,b)}return d.grep(c,function(c){return d.inArray(c,a)>=0===k})}function E(c,a){if(a.nodeType===1&&d.hasData(c)){var k=d.expando,b=d.data(c),A=d.data(a,b);if(b=b[k]){var e=b.events,A=A[k]=d.extend({},b);if(e){delete A.handle;A.events={};for(var h in e){k=0;for(b=e[h].length;k").appendTo("body"),k=a.css("display");a.remove();if(k==="none"||k===""){if(!xa)xa=w.createElement("iframe"),xa.frameBorder=xa.width=xa.height=0;w.body.appendChild(xa);if(!Na||!xa.createElement)Na=(xa.contentWindow|| xa.contentDocument).document,Na.write("");a=Na.createElement(c);Na.body.appendChild(a);k=d.css(a,"display");w.body.removeChild(xa)}Ua[c]=k}return Ua[c]}function ra(c){return d.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:!1}var w=a.document,Q=a.navigator,W=a.location,d=function(){function c(){if(!s.isReady){try{w.documentElement.doScroll("left")}catch(a){setTimeout(c,1);return}s.ready()}}var s=function(c,a){return new s.fn.init(c,a,A)},d=a.jQuery, D=a.$,A,e=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,f=/^\s+/,g=/\s+$/,q=/\d/,z=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,r=/^[\],:{}\s]*$/,C=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,o=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,j=/(?:^|:|,)(?:\s*\[)+/g,R=/(webkit)[ \/]([\w.]+)/,N=/(opera)(?:.*version)?[ \/]([\w.]+)/,n=/(msie) ([\w.]+)/,l=/(mozilla)(?:.*? rv:([\w.]+))?/,Oa=Q.userAgent,Qa,ja,V=Object.prototype.toString,Va=Object.prototype.hasOwnProperty,Wa=Array.prototype.push,Y=Array.prototype.slice, L=String.prototype.trim,p=Array.prototype.indexOf,J={};s.fn=s.prototype={constructor:s,init:function(c,a,d){var k;if(!c)return this;if(c.nodeType)return this.context=this[0]=c,this.length=1,this;if(c==="body"&&!a&&w.body)return this.context=w,this[0]=w.body,this.selector=c,this.length=1,this;if(typeof c==="string")if((k=c.charAt(0)==="<"&&c.charAt(c.length-1)===">"&&c.length>=3?[null,c,null]:e.exec(c))&&(k[1]||!a))if(k[1])return d=(a=a instanceof s?a[0]:a)?a.ownerDocument||a:w,(c=z.exec(c))?s.isPlainObject(a)? (c=[w.createElement(c[1])],s.fn.attr.call(c,a,!0)):c=[d.createElement(c[1])]:(c=s.buildFragment([k[1]],[d]),c=(c.cacheable?s.clone(c.fragment):c.fragment).childNodes),s.merge(this,c);else{if((a=w.getElementById(k[2]))&&a.parentNode){if(a.id!==k[2])return d.find(c);this.length=1;this[0]=a}this.context=w;this.selector=c;return this}else return!a||a.jquery?(a||d).find(c):this.constructor(a).find(c);else if(s.isFunction(c))return d.ready(c);if(c.selector!==b)this.selector=c.selector,this.context=c.context; return s.makeArray(c,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return Y.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 k=this.constructor();s.isArray(c)?Wa.apply(k,c):s.merge(k,c);k.prevObject=this;k.context=this.context;if(a==="find")k.selector=this.selector+(this.selector?" ":"")+d;else if(a)k.selector=this.selector+"."+a+"("+d+")";return k},each:function(c,a){return s.each(this, c,a)},ready:function(c){s.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(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(c){return this.pushStack(s.map(this,function(a,s){return c.call(a,s,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:Wa,sort:[].sort,splice:[].splice};s.fn.init.prototype= s.fn;s.extend=s.fn.extend=function(){var c,a,d,k,D,A=arguments[0]||{},e=1,h=arguments.length,Fa=!1;typeof A==="boolean"&&(Fa=A,A=arguments[1]||{},e=2);typeof A!=="object"&&!s.isFunction(A)&&(A={});h===e&&(A=this,--e);for(;e0||(Qa.resolveWith(w,[s]),s.fn.trigger&&s(w).trigger("ready").unbind("ready"))}},bindReady:function(){if(!Qa){Qa=s._Deferred();if(w.readyState==="complete")return setTimeout(s.ready,1);if(w.addEventListener)w.addEventListener("DOMContentLoaded",ja,!1),a.addEventListener("load", s.ready,!1);else if(w.attachEvent){w.attachEvent("onreadystatechange",ja);a.attachEvent("onload",s.ready);var d=!1;try{d=a.frameElement==null}catch(k){}w.documentElement.doScroll&&d&&c()}}},isFunction:function(c){return s.type(c)==="function"},isArray:Array.isArray||function(c){return s.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):J[V.call(c)]||"object"},isPlainObject:function(c){if(!c|| s.type(c)!=="object"||c.nodeType||s.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=s.trim(c);if(a.JSON&&a.JSON.parse)return a.JSON.parse(c);if(r.test(c.replace(C,"@").replace(o,"]").replace(j,"")))return(new Function("return "+c))(); s.error("Invalid JSON: "+c)},parseXML:function(c,d,k){a.DOMParser?(k=new DOMParser,d=k.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c));k=d.documentElement;(!k||!k.nodeName||k.nodeName==="parsererror")&&s.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 k,D=0,A=c.length,e=A===b||s.isFunction(c);if(d)if(e)for(k in c){if(a.apply(c[k],d)===!1)break}else for(;D0&&c[0]&&c[h-1]||h===0||s.isArray(c)))for(;e1?la.call(arguments,0):a;--h||f.resolveWith(f,la.call(k,0))}}var k=arguments,b=0,e=k.length,h=e,f=e<=1&&c&&d.isFunction(c.promise)?c:d.Deferred();if(e>1){for(;b",f.shrinkWrapBlocks=c.offsetWidth!==2;c.innerHTML="
t
"; e=c.getElementsByTagName("td");d=e[0].offsetHeight===0;e[0].style.display="";e[1].style.display="none";f.reliableHiddenOffsets=d&&e[0].offsetHeight===0;c.innerHTML="";if(w.defaultView&&w.defaultView.getComputedStyle)d=w.createElement("div"),d.style.width="0",d.style.marginRight="0",c.appendChild(d),f.reliableMarginRight=(parseInt((w.defaultView.getComputedStyle(d,null)||{marginRight:0}).marginRight,10)||0)===0;b.innerHTML="";a.removeChild(b);if(c.attachEvent)for(g in{submit:1,change:1,focusin:1})a= "on"+g,d=a in c,d||(c.setAttribute(a,"return;"),d=typeof c[a]==="function"),f[g+"Bubbles"]=d;return f}();d.boxModel=d.support.boxModel;var B=/^(?:\{.*\}|\[.*\])$/,ca=/([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,k,D){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&&(!D||!q||g[q][e])||!(h&&k===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")D?g[q][e]=d.extend(g[q][e],a):g[q]=d.extend(g[q],a);c=g[q];D&&(c[e]||(c[e]={}),c=c[e]);k!==b&&(c[d.camelCase(a)]=k);if(a==="events"&&!c[a])return c[e]&&c[e].events;return h?c[d.camelCase(a)]:c}}},removeData:function(c,s,k){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(s){var q=k?h[g][b]:h[g];if(q&&(delete q[s],!f(q)))return}if(k&&(delete h[g][b],!f(h[g])))return;s=h[g][b];d.support.deleteExpando||h!=a?delete h[g]:h[g]=null;if(s){h[g]={};if(!e)h[g].toJSON=d.noop;h[g][b]=s}else e&&(d.support.deleteExpando?delete c[d.expando]:c.removeAttribute?c.removeAttribute(d.expando):c[d.expando]=null)}}},_data:function(c,a,k){return d.data(c,a,k,!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 k=null;if(typeof c==="undefined"){if(this.length&&(k=d.data(this[0]),this[0].nodeType===1))for(var D=this[0].attributes,A,h=0,f=D.length;h-1)return!0;return!1},val:function(c){var a,k,e=this[0];if(!arguments.length){if(e){if((a=d.valHooks[e.nodeName.toLowerCase()]||d.valHooks[e.type])&&"get"in a&&(k=a.get(e,"value"))!==b)return k;return(e.value||"").replace(oa,"")}return b}var h= d.isFunction(c);return this.each(function(k){var e=d(this);if(this.nodeType===1&&(k=h?c.call(this,k,e.val()):c,k==null?k="":typeof k==="number"?k+="":d.isArray(k)&&(k=d.map(k,function(c){return c==null?"":c+""})),a=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type],!a||!("set"in a)||a.set(this,k,"value")===b))this.value=k})}});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,k=c.selectedIndex,b=[], e=c.options,c=c.type==="select-one";if(k<0)return null;for(var h=c?k:0,f=c?k+1:e.length;h=0});if(!k.length)c.selectedIndex=-1;return k}}}, attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(c,a,k,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](k);if(!("getAttribute"in c))return d.prop(c,a,k);var f,a=(h=h!==1||!d.isXMLDoc(c))&&d.attrFix[a]||a,e=d.attrHooks[a];if(!e)if(C.test(a)&&(typeof k==="boolean"||k===b||k.toLowerCase()===a.toLowerCase()))e=o;else if(L&&(d.nodeName(c,"form")||V.test(a)))e=L;return k!==b?k===null?(d.removeAttr(c, a),b):e&&"set"in e&&h&&(f=e.set(c,k,a))!==b?f:(c.setAttribute(a,""+k),k):e&&"get"in e&&h?e.get(c,a):(f=c.getAttribute(a),f===null?b:f)},removeAttr:function(c,a){var k;if(c.nodeType===1&&(a=d.attrFix[a]||a,d.support.getSetAttribute?c.removeAttribute(a):(d.attr(c,a,""),c.removeAttributeNode(c.getAttributeNode(a))),C.test(a)&&(k=d.propFix[a]||a)in c))c[k]=!1},attrHooks:{type:{set:function(c,a){if(sa.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 k=c.value;c.setAttribute("type",a);if(k)c.value=k;return a}}},tabIndex:{get:function(c){var a=c.getAttributeNode("tabIndex");return a&&a.specified?parseInt(a.value,10):Ga.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,k){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 k!==b?e&&"set"in e&&(h=e.set(c,k,a))!==b?h:c[a]=k: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,k){var b;a===!1?d.removeAttr(c,k):(b=d.propFix[k]||k,b in c&&(c[b]=a),c.setAttribute(k,k.toLowerCase()));return k}};d.attrHooks.value={get:function(c,a){if(L&&d.nodeName(c, "button"))return L.get(c,a);return c.value},set:function(c,a,k){if(L&&d.nodeName(c,"button"))return L.set(c,a,k);c.value=a}};if(!d.support.getSetAttribute)d.attrFix=d.propFix,L=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 wa=/\.(.*)$/,ga=/^(?:textarea|input|select)$/i,ma=/\./g,u=/ /g,Z=/[^\w\s.|`]/g,ea=function(c){return c.replace(Z,"\\$&")};d.event={add:function(c,a,k,e){if(!(c.nodeType===3||c.nodeType===8)){if(k===!1)k=l;else if(!k)return;var h,f;if(k.handler)h=k,k=h.handler; if(!k.guid)k.guid=d.guid++;if(f=d._data(c)){var g=f.events,q=f.handle;if(!g)f.events=g={};if(!q)f.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,r=0,C;z=a[r++];){f=h?d.extend({},h):{handler:k,data:e};z.indexOf(".")>-1?(C=z.split("."),z=C.shift(),f.namespace=C.slice(0).sort().join(".")):(C=[],f.namespace="");f.type=z;if(!f.guid)f.guid=k.guid;var o=g[z],j=d.event.special[z]||{};if(!o&&(o= g[z]=[],!j.setup||j.setup.call(c,e,C,q)===!1))c.addEventListener?c.addEventListener(z,q,!1):c.attachEvent&&c.attachEvent("on"+z,q);if(j.add&&(j.add.call(c,f),!f.handler.guid))f.handler.guid=k.guid;o.push(f);d.event.global[z]=!0}c=null}}},global:{},remove:function(c,a,k,e){if(!(c.nodeType===3||c.nodeType===8)){k===!1&&(k=l);var h,f,g=0,q,z,r,C,o,j,R=d.hasData(c)&&d._data(c),N=R&&R.events;if(R&&N){if(a&&a.type)k=a.handler,a=a.type;if(!a||typeof a==="string"&&a.charAt(0)===".")for(h in a=a||"",N)d.event.remove(c, h+a);else{for(a=a.split(" ");h=a[g++];)if(C=h,q=h.indexOf(".")<0,z=[],q||(z=h.split("."),h=z.shift(),r=RegExp("(^|\\.)"+d.map(z.slice(0).sort(),ea).join("\\.(?:.*\\.)?")+"(\\.|$)")),o=N[h])if(k){C=d.event.special[h]||{};for(f=e||0;f=0&&(h=h.slice(0,-1),g=!0);h.indexOf(".")>=0&&(f=h.split("."),h=f.shift(),f.sort());if(k&&!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=g;c.namespace=f.join(".");c.namespace_re=RegExp("(^|\\.)"+f.join("\\.(?:.*\\.)?")+"(\\.|$)");if(e||!k)c.preventDefault(),c.stopPropagation();if(k){if(!(k.nodeType===3||k.nodeType===8)){c.result=b;c.target=k;s=s?d.makeArray(s):[];s.unshift(c);f=k;e=h.indexOf(":")<0?"on"+h:"";do{g=d._data(f,"handle");c.currentTarget=f;g&&g.apply(f,s);if(e&&d.acceptData(f)&&f[e]&&f[e].apply(f,s)===!1)c.result=!1,c.preventDefault();f=f.parentNode||f.ownerDocument|| f===c.target.ownerDocument&&a}while(f&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var q,f=d.event.special[h]||{};if((!f._default||f._default.call(k.ownerDocument,c)===!1)&&!(h==="click"&&d.nodeName(k,"a"))&&d.acceptData(k)){try{if(e&&k[h])(q=k[e])&&(k[e]=null),d.event.triggered=h,k[h]()}catch(z){}q&&(k[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,s,a.handle.elem)})}},handle:function(c){var c= d.event.fix(c||a.event),s=((d._data(this,"events")||{})[c.type]||[]).slice(0),k=!c.exclusive&&!c.namespace,e=Array.prototype.slice.call(arguments,0);e[0]=c;c.currentTarget=this;for(var h=0,f=s.length;h-1?d.map(c.options,function(c){return c.selected}).join("-"):"";else if(d.nodeName(c,"select"))b=c.selectedIndex;return b},ta=function(c,a){var k=c.target,e,h;if(ga.test(k.nodeName)&&!k.readOnly&&(e=d._data(k,"_change_data"),h=ia(k),(c.type!=="focusout"||k.type!=="radio")&&d._data(k,"_change_data",h),!(e===b||h===e)))if(e!= null||h)c.type="change",c.liveFired=b,d.event.trigger(c,a,k)};d.event.special.change={filters:{focusout:ta,beforedeactivate:ta,click:function(c){var a=c.target,b=d.nodeName(a,"input")?a.type:"";(b==="radio"||b==="checkbox"||d.nodeName(a,"select"))&&ta.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")&&ta.call(this,c)},beforeactivate:function(c){c=c.target; d._data(c,"_change_data",ia(c))}},setup:function(){if(this.type==="file")return!1;for(var c in $)d.event.add(this,c+".specialChange",$[c]);return ga.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return ga.test(this.nodeName)}};$=d.event.special.change.filters;$.focus=$.beforeactivate}d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(c,a){function b(c){var k=d.event.fix(c);k.type=a;k.originalEvent={};d.event.trigger(k,null,k.target);k.isDefaultPrevented()&& c.preventDefault()}var e=0;d.event.special[a]={setup:function(){e++===0&&w.addEventListener(c,b,!0)},teardown:function(){--e===0&&w.removeEventListener(c,b,!0)}}});d.each(["bind","one"],function(c,a){d.fn[a]=function(c,e,h){var f;if(typeof c==="object"){for(var g in c)this[a](g,e,c[g],h);return this}if(arguments.length===2||e===!1)h=e,e=b;a==="one"?(f=function(c){d(this).unbind(c,f);return h.apply(this,arguments)},f.guid=h.guid||d.guid++):f=h;if(c==="unload"&&a!=="one")this.one(c,e,h);else{g=0;for(var q= this.length;g0?this.bind(a,c,d):this.trigger(a)};d.attrFn&&(d.attrFn[a]= !0)});(function(){function c(c,a,d,b,e,k){for(var e=0,h=b.length;e0){g=f;break}}f=f[c]}e[k]=g}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,f=Object.prototype.toString,g=!1,q=!0,z=/\\/g,C=/\W/;[0,0].sort(function(){q=!1;return 0});var r=function(c,a,d,b){var d=d||[],h=a=a||w;if(a.nodeType!==1&&a.nodeType!==9)return[];if(!c||typeof c!=="string")return d;var s,g,D,q,z,C=!0,R=r.isXML(a),N=[],Fa=c;do if(e.exec(""),s=e.exec(Fa))if(Fa=s[3],N.push(s[1]),s[2]){q= s[3];break}while(s);if(N.length>1&&j.exec(c))if(N.length===2&&o.relative[N[0]])g=Y(N[0]+N[1],a);else for(g=o.relative[N[0]]?[a]:r(N.shift(),a);N.length;)c=N.shift(),o.relative[c]&&(c+=N.shift()),g=Y(c,g);else if(!b&&N.length>1&&a.nodeType===9&&!R&&o.match.ID.test(N[0])&&!o.match.ID.test(N[N.length-1])&&(s=r.find(N.shift(),a,R),a=s.expr?r.filter(s.expr,s.set)[0]:s.set[0]),a){s=b?{expr:N.pop(),set:n(b)}:r.find(N.pop(),N.length===1&&(N[0]==="~"||N[0]==="+")&&a.parentNode?a.parentNode:a,R);g=s.expr?r.filter(s.expr, s.set):s.set;for(N.length>0?D=n(g):C=!1;N.length;)s=z=N.pop(),o.relative[z]?s=N.pop():z="",s==null&&(s=a),o.relative[z](D,s,R)}else D=[];D||(D=g);D||r.error(z||c);if(f.call(D)==="[object Array]")if(C)if(a&&a.nodeType===1)for(c=0;D[c]!=null;c++)D[c]&&(D[c]===!0||D[c].nodeType===1&&r.contains(a,D[c]))&&d.push(g[c]);else for(c=0;D[c]!=null;c++)D[c]&&D[c].nodeType===1&&d.push(g[c]);else d.push.apply(d,D);else n(D,d);q&&(r(q,h,d,b),r.uniqueSort(d));return d};r.uniqueSort=function(c){if(l&&(g=q,c.sort(l), g))for(var a=1;a0};r.find=function(c,a,d){var b;if(!c)return[];for(var e=0,k=o.order.length;e":function(c,a){var d,b=typeof a==="string",e=0,k=c.length;if(b&&!C.test(a))for(a=a.toLowerCase();e=0)?d||b.push(h):d&&(a[k]=!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]||r.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]&&r.error(c[0]);c[0]=h++;return c},ATTR:function(c,a,d,b,e,k){a=c[1]=c[1].replace(z,"");!k&&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,h){if(c[1]==="not")if((e.exec(c[3])||"").length>1|| /^\w/.test(c[3]))c[3]=r(c[3],null,null,a);else return c=r.filter(c[3],a,d,1^h),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!!r(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],k=o.filters[e];if(k)return k(c,d,a,b);else if(e==="contains")return(c.textContent||c.innerText||r.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],k=a[4];return d==null?e==="!=":e==="="?b===k:e==="*="?b.indexOf(k)>= 0:e==="~="?(" "+b+" ").indexOf(k)>=0:!k?b&&d!==!1:e==="!="?b!==k:e==="^="?b.indexOf(k)===0:e==="$="?b.substr(b.length-k.length)===k:e==="|="?b===k||b.substr(0,k.length+1)===k+"-":!1},POS:function(c,a,d,b){var e=o.setFilters[a[2]];if(e)return e(c,d,a,b)}}},j=o.match.POS,R=function(c,a){return"\\"+(a-0+1)},N;for(N in o.match)o.match[N]=RegExp(o.match[N].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[N]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[N].source.replace(/\\(\d+)/g,R));var n=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(w.documentElement.childNodes,0)}catch(ja){n=function(c,a){var d=0,b=a||[];if(f.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(w.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=w.createElement("div");c.appendChild(w.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})();w.querySelectorAll&&function(){var c=r,a=w.createElement("div");a.innerHTML="

";if(!(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0)){r=function(a,d,b,e){d=d||w;if(!e&&!r.isXML(d)){var k=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a); if(k&&(d.nodeType===1||d.nodeType===9))if(k[1])return n(d.getElementsByTagName(a),b);else if(k[2]&&o.find.CLASS&&d.getElementsByClassName)return n(d.getElementsByClassName(k[2]),b);if(d.nodeType===9){if(a==="body"&&d.body)return n([d.body],b);else if(k&&k[3]){var h=d.getElementById(k[3]);if(h&&h.parentNode){if(h.id===k[3])return n([h],b)}else return n([],b)}try{return n(d.querySelectorAll(a),b)}catch(s){}}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var k=d,f=(h=d.getAttribute("id"))|| "__sizzle__",g=d.parentNode,D=/^\s*[+~]/.test(a);h?f=f.replace(/'/g,"\\$&"):d.setAttribute("id",f);if(D&&g)d=d.parentNode;try{if(!D||g)return n(d.querySelectorAll("[id='"+f+"'] "+a),b)}catch(q){}finally{h||k.removeAttribute("id")}}}return c(a,d,b,e)};for(var d in c)r[d]=c[d];a=null}}();(function(){var c=w.documentElement,a=c.matchesSelector||c.mozMatchesSelector||c.webkitMatchesSelector||c.msMatchesSelector;if(a){var d=!a.call(w.createElement("div"),"div"),b=!1;try{a.call(w.documentElement,"[test!='']:sizzle")}catch(e){b= !0}r.matchesSelector=function(c,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!r.isXML(c))try{if(b||!o.match.PSEUDO.test(e)&&!/!=/.test(e)){var k=a.call(c,e);if(k||!d||c.document&&c.document.nodeType!==11)return k}}catch(h){}return r(e,null,null,[c]).length>0}}})();(function(){var c=w.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})();r.contains=w.documentElement.contains?function(c,a){return c!==a&&(c.contains?c.contains(a):!0)}:w.documentElement.compareDocumentPosition?function(c,a){return!!(c.compareDocumentPosition(a)&16)}:function(){return!1};r.isXML=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":!1};var Y=function(c,a){for(var d, b=[],e="",k=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 h=k.length;d0)for(g=f;g0:this.filter(c).length>0)},closest:function(c,a){var b=[],e,h,f=this[0];if(d.isArray(c)){var g,q={},z=1;if(f&&c.length){e=0;for(h=c.length;e-1:d(f).is(e))&&b.push({selector:g,elem:f,level:z});f=f.parentNode;z++}}return b}g=r.test(c)|| typeof c!=="string"?d(c,a||this.context):0;e=0;for(h=this.length;e-1:d.find.matchesSelector(f,c)){b.push(f);break}else if(f=f.parentNode,!f||!f.ownerDocument||f===a||f.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 f=d.map(this,a,b),g=h.call(arguments);qa.test(c)||(e=b);e&&typeof e==="string"&&(f=d.filter(e,f));f=this.length>1&&!q[c]?d.unique(f):f;if((this.length>1||va.test(e))&&U.test(c))f=f.reverse();return this.pushStack(f,c,g.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+/,N=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ja=/<([\w:]+)/,Ca=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};ua.optgroup=ua.option;ua.tbody=ua.tfoot=ua.colgroup=ua.caption=ua.thead;ua.th=ua.td;if(!d.support.htmlSerialize)ua._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||w).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"&&!Ha.test(c)&&(d.support.leadingWhitespace||!z.test(c))&&!ua[(ja.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(N,"<$1>");try{for(var a=0,e=this.length;a1&&f0?this.clone(!0):this).get();d(b[h])[a](g);e=e.concat(g)}return this.pushStack(e,c,b.selector)}}});d.extend({clone:function(c,a,b){var e=c.cloneNode(!0),h,f,g;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!d.isXMLDoc(c)){x(c,e);h=t(c);f=t(e);for(g=0;h[g];++g)x(h[g],f[g])}if(a&&(E(c,e),b)){h=t(c);f=t(e);for(g=0;h[g];++g)E(h[g],f[g])}return e},clean:function(c,a,b,e){a= a||w;typeof a.createElement==="undefined"&&(a=a.ownerDocument||a[0]&&a[0].ownerDocument||w);for(var h=[],f,g=0,q;(q=c[g])!=null;g++)if(typeof q==="number"&&(q+=""),q){if(typeof q==="string")if(Y.test(q)){q=q.replace(N,"<$1>");f=(ja.exec(q)||["",""])[1].toLowerCase();var r=ua[f]||ua._default,o=r[0],C=a.createElement("div");for(C.innerHTML=r[1]+q+r[2];o--;)C=C.lastChild;if(!d.support.tbody){o=Ca.test(q);r=f==="table"&&!o?C.firstChild&&C.firstChild.childNodes:r[1]===""&&!o?C.childNodes:[]; for(f=r.length-1;f>=0;--f)d.nodeName(r[f],"tbody")&&!r[f].childNodes.length&&r[f].parentNode.removeChild(r[f])}!d.support.leadingWhitespace&&z.test(q)&&C.insertBefore(a.createTextNode(z.exec(q)[0]),C.firstChild);q=C.childNodes}else q=a.createTextNode(q);var R;if(!d.support.appendChecked)if(q[0]&&typeof(R=q.length)==="number")for(f=0;f=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=za.test(e)?e.replace(za,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?Ka(c,"margin-right","marginRight"):c.style.marginRight});return b}}});w.defaultView&&w.defaultView.getComputedStyle&&(bb=function(c,a){var e,h,a=a.replace(ya,"-$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});w.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});Ka=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={},Da,Ea;try{Da=W.href}catch(Gb){Da=w.createElement("a"),Da.href="",Da=Da.href}Ea=eb.exec(Da.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 f=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 g=this;d.ajax({url:c,type:h,dataType:"html",data:a,complete:function(a,c,b){b=a.responseText;a.isResolved()&&(a.done(function(a){b=a}),g.html(f?d("
").append(b.replace(yb,"")).find(f): b));e&&g.each(e,[b,c,a])}});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(a,b){var e=d(this).val();return e==null?null:d.isArray(e)?d.map(e,function(a){return{name:b.name,value:a.replace(cb,"\r\n")}}):{name:b.name,value:e.replace(cb,"\r\n")}}).get()}}); d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}});d.each(["get","post"],function(a,e){d[e]=function(a,c,h,f){d.isFunction(c)&&(f=f||h,h=c,c=b);return d.ajax({type:e,url:a,data:c,success:h,dataType:f})}});d.extend({getScript:function(a,e){return d.get(a,b,e,"script")},getJSON:function(a,b,e){return d.get(a,b,e,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings, b));for(var e in{context:1,url:1})e in b?a[e]=b[e]:e in d.ajaxSettings&&(a[e]=d.ajaxSettings[e]);return a},ajaxSettings:{url:Da,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|widget):$/.test(Ea[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(Ta),ajaxTransport:y(gb),ajax:function(a,e){function h(a,c,e,k){if(Y!==2){Y=2;l&&clearTimeout(l);ja=b;N=k||"";J.readyState=a?4:0;var s,R,j;if(e){var k=f,n=J,V=k.contents,p=k.dataTypes,Ca=k.responseFields,x,u,t,Ha;for(u in Ca)u in e&&(n[Ca[u]]=e[u]);for(;p[0]==="*";)p.shift(),x===b&&(x=k.mimeType||n.getResponseHeader("content-type"));if(x)for(u in V)if(V[u]&&V[u].test(x)){p.unshift(u); break}if(p[0]in e)t=p[0];else{for(u in e){if(!p[0]||k.converters[u+" "+p[0]]){t=u;break}Ha||(Ha=u)}t=t||Ha}t?(t!==p[0]&&p.unshift(t),e=e[t]):e=void 0}else e=b;if(a>=200&&a<300||a===304){if(f.ifModified){if(x=J.getResponseHeader("Last-Modified"))d.lastModified[C]=x;if(x=J.getResponseHeader("Etag"))d.etag[C]=x}if(a===304)c="notmodified",s=!0;else try{x=f;x.dataFilter&&(e=x.dataFilter(e,x.dataType));var v=x.dataTypes;u={};var ga,Ja,H=v.length,Ia,y=v[0],Aa,w,ya,F,za;for(ga=1;ga0&&(l=setTimeout(function(){J.abort("timeout")},f.timeout));try{Y=1,ja.send(R,h)}catch(x){status< 2?h(-1,x):d.error(x)}}else h(-1,"No Transport");return J},param:function(a,e){var h=[],f=function(a,c){c=d.isFunction(c)?c():c;h[h.length]=encodeURIComponent(a)+"="+encodeURIComponent(c)};if(e===b)e=d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)O(g,a[g],e,f);return h.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,f=c.jsonpCallback=d.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],q=c.url,r=c.data,z="$1"+f+"$2";c.jsonp!==!1&&(q=q.replace(Sa,z),c.url===q&&(b&&(r=r.replace(Sa,z)),c.data===r&&(q+=(/\?/.test(q)?"&":"?")+c.jsonp+ "="+f)));c.url=q;c.data=r;a[f]=function(a){h=[a]};e.always(function(){a[f]=g;if(h&&d.isFunction(g))a[f](h[0])});c.converters["script json"]=function(){h||d.error(f+" 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(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){if(a.cache=== b)a.cache=!1;if(a.crossDomain)a.type="GET",a.global=!1});d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=w.head||w.getElementsByTagName("head")[0]||w.documentElement;return{send:function(h,f){d=w.createElement("script");d.async="async";if(a.scriptCharset)d.charset=a.scriptCharset;d.src=a.url;d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||f(200,"success")}; e.insertBefore(d,e.firstChild)},abort:function(){if(d)d.onload(0,1)}}}});var Xa=a.ActiveXObject?function(){for(var a in La)La[a](0,1)}:!1,Cb=0,La;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, f){var g=c.xhr(),q,r;c.username?g.open(c.type,c.url,c.async,c.username,c.password):g.open(c.type,c.url,c.async);if(c.xhrFields)for(r in c.xhrFields)g[r]=c.xhrFields[r];c.mimeType&&g.overrideMimeType&&g.overrideMimeType(c.mimeType);!c.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");try{for(r in h)g.setRequestHeader(r,h[r])}catch(z){}g.send(c.hasContent&&c.data||null);e=function(a,h){var k,r,z,o,C;try{if(e&&(h||g.readyState===4)){e=b;if(q)g.onreadystatechange=d.noop,Xa&& delete La[q];if(h)g.readyState!==4&&g.abort();else{k=g.status;z=g.getAllResponseHeaders();o={};if((C=g.responseXML)&&C.documentElement)o.xml=C;o.text=g.responseText;try{r=g.statusText}catch(R){r=""}!k&&c.isLocal&&!c.crossDomain?k=o.text?200:404:k===1223&&(k=204)}}}catch(j){h||f(-1,j)}o&&f(k,r,o,z)};!c.async||g.readyState===4?e():(q=++Cb,Xa&&(La||(La={},d(a).unload(Xa)),La[q]=e),g.onreadystatechange=e)},abort:function(){e&&e(0,1)}}}});var Ua={},xa,Na,Db=/^(?:toggle|show|hide)$/,Eb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i, Ma,$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(a,b,e){if(a||a===0)return this.animate(ba("show",3),a,b,e);else{for(var e=0,h=this.length;e=f.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();f.animatedProperties[this.prop]=!0;for(g in f.animatedProperties)f.animatedProperties[g]!==!0&&(e=!1);if(e){f.overflow!=null&&!d.support.shrinkWrapBlocks&&d.each(["", "X","Y"],function(a,c){h.style["overflow"+c]=f.overflow[a]});f.hide&&d(h).hide();if(f.hide||f.show)for(var q in f.animatedProperties)d.style(h,q,f.orig[q]);f.complete.call(h)}return!1}else f.duration==Infinity?this.now=b:(a=b-this.startTime,this.state=a/f.duration,this.pos=d.easing[f.animatedProperties[this.prop]](this.state,a,0,1,f.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=f.position(),h=o.top,r=o.left):(h=parseFloat(q)||0,r=parseFloat(r)||0);d.isFunction(b)&&(b=b.call(a,e,g));if(b.top!=null)z.top=b.top-g.top+h;if(b.left!=null)z.left=b.left-g.left+r;"using"in b?b.using.call(a,z):f.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||w.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 f,g;if(e===b){f=this[0];if(!f)return null;return(g=ra(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[h]||g.document.body[h]:f[h]}return this.each(function(){(g=ra(this))?g.scrollTo(!a?e:d(g).scrollLeft(),a?e:d(g).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 f=c.document.documentElement["client"+e];return c.document.compatMode==="CSS1Compat"&&f||c.document.body["client"+e]||f}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),f=parseFloat(c),d.isNaN(f)?c:f):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"); 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 l(a){a=a.srcElement;if(a.firstChild)a.firstChild.style.width=a.clientWidth+"px",a.firstChild.style.height=a.clientHeight+"px"}function n(){return[[1,0,0],[0,1,0],[0,0,1]]}function v(a,b){for(var d=n(),e=0;e<3;e++)for(var f=0;f<3;f++){for(var j=0,l=0;l<3;l++)j+=a[e][l]*b[l][f];d[e][f]=j}return d}function p(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 G(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 E(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 x(a){if(a in na)return na[a];var b,d=1,a=String(a);if(a.charAt(0)=="#")b=a;else if(/^rgb/.test(a)){d=G(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+=la[M(e,0,255)];d=+d[3]}else if(/^hsl/.test(a)){f=d=G(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,n=2*f-j;e=E(n,j,b+1/3);f=E(n,j,b);b=E(n,j,b-1/3)}b="#"+ la[Math.floor(e*255)]+la[Math.floor(f*255)]+la[Math.floor(b*255)];d=d[3]}else b=fa[a]||a;return na[a]={color:b,alpha:d}}function t(a){this.m_=n();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 H(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 X(a,b){var d=x(a.strokeStyle),e=d.color,d=d.alpha*a.globalAlpha,f=a.lineScale_*a.lineWidth;f<1&&(d*=f);b.push("')}function I(a,b,d,e){var f=a.fillStyle,j=a.arcScaleX_,n=a.arcScaleY_,l=e.x-d.x,p=e.y-d.y;if(f instanceof K){var t=0,e={x:0,y:0},v=0,H=1;if(f.type_=="gradient"){var t=f.x1_/j,d=f.y1_/n,y=S(a,f.x0_/j,f.y0_/n),t=S(a,t,d),t=Math.atan2(t.x-y.x,t.y-y.y)*180/Math.PI;t<0&&(t+=360);t<1.0E-6&&(t=0)}else y=S(a,f.x0_,f.y0_),e={x:(y.x-d.x)/l,y:(y.y-d.y)/ p},l/=j*Q,p/=n*Q,H=aa.max(l,p),v=2*f.r0_/H,H=2*f.r1_/H-v;j=f.colors_;j.sort(function(a,b){return a.offset-b.offset});for(var n=j.length,y=j[0].color,d=j[n-1].color,l=j[0].alpha*a.globalAlpha,a=j[n-1].alpha*a.globalAlpha,p=[],w=0;w')}else f instanceof O?l&&p&&b.push("'):(f=x(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_= w(ra(b[0][0]*b[1][1]-b[0][1]*b[1][0]))}function K(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 aa=Math,P=aa.round,ba=aa.sin,ka=aa.cos,ra=aa.abs,w=aa.sqrt,Q=10,W=Q/2;navigator.userAgent.match(/MSIE ([\d.]+)?/);var d=Array.prototype.slice;f(document);var da={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",H.join(""))};B.stroke=function(a){for(var b={x:null,y:null},d={x:null,y:null},e=0;ed.x)d.x=n.x;if(b.y==null||n.yd.y)d.y=n.y}}f.push(' ">');a? I(this,f,b,d):X(this,f);f.push("");this.element_.insertAdjacentHTML("beforeEnd",f.join(""))}};B.fill=function(){this.stroke(!0)};B.closePath=function(){this.currentPath_.push({type:"close"})};B.save=function(){var a={};p(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=v(n(),this.m_)};B.restore=function(){if(this.aStack_.length)p(this.aStack_.pop(),this),this.m_=this.mStack_.pop()};B.translate=function(a,b){y(this,v([[1,0,0],[0,1,0],[a,b,1]],this.m_),!1)};B.rotate=function(a){var b= ka(a),a=ba(a);y(this,v([[b,a,0],[-a,b,0],[0,0,1]],this.m_),!1)};B.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)};B.transform=function(a,b,d,e,f,j){y(this,v([[a,b,0],[d,e,0],[f,j,1]],this.m_),!0)};B.setTransform=function(a,b,d,e,f,j){y(this,[[a,b,0],[d,e,0],[f,j,1]],!0)};B.drawText_=function(a,b,d,f,j){var n=this.m_,f=0,l=1E3,p={x:0,y:0},x=[],t;t=this.font;if(sa[t])t=sa[t];else{var v=document.createElement("div").style;try{v.font=t}catch(H){}t= sa[t]={style:v.fontStyle||oa.style,variant:v.fontVariant||oa.variant,weight:v.fontWeight||oa.weight,size:v.fontSize||oa.size,family:v.fontFamily||oa.family}}var v=t,y=this.element_;t={};for(var w in v)t[w]=v[w];w=parseFloat(y.currentStyle.fontSize);y=parseFloat(v.size);t.size=typeof v.size=="number"?v.size:v.size.indexOf("px")!=-1?y:v.size.indexOf("em")!=-1?w*y:v.size.indexOf("%")!=-1?w/100*y:v.size.indexOf("pt")!=-1?y/0.75:w;t.size*=0.981;w=t.style+" "+t.variant+" "+t.weight+" "+t.size+"px "+t.family; y=this.element_.currentStyle;v=this.textAlign.toLowerCase();switch(v){case "left":case "center":case "right":break;case "end":v=y.direction=="ltr"?"right":"left";break;case "start":v=y.direction=="rtl"?"right":"left";break;default:v="left"}switch(this.textBaseline){case "hanging":case "top":p.y=t.size/1.75;break;case "middle":break;default:case null:case "alphabetic":case "ideographic":case "bottom":p.y=-t.size/2.25}switch(v){case "right":f=1E3;l=0.05;break;case "center":f=l=500}b=S(this,b+p.x,d+ p.y);x.push('');j?X(this,x):I(this,x,{x:-f,y:0},{x:l,y:t.size});j=n[0][0].toFixed(3)+","+n[1][0].toFixed(3)+","+n[0][1].toFixed(3)+","+n[1][1].toFixed(3)+",0,0";b=P(b.x/Q)+","+P(b.y/Q);x.push('','','');this.element_.insertAdjacentHTML("beforeEnd",x.join(""))};B.fillText=function(a,b,d,e){this.drawText_(a,b,d,e,!1)};B.strokeText=function(a,b,d,e){this.drawText_(a,b,d,e,!0)};B.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}};B.clip=function(){};B.arcTo=function(){};B.createPattern=function(a,b){return new O(a,b)};K.prototype.addColorStop=function(a,b){b=x(b);this.colors_.push({offset:a,color:b.color,alpha:b.alpha})};B=T.prototype=Error();B.INDEX_SIZE_ERR=1;B.DOMSTRING_SIZE_ERR=2;B.HIERARCHY_REQUEST_ERR=3;B.WRONG_DOCUMENT_ERR=4;B.INVALID_CHARACTER_ERR= 5;B.NO_DATA_ALLOWED_ERR=6;B.NO_MODIFICATION_ALLOWED_ERR=7;B.NOT_FOUND_ERR=8;B.NOT_SUPPORTED_ERR=9;B.INUSE_ATTRIBUTE_ERR=10;B.INVALID_STATE_ERR=11;B.SYNTAX_ERR=12;B.INVALID_MODIFICATION_ERR=13;B.NAMESPACE_ERR=14;B.INVALID_ACCESS_ERR=15;B.VALIDATION_ERR=16;B.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=da;CanvasRenderingContext2D=t;CanvasGradient=K;CanvasPattern=O;DOMException=T}();(function(a){a.color={};a.color.make=function(b,f,j,l){var n={};n.r=b||0;n.g=f||0;n.b=j||0;n.a=l!=null?l:1;n.add=function(a,b){for(var e=0;e=1?"rgb("+[n.r,n.g,n.b].join(",")+")":"rgba("+[n.r,n.g,n.b,n.a].join(",")+")"};n.normalize=function(){function a(b,e,f){return ef?f:e}n.r=a(0,parseInt(n.r),255);n.g=a(0,parseInt(n.g), 255);n.b=a(0,parseInt(n.b),255);n.a=a(0,n.a,1);return n};n.clone=function(){return a.color.make(n.r,n.b,n.g,n.a)};return n.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,l,n){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,n,o,l,t,J,p,x,u;a.each(M(),function(a,b){b.datamin=d;b.datamax=e;b.used=!1});for(g=0;g0&&t[n-J]!=null&&t[n-J]!=t[n]&&t[n-J+1]!=t[n+1]){for(o=0;oy&&(y=p)),x.y&&(pw&&(w=p));l.bars.show&&(j=l.bars.align=="left"?0:-l.bars.barWidth/2,l.bars.horizontal?(u+=j,w+=j+l.bars.barWidth):(n+=j,y+=j+l.bars.barWidth));b(l.xaxis,n,y);b(l.yaxis,u,w)}a.each(M(),function(a,b){if(b.datamin==d)b.datamin=null;if(b.datamax==e)b.datamax=null})}function H(d,e){var q=document.createElement("canvas");q.className=e;q.width=$;q.height=ia;d||a(q).css({position:"absolute", left:0,top:0});a(q).appendTo(b);q.getContext||(q=window.G_vmlCanvasManager.initElement(q));q.getContext("2d").save();return q}function X(){$=b.width();ia=b.height();if($<=0||ia<=0)throw"Invalid dimensions for plot, width = "+$+", height = "+ia;}function I(a){if(a.width!=$)a.width=$;if(a.height!=ia)a.height=ia;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=ta/Math.abs(f(a.max)- f(a.min)),e=Math.min(f(a.max),f(a.min))):(d=a.scale=pa/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,n=o.grid.labelMargin,l=b.direction=="x"?ea:ha,p=a.grep(l,function(a){return a&&a.options.position==f&&a.reserveSpace});a.inArray(b,p)==p.length- 1&&(j=0);if(g==null)var g=a.grep(l,function(a){return a&&a.reserveSpace}),t=a.inArray(b,g)==0,g=t?"full":5;isNaN(+g)||(n+=+g);b.direction=="x"?(e+=n,f=="bottom"?(F.bottom+=e+j,b.box={top:ia-F.bottom,height:e}):(b.box={top:F.top+j,height:e},F.top+=e+j)):(d+=n,f=="left"?(b.box={left:F.left+j,width:d},F.left+=d+j):(F.right+=d+j,b.box={left:$-F.right,width:d}));b.position=f;b.tickLength=g;b.box.padding=n;b.innermost=t}function K(){var b=o.grid.minBorderMargin,d={x:0,y:0},e;if(b==null)for(e=b=0;e=0&&(e=0)),d.max==null&&(f+=h*g,f>0&&b.datamax!=null&&b.datamax<=0&&(f=0)))}b.min=e;b.max=f});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,f=[];e==null||typeof e=="number"&&e>0?f=d.tickGenerator(d):e&&(f=a.isFunction(e)?e({min:d.min,max:d.max}):e);var h;d.ticks=[];for(e=0;e1&&(g=q[1])):h=+q;g==null&&(g=d.tickFormatter(h,d));isNaN(h)||d.ticks.push({v:h,label:g})}f=d.ticks;if(d.options.autoscaleMargin&&f.length>0){if(d.options.min== null)d.min=Math.min(d.min,f[0].v);if(d.options.max==null&&f.length>1)d.max=Math.max(d.max,f[f.length-1].v)}d.font=a.extend({},j,d.options.font);f=d.options;e=d.ticks||[];h=f.labelWidth||0;g=f.labelHeight||0;q=d.font;u.save();u.font=q.style+" "+q.variant+" "+q.weight+" "+q.size+"px '"+q.family+"'";for(var r=0;r|\r\n|\r/g,"\n").split("\n"),o=0;o=0;--d)y(g[d]);K();a.each(g,function(a,b){b.direction=="x"?(b.box.left=F.left-b.labelWidth/2,b.box.width=$-F.left-F.right+b.labelWidth):(b.box.top=F.top-b.labelHeight/ 2,b.box.height=ia-F.bottom-F.top+b.labelHeight)})}ta=$-F.left-F.right;pa=ia-F.bottom-F.top;a.each(e,function(a,b){S(b)});da()}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"?$:ia)),g,j,n,l;if(d.mode=="time"){var o={second:1E3,minute:6E4,hour:36E5,day:864E5,month:2592E6,year:525949.2*6E4};l=[[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]*o[d.minTickSize[1]]);for(j=0;j=g)break;g=l[j][0];n=l[j][1];n=="year"&&(j=Math.pow(10,Math.floor(Math.log(f/o.year)/Math.LN10)),l=f/o.year/j,g=l<1.5?1:l<3?2:l< 7.5?5:10,g*=j);b.tickSize=d.tickSize||[g,n];j=function(a){var b=[],d=a.tickSize[0],f=a.tickSize[1],h=new Date(a.min),g=d*o[f];f=="second"&&h.setUTCSeconds(e(h.getUTCSeconds(),d));f=="minute"&&h.setUTCMinutes(e(h.getUTCMinutes(),d));f=="hour"&&h.setUTCHours(e(h.getUTCHours(),d));f=="month"&&h.setUTCMonth(e(h.getUTCMonth(),d));f=="year"&&h.setUTCFullYear(e(h.getUTCFullYear(),d));h.setUTCMilliseconds(0);g>=o.minute&&h.setUTCSeconds(0);g>=o.hour&&h.setUTCMinutes(0);g>=o.day&&h.setUTCHours(0);g>=o.day* 4&&h.setUTCDate(1);g>=o.year&&h.setUTCMonth(0);var q=0,j=Number.NaN,n;do if(n=j,j=h.getTime(),b.push(j),f=="month")if(d<1){h.setUTCDate(1);var r=h.getTime();h.setUTCMonth(h.getUTCMonth()+1);var l=h.getTime();h.setTime(j+q*o.hour+(l-r)*d);q=h.getUTCHours();h.setUTCHours(0)}else h.setUTCMonth(h.getUTCMonth()+d);else f=="year"?h.setUTCFullYear(h.getUTCFullYear()+d):h.setTime(j+g);while(jn&&(p=n);j=Math.pow(10,-p);l=f/j;if(l<1.5)g=1;else if(l<3){if(g=2,l>2.25&&(n==null||p+1<=n))g=2.5,++p}else g=l<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((l[1]-l[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 aa(){u.clearRect(0,0,$,ia);var a=o.grid;if(a.show&&a.backgroundColor)u.save(),u.translate(F.left, F.top),u.fillStyle=V(o.grid.backgroundColor,pa,0,"rgba(255, 255, 255, 0)"),u.fillRect(0,0,ta,pa),u.restore();a.show&&!a.aboveData&&(ba(),ka());for(var b=0;bf&&(g=e,e=f,f=g);return{from:e,to:f,axis:d}}function ba(){var b;u.save();u.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?(u.beginPath(),u.strokeStyle=e.color||o.grid.markingsColor,u.lineWidth=e.lineWidth||o.grid.markingsLineWidth,u.moveTo(f.from,g.from),u.lineTo(f.to,g.to),u.stroke()): (u.fillStyle=e.color||o.grid.markingsColor,u.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&&(x==g.min||x==g.max)||(g.direction=="x"?(n=g.p2c(x),t=j=="full"?-pa:j,g.position=="top"&&(t=-t)):(l=g.p2c(x),p=j=="full"?-ta:j,g.position=="left"&&(p=-p)),u.lineWidth==1&&(g.direction=="x"?n=Math.floor(n)+0.5:l=Math.floor(l)+0.5),u.moveTo(n, l),u.lineTo(n+p,l+t))}u.stroke()}}if(d)u.lineWidth=d,u.strokeStyle=o.grid.borderColor,u.strokeRect(-d/2,-d/2,ta+d,pa+d);u.restore()}function ka(){u.save();a.each(M(),function(b,d){if(d.show&&d.ticks.length!=0){var e=d.box,f=d.font;u.fillStyle=d.options.color;u.font=f.style+" "+f.variant+" "+f.weight+" "+f.size+"px '"+f.family+"'";u.textAlign="start";u.textBaseline="middle";for(f=0;fd.max))for(var j,n,l=0,o,p=0;p=p&&o>h.max){if(p>h.max)continue;l=(h.max-o)/(p-o)*(r-l)+l;o=h.max}else if(p>=o&&p>h.max){if(o>h.max)continue;r=(h.max-o)/(p-o)*(r-l)+l;p=h.max}if(l<=r&&l=r&&l>f.max){if(r> f.max)continue;o=(f.max-l)/(r-l)*(p-o)+o;l=f.max}else if(r>=l&&r>f.max){if(l>f.max)continue;p=(f.max-l)/(r-l)*(p-o)+o;r=f.max}(l!=j||o!=n)&&u.moveTo(f.p2c(l)+d,h.p2c(o)+e);j=r;n=p;u.lineTo(f.p2c(r)+d,h.p2c(p)+e)}}u.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,n=0,l=0;;){if(a>0&&g>f.length+a)break;g+=a;var o=f[g-a],r=f[g-a+q],p=f[g],t=f[g+q];if(j){if(a>0&&o!=null&&p==null){l=g;a=-a;q=2;continue}if(a<0&&g==n+a){u.fill();j=!1;a=-a;q=1;g= n=l+a;continue}}if(!(o==null||p==null)){if(o<=p&&o=p&&o>b.max){if(p>b.max)continue;r=(b.max-o)/(p-o)*(t-r)+r;o=b.max}else if(p>=o&&p>b.max){if(o>b.max)continue;t=(b.max-o)/(p-o)*(t-r)+r;p=b.max}j||(u.beginPath(),u.moveTo(b.p2c(o),d.p2c(h)),j=!0);if(r>=d.max&&t>=d.max)u.lineTo(b.p2c(o),d.p2c(d.max)),u.lineTo(b.p2c(p),d.p2c(d.max));else if(r<=d.min&&t<=d.min)u.lineTo(b.p2c(o), d.p2c(d.min)),u.lineTo(b.p2c(p),d.p2c(d.min));else{var x=o,z=p;if(r<=t&&r=d.min)o=(d.min-r)/(t-r)*(p-o)+o,r=d.min;else if(t<=r&&t=d.min)p=(d.min-r)/(t-r)*(p-o)+o,t=d.min;if(r>=t&&r>d.max&&t<=d.max)o=(d.max-r)/(t-r)*(p-o)+o,r=d.max;else if(t>=r&&t>d.max&&r<=d.max)p=(d.max-r)/(t-r)*(p-o)+o,t=d.max;o!=x&&u.lineTo(b.p2c(x),d.p2c(r));u.lineTo(b.p2c(o),d.p2c(r));u.lineTo(b.p2c(p),d.p2c(t));p!=z&&(u.lineTo(b.p2c(p),d.p2c(t)),u.lineTo(b.p2c(z),d.p2c(t)))}}}}u.save();u.translate(F.left, F.top);u.lineJoin="round";var f=a.lines.lineWidth,g=a.shadowSize;if(f>0&&g>0){u.lineWidth=g;u.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);u.lineWidth=g/2;b(a.datapoints,Math.sin(j)*(f/2+g/4),Math.cos(j)*(f/2+g/4),a.xaxis,a.yaxis)}u.lineWidth=f;u.strokeStyle=a.color;if(g=d(a.lines,a.color,0,pa))u.fillStyle=g,e(a.datapoints,a.xaxis,a.yaxis);f>0&&b(a.datapoints,0,0,a.xaxis,a.yaxis);u.restore()}function w(a){function b(a,d, e,f,h,g,j,o){for(var q=a.points,a=a.pointsize,n=0;ng.max||rj.max)){u.beginPath();l=g.p2c(l);r=j.p2c(r)+f;o=="circle"?u.arc(l,r,d,0,h?Math.PI:Math.PI*2,!1):o(u,l,r,d,h);u.closePath();if(e)u.fillStyle=e,u.fill();u.stroke()}}}u.save();u.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,u.lineWidth=f,u.strokeStyle="rgba(0,0,0,0.1)",b(a.datapoints,g,null,f+f/2,!0,a.xaxis, a.yaxis,j),u.strokeStyle="rgba(0,0,0,0.2)",b(a.datapoints,g,null,f/2,!0,a.xaxis,a.yaxis,j);u.lineWidth=e;u.strokeStyle=a.color;b(a.datapoints,g,d(a.points,a.color),0,!1,a.xaxis,a.yaxis,j);u.restore()}function Q(a,b,d,e,f,g,j,o,n,l,p,t){var x,v,u,H;p?(H=v=u=!0,x=!1,p=d,d=b+e,f=b+f,ao.max||dn.max)){if(po.max)a=o.max,v=!1;if(fn.max)d= n.max,u=!1;p=o.p2c(p);f=n.p2c(f);a=o.p2c(a);d=n.p2c(d);if(j)l.beginPath(),l.moveTo(p,f),l.lineTo(p,d),l.lineTo(a,d),l.lineTo(a,f),l.fillStyle=j(f,d),l.fill();if(t>0&&(x||v||u||H))l.beginPath(),l.moveTo(p,f+g),x?l.lineTo(p,d+g):l.moveTo(p,d+g),u?l.lineTo(a,d+g):l.moveTo(a,d+g),v?l.lineTo(a,f+g):l.moveTo(a,f+g),H?l.lineTo(p,f+g):l.moveTo(p,f+g),l.stroke()}}function W(a){u.save();u.translate(F.left,F.top);u.lineWidth=a.bars.lineWidth;u.strokeStyle=a.color;var b=a.bars.align=="left"?0:-a.bars.barWidth/ 2;(function(b,d,e,f,g,j,o){for(var n=b.points,b=b.pointsize,l=0;l"),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 la(a){o.grid.hoverable&&fa("plothover",a,function(a){return a.hoverable!=!1})}function B(a){o.grid.hoverable&&fa("plothover",a,function(){return!1})} function ca(a){fa("plotclick",a,function(a){return a.clickable!=!1})}function fa(a,d,e){var g=ma.offset(),j=d.pageX-g.left-F.left,l=d.pageY-g.top-F.top,n=E({left:j,top:l});n.pageX=d.pageX;n.pageY=d.pageY;var d=o.grid.mouseActiveRadius,p=d*d+1,t=null,x,v;for(x=L.length-1;x>=0;--x)if(e(L[x])){var u=L[x],H=u.xaxis,y=u.yaxis,w=u.datapoints.points,C=u.datapoints.pointsize,I=H.c2p(j),B=y.c2p(l),X=d/H.scale,S=d/y.scale;if(H.options.inverseTransform)X=Number.MAX_VALUE;if(y.options.inverseTransform)S=Number.MAX_VALUE; if(u.lines.show||u.points.show)for(v=0;vX||G-I<-X||K-B>S||K-B<-S))G=Math.abs(H.p2c(G)-j),K=Math.abs(y.p2c(K)-l),K=G*G+K*K,K=Math.min(y,G)&&B>=K+H&&B<=K+u:I>=G+H&&I<=G+u&&B>=Math.min(y,K)&&B<=Math.max(y,K)))t=[x,v/C]}}t?(x=t[0],v=t[1],C=L[x].datapoints.pointsize, e={datapoint:L[x].datapoints.points.slice(v*C,(v+1)*C),dataIndex:v,series:L[x],seriesIndex:x}):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 l=e.points.radius+e.points.lineWidth/2;Z.lineWidth=l;Z.strokeStyle=a.color.parse(e.color).scale("a",0.5).toString();l*=1.5;d=g.p2c(d);f=j.p2c(f);Z.beginPath();e.points.symbol=="circle"?Z.arc(d, f,l,0,2*Math.PI,!1):e.points.symbol(Z,d,f,l,!1);Z.closePath();Z.stroke()}}Z.restore();v(qa.drawOverlay,[Z])}function sa(a,b,d){typeof a=="number"&&(a=L[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)va.push({series:a,point:b,auto:d}),na();else if(!d)va[e].auto=!1}function Ga(a,b){a==null&&b==null&&(va=[],na());typeof a=="number"&&(a=L[a]);typeof b=="number"&&(b=a.data[b]);var d=g(a,b);d!=-1&&(va.splice(d,1),na())}function g(a,b){for(var d= 0;d12?M-=12:M==0&&(M=12));for(var x=0;x2&&(x?j.format[2].x:j.format[2].y),b=X&&b.lines.steps;E=!0;for(var S=x?1:0,y=x?0:1,K=0,O=0,T;;){if(K>=n.length)break;T=p.length;if(n[K]==null){for(m= 0;m=l.length){if(!X)for(m=0;mx){if(X&&K>0&&n[K-a]!=null){E=M+(n[K-a+y]-M)*(x-G)/(n[K-a+S]-G);p.push(x);p.push(E+t);for(m=2;m0&&l[O-v]!=null&&(H=t+(l[O-v+y]-t)*(G-x)/ (l[O-v+S]-x));p[T+y]+=H;K+=a}E=!1;T!=p.length&&I&&(p[T+2]+=H)}if(b&&T!=p.length&&T>0&&p[T]!=null&&p[T]!=p[T-a]&&p[T+1]!=p[T-a+1]){for(m=0;mp?p:n;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==E.first?0:b.width();if(f.selection.mode=="x")a.y=a==E.first?0:b.height()}function v(a){if(a.pageX!=null)n(E.second,a),M()?(E.show=!0,b.triggerRedrawOverlay()): p(!0)}function p(a){if(E.show)E.show=!1,b.triggerRedrawOverlay(),a||b.getPlaceholder().trigger("plotunselected",[])}function G(a,e){var f,j,l,n,p=b.getAxes(),t;for(t in p)if(f=p[t],f.direction==e&&(n=e+f.n+"axis",!a[n]&&f.n==1&&(n=e+"axis"),a[n])){j=a[n].from;l=a[n].to;break}a[n]||(f=e=="x"?b.getXAxes()[0]:b.getYAxes()[0],j=a[e+"1"],l=a[e+"2"]);j!=null&&l!=null&&j>l&&(n=j,j=l,l=n);return{from:j,to:l,axis:f}}function M(){return Math.abs(E.second.x-E.first.x)>=5&&Math.abs(E.second.y-E.first.y)>=5}var E= {first:{x:-1,y:-1},second:{x:-1,y:-1},show:!1,active:!1},x={},t=null;b.clearSelection=p;b.setSelection=function(a,e){var f,j=b.getOptions();j.selection.mode=="y"?(E.first.x=0,E.second.x=b.width()):(f=G(a,"x"),E.first.x=f.axis.p2c(f.from),E.second.x=f.axis.p2c(f.to));j.selection.mode=="x"?(E.first.y=0,E.second.y=b.height()):(f=G(a,"y"),E.first.y=f.axis.p2c(f.from),E.second.y=f.axis.p2c(f.to));E.show=!0;b.triggerRedrawOverlay();!e&&M()&&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(E.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(E.first.x,E.second.x),j=Math.min(E.first.y,E.second.y),l=Math.abs(E.second.x-E.first.x),n=Math.abs(E.second.y-E.first.y);e.fillRect(f,j,l,n);e.strokeRect(f,j,l,n);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 InvalidBinaryFile(a){this.message=a;this.name="Invalid BinaryFile"}InvalidBinaryFile.prototype.toString=function(){return this.name+': "'+this.message+'"'}; function BinaryFile(a,b,e){var f=b||0,j=0,l=Math.pow(2,-28),n=Math.pow(2,-52),v=Math.pow(2,-20);this.getRawData=function(){return a};if(typeof a=="string")j=e||a.length,this.getByteAt=function(b){return a.charCodeAt(b+f)&255};else if(typeof a=="unknown")j=e||IEBinary_getLength(a),this.getByteAt=function(b){return IEBinary_getByteAt(a,b+f)};else throw new InvalidBinaryFile("Unsupported type "+typeof a);this.getLength=function(){return j};this.getSByteAt=function(a){a=this.getByteAt(a);return a>127? a-256:a};this.getShortAt=function(a){a=(this.getByteAt(a+1)<<8)+this.getByteAt(a);a<0&&(a+=65536);return a};this.getSShortAt=function(a){a=this.getShortAt(a);return a>32767?a-65536:a};this.getLongAt=function(a){var b=this.getByteAt(a),e=this.getByteAt(a+1),f=this.getByteAt(a+2),a=(((this.getByteAt(a+3)<<8)+f<<8)+e<<8)+b;a<0&&(a+=4294967296);return a};this.getSLongAt=function(a){a=this.getLongAt(a);return a>2147483647?a-4294967296:a};this.getStringAt=function(a,b){for(var e=[],f=a,j=0;f0;f++,j++)e[j]=String.fromCharCode(this.getByteAt(f));return e.join("")};this.getDoubleAt=function(a){var b=this.getByteAt(a),e=this.getByteAt(a+1),f=this.getByteAt(a+2),j=this.getByteAt(a+3),t=this.getByteAt(a+4),v=this.getByteAt(a+5),X=this.getByteAt(a+6),a=this.getByteAt(a+7),I=((a&127)<<4)+(X>>4);if(I==0)return 0;if(I!=2047)return(a>>7==1?-1:1)*Math.pow(2,(I& 2047)-1023)*(1+(((f<<8)+e<<8)+b)*n+(((((X&15)<<8)+v<<8)+t<<8)+j)*l)};this.getFastDoubleAt=function(a){var b=this.getByteAt(a+4),e=this.getByteAt(a+5),f=this.getByteAt(a+6),a=this.getByteAt(a+7),j=((a&127)<<4)+(f>>4);if(j==0)return 0;if(j!=2047)return(a>>7==1?-1:1)*Math.pow(2,(j&2047)-1023)*(1+((((f&15)<<8)+e<<8)+b)*v)};this.getCharAt=function(a){return String.fromCharCode(this.getByteAt(a))}}document.write("