From 9b2f3a4a4dc42ac8f4529d034da5278845dd42c9 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sun, 22 Aug 2010 14:41:26 +0100 Subject: move examples to an examples subfolder --- assets/js/dependencies.js | 395 ---------------------------------------------- 1 file changed, 395 deletions(-) delete mode 100644 assets/js/dependencies.js (limited to 'assets/js') diff --git a/assets/js/dependencies.js b/assets/js/dependencies.js deleted file mode 100644 index a82f80d..0000000 --- a/assets/js/dependencies.js +++ /dev/null @@ -1,395 +0,0 @@ -// ==ClosureCompiler== -// @output_file_name default.js -// @compilation_level SIMPLE_OPTIMIZATIONS -// @code_url http://svn.mochikit.com/mochikit/trunk/MochiKit/Base.js -// @code_url http://svn.mochikit.com/mochikit/trunk/MochiKit/Async.js -// @code_url http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.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/*checkout*/javascriptrrd/v0/src/lib/binaryXHR.js?revision=1.5&content-type=text%2Fplain -// @code_url http://javascriptrrd.cvs.sourceforge.net/viewvc/*checkout*/javascriptrrd/v0/src/lib/rrdFile.js?revision=1.8&content-type=text%2Fplain -// @code_url http://flowplayer.org/tools/download/1.2.3/dateinput/dateinput.js -// @code_url http://flowplayer.org/tools/download/1.2.3/tabs/tabs.js -// @code_url http://flowplayer.org/tools/download/1.2.3/toolbox/toolbox.history.js -// ==/ClosureCompiler== -if(typeof MochiKit=="undefined")MochiKit={};if(typeof MochiKit.__export__=="undefined")MochiKit.__export__=true;if(typeof MochiKit.Base=="undefined")MochiKit.Base={};MochiKit.Base._module=function(b,f,k){b in MochiKit||(MochiKit[b]={});var p=MochiKit[b];p.NAME="MochiKit."+b;p.VERSION=f;p.__repr__=function(){return"["+this.NAME+" "+this.VERSION+"]"};p.toString=function(){return this.__repr__()};for(f=0;f=0;p--)f.unshift(k[p]);else b.push(k)}return b},extend:function(b,f,k){k||(k=0);if(f){var p=f.length;if(typeof p!="number")if(typeof MochiKit.Iter!="undefined"){f=MochiKit.Iter.list(f);p=f.length}else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");b||(b=[]);for(k=k;k>f},zrshift:function(b,f){return b>>>f},eq:function(b,f){return b==f},ne:function(b,f){return b!=f},gt:function(b,f){return b>f},ge:function(b,f){return b>=f},lt:function(b,f){return b0&&b!="false"&&b!="null"&&b!="undefined"&&b!="0":typeof b==="number"||b instanceof Number?!isNaN(b)&&b!=0:b!=null&&typeof b.length==="number"?b.length!==0:b!=null},typeMatcher:function(){for(var b={},f=0;fM)B=M}p=[];for(k=0;k=0;B--)A=[b[B].apply(this,A)];return A[0]}},bind:function(b,f){if(typeof b=="string")b=f[b];var k=b.im_func,p=b.im_preargs,A=b.im_self,B=MochiKit.Base;if(typeof b=="function"&&typeof b.apply=="undefined")b=B._wrapDumbFunction(b);if(typeof k!="function")k=b;if(typeof f!="undefined")A=f;p=typeof p=="undefined"?[]:p.slice();B.extend(p,arguments,2);var M=function(){var U=arguments, -J=arguments.callee;if(J.im_preargs.length>0)U=B.concat(J.im_preargs,U);var ja=J.im_self;ja||(ja=this);return J.im_func.apply(ja,U)};M.im_self=A;M.im_func=k;M.im_preargs=p;return M},bindLate:function(b){var f=MochiKit.Base,k=arguments;if(typeof b==="string"){k=f.extend([f.forwardCall(b)],arguments,1);return f.bind.apply(this,k)}return f.bind.apply(this,k)},bindMethods:function(b){var f=MochiKit.Base.bind;for(var k in b){var p=b[k];if(typeof p=="function")b[k]=f(p,b)}},registerComparator:function(b, -f,k,p){MochiKit.Base.comparatorRegistry.register(b,f,k,p)},_primitives:{"boolean":true,string:true,number:true},compare:function(b,f){if(b==f)return 0;var k=typeof b=="undefined"||b===null,p=typeof f=="undefined"||f===null;if(k&&p)return 0;else if(k)return-1;else if(p)return 1;k=MochiKit.Base;p=k._primitives;if(!(typeof b in p&&typeof f in p))try{return k.comparatorRegistry.match(b,f)}catch(A){if(A!=k.NotFound)throw A;}if(bf)return 1;k=k.repr;throw new TypeError(k(b)+" and "+ -k(f)+" can not be compared");},compareDateLike:function(b,f){return MochiKit.Base.compare(b.getTime(),f.getTime())},compareArrayLike:function(b,f){var k=MochiKit.Base.compare,p=b.length,A=0;if(p>f.length){A=1;p=f.length}else if(p=0;A--)b+=p[A]}else b+=p}if(k<=0)throw new TypeError("mean() requires at least one argument");return b/k},median:function(){var b=MochiKit.Base.flattenArguments(arguments);if(b.length===0)throw new TypeError("median() requires at least one argument");b.sort(compare);if(b.length%2==0){var f=b.length/2;return(b[f]+b[f-1])/2}else return b[(b.length-1)/2]},findValue:function(b,f,k,p){if(typeof p=="undefined"||p===null)p=b.length;if(typeof k=="undefined"||k===null)k=0; -var A=MochiKit.Base.compare;for(k=k;k -0)){var k=MochiKit.DOM.formContents(b);b=k[0];f=k[1]}else if(arguments.length==1){if(typeof b.length=="number"&&b.length==2)return arguments.callee(b[0],b[1]);var p=b;b=[];f=[];for(var A in p){k=p[A];if(typeof k!="function")if(MochiKit.Base.isArrayLike(k))for(var B=0;B1)b=MochiKit.Base.partial.apply(null,arguments);return this.addCallbacks(b,b)},addCallback:function(b){if(arguments.length>1)b=MochiKit.Base.partial.apply(null,arguments);return this.addCallbacks(b,null)},addErrback:function(b){if(arguments.length>1)b=MochiKit.Base.partial.apply(null,arguments);return this.addCallbacks(null,b)},addCallbacks:function(b,f){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([b,f]);this.fired>=0&&this._fire();return this},setFinalizer:function(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");if(arguments.length>1)b=MochiKit.Base.partial.apply(null,arguments);this._finalizer=b;this.fired>=0&&this._fire();return this},_fire:function(){for(var b=this.chain,f=this.fired,k=this.results[f],p=this, -A=null;b.length>0&&this.paused===0;){var B=b.shift()[f];if(B!==null)try{k=B(k);f=k instanceof Error?1:0;if(k instanceof MochiKit.Async.Deferred){A=function(U){p.paused--;p._resback(U)};this.paused++}}catch(M){f=1;M instanceof Error||(M=new MochiKit.Async.GenericError(M));k=M}}this.fired=f;this.results[f]=k;if(this.chain.length==0&&this.paused===0&&this._finalizer){this.finalized=true;this._finalizer(k)}if(A&&this.paused){k.addBoth(A);k.chained=true}}}; -MochiKit.Base.update(MochiKit.Async,{evalJSONRequest:function(b){return MochiKit.Base.evalJSON(b.responseText)},succeed:function(){var b=new MochiKit.Async.Deferred;b.callback.apply(b,arguments);return b},fail:function(){var b=new MochiKit.Async.Deferred;b.errback.apply(b,arguments);return b},getXMLHttpRequest:function(){var b=arguments.callee;if(!b.XMLHttpRequest)for(var f=[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");}],k=0;k1){var f=MochiKit.Base;if(f=f.queryString.apply(null,f.extend(null,arguments,1)))return b+"?"+f}return b},doSimpleXMLHttpRequest:function(b){var f=MochiKit.Async;b=f._buildURL.apply(f,arguments);return f.doXHR(b)},loadJSONDoc:function(b){var f= -MochiKit.Async;b=f._buildURL.apply(f,arguments);var k=f.doXHR(b,{mimeType:"text/plain",headers:[["Accept","application/json"]]});return k=k.addCallback(f.evalJSONRequest)},wait:function(b,f){var k=new MochiKit.Async.Deferred,p=MochiKit.Base.bind("callback",k,f),A=setTimeout(p,Math.floor(b*1E3));k.canceller=function(){try{clearTimeout(A)}catch(B){}};return k},callLater:function(b){var f=MochiKit.Base,k=f.partial.apply(f,f.extend(null,arguments,1));return MochiKit.Async.wait(b).addCallback(function(){return k()})}}); -MochiKit.Async.DeferredLock=function(){this.waiting=[];this.locked=false;this.id=this._nextId()}; -MochiKit.Async.DeferredLock.prototype={__class__:MochiKit.Async.DeferredLock,acquire:function(){var b=new MochiKit.Async.Deferred;if(this.locked)this.waiting.push(b);else{this.locked=true;b.callback(this)}return b},release:function(){if(!this.locked)throw TypeError("Tried to release an unlocked DeferredLock");this.locked=false;if(this.waiting.length>0){this.locked=true;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(b,f,k,p,A){MochiKit.Async.Deferred.apply(this,[A]);this.list=b;this.resultList=A=[];this.finishedCount=0;this.fireOnOneCallback=f;this.fireOnOneErrback=k;this.consumeErrors=p;k=MochiKit.Base.bind(this._cbDeferred,this);for(p=0;p)[^>]*$|^#([\w-]+)$/,Ja=/^.[^:#\[\.,]*$/,Wa=/\S/,Ea=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,$a=/^<(\w+)\s*\/?>(?:<\/\1>)?$/, -Ua=navigator.userAgent,Xa=false,Ya=[],Ba,Na=Object.prototype.toString,Pa=Object.prototype.hasOwnProperty,Va=Array.prototype.push,Ta=Array.prototype.slice,la=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,c){var e,g,j;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!c){this.context=G;this[0]=G.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((e=ua.exec(a))&&(e[1]||!c))if(e[1]){j=c?c.ownerDocument||c:G;if(g=$a.exec(a))if(d.isPlainObject(c)){a= -[G.createElement(g[1])];d.fn.attr.call(a,c,true)}else a=[j.createElement(g[1])];else{g=H([e[1]],[j]);a=(g.cacheable?g.fragment.cloneNode(true):g.fragment).childNodes}return d.merge(this,a)}else{if(g=G.getElementById(e[2])){if(g.id!==e[2])return pa.find(a);this.length=1;this[0]=g}this.context=G;this.selector=a;return this}else if(!c&&/^\w+$/.test(a)){this.selector=a;this.context=G;a=G.getElementsByTagName(a);return d.merge(this,a)}else return!c||c.jquery?(c||pa).find(a):d(c).find(a);else if(d.isFunction(a))return pa.ready(a); -if(a.selector!==f){this.selector=a.selector;this.context=a.context}return d.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return Ta.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,c,e){var g=d();d.isArray(a)?Va.apply(g,a):d.merge(g,a);g.prevObject=this;g.context=this.context;if(c==="find")g.selector=this.selector+(this.selector?" ":"")+e;else if(c)g.selector=this.selector+ -"."+c+"("+e+")";return g},each:function(a,c){return d.each(this,a,c)},ready:function(a){d.bindReady();if(d.isReady)a.call(G,d);else Ya&&Ya.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Ta.apply(this,arguments),"slice",Ta.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(c,e){return a.call(c,e,c)}))},end:function(){return this.prevObject|| -d(null)},push:Va,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},c=1,e=arguments.length,g=false,j,y,z,T;if(typeof a==="boolean"){g=a;a=arguments[1]||{};c=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(e===c){a=this;--c}for(;c
a";var j=e.getElementsByTagName("*"), -y=e.getElementsByTagName("a")[0];if(!(!j||!j.length||!y)){d.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(y.getAttribute("style")),hrefNormalized:y.getAttribute("href")==="/a",opacity:/^0.55$/.test(y.style.opacity),cssFloat:!!y.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:G.createElement("select").appendChild(G.createElement("option")).selected, -parentNode:e.removeChild(e.appendChild(G.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(G.createTextNode("window."+g+"=1;"))}catch(z){}a.insertBefore(c,a.firstChild);if(b[g]){d.support.scriptEval=true;delete b[g]}try{delete c.test}catch(T){d.support.deleteExpando=false}a.removeChild(c);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function N(){d.support.noCloneEvent= -false;e.detachEvent("onclick",N)});e.cloneNode(true).fireEvent("onclick")}e=G.createElement("div");e.innerHTML="";a=G.createDocumentFragment();a.appendChild(e.firstChild);d.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;d(function(){var N=G.createElement("div");N.style.width=N.style.paddingLeft="1px";G.body.appendChild(N);d.boxModel=d.support.boxModel=N.offsetWidth===2;G.body.removeChild(N).style.display="none"});a=function(N){var V= -G.createElement("div");N="on"+N;var ha=N in V;if(!ha){V.setAttribute(N,"return;");ha=typeof V[N]==="function"}return ha};d.support.submitBubbles=a("submit");d.support.changeBubbles=a("change");a=c=e=j=y=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var Ma="jQuery"+B(),ab=0,bb={};d.extend({cache:{},expando:Ma,noData:{embed:true, -object:true,applet:true},data:function(a,c,e){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==b?bb:a;var g=a[Ma],j=d.cache;if(!g&&typeof c==="string"&&e===f)return null;g||(g=++ab);if(typeof c==="object"){a[Ma]=g;j[g]=d.extend(true,{},c)}else if(!j[g]){a[Ma]=g;j[g]={}}a=j[g];if(e!==f)a[c]=e;return typeof c==="string"?a[c]:a}},removeData:function(a,c){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==b?bb:a;var e=a[Ma],g=d.cache,j=g[e];if(c){if(j){delete j[c];d.isEmptyObject(j)&& -d.removeData(a)}}else{if(d.support.deleteExpando)delete a[d.expando];else a.removeAttribute&&a.removeAttribute(d.expando);delete g[e]}}}});d.fn.extend({data:function(a,c){if(typeof a==="undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(c===f){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===f&&this.length)g=d.data(this[0],a);return g===f&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+ -e[1]+"!",[e[0],c]).each(function(){d.data(this,a,c)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({queue:function(a,c,e){if(a){c=(c||"fx")+"queue";var g=d.data(a,c);if(!e)return g||[];if(!g||d.isArray(e))g=d.data(a,c,d.makeArray(e));else g.push(e);return g}},dequeue:function(a,c){c=c||"fx";var e=d.queue(a,c),g=e.shift();if(g==="inprogress")g=e.shift();if(g){c==="fx"&&e.unshift("inprogress");g.call(a,function(){d.dequeue(a,c)})}}});d.fn.extend({queue:function(a, -c){if(typeof a!=="string"){c=a;a="fx"}if(c===f)return d.queue(this[0],a);return this.each(function(){var e=d.queue(this,a,c);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,c){a=d.fx?d.fx.speeds[a]||a:a;c=c||"fx";return this.queue(c,function(){var e=this;setTimeout(function(){d.dequeue(e,c)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,n=/\s+/,u=/\r/g,E=/href|src|style/,K=/(button|input)/i, -C=/(button|input|object|select|textarea)/i,ia=/^(a|area)$/i,X=/radio|checkbox/;d.fn.extend({attr:function(a,c){return A(this,a,c,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(V){var ha=d(this);ha.addClass(a.call(this,V,ha.attr("class")))});if(a&&typeof a==="string")for(var c=(a||"").split(n),e=0,g=this.length;e-1)return true;return false},val:function(a){if(a===f){var c=this[0];if(c){if(d.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(d.nodeName(c,"select")){var e=c.selectedIndex,g=[],j=c.options;c=c.type==="select-one";if(e<0)return null;var y=c?e:0;for(e=c?e+1:j.length;y=0;else if(d.nodeName(this,"select")){var Da=d.makeArray(ha);d("option",this).each(function(){this.selected= -d.inArray(d(this).val(),Da)>=0});if(!Da.length)this.selectedIndex=-1}else this.value=ha}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,c,e,g){if(!a||a.nodeType===3||a.nodeType===8)return f;if(g&&c in d.attrFn)return d(a)[c](e);g=a.nodeType!==1||!d.isXMLDoc(a);var j=e!==f;c=g&&d.props[c]||c;if(a.nodeType===1){var y=E.test(c);if(c in a&&g&&!y){if(j){c==="type"&&K.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"); -a[c]=e}if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex")return(c=a.getAttributeNode("tabIndex"))&&c.specified?c.value:C.test(a.nodeName)||ia.test(a.nodeName)&&a.href?0:f;return a[c]}if(!d.support.style&&g&&c==="style"){if(j)a.style.cssText=""+e;return a.style.cssText}j&&a.setAttribute(c,""+e);a=!d.support.hrefNormalized&&g&&y?a.getAttribute(c,2):a.getAttribute(c);return a===null?f:a}return d.style(a,c,e)}});var qa=/\.(.*)$/,fa=function(a){return a.replace(/[^\w\s\.\|`]/g, -function(c){return"\\"+c})};d.event={add:function(a,c,e,g){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==b&&!a.frameElement)a=b;var j,y;if(e.handler){j=e;e=j.handler}if(!e.guid)e.guid=d.guid++;if(y=d.data(a)){var z=y.events=y.events||{},T=y.handle;if(!T)y.handle=T=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(T.elem,arguments):f};T.elem=a;c=c.split(" ");for(var N,V=0,ha;N=c[V++];){y=j?d.extend({},j):{handler:e,data:g};if(N.indexOf(".")>-1){ha=N.split("."); -N=ha.shift();y.namespace=ha.slice(0).sort().join(".")}else{ha=[];y.namespace=""}y.type=N;y.guid=e.guid;var Da=z[N],Ia=d.event.special[N]||{};if(!Da){Da=z[N]=[];if(!Ia.setup||Ia.setup.call(a,g,ha,T)===false)if(a.addEventListener)a.addEventListener(N,T,false);else a.attachEvent&&a.attachEvent("on"+N,T)}if(Ia.add){Ia.add.call(a,y);if(!y.handler.guid)y.handler.guid=e.guid}Da.push(y);d.event.global[N]=true}a=null}}},global:{},remove:function(a,c,e,g){if(!(a.nodeType===3||a.nodeType===8)){var j,y=0,z,T, -N,V,ha,Da,Ia=d.data(a),Oa=Ia&&Ia.events;if(Ia&&Oa){if(c&&c.type){e=c.handler;c=c.type}if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(j in Oa)d.event.remove(a,j+c)}else{for(c=c.split(" ");j=c[y++];){V=j;z=j.indexOf(".")<0;T=[];if(!z){T=j.split(".");j=T.shift();N=RegExp("(^|\\.)"+d.map(T.slice(0).sort(),fa).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(ha=Oa[j])if(e){V=d.event.special[j]||{};for(La=g||0;La=0){a.type=j=j.slice(0,-1);a.exclusive=true}if(!e){a.stopPropagation();d.event.global[j]&&d.each(d.cache,function(){this.events&&this.events[j]&&d.event.trigger(a,c,this.handle.elem)})}if(!e||e.nodeType===3||e.nodeType===8)return f;a.result=f;a.target=e;c=d.makeArray(c);c.unshift(a)}a.currentTarget=e;(g=d.data(e,"handle"))&&g.apply(e,c);g=e.parentNode||e.ownerDocument;try{if(!(e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]))if(e["on"+j]&&e["on"+ -j].apply(e,c)===false)a.result=false}catch(y){}if(!a.isPropagationStopped()&&g)d.event.trigger(a,c,g,true);else if(!a.isDefaultPrevented()){g=a.target;var z,T=d.nodeName(g,"a")&&j==="click",N=d.event.special[j]||{};if((!N._default||N._default.call(e,a)===false)&&!T&&!(g&&g.nodeName&&d.noData[g.nodeName.toLowerCase()])){try{if(g[j]){if(z=g["on"+j])g["on"+j]=null;d.event.triggered=true;g[j]()}}catch(V){}if(z)g["on"+j]=z;d.event.triggered=false}}},handle:function(a){var c,e,g,j;a=arguments[0]=d.event.fix(a|| -b.event);a.currentTarget=this;c=a.type.indexOf(".")<0&&!a.exclusive;if(!c){e=a.type.split(".");a.type=e.shift();g=RegExp("(^|\\.)"+e.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}j=d.data(this,"events");e=j[a.type];if(j&&e){e=e.slice(0);j=0;for(var y=e.length;j-1?d.map(a.options,function(g){return g.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")e=a.selectedIndex;return e},Ra=function(a,c){var e=a.target,g,j;if(!(!za.test(e.nodeName)||e.readOnly)){g=d.data(e,"_change_data");j=Ga(e);if(a.type!=="focusout"||e.type!=="radio")d.data(e,"_change_data",j);if(!(g===f||j===g))if(g!=null||j){a.type="change";return d.event.trigger(a,c,e)}}};d.event.special.change={filters:{focusout:Ra, -click:function(a){var c=a.target,e=c.type;if(e==="radio"||e==="checkbox"||c.nodeName.toLowerCase()==="select")return Ra.call(this,a)},keydown:function(a){var c=a.target,e=c.type;if(a.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(e==="checkbox"||e==="radio")||e==="select-multiple")return Ra.call(this,a)},beforeactivate:function(a){a=a.target;d.data(a,"_change_data",Ga(a))}},setup:function(){if(this.type==="file")return false;for(var a in Ka)d.event.add(this,a+".specialChange", -Ka[a]);return za.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return za.test(this.nodeName)}};Ka=d.event.special.change.filters}G.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,c){function e(g){g=d.event.fix(g);g.type=c;return d.event.handle.call(this,g)}d.event.special[c]={setup:function(){this.addEventListener(a,e,true)},teardown:function(){this.removeEventListener(a,e,true)}}});d.each(["bind","one"],function(a,c){d.fn[c]=function(e,g,j){if(typeof e=== -"object"){for(var y in e)this[c](y,g,e[y],j);return this}if(d.isFunction(g)){j=g;g=f}var z=c==="one"?d.proxy(j,function(N){d(this).unbind(N,z);return j.apply(this,arguments)}):j;if(e==="unload"&&c!=="one")this.one(e,g,j);else{y=0;for(var T=this.length;y0){Ha=ta;break}}ta=ta[q]}P[Z]=Ha}}} -var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,j=0,y=Object.prototype.toString,z=false,T=true;[0,0].sort(function(){T=false;return 0});var N=function(q,D,O,P){O=O||[];var Z=D=D||G;if(D.nodeType!==1&&D.nodeType!==9)return[];if(!q||typeof q!=="string")return O;for(var Y=[],va,ta,Ha,ib,eb=true,gb=xa(D),fb=q;(g.exec(""),va=g.exec(fb))!==null;){fb=va[3];Y.push(va[1]);if(va[2]){ib=va[3];break}}if(Y.length>1&&ha.exec(q))if(Y.length=== -2&&V.relative[Y[0]])ta=lb(Y[0]+Y[1],D);else for(ta=V.relative[Y[0]]?[D]:N(Y.shift(),D);Y.length;){q=Y.shift();if(V.relative[q])q+=Y.shift();ta=lb(q,ta)}else{if(!P&&Y.length>1&&D.nodeType===9&&!gb&&V.match.ID.test(Y[0])&&!V.match.ID.test(Y[Y.length-1])){va=N.find(Y.shift(),D,gb);D=va.expr?N.filter(va.expr,va.set)[0]:va.set[0]}if(D){va=P?{expr:Y.pop(),set:Ia(P)}:N.find(Y.pop(),Y.length===1&&(Y[0]==="~"||Y[0]==="+")&&D.parentNode?D.parentNode:D,gb);ta=va.expr?N.filter(va.expr,va.set):va.set;if(Y.length> -0)Ha=Ia(ta);else eb=false;for(;Y.length;){var cb=Y.pop();va=cb;if(V.relative[cb])va=Y.pop();else cb="";if(va==null)va=D;V.relative[cb](Ha,va,gb)}}else Ha=[]}Ha||(Ha=ta);Ha||N.error(cb||q);if(y.call(Ha)==="[object Array]")if(eb)if(D&&D.nodeType===1)for(q=0;Ha[q]!=null;q++){if(Ha[q]&&(Ha[q]===true||Ha[q].nodeType===1&&Za(D,Ha[q])))O.push(ta[q])}else for(q=0;Ha[q]!=null;q++)Ha[q]&&Ha[q].nodeType===1&&O.push(ta[q]);else O.push.apply(O,Ha);else Ia(Ha,O);if(ib){N(ib,Z,O,P);N.uniqueSort(O)}return O};N.uniqueSort= -function(q){if(La){z=T;q.sort(La);if(z)for(var D=1;D":function(q,D){var O=typeof D==="string";if(O&&!/\W/.test(D)){D=D.toLowerCase();for(var P=0,Z=q.length;P=0))O||P.push(va);else if(O)D[Y]=false;return false},ID:function(q){return q[1].replace(/\\/g,"")},TAG:function(q){return q[1].toLowerCase()},CHILD:function(q){if(q[1]==="nth"){var D=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(q[2]==="even"&&"2n"||q[2]==="odd"&&"2n+1"||!/\D/.test(q[2])&&"0n+"+q[2]||q[2]);q[2]= -D[1]+(D[2]||1)-0;q[3]=D[3]-0}q[0]=j++;return q},ATTR:function(q,D,O,P,Z,Y){D=q[1].replace(/\\/g,"");if(!Y&&V.attrMap[D])q[1]=V.attrMap[D];if(q[2]==="~=")q[4]=" "+q[4]+" ";return q},PSEUDO:function(q,D,O,P,Z){if(q[1]==="not")if((g.exec(q[3])||"").length>1||/^\w/.test(q[3]))q[3]=N(q[3],null,null,D);else{q=N.filter(q[3],D,O,true^Z);O||P.push.apply(P,q);return false}else if(V.match.POS.test(q[0])||V.match.CHILD.test(q[0]))return true;return q},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled=== -false&&q.type!=="hidden"},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){return q.selected===true},parent:function(q){return!!q.firstChild},empty:function(q){return!q.firstChild},has:function(q,D,O){return!!N(O[3],q).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return"text"===q.type},radio:function(q){return"radio"===q.type},checkbox:function(q){return"checkbox"===q.type},file:function(q){return"file"=== -q.type},password:function(q){return"password"===q.type},submit:function(q){return"submit"===q.type},image:function(q){return"image"===q.type},reset:function(q){return"reset"===q.type},button:function(q){return"button"===q.type||q.nodeName.toLowerCase()==="button"},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(q,D){return D===0},last:function(q,D,O,P){return D===P.length-1},even:function(q,D){return D%2===0},odd:function(q,D){return D%2===1}, -lt:function(q,D,O){return DO[3]-0},nth:function(q,D,O){return O[3]-0===D},eq:function(q,D,O){return O[3]-0===D}},filter:{PSEUDO:function(q,D,O,P){var Z=D[1],Y=V.filters[Z];if(Y)return Y(q,O,D,P);else if(Z==="contains")return(q.textContent||q.innerText||a([q])||"").indexOf(D[3])>=0;else if(Z==="not"){D=D[3];O=0;for(P=D.length;O=0}},ID:function(q,D){return q.nodeType=== -1&&q.getAttribute("id")===D},TAG:function(q,D){return D==="*"&&q.nodeType===1||q.nodeName.toLowerCase()===D},CLASS:function(q,D){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(D)>-1},ATTR:function(q,D){var O=D[1];O=V.attrHandle[O]?V.attrHandle[O](q):q[O]!=null?q[O]:q.getAttribute(O);var P=O+"",Z=D[2],Y=D[4];return O==null?Z==="!=":Z==="="?P===Y:Z==="*="?P.indexOf(Y)>=0:Z==="~="?(" "+P+" ").indexOf(Y)>=0:!Y?P&&O!==false:Z==="!="?P!==Y:Z==="^="?P.indexOf(Y)===0:Z==="$="?P.substr(P.length- -Y.length)===Y:Z==="|="?P===Y||P.substr(0,Y.length+1)===Y+"-":false},POS:function(q,D,O,P){var Z=V.setFilters[D[2]];if(Z)return Z(q,O,D,P)}}},ha=V.match.POS;for(var Da in V.match){V.match[Da]=RegExp(V.match[Da].source+/(?![^\[]*\])(?![^\(]*\))/.source);V.leftMatch[Da]=RegExp(/(^(?:.|\r|\n)*?)/.source+V.match[Da].source.replace(/\\(\d+)/g,function(q,D){return"\\"+(D-0+1)}))}var Ia=function(q,D){q=Array.prototype.slice.call(q,0);if(D){D.push.apply(D,q);return D}return q};try{Array.prototype.slice.call(G.documentElement.childNodes, -0)}catch(Oa){Ia=function(q,D){var O=D||[];if(y.call(q)==="[object Array]")Array.prototype.push.apply(O,q);else if(typeof q.length==="number")for(var P=0,Z=q.length;P";var O=G.documentElement;O.insertBefore(q,O.firstChild);if(G.getElementById(D)){V.find.ID=function(P,Z,Y){if(typeof Z.getElementById!=="undefined"&&!Y)return(Z=Z.getElementById(P[1]))?Z.id===P[1]||typeof Z.getAttributeNode!=="undefined"&&Z.getAttributeNode("id").nodeValue===P[1]?[Z]:f:[]};V.filter.ID=function(P,Z){var Y=typeof P.getAttributeNode!=="undefined"&&P.getAttributeNode("id");return P.nodeType===1&&Y&&Y.nodeValue=== -Z}}O.removeChild(q);O=q=null})();(function(){var q=G.createElement("div");q.appendChild(G.createComment(""));if(q.getElementsByTagName("*").length>0)V.find.TAG=function(D,O){var P=O.getElementsByTagName(D[1]);if(D[1]==="*"){for(var Z=[],Y=0;P[Y];Y++)P[Y].nodeType===1&&Z.push(P[Y]);P=Z}return P};q.innerHTML="";if(q.firstChild&&typeof q.firstChild.getAttribute!=="undefined"&&q.firstChild.getAttribute("href")!=="#")V.attrHandle.href=function(D){return D.getAttribute("href",2)};q=null})(); -G.querySelectorAll&&function(){var q=N,D=G.createElement("div");D.innerHTML="

";if(!(D.querySelectorAll&&D.querySelectorAll(".TEST").length===0)){N=function(P,Z,Y,va){Z=Z||G;if(!va&&Z.nodeType===9&&!xa(Z))try{return Ia(Z.querySelectorAll(P),Y)}catch(ta){}return q(P,Z,Y,va)};for(var O in q)N[O]=q[O];D=null}}();(function(){var q=G.createElement("div");q.innerHTML="
";if(!(!q.getElementsByClassName||q.getElementsByClassName("e").length=== -0)){q.lastChild.className="e";if(q.getElementsByClassName("e").length!==1){V.order.splice(1,0,"CLASS");V.find.CLASS=function(D,O,P){if(typeof O.getElementsByClassName!=="undefined"&&!P)return O.getElementsByClassName(D[1])};q=null}}})();var Za=G.compareDocumentPosition?function(q,D){return!!(q.compareDocumentPosition(D)&16)}:function(q,D){return q!==D&&(q.contains?q.contains(D):true)},xa=function(q){return(q=(q?q.ownerDocument||q:0).documentElement)?q.nodeName!=="HTML":false},lb=function(q,D){for(var O= -[],P="",Z,Y=D.nodeType?[D]:D;Z=V.match.PSEUDO.exec(q);){P+=Z[0];q=q.replace(V.match.PSEUDO,"")}q=V.relative[q]?q+"*":q;Z=0;for(var va=Y.length;Z=0===e})};d.fn.extend({find:function(a){for(var c=this.pushStack("","find",a),e=0,g=0,j=this.length;g0)for(var y=e;y0},closest:function(a,c){if(d.isArray(a)){var e=[],g=this[0],j,y={},z;if(g&&a.length){j=0;for(var T=a.length;j --1:d(g).is(j)){e.push({selector:z,elem:g});delete y[z]}}g=g.parentNode}}return e}var N=d.expr.match.POS.test(a)?d(a,c||this.context):null;return this.map(function(V,ha){for(;ha&&ha.ownerDocument&&ha!==c;){if(N?N.index(ha)>-1:d(ha).is(a))return ha;ha=ha.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,c){var e=typeof a==="string"?d(a,c||this.context):d.makeArray(a), -g=d.merge(this.get(),e);return this.pushStack(!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11||!g[0]||!g[0].parentNode||g[0].parentNode.nodeType===11?g:d.unique(g))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,c,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")}, -nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,c,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,c,e){return d.dir(a,"previousSibling",e)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,c){d.fn[a]=function(e, -g){var j=d.map(this,c,e);o.test(a)||(g=e);if(g&&typeof g==="string")j=d.filter(g,j);j=this.length>1?d.unique(j):j;if((this.length>1||t.test(g))&&r.test(a))j=j.reverse();return this.pushStack(j,a,Ta.call(arguments).join(","))}});d.extend({filter:function(a,c,e){if(e)a=":not("+a+")";return d.find.matches(a,c)},dir:function(a,c,e){var g=[];for(a=a[c];a&&a.nodeType!==9&&(e===f||a.nodeType!==1||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[c]}return g},nth:function(a,c,e){c=c||1;for(var g=0;a;a=a[e])if(a.nodeType=== -1&&++g===c)break;return a},sibling:function(a,c){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==c&&e.push(a);return e}});var v=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,F=/(<([\w:]+)[^>]*?)\/>/g,L=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,I=/<([\w:]+)/,Q=/"},ca={option:[1,""],legend:[1,"
", -"
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};ca.optgroup=ca.option;ca.tbody=ca.tfoot=ca.colgroup=ca.caption=ca.thead;ca.th=ca.td;if(!d.support.htmlSerialize)ca._default=[1,"div
","
"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(c){var e=d(this);e.text(a.call(this, -c,e.text()))});if(typeof a!=="object"&&a!==f)return this.empty().append((this[0]&&this[0].ownerDocument||G).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(e){d(this).wrapAll(a.call(this,e))});if(this[0]){var c=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(c){d(this).wrapInner(a.call(this, -c))});return this.each(function(){var c=d(this),e=c.contents();e.length?e.wrapAll(a):c.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a, -this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments); -a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,c){for(var e=0,g;(g=this[e])!=null;e++)if(!a||d.filter(a,[g]).length){if(!c&&g.nodeType===1){d.cleanData(g.getElementsByTagName("*"));d.cleanData([g])}g.parentNode&&g.parentNode.removeChild(g)}return this},empty:function(){for(var a=0,c;(c=this[a])!=null;a++)for(c.nodeType===1&&d.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);return this},clone:function(a){var c=this.map(function(){if(!d.support.noCloneEvent&& -!d.isXMLDoc(this)){var e=this.outerHTML,g=this.ownerDocument;if(!e){e=g.createElement("div");e.appendChild(this.cloneNode(true));e=e.innerHTML}return d.clean([e.replace(v,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(S,"")],g)[0]}else return this.cloneNode(true)});if(a===true){sa(this,c);sa(this.find("*"),c.find("*"))}return c},html:function(a){if(a===f)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(v,""):null;else if(typeof a==="string"&&!ga.test(a)&&(d.support.leadingWhitespace|| -!S.test(a))&&!ca[(I.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(F,oa);try{for(var c=0,e=this.length;c0||g.cacheable||this.length>1?T.cloneNode(true):T)}z.length&&d.each(z,p)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){d.fn[a]=function(e){var g=[];e=d(e);var j=this.length===1&&this[0].parentNode;if(j&&j.nodeType===11&&j.childNodes.length===1&&e.length===1){e[c](this[0]);return this}else{j=0;for(var y=e.length;j0?this.clone(true):this).get();d.fn[c].apply(d(e[j]), -z);g=g.concat(z)}return this.pushStack(g,a,e.selector)}}});d.extend({clean:function(a,c,e,g){c=c||G;if(typeof c.createElement==="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||G;for(var j=[],y=0,z;(z=a[y])!=null;y++){if(typeof z==="number")z+="";if(z){if(typeof z==="string"&&!W.test(z))z=c.createTextNode(z);else if(typeof z==="string"){z=z.replace(F,oa);var T=(I.exec(z)||["",""])[1].toLowerCase(),N=ca[T]||ca._default,V=N[0],ha=c.createElement("div");for(ha.innerHTML=N[1]+z+N[2];V--;)ha=ha.lastChild; -if(!d.support.tbody){V=Q.test(z);T=T==="table"&&!V?ha.firstChild&&ha.firstChild.childNodes:N[1]===""&&!V?ha.childNodes:[];for(N=T.length-1;N>=0;--N)d.nodeName(T[N],"tbody")&&!T[N].childNodes.length&&T[N].parentNode.removeChild(T[N])}!d.support.leadingWhitespace&&S.test(z)&&ha.insertBefore(c.createTextNode(S.exec(z)[0]),ha.firstChild);z=ha.childNodes}if(z.nodeType)j.push(z);else j=d.merge(j,z)}}if(e)for(y=0;j[y];y++)if(g&&d.nodeName(j[y],"script")&&(!j[y].type||j[y].type.toLowerCase()==="text/javascript"))g.push(j[y].parentNode? -j[y].parentNode.removeChild(j[y]):j[y]);else{j[y].nodeType===1&&j.splice.apply(j,[y+1,0].concat(d.makeArray(j[y].getElementsByTagName("script"))));e.appendChild(j[y])}return j},cleanData:function(a){for(var c,e,g=d.cache,j=d.event.special,y=d.support.deleteExpando,z=0,T;(T=a[z])!=null;z++)if(e=T[d.expando]){c=g[e];if(c.events)for(var N in c.events)j[N]?d.event.remove(T,N):ma(T,N,c.handle);if(y)delete T[d.expando];else T.removeAttribute&&T.removeAttribute(d.expando);delete g[e]}}});var ea=/z-?index|font-?weight|opacity|zoom|line-?height/i, -aa=/alpha\([^)]*\)/,ba=/opacity=([^)]*)/,ka=/float/i,Fa=/-([a-z])/ig,Qa=/([A-Z])/g,Sa=/^-?\d+(?:px)?$/i,sb=/^-?\d/,tb={position:"absolute",visibility:"hidden",display:"block"},ub=["Left","Right"],vb=["Top","Bottom"],wb=G.defaultView&&G.defaultView.getComputedStyle,rb=d.support.cssFloat?"cssFloat":"styleFloat",mb=function(a,c){return c.toUpperCase()};d.fn.css=function(a,c){return A(this,a,c,true,function(e,g,j){if(j===f)return d.curCSS(e,g);if(typeof j==="number"&&!ea.test(g))j+="px";d.style(e,g,j)})}; -d.extend({style:function(a,c,e){if(!a||a.nodeType===3||a.nodeType===8)return f;if((c==="width"||c==="height")&&parseFloat(e)<0)e=f;var g=a.style||a,j=e!==f;if(!d.support.opacity&&c==="opacity"){if(j){g.zoom=1;c=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";a=g.filter||d.curCSS(a,"filter")||"";g.filter=aa.test(a)?a.replace(aa,c):c}return g.filter&&g.filter.indexOf("opacity=")>=0?parseFloat(ba.exec(g.filter)[1])/100+"":""}if(ka.test(c))c=rb;c=c.replace(Fa,mb);if(j)g[c]=e;return g[c]},css:function(a, -c,e,g){if(c==="width"||c==="height"){var j,y=c==="width"?ub:vb;e=function(){j=c==="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&d.each(y,function(){g||(j-=parseFloat(d.curCSS(a,"padding"+this,true))||0);if(g==="margin")j+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else j-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?e():d.swap(a,tb,e);return Math.max(0,Math.round(j))}return d.curCSS(a,c,e)},curCSS:function(a,c,e){var g,j=a.style;if(!d.support.opacity&&c==="opacity"&& -a.currentStyle){g=ba.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return g===""?"1":g}if(ka.test(c))c=rb;if(!e&&j&&j[c])g=j[c];else if(wb){if(ka.test(c))c="float";c=c.replace(Qa,"-$1").toLowerCase();j=a.ownerDocument.defaultView;if(!j)return null;if(a=j.getComputedStyle(a,null))g=a.getPropertyValue(c);if(c==="opacity"&&g==="")g="1"}else if(a.currentStyle){e=c.replace(Fa,mb);g=a.currentStyle[c]||a.currentStyle[e];if(!Sa.test(g)&&sb.test(g)){c=j.left;var y=a.runtimeStyle.left;a.runtimeStyle.left= -a.currentStyle.left;j.left=e==="fontSize"?"1em":g||0;g=j.pixelLeft+"px";j.left=c;a.runtimeStyle.left=y}}return g},swap:function(a,c,e){var g={};for(var j in c){g[j]=a.style[j];a.style[j]=c[j]}e.call(a);for(j in c)a.style[j]=g[j]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(a){var c=a.offsetWidth,e=a.offsetHeight,g=a.nodeName.toLowerCase()==="tr";return c===0&&e===0&&!g?true:c>0&&e>0&&!g?false:d.curCSS(a,"display")==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}var xb= -B(),yb=//gi,zb=/select|textarea/i,Ab=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,hb=/=\?(&|$)/,nb=/\?/,Bb=/(\?|&)_=.*?(&|$)/,Cb=/^(\w+:)?\/\/([^\/?#]+)/,Db=/%20/g,Eb=d.fn.load;d.fn.extend({load:function(a,c,e){if(typeof a!=="string")return Eb.call(this,a);else if(!this.length)return this;var g=a.indexOf(" ");if(g>=0){var j=a.slice(g,a.length);a=a.slice(0,g)}g="GET";if(c)if(d.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c= -d.param(c,d.ajaxSettings.traditional);g="POST"}var y=this;d.ajax({url:a,type:g,dataType:"html",data:c,complete:function(z,T){if(T==="success"||T==="notmodified")y.html(j?d("
").append(z.responseText.replace(yb,"")).find(j):z.responseText);e&&y.each(e,[z.responseText,T,z])}});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)||Ab.test(this.type))}).map(function(a,c){var e=d(this).val();return e==null?null:d.isArray(e)?d.map(e,function(g){return{name:c.name,value:g}}):{name:c.name,value:e}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,c){d.fn[c]=function(e){return this.bind(c,e)}});d.extend({get:function(a,c,e,g){if(d.isFunction(c)){g=g||e;e=c;c=null}return d.ajax({type:"GET",url:a,data:c,success:e,dataType:g})},getScript:function(a, -c){return d.get(a,null,c,"script")},getJSON:function(a,c,e){return d.get(a,c,e,"json")},post:function(a,c,e,g){if(d.isFunction(c)){g=g||e;e=c;c={}}return d.ajax({type:"POST",url:a,data:c,success:e,dataType:g})},ajaxSetup:function(a){d.extend(d.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:b.XMLHttpRequest&&(b.location.protocol!=="file:"||!b.ActiveXObject)?function(){return new b.XMLHttpRequest}: -function(){try{return new b.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function c(){j.success&&j.success.call(N,T,z,xa);j.global&&g("ajaxSuccess",[xa,j])}function e(){j.complete&&j.complete.call(N,xa,z);j.global&&g("ajaxComplete",[xa,j]);j.global&&!--d.active&&d.event.trigger("ajaxStop")} -function g(Z,Y){(j.context?d(j.context):d.event).trigger(Z,Y)}var j=d.extend(true,{},d.ajaxSettings,a),y,z,T,N=a&&a.context||j,V=j.type.toUpperCase();if(j.data&&j.processData&&typeof j.data!=="string")j.data=d.param(j.data,j.traditional);if(j.dataType==="jsonp"){if(V==="GET")hb.test(j.url)||(j.url+=(nb.test(j.url)?"&":"?")+(j.jsonp||"callback")+"=?");else if(!j.data||!hb.test(j.data))j.data=(j.data?j.data+"&":"")+(j.jsonp||"callback")+"=?";j.dataType="json"}if(j.dataType==="json"&&(j.data&&hb.test(j.data)|| -hb.test(j.url))){y=j.jsonpCallback||"jsonp"+xb++;if(j.data)j.data=(j.data+"").replace(hb,"="+y+"$1");j.url=j.url.replace(hb,"="+y+"$1");j.dataType="script";b[y]=b[y]||function(Z){T=Z;c();e();b[y]=f;try{delete b[y]}catch(Y){}Ia&&Ia.removeChild(Oa)}}if(j.dataType==="script"&&j.cache===null)j.cache=false;if(j.cache===false&&V==="GET"){var ha=B(),Da=j.url.replace(Bb,"$1_="+ha+"$2");j.url=Da+(Da===j.url?(nb.test(j.url)?"&":"?")+"_="+ha:"")}if(j.data&&V==="GET")j.url+=(nb.test(j.url)?"&":"?")+j.data;j.global&& -!d.active++&&d.event.trigger("ajaxStart");ha=(ha=Cb.exec(j.url))&&(ha[1]&&ha[1]!==location.protocol||ha[2]!==location.host);if(j.dataType==="script"&&V==="GET"&&ha){var Ia=G.getElementsByTagName("head")[0]||G.documentElement,Oa=G.createElement("script");Oa.src=j.url;if(j.scriptCharset)Oa.charset=j.scriptCharset;if(!y){var La=false;Oa.onload=Oa.onreadystatechange=function(){if(!La&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){La=true;c();e();Oa.onload=Oa.onreadystatechange= -null;Ia&&Oa.parentNode&&Ia.removeChild(Oa)}}}Ia.insertBefore(Oa,Ia.firstChild);return f}var Za=false,xa=j.xhr();if(xa){j.username?xa.open(V,j.url,j.async,j.username,j.password):xa.open(V,j.url,j.async);try{if(j.data||a&&a.contentType)xa.setRequestHeader("Content-Type",j.contentType);if(j.ifModified){d.lastModified[j.url]&&xa.setRequestHeader("If-Modified-Since",d.lastModified[j.url]);d.etag[j.url]&&xa.setRequestHeader("If-None-Match",d.etag[j.url])}ha||xa.setRequestHeader("X-Requested-With","XMLHttpRequest"); -xa.setRequestHeader("Accept",j.dataType&&j.accepts[j.dataType]?j.accepts[j.dataType]+", */*":j.accepts._default)}catch(lb){}if(j.beforeSend&&j.beforeSend.call(N,xa,j)===false){j.global&&!--d.active&&d.event.trigger("ajaxStop");xa.abort();return false}j.global&&g("ajaxSend",[xa,j]);var q=xa.onreadystatechange=function(Z){if(!xa||xa.readyState===0||Z==="abort"){Za||e();Za=true;if(xa)xa.onreadystatechange=d.noop}else if(!Za&&xa&&(xa.readyState===4||Z==="timeout")){Za=true;xa.onreadystatechange=d.noop; -z=Z==="timeout"?"timeout":!d.httpSuccess(xa)?"error":j.ifModified&&d.httpNotModified(xa,j.url)?"notmodified":"success";var Y;if(z==="success")try{T=d.httpData(xa,j.dataType,j)}catch(va){z="parsererror";Y=va}if(z==="success"||z==="notmodified")y||c();else d.handleError(j,xa,z,Y);e();Z==="timeout"&&xa.abort();if(j.async)xa=null}};try{var D=xa.abort;xa.abort=function(){xa&&D.call(xa);q("abort")}}catch(O){}j.async&&j.timeout>0&&setTimeout(function(){xa&&!Za&&q("timeout")},j.timeout);try{xa.send(V==="POST"|| -V==="PUT"||V==="DELETE"?j.data:null)}catch(P){d.handleError(j,xa,null,P);e()}j.async||q();return xa}},handleError:function(a,c,e,g){if(a.error)a.error.call(a.context||a,c,e,g);if(a.global)(a.context?d(a.context):d.event).trigger("ajaxError",[c,a,g])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(c){}return false},httpNotModified:function(a,c){var e=a.getResponseHeader("Last-Modified"), -g=a.getResponseHeader("Etag");if(e)d.lastModified[c]=e;if(g)d.etag[c]=g;return a.status===304||a.status===0},httpData:function(a,c,e){var g=a.getResponseHeader("content-type")||"",j=c==="xml"||!c&&g.indexOf("xml")>=0;a=j?a.responseXML:a.responseText;j&&a.documentElement.nodeName==="parsererror"&&d.error("parsererror");if(e&&e.dataFilter)a=e.dataFilter(a,c);if(typeof a==="string")if(c==="json"||!c&&g.indexOf("json")>=0)a=d.parseJSON(a);else if(c==="script"||!c&&g.indexOf("javascript")>=0)d.globalEval(a); -return a},param:function(a,c){function e(z,T){if(d.isArray(T))d.each(T,function(N,V){c||/\[\]$/.test(z)?g(z,V):e(z+"["+(typeof V==="object"||d.isArray(V)?N:"")+"]",V)});else!c&&T!=null&&typeof T==="object"?d.each(T,function(N,V){e(z+"["+N+"]",V)}):g(z,T)}function g(z,T){T=d.isFunction(T)?T():T;j[j.length]=encodeURIComponent(z)+"="+encodeURIComponent(T)}var j=[];if(c===f)c=d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery)d.each(a,function(){g(this.name,this.value)});else for(var y in a)e(y,a[y]); -return j.join("&").replace(Db,"+")}});var ob={},Fb=/toggle|show|hide/,Gb=/^([+-]=)?([\d+-.]+)(.*)$/,kb,pb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,c){if(a||a===0)return this.animate(R("show",3),a,c);else{for(var e=0,g=this.length;e").appendTo("body");y=z.css("display");if(y==="none")y="block";z.remove();ob[j]=y}d.data(this[e],"olddisplay",y)}}e=0;for(g=this.length;e=0;g--)if(e[g].elem=== -this){c&&e[g](true);e.splice(g,1)}});c||this.dequeue();return this}});d.each({slideDown:R("show",1),slideUp:R("hide",1),slideToggle:R("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,c){d.fn[a]=function(e,g){return this.animate(c,e,g)}});d.extend({speed:function(a,c,e){var g=a&&typeof a==="object"?a:{complete:e||!e&&c||d.isFunction(a)&&a,duration:a,easing:e&&c||c&&!d.isFunction(c)&&c};g.duration=d.fx.off?0:typeof g.duration==="number"?g.duration:d.fx.speeds[g.duration]||d.fx.speeds._default; -g.old=g.complete;g.complete=function(){g.queue!==false&&d(this).dequeue();d.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(a,c,e,g){return e+g*a},swing:function(a,c,e,g){return(-Math.cos(a*Math.PI)/2+0.5)*g+e}},timers:[],fx:function(a,c,e){this.options=c;this.elem=a;this.prop=e;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if((this.prop==="height"|| -this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(d.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(d.curCSS(this.elem,this.prop))||0},custom:function(a,c,e){function g(y){return j.step(y)}this.startTime=B();this.start=a;this.end=c;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var j=this;g.elem=this.elem; -if(g()&&d.timers.push(g)&&!kb)kb=setInterval(d.fx.tick,13)},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var c=B(),e=true;if(a||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update(); -this.options.curAnim[this.prop]=true;for(var g in this.options.curAnim)if(this.options.curAnim[g]!==true)e=false;if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=d.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(d.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var j in this.options.curAnim)d.style(this.elem,j,this.options.orig[j]); -this.options.complete.call(this.elem)}return false}else{j=c-this.startTime;this.state=j/this.options.duration;a=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,j,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{tick:function(){for(var a=d.timers,c=0;c
"; -a.insertBefore(c,a.firstChild);e=c.firstChild;g=e.firstChild;j=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=j.offsetTop===5;g.style.position="fixed";g.style.top="20px";this.supportsFixedPosition=g.offsetTop===20||g.offsetTop===15;g.style.position=g.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==y;a.removeChild(c); -d.offset.initialize=d.noop},bodyOffset:function(a){var c=a.offsetTop,e=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(d.curCSS(a,"marginTop",true))||0;e+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:c,left:e}},setOffset:function(a,c,e){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var g=d(a),j=g.offset(),y=parseInt(d.curCSS(a,"top",true),10)||0,z=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(c))c=c.call(a, -e,j);e={top:c.top-j.top+y,left:c.left-j.left+z};"using"in c?c.using.call(a,e):g.css(e)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],c=this.offsetParent(),e=this.offset(),g=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();e.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;e.left-=parseFloat(d.curCSS(a,"marginLeft",true))||0;g.top+=parseFloat(d.curCSS(c[0],"borderTopWidth",true))||0;g.left+=parseFloat(d.curCSS(c[0],"borderLeftWidth",true))||0;return{top:e.top- -g.top,left:e.left-g.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||G.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(g){var j=this[0],y;if(!j)return null;if(g!==f)return this.each(function(){if(y=$(this))y.scrollTo(!a?g:d(y).scrollLeft(),a?g:d(y).scrollTop());else this[e]=g});else return(y=$(j))?"pageXOffset"in y?y[a?"pageYOffset":"pageXOffset"]: -d.support.boxModel&&y.document.documentElement[e]||y.document.body[e]:j[e]}});d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?d.css(this[0],e,false,"padding"):null};d.fn["outer"+c]=function(g){return this[0]?d.css(this[0],e,false,g?"margin":"border"):null};d.fn[e]=function(g){var j=this[0];if(!j)return g==null?null:this;if(d.isFunction(g))return this.each(function(y){var z=d(this);z[e](g.call(this,y,z[e]()))});return"scrollTo"in j&&j.document? -j.document.compatMode==="CSS1Compat"&&j.document.documentElement["client"+c]||j.document.body["client"+c]:j.nodeType===9?Math.max(j.documentElement["client"+c],j.body["scroll"+c],j.documentElement["scroll"+c],j.body["offset"+c],j.documentElement["offset"+c]):g===f?d.css(j,e):this.css(e,typeof g==="string"?g:g+"px")}});b.jQuery=b.$=d})(window);document.createElement("canvas").getContext||function(){function b(){return this.context_||(this.context_=new $(this))}function f(n,u){var E=Pa.call(arguments,2);return function(){return n.apply(u,E.concat(Pa.call(arguments)))}}function k(n){return String(n).replace(/&/g,"&").replace(/"/g,""")}function p(n){n.namespaces.g_vml_||n.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");n.namespaces.g_o_||n.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML"); -if(!n.styleSheets.ex_canvas_){n=n.createStyleSheet();n.owningElement.id="ex_canvas_";n.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}function A(n){var u=n.srcElement;switch(n.propertyName){case "width":u.getContext().clearRect();u.style.width=u.attributes.width.nodeValue+"px";u.firstChild.style.width=u.clientWidth+"px";break;case "height":u.getContext().clearRect();u.style.height=u.attributes.height.nodeValue+"px";u.firstChild.style.height=u.clientHeight+ -"px";break}}function B(n){n=n.srcElement;if(n.firstChild){n.firstChild.style.width=n.clientWidth+"px";n.firstChild.style.height=n.clientHeight+"px"}}function M(){return[[1,0,0],[0,1,0],[0,0,1]]}function U(n,u){for(var E=M(),K=0;K<3;K++)for(var C=0;C<3;C++){for(var ia=0,X=0;X<3;X++)ia+=n[K][X]*u[X][C];E[K][C]=ia}return E}function J(n,u){u.fillStyle=n.fillStyle;u.lineCap=n.lineCap;u.lineJoin=n.lineJoin;u.lineWidth=n.lineWidth;u.miterLimit=n.miterLimit;u.shadowBlur=n.shadowBlur;u.shadowColor=n.shadowColor; -u.shadowOffsetX=n.shadowOffsetX;u.shadowOffsetY=n.shadowOffsetY;u.strokeStyle=n.strokeStyle;u.globalAlpha=n.globalAlpha;u.font=n.font;u.textAlign=n.textAlign;u.textBaseline=n.textBaseline;u.arcScaleX_=n.arcScaleX_;u.arcScaleY_=n.arcScaleY_;u.lineScale_=n.lineScale_}function ja(n){var u=n.indexOf("(",3),E=n.indexOf(")",u+1);u=n.substring(u+1,E).split(",");if(u.length==4&&n.substr(3,1)=="a")alpha=Number(u[3]);else u[3]=1;return u}function wa(n,u,E){return Math.min(E,Math.max(u,n))}function sa(n,u,E){E< -0&&E++;E>1&&E--;return 6*E<1?n+(u-n)*6*E:2*E<1?u:3*E<2?n+(u-n)*(2/3-E)*6:n}function H(n){var u=1;n=String(n);if(n.charAt(0)=="#")n=n;else if(/^rgb/.test(n)){u=ja(n);n="#";for(var E,K=0;K<3;K++){E=u[K].indexOf("%")!=-1?Math.floor(parseFloat(u[K])/100*255):Number(u[K]);n+=Ta[wa(E,0,255)]}u=u[3]}else if(/^hsl/.test(n)){n=u=ja(n);h=parseFloat(n[0])/360%360;h<0&&h++;s=wa(parseFloat(n[1])/100,0,1);l=wa(parseFloat(n[2])/100,0,1);if(s==0)n=E=K=l;else{K=l<0.5?l*(1+s):l+s-l*s;var C=2*l-K;n=sa(C,K,h+1/3);E= -sa(C,K,h);K=sa(C,K,h-1/3)}n="#"+Ta[Math.floor(n*255)]+Ta[Math.floor(E*255)]+Ta[Math.floor(K*255)];u=u[3]}else n=ab[n]||n;return{color:n,alpha:u}}function R(n){switch(n){case "butt":return"flat";case "round":return"round";case "square":default:return"square"}}function $(n){this.m_=M();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=Ba*1;this.globalAlpha=1;this.font="10px sans-serif"; -this.textAlign="left";this.textBaseline="alphabetic";this.canvas=n;var u=n.ownerDocument.createElement("div");u.style.width=n.clientWidth+"px";u.style.height=n.clientHeight+"px";u.style.overflow="hidden";u.style.position="absolute";n.appendChild(u);this.element_=u;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}function d(n,u,E,K){n.currentPath_.push({type:"bezierCurveTo",cp1x:u.x,cp1y:u.y,cp2x:E.x,cp2y:E.y,x:K.x,y:K.y});n.currentX_=K.x;n.currentY_=K.y}function da(n,u){var E=H(n.strokeStyle),K= -E.color;E=E.alpha*n.globalAlpha;var C=n.lineScale_*n.lineWidth;if(C<1)E*=C;u.push("')}function ya(n,u,E,K){var C=n.fillStyle,ia=n.arcScaleX_,X=n.arcScaleY_,qa=K.x-E.x,fa=K.y-E.y;if(C instanceof pa){var ma=0;K={x:0,y:0};var ra=0,Ca=1;if(C.type_=="gradient"){ma=C.x1_/ia;E=C.y1_/X;var za=n.getCoords_(C.x0_/ia,C.y0_/X);ma=n.getCoords_(ma, -E);ma=Math.atan2(ma.x-za.x,ma.y-za.y)*180/Math.PI;if(ma<0)ma+=360;if(ma<1.0E-6)ma=0}else{za=n.getCoords_(C.x0_,C.y0_);K={x:(za.x-E.x)/qa,y:(za.y-E.y)/fa};qa/=ia*Ba;fa/=X*Ba;Ca=Wa.max(qa,fa);ra=2*C.r0_/Ca;Ca=2*C.r1_/Ca-ra}ia=C.colors_;ia.sort(function(Ra,db){return Ra.offset-db.offset});X=ia.length;za=ia[0].color;E=ia[X-1].color;qa=ia[0].alpha*n.globalAlpha;n=ia[X-1].alpha*n.globalAlpha;fa=[];for(var Ka=0;Ka')}else if(C instanceof ua)qa&&fa&&u.push("');else{C=H(n.fillStyle);u.push('')}}function G(n,u,E){if(isFinite(u[0][0])&&isFinite(u[0][1])&& -isFinite(u[1][0])&&isFinite(u[1][1])&&isFinite(u[2][0])&&isFinite(u[2][1])){n.m_=u;if(E)n.lineScale_=Ya(Xa(u[0][0]*u[1][1]-u[0][1]*u[1][0]))}}function pa(n){this.type_=n;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}function ua(n,u){if(!n||n.nodeType!=1||n.tagName!="IMG")throw new Ja("TYPE_MISMATCH_ERR");if(n.readyState!="complete")throw new Ja("INVALID_STATE_ERR");switch(u){case "repeat":case null:case "":this.repetition_="repeat";break;case "repeat-x":case "repeat-y":case "no-repeat":this.repetition_= -u;break;default:throw new Ja("SYNTAX_ERR");}this.src_=n.src;this.width_=n.width;this.height_=n.height}function Ja(n){this.code=this[n];this.message=n+": DOM Exception "+this.code}var Wa=Math,Ea=Wa.round,$a=Wa.sin,Ua=Wa.cos,Xa=Wa.abs,Ya=Wa.sqrt,Ba=10,Na=Ba/2,Pa=Array.prototype.slice;p(document);var Va={init:function(n){if(/MSIE/.test(navigator.userAgent)&&!window.opera){n=n||document;n.createElement("canvas");n.attachEvent("onreadystatechange",f(this.init_,this,n))}},init_:function(n){n=n.getElementsByTagName("canvas"); -for(var u=0;u','","");this.element_.insertAdjacentHTML("BeforeEnd",za.join(""))};la.stroke=function(n){for(var u={x:null,y:null},E={x:null,y:null},K=0;KE.x)E.x=X.x;if(u.y==null||X.yE.y)E.y=X.y}}C.push(' ">');n?ya(this,C,u,E):da(this,C);C.push(""); -this.element_.insertAdjacentHTML("beforeEnd",C.join(""))}};la.fill=function(){this.stroke(true)};la.closePath=function(){this.currentPath_.push({type:"close"})};la.getCoords_=function(n,u){var E=this.m_;return{x:Ba*(n*E[0][0]+u*E[1][0]+E[2][0])-Na,y:Ba*(n*E[0][1]+u*E[1][1]+E[2][1])-Na}};la.save=function(){var n={};J(this,n);this.aStack_.push(n);this.mStack_.push(this.m_);this.m_=U(M(),this.m_)};la.restore=function(){if(this.aStack_.length){J(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};la.translate= -function(n,u){G(this,U([[1,0,0],[0,1,0],[n,u,1]],this.m_),false)};la.rotate=function(n){var u=Ua(n);n=$a(n);G(this,U([[u,n,0],[-n,u,0],[0,0,1]],this.m_),false)};la.scale=function(n,u){this.arcScaleX_*=n;this.arcScaleY_*=u;G(this,U([[n,0,0],[0,u,0],[0,0,1]],this.m_),true)};la.transform=function(n,u,E,K,C,ia){G(this,U([[n,u,0],[E,K,0],[C,ia,1]],this.m_),true)};la.setTransform=function(n,u,E,K,C,ia){G(this,[[n,u,0],[E,K,0],[C,ia,1]],true)};la.drawText_=function(n,u,E,K,C){var ia=this.m_;K=0;var X=1E3, -qa={x:0,y:0},fa=[],ma;ma=this.font;if(Aa[ma])ma=Aa[ma];else{var ra=document.createElement("div").style;try{ra.font=ma}catch(Ca){}ma=Aa[ma]={style:ra.fontStyle||bb.style,variant:ra.fontVariant||bb.variant,weight:ra.fontWeight||bb.weight,size:ra.fontSize||bb.size,family:ra.fontFamily||bb.family}}ra=ma;var za=this.element_;ma={};for(var Ka in ra)ma[Ka]=ra[Ka];Ka=parseFloat(za.currentStyle.fontSize);za=parseFloat(ra.size);ma.size=typeof ra.size=="number"?ra.size:ra.size.indexOf("px")!=-1?za:ra.size.indexOf("em")!= --1?Ka*za:ra.size.indexOf("%")!=-1?Ka/100*za:ra.size.indexOf("pt")!=-1?za/0.75:Ka;ma.size*=0.981;Ka=ma.style+" "+ma.variant+" "+ma.weight+" "+ma.size+"px "+ma.family;za=this.element_.currentStyle;ra=this.textAlign.toLowerCase();switch(ra){case "left":case "center":case "right":break;case "end":ra=za.direction=="ltr"?"right":"left";break;case "start":ra=za.direction=="rtl"?"right":"left";break;default:ra="left"}switch(this.textBaseline){case "hanging":case "top":qa.y=ma.size/1.75;break;case "middle":break; -default:case null:case "alphabetic":case "ideographic":case "bottom":qa.y=-ma.size/2.25;break}switch(ra){case "right":K=1E3;X=0.05;break;case "center":K=X=500;break}u=this.getCoords_(u+qa.x,E+qa.y);fa.push('');C?da(this,fa):ya(this,fa,{x:-K,y:0},{x:X,y:ma.size});C=ia[0][0].toFixed(3)+","+ia[1][0].toFixed(3)+","+ia[0][1].toFixed(3)+ -","+ia[1][1].toFixed(3)+",0,0";u=Ea(u.x/Ba)+","+Ea(u.y/Ba);fa.push('','','');this.element_.insertAdjacentHTML("beforeEnd",fa.join(""))};la.fillText=function(n,u,E,K){this.drawText_(n,u,E,K,false)};la.strokeText=function(n,u,E,K){this.drawText_(n,u,E,K,true)};la.measureText=function(n){if(!this.textMeasureEl_){this.element_.insertAdjacentHTML("beforeEnd", -'');this.textMeasureEl_=this.element_.lastChild}var u=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(u.createTextNode(n));return{width:this.textMeasureEl_.offsetWidth}};la.clip=function(){};la.arcTo=function(){};la.createPattern=function(n,u){return new ua(n,u)};pa.prototype.addColorStop=function(n,u){u=H(u); -this.colors_.push({offset:n,color:u.color,alpha:u.alpha})};la=Ja.prototype=Error();la.INDEX_SIZE_ERR=1;la.DOMSTRING_SIZE_ERR=2;la.HIERARCHY_REQUEST_ERR=3;la.WRONG_DOCUMENT_ERR=4;la.INVALID_CHARACTER_ERR=5;la.NO_DATA_ALLOWED_ERR=6;la.NO_MODIFICATION_ALLOWED_ERR=7;la.NOT_FOUND_ERR=8;la.NOT_SUPPORTED_ERR=9;la.INUSE_ATTRIBUTE_ERR=10;la.INVALID_STATE_ERR=11;la.SYNTAX_ERR=12;la.INVALID_MODIFICATION_ERR=13;la.NAMESPACE_ERR=14;la.INVALID_ACCESS_ERR=15;la.VALIDATION_ERR=16;la.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager= -Va;CanvasRenderingContext2D=$;CanvasGradient=pa;CanvasPattern=ua;DOMException=Ja}();(function(){jQuery.color={};jQuery.color.make=function(f,k,p,A){var B={};B.r=f||0;B.g=k||0;B.b=p||0;B.a=A!=null?A:1;B.add=function(M,U){for(var J=0;J=1?"rgb("+[B.r,B.g,B.b].join(",")+")":"rgba("+[B.r,B.g,B.b,B.a].join(",")+")"};B.normalize=function(){function M(U,J,ja){return Jja?ja:J}B.r=M(0,parseInt(B.r),255);B.g=M(0, -parseInt(B.g),255);B.b=M(0,parseInt(B.b),255);B.a=M(0,B.a,1);return B};B.clone=function(){return jQuery.color.make(B.r,B.b,B.g,B.a)};return B.normalize()};jQuery.color.extract=function(f,k){var p;do{p=f.css(k).toLowerCase();if(p!=""&&p!="transparent")break;f=f.parent()}while(!jQuery.nodeName(f.get(0),"body"));if(p=="rgba(0, 0, 0, 0)")p="transparent";return jQuery.color.parse(p)};jQuery.color.parse=function(f){var k,p=jQuery.color.make;if(k=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f))return p(parseInt(k[1], -10),parseInt(k[2],10),parseInt(k[3],10));if(k=/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(f))return p(parseInt(k[1],10),parseInt(k[2],10),parseInt(k[3],10),parseFloat(k[4]));if(k=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f))return p(parseFloat(k[1])*2.55,parseFloat(k[2])*2.55,parseFloat(k[3])*2.55);if(k=/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(f))return p(parseFloat(k[1])* -2.55,parseFloat(k[2])*2.55,parseFloat(k[3])*2.55,parseFloat(k[4]));if(k=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f))return p(parseInt(k[1],16),parseInt(k[2],16),parseInt(k[3],16));if(k=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f))return p(parseInt(k[1]+k[1],16),parseInt(k[2]+k[2],16),parseInt(k[3]+k[3],16));f=jQuery.trim(f).toLowerCase();if(f=="transparent")return p(255,255,255,0);else{k=b[f];return p(k[0],k[1],k[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]}})(); -(function(b){function f(p,A,B,M){function U(o,r){r=[Ga].concat(r);for(var t=0;t=n.colors.length){o=0;++w}}for(o=r=0;oba.datamax)ba.datamax=Fa}var t=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,v,S,F,L,I,Q,W,ga,na,oa;for(v=0;v0&&Q[F-W]!=null&&Q[F-W]!=Q[F]&&Q[F-W+1]!=Q[F+1]){for(L=0;Lca)ca=ga}if(na.y){if(gaaa)aa=ga}}}if(I.bars.show){S=I.bars.align=="left"?0:-I.bars.barWidth/2;if(I.bars.horizontal){oa+=S;aa+=S+I.bars.barWidth}else{F+=S;ca+=S+I.bars.barWidth}}r(I.xaxis,F,ca);r(I.yaxis,oa,aa)}b.each(sa(), -function(ba,ka){if(ka.datamin==t)ka.datamin=null;if(ka.datamax==w)ka.datamax=null})}function $(o){function r(F){return F}var t,w,v=o.options.transform||r,S=o.options.inverseTransform;if(o.direction=="x"){t=o.scale=Ca/(v(o.max)-v(o.min));w=v(o.min);o.p2c=v==r?function(F){return(F-w)*t}:function(F){return(v(F)-w)*t};o.c2p=S?function(F){return S(w+F/t)}:function(F){return w+F/t}}else{t=o.scale=za/(v(o.max)-v(o.min));w=v(o.max);o.p2c=v==r?function(F){return(w-F)*t}:function(F){return(w-v(F))*t};o.c2p= -S?function(F){return S(w-F/t)}:function(F){return w-F/t}}}function d(o){function r(I,Q){return b('
'+I.join("")+"
").appendTo(p)}if(o){var t=o.options,w,v=o.ticks||[],S=[],F,L=t.labelWidth;t=t.labelHeight;if(o.direction=="x"){if(L==null)L=Math.floor(ma/(v.length>0?v.length:1));if(t==null){S=[];for(w=0;w'+F+"");if(S.length>0){S.push('
');v=r(S,"width:10000px;");t=v.height();v.remove()}}}else if(L==null||t==null){for(w=0;w'+F+"");if(S.length>0){v=r(S,"");if(L==null)L=v.children().width();if(t==null)t=v.find("div.tickLabel").height();v.remove()}}if(L==null)L=0;if(t==null)t=0;o.labelWidth=L;o.labelHeight=t}}function da(o){if(!(!o||!o.used&&!(o.labelWidth||o.labelHeight))){var r=o.labelWidth, -t=o.labelHeight,w=o.options.position,v=o.options.tickLength,S=n.grid.axisMargin,F=n.grid.labelMargin,L=o.direction=="x"?X:qa,I=b.grep(L,function(Q){return Q&&Q.options.position==w&&(Q.labelHeight||Q.labelWidth)});if(b.inArray(o,I)==I.length-1)S=0;if(v==null)v="full";L=b.grep(L,function(Q){return Q&&(Q.labelHeight||Q.labelWidth)});L=b.inArray(o,L)==0;if(!L&&v=="full")v=5;isNaN(+v)||(F+=+v);if(o.direction=="x"){t+=F;if(w=="bottom"){fa.bottom+=t+S;o.box={top:ra-fa.bottom,height:t}}else{o.box={top:fa.top+ -S,height:t};fa.top+=t+S}}else{r+=F;if(w=="left"){o.box={left:fa.left+S,width:r};fa.left+=r+S}else{fa.right+=r+S;o.box={left:ma-fa.right,width:r}}}o.position=w;o.tickLength=v;o.box.padding=F;o.innermost=L}}function ya(){var o=sa(),r;for(r=0;r=0)v=0}if(w.max==null){S+=F*L;if(S>0&&t.datamax!=null&&t.datamax<=0)S=0}}}t.min=v;t.max=S}fa.left=fa.right=fa.top=fa.bottom=0;if(n.grid.show){for(r=0;r0)w=t.tickGenerator(t);else if(v)w=b.isFunction(v)?v({min:t.min,max:t.max}):v;v=void 0;S=void 0;for(v=0;v1)F=L[1]}else S=L;if(F==null)F=t.tickFormatter(S,t);t.ticks[v]= -{v:S,label:F}}t=o[r];w=o[r].ticks;if(t.options.autoscaleMargin!=null&&w.length>0){if(t.options.min==null)t.min=Math.min(t.min,w[0].v);if(t.options.max==null&&w.length>1)t.max=Math.max(t.max,w[w.length-1].v)}}for(r=0;r=0;--r)da(X[r]);for(r=qa.length-1;r>=0;--r)da(qa[r]);for(t=r=0;t'];I=sa();for(r=0;r');for(v=0;vt.max)){F={};if(t.direction=="x"){L="center";F.left=Math.round(fa.left+t.p2c(S.v)-t.labelWidth/2);if(t.position=="bottom")F.top=w.top+w.padding;else F.bottom=ra-(w.top+w.height-w.padding)}else{F.top=Math.round(fa.top+t.p2c(S.v)-t.labelHeight/2);if(t.position=="left"){F.right=ma-(w.left+w.width-w.padding);L="right"}else{F.left=w.left+w.padding;L="left"}}F.width=t.labelWidth;L=["position:absolute","text-align:"+L];for(var Q in F)L.push(Q+":"+F[Q]+"px");o.push('
'+S.label+"
")}}o.push("")}o.push("");p.append(o.join(""))}p.find(".legend").remove();if(n.legend.show){Q=[];o=false;I=n.legend.labelFormatter;for(w=0;w");Q.push("");o=true}if(I)t=I(t,r);Q.push('
'+ -t+"")}}o&&Q.push("");if(Q.length!=0){o=''+Q.join("")+"
";if(n.legend.container!=null)b(n.legend.container).html(o);else{Q="";I=n.legend.position;r=n.legend.margin;if(r[0]==null)r=[r,r];if(I.charAt(0)=="n")Q+="top:"+(r[1]+fa.top)+"px;";else if(I.charAt(0)=="s")Q+="bottom:"+(r[1]+fa.bottom)+"px;";if(I.charAt(1)=="e")Q+="right:"+(r[0]+fa.right)+"px;";else if(I.charAt(1)=="w")Q+="left:"+(r[0]+fa.left)+"px;";o=b('
'+ -o.replace('style="','style="position:absolute;'+Q+";")+"
").appendTo(p);if(n.legend.backgroundOpacity!=0){I=n.legend.backgroundColor;if(I==null){I=(I=n.grid.backgroundColor)&&typeof I=="string"?b.color.parse(I):b.color.extract(o,"background-color");I.a=1;I=I.toString()}r=o.children();b('
').prependTo(o).css("opacity",n.legend.backgroundOpacity)}}}}}function G(o){var r=o.options,t=(o.max- -o.min)/(typeof r.ticks=="number"&&r.ticks>0?r.ticks:o.direction=="x"?0.3*Math.sqrt(ma):0.3*Math.sqrt(ra)),w,v,S,F;if(r.mode=="time"){var L={second:1E3,minute:6E4,hour:36E5,day:864E5,month:2592E6,year:525949.2*60*1E3};F=[[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"]];w=0;if(r.minTickSize!=null)w=typeof r.tickSize=="number"?r.tickSize:r.minTickSize[0]*L[r.minTickSize[1]];for(v=0;v=w)break;w=F[v][0];S=F[v][1];if(S=="year"){v=Math.pow(10,Math.floor(Math.log(t/L.year)/Math.LN10));F=t/L.year/v;w=F<1.5?1:F<3?2:F<7.5?5:10;w*=v}o.tickSize=r.tickSize||[w,S];v=function(W){var ga=[],na=W.tickSize[0],oa=W.tickSize[1],ca=new Date(W.min),ea=na*L[oa];oa=="second"&& -ca.setUTCSeconds(k(ca.getUTCSeconds(),na));oa=="minute"&&ca.setUTCMinutes(k(ca.getUTCMinutes(),na));oa=="hour"&&ca.setUTCHours(k(ca.getUTCHours(),na));oa=="month"&&ca.setUTCMonth(k(ca.getUTCMonth(),na));oa=="year"&&ca.setUTCFullYear(k(ca.getUTCFullYear(),na));ca.setUTCMilliseconds(0);ea>=L.minute&&ca.setUTCSeconds(0);ea>=L.hour&&ca.setUTCMinutes(0);ea>=L.day&&ca.setUTCHours(0);ea>=L.day*4&&ca.setUTCDate(1);ea>=L.year&&ca.setUTCMonth(0);var aa=0,ba=Number.NaN,ka;do{ka=ba;ba=ca.getTime();ga.push(ba); -if(oa=="month")if(na<1){ca.setUTCDate(1);var Fa=ca.getTime();ca.setUTCMonth(ca.getUTCMonth()+1);var Qa=ca.getTime();ca.setTime(ba+aa*L.hour+(Qa-Fa)*na);aa=ca.getUTCHours();ca.setUTCHours(0)}else ca.setUTCMonth(ca.getUTCMonth()+na);else oa=="year"?ca.setUTCFullYear(ca.getUTCFullYear()+na):ca.setTime(ba+ea)}while(baS)I=S;v=Math.pow(10,-I);F=t/v;if(F<1.5)w=1;else if(F<3){w=2;if(F>2.25&&(S==null||I+1<=S)){w=2.5;++I}}else w=F<7.5?5:10;w*=v;if(r.minTickSize!=null&&w0){if(r.min==null)o.min=Math.min(o.min,v[0]);if(r.max==null&&v.length>1)o.max=Math.max(o.max,v[v.length-1])}v=function(W){var ga=[],na,oa; -for(oa=0;oa1&&/\..*0$/.test((F[1]-F[0]).toFixed(t))))o.tickDecimals=t}}}o.tickGenerator=v;o.tickFormatter=b.isFunction(r.tickFormatter)?function(W,ga){return""+r.tickFormatter(W,ga)}:w}function pa(){C.clearRect(0,0,ma,ra);var o=n.grid;o.show&&!o.aboveData&&Ja();for(var r=0;rv){S=w;w=v;v=S}return{from:w,to:v,axis:t}}function Ja(){var o;C.save();C.translate(fa.left,fa.top);if(n.grid.backgroundColor){C.fillStyle= -bb(n.grid.backgroundColor,za,0,"rgba(255, 255, 255, 0)");C.fillRect(0,0,Ca,za)}var r=n.grid.markings;if(r){if(b.isFunction(r)){var t=Ga.getAxes();t.xmin=t.xaxis.min;t.xmax=t.xaxis.max;t.ymin=t.yaxis.min;t.ymax=t.yaxis.max;r=r(t)}for(o=0;ow.axis.max||v.tov.axis.max)){w.from= -Math.max(w.from,w.axis.min);w.to=Math.min(w.to,w.axis.max);v.from=Math.max(v.from,v.axis.min);v.to=Math.min(v.to,v.axis.max);if(!(w.from==w.to&&v.from==v.to)){w.from=w.axis.p2c(w.from);w.to=w.axis.p2c(w.to);v.from=v.axis.p2c(v.from);v.to=v.axis.p2c(v.to);if(w.from==w.to||v.from==v.to){C.beginPath();C.strokeStyle=t.color||n.grid.markingsColor;C.lineWidth=t.lineWidth||n.grid.markingsLineWidth;C.moveTo(w.from,v.from);C.lineTo(w.to,v.to);C.stroke()}else{C.fillStyle=t.color||n.grid.markingsColor;C.fillRect(w.from, -v.to,w.to-w.from,v.from-v.to)}}}}}t=sa();r=n.grid.borderWidth;for(w=0;wv.max||S=="full"&&r>0&&(W==v.min||W==v.max))){if(v.direction=="x"){F=v.p2c(W);Q=S=="full"?-za:S;if(v.position=="top")Q=-Q}else{L=v.p2c(W);I=S=="full"?-Ca:S;if(v.position=="left")I=-I}if(C.lineWidth==1)if(v.direction=="x")F=Math.floor(F)+0.5;else L=Math.floor(L)+0.5;C.moveTo(F,L);C.lineTo(F+I,L+Q)}}C.stroke()}if(r){C.lineWidth= -r;C.strokeStyle=n.grid.borderColor;C.strokeRect(-r/2,-r/2,Ca+r,za+r)}C.restore()}function Wa(o){function r(F,L,I,Q,W){var ga=F.points;F=F.pointsize;var na=null,oa=null;C.beginPath();for(var ca=F;ca=ka&&aa>W.max){if(ka>W.max)continue; -ea=(W.max-aa)/(ka-aa)*(ba-ea)+ea;aa=W.max}else if(ka>=aa&&ka>W.max){if(aa>W.max)continue;ba=(W.max-aa)/(ka-aa)*(ba-ea)+ea;ka=W.max}if(ea<=ba&&ea=ba&&ea>Q.max){if(ba>Q.max)continue;aa=(Q.max-ea)/(ba-ea)*(ka-aa)+aa;ea=Q.max}else if(ba>=ea&&ba>Q.max){if(ea>Q.max)continue;ka=(Q.max-ea)/(ba-ea)*(ka-aa)+aa;ba=Q.max}if(ea!=na||aa!=oa)C.moveTo(Q.p2c(ea)+ -L,W.p2c(aa)+I);na=ba;oa=ka;C.lineTo(Q.p2c(ba)+L,W.p2c(ka)+I)}}C.stroke()}function t(F,L,I){var Q=F.points;F=F.pointsize;for(var W=Math.min(Math.max(0,I.min),I.max),ga=0,na=false,oa=1,ca=0,ea=0;;){if(F>0&&ga>Q.length+F)break;ga+=F;var aa=Q[ga-F],ba=Q[ga-F+oa],ka=Q[ga],Fa=Q[ga+oa];if(na){if(F>0&&aa!=null&&ka==null){ea=ga;F=-F;oa=2;continue}if(F<0&&ga==ca+F){C.fill();na=false;F=-F;oa=1;ga=ca=ea+F;continue}}if(!(aa==null||ka==null)){if(aa<=ka&&aa=ka&&aa>L.max){if(ka>L.max)continue;ba=(L.max-aa)/(ka-aa)*(Fa-ba)+ba;aa=L.max}else if(ka>=aa&&ka>L.max){if(aa>L.max)continue;Fa=(L.max-aa)/(ka-aa)*(Fa-ba)+ba;ka=L.max}if(!na){C.beginPath();C.moveTo(L.p2c(aa),I.p2c(W));na=true}if(ba>=I.max&&Fa>=I.max){C.lineTo(L.p2c(aa),I.p2c(I.max));C.lineTo(L.p2c(ka),I.p2c(I.max))}else if(ba<=I.min&&Fa<=I.min){C.lineTo(L.p2c(aa),I.p2c(I.min));C.lineTo(L.p2c(ka), -I.p2c(I.min))}else{var Qa=aa,Sa=ka;if(ba<=Fa&&ba=I.min){aa=(I.min-ba)/(Fa-ba)*(ka-aa)+aa;ba=I.min}else if(Fa<=ba&&Fa=I.min){ka=(I.min-ba)/(Fa-ba)*(ka-aa)+aa;Fa=I.min}if(ba>=Fa&&ba>I.max&&Fa<=I.max){aa=(I.max-ba)/(Fa-ba)*(ka-aa)+aa;ba=I.max}else if(Fa>=ba&&Fa>I.max&&ba<=I.max){ka=(I.max-ba)/(Fa-ba)*(ka-aa)+aa;Fa=I.max}aa!=Qa&&C.lineTo(L.p2c(Qa),I.p2c(ba));C.lineTo(L.p2c(aa),I.p2c(ba));C.lineTo(L.p2c(ka),I.p2c(Fa));if(ka!=Sa){C.lineTo(L.p2c(ka),I.p2c(Fa));C.lineTo(L.p2c(Sa),I.p2c(Fa))}}}}} -C.save();C.translate(fa.left,fa.top);C.lineJoin="round";var w=o.lines.lineWidth,v=o.shadowSize;if(w>0&&v>0){C.lineWidth=v;C.strokeStyle="rgba(0,0,0,0.1)";var S=Math.PI/18;r(o.datapoints,Math.sin(S)*(w/2+v/2),Math.cos(S)*(w/2+v/2),o.xaxis,o.yaxis);C.lineWidth=v/2;r(o.datapoints,Math.sin(S)*(w/2+v/4),Math.cos(S)*(w/2+v/4),o.xaxis,o.yaxis)}C.lineWidth=w;C.strokeStyle=o.color;if(v=Xa(o.lines,o.color,0,za)){C.fillStyle=v;t(o.datapoints,o.xaxis,o.yaxis)}w>0&&r(o.datapoints,0,0,o.xaxis,o.yaxis);C.restore()} -function Ea(o){function r(F,L,I,Q,W,ga,na,oa){var ca=F.points;F=F.pointsize;for(var ea=0;eaga.max||bana.max)){C.beginPath();aa=ga.p2c(aa);ba=na.p2c(ba)+Q;oa=="circle"?C.arc(aa,ba,L,0,W?Math.PI:Math.PI*2,false):oa(C,aa,ba,L,W);C.closePath();if(I){C.fillStyle=I;C.fill()}C.stroke()}}}C.save();C.translate(fa.left,fa.top);var t=o.points.lineWidth,w=o.shadowSize,v=o.points.radius,S=o.points.symbol;if(t>0&&w>0){w=w/2;C.lineWidth= -w;C.strokeStyle="rgba(0,0,0,0.1)";r(o.datapoints,v,null,w+w/2,true,o.xaxis,o.yaxis,S);C.strokeStyle="rgba(0,0,0,0.2)";r(o.datapoints,v,null,w/2,true,o.xaxis,o.yaxis,S)}C.lineWidth=t;C.strokeStyle=o.color;r(o.datapoints,v,Xa(o.points,o.color),0,false,o.xaxis,o.yaxis,S);C.restore()}function $a(o,r,t,w,v,S,F,L,I,Q,W,ga){var na,oa,ca,ea;if(W){ea=oa=ca=true;na=false;W=t;o=o;t=r+w;v=r+v;if(oL.max||tI.max)){if(WL.max){o=L.max;oa=false}if(vI.max){t=I.max;ca=false}W=L.p2c(W);v=I.p2c(v);o=L.p2c(o);t=I.p2c(t);if(F){Q.beginPath();Q.moveTo(W,v);Q.lineTo(W,t);Q.lineTo(o,t);Q.lineTo(o,v);Q.fillStyle=F(v,t);Q.fill()}if(ga>0&&(na||oa||ca||ea)){Q.beginPath();Q.moveTo(W,v+S);na?Q.lineTo(W,t+S):Q.moveTo(W,t+S);ca?Q.lineTo(o,t+S):Q.moveTo(o,t+S);oa?Q.lineTo(o,v+S):Q.moveTo(o,v+S);ea?Q.lineTo(W,v+S):Q.moveTo(W, -v+S);Q.stroke()}}}function Ua(o){C.save();C.translate(fa.left,fa.top);C.lineWidth=o.bars.lineWidth;C.strokeStyle=o.color;var r=o.bars.align=="left"?0:-o.bars.barWidth/2;(function(t,w,v,S,F,L,I){var Q=t.points;t=t.pointsize;for(var W=0;W=0;--Q)if(t(Aa[Q])){var ga= -Aa[Q],na=ga.xaxis,oa=ga.yaxis,ca=ga.datapoints.points,ea=ga.datapoints.pointsize,aa=na.c2p(v),ba=oa.c2p(S),ka=r/na.scale,Fa=r/oa.scale;if(ga.lines.show||ga.points.show)for(W=0;Wka||Qa-aa<-ka||Sa-ba>Fa||Sa-ba<-Fa)){Qa=Math.abs(na.p2c(Qa)-v);Sa=Math.abs(oa.p2c(Sa)-S);Sa=Qa*Qa+Sa*Sa;if(Sa=Math.min(oa,Qa)&&ba>=Sa+na&&ba<=Sa+ga:aa>=Qa+na&&aa<=Qa+ga&&ba>=Math.min(oa,Sa)&&ba<=Math.max(oa,Sa))I=[Q,W/ea]}}}if(I){Q=I[0];W=I[1];ea=Aa[Q].datapoints.pointsize;t={datapoint:Aa[Q].datapoints.points.slice(W*ea,(W+1)*ea),dataIndex:W,series:Aa[Q],seriesIndex:Q}}else t=null;if(t){t.pageX=parseInt(t.series.xaxis.p2c(t.datapoint[0])+w.left+fa.left);t.pageY=parseInt(t.series.yaxis.p2c(t.datapoint[1])+w.top+fa.top)}if(n.grid.autoHighlight){for(w= -0;wv.max||wS.max)){var F=t.points.radius+t.points.lineWidth/ -2;ia.lineWidth=F;ia.strokeStyle=b.color.parse(t.color).scale("a",0.5).toString();F=1.5*F;r=v.p2c(r);w=S.p2c(w);ia.beginPath();t.points.symbol=="circle"?ia.arc(r,w,F,0,2*Math.PI,false):t.points.symbol(ia,r,w,F,false);ia.closePath();ia.stroke()}}}ia.restore();U(Ka.drawOverlay,[ia])}function Ta(o,r,t){if(typeof o=="number")o=Aa[o];if(typeof r=="number"){var w=o.datapoints.pointsize;r=o.datapoints.points.slice(w*r,w*(r+1))}w=Ma(o,r);if(w==-1){Ra.push({series:o,point:r,auto:t});Pa()}else if(!t)Ra[w].auto= -false}function la(o,r){if(o==null&&r==null){Ra=[];Pa()}if(typeof o=="number")o=Aa[o];if(typeof r=="number")r=o.data[r];var t=Ma(o,r);if(t!=-1){Ra.splice(t,1);Pa()}}function Ma(o,r){for(var t=0;t12)wa-=12;else if(wa==0)wa=12;for(var H=0;H2&&(H?A.format[2].x:A.format[2].y);p=d&&p.lines.steps;sa=true;for(var ya=H?1:0,G=H?0:1,pa=0,ua=0,Ja;;){if(pa>=M.length)break;Ja=J.length; -if(M[pa]==null){for(m=0;m=B.length){if(!d)for(m=0;mH){if(d&&pa>0&&M[pa-k]!=null){sa=wa+(M[pa-k+G]-wa)*(H-ja)/(M[pa-k+ya]-ja);J.push(H);J.push(sa+R);for(m=2;m0&&B[ua-U]!=null)$=R+(B[ua-U+G]-R)*(ja-H)/(B[ua-U+ya]-H);J[Ja+G]+=$;pa+=k}sa=false;if(Ja!=J.length&&da)J[Ja+2]+=$}if(p&&Ja!=J.length&&Ja>0&&J[Ja]!=null&&J[Ja]!=J[Ja-k]&&J[Ja+1]!=J[Ja-k+1]){for(m=0;mua?ua:pa;ya=d.pageY-ya.top-G.top;G=f.height();$.y=ya<0?0:ya>G?G:ya;if(da.selection.mode=="y")$.x=$==H.first?0:f.width();if(da.selection.mode=="x")$.y=$== -H.first?0:f.height()}function J($){if($.pageX!=null){U(H.second,$);if(sa()){H.show=true;f.triggerRedrawOverlay()}else ja(true)}}function ja($){if(H.show){H.show=false;f.triggerRedrawOverlay();$||f.getPlaceholder().trigger("plotunselected",[])}}function wa($,d){var da,ya,G,pa,ua;pa=f.getUsedAxes();for(i=0;iG){pa=ya;ya=G;G=pa}return{from:ya,to:G,axis:da}}function sa(){return Math.abs(H.second.x-H.first.x)>=5&&Math.abs(H.second.y-H.first.y)>=5}var H={first:{x:-1,y:-1},second:{x:-1,y:-1},show:false,active:false},R={};f.clearSelection=ja;f.setSelection=function($,d){var da,ya=f.getOptions();if(ya.selection.mode=="y"){H.first.x=0;H.second.x=f.width()}else{da=wa($,"x");H.first.x=da.axis.p2c(da.from);H.second.x=da.axis.p2c(da.to)}if(ya.selection.mode=="x"){H.first.y= -0;H.second.y=f.height()}else{da=wa($,"y");H.first.y=da.axis.p2c(da.from);H.second.y=da.axis.p2c(da.to)}H.show=true;f.triggerRedrawOverlay();!d&&sa()&&M()};f.getSelection=B;f.hooks.bindEvents.push(function($,d){var da=$.getOptions();da.selection.mode!=null&&d.mousemove(k);da.selection.mode!=null&&d.mousedown(p)});f.hooks.drawOverlay.push(function($,d){if(H.show&&sa()){var da=$.getPlotOffset(),ya=$.getOptions();d.save();d.translate(da.left,da.top);da=b.color.parse(ya.selection.color);d.strokeStyle= -da.scale("a",0.8).toString();d.lineWidth=1;d.lineJoin="round";d.fillStyle=da.scale("a",0.4).toString();da=Math.min(H.first.x,H.second.x);ya=Math.min(H.first.y,H.second.y);var G=Math.abs(H.second.x-H.first.x),pa=Math.abs(H.second.y-H.first.y);d.fillRect(da,ya,G,pa);d.strokeRect(da,ya,G,pa);d.restore()}})},options:{selection:{mode:null,color:"#e8cfac"}},name:"selection",version:"1.0"})})(jQuery);function InvalidBinaryFile(b){this.message=b;this.name="Invalid BinaryFile"}InvalidBinaryFile.prototype.toString=function(){return this.name+': "'+this.message+'"'}; -function BinaryFile(b,f,k){var p=f||0,A=0,B=Math.pow(2,-28),M=Math.pow(2,-52),U=Math.pow(2,-20);this.getRawData=function(){return b};if(typeof b=="string"){A=k||b.length;this.getByteAt=function(J){return b.charCodeAt(J+p)&255}}else if(typeof b=="unknown"){A=k||IEBinary_getLength(b);this.getByteAt=function(J){return IEBinary_getByteAt(b,J+p)}}else throw new InvalidBinaryFile("Unsupported type "+typeof b);this.getLength=function(){return A};this.getSByteAt=function(J){J=this.getByteAt(J);return J>127? -J-256:J};this.getShortAt=function(J){J=(this.getByteAt(J+1)<<8)+this.getByteAt(J);if(J<0)J+=65536;return J};this.getSShortAt=function(J){J=this.getShortAt(J);return J>32767?J-65536:J};this.getLongAt=function(J){var ja=this.getByteAt(J),wa=this.getByteAt(J+1),sa=this.getByteAt(J+2);J=(((this.getByteAt(J+3)<<8)+sa<<8)+wa<<8)+ja;if(J<0)J+=4294967296;return J};this.getSLongAt=function(J){J=this.getLongAt(J);return J>2147483647?J-4294967296:J};this.getStringAt=function(J,ja){for(var wa=[],sa=J,H=0;sa< -J+ja;sa++,H++)wa[H]=String.fromCharCode(this.getByteAt(sa));return wa.join("")};this.getCStringAt=function(J,ja){for(var wa=[],sa=J,H=0;sa0;sa++,H++)wa[H]=String.fromCharCode(this.getByteAt(sa));return wa.join("")};this.getDoubleAt=function(J){var ja=this.getByteAt(J),wa=this.getByteAt(J+1),sa=this.getByteAt(J+2),H=this.getByteAt(J+3),R=this.getByteAt(J+4),$=this.getByteAt(J+5),d=this.getByteAt(J+6);J=this.getByteAt(J+7);var da=((J&127)<<4)+(d>>4);H=((((d&15)<<8)+$<<8)+R<< -8)+H;ja=((sa<<8)+wa<<8)+ja;if(da==0)return 0;if(da!=2047)return(J>>7==1?-1:1)*Math.pow(2,(da&2047)-1023)*(1+ja*M+H*B)};this.getFastDoubleAt=function(J){var ja=this.getByteAt(J+4),wa=this.getByteAt(J+5),sa=this.getByteAt(J+6);J=this.getByteAt(J+7);var H=((J&127)<<4)+(sa>>4);ja=(((sa&15)<<8)+wa<<8)+ja;if(H==0)return 0;if(H!=2047)return(J>>7==1?-1:1)*Math.pow(2,(H&2047)-1023)*(1+ja*U)};this.getCharAt=function(J){return String.fromCharCode(this.getByteAt(J))}}document.write("