diff --git a/charting_library/static/tv-chart.html b/charting_library/static/tv-chart.html
index 3383e88b..986040a6 100644
--- a/charting_library/static/tv-chart.html
+++ b/charting_library/static/tv-chart.html
@@ -8,6 +8,9 @@
+
+
+
@@ -102,31 +105,83 @@ function createChart() {
TradingView.Linking.bindToChartWidgetCollection(chartWidgetCollection);
+ var createLogo = function() {};
+ if (urlParams.logo) {
- chartWidget.withModel(null, function () {
- (function createLogo() {
+ createLogo = function () {
+ $('.onchart-custom-logo').remove();
+
+ var filename = (/\.png$/.test(urlParams.logo))
+ ? urlParams.logo
+ : urlParams.logo + '.png'
+ ;
+ var $logo = $(
+ '
' +
+ '
' +
+ ''
+ ).appendTo('.chart-widget');
+
+ var $img = $logo.find('img');
+
+ var additionLogoParams = ['left','bottom','width','height'];
+ for (var i = additionLogoParams.length - 1; i >= 0; i--) {
+ var param = additionLogoParams[i];
+ var paramWithPrefix = 'logo_' + param;
+ if (urlParams[paramWithPrefix]) {
+ if (param === 'left' || param === 'bottom') {
+ $logo.css(param, urlParams[paramWithPrefix]);
+ } else {
+ $img.css(param, urlParams[paramWithPrefix]);
+ }
+ }
+ };
+ }
+
+ } else {
+
+ createLogo = function () {
$('.onchart-tv-logo').remove();
- $('.tv-main-panel').append(
- '
'+
+ var colorClass = urlParams.theme ? urlParams.theme.toLowerCase() : ''; // black, white, blue, grey
+ var $logo = $('
'
- );
- })();
+ '
')
+ .on('mouseenter', function() { $(this).addClass('expanded') })
+ .on('mouseleave', function() { $(this).removeClass('expanded') })
+ .appendTo('.chart-widget');
+ ;
- });
+ function showAndHideLogo(data) {
+ if (data.method == 'series_completed') {
+ chartWidget.model().mainSeries().onDataLoaded().unsubscribe(this, showAndHideLogo);
+ setTimeout(function() {
+ $('.onchart-tv-logo').addClass('expanded');
+ }, 0.5 * 1000);
+ setTimeout(function() {
+ var $logo = $('.onchart-tv-logo');
+ if ($logo.is(':not(:hover)')) {
+ $logo.removeClass('expanded');
+ }
+ }, 20 * 1000);
+ }
+ }
+
+ chartWidget.model().mainSeries().onDataLoaded().subscribe(this, showAndHideLogo);
+ };
+
+ }
+
+ chartWidget.withModel(null, createLogo);
TradingView.tokenInitialized.resolve();
diff --git a/charting_library/static/tv-chart.min.js b/charting_library/static/tv-chart.min.js
index 89eb1525..99107093 100644
--- a/charting_library/static/tv-chart.min.js
+++ b/charting_library/static/tv-chart.min.js
@@ -1,93 +1,93 @@
-(function(){var a=function(){};"undefined"===typeof window.console&&(window.console={});for(var b=window.console,c="dir log time info warn count clear debug error group trace assert dirxml profile timeEnd groupEnd profileEnd timeStamp exception table notifyFirebug groupCollapsed getFirebugElement firebug userObjects".split(" "),d=0,e=c.length;d
e;e+=2)c||(d-=parseFloat(r.css(a,"padding"+la[e]))||0),d="margin"===c?d+(parseFloat(r.css(a,c+la[e]))||0):d-(parseFloat(r.css(a,"border"+la[e]+"Width"))||0);return d+"px"}d=ia(a,b);if(0>d||null==d)d=a.style[b];if(ya.test(d))return d;d=parseFloat(d)||0;if(c)for(;4>e;e+=2)d+=parseFloat(r.css(a,"padding"+la[e]))||0,"padding"!==c&&(d+=parseFloat(r.css(a,"border"+la[e]+"Width"))||0),"margin"===c&&(d+=parseFloat(r.css(a,c+la[e]))||0);return d+"px"}function w(a){return function(b,c){"string"!==
-typeof b&&(c=b,b="*");if(r.isFunction(c))for(var d=b.toLowerCase().split(ib),e=0,f=d.length,g,h;e").appendTo(b),d=c.css("display");c.remove();if("none"===d||""===d)ja||(ja=F.createElement("iframe"),ja.frameBorder=ja.width=ja.height=0),b.appendChild(ja),wa&&ja.createElement||(wa=(ja.contentWindow||ja.contentDocument).document,wa.write((r.support.boxModel?"":"")+""),wa.close()),c=wa.createElement(a),wa.body.appendChild(c),d=r.css(c,"display"),b.removeChild(ja);$a[a]=d}return $a[a]}function E(a){return r.isWindow(a)?a:
-9===a.nodeType?a.defaultView||a.parentWindow:!1}var F=a.document,J=a.navigator,L=a.location,r=function(){function c(){if(!d.isReady){try{F.documentElement.doScroll("left")}catch(a){setTimeout(c,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,k=/\S/,l=/^\s+/,m=/\s+$/,q=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,w=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,r=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
-v=/(?:^|:|,)(?:\s*\[)+/g,u=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,C=/(msie) ([\w.]+)/,A=/(mozilla)(?:.*? rv:([\w.]+))?/,N=/-([a-z]|[0-9])/ig,B=/^-ms-/,z=function(a,b){return(b+"").toUpperCase()},D=J.userAgent,da,I,Q=Object.prototype.toString,K=Object.prototype.hasOwnProperty,G=Array.prototype.push,E=Array.prototype.slice,L=String.prototype.trim,ra=Array.prototype.indexOf,W={};d.fn=d.prototype={constructor:d,init:function(a,c,e){var f;if(!a)return this;if(a.nodeType)return this.context=
-this[0]=a,this.length=1,this;if("body"===a&&!c&&F.body)return this.context=F,this[0]=F.body,this.selector=a,this.length=1,this;if("string"===typeof a){f="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:h.exec(a);if(!f||!f[1]&&c)return!c||c.jquery?(c||e).find(a):this.constructor(c).find(a);if(f[1])return e=(c=c instanceof d?c[0]:c)?c.ownerDocument||c:F,(a=q.exec(a))?d.isPlainObject(c)?(a=[F.createElement(a[1])],d.fn.attr.call(a,c,!0)):a=[e.createElement(a[1])]:(a=d.buildFragment([f[1]],
-[e]),a=(a.cacheable?d.clone(a.fragment):a.fragment).childNodes),d.merge(this,a);if((c=F.getElementById(f[2]))&&c.parentNode){if(c.id!==f[2])return e.find(a);this.length=1;this[0]=c}this.context=F;this.selector=a;return this}if(d.isFunction(a))return e.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return null==a?this.toArray():
-0>a?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?G.apply(e,a):d.merge(e,a);e.prevObject=this;e.context=this.context;"find"===b?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady();da.add(a);return this},eq:function(a){a=+a;return-1===a?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},
-slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:G,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a,c,e,f,g,h=arguments[0]||{},k=1,l=arguments.length,m=!1;"boolean"===typeof h&&(m=h,h=arguments[1]||{},k=2);"object"===typeof h||d.isFunction(h)||(h={});
-l===k&&(h=this,--k);for(;kc?Math.max(0,d+c):c:0;ca.indexOf("compatible")&&A.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,
-a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(c,e){e&&e instanceof d&&!(e instanceof a)&&(e=a(e));return d.fn.init.call(this,c,e,b)};a.fn.init.prototype=a.fn;var b=a(F);return a},browser:{}});d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){W["[object "+b+"]"]=b.toLowerCase()});D=d.uaMatch(D);D.browser&&(d.browser[D.browser]=!0,d.browser.version=D.version);d.browser.webkit&&(d.browser.safari=!0);k.test("\u00a0")&&
-(l=/^[\s\xA0]+/,m=/[\s\xA0]+$/);g=d(F);F.addEventListener?I=function(){F.removeEventListener("DOMContentLoaded",I,!1);d.ready()}:F.attachEvent&&(I=function(){"complete"===F.readyState&&(F.detachEvent("onreadystatechange",I),d.ready())});return d}(),N={};r.Callbacks=function(a){a=a?N[a]||c(a):{};var d=[],e=[],f,g,h,k,l,m,q=function(b){var c,e,f,g;c=0;for(e=b.length;ce;e+=2)c||(d-=parseFloat(r.css(a,"padding"+ma[e]))||0),d="margin"===c?d+(parseFloat(r.css(a,c+ma[e]))||0):d-(parseFloat(r.css(a,"border"+ma[e]+"Width"))||0);return d+"px"}d=ia(a,b);if(0>d||null==d)d=a.style[b];if(xa.test(d))return d;d=parseFloat(d)||0;if(c)for(;4>e;e+=2)d+=parseFloat(r.css(a,"padding"+ma[e]))||0,"padding"!==c&&(d+=parseFloat(r.css(a,"border"+ma[e]+"Width"))||0),"margin"===c&&(d+=parseFloat(r.css(a,c+ma[e]))||0);return d+"px"}function w(a){return function(b,c){"string"!==
+typeof b&&(c=b,b="*");if(r.isFunction(c))for(var d=b.toLowerCase().split(ib),e=0,f=d.length,g,h;e").appendTo(b),d=c.css("display");c.remove();if("none"===d||""===d)ja||(ja=E.createElement("iframe"),ja.frameBorder=ja.width=ja.height=0),b.appendChild(ja),va&&ja.createElement||(va=(ja.contentWindow||ja.contentDocument).document,va.write((r.support.boxModel?"":"")+""),va.close()),c=va.createElement(a),va.body.appendChild(c),d=r.css(c,"display"),b.removeChild(ja);$a[a]=d}return $a[a]}function F(a){return r.isWindow(a)?a:
+9===a.nodeType?a.defaultView||a.parentWindow:!1}var E=a.document,L=a.navigator,G=a.location,r=function(){function c(){if(!d.isReady){try{E.documentElement.doScroll("left")}catch(a){setTimeout(c,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,k=/\S/,l=/^\s+/,r=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,q=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
+v=/(?:^|:|,)(?:\s*\[)+/g,u=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,C=/(msie) ([\w.]+)/,B=/(mozilla)(?:.*? rv:([\w.]+))?/,z=/-([a-z]|[0-9])/ig,A=/^-ms-/,I=function(a,b){return(b+"").toUpperCase()},Q=L.userAgent,J,O,D=Object.prototype.toString,S=Object.prototype.hasOwnProperty,K=Array.prototype.push,G=Array.prototype.slice,F=String.prototype.trim,qa=Array.prototype.indexOf,X={};d.fn=d.prototype={constructor:d,init:function(a,c,e){var f;if(!a)return this;if(a.nodeType)return this.context=
+this[0]=a,this.length=1,this;if("body"===a&&!c&&E.body)return this.context=E,this[0]=E.body,this.selector=a,this.length=1,this;if("string"===typeof a){f="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:h.exec(a);if(!f||!f[1]&&c)return!c||c.jquery?(c||e).find(a):this.constructor(c).find(a);if(f[1])return e=(c=c instanceof d?c[0]:c)?c.ownerDocument||c:E,(a=m.exec(a))?d.isPlainObject(c)?(a=[E.createElement(a[1])],d.fn.attr.call(a,c,!0)):a=[e.createElement(a[1])]:(a=d.buildFragment([f[1]],
+[e]),a=(a.cacheable?d.clone(a.fragment):a.fragment).childNodes),d.merge(this,a);if((c=E.getElementById(f[2]))&&c.parentNode){if(c.id!==f[2])return e.find(a);this.length=1;this[0]=c}this.context=E;this.selector=a;return this}if(d.isFunction(a))return e.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return G.call(this,0)},get:function(a){return null==a?this.toArray():
+0>a?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?K.apply(e,a):d.merge(e,a);e.prevObject=this;e.context=this.context;"find"===b?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady();J.add(a);return this},eq:function(a){a=+a;return-1===a?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},
+slice:function(){return this.pushStack(G.apply(this,arguments),"slice",G.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:K,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a,c,e,f,g,h=arguments[0]||{},k=1,l=arguments.length,r=!1;"boolean"===typeof h&&(r=h,h=arguments[1]||{},k=2);"object"===typeof h||d.isFunction(h)||(h={});
+l===k&&(h=this,--k);for(;kc?Math.max(0,d+c):c:0;ca.indexOf("compatible")&&B.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,
+a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(c,e){e&&e instanceof d&&!(e instanceof a)&&(e=a(e));return d.fn.init.call(this,c,e,b)};a.fn.init.prototype=a.fn;var b=a(E);return a},browser:{}});d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){X["[object "+b+"]"]=b.toLowerCase()});Q=d.uaMatch(Q);Q.browser&&(d.browser[Q.browser]=!0,d.browser.version=Q.version);d.browser.webkit&&(d.browser.safari=!0);k.test("\u00a0")&&
+(l=/^[\s\xA0]+/,r=/[\s\xA0]+$/);g=d(E);E.addEventListener?O=function(){E.removeEventListener("DOMContentLoaded",O,!1);d.ready()}:E.attachEvent&&(O=function(){"complete"===E.readyState&&(E.detachEvent("onreadystatechange",O),d.ready())});return d}(),O={};r.Callbacks=function(a){a=a?O[a]||c(a):{};var d=[],e=[],f,g,h,k,l,m,q=function(b){var c,e,f,g;c=0;for(e=b.length;c=f&&a&&r.isFunction(a.promise)?a:r.Deferred(),l=k.promise();if(1a";c=l.getElementsByTagName("*");d=l.getElementsByTagName("a")[0];if(!c||!c.length||!d)return{};e=F.createElement("select");f=e.appendChild(F.createElement("option"));c=l.getElementsByTagName("input")[0];b={leadingWhitespace:3===l.firstChild.nodeType,tbody:!l.getElementsByTagName("tbody").length,htmlSerialize:!!l.getElementsByTagName("link").length,
-style:/top/.test(d.getAttribute("style")),hrefNormalized:"/a"===d.getAttribute("href"),opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:"on"===c.value,optSelected:f.selected,getSetAttribute:"t"!==l.className,enctype:!!F.createElement("form").enctype,html5Clone:"<:nav>"!==F.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,
-pixelMargin:!0};r.boxModel=b.boxModel="CSS1Compat"===F.compatMode;c.checked=!0;b.noCloneChecked=c.cloneNode(!0).checked;e.disabled=!0;b.optDisabled=!f.disabled;try{delete l.test}catch(m){b.deleteExpando=!1}!l.addEventListener&&l.attachEvent&&l.fireEvent&&(l.attachEvent("onclick",function(){b.noCloneEvent=!1}),l.cloneNode(!0).fireEvent("onclick"));c=F.createElement("input");c.value="t";c.setAttribute("type","radio");b.radioValue="t"===c.value;c.setAttribute("checked","checked");c.setAttribute("name",
-"t");l.appendChild(c);d=F.createDocumentFragment();d.appendChild(l.lastChild);b.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked;b.appendChecked=c.checked;d.removeChild(c);d.appendChild(l);if(l.attachEvent)for(h in{submit:1,change:1,focusin:1})c="on"+h,k=c in l,k||(l.setAttribute(c,"return;"),k="function"===typeof l[c]),b[h+"Bubbles"]=k;d.removeChild(l);d=e=f=l=c=null;r(function(){var c,d,e,f,h=F.getElementsByTagName("body")[0];h&&(c=F.createElement("div"),c.style.cssText="padding:0;margin:0;border:0;visibility:hidden;width:0;height:0;position:static;top:0;margin-top:1px",
-h.insertBefore(c,h.firstChild),l=F.createElement("div"),c.appendChild(l),l.innerHTML="",g=l.getElementsByTagName("td"),k=0===g[0].offsetHeight,g[0].style.display="",g[1].style.display="none",b.reliableHiddenOffsets=k&&0===g[0].offsetHeight,a.getComputedStyle&&(l.innerHTML="",d=F.createElement("div"),d.style.width="0",d.style.marginRight="0",l.style.width="2px",l.appendChild(d),b.reliableMarginRight=0===(parseInt((a.getComputedStyle(d,
+S.call(arguments,0):b;--h||k.resolveWith(k,d)}}function c(a){return function(b){g[a]=1=f&&a&&r.isFunction(a.promise)?a:r.Deferred(),l=k.promise();if(1a";c=l.getElementsByTagName("*");d=l.getElementsByTagName("a")[0];if(!c||!c.length||!d)return{};e=E.createElement("select");f=e.appendChild(E.createElement("option"));c=l.getElementsByTagName("input")[0];b={leadingWhitespace:3===l.firstChild.nodeType,tbody:!l.getElementsByTagName("tbody").length,htmlSerialize:!!l.getElementsByTagName("link").length,
+style:/top/.test(d.getAttribute("style")),hrefNormalized:"/a"===d.getAttribute("href"),opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:"on"===c.value,optSelected:f.selected,getSetAttribute:"t"!==l.className,enctype:!!E.createElement("form").enctype,html5Clone:"<:nav>"!==E.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,
+pixelMargin:!0};r.boxModel=b.boxModel="CSS1Compat"===E.compatMode;c.checked=!0;b.noCloneChecked=c.cloneNode(!0).checked;e.disabled=!0;b.optDisabled=!f.disabled;try{delete l.test}catch(m){b.deleteExpando=!1}!l.addEventListener&&l.attachEvent&&l.fireEvent&&(l.attachEvent("onclick",function(){b.noCloneEvent=!1}),l.cloneNode(!0).fireEvent("onclick"));c=E.createElement("input");c.value="t";c.setAttribute("type","radio");b.radioValue="t"===c.value;c.setAttribute("checked","checked");c.setAttribute("name",
+"t");l.appendChild(c);d=E.createDocumentFragment();d.appendChild(l.lastChild);b.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked;b.appendChecked=c.checked;d.removeChild(c);d.appendChild(l);if(l.attachEvent)for(h in{submit:1,change:1,focusin:1})c="on"+h,k=c in l,k||(l.setAttribute(c,"return;"),k="function"===typeof l[c]),b[h+"Bubbles"]=k;d.removeChild(l);d=e=f=l=c=null;r(function(){var c,d,e,f,h=E.getElementsByTagName("body")[0];h&&(c=E.createElement("div"),c.style.cssText="padding:0;margin:0;border:0;visibility:hidden;width:0;height:0;position:static;top:0;margin-top:1px",
+h.insertBefore(c,h.firstChild),l=E.createElement("div"),c.appendChild(l),l.innerHTML="",g=l.getElementsByTagName("td"),k=0===g[0].offsetHeight,g[0].style.display="",g[1].style.display="none",b.reliableHiddenOffsets=k&&0===g[0].offsetHeight,a.getComputedStyle&&(l.innerHTML="",d=E.createElement("div"),d.style.width="0",d.style.marginRight="0",l.style.width="2px",l.appendChild(d),b.reliableMarginRight=0===(parseInt((a.getComputedStyle(d,
null)||{marginRight:0}).marginRight,10)||0)),"undefined"!==typeof l.style.zoom&&(l.innerHTML="",l.style.width=l.style.padding="1px",l.style.border=0,l.style.overflow="hidden",l.style.display="inline",l.style.zoom=1,b.inlineBlockNeedsLayout=3===l.offsetWidth,l.style.display="block",l.style.overflow="visible",l.innerHTML="",b.shrinkWrapBlocks=3!==l.offsetWidth),l.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:0;visibility:hidden;",
l.innerHTML="",d=l.firstChild,e=d.firstChild,f=d.nextSibling.firstChild.firstChild,f={doesNotAddBorder:5!==e.offsetTop,doesAddBorderForTableAndCells:5===
f.offsetTop},e.style.position="fixed",e.style.top="20px",f.fixedPosition=20===e.offsetTop||15===e.offsetTop,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",f.subtractsBorderForOverflowNotVisible=-5===e.offsetTop,f.doesNotIncludeMarginInBodyOffset=1!==h.offsetTop,a.getComputedStyle&&(l.style.marginTop="1%",b.pixelMargin="1%"!==(a.getComputedStyle(l,null)||{marginTop:0}).marginTop),"undefined"!==typeof c.style.zoom&&(c.style.zoom=1),h.removeChild(c),l=null,r.extend(b,
-f))});return b}();var W=/^(?:\{.*\}|\[.*\])$/,R=/([A-Z])/g;r.extend({cache:{},uuid:0,expando:"jQuery"+(r.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?r.cache[a[r.expando]]:a[r.expando];return!!a&&!e(a)},data:function(a,c,d,e){if(r.acceptData(a)){var f;f=r.expando;var g="string"===typeof c,h=a.nodeType,k=h?r.cache:a,l=h?a[f]:a[f]&&f,m="events"===c;if(l&&k[l]&&(m||e||k[l].data)||!g||d!==b){l||
+f))});return b}();var X=/^(?:\{.*\}|\[.*\])$/,R=/([A-Z])/g;r.extend({cache:{},uuid:0,expando:"jQuery"+(r.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?r.cache[a[r.expando]]:a[r.expando];return!!a&&!e(a)},data:function(a,c,d,e){if(r.acceptData(a)){var f;f=r.expando;var g="string"===typeof c,h=a.nodeType,k=h?r.cache:a,l=h?a[f]:a[f]&&f,m="events"===c;if(l&&k[l]&&(m||e||k[l].data)||!g||d!==b){l||
(h?a[f]=l=++r.uuid:l=f);k[l]||(k[l]={},h||(k[l].toJSON=r.noop));if("object"===typeof c||"function"===typeof c)e?k[l]=r.extend(k[l],c):k[l].data=r.extend(k[l].data,c);f=a=k[l];e||(a.data||(a.data={}),a=a.data);d!==b&&(a[r.camelCase(c)]=d);if(m&&!a[c])return f.events;g?(d=a[c],null==d&&(d=a[r.camelCase(c)])):d=a;return d}}},removeData:function(a,b,c){if(r.acceptData(a)){var d,f,g,h=r.expando,k=a.nodeType,l=k?r.cache:a,m=k?a[h]:h;if(l[m]){if(b&&(d=c?l[m]:l[m].data)){r.isArray(b)||(b in d?b=[b]:(b=r.camelCase(b),
b=b in d?[b]:b.split(" ")));f=0;for(g=b.length;fd)return null;a=g?d:0;for(c=g?d+1:f.length;ag.indexOf(":")?"on"+g:"",e){if(c.result=b,c.target||(c.target=e),d=null!=d?r.makeArray(d):[],d.unshift(c),m=r.event.special[g]||{},!m.trigger||!1!==m.trigger.apply(e,d)){n=[[e,m.bindType||g]];if(!f&&
-!m.noBubble&&!r.isWindow(e)){q=m.delegateType||g;h=ba.test(q+g)?e:e.parentNode;for(l=null;h;h=h.parentNode)n.push([h,q]),l=h;l&&l===e.ownerDocument&&n.push([l.defaultView||l.parentWindow||a,q])}for(l=0;le&&k.push({elem:this,matches:d.slice(e)});for(l=0;le&&k.push({elem:this,matches:d.slice(e)});for(l=0;l+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString,h=!1,k=!0,l=/\\/g,
-m=/\r\n/g,q=/\W/;[0,0].sort(function(){k=!1;return 0});var n=function(a,b,c,e){c=c||[];var f=b=b||F;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return c;var h,k,l,m,q,w=!0,r=n.isXML(b),s=[],A=a;do if(d.exec(""),h=d.exec(A))if(A=h[3],s.push(h[1]),h[2]){m=h[3];break}while(h);if(1+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString,h=!1,k=!0,l=/\\/g,
+m=/\r\n/g,q=/\W/;[0,0].sort(function(){k=!1;return 0});var n=function(a,b,c,e){c=c||[];var f=b=b||E;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return c;var h,k,l,r,m,q=!0,w=n.isXML(b),s=[],C=a;do if(d.exec(""),h=d.exec(C))if(C=h[3],s.push(h[1]),h[2]){r=h[3];break}while(h);if(1":function(a,b){var c,d="string"===typeof b,e=0,f=a.length;if(d&&!q.test(b))for(b=b.toLowerCase();ec[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,
b,c,d){var e=b[1],f=v.filters[e];if(f)return f(a,c,b,d);if("contains"===e)return 0<=(a.textContent||a.innerText||w([a])||"").indexOf(b[3]);if("not"===e){b=b[3];c=0;for(d=b.length;c";d.insertBefore(a,d.firstChild);F.getElementById(c)&&(v.find.ID=function(a,c,d){if("undefined"!==typeof c.getElementById&&!d)return(c=c.getElementById(a[1]))?
-c.id===a[1]||"undefined"!==typeof c.getAttributeNode&&c.getAttributeNode("id").nodeValue===a[1]?[c]:b:[]},v.filter.ID=function(a,b){var c="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b});d.removeChild(a);d=a=null})();(function(){var a=F.createElement("div");a.appendChild(F.createComment(""));0";a.firstChild&&"undefined"!==typeof a.firstChild.getAttribute&&"#"!==a.firstChild.getAttribute("href")&&(v.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();F.querySelectorAll&&function(){var a=n,b=F.createElement("div");b.innerHTML="";if(!b.querySelectorAll||0!==b.querySelectorAll(".TEST").length){n=function(b,c,d,e){c=c||F;if(!e&&!n.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&
-(1===c.nodeType||9===c.nodeType)){if(f[1])return C(c.getElementsByTagName(b),d);if(f[2]&&v.find.CLASS&&c.getElementsByClassName)return C(c.getElementsByClassName(f[2]),d)}if(9===c.nodeType){if("body"===b&&c.body)return C([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return C([g],d)}else return C([],d)}try{return C(c.querySelectorAll(b),d)}catch(h){}}else if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){var f=c,k=(g=c.getAttribute("id"))||"__sizzle__",
-l=c.parentNode,m=/^\s*[+~]/.test(b);g?k=k.replace(/'/g,"\\$&"):c.setAttribute("id",k);m&&l&&(c=c.parentNode);try{if(!m||l)return C(c.querySelectorAll("[id='"+k+"'] "+b),d)}catch(q){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)n[c]=a[c];b=null}}();(function(){var a=F.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(F.createElement("div"),"div"),d=!1;try{b.call(F.documentElement,"[test!='']:sizzle")}catch(e){d=
-!0}n.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(d||!v.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=b.call(a,e);if(f||!c||a.document&&11!==a.document.nodeType)return f}}catch(g){}return 0