if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var a=arguments,b=null,d,e,c;for(d=0;d<a.length;d=d+1){c=a[d].split(".");b=YAHOO;for(e=(c[0]=="YAHOO")?1:0;
e<c.length;e=e+1){b[c[e]]=b[c[e]]||{};b=b[c[e]];}}return b;};YAHOO.log=function(b,a,c){var d=YAHOO.widget.Logger;if(d&&d.log){return d.log(b,a,c);}else{return false;
}};YAHOO.register=function(d,l,a){var e=YAHOO.env.modules;if(!e[d]){e[d]={versions:[],builds:[]};}var c=e[d],g=a.version,h=a.build,k=YAHOO.env.listeners;c.name=d;
c.version=g;c.build=h;c.versions.push(g);c.builds.push(h);c.mainClass=l;for(var b=0;b<k.length;b=b+1){k[b](c);}if(l){l.VERSION=g;l.BUILD=h;}else{YAHOO.log("mainClass is undefined for module "+d,"warn");
}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(a){return YAHOO.env.modules[a]||null;};YAHOO.env.ua=function(){var b={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0};
var c=navigator.userAgent,a;if((/KHTML/).test(c)){b.webkit=1;}a=c.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){b.webkit=parseFloat(a[1]);if(/ Mobile\//.test(c)){b.mobile="Apple";
}else{a=c.match(/NokiaN[^\/]*/);if(a){b.mobile=a[0];}}a=c.match(/AdobeAIR\/([^\s]*)/);if(a){b.air=a[0];}}if(!b.webkit){a=c.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){b.opera=parseFloat(a[1]);
a=c.match(/Opera Mini[^;]*/);if(a){b.mobile=a[0];}}else{a=c.match(/MSIE\s([^;]*)/);if(a&&a[1]){b.ie=parseFloat(a[1]);}else{a=c.match(/Gecko\/([^\s]*)/);if(a){b.gecko=1;
a=c.match(/rv:([^\s\)]*)/);if(a&&a[1]){b.gecko=parseFloat(a[1]);}}}}}return b;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var d=YAHOO_config.listener,a=YAHOO.env.listeners,b=true,c;
if(d){for(c=0;c<a.length;c=c+1){if(a[c]==d){b=false;break;}}if(b){a.push(d);}}}})();YAHOO.lang=YAHOO.lang||{isArray:function(b){if(b){var a=YAHOO.lang;return a.isNumber(b.length)&&a.isFunction(b.splice);
}return false;},isBoolean:function(a){return typeof a==="boolean";},isFunction:function(a){return typeof a==="function";},isNull:function(a){return a===null;},isNumber:function(a){return typeof a==="number"&&isFinite(a);
},isObject:function(a){return(a&&(typeof a==="object"||YAHOO.lang.isFunction(a)))||false;},isString:function(a){return typeof a==="string";},isUndefined:function(a){return typeof a==="undefined";
},hasOwnProperty:function(a,b){if(Object.prototype.hasOwnProperty){return a.hasOwnProperty(b);}return !YAHOO.lang.isUndefined(a[b])&&a.constructor.prototype[b]!==a[b];
},_IEEnumFix:function(e,g){if(YAHOO.env.ua.ie){var c=["toString","valueOf"],a;for(a=0;a<c.length;a=a+1){var b=c[a],d=g[b];if(YAHOO.lang.isFunction(d)&&d!=Object.prototype[b]){e[b]=d;
}}}},extend:function(c,b,d){if(!b||!c){throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");}var e=function(){};e.prototype=b.prototype;
c.prototype=new e();c.prototype.constructor=c;c.superclass=b.prototype;if(b.prototype.constructor==Object.prototype.constructor){b.prototype.constructor=b;}if(d){for(var a in d){c.prototype[a]=d[a];
}YAHOO.lang._IEEnumFix(c.prototype,d);}},augmentObject:function(c,d){if(!d||!c){throw new Error("Absorb failed, verify dependencies.");}var a=arguments,e,b,g=a[2];
if(g&&g!==true){for(e=2;e<a.length;e=e+1){c[a[e]]=d[a[e]];}}else{for(b in d){if(g||!c[b]){c[b]=d[b];}}YAHOO.lang._IEEnumFix(c,d);}},augmentProto:function(b,c){if(!c||!b){throw new Error("Augment failed, verify dependencies.");
}var a=[b.prototype,c.prototype];for(var d=2;d<arguments.length;d=d+1){a.push(arguments[d]);}YAHOO.lang.augmentObject.apply(this,a);},dump:function(d,k){var b=YAHOO.lang,a,l,g=[],e="{...}",c="f(){...}",h=", ",m=" => ";
if(!b.isObject(d)){return d+"";}else{if(d instanceof Date||("nodeType" in d&&"tagName" in d)){return d;}else{if(b.isFunction(d)){return c;}}}k=(b.isNumber(k))?k:3;
if(b.isArray(d)){g.push("[");for(a=0,l=d.length;a<l;a=a+1){if(b.isObject(d[a])){g.push((k>0)?b.dump(d[a],k-1):e);}else{g.push(d[a]);}g.push(h);}if(g.length>1){g.pop();
}g.push("]");}else{g.push("{");for(a in d){if(b.hasOwnProperty(d,a)){g.push(a+m);if(b.isObject(d[a])){g.push((k>0)?b.dump(d[a],k-1):e);}else{g.push(d[a]);}g.push(h);
}}if(g.length>1){g.pop();}g.push("}");}return g.join("");},substitute:function(e,c,o){var r,s,t,l,k,g,a=YAHOO.lang,m=[],b,q="dump",n=" ",d="{",h="}";for(;;){r=e.lastIndexOf(d);
if(r<0){break;}s=e.indexOf(h,r);if(r+1>=s){break;}b=e.substring(r+1,s);l=b;g=null;t=l.indexOf(n);if(t>-1){g=l.substring(t+1);l=l.substring(0,t);}k=c[l];if(o){k=o(l,k,g);
}if(a.isObject(k)){if(a.isArray(k)){k=a.dump(k,parseInt(g,10));}else{g=g||"";var p=g.indexOf(q);if(p>-1){g=g.substring(4);}if(k.toString===Object.prototype.toString||p>-1){k=a.dump(k,parseInt(g,10));
}else{k=k.toString();}}}else{if(!a.isString(k)&&!a.isNumber(k)){k="~-"+m.length+"-~";m[m.length]=b;}}e=e.substring(0,r)+k+e.substring(s+1);}for(r=m.length-1;r>=0;
r=r-1){e=e.replace(new RegExp("~-"+r+"-~"),"{"+m[r]+"}","g");}return e;},trim:function(a){try{return a.replace(/^\s+|\s+$/g,"");}catch(b){return a;}},merge:function(){var b={},d=arguments;
for(var c=0,a=d.length;c<a;c=c+1){YAHOO.lang.augmentObject(b,d[c],true);}return b;},later:function(g,c,e,a,l){g=g||0;c=c||{};var b=e,h=a,k,d;if(YAHOO.lang.isString(e)){b=c[e];
}if(!b){throw new TypeError("method undefined");}if(!YAHOO.lang.isArray(h)){h=[a];}k=function(){b.apply(c,h);};d=(l)?setInterval(k,g):setTimeout(k,g);return{interval:l,cancel:function(){if(this.interval){clearInterval(d);
}else{clearTimeout(d);}}};},isValue:function(b){var a=YAHOO.lang;return(a.isObject(b)||a.isString(b)||a.isNumber(b)||a.isBoolean(b));}};YAHOO.util.Lang=YAHOO.lang;
YAHOO.lang.augment=YAHOO.lang.augmentProto;YAHOO.augment=YAHOO.lang.augmentProto;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.5.1",build:"984"});
YAHOO.util.CustomEvent=function(c,e,d,a){this.type=c;this.scope=e||window;this.silent=d;this.signature=a||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var b="_YUICEOnSubscribe";
if(c!==b){this.subscribeEvent=new YAHOO.util.CustomEvent(b,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(c,b,a){if(!c){throw new Error("Invalid callback for subscriber to '"+this.type+"'");
}if(this.subscribeEvent){this.subscribeEvent.fire(c,b,a);}this.subscribers.push(new YAHOO.util.Subscriber(c,b,a));},unsubscribe:function(d,b){if(!d){return this.unsubscribeAll();
}var c=false;for(var g=0,a=this.subscribers.length;g<a;++g){var e=this.subscribers[g];if(e&&e.contains(d,b)){this._delete(g);c=true;}}return c;},fire:function(){var a=this.subscribers.length;
if(!a&&this.silent){return true;}var k=[].slice.call(arguments,0),m=true,b,h=false;if(!this.silent){}var c=this.subscribers.slice();for(b=0;b<a;++b){var e=c[b];if(!e){h=true;
}else{if(!this.silent){}var g=e.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var d=null;if(k.length>0){d=k[0];}try{m=e.fn.call(g,d,e.obj);
}catch(n){this.lastError=n;}}else{try{m=e.fn.call(g,this.type,k,e.obj);}catch(l){this.lastError=l;}}if(false===m){if(!this.silent){}return false;}}}return true;},unsubscribeAll:function(){for(var a=this.subscribers.length-1;
a>-1;a--){this._delete(a);}this.subscribers=[];return a;},_delete:function(a){var b=this.subscribers[a];if(b){delete b.fn;delete b.obj;}this.subscribers.splice(a,1);
},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope;}};YAHOO.util.Subscriber=function(c,b,a){this.fn=c;this.obj=YAHOO.lang.isUndefined(b)?null:b;
this.override=a;};YAHOO.util.Subscriber.prototype.getScope=function(a){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}}return a;
};YAHOO.util.Subscriber.prototype.contains=function(a,b){if(b){return(this.fn==a&&this.obj==b);}else{return(this.fn==a);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }";
};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var h=false;var g=[];var e=[];var k=[];var m=[];var b=0;var l=[];var c=[];var d=0;var a={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};
return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!this._interval){var o=this;
var n=function(){o._tryPreloadAttach();};this._interval=setInterval(n,this.POLL_INTERVAL);}},onAvailable:function(q,t,p,r,s){var o=(YAHOO.lang.isString(q))?[q]:q;
for(var n=0;n<o.length;n=n+1){l.push({id:o[n],fn:t,obj:p,override:r,checkReady:s});}b=this.POLL_RETRYS;this.startInterval();},onContentReady:function(q,o,p,n){this.onAvailable(q,o,p,n,true);
},onDOMReady:function(o,p,n){if(this.DOMReady){setTimeout(function(){var q=window;if(n){if(n===true){q=p;}else{q=n;}}o.call(q,"DOMReady",[],p);},0);}else{this.DOMReadyEvent.subscribe(o,p,n);
}},addListener:function(z,B,q,v,A){if(!q||!q.call){return false;}if(this._isValidCollection(z)){var p=true;for(var u=0,s=z.length;u<s;++u){p=this.on(z[u],B,q,v,A)&&p;
}return p;}else{if(YAHOO.lang.isString(z)){var w=this.getEl(z);if(w){z=w;}else{this.onAvailable(z,function(){YAHOO.util.Event.on(z,B,q,v,A);});return true;}}}if(!z){return false;
}if("unload"==B&&v!==this){e[e.length]=[z,B,q,v,A];return true;}var n=z;if(A){if(A===true){n=v;}else{n=A;}}var y=function(C){return q.call(n,YAHOO.util.Event.getEvent(C,z),v);
};var o=[z,B,q,y,n,v,A];var t=g.length;g[t]=o;if(this.useLegacyEvent(z,B)){var x=this.getLegacyIndex(z,B);if(x==-1||z!=k[x][0]){x=k.length;c[z.id+B]=x;k[x]=[z,B,z["on"+B]];
m[x]=[];z["on"+B]=function(C){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(C),x);};}m[x].push(o);}else{try{this._simpleAdd(z,B,y,false);}catch(r){this.lastError=r;
this.removeListener(z,B,q);return false;}}return true;},fireLegacyEvent:function(s,u){var q=true,w,o,p,n,r;o=m[u].slice();for(var v=0,t=o.length;v<t;++v){p=o[v];
if(p&&p[this.WFN]){n=p[this.ADJ_SCOPE];r=p[this.WFN].call(n,s);q=(q&&r);}}w=k[u];if(w&&w[2]){w[2](s);}return q;},getLegacyIndex:function(n,p){var o=this.generateId(n)+p;
if(typeof c[o]=="undefined"){return -1;}else{return c[o];}},useLegacyEvent:function(n,p){if(this.webkit&&("click"==p||"dblclick"==p)){var o=parseInt(this.webkit,10);
if(!isNaN(o)&&o<418){return true;}}return false;},removeListener:function(x,y,p){var u,r,n;if(typeof x=="string"){x=this.getEl(x);}else{if(this._isValidCollection(x)){var o=true;
for(u=x.length-1;u>-1;u--){o=(this.removeListener(x[u],y,p)&&o);}return o;}}if(!p||!p.call){return this.purgeElement(x,false,y);}if("unload"==y){for(u=e.length-1;
u>-1;u--){n=e[u];if(n&&n[0]==x&&n[1]==y&&n[2]==p){e.splice(u,1);return true;}}return false;}var t=null;var s=arguments[3];if("undefined"===typeof s){s=this._getCacheIndex(x,y,p);
}if(s>=0){t=g[s];}if(!x||!t){return false;}if(this.useLegacyEvent(x,y)){var v=this.getLegacyIndex(x,y);var w=m[v];if(w){for(u=0,r=w.length;u<r;++u){n=w[u];if(n&&n[this.EL]==x&&n[this.TYPE]==y&&n[this.FN]==p){w.splice(u,1);
break;}}}}else{try{this._simpleRemove(x,y,t[this.WFN],false);}catch(q){this.lastError=q;return false;}}delete g[s][this.WFN];delete g[s][this.FN];g.splice(s,1);return true;
},getTarget:function(p,n){var o=p.target||p.srcElement;return this.resolveTextNode(o);},resolveTextNode:function(n){try{if(n&&3==n.nodeType){return n.parentNode;
}}catch(o){}return n;},getPageX:function(n){var o=n.pageX;if(!o&&0!==o){o=n.clientX||0;if(this.isIE){o+=this._getScrollLeft();}}return o;},getPageY:function(o){var n=o.pageY;
if(!n&&0!==n){n=o.clientY||0;if(this.isIE){n+=this._getScrollTop();}}return n;},getXY:function(n){return[this.getPageX(n),this.getPageY(n)];},getRelatedTarget:function(n){var o=n.relatedTarget;
if(!o){if(n.type=="mouseout"){o=n.toElement;}else{if(n.type=="mouseover"){o=n.fromElement;}}}return this.resolveTextNode(o);},getTime:function(p){if(!p.time){var n=new Date().getTime();
try{p.time=n;}catch(o){this.lastError=o;return n;}}return p.time;},stopEvent:function(n){this.stopPropagation(n);this.preventDefault(n);},stopPropagation:function(n){if(n.stopPropagation){n.stopPropagation();
}else{n.cancelBubble=true;}},preventDefault:function(n){if(n.preventDefault){n.preventDefault();}else{n.returnValue=false;}},getEvent:function(q,o){var n=q||window.event;
if(!n){var p=this.getEvent.caller;while(p){n=p.arguments[0];if(n&&Event==n.constructor){break;}p=p.caller;}}return n;},getCharCode:function(n){var o=n.keyCode||n.charCode||0;
if(YAHOO.env.ua.webkit&&(o in a)){o=a[o];}return o;},_getCacheIndex:function(q,p,r){for(var s=0,n=g.length;s<n;s=s+1){var o=g[s];if(o&&o[this.FN]==r&&o[this.EL]==q&&o[this.TYPE]==p){return s;
}}return -1;},generateId:function(o){var n=o.id;if(!n){n="yuievtautoid-"+d;++d;o.id=n;}return n;},_isValidCollection:function(n){try{return(n&&typeof n!=="string"&&n.length&&!n.tagName&&!n.alert&&typeof n[0]!=="undefined");
}catch(o){return false;}},elCache:{},getEl:function(n){return(typeof n==="string")?document.getElementById(n):n;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(n){if(!h){h=true;
var o=YAHOO.util.Event;o._ready();o._tryPreloadAttach();}},_ready:function(n){var o=YAHOO.util.Event;if(!o.DOMReady){o.DOMReady=true;o.DOMReadyEvent.fire();o._simpleRemove(document,"DOMContentLoaded",o._ready);
}},_tryPreloadAttach:function(){if(l.length===0){b=0;clearInterval(this._interval);this._interval=null;return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();
return;}}this.locked=true;var q=!h;if(!q){q=(b>0&&l.length>0);}var r=[];var p=function(w,v){var x=w;if(v.override){if(v.override===true){x=v.obj;}else{x=v.override;
}}v.fn.call(x,v.obj);};var n,o,s,t,u=[];for(n=0,o=l.length;n<o;n=n+1){s=l[n];if(s){t=this.getEl(s.id);if(t){if(s.checkReady){if(h||t.nextSibling||!q){u.push(s);l[n]=null;
}}else{p(t,s);l[n]=null;}}else{r.push(s);}}}for(n=0,o=u.length;n<o;n=n+1){s=u[n];p(this.getEl(s.id),s);}b--;if(q){for(n=l.length-1;n>-1;n--){s=l[n];if(!s||!s.id){l.splice(n,1);
}}this.startInterval();}else{clearInterval(this._interval);this._interval=null;}this.locked=false;},purgeElement:function(s,r,p){var u=(YAHOO.lang.isString(s))?this.getEl(s):s;
var q=this.getListeners(u,p),t,o;if(q){for(t=q.length-1;t>-1;t--){var n=q[t];this.removeListener(u,n.type,n.fn);}}if(r&&u&&u.childNodes){for(t=0,o=u.childNodes.length;
t<o;++t){this.purgeElement(u.childNodes[t],r,p);}}},getListeners:function(u,w){var r=[],v;if(!w){v=[g,e];}else{if(w==="unload"){v=[e];}else{v=[g];}}var p=(YAHOO.lang.isString(u))?this.getEl(u):u;
for(var s=0;s<v.length;s=s+1){var n=v[s];if(n){for(var q=0,o=n.length;q<o;++q){var t=n[q];if(t&&t[this.EL]===p&&(!w||w===t[this.TYPE])){r.push({type:t[this.TYPE],fn:t[this.FN],obj:t[this.OBJ],adjust:t[this.OVERRIDE],scope:t[this.ADJ_SCOPE],index:q});
}}}}return(r.length)?r:null;},_unload:function(p){var v=YAHOO.util.Event,s,t,u,q,r,o=e.slice();for(s=0,q=e.length;s<q;++s){u=o[s];if(u){var n=window;if(u[v.ADJ_SCOPE]){if(u[v.ADJ_SCOPE]===true){n=u[v.UNLOAD_OBJ];
}else{n=u[v.ADJ_SCOPE];}}u[v.FN].call(n,v.getEvent(p,u[v.EL]),u[v.UNLOAD_OBJ]);o[s]=null;u=null;n=null;}}e=null;if(g){for(t=g.length-1;t>-1;t--){u=g[t];if(u){v.removeListener(u[v.EL],u[v.TYPE],u[v.FN],t);
}}u=null;}k=null;v._simpleRemove(window,"unload",v._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];
},_getScroll:function(){var o=document.documentElement,n=document.body;if(o&&(o.scrollTop||o.scrollLeft)){return[o.scrollTop,o.scrollLeft];}else{if(n){return[n.scrollTop,n.scrollLeft];
}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(q,p,n,o){q.addEventListener(p,n,(o));};}else{if(window.attachEvent){return function(q,p,n,o){q.attachEvent("on"+p,n);
};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(q,p,n,o){q.removeEventListener(p,n,(o));};}else{if(window.detachEvent){return function(n,p,o){n.detachEvent("on"+p,o);
};}else{return function(){};}}}()};}();(function(){var a=YAHOO.util.Event;a.on=a.addListener;if(a.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);
var b=document.createElement("p");a._dri=setInterval(function(){try{b.doScroll("left");clearInterval(a._dri);a._dri=null;a._ready();b=null;}catch(c){}},a.POLL_INTERVAL);
}else{if(a.webkit&&a.webkit<525){a._dri=setInterval(function(){var c=document.readyState;if("loaded"==c||"complete"==c){clearInterval(a._dri);a._dri=null;a._ready();
}},a.POLL_INTERVAL);}else{a._simpleAdd(document,"DOMContentLoaded",a._ready);}}a._simpleAdd(window,"load",a._load);a._simpleAdd(window,"unload",a._unload);a._tryPreloadAttach();
})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,e,b,c){this.__yui_events=this.__yui_events||{};
var d=this.__yui_events[a];if(d){d.subscribe(e,b,c);}else{this.__yui_subscribers=this.__yui_subscribers||{};var g=this.__yui_subscribers;if(!g[a]){g[a]=[];}g[a].push({fn:e,obj:b,override:c});
}},unsubscribe:function(g,d,b){this.__yui_events=this.__yui_events||{};var a=this.__yui_events;if(g){var c=a[g];if(c){return c.unsubscribe(d,b);}}else{var h=true;
for(var e in a){if(YAHOO.lang.hasOwnProperty(a,e)){h=h&&a[e].unsubscribe(d,b);}}return h;}return false;},unsubscribeAll:function(a){return this.unsubscribe(a);},createEvent:function(h,a){this.__yui_events=this.__yui_events||{};
var d=a||{};var e=this.__yui_events;if(e[h]){}else{var g=d.scope||this;var l=(d.silent);var c=new YAHOO.util.CustomEvent(h,g,l,YAHOO.util.CustomEvent.FLAT);e[h]=c;
if(d.onSubscribeCallback){c.subscribeEvent.subscribe(d.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var k=this.__yui_subscribers[h];if(k){for(var b=0;
b<k.length;++b){c.subscribe(k[b].fn,k[b].obj,k[b].override);}}}return e[h];},fireEvent:function(d,e,a,g){this.__yui_events=this.__yui_events||{};var b=this.__yui_events[d];
if(!b){return null;}var h=[];for(var c=1;c<arguments.length;++c){h.push(arguments[c]);}return b.fire.apply(b,h);},hasEvent:function(a){if(this.__yui_events){if(this.__yui_events[a]){return true;
}}return false;}};YAHOO.util.KeyListener=function(a,b,g,e){if(!a){}else{if(!b){}else{if(!g){}}}if(!e){e=YAHOO.util.KeyListener.KEYDOWN;}var d=new YAHOO.util.CustomEvent("keyPressed");
this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof a=="string"){a=document.getElementById(a);
}if(typeof g=="function"){d.subscribe(g);}else{d.subscribe(g.fn,g.scope,g.correctScope);}function c(h,k){if(!b.shift){b.shift=false;}if(!b.alt){b.alt=false;}if(!b.ctrl){b.ctrl=false;
}if(h.shiftKey==b.shift&&h.altKey==b.alt&&h.ctrlKey==b.ctrl){var m;if(b.keys instanceof Array){for(var l=0;l<b.keys.length;l++){m=b.keys[l];if(m==h.charCode){d.fire(h.charCode,h);
break;}else{if(m==h.keyCode){d.fire(h.keyCode,h);break;}}}}else{m=b.keys;if(m==h.charCode){d.fire(h.charCode,h);}else{if(m==h.keyCode){d.fire(h.keyCode,h);}}}}}this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(a,e,c);
this.enabledEvent.fire(b);}this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(a,e,c);this.disabledEvent.fire(b);}this.enabled=false;
};this.toString=function(){return"KeyListener ["+b.keys+"] "+a.tagName+(a.id?"["+a.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";
YAHOO.util.KeyListener.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};
YAHOO.register("event",YAHOO.util.Event,{version:"2.5.1",build:"984"});(function(){var c=YAHOO.util,l,n,m={},q={},h=window.document;YAHOO.env._id_counter=YAHOO.env._id_counter||0;
var b=YAHOO.env.ua.opera,k=YAHOO.env.ua.webkit,d=YAHOO.env.ua.gecko,p=YAHOO.env.ua.ie;var r={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i};
var g=function(t){if(!r.HYPHEN.test(t)){return t;}if(m[t]){return m[t];}var s=t;while(r.HYPHEN.exec(s)){s=s.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());
}m[t]=s;return s;};var e=function(s){var t=q[s];if(!t){t=new RegExp("(?:^|\\s+)"+s+"(?:\\s+|$)");q[s]=t;}return t;};if(h.defaultView&&h.defaultView.getComputedStyle){l=function(v,s){var t=null;
if(s=="float"){s="cssFloat";}var u=v.ownerDocument.defaultView.getComputedStyle(v,"");if(u){t=u[g(s)];}return v.style[s]||t;};}else{if(h.documentElement.currentStyle&&p){l=function(w,u){switch(g(u)){case"opacity":var s=100;
try{s=w.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(t){try{s=w.filters("alpha").opacity;}catch(t){}}return s/100;case"float":u="styleFloat";default:var v=w.currentStyle?w.currentStyle[u]:null;
return(w.style[u]||v);}};}else{l=function(t,s){return t.style[s];};}}if(p){n=function(u,t,s){switch(t){case"opacity":if(YAHOO.lang.isString(u.style.filter)){u.style.filter="alpha(opacity="+s*100+")";
if(!u.currentStyle||!u.currentStyle.hasLayout){u.style.zoom=1;}}break;case"float":t="styleFloat";default:u.style[t]=s;}};}else{n=function(u,t,s){if(t=="float"){t="cssFloat";
}u.style[t]=s;};}var a=function(t,s){return t&&t.nodeType==1&&(!s||s(t));};YAHOO.util.Dom={get:function(t){if(t&&(t.nodeType||t.item)){return t;}if(YAHOO.lang.isString(t)||!t){return h.getElementById(t);
}if(t.length!==undefined){var s=[];for(var u=0,v=t.length;u<v;++u){s[s.length]=c.Dom.get(t[u]);}return s;}return t;},getStyle:function(u,s){s=g(s);var t=function(v){return l(v,s);
};return c.Dom.batch(u,t,c.Dom,true);},setStyle:function(v,t,s){t=g(t);var u=function(w){n(w,t,s);};c.Dom.batch(v,u,c.Dom,true);},getXY:function(t){var s=function(u){if((u.parentNode===null||u.offsetParent===null||this.getStyle(u,"display")=="none")&&u!=u.ownerDocument.body){return false;
}return o(u);};return c.Dom.batch(t,s,c.Dom,true);},getX:function(t){var s=function(u){return c.Dom.getXY(u)[0];};return c.Dom.batch(t,s,c.Dom,true);},getY:function(t){var s=function(u){return c.Dom.getXY(u)[1];
};return c.Dom.batch(t,s,c.Dom,true);},setXY:function(v,s,t){var u=function(x){var y=this.getStyle(x,"position");if(y=="static"){this.setStyle(x,"position","relative");
y="relative";}var A=this.getXY(x);if(A===false){return false;}var w=[parseInt(this.getStyle(x,"left"),10),parseInt(this.getStyle(x,"top"),10)];if(isNaN(w[0])){w[0]=(y=="relative")?0:x.offsetLeft;
}if(isNaN(w[1])){w[1]=(y=="relative")?0:x.offsetTop;}if(s[0]!==null){x.style.left=s[0]-A[0]+w[0]+"px";}if(s[1]!==null){x.style.top=s[1]-A[1]+w[1]+"px";}if(!t){var z=this.getXY(x);
if((s[0]!==null&&z[0]!=s[0])||(s[1]!==null&&z[1]!=s[1])){this.setXY(x,s,true);}}};c.Dom.batch(v,u,c.Dom,true);},setX:function(s,t){c.Dom.setXY(s,[t,null]);},setY:function(t,s){c.Dom.setXY(t,[null,s]);
},getRegion:function(t){var s=function(v){if((v.parentNode===null||v.offsetParent===null||this.getStyle(v,"display")=="none")&&v!=v.ownerDocument.body){return false;
}var u=c.Region.getRegion(v);return u;};return c.Dom.batch(t,s,c.Dom,true);},getClientWidth:function(){return c.Dom.getViewportWidth();},getClientHeight:function(){return c.Dom.getViewportHeight();
},getElementsByClassName:function(w,s,v,u){s=s||"*";v=(v)?c.Dom.get(v):null||h;if(!v){return[];}var z=[],A=v.getElementsByTagName(s),t=e(w);for(var y=0,x=A.length;
y<x;++y){if(t.test(A[y].className)){z[z.length]=A[y];if(u){u.call(A[y],A[y]);}}}return z;},hasClass:function(t,u){var v=e(u);var s=function(w){return v.test(w.className);
};return c.Dom.batch(t,s,c.Dom,true);},addClass:function(t,u){var s=function(v){if(this.hasClass(v,u)){return false;}v.className=YAHOO.lang.trim([v.className,u].join(" "));
return true;};return c.Dom.batch(t,s,c.Dom,true);},removeClass:function(t,u){var v=e(u);var s=function(x){if(!u||!this.hasClass(x,u)){return false;}var w=x.className;
x.className=w.replace(v," ");if(this.hasClass(x,u)){this.removeClass(x,u);}x.className=YAHOO.lang.trim(x.className);return true;};return c.Dom.batch(t,s,c.Dom,true);
},replaceClass:function(t,v,w){if(!w||v===w){return false;}var u=e(v);var s=function(x){if(!this.hasClass(x,v)){this.addClass(x,w);return true;}x.className=x.className.replace(u," "+w+" ");
if(this.hasClass(x,v)){this.replaceClass(x,v,w);}x.className=YAHOO.lang.trim(x.className);return true;};return c.Dom.batch(t,s,c.Dom,true);},generateId:function(u,s){s=s||"yui-gen";
var t=function(w){if(w&&w.id){return w.id;}var v=s+YAHOO.env._id_counter++;if(w){w.id=v;}return v;};return c.Dom.batch(u,t,c.Dom,true)||t.apply(c.Dom,arguments);
},isAncestor:function(t,s){t=c.Dom.get(t);s=c.Dom.get(s);if(!t||!s){return false;}if(t.contains&&s.nodeType&&!k){return t.contains(s);}else{if(t.compareDocumentPosition&&s.nodeType){return !!(t.compareDocumentPosition(s)&16);
}else{if(s.nodeType){return !!this.getAncestorBy(s,function(u){return u==t;});}}}return false;},inDocument:function(s){return this.isAncestor(h.documentElement,s);
},getElementsBy:function(s,y,x,v){y=y||"*";x=(x)?c.Dom.get(x):null||h;if(!x){return[];}var w=[],t=x.getElementsByTagName(y);for(var u=0,z=t.length;u<z;++u){if(s(t[u])){w[w.length]=t[u];
if(v){v(t[u]);}}}return w;},batch:function(v,s,t,x){v=(v&&(v.tagName||v.item))?v:c.Dom.get(v);if(!v||!s){return false;}var w=(x)?t:window;if(v.tagName||v.length===undefined){return s.call(w,v,t);
}var u=[];for(var y=0,z=v.length;y<z;++y){u[u.length]=s.call(w,v[y],t);}return u;},getDocumentHeight:function(){var s=(h.compatMode!="CSS1Compat")?h.body.scrollHeight:h.documentElement.scrollHeight;
var t=Math.max(s,c.Dom.getViewportHeight());return t;},getDocumentWidth:function(){var s=(h.compatMode!="CSS1Compat")?h.body.scrollWidth:h.documentElement.scrollWidth;
var t=Math.max(s,c.Dom.getViewportWidth());return t;},getViewportHeight:function(){var t=self.innerHeight;var s=h.compatMode;if((s||p)&&!b){t=(s=="CSS1Compat")?h.documentElement.clientHeight:h.body.clientHeight;
}return t;},getViewportWidth:function(){var t=self.innerWidth;var s=h.compatMode;if(s||p){t=(s=="CSS1Compat")?h.documentElement.clientWidth:h.body.clientWidth;}return t;
},getAncestorBy:function(t,s){while(t=t.parentNode){if(a(t,s)){return t;}}return null;},getAncestorByClassName:function(t,u){t=c.Dom.get(t);if(!t){return null;}var s=function(v){return c.Dom.hasClass(v,u);
};return c.Dom.getAncestorBy(t,s);},getAncestorByTagName:function(t,u){t=c.Dom.get(t);if(!t){return null;}var s=function(v){return v.tagName&&v.tagName.toUpperCase()==u.toUpperCase();
};return c.Dom.getAncestorBy(t,s);},getPreviousSiblingBy:function(t,s){while(t){t=t.previousSibling;if(a(t,s)){return t;}}return null;},getPreviousSibling:function(s){s=c.Dom.get(s);
if(!s){return null;}return c.Dom.getPreviousSiblingBy(s);},getNextSiblingBy:function(t,s){while(t){t=t.nextSibling;if(a(t,s)){return t;}}return null;},getNextSibling:function(s){s=c.Dom.get(s);
if(!s){return null;}return c.Dom.getNextSiblingBy(s);},getFirstChildBy:function(u,s){var t=(a(u.firstChild,s))?u.firstChild:null;return t||c.Dom.getNextSiblingBy(u.firstChild,s);
},getFirstChild:function(t,s){t=c.Dom.get(t);if(!t){return null;}return c.Dom.getFirstChildBy(t);},getLastChildBy:function(u,s){if(!u){return null;}var t=(a(u.lastChild,s))?u.lastChild:null;
return t||c.Dom.getPreviousSiblingBy(u.lastChild,s);},getLastChild:function(s){s=c.Dom.get(s);return c.Dom.getLastChildBy(s);},getChildrenBy:function(u,s){var t=c.Dom.getFirstChildBy(u,s);
var v=t?[t]:[];c.Dom.getNextSiblingBy(t,function(w){if(!s||s(w)){v[v.length]=w;}return false;});return v;},getChildren:function(s){s=c.Dom.get(s);if(!s){}return c.Dom.getChildrenBy(s);
},getDocumentScrollLeft:function(s){s=s||h;return Math.max(s.documentElement.scrollLeft,s.body.scrollLeft);},getDocumentScrollTop:function(s){s=s||h;return Math.max(s.documentElement.scrollTop,s.body.scrollTop);
},insertBefore:function(s,t){s=c.Dom.get(s);t=c.Dom.get(t);if(!s||!t||!t.parentNode){return null;}return t.parentNode.insertBefore(s,t);},insertAfter:function(s,t){s=c.Dom.get(s);
t=c.Dom.get(t);if(!s||!t||!t.parentNode){return null;}if(t.nextSibling){return t.parentNode.insertBefore(s,t.nextSibling);}else{return t.parentNode.appendChild(s);
}},getClientRegion:function(){var t=c.Dom.getDocumentScrollTop(),u=c.Dom.getDocumentScrollLeft(),s=c.Dom.getViewportWidth()+u,v=c.Dom.getViewportHeight()+t;return new c.Region(t,s,v,u);
}};var o=function(){if(h.documentElement.getBoundingClientRect){return function(t){var s=t.getBoundingClientRect();var u=t.ownerDocument;return[s.left+c.Dom.getDocumentScrollLeft(u),s.top+c.Dom.getDocumentScrollTop(u)];
};}else{return function(t){var s=[t.offsetLeft,t.offsetTop];var u=t.offsetParent;var v=(k&&c.Dom.getStyle(t,"position")=="absolute"&&t.offsetParent==t.ownerDocument.body);
if(u!=t){while(u){s[0]+=u.offsetLeft;s[1]+=u.offsetTop;if(!v&&k&&c.Dom.getStyle(u,"position")=="absolute"){v=true;}u=u.offsetParent;}}if(v){s[0]-=t.ownerDocument.body.offsetLeft;
s[1]-=t.ownerDocument.body.offsetTop;}u=t.parentNode;while(u.tagName&&!r.ROOT_TAG.test(u.tagName)){if(u.scrollTop||u.scrollLeft){if(!r.OP_SCROLL.test(c.Dom.getStyle(u,"display"))){if(!b||c.Dom.getStyle(u,"overflow")!=="visible"){s[0]-=u.scrollLeft;
s[1]-=u.scrollTop;}}}u=u.parentNode;}return s;};}}();})();YAHOO.util.Region=function(c,b,a,d){this.top=c;this[1]=c;this.right=b;this.bottom=a;this.left=d;this[0]=d;
};YAHOO.util.Region.prototype.contains=function(a){return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));
};YAHOO.util.Region.prototype.intersect=function(b){var d=Math.max(this.top,b.top);var c=Math.min(this.right,b.right);var a=Math.min(this.bottom,b.bottom);var e=Math.max(this.left,b.left);
if(a>=d&&c>=e){return new YAHOO.util.Region(d,c,a,e);}else{return null;}};YAHOO.util.Region.prototype.union=function(b){var d=Math.min(this.top,b.top);var c=Math.max(this.right,b.right);
var a=Math.max(this.bottom,b.bottom);var e=Math.min(this.left,b.left);return new YAHOO.util.Region(d,c,a,e);};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");
};YAHOO.util.Region.getRegion=function(d){var b=YAHOO.util.Dom.getXY(d);var e=b[1];var c=b[0]+d.offsetWidth;var a=b[1]+d.offsetHeight;var g=b[0];return new YAHOO.util.Region(e,c,a,g);
};YAHOO.util.Point=function(a,b){if(YAHOO.lang.isArray(a)){b=a[1];a=a[0];}this.x=this.right=this.left=this[0]=a;this.y=this.top=this.bottom=this[1]=b;};YAHOO.util.Point.prototype=new YAHOO.util.Region();
YAHOO.register("dom",YAHOO.util.Dom,{version:"2.5.1",build:"984"});YAHOO.widget.LogMsg=function(a){this.msg=this.time=this.category=this.source=this.sourceDetail=null;
if(a&&(a.constructor==Object)){for(var b in a){this[b]=a[b];}}};YAHOO.widget.LogWriter=function(a){if(!a){YAHOO.log("Could not instantiate LogWriter due to invalid source.","error","LogWriter");
return;}this._source=a;};YAHOO.widget.LogWriter.prototype.toString=function(){return"LogWriter "+this._sSource;};YAHOO.widget.LogWriter.prototype.log=function(a,b){YAHOO.widget.Logger.log(a,b,this._source);
};YAHOO.widget.LogWriter.prototype.getSource=function(){return this._sSource;};YAHOO.widget.LogWriter.prototype.setSource=function(a){if(!a){YAHOO.log("Could not set source due to invalid source.","error",this.toString());
return;}else{this._sSource=a;}};YAHOO.widget.LogWriter.prototype._source=null;YAHOO.widget.LogReader=function(c,a){this._sName=YAHOO.widget.LogReader._index;YAHOO.widget.LogReader._index++;
this._buffer=[];this._filterCheckboxes={};this._lastTime=YAHOO.widget.Logger.getStartTime();if(a&&(a.constructor==Object)){for(var b in a){this[b]=a[b];}}this._initContainerEl(c);
if(!this._elContainer){YAHOO.log("Could not instantiate LogReader due to an invalid container element "+c,"error",this.toString());return;}this._initHeaderEl();this._initConsoleEl();
this._initFooterEl();this._initDragDrop();this._initCategories();this._initSources();YAHOO.widget.Logger.newLogEvent.subscribe(this._onNewLog,this);YAHOO.widget.Logger.logResetEvent.subscribe(this._onReset,this);
YAHOO.widget.Logger.categoryCreateEvent.subscribe(this._onCategoryCreate,this);YAHOO.widget.Logger.sourceCreateEvent.subscribe(this._onSourceCreate,this);this._filterLogs();
YAHOO.log("LogReader initialized",null,this.toString());};YAHOO.lang.augmentObject(YAHOO.widget.LogReader,{_index:0,ENTRY_TEMPLATE:(function(){var a=document.createElement("pre");
YAHOO.util.Dom.addClass(a,"yui-log-entry");return a;})(),VERBOSE_TEMPLATE:"<span class='{category}'>{label}</span>{totalTime}ms (+{elapsedTime}) {localTime}:</p><p>{sourceAndDetail}</p><p>{message}</p>",BASIC_TEMPLATE:"<p><span class='{category}'>{label}</span>{totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}</p>"});
YAHOO.widget.LogReader.prototype={logReaderEnabled:true,width:null,height:null,top:null,left:null,right:null,bottom:null,fontSize:null,footerEnabled:true,verboseOutput:true,entryFormat:null,newestOnTop:true,outputBuffer:100,thresholdMax:500,thresholdMin:100,isCollapsed:false,isPaused:false,draggable:true,toString:function(){return"LogReader instance"+this._sName;
},pause:function(){this.isPaused=true;this._btnPause.value="Resume";this._timeout=null;this.logReaderEnabled=false;},resume:function(){this.isPaused=false;this._btnPause.value="Pause";
this.logReaderEnabled=true;this._printBuffer();},hide:function(){this._elContainer.style.display="none";},show:function(){this._elContainer.style.display="block";
},collapse:function(){this._elConsole.style.display="none";if(this._elFt){this._elFt.style.display="none";}this._btnCollapse.value="Expand";this.isCollapsed=true;
},expand:function(){this._elConsole.style.display="block";if(this._elFt){this._elFt.style.display="block";}this._btnCollapse.value="Collapse";this.isCollapsed=false;
},getCheckbox:function(a){return this._filterCheckboxes[a];},getCategories:function(){return this._categoryFilters;},showCategory:function(d){var b=this._categoryFilters;
if(b.indexOf){if(b.indexOf(d)>-1){return;}}else{for(var a=0;a<b.length;a++){if(b[a]===d){return;}}}this._categoryFilters.push(d);this._filterLogs();var c=this.getCheckbox(d);
if(c){c.checked=true;}},hideCategory:function(d){var b=this._categoryFilters;for(var a=0;a<b.length;a++){if(d==b[a]){b.splice(a,1);break;}}this._filterLogs();var c=this.getCheckbox(d);
if(c){c.checked=false;}},getSources:function(){return this._sourceFilters;},showSource:function(a){var b=this._sourceFilters;if(b.indexOf){if(b.indexOf(a)>-1){return;
}}else{for(var d=0;d<b.length;d++){if(a==b[d]){return;}}}b.push(a);this._filterLogs();var c=this.getCheckbox(a);if(c){c.checked=true;}},hideSource:function(a){var b=this._sourceFilters;
for(var d=0;d<b.length;d++){if(a==b[d]){b.splice(d,1);break;}}this._filterLogs();var c=this.getCheckbox(a);if(c){c.checked=false;}},clearConsole:function(){this._timeout=null;
this._buffer=[];this._consoleMsgCount=0;var a=this._elConsole;a.innerHTML="";},setTitle:function(a){this._title.innerHTML=this.html2Text(a);},getLastTime:function(){return this._lastTime;
},formatMsg:function(d){var e=YAHOO.widget.LogReader,a=this.entryFormat||(this.verboseOutput?e.VERBOSE_TEMPLATE:e.BASIC_TEMPLATE),c={category:d.category,label:d.category.substring(0,4).toUpperCase(),sourceAndDetail:d.sourceDetail?d.source+" "+d.sourceDetail:d.source,message:this.html2Text(d.msg||d.message||"")};
if(d.time&&d.time.getTime){c.localTime=d.time.toLocaleTimeString?d.time.toLocaleTimeString():d.time.toString();c.elapsedTime=d.time.getTime()-this.getLastTime();
c.totalTime=d.time.getTime()-YAHOO.widget.Logger.getStartTime();}var b=e.ENTRY_TEMPLATE.cloneNode(true);if(this.verboseOutput){b.className+=" yui-log-verbose";}b.innerHTML=YAHOO.lang.substitute(a,c);
return b;},html2Text:function(a){if(a){a+="";return a.replace(/&/g,"&#38;").replace(/</g,"&#60;").replace(/>/g,"&#62;");}return"";},_sName:null,_buffer:null,_consoleMsgCount:0,_lastTime:null,_timeout:null,_filterCheckboxes:null,_categoryFilters:null,_sourceFilters:null,_elContainer:null,_elHd:null,_elCollapse:null,_btnCollapse:null,_title:null,_elConsole:null,_elFt:null,_elBtns:null,_elCategoryFilters:null,_elSourceFilters:null,_btnPause:null,_btnClear:null,_initContainerEl:function(b){b=YAHOO.util.Dom.get(b);
if(b&&b.tagName&&(b.tagName.toLowerCase()=="div")){this._elContainer=b;YAHOO.util.Dom.addClass(this._elContainer,"yui-log");}else{this._elContainer=document.body.appendChild(document.createElement("div"));
YAHOO.util.Dom.addClass(this._elContainer,"yui-log");YAHOO.util.Dom.addClass(this._elContainer,"yui-log-container");var a=this._elContainer.style;if(this.width){a.width=this.width;
}if(this.right){a.right=this.right;}if(this.top){a.top=this.top;}if(this.left){a.left=this.left;a.right="auto";}if(this.bottom){a.bottom=this.bottom;a.top="auto";
}if(this.fontSize){a.fontSize=this.fontSize;}if(navigator.userAgent.toLowerCase().indexOf("opera")!=-1){document.body.style+="";}}},_initHeaderEl:function(){var a=this;
if(this._elHd){YAHOO.util.Event.purgeElement(this._elHd,true);this._elHd.innerHTML="";}this._elHd=this._elContainer.appendChild(document.createElement("div"));this._elHd.id="yui-log-hd"+this._sName;
this._elHd.className="yui-log-hd";this._elCollapse=this._elHd.appendChild(document.createElement("div"));this._elCollapse.className="yui-log-btns";this._btnCollapse=document.createElement("input");
this._btnCollapse.type="button";this._btnCollapse.className="yui-log-button";this._btnCollapse.value="Collapse";this._btnCollapse=this._elCollapse.appendChild(this._btnCollapse);
YAHOO.util.Event.addListener(a._btnCollapse,"click",a._onClickCollapseBtn,a);this._title=this._elHd.appendChild(document.createElement("h4"));this._title.innerHTML="Logger Console";
},_initConsoleEl:function(){if(this._elConsole){YAHOO.util.Event.purgeElement(this._elConsole,true);this._elConsole.innerHTML="";}this._elConsole=this._elContainer.appendChild(document.createElement("div"));
this._elConsole.className="yui-log-bd";if(this.height){this._elConsole.style.height=this.height;}},_initFooterEl:function(){var a=this;if(this.footerEnabled){if(this._elFt){YAHOO.util.Event.purgeElement(this._elFt,true);
this._elFt.innerHTML="";}this._elFt=this._elContainer.appendChild(document.createElement("div"));this._elFt.className="yui-log-ft";this._elBtns=this._elFt.appendChild(document.createElement("div"));
this._elBtns.className="yui-log-btns";this._btnPause=document.createElement("input");this._btnPause.type="button";this._btnPause.className="yui-log-button";this._btnPause.value="Pause";
this._btnPause=this._elBtns.appendChild(this._btnPause);YAHOO.util.Event.addListener(a._btnPause,"click",a._onClickPauseBtn,a);this._btnClear=document.createElement("input");
this._btnClear.type="button";this._btnClear.className="yui-log-button";this._btnClear.value="Clear";this._btnClear=this._elBtns.appendChild(this._btnClear);YAHOO.util.Event.addListener(a._btnClear,"click",a._onClickClearBtn,a);
this._elCategoryFilters=this._elFt.appendChild(document.createElement("div"));this._elCategoryFilters.className="yui-log-categoryfilters";this._elSourceFilters=this._elFt.appendChild(document.createElement("div"));
this._elSourceFilters.className="yui-log-sourcefilters";}},_initDragDrop:function(){if(YAHOO.util.DD&&this.draggable&&this._elHd){var a=new YAHOO.util.DD(this._elContainer);
a.setHandleElId(this._elHd.id);this._elHd.style.cursor="move";}},_initCategories:function(){this._categoryFilters=[];var b=YAHOO.widget.Logger.categories;for(var a=0;
a<b.length;a++){var c=b[a];this._categoryFilters.push(c);if(this._elCategoryFilters){this._createCategoryCheckbox(c);}}},_initSources:function(){this._sourceFilters=[];
var b=YAHOO.widget.Logger.sources;for(var c=0;c<b.length;c++){var a=b[c];this._sourceFilters.push(a);if(this._elSourceFilters){this._createSourceCheckbox(a);}}},_createCategoryCheckbox:function(g){var a=this;
if(this._elFt){var c=this._elCategoryFilters;var d=c.appendChild(document.createElement("span"));d.className="yui-log-filtergrp";var e=document.createElement("input");
e.id="yui-log-filter-"+g+this._sName;e.className="yui-log-filter-"+g;e.type="checkbox";e.category=g;e=d.appendChild(e);e.checked=true;YAHOO.util.Event.addListener(e,"click",a._onCheckCategory,a);
var b=d.appendChild(document.createElement("label"));b.htmlFor=e.id;b.className=g;b.innerHTML=g;this._filterCheckboxes[g]=e;}},_createSourceCheckbox:function(a){var d=this;
if(this._elFt){var b=this._elSourceFilters;var c=b.appendChild(document.createElement("span"));c.className="yui-log-filtergrp";var e=document.createElement("input");
e.id="yui-log-filter"+a+this._sName;e.className="yui-log-filter"+a;e.type="checkbox";e.source=a;e=c.appendChild(e);e.checked=true;YAHOO.util.Event.addListener(e,"click",d._onCheckSource,d);
var g=c.appendChild(document.createElement("label"));g.htmlFor=e.id;g.className=a;g.innerHTML=a;this._filterCheckboxes[a]=e;}},_filterLogs:function(){if(this._elConsole!==null){this.clearConsole();
this._printToConsole(YAHOO.widget.Logger.getStack());}},_printBuffer:function(){this._timeout=null;if(this._elConsole!==null){var c=this.thresholdMax;c=(c&&!isNaN(c))?c:500;
if(this._consoleMsgCount<c){var a=[];for(var b=0;b<this._buffer.length;b++){a[b]=this._buffer[b];}this._buffer=[];this._printToConsole(a);}else{this._filterLogs();
}if(!this.newestOnTop){this._elConsole.scrollTop=this._elConsole.scrollHeight;}}},_printToConsole:function(p){var c=p.length,l=document.createDocumentFragment(),g=[],e=this.thresholdMin,b=this._sourceFilters.length,k=this._categoryFilters.length,n,q,r,s,m;
if(isNaN(e)||(e>this.thresholdMax)){e=0;}n=(c>e)?(c-e):0;for(q=n;q<c;q++){var t=false;var o=false;var h=p[q];var d=h.source;var a=h.category;for(r=0;r<b;r++){if(d==this._sourceFilters[r]){o=true;
break;}}if(o){for(r=0;r<k;r++){if(a==this._categoryFilters[r]){t=true;break;}}}if(t){s=this.formatMsg(h);if(typeof s==="string"){g[g.length]=s;}else{l.insertBefore(s,this.newestOnTop?l.firstChild||null:null);
}this._consoleMsgCount++;this._lastTime=h.time.getTime();}}if(g.length){g.splice(0,0,this._elConsole.innerHTML);this._elConsole.innerHTML=this.newestOnTop?g.reverse().join(""):g.join("");
}else{if(l.firstChild){this._elConsole.insertBefore(l,this.newestOnTop?this._elConsole.firstChild||null:null);}}},_onCategoryCreate:function(b,c,a){var d=c[0];a._categoryFilters.push(d);
if(a._elFt){a._createCategoryCheckbox(d);}},_onSourceCreate:function(b,c,a){var d=c[0];a._sourceFilters.push(d);if(a._elFt){a._createSourceCheckbox(d);}},_onCheckCategory:function(a,c){var b=this.category;
if(!this.checked){c.hideCategory(b);}else{c.showCategory(b);}},_onCheckSource:function(a,c){var b=this.source;if(!this.checked){c.hideSource(b);}else{c.showSource(b);
}},_onClickCollapseBtn:function(a,b){if(!b.isCollapsed){b.collapse();}else{b.expand();}},_onClickPauseBtn:function(a,b){if(!b.isPaused){b.pause();}else{b.resume();
}},_onClickClearBtn:function(a,b){b.clearConsole();},_onNewLog:function(b,c,a){var d=c[0];a._buffer.push(d);if(a.logReaderEnabled===true&&a._timeout===null){a._timeout=setTimeout(function(){a._printBuffer();
},a.outputBuffer);}},_onReset:function(b,c,a){a._filterLogs();}};if(!YAHOO.widget.Logger){YAHOO.widget.Logger={loggerEnabled:true,_browserConsoleEnabled:false,categories:["info","warn","error","time","window"],sources:["global"],_stack:[],maxStackEntries:2500,_startTime:new Date().getTime(),_lastTime:null,_windowErrorsHandled:false,_origOnWindowError:null};
YAHOO.widget.Logger.log=function(c,l,k){if(this.loggerEnabled){if(!l){l="info";}else{l=l.toLocaleLowerCase();if(this._isNewCategory(l)){this._createNewCategory(l);
}}var b="global";var d=null;if(k){var a=k.indexOf(" ");if(a>0){b=k.substring(0,a);d=k.substring(a,k.length);}else{b=k;}if(this._isNewSource(b)){this._createNewSource(b);
}}var h=new Date();var e=new YAHOO.widget.LogMsg({msg:c,time:h,category:l,source:b,sourceDetail:d});var g=this._stack;var m=this.maxStackEntries;if(m&&!isNaN(m)&&(g.length>=m)){g.shift();
}g.push(e);this.newLogEvent.fire(e);if(this._browserConsoleEnabled){this._printToBrowserConsole(e);}return true;}else{return false;}};YAHOO.widget.Logger.reset=function(){this._stack=[];
this._startTime=new Date().getTime();this.loggerEnabled=true;this.log("Logger reset");this.logResetEvent.fire();};YAHOO.widget.Logger.getStack=function(){return this._stack;
};YAHOO.widget.Logger.getStartTime=function(){return this._startTime;};YAHOO.widget.Logger.disableBrowserConsole=function(){YAHOO.log("Logger output to the function console.log() has been disabled.");
this._browserConsoleEnabled=false;};YAHOO.widget.Logger.enableBrowserConsole=function(){this._browserConsoleEnabled=true;YAHOO.log("Logger output to the function console.log() has been enabled.");
};YAHOO.widget.Logger.handleWindowErrors=function(){if(!YAHOO.widget.Logger._windowErrorsHandled){if(window.error){YAHOO.widget.Logger._origOnWindowError=window.onerror;
}window.onerror=YAHOO.widget.Logger._onWindowError;YAHOO.widget.Logger._windowErrorsHandled=true;YAHOO.log("Logger handling of window.onerror has been enabled.");
}else{YAHOO.log("Logger handling of window.onerror had already been enabled.");}};YAHOO.widget.Logger.unhandleWindowErrors=function(){if(YAHOO.widget.Logger._windowErrorsHandled){if(YAHOO.widget.Logger._origOnWindowError){window.onerror=YAHOO.widget.Logger._origOnWindowError;
YAHOO.widget.Logger._origOnWindowError=null;}else{window.onerror=null;}YAHOO.widget.Logger._windowErrorsHandled=false;YAHOO.log("Logger handling of window.onerror has been disabled.");
}else{YAHOO.log("Logger handling of window.onerror had already been disabled.");}};YAHOO.widget.Logger.categoryCreateEvent=new YAHOO.util.CustomEvent("categoryCreate",this,true);
YAHOO.widget.Logger.sourceCreateEvent=new YAHOO.util.CustomEvent("sourceCreate",this,true);YAHOO.widget.Logger.newLogEvent=new YAHOO.util.CustomEvent("newLog",this,true);
YAHOO.widget.Logger.logResetEvent=new YAHOO.util.CustomEvent("logReset",this,true);YAHOO.widget.Logger._createNewCategory=function(a){this.categories.push(a);this.categoryCreateEvent.fire(a);
};YAHOO.widget.Logger._isNewCategory=function(b){for(var a=0;a<this.categories.length;a++){if(b==this.categories[a]){return false;}}return true;};YAHOO.widget.Logger._createNewSource=function(a){this.sources.push(a);
this.sourceCreateEvent.fire(a);};YAHOO.widget.Logger._isNewSource=function(a){if(a){for(var b=0;b<this.sources.length;b++){if(a==this.sources[b]){return false;}}return true;
}};YAHOO.widget.Logger._printToBrowserConsole=function(h){if(window.console&&console.log){var e=h.category;var g=h.category.substring(0,4).toUpperCase();var c=h.time;
var d;if(c.toLocaleTimeString){d=c.toLocaleTimeString();}else{d=c.toString();}var b=c.getTime();var k=(YAHOO.widget.Logger._lastTime)?(b-YAHOO.widget.Logger._lastTime):0;
YAHOO.widget.Logger._lastTime=b;var a=d+" ("+k+"ms): "+h.source+": ";console.log(a,h.msg);}};YAHOO.widget.Logger._onWindowError=function(a,c,d){try{YAHOO.widget.Logger.log(a+" ("+c+", line "+d+")","window");
if(YAHOO.widget.Logger._origOnWindowError){YAHOO.widget.Logger._origOnWindowError();}}catch(b){return false;}};YAHOO.widget.Logger.log("Logger initialized");}YAHOO.register("logger",YAHOO.widget.Logger,{version:"2.5.1",build:"984"});
(function(){var b=YAHOO.util;var a=function(e,g,d,c){if(!e){}this.init(e,g,d,c);};a.NAME="Anim";a.prototype={toString:function(){var d=this.getEl()||{};var c=d.id||d.tagName;
return(this.constructor.NAME+": "+c);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(e,c,d){return this.method(this.currentFrame,c,d-c,this.totalFrames);
},setAttribute:function(e,c,d){if(this.patterns.noNegatives.test(e)){c=(c>0)?c:0;}b.Dom.setStyle(this.getEl(),e,c+d);},getAttribute:function(k){var g=this.getEl();
var d=b.Dom.getStyle(g,k);if(d!=="auto"&&!this.patterns.offsetUnit.test(d)){return parseFloat(d);}var h=this.patterns.offsetAttribute.exec(k)||[];var c=!!(h[3]);
var e=!!(h[2]);if(e||(b.Dom.getStyle(g,"position")=="absolute"&&c)){d=g["offset"+h[0].charAt(0).toUpperCase()+h[0].substr(1)];}else{d=0;}return d;},getDefaultUnit:function(c){if(this.patterns.defaultUnit.test(c)){return"px";
}return"";},setRuntimeAttribute:function(k){var c;var h;var g=this.attributes;this.runtimeAttributes[k]={};var d=function(m){return(typeof m!=="undefined");};if(!d(g[k]["to"])&&!d(g[k]["by"])){return false;
}c=(d(g[k]["from"]))?g[k]["from"]:this.getAttribute(k);if(d(g[k]["to"])){h=g[k]["to"];}else{if(d(g[k]["by"])){if(c.constructor==Array){h=[];for(var e=0,l=c.length;
e<l;++e){h[e]=c[e]+g[k]["by"][e]*1;}}else{h=c+g[k]["by"]*1;}}}this.runtimeAttributes[k].start=c;this.runtimeAttributes[k].end=h;this.runtimeAttributes[k].unit=(d(g[k].unit))?g[k]["unit"]:this.getDefaultUnit(k);
return true;},init:function(o,h,k,d){var c=false;var n=null;var l=0;o=b.Dom.get(o);this.attributes=h||{};this.duration=!YAHOO.lang.isUndefined(k)?k:1;this.method=d||b.Easing.easeNone;
this.useSeconds=true;this.currentFrame=0;this.totalFrames=b.AnimMgr.fps;this.setEl=function(p){o=b.Dom.get(p);};this.getEl=function(){return o;};this.isAnimated=function(){return c;
};this.getStartTime=function(){return n;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(b.AnimMgr.fps*this.duration):this.duration;
if(this.duration===0&&this.useSeconds){this.totalFrames=1;}b.AnimMgr.registerElement(this);return true;};this.stop=function(p){if(!this.isAnimated()){return false;
}if(p){this.currentFrame=this.totalFrames;this._onTween.fire();}b.AnimMgr.stop(this);};var e=function(){this.onStart.fire();this.runtimeAttributes={};for(var p in this.attributes){this.setRuntimeAttribute(p);
}c=true;l=0;n=new Date();};var g=function(){var p={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};p.toString=function(){return("duration: "+p.duration+", currentFrame: "+p.currentFrame);
};this.onTween.fire(p);var q=this.runtimeAttributes;for(var r in q){this.setAttribute(r,this.doMethod(r,q[r].start,q[r].end),q[r].unit);}l+=1;};var m=function(){var q=(new Date()-n)/1000;
var p={duration:q,frames:l,fps:l/q};p.toString=function(){return("duration: "+p.duration+", frames: "+p.frames+", fps: "+p.fps);};c=false;l=0;this.onComplete.fire(p);
};this._onStart=new b.CustomEvent("_start",this,true);this.onStart=new b.CustomEvent("start",this);this.onTween=new b.CustomEvent("tween",this);this._onTween=new b.CustomEvent("_tween",this,true);
this.onComplete=new b.CustomEvent("complete",this);this._onComplete=new b.CustomEvent("_complete",this,true);this._onStart.subscribe(e);this._onTween.subscribe(g);
this._onComplete.subscribe(m);}};b.Anim=a;})();YAHOO.util.AnimMgr=new function(){var d=null;var e=[];var a=0;this.fps=1000;this.delay=1;this.registerElement=function(g){e[e.length]=g;
a+=1;g._onStart.fire();this.start();};this.unRegister=function(g,h){h=h||b(g);if(!g.isAnimated()||h==-1){return false;}g._onComplete.fire();e.splice(h,1);a-=1;if(a<=0){this.stop();
}return true;};this.start=function(){if(d===null){d=setInterval(this.run,this.delay);}};this.stop=function(g){if(!g){clearInterval(d);for(var h=0,k=e.length;h<k;
++h){this.unRegister(e[0],0);}e=[];d=null;a=0;}else{this.unRegister(g);}};this.run=function(){for(var g=0,k=e.length;g<k;++g){var h=e[g];if(!h||!h.isAnimated()){continue;
}if(h.currentFrame<h.totalFrames||h.totalFrames===null){h.currentFrame+=1;if(h.useSeconds){c(h);}h._onTween.fire();}else{YAHOO.util.AnimMgr.stop(h,g);}}};var b=function(g){for(var h=0,k=e.length;
h<k;++h){if(e[h]==g){return h;}}return -1;};var c=function(m){var h=m.totalFrames;var k=m.currentFrame;var l=(m.currentFrame*m.duration*1000/m.totalFrames);var n=(new Date()-m.getStartTime());
var g=0;if(n<m.duration*1000){g=Math.round((n/l-1)*m.currentFrame);}else{g=h-(k+1);}if(g>0&&isFinite(g)){if(m.currentFrame+g>=h){g=h-(k+1);}m.currentFrame+=g;}};
};YAHOO.util.Bezier=new function(){this.getPosition=function(c,d){var b=c.length;var e=[];for(var g=0;g<b;++g){e[g]=[c[g][0],c[g][1]];}for(var a=1;a<b;++a){for(g=0;
g<b-a;++g){e[g][0]=(1-d)*e[g][0]+d*e[parseInt(g+1,10)][0];e[g][1]=(1-d)*e[g][1]+d*e[parseInt(g+1,10)][1];}}return[e[0][0],e[0][1]];};};(function(){var a=function(h,k,g,e){a.superclass.constructor.call(this,h,k,g,e);
};a.NAME="ColorAnim";var c=YAHOO.util;YAHOO.extend(a,c.Anim);var b=a.superclass;var d=a.prototype;d.patterns.color=/color$/i;d.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;
d.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;d.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;d.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;
d.parseColor=function(g){if(g.length==3){return g;}var e=this.patterns.hex.exec(g);if(e&&e.length==4){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)];
}e=this.patterns.rgb.exec(g);if(e&&e.length==4){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)];}e=this.patterns.hex3.exec(g);if(e&&e.length==4){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)];
}return null;};d.getAttribute=function(k){var g=this.getEl();if(this.patterns.color.test(k)){var e=YAHOO.util.Dom.getStyle(g,k);if(this.patterns.transparent.test(e)){var h=g.parentNode;
e=c.Dom.getStyle(h,k);while(h&&this.patterns.transparent.test(e)){h=h.parentNode;e=c.Dom.getStyle(h,k);if(h.tagName.toUpperCase()=="HTML"){e="#fff";}}}}else{e=b.getAttribute.call(this,k);
}return e;};d.doMethod=function(l,e,k){var g;if(this.patterns.color.test(l)){g=[];for(var h=0,m=e.length;h<m;++h){g[h]=b.doMethod.call(this,l,e[h],k[h]);}g="rgb("+Math.floor(g[0])+","+Math.floor(g[1])+","+Math.floor(g[2])+")";
}else{g=b.doMethod.call(this,l,e,k);}return g;};d.setRuntimeAttribute=function(l){b.setRuntimeAttribute.call(this,l);if(this.patterns.color.test(l)){var h=this.attributes;
var e=this.parseColor(this.runtimeAttributes[l].start);var k=this.parseColor(this.runtimeAttributes[l].end);if(typeof h[l]["to"]==="undefined"&&typeof h[l]["by"]!=="undefined"){k=this.parseColor(h[l].by);
for(var g=0,m=e.length;g<m;++g){k[g]=e[g]+k[g];}}this.runtimeAttributes[l].start=e;this.runtimeAttributes[l].end=k;}};c.ColorAnim=a;})();YAHOO.util.Easing={easeNone:function(d,a,b,c){return b*d/c+a;
},easeIn:function(d,a,b,c){return b*(d/=c)*d+a;},easeOut:function(d,a,b,c){return -b*(d/=c)*(d-2)+a;},easeBoth:function(d,a,b,c){if((d/=c/2)<1){return b/2*d*d+a;
}return -b/2*((--d)*(d-2)-1)+a;},easeInStrong:function(d,a,b,c){return b*(d/=c)*d*d*d+a;},easeOutStrong:function(d,a,b,c){return -b*((d=d/c-1)*d*d*d-1)+a;},easeBothStrong:function(d,a,b,c){if((d/=c/2)<1){return b/2*d*d*d*d+a;
}return -b/2*((d-=2)*d*d*d-2)+a;},elasticIn:function(g,a,b,c,h,d){if(g==0){return a;}if((g/=c)==1){return a+b;}if(!d){d=c*0.3;}if(!h||h<Math.abs(b)){h=b;var e=d/4;
}else{var e=d/(2*Math.PI)*Math.asin(b/h);}return -(h*Math.pow(2,10*(g-=1))*Math.sin((g*c-e)*(2*Math.PI)/d))+a;},elasticOut:function(g,a,b,c,h,d){if(g==0){return a;
}if((g/=c)==1){return a+b;}if(!d){d=c*0.3;}if(!h||h<Math.abs(b)){h=b;var e=d/4;}else{var e=d/(2*Math.PI)*Math.asin(b/h);}return h*Math.pow(2,-10*g)*Math.sin((g*c-e)*(2*Math.PI)/d)+b+a;
},elasticBoth:function(g,a,b,c,h,d){if(g==0){return a;}if((g/=c/2)==2){return a+b;}if(!d){d=c*(0.3*1.5);}if(!h||h<Math.abs(b)){h=b;var e=d/4;}else{var e=d/(2*Math.PI)*Math.asin(b/h);
}if(g<1){return -0.5*(h*Math.pow(2,10*(g-=1))*Math.sin((g*c-e)*(2*Math.PI)/d))+a;}return h*Math.pow(2,-10*(g-=1))*Math.sin((g*c-e)*(2*Math.PI)/d)*0.5+b+a;},backIn:function(e,a,b,c,d){if(typeof d=="undefined"){d=1.70158;
}return b*(e/=c)*e*((d+1)*e-d)+a;},backOut:function(e,a,b,c,d){if(typeof d=="undefined"){d=1.70158;}return b*((e=e/c-1)*e*((d+1)*e+d)+1)+a;},backBoth:function(e,a,b,c,d){if(typeof d=="undefined"){d=1.70158;
}if((e/=c/2)<1){return b/2*(e*e*(((d*=(1.525))+1)*e-d))+a;}return b/2*((e-=2)*e*(((d*=(1.525))+1)*e+d)+2)+a;},bounceIn:function(d,a,b,c){return b-YAHOO.util.Easing.bounceOut(c-d,0,b,c)+a;
},bounceOut:function(d,a,b,c){if((d/=c)<(1/2.75)){return b*(7.5625*d*d)+a;}else{if(d<(2/2.75)){return b*(7.5625*(d-=(1.5/2.75))*d+0.75)+a;}else{if(d<(2.5/2.75)){return b*(7.5625*(d-=(2.25/2.75))*d+0.9375)+a;
}}}return b*(7.5625*(d-=(2.625/2.75))*d+0.984375)+a;},bounceBoth:function(d,a,b,c){if(d<c/2){return YAHOO.util.Easing.bounceIn(d*2,0,b,c)*0.5+a;}return YAHOO.util.Easing.bounceOut(d*2-c,0,b,c)*0.5+b*0.5+a;
}};(function(){var a=function(l,m,k,h){if(l){a.superclass.constructor.call(this,l,m,k,h);}};a.NAME="Motion";var c=YAHOO.util;YAHOO.extend(a,c.ColorAnim);var b=a.superclass;
var e=a.prototype;e.patterns.points=/^points$/i;e.setAttribute=function(l,h,k){if(this.patterns.points.test(l)){k=k||"px";b.setAttribute.call(this,"left",h[0],k);
b.setAttribute.call(this,"top",h[1],k);}else{b.setAttribute.call(this,l,h,k);}};e.getAttribute=function(k){if(this.patterns.points.test(k)){var h=[b.getAttribute.call(this,"left"),b.getAttribute.call(this,"top")];
}else{h=b.getAttribute.call(this,k);}return h;};e.doMethod=function(n,h,m){var k=null;if(this.patterns.points.test(n)){var l=this.method(this.currentFrame,0,100,this.totalFrames)/100;
k=c.Bezier.getPosition(this.runtimeAttributes[n],l);}else{k=b.doMethod.call(this,n,h,m);}return k;};e.setRuntimeAttribute=function(h){if(this.patterns.points.test(h)){var r=this.getEl();
var p=this.attributes;var s;var n=p.points["control"]||[];var q;var m,k;if(n.length>0&&!(n[0] instanceof Array)){n=[n];}else{var o=[];for(m=0,k=n.length;m<k;++m){o[m]=n[m];
}n=o;}if(c.Dom.getStyle(r,"position")=="static"){c.Dom.setStyle(r,"position","relative");}if(d(p.points["from"])){c.Dom.setXY(r,p.points["from"]);}else{c.Dom.setXY(r,c.Dom.getXY(r));
}s=this.getAttribute("points");if(d(p.points["to"])){q=g.call(this,p.points["to"],s);var l=c.Dom.getXY(this.getEl());for(m=0,k=n.length;m<k;++m){n[m]=g.call(this,n[m],s);
}}else{if(d(p.points["by"])){q=[s[0]+p.points["by"][0],s[1]+p.points["by"][1]];for(m=0,k=n.length;m<k;++m){n[m]=[s[0]+n[m][0],s[1]+n[m][1]];}}}this.runtimeAttributes[h]=[s];
if(n.length>0){this.runtimeAttributes[h]=this.runtimeAttributes[h].concat(n);}this.runtimeAttributes[h][this.runtimeAttributes[h].length]=q;}else{b.setRuntimeAttribute.call(this,h);
}};var g=function(l,h){var k=c.Dom.getXY(this.getEl());l=[l[0]-k[0]+h[0],l[1]-k[1]+h[1]];return l;};var d=function(h){return(typeof h!=="undefined");};c.Motion=a;
})();(function(){var b=function(h,k,g,e){if(h){b.superclass.constructor.call(this,h,k,g,e);}};b.NAME="Scroll";var d=YAHOO.util;YAHOO.extend(b,d.ColorAnim);var c=b.superclass;
var a=b.prototype;a.doMethod=function(k,e,h){var g=null;if(k=="scroll"){g=[this.method(this.currentFrame,e[0],h[0]-e[0],this.totalFrames),this.method(this.currentFrame,e[1],h[1]-e[1],this.totalFrames)];
}else{g=c.doMethod.call(this,k,e,h);}return g;};a.getAttribute=function(h){var e=null;var g=this.getEl();if(h=="scroll"){e=[g.scrollLeft,g.scrollTop];}else{e=c.getAttribute.call(this,h);
}return e;};a.setAttribute=function(k,e,g){var h=this.getEl();if(k=="scroll"){h.scrollLeft=e[0];h.scrollTop=e[1];}else{c.setAttribute.call(this,k,e,g);}};d.Scroll=b;
})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.5.1",build:"984"});YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,"click",function(b){var a=YAHOO.util.Event.getTarget(b);
if(a.nodeName.toLowerCase()=="input"&&(a.type&&a.type.toLowerCase()=="submit")){YAHOO.util.Connect._submitElementValue=encodeURIComponent(a.name)+"="+encodeURIComponent(a.value);
}});return true;}return false;})(),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(a){this._msxml_progid.unshift(a);
YAHOO.log("ActiveX Program Id  "+a+" added to _msxml_progid.","info","Connection");},setDefaultPostHeader:function(a){if(typeof a=="string"){this._default_post_header=a;
YAHOO.log("Default POST header set to  "+a,"info","Connection");}else{if(typeof a=="boolean"){this._use_default_post_header=a;}}},setDefaultXhrHeader:function(a){if(typeof a=="string"){this._default_xhr_header=a;
YAHOO.log("Default XHR header set to  "+a,"info","Connection");}else{this._use_default_xhr_header=a;}},setPollingInterval:function(a){if(typeof a=="number"&&isFinite(a)){this._polling_interval=a;
YAHOO.log("Default polling interval set to "+a+"ms","info","Connection");}},createXhrObject:function(b){var c,a;try{a=new XMLHttpRequest();c={conn:a,tId:b};YAHOO.log("XHR object created for transaction "+b,"info","Connection");
}catch(d){for(var e=0;e<this._msxml_progid.length;++e){try{a=new ActiveXObject(this._msxml_progid[e]);c={conn:a,tId:b};YAHOO.log("ActiveX XHR object created for transaction "+b,"info","Connection");
break;}catch(d){}}}finally{return c;}},getConnectionObject:function(a){var c;var b=this._transaction_id;try{if(!a){c=this.createXhrObject(b);}else{c={};c.tId=b;c.isUpload=true;
}if(c){this._transaction_id++;}}catch(d){}finally{return c;}},asyncRequest:function(b,e,c,a){var d=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();
var g=(c&&c.argument)?c.argument:null;if(!d){YAHOO.log("Unable to create connection object.","error","Connection");return null;}else{if(c&&c.customevents){this.initCustomEvents(d,c);
}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(d,c,e,a);return d;}if(b.toUpperCase()=="GET"){if(this._sFormData.length!==0){e+=((e.indexOf("?")==-1)?"?":"&")+this._sFormData;
}}else{if(b.toUpperCase()=="POST"){a=a?this._sFormData+"&"+a:this._sFormData;}}}if(b.toUpperCase()=="GET"&&(c&&c.cache===false)){e+=((e.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();
}d.conn.open(b,e,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);
YAHOO.log("Initialize transaction header X-Request-Header to XMLHttpRequest.","info","Connection");}}if((b.toUpperCase()=="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);
YAHOO.log("Initialize header Content-Type to application/x-www-form-urlencoded; UTF-8 for POST transaction.","info","Connection");}if(this._has_default_headers||this._has_http_headers){this.setHeader(d);
}this.handleReadyState(d,c);d.conn.send(a||"");YAHOO.log("Transaction "+d.tId+" sent.","info","Connection");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(d,g);
if(d.startEvent){d.startEvent.fire(d,g);}return d;}},initCustomEvents:function(a,b){for(var c in b.customevents){if(this._customEvents[c][0]){a[this._customEvents[c][0]]=new YAHOO.util.CustomEvent(this._customEvents[c][1],(b.scope)?b.scope:null);
YAHOO.log("Transaction-specific Custom Event "+a[this._customEvents[c][1]]+" created.","info","Connection");a[this._customEvents[c][0]].subscribe(b.customevents[c]);
YAHOO.log("Transaction-specific Custom Event "+a[this._customEvents[c][1]]+" subscribed.","info","Connection");}}},handleReadyState:function(c,b){var d=this;var a=(b&&b.argument)?b.argument:null;
if(b&&b.timeout){this._timeOut[c.tId]=window.setTimeout(function(){d.abort(c,b,true);},b.timeout);}this._poll[c.tId]=window.setInterval(function(){if(c.conn&&c.conn.readyState===4){window.clearInterval(d._poll[c.tId]);
delete d._poll[c.tId];if(b&&b.timeout){window.clearTimeout(d._timeOut[c.tId]);delete d._timeOut[c.tId];}d.completeEvent.fire(c,a);if(c.completeEvent){c.completeEvent.fire(c,a);
}d.handleTransactionResponse(c,b);}},this._polling_interval);},handleTransactionResponse:function(c,b,a){var e,g;var h=(b&&b.argument)?b.argument:null;try{if(c.conn.status!==undefined&&c.conn.status!==0){e=c.conn.status;
}else{e=13030;}}catch(d){e=13030;}if(e>=200&&e<300||e===1223){g=this.createResponseObject(c,h);if(b&&b.success){if(!b.scope){b.success(g);YAHOO.log("Success callback. HTTP code is "+e,"info","Connection");
}else{b.success.apply(b.scope,[g]);YAHOO.log("Success callback with scope. HTTP code is "+e,"info","Connection");}}this.successEvent.fire(g);if(c.successEvent){c.successEvent.fire(g);
}}else{switch(e){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:g=this.createExceptionObject(c.tId,h,(a?a:false));if(b&&b.failure){if(!b.scope){b.failure(g);
YAHOO.log("Failure callback. Exception detected. Status code is "+e,"warn","Connection");}else{b.failure.apply(b.scope,[g]);YAHOO.log("Failure callback with scope. Exception detected. Status code is "+e,"warn","Connection");
}}break;default:g=this.createResponseObject(c,h);if(b&&b.failure){if(!b.scope){b.failure(g);YAHOO.log("Failure callback. HTTP status code is "+e,"warn","Connection");
}else{b.failure.apply(b.scope,[g]);YAHOO.log("Failure callback with scope. HTTP status code is "+e,"warn","Connection");}}}this.failureEvent.fire(g);if(c.failureEvent){c.failureEvent.fire(g);
}}this.releaseObject(c);g=null;},createResponseObject:function(d,h){var a={};var e={};try{var b=d.conn.getAllResponseHeaders();var k=b.split("\n");for(var l=0;l<k.length;
l++){var c=k[l].indexOf(":");if(c!=-1){e[k[l].substring(0,c)]=k[l].substring(c+2);}}}catch(g){}a.tId=d.tId;a.status=(d.conn.status==1223)?204:d.conn.status;a.statusText=(d.conn.status==1223)?"No Content":d.conn.statusText;
a.getResponseHeader=e;a.getAllResponseHeaders=b;a.responseText=d.conn.responseText;a.responseXML=d.conn.responseXML;if(h){a.argument=h;}return a;},createExceptionObject:function(b,g,a){var d=0;
var c="communication failure";var h=-1;var k="transaction aborted";var e={};e.tId=b;if(a){e.status=h;e.statusText=k;}else{e.status=d;e.statusText=c;}if(g){e.argument=g;
}return e;},initHeader:function(a,b,c){var d=(c)?this._default_headers:this._http_headers;d[a]=b;if(c){this._has_default_headers=true;}else{this._has_http_headers=true;
}},setHeader:function(a){if(this._has_default_headers){for(var b in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,b)){a.conn.setRequestHeader(b,this._default_headers[b]);
YAHOO.log("Default HTTP header "+b+" set with value of "+this._default_headers[b],"info","Connection");}}}if(this._has_http_headers){for(var b in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,b)){a.conn.setRequestHeader(b,this._http_headers[b]);
YAHOO.log("HTTP header "+b+" set with value of "+this._http_headers[b],"info","Connection");}}delete this._http_headers;this._http_headers={};this._has_http_headers=false;
}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false;},setForm:function(g,o,c){this.resetFormState();
var h;if(typeof g=="string"){h=(document.getElementById(g)||document.forms[g]);}else{if(typeof g=="object"){h=g;}else{YAHOO.log("Unable to create form object "+g,"warn","Connection");
return;}}if(o){var n=this.createFrame((window.location.href.toLowerCase().indexOf("https")===0||c)?true:false);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=h;
return;}var d,k,m,e;var l=false;for(var a=0;a<h.elements.length;a++){d=h.elements[a];e=d.disabled;k=d.name;m=d.value;if(!e&&k){switch(d.type){case"select-one":case"select-multiple":for(var b=0;
b<d.options.length;b++){if(d.options[b].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(d.options[b].attributes.value.specified?d.options[b].value:d.options[b].text)+"&";
}else{this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(d.options[b].hasAttribute("value")?d.options[b].value:d.options[b].text)+"&";}}}break;case"radio":case"checkbox":if(d.checked){this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(m)+"&";
}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(l===false){if(this._hasSubmitListener&&this._submitElementValue){this._sFormData+=this._submitElementValue+"&";
}else{this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(m)+"&";}l=true;}break;default:this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(m)+"&";
}}}this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);YAHOO.log("Form initialized for transaction. HTML form POST message is: "+this._sFormData,"info","Connection");
this.initHeader("Content-Type",this._default_form_header);YAHOO.log("Initialize header Content-Type to application/x-www-form-urlencoded for setForm() transaction.","info","Connection");
return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(a){var c="yuiIO"+this._transaction_id;
var b;if(window.ActiveXObject){b=document.createElement('<iframe id="'+c+'" name="'+c+'" />');if(typeof a=="boolean"){b.src="javascript:false";}}else{b=document.createElement("iframe");
b.id=c;b.name=c;}b.style.position="absolute";b.style.top="-1000px";b.style.left="-1000px";document.body.appendChild(b);YAHOO.log("File upload iframe created. Id is:"+c,"info","Connection");
},appendPostData:function(a){var c=[];var e=a.split("&");for(var d=0;d<e.length;d++){var b=e[d].indexOf("=");if(b!=-1){c[d]=document.createElement("input");c[d].type="hidden";
c[d].name=e[d].substring(0,b);c[d].value=e[d].substring(b+1);this._formNode.appendChild(c[d]);}}return c;},uploadFile:function(a,g,q,b){var e=this;var n="yuiIO"+a.tId;
var m="multipart/form-data";var k=document.getElementById(n);var l=(g&&g.argument)?g.argument:null;var c={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};
this._formNode.setAttribute("action",q);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",n);if(YAHOO.env.ua.ie){this._formNode.setAttribute("encoding",m);
}else{this._formNode.setAttribute("enctype",m);}if(b){var h=this.appendPostData(b);}this._formNode.submit();this.startEvent.fire(a,l);if(a.startEvent){a.startEvent.fire(a,l);
}if(g&&g.timeout){this._timeOut[a.tId]=window.setTimeout(function(){e.abort(a,g,true);},g.timeout);}if(h&&h.length>0){for(var o=0;o<h.length;o++){this._formNode.removeChild(h[o]);
}}for(var d in c){if(YAHOO.lang.hasOwnProperty(c,d)){if(c[d]){this._formNode.setAttribute(d,c[d]);}else{this._formNode.removeAttribute(d);}}}this.resetFormState();
var p=function(){if(g&&g.timeout){window.clearTimeout(e._timeOut[a.tId]);delete e._timeOut[a.tId];}e.completeEvent.fire(a,l);if(a.completeEvent){a.completeEvent.fire(a,l);
}var r={};r.tId=a.tId;r.argument=g.argument;try{r.responseText=k.contentWindow.document.body?k.contentWindow.document.body.innerHTML:k.contentWindow.document.documentElement.textContent;
r.responseXML=k.contentWindow.document.XMLDocument?k.contentWindow.document.XMLDocument:k.contentWindow.document;}catch(s){}if(g&&g.upload){if(!g.scope){g.upload(r);
YAHOO.log("Upload callback.","info","Connection");}else{g.upload.apply(g.scope,[r]);YAHOO.log("Upload callback with scope.","info","Connection");}}e.uploadEvent.fire(r);
if(a.uploadEvent){a.uploadEvent.fire(r);}YAHOO.util.Event.removeListener(k,"load",p);setTimeout(function(){document.body.removeChild(k);e.releaseObject(a);YAHOO.log("File upload iframe destroyed. Id is:"+n,"info","Connection");
},100);};YAHOO.util.Event.addListener(k,"load",p);},abort:function(d,b,a){var e;var h=(b&&b.argument)?b.argument:null;if(d&&d.conn){if(this.isCallInProgress(d)){d.conn.abort();
window.clearInterval(this._poll[d.tId]);delete this._poll[d.tId];if(a){window.clearTimeout(this._timeOut[d.tId]);delete this._timeOut[d.tId];}e=true;}}else{if(d&&d.isUpload===true){var g="yuiIO"+d.tId;
var c=document.getElementById(g);if(c){YAHOO.util.Event.removeListener(c,"load");document.body.removeChild(c);YAHOO.log("File upload iframe destroyed. Id is:"+g,"info","Connection");
if(a){window.clearTimeout(this._timeOut[d.tId]);delete this._timeOut[d.tId];}e=true;}}else{e=false;}}if(e===true){this.abortEvent.fire(d,h);if(d.abortEvent){d.abortEvent.fire(d,h);
}this.handleTransactionResponse(d,b,true);YAHOO.log("Transaction "+d.tId+" aborted.","info","Connection");}return e;},isCallInProgress:function(b){if(b&&b.conn){return b.conn.readyState!==4&&b.conn.readyState!==0;
}else{if(b&&b.isUpload===true){var a="yuiIO"+b.tId;return document.getElementById(a)?true:false;}else{return false;}}},releaseObject:function(a){if(a&&a.conn){a.conn=null;
YAHOO.log("Connection object for transaction "+a.tId+" destroyed.","info","Connection");a=null;}}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.5.2",build:"1076"});
var PARSEK;var YAHOO;if(!PARSEK){PARSEK={VERSION:1};}PARSEK.util={NAME:"util",ServerHome:"http://javascript.parsek.net",RequiredLibs:[["Anim","animation"],["Connect","Connection"]],extendObject:function(a,b){if(!a){a={};
}for(var c in b){a[c]=b[c];}return a;},purgeLeaks:function(g){var h=YAHOO.util.Dom.get(g);var c=h.attributes,e,b,k;if(c){b=c.length;for(e=0;e<b;e+=1){k=c[e].name;
if(typeof h[k]==="function"){h[k]=null;}}}c=h.childNodes;if(c){b=c.length;for(e=0;e<b;e+=1){PARSEK.util.purgeLeaks(h.childNodes[e]);}}},purgeDocumentLeaks:function(){var a=document.getElementsByTagName("body")[0];
if(a){PARSEK.util.purgeLeaks(a);}},attachHandlers:function(){var d;var c;if(arguments.callee.done){return;}arguments.callee.done=true;if(!YAHOO||!YAHOO.util||!YAHOO.util.Dom){window.setTimeout("PARSEK.util.attachHandlers()",100);
return;}var b=["ul","ol","table"];for(var a=0;a<b.length;a++){d=YAHOO.util.Dom.getElementsByClassName("parsek-stripe",b[a]);for(c=0;c<d.length;c++){PARSEK.ui.stripeLines(d[c]);
}}d=YAHOO.util.Dom.getElementsByClassName("parsek-expandable");for(c=0;c<d.length;c++){PARSEK.ui.toggleDialog(d[c]);}d=YAHOO.util.Dom.getElementsByClassName("parsek-expandable-group");
for(c=0;c<d.length;c++){PARSEK.ui.toggleDialogGroup(d[c]);}d=YAHOO.util.Dom.getElementsByClassName("parsek-detailed");for(c=0;c<d.length;c++){PARSEK.ui.toggleDetails(d[c]);
}PARSEK.ui.Lightbox.init();},loadLibraries:function(){var targets=this.RequiredLibs;var head=document.getElementsByTagName("head")[0];var scr;if(!YAHOO||!YAHOO.util||!YAHOO.util.Dom){window.setTimeout("PARSEK.util.loadLibraries()",100);
return;}for(var i=0;i<targets.length;i++){if(eval("YAHOO.util."+targets[i][0])=="undefined"){var t=targets[i][1].toLowerCase();scr=document.createElement("script");
scr.type="text/javascript";scr.src="yui/build/"+t+"/"+t+".js";head.appendChild(scr);}}}};PARSEK.ui={NAME:"ui",stripeLines:function(d){var e=YAHOO.util.Dom.get(d);
var b;var c=0;if(!e){return;}b=e.tagName.toLowerCase();if(b!="ul"&&b!="ol"&&b!="table"){return;}if(b=="table"){e=e.getElementsByTagName("tbody")[0];}for(var a=0;
a<e.childNodes.length;a++){if(e.childNodes[a].nodeType==1&&e.childNodes[a].className.indexOf("parsek-")<0){c+=1;if(c%2){YAHOO.util.Dom.addClass(e.childNodes[a],"odd");
}}}},_toggleDetails:function(b){var a=this.nextSibling;while(a.className=="parsek-details"||a.nodeType==3){if(a.nodeType==1){if(a.style.display=="none"){a.style.display=PARSEK.ui.toggleDetails.rowType;
}else{a.style.display="none";}}if(!a.nextSibling){break;}a=a.nextSibling;}YAHOO.util.Event.preventDefault(b);},toggleDetails:function(d){var h=YAHOO.util.Dom.get(d);
var a;var b;var e;if(!h){return;}a=h.tagName.toLowerCase();if(a!="ul"&&a!="ol"&&a!="table"){return;}if(a=="table"){h=h.getElementsByTagName("tbody")[0];}var g=YAHOO.util.Dom.getElementsByClassName("parsek-details","*",h);
for(b=0;b<g.length;b++){g[b].style.display="none";}for(b=0;b<h.childNodes.length;b++){e=h.childNodes[b];if(e.nodeType==1){var c=(e.nextSibling)?e.nextSibling:null;
while(c&&c.nodeType!=1&&c.nextSibling){c=c.nextSibling;}if(c&&c.nodeType==1&&YAHOO.util.Dom.hasClass(c,"parsek-details")&&!YAHOO.util.Dom.hasClass(e,"parsek-details")){YAHOO.util.Event.addListener(e,"click",PARSEK.ui._toggleDetails);
e.style.cursor="pointer";}if(!PARSEK.ui.toggleDetails.rowType&&YAHOO.util.Dom.getStyle(e,"display")!="none"){PARSEK.ui.toggleDetails.rowType=YAHOO.util.Dom.getStyle(e,"display");
}}}},_toggle:function(k){if(k){var o=(k.srcElement)?k.srcElement:k.target;YAHOO.util.Event.stopPropagation(k);if(o.nodeName.toLowerCase()=="input"){return PARSEK.ui._toggle.call(o.parentNode);
}YAHOO.util.Event.preventDefault(k);}var h=this.parentNode;var a=this;while(!YAHOO.util.Dom.hasClass(h,"parsek-expandable")){a=h;h=h.parentNode;}var n=a.nextSibling;
if(!n){return;}while(n.nodeType!=1&&n.nextSibling){n=n.nextSibling;}var l=null;if(!YAHOO.util.Dom.hasClass(h,"closed")){if(n.nodeName.toLowerCase()=="table"){n.style.display="none";
}YAHOO.util.Dom.addClass(h,"closed");l=false;}else{if(n.nodeName.toLowerCase()=="table"){n.style.display="block";}YAHOO.util.Dom.removeClass(h,"closed");l=true;}if(l==true){var b=a.getElementsByTagName("input");
for(var g=0,d=b.length;g<d;g++){if(b[g].type=="radio"){b[g].checked=true;}}}if(h.groupParent!=null&&l==true){var m=YAHOO.util.Dom.getElementsByClassName("parsek-expandable",null,h.groupParent);
for(var g=0,d=m.length;g<d;g++){if(m[g]!=h&&!YAHOO.util.Dom.hasClass(m[g],"closed")){var c=YAHOO.util.Dom.getElementsByClassName("parsek-toggle",null,m[g]);if(c.length>0){PARSEK.ui._toggle.call(c[0]);
}}}}},toggleDialog:function(a){var d=YAHOO.util.Dom.get(a);var c;var b=[];var b=YAHOO.util.Dom.getElementsByClassName("parsek-toggle","*",d);if(!b.length){b[0]=d.getElementsByTagName("a")[0];
}YAHOO.util.Event.addListener(b[0],"click",PARSEK.ui._toggle);},toggleDialogGroup:function(a){elms=YAHOO.util.Dom.getElementsByClassName("parsek-expandable",null,a);
for(i=0;i<elms.length;i++){elms[i].groupParent=a;}},_showTabView:function(v,l){var c=[];var k;var h;var o=-1;var n;var u;var r;var w=YAHOO.util.Dom.get(l.tabs);for(u=0;
u<w.childNodes.length;u++){r=w.childNodes[u];if(r.nodeType==1&&r.id){c[c.length]=r.id;}}var q=l.tabview;k=YAHOO.util.Dom.get(q);function g(){for(u=0;u<k.childNodes.length;
u++){if(YAHOO.util.Dom.hasClass(k.childNodes[u],"active")){return u;}}return -1;}function d(e){resetGlobalTimers();e.argument.innerHTML=e.responseText;e.argument.style.height="100%";
}function a(y,z){var B=0;var A=0;for(var s=0,e=y.childNodes.length;s<e;s++){if(y.childNodes[s]==z){A=B;}if(y.childNodes[s].nodeName.toLowerCase()=="li"){YAHOO.util.Dom.removeClass(y.childNodes[s],"active");
B++;}}return A;}o=a(this.parentNode,this);n=k.childNodes[o];h=g();if(YAHOO.util.Dom.hasClass(n,"active")){var b=k.childNodes[h];YAHOO.util.Dom.removeClass(b,"active");
YAHOO.util.Dom.removeClass(this,"active");b.style.overflow="hidden";var x=new YAHOO.util.Anim(b,{height:{to:0}},0.3,YAHOO.util.Easing.easeOut);x.animate();return false;
}else{YAHOO.util.Dom.addClass(this,"active");}var p=n.style;p.overflow="hidden";if(h==-1){p.height=0;p.display="block";n.parentNode.style.display="block";var x=new YAHOO.util.Anim(n,{height:{to:10,unit:"em"}},0.3,YAHOO.util.Easing.easeOut);
x.onComplete.subscribe(function(){var e=g();var s=document.getElementById(q).childNodes[e];if(s.innerHTML!=""){s.style.height="100%";}});x.animate();}else{var b=k.childNodes[h];
YAHOO.util.Dom.removeClass(b,"active");b.style.display="none";p.display="block";}if(n.innerHTML==""){var m=document.location.href.split("/").slice(0,-1).join("/");
m=m+"/fragments/kom_modul/fragment_"+c[o]+".seam";var t=YAHOO.util.Connect.asyncRequest("GET",m,{success:d,failure:resetGlobalTimers,argument:n},null);}YAHOO.util.Dom.addClass(n,"active");
return false;},createTabView:function(b,o){var a=0;var h;var g=false;var m=YAHOO.util.Dom.get(b);if(!m){return;}for(h=0;h<m.childNodes.length;h++){if(m.childNodes[h].nodeType&&m.childNodes[h].nodeType==1){YAHOO.util.Event.addListener(m.childNodes[h],"click",PARSEK.ui._showTabView,{tabs:b,tabview:o});
var l=m.childNodes[h];window["openTab"+h+"Manually"]=function(){PARSEK.ui._showTabView.call(l,null,{tabs:b,tabview:o});};if(YAHOO.util.Dom.hasClass(m.childNodes[h],"active")){g=true;
}a+=1;}}if(a){var e=YAHOO.util.Dom.get(o);var k=document.createElement("div");if(g){k.className="active";}e.appendChild(k);var c;while(e.childNodes.length>1){c=e.removeChild(e.childNodes[0]);
e.lastChild.appendChild(c);}for(h=0;h<a-1;h++){e.appendChild(document.createElement("div"));}if(g){e.firstChild.style.height="100%";}else{e.firstChild.style.display="none";
}}}};PARSEK.ui.Lightbox=function(){var b=YAHOO.util.Dom;var a=YAHOO.util.Event;var c=b.get;return{init:function(){var e;var d=document.createElement("div");d.id="overlay";
b.setStyle(d,"opacity",0.75);e=d.style;e.position="absolute";e.zIndex=999;e.top=0;e.left=0;e.background="#000";e.display="none";e.width=b.getDocumentWidth()+"px";
e.height=b.getDocumentHeight()+"px";var h=document.createElement("div");h.id="lightbox";e=h.style;e.display="none";e.position="absolute";e.zIndex=1000;e.textAlign="center";
e.background="#fff";e.height="200px";e.width="200px";e.top="50%";e.left="50%";e.marginLeft="-100px";e.marginTop="-100px";document.getElementsByTagName("body")[0].appendChild(d);
document.getElementsByTagName("body")[0].appendChild(h);var g=b.getElementsBy(this.rel,"a","doc");a.on(g,"click",this.lightbox);a.on(c("overlay"),"click",this.close);
a.on(h,"click",this.close);},rel:function(d){if(d.rel&&d.rel=="lightbox"){return true;}return false;},lightbox:function(l){function h(s){function o(){c("lightbox").appendChild(n);
if(p){c("lightbox").appendChild(p);c("lightbox").style.height=(q+p.offsetHeight)+"px";}c("lightbox").firstChild.style.width=(m-20)+"px";c("lightbox").firstChild.style.height=(q-20)+"px";
c("lightbox").firstChild.style.marginTop="10px";}var n=this;if(this.title){var p=document.createElement("p");p.style.margin="0";p.style.padding="0";p.innerHTML=this.title;
}var m=Math.min(b.getViewportWidth()-200,this.width);var q=Math.min(b.getViewportHeight()-200,this.height);if(this.width>this.height){m=q*(this.width/this.height);
}else{q=m*(this.height/this.width);}if(!YAHOO||!YAHOO.util||!YAHOO.util.Anim){c("lightbox").style.marginLeft=-m/2+"px";c("lightbox").style.marginTop=-q/2+"px";c("lightbox").style.width=m+"px";
c("lightbox").style.height=q+"px";o();}else{var r=new YAHOO.util.Anim(c("lightbox"),{marginLeft:{to:-m/2},marginTop:{to:-q/2},height:{to:q},width:{to:m}},0.3,YAHOO.util.Easing.easeOut);
r.onComplete.subscribe(o);r.animate();}}var k=a.getTarget(l,true);var g=new Image();if(k.tagName.toLowerCase()=="img"){var d=k.parentNode.getAttribute("href");c("overlay").style.display="block";
c("lightbox").style.display="block";if(k.parentNode.title){g.title=k.parentNode.title;}g.onload=h;g.src=d;}a.stopEvent(l);},close:function(){c("overlay").style.display="none";
var d=c("lightbox").style;d.display="none";d.height="200px";d.width="200px";d.marginLeft="-100px";d.marginTop="-100px";c("lightbox").innerHTML="";}};}();(function(){var b=document.getElementsByTagName("head")[0];
var c;if(!YAHOO||!YAHOO.util||!YAHOO.util.Dom){c=document.createElement("script");c.type="text/javascript";c.src="yui/build/yahoo-dom-event/yahoo-dom-event.js";b.insertBefore(c,b.firstChild);
}PARSEK.util.loadLibraries();if(document.addEventListener){document.addEventListener("DOMContentLoaded",PARSEK.util.attachHandlers,false);}if(document.getElementById){var a=document.getElementById("__init_script");
if(a){a.onreadystatechange=function(){if(this.readyState=="complete"){PARSEK.util.attachHandlers();}};a.onreadystatechange();a=null;}}window.onload=PARSEK.util.attachHandlers;
})();String.prototype.startsWith=function(a){return(a==null)?false:(this.substring(0,a.length)==a);};String.prototype.endsWith=function(a){return(a==null)?false:(this.substr(this.length-a.length,a.length)==a);
};function loadDays(){var b=document.getElementById("dan");var c=document.getElementById("mesec");var d=document.getElementById("leto");var g="/BIN/pripomocki/tecajiAjax.seam?show=days";
if(c&&c.options[c.selectedIndex].value&&d&&d.options[d.selectedIndex].value){g="/BIN/pripomocki/tecajiAjax.seam?show=days&mesec="+c.options[c.selectedIndex].value+"&leto="+d.options[d.selectedIndex].value;
if(b&&b.options[b.selectedIndex].value){g=g+"&currentDay="+b.options[b.selectedIndex].value;}}var a=document.getElementById("days");var e=YAHOO.util.Connect.asyncRequest("GET",g,{success:daysCallback,failure:resetGlobalTimersCheck,argument:a},null);
}function loadHours(){var m=document.getElementById("type-prav");var b=document.getElementById("type-ecb");var k="fizicne";if(m.checked){k="pravne";}else{if(b.checked){k="bankaslovenije";
}}var e=document.getElementById("ura");var c=document.getElementById("dan");var l=document.getElementById("mesec");var g=document.getElementById("leto");var a="/BIN/pripomocki/tecajiAjax.seam?show=hours";
if(c&&l&&c.options[c.selectedIndex].value&&l&&l.options[l.selectedIndex].value&&g&&g.options[g.selectedIndex].value){a="/BIN/pripomocki/tecajiAjax.seam?show=hours&dan="+c.options[c.selectedIndex].value+"&mesec="+l.options[l.selectedIndex].value+"&leto="+g.options[g.selectedIndex].value;
if(e&&e.options[e.selectedIndex].value){a=a+"&currentHour="+e.options[e.selectedIndex].value;}a=a+"&tecajnica="+k;}var h=document.getElementById("hours");var d=YAHOO.util.Connect.asyncRequest("GET",a,{success:daysCallback,failure:resetGlobalTimersCheck,argument:h},null);
}function loadTecajnice(){var q=document.getElementById("type-prav");var b=document.getElementById("type-ecb");var c=document.getElementById("type-fiz");var o="fizicne";
var e=document.getElementById("fizicne");var p=document.getElementById("pravne");var h=document.getElementById("bankaSlo");if(q.checked){o="pravne";p.style.display="block";
e.style.display="none";h.style.display="none";}else{if(b.checked){o="bankaslovenije";p.style.display="none";e.style.display="none";h.style.display="block";}}if(o=="fizicne"||c.checked){p.style.display="none";
e.style.display="block";h.style.display="none";}var k=document.getElementById("ura");var d=document.getElementById("dan");var n=document.getElementById("mesec");
var l=document.getElementById("leto");var a="/BIN/pripomocki/tecajiAjax.seam?show=tecajnice";if(d&&n&&d.options[d.selectedIndex].value&&n&&n.options[n.selectedIndex].value&&l&&l.options[l.selectedIndex].value){a="/BIN/pripomocki/tecajiAjax.seam?show=tecajnice&dan="+d.options[d.selectedIndex].value+"&mesec="+n.options[n.selectedIndex].value+"&leto="+l.options[l.selectedIndex].value;
if(k&&k.options[k.selectedIndex].value){a=a+"&currentHour="+k.options[k.selectedIndex].value;}a=a+"&tecajnica="+o;}var m=document.getElementById("tecajnice");var g=YAHOO.util.Connect.asyncRequest("GET",a,{success:daysCallback,failure:resetGlobalTimersCheck,argument:m},null);
}function loadPoslovalnico(b){var d="/BIN/pripomocki/listEnote.seam?type=showOne&kraj="+encodeURIComponent(b);var a=document.getElementById("orgunits");var c=YAHOO.util.Connect.asyncRequest("GET",d,{success:poslovalnicaCallback,failure:resetGlobalTimersCheck,argument:a},null);
return false;}function daysCallback(a){resetGlobalTimersCheck();a.argument.innerHTML=a.responseText;a.argument.style.height="100%";}function hoursCallback(a){a.argument.innerHTML=a.responseText;
a.argument.style.height="100%";}function poslovalnicaCallback(a){resetGlobalTimersCheck();a.argument.innerHTML=a.responseText;a.argument.style.height="100%";}function atmCallback(a){resetGlobalTimersCheck();
a.argument.innerHTML=a.responseText;a.argument.style.height="100%";}function loadSvetovalec(e){var d="/portal/banka_in/ajax/loader/komunikator?xhr=1";var a=document.getElementById("kom.page.id").value;
var c=YAHOO.util.Dom.get("parsek-tabview");var g=c.childNodes[0];d=d+"&p="+a+"&adviserorder_type="+e;var b=YAHOO.util.Connect.asyncRequest("GET",d,{success:cmCallBack,failure:resetGlobalTimersCheck,argument:g},null);
}function resetGlobalTimersCheck(){try{resetGlobalTimers();}catch(a){}}function cmCallBack(a){resetGlobalTimersCheck();a.argument.innerHTML=a.responseText;a.argument.style.height="100%";
}function loadUrnik(m,h,g,l,d){if("-"==m){return;}var a="/BIN/pripomocki/urnik.seam?urnik=1&oe_combo="+g+"&day_field_id="+l+"&time_field_id="+d;var e;var k=document.getElementById(l);
var b=document.getElementById(d);if(h==null){k.disabled=true;}b.disabled=true;if(m!=null&&h==null){e=k;a=a+"&oe="+m;}else{if(h!=null){e=b;a=a+"&oe="+m+"&day="+h;
}}var c=YAHOO.util.Connect.asyncRequest("GET",a,{success:urnikCallBack,failure:resetGlobalTimersCheck,argument:e},null);}function urnikCallBack(a){resetGlobalTimersCheck();
a.argument.innerHTML=a.responseText;a.argument.disabled=false;}openUnit=function(){loadPoslovalnico(arguments[0]);};BK={s:false,_:function(a,c){for(var b in a){c[b]=a[b];
}},ce:function(c,b){var d=document.createElement(c);this._(b,d);return d;},sc:function(a){resetGlobalTimersCheck();var b=a.argument.e.h;b.innerHTML=a.responseText;
},fc:function(a){resetGlobalTimersCheck();a.argument.cl();},tv:function(d,a){var g=document.getElementsByTagName(d);for(var c=0,b=g.length;c<b;c++){g[c].style.visibility=(a)?"visible":"hidden";
}},cl:function(){clearInterval(this.i);this.e.c.style.display="none";this.tv("object",true);this.tv("embed",true);this.tv("select",true);},op:function(){var a=this;
this.e.c.style.display="block";this.tv("object",false);this.tv("embed",false);this.tv("select",false);},su:function(){if(this.s){return;}var e=document;var a=e.getElementsByTagName("body")[0];
var g=a.appendChild(this.ce("div",{id:"help-cover"}));this.e={c:g,b:g.appendChild(this.ce("div",{id:"help-back"})),h:g.appendChild(this.ce("div",{id:"help-holder"}))};
this.s=true;},lh:function(a){this.su();this.ss();this.rq=YAHOO.util.Connect.asyncRequest("GET",a,{success:this.sc,failure:this.fc,argument:this},null);this.op();
return false;},lhLoad:function(a){this.rq=YAHOO.util.Connect.asyncRequest("GET",a,{success:this.sc,failure:this.fc,argument:this},null);this.op();return false;},gs:function(){var e={y:0,x:0};
var c=window;var g=document;if(c.pageYOffset){e.y=c.pageYOffset;e.x=c.pageXOffset;}else{var a=(g.documentElement&&g.documentElement.scrollTop)?g.documentElement:g.body;
if(a){e.y=a.scrollTop;e.x=a.scrollLeft;}}return e;},ss:function(){this.e.c.style.display="none";var d=YAHOO.util.Dom.getDocumentHeight();var a=YAHOO.util.Dom.getDocumentWidth();
this.e.c.style.display="block";var c=this.gs();var e=YAHOO.util.Dom.getViewportHeight();this._({width:a+"px",height:d+"px"},this.e.c.style);var b=c.y+(e-parseInt(YAHOO.util.Dom.getStyle(this.e.h,"height")))/2-60;
this._({top:b+"px"},this.e.h.style);}};function checkSvetovalecForm(){var a=document.forms["parsek-tabview"].adviserorder_day;var b=document.forms["parsek-tabview"].adviserorder_time;
if(a.value==""||a.value=="-"){alert("Prosimo izberite dan!");a.focus();return false;}if(b.value==""||b.value=="-"){alert("Prosimo izberite uro!");b.focus();return false;
}return true;}readCookie=function(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var g=a[d];while(g.charAt(0)==" "){g=g.substring(1,g.length);
}if(g.indexOf(e)==0){return g.substring(e.length,g.length);}}return null;};createCookie=function(c,e,d){if(d){var b=new Date();b.setTime(b.getTime()+(d*60*1000));
var a="; expires="+b.toGMTString();}else{var a="";}document.cookie=c+"="+e+a+"; path=/";};eraseCookie=function(a){createCookie(a,"",-1);};isCookieEnabled=function(){var a=("cookie" in document&&(document.cookie.length>0||(document.cookie="isCookieEnabled").indexOf.call(document.cookie,"isCookieEnabled")>-1));
if(a){document.cookie="isCookieEnabled; expires=Thu, 01-Jan-1970 00:00:01 GMT";}return a;};resizeMe=function(e){var d=e;var b=document.getElementById("twrapper");
var g=parseFloat(b.className.substr(5,1));if(d==="mag"){if(g<5){g++;b.className="size-"+g;}}if(d==="min"){if(g!=1){g--;b.className="size-"+g;}}};textResize=function(){var b=document.getElementById("twrapper");
var a=document.getElementById("text-large");var c=document.getElementById("text-small");var d=3;if(b){if(d){b.className="size-"+d;}else{b.className="size-3";}}if(a){a.onclick=function(){resizeMe("mag");
return false;};}if(c){c.onclick=function(){resizeMe("min");return false;};}};findTooltips=function(){var b=YAHOO.util.Dom.getElementsByClassName("tooltip-holder");
for(var a=0;a<b.length;a++){b[a].onmouseover=showTooltip;b[a].onmouseout=hideTooltip;}};showTooltip=function(){var a=this.getElementsByTagName("div")[0];if(a){a.className="tooltip";
}};hideTooltip=function(){var a=this.getElementsByTagName("div")[0];if(a){a.className="tooltip hidden";}};stackEvent=function(b,a){var c=window["on"+b]||function(){};
window["on"+b]=function(){c();a();};};addOnLoad=function(){var a=window.onload?window.onload:function(){};var b=arguments;window.onload=function(){for(var d=0,c=b.length;
d<c;d++){b[d]();}a();};};addLoadEvent=function(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a;}else{window.onload=function(){if(b){b();
}a();};}};liveBannersTimeout=-1;function setLiveBannersTimeout(a){liveBannersTimeout=a;}autoActivateInit=function(){if(liveBannersTimeout>0){window.keyActTimer=setTimeout("",1);
clearTimeout(window.keyActTimer);window.keyActTimer=setTimeout(autoActivate,liveBannersTimeout);}};autoActivate=function(g){g=(Math.random()+"").substr(2);var d=document.getElementById("key");
var a=[];for(var c=0;c<d.children.length;c++){if(d.children[c].tagName=="DIV"){a.push(d.children[c]);}}for(var b=0;b<a.length;b++){if(a[b].className.indexOf("bannerNumber")>0&&a[b].className.indexOf("active")>0){var e=b+1;
if(e>=a.length){e=0;}}}clearTimeout(window.keyActTimer);window.keyActTimer=setTimeout(function(){autoActivate(g);},liveBannersTimeout);activateKey(null,"p"+(e+1),g);
};activatePrev=function(g){g=(Math.random()+"").substr(2);var d=document.getElementById("key");var a=[];for(var c=0;c<d.children.length;c++){if(d.children[c].tagName=="DIV"){a.push(d.children[c]);
}}for(var b=0;b<a.length;b++){if(a[b].className.indexOf("bannerNumber")>0&&a[b].className.indexOf("active")>0){var e=b-1;if(e<0){e=a.length-1;}}}clearTimeout(window.keyActTimer);
window.keyActTimer=setTimeout(function(){autoActivate(g);},liveBannersTimeout);activateKey(null,"p"+(e+1),g);};activateKey=function(g,l,h){if(!l){clearTimeout(window.keyActTimer);
window.keyActTimer=setTimeout(autoActivate,20000);l=this.className.substr(0,this.className.indexOf(" "));}var d=document.getElementById("key");var a=[];for(var c=0;
c<d.children.length;c++){if(d.children[c].tagName=="DIV"){a.push(d.children[c]);}}for(var b=0;b<a.length;b++){if(a[b].className.indexOf("bannerNumber")>0&&a[b].className.startsWith("p")){if(a[b].className.startsWith(l)){a[b].className=a[b].className.substr(0,(a[b].className.indexOf("kv ")+3))+" active bannerNumber";
}else{a[b].className=a[b].className.substr(0,(a[b].className.indexOf("kv ")+3))+" hidden bannerNumber";}}}return false;};function setCookie(b,c,a){var d=new Date();
d.setDate(d.getDate()+a);document.cookie=b+"="+escape(c)+((a==null)?"":";expires="+d.toGMTString());}function getCookie(b){if(document.cookie.length>0){var c=document.cookie.indexOf(b+"=");
if(c!=-1){c=c+b.length+1;var a=document.cookie.indexOf(";",c);if(a==-1){a=document.cookie.length;}return unescape(document.cookie.substring(c,a));}}return"";}frontTabs=function(){};
addOnLoad(findTooltips,autoActivateInit,textResize,frontTabs);if(typeof(resizeMe)!="undefined"){addOnLoad(resizeMe);}toggleid=function(a){var b=document.getElementById(a);
if(b){if(b.style.display=="none"){b.style.display="block";}else{b.style.display="none";}}return false;};submitSecureCode=function(b){var a;if(window.event){a=window.event.keyCode;
}else{if(b){a=b.which;}}if(a==13){document.getElementById("otpLoginForm:loginButton").click();return false;}};initSecureCodeSubmit=function(){var a=document.getElementById("otpLoginForm:securecode");
if(a){a.focus();}else{var b=document.getElementById("otpLoginForm:securecodeM");if(b){b.focus();}}};addOnLoad(initSecureCodeSubmit);externalLinks=function(){if(!document.getElementsByTagName){return;
}var c=document.getElementsByTagName("a");for(var b=0;b<c.length;b++){var a=c[b];if(a.getAttribute("href")&&a.getAttribute("rel")=="external"){a.target="_blank";
}}};addOnLoad(externalLinks);var vlogaZaposlitev={init:function(){var k=$("application:workstatus").selectedIndex;var h=$("application:company");var d=$("companyLi");
var g=$("zaposlitevLabel");var c=$("application:faculty");var e=$("facultyLi");var m=$("studijLabel");var l=$("application:faculty_year");var b=$("faculty_yearLi");
var a=$("studiLetoLabel");if(k==0||k==2||k==3||k==4){g.innerHTML="";h.className="hidden";d.className="hidden";}else{if(k==1||k==5){g.innerHTML=k==1?"Zaposlen v*":"Drugo*";
}else{h.className="";d.className="";}}if(k!=3){m.innerHTML="";c.className="hidden";e.className="hidden";a.innerHTML="";l.className="hidden";b.className="hidden";
}else{m.innerHTML="Študent fakultete*";c.className="";e.className="";a.innerHTML="Letnik*";l.className="";b.className="";}},change:function(g){if($(g.id).value=="Z"){$("zaposlitevLabel").innerHTML="Zaposlen v*";
$("application:company").className="";$("companyLi").className="";}else{if($(g.id).value=="O"){$("zaposlitevLabel").innerHTML="Drugo*";$("application:company").className="";
$("companyLi").className="";}else{$("application:company").className="hidden";$("companyLi").className="hidden";$("zaposlitevLabel").innerHTML="";}}var c=$("application:faculty");
var k=$("facultyLi");var a=$("studijLabel");var h=$("application:faculty_year");var d=$("faculty_yearLi");var b=$("studiLetoLabel");if($(g.id).value=="ST"){a.innerHTML="Študent fakultete*";
c.className="";k.className="";b.innerHTML="Letnik*";h.className="";d.className="";}else{a.innerHTML="";c.className="hidden";k.className="hidden";b.innerHTML="";h.className="hidden";
d.className="hidden";}},personalDocChange:function(a){$("application:st_dok").value="";if($(a.id).value=="N-2"){$("application:st_dok").removeAttribute("onkeydown");
}else{if(!$("application:st_dok").hasAttribute("onkeydown")){$("application:st_dok").setAttribute("onkeydown","return numeralsOnly(event)");}}if(!(a.value.indexOf("D")>-1)){document.getElementById("datumi").style.display="block";
}else{document.getElementById("datumi").style.display="none";}}};var vprasalnik={init:function(){},other:function(b){var a=b.name;if(b.value=="drugo"){document.getElementById(a+"Input").className="";
}else{document.getElementById(a+"Input").className="hidden";}}};function disableField(b){var a=document.getElementById(b);if(a!=null){a.disabled=true;}}function toggleBlock(b){for(var a=0;
a<b.length;a++){var c=YAHOO.util.Dom.getStyle(b[a],"display");if(c=="none"){c="block";}else{c="none";}YAHOO.util.Dom.setStyle(b[a],"display",c);}return false;}function displayBlock(b,c){for(var a=0;
a<b.length;a++){YAHOO.util.Dom.setStyle(b[a],"display",c[a]);}return false;}function printCheckIsIE(){return navigator.appName.toUpperCase()=="MICROSOFT INTERNET EXPLORER";
}function onSubmitDisableBtn(b,a){document.getElementById(b).disabled=true;document.getElementById(b).src="/BIN/_sl/images/buttons/"+a;}function onSubmitDisableBtnWithLink(b,a,c){onSubmitDisableBtn(b,a);
if(printCheckIsIE()){document.getElementById(c).fireEvent("onclick");}else{document.getElementById(c).onclick();}}function goToAnchor(a){if(a!=null&&a.length>0){location.href="#"+a;
}}function goToAnchorSlide(a){if(a!=null&&a.length>0){location.href="#"+a;}}function goToAktivnost(a){if(a!=null&&a.length>0){location.href="#"+a;}}function isShowen(c){if(c!=null){var b=document.getElementById(c);
if(b!=null){var a=b.style.display;if(a=="none"){return false;}else{return true;}}}return false;}function hideElements(c){for(var b=0;b<c.length;b++){if(isShowen(c[b])){var a=document.getElementById(c[b]);
new Effect.BlindUp(c[b],{duration:0.3});}}}function showElement(c,b){if(c!=null){hideElements(b);var a=document.getElementById(c);if(isShowen(c)){a.style.display="none";
}else{new Effect.BlindDown(c,{duration:0.3});goToAnchor(c);}}}function hideElementsAccordion(d){if(d!=null&&d!=""){for(var b=0;b<d.length;b++){var g=d[b]+"Link";
var e=d[b]+"Content";var c=document.getElementById(e);if(isShowen(e)){var a=document.getElementById(g);a.className="closed";c.style.display="none";}}}}function showElementAccordion(g,c){if(g!=null){hideElementsAccordion(c);
var e=g+"Link";var d=g+"Content";var a=document.getElementById(e);var b=document.getElementById(d);if(isShowen(d)){b.style.display="none";a.className="closed";}else{a.className="opened";
b.style.display="";}}}function setUserNameTmp(){var a=document.getElementById("vrstaPrijaveForm:userNameTmp");var b=document.getElementById("username");if(b&&a){a.value=b.value;
}}function setUserName(){var a=document.getElementById("vrstaPrijaveForm:userNameTmp");var b=document.getElementById("username");if(b&&a){b.value=a.value;}}function prikaziSkrijZapise(o,l,g){var p=document.getElementById(o).rows.length;
var m=document.getElementById(o);var s=g?g:10;for(var e=0;e<p;e++){var a=document.getElementById(o).rows[e];var k="";var b="";if(a){k=a.className;b=a.id;var n=b.replace(o,"");
var d=parseInt(n);if(d>=s){k=l?"showen":"hidden";}a.className=k;}}var h=document.getElementById("prikaziVse");if(h){h.className=l?"hidden":"showen";}var q=document.getElementById("skrijVse");
if(q){q.className=l?"showen":"hidden";}}function prikaziSkrijZapise2(p,m,g,b){var q=document.getElementById(p).rows.length;var n=document.getElementById(p);var t=g?g:10;
var k=b==null?"":b;for(var e=0;e<q;e++){var a=document.getElementById(p).rows[e];var l="";var b="";if(a){l=a.className;b=a.id;var o=b.replace(p,"");var d=parseInt(o);
if(d>=t){l=m?"showen":"hidden";}a.className=l;}}var h=document.getElementById("prikaziVse"+k);if(h){h.className=m?"hidden":"showen";}var s=document.getElementById("skrijVse"+k);
if(s){s.className=m?"showen":"hidden";}}function readMore(g){var b,e,h,d,c,a;a=true;c=0;h=$(g);b=h.find(".bottom-fade");e=h.find(".razlogi");d=h.find(".razlogi-header");
c=e.outerHeight()+d.outerHeight();console.log("Total height:"+c);if(a){h.css({height:h.height(),"max-height":9999}).animate({height:c});b.fadeOut();a=false;return false;
}else{h.css({height:"120px","max-height":"120px"}).animate({height:"120px"});b.show();a=true;return false;}}(function(){var m,bD=document,a3=window,aW=Math,p=aW.round,bp=aW.floor,aE=aW.ceil,b8=aW.max,aq=aW.min,g=aW.abs,b0=aW.cos,ad=aW.sin,R=aW.PI,aB=R*2/360,u=navigator.userAgent,ax=a3.opera,r=/msie/i.test(u)&&!ax,E=bD.documentMode===8,N=/AppleWebKit/.test(u),br=/Firefox/.test(u),aY=/(Mobile|Android|Windows Phone)/.test(u),a1="http://www.w3.org/2000/svg",bZ=!!bD.createElementNS&&!!bD.createElementNS(a1,"svg").createSVGRect,ag=br&&parseInt(u.split("Firefox/")[1],10)<4,a7=!bZ&&!r&&!!bD.createElement("canvas").getContext,bU,H=bD.documentElement.ontouchstart!==m,c={},bb=0,ak,bA,bS,b9,au,a4,l=function(){},aI=[],bE="Highcharts",bX="3.0.8",P="div",ar="absolute",O="relative",al="hidden",a8="highcharts-",ap="visible",Z="px",B="none",bw="M",bx="L",ai=/^[0-9]+$/,b2="rgba(192,192,192,"+(bZ?0.0001:0.002)+")",ao="",aS="hover",bs="select",bY="millisecond",bj="second",bK="minute",X="hour",bL="day",bW="week",bi="month",bg="year",s,aC="linearGradient",bM="stops",aN="stroke-width",ac,bk,D,Y,ay,bn,ab,aa,at,bJ,aG,bO,J,a={};
a3.Highcharts=a3.Highcharts?bQ(16,true):{};function bo(M,L){var ca;if(!M){M={};}for(ca in L){M[ca]=L[ca];}return M;}function aQ(){var cc,cb=arguments,L,ca={},M=function(cg,ce){var cf,cd;
if(typeof cg!=="object"){cg={};}for(cd in ce){if(ce.hasOwnProperty(cd)){cf=ce[cd];if(cf&&typeof cf==="object"&&Object.prototype.toString.call(cf)!=="[object Array]"&&typeof cf.nodeType!=="number"){cg[cd]=M(cg[cd]||{},cf);
}else{cg[cd]=ce[cd];}}}return cg;};if(cb[0]===true){ca=cb[1];cb=Array.prototype.slice.call(cb,2);}L=cb.length;for(cc=0;cc<L;cc++){ca=M(ca,cb[cc]);}return ca;}function aV(){var M=0,L=arguments,ca=L.length,cb={};
for(;M<ca;M++){cb[L[M++]]=L[M];}return cb;}function bP(L,M){return parseInt(L,M||10);}function bt(L){return typeof L==="string";}function b5(L){return typeof L==="object";
}function aJ(L){return Object.prototype.toString.call(L)==="[object Array]";}function aw(L){return typeof L==="number";}function v(L){return aW.log(L)/aW.LN10;}function y(L){return aW.pow(10,L);
}function S(L,ca){var M=L.length;while(M--){if(L[M]===ca){L.splice(M,1);break;}}}function aj(L){return L!==m&&L!==null;}function U(ca,cd,cc){var M,cb="setAttribute",L;
if(bt(cd)){if(aj(cc)){ca[cb](cd,cc);}else{if(ca&&ca.getAttribute){L=ca.getAttribute(cd);}}}else{if(aj(cd)&&b5(cd)){for(M in cd){ca[cb](M,cd[M]);}}}return L;}function bh(L){return aJ(L)?L:[L];
}function aR(){var M=arguments,ca,L,cb=M.length;for(ca=0;ca<cb;ca++){L=M[ca];if(typeof L!=="undefined"&&L!==null){return L;}}}function b3(L,M){if(r){if(M&&M.opacity!==m){M.filter="alpha(opacity="+(M.opacity*100)+")";
}}bo(L.style,M);}function bq(L,cd,cc,cb,ca){var M=bD.createElement(L);if(cd){bo(M,cd);}if(ca){b3(M,{padding:0,border:B,margin:0});}if(cc){b3(M,cc);}if(cb){cb.appendChild(M);
}return M;}function bl(ca,L){var M=function(){};M.prototype=new ca();bo(M.prototype,L);return M;}function n(cb,ca,ch,cg){var L=bA.lang,M=+cb||0,cf=ca===-1?(M.toString().split(".")[1]||"").length:(isNaN(ca=g(ca))?2:ca),ce=ch===undefined?L.decimalPoint:ch,ci=cg===undefined?L.thousandsSep:cg,cj=M<0?"-":"",cd=String(bP(M=g(M).toFixed(cf))),cc=cd.length>3?cd.length%3:0;
return cj+(cc?cd.substr(0,cc)+ci:"")+cd.substr(cc).replace(/(\d{3})(?=\d)/g,"$1"+ci)+(cf?ce+g(M-cd).toFixed(cf).slice(2):"");}function bH(M,L){return new Array((L||2)+1-String(M).length).join(0)+M;
}function a0(ca,cb,M){var L=ca[cb];ca[cb]=function(){var cc=Array.prototype.slice.call(arguments);cc.unshift(L);return M.apply(this,cc);};}bS=function(ch,cd,cb){if(!aj(cd)||isNaN(cd)){return"Invalid date";
}ch=aR(ch,"%Y-%m-%d %H:%M:%S");var M=new Date(cd-bk),cj,cg=M[Y](),ce=M[ay](),ci=M[bn](),cc=M[ab](),ck=M[aa](),L=bA.lang,cf=L.weekdays,ca=bo({a:cf[ce].substr(0,3),A:cf[ce],d:bH(ci),e:ci,b:L.shortMonths[cc],B:L.months[cc],m:bH(cc+1),y:ck.toString().substr(2,2),Y:ck,H:bH(cg),I:bH((cg%12)||12),l:(cg%12)||12,M:bH(M[D]()),p:cg<12?"AM":"PM",P:cg<12?"am":"pm",S:bH(M.getSeconds()),L:bH(p(cd%1000),3)},Highcharts.dateFormats);
for(cj in ca){while(ch.indexOf("%"+cj)!==-1){ch=ch.replace("%"+cj,typeof ca[cj]==="function"?ca[cj](cd):ca[cj]);}}return cb?ch.substr(0,1).toUpperCase()+ch.substr(1):ch;
};function bf(ca,cd){var M=/f$/,cc=/\.([0-9])/,cb=bA.lang,L;if(M.test(ca)){L=ca.match(cc);L=L?L[1]:-1;cd=n(cd,L,cb.decimalPoint,ca.indexOf(",")>-1?cb.thousandsSep:"");
}else{cd=bS(ca,cd);}return cd;}function h(cg,ci){var L="{",ch=false,cc,M,cj,cb,ce,cf=[],ca,cd;while((cd=cg.indexOf(L))!==-1){cc=cg.slice(0,cd);if(ch){M=cc.split(":");
cj=M.shift().split(".");ce=cj.length;ca=ci;for(cb=0;cb<ce;cb++){ca=ca[cj[cb]];}if(M.length){ca=bf(M.join(":"),ca);}cf.push(ca);}else{cf.push(cc);}cg=cg.slice(cd+1);
ch=!ch;L=ch?"}":"{";}cf.push(cg);return cf.join("");}function o(L){return aW.pow(10,bp(aW.log(L)/aW.LN10));}function bI(L,cd,cb,M){var cc,ca;cb=aR(cb,1);cc=L/cb;
if(!cd){cd=[1,2,2.5,5,10];if(M&&M.allowDecimals===false){if(cb===1){cd=[1,2,5,10];}else{if(cb<=0.1){cd=[1/cb];}}}}for(ca=0;ca<cd.length;ca++){L=cd[ca];if(cc<=(cd[ca]+(cd[ca+1]||cd[ca]))/2){break;
}}L*=cb;return L;}function Q(){this.color=0;this.symbol=0;}Q.prototype={wrapColor:function(L){if(this.color>=L){this.color=0;}},wrapSymbol:function(L){if(this.symbol>=L){this.symbol=0;
}}};function aK(M,L){var cc=M.length,ca,cb;for(cb=0;cb<cc;cb++){M[cb].ss_i=cb;}M.sort(function(ce,cd){ca=L(ce,cd);return ca===0?ce.ss_i-cd.ss_i:ca;});for(cb=0;cb<cc;
cb++){delete M[cb].ss_i;}}function bF(ca){var M=ca.length,L=ca[0];while(M--){if(ca[M]<L){L=ca[M];}}return L;}function aM(ca){var M=ca.length,L=ca[0];while(M--){if(ca[M]>L){L=ca[M];
}}return L;}function bc(M,L){var ca;for(ca in M){if(M[ca]&&M[ca]!==L&&M[ca].destroy){M[ca].destroy();}delete M[ca];}}function bR(L){if(!ak){ak=bq(P);}if(L){ak.appendChild(L);
}ak.innerHTML="";}function bQ(M,L){var ca="Highcharts error #"+M+": www.highcharts.com/errors/"+M;if(L){throw ca;}else{if(a3.console){console.log(ca);}}}function ah(L){return parseFloat(L.toPrecision(14));
}function b4(M,L){b9=aR(M,L.animation);}a4=aV(bY,1,bj,1000,bK,60000,X,3600000,bL,24*3600000,bW,7*24*3600000,bi,31*24*3600000,bg,31556952000);au={init:function(cc,ch,ci){ch=ch||"";
var M=cc.shift,ca=ch.indexOf("C")>-1,cb=ca?7:3,cf,cj,ce,L=ch.split(" "),cd=[].concat(ci),cl,cg,ck=function(cm){ce=cm.length;while(ce--){if(cm[ce]===bw){cm.splice(ce+1,0,cm[ce+1],cm[ce+2],cm[ce+1],cm[ce+2]);
}}};if(ca){ck(L);ck(cd);}if(cc.isArea){cl=L.splice(L.length-6,6);cg=cd.splice(cd.length-6,6);}if(M<=cd.length/cb&&L.length===cd.length){while(M--){cd=[].concat(cd).splice(0,cb).concat(cd);
}}cc.shift=0;if(L.length){cf=cd.length;while(L.length<cf){cj=[].concat(L).splice(L.length-cb,cb);if(ca){cj[cb-6]=cj[cb-2];cj[cb-5]=cj[cb-1];}L=L.concat(cj);}}if(cl){L=L.concat(cl);
cd=cd.concat(cg);}return[L,cd];},step:function(ce,M,cd,L){var cb=[],cc=ce.length,ca;if(cd===1){cb=L;}else{if(cc===M.length&&cd<1){while(cc--){ca=parseFloat(ce[cc]);
cb[cc]=isNaN(ca)?ce[cc]:cd*(parseFloat(M[cc]-ca))+ca;}}else{cb=M;}}return cb;}};(function(L){a3.HighchartsAdapter=a3.HighchartsAdapter||(L&&{init:function(ce){var cd=L.fx,ca=cd.step,cc,cf=L.Tween,M=cf&&cf.propHooks,cb=L.cssHooks.opacity;
L.extend(L.easing,{easeOutQuad:function(ch,ci,cg,ck,cj){return -ck*(ci/=cj)*(ci-2)+cg;}});L.each(["cur","_default","width","height","opacity"],function(cg,ch){var cj=ca,ci;
if(ch==="cur"){cj=cd.prototype;}else{if(ch==="_default"&&cf){cj=M[ch];ch="set";}}ci=cj[ch];if(ci){cj[ch]=function(cl){var ck;cl=cg?cl:this;if(cl.prop==="align"){return;
}ck=cl.elem;return ck.attr?ck.attr(cl.prop,ch==="cur"?m:cl.now):ci.apply(this,arguments);};}});a0(cb,"get",function(ci,ch,cg){return ch.attr?(ch.opacity||0):ci.call(this,ch,cg);
});cc=function(ci){var ch=ci.elem,cg;if(!ci.started){cg=ce.init(ch,ch.d,ch.toD);ci.start=cg[0];ci.end=cg[1];ci.started=true;}ch.attr("d",ce.step(ci.start,ci.end,ci.pos,ch.toD));
};if(cf){M.d={set:cc};}else{ca.d=cc;}this.each=Array.prototype.forEach?function(cg,ch){return Array.prototype.forEach.call(cg,ch);}:function(ch,cj){var ci=0,cg=ch.length;
for(;ci<cg;ci++){if(cj.call(ch[ci],ch[ci],ci,ch)===false){return ci;}}};L.fn.highcharts=function(){var ck="Chart",ci=arguments,ch,cg,cj;if(bt(ci[0])){ck=ci[0];ci=Array.prototype.slice.call(ci,1);
}ch=ci[0];if(ch!==m){ch.chart=ch.chart||{};ch.chart.renderTo=this[0];cj=new Highcharts[ck](ch,ci[1]);cg=this;}if(ch===m){cg=aI[U(this[0],"data-highcharts-chart")];
}return cg;};},getScript:L.getScript,inArray:L.inArray,adapterRun:function(M,ca){return L(M)[ca]();},grep:L.grep,map:function(ca,cd){var cc=[],cb=0,M=ca.length;for(;
cb<M;cb++){cc[cb]=cd.call(ca[cb],ca[cb],cb,ca);}return cc;},offset:function(M){return L(M).offset();},addEvent:function(ca,cb,M){L(ca).bind(cb,M);},removeEvent:function(cb,M,ca){var cc=bD.removeEventListener?"removeEventListener":"detachEvent";
if(bD[cc]&&cb&&!cb[cc]){cb[cc]=function(){};}L(cb).unbind(M,ca);},fireEvent:function(cd,cc,ca,M){var cf=L.Event(cc),ce="detached"+cc,cb;if(!r&&ca){delete ca.layerX;
delete ca.layerY;}bo(cf,ca);if(cd[cc]){cd[ce]=cd[cc];cd[cc]=null;}L.each(["preventDefault","stopPropagation"],function(cg,ch){var ci=cf[ch];cf[ch]=function(){try{ci.call(cf);
}catch(cj){if(ch==="preventDefault"){cb=true;}}};});L(cd).trigger(cf);if(cd[ce]){cd[cc]=cd[ce];cd[ce]=null;}if(M&&!cf.isDefaultPrevented()&&!cb){M(cf);}},washMouseEvent:function(ca){var M=ca.originalEvent||ca;
if(M.pageX===m){M.pageX=ca.pageX;M.pageY=ca.pageY;}return M;},animate:function(cb,cc,M){var ca=L(cb);if(!cb.style){cb.style={};}if(cc.d){cb.toD=cc.d;cc.d=1;}ca.stop();
if(cc.opacity!==m&&cb.attr){cc.opacity+="px";}ca.animate(cc,M);},stop:function(M){L(M).stop();}});}(a3.jQuery));var ae=a3.HighchartsAdapter,b1=ae||{};if(ae){ae.init.call(ae,au);
}var aL=b1.adapterRun,be=b1.getScript,A=b1.inArray,I=b1.each,bz=b1.grep,bT=b1.offset,am=b1.map,z=b1.addEvent,a5=b1.removeEvent,bv=b1.fireEvent,T=b1.washMouseEvent,t=b1.animate,aZ=b1.stop;
var w={enabled:true,x:0,y:15,style:{color:"#666",cursor:"default",fontSize:"11px",lineHeight:"14px"}};bA={colors:["#2f7ed8","#0d233a","#8bbc21","#910000","#1aadce","#492970","#f28f43","#77a1e5","#c42525","#a6c96a"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:true,canvasToolsURL:"http://code.highcharts.com/3.0.8/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/3.0.8/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:true,spacing:[10,10,15,10],style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#274b6d",fontSize:"16px"}},subtitle:{text:"",align:"center",style:{color:"#4d759e"}},plotOptions:{line:{allowPointSelect:false,showCheckbox:false,animation:{duration:1000},events:{},lineWidth:2,marker:{enabled:true,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:true},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:aQ(w,{align:"center",enabled:false,formatter:function(){return this.y===null?"":n(this.y,-1);
},verticalAlign:"bottom",y:0}),cropThreshold:300,pointRange:0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:true,turboThreshold:1000}},labels:{style:{position:ar,color:"#3E576F"}},legend:{enabled:true,align:"center",layout:"horizontal",labelFormatter:function(){return this.name;
},borderWidth:1,borderColor:"#909090",borderRadius:5,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:false,itemStyle:{cursor:"pointer",color:"#274b6d",fontSize:"12px"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:ar,width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:O,top:"1em"},style:{position:ar,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:true,animation:bZ,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',shadow:true,snap:aY?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:true,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};
var an=bA.plotOptions,aU=an.line;V();function V(){var ca=bA.global.useUTC,L=ca?"getUTC":"get",M=ca?"setUTC":"set";bk=((ca&&bA.global.timezoneOffset)||0)*60000;ac=ca?Date.UTC:function(ce,cf,cc,cb,cd,cg){return new Date(ce,cf,aR(cc,1),aR(cb,0),aR(cd,0),aR(cg,0)).getTime();
};D=L+"Minutes";Y=L+"Hours";ay=L+"Day";bn=L+"Date";ab=L+"Month";aa=L+"FullYear";at=M+"Minutes";bJ=M+"Hours";aG=M+"Date";bO=M+"Month";J=M+"FullYear";}function a9(L){bA=aQ(true,bA,L);
V();return bA;}function aH(){return bA;}var af=/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*\)/,av=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,ba=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/;
var bN=function(M){var cc=[],L,ce;function cf(cg){if(cg&&cg.stops){ce=am(cg.stops,function(ch){return bN(ch[1]);});}else{L=af.exec(cg);if(L){cc=[bP(L[1]),bP(L[2]),bP(L[3]),parseFloat(L[4],10)];
}else{L=av.exec(cg);if(L){cc=[bP(L[1],16),bP(L[2],16),bP(L[3],16),1];}else{L=ba.exec(cg);if(L){cc=[bP(L[1]),bP(L[2]),bP(L[3]),1];}}}}}function cb(ch){var cg;if(ce){cg=aQ(M);
cg.stops=[].concat(cg.stops);I(ce,function(cj,ci){cg.stops[ci]=[cg.stops[ci][0],cj.get(ch)];});}else{if(cc&&!isNaN(cc[0])){if(ch==="rgb"){cg="rgb("+cc[0]+","+cc[1]+","+cc[2]+")";
}else{if(ch==="a"){cg=cc[3];}else{cg="rgba("+cc.join(",")+")";}}}else{cg=M;}}return cg;}function cd(ch){if(ce){I(ce,function(ci){ci.brighten(ch);});}else{if(aw(ch)&&ch!==0){var cg;
for(cg=0;cg<3;cg++){cc[cg]+=bP(ch*255);if(cc[cg]<0){cc[cg]=0;}if(cc[cg]>255){cc[cg]=255;}}}}return this;}function ca(cg){cc[3]=cg;return this;}cf(M);return{get:cb,brighten:cd,rgba:cc,setOpacity:ca};
};function aA(){}aA.prototype={init:function(L,ca){var M=this;M.element=ca==="span"?bq(ca):bD.createElementNS(a1,ca);M.renderer=L;M.attrSetters={};},opacity:1,animate:function(cb,M,L){var ca=aR(M,b9,true);
aZ(this);if(ca){ca=aQ(ca);if(L){ca.complete=L;}t(this,cb,ca);}else{this.attr(cb);if(L){L();}}},attr:function(ca,cp){var cc=this,cn,ci,ch,cl,cf,cb=cc.element,L=cb.nodeName.toLowerCase(),cj=cc.renderer,cg,ck,co=cc.attrSetters,M=cc.shadows,ce,cd,cm=cc;
if(bt(ca)&&aj(cp)){cn=ca;ca={};ca[cn]=cp;}if(bt(ca)){cn=ca;if(L==="circle"){cn={x:"cx",y:"cy"}[cn]||cn;}else{if(cn==="strokeWidth"){cn="stroke-width";}}cm=U(cb,cn)||cc[cn]||0;
if(cn!=="d"&&cn!=="visibility"&&cn!=="fill"){cm=parseFloat(cm);}}else{for(cn in ca){cg=false;ci=ca[cn];ch=co[cn]&&co[cn].call(cc,ci,cn);if(ch!==false){if(ch!==m){ci=ch;
}if(cn==="d"){if(ci&&ci.join){ci=ci.join(" ");}if(/(NaN| {2}|^$)/.test(ci)){ci="M 0 0";}}else{if(cn==="x"&&L==="text"){for(cl=0;cl<cb.childNodes.length;cl++){cf=cb.childNodes[cl];
if(U(cf,"x")===U(cb,"x")){U(cf,"x",ci);}}}else{if(cc.rotation&&(cn==="x"||cn==="y")){cd=true;}else{if(cn==="fill"){ci=cj.color(ci,cb,cn);}else{if(L==="circle"&&(cn==="x"||cn==="y")){cn={x:"cx",y:"cy"}[cn]||cn;
}else{if(L==="rect"&&cn==="r"){U(cb,{rx:ci,ry:ci});cg=true;}else{if(cn==="translateX"||cn==="translateY"||cn==="rotation"||cn==="verticalAlign"||cn==="scaleX"||cn==="scaleY"){cd=true;
cg=true;}else{if(cn==="stroke"){ci=cj.color(ci,cb,cn);}else{if(cn==="dashstyle"){cn="stroke-dasharray";ci=ci&&ci.toLowerCase();if(ci==="solid"){ci=B;}else{if(ci){ci=ci.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");
cl=ci.length;while(cl--){ci[cl]=bP(ci[cl])*aR(ca["stroke-width"],cc["stroke-width"]);}ci=ci.join(",");}}}else{if(cn==="width"){ci=bP(ci);}else{if(cn==="align"){cn="text-anchor";
ci={left:"start",center:"middle",right:"end"}[ci];}else{if(cn==="title"){ck=cb.getElementsByTagName("title")[0];if(!ck){ck=bD.createElementNS(a1,"title");cb.appendChild(ck);
}ck.textContent=ci;}}}}}}}}}}}}if(cn==="strokeWidth"){cn="stroke-width";}if(cn==="stroke-width"||cn==="stroke"){cc[cn]=ci;if(cc.stroke&&cc["stroke-width"]){U(cb,"stroke",cc.stroke);
U(cb,"stroke-width",cc["stroke-width"]);cc.hasStroke=true;}else{if(cn==="stroke-width"&&ci===0&&cc.hasStroke){cb.removeAttribute("stroke");cc.hasStroke=false;}}cg=true;
}if(cc.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(cn)){if(!ce){cc.symbolAttr(ca);ce=true;}cg=true;}if(M&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(cn)){cl=M.length;
while(cl--){U(M[cl],cn,cn==="height"?b8(ci-(M[cl].cutHeight||0),0):ci);}}if((cn==="width"||cn==="height")&&L==="rect"&&ci<0){ci=0;}cc[cn]=ci;if(cn==="text"){if(ci!==cc.textStr){delete cc.bBox;
}cc.textStr=ci;if(cc.added){cj.buildText(cc);}}else{if(!cg){U(cb,cn,ci);}}}}if(cd){cc.updateTransform();}}return cm;},addClass:function(M){var L=this.element,ca=U(L,"class")||"";
if(ca.indexOf(M)===-1){U(L,"class",ca+" "+M);}return this;},symbolAttr:function(L){var M=this;I(["x","y","r","start","end","width","height","innerR","anchorX","anchorY"],function(ca){M[ca]=aR(L[ca],M[ca]);
});M.attr({d:M.renderer.symbols[M.symbolName](M.x,M.y,M.width,M.height,M)});},clip:function(L){return this.attr("clip-path",L?"url("+this.renderer.url+"#"+L.id+")":B);
},crisp:function(cd,ce,cc,ca,ch){var L=this,cg,M={},cf={},cb;cd=cd||L.strokeWidth||(L.attr&&L.attr("stroke-width"))||0;cb=p(cd)%2/2;cf.x=bp(ce||L.x||0)+cb;cf.y=bp(cc||L.y||0)+cb;
cf.width=bp((ca||L.width||0)-2*cb);cf.height=bp((ch||L.height||0)-2*cb);cf.strokeWidth=cd;for(cg in cf){if(L[cg]!==cf[cg]){L[cg]=M[cg]=cf[cg];}}return M;},css:function(cb){var L=this,ca=L.element,cd=L.textWidth=cb&&cb.width&&ca.nodeName.toLowerCase()==="text"&&bP(cb.width),ce,cc="",M=function(cg,cf){return"-"+cf.toLowerCase();
};if(cb&&cb.color){cb.fill=cb.color;}cb=bo(L.styles,cb);L.styles=cb;if(cd){delete cb.width;}if(r&&!bZ){b3(L.element,cb);}else{for(ce in cb){cc+=ce.replace(/([A-Z])/g,M)+":"+cb[ce]+";";
}U(ca,"style",cc);}if(cd&&L.added){L.renderer.buildText(L);}return L;},on:function(M,ca){var cb=this,L=cb.element;if(H&&M==="click"){L.ontouchstart=function(cc){cb.touchEventFired=Date.now();
cc.preventDefault();ca.call(L,cc);};L.onclick=function(cc){if(u.indexOf("Android")===-1||Date.now()-(cb.touchEventFired||0)>1100){ca.call(L,cc);}};}else{L["on"+M]=ca;
}return this;},setRadialReference:function(L){this.element.radialReference=L;return this;},translate:function(L,M){return this.attr({translateX:L,translateY:M});
},invert:function(){var L=this;L.inverted=true;L.updateTransform();return L;},updateTransform:function(){var cf=this,ce=cf.translateX||0,cd=cf.translateY||0,cb=cf.scaleX,M=cf.scaleY,L=cf.inverted,cc=cf.rotation,ca;
if(L){ce+=cf.attr("width");cd+=cf.attr("height");}ca=["translate("+ce+","+cd+")"];if(L){ca.push("rotate(90) scale(-1,1)");}else{if(cc){ca.push("rotate("+cc+" "+(cf.x||0)+" "+(cf.y||0)+")");
}}if(aj(cb)||aj(M)){ca.push("scale("+aR(cb,1)+" "+aR(M,1)+")");}if(ca.length){U(cf.element,"transform",ca.join(" "));}},toFront:function(){var L=this.element;L.parentNode.appendChild(L);
return this;},align:function(M,cg,cb){var ce,cc,ci,ch,L={},cd,cf=this.renderer,ca=cf.alignedObjects;if(M){this.alignOptions=M;this.alignByTranslate=cg;if(!cb||bt(cb)){this.alignTo=cd=cb||"renderer";
S(ca,this);ca.push(this);cb=null;}}else{M=this.alignOptions;cg=this.alignByTranslate;cd=this.alignTo;}cb=aR(cb,cf[cd],cf);ce=M.align;cc=M.verticalAlign;ci=(cb.x||0)+(M.x||0);
ch=(cb.y||0)+(M.y||0);if(ce==="right"||ce==="center"){ci+=(cb.width-(M.width||0))/{right:1,center:2}[ce];}L[cg?"translateX":"x"]=p(ci);if(cc==="bottom"||cc==="middle"){ch+=(cb.height-(M.height||0))/({bottom:1,middle:2}[cc]||1);
}L[cg?"translateY":"y"]=p(ch);this[this.placed?"animate":"attr"](L);this.placed=true;this.alignAttr=L;return this;},getBBox:function(){var M=this,ch=M.bBox,cd=M.renderer,ca,cf,ci=M.rotation,cb=M.element,cg=M.styles,ce=ci*aB,cj=M.textStr,L;
if(cj===""||ai.test(cj)){L=cj.length+"|"+cg.fontSize+"|"+cg.fontFamily;ch=cd.cache[L];}if(!ch){if(cb.namespaceURI===a1||cd.forExport){try{ch=cb.getBBox?bo({},cb.getBBox()):{width:cb.offsetWidth,height:cb.offsetHeight};
}catch(cc){}if(!ch||ch.width<0){ch={width:0,height:0};}}else{ch=M.htmlGetBBox();}if(cd.isSVG){ca=ch.width;cf=ch.height;if(r&&cg&&cg.fontSize==="11px"&&cf.toPrecision(3)==="22.7"){ch.height=cf=14;
}if(ci){ch.width=g(cf*ad(ce))+g(ca*b0(ce));ch.height=g(cf*b0(ce))+g(ca*ad(ce));}}M.bBox=ch;if(L){cd.cache[L]=ch;}}return ch;},show:function(){return this.attr({visibility:ap});
},hide:function(){return this.attr({visibility:al});},fadeOut:function(M){var L=this;L.animate({opacity:0},{duration:M||150,complete:function(){L.hide();}});},add:function(cg){var ce=this.renderer,cd=cg||ce,cc=cd.element||ce.box,ci=cc.childNodes,cb=this.element,cf=U(cb,"zIndex"),ch,L,ca,M;
if(cg){this.parentGroup=cg;}this.parentInverted=cg&&cg.inverted;if(this.textStr!==undefined){ce.buildText(this);}if(cf){cd.handleZ=true;cf=bP(cf);}if(cd.handleZ){for(ca=0;
ca<ci.length;ca++){ch=ci[ca];L=U(ch,"zIndex");if(ch!==cb&&(bP(L)>cf||(!aj(cf)&&aj(L)))){cc.insertBefore(cb,ch);M=true;break;}}}if(!M){cc.appendChild(cb);}this.added=true;
bv(this,"add");return this;},safeRemoveChild:function(M){var L=M.parentNode;if(L){L.removeChild(M);}},destroy:function(){var ce=this,ca=ce.element||{},cc=ce.shadows,cb=ce.renderer.isSVG&&ca.nodeName==="SPAN"&&ce.parentGroup,cd,M,L;
ca.onclick=ca.onmouseout=ca.onmouseover=ca.onmousemove=ca.point=null;aZ(ce);if(ce.clipPath){ce.clipPath=ce.clipPath.destroy();}if(ce.stops){for(L=0;L<ce.stops.length;
L++){ce.stops[L]=ce.stops[L].destroy();}ce.stops=null;}ce.safeRemoveChild(ca);if(cc){I(cc,function(cf){ce.safeRemoveChild(cf);});}while(cb&&cb.div.childNodes.length===0){cd=cb.parentGroup;
ce.safeRemoveChild(cb.div);delete cb.div;cb=cd;}if(ce.alignTo){S(ce.renderer.alignedObjects,ce);}for(M in ce){delete ce[M];}return null;},shadow:function(ci,ch,M){var cb=[],cc,cg,cd=this.element,ce,ca,cf,L;
if(ci){ca=aR(ci.width,3);cf=(ci.opacity||0.15)/ca;L=this.parentInverted?"(-1,-1)":"("+aR(ci.offsetX,1)+", "+aR(ci.offsetY,1)+")";for(cc=1;cc<=ca;cc++){cg=cd.cloneNode(0);
ce=(ca*2)+1-(2*cc);U(cg,{isShadow:"true",stroke:ci.color||"black","stroke-opacity":cf*cc,"stroke-width":ce,transform:"translate"+L,fill:B});if(M){U(cg,"height",b8(U(cg,"height")-ce,0));
cg.cutHeight=ce;}if(ch){ch.element.appendChild(cg);}else{cd.parentNode.insertBefore(cg,cd);}cb.push(cg);}this.shadows=cb;}return this;}};var d=function(){this.init.apply(this,arguments);
};d.prototype={Element:aA,init:function(L,M,ch,ci){var cf=this,ce=location,cc,cb,cd;cc=cf.createElement("svg").attr({version:"1.1"});cb=cc.element;L.appendChild(cb);
if(L.innerHTML.indexOf("xmlns")===-1){U(cb,"xmlns",a1);}cf.isSVG=true;cf.box=cb;cf.boxWrapper=cc;cf.alignedObjects=[];cf.url=(br||N)&&bD.getElementsByTagName("base").length?ce.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";
cd=this.createElement("desc").add();cd.element.appendChild(bD.createTextNode("Created with "+bE+" "+bX));cf.defs=this.createElement("defs").add();cf.forExport=ci;
cf.gradients={};cf.cache={};cf.setSize(M,ch,false);var ca,cg;if(br&&L.getBoundingClientRect){cf.subPixelFix=ca=function(){b3(L,{left:0,top:0});cg=L.getBoundingClientRect();
b3(L,{left:(aE(cg.left)-cg.left)+Z,top:(aE(cg.top)-cg.top)+Z});};ca();z(a3,"resize",ca);}},isHidden:function(){return !this.boxWrapper.getBBox().width;},destroy:function(){var L=this,M=L.defs;
L.box=null;L.boxWrapper=L.boxWrapper.destroy();bc(L.gradients||{});L.gradients=null;if(M){L.defs=M.destroy();}if(L.subPixelFix){a5(a3,"resize",L.subPixelFix);}L.alignedObjects=null;
return null;},createElement:function(M){var L=new this.Element();L.init(this,M);return L;},draw:function(){},buildText:function(L){var cb=L.element,cd=this,cj=cd.forExport,ck=aR(L.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),cg=cb.childNodes,ci=/style="([^"]+)"/,ca=/href="(http[^"]+)"/,ch=U(cb,"x"),ce=L.styles,M=L.textWidth,cf=ce&&ce.lineHeight,cc=cg.length;
while(cc--){cb.removeChild(cg[cc]);}if(M&&!L.added){this.box.appendChild(cb);}if(ck[ck.length-1]===""){ck.pop();}I(ck,function(cl,co){var cn,cm=0;cl=cl.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");
cn=cl.split("|||");I(cn,function(cx){if(cx!==""||cn.length===1){var ct={},cw=bD.createElementNS(a1,"tspan"),cy;if(ci.test(cx)){cy=cx.match(ci)[1].replace(/(;| |^)color([ :])/,"$1fill$2");
U(cw,"style",cy);}if(ca.test(cx)&&!cj){U(cw,"onclick",'location.href="'+cx.match(ca)[1]+'"');b3(cw,{cursor:"pointer"});}cx=(cx.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">");
if(cx!==" "){cw.appendChild(bD.createTextNode(cx));if(!cm){ct.x=ch;}else{ct.dx=0;}U(cw,ct);if(!cm&&co){if(!bZ&&cj){b3(cw,{display:"block"});}U(cw,"dy",cf||cd.fontMetrics(/px$/.test(cw.style.fontSize)?cw.style.fontSize:ce.fontSize).h,N&&cw.offsetHeight);
}cb.appendChild(cw);cm++;if(M){var cv=cx.replace(/([^\^])-/g,"$1- ").split(" "),cu=cv.length>1&&ce.whiteSpace!=="nowrap",cz,cp,cs=L._clipHeight,cq=[],cB=bP(cf||16),cr=1,cA;
while(cu&&(cv.length||cq.length)){delete L.bBox;cA=L.getBBox();cp=cA.width;if(!bZ&&cd.forExport){cp=cd.measureSpanWidth(cw.firstChild.data,L.styles);}cz=cp>M;if(!cz||cv.length===1){cv=cq;
cq=[];if(cv.length){cr++;if(cs&&cr*cB>cs){cv=["..."];L.attr("title",L.textStr);}else{cw=bD.createElementNS(a1,"tspan");U(cw,{dy:cB,x:ch});if(cy){U(cw,"style",cy);
}cb.appendChild(cw);if(cp>M){M=cp;}}}}else{cw.removeChild(cw.firstChild);cq.unshift(cv.pop());}if(cv.length){cw.appendChild(bD.createTextNode(cv.join(" ").replace(/- /g,"-")));
}}}}}});});},button:function(cl,ck,cj,cb,co,cp,cq,cn,M){var ci=this.label(cl,ck,cj,M,null,null,null,null,"button"),cf=0,L,cm,cd,cg,ch,cc,ce="style",ca={x1:0,y1:0,x2:0,y2:1};
co=aQ({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:ca,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},co);cd=co[ce];delete co[ce];
cp=aQ(co,{stroke:"#68A",fill:{linearGradient:ca,stops:[[0,"#FFF"],[1,"#ACF"]]}},cp);cg=cp[ce];delete cp[ce];cq=aQ(co,{stroke:"#68A",fill:{linearGradient:ca,stops:[[0,"#9BD"],[1,"#CDF"]]}},cq);
ch=cq[ce];delete cq[ce];cn=aQ(co,{style:{color:"#CCC"}},cn);cc=cn[ce];delete cn[ce];z(ci.element,r?"mouseover":"mouseenter",function(){if(cf!==3){ci.attr(cp).css(cg);
}});z(ci.element,r?"mouseout":"mouseleave",function(){if(cf!==3){L=[co,cp,cq][cf];cm=[cd,cg,ch][cf];ci.attr(L).css(cm);}});ci.setState=function(cr){ci.state=cf=cr;
if(!cr){ci.attr(co).css(cd);}else{if(cr===2){ci.attr(cq).css(ch);}else{if(cr===3){ci.attr(cn).css(cc);}}}};return ci.on("click",function(){if(cf!==3){cb.call(ci);
}}).attr(co).css(bo({cursor:"default"},cd));},crispLine:function(M,L){if(M[1]===M[4]){M[1]=M[4]=p(M[1])-(L%2/2);}if(M[2]===M[5]){M[2]=M[5]=p(M[2])+(L%2/2);}return M;
},path:function(M){var L={fill:B};if(aJ(M)){L.d=M;}else{if(b5(M)){bo(L,M);}}return this.createElement("path").attr(L);},circle:function(M,cb,ca){var L=b5(M)?M:{x:M,y:cb,r:ca};
return this.createElement("circle").attr(L);},arc:function(L,ce,cc,ca,cd,M){var cb;if(b5(L)){ce=L.y;cc=L.r;ca=L.innerR;cd=L.start;M=L.end;L=L.x;}cb=this.symbol("arc",L||0,ce||0,cc||0,cc||0,{innerR:ca||0,start:cd||0,end:M||0});
cb.r=cc;return cb;},rect:function(M,ce,ca,L,cb,cd){cb=b5(M)?M.r:cb;var cc=this.createElement("rect").attr({rx:cb,ry:cb,fill:B});return cc.attr(b5(M)?M:cc.crisp(cd,M,ce,b8(ca,0),b8(L,0)));
},setSize:function(cc,L,ca){var cd=this,M=cd.alignedObjects,cb=M.length;cd.width=cc;cd.height=L;cd.boxWrapper[aR(ca,true)?"animate":"attr"]({width:cc,height:L});
while(cb--){M[cb].align();}},g:function(L){var M=this.createElement("g");return aj(L)?M.attr({"class":a8+L}):M;},image:function(cd,M,ce,cb,L){var cc={preserveAspectRatio:B},ca;
if(arguments.length>1){bo(cc,{x:M,y:ce,width:cb,height:L});}ca=this.createElement("image").attr(cc);if(ca.element.setAttributeNS){ca.element.setAttributeNS("http://www.w3.org/1999/xlink","href",cd);
}else{ca.element.setAttribute("hc-svg-href",cd);}return ca;},symbol:function(cb,ci,cg,M,cj,cl){var cd,ca=this.symbols[cb],ck=ca&&ca(p(ci),p(cg),M,cj,cl),cf,cc=/^url\((.*?)\)$/,ch,ce,L;
if(ck){cd=this.path(ck);bo(cd,{symbolName:cb,x:ci,y:cg,width:M,height:cj});if(cl){bo(cd,cl);}}else{if(cc.test(cb)){L=function(cm,cn){if(cm.element){cm.attr({width:cn[0],height:cn[1]});
if(!cm.alignByTranslate){cm.translate(p((M-cn[0])/2),p((cj-cn[1])/2));}}};ch=cb.match(cc)[1];ce=c[ch];cd=this.image(ch).attr({x:ci,y:cg});cd.isImg=true;if(ce){L(cd,ce);
}else{cd.attr({width:0,height:0});cf=bq("img",{onload:function(){L(cd,c[ch]=[this.width,this.height]);},src:ch});}}}return cd;},symbols:{circle:function(L,cc,M,cb){var ca=0.166*M;
return[bw,L+M/2,cc,"C",L+M+ca,cc,L+M+ca,cc+cb,L+M/2,cc+cb,"C",L-ca,cc+cb,L-ca,cc,L+M/2,cc,"Z"];},square:function(L,cb,M,ca){return[bw,L,cb,bx,L+M,cb,L+M,cb+ca,L,cb+ca,"Z"];
},triangle:function(L,cb,M,ca){return[bw,L+M/2,cb,bx,L+M,cb+ca,L,cb+ca,"Z"];},"triangle-down":function(L,cb,M,ca){return[bw,L,cb,bx,L+M,cb,L+M/2,cb+ca,"Z"];},diamond:function(L,cb,M,ca){return[bw,L+M/2,cb,bx,L+M,cb+ca/2,L+M/2,cb+ca,L,cb+ca/2,"Z"];
},arc:function(cj,ci,cl,ce,cm){var ca=cm.start,cg=cm.r||cl||ce,cb=cm.end-0.001,ch=cm.innerR,cd=cm.open,cf=b0(ca),L=ad(ca),M=b0(cb),ck=ad(cb),cc=cm.end-ca<R?0:1;return[bw,cj+cg*cf,ci+cg*L,"A",cg,cg,0,cc,1,cj+cg*M,ci+cg*ck,cd?bw:bx,cj+ch*M,ci+ch*ck,"A",ch,ch,0,cc,0,cj+ch*cf,ci+ch*L,cd?"":"Z"];
}},clipRect:function(M,ce,ca,L){var cd,cc=a8+bb++,cb=this.createElement("clipPath").attr({id:cc}).add(this.defs);cd=this.rect(M,ce,ca,L,0).add(cb);cd.id=cc;cd.clipPath=cb;
return cd;},color:function(ce,cd,M){var ck=this,cm,cb=/^rgba/,co,cg,ch,L,cn,cj,ci,cf,cc,ca,cl=[];if(ce&&ce.linearGradient){co="linearGradient";}else{if(ce&&ce.radialGradient){co="radialGradient";
}}if(co){cg=ce[co];ch=ck.gradients;cn=ce.stops;cf=cd.radialReference;if(aJ(cg)){ce[co]=cg={x1:cg[0],y1:cg[1],x2:cg[2],y2:cg[3],gradientUnits:"userSpaceOnUse"};}if(co==="radialGradient"&&cf&&!aj(cg.gradientUnits)){cg=aQ(cg,{cx:(cf[0]-cf[2]/2)+cg.cx*cf[2],cy:(cf[1]-cf[2]/2)+cg.cy*cf[2],r:cg.r*cf[2],gradientUnits:"userSpaceOnUse"});
}for(cc in cg){if(cc!=="id"){cl.push(cc,cg[cc]);}}for(cc in cn){cl.push(cn[cc]);}cl=cl.join(",");if(ch[cl]){ca=ch[cl].id;}else{cg.id=ca=a8+bb++;ch[cl]=L=ck.createElement(co).attr(cg).add(ck.defs);
L.stops=[];I(cn,function(cp){var cq;if(cb.test(cp[1])){cm=bN(cp[1]);cj=cm.get("rgb");ci=cm.get("a");}else{cj=cp[1];ci=1;}cq=ck.createElement("stop").attr({offset:cp[0],"stop-color":cj,"stop-opacity":ci}).add(L);
L.stops.push(cq);});}return"url("+ck.url+"#"+ca+")";}else{if(cb.test(ce)){cm=bN(ce);U(cd,M+"-opacity",cm.get("a"));return cm.get("rgb");}else{cd.removeAttribute(M+"-opacity");
return ce;}}},text:function(cd,L,cf,cc){var cb=this,ca=bA.chart.style,M=a7||(!bZ&&cb.forExport),ce;if(cc&&!cb.forExport){return cb.html(cd,L,cf);}L=p(aR(L,0));cf=p(aR(cf,0));
ce=cb.createElement("text").attr({x:L,y:cf,text:cd}).css({fontFamily:ca.fontFamily,fontSize:ca.fontSize});if(M){ce.css({position:ar});}ce.x=L;ce.y=cf;return ce;},fontMetrics:function(ca){ca=bP(ca||11);
var L=ca<24?ca+4:p(ca*1.2),M=p(L*0.8);return{h:L,b:M};},label:function(cu,cl,cj,L,cc,cb,cw,cq,ca){var cv=this,cd=cv.g(ca),co=cv.text("",0,0,cw).attr({zIndex:1}),cm,cg,cf=0,cp=3,cz=0,ct,cr,cB,cA,M=0,cn={},ci,cC=cd.attrSetters,cy;
function ch(){var cF,cE,cD=co.element.style;cg=(ct===undefined||cr===undefined||cd.styles.textAlign)&&co.getBBox();cd.width=(ct||cg.width||0)+2*cp+cz;cd.height=(cr||cg.height||0)+2*cp;
ci=cp+cv.fontMetrics(cD&&cD.fontSize).b;if(cy){if(!cm){cF=p(-cf*cp);cE=cq?-ci:0;cd.box=cm=L?cv.symbol(L,cF,cE,cd.width,cd.height,cn):cv.rect(cF,cE,cd.width,cd.height,0,cn[aN]);
cm.add(cd);}if(!cm.isImg){cm.attr(aQ({width:cd.width,height:cd.height},cn));}cn=null;}}function ck(){var cF=cd.styles,cE=cF&&cF.textAlign,cD=cz+cp*(1-cf),cG;cG=cq?0:ci;
if(aj(ct)&&(cE==="center"||cE==="right")){cD+={center:0.5,right:1}[cE]*(ct-cg.width);}if(cD!==co.x||cG!==co.y){co.attr({x:cD,y:cG});}co.x=cD;co.y=cG;}function cx(cD,cE){if(cm){cm.attr(cD,cE);
}else{cn[cD]=cE;}}function cs(){co.add(cd);cd.attr({text:cu,x:cl,y:cj});if(cm&&aj(cc)){cd.attr({anchorX:cc,anchorY:cb});}}z(cd,"add",cs);cC.width=function(cD){ct=cD;
return false;};cC.height=function(cD){cr=cD;return false;};cC.padding=function(cD){if(aj(cD)&&cD!==cp){cp=cD;ck();}return false;};cC.paddingLeft=function(cD){if(aj(cD)&&cD!==cz){cz=cD;
ck();}return false;};cC.align=function(cD){cf={left:0,center:0.5,right:1}[cD];return false;};cC.text=function(cE,cD){co.attr(cD,cE);ch();ck();return false;};cC[aN]=function(cE,cD){cy=true;
M=cE%2/2;cx(cD,cE);return false;};cC.stroke=cC.fill=cC.r=function(cE,cD){if(cD==="fill"){cy=true;}cx(cD,cE);return false;};cC.anchorX=function(cE,cD){cc=cE;cx(cD,cE+M-cB);
return false;};cC.anchorY=function(cE,cD){cb=cE;cx(cD,cE-cA);return false;};cC.x=function(cD){cd.x=cD;cD-=cf*((ct||cg.width)+cp);cB=p(cD);cd.attr("translateX",cB);
return false;};cC.y=function(cD){cA=cd.y=p(cD);cd.attr("translateY",cA);return false;};var ce=cd.css;return bo(cd,{css:function(cE){if(cE){var cD={};cE=aQ(cE);I(["fontSize","fontWeight","fontFamily","color","lineHeight","width","textDecoration","textShadow"],function(cF){if(cE[cF]!==m){cD[cF]=cE[cF];
delete cE[cF];}});co.css(cD);}return ce.call(cd,cE);},getBBox:function(){return{width:cg.width+2*cp,height:cg.height+2*cp,x:cg.x-cp,y:cg.y-cp};},shadow:function(cD){if(cm){cm.shadow(cD);
}return cd;},destroy:function(){a5(cd,"add",cs);a5(cd.element,"mouseenter");a5(cd.element,"mouseleave");if(co){co=co.destroy();}if(cm){cm=cm.destroy();}aA.prototype.destroy.call(cd);
cd=cv=ch=ck=cx=cs=null;}});}};bU=d;bo(aA.prototype,{htmlCss:function(M){var cb=this,L=cb.element,ca=M&&L.tagName==="SPAN"&&M.width;if(ca){delete M.width;cb.textWidth=ca;
cb.updateTransform();}cb.styles=bo(cb.styles,M);b3(cb.element,M);return cb;},htmlGetBBox:function(){var ca=this,L=ca.element,M=ca.bBox;if(!M){if(L.nodeName==="text"){L.style.position=ar;
}M=ca.bBox={x:L.offsetLeft,y:L.offsetTop,width:L.offsetWidth,height:L.offsetHeight};}return M;},htmlUpdateTransform:function(){if(!this.added){this.alignOnAdd=true;
return;}var L=this,ch=L.renderer,cc=L.element,cb=L.translateX||0,ca=L.translateY||0,ck=L.x||0,cj=L.y||0,cf=L.textAlign||"left",ci={left:0,center:0.5,right:1}[cf],cd=L.shadows;
b3(cc,{marginLeft:cb,marginTop:ca});if(cd){I(cd,function(cn){b3(cn,{marginLeft:cb+1,marginTop:ca+1});});}if(L.inverted){I(cc.childNodes,function(cn){ch.invertChild(cn,cc);
});}if(cc.tagName==="SPAN"){var M,cm=L.rotation,ce,cg=bP(L.textWidth),cl=[cm,cf,cc.innerHTML,L.textWidth].join(",");if(cl!==L.cTT){ce=ch.fontMetrics(cc.style.fontSize).b;
if(aj(cm)){L.setSpanRotation(cm,ci,ce);}M=aR(L.elemWidth,cc.offsetWidth);if(M>cg&&/[ \-]/.test(cc.textContent||cc.innerText)){b3(cc,{width:cg+Z,display:"block",whiteSpace:"normal"});
M=cg;}L.getSpanCorrection(M,ce,ci,cm,cf);}b3(cc,{left:(ck+(L.xCorr||0))+Z,top:(cj+(L.yCorr||0))+Z});if(N){ce=cc.offsetHeight;}L.cTT=cl;}},setSpanRotation:function(ca,M,cc){var cb={},L=r?"-ms-transform":N?"-webkit-transform":br?"MozTransform":ax?"-o-transform":"";
cb[L]=cb.transform="rotate("+ca+"deg)";cb[L+(br?"Origin":"-origin")]=(M*100)+"% "+cc+"px";b3(this.element,cb);},getSpanCorrection:function(M,ca,L){this.xCorr=-M*L;
this.yCorr=-ca;}});bo(d.prototype,{html:function(cd,L,cf){var ca=bA.chart.style,ce=this.createElement("span"),M=ce.attrSetters,cb=ce.element,cc=ce.renderer;M.text=function(cg){if(cg!==cb.innerHTML){delete this.bBox;
}cb.innerHTML=cg;return false;};M.x=M.y=M.align=M.rotation=function(ch,cg){if(cg==="align"){cg="textAlign";}ce[cg]=ch;ce.htmlUpdateTransform();return false;};ce.attr({text:cd,x:p(L),y:p(cf)}).css({position:ar,whiteSpace:"nowrap",fontFamily:ca.fontFamily,fontSize:ca.fontSize});
ce.css=ce.htmlCss;if(cc.isSVG){ce.add=function(cj){var ci,cg=cc.box.parentNode,ck,ch=[];this.parentGroup=cj;if(cj){ci=cj.div;if(!ci){ck=cj;while(ck){ch.push(ck);
ck=ck.parentGroup;}I(ch.reverse(),function(cm){var cl;ci=cm.div=cm.div||bq(P,{className:U(cm.element,"class")},{position:ar,left:(cm.translateX||0)+Z,top:(cm.translateY||0)+Z},ci||cg);
cl=ci.style;bo(cm.attrSetters,{translateX:function(cn){cl.left=cn+Z;},translateY:function(cn){cl.top=cn+Z;},visibility:function(co,cn){cl[cn]=co;}});});}}else{ci=cg;
}ci.appendChild(cb);ce.added=true;if(ce.alignOnAdd){ce.htmlUpdateTransform();}return ce;};}return ce;}});var b7,K;if(!bZ&&!a7){Highcharts.VMLElement=K={init:function(cb,cd){var cc=this,L=["<",cd,' filled="f" stroked="f"'],ca=["position: ",ar,";"],M=cd===P;
if(cd==="shape"||M){ca.push("left:0;top:0;width:1px;height:1px;");}ca.push("visibility: ",M?al:ap);L.push(' style="',ca.join(""),'"/>');if(cd){L=M||cd==="span"||cd==="img"?L.join(""):cb.prepVML(L);
cc.element=bq(L);}cc.renderer=cb;cc.attrSetters={};},add:function(cb){var ce=this,cd=ce.renderer,ca=ce.element,cc=cd.box,M=cb&&cb.inverted,L=cb?cb.element||cb:cc;
if(M){cd.invertChild(ca,L);}L.appendChild(ca);ce.added=true;if(ce.alignOnAdd&&!ce.deferUpdateTransform){ce.updateTransform();}bv(ce,"add");return ce;},updateTransform:aA.prototype.htmlUpdateTransform,setSpanRotation:function(){var M=this.rotation,L=b0(M*aB),ca=ad(M*aB);
b3(this.element,{filter:M?["progid:DXImageTransform.Microsoft.Matrix(M11=",L,", M12=",-ca,", M21=",ca,", M22=",L,", sizingMethod='auto expand')"].join(""):B});},getSpanCorrection:function(L,cb,cd,ch,ca){var ce=ch?b0(ch*aB):1,M=ch?ad(ch*aB):0,cg=aR(this.elemHeight,this.element.offsetHeight),cf,cc=ca&&ca!=="left";
this.xCorr=ce<0&&-L;this.yCorr=M<0&&-cg;cf=ce*M<0;this.xCorr+=M*cb*(cf?1-cd:cd);this.yCorr-=ce*cb*(ch?(cf?cd:1-cd):1);if(cc){this.xCorr-=L*cd*(ce<0?-1:1);if(ch){this.yCorr-=cg*cd*(M<0?-1:1);
}b3(this.element,{textAlign:ca});}},pathToVML:function(M){var L=M.length,ca=[];while(L--){if(aw(M[L])){ca[L]=p(M[L]*10)-5;}else{if(M[L]==="Z"){ca[L]="x";}else{ca[L]=M[L];
if(M.isArc&&(M[L]==="wa"||M[L]==="at")){if(ca[L+5]===ca[L+7]){ca[L+7]+=M[L+7]>M[L+5]?1:-1;}if(ca[L+6]===ca[L+8]){ca[L+8]+=M[L+8]>M[L+6]?1:-1;}}}}}return ca.join(" ")||"x";
},attr:function(ca,cp){var cd=this,cn,ci,ck,ch,cb=cd.element||{},cl=cb.style,L=cb.nodeName,cj=cd.renderer,cf=cd.symbolName,ce,M=cd.shadows,cg,co=cd.attrSetters,cm=cd;
if(bt(ca)&&aj(cp)){cn=ca;ca={};ca[cn]=cp;}if(bt(ca)){cn=ca;if(cn==="strokeWidth"||cn==="stroke-width"){cm=cd.strokeweight;}else{cm=cd[cn];}}else{for(cn in ca){ci=ca[cn];
cg=false;ch=co[cn]&&co[cn].call(cd,ci,cn);if(ch!==false&&ci!==null){if(ch!==m){ci=ch;}if(cf&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(cn)){if(!ce){cd.symbolAttr(ca);
ce=true;}cg=true;}else{if(cn==="d"){ci=ci||[];cd.d=ci.join(" ");cb.path=ci=cd.pathToVML(ci);if(M){ck=M.length;while(ck--){M[ck].path=M[ck].cutOff?this.cutOffPath(ci,M[ck].cutOff):ci;
}}cg=true;}else{if(cn==="visibility"){if(M){ck=M.length;while(ck--){M[ck].style[cn]=ci;}}if(L==="DIV"){ci=ci===al?"-999em":0;if(!E){cl[cn]=ci?ap:al;}cn="top";}cl[cn]=ci;
cg=true;}else{if(cn==="zIndex"){if(ci){cl[cn]=ci;}cg=true;}else{if(A(cn,["x","y","width","height"])!==-1){cd[cn]=ci;if(cn==="x"||cn==="y"){cn={x:"left",y:"top"}[cn];
}else{ci=b8(0,ci);}if(cd.updateClipping){cd[cn]=ci;cd.updateClipping();}else{cl[cn]=ci;}cg=true;}else{if(cn==="class"&&L==="DIV"){cb.className=ci;}else{if(cn==="stroke"){ci=cj.color(ci,cb,cn);
cn="strokecolor";}else{if(cn==="stroke-width"||cn==="strokeWidth"){cb.stroked=ci?true:false;cn="strokeweight";cd[cn]=ci;if(aw(ci)){ci+=Z;}}else{if(cn==="dashstyle"){var cc=cb.getElementsByTagName("stroke")[0]||bq(cj.prepVML(["<stroke/>"]),null,null,cb);
cc[cn]=ci||"solid";cd.dashstyle=ci;cg=true;}else{if(cn==="fill"){if(L==="SPAN"){cl.color=ci;}else{if(L!=="IMG"){cb.filled=ci!==B?true:false;ci=cj.color(ci,cb,cn,cd);
cn="fillcolor";}}}else{if(cn==="opacity"){cg=true;}else{if(L==="shape"&&cn==="rotation"){cd[cn]=cb.style[cn]=ci;cb.style.left=-p(ad(ci*aB)+1)+Z;cb.style.top=p(b0(ci*aB))+Z;
}else{if(cn==="translateX"||cn==="translateY"||cn==="rotation"){cd[cn]=ci;cd.updateTransform();cg=true;}}}}}}}}}}}}}if(!cg){if(E){cb[cn]=ci;}else{U(cb,cn,ci);}}}}}return cm;
},clip:function(L){var cb=this,ca,M;if(L){ca=L.members;S(ca,cb);ca.push(cb);cb.destroyClip=function(){S(ca,cb);};M=L.getCSS(cb);}else{if(cb.destroyClip){cb.destroyClip();
}M={clip:E?"inherit":"rect(auto)"};}return cb.css(M);},css:aA.prototype.htmlCss,safeRemoveChild:function(L){if(L.parentNode){bR(L);}},destroy:function(){if(this.destroyClip){this.destroyClip();
}return aA.prototype.destroy.apply(this);},on:function(L,M){this.element["on"+L]=function(){var ca=a3.event;ca.target=ca.srcElement;M(ca);};return this;},cutOffPath:function(ca,M){var L;
ca=ca.split(/[ ,]/);L=ca.length;if(L===9||L===11){ca[L-4]=ca[L-2]=bP(ca[L-2])-10*M;}return ca.join(" ");},shadow:function(ck,cj,M){var cc=[],cd,ce=this.element,cf=this.renderer,ci,ca=ce.style,cl,cm=ce.path,cg,L,cb,ch;
if(cm&&typeof cm.value!=="string"){cm="x";}L=cm;if(ck){cb=aR(ck.width,3);ch=(ck.opacity||0.15)/cb;for(cd=1;cd<=3;cd++){cg=(cb*2)+1-(2*cd);if(M){L=this.cutOffPath(cm.value,cg+0.5);
}cl=['<shape isShadow="true" strokeweight="',cg,'" filled="false" path="',L,'" coordsize="10 10" style="',ce.style.cssText,'" />'];ci=bq(cf.prepVML(cl),null,{left:bP(ca.left)+aR(ck.offsetX,1),top:bP(ca.top)+aR(ck.offsetY,1)});
if(M){ci.cutOff=cg+1;}cl=['<stroke color="',ck.color||"black",'" opacity="',ch*cd,'"/>'];bq(cf.prepVML(cl),null,null,ci);if(cj){cj.element.appendChild(ci);}else{ce.parentNode.insertBefore(ci,ce);
}cc.push(ci);}this.shadows=cc;}return this;}};K=bl(aA,K);var aT={Element:K,isIE8:u.indexOf("MSIE 8.0")>-1,init:function(ca,cc,M){var ce=this,L,cd,cb;ce.alignedObjects=[];
L=ce.createElement(P);cd=L.element;cd.style.position=O;ca.appendChild(L.element);ce.isVML=true;ce.box=cd;ce.boxWrapper=L;ce.cache={};ce.setSize(cc,M,false);if(!bD.namespaces.hcv){bD.namespaces.add("hcv","urn:schemas-microsoft-com:vml");
cb="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } ";try{bD.createStyleSheet().cssText=cb;}catch(cf){bD.styleSheets[0].cssText+=cb;
}}},isHidden:function(){return !this.box.offsetWidth;},clipRect:function(M,cd,cc,L){var cb=this.createElement(),ca=b5(M);return bo(cb,{members:[],left:(ca?M.x:M)+1,top:(ca?M.y:cd)+1,width:(ca?M.width:cc)-1,height:(ca?M.height:L)-1,getCSS:function(cf){var ci=cf.element,cn=ci.nodeName,cj=cn==="shape",ch=cf.inverted,cm=this,cl=cm.top-(cj?ci.offsetTop:0),cg=cm.left,co=cg+cm.width,ce=cl+cm.height,ck={clip:"rect("+p(ch?cg:cl)+"px,"+p(ch?ce:co)+"px,"+p(ch?co:ce)+"px,"+p(ch?cl:cg)+"px)"};
if(!ch&&E&&cn==="DIV"){bo(ck,{width:co+Z,height:ce+Z});}return ck;},updateClipping:function(){I(cb.members,function(ce){ce.css(cb.getCSS(ce));});}});},color:function(cs,cH,cj,cl){var cB=this,cq,cC=/^rgba/,cD,ce,cw=B;
if(cs&&cs.linearGradient){ce="gradient";}else{if(cs&&cs.radialGradient){ce="pattern";}}if(ce){var cn,ca,ci=cs.linearGradient||cs.radialGradient,ch,cJ,cg,cI,cv,cu,cp,co,cz="",cr=cs.stops,cG,ct,cE=[],M=function(){cD=['<fill colors="'+cE.join(",")+'" opacity="',cu,'" o:opacity2="',cv,'" type="',ce,'" ',cz,'focus="100%" method="any" />'];
bq(cB.prepVML(cD),null,null,cH);};cG=cr[0];ct=cr[cr.length-1];if(cG[0]>0){cr.unshift([0,cG[1]]);}if(ct[0]<1){cr.push([1,ct[1]]);}I(cr,function(cy,cx){if(cC.test(cy[1])){cq=bN(cy[1]);
cn=cq.get("rgb");ca=cq.get("a");}else{cn=cy[1];ca=1;}cE.push((cy[0]*100)+"% "+cn);if(!cx){cv=ca;co=cn;}else{cu=ca;cp=cn;}});if(cj==="fill"){if(ce==="gradient"){ch=ci.x1||ci[0]||0;
cJ=ci.y1||ci[1]||0;cg=ci.x2||ci[2]||0;cI=ci.y2||ci[3]||0;cz='angle="'+(90-aW.atan((cI-cJ)/(cg-ch))*180/R)+'"';M();}else{var cF=ci.r,cd=cF*2,cc=cF*2,cm=ci.cx,ck=ci.cy,cf=cH.radialReference,L,cA=function(){if(cf){L=cl.getBBox();
cm+=(cf[0]-L.x)/L.width-0.5;ck+=(cf[1]-L.y)/L.height-0.5;cd*=cf[2]/L.width;cc*=cf[2]/L.height;}cz='src="'+bA.global.VMLRadialGradientURL+'" size="'+cd+","+cc+'" origin="0.5,0.5" position="'+cm+","+ck+'" color2="'+co+'" ';
M();};if(cl.added){cA();}else{z(cl,"add",cA);}cw=cp;}}else{cw=cn;}}else{if(cC.test(cs)&&cH.tagName!=="IMG"){cq=bN(cs);cD=["<",cj,' opacity="',cq.get("a"),'"/>'];
bq(this.prepVML(cD),null,null,cH);cw=cq.get("rgb");}else{var cb=cH.getElementsByTagName(cj);if(cb.length){cb[0].opacity=1;cb[0].type="solid";}cw=cs;}}return cw;},prepVML:function(L){var M="display:inline-block;behavior:url(#default#VML);",ca=this.isIE8;
L=L.join("");if(ca){L=L.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />');if(L.indexOf('style="')===-1){L=L.replace("/>",' style="'+M+'" />');}else{L=L.replace('style="','style="'+M);
}}else{L=L.replace("<","<hcv:");}return L;},text:d.prototype.html,path:function(M){var L={coordsize:"10 10"};if(aJ(M)){L.d=M;}else{if(b5(M)){bo(L,M);}}return this.createElement("shape").attr(L);
},circle:function(L,cb,M){var ca=this.symbol("circle");if(b5(L)){M=L.r;cb=L.y;L=L.x;}ca.isCircle=true;ca.r=M;return ca.attr({x:L,y:cb});},g:function(L){var ca,M;
if(L){M={className:a8+L,"class":a8+L};}ca=this.createElement(P).attr(M);return ca;},image:function(cc,M,cd,ca,L){var cb=this.createElement("img").attr({src:cc});
if(arguments.length>1){cb.attr({x:M,y:cd,width:ca,height:L});}return cb;},rect:function(M,ce,ca,L,cb,cd){var cc=this.symbol("rect");cc.r=b5(M)?M.r:cb;return cc.attr(b5(M)?M:cc.crisp(cd,M,ce,b8(ca,0),b8(L,0)));
},invertChild:function(M,L){var ca=L.style;b3(M,{flip:"x",left:bP(ca.width)-1,top:bP(ca.height)-1,rotation:-90});},symbols:{arc:function(ci,ch,ck,cc,cl){var ca=cl.start,cb=cl.end,ce=cl.r||ck||cc,cg=cl.innerR,cd=b0(ca),L=ad(ca),M=b0(cb),cj=ad(cb),cf;
if(cb-ca===0){return["x"];}cf=["wa",ci-ce,ch-ce,ci+ce,ch+ce,ci+ce*cd,ch+ce*L,ci+ce*M,ch+ce*cj];if(cl.open&&!cg){cf.push("e",bw,ci,ch);}cf.push("at",ci-cg,ch-cg,ci+cg,ch+cg,ci+cg*M,ch+cg*cj,ci+cg*cd,ch+cg*L,"x","e");
cf.isArc=true;return cf;},circle:function(L,cc,M,ca,cb){if(cb){M=ca=2*cb.r;}if(cb&&cb.isCircle){L-=M/2;cc-=ca/2;}return["wa",L,cc,L+M,cc+ca,L+M,cc+ca/2,L+M,cc+ca/2,"e"];
},rect:function(cb,cd,ca,cf,cg){var ce=cb+ca,M=cd+cf,cc,L;if(!aj(cg)||!cg.r){cc=d.prototype.symbols.square.apply(0,arguments);}else{L=aq(cg.r,ca,cf);cc=[bw,cb+L,cd,bx,ce-L,cd,"wa",ce-2*L,cd,ce,cd+2*L,ce-L,cd,ce,cd+L,bx,ce,M-L,"wa",ce-2*L,M-2*L,ce,M,ce,M-L,ce-L,M,bx,cb+L,M,"wa",cb,M-2*L,cb+2*L,M,cb+L,M,cb,M-L,bx,cb,cd+L,"wa",cb,cd,cb+2*L,cd+2*L,cb,cd+L,cb+L,cd,"x","e"];
}return cc;}}};Highcharts.VMLRenderer=b7=function(){this.init.apply(this,arguments);};b7.prototype=aQ(d.prototype,aT);bU=b7;}d.prototype.measureSpanWidth=function(cc,M){var ca=bD.createElement("span"),L,cb=bD.createTextNode(cc);
ca.appendChild(cb);b3(ca,M);this.box.appendChild(ca);L=ca.offsetWidth;bR(ca);return L;};var b6,a6;if(a7){Highcharts.CanVGRenderer=b6=function(){a1="http://www.w3.org/1999/xhtml";
};b6.prototype.symbols={};a6=(function(){var M=[];function L(){var cb=M.length,ca;for(ca=0;ca<cb;ca++){M[ca]();}M=[];}return{push:function(cb,ca){if(M.length===0){be(ca,L);
}M.push(cb);}};}());bU=b6;}function aD(ca,cb,M,L){this.axis=ca;this.pos=cb;this.type=M||"";this.isNew=true;if(!M&&!L){this.addLabel();}}aD.prototype={addLabel:function(){var cp=this,M=cp.axis,ca=M.options,ch=M.chart,cq=M.horiz,cj=M.categories,cg=M.names,cb=cp.pos,ci=ca.labels,cm,cr=M.tickPositions,ck=(cq&&cj&&!ci.step&&!ci.staggerLines&&!ci.rotation&&ch.plotWidth/cr.length)||(!cq&&(ch.margin[3]||ch.chartWidth*0.33)),cd=cb===cr[0],cf=cb===cr[cr.length-1],ce,cn,cl=cj?aR(cj[cb],cg[cb],cb):cb,cc=cp.label,co=cr.info,L;
if(M.isDatetimeAxis&&co){L=ca.dateTimeLabelFormats[co.higherRanks[cb]||co.unitName];}cp.isFirst=cd;cp.isLast=cf;cm=M.labelFormatter.call({axis:M,chart:ch,isFirst:cd,isLast:cf,dateTimeLabelFormat:L,value:M.isLog?ah(y(cl)):cl});
ce=ck&&{width:b8(1,p(ck-2*(ci.padding||10)))+Z};ce=bo(ce,ci.style);if(!aj(cc)){cn={align:M.labelAlign};if(aw(ci.rotation)){cn.rotation=ci.rotation;}if(ck&&ci.ellipsis){cn._clipHeight=M.len/cr.length;
}cp.label=aj(cm)&&ci.enabled?ch.renderer.text(cm,0,0,ci.useHTML).attr(cn).css(ce).add(M.labelGroup):null;}else{if(cc){cc.attr({text:cm}).css(ce);}}},getLabelSize:function(){var L=this.label,M=this.axis;
return L?L.getBBox()[M.horiz?"height":"width"]:0;},getLabelSides:function(){var cd=this.label.getBBox(),cc=this.axis,ce=cc.horiz,M=cc.options,L=M.labels,ca=ce?cd.width:cd.height,cb=ce?ca*{left:0,center:0.5,right:1}[cc.labelAlign]-L.x:ca;
return[-cb,ca-cb];},handleOverflow:function(cf,cd){var cq=true,cb=this.axis,ch=this.isFirst,cj=this.isLast,cp=cb.horiz,cl=cp?cd.x:cd.y,ca=cb.reversed,cr=cb.tickPositions,co=this.getLabelSides(),cg=co[0],cn=co[1],ck=cb.pos,M=ck+cb.len,cm,cc,ci=this.label.line||0,L=cb.labelEdge,ce=cb.justifyLabels&&(ch||cj);
if(L[ci]===m||cl+cg>L[ci]){L[ci]=cl+cn;}else{if(!ce){cq=false;}}if(ce){cm=cb.ticks[cr[cf+(ch?1:-1)]];cc=cm&&cm.label.xy&&cm.label.xy.x+cm.getLabelSides()[ch?0:1];
if((ch&&!ca)||(cj&&ca)){if(cl+cg<ck){cl=ck-cg;if(cm&&cl+cn>cc){cq=false;}}}else{if(cl+cn>M){cl=M-cn;if(cm&&cl+cg<cc){cq=false;}}}cd.x=cl;}return cq;},getPosition:function(ce,cd,cc,L){var cb=this.axis,ca=cb.chart,M=(L&&ca.oldChartHeight)||ca.chartHeight;
return{x:ce?cb.translate(cd+cc,null,null,L)+cb.transB:cb.left+cb.offset+(cb.opposite?((L&&ca.oldChartWidth)||ca.chartWidth)-cb.right-cb.left:0),y:ce?M-cb.bottom+cb.offset-(cb.opposite?cb.height:0):M-cb.translate(cd+cc,null,null,L)-cb.transB};
},getLabelPosition:function(ci,cg,ch,ck,cc,cd,ce,L){var M=this.axis,cb=M.transA,ca=M.reversed,cl=M.staggerLines,cf=M.chart.renderer.fontMetrics(cc.style.fontSize).b,cj=cc.rotation;
ci=ci+cc.x-(cd&&ck?cd*cb*(ca?-1:1):0);cg=cg+cc.y-(cd&&!ck?cd*cb*(ca?1:-1):0);if(cj&&M.side===2){cg-=cf-cf*b0(cj*aB);}if(!aj(cc.y)&&!cj){cg+=cf-ch.getBBox().height/2;
}if(cl){ch.line=(ce/(L||1)%cl);cg+=ch.line*(M.labelOffset/cl);}return{x:ci,y:cg};},getMarkPath:function(M,cd,ca,L,cc,cb){return cb.crispLine([bw,M,cd,bx,M+(cc?0:-ca),cd+(cc?ca:0)],L);
},render:function(ci,M,cc){var cB=this,cb=cB.axis,cd=cb.options,cu=cb.chart,cA=cu.renderer,cD=cb.horiz,ce=cB.type,cm=cB.label,ch=cB.pos,cx=cd.labels,cj=cB.gridLine,cw=ce?ce+"Grid":"grid",cz=ce?ce+"Tick":"tick",cv=cd[cw+"LineWidth"],cy=cd[cw+"LineColor"],cl=cd[cw+"LineDashStyle"],ca=cd[cz+"Length"],ck=cd[cz+"Width"]||0,cr=cd[cz+"Color"],cs=cd[cz+"Position"],cE,cp=cB.mark,L,cg=cx.step,ct,cC=true,cF=cb.tickmarkOffset,cf=cB.getPosition(cD,ch,cF,M),cq=cf.x,co=cf.y,cn=((cD&&cq===cb.pos+cb.len)||(!cD&&co===cb.pos))?-1:1;
this.isActive=true;if(cv){cE=cb.getPlotLinePath(ch+cF,cv*cn,M,true);if(cj===m){ct={stroke:cy,"stroke-width":cv};if(cl){ct.dashstyle=cl;}if(!ce){ct.zIndex=1;}if(M){ct.opacity=0;
}cB.gridLine=cj=cv?cA.path(cE).attr(ct).add(cb.gridGroup):null;}if(!M&&cj&&cE){cj[cB.isNew?"attr":"animate"]({d:cE,opacity:cc});}}if(ck&&ca){if(cs==="inside"){ca=-ca;
}if(cb.opposite){ca=-ca;}L=cB.getMarkPath(cq,co,ca,ck*cn,cD,cA);if(cp){cp.animate({d:L,opacity:cc});}else{cB.mark=cA.path(L).attr({stroke:cr,"stroke-width":ck,opacity:cc}).add(cb.axisGroup);
}}if(cm&&!isNaN(cq)){cm.xy=cf=cB.getLabelPosition(cq,co,cm,cD,cx,cF,ci,cg);if((cB.isFirst&&!cB.isLast&&!aR(cd.showFirstLabel,1))||(cB.isLast&&!cB.isFirst&&!aR(cd.showLastLabel,1))){cC=false;
}else{if(!cb.isRadial&&!cx.step&&!cx.rotation&&!M&&cc!==0){cC=cB.handleOverflow(ci,cf);}}if(cg&&ci%cg){cC=false;}if(cC&&!isNaN(cf.y)){cf.opacity=cc;cm[cB.isNew?"attr":"animate"](cf);
cB.isNew=false;}else{cm.attr("y",-9999);}}},destroy:function(){bc(this,this.axis);}};var bG=function(M,L){this.axis=M;if(L){this.options=L;this.id=L.id;}};bG.prototype={render:function(){var cw=this,cc=cw.axis,cx=cc.horiz,cb=(cc.pointRange||0)/2,cd=cw.options,L=cd.label,cf=cw.label,co=cd.width,ca=cd.to,cu=cd.from,cn=aj(cu)&&aj(ca),cq=cd.value,ce=cd.dashStyle,cs=cw.svgElem,cm=[],cr,cj,cg,cv,ci,ch,ct=cd.color,cl=cd.zIndex,M=cd.events,ck,cp=cc.chart.renderer;
if(cc.isLog){cu=v(cu);ca=v(ca);cq=v(cq);}if(co){cm=cc.getPlotLinePath(cq,co);ck={stroke:ct,"stroke-width":co};if(ce){ck.dashstyle=ce;}}else{if(cn){cu=b8(cu,cc.min-cb);
ca=aq(ca,cc.max+cb);cm=cc.getPlotBandPath(cu,ca,cd);ck={fill:ct};if(cd.borderWidth){ck.stroke=cd.borderColor;ck["stroke-width"]=cd.borderWidth;}}else{return;}}if(aj(cl)){ck.zIndex=cl;
}if(cs){if(cm){cs.animate({d:cm},null,cs.onGetPath);}else{cs.hide();cs.onGetPath=function(){cs.show();};if(cf){cw.label=cf=cf.destroy();}}}else{if(cm&&cm.length){cw.svgElem=cs=cp.path(cm).attr(ck).add();
if(M){cr=function(cy){cs.on(cy,function(cz){M[cy].apply(cw,[cz]);});};for(cj in M){cr(cj);}}}}if(L&&aj(L.text)&&cm&&cm.length&&cc.width>0&&cc.height>0){L=aQ({align:cx&&cn&&"center",x:cx?!cn&&4:10,verticalAlign:!cx&&cn&&"middle",y:cx?cn?16:10:cn?6:-4,rotation:cx&&!cn&&90},L);
if(!cf){cw.label=cf=cp.text(L.text,0,0,L.useHTML).attr({align:L.textAlign||L.align,rotation:L.rotation,zIndex:cl}).css(L.style).add();}cg=[cm[1],cm[4],aR(cm[6],cm[1])];
cv=[cm[2],cm[5],aR(cm[7],cm[2])];ci=bF(cg);ch=bF(cv);cf.align(L,false,{x:ci,y:ch,width:aM(cg)-ci,height:aM(cv)-ch});cf.show();}else{if(cf){cf.hide();}}return cw;
},destroy:function(){S(this.axis.plotLinesAndBands,this);delete this.axis;bc(this);}};s={getPlotBandPath:function(cb,ca){var L=this.getPlotLinePath(ca),M=this.getPlotLinePath(cb);
if(M&&L){M.push(L[4],L[5],L[1],L[2]);}else{M=null;}return M;},addPlotBand:function(L){this.addPlotBandOrLine(L,"plotBands");},addPlotLine:function(L){this.addPlotBandOrLine(L,"plotLines");
},addPlotBandOrLine:function(L,M){var ca=new bG(this,L).render(),cb=this.userOptions;if(ca){if(M){cb[M]=cb[M]||[];cb[M].push(L);}this.plotLinesAndBands.push(ca);
}return ca;},removePlotBandOrLine:function(cc){var L=this.plotLinesAndBands,M=this.options,cb=this.userOptions,ca=L.length;while(ca--){if(L[ca].id===cc){L[ca].destroy();
}}I([M.plotLines||[],cb.plotLines||[],M.plotBands||[],cb.plotBands||[]],function(cd){ca=cd.length;while(ca--){if(cd[ca].id===cc){S(cd,cd[ca]);}}});}};function C(){this.init.apply(this,arguments);
}C.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:false,gridLineColor:"#C0C0C0",labels:w,lineColor:"#C0D0E0",lineWidth:1,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:false,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#4d759e",fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:true,gridLineWidth:1,tickPixelInterval:72,showLastLabel:true,labels:{x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:true,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:false,formatter:function(){return n(this.total,-1);
},style:w.style}},defaultLeftAxisOptions:{labels:{x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{x:0,y:-5},title:{rotation:0}},init:function(cd,cc){var L=cc.isX,cb=this;
cb.horiz=cd.inverted?!L:L;cb.isXAxis=L;cb.coll=L?"xAxis":"yAxis";cb.opposite=cc.opposite;cb.side=cc.side||(cb.horiz?(cb.opposite?0:2):(cb.opposite?1:3));cb.setOptions(cc);
var cg=this.options,ce=cg.type,M=ce==="datetime";cb.labelFormatter=cg.labels.formatter||cb.defaultLabelFormatter;cb.userOptions=cc;cb.minPixelPadding=0;cb.chart=cd;
cb.reversed=cg.reversed;cb.zoomEnabled=cg.zoomEnabled!==false;cb.categories=cg.categories||ce==="category";cb.names=[];cb.isLog=ce==="logarithmic";cb.isDatetimeAxis=M;
cb.isLinked=aj(cg.linkedTo);cb.tickmarkOffset=(cb.categories&&cg.tickmarkPlacement==="between")?0.5:0;cb.ticks={};cb.labelEdge=[];cb.minorTicks={};cb.plotLinesAndBands=[];
cb.alternateBands={};cb.len=0;cb.minRange=cb.userMinRange=cg.minRange||cg.maxZoom;cb.range=cg.range;cb.offset=cg.offset||0;cb.stacks={};cb.oldStacks={};cb.stackExtremes={};
cb.max=null;cb.min=null;cb.crosshair=aR(cg.crosshair,bh(cd.options.tooltip.crosshairs)[L?0:1],false);var ca,cf=cb.options.events;if(A(cb,cd.axes)===-1){cd.axes.push(cb);
cd[cb.coll].push(cb);}cb.series=cb.series||[];if(cd.inverted&&L&&cb.reversed===m){cb.reversed=true;}cb.removePlotBand=cb.removePlotBandOrLine;cb.removePlotLine=cb.removePlotBandOrLine;
for(ca in cf){z(cb,ca,cf[ca]);}if(cb.isLog){cb.val2lin=v;cb.lin2val=y;}},setOptions:function(L){this.options=aQ(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],aQ(bA[this.coll],L));
},defaultLabelFormatter:function(){var M=this.axis,ch=this.value,cd=M.categories,cg=this.dateTimeLabelFormat,cb=bA.lang.numericSymbols,cc=cb&&cb.length,ce,cf,ca=M.options.labels.format,L=M.isLog?ch:M.tickInterval;
if(ca){cf=h(ca,this);}else{if(cd){cf=ch;}else{if(cg){cf=bS(cg,ch);}else{if(cc&&L>=1000){while(cc--&&cf===m){ce=Math.pow(1000,cc+1);if(L>=ce&&cb[cc]!==null){cf=n(ch/ce,-1)+cb[cc];
}}}}}}if(cf===m){if(ch>=10000){cf=n(ch,0);}else{cf=n(ch,-1,m,"");}}return cf;},getSeriesExtremes:function(){var M=this,L=M.chart;M.hasVisibleSeries=false;M.dataMin=M.dataMax=null;
M.stackExtremes={};M.buildStacks();I(M.series,function(cc){if(cc.visible||!L.options.chart.ignoreHiddenSeries){var cb=cc.options,ce,ca=cb.threshold,cf,cd;M.hasVisibleSeries=true;
if(M.isLog&&ca<=0){ca=null;}if(M.isXAxis){ce=cc.xData;if(ce.length){M.dataMin=aq(aR(M.dataMin,ce[0]),bF(ce));M.dataMax=b8(aR(M.dataMax,ce[0]),aM(ce));}}else{cc.getExtremes();
cd=cc.dataMax;cf=cc.dataMin;if(aj(cf)&&aj(cd)){M.dataMin=aq(aR(M.dataMin,cf),cf);M.dataMax=b8(aR(M.dataMax,cd),cd);}if(aj(ca)){if(M.dataMin>=ca){M.dataMin=ca;M.ignoreMinPadding=true;
}else{if(M.dataMax<ca){M.dataMax=ca;M.ignoreMaxPadding=true;}}}}}});},translate:function(ca,ck,cl,cb,cj,cc){var cd=this,cf=cd.len,M=1,ci=0,ce=cb?cd.oldTransA:cd.transA,cm=cb?cd.oldMin:cd.min,L,cg=cd.minPixelPadding,ch=(cd.options.ordinal||(cd.isLog&&cj))&&cd.lin2val;
if(!ce){ce=cd.transA;}if(cl){M*=-1;ci=cf;}if(cd.reversed){M*=-1;ci-=M*cf;}if(ck){ca=ca*M+ci;ca-=cg;L=ca/ce+cm;if(ch){L=cd.lin2val(L);}}else{if(ch){ca=cd.val2lin(ca);
}if(cc==="between"){cc=0.5;}L=M*(ca-cm)*ce+ci+(M*cg)+(aw(cc)?ce*cc*cd.pointRange:0);}return L;},toPixels:function(M,L){return this.translate(M,false,!this.horiz,null,true)+(L?0:this.pos);
},toValue:function(L,M){return this.translate(L-(M?0:this.pos),true,!this.horiz,null,true);},getPlotLinePath:function(cn,ci,cc,cb,cg){var cd=this,ck=cd.chart,ch=cd.left,L=cd.top,ca,cm,M,cl,cj=(cc&&ck.oldChartHeight)||ck.chartHeight,ce=(cc&&ck.oldChartWidth)||ck.chartWidth,co,cf=cd.transB;
cg=aR(cg,cd.translate(cn,null,null,cc));ca=M=p(cg+cf);cm=cl=p(cj-cg-cf);if(isNaN(cg)){co=true;}else{if(cd.horiz){cm=L;cl=cj-cd.bottom;if(ca<ch||ca>ch+cd.width){co=true;
}}else{ca=ch;M=ce-cd.right;if(cm<L||cm>L+cd.height){co=true;}}}return co&&!cb?null:ck.renderer.crispLine([bw,ca,cm,bx,M,cl],ci||1);},getLinearTickPositions:function(M,cc,L){var cf,ce,cd=ah(bp(cc/M)*M),cb=ah(aE(L/M)*M),ca=[];
cf=cd;while(cf<=cb){ca.push(cf);cf=ah(cf+M);if(cf===ce){break;}ce=cf;}return ca;},getMinorTickPositions:function(){var cc=this,ca=cc.options,M=cc.tickPositions,ce=cc.minorTickInterval,cd=[],cf,cb,L;
if(cc.isLog){L=M.length;for(cb=1;cb<L;cb++){cd=cd.concat(cc.getLogTickPositions(ce,M[cb-1],M[cb],true));}}else{if(cc.isDatetimeAxis&&ca.minorTickInterval==="auto"){cd=cd.concat(cc.getTimeTicks(cc.normalizeTimeTickInterval(ce),cc.min,cc.max,ca.startOfWeek));
if(cd[0]<cc.min){cd.shift();}}else{for(cf=cc.min+(M[0]-cc.min)%ce;cf<=cc.max;cf+=ce){cd.push(cf);}}}return cd;},adjustForMinRange:function(){var cb=this,cl=cb.options,cd=cb.min,ci=cb.max,ck,ca=cb.dataMax-cb.dataMin>=cb.minRange,M,cf,L,cc,ch,cj,cg;
if(cb.isXAxis&&cb.minRange===m&&!cb.isLog){if(aj(cl.min)||aj(cl.max)){cb.minRange=null;}else{I(cb.series,function(cm){cc=cm.xData;ch=cm.xIncrement?1:cc.length-1;
for(cf=ch;cf>0;cf--){L=cc[cf]-cc[cf-1];if(M===m||L<M){M=L;}}});cb.minRange=aq(M*5,cb.dataMax-cb.dataMin);}}if(ci-cd<cb.minRange){var ce=cb.minRange;ck=(ce-ci+cd)/2;
cj=[cd-ck,aR(cl.min,cd-ck)];if(ca){cj[2]=cb.dataMin;}cd=aM(cj);cg=[cd+ce,aR(cl.max,cd+ce)];if(ca){cg[2]=cb.dataMax;}ci=bF(cg);if(ci-cd<ce){cj[0]=ci-ce;cj[1]=aR(cl.min,ci-ce);
cd=aM(cj);}}cb.min=cd;cb.max=ci;},setAxisTranslation:function(ch){var M=this,cd=M.max-M.min,cg=0,ci,ca=0,ce=0,cf=M.linkedParent,cc,L=!!M.categories,cb=M.transA;if(M.isXAxis||L){if(cf){ca=cf.minPointOffset;
ce=cf.pointRangePadding;}else{I(M.series,function(ck){var cl=b8(ck.pointRange,+L),cm=ck.options.pointPlacement,cj=ck.closestPointRange;if(cl>cd){cl=0;}cg=b8(cg,cl);
ca=b8(ca,bt(cm)?0:cl/2);ce=b8(ce,cm==="on"?0:cl);if(!ck.noSharedTooltip&&aj(cj)){ci=aj(ci)?aq(ci,cj):cj;}});}cc=M.ordinalSlope&&ci?M.ordinalSlope/ci:1;M.minPointOffset=ca=ca*cc;
M.pointRangePadding=ce=ce*cc;M.pointRange=aq(cg,cd);M.closestPointRange=ci;}if(ch){M.oldTransA=cb;}M.translationSlope=M.transA=cb=M.len/((cd+ce)||1);M.transB=M.horiz?M.left:M.bottom;
M.minPixelPadding=cb*ca;},setTickPositions:function(cs){var cb=this,cn=cb.chart,cc=cb.options,cl=cb.isLog,cj=cb.isDatetimeAxis,ck=cb.isXAxis,cf=cb.isLinked,M=cb.options.tickPositioner,cp=cc.maxPadding,ca=cc.minPadding,cd,cm,cg=cc.tickInterval,cr=cc.minTickInterval,ci=cc.tickPixelInterval,cu,ce,co=cb.categories;
if(cf){cb.linkedParent=cn[cb.coll][cc.linkedTo];cm=cb.linkedParent.getExtremes();cb.min=aR(cm.min,cm.dataMin);cb.max=aR(cm.max,cm.dataMax);if(cc.type!==cb.linkedParent.options.type){bQ(11,1);
}}else{cb.min=aR(cb.userMin,cc.min,cb.dataMin);cb.max=aR(cb.userMax,cc.max,cb.dataMax);}if(cl){if(!cs&&aq(cb.min,aR(cb.dataMin,cb.min))<=0){bQ(10,1);}cb.min=ah(v(cb.min));
cb.max=ah(v(cb.max));}if(cb.range&&aj(cb.max)){cb.userMin=cb.min=b8(cb.min,cb.max-cb.range);cb.userMax=cb.max;cb.range=null;}if(cb.beforePadding){cb.beforePadding();
}cb.adjustForMinRange();if(!co&&!cb.usePercentage&&!cf&&aj(cb.min)&&aj(cb.max)){cd=cb.max-cb.min;if(cd){if(!aj(cc.min)&&!aj(cb.userMin)&&ca&&(cb.dataMin<0||!cb.ignoreMinPadding)){cb.min-=cd*ca;
}if(!aj(cc.max)&&!aj(cb.userMax)&&cp&&(cb.dataMax>0||!cb.ignoreMaxPadding)){cb.max+=cd*cp;}}}if(cb.min===cb.max||cb.min===undefined||cb.max===undefined){cb.tickInterval=1;
}else{if(cf&&!cg&&ci===cb.linkedParent.options.tickPixelInterval){cb.tickInterval=cb.linkedParent.tickInterval;}else{cb.tickInterval=aR(cg,co?1:(cb.max-cb.min)*ci/b8(cb.len,ci));
if(!aj(cg)&&cb.len<ci&&!this.isRadial&&!co&&cc.startOnTick&&cc.endOnTick){ce=true;cb.tickInterval/=4;}}}if(ck&&!cs){I(cb.series,function(cv){cv.processData(cb.min!==cb.oldMin||cb.max!==cb.oldMax);
});}cb.setAxisTranslation(true);if(cb.beforeSetTickPositions){cb.beforeSetTickPositions();}if(cb.postProcessTickInterval){cb.tickInterval=cb.postProcessTickInterval(cb.tickInterval);
}if(cb.pointRange){cb.tickInterval=b8(cb.pointRange,cb.tickInterval);}if(!cg&&cb.tickInterval<cr){cb.tickInterval=cr;}if(!cj&&!cl){if(!cg){cb.tickInterval=bI(cb.tickInterval,null,o(cb.tickInterval),cc);
}}cb.minorTickInterval=cc.minorTickInterval==="auto"&&cb.tickInterval?cb.tickInterval/5:cc.minorTickInterval;cb.tickPositions=cu=cc.tickPositions?[].concat(cc.tickPositions):(M&&M.apply(cb,[cb.min,cb.max]));
if(!cu){if(!cb.ordinalPositions&&(cb.max-cb.min)/cb.tickInterval>b8(2*cb.len,200)){bQ(19,true);}if(cj){cu=cb.getTimeTicks(cb.normalizeTimeTickInterval(cb.tickInterval,cc.units),cb.min,cb.max,cc.startOfWeek,cb.ordinalPositions,cb.closestPointRange,true);
}else{if(cl){cu=cb.getLogTickPositions(cb.tickInterval,cb.min,cb.max);}else{cu=cb.getLinearTickPositions(cb.tickInterval,cb.min,cb.max);}}if(ce){cu.splice(1,cu.length-2);
}cb.tickPositions=cu;}if(!cf){var cq=cu[0],ct=cu[cu.length-1],ch=cb.minPointOffset||0,L;if(cc.startOnTick){cb.min=cq;}else{if(cb.min-ch>cq){cu.shift();}}if(cc.endOnTick){cb.max=ct;
}else{if(cb.max+ch<ct){cu.pop();}}if(cu.length===1){L=0.001;cb.min-=L;cb.max+=L;}}},setMaxTicks:function(){var ca=this.chart,cb=ca.maxTicks||{},L=this.tickPositions,M=this._maxTicksKey=[this.coll,this.pos,this.len].join("-");
if(!this.isLinked&&!this.isDatetimeAxis&&L&&L.length>(cb[M]||0)&&this.options.alignTicks!==false){cb[M]=L.length;}ca.maxTicks=cb;},adjustTickAmount:function(){var cd=this,cc=cd.chart,cb=cd._maxTicksKey,M=cd.tickPositions,cf=cc.maxTicks;
if(cf&&cf[cb]&&!cd.isDatetimeAxis&&!cd.categories&&!cd.isLinked&&cd.options.alignTicks!==false&&this.min!==m){var ce=cd.tickAmount,L=M.length,ca;cd.tickAmount=ca=cf[cb];
if(L<ca){while(M.length<ca){M.push(ah(M[M.length-1]+cd.tickInterval));}cd.transA*=(L-1)/(ca-1);cd.max=M[M.length-1];}if(aj(ce)&&ca!==ce){cd.isDirty=true;}}},setScale:function(){var cb=this,ca=cb.stacks,M,L,cd,cc;
cb.oldMin=cb.min;cb.oldMax=cb.max;cb.oldAxisLength=cb.len;cb.setAxisSize();cc=cb.len!==cb.oldAxisLength;I(cb.series,function(ce){if(ce.isDirtyData||ce.isDirty||ce.xAxis.isDirty){cd=true;
}});if(cc||cd||cb.isLinked||cb.forceRedraw||cb.userMin!==cb.oldUserMin||cb.userMax!==cb.oldUserMax){if(!cb.isXAxis){for(M in ca){for(L in ca[M]){ca[M][L].total=null;
ca[M][L].cum=0;}}}cb.forceRedraw=false;cb.getSeriesExtremes();cb.setTickPositions();cb.oldUserMin=cb.userMin;cb.oldUserMax=cb.userMax;if(!cb.isDirty){cb.isDirty=cc||cb.min!==cb.oldMin||cb.max!==cb.oldMax;
}}else{if(!cb.isXAxis){if(cb.oldStacks){ca=cb.stacks=cb.oldStacks;}for(M in ca){for(L in ca[M]){ca[M][L].cum=ca[M][L].total;}}}}cb.setMaxTicks();},setExtremes:function(cd,cb,ce,cc,L){var ca=this,M=ca.chart;
ce=aR(ce,true);L=bo(L,{min:cd,max:cb});bv(ca,"setExtremes",L,function(){ca.userMin=cd;ca.userMax=cb;ca.eventArgs=L;ca.isDirtyExtremes=true;if(ce){M.redraw(cc);}});
},zoom:function(M,L){if(!this.allowZoomOutside){if(aj(this.dataMin)&&M<=this.dataMin){M=m;}if(aj(this.dataMax)&&L>=this.dataMax){L=m;}}this.displayBtn=M!==m||L!==m;
this.setExtremes(M,L,false,m,{trigger:"zoom"});return true;},setAxisSize:function(){var cc=this.chart,cg=this.options,ca=cg.offsetLeft||0,cb=cg.offsetRight||0,cf=this.horiz,L,ce,cd,M;
this.left=M=aR(cg.left,cc.plotLeft+ca);this.top=cd=aR(cg.top,cc.plotTop);this.width=L=aR(cg.width,cc.plotWidth-ca+cb);this.height=ce=aR(cg.height,cc.plotHeight);
this.bottom=cc.chartHeight-ce-cd;this.right=cc.chartWidth-L-M;this.len=b8(cf?L:ce,0);this.pos=cf?M:cd;},getExtremes:function(){var M=this,L=M.isLog;return{min:L?ah(y(M.min)):M.min,max:L?ah(y(M.max)):M.max,dataMin:M.dataMin,dataMax:M.dataMax,userMin:M.userMin,userMax:M.userMax};
},getThreshold:function(M){var cb=this,L=cb.isLog;var cc=L?y(cb.min):cb.min,ca=L?y(cb.max):cb.max;if(cc>M||M===null){M=cc;}else{if(ca<M){M=ca;}}return cb.translate(M,0,1,0,1);
},autoLabelAlign:function(M){var L,ca=(aR(M,0)-(this.side*90)+720)%360;if(ca>15&&ca<165){L="right";}else{if(ca>195&&ca<345){L="left";}else{L="center";}}return L;
},getOffset:function(){var cc=this,cp=cc.chart,ct=cp.renderer,ce=cc.options,cC=cc.tickPositions,cD=cc.ticks,cA=cc.horiz,cb=cc.side,cg=cp.inverted?[1,0,3,2][cb]:cb,cw,cr,M=0,cB,cj=0,ca=ce.title,cq=ce.labels,cv=0,cd=cp.axisOffset,cy=cp.clipOffset,co=[-1,1,1,-1][cb],cs,cu,cz=1,cx=aR(cq.maxStaggerLines,5),ci,ck,L,cf,ch,cl,cn,cm;
cc.hasData=cw=(cc.hasVisibleSeries||(aj(cc.min)&&aj(cc.max)&&!!cC));cc.showAxis=cr=cw||aR(ce.showEmpty,true);cc.staggerLines=cc.horiz&&cq.staggerLines;if(!cc.axisGroup){cc.gridGroup=ct.g("grid").attr({zIndex:ce.gridZIndex||1}).add();
cc.axisGroup=ct.g("axis").attr({zIndex:ce.zIndex||2}).add();cc.labelGroup=ct.g("axis-labels").attr({zIndex:cq.zIndex||7}).add();}if(cw||cc.isLinked){cc.labelAlign=aR(cq.align||cc.autoLabelAlign(cq.rotation));
I(cC,function(cE){if(!cD[cE]){cD[cE]=new aD(cc,cE);}else{cD[cE].addLabel();}});if(cc.horiz&&!cc.staggerLines&&cx&&!cq.rotation){ci=cc.reversed?[].concat(cC).reverse():cC;
while(cz<cx){ck=[];L=false;for(cu=0;cu<ci.length;cu++){cf=ci[cu];ch=cD[cf].label&&cD[cf].label.getBBox();cn=ch?ch.width:0;cm=cu%cz;if(cn){cl=cc.translate(cf);if(ck[cm]!==m&&cl<ck[cm]){L=true;
}ck[cm]=cl+cn;}}if(L){cz++;}else{break;}}if(cz>1){cc.staggerLines=cz;}}I(cC,function(cE){if(cb===0||cb===2||{1:"left",3:"right"}[cb]===cc.labelAlign){cv=b8(cD[cE].getLabelSize(),cv);
}});if(cc.staggerLines){cv*=cc.staggerLines;cc.labelOffset=cv;}}else{for(cs in cD){cD[cs].destroy();delete cD[cs];}}if(ca&&ca.text&&ca.enabled!==false){if(!cc.axisTitle){cc.axisTitle=ct.text(ca.text,0,0,ca.useHTML).attr({zIndex:7,rotation:ca.rotation||0,align:ca.textAlign||{low:"left",middle:"center",high:"right"}[ca.align]}).css(ca.style).add(cc.axisGroup);
cc.axisTitle.isNew=true;}if(cr){M=cc.axisTitle.getBBox()[cA?"height":"width"];cj=aR(ca.margin,cA?5:10);cB=ca.offset;}cc.axisTitle[cr?"show":"hide"]();}cc.offset=co*aR(ce.offset,cd[cb]);
cc.axisTitleMargin=aR(cB,cv+cj+(cb!==2&&cv&&co*ce.labels[cA?"y":"x"]));cd[cb]=b8(cd[cb],cc.axisTitleMargin+M+co*cc.offset);cy[cg]=b8(cy[cg],bp(ce.lineWidth/2)*2);
},getLinePath:function(M){var cb=this.chart,cc=this.opposite,cd=this.offset,ce=this.horiz,L=this.left+(cc?this.width:0)+cd,ca=cb.chartHeight-this.bottom-(cc?this.height:0)+cd;
if(cc){M*=-1;}return cb.renderer.crispLine([bw,ce?this.left:L,ce?ca:this.top,bx,ce?cb.chartWidth-this.right:L,ce?ca:cb.chartHeight-this.bottom],M);},getTitlePosition:function(){var ch=this.horiz,cd=this.left,L=this.top,cf=this.len,cg=this.options.title,cb=ch?cd:L,ce=this.opposite,cc=this.offset,ci=bP(cg.style.fontSize||12),M={low:cb+(ch?0:cf),middle:cb+cf/2,high:cb+(ch?cf:0)}[cg.align],ca=(ch?L+this.height:cd)+(ch?1:-1)*(ce?-1:1)*this.axisTitleMargin+(this.side===2?ci:0);
return{x:ch?M:ca+(ce?this.width:0)+cc+(cg.x||0),y:ch?ca-(ce?this.height:0)+cc:M+(cg.y||0)};},render:function(){var cf=this,cz=cf.horiz,cd=cf.reversed,cr=cf.chart,cu=cr.renderer,ch=cf.options,cq=cf.isLog,cm=cf.isLinked,cB=cf.tickPositions,cn,ci=cf.axisTitle,cy=cf.stacks,cC=cf.ticks,cb=cf.minorTicks,cg=cf.alternateBands,ct=ch.stackLabels,ca=ch.alternateGridColor,cA=cf.tickmarkOffset,M=ch.lineWidth,cl,cp=cr.hasRendered,co=cp&&aj(cf.oldMin)&&!isNaN(cf.oldMin),cx=cf.hasData,cs=cf.showAxis,cw,cj=cf.justifyLabels=!cf.staggerLines&&cz&&ch.labels.overflow==="justify",ce;
cf.labelEdge.length=0;I([cC,cb,cg],function(cD){var cE;for(cE in cD){cD[cE].isActive=false;}});if(cx||cm){if(cf.minorTickInterval&&!cf.categories){I(cf.getMinorTickPositions(),function(cD){if(!cb[cD]){cb[cD]=new aD(cf,cD,"minor");
}if(co&&cb[cD].isNew){cb[cD].render(null,true);}cb[cD].render(null,false,1);});}if(cB.length){cn=cB.slice();if((cz&&cd)||(!cz&&!cd)){cn.reverse();}if(cj){cn=cn.slice(1).concat([cn[0]]);
}I(cn,function(cE,cD){if(cj){cD=(cD===cn.length-1)?0:cD+1;}if(!cm||(cE>=cf.min&&cE<=cf.max)){if(!cC[cE]){cC[cE]=new aD(cf,cE);}if(co&&cC[cE].isNew){cC[cE].render(cD,true,0.1);
}cC[cE].render(cD,false,1);}});if(cA&&cf.min===0){if(!cC[-1]){cC[-1]=new aD(cf,-1,null,true);}cC[-1].render(-1);}}if(ca){I(cB,function(cE,cD){if(cD%2===0&&cE<cf.max){if(!cg[cE]){cg[cE]=new bG(cf);
}cw=cE+cA;ce=cB[cD+1]!==m?cB[cD+1]+cA:cf.max;cg[cE].options={from:cq?y(cw):cw,to:cq?y(ce):ce,color:ca};cg[cE].render();cg[cE].isActive=true;}});}if(!cf._addedPlotLB){I((ch.plotLines||[]).concat(ch.plotBands||[]),function(cD){cf.addPlotBandOrLine(cD);
});cf._addedPlotLB=true;}}I([cC,cb,cg],function(cH){var cI,cG,cF=[],cE=b9?b9.duration||500:0,cD=function(){cG=cF.length;while(cG--){if(cH[cF[cG]]&&!cH[cF[cG]].isActive){cH[cF[cG]].destroy();
delete cH[cF[cG]];}}};for(cI in cH){if(!cH[cI].isActive){cH[cI].render(cI,false,0);cH[cI].isActive=false;cF.push(cI);}}if(cH===cg||!cr.hasRendered||!cE){cD();}else{if(cE){setTimeout(cD,cE);
}}});if(M){cl=cf.getLinePath(M);if(!cf.axisLine){cf.axisLine=cu.path(cl).attr({stroke:ch.lineColor,"stroke-width":M,zIndex:7}).add(cf.axisGroup);}else{cf.axisLine.animate({d:cl});
}cf.axisLine[cs?"show":"hide"]();}if(ci&&cs){ci[ci.isNew?"attr":"animate"](cf.getTitlePosition());ci.isNew=false;}if(ct&&ct.enabled){var cc,ck,cv,L=cf.stackTotalGroup;
if(!L){cf.stackTotalGroup=L=cu.g("stack-labels").attr({visibility:ap,zIndex:6}).add();}L.translate(cr.plotLeft,cr.plotTop);for(cc in cy){ck=cy[cc];for(cv in ck){ck[cv].render(L);
}}}cf.isDirty=false;},redraw:function(){var M=this,L=M.chart,ca=L.pointer;if(ca.reset){ca.reset(true);}M.render();I(M.plotLinesAndBands,function(cb){cb.render();
});I(M.series,function(cb){cb.isDirty=true;});},buildStacks:function(){var M=this.series,L=M.length;if(!this.isXAxis){while(L--){M[L].setStackedPoints();}if(this.usePercentage){for(L=0;
L<M.length;L++){M[L].setPercentStacks();}}}},destroy:function(ca){var cd=this,cc=cd.stacks,L,M=cd.plotLinesAndBands,cb;if(!ca){a5(cd);}for(L in cc){bc(cc[L]);cc[L]=null;
}I([cd.ticks,cd.minorTicks,cd.alternateBands],function(ce){bc(ce);});cb=M.length;while(cb--){M[cb].destroy();}I(["stackTotalGroup","axisLine","axisTitle","axisGroup","cross","gridGroup","labelGroup"],function(ce){if(cd[ce]){cd[ce]=cd[ce].destroy();
}});if(this.cross){this.cross.destroy();}},drawCrosshair:function(cc,L){if(!this.crosshair){return;}if((aj(L)||!aR(this.crosshair.snap,true))===false){this.hideCrosshair();
return;}var cb,M=this.crosshair,ca=M.animation,ce;if(!aR(M.snap,true)){ce=(this.horiz?cc.chartX-this.pos:this.len-cc.chartY+this.pos);}else{if(aj(L)){ce=(this.chart.inverted!=this.horiz)?L.plotX:this.len-L.plotY;
}}if(this.isRadial){cb=this.getPlotLinePath(this.isXAxis?L.x:aR(L.stackY,L.y));}else{cb=this.getPlotLinePath(null,null,null,null,ce);}if(cb===null){this.hideCrosshair();
return;}if(this.cross){this.cross.attr({visibility:ap})[ca?"animate":"attr"]({d:cb},ca);}else{var cd={"stroke-width":M.width||1,stroke:M.color||"#C0C0C0",zIndex:M.zIndex||2};
if(M.dashStyle){cd.dashstyle=M.dashStyle;}this.cross=this.chart.renderer.path(cb).attr(cd).add();}},hideCrosshair:function(){if(this.cross){this.cross.hide();}}};
bo(C.prototype,s);C.prototype.getLogTickPositions=function(ct,cl,co,M){var ca=this,cb=ca.options,L=ca.len,ch=[];if(!M){ca._minorAutoInterval=null;}if(ct>=0.5){ct=p(ct);
ch=ca.getLinearTickPositions(ct,cl,co);}else{if(ct>=0.08){var cs=bp(cl),cq,cp,cn,cr,cc,cm,cg;if(ct>0.3){cq=[1,2,4];}else{if(ct>0.15){cq=[1,2,4,6,8];}else{cq=[1,2,3,4,5,6,7,8,9];
}}for(cp=cs;cp<co+1&&!cg;cp++){cr=cq.length;for(cn=0;cn<cr&&!cg;cn++){cc=v(y(cp)*cq[cn]);if(cc>cl&&(!M||cm<=co)){ch.push(cm);}if(cm>co){cg=true;}cm=cc;}}}else{var cj=y(cl),ck=y(co),cf=cb[M?"minorTickInterval":"tickInterval"],ce=cf==="auto"?null:cf,ci=cb.tickPixelInterval/(M?5:1),cd=M?L/ca.tickPositions.length:L;
ct=aR(ce,ca._minorAutoInterval,(ck-cj)*ci/(cd||1));ct=bI(ct,null,o(ct));ch=am(ca.getLinearTickPositions(ct,cj,ck),v);if(!M){ca._minorAutoInterval=ct/5;}}}if(!M){ca.tickInterval=ct;
}return ch;};C.prototype.getTimeTicks=function(ch,cc,cg,cm){var cn=[],cd,cl={},ck=bA.global.useUTC,ci,cb=new Date(cc-bk),M=ch.unitRange,cf=ch.count;if(aj(cc)){if(M>=a4[bj]){cb.setMilliseconds(0);
cb.setSeconds(M>=a4[bK]?0:cf*bp(cb.getSeconds()/cf));}if(M>=a4[bK]){cb[at](M>=a4[X]?0:cf*bp(cb[D]()/cf));}if(M>=a4[X]){cb[bJ](M>=a4[bL]?0:cf*bp(cb[Y]()/cf));}if(M>=a4[bL]){cb[aG](M>=a4[bi]?1:cf*bp(cb[bn]()/cf));
}if(M>=a4[bi]){cb[bO](M>=a4[bg]?0:cf*bp(cb[ab]()/cf));ci=cb[aa]();}if(M>=a4[bg]){ci-=ci%cf;cb[J](ci);}if(M===a4[bW]){cb[aG](cb[bn]()-cb[ay]()+aR(cm,1));}cd=1;if(bk){cb=new Date(cb.getTime()+bk);
}ci=cb[aa]();var ca=cb.getTime(),ce=cb[ab](),L=cb[bn](),cj=ck?bk:(24*3600*1000+cb.getTimezoneOffset()*60*1000)%(24*3600*1000);while(ca<cg){cn.push(ca);if(M===a4[bg]){ca=ac(ci+cd*cf,0);
}else{if(M===a4[bi]){ca=ac(ci,ce+cd*cf);}else{if(!ck&&(M===a4[bL]||M===a4[bW])){ca=ac(ci,ce,L+cd*cf*(M===a4[bL]?1:7));}else{ca+=M*cf;}}}cd++;}cn.push(ca);I(bz(cn,function(co){return M<=a4[X]&&co%a4[bL]===cj;
}),function(co){cl[co]=bL;});}cn.info=bo(ch,{higherRanks:cl,totalRange:M*cf});return cn;};C.prototype.normalizeTimeTickInterval=function(L,ca){var ce=ca||[[bY,[1,2,5,10,20,25,50,100,200,500]],[bj,[1,2,5,10,15,30]],[bK,[1,2,5,10,15,30]],[X,[1,2,3,4,6,8,12]],[bL,[1,2]],[bW,[1,2]],[bi,[1,2,3,4,6]],[bg,null]],cg=ce[ce.length-1],M=a4[cg[0]],cb=cg[1],cd,cc;
for(cc=0;cc<ce.length;cc++){cg=ce[cc];M=a4[cg[0]];cb=cg[1];if(ce[cc+1]){var cf=(M*cb[cb.length-1]+a4[ce[cc+1][0]])/2;if(L<=cf){break;}}}if(M===a4[bg]&&L<5*M){cb=[1,2,5];
}cd=bI(L/M,cb,cg[0]===bg?b8(o(L/M),1):1);return{unitRange:M,count:cd,unitName:cg[0]};};function az(cd,cb,M,L,ce,cc){var ca=cd.chart.inverted;this.axis=cd;this.isNegative=M;
this.options=cb;this.x=L;this.total=null;this.points={};this.stack=ce;this.percent=cc==="percent";this.alignOptions={align:cb.align||(ca?(M?"left":"right"):"center"),verticalAlign:cb.verticalAlign||(ca?"middle":(M?"bottom":"top")),y:aR(cb.y,ca?4:(M?14:-6)),x:aR(cb.x,ca?(M?-6:6):0)};
this.textAlign=cb.textAlign||(ca?(M?"right":"left"):"center");}az.prototype={destroy:function(){bc(this,this.axis);},render:function(ca){var M=this.options,L=M.format,cb=L?h(L,this):M.formatter.call(this);
if(this.label){this.label.attr({text:cb,visibility:al});}else{this.label=this.axis.chart.renderer.text(cb,0,0,M.useHTML).css(M.style).attr({align:this.textAlign,rotation:M.rotation,visibility:al}).add(ca);
}},setOffset:function(ce,ch){var cl=this,L=cl.axis,cf=L.chart,ca=cf.inverted,M=this.isNegative,ci=L.translate(this.percent?100:this.total,0,0,0,1),cd=L.translate(0),cc=g(ci-cd),ck=cf.xAxis[0].translate(this.x)+ce,cg=cf.plotHeight,cm={x:ca?(M?ci:ci-cc):ck,y:ca?cg-ck-ch:(M?(cg-ci-cc):cg-ci),width:ca?cc:ch,height:ca?ch:cc},cj=this.label,cb;
if(cj){cj.align(this.alignOptions,null,cm);cb=cj.alignAttr;cj.attr({visibility:this.options.crop===false||cf.isInsidePlot(cb.x,cb.y)?(bZ?"inherit":ap):al});}}};function bV(){this.init.apply(this,arguments);
}bV.prototype={init:function(cb,M){var L=M.borderWidth,ca=M.style,cc=bP(ca.padding);this.chart=cb;this.options=M;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=true;
this.label=cb.renderer.label("",0,0,M.shape,null,null,M.useHTML,null,"tooltip").attr({padding:cc,fill:M.backgroundColor,"stroke-width":L,r:M.borderRadius,zIndex:8}).css(ca).css({padding:0}).add().attr({y:-999});
if(!a7){this.label.shadow(M.shadow);}this.shared=M.shared;},destroy:function(){if(this.label){this.label=this.label.destroy();}clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout);
},move:function(M,ce,L,cd){var cc=this,cb=cc.now,ca=cc.options.animation!==false&&!cc.isHidden;bo(cb,{x:ca?(2*cb.x+M)/3:M,y:ca?(cb.y+ce)/2:ce,anchorX:ca?(2*cb.anchorX+L)/3:L,anchorY:ca?(cb.anchorY+cd)/2:cd});
cc.label.attr(cb);if(ca&&(g(M-cb.x)>1||g(ce-cb.y)>1)){clearTimeout(this.tooltipTimeout);this.tooltipTimeout=setTimeout(function(){if(cc){cc.move(M,ce,L,cd);}},32);
}},hide:function(){var M=this,L;clearTimeout(this.hideTimer);if(!this.isHidden){L=this.chart.hoverPoints;this.hideTimer=setTimeout(function(){M.label.fadeOut();M.isHidden=true;
},aR(this.options.hideDelay,500));if(L){I(L,function(ca){ca.setState();});}this.chart.hoverPoints=null;}},getAnchor:function(cf,L){var cc,cd=this.chart,cb=cd.inverted,ce=cd.plotTop,M=0,cg=0,ca;
cf=bh(cf);cc=cf[0].tooltipPos;if(this.followPointer&&L){if(L.chartX===m){L=cd.pointer.normalize(L);}cc=[L.chartX-cd.plotLeft,L.chartY-ce];}if(!cc){I(cf,function(ch){ca=ch.series.yAxis;
M+=ch.plotX;cg+=(ch.plotLow?(ch.plotLow+ch.plotHigh)/2:ch.plotY)+(!cb&&ca?ca.top-ce:0);});M/=cf.length;cg/=cf.length;cc=[cb?cd.plotWidth-cg:M,this.shared&&!cb&&cf.length>1&&L?L.chartY-ce:cb?cd.plotHeight-M:cg];
}return am(cc,p);},getPosition:function(cb,ce,ck){var cd=this.chart,ca=cd.plotLeft,cg=cd.plotTop,cf=cd.plotWidth,ch=cd.plotHeight,M=aR(this.options.distance,12),L=ck.plotX,cl=ck.plotY,cj=L+ca+(cd.inverted?M:-cb-M),ci=cl-ce+cg+15,cc;
if(cj<7){cj=ca+b8(L,0)+M;}if((cj+cb)>(ca+cf)){cj-=(cj+cb)-(ca+cf);ci=cl-ce+cg-M;cc=true;}if(ci<cg+5){ci=cg+5;if(cc&&cl>=ci&&cl<=(ci+ce)){ci=cl+cg+M;}}if(ci+ce>cg+ch){ci=b8(cg,cg+ch-ce-M);
}return{x:cj,y:ci};},defaultFormatter:function(cb){var L=this.points||bh(this),M=L[0].series,ca;ca=[M.tooltipHeaderFormatter(L[0])];I(L,function(cc){M=cc.series;
ca.push((M.tooltipFormatter&&M.tooltipFormatter(cc))||cc.point.tooltipFormatter(M.tooltipOptions.pointFormat));});ca.push(cb.options.footerFormat||"");return ca.join("");
},refresh:function(ck,M){var cn=this,cf=cn.chart,ch=cn.label,co=cn.options,ci,cg,ce,L={},cl,cb=[],cj=co.formatter||cn.defaultFormatter,ca=cf.hoverPoints,cd,cc=cn.shared,cm;
clearTimeout(this.hideTimer);cn.followPointer=bh(ck)[0].series.tooltipOptions.followPointer;ce=cn.getAnchor(ck,M);ci=ce[0];cg=ce[1];if(cc&&!(ck.series&&ck.series.noSharedTooltip)){cf.hoverPoints=ck;
if(ca){I(ca,function(cp){cp.setState();});}I(ck,function(cp){cp.setState(aS);cb.push(cp.getLabelConfig());});L={x:ck[0].category,y:ck[0].y};L.points=cb;ck=ck[0];
}else{L=ck.getLabelConfig();}cl=cj.call(L,cn);cm=ck.series;if(cl===false){this.hide();}else{if(cn.isHidden){aZ(ch);ch.attr("opacity",1).show();}ch.attr({text:cl});
cd=co.borderColor||ck.color||cm.color||"#606060";ch.attr({stroke:cd});cn.updatePosition({plotX:ci,plotY:cg});this.isHidden=false;}bv(cf,"tooltipRefresh",{text:cl,x:ci+cf.plotLeft,y:cg+cf.plotTop,borderColor:cd});
},updatePosition:function(L){var ca=this.chart,M=this.label,cb=(this.options.positioner||this.getPosition).call(this,M.width,M.height,L);this.move(p(cb.x),p(cb.y),L.plotX+ca.plotLeft,L.plotY+ca.plotTop);
}};var aP=Highcharts.Pointer=function(M,L){this.init(M,L);};aP.prototype={init:function(cb,ca){var cf=ca.chart,ce=cf.events,L=a7?"":cf.zoomType,M=cb.inverted,cd,cc;
this.options=ca;this.chart=cb;this.zoomX=cd=/x/.test(L);this.zoomY=cc=/y/.test(L);this.zoomHor=(cd&&!M)||(cc&&M);this.zoomVert=(cc&&!M)||(cd&&M);this.runChartClick=ce&&!!ce.click;
this.pinchDown=[];this.lastValidTouch={};if(ca.tooltip.enabled){cb.tooltip=new bV(cb,ca.tooltip);}this.setDOMEvents();},normalize:function(cb,ca){var M,cc,L;cb=cb||a3.event;
if(!cb.target){cb.target=cb.srcElement;}cb=T(cb);L=cb.touches?cb.touches.item(0):cb;if(!ca){this.chartPosition=ca=bT(this.chart.container);}if(L.pageX===m){M=b8(cb.x,cb.clientX-ca.left);
cc=cb.y;}else{M=L.pageX-ca.left;cc=L.pageY-ca.top;}return bo(cb,{chartX:p(M),chartY:p(cc)});},getCoordinates:function(L){var M={xAxis:[],yAxis:[]};I(this.chart.axes,function(ca){M[ca.isXAxis?"xAxis":"yAxis"].push({axis:ca,value:ca.toValue(L[ca.horiz?"chartX":"chartY"])});
});return M;},getIndex:function(M){var L=this.chart;return L.inverted?L.plotHeight+L.plotTop-M.chartY:M.chartX-L.plotLeft;},runPointActions:function(cg){var L=this,ch=L.chart,ce=ch.series,cl=ch.tooltip,cj,ck,M=ch.hoverPoint,ci=ch.hoverSeries,cd,cb,ca=ch.chartWidth,cf=L.getIndex(cg),cc;
if(cl&&L.options.tooltip.shared&&!(ci&&ci.noSharedTooltip)){ck=[];cd=ce.length;for(cb=0;cb<cd;cb++){if(ce[cb].visible&&ce[cb].options.enableMouseTracking!==false&&!ce[cb].noSharedTooltip&&ce[cb].tooltipPoints.length){cj=ce[cb].tooltipPoints[cf];
if(cj&&cj.series){cj._dist=g(cf-cj.clientX);ca=aq(ca,cj._dist);ck.push(cj);}}}cd=ck.length;while(cd--){if(ck[cd]._dist>ca){ck.splice(cd,1);}}if(ck.length&&(ck[0].clientX!==L.hoverX)){cl.refresh(ck,cg);
L.hoverX=ck[0].clientX;}}if(ci&&ci.tracker){cj=ci.tooltipPoints[cf];if(cj&&cj!==M){cj.onMouseOver(cg);}}else{if(cl&&cl.followPointer&&!cl.isHidden){cc=cl.getAnchor([{}],cg);
cl.updatePosition({plotX:cc[0],plotY:cc[1]});}}if(cl&&!L._onDocumentMouseMove){L._onDocumentMouseMove=function(cm){L.onDocumentMouseMove(cm);};z(bD,"mousemove",L._onDocumentMouseMove);
}I(ch.axes,function(cm){cm.drawCrosshair(cg,aR(M,cj));});},reset:function(ce){var cd=this,cb=cd.chart,M=cb.hoverSeries,L=cb.hoverPoint,cc=cb.tooltip,ca=cc&&cc.shared?cb.hoverPoints:L;
ce=ce&&cc&&ca;if(ce&&bh(ca)[0].plotX===m){ce=false;}if(ce){cc.refresh(ca);if(L){L.setState(L.state,true);}}else{if(L){L.onMouseOut();}if(M){M.onMouseOut();}if(cc){cc.hide();
}if(cd._onDocumentMouseMove){a5(bD,"mousemove",cd._onDocumentMouseMove);cd._onDocumentMouseMove=null;}I(cb.axes,function(cf){cf.hideCrosshair();});cd.hoverX=null;
}},scaleGroups:function(ca,M){var L=this.chart,cb;I(L.series,function(cc){cb=ca||cc.getPlotBox();if(cc.xAxis&&cc.xAxis.zoomEnabled){cc.group.attr(cb);if(cc.markerGroup){cc.markerGroup.attr(cb);
cc.markerGroup.clip(M?L.clipRect:null);}if(cc.dataLabelsGroup){cc.dataLabelsGroup.attr(cb);}}});L.clipRect.attr(M||L.clipBox);},pinchTranslate:function(ce,cf,M,cd,ca,cb,cc,L){if(ce){this.pinchTranslateDirection(true,M,cd,ca,cb,cc,L);
}if(cf){this.pinchTranslateDirection(false,M,cd,ca,cb,cc,L);}},pinchTranslateDirection:function(cz,cv,cq,cp,cb,cx,ct,cw){var cs=this.chart,cf=cz?"x":"y",ca=cz?"X":"Y",cy="chart"+ca,ch=cz?"width":"height",M=cs["plot"+(cz?"Left":"Top")],cj,cg,cm,cA=cw||1,cr=cs.inverted,ci=cs.bounds[cz?"h":"v"],ce=cv.length===1,cd=cv[0][cy],co=cq[0][cy],ck=!ce&&cv[1][cy],cu=!ce&&cq[1][cy],cc,L,cl,cn=function(){if(!ce&&g(cd-ck)>20){cA=cw||g(co-cu)/g(cd-ck);
}cm=((M-co)/cA)+cd;cj=cs["plot"+(cz?"Width":"Height")]/cA;};cn();cg=cm;if(cg<ci.min){cg=ci.min;cc=true;}else{if(cg+cj>ci.max){cg=ci.max-cj;cc=true;}}if(cc){co-=0.8*(co-ct[cf][0]);
if(!ce){cu-=0.8*(cu-ct[cf][1]);}cn();}else{ct[cf]=[co,cu];}if(!cr){cx[cf]=cm-M;cx[ch]=cj;}cl=cr?(cz?"scaleY":"scaleX"):"scale"+ca;L=cr?1/cA:cA;cb[ch]=cj;cb[cf]=cg;
cp[cl]=cA;cp["translate"+ca]=(L*M)+(co-(L*cd));},pinch:function(ch){var cm=this,ci=cm.chart,cl=cm.pinchDown,cg=ci.tooltip&&ci.tooltip.options.followTouchMove,ce=ch.touches,M=ce.length,ca=cm.lastValidTouch,L=cm.zoomHor||cm.pinchHor,ck=cm.zoomVert||cm.pinchVert,cf=L||ck,cj=cm.selectionMarker,cb={},cd=M===1&&((cm.inClass(ch.target,a8+"tracker")&&ci.runTrackerClick)||ci.runChartClick),cc={};
if((cf||cg)&&!cd){ch.preventDefault();}am(ce,function(cn){return cm.normalize(cn);});if(ch.type==="touchstart"){I(ce,function(co,cn){cl[cn]={chartX:co.chartX,chartY:co.chartY};
});ca.x=[cl[0].chartX,cl[1]&&cl[1].chartX];ca.y=[cl[0].chartY,cl[1]&&cl[1].chartY];I(ci.axes,function(cs){if(cs.zoomEnabled){var ct=ci.bounds[cs.horiz?"h":"v"],cp=cs.minPixelPadding,cq=cs.toPixels(cs.dataMin),cn=cs.toPixels(cs.dataMax),cr=aq(cq,cn),co=b8(cq,cn);
ct.min=aq(cs.pos,cr-cp);ct.max=b8(cs.pos+cs.len,co+cp);}});}else{if(cl.length){if(!cj){cm.selectionMarker=cj=bo({destroy:l},ci.plotBox);}cm.pinchTranslate(L,ck,cl,ce,cb,cj,cc,ca);
cm.hasPinched=cf;cm.scaleGroups(cb,cc);if(!cf&&cg&&M===1){this.runPointActions(cm.normalize(ch));}}}},dragStart:function(M){var L=this.chart;L.mouseIsDown=M.type;
L.cancelClick=false;L.mouseDownX=this.mouseDownX=M.chartX;L.mouseDownY=this.mouseDownY=M.chartY;},drag:function(cf){var cg=this.chart,cc=cg.options.chart,ch=cf.chartX,ce=cf.chartY,ca=this.zoomHor,cl=this.zoomVert,cb=cg.plotLeft,ck=cg.plotTop,cj=cg.plotWidth,ci=cg.plotHeight,cd,cm,M=this.mouseDownX,L=this.mouseDownY;
if(ch<cb){ch=cb;}else{if(ch>cb+cj){ch=cb+cj;}}if(ce<ck){ce=ck;}else{if(ce>ck+ci){ce=ck+ci;}}this.hasDragged=Math.sqrt(Math.pow(M-ch,2)+Math.pow(L-ce,2));if(this.hasDragged>10){cd=cg.isInsidePlot(M-cb,L-ck);
if(cg.hasCartesianSeries&&(this.zoomX||this.zoomY)&&cd){if(!this.selectionMarker){this.selectionMarker=cg.renderer.rect(cb,ck,ca?1:cj,cl?1:ci,0).attr({fill:cc.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add();
}}if(this.selectionMarker&&ca){cm=ch-M;this.selectionMarker.attr({width:g(cm),x:(cm>0?0:cm)+M});}if(this.selectionMarker&&cl){cm=ce-L;this.selectionMarker.attr({height:g(cm),y:(cm>0?0:cm)+L});
}if(cd&&!this.selectionMarker&&cc.panning){cg.pan(cf,cc.panning);}}},drop:function(cf){var cc=this.chart,ca=this.hasPinched;if(this.selectionMarker){var cd={xAxis:[],yAxis:[],originalEvent:cf.originalEvent||cf},M=this.selectionMarker,ce=M.x,cb=M.y,L;
if(this.hasDragged||ca){I(cc.axes,function(ch){if(ch.zoomEnabled){var cj=ch.horiz,cg=ch.toValue((cj?ce:cb)),ci=ch.toValue((cj?ce+M.width:cb+M.height));if(!isNaN(cg)&&!isNaN(ci)){cd[ch.coll].push({axis:ch,min:aq(cg,ci),max:b8(cg,ci)});
L=true;}}});if(L){bv(cc,"selection",cd,function(cg){cc.zoom(bo(cg,ca?{animation:false}:null));});}}this.selectionMarker=this.selectionMarker.destroy();if(ca){this.scaleGroups();
}}if(cc){b3(cc.container,{cursor:cc._cursor});cc.cancelClick=this.hasDragged>10;cc.mouseIsDown=this.hasDragged=this.hasPinched=false;this.pinchDown=[];}},onContainerMouseDown:function(L){L=this.normalize(L);
if(L.preventDefault){L.preventDefault();}this.dragStart(L);},onDocumentMouseUp:function(L){this.drop(L);},onDocumentMouseMove:function(cb){var ca=this.chart,L=this.chartPosition,M=ca.hoverSeries;
cb=this.normalize(cb,L);if(L&&M&&!this.inClass(cb.target,"highcharts-tracker")&&!ca.isInsidePlot(cb.chartX-ca.plotLeft,cb.chartY-ca.plotTop)){this.reset();}},onContainerMouseLeave:function(){this.reset();
this.chartPosition=null;},onContainerMouseMove:function(M){var L=this.chart;M=this.normalize(M);if(L.mouseIsDown==="mousedown"){this.drag(M);}if((this.inClass(M.target,"highcharts-tracker")||L.isInsidePlot(M.chartX-L.plotLeft,M.chartY-L.plotTop))&&!L.openMenu){this.runPointActions(M);
}},inClass:function(L,ca){var M;while(L){M=U(L,"class");if(M){if(M.indexOf(ca)!==-1){return true;}else{if(M.indexOf(a8+"container")!==-1){return false;}}}L=L.parentNode;
}},onTrackerMouseOut:function(cb){var M=this.chart.hoverSeries,L=cb.relatedTarget||cb.toElement,ca=L.point&&L.point.series;if(M&&!M.options.stickyTracking&&!this.inClass(L,a8+"tooltip")&&ca!==M){M.onMouseOut();
}},onContainerClick:function(cc){var ce=this.chart,M=ce.hoverPoint,ca=ce.plotLeft,cf=ce.plotTop,cb=ce.inverted,cd,L,cg;cc=this.normalize(cc);cc.cancelBubble=true;
if(!ce.cancelClick){if(M&&this.inClass(cc.target,a8+"tracker")){cd=this.chartPosition;L=M.plotX;cg=M.plotY;bo(M,{pageX:cd.left+ca+(cb?ce.plotWidth-cg:L),pageY:cd.top+cf+(cb?ce.plotHeight-L:cg)});
bv(M.series,"click",bo(cc,{point:M}));if(ce.hoverPoint){M.firePointEvent("click",cc);}}else{bo(cc,this.getCoordinates(cc));if(ce.isInsidePlot(cc.chartX-ca,cc.chartY-cf)){bv(ce,"click",cc);
}}}},onContainerTouchStart:function(M){var L=this.chart;if(M.touches.length===1){M=this.normalize(M);if(L.isInsidePlot(M.chartX-L.plotLeft,M.chartY-L.plotTop)){this.runPointActions(M);
this.pinch(M);}else{this.reset();}}else{if(M.touches.length===2){this.pinch(M);}}},onContainerTouchMove:function(L){if(L.touches.length===1||L.touches.length===2){this.pinch(L);
}},onDocumentTouchEnd:function(L){this.drop(L);},setDOMEvents:function(){var ca=this,L=ca.chart.container,M;this._events=M=[[L,"onmousedown","onContainerMouseDown"],[L,"onmousemove","onContainerMouseMove"],[L,"onclick","onContainerClick"],[L,"mouseleave","onContainerMouseLeave"],[bD,"mouseup","onDocumentMouseUp"]];
if(H){M.push([L,"ontouchstart","onContainerTouchStart"],[L,"ontouchmove","onContainerTouchMove"],[bD,"touchend","onDocumentTouchEnd"]);}I(M,function(cb){ca["_"+cb[2]]=function(cc){ca[cb[2]](cc);
};if(cb[1].indexOf("on")===0){cb[0][cb[1]]=ca["_"+cb[2]];}else{z(cb[0],cb[1],ca["_"+cb[2]]);}});},destroy:function(){var L=this;I(L._events,function(M){if(M[1].indexOf("on")===0){M[0][M[1]]=null;
}else{a5(M[0],M[1],L["_"+M[2]]);}});delete L._events;clearInterval(L.tooltipTimeout);}};var aO=Highcharts.TrackerMixin={drawTrackerPoint:function(){var M=this,ca=M.chart,cd=ca.pointer,cc=M.options.cursor,L=cc&&{cursor:cc},cb=function(cg){var cf=cg.target,ce;
if(ca.hoverSeries!==M){M.onMouseOver();}while(cf&&!ce){ce=cf.point;cf=cf.parentNode;}if(ce!==m&&ce!==ca.hoverPoint){ce.onMouseOver(cg);}};I(M.points,function(ce){if(ce.graphic){ce.graphic.element.point=ce;
}if(ce.dataLabel){ce.dataLabel.element.point=ce;}});if(!M._hasTracking){I(M.trackerGroups,function(ce){if(M[ce]){M[ce].addClass(a8+"tracker").on("mouseover",cb).on("mouseout",function(cf){cd.onTrackerMouseOut(cf);
}).css(L);if(H){M[ce].on("touchstart",cb);}}});M._hasTracking=true;}},drawTrackerGraph:function(){var ce=this,cn=ce.options,cm=cn.trackByArea,M=[].concat(cm?ce.areaPath:ce.graphPath),cj=M.length,ci=ce.chart,L=ci.pointer,ch=ci.renderer,ca=ci.options.tooltip.snap,ck=ce.tracker,cl=cn.cursor,cg=cl&&{cursor:cl},cd=ce.singlePoints,cb,cc,cf=function(){if(ci.hoverSeries!==ce){ce.onMouseOver();
}};if(cj&&!cm){cc=cj+1;while(cc--){if(M[cc]===bw){M.splice(cc+1,0,M[cc+1]-ca,M[cc+2],bx);}if((cc&&M[cc]===bw)||cc===cj){M.splice(cc,0,bx,M[cc-2]+ca,M[cc-1]);}}}for(cc=0;
cc<cd.length;cc++){cb=cd[cc];M.push(bw,cb.plotX-ca,cb.plotY,bx,cb.plotX+ca,cb.plotY);}if(ck){ck.attr({d:M});}else{ce.tracker=ch.path(M).attr({"stroke-linejoin":"round",visibility:ce.visible?ap:al,stroke:b2,fill:cm?b2:B,"stroke-width":cn.lineWidth+(cm?0:2*ca),zIndex:2}).add(ce.group);
I([ce.tracker,ce.markerGroup],function(co){co.addClass(a8+"tracker").on("mouseover",cf).on("mouseout",function(cp){L.onTrackerMouseOut(cp);}).css(cg);if(H){co.on("touchstart",cf);
}});}}};if(a3.PointerEvent||a3.MSPointerEvent){var e={};aP.prototype.getWebkitTouches=function(){var M,L=[];L.item=function(ca){return this[ca];};for(M in e){if(e.hasOwnProperty(M)){L.push({pageX:e[M].pageX,pageY:e[M].pageY,target:e[M].target});
}}return L;};a0(aP.prototype,"init",function(ca,M,L){M.container.style["-ms-touch-action"]=M.container.style["touch-action"]="none";ca.call(this,M,L);});a0(aP.prototype,"setDOMEvents",function(M){var ca=this,L;
M.apply(this,Array.prototype.slice.call(arguments,1));L=[[this.chart.container,"PointerDown","touchstart","onContainerTouchStart",function(cb){e[cb.pointerId]={pageX:cb.pageX,pageY:cb.pageY,target:cb.currentTarget};
}],[this.chart.container,"PointerMove","touchmove","onContainerTouchMove",function(cb){e[cb.pointerId]={pageX:cb.pageX,pageY:cb.pageY};if(!e[cb.pointerId].target){e[cb.pointerId].target=cb.currentTarget;
}}],[document,"PointerUp","touchend","onDocumentTouchEnd",function(cb){delete e[cb.pointerId];}]];I(L,function(cb){z(cb[0],window.PointerEvent?cb[1].toLowerCase():"MS"+cb[1],function(cc){cc=cc.originalEvent;
if(cc.pointerType==="touch"||cc.pointerType===cc.MSPOINTER_TYPE_TOUCH){cb[4](cc);ca[cb[3]]({type:cb[2],target:cc.currentTarget,preventDefault:l,touches:ca.getWebkitTouches()});
}});});});}var by=Highcharts.Legend=function(M,L){this.init(M,L);};by.prototype={init:function(ca,L){var M=this,cb=L.itemStyle,cc=aR(L.padding,8),cd=L.itemMarginTop||0;
this.options=L;if(!L.enabled){return;}M.baseline=bP(cb.fontSize)+3+cd;M.itemStyle=cb;M.itemHiddenStyle=aQ(cb,L.itemHiddenStyle);M.itemMarginTop=cd;M.padding=cc;M.initialItemX=cc;
M.initialItemY=cc-5;M.maxItemWidth=0;M.chart=ca;M.itemHeight=0;M.lastLineHeight=0;M.symbolWidth=aR(L.symbolWidth,16);M.pages=[];M.render();z(M.chart,"endResize",function(){M.positionCheckboxes();
});},colorizeItem:function(ck,cb){var cf=this,cl=cf.options,cd=ck.legendItem,ce=ck.legendLine,ca=ck.legendSymbol,ci=cf.itemHiddenStyle.color,ch=cb?cl.itemStyle.color:ci,cc=cb?(ck.legendColor||ck.color):ci,L=ck.options&&ck.options.marker,cj={stroke:cc,fill:cc},cg,M;
if(cd){cd.css({fill:ch,color:ch});}if(ce){ce.attr({stroke:cc});}if(ca){if(L&&ca.isMarker){L=ck.convertAttribs(L);for(cg in L){M=L[cg];if(M!==m){cj[cg]=M;}}}ca.attr(cj);
}},positionItem:function(cf){var cd=this,cg=cd.options,ce=cg.symbolPadding,L=!cg.rtl,M=cf._legendItemPos,cc=M[0],cb=M[1],ca=cf.checkbox;if(cf.legendGroup){cf.legendGroup.translate(L?cc:cd.legendWidth-cc-2*ce-4,cb);
}if(ca){ca.x=cc;ca.y=cb;}},destroyItem:function(L){var M=L.checkbox;I(["legendItem","legendLine","legendSymbol","legendGroup"],function(ca){if(L[ca]){L[ca]=L[ca].destroy();
}});if(M){bR(L.checkbox);}},destroy:function(){var L=this,ca=L.group,M=L.box;if(M){L.box=M.destroy();}if(ca){L.group=ca.destroy();}},positionCheckboxes:function(L){var cb=this.group.alignAttr,ca,M=this.clipHeight||this.legendHeight;
if(cb){ca=cb.translateY;I(this.allItems,function(cc){var cd=cc.checkbox,ce;if(cd){ce=(ca+cd.y+(L||0)+3);b3(cd,{left:(cb.translateX+cc.legendItemWidth+cd.x-20)+Z,top:ce+Z,display:ce>ca-6&&ce<ca+M-6?"":B});
}});}},renderTitle:function(){var L=this.options,cb=this.padding,ca=L.title,cc=0,M;if(ca.text){if(!this.title){this.title=this.chart.renderer.label(ca.text,cb-3,cb-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(ca.style).add(this.group);
}M=this.title.getBBox();cc=M.height;this.offsetWidth=M.width;this.contentGroup.attr({translateY:cc});}this.titleHeight=cc;},renderItem:function(ct){var M=this,cm=M.chart,cn=cm.renderer,cb=M.options,cu=cb.layout==="horizontal",cv=M.symbolWidth,L=cb.symbolPadding,cg=M.itemStyle,ca=M.itemHiddenStyle,cl=M.padding,cd=cu?aR(cb.itemDistance,8):0,cr=!cb.rtl,cp,cj=cb.width,cf=cb.itemMarginBottom||0,cs=M.itemMarginTop,cq=M.initialItemX,ce,cc,ck=ct.legendItem,ci=ct.series&&ct.series.drawLegendSymbol?ct.series:ct,ch=ci.options,cw=ch&&ch.showCheckbox,co=cb.useHTML;
if(!ck){ct.legendGroup=cn.g("legend-item").attr({zIndex:1}).add(M.scrollGroup);ci.drawLegendSymbol(M,ct);ct.legendItem=ck=cn.text(cb.labelFormat?h(cb.labelFormat,ct):cb.labelFormatter.call(ct),cr?cv+L:-L,M.baseline,co).css(aQ(ct.visible?cg:ca)).attr({align:cr?"left":"right",zIndex:2}).add(ct.legendGroup);
(co?ck:ct.legendGroup).on("mouseover",function(){ct.setState(aS);ck.css(M.options.itemHoverStyle);}).on("mouseout",function(){ck.css(ct.visible?cg:ca);ct.setState();
}).on("click",function(cy){var cz="legendItemClick",cx=function(){ct.setVisible();};cy={browserEvent:cy};if(ct.firePointEvent){ct.firePointEvent(cz,cy,cx);}else{bv(ct,cz,cy,cx);
}});M.colorizeItem(ct,ct.visible);if(cw){ct.checkbox=bq("input",{type:"checkbox",checked:ct.selected,defaultChecked:ct.selected},cb.itemCheckboxStyle,cm.container);
z(ct.checkbox,"click",function(cx){var cy=cx.target;bv(ct,"checkboxClick",{checked:cy.checked},function(){ct.select();});});}}ce=ck.getBBox();cc=ct.legendItemWidth=cb.itemWidth||ct.legendItemWidth||cv+L+ce.width+cd+(cw?20:0);
M.itemHeight=cp=p(ct.legendItemHeight||ce.height);if(cu&&M.itemX-cq+cc>(cj||(cm.chartWidth-2*cl-cq))){M.itemX=cq;M.itemY+=cs+M.lastLineHeight+cf;M.lastLineHeight=0;
}M.maxItemWidth=b8(M.maxItemWidth,cc);M.lastItemY=cs+M.itemY+cf;M.lastLineHeight=b8(cp,M.lastLineHeight);ct._legendItemPos=[M.itemX,M.itemY];if(cu){M.itemX+=cc;}else{M.itemY+=cs+cp+cf;
M.lastLineHeight=cp;}M.offsetWidth=cj||b8((cu?M.itemX-cq-cd:cc)+cl,M.offsetWidth);},getAllItems:function(){var L=[];I(this.chart.series,function(ca){var M=ca.options;
if(!aR(M.showInLegend,!aj(M.linkedTo)?m:false,true)){return;}L=L.concat(ca.legendItems||(M.legendType==="point"?ca.data:ca));});return L;},render:function(){var ch=this,ce=ch.chart,cd=ce.renderer,cb=ch.group,cf,cc,cj,ci,ca=ch.box,ck=ch.options,cg=ch.padding,L=ck.borderWidth,M=ck.backgroundColor;
ch.itemX=ch.initialItemX;ch.itemY=ch.initialItemY;ch.offsetWidth=0;ch.lastItemY=0;if(!cb){ch.group=cb=cd.g("legend").attr({zIndex:7}).add();ch.contentGroup=cd.g().attr({zIndex:1}).add(cb);
ch.scrollGroup=cd.g().add(ch.contentGroup);}ch.renderTitle();cf=ch.getAllItems();aK(cf,function(cm,cl){return((cm.options&&cm.options.legendIndex)||0)-((cl.options&&cl.options.legendIndex)||0);
});if(ck.reversed){cf.reverse();}ch.allItems=cf;ch.display=cc=!!cf.length;I(cf,function(cl){ch.renderItem(cl);});cj=ck.width||ch.offsetWidth;ci=ch.lastItemY+ch.lastLineHeight+ch.titleHeight;
ci=ch.handleOverflow(ci);if(L||M){cj+=cg;ci+=cg;if(!ca){ch.box=ca=cd.rect(0,0,cj,ci,ck.borderRadius,L||0).attr({stroke:ck.borderColor,"stroke-width":L||0,fill:M||B}).add(cb).shadow(ck.shadow);
ca.isNew=true;}else{if(cj>0&&ci>0){ca[ca.isNew?"attr":"animate"](ca.crisp(null,null,null,cj,ci));ca.isNew=false;}}ca[cc?"show":"hide"]();}ch.legendWidth=cj;ch.legendHeight=ci;
I(cf,function(cl){ch.positionItem(cl);});if(cc){cb.align(bo({width:cj,height:ci},ck),true,"spacingBox");}if(!ce.isResizing){this.positionCheckboxes();}},handleOverflow:function(cc){var L=this,ci=this.chart,cl=ci.renderer,ca=this.options,cf=ca.y,M=ca.verticalAlign==="top",cp=ci.spacingBox.height+(M?-cf:cf)-this.padding,ck=ca.maxHeight,cb,cm=this.clipRect,cn=ca.navigation,co=aR(cn.animation,true),cj=cn.arrowSize||12,ce=this.nav,cg=this.pages,cd,ch=this.allItems;
if(ca.layout==="horizontal"){cp/=2;}if(ck){cp=aq(cp,ck);}cg.length=0;if(cc>cp&&!ca.useHTML){this.clipHeight=cb=cp-20-this.titleHeight-this.padding;this.currentPage=aR(this.currentPage,1);
this.fullHeight=cc;I(ch,function(ct,cr){var cu=ct._legendItemPos[1],cs=p(ct.legendItem.bBox.height),cq=cg.length;if(!cq||(cu-cg[cq-1]>cb)){cg.push(cd||cu);}if(cr===ch.length-1&&cu+cs-cg[cq-1]>cb){cg.push(cu);
}if(cu!==cd){cd=cu;}});if(!cm){cm=L.clipRect=cl.clipRect(0,this.padding,9999,0);L.contentGroup.clip(cm);}cm.attr({height:cb});if(!ce){this.nav=ce=cl.g().attr({zIndex:1}).add(this.group);
this.up=cl.symbol("triangle",0,0,cj,cj).on("click",function(){L.scroll(-1,co);}).add(ce);this.pager=cl.text("",15,10).css(cn.style).add(ce);this.down=cl.symbol("triangle-down",0,0,cj,cj).on("click",function(){L.scroll(1,co);
}).add(ce);}L.scroll(0);cc=cp;}else{if(ce){cm.attr({height:ci.chartHeight});ce.hide();this.scrollGroup.attr({translateY:1});this.clipHeight=0;}}return cc;},scroll:function(cd,cb){var L=this.pages,ca=L.length,cg=this.currentPage+cd,cc=this.clipHeight,ch=this.options.navigation,ci=ch.activeColor,cf=ch.inactiveColor,M=this.pager,cj=this.padding,ce;
if(cg>ca){cg=ca;}if(cg>0){if(cb!==m){b4(cb,this.chart);}this.nav.attr({translateX:cj,translateY:cc+this.padding+7+this.titleHeight,visibility:ap});this.up.attr({fill:cg===1?cf:ci}).css({cursor:cg===1?"default":"pointer"});
M.attr({text:cg+"/"+ca});this.down.attr({x:18+this.pager.getBBox().width,fill:cg===ca?cf:ci}).css({cursor:cg===ca?"default":"pointer"});ce=-L[cg-1]+this.initialItemY;
this.scrollGroup.animate({translateY:ce});this.currentPage=cg;this.positionCheckboxes(ce);}}};var G=Highcharts.LegendSymbolMixin={drawRectangle:function(M,ca){var L=M.options.symbolHeight||12;
ca.legendSymbol=this.chart.renderer.rect(0,M.baseline-5-(L/2),M.symbolWidth,L,aR(M.options.symbolRadius,2)).attr({zIndex:3}).add(ca.legendGroup);},drawLineMarker:function(cg){var ci=this.options,L=ci.marker,cc,ch=cg.options,M,cb=cg.symbolWidth,cf=this.chart.renderer,ca=this.legendGroup,ce=cg.baseline-p(cf.fontMetrics(ch.itemStyle.fontSize).b*0.3),cd;
if(ci.lineWidth){cd={"stroke-width":ci.lineWidth};if(ci.dashStyle){cd.dashstyle=ci.dashStyle;}this.legendLine=cf.path([bw,0,ce,bx,cb,ce]).attr(cd).add(ca);}if(L&&L.enabled){cc=L.radius;
this.legendSymbol=M=cf.symbol(this.symbol,(cb/2)-cc,ce-cc,2*cc,2*cc).add(ca);M.isMarker=true;}}};if(/Trident\/7\.0/.test(u)){a0(by.prototype,"positionItem",function(ca,M){var L=this,cb=function(){if(M._legendItemPos){ca.call(L,M);
}};if(L.chart.renderer.forExport){cb();}else{setTimeout(cb);}});}function bm(){this.init.apply(this,arguments);}bm.prototype={init:function(ce,cf){var M,L=ce.series;
ce.series=null;M=aQ(bA,ce);M.series=ce.series=L;this.userOptions=ce;var cd=M.chart;this.margin=this.splashArray("margin",cd);this.spacing=this.splashArray("spacing",cd);
var cc=cd.events;this.bounds={h:{},v:{}};this.callback=cf;this.isResizing=0;this.options=M;this.axes=[];this.series=[];this.hasCartesianSeries=cd.showAxes;var cb=this,ca;
cb.index=aI.length;aI.push(cb);if(cd.reflow!==false){z(cb,"load",function(){cb.initReflow();});}if(cc){for(ca in cc){z(cb,ca,cc[ca]);}}cb.xAxis=[];cb.yAxis=[];cb.animation=a7?false:aR(cd.animation,true);
cb.pointCount=0;cb.counters=new Q();cb.firstRender();},initSeries:function(L){var cb=this,cd=cb.options.chart,ca=L.type||cd.type||cd.defaultSeriesType,M,cc=a[ca];
if(!cc){bQ(17,true);}M=new cc();M.init(this,L);return M;},isInsidePlot:function(cb,ca,M){var L=M?ca:cb,cc=M?cb:ca;return L>=0&&L<=this.plotWidth&&cc>=0&&cc<=this.plotHeight;
},adjustTickAmounts:function(){if(this.options.chart.alignTicks!==false){I(this.axes,function(L){L.adjustTickAmount();});}this.maxTicks=null;},redraw:function(cb){var ck=this,cj=ck.axes,ce=ck.series,L=ck.pointer,cn=ck.legend,M=ck.isDirtyLegend,cg,cl,cd=ck.isDirtyBox,ca=ce.length,cc=ca,cf,ci=ck.renderer,cm=ci.isHidden(),ch=[];
b4(cb,ck);if(cm){ck.cloneRenderTo();}ck.layOutTitles();while(cc--){cf=ce[cc];if(cf.options.stacking){cg=true;if(cf.isDirty){cl=true;break;}}}if(cl){cc=ca;while(cc--){cf=ce[cc];
if(cf.options.stacking){cf.isDirty=true;}}}I(ce,function(co){if(co.isDirty){if(co.options.legendType==="point"){M=true;}}});if(M&&cn.options.enabled){cn.render();
ck.isDirtyLegend=false;}if(cg){ck.getStacks();}if(ck.hasCartesianSeries){if(!ck.isResizing){ck.maxTicks=null;I(cj,function(co){co.setScale();});}ck.adjustTickAmounts();
ck.getMargins();I(cj,function(co){if(co.isDirty){cd=true;}});I(cj,function(co){if(co.isDirtyExtremes){co.isDirtyExtremes=false;ch.push(function(){bv(co,"afterSetExtremes",bo(co.eventArgs,co.getExtremes()));
delete co.eventArgs;});}if(cd||cg){co.redraw();}});}if(cd){ck.drawChartBox();}I(ce,function(co){if(co.isDirty&&co.visible&&(!co.isCartesian||co.xAxis)){co.redraw();
}});if(L&&L.reset){L.reset(true);}ci.draw();bv(ck,"redraw");if(cm){ck.cloneRenderTo(true);}I(ch,function(co){co.call();});},get:function(ce){var cc=this,cd=cc.axes,ca=cc.series;
var M,L,cb;for(M=0;M<cd.length;M++){if(cd[M].options.id===ce){return cd[M];}}for(M=0;M<ca.length;M++){if(ca[M].options.id===ce){return ca[M];}}for(M=0;M<ca.length;
M++){cb=ca[M].points||[];for(L=0;L<cb.length;L++){if(cb[L].id===ce){return cb[L];}}}return null;},getAxes:function(){var cc=this,ca=this.options,L=ca.xAxis=bh(ca.xAxis||{}),cd=ca.yAxis=bh(ca.yAxis||{}),M,cb;
I(L,function(cf,ce){cf.index=ce;cf.isX=true;});I(cd,function(cf,ce){cf.index=ce;});M=L.concat(cd);I(M,function(ce){cb=new C(cc,ce);});cc.adjustTickAmounts();},getSelectedPoints:function(){var L=[];
I(this.series,function(M){L=L.concat(bz(M.points||[],function(ca){return ca.selected;}));});return L;},getSelectedSeries:function(){return bz(this.series,function(L){return L.selected;
});},getStacks:function(){var L=this;I(L.yAxis,function(M){if(M.stacks&&M.hasVisibleSeries){M.oldStacks=M.stacks;}});I(L.series,function(M){if(M.options.stacking&&(M.visible===true||L.options.chart.ignoreHiddenSeries===false)){M.stackKey=M.type+aR(M.options.stack,"");
}});},showResetZoom:function(){var ca=this,cd=bA.lang,M=ca.options.chart.resetZoomButton,cc=M.theme,L=cc.states,cb=M.relativeTo==="chart"?null:"plotBox";this.resetZoomButton=ca.renderer.button(cd.resetZoom,null,null,function(){ca.zoomOut();
},cc,L&&L.hover).attr({align:M.position.align,title:cd.resetZoomTitle}).add().align(M.position,false,cb);},zoomOut:function(){var L=this;bv(L,"selection",{resetSelection:true},function(){L.zoom();
});},zoom:function(ca){var M=this,L,cd=M.pointer,cc=false,cb;if(!ca||ca.resetSelection){I(M.axes,function(ce){L=ce.zoom();});}else{I(ca.xAxis.concat(ca.yAxis),function(ce){var cf=ce.axis,cg=cf.isXAxis;
if(cd[cg?"zoomX":"zoomY"]||cd[cg?"pinchX":"pinchY"]){L=cf.zoom(ce.min,ce.max);if(cf.displayBtn){cc=true;}}});}cb=M.resetZoomButton;if(cc&&!cb){M.showResetZoom();
}else{if(!cc&&b5(cb)){M.resetZoomButton=cb.destroy();}}if(L){M.redraw(aR(M.options.chart.animation,ca&&ca.animation,M.pointCount<100));}},pan:function(cb,ca){var M=this,L=M.hoverPoints,cc;
if(L){I(L,function(cd){cd.setState();});}I(ca==="xy"?[1,0]:[1],function(ci){var cd=cb[ci?"chartX":"chartY"],ch=M[ci?"xAxis":"yAxis"][0],cf=M[ci?"mouseDownX":"mouseDownY"],ce=(ch.pointRange||0)/2,ck=ch.getExtremes(),cj=ch.toValue(cf-cd,true)+ce,cg=ch.toValue(cf+M[ci?"plotWidth":"plotHeight"]-cd,true)-ce;
if(ch.series.length&&cj>aq(ck.dataMin,ck.min)&&cg<b8(ck.dataMax,ck.max)){ch.setExtremes(cj,cg,false,false,{trigger:"pan"});cc=true;}M[ci?"mouseDownX":"mouseDownY"]=cd;
});if(cc){M.redraw(false);}b3(M.container,{cursor:"move"});},setTitle:function(cc,L){var cb=this,M=cb.options,ca,cd;ca=M.title=aQ(M.title,cc);cd=M.subtitle=aQ(M.subtitle,L);
I([["title",cc,ca],["subtitle",L,cd]],function(ce){var cf=ce[0],ci=cb[cf],ch=ce[1],cg=ce[2];if(ci&&ch){cb[cf]=ci=ci.destroy();}if(cg&&cg.text&&!ci){cb[cf]=cb.renderer.text(cg.text,0,0,cg.useHTML).attr({align:cg.align,"class":a8+cf,zIndex:cg.zIndex||4}).css(cg.style).add();
}});cb.layOutTitles();},layOutTitles:function(){var cc=0,ce=this.title,ca=this.subtitle,M=this.options,cb=M.title,L=M.subtitle,cd=this.spacingBox.width-44;if(ce){ce.css({width:(cb.width||cd)+Z}).align(bo({y:15},cb),false,"spacingBox");
if(!cb.floating&&!cb.verticalAlign){cc=ce.getBBox().height;if(cc>=18&&cc<=25){cc=15;}}}if(ca){ca.css({width:(L.width||cd)+Z}).align(bo({y:cc+cb.margin},L),false,"spacingBox");
if(!L.floating&&!L.verticalAlign){cc=aE(cc+ca.getBBox().height);}}this.titleOffset=cc;},getChartSize:function(){var L=this,ca=L.options.chart,M=L.renderToClone||L.renderTo;
L.containerWidth=aL(M,"width");L.containerHeight=aL(M,"height");L.chartWidth=b8(0,ca.width||L.containerWidth||600);L.chartHeight=b8(0,aR(ca.height,L.containerHeight>19?L.containerHeight:400));
},cloneRenderTo:function(M){var ca=this.renderToClone,L=this.container;if(M){if(ca){this.renderTo.appendChild(L);bR(ca);delete this.renderToClone;}}else{if(L&&L.parentNode===this.renderTo){this.renderTo.removeChild(L);
}this.renderToClone=ca=this.renderTo.cloneNode(0);b3(ca,{position:ar,top:"-9999px",display:"block"});bD.body.appendChild(ca);if(L){ca.appendChild(L);}}},getContainer:function(){var cf=this,L,ce=cf.options.chart,cd,M,cg,ca="data-highcharts-chart",cb,cc;
cf.renderTo=cg=ce.renderTo;cc=a8+bb++;if(bt(cg)){cf.renderTo=cg=bD.getElementById(cg);}if(!cg){bQ(13,true);}cb=bP(U(cg,ca));if(!isNaN(cb)&&aI[cb]){aI[cb].destroy();
}U(cg,ca,cf.index);cg.innerHTML="";if(!cg.offsetWidth){cf.cloneRenderTo();}cf.getChartSize();cd=cf.chartWidth;M=cf.chartHeight;cf.container=L=bq(P,{className:a8+"container"+(ce.className?" "+ce.className:""),id:cc},bo({position:O,overflow:al,width:cd+Z,height:M+Z,textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},ce.style),cf.renderToClone||cg);
cf._cursor=L.style.cursor;cf.renderer=ce.forExport?new d(L,cd,M,true):new bU(L,cd,M);if(a7){cf.renderer.create(cf,L,cd,M);}},getMargins:function(){var cd=this,ce=cd.spacing,cg,ch=cd.legend,ca=cd.margin,ci=cd.options.legend,M=aR(ci.margin,10),cf=ci.x,cc=ci.y,cb=ci.align,L=ci.verticalAlign,cj=cd.titleOffset;
cd.resetMargins();cg=cd.axisOffset;if(cj&&!aj(ca[0])){cd.plotTop=b8(cd.plotTop,cj+cd.options.title.margin+ce[0]);}if(ch.display&&!ci.floating){if(cb==="right"){if(!aj(ca[1])){cd.marginRight=b8(cd.marginRight,ch.legendWidth-cf+M+ce[1]);
}}else{if(cb==="left"){if(!aj(ca[3])){cd.plotLeft=b8(cd.plotLeft,ch.legendWidth+cf+M+ce[3]);}}else{if(L==="top"){if(!aj(ca[0])){cd.plotTop=b8(cd.plotTop,ch.legendHeight+cc+M+ce[0]);
}}else{if(L==="bottom"){if(!aj(ca[2])){cd.marginBottom=b8(cd.marginBottom,ch.legendHeight-cc+M+ce[2]);}}}}}}if(cd.extraBottomMargin){cd.marginBottom+=cd.extraBottomMargin;
}if(cd.extraTopMargin){cd.plotTop+=cd.extraTopMargin;}if(cd.hasCartesianSeries){I(cd.axes,function(ck){ck.getOffset();});}if(!aj(ca[3])){cd.plotLeft+=cg[3];}if(!aj(ca[0])){cd.plotTop+=cg[0];
}if(!aj(ca[2])){cd.marginBottom+=cg[2];}if(!aj(ca[1])){cd.marginRight+=cg[1];}cd.setChartSize();},reflow:function(cd){var cb=this,cf=cb.options.chart,ce=cb.renderTo,ca=cf.width||aL(ce,"width"),L=cf.height||aL(ce,"height"),cc=cd?cd.target:a3,M=function(){if(cb.container){cb.setSize(ca,L,false);
cb.hasUserSize=null;}};if(!cb.hasUserSize&&ca&&L&&(cc===a3||cc===bD)){if(ca!==cb.containerWidth||L!==cb.containerHeight){clearTimeout(cb.reflowTimeout);if(cd){cb.reflowTimeout=setTimeout(M,100);
}else{M();}}cb.containerWidth=ca;cb.containerHeight=L;}},initReflow:function(){var M=this,L=function(ca){M.reflow(ca);};z(a3,"resize",L);z(M,"destroy",function(){a5(a3,"resize",L);
});},setSize:function(cd,L,ce){var cc=this,cb,M,ca;cc.isResizing+=1;ca=function(){if(cc){bv(cc,"endResize",null,function(){cc.isResizing-=1;});}};b4(ce,cc);cc.oldChartHeight=cc.chartHeight;
cc.oldChartWidth=cc.chartWidth;if(aj(cd)){cc.chartWidth=cb=b8(0,p(cd));cc.hasUserSize=!!cb;}if(aj(L)){cc.chartHeight=M=b8(0,p(L));}(b9?t:b3)(cc.container,{width:cb+Z,height:M+Z},b9);
cc.setChartSize(true);cc.renderer.setSize(cb,M,ce);cc.maxTicks=null;I(cc.axes,function(cf){cf.isDirty=true;cf.setScale();});I(cc.series,function(cf){cf.isDirty=true;
});cc.isDirtyLegend=true;cc.isDirtyBox=true;cc.getMargins();cc.redraw(ce);cc.oldChartHeight=null;bv(cc,"resize");if(b9===false){ca();}else{setTimeout(ca,(b9&&b9.duration)||500);
}},setChartSize:function(cm){var ch=this,cd=ch.inverted,cg=ch.renderer,ce=ch.chartWidth,cc=ch.chartHeight,cf=ch.options.chart,cl=ch.spacing,cn=ch.clipOffset,cb,ca,M,ck,cj,ci,L;
ch.plotLeft=M=p(ch.plotLeft);ch.plotTop=ck=p(ch.plotTop);ch.plotWidth=cj=b8(0,p(ce-M-ch.marginRight));ch.plotHeight=ci=b8(0,p(cc-ck-ch.marginBottom));ch.plotSizeX=cd?ci:cj;
ch.plotSizeY=cd?cj:ci;ch.plotBorderWidth=cf.plotBorderWidth||0;ch.spacingBox=cg.spacingBox={x:cl[3],y:cl[0],width:ce-cl[3]-cl[1],height:cc-cl[0]-cl[2]};ch.plotBox=cg.plotBox={x:M,y:ck,width:cj,height:ci};
L=2*bp(ch.plotBorderWidth/2);cb=aE(b8(L,cn[3])/2);ca=aE(b8(L,cn[0])/2);ch.clipBox={x:cb,y:ca,width:bp(ch.plotSizeX-b8(L,cn[1])/2-cb),height:bp(ch.plotSizeY-b8(L,cn[2])/2-ca)};
if(!cm){I(ch.axes,function(co){co.setAxisSize();co.setAxisTranslation();});}},resetMargins:function(){var L=this,ca=L.spacing,M=L.margin;L.plotTop=aR(M[0],ca[0]);
L.marginRight=aR(M[1],ca[1]);L.marginBottom=aR(M[2],ca[2]);L.plotLeft=aR(M[3],ca[3]);L.axisOffset=[0,0,0,0];L.clipOffset=[0,0,0,0];},drawChartBox:function(){var ci=this,ca=ci.options.chart,cn=ci.renderer,cr=ci.chartWidth,cb=ci.chartHeight,cm=ci.chartBackground,cd=ci.plotBackground,cs=ci.plotBorder,ck=ci.plotBGImage,co=ca.borderWidth||0,cu=ca.backgroundColor,ce=ca.plotBackgroundColor,M=ca.plotBackgroundImage,ct=ca.plotBorderWidth||0,L,cf,cj=ci.plotLeft,cl=ci.plotTop,cc=ci.plotWidth,cq=ci.plotHeight,cg=ci.plotBox,cp=ci.clipRect,ch=ci.clipBox;
L=co+(ca.shadow?8:0);if(co||cu){if(!cm){cf={fill:cu||B};if(co){cf.stroke=ca.borderColor;cf["stroke-width"]=co;}ci.chartBackground=cn.rect(L/2,L/2,cr-L,cb-L,ca.borderRadius,co).attr(cf).add().shadow(ca.shadow);
}else{cm.animate(cm.crisp(null,null,null,cr-L,cb-L));}}if(ce){if(!cd){ci.plotBackground=cn.rect(cj,cl,cc,cq,0).attr({fill:ce}).add().shadow(ca.plotShadow);}else{cd.animate(cg);
}}if(M){if(!ck){ci.plotBGImage=cn.image(M,cj,cl,cc,cq).add();}else{ck.animate(cg);}}if(!cp){ci.clipRect=cn.clipRect(ch);}else{cp.animate({width:ch.width,height:ch.height});
}if(ct){if(!cs){ci.plotBorder=cn.rect(cj,cl,cc,cq,0,-ct).attr({stroke:ca.plotBorderColor,"stroke-width":ct,zIndex:1}).add();}else{cs.animate(cs.crisp(null,cj,cl,cc,cq));
}}ci.isDirtyBox=false;},propFromSeries:function(){var cb=this,cd=cb.options.chart,L,M=cb.options.series,ca,cc;I(["inverted","angular","polar"],function(ce){L=a[cd.type||cd.defaultSeriesType];
cc=(cb[ce]||cd[ce]||(L&&L.prototype[ce]));ca=M&&M.length;while(!cc&&ca--){L=a[M[ca].type];if(L&&L.prototype[ce]){cc=true;}}cb[ce]=cc;});},linkSeries:function(){var L=this,M=L.series;
I(M,function(ca){ca.linkedSeries.length=0;});I(M,function(cb){var ca=cb.options.linkedTo;if(bt(ca)){if(ca===":previous"){ca=L.series[cb.index-1];}else{ca=L.get(ca);
}if(ca){ca.linkedSeries.push(cb);cb.linkedParent=ca;}}});},render:function(){var ca=this,cc=ca.axes,cb=ca.renderer,L=ca.options;var ce=L.labels,M=L.credits,cd;ca.setTitle();
ca.legend=new by(ca,L.legend);ca.getStacks();I(cc,function(cf){cf.setScale();});ca.getMargins();ca.maxTicks=null;I(cc,function(cf){cf.setTickPositions(true);cf.setMaxTicks();
});ca.adjustTickAmounts();ca.getMargins();ca.drawChartBox();if(ca.hasCartesianSeries){I(cc,function(cf){cf.render();});}if(!ca.seriesGroup){ca.seriesGroup=cb.g("series-group").attr({zIndex:3}).add();
}I(ca.series,function(cf){cf.translate();cf.setTooltipPoints();cf.render();});if(ce.items){I(ce.items,function(cg){var ch=bo(ce.style,cg.style),cf=bP(ch.left)+ca.plotLeft,ci=bP(ch.top)+ca.plotTop+12;
delete ch.left;delete ch.top;cb.text(cg.html,cf,ci).attr({zIndex:2}).css(ch).add();});}if(M.enabled&&!ca.credits){cd=M.href;ca.credits=cb.text(M.text,0,0).on("click",function(){if(cd){location.href=cd;
}}).attr({align:M.position.align,zIndex:8}).css(M.style).add().align(M.position);}ca.hasRendered=true;},destroy:function(){var cc=this,cd=cc.axes,cb=cc.series,M=cc.container,ca,L=M&&M.parentNode;
bv(cc,"destroy");aI[cc.index]=m;cc.renderTo.removeAttribute("data-highcharts-chart");a5(cc);ca=cd.length;while(ca--){cd[ca]=cd[ca].destroy();}ca=cb.length;while(ca--){cb[ca]=cb[ca].destroy();
}I(["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","scroller","rangeSelector","legend","resetZoomButton","tooltip","renderer"],function(ce){var cf=cc[ce];
if(cf&&cf.destroy){cc[ce]=cf.destroy();}});if(M){M.innerHTML="";a5(M);if(L){bR(M);}}for(ca in cc){delete cc[ca];}},isReadyToRender:function(){var L=this;if((!bZ&&(a3==a3.top&&bD.readyState!=="complete"))||(a7&&!a3.canvg)){if(a7){a6.push(function(){L.firstRender();
},L.options.global.canvasToolsURL);}else{bD.attachEvent("onreadystatechange",function(){bD.detachEvent("onreadystatechange",L.firstRender);if(bD.readyState==="complete"){L.firstRender();
}});}return false;}return true;},firstRender:function(){var M=this,L=M.options,ca=M.callback;if(!M.isReadyToRender()){return;}M.getContainer();bv(M,"init");M.resetMargins();
M.setChartSize();M.propFromSeries();M.getAxes();I(L.series||[],function(cb){M.initSeries(cb);});M.linkSeries();bv(M,"beforeRender");M.pointer=new aP(M,L);M.render();
M.renderer.draw();if(ca){ca.apply(M,[M]);}I(M.callbacks,function(cb){cb.apply(M,[M]);});M.cloneRenderTo(true);bv(M,"load");},splashArray:function(cb,M){var ca=M[cb],L=b5(ca)?ca:[ca,ca,ca,ca];
return[aR(M[cb+"Top"],L[0]),aR(M[cb+"Right"],L[1]),aR(M[cb+"Bottom"],L[2]),aR(M[cb+"Left"],L[3])];}};bm.prototype.callbacks=[];var F=Highcharts.CenteredSeriesMixin={getCenter:function(){var ch=this.options,cb=this.chart,cg=2*(ch.slicedOffset||0),M,cd=cb.plotWidth-2*cg,ce=cb.plotHeight-2*cg,cf=ch.center,ca=[aR(cf[0],"50%"),aR(cf[1],"50%"),ch.size||"100%",ch.innerSize||0],cc=aq(cd,ce),L;
return am(ca,function(cj,ci){L=/%$/.test(cj);M=ci<2||(ci===2&&L);return(L?[cd,ce,cc,cc][ci]*bP(cj)/100:cj)+(M?cg:0);});}};var bB=function(){};bB.prototype={init:function(cc,cb,M){var L=this,ca;
L.series=cc;L.applyOptions(cb,M);L.pointAttr={};if(cc.options.colorByPoint){ca=cc.options.colors||cc.chart.options.colors;L.color=L.color||ca[cc.colorCounter++];
if(cc.colorCounter===ca.length){cc.colorCounter=0;}}cc.chart.pointCount++;return L;},applyOptions:function(ca,M){var L=this,cb=L.series,cc=cb.pointValKey;ca=bB.prototype.optionsToObject.call(this,ca);
bo(L,ca);L.options=L.options?bo(L.options,ca):ca;if(cc){L.y=L[cc];}if(L.x===m&&cb){L.x=M===m?cb.autoIncrement():M;}return L;},optionsToObject:function(cc){var cb={},ce=this.series,L=ce.pointArrayMap||["y"],M=L.length,cf,cd=0,ca=0;
if(typeof cc==="number"||cc===null){cb[L[0]]=cc;}else{if(aJ(cc)){if(cc.length>M){cf=typeof cc[0];if(cf==="string"){cb.name=cc[0];}else{if(cf==="number"){cb.x=cc[0];
}}cd++;}while(ca<M){cb[L[ca++]]=cc[cd++];}}else{if(typeof cc==="object"){cb=cc;if(cc.dataLabels){ce._hasPointLabels=true;}if(cc.marker){ce._hasPointMarkers=true;
}}}}return cb;},destroy:function(){var L=this,M=L.series,cb=M.chart,ca=cb.hoverPoints,cc;cb.pointCount--;if(ca){L.setState();S(ca,L);if(!ca.length){cb.hoverPoints=null;
}}if(L===cb.hoverPoint){L.onMouseOut();}if(L.graphic||L.dataLabel){a5(L);L.destroyElements();}if(L.legendItem){cb.legend.destroyItem(L);}for(cc in L){L[cc]=null;
}},destroyElements:function(){var L=this,ca=["graphic","dataLabel","dataLabelUpper","group","connector","shadowGroup"],cb,M=6;while(M--){cb=ca[M];if(L[cb]){L[cb]=L[cb].destroy();
}}},getLabelConfig:function(){var L=this;return{x:L.category,y:L.y,key:L.name||L.category,series:L.series,point:L,percentage:L.percentage,total:L.total||L.stackTotal};
},select:function(cc,M){var L=this,ca=L.series,cb=ca.chart;cc=aR(cc,!L.selected);L.firePointEvent(cc?"select":"unselect",{accumulate:M},function(){L.selected=L.options.selected=cc;
ca.options.data[A(L,ca.data)]=L.options;L.setState(cc&&bs);if(!M){I(cb.getSelectedPoints(),function(cd){if(cd.selected&&cd!==L){cd.selected=cd.options.selected=false;
ca.options.data[A(cd,ca.data)]=cd.options;cd.setState(ao);cd.firePointEvent("unselect");}});}});},onMouseOver:function(cd){var L=this,ca=L.series,cb=ca.chart,cc=cb.tooltip,M=cb.hoverPoint;
if(M&&M!==L){M.onMouseOut();}L.firePointEvent("mouseOver");if(cc&&(!cc.shared||ca.noSharedTooltip)){cc.refresh(L,cd);}L.setState(aS);cb.hoverPoint=L;},onMouseOut:function(){var M=this.series.chart,L=M.hoverPoints;
if(!L||A(this,L)===-1){this.firePointEvent("mouseOut");this.setState();M.hoverPoint=null;}},tooltipFormatter:function(L){var ca=this.series,M=ca.tooltipOptions,cc=aR(M.valueDecimals,""),cb=M.valuePrefix||"",cd=M.valueSuffix||"";
I(ca.pointArrayMap||["y"],function(ce){ce="{point."+ce;if(cb||cd){L=L.replace(ce+"}",cb+ce+"}"+cd);}L=L.replace(ce+"}",ce+":,."+cc+"f}");});return h(L,{point:this,series:this.series});
},firePointEvent:function(cd,cb,M){var L=this,cc=this.series,ca=cc.options;if(ca.point.events[cd]||(L.options&&L.options.events&&L.options.events[cd])){this.importEvents();
}if(cd==="click"&&ca.allowPointSelect){M=function(ce){L.select(null,ce.ctrlKey||ce.metaKey||ce.shiftKey);};}bv(this,cd,cb,M);},importEvents:function(){if(!this.hasImportedEvents){var L=this,M=aQ(L.series.options.point,L.options),cb=M.events,ca;
L.events=cb;for(ca in cb){z(L,ca,cb[ca]);}this.hasImportedEvents=true;}},setState:function(ca,cd){var cm=this,M=cm.plotX,co=cm.plotY,cg=cm.series,cn=cg.options.states,cb=an[cg.type].marker&&cg.options.marker,ce=cb&&!cb.enabled,cc=cb&&cb.states[ca],ci=cc&&cc.enabled===false,cl=cg.stateMarkerGraphic,cj=cm.marker||{},ck=cg.chart,ch,cf,L=cm.pointAttr;
ca=ca||ao;cd=cd&&cl;if((ca===cm.state&&!cd)||(cm.selected&&ca!==bs)||(cn[ca]&&cn[ca].enabled===false)||(ca&&(ci||(ce&&!cc.enabled)))||(ca&&cj.states&&cj.states[ca]&&cj.states[ca].enabled===false)){return;
}if(cm.graphic){ch=cb&&cm.graphic.symbolName&&L[ca].r;cm.graphic.attr(aQ(L[ca],ch?{x:M-ch,y:co-ch,width:2*ch,height:2*ch}:{}));}else{if(ca&&cc){ch=cc.radius;cf=cj.symbol||cg.symbol;
if(cl&&cl.currentSymbol!==cf){cl=cl.destroy();}if(!cl){cg.stateMarkerGraphic=cl=ck.renderer.symbol(cf,M-ch,co-ch,2*ch,2*ch).attr(L[ca]).add(cg.markerGroup);cl.currentSymbol=cf;
}else{cl[cd?"animate":"attr"]({x:M-ch,y:co-ch});}}if(cl){cl[ca&&ck.isInsidePlot(M,co,ck.inverted)?"show":"hide"]();}}cm.state=ca;}};var bd=function(){};bd.prototype={isCartesian:true,type:"line",pointClass:bB,sorted:true,requireSorting:true,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(cc,L){var cb=this,ca,M,cd=cc.series,ce=function(cg,cf){return aR(cg.options.index,cg._i)-aR(cf.options.index,cf._i);
};cb.chart=cc;cb.options=L=cb.setOptions(L);cb.linkedSeries=[];cb.bindAxes();bo(cb,{name:L.name,state:ao,pointAttr:{},visible:L.visible!==false,selected:L.selected===true});
if(a7){L.animation=false;}M=L.events;for(ca in M){z(cb,ca,M[ca]);}if((M&&M.click)||(L.point&&L.point.events&&L.point.events.click)||L.allowPointSelect){cc.runTrackerClick=true;
}cb.getColor();cb.getSymbol();I(cb.parallelArrays,function(cf){cb[cf+"Data"]=[];});cb.setData(L.data,false);if(cb.isCartesian){cc.hasCartesianSeries=true;}cd.push(cb);
cb._i=cd.length-1;aK(cd,ce);if(this.yAxis){aK(this.yAxis.series,ce);}I(cd,function(cg,cf){cg.index=cf;cg.name=cg.name||"Series "+(cf+1);});},bindAxes:function(){var M=this,L=M.options,ca=M.chart,cb;
I(M.axisTypes||[],function(cc){I(ca[cc],function(cd){cb=cd.options;if((L[cc]===cb.index)||(L[cc]!==m&&L[cc]===cb.id)||(L[cc]===m&&cb.index===0)){cd.series.push(M);
M[cc]=cd;cd.isDirty=true;}});if(!M[cc]&&M.optionalAxis!==cc){bQ(18,true);}});},updateParallelArrays:function(L,cb){var ca=L.series,M=arguments,cc=typeof cb==="number"?function(cd){var ce=cd==="y"&&ca.toYData?ca.toYData(L):L[cd];
ca[cd+"Data"][cb]=ce;}:function(cd){Array.prototype[cb].apply(ca[cd+"Data"],Array.prototype.slice.call(M,2));};I(ca.parallelArrays,cc);},autoIncrement:function(){var M=this,L=M.options,ca=M.xIncrement;
ca=aR(ca,L.pointStart,0);M.pointInterval=aR(M.pointInterval,L.pointInterval,1);M.xIncrement=ca+M.pointInterval;return ca;},getSegments:function(){var cb=this,L=-1,M=[],ca,cd=cb.points,cc=cd.length;
if(cc){if(cb.options.connectNulls){ca=cc;while(ca--){if(cd[ca].y===null){cd.splice(ca,1);}}if(cd.length){M=[cd];}}else{I(cd,function(ce,cf){if(ce.y===null){if(cf>L+1){M.push(cd.slice(L+1,cf));
}L=cf;}else{if(cf===cc-1){M.push(cd.slice(L+1,cf+1));}}});}}cb.segments=M;},setOptions:function(cb){var ca=this.chart,ce=ca.options,L=ce.plotOptions,cf=ca.userOptions||{},cd=cf.plotOptions||{},cc=L[this.type],M;
this.userOptions=cb;M=aQ(cc,L.series,cb);this.tooltipOptions=aQ(bA.tooltip,bA.plotOptions[this.type].tooltip,cf.tooltip,cd.series&&cd.series.tooltip,cd[this.type]&&cd[this.type].tooltip,cb.tooltip);
if(cc.marker===null){delete M.marker;}return M;},getColor:function(){var M=this.options,cc=this.userOptions,cb=this.chart.options.colors,ca=this.chart.counters,L,cd;
L=M.color||an[this.type].color;if(!L&&!M.colorByPoint){if(aj(cc._colorIndex)){cd=cc._colorIndex;}else{cc._colorIndex=ca.color;cd=ca.color++;}L=cb[cd];}this.color=L;
ca.wrapColor(cb.length);},getSymbol:function(){var ca=this,ce=ca.userOptions,cd=ca.options.marker,cc=ca.chart,L=cc.options.symbols,cb=cc.counters,M;ca.symbol=cd.symbol;
if(!ca.symbol){if(aj(ce._symbolIndex)){M=ce._symbolIndex;}else{ce._symbolIndex=cb.symbol;M=cb.symbol++;}ca.symbol=L[M];}if(/^url/.test(ca.symbol)){cd.radius=0;}cb.wrapSymbol(L.length);
},drawLegendSymbol:G.drawLineMarker,setData:function(cq,ck){var cf=this,cp=cf.points,M=cf.options,ch=cf.chart,cg=null,cd=cf.xAxis,cm=cd&&!!cd.categories,cl;cf.xIncrement=null;
cf.pointRange=cm?1:M.pointRange;cf.colorCounter=0;cq=cq||[];var cc=cq.length,L=M.turboThreshold,cj,cb=this.xData,co=this.yData,ci=cf.pointArrayMap,ca=ci&&ci.length;
I(this.parallelArrays,function(cr){cf[cr+"Data"].length=0;});if(L&&cc>L){cl=0;while(cg===null&&cl<cc){cg=cq[cl];cl++;}if(aw(cg)){var ce=aR(M.pointStart,0),cn=aR(M.pointInterval,1);
for(cl=0;cl<cc;cl++){cb[cl]=ce;co[cl]=cq[cl];ce+=cn;}cf.xIncrement=ce;}else{if(aJ(cg)){if(ca){for(cl=0;cl<cc;cl++){cj=cq[cl];cb[cl]=cj[0];co[cl]=cj.slice(1,ca+1);
}}else{for(cl=0;cl<cc;cl++){cj=cq[cl];cb[cl]=cj[0];co[cl]=cj[1];}}}else{bQ(12);}}}else{for(cl=0;cl<cc;cl++){if(cq[cl]!==m){cj={series:cf};cf.pointClass.prototype.applyOptions.apply(cj,[cq[cl]]);
cf.updateParallelArrays(cj,cl);if(cm&&cj.name){cd.names[cj.x]=cj.name;}}}}if(bt(co[0])){bQ(14,true);}cf.data=[];cf.options.data=cq;cl=(cp&&cp.length)||0;while(cl--){if(cp[cl]&&cp[cl].destroy){cp[cl].destroy();
}}if(cd){cd.minRange=cd.userMinRange;}cf.isDirty=cf.isDirtyData=ch.isDirtyBox=true;if(aR(ck,true)){ch.redraw(false);}},processData:function(M){var cg=this,cn=cg.xData,cl=cg.yData,cb=cn.length,ch,cm=0,ci,L,ck,ca=cg.xAxis,cf,co=cg.options,cd=co.cropThreshold,cc=cg.isCartesian;
if(cc&&!cg.isDirty&&!ca.isDirty&&!cg.yAxis.isDirty&&!M){return false;}if(cc&&cg.sorted&&(!cd||cb>cd||cg.forceCrop)){var ce=ca.min,cj=ca.max;if(cn[cb-1]<ce||cn[0]>cj){cn=[];
cl=[];}else{if(cn[0]<ce||cn[cb-1]>cj){ch=this.cropData(cg.xData,cg.yData,ce,cj);cn=ch.xData;cl=ch.yData;cm=ch.start;ci=true;}}}for(cf=cn.length-1;cf>=0;cf--){L=cn[cf]-cn[cf-1];
if(L>0&&(ck===m||L<ck)){ck=L;}else{if(L<0&&cg.requireSorting){bQ(15);}}}cg.cropped=ci;cg.cropStart=cm;cg.processedXData=cn;cg.processedYData=cl;if(co.pointRange===null){cg.pointRange=ck||1;
}cg.closestPointRange=ck;},cropData:function(cb,ca,cc,ce){var L=cb.length,cf=0,M=L,cg=aR(this.cropShoulder,1),cd;for(cd=0;cd<L;cd++){if(cb[cd]>=cc){cf=b8(0,cd-cg);
break;}}for(;cd<L;cd++){if(cb[cd]>ce){M=cd+cg;break;}}return{xData:cb.slice(cf,M),yData:ca.slice(cf,M),start:cf,end:M};},generatePoints:function(){var cc=this,cn=cc.options,cm=cn.data,cb=cc.data,L,cj=cc.processedXData,cf=cc.processedYData,ce=cc.pointClass,M=cj.length,ci=cc.cropStart||0,cl,ch=cc.hasGroupedData,cg,ck=[],ca;
if(!cb&&!ch){var cd=[];cd.length=cm.length;cb=cc.data=cd;}for(ca=0;ca<M;ca++){cl=ci+ca;if(!ch){if(cb[cl]){cg=cb[cl];}else{if(cm[cl]!==m){cb[cl]=cg=(new ce()).init(cc,cm[cl],cj[ca]);
}}ck[ca]=cg;}else{ck[ca]=(new ce()).init(cc,[cj[ca]].concat(bh(cf[ca])));}}if(cb&&(M!==(L=cb.length)||ch)){for(ca=0;ca<L;ca++){if(ca===ci&&!ch){ca+=M;}if(cb[ca]){cb[ca].destroyElements();
cb[ca].plotX=m;}}}cc.data=cb;cc.points=ck;},setStackedPoints:function(){if(!this.options.stacking||(this.visible!==true&&this.chart.options.chart.ignoreHiddenSeries!==false)){return;
}var cj=this,cd=cj.processedXData,cp=cj.processedYData,cr=[],co=cp.length,cf=cj.options,cb=cf.threshold,cl=cf.stack,ca=cf.stacking,M=cj.stackKey,ci="-"+M,ct=cj.negStacks,L=cj.yAxis,cq=L.stacks,cm=L.oldStacks,ck,ce,cc,cs,cn,ch,cg;
for(cn=0;cn<co;cn++){ch=cd[cn];cg=cp[cn];ck=ct&&cg<cb;cs=ck?ci:M;if(!cq[cs]){cq[cs]={};}if(!cq[cs][ch]){if(cm[cs]&&cm[cs][ch]){cq[cs][ch]=cm[cs][ch];cq[cs][ch].total=null;
}else{cq[cs][ch]=new az(L,L.options.stackLabels,ck,ch,cl,ca);}}ce=cq[cs][ch];ce.points[cj.index]=[ce.cum||0];if(ca==="percent"){cc=ck?M:ci;if(ct&&cq[cc]&&cq[cc][ch]){cc=cq[cc][ch];
ce.total=cc.total=b8(cc.total,ce.total)+g(cg)||0;}else{ce.total+=g(cg)||0;}}else{ce.total+=cg||0;}ce.cum=(ce.cum||0)+(cg||0);ce.points[cj.index].push(ce.cum);cr[cn]=ce.cum;
}if(ca==="percent"){L.usePercentage=true;}this.stackedYData=cr;L.oldStacks={};},setPercentStacks:function(){var M=this,L=M.stackKey,ca=M.yAxis.stacks;I([L,"-"+L],function(ce){var cd=M.xData.length,cc,cb,cf,cg;
while(cd--){cc=M.xData[cd];cb=ca[ce]&&ca[ce][cc];cf=cb&&cb.points[M.index];if(cf){cg=cb.total?100/cb.total:0;cf[0]=ah(cf[0]*cg);cf[1]=ah(cf[1]*cg);M.stackedYData[cd]=cf[1];
}}});},getExtremes:function(ck){var cc=this.xAxis,L=this.yAxis,M=this.processedXData,cj,cb=[],cf=0,ca=cc.getExtremes(),cl=ca.min,cn=ca.max,ci,co,cm,cp,ce,cd,ch,cg;
ck=ck||this.stackedYData||this.processedYData;cj=ck.length;for(ch=0;ch<cj;ch++){ce=M[ch];cd=ck[ch];ci=cd!==null&&cd!==m&&(!L.isLog||(cd.length||cd>0));co=this.getExtremesFromAll||this.cropped||((M[ch+1]||ce)>=cl&&(M[ch-1]||ce)<=cn);
if(ci&&co){cg=cd.length;if(cg){while(cg--){if(cd[cg]!==null){cb[cf++]=cd[cg];}}}else{cb[cf++]=cd;}}}this.dataMin=aR(cm,bF(cb));this.dataMax=aR(cp,aM(cb));},translate:function(){if(!this.processedXData){this.processData();
}this.generatePoints();var ch=this,cc=ch.options,ca=cc.stacking,cg=ch.xAxis,ci=cg.categories,M=ch.yAxis,cm=ch.points,cf=cm.length,cr=!!ch.modifyValue,cn,cj=cc.pointPlacement,co=cj==="between"||aw(cj),cd=cc.threshold;
for(cn=0;cn<cf;cn++){var ck=cm[cn],cl=ck.x,cp=ck.y,L=ck.low,ce=ca&&M.stacks[(ch.negStacks&&cp<cd?"-":"")+ch.stackKey],cq,cb;if(M.isLog&&cp<=0){ck.y=cp=null;}ck.plotX=cg.translate(cl,0,0,0,1,cj,this.type==="flags");
if(ca&&ch.visible&&ce&&ce[cl]){cq=ce[cl];cb=cq.points[ch.index];L=cb[0];cp=cb[1];if(L===0){L=aR(cd,M.min);}if(M.isLog&&L<=0){L=null;}ck.total=ck.stackTotal=cq.total;
ck.percentage=ca==="percent"&&(ck.y/cq.total*100);ck.stackY=cp;cq.setOffset(ch.pointXOffset||0,ch.barW||0);}ck.yBottom=aj(L)?M.translate(L,0,1,0,1):null;if(cr){cp=ch.modifyValue(cp,ck);
}ck.plotY=(typeof cp==="number"&&cp!==Infinity)?M.translate(cp,0,1,0,1):m;ck.clientX=co?cg.translate(cl,0,0,0,1):ck.plotX;ck.negative=ck.y<(cd||0);ck.category=ci&&ci[ck.x]!==m?ci[ck.x]:ck.x;
}ch.getSegments();},setTooltipPoints:function(cc){var ce=this,cl=[],cj,ch,cb,ca=ce.xAxis,cg=ca&&ca.getExtremes(),cf=ca?(ca.tooltipLen||ca.len):ce.chart.plotSizeX,ck,L,ci,cd,M=[];
if(ce.options.enableMouseTracking===false){return;}if(cc){ce.tooltipPoints=null;}I(ce.segments||ce.points,function(cm){cl=cl.concat(cm);});if(ca&&ca.reversed){cl=cl.reverse();
}if(ce.orderTooltipPoints){ce.orderTooltipPoints(cl);}cj=cl.length;for(cd=0;cd<cj;cd++){ck=cl[cd];L=ck.x;if(L>=cg.min&&L<=cg.max){ci=cl[cd+1];ch=cb===m?0:cb+1;cb=cl[cd+1]?aq(b8(0,bp((ck.clientX+(ci?(ci.wrappedClientX||ci.clientX):cf))/2)),cf):cf;
while(ch>=0&&ch<=cb){M[ch++]=ck;}}}ce.tooltipPoints=M;},tooltipHeaderFormatter:function(ch){var cd=this,ca=cd.tooltipOptions,ce=ca.dateTimeLabelFormats,cc=ca.xDateFormat||ce.year,L=cd.xAxis,cg=L&&L.options.type==="datetime",cb=ca.headerFormat,cf=L&&L.closestPointRange,M;
if(cg&&!cc){if(cf){for(M in a4){if(a4[M]>=cf){cc=ce[M];break;}}}else{cc=ce.day;}}if(cg&&cc&&aw(ch.key)){cb=cb.replace("{point.key}","{point.key:"+cc+"}");}return h(cb,{point:ch,series:cd});
},onMouseOver:function(){var M=this,ca=M.chart,L=ca.hoverSeries;if(L&&L!==M){L.onMouseOut();}if(M.options.events.mouseOver){bv(M,"mouseOver");}M.setState(aS);ca.hoverSeries=M;
},onMouseOut:function(){var ca=this,M=ca.options,cb=ca.chart,cc=cb.tooltip,L=cb.hoverPoint;if(L){L.onMouseOut();}if(ca&&M.events.mouseOut){bv(ca,"mouseOut");}if(cc&&!M.stickyTracking&&(!cc.shared||ca.noSharedTooltip)){cc.hide();
}ca.setState();cb.hoverSeries=null;},animate:function(ch){var ce=this,cg=ce.chart,cf=cg.renderer,cd,cc,cb=ce.options.animation,L=cg.clipBox,ca=cg.inverted,M;if(cb&&!b5(cb)){cb=an[ce.type].animation;
}M="_sharedClip"+cb.duration+cb.easing;if(ch){cd=cg[M];cc=cg[M+"m"];if(!cd){cg[M]=cd=cf.clipRect(bo(L,{width:0}));cg[M+"m"]=cc=cf.clipRect(-99,ca?-cg.plotLeft:-cg.plotTop,99,ca?cg.chartWidth:cg.chartHeight);
}ce.group.clip(cd);ce.markerGroup.clip(cc);ce.sharedClipKey=M;}else{cd=cg[M];if(cd){cd.animate({width:cg.plotSizeX},cb);cg[M+"m"].animate({width:cg.plotSizeX+99},cb);
}ce.animate=null;ce.animationTimeout=setTimeout(function(){ce.afterAnimate();},cb.duration);}},afterAnimate:function(){var L=this.chart,ca=this.sharedClipKey,M=this.group;
if(M&&this.options.clip!==false){M.clip(L.clipRect);this.markerGroup.clip();}setTimeout(function(){if(ca&&L[ca]){L[ca]=L[ca].destroy();L[ca+"m"]=L[ca+"m"].destroy();
}},100);},drawPoints:function(){var ce=this,cg,cn=ce.points,ci=ce.chart,cb,L,co,ck,ca,cl,cm,ch,M=ce.options,cq=M.marker,cp=ce.pointAttr[""],cj,cd,cc,cf=ce.markerGroup;
if(cq.enabled||ce._hasPointMarkers){co=cn.length;while(co--){ck=cn[co];cb=bp(ck.plotX);L=ck.plotY;ch=ck.graphic;cj=ck.marker||{};cd=(cq.enabled&&cj.enabled===m)||cj.enabled;
cc=ci.isInsidePlot(p(cb),L,ci.inverted);if(cd&&L!==m&&!isNaN(L)&&ck.y!==null){cg=ck.pointAttr[ck.selected?bs:ao]||cp;ca=cg.r;cl=aR(cj.symbol,ce.symbol);cm=cl.indexOf("url")===0;
if(ch){ch.attr({visibility:cc?(bZ?"inherit":ap):al}).animate(bo({x:cb-ca,y:L-ca},ch.symbolName?{width:2*ca,height:2*ca}:{}));}else{if(cc&&(ca>0||cm)){ck.graphic=ch=ci.renderer.symbol(cl,cb-ca,L-ca,2*ca,2*ca).attr(cg).add(cf);
}}}else{if(ch){ck.graphic=ch.destroy();}}}}},convertAttribs:function(ca,M,cf,ce){var cc=this.pointAttrToOptions,L,cb,cd={};ca=ca||{};M=M||{};cf=cf||{};ce=ce||{};
for(L in cc){cb=cc[L];cd[L]=aR(ca[cb],M[L],cf[L],ce[L]);}return cd;},getAttribs:function(){var ce=this,cd=ce.options,cc=an[ce.type].marker?cd.marker:cd,L=cc.states,cg=L[aS],cp,ca=ce.color,co={stroke:ca,fill:ca},cj=ce.points||[],ck,ch,cl=[],cf,ci=ce.pointAttrToOptions,cn,M=cd.turboThreshold,cm=cd.negativeColor,cb=cc.lineColor,cq;
if(cd.marker){cg.radius=cg.radius||cc.radius+2;cg.lineWidth=cg.lineWidth||cc.lineWidth+1;}else{cg.color=cg.color||bN(cg.color||ca).brighten(cg.brightness).get();
}cl[ao]=ce.convertAttribs(cc,co);I([aS,bs],function(cr){cl[cr]=ce.convertAttribs(L[cr],cl[ao]);});ce.pointAttr=cl;ck=cj.length;if(!M||ck<M){while(ck--){ch=cj[ck];
cc=(ch.options&&ch.options.marker)||ch.options;if(cc&&cc.enabled===false){cc.radius=0;}if(ch.negative&&cm){ch.color=ch.fillColor=cm;}cn=cd.colorByPoint||ch.color;
if(ch.options){for(cq in ci){if(aj(cc[ci[cq]])){cn=true;}}}if(cn){cc=cc||{};cf=[];L=cc.states||{};cp=L[aS]=L[aS]||{};if(!cd.marker){cp.color=cp.color||cg.color||bN(ch.color).brighten(cp.brightness||cg.brightness).get();
}cf[ao]=ce.convertAttribs(bo({color:ch.color,fillColor:ch.color,lineColor:cb===null?ch.color:m},cc),cl[ao]);cf[aS]=ce.convertAttribs(L[aS],cl[aS],cf[ao]);cf[bs]=ce.convertAttribs(L[bs],cl[bs],cf[ao]);
}else{cf=cl;}ch.pointAttr=cf;}}},destroy:function(){var cb=this,cd=cb.chart,cg=/AppleWebKit\/533/.test(u),ce,cc,ca=cb.data||[],cf,L,M;bv(cb,"destroy");a5(cb);I(cb.axisTypes||[],function(ch){M=cb[ch];
if(M){S(M.series,cb);M.isDirty=M.forceRedraw=true;}});if(cb.legendItem){cb.chart.legend.destroyItem(cb);}cc=ca.length;while(cc--){cf=ca[cc];if(cf&&cf.destroy){cf.destroy();
}}cb.points=null;clearTimeout(cb.animationTimeout);I(["area","graph","dataLabelsGroup","group","markerGroup","tracker","graphNeg","areaNeg","posClip","negClip"],function(ch){if(cb[ch]){ce=cg&&ch==="group"?"hide":"destroy";
cb[ch][ce]();}});if(cd.hoverSeries===cb){cd.hoverSeries=null;}S(cd.series,cb);for(L in cb){delete cb[L];}},getSegmentPath:function(cb){var M=this,L=[],ca=M.options.step;
I(cb,function(cc,cf){var ce=cc.plotX,cd=cc.plotY,cg;if(M.getPointSpline){L.push.apply(L,M.getPointSpline(cb,cc,cf));}else{L.push(cf?bx:bw);if(ca&&cf){cg=cb[cf-1];
if(ca==="right"){L.push(cg.plotX,cd);}else{if(ca==="center"){L.push((cg.plotX+ce)/2,cg.plotY,(cg.plotX+ce)/2,cd);}else{L.push(ce,cg.plotY);}}}L.push(cc.plotX,cc.plotY);
}});return L;},getGraphPath:function(){var ca=this,cb=[],L,M=[];I(ca.segments,function(cc){L=ca.getSegmentPath(cc);if(cc.length>1){cb=cb.concat(L);}else{M.push(cc[0]);
}});ca.singlePoints=M;ca.graphPath=cb;return cb;},drawGraph:function(){var ca=this,M=this.options,cb=[["graph",M.lineColor||this.color]],L=M.lineWidth,cd=M.dashStyle,cf=M.linecap!=="square",ce=this.getGraphPath(),cc=M.negativeColor;
if(cc){cb.push(["graphNeg",cc]);}I(cb,function(ck,cg){var cj=ck[0],ch=ca[cj],ci;if(ch){aZ(ch);ch.animate({d:ce});}else{if(L&&ce.length){ci={stroke:ck[1],"stroke-width":L,zIndex:1};
if(cd){ci.dashstyle=cd;}else{if(cf){ci["stroke-linecap"]=ci["stroke-linejoin"]="round";}}ca[cj]=ca.chart.renderer.path(ce).attr(ci).add(ca.group).shadow(!cg&&M.shadow);
}}});},clipNeg:function(){var co=this.options,ch=this.chart,cg=ch.renderer,cd=co.negativeColor||co.negativeFillColor,cm,ck,cf,cn=this.graph,M=this.area,cc=this.posClip,ca=this.negClip,ce=ch.chartWidth,cb=ch.chartHeight,cj=b8(ce,cb),L=this.yAxis,ci,cl;
if(cd&&(cn||M)){cm=p(L.toPixels(co.threshold||0,true));if(cm<0){cj-=cm;}ci={x:0,y:0,width:cj,height:cm};cl={x:0,y:cm,width:cj,height:cj};if(ch.inverted){ci.height=cl.y=ch.plotWidth-cm;
if(cg.isVML){ci={x:ch.plotWidth-cm-ch.plotLeft,y:0,width:ce,height:cb};cl={x:cm+ch.plotLeft-ce,y:0,width:ch.plotLeft+cm,height:ce};}}if(L.reversed){ck=cl;cf=ci;}else{ck=ci;
cf=cl;}if(cc){cc.animate(ck);ca.animate(cf);}else{this.posClip=cc=cg.clipRect(ck);this.negClip=ca=cg.clipRect(cf);if(cn&&this.graphNeg){cn.clip(cc);this.graphNeg.clip(ca);
}if(M){M.clip(cc);this.areaNeg.clip(ca);}}}},invertGroups:function(){var L=this,M=L.chart;if(!L.xAxis){return;}function ca(){var cb={width:L.yAxis.len,height:L.xAxis.len};
I(["group","markerGroup"],function(cc){if(L[cc]){L[cc].attr(cb).invert();}});}z(M,"resize",ca);z(L,"destroy",function(){a5(M,"resize",ca);});ca();L.invertGroups=ca;
},plotGroup:function(ce,ca,M,cd,cb){var cc=this[ce],L=!cc;if(L){this[ce]=cc=this.chart.renderer.g(ca).attr({visibility:M,zIndex:cd||0.1}).add(cb);}cc[L?"attr":"animate"](this.getPlotBox());
return cc;},getPlotBox:function(){return{translateX:this.xAxis?this.xAxis.left:this.chart.plotLeft,translateY:this.yAxis?this.yAxis.top:this.chart.plotTop,scaleX:1,scaleY:1};
},render:function(){var ca=this,cc=ca.chart,cf,ch=ca.options,M=ch.animation,cg=M&&!!ca.animate&&cc.renderer.isSVG,L=ca.visible?ap:al,cd=ch.zIndex,cb=ca.hasRendered,ce=cc.seriesGroup;
cf=ca.plotGroup("group","series",L,cd,ce);ca.markerGroup=ca.plotGroup("markerGroup","markers",L,cd,ce);if(cg){ca.animate(true);}ca.getAttribs();cf.inverted=ca.isCartesian?cc.inverted:false;
if(ca.drawGraph){ca.drawGraph();ca.clipNeg();}if(ca.drawDataLabels){ca.drawDataLabels();}if(ca.visible){ca.drawPoints();}if(ca.options.enableMouseTracking!==false){ca.drawTracker();
}if(cc.inverted){ca.invertGroups();}if(ch.clip!==false&&!ca.sharedClipKey&&!cb){cf.clip(cc.clipRect);}if(cg){ca.animate();}else{if(!cb){ca.afterAnimate();}}ca.isDirty=ca.isDirtyData=false;
ca.hasRendered=true;},redraw:function(){var ca=this,cb=ca.chart,L=ca.isDirtyData,cd=ca.group,cc=ca.xAxis,M=ca.yAxis;if(cd){if(cb.inverted){cd.attr({width:cb.plotWidth,height:cb.plotHeight});
}cd.animate({translateX:aR(cc&&cc.left,cb.plotLeft),translateY:aR(M&&M.top,cb.plotTop)});}ca.translate();ca.setTooltipPoints(true);ca.render();if(L){bv(ca,"updatedData");
}},setState:function(cd){var ca=this,M=ca.options,cc=ca.graph,cb=ca.graphNeg,ce=M.states,L=M.lineWidth,cf;cd=cd||ao;if(ca.state!==cd){ca.state=cd;if(ce[cd]&&ce[cd].enabled===false){return;
}if(cd){L=ce[cd].lineWidth||L+1;}if(cc&&!cc.dashstyle){cf={"stroke-width":L};cc.attr(cf);if(cb){cb.attr(cf);}}}},setVisible:function(cd,cf){var cb=this,cc=cb.chart,M=cb.legendItem,L,ce=cc.options.chart.ignoreHiddenSeries,ca=cb.visible;
cb.visible=cd=cb.userOptions.visible=cd===m?!ca:cd;L=cd?"show":"hide";I(["group","dataLabelsGroup","markerGroup","tracker"],function(cg){if(cb[cg]){cb[cg][L]();}});
if(cc.hoverSeries===cb){cb.onMouseOut();}if(M){cc.legend.colorizeItem(cb,cd);}cb.isDirty=true;if(cb.options.stacking){I(cc.series,function(cg){if(cg.options.stacking&&cg.visible){cg.isDirty=true;
}});}I(cb.linkedSeries,function(cg){cg.setVisible(cd,false);});if(ce){cc.isDirtyBox=true;}if(cf!==false){cc.redraw();}bv(cb,L);},show:function(){this.setVisible(true);
},hide:function(){this.setVisible(false);},select:function(M){var L=this;L.selected=M=(M===m)?!L.selected:M;if(L.checkbox){L.checkbox.checked=M;}bv(L,M?"select":"unselect");
},drawTracker:aO.drawTrackerGraph};bo(bm.prototype,{addSeries:function(L,cc,cb){var M,ca=this;if(L){cc=aR(cc,true);bv(ca,"addSeries",{options:L},function(){M=ca.initSeries(L);
ca.isDirtyLegend=true;ca.linkSeries();if(cc){ca.redraw(cb);}});}return M;},addAxis:function(L,cc,ce,cb){var M=cc?"xAxis":"yAxis",cd=this.options,ca;ca=new C(this,aQ(L,{index:this[M].length,isX:cc}));
cd[M]=bh(cd[M]||{});cd[M].push(L);if(aR(ce,true)){this.redraw(cb);}},showLoading:function(cc){var ca=this,L=ca.options,cb=ca.loadingDiv;var M=L.loading;if(!cb){ca.loadingDiv=cb=bq(P,{className:a8+"loading"},bo(M.style,{zIndex:10,display:B}),ca.container);
ca.loadingSpan=bq("span",null,M.labelStyle,cb);}ca.loadingSpan.innerHTML=cc||L.lang.loading;if(!ca.loadingShown){b3(cb,{opacity:0,display:"",left:ca.plotLeft+Z,top:ca.plotTop+Z,width:ca.plotWidth+Z,height:ca.plotHeight+Z});
t(cb,{opacity:M.style.opacity},{duration:M.showDuration||0});ca.loadingShown=true;}},hideLoading:function(){var L=this.options,M=this.loadingDiv;if(M){t(M,{opacity:0},{duration:L.loading.hideDuration||100,complete:function(){b3(M,{display:B});
}});}this.loadingShown=false;}});bo(bB.prototype,{update:function(ch,cg,ca){var cf=this,cc=cf.series,L=cf.graphic,cd,cb=cc.data,ce=cc.chart,M=cc.options;cg=aR(cg,true);
cf.firePointEvent("update",{options:ch},function(){cf.applyOptions(ch);if(b5(ch)){cc.getAttribs();if(L){if(ch&&ch.marker&&ch.marker.symbol){cf.graphic=L.destroy();
}else{L.attr(cf.pointAttr[cf.state||""]);}}if(ch&&ch.dataLabels&&cf.dataLabel){cf.dataLabel=cf.dataLabel.destroy();}}cd=A(cf,cb);cc.updateParallelArrays(cf,cd);M.data[cd]=cf.options;
cc.isDirty=cc.isDirtyData=true;if(!cc.fixedBox&&cc.hasCartesianSeries){ce.isDirtyBox=true;}if(M.legendType==="point"){ce.legend.destroyItem(cf);}if(cg){ce.redraw(ca);
}});},remove:function(cf,ce){var L=this,ca=L.series,cc=ca.points,cb=ca.chart,M,cd=ca.data;b4(ce,cb);cf=aR(cf,true);L.firePointEvent("remove",null,function(){M=A(L,cd);
if(cd.length===cc.length){cc.splice(M,1);}cd.splice(M,1);ca.options.data.splice(M,1);ca.updateParallelArrays(L,"splice",M,1);L.destroy();ca.isDirty=true;ca.isDirtyData=true;
if(cf){cb.redraw();}});}});bo(bd.prototype,{addPoint:function(M,cl,cm,cn){var ce=this,cb=ce.options,cp=ce.data,L=ce.graph,co=ce.area,ci=ce.chart,ch=ce.xAxis&&ce.xAxis.names,cg=(L&&L.shift)||0,cf=cb.data,cj,cc,ca=ce.xData,cd,ck;
b4(cn,ci);if(cm){I([L,co,ce.graphNeg,ce.areaNeg],function(cq){if(cq){cq.shift=cg+1;}});}if(co){co.isArea=true;}cl=aR(cl,true);cj={series:ce};ce.pointClass.prototype.applyOptions.apply(cj,[M]);
cd=cj.x;ck=ca.length;if(ce.requireSorting&&cd<ca[ck-1]){cc=true;while(ck&&ca[ck-1]>cd){ck--;}}ce.updateParallelArrays(cj,"splice",ck);ce.updateParallelArrays(cj,ck);
if(ch){ch[cd]=cj.name;}cf.splice(ck,0,M);if(cc){ce.data.splice(ck,0,null);ce.processData();}if(cb.legendType==="point"){ce.generatePoints();}if(cm){if(cp[0]&&cp[0].remove){cp[0].remove(false);
}else{cp.shift();ce.updateParallelArrays(cj,"shift");cf.shift();}}ce.isDirty=true;ce.isDirtyData=true;if(cl){ce.getAttribs();ci.redraw();}},remove:function(cb,ca){var L=this,M=L.chart;
cb=aR(cb,true);if(!L.isRemoving){L.isRemoving=true;bv(L,"remove",null,function(){L.destroy();M.isDirtyLegend=M.isDirtyBox=true;M.linkSeries();if(cb){M.redraw(ca);
}});}L.isRemoving=false;},update:function(cc,ce){var M=this.chart,L=this.userOptions,cb=this.type,ca=a[cb].prototype,cd;cc=aQ(L,{animation:false,index:this.index,pointStart:this.xData[0]},{data:this.options.data},cc);
this.remove(false);for(cd in ca){if(ca.hasOwnProperty(cd)){this[cd]=m;}}bo(this,a[cc.type||cb].prototype);this.init(M,cc);if(aR(ce,true)){M.redraw(false);}}});bo(C.prototype,{update:function(M,ca){var L=this.chart;
M=L.options[this.coll][this.options.index]=aQ(this.userOptions,M);this.destroy(true);this._addedPlotLB=this.userMin=this.userMax=m;this.init(L,bo(M,{events:m}));
L.isDirtyBox=true;if(aR(ca,true)){L.redraw();}},remove:function(ca){var M=this.chart,L=this.coll;I(this.series,function(cb){cb.remove(false);});S(M.axes,this);S(M[L],this);
M.options[L].splice(this.options.index,1);I(M[L],function(cc,cb){cc.options.index=cb;});this.destroy();M.isDirtyBox=true;if(aR(ca,true)){M.redraw();}},setTitle:function(L,M){this.update({title:L},M);
},setCategories:function(L,M){this.update({categories:L},M);}});var W=bl(bd);a.line=W;an.area=aQ(aU,{threshold:0});var aF=bl(bd,{type:"area",getSegments:function(){var ce=[],cf=[],ck=[],cb=this.xAxis,ca=this.yAxis,ch=ca.stacks[this.stackKey],cg={},M,cl,cj=this.points,L=this.options.connectNulls,cc,cd,ci;
if(this.options.stacking&&!this.cropped){for(cd=0;cd<cj.length;cd++){cg[cj[cd].x]=cj[cd];}for(ci in ch){if(ch[ci].total!==null){ck.push(+ci);}}ck.sort(function(cn,cm){return cn-cm;
});I(ck,function(cm){if(L&&(!cg[cm]||cg[cm].y===null)){return;}else{if(cg[cm]){cf.push(cg[cm]);}else{M=cb.translate(cm);cc=ch[cm].percent?(ch[cm].total?ch[cm].cum*100/ch[cm].total:0):ch[cm].cum;
cl=ca.toPixels(cc,true);cf.push({y:null,plotX:M,clientX:M,plotY:cl,yBottom:cl,onMouseOver:l});}}});if(cf.length){ce.push(cf);}}else{bd.prototype.getSegments.call(this);
ce=this.segments;}this.segments=ce;},getSegmentPath:function(cd){var M=bd.prototype.getSegmentPath.call(this,cd),cf=[].concat(M),cc,cb=this.options,ca=M.length,ce=this.yAxis.getThreshold(cb.threshold),L;
if(ca===3){cf.push(bx,M[1],M[2]);}if(cb.stacking&&!this.closedStacks){for(cc=cd.length-1;cc>=0;cc--){L=aR(cd[cc].yBottom,ce);if(cc<cd.length-1&&cb.step){cf.push(cd[cc+1].plotX,L);
}cf.push(cd[cc].plotX,L);}}else{this.closeSegment(cf,cd,ce);}this.areaPath=this.areaPath.concat(cf);return M;},closeSegment:function(M,L,ca){M.push(bx,L[L.length-1].plotX,ca,bx,L[0].plotX,ca);
},drawGraph:function(){this.areaPath=[];bd.prototype.drawGraph.apply(this);var ca=this,M=this.areaPath,L=this.options,cd=L.negativeColor,cc=L.negativeFillColor,cb=[["area",this.color,L.fillColor]];
if(cd||cc){cb.push(["areaNeg",cd,cc]);}I(cb,function(cg){var ce=cg[0],cf=ca[ce];if(cf){cf.animate({d:M});}else{ca[ce]=ca.chart.renderer.path(M).attr({fill:aR(cg[2],bN(cg[1]).setOpacity(aR(L.fillOpacity,0.75)).get()),zIndex:0}).add(ca.group);
}});},drawLegendSymbol:G.drawRectangle});a.area=aF;an.spline=aQ(aU);var b=bl(bd,{type:"spline",getPointSpline:function(M,cl,cm){var cj=1.5,L=cj+1,cc=cl.plotX,ca=cl.plotY,cb=M[cm-1],cn=M[cm+1],cg,cf,ci,ch,cq;
if(cb&&cn){var ce=cb.plotX,cd=cb.plotY,cp=cn.plotX,co=cn.plotY,ck;cg=(cj*cc+ce)/L;cf=(cj*ca+cd)/L;ci=(cj*cc+cp)/L;ch=(cj*ca+co)/L;ck=((ch-cf)*(ci-cc))/(ci-cg)+ca-ch;
cf+=ck;ch+=ck;if(cf>cd&&cf>ca){cf=b8(cd,ca);ch=2*ca-cf;}else{if(cf<cd&&cf<ca){cf=aq(cd,ca);ch=2*ca-cf;}}if(ch>co&&ch>ca){ch=b8(co,ca);cf=2*ca-ch;}else{if(ch<co&&ch<ca){ch=aq(co,ca);
cf=2*ca-ch;}}cl.rightContX=ci;cl.rightContY=ch;}if(!cm){cq=[bw,cc,ca];}else{cq=["C",cb.rightContX||cb.plotX,cb.rightContY||cb.plotY,cg||cc,cf||ca,cc,ca];cb.rightContX=cb.rightContY=null;
}return cq;}});a.spline=b;an.areaspline=aQ(an.area);var a2=aF.prototype,x=bl(b,{type:"areaspline",closedStacks:true,getSegmentPath:a2.getSegmentPath,closeSegment:a2.closeSegment,drawGraph:a2.drawGraph,drawLegendSymbol:G.drawRectangle});
a.areaspline=x;an.column=aQ(aU,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:0.1,shadow:false},select:{color:"#C0C0C0",borderColor:"#000000",shadow:false}},dataLabels:{align:null,verticalAlign:null,y:null},stickyTracking:false,threshold:0});
var k=bl(bd,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},cropShoulder:0,trackerGroups:["group","dataLabelsGroup"],negStacks:true,init:function(){bd.prototype.init.apply(this,arguments);
var L=this,M=L.chart;if(M.hasRendered){I(M.series,function(ca){if(ca.type===L.type){ca.isDirty=true;}});}},getColumnMetrics:function(){var cg=this,cb=cg.options,cf=cg.xAxis,L=cg.yAxis,M=cf.reversed,ca,cp={},cn,co=0;
if(cb.grouping===false){co=1;}else{I(cg.chart.series,function(cr){var cq=cr.options,cs=cr.yAxis;if(cr.type===cg.type&&cr.visible&&L.len===cs.len&&L.pos===cs.pos){if(cq.stacking){ca=cr.stackKey;
if(cp[ca]===m){cp[ca]=co++;}cn=cp[ca];}else{if(cq.grouping!==false){cn=co++;}}cr.columnIndex=cn;}});}var cc=aq(g(cf.transA)*(cf.ordinalSlope||cb.pointRange||cf.closestPointRange||1),cf.len),cl=cc*cb.groupPadding,ch=cc-2*cl,ck=ch/co,cj=cb.pointWidth,ce=aj(cj)?(ck-cj)/2:ck*cb.pointPadding,cd=aR(cj,ck-2*ce),ci=(M?co-(cg.columnIndex||0):cg.columnIndex)||0,cm=ce+(cl+ci*ck-(cc/2))*(M?-1:1);
return(cg.columnMetrics={width:cd,offset:cm});},translate:function(){var ce=this,ch=ce.chart,cl=ce.options,L=cl.borderWidth,M=ce.yAxis,cg=cl.threshold,ck=ce.translatedThreshold=M.getThreshold(cg),ca=aR(cl.minPointLength,5),ci=ce.getColumnMetrics(),cd=ci.width,cj=ce.barW=aE(b8(cd,1+2*L)),cc=ce.pointXOffset=ci.offset,cb=-(L%2?0.5:0),cf=L%2?0.5:1;
if(ch.renderer.isVML&&ch.inverted){cf+=1;}bd.prototype.translate.apply(ce);I(ce.points,function(cs){var cp=aR(cs.yBottom,ck),cw=aq(b8(-999-cp,cs.plotY),M.len+999+cp),cm=cs.plotX+cc,co=cj,cv=aq(cw,cp),ct,cn,cu,cr,cq=b8(cw,cp)-cv;
if(g(cq)<ca){if(ca){cq=ca;cv=p(g(cv-ck)>ca?cp-ca:ck-(M.translate(cs.y,0,1,0,1)<=ck?ca:0));}}cs.barX=cm;cs.pointWidth=cd;cr=g(cm)<0.5;ct=p(cm+co)+cb;cm=p(cm)+cb;co=ct-cm;
cu=g(cv)<0.5;cn=p(cv+cq)+cf;cv=p(cv)+cf;cq=cn-cv;if(cr){cm+=1;co-=1;}if(cu){cv-=1;cq+=1;}cs.shapeType="rect";cs.shapeArgs={x:cm,y:cv,width:co,height:cq};});},getSymbol:l,drawLegendSymbol:G.drawRectangle,drawGraph:l,drawPoints:function(){var cb=this,cc=this.chart,M=cb.options,cd=cc.renderer,L=cc.options.animationLimit||250,ca;
I(cb.points,function(ce){var cf=ce.plotY,cg=ce.graphic;if(cf!==m&&!isNaN(cf)&&ce.y!==null){ca=ce.shapeArgs;if(cg){aZ(cg);cg[cc.pointCount<L?"animate":"attr"](aQ(ca));
}else{ce.graphic=cg=cd[ce.shapeType](ca).attr(ce.pointAttr[ce.selected?bs:ao]).add(cb.group).shadow(M.shadow,null,M.stacking&&!M.borderRadius);}}else{if(cg){ce.graphic=cg.destroy();
}}});},drawTracker:aO.drawTrackerPoint,animate:function(ce){var cc=this,ca=this.yAxis,cb=cc.options,M=this.chart.inverted,L={},cd;if(bZ){if(ce){L.scaleY=0.001;cd=aq(ca.pos+ca.len,b8(ca.pos,ca.toPixels(cb.threshold)));
if(M){L.translateX=cd-ca.len;}else{L.translateY=cd;}cc.group.attr(L);}else{L.scaleY=1;L[M?"translateX":"translateY"]=ca.pos;cc.group.animate(L,cc.options.animation);
cc.animate=null;}}},remove:function(){var L=this,M=L.chart;if(M.hasRendered){I(M.series,function(ca){if(ca.type===L.type){ca.isDirty=true;}});}bd.prototype.remove.apply(L,arguments);
}});a.column=k;an.bar=aQ(an.column);var bu=bl(k,{type:"bar",inverted:true});a.bar=bu;an.scatter=aQ(aU,{lineWidth:0,tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>",followPointer:true},stickyTracking:false});
var bC=bl(bd,{type:"scatter",sorted:false,requireSorting:false,noSharedTooltip:true,trackerGroups:["markerGroup"],takeOrdinalPosition:false,drawTracker:aO.drawTrackerPoint,drawGraph:function(){if(this.options.lineWidth){bd.prototype.drawGraph.call(this);
}},setTooltipPoints:l});a.scatter=bC;an.pie=aQ(aU,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:false,colorByPoint:true,dataLabels:{distance:30,enabled:true,formatter:function(){return this.point.name;
}},ignoreHiddenPoint:true,legendType:"point",marker:null,size:null,showInLegend:false,slicedOffset:10,states:{hover:{brightness:0.1,shadow:false}},stickyTracking:false,tooltip:{followPointer:true}});
var aX=bl(bB,{init:function(){bB.prototype.init.apply(this,arguments);var L=this,M;if(L.y<0){L.y=null;}bo(L,{visible:L.visible!==false,name:aR(L.name,"Slice")});
M=function(ca){L.slice(ca.type==="select");};z(L,"select",M);z(L,"unselect",M);return L;},setVisible:function(cb){var L=this,M=L.series,ca=M.chart,cc;L.visible=L.options.visible=cb=cb===m?!L.visible:cb;
M.options.data[A(L,M.data)]=L.options;cc=cb?"show":"hide";I(["graphic","dataLabel","connector","shadowGroup"],function(cd){if(L[cd]){L[cd][cc]();}});if(L.legendItem){ca.legend.colorizeItem(L,cb);
}if(!M.isDirty&&M.options.ignoreHiddenPoint){M.isDirty=true;ca.redraw();}},slice:function(M,ce,cc){var L=this,ca=L.series,cb=ca.chart,cd;b4(cc,cb);ce=aR(ce,true);
L.sliced=L.options.sliced=M=aj(M)?M:!L.sliced;ca.options.data[A(L,ca.data)]=L.options;cd=M?L.slicedTranslation:{translateX:0,translateY:0};L.graphic.animate(cd);
if(L.shadowGroup){L.shadowGroup.animate(cd);}}});var q={type:"pie",isCartesian:false,pointClass:aX,requireSorting:false,noSharedTooltip:true,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:l,animate:function(cb){var M=this,ca=M.points,L=M.startAngleRad;
if(!cb){I(ca,function(cc){var ce=cc.graphic,cd=cc.shapeArgs;if(ce){ce.attr({r:M.center[3]/2,start:L,end:L});ce.animate({r:cd.r,start:cd.start,end:cd.end},M.options.animation);
}});M.animate=null;}},setData:function(L,M){bd.prototype.setData.call(this,L,false);this.processData();this.generatePoints();if(aR(M,true)){this.chart.redraw();}},generatePoints:function(){var cb,cd=0,cc,ca,M,L=this.options.ignoreHiddenPoint;
bd.prototype.generatePoints.call(this);cc=this.points;ca=cc.length;for(cb=0;cb<ca;cb++){M=cc[cb];cd+=(L&&!M.visible)?0:M.y;}this.total=cd;for(cb=0;cb<ca;cb++){M=cc[cb];
M.percentage=cd>0?(M.y/cd)*100:0;M.total=cd;}},translate:function(cg){this.generatePoints();var ci=this,ck=0,cq=1000,M=ci.options,cb=M.slicedOffset,ch=cb+M.borderWidth,cc,ca,cr,cm=M.startAngle||0,cs=ci.startAngleRad=R/180*(cm-90),ct=ci.endAngleRad=R/180*((M.endAngle||(cm+360))-90),cj=ct-cs,co=ci.points,cf,ce,cd=M.dataLabels.distance,L=M.ignoreHiddenPoint,cn,cp=co.length,cl;
if(!cg){ci.center=cg=ci.getCenter();}ci.getX=function(cv,cu){cr=aW.asin((cv-cg[1])/(cg[2]/2+cd));return cg[0]+(cu?-1:1)*(b0(cr)*(cg[2]/2+cd));};for(cn=0;cn<cp;cn++){cl=co[cn];
cc=cs+(ck*cj);if(!L||cl.visible){ck+=cl.percentage/100;}ca=cs+(ck*cj);cl.shapeType="arc";cl.shapeArgs={x:cg[0],y:cg[1],r:cg[2]/2,innerR:cg[3]/2,start:p(cc*cq)/cq,end:p(ca*cq)/cq};
cr=(ca+cc)/2;if(cr>0.75*cj){cr-=2*R;}cl.slicedTranslation={translateX:p(b0(cr)*cb),translateY:p(ad(cr)*cb)};cf=b0(cr)*cg[2]/2;ce=ad(cr)*cg[2]/2;cl.tooltipPos=[cg[0]+cf*0.7,cg[1]+ce*0.7];
cl.half=cr<-R/2||cr>R/2?1:0;cl.angle=cr;ch=aq(ch,cd/2);cl.labelPos=[cg[0]+cf+b0(cr)*cd,cg[1]+ce+ad(cr)*cd,cg[0]+cf+b0(cr)*ch,cg[1]+ce+ad(cr)*ch,cg[0]+cf,cg[1]+ce,cd<0?"center":cl.half?"right":"left",cr];
}},setTooltipPoints:l,drawGraph:null,drawPoints:function(){var ca=this,cb=ca.chart,cc=cb.renderer,cf,ce,cd=ca.options.shadow,L,M;if(cd&&!ca.shadowGroup){ca.shadowGroup=cc.g("shadow").add(ca.group);
}I(ca.points,function(cg){ce=cg.graphic;M=cg.shapeArgs;L=cg.shadowGroup;if(cd&&!L){L=cg.shadowGroup=cc.g("shadow").add(ca.shadowGroup);}cf=cg.sliced?cg.slicedTranslation:{translateX:0,translateY:0};
if(L){L.attr(cf);}if(ce){ce.animate(bo(M,cf));}else{cg.graphic=ce=cc.arc(M).setRadialReference(ca.center).attr(cg.pointAttr[cg.selected?bs:ao]).attr({"stroke-linejoin":"round"}).attr(cf).add(ca.group).shadow(cd,L);
}if(cg.visible!==undefined){cg.setVisible(cg.visible);}});},sortByAngle:function(M,L){M.sort(function(cb,ca){return cb.angle!==undefined&&(ca.angle-cb.angle)*L;});
},drawTracker:aO.drawTrackerPoint,drawLegendSymbol:G.drawRectangle,getCenter:F.getCenter,getSymbol:l};q=bl(bd,q);a.pie=q;bd.prototype.drawDataLabels=function(){var M=this,L=M.options,cf=L.cursor,cg=L.dataLabels,ce=M.points,ca,cd,cc,cb;
if(cg.enabled||M._hasPointLabels){if(M.dlProcessOptions){M.dlProcessOptions(cg);}cb=M.plotGroup("dataLabelsGroup","data-labels",M.visible?ap:al,cg.zIndex||6);cd=cg;
I(ce,function(cn){var ck,cp=cn.dataLabel,cm,cl,ch,co,ci=cn.connector,cj=true;ca=cn.options&&cn.options.dataLabels;ck=aR(ca&&ca.enabled,cd.enabled);if(cp&&!ck){cn.dataLabel=cp.destroy();
}else{if(ck){cg=aQ(cd,ca);co=cg.rotation;cm=cn.getLabelConfig();cc=cg.format?h(cg.format,cm):cg.formatter.call(cm,cg);cg.style.color=aR(cg.color,cg.style.color,M.color,"black");
if(cp){if(aj(cc)){cp.attr({text:cc});cj=false;}else{cn.dataLabel=cp=cp.destroy();if(ci){cn.connector=ci.destroy();}}}else{if(aj(cc)){cl={fill:cg.backgroundColor,stroke:cg.borderColor,"stroke-width":cg.borderWidth,r:cg.borderRadius||0,rotation:co,padding:cg.padding,zIndex:1};
for(ch in cl){if(cl[ch]===m){delete cl[ch];}}cp=cn.dataLabel=M.chart.renderer[co?"text":"label"](cc,0,-999,null,null,null,cg.useHTML).attr(cl).css(bo(cg.style,cf&&{cursor:cf})).add(cb).shadow(cg.shadow);
}}if(cp){M.alignDataLabel(cn,cp,cg,null,cj);}}}});}};bd.prototype.alignDataLabel=function(cf,ci,cj,cd,cc){var ce=this.chart,ca=ce.inverted,L=aR(cf.plotX,-999),ch=aR(cf.plotY,-999),cg=ci.getBBox(),M=this.visible&&(cf.series.forceDL||ce.isInsidePlot(cf.plotX,cf.plotY,ca)),cb;
if(M){cd=bo({x:ca?ce.plotWidth-ch:L,y:p(ca?ce.plotHeight-L:ch),width:0,height:0},cd);bo(cj,{width:cg.width,height:cg.height});if(cj.rotation){cb={align:cj.align,x:cd.x+cj.x+cd.width/2,y:cd.y+cj.y+cd.height/2};
ci[cc?"attr":"animate"](cb);}else{ci.align(cj,null,cd);cb=ci.alignAttr;if(aR(cj.overflow,"justify")==="justify"){this.justifyDataLabel(ci,cj,cb,cg,cd,cc);}else{if(aR(cj.crop,true)){M=ce.isInsidePlot(cb.x,cb.y)&&ce.isInsidePlot(cb.x+cg.width,cb.y+cg.height);
}}}}if(!M){ci.attr({y:-999});ci.placed=false;}};bd.prototype.justifyDataLabel=function(ch,ci,cb,cg,ce,cc){var cf=this.chart,cd=ci.align,M=ci.verticalAlign,L,ca;L=cb.x;
if(L<0){if(cd==="right"){ci.align="left";}else{ci.x=-L;}ca=true;}L=cb.x+cg.width;if(L>cf.plotWidth){if(cd==="left"){ci.align="right";}else{ci.x=cf.plotWidth-L;}ca=true;
}L=cb.y;if(L<0){if(M==="bottom"){ci.verticalAlign="top";}else{ci.y=-L;}ca=true;}L=cb.y+cg.height;if(L>cf.plotHeight){if(M==="top"){ci.verticalAlign="bottom";}else{ci.y=cf.plotHeight-L;
}ca=true;}if(ca){ch.placed=!cc;ch.align(ci,null,ce);}};if(a.pie){a.pie.prototype.drawDataLabels=function(){var cf=this,cK=cf.data,cy,cL=cf.chart,cv=cf.options.dataLabels,cc=aR(cv.connectorPadding,10),ct=aR(cv.connectorWidth,1),cb=cL.plotWidth,cD=cL.plotHeight,L,cH,cu=aR(cv.softConnector,true),cm=cv.distance,ce=cf.center,cE=ce[2]/2,M=ce[1],cj=cm>0,cd,cl,ck,cC,cx=[[],[]],cB,cA,cp,ch,cI,cG,cF=[0,0,0,0],cJ=function(cP,cO){return cO.y-cP.y;
};if(!cf.visible||(!cv.enabled&&!cf._hasPointLabels)){return;}bd.prototype.drawDataLabels.apply(cf);I(cK,function(cO){if(cO.dataLabel&&cO.visible){cx[cO.half].push(cO);
}});cI=0;while(!cC&&cK[cI]){cC=cK[cI]&&cK[cI].dataLabel&&(cK[cI].dataLabel.getBBox().height||21);cI++;}cI=2;while(cI--){var cM=[],cg,cr=[],cz=cx[cI],cw,co=cz.length,cN;
cf.sortByAngle(cz,cI-0.5);if(cm>0){for(cw=M-cE-cm;cw<=M+cE+cm;cw+=cC){cM.push(cw);}cg=cM.length;if(co>cg){ch=[].concat(cz);ch.sort(cJ);cG=co;while(cG--){ch[cG].rank=cG;
}cG=co;while(cG--){if(cz[cG].rank>=cg){cz.splice(cG,1);}}co=cz.length;}for(cG=0;cG<co;cG++){cy=cz[cG];ck=cy.labelPos;var cn=9999,cs,cq;for(cq=0;cq<cg;cq++){cs=g(cM[cq]-ck[1]);
if(cs<cn){cn=cs;cN=cq;}}if(cN<cG&&cM[cG]!==null){cN=cG;}else{if(cg<co-cG+cN&&cM[cG]!==null){cN=cg-co+cG;while(cM[cN]===null){cN++;}}else{while(cM[cN]===null){cN++;
}}}cr.push({i:cN,y:cM[cN]});cM[cN]=null;}cr.sort(cJ);}for(cG=0;cG<co;cG++){var ci,ca;cy=cz[cG];ck=cy.labelPos;cd=cy.dataLabel;cp=cy.visible===false?al:ap;ca=ck[1];
if(cm>0){ci=cr.pop();cN=ci.i;cA=ci.y;if((ca>cA&&cM[cN+1]!==null)||(ca<cA&&cM[cN-1]!==null)){cA=ca;}}else{cA=ca;}cB=cv.justify?ce[0]+(cI?-1:1)*(cE+cm):cf.getX(cN===0||cN===cM.length-1?ca:cA,cI);
cd._attr={visibility:cp,align:ck[6]};cd._pos={x:cB+cv.x+({left:cc,right:-cc}[ck[6]]||0),y:cA+cv.y-10};cd.connX=cB;cd.connY=cA;if(this.options.size===null){cl=cd.width;
if(cB-cl<cc){cF[3]=b8(p(cl-cB+cc),cF[3]);}else{if(cB+cl>cb-cc){cF[1]=b8(p(cB+cl-cb+cc),cF[1]);}}if(cA-cC/2<0){cF[0]=b8(p(-cA+cC/2),cF[0]);}else{if(cA+cC/2>cD){cF[2]=b8(p(cA+cC/2-cD),cF[2]);
}}}}}if(aM(cF)===0||this.verifyDataLabelOverflow(cF)){this.placeDataLabels();if(cj&&ct){I(this.points,function(cO){L=cO.connector;ck=cO.labelPos;cd=cO.dataLabel;
if(cd&&cd._pos){cp=cd._attr.visibility;cB=cd.connX;cA=cd.connY;cH=cu?[bw,cB+(ck[6]==="left"?5:-5),cA,"C",cB,cA,2*ck[2]-ck[4],2*ck[3]-ck[5],ck[2],ck[3],bx,ck[4],ck[5]]:[bw,cB+(ck[6]==="left"?5:-5),cA,bx,ck[2],ck[3],bx,ck[4],ck[5]];
if(L){L.animate({d:cH});L.attr("visibility",cp);}else{cO.connector=L=cf.chart.renderer.path(cH).attr({"stroke-width":ct,stroke:cv.connectorColor||cO.color||"#606060",visibility:cp}).add(cf.group);
}}else{if(L){cO.connector=L.destroy();}}});}}};a.pie.prototype.placeDataLabels=function(){I(this.points,function(M){var ca=M.dataLabel,L;if(ca){L=ca._pos;if(L){ca.attr(ca._attr);
ca[ca.moved?"animate":"attr"](L);ca.moved=true;}else{if(ca){ca.attr({y:-999});}}}});};a.pie.prototype.alignDataLabel=l;a.pie.prototype.verifyDataLabelOverflow=function(ce){var L=this.center,cb=this.options,cc=cb.center,cd=cb.minSize||80,M=cd,ca;
if(cc[0]!==null){M=b8(L[2]-b8(ce[1],ce[3]),cd);}else{M=b8(L[2]-ce[1]-ce[3],cd);L[0]+=(ce[3]-ce[1])/2;}if(cc[1]!==null){M=b8(aq(M,L[2]-b8(ce[0],ce[2])),cd);}else{M=b8(aq(M,L[2]-ce[0]-ce[2]),cd);
L[1]+=(ce[0]-ce[2])/2;}if(M<L[2]){L[2]=M;this.translate(L);I(this.points,function(cf){if(cf.dataLabel){cf.dataLabel._pos=null;}});if(this.drawDataLabels){this.drawDataLabels();
}}else{ca=true;}return ca;};}if(a.column){a.column.prototype.alignDataLabel=function(cf,cg,ch,cb,ca){var cc=this.chart,M=cc.inverted,cd=cf.dlBox||cf.shapeArgs,ce=cf.below||(cf.plotY>aR(this.translatedThreshold,cc.plotSizeY)),L=aR(ch.inside,!!this.options.stacking);
if(cd){cb=aQ(cd);if(M){cb={x:cc.plotWidth-cb.y-cb.height,y:cc.plotHeight-cb.x-cb.width,width:cb.height,height:cb.width};}if(!L){if(M){cb.x+=ce?0:cb.width;cb.width=0;
}else{cb.y+=ce?cb.height:0;cb.height=0;}}}ch.align=aR(ch.align,!M||L?"center":ce?"right":"left");ch.verticalAlign=aR(ch.verticalAlign,M||L?"middle":ce?"top":"bottom");
bd.prototype.alignDataLabel.call(this,cf,cg,ch,cb,ca);};}bo(Highcharts,{Axis:C,Chart:bm,Color:bN,Point:bB,Tick:aD,Tooltip:bV,Renderer:bU,Series:bd,SVGElement:aA,SVGRenderer:d,arrayMin:bF,arrayMax:aM,charts:aI,dateFormat:bS,format:h,pathAnim:au,getOptions:aH,hasBidiBug:ag,isTouchDevice:aY,numberFormat:n,seriesTypes:a,setOptions:a9,addEvent:z,removeEvent:a5,createElement:bq,discardElement:bR,css:b3,each:I,extend:bo,map:am,merge:aQ,pick:aR,splat:bh,extendClass:bl,pInt:bP,wrap:a0,svg:bZ,canvas:a7,vml:!bZ&&!a7,product:bE,version:bX});
}());var lastSelected=new Array();var bilancaChart;function selectBilancaSlice(g,a){if(a){var h=bilancaChart.series[0].data.length;for(var c=0;c<h;c++){var e=bilancaChart.series[0].data[c];
if(e.id==g){e.select();}}}var d=document.getElementById("loadable");loadTableInt(g,d);var b=document.getElementById("loadable-zadnjespremembe");loadZadnjeSpremembeTableInt(g,b);
}function selectBilancaSlice2(h,l){var d=0;var c=0;if(l){var m=bilancaChart.series[0].data.length;c=m;for(var g=0;g<m;g++){var e=bilancaChart.series[0].data[g];if(e.id==h){d=1;
e.select();}}}if(d==0||c==1){var a=document.getElementById("loadable");loadTableInt(h,a);var b=document.getElementById("loadable-zadnjespremembe");loadZadnjeSpremembeTableInt(h,b);
}}function loadTable(b,d){if(d!=null){d="podatki="+d;f.addParam("flashVars",d);f.write("flashcontent",false);}var c=document.getElementById("loadable");loadTableInt(b,c);
var a=document.getElementById("loadable-zadnjespremembe");loadZadnjeSpremembeTableInt(b,a);}function gup(b){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var a="[\\?&]"+b+"=([^&#]*)";
var d=new RegExp(a);var c=d.exec(window.location.href);if(c==null){return"";}else{return c[1];}}function loadTableInt(b,e){var d="moja/bilancaXHR.seam?xhr="+b+genUniqueID();
var a=gup("pid");d+="&pid="+a;var c=YAHOO.util.Connect.asyncRequest("GET",d,{success:snippetCallback,failure:resetGlobalTimers,argument:e},null);}function snippetCallback(a){resetGlobalTimers();
a.argument.innerHTML=a.responseText;addTableRowClass();}function loadZadnjeSpremembeTableInt(a,d){var c="moja/spremembeXHR.seam?xhr="+a+genUniqueID();var b=YAHOO.util.Connect.asyncRequest("GET",c,{success:zadnjeSpremembeCallback,failure:resetGlobalTimers,argument:d},null);
}function genUniqueID(){return("&junk1="+new Date().getTime()+"&junk2="+Math.floor(Math.random()*65536));}function zadnjeSpremembeCallback(a){resetGlobalTimers();
a.argument.innerHTML=a.responseText;addTableRowClass();}function addTableRowClass(){var b=["table"];for(var a=0;a<b.length;a++){elms=YAHOO.util.Dom.getElementsByClassName("parsek-stripe",b[a]);
for(i=0;i<elms.length;i++){PARSEK.ui.stripeLines(elms[i]);}}}settings_accounts_add=function(a){if(a.form&&a.form.allaccs&&a.form.selaccs){return move_option(a.form.allaccs,a.form.selaccs,true);
}};settings_accounts_remove=function(a){if(a.form&&a.form.selaccs&&a.form.allaccs){return move_option(a.form.selaccs,a.form.allaccs,true);}};front_portlets_add=function(a){var b=document.getElementById("activeGears");
if(a.form&&a.form.possible&&b){return move_option(a.form.possible,b,false);}};front_portlets_remove=function(a){var b=document.getElementById("activeGears");if(a.form&&b&&a.form.possible){remove_option(b);
}return false;};select_all=function(){var a=document.getElementById("active").getElementsByTagName("select")[0];for(var c=0,b=a.length;c<b;c++){a[c].selected=true;
}};showHideCustomize=function(){var a=document.getElementById("addportlet");a.style.display=a.style.display=="none"?"block":"none";return false;};openTabManually=function(a){if(a<document.manualTabs.length){PARSEK.ui._showTabView(null,document.manualTabs[a]);
}};move_option=function(g,e,a){for(var c=0,b=g.options.length;c<b;c++){var d=g.options[c];if(d.selected){e.options[e.options.length]=new Option(d.text,d.value);}}if(a){remove_option(g);
}return false;};remove_option=function(c){for(var a=c.options.length;a>=0;a--){var b=c.options[a];if(!b){continue;}if(b.selected){c.options[a]=null;}}};confirmCancel=function(){return confirm("Ali ste prepričani, da želite preklicati?");
};waitSigning=function(){var a=document.getElementById("wait-signing");if(a){a.style.display="list-item";return false;}};showTransactions=function(d,a){if(!a){a="";
}var e=parseInt(d);var b=document.getElementById("imenik-"+a+e);var c=document.getElementById("status-"+a+e);if(b){if(b.className==="hidden"||b.className.startsWith("hidden")){b.className="parsek-details";
}else{b.className="hidden";}if(c){if(c.className.indexOf("status-on")!=-1){c.className=c.className.replace("status-on","status-off");}else{c.className=c.className.replace("status-off","status-on");
}}}};showTransactions2=function(d,a){if(!a){a="";}var e=parseInt(d);var b=document.getElementById("imenik-"+a+e);var c=document.getElementById("status-"+a+e);if(b){if(b.className==="hidden"||b.className.startsWith("hidden")){b.className="parsek-details2";
}else{b.className="hidden";}if(c){if(c.className.indexOf("status-on")!=-1){c.className=c.className.replace("status-on","status-off");}else{c.className=c.className.replace("status-off","status-on");
}}}};showTransactionsX=function(c){var d=parseInt(c);var a=document.getElementById("imenik-x"+d);var b=document.getElementById("status-x"+d);if(a){if(a.className==="hidden odd"){a.className="";
}else{a.className="hidden odd";}if(b){if(b.className==="status-xon"){b.className="status-xoff";}else{b.className="status-xon";}}}};showTransactionsImenik=function(c){var e=parseInt(c);
var a=document.getElementById("imenik-x"+e);var b=document.getElementById("status-x"+e);var d=document.getElementById("prenosRef-x"+e);if(a){if(a.className==="hidden odd"){a.className="parsek-details";
}else{a.className="hidden odd";}if(b){if(b.className==="status-xon"){b.className="status-xoff";}else{b.className="status-xon";}}if(d){if(d.className==="hidden odd"){d.className="parsek-details";
}else{d.className="hidden odd";}}}};function forceLogoutNoMercy(){if(window.location.href.indexOf("/BIN/vstopna.seam")>0){}else{window.location.href="/BIN/logout.seam";
}}function forceLogout(){try{Seam.Component.getInstance("jsMessages").testSession(forceLogoutCallback);}catch(a){window.location.href="/BIN/logout.seam";}}var globTlogout=window.setTimeout(forceLogoutNoMercy,300000);
var globTpodaljsaj=window.setTimeout(podaljsajSejo,240000);function resetGlobalTimers(){clearTimeout(globTpodaljsaj);clearTimeout(globTlogout);globTlogout=window.setTimeout(forceLogoutNoMercy,300000);
globTpodaljsaj=window.setTimeout(podaljsajSejo,240000);}function forceLogoutCallback(a){if(a=="ok"){resetGlobalTimers();}else{window.location.href="/BIN/vstopna.seam";
}}var Prototype={Version:"1.6.0.3",Browser:{IE:!!(window.attachEvent&&navigator.userAgent.indexOf("Opera")===-1),Opera:navigator.userAgent.indexOf("Opera")>-1,WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")===-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)}};
function podaljsajSejo(){RichFaces.ui.PopupPanel.showPopupPanel("sejaSeIztekaForm:sejaSeIzteka");countdown("seja_countdown","seja_klikni_1","seja_klikni_2","seja_podaljsaj_1","seja_podaljsaj_2");
return false;}function countdown(d,a,h,g,e){document.getElementById(a).innerHTML="Ostani prijavljen";document.getElementById(h).innerHTML="Odjava";if(Prototype.Browser.IE){document.getElementById(a).onclick=function(){forceLogout();
RichFaces.ui.PopupPanel.hidePopupPanel("sejaSeIztekaForm:sejaSeIzteka");};}else{document.getElementById(a).setAttribute("onclick","forceLogout();RichFaces.ui.PopupPanel.hidePopupPanel('sejaSeIztekaForm:sejaSeIzteka');");
}document.getElementById(a).setAttribute("href","#");document.getElementById(h).setAttribute("href","/BIN/logout.seam");document.getElementById(g).innerHTML="Iz varnostnih razlogov boste odjavljeni iz vaše Banke IN v";
document.getElementById(e).innerHTML="sekundah. Za nadaljevanje uporabe Banke IN izberite povezavo Ostani prijavljen.";var c=60;document.getElementById(d).innerHTML=c;
var b=setInterval(function(){document.getElementById(d).innerHTML=--c;if(c==0){document.getElementById(a).innerHTML="Ponovna prijava";document.getElementById(h).innerHTML="Zapri";
if(Prototype.Browser.IE){document.getElementById(a).onclick=function(){RichFaces.ui.PopupPanel.hidePopupPanel("sejaSeIztekaForm:sejaSeIzteka");};}else{document.getElementById(a).setAttribute("onclick","RichFaces.ui.PopupPanel.hidePopupPanel('sejaSeIztekaForm:sejaSeIzteka');");
}document.getElementById(a).setAttribute("href","/BIN/logout.seam");document.getElementById(g).innerHTML="Iz varnostnih razlogov ste bili odjavljeni iz vaše Banke IN. Za ponovno prijavo izberite povezavo Ponovna prijava.";
document.getElementById(e).innerHTML="";document.getElementById(d).innerHTML="";clearInterval(b);}},1000);}var forceClose=false;function beforeClose(){}function closeWindow(){}function printCheckIsIE(){return navigator.appName.toUpperCase()=="MICROSOFT INTERNET EXPLORER";
}function printIFrame(iFrameName){if(printCheckIsIE()){eval("document."+iFrameName+".focus()");eval("document."+iFrameName+".print()");}else{window.frames[iFrameName].focus();
window.frames[iFrameName].print();}}function calculateSelectedSum(l,e){var d=document.getElementsByName(l);var b=document.getElementById(e);var m=d.length;var c=new Array();
var h=new Array();for(i=0;i<m;i++){if(d[i].checked==true){var a=d[i].id.split("_");var g=+a[2];var k=a[3];var o=false;for(j=0;j<h.length;j++){if(h[j]==k){c[j]=c[j]+g;
o=true;break;}}if(!o){c[c.length]=g;h[h.length]=k;}}}var n="";for(i=0;i<c.length;i++){n=n.concat(c[i].formatMoney()).concat(" ").concat(h[i]);if(i<c.length-1){n=n.concat(", ");
}}b.innerHTML=n;}Number.prototype.formatMoney=function(l,h,e){var k=this,l=isNaN(l=Math.abs(l))?2:l,h=h==undefined?",":h,e=e==undefined?".":e,g=k<0?"-":"",b=parseInt(k=Math.abs(+k||0).toFixed(l))+"",a=(a=b.length)>3?a%3:0;
return g+(a?b.substr(0,a)+e:"")+b.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+e)+(l?h+Math.abs(k-b).toFixed(l).slice(2):"");};function checkAllFieldsSelect(o,v,e,r,s,u,t,d){var k;
if(e==null||lastSelected==null){return;}if(e.id==o){k=1;}else{k=2;}if(lastSelected[o]==null){lastSelected[o]=-1;}var p=document.getElementById(o);var a=document.getElementsByClassName(v);
var l=null;var x=a.length;var y=true;var c=0;var h=false;var g=-1;var q=null;var w=null;var m=null;if(r!=null&&r.shiftKey){h=true;}if(s!=null){l=document.getElementById(s);
}if(k==1){if(p.checked==true){for(i=0;i<x;i++){a[i].checked=true;}}else{for(i=0;i<x;i++){a[i].checked=false;}}}else{for(i=0;i<x;i++){if(e.id==a[i].id){g=i;}}if(h&&lastSelected[o]>-1){var n=Math.min(lastSelected[o],g);
var b=Math.max(lastSelected[o],g);for(i=n;i<=b;i++){a[i].checked=e.checked;}}else{}for(i=0;i<x;i++){if(a[i].checked==true){y=true;continue;}else{y=false;break;}}if(y==true){p.checked=true;
}else{p.checked=false;}lastSelected[o]=g;}for(j=0;j<x;j++){if(a[j].checked==true){c++;}}if(l!=null){l.innerHTML=c;}if(u!=null){q=document.getElementById(u);}if(q!=null){if(c==1){q.innerHTML="";
}else{if(c==2){q.innerHTML="a";}else{if(c==3||c==4){q.innerHTML="i";}else{q.innerHTML="ih";}}}}if(t!=null){w=document.getElementById(t);}if(w!=null){if(c==1){w.innerHTML="";
}else{if(c==2){w.innerHTML="a";}else{if(c==3||c==4){w.innerHTML="i";}else{w.innerHTML="ov";}}}}if(d!=null){m=document.getElementById(d);}if(m!=null){if(c==1){m.innerHTML="";
}else{m.innerHTML="s";}}}function checkAllFields(o,v,e,r,s,u,t,d){var k;if(e==null||lastSelected==null){return;}if(e.id==o){k=1;}else{k=2;}if(lastSelected[o]==null){lastSelected[o]=-1;
}var p=document.getElementById(o);var a=document.getElementsByName(v);var l=null;var x=a.length;var y=true;var c=0;var h=false;var g=-1;var q=null;var w=null;var m=null;
if(r!=null&&r.shiftKey){h=true;}if(s!=null){l=document.getElementById(s);}if(k==1){if(p.checked==true){for(i=0;i<x;i++){a[i].checked=true;}}else{for(i=0;i<x;i++){a[i].checked=false;
}}}else{for(i=0;i<x;i++){if(e.id==a[i].id){g=i;}}if(h&&lastSelected[o]>-1){var n=Math.min(lastSelected[o],g);var b=Math.max(lastSelected[o],g);for(i=n;i<=b;i++){a[i].checked=e.checked;
}}else{}for(i=0;i<x;i++){if(a[i].checked==true){y=true;continue;}else{y=false;break;}}if(y==true){p.checked=true;}else{p.checked=false;}lastSelected[o]=g;}for(j=0;
j<x;j++){if(a[j].checked==true){c++;}}if(l!=null){l.innerHTML=c;}if(u!=null){q=document.getElementById(u);}if(q!=null){if(c==1){q.innerHTML="";}else{if(c==2){q.innerHTML="a";
}else{if(c==3||c==4){q.innerHTML="i";}else{q.innerHTML="ih";}}}}if(t!=null){w=document.getElementById(t);}if(w!=null){if(c==1){w.innerHTML="";}else{if(c==2){w.innerHTML="a";
}else{if(c==3||c==4){w.innerHTML="i";}else{w.innerHTML="ov";}}}}if(d!=null){m=document.getElementById(d);}if(m!=null){if(c==1){m.innerHTML="";}else{m.innerHTML="s";
}}}function checksToListLogic(b,d){var a=document.getElementsByName(b);var c=a.length;var e="";for(i=0;i<c;i++){if(a[i].checked){if(e!=""){e+=",";}e+=a[i].value;
}}return e;}function checksToListDouble(c,a,n,m,b,d){var o="errMsgNat";if(d!=null){o=d;}var e=document.getElementById(o);if(e!=null){e.innerHTML="";}var k=document.getElementById(n);
var g=document.getElementById(m);var l="";var h="";if(k!=null){l=checksToListLogic(c,n);k.value=l;}if(g!=null){h=checksToListLogic(a,m);g.value=h;}return true;}function checksToList(e,h,c,d){var l="errMsg";
if(d!=null){l=d;}var g=document.getElementById(l);if(g!=null){g.innerHTML="";}var m=document.getElementById(h);var k=document.getElementsByName(e);var a=k.length;
var b="";for(i=0;i<a;i++){if(k[i].checked){if(b!=""){b+=",";}b+=k[i].value;}}m.value=b;if(b==""){if(g!=null){g.innerHTML="<br>Označiti morate vsaj en zapis.";}else{alert("Označiti morate vsaj en zapis.");
}return false;}else{return true;}}function nalogDelete(d,a,c,b){if(checksToList(a,c,b)){return(confirm(d));}else{return false;}}function checkAllFieldsFilter(a,d){var b=d;
var c=b.length;if(a){for(i=0;i<c;i++){document.getElementById(b[i]).checked=true;}}else{for(i=0;i<c;i++){document.getElementById(b[i]).checked=false;}}}var edocAlertDocNotSigned=false;
var edocPassThrough=false;var edocConfirmExitMsg="";window.onbeforeunload=confirmExit;var userBrowserLang=(navigator.language||navigator.systemLanguage||navigator.userLanguage||"en").substr(0,2).toLowerCase();
function confirmExit(){if(edocAlertDocNotSigned){if(!edocPassThrough){if(edocConfirmExitMsg==""){if(userBrowserLang!="sl"){return"Odprt imate še nepodpisan dokument. Če ga ne podpišete, se posel ne bo izvedel.\nZa nadaljevanje pritisnite OK, oziroma Cancel, če želite ostati na trenutni strani.";
}else{return"Odprt imate še nepodpisan dokument. Če ga ne podpišete, se posel ne bo izvedel.";}}return edocConfirmExitMsg;}}}function edocConfirmCancel(){edocPassThrough=true;
if(!confirmCancel()){edocPassThrough=false;return false;}else{return true;}}function onSubmitDisableBtn(b,a){document.getElementById(b).disabled=true;document.getElementById(b).src="/BIN/_sl/images/buttons/"+a;
}function onSubmitDisableBtnWithLink(b,a,c){onSubmitDisableBtn(b,a);if(printCheckIsIE()){document.getElementById(c).fireEvent("onclick");}else{document.getElementById(c).onclick();
}}function jumpToAnchor(a){if(a!=null){href="#"+a;window.location.href=href;}}function setFocusPostavkaActive(b){var c=b.id;var a=document.getElementById(c);if(a){a.select();
}}var keyCodePaketiTable="";var idPaketiTable="";function setKeyCodePaketiTable(a){a=(a)?a:((window.event)?event:null);if(a){keyCodePaketiTable=(a.keyCode)?a.keyCode:0;
idPaketiTable=a.target?a.target.id:a.srcElement.id;}}function setNextPostavkaActive(k,c,l){var b=idPaketiTable;var d=b.substring(0,b.indexOf(":"+k));var g=d.substring(d.lastIndexOf(":")+1);
d=d.substring(0,d.lastIndexOf(":")+1);var m=keyCodePaketiTable?keyCodePaketiTable:9;if(m==9){var e=parseInt(g)+l;var a=d+e+":"+c;var h=document.getElementById(a);
if(h){h.focus();h.select();}else{a=d+0+":"+c;h=document.getElementById(a);if(h){h.focus();}}}else{if(m=13){var e=parseInt(g)+1;var a=d+e+":"+k;var h=document.getElementById(a);
if(h){h.focus();h.select();}else{a=d+0+":"+c;h=document.getElementById(a);if(h){h.focus();}}}}}function modelUPNKeyUP(b,a){var c=b.value;a=(a)?a:((window.event)?event:null);
var d=(a.keyCode)?a.keyCode:0;if(a){if(c&&c.length==2&&(d!=9&&d!=13)){if(c=="99"){document.getElementById("customContent:interniNalog:refnum").value="";document.getElementById("customContent:interniNalog:izRacuna").focus();
}else{document.getElementById("customContent:interniNalog:refnum").focus();}}}}function modelPlacUPNKeyUP(b,a){var c=b.value;a=(a)?a:((window.event)?event:null);
var d=(a.keyCode)?a.keyCode:0;if(a){if(c&&c.length==2&&(d!=9&&d!=13)){if(c=="99"){document.getElementById("customContent:interniNalog:refnumPlac").value="";document.getElementById("customContent:interniNalog:prejemniknazivIn").focus();
}else{document.getElementById("customContent:interniNalog:refnumPlac").focus();}}}}Highcharts.setOptions({lang:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],weekdays:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"],decimalPoint:",",thousandsSep:"."},chart:{style:{fontSize:"11px"}}});
var DataTableSort={doSort:function(b,e){var c=$('[id="'+b.id+'_sortStateHolder"]');var d=c.val();var a;if(d.startsWith(e)){d=d.substring(d.length-3,d.length);}else{d="uns";
}if(d=="uns"||d=="des"){a="asc";}else{if(d=="asc"){a="des";}}b.sort(e,null,true);c.val(e+"_"+a);},onAfterSort:function(d,e){var c=$('[id="'+d+'_sortStateHolder"]');
var a=c.val();var b=a.substring(a.length-3,a.length);if(b=="asc"){$('[id="'+e+'"]').removeClass("rf-edt-srt-uns").removeClass("rf-edt-srt-des").addClass("rf-edt-srt-asc");
}else{if(b=="des"){$('[id="'+e+'"]').removeClass("rf-edt-srt-uns").removeClass("rf-edt-srt-asc").addClass("rf-edt-srt-des");}else{$('[id="'+e+'"]').removeClass("rf-edt-srt-asc").removeClass("rf-edt-srt-des").addClass("rf-edt-srt-uns");
}}}};var slideIndex=1;function plusSlides(a){showSlides(slideIndex+=a);}function currentSlide(a){showSlides(slideIndex=a);}function showSlides(d){var a;var b=document.getElementsByClassName("mySlides");
var c=document.getElementsByClassName("dot");if(d>b.length){slideIndex=1;}if(d<1){slideIndex=b.length;}for(a=0;a<b.length;a++){b[a].style.display="none";}for(a=0;
a<c.length;a++){c[a].className=c[a].className.replace(" active","");}b[slideIndex-1].style.display="block";c[slideIndex-1].className+=" active";}function showSlidesAuto(){var a;
var b=document.getElementsByClassName("mySlides");var c=document.getElementsByClassName("dot");if(b.length>1){for(a=0;a<b.length;a++){b[a].style.display="none";}for(a=0;
a<c.length;a++){c[a].className=c[a].className.replace(" active","");}slideIndex++;if(slideIndex>b.length){slideIndex=1;}b[slideIndex-1].style.display="block";c[slideIndex-1].className+=" active";
setTimeout(showSlidesAuto,10000);}}var _cp2wizard=new Object();function getDocumentHeight(){var a;var b=(document.documentElement)?document.documentElement:null;
if(a&&(a.scrollHeight||a.offsetHeight)){return Math.max(a.scrollHeight,a.offsetHeight);}if(b&&(b.scrollHeight||b.offsetHeight)){return Math.max(b.scrollHeight,b.offsetHeight);
}return 0;}function limitText(d,c,a){var b=document.getElementById(d).value.length;if(b>a){document.getElementById(d).value=document.getElementById(d).value.substring(0,a);
}else{if(domElementExists(c)){document.getElementById(c).innerHTML=""+(a-b);}}}function domElementExists(a){var b=document.getElementById(a);return(typeof(b)!="undefined"&&b!=null);
}function _rs(){}function startsWith(a,b){return(b==null?false:a.substring(0,b.length)==b);}function endsWith(a,b){return(b==null?false:a.substr(a.length-b.length,b.length)==b);
}_cp2wizard.cooltrim=function(a){return(a==null?null:a.replace(/\s+/gi," ").replace(/\s$/,"").replace(/^\s/,""));};_cp2wizard.emailtrim=function(a){return(a==null?null:a.replace(/\s+/gi,""));
};_cp2wizard.getNumberValue=function(n,p,s,g,c){var o=String(n).replace(/[^-.,0-9]/gi,"");var e=p;var d=o.lastIndexOf(".");var r=o.lastIndexOf(",");if(d>r){e=".";
}else{if(r>d){e=",";}else{e=p;}}o=o.replace(new RegExp("[^\\-0-9"+e+"]*","gi"),"");var k=1;if(e!=p){var q=o.lastIndexOf(e);if(((e==".")&&(d>0)&&(r==-1))||((e==",")&&(r>0)&&(d==-1))){k*=1.2;
}if(q!=o.indexOf(e)){k*=0.5;}if(o.substring(q+1).length==g){k*=0.81;}if((s>0)&&(o.substring(q+1).length==s)){k*=2;}if(e==c){k*=0.75;}if(e==p){k*=2;}if(o.lastIndexOf(e)==0){k*=1.5;
}if(o.substring(0,1)==("0"+e)){k*=1.5;}if(k<0.7){e=p;}}o=o.replace(new RegExp("[^\\-0-9"+e+"]*","gi"),"");if(o.indexOf(e)>9){o=o.replace(new RegExp("0+\\"+e,"gi"),"0"+e);
}if(s<0){var h=o.indexOf(e);if(h!=-1){s=o.length-h-1;}else{s=0;}}var l=o.lastIndexOf(e);if(l!=-1){var m;while(((m=o.indexOf(e))<l)&&(m!=-1)){o=o.substring(0,m)+o.substring(m+1);
l=o.lastIndexOf(e);}o=o.substring(0,l)+"."+o.substring(l+1);}if((o!=null)&&(o!="")){o=o.replace(new RegExp("^0*","gi"),"");o=o.replace(new RegExp("^-+0*","gi"),"-");
}if((o=="")||(o=="0.")||(o==".")||(o==".0")){o=0;}if(isNaN(o)){return 0;}else{return parseFloat(o);}};_cp2wizard.formatValue=function(m,e,t,b,p){var q=1;if(t<0){t=0;
var n=String(m);var g=n.indexOf(".");if(g!=-1){t=n.length-g-1;}else{t=0;}}for(var d=0;d<t;d++){q*=10;}m*=q;m=Math.round(m);m/=q;m=String(m);var c=m.indexOf(".");
var k;var o;if(c!=-1){k=String(m.substring(0,c));o=String(m.substring(c+1));}else{k=m;o="";}while(o.length<t){o=String(o)+String("0");}if((e>0)&&(""!=b)&&(b!=null)){var l=k.length%e;
var h=parseInt(Math.floor(k.length/e));var a="";if(l!=0){a+=k.substring(0,l);k=k.substring(l);}for(d=0;d<h;d++){if(!((l==0)&&(d==0))){a+=b;}a+=k.substring(0,e);k=k.substring(e);
}k=a;}k=String(k);if(k==""){k="0";}var s=k;if((t!=0)&&(o!="")){s+=String(p)+String(o);}return(s);};_cp2wizard.prettyPrintNumber=function(g,b,d,c,e){if(g==null){return("");
}var a=g.replace(/[^-0-9]*/gi,"");if(a==""){return("");}a=_cp2wizard.getNumberValue(g.replace(/[^-0-9.,]*/gi,""),b,d,c,e);a=_cp2wizard.formatValue(a,c,d,e,b);return(a);
};_cp2wizard.prettyPrintNumberByElement=function(c,b,e,d,h){var g=c.value;if(g==null){return("");}var a=g.replace(/[^-0-9]*/gi,"");if(a==""){return("");}a=_cp2wizard.getNumberValue(g.replace(/[^-0-9.,]*/gi,""),b,e,d,h);
a=_cp2wizard.formatValue(a,d,e,h,b);if(a.length>c.maxLength){c.maxLength=a.length;}c.value=a;return true;};_cp2wizard.prettyPrintCurrency=function(x,a,d,m,n,c,l,u,b,t){var h=document.forms[a];
var s=_cp2wizard.getNumberValue(x.value,".",m,d,n);var k=1;for(i=0;i<m;i++){k*=10;}s*=k;s=Math.round(s);s/=k;s=String(s);var q=s.indexOf(".");var v;var e;if(q!=-1){v=String(s.substring(0,q));
e=String(s.substring(q+1));}else{v=s;e="";}while(e.length<m){e=String(e)+String("0");}if(l!=null){l.value=v+"."+e;if(typeof(u)!="undefined"){h[u].value=l.value;}}if(b&&t){var p=h[t];
if(p&&p.options){var y=p.options[p.selectedIndex].value;h[b].value=y;}}if((d>0)&&(""!=n)&&(n!=null)){var w=v.length%d;var g=parseInt(Math.floor(v.length/d));var o="";
if(w!=0){o+=v.substring(0,w);v=v.substring(w);}for(i=0;i<g;i++){if(!((w==0)&&(i==0))){o+=n;}o+=v.substring(0,d);v=v.substring(d);}v=o;}if(m>0){x.value=String(v)+String(c)+String(e);
}else{x.value=String(v);}};_cp2wizard.checkMaxLength=function(b,a,c){if(b.selected&&a.shiftKey){return true;}var e=false;if(b.selected&&b.selectedLength>0){e=true;
}else{var d=document.layers?a.which:a.keyCode;if(d<32&&d!=13){e=true;}else{e=b.value.length<c;}}b.selected=false;return e;};if(typeof(String.prototype.startsWith)=="undefined"){String.prototype.startsWith=function(a){return(a==null?false:this.substring(0,a.length)==a);
};}function modulo11_check(e,d,h,l){if((e==null)||(e=="")||(e.length<d)){return(false);}if(isNaN(e.substring(d-1,d))){return(false);}var a=8;if((typeof(l)!="undefined")&&(l!=null)){a=parseInt(l)+1;
}var g=0;if((typeof(h)=="undefined")||(h==null)||(h=="left")){for(var c=(d-2);c>=0;c--){if((--a)<2){a=7;}var b=e.substring(c,c+1);if(isNaN(b)){return(false);}g+=parseInt(b)*a;
}}else{for(var c=0;c<(d-1);c++){if((--a)<2){a=7;}var b=e.substring(c,c+1);if(isNaN(b)){return(false);}g+=parseInt(b)*a;}}g=g%11;g=g<=1?0:(11-g);return(g==parseInt(e.substring(d-1,d)));
}var INVALID_CC="Invalid";function CheckCreditCardNum(e){var h=e.length;var d;var g=0;var b=1;var c;var k;var l;var a;var m;a="";for(c=(h-1);c>=0;--c){k=parseInt(e.charAt(c));
l=k*b;a+=k+" x "+b+"="+l;if(l>9){d=l%10;a+=" => "+1+" + "+d+"=";l=1+d;a+=l+" ";}a+="\n";g+=l;if(b==1){b++;}else{b--;}}a+="----------\nSum:   "+g+"\n";a="calculation not shown\n";
if(g%10){if(h==15){m=CheckFor15(e,0);if(m==INVALID_CC){alert(a+"The number: "+e+" is not valid! (CheckFor15 failed) ");return false;}}else{alert(a+"The number: "+e+" is not valid! (len!=10 && (sum%10=)"+(g%10)+")");
return false;}}switch(h){case 13:m=CheckFor13(e);break;case 14:m=CheckFor14(e);break;case 15:m=CheckFor15(e,1);break;case 16:m=CheckFor16(e);break;case 17:m=CheckFor17(e);
break;default:m=INVALID_CC;}if(m==INVALID_CC){alert(a+"The number: "+e+" is not valid!! ");return false;}else{a+="The number: "+e+" is valid!! \nand it looks like it is: "+m;
}alert(a);return true;}function CheckFor13(a){if(parseInt(a.charAt(0))==4){return"Visa";}return INVALID_CC;}function CheckFor14(a){if(parseInt(a.charAt(0))!=3){return INVALID_CC;
}if((parseInt(a.charAt(1))==6)||(parseInt(a.charAt(1))==8)){return"Diners Club/Carte Blanche";}if(!(parseInt(a.charAt(1)))){if((parseInt(a.charAt(2))>=0)&&(parseInt(a.charAt(2))<=5)){return"Diners Club/Carte Blanche";
}}return INVALID_CC;}function CheckFor15(b,a){if((b.charAt(0)==3)&&((b.charAt(1)==4)||(b.charAt(1)==7))&&a){return"American Express";}var c=parseInt(b.charAt(0))*1000;
c+=parseInt(b.charAt(1))*100;c+=parseInt(b.charAt(2))*10;c+=parseInt(b.charAt(3));if((c==2014)||(c==2149)){return"enRoute";}if(((c==2131)||(c==1800))&&a){return"JCB";
}return INVALID_CC;}function CheckFor16(e){e=String(e);var d=parseInt(e.charAt(0));var c=parseInt(e.charAt(1));switch(d){case 5:if((c>0)&&(c<6)){return"MasterCard";
}else{if(e.startsWith("591680")||e.startsWith("591681")||e.startsWith("591682")||e.startsWith("59136001")||e.startsWith("59168326")){return"Karanta";}else{return INVALID_CC;
}}break;case 4:return"Visa";break;case 6:if((c==0)&&(parseInt(e.charAt(2))==1)&&(parseInt(e.charAt(3))==1)){return"Discover";}else{return INVALID_CC;}break;case 3:return"JCB";
break;default:return INVALID_CC;break;}}function CheckFor17(a){a=String(a);if(a.startsWith("591999")||a.startsWith("544227")||a.startsWith("547611")||a.startsWith("545042")||a.startsWith("59139")||a.startsWith("59161")||a.startsWith("59163")||a.startsWith("59164")||a.startsWith("59170")||a.startsWith("59171")||a.startsWith("59172")||a.startsWith("59173")||a.startsWith("59178")||a.startsWith("59184")||a.startsWith("59176")||a.startsWith("59182")){return"Activa";
}else{return INVALID_CC;}}function LargeMathObject(){this.add=function(g,e){var o="";var k=String(g).replace(new RegExp("^0+","gi"),"");var h=String(e).replace(new RegExp("^0+","gi"),"");
var n=0;for(var d=0;d<Math.max(k.length,h.length);d++){var c=(k.length-1)-d;var b=(h.length-1)-d;var m=c<0?0:k.substr(c,1);var l=b<0?0:h.substr(b,1);var a=parseInt(m)+parseInt(l)+parseInt(n);
a=String(a);if(a.length>1){n=a.substr(0,a.length-1);a=a.substr(a.length-1);}else{n=0;}o=String(a)+String(o);}o=String(n)+String(o);return o.replace(new RegExp("^0+","gi"),"");
};this.multiply=function(k,h){var s="0";var n=String(k).replace(new RegExp("^0+","gi"),"");var m=String(h).replace(new RegExp("^0+","gi"),"");var b="";for(var g=0;
g<n.length;g++){var d=(n.length-1)-g;var q=n.substr(d,1);var p=0;var l="";for(var e=0;e<m.length;e++){var c=(m.length-1)-e;var o=m.substr(c,1);var a=parseInt(q)*parseInt(o)+parseInt(p);
a=String(a);if(a.length>1){p=a.substr(0,a.length-1);a=a.substr(a.length-1);}else{p=0;}l=String(a)+String(l);}l=String(p)+String(l);l=String(l).replace(new RegExp("^0+","gi"),"");
s=this.add(s,String(l)+String(b));b=String(b)+String(0);}return s.replace(new RegExp("^0+","gi"),"");};this.subtract=function(g,e){var o="";var k=String(g).replace(new RegExp("^0+","gi"),"");
var h=String(e).replace(new RegExp("^0+","gi"),"");var n=0;for(var d=0;d<Math.max(k.length,h.length);d++){var c=(k.length-1)-d;var b=(h.length-1)-d;var m=c<0?0:parseInt(k.substr(c,1))-parseInt(n);
var l=b<0?0:parseInt(h.substr(b,1));n=0;while(m<l){n++;m+=10;}var a=String(m-l);o=String(a)+String(o);}o=String(n)+String(o);return o.replace(new RegExp("^0+","gi"),"");
};this.integerDivide=function(d,h){var b="";var c="";for(var g=0;g<d.length;g++){var a=(String(c)+String(d.substr(g,1))).replace(new RegExp("^0+","gi"),"");a=a==""?0:parseInt(a);
var e=parseInt(a/h);b=String(b)+String(e);c=a-(e*h);}b=b.replace(new RegExp("^0+","gi"),"");return b==""?"0":String(b);};this.modulus=function(b,e){var c=this.integerDivide(b,e);
var a=this.multiply(c,e);return this.subtract(b,a);};}var LargeMath=new LargeMathObject();function isEMSOValid(a){return(modulo11_check(a,13,"right"));}function isZZZSValid(a){return(modulo11_check(a,9,"left"));
}function isDavcnaValid(a){return(modulo11_check(a,8,"right",8));}function isEmailValid(b){if(RegExp){var a=new RegExp('^(([^-_.<>()\\[\\]\\\\.,;:\\"\\s@][^<>()\\[\\]\\\\.,;:\\"\\s@]*(\\.[^<>()\\[\\]\\\\.,;:\\s@]+)*)|(\\".+\\"))@((\\[((([01]?[0-9]{0,2})|(2(([0-4][0-9])|(5[0-5]))))\\.){3}(([01]?[0-9]{0,2})|(2(([0-4][0-9])|(5[0-5]))))\\])|(([a-zA-Z\\-0-9]+\\.)+((com|edu|gov|int|mil|net|org|biz|info|name|pro|aero|coop|museum|asia|cat|jobs|mail|mobi|post|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw))))$',"ig");
return(a.exec(b)!=null);}else{var c=true;if(c&&(b.length<6)){c=false;}if(c&&(b.indexOf("@")==-1)){c=false;}if(c&&(b.indexOf(".")==-1)){c=false;}return(c);}}function isBankAccountValid(d){if((d==null)||(d=="")){return false;
}else{d=String(d).replace(new RegExp("[^0-9]","gi"),"");if(d.length!=15){return false;}var c=d.substring(0,13);var b=d.substring(13);var a=LargeMath.modulus(String(c)+String("00"),97);
return(98-a)==b;}}function isCCValid(d){if(d==null){return false;}d=d.replace(new RegExp("[^0-9]","gi"),"");var g=d.length;var c;var e=0;var a=1;var b;var h;var k;
var l;for(b=(g-1);b>=0;--b){h=parseInt(d.charAt(b));k=h*a;if(k>9){c=k%10;k=1+c;}e+=k;if(a==1){a++;}else{a--;}}if(e%10){if(g==15){l=CheckFor15(d,0);if(l==INVALID_CC){return false;
}}else{return false;}}switch(g){case 13:l=CheckFor13(d);break;case 14:l=CheckFor14(d);break;case 15:l=CheckFor15(d,1);break;case 16:l=CheckFor16(d);break;default:l=INVALID_CC;
}if(l==INVALID_CC){return false;}return true;}function getCheckedValue(b){if(!b){return"";}var c=b.length;if(c==undefined){if(b.checked){return b.value;}else{return"";
}}for(var a=0;a<c;a++){if(b[a].checked){return b[a].value;}}return"";}function validateNarocilo(a,b){var c=getCheckedValue(document.forms[a].elements[b]);switch(c){case"web":if(isEmpty(document.forms[a].elements["offer-web-name"])){alert("Prosimo, vnesite ime.");
return false;}if(isEmpty(document.forms[a].elements["offer-web-surname"])){alert("Prosimo, vnesite priimek.");return false;}if(isEmpty(document.forms[a].elements["offer-web-email"])||!(isEmailValid(document.forms[a].elements["offer-web-email"].value))){alert("Prosimo, vnesite veljaven e-mail naslov.");
return false;}break;case"email":if(isEmpty(document.forms[a].elements["offer-email-name"])){alert("Prosimo, vnesite ime.");return false;}if(isEmpty(document.forms[a].elements["offer-email-surname"])){alert("Prosimo, vnesite priimek.");
return false;}if(isEmpty(document.forms[a].elements["offer-email-email"])||!(isEmailValid(document.forms[a].elements["offer-email-email"].value))){alert("Prosimo, vnesite veljaven e-mail naslov.");
return false;}break;case"phone":if(isEmpty(document.forms[a].elements["offer-phone-name"])){alert("Prosimo, vnesite ime.");return false;}if(isEmpty(document.forms[a].elements["offer-phone-surname"])){alert("Prosimo, vnesite priimek.");
return false;}if(isEmpty(document.forms[a].elements["offer-phone-phone"])){alert("Prosimo, vnesite telefonsko številko.");return false;}if(urnikUndefined(document.forms[a].elements["offer-phone-unit"])){alert("Prosimo, izberite enoto, v katero nas želite poklicati.");
return false;}if(urnikUndefined(document.forms[a].elements["offer-phone-date-div"])){alert("Prosimo, izberite datum klica.");return false;}if(urnikUndefined(document.forms[a].elements["offer-phone-time-div"])){alert("Prosimo, izberite čas klica.");
return false;}break;case"bank":if(isEmpty(document.forms[a].elements["offer-bank-name"])){alert("Prosimo, vnesite ime.");return false;}if(isEmpty(document.forms[a].elements["offer-bank-surname"])){alert("Prosimo, vnesite priimek.");
return false;}if(urnikUndefined(document.forms[a].elements["offer-bank-unit"])){alert("Prosimo, izberite enoto, kjer nas želite obsikati.");return false;}if(urnikUndefined(document.forms[a].elements["offer-bank-date-div"])){alert("Prosimo, izberite datum obiska.");
return false;}if(urnikUndefined(document.forms[a].elements["offer-bank-time-div"])){alert("Prosimo, izberite čas obiska.");return false;}break;}if(c==""){alert("Prosimo, izberite enega izmed načinov za prejem ponudbe.");
return false;}else{return true;}}function isEmpty(a){return((a.value.length==0)||(a.value==null));}function urnikUndefined(a){return((a.value=="-")||(a.value=="")||(a.value==null));
}function validateZastaviteVprasanje(){var c=document.getElementById("parsek-tabview:question_name");var e=document.getElementById("parsek-tabview:question_surname");
var b=document.getElementById("parsek-tabview:question_email");var a=document.getElementById("parsek-tabview:question_phone");var d=document.getElementById("tab-handler:question_subject");
var g=document.getElementById("tab-handler:question_text");if(c!=null){if(c.value==""||c.value=="ime"){alert("Prosimo, vnesite ime");c.focus();return false;}if(e.value==""||e.value=="priimek"){alert("Prosimo, vnesite priimek");
e.focus();return false;}if((b.value==""||b.value=="e-naslov")&&(a.value==""||a.value=="telefon")){alert("Prosimo, vnesite e-naslov ali telefon");b.focus();return false;
}}if(d.value==""||d.value=="zadeva"){alert("Prosimo, vnesite zadevo");d.focus();return false;}if(g.value==""||g.value=="vsebina"){alert("Prosimo, vnesite vsebino");
g.focus();return false;}return true;}function lettersOnly(b){b=(b)?b:event;var a=(b.charCode)?b.charCode:((b.keyCode)?b.keyCode:((b.which)?b.which:0));if(a>31&&(a<65||a>90)&&(a<97||a>122)){alert("Enter letters only.");
return false;}return true;}function usLettersOnly(b){b=(b)?b:event;var a=(b.charCode)?b.charCode:((b.keyCode)?b.keyCode:((b.which)?b.which:0));if(a>31&&(a<65||a>90)&&(a<97||a>122)){return false;
}return true;}function numeralsOnly(b){b=(b)?b:((window.event)?event:null);if(b){var d=(b.target)?b.target:((b.srcElement)?b.srcElement:null);if(d){var a=(b.charCode)?b.charCode:0;
var e=(b.keyCode)?b.keyCode:0;var h=(b.which)?b.which:0;var g=b.ctrlKey;var c=b.shiftKey;if(!c&&((e>=48&&e<=57)||(e>=96&&e<=105))){return true;}else{if(e==8||e==9||e==13||e==35||e==36||e==37||e==39||e==46){return true;
}else{if(g&&(e==67||e==86||e==88)){return true;}}}}}return false;}function numeralsOnlyMinus(a){a=(a)?a:((window.event)?event:null);if(a){var b=(a.target)?a.target:((a.srcElement)?a.srcElement:null);
if(b){var c=a.keyCode;var d=(a.which)?a.which:0;if(numeralsOnly(a)){return true;}else{if((d==0&&c==189)||(d!=0&&c==173)||c==109){return true;}else{return false;}}}}return false;
}function numeralsOnlyPlus(a){a=(a)?a:((window.event)?event:null);if(a){var c=(a.target)?a.target:((a.srcElement)?a.srcElement:null);if(c){var d=a.keyCode;f=navigator.userAgent.search("Firefox");
var b=a.shiftKey;if(numeralsOnly(a)){return true;}else{if(d==107||(f>-1&&d==171)||(f<0&&d==187)||(b&&(f>-1&&d==171)||(f<0&&d==187))){return true;}else{return false;
}}}}return false;}function numeralsAndComasOnly(a){a=(a)?a:((window.event)?event:null);if(a){var b=(a.target)?a.target:((a.srcElement)?a.srcElement:null);if(b){var c=a.keyCode;
var d=(a.which)?a.which:0;if(numeralsOnly(a)){return true;}else{if(c==188||c==110){return true;}else{return false;}}}}return false;}function numeralsAndComasAndDotsOnly(a){a=(a)?a:((window.event)?event:null);
if(a){var b=(a.target)?a.target:((a.srcElement)?a.srcElement:null);if(b){var c=a.keyCode;var d=(a.which)?a.which:0;if(numeralsOnly(a)){return true;}else{if(c==188||c==110||c==190){return true;
}else{return false;}}}}return false;}function numeralsAndComasMinusOnly(a){a=(a)?a:((window.event)?event:null);if(a){var b=(a.target)?a.target:((a.srcElement)?a.srcElement:null);
if(b){var c=a.keyCode;var d=(a.which)?a.which:0;if(numeralsAndComasOnly(a)){return true;}else{if((d==0&&c==189)||(d!=0&&c==173)||c==109){return true;}else{return false;
}}}}return false;}function imposeMaxLength(c,a){c=(c)?c:event;var b=(c.charCode)?c.charCode:((c.keyCode)?c.keyCode:((c.which)?c.which:0));var e=(c.target)?c.target:((c.srcElement)?c.srcElement:null);
var d=0;if(e.value.length<a||(b<31)){return true;}if(b==35||b==36||b==37||b==38||b==39||b==40||b==45||b==46){return true;}return false;}function computeCharsLeft(c,b,a){c=(c)?c:event;
if(c){var d=(c.target)?c.target:((c.srcElement)?c.srcElement:null);if(d){var e=null;if(a!=null&&a.length>0){e=document.getElementById(a);}if(e!=null){e.innerHTML=(b-d.value.length);
}}}}function limitTextInput(b,a){if(b.value.length>a){b.value=b.value.substring(0,a);alert("Preveč besedila. Maksimalna dolžina je "+a+" znakov.");}}function onUPNZnesekComplete(){if((document.activeElement&&document.activeElement.tagName=="BODY")||!document.activeElement){document.getElementById("customContent:interniNalog:datumIzvrsitveDecor:datumIzvrsitveInputDate").focus();
}}function formatZnesek(b){var a=b.value;a=checkNum(a);a=num2money(a);a=replaceAll(a,",","#");a=replaceAll(a,".",",");a=replaceAll(a,"#",".");b.value=a;}function checkNum(g){var d=/^\d+(?:\.\d{0,2})$/;
if(!d.test(g)){g=replaceAll(g,".","");}g=replaceAll(g,",",".");var e="";var c="0123456789.-";var a;for(var b=0;b<g.length;b++){a=""+g.substring(b,b+1);if(c.indexOf(a)!="-1"){e+=a;
}}return e==""?"0":e;}function num2money(a){if(isNaN(Number(a))){return"ERROR";}var c=Boolean(a<0);a=Math.abs(a);var b=(a).toFixed(2);return c?"-"+b:b;}function replaceAll(e,c,d){var a=e;
var b=a.indexOf(c);while(b!=-1){a=a.replace(c,d);b=a.indexOf(c);}return a;}