function g(a){throw a;}
var i=true,j=null,n=false,aa=aa||{},p=this,ba=j,ca=function(a,b,c){a=a.split(".");c=c||p;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&b!==undefined)c[d]=b;else c=c[d]?c[d]:(c[d]={})},r=function(a,b){a=a.split(".");b=b||p;for(var c;c=a.shift();)if(b[c])b=b[c];else return j;return b},da=function(){},ea=function(a){a.getInstance=function(){return a.eA||(a.eA=new a)}},fa=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof
Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b},
ga=function(a){return fa(a)=="array"},ha=function(a){var b=fa(a);return b=="array"||b=="object"&&typeof a.length=="number"},ia=function(a){return typeof a=="string"},ja=function(a){return typeof a=="number"},ka=function(a){return fa(a)=="function"},la=function(a){a=fa(a);return a=="object"||a=="array"||a=="function"},oa=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(ma))return a[ma];a[ma]||(a[ma]=++na);return a[ma]},ma="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36),na=0,
pa=function(a){var b=fa(a);if(b=="object"||b=="array"){if(a.clone)return a.clone.call(a);b=b=="array"?[]:{};for(var c in a)b[c]=pa(a[c]);return b}return a},t=function(a,b){var c=b||p;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}},qa=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=
Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}},ra=Date.now||function(){return(new Date).getTime()},sa=function(a){if(p.execScript)p.execScript(a,"JavaScript");else if(p.eval){if(ba==j){p.eval("var _et_ = 1;");if(typeof p._et_!="undefined"){delete p._et_;ba=i}else ba=n}if(ba)p.eval(a);else{var b=p.document,c=b.createElement("script");c.type="text/javascript";c.defer=n;c.appendChild(b.createTextNode(a));b.body.appendChild(c);b.body.removeChild(c)}}else g(Error("goog.globalEval not available"))},
u=function(a,b,c){ca(a,b,c)},v=function(a,b){function c(){}c.prototype=b.prototype;a.r=b.prototype;a.prototype=new c;a.prototype.constructor=a};Function.prototype.bind=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return t.apply(j,b)}else return t(this,a)};Function.prototype.inherits=function(a){v(this,a)};var ta=n;function ua(a){va(a,0)}function wa(a){try{g(a)}catch(b){xa(b)}}function xa(a,b){b="Javascript exception: "+(b?b:"")+" "+a;if(ya())b+=" "+a.name+": "+a.message+" ("+a.number+")";var c="";if(typeof a=="string")c=a+"\n";else for(var d in a)try{c+=d+": "+a[d]+"\n"}catch(e){}c+=za(xa.caller);va(b+"\n"+c,1)}var Aa=/function (\w+)/;function Ba(a){if(a=Aa.exec(String(a)))return a[1];return""}
function za(a){try{if(!ya()&&!Ca()&&Da("mozilla"))return Error().stack;if(!a)return"";for(var b="- "+Ba(a)+"(",c=0;c<a.arguments.length;c++){if(c>0)b+=", ";var d=String(a.arguments[c]);if(d.length>40)d=d.substr(0,40)+"...";b+=d}b+=")\n";b+=za(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var Ea,Fa=j,Ga=n;
function Ha(){if((Fa==j||Fa.closed)&&!Ga)try{Ga=i;Fa=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");Fa.blur();Fa.document.open();Ga=n;var a="<font color=#ff0000><b>To turn off this debugging window,hit 'D' inside the main caribou window, then close this window.</b></font><br>";Ia(a)}catch(b){}}
function va(a,b){if(ta){try{var c=(new Date).getTime()-Ea,d="["+c+"] "+Ja(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";Fa.focus()}}catch(e){}Ia(d)}else typeof Ka!="undefined"&&Ka(Ja(a))}function Ia(a){if(ta)try{Ha();Fa.document.write(a);Fa.scrollTo(0,1000000)}catch(b){}};function Da(a){if(a in La)return La[a];return La[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var La={};function ya(){return Da("msie")&&!window.opera}function Ca(){return Da("safari")||Da("konqueror")}function Ma(a){if(typeof Error!="undefined")g(new Error(a||"Assertion Failed"));else g(a)}function Na(a){a=a||"Assertion failed";Oa(wa)&&wa(a+"\n");Ma(a)}function Pa(a,b){if(!a){b=b||"Assertion failed";Na(b)}}
function Qa(a,b,c){if(typeof a!=b){if(a||a=="")try{if(b==Ra[typeof a]||a instanceof b)return}catch(d){}var e=c===undefined;if(e){if(typeof b=="function")if(c=b.toString().match(/^\s*function\s+([^\s\{]+)/))b=c[1];c="AssertType failed: <"+a+"> not typeof "+b}Na(c)}}var Ra={string:String,number:Number,"boolean":Boolean};function Sa(a,b){(a=a.document.getElementById(b))||wa("Element "+b+" not found.");return a}function Ta(a){try{return a.parentNode}catch(b){return a}}
function Ua(a,b){do{if(a===b)return i;b=Ta(b)}while(b&&b!==document.body);return n}function Va(a,b,c){a=a.document.createElement(c);b.appendChild(a);return a}function Wa(a,b,c){var d=a.document.getElementById(b);if(!d){d=Va(a,a.document.body,"div");d.innerHTML="<iframe id="+b+" name="+b+" src="+c+"></iframe>";d=Sa(a,b)}return d}
var Xa={Vk:function(a){return a.document.body.scrollTop},Wk:function(a){return a.document.documentElement.scrollTop},g:function(a){return a.pageYOffset}},Ya={Vk:function(a){return a.document.body.scrollLeft},Wk:function(a){return a.document.documentElement.scrollLeft},g:function(a){return a.pageXOffset}},Za={Vk:function(a){return a.document.body.clientWidth},Wk:function(a){return a.document.documentElement.clientWidth},g:function(a){return a.innerWidth}},$a={Vk:function(a){return a.document.body.clientHeight},
Wk:function(a){return a.document.documentElement.clientHeight},g:function(a){return a.innerHeight}};function ab(a,b){try{if(Ca())return b.g(a);else if(!window.opera&&"compatMode"in a.document&&a.document.compatMode=="CSS1Compat")return b.Wk(a);else if(ya())return b.Vk(a)}catch(c){}return b.g(a)}var bb=/&/g,cb=/</g,db=/>/g;function Ja(a){if(!a)return"";return a.replace(bb,"&amp;").replace(cb,"&lt;").replace(db,"&gt;").replace(eb,"&quot;")}var eb=/\"/g,fb=/[\'\\\r\n\b\"<>&\u0085\u2028\u2029]/g;
function gb(a){return hb[a]}var hb;function ib(a){if(!hb){var b={};b["\\"]="\\\\";b["'"]="\\047";b["\u0008"]="\\b";b['"']="\\042";b["<"]="\\074";b[">"]="\\076";b["&"]="\\046";b["\n"]="\\n";b["\r"]="\\r";b["\u0085"]="\\205";b["\u2028"]="\\u2028";b["\u2029"]="\\u2029";hb=b}return"'"+a.toString().replace(fb,gb)+"'"}
function kb(a,b){try{if(Oa(b.selectionEnd))return b.selectionEnd;else if(a.document.selection&&a.document.selection.createRange){var c=a.document.selection.createRange();if(c.parentElement()!=b)return-1;var d=c.duplicate();d.moveToElementText(b);d.setEndPoint("EndToStart",c);var e=d.text.length;if(e>b.value.length)return-1;return e}else{ua("Unable to get cursor position for: "+navigator.userAgent);return b.value.length}}catch(f){xa(f,"Cannot get cursor pos")}return-1}
function lb(a,b,c){if(Oa(b.selectionEnd)&&Oa(b.selectionStart)){b.selectionStart=c;b.selectionEnd=c}else if(a.document.selection&&b.createTextRange){a=b.createTextRange();a.collapse(i);a.move("character",c);a.select()}}
function mb(a){var b={};b.clientX=a.clientX;b.clientY=a.clientY;b.pageX=a.pageX;b.pageY=a.pageY;b.type=a.type;b.srcElement=a.srcElement;b.target=a.target;b.cancelBubble=a.cancelBubble;b.explicitOriginalTarget=a.explicitOriginalTarget;b.button=a.button;b.shiftKey=a.shiftKey;b.ctrlKey=a.ctrlKey;return b}function Oa(a){return typeof a!="undefined"}function nb(a){var b;if(a.keyCode)b=a.keyCode;else if(a.which)b=a.which;return b}function ob(a){return document.getElementById(a)}
function pb(a){return document.all[a]}var w=document.getElementById?ob:pb;function qb(a){Pa(a,"func passed to GetFnName() is undefined");var b;if("name"in a)b=a.name;else{b=/\W*function\s+([\w\$]+)\(/.exec(a);if(!b)g(new Error("Cannot extract name from function: "+a));b=b[1];a.name=b}if(!b||b=="anonymous")g(new Error("Anonymous function has no name: "+a));return a.name}
function Ka(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=w("log");if(c){a="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=a+c.innerHTML}else window.status=a};function rb(a,b){for(a=a.toString();a.length<b;)a="0"+a;return a}var sb=[undefined,31,undefined,31,30,31,30,31,31,30,31,30,31];function tb(a,b){if(2!==b)return sb[b];b=a<<4;var c=sb[b];if(!c){c=Math.round((Date.UTC(a,2,1)-Date.UTC(a,1,1))/86400000);sb[b]=c}return c}var ub={};function vb(a,b){var c=a<<4|b,d=ub[c];if(!d){d=(new Date(a,b-1,1,0,0,0,0)).getDay();ub[c]=d}return d}function wb(a){return(a.date-1+vb(a.year,a.month))%7}
function xb(a,b,c,d,e,f){var h;if(a===d)if((h=b-e)===0)return c-f;else{if(h<0){h=c-f;do h-=tb(a,b++);while(b<e)}else{h=c-f;do h+=tb(d,e++);while(e<b)}return h}else return Math.round((Date.UTC(a,b-1,c)-Date.UTC(d,e-1,f))/86400000)}function yb(a,b,c,d,e,f){if(!isNaN(a))this.year=a;if(!isNaN(b))this.month=b;if(!isNaN(c))this.date=c;if(!isNaN(d))this.hour=d;if(!isNaN(e))this.minute=e;if(!isNaN(f))this.second=f}yb.prototype.year=NaN;yb.prototype.month=NaN;yb.prototype.date=NaN;yb.prototype.hour=NaN;
yb.prototype.minute=NaN;yb.prototype.second=NaN;yb.prototype.wt=function(){return wb(this)};yb.prototype.toString=function(){if(this.xg!==undefined)return this.xg;return this.xg=this.Bg()};function Ab(){}Ab.prototype=new yb;Ab.prototype.constructor=Ab;function Bb(a,b,c){Pa(b&&c,"invalid date params: "+b+" "+c);yb.call(this,a,b,c,NaN,NaN,NaN)}Bb.prototype=new Ab;Bb.prototype.constructor=Bb;var Db=function(){var a=new Date;return Cb(a.getFullYear(),a.getMonth()+1,a.getDate())};Bb.prototype.type="Date";
Bb.prototype.qb=function(){return this};Bb.prototype.M=function(){if(undefined===this.Vc)this.Vc=(((this.year-1970)*12+this.month<<5)+this.date)*86400;return this.Vc};Bb.prototype.Qe=function(){return i};Bb.prototype.Bg=function(){return rb(this.year,4)+rb(this.month,2)+rb(this.date,2)};Bb.prototype.equals=function(a){return this.constructor===a.constructor&&this.date===a.date&&this.month===a.month&&this.year===a.year};
var Eb={},Fb=0,Cb=function(a,b,c){var d=(((a-1970)*12+b<<5)+c)*86400;if(d in Eb)return Eb[d];else{a=new Bb(a,b,c);a.Vc=d;if(Fb<200)Eb[d]=a;return a}};function Gb(a,b,c,d,e,f){yb.call(this,a,b,c,d,e,f)}Gb.prototype=new Ab;Gb.prototype.constructor=Gb;Gb.prototype.type="DateTime";Gb.prototype.qb=function(){return Cb(this.year,this.month,this.date)};Gb.prototype.M=function(){if(undefined===this.Vc)this.Vc=(((((this.year-1970)*12+this.month<<5)+this.date)*24+this.hour)*60+this.minute)*60+this.second;return this.Vc};
Gb.prototype.Qe=function(){return i};Gb.prototype.Bg=function(){return rb(this.year,4)+rb(this.month,2)+rb(this.date,2)+"T"+rb(this.hour,2)+rb(this.minute,2)+rb(this.second,2)};Gb.prototype.equals=function(a){return this.constructor===a.constructor&&this.date===a.date&&this.month===a.month&&this.year===a.year&&this.hour===a.hour&&this.minute===a.minute&&this.second===a.second};
Gb.prototype.clone=function(){var a=new Gb(this.year,this.month,this.date,this.hour,this.minute,this.second);if(this.xg!==undefined)a.xg=this.xg;return a};new yb;function Hb(a,b,c,d){d=d+60*(c+60*(b+24*a));a=d/86400|0;d-=a*86400;b=d/3600|0;d-=b*3600;c=d/60|0;d-=c*60;d=d|0;yb.call(this,NaN,NaN,a,b,c,d)}Hb.prototype=new yb;Hb.prototype.constructor=Hb;Hb.prototype.type="Duration";Hb.prototype.M=function(){if(undefined===this.Vc)this.Vc=((this.date*24+this.hour)*60+this.minute)*60+this.second;return this.Vc};
Hb.prototype.Bg=function(){var a=this.year?this.year<0?-1:1:this.month?this.month<0?-1:1:this.date?this.date<0?-1:1:this.hour?this.hour<0?-1:1:this.minute?this.minute<0?-1:1:this.second?this.second<0?-1:1:0,b=a<0?"-P":"P";if(this.year)b+=a*this.year+"Y";if(this.month)b+=a*this.month+"N";if(this.date)b+=this.date%7?a*this.date+"D":a*this.date/7+"W";if(this.hour||this.minute||this.second)b+="T";if(this.hour)b+=a*this.hour+"H";if(this.minute)b+=a*this.minute+"M";if(this.second)b+=a*this.second+"S";a||
(b+="0D");return b};Hb.prototype.equals=function(a){return this.constructor===a.constructor&&this.date===a.date&&this.hour===a.hour&&this.minute===a.minute&&this.second===a.second};function Ib(a){Qa(a,yb);var b=new Jb;b.year=a.year||0;b.month=a.month||0;b.date=a.date||0;b.hour=a.hour||0;b.minute=a.minute||0;b.second=a.second||0;return b}function Kb(a,b,c){Pa(!(isNaN(a)|isNaN(b)|isNaN(c)));var d=new Jb;d.year=a||0;d.month=b||0;d.date=c||0;return d}function Jb(){}Jb.prototype=new yb;
Jb.prototype.constructor=Jb;Jb.prototype.type="DTBuilder";Jb.prototype.year=Jb.prototype.month=Jb.prototype.date=Jb.prototype.hour=Jb.prototype.minute=Jb.prototype.second=0;Jb.prototype.M=function(){this.normalize();var a;return a=isNaN(this.hour)?(((this.year-1970)*12+this.month<<5)+this.date)*86400:(((((this.year-1970)*12+this.month<<5)+this.date)*24+this.hour)*60+this.minute)*60+this.second};
Jb.prototype.normalize=function(){this.$w();this.ol();for(var a=tb(this.year,this.month);this.date<1;){this.month-=1;this.ol();a=tb(this.year,this.month);this.date+=a}for(;this.date>a;){this.date-=a;this.month+=1;this.ol();a=tb(this.year,this.month)}};
Jb.prototype.$w=function(){var a;if(this.second<0){a=Math.ceil(this.second/-60);this.second+=60*a;this.minute-=a}else if(this.second>=60){a=Math.floor(this.second/60);this.second-=60*a;this.minute+=a}if(this.minute<0){a=Math.ceil(this.minute/-60);this.minute+=60*a;this.hour-=a}else if(this.minute>=60){a=Math.floor(this.minute/60);this.minute-=60*a;this.hour+=a}if(this.hour<0){a=Math.ceil(this.hour/-24);this.hour+=24*a;this.date-=a}else if(this.hour>=24){a=Math.floor(this.hour/24);this.hour-=24*a;
this.date+=a}};Jb.prototype.ol=function(){var a;if(this.month<1){a=Math.ceil((this.month-1)/-12);this.month+=12*a;this.year-=a}else if(this.month>12){a=Math.floor((this.month-1)/12);this.month-=12*a;this.year+=a}};Jb.prototype.qb=function(){this.normalize();return Cb(this.year,this.month,this.date)};
Jb.prototype.toString=function(){return"["+(NaN!==this.year?rb(this.year,4):"????")+"/"+(NaN!==this.month?rb(this.month,2):"??")+"/"+(NaN!==this.date?rb(this.date,2):"??")+" "+(NaN!==this.hour?rb(this.hour,2):"??")+" "+(NaN!==this.minute?rb(this.minute,2):"??")+" "+(NaN!==this.second?rb(this.second,2):"??")+"]"};
Jb.prototype.equals=function(a){return this.constructor===a.constructor&&this.date===a.date&&this.month===a.month&&this.year===a.year&&this.hour===a.hour&&this.minute===a.minute&&this.second===a.second};new Ab;new Ab;var Lb=undefined,Nb=[];
function Ob(){var a=new Date,b=Lb;Lb=Cb(a.getFullYear(),a.getMonth()+1,a.getDate());if(b&&!b.equals(Lb))for(b=0;b<Nb.length;++b){var c=Nb[b];try{c(Lb)}catch(d){}}b=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0,0);b.setDate(b.getDate()+1);a=b.getTime()-a.getTime();if(a<0||a>=1800000)a=1800000;window.setTimeout(Ob,a)}Ob();function Pb(a){a=a.replace(/^\s+/,"").replace(/\s+$/,"").replace(/([0-9]+)([a-zA-Z]+)/g,"$1 $2").replace(/([a-zA-Z])([0-9])/g,"$1 $2");a=a.split(/\b|_/);for(var b=[],c=[],d=0;d<a.length;++d){a[d]=a[d].replace(/^\s+|\s+$/,"");b[d]=a[d].length;c[d]=0;if(a[d].match(/^[0-9]+/)){var e=parseInt(a[d],10);a[d]=e;if(0===e){if(b[d]==2)c[d]|=1}else if(e>12&&e<=31)c[d]|=4;else if(e<=12)c[d]|=6;else if(e<100||e>=1900)c[d]|=1}else if(e=Qb(a[d])){a[d]=e[0];c[d]|=10}}var f=e=0,h=0,k=0,l=0;for(d=0;d<c.length;++d){!c[d]&&
/\w/.test(a[d])&&++l;if(6===(c[d]&6))++h;else{c[d]&4&&++e;c[d]&2&&++f}c[d]&1&&++k}if(h){var m=n,o=n;if(!e||!f)if(e)m=i;else if(f)o=i;else if(1===h)m=i;else for(d=0;d<c.length;++d){var q=n;if(c[0]===1&&a[1]&&/^\s*-\s*$/.test(a[1])&&c[2]===6&&a[3]&&/^\s*-\s*$/.test(a[3]))q=i;if(6==(c[d]&6)){if(q||!Rb||1){c[d]&=-5;++f;--h;o=i}else{c[d]&=-3;++e;--h;m=i}break}}if(m)for(d=0;d<c.length;++d){if(6==(c[d]&6)){c[d]&=-5;++f;--h}}else if(o)for(d=0;d<c.length;++d)if(6==(c[d]&6)){c[d]&=-3;++e;--h}}var x,s,K;m=0;
o=7;if(e){for(d=0;d<c.length;++d)if(c[d]&4){x=a[d];c[d]=0;--e;break}Pa(x)}else{x=j;o&=-5}if(f){q=n;for(d=0;d<c.length;++d)if(c[d]&2){s=a[d];c[d]&=-3;--f;q=0!==(c[d]&8);break}if(q){q=b[d];for(var S=d+1;S<c.length;++S)if(c[S]&8)if(b[S]>q){c[d]|=2;c[S]&=-3;s=a[S];q=b[S];d=S}}}else{s=j;o&=-3}if(b=!!k)for(d=0;d<c.length;++d){if(c[d]&1){K=a[d];c[d]=0;--k;break}}else{K=j;if(e|f|h){q=-1;for(d=S=0;d<c.length;++d)if(c[d]&&!(c[d]&8))if(a[d]>S){q=d;S=a[d]}if(q>=0){K=S;switch(c[q]){case 4:--e;break;case 2:--f;
break;case 6:--h;break}c[q]=0}}if(j==K){m-=1;K=Lb.year+(s&&s<Lb.month?1:0);o&=-2}}if(j==x){x=1;m-=0.5}if(j==s)if(b)s=1;else return j;if(K<100)K+=K<50?2000:1900;m-=e+f+k+h+(l>>2);return new Sb(Cb(K,s,x),m,o)}function Sb(a,b,c){this.date=a;this.confidence=b;this.specified=c}Sb.prototype.toString=function(){return this.date.toString()};function Qb(a){for(var b=-1,c=-1,d=0;d<Tb.length;++d){var e=Tb[d];if(e){var f=Ub[d];if((e=Math.max(Vb(e,a),Vb(f,a)))&&e>c){b=d;c=e}}}return c>=a.length+1>>1?[b,c]:j}
function Vb(a,b){a=a.toLowerCase();b=b.toLowerCase();var c=Math.min(a.length,b.length),d;for(d=0;d<c;++d)if(a.charAt(d)!=b.charAt(d))break;return d};var Wb=["Su","M","Tu","W","Th","F","Sa"],Ub=[,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Tb=[,"January","February","March","April","May","June","July","August","September","October","November","December"];Function.prototype.bind=function(a){if(typeof this!="function")g(new Error("Bind must be called as a method of a function object."));var b=this,c=Array.prototype.splice.call(arguments,1,arguments.length);return function(){for(var d=c.concat(),e=0;e<arguments.length;e++)d.push(arguments[e]);return b.apply(a,d)}};var Xb,Yb,Zb;
(function(){var a={},b=0;function c(f){if(f.Hw==j)f.Hw=++b;return f.Hw}function d(f,h,k,l){f=c(f);k=c(k);l=!!l;return h=f+"_"+h+"_"+k+"_"+l}Xb=function(f,h,k,l){var m=d(f,h,k,l);if(m in a)return m;var o=e.bind(j,m);a[m]={listener:k,proxy:o,event:h,node:f,useCapture:l};if(f.addEventListener)f.addEventListener(h,o,l);else if(f.attachEvent)f.attachEvent("on"+h,o);else g(new Error("Node {"+f+"} does not support event listeners."));return m};Yb=function(f,h,k,l){f=d(f,h,k,l);return Zb(f)};Zb=function(f){if(!(f in
a))return n;var h=a[f],k=h.proxy,l=h.event,m=h.node;h=h.useCapture;if(m.removeEventListener)m.removeEventListener(l,k,h);else m.detachEvent&&m.detachEvent("on"+l,k);delete a[f];return i};function e(f){var h=Array.prototype.splice.call(arguments,1,arguments.length);return a[f].listener.apply(j,h)}})();function $b(a,b,c){this.x=a;this.y=b;this.coordinateFrame=c||j}$b.prototype.toString=function(){return"[P "+this.x+","+this.y+"]"};$b.prototype.clone=function(){return new $b(this.x,this.y,this.coordinateFrame)};function ac(a,b){this.dx=a;this.dy=b}ac.prototype.toString=function(){return"[D "+this.dx+","+this.dy+"]"};function bc(a,b,c,d,e){this.x=a;this.y=b;this.w=c;this.h=d;this.coordinateFrame=e||j}
bc.prototype.contains=function(a){return this.x<=a.x&&a.x<this.x+this.w&&this.y<=a.y&&a.y<this.y+this.h};bc.prototype.toString=function(){return"[R "+this.w+"x"+this.h+"+"+this.x+"+"+this.y+"]"};bc.prototype.clone=function(){return new bc(this.x,this.y,this.w,this.h,this.coordinateFrame)};function cc(a){if(!a)return j;function b(h){for(var k=a.offsetParent;k&&k.offsetParent;k=k.offsetParent){if(k.scrollLeft)h.x-=k.scrollLeft;if(k.scrollTop)h.y-=k.scrollTop}}var c;c=a.ownerDocument&&a.ownerDocument.parentWindow?a.ownerDocument.parentWindow:window;if(a.ownerDocument&&a.ownerDocument.getBoxObjectFor){var d=a.ownerDocument.getBoxObjectFor(a);c=new bc(d.x,d.y,d.width,d.height,c);b(c);return c}if(a.getBoundingClientRect){d=a.getBoundingClientRect();return new bc(d.left+ab(c,Ya),d.top+ab(c,
Xa),d.right-d.left,d.bottom-d.top,c)}for(var e=d=0,f=a;f.offsetParent;f=f.offsetParent){d+=f.offsetLeft;e+=f.offsetTop}c=new bc(d,e,a.offsetWidth,a.offsetHeight,c);b(c);return c}function dc(a){if(!a)return j;a=cc(a);return new $b(a.x,a.y,a.coordinateFrame)}function ec(a,b){Pa(a,"p1 passed to Distance is undefined");Pa(b,"p2 passed to Distance is undefined");Pa(a.coordinateFrame==b.coordinateFrame);var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)}
function fc(a){var b=0,c=0;if(a.pageX||a.pageY){b=a.pageX;c=a.pageY}else if(a.clientX||a.clientY){b=a.target?a.target:a.srcElement;c=b.ownerDocument&&b.ownerDocument.parentWindow?b.ownerDocument.parentWindow:window;b=a.clientX+ab(c,Ya);c=a.clientY+ab(c,Xa)}return new $b(b,c,window)};var gc=2*Math.PI/16,y=j,hc=0,ic=undefined,jc=undefined,kc=undefined,lc=undefined,mc=undefined,nc=undefined,oc=undefined,pc=undefined,qc=n,rc=undefined,sc=undefined;function _DD_Install(a){a||(a=document);sc=a;Xb(sc.body,"mousedown",tc)}var uc=[];function vc(a){uc.push(a)}function wc(a,b){for(var c=uc.length-1;c>=0;--c){var d=uc[c](a,b);if(d)return d}}var xc;function tc(a){xc=mb(a||window.event);Xb(sc.body,"mousemove",yc);Xb(sc.body,"mouseup",zc);return n}
function Ac(a){for(var b=undefined,c=a.srcElement||a.target;c;c=c.parentNode)if(b=wc(c,a)){jc=fc(a);if(b.wg(a,c)){if(!(y&&hc>=0&&hc<6&&1===1+hc%1&&nc&&0===(nc&-4))){c="Bogus drag: el="+y+", type="+hc+", axis mask="+nc;Bc();Ma(c)}a.cancelBubble=i;ic=b;kc=jc;lc={x:y.offsetLeft,y:y.offsetTop,w:y.offsetWidth,h:y.offsetHeight};if(hc===4)mc=[jc];oc=new ac(0,0);pc=new ac(0,0);if(hc===1||hc===2||hc===5){hc!==2&&ic.useUserDefinedAlpha&&!ic.useUserDefinedAlpha()&&Cc(y,i);rc=y.style.zIndex;y.style.zIndex=2000}ya()?
Xb(sc.body,"mouseleave",Dc):Xb(sc.body,"mouseout",Dc)}else Bc();return n}return i}function zc(a){if(xc){xc=j;Yb(sc.body,"mousemove",yc);Yb(sc.body,"mouseup",zc);for(var b=undefined,c=a.srcElement||a.target;c;c=c.parentNode)if((b=wc(c,a))&&b.handleClick){b.handleClick(c,a);return n}}else{a=a||sc.parentWindow.event;ic.Hf(a,y,hc)?Bc():Ec()}}
function yc(a){if(xc){var b=Ac(xc);xc=j;if(b){Ec();return i}}if(!y)return i;if(!ic)return i;var c=a||sc.parentWindow.event;c.cancelBubble=i;var d=fc(c);b=new ac(d.x-jc.x+oc.dx,d.y-jc.y+oc.dy);if(!(b.dx|b.dy))return n;a=new ac(b.dx,b.dy);jc=d;qc=i;d=dc(y);if(nc&1)pc.dx+=a.dx;if(nc&2)pc.dy+=a.dy;if(ic.Wf(c,y,hc,a,pc)){c=dc(y);pc.dx-=c.x-d.x;pc.dy-=c.y-d.y;switch(hc){case 1:case 2:case 5:oc.dx=b.dx-a.dx;oc.dy=b.dy-a.dy;break}switch(hc){case 1:if(!(nc&1))a.dx=0;if(!(nc&2))a.dy=0;if((b=y.currentStyle?
y.currentStyle:y.ownerDocument.defaultView.getComputedStyle(y,""))&&b.position=="relative"){y.style.left=pc.dx+"px";y.style.top=pc.dy+"px"}else{b=y.offsetLeft+a.dx;c=y.offsetTop+a.dy;if(a.dx)y.style.left=b+"px";if(a.dy)y.style.top=c+"px";if(a.dx&&b!==y.offsetLeft)y.style.left=b+b-y.offsetLeft+"px";if(a.dy&&c!==y.offsetTop)y.style.top=c+c-y.offsetTop+"px"}break;case 5:a=cc(y);if(nc&1){c=jc.x+oc.dx;b=Math.min(c,kc.x);c=Math.abs(c-kc.x);if(b!==a.x){b=b;y.style.left=b+"px";if(b!==y.offsetLeft)y.style.left=
b+b-y.offsetLeft+"px"}if(c!==a.w){y.style.width=c+"px";if(c!=y.offsetWidth){c=Math.max(0,c+c-y.offsetWidth);y.style.width=c+"px"}}}if(nc&2){c=jc.y+oc.dy;b=Math.min(c,kc.y);d=Math.abs(c-kc.y);if(b!==a.y){c=b;y.style.top=c+"px";if(c!==y.offsetTop)y.style.top=c+c-y.offsetTop+"px"}if(d!==a.h){y.style.height=d+"px";if(d!=y.offsetHeight){d=Math.max(0,d+d-y.offsetHeight);y.style.height=d+"px"}}}break;case 2:if(a.dx&&nc&1){b=y.offsetWidth;c=b+a.dx;if(c<0){oc.dx+=c;c=0}if(c<1){oc.dx+=c-1;c=1}y.style.width=
c+"px";if(c!=y.offsetWidth){c+=c-y.offsetWidth;if(c<1)c=1;y.style.width=c+"px"}}if(a.dy&&nc&2){b=y.offsetHeight;d=b+a.dy;if(d<0){oc.dy+=d;d=0}if(d<1){oc.dy+=d-1;d=1}y.style.height=d+"px";if(d!=y.offsetHeight){d+=d-y.offsetHeight;if(d<1)d=1;y.style.height=d+"px"}}break;case 3:if(!(nc&1))a.dx=0;if(!(nc&2))a.dy=0;if(y.scrollBy)y.scrollBy(a.dx,a.dy);else{a.dx*=-1;a.dy*=-1;b=y.scrollLeft;c=y.scrollLeft+y.scrollWidth-y.offsetWidth;d=y.scrollTop;var e=y.scrollTop+y.scrollHeight-y.offsetHeight;a.dx=Math.max(Math.min(a.dx,
c),-b);a.dy=Math.max(Math.min(a.dy,e),-d);if(a.dx)y.scrollLeft+=a.dx;if(a.dy)y.scrollTop+=a.dy}break;case 4:if(a.dx|a.dy){if(mc.length>=1){d=a;b=mc[mc.length-1];c=new ac(d.dx+b.dx,d.dy+b.dy);e=n;if(c.dx*c.dx+c.dy*c.dy<=25)e=i;else{d=Math.atan2(d.dx,d.dy);e=Math.atan2(b.dx,b.dy);d=Math.abs((d-e+2*Math.PI)%(2*Math.PI));e=d<gc}if(e){b.dx=c.dx;b.dy=c.dy}else mc.push(a)}else mc.push(a);Fc(mc)}break}}else Ec();return n}function Dc(a){a=a||window.event;(a=a.relatedTarget||a.toElement)||Ec()}
function Bc(){if(hc!==0){if(y){hc===4&&Fc([]);ic.Ls(y,hc)}if(hc===1||hc===2||hc===5){hc!==2&&ic.useUserDefinedAlpha&&!ic.useUserDefinedAlpha()&&Cc(y,n);if(undefined!==rc){y.style.zIndex=rc;rc=undefined}else delete y.style.zIndex}}y=j;hc=0;lc=jc=undefined;nc=0;oc=undefined;qc=n;if(ic)ya()?Yb(sc.body,"mouseleave",Dc):Yb(sc.body,"mouseout",Dc);ic=undefined;Yb(sc.body,"mousemove",yc);Yb(sc.body,"mouseup",zc)}
function Ec(){switch(hc){case 1:var a=y.currentStyle?y.currentStyle:window.getComputedStyle(y,"");if(a&&a.position=="relative"){y.style.left="0px";y.style.top="0px"}else{y.style.left=lc.x+"px";y.style.top=lc.y+"px"}break;case 2:y.style.width=lc.w+"px";y.style.height=lc.h+"px";break;case 3:break;case 4:mc=[];break;case 0:break;case 5:break;default:Ma("failed to cancel drag with dd_dragType="+hc)}Bc()}
function Cc(a,b){if(ya())a.style.filter=b?"alpha(opacity=50)":"alpha(opacity=100)";else a.style.MozOpacity=b?0.5:1}var Gc=n,Hc=undefined;function Fc(a){Hc=a;if(!Gc){Gc=i;window.setTimeout(Ic,100)}}
function Ic(){var a=Hc;Hc=undefined;Gc=n;if(a){var b="";if(a.length)for(var c=a[0].x,d=a[0].y,e=0,f=0,h=1;h<a.length;h++){var k=a[h];if(k.dx|k.dy){if(h!=0)b+="<img class=gestimg src=images/joiner.png width=5 height=5 style=left:"+(c-2)+"px;top:"+(d-2)+"px>";var l=Math.atan2(k.dx,k.dy),m;l=Math.floor(l/(Math.PI/6));switch(l){case 0:case 6:case -6:m="vert.png";break;case 1:case -4:m="negslope.png";break;case 2:case -2:case 3:case -3:m="horz.png";break;case 4:case -1:m="posslope.png";break;case 5:case -5:m=
"vert.png";break}l=Math.max(1,Math.abs(k.dx));var o=Math.max(1,Math.abs(k.dy));b+="<img class=gestimg src=images/"+m+" width="+l+" height="+o+" style=left:"+(c+Math.min(k.dx,0))+"px;top:"+(d+Math.min(k.dy,0))+"px>";c+=k.dx;d+=k.dy;e=Math.max(c,e);f=Math.max(d,f)}}a=w("gesture");a.style.display="none";a.innerHTML=b;a.style.display="inline"}};function Jc(a){this.oy=(this.my=a)?Kc(a):undefined;this.Zs=n;this.hA=j;this.ym=3}var Kc=function(a,b){b=b||[];if(a.className&&a.className.match(/\bddSelected\b/))b.push(a);else for(a=a.firstChild;a;a=a.nextSibling)Kc(a,b);return b};Jc.prototype.gw=function(a,b){a.style.left=b.x+"px";a.style.top=b.y+"px";if(this.ym&1)a.style.width="0px";if(this.ym&2)a.style.height="0px"};Jc.prototype.hw=function(a){a.style.display="block"};
Jc.prototype.wg=function(a){var b=w("ddLasso");if(!b){b=document.createElement("div");b.id="ddLasso";b.style.position="absolute";b.style.display="none";document.body.appendChild(b)}a=fc(a);this.gw(b,a);this.hw(b);hc=5;nc=this.ym;this.hA=y=b;var c=this;window.setTimeout(function(){c.finished||c.Wj(b)},200);return i};Jc.prototype.Hf=function(){return i};Jc.prototype.Aw=function(a){return a.className&&a.className.match(/\bddSelectable\b/)};
Jc.prototype.Om=function(a,b,c){if(this.Aw(a)){var d=cc(a);b.x+b.w<d.x||d.x+d.w<b.x||b.y+b.h<d.y||d.y+d.h<b.y||c.push(a)}else for(a=a.firstChild;a;a=a.nextSibling)this.Om(a,b,c)};Jc.prototype.Wj=function(a){if(this.my){var b=[];this.Om(this.my,cc(a),b);this.Oc(b);if(!this.Zs){var c=this;window.setTimeout(function(){c.finished||c.Wj(a)},200)}}};
Jc.prototype.Oc=function(a){for(var b=this.oy,c=a.length;--c>=0;)a[c].dd_newSelection=i;for(c=b.length;--c>=0;){var d=b[c];d.dd_oldSelection=i;if(!d.dd_newSelection)d.className=d.className.replace(/\s*\bddSelected\b/g,"")}for(c=a.length;--c>=0;){d=a[c];if(!d.dd_oldSelection)d.className=(d.className||" ")+" ddSelected";d.dd_newSelection=n}for(c=b.length;--c>=0;)b[c].dd_oldSelection=n;this.oy=a};Jc.prototype.Wf=function(){return i};Jc.prototype.Ls=function(a){this.Zs=i;this.Wj(a);a.style.display="none"};
new Jc(undefined);function Lc(){this.je=[]}function _PC_Install(a){if(Mc)return n;Mc=i;a=a?a:document;Xb(a.body,"mousedown",Nc);return i}function Nc(a){if(Oc.je.length==0)return n;a=a||window.event;for(var b=Oc.je.length-1;b>=0;--b){var c=Oc.je[b];Pc(c);c.deactivate(a)&&Oc.je.splice(b,1)}return i}function Qc(a){Pc(a);for(var b=0;b<Oc.je.length;++b)if(a===Oc.je[b])return n;Oc.je.push(a);return i}function Pc(a){Qa(a.deactivate,Function,"popup missing deactivate function")}var Oc=new Lc,Mc=n;function z(a,b,c,d,e){Pa(a,"element passed to DP_DatePicker constructor is null");this.Zg=a;this.L=c?c:this.Zg.id+"_";this.ba=d?d:"DP_";Rc[this.L]=this;if(e){Qa(e,Bb,"opt_today is not an ICAL_Date");this.rd=e}else this.rd=Db();this.te=Cb(this.rd.year,this.rd.month,1);this.eh=0;this.bA=!!b;this.Qq=n;this.Zw=this.Hx=j;this.Vg={};this.Ne={};this.Vh={};this.V={};this.el=this.xe=j;this.ny=new Sc(this);this.nA=new Sc(this);this.bl=this.wq=n;this.Xa=new Tc;this.We=0;this.ck=j;this.vA=i;this.kd();this.wA=
n;this.mq(0);this.zy(0);this.Sy(Wb);this.Cy(Tb);this.Iy(Ub);this.Jo=n;this.Cw=this.jg=this.kg=this.Wc=this.Aa=this.zh=j;this.Wh=n;this.Oz=this.Pz=j;var f=this;a=function(h){var k=h.startDate;h=h.endDate;k=k?!h||k.equals(h)?"Selected: "+f.pk(k,i):"Selected: "+f.pk(k)+" - "+f.pk(h):Uc[this.ng];f.Ix(k)};this.wq&&this.uj(a);this.lA=new Sc(this)}var Uc={};Uc[0]="Select a date";Uc[1]="Select a range of dates";Uc[2]="Select dates";Uc[3]="&nbsp;";
z.prototype.zy=function(a,b){if(a!=0&&a!=1&&a!=7&&a!=30&&a!=-1&&!(b instanceof Function))g(new Error("Invalid click mode: "+a));this.Wz=a;this.Ir=b};z.prototype.Py=function(a){if(a!=this.Qq){this.Qq=a;this.kd()}};z.prototype.Sy=function(a){this.Tq=a;this.kd()};z.prototype.it=function(){return this.Wz};z.prototype.mq=function(a){0<=a&&a<=3||Na("Invalid selection mode: "+a);if(this.ng!=a){this.ng=a;this.oe()}};z.prototype.Hk=function(){return this.ng};z.prototype.show=function(){this.bl=i;this.kd()};
z.prototype.hide=function(){this.Zg.innerHTML="";this.bl=n};z.prototype.ma=function(){return this.bl};z.prototype.Mh=function(){return w(this.L+"tbl")};z.prototype.By=function(a){Pa(0<=a&&a<=6,a+" not a valid first day of week");this.eh=a;this.kd()};z.prototype.Xn=function(){return this.eh};z.prototype.Ky=function(a){Qa(a,Function);this.Gx=a};z.prototype.cq=function(a){Qa(a,Function);this.xs=a};z.prototype.Jy=function(a){Qa(a,Function);this.Yw=a};z.prototype.Iy=function(a){this.ll=a;this.kd()};
z.prototype.cu=function(){return this.ll};z.prototype.Cy=function(a){this.at=a;this.kd()};
z.prototype.kd=function(){if(this.bl){var a=this.L,b,c=this.te.month;b=this.te.year;var d=[c==1?12:c-1,c,c==12?1:c+1],e=Cb(this.rd.year,this.rd.month,1),f=Kb(b,c-1,1).qb(),h=Kb(b,c+1,1).qb();if(this.Gx)d[0]=this.Gx(f);else{var k=f.M()>=e.M()?"&laquo;":"&lsaquo;&nbsp;";d[0]=k+this.ll[d[0]]}d[1]=this.xs?this.xs(this.te):this.at[d[1]]+" "+b;if(this.Yw)d[2]=this.Yw(h);else{e=h.M()-e.M()<=0?"&raquo;":"&nbsp;&rsaquo;";d[2]=this.ll[d[2]]+e}var l=tb(b,c);k=tb(f.year,f.month);e=new Array(49);var m=this.te.wt()-
this.eh;if(m<0)m+=7;if(l<30||m<5)m+=7;for(var o=0;o<m;++o)e[o]=Cb(f.year,f.month,k-m+o+1);o=m;for(k=0;k<l;++o)e[o]=Cb(b,c,++k);o=m+l;for(k=0;o<e.length;++o)e[o]=Cb(h.year,h.month,++k);this.Pz=e[0];this.Oz=e[e.length-1];var q=[];k=this.bA?[2,3,2]:[1,5,1];q.push('<table cols=7 cellspacing="0" cellpadding="3" id="',a,'tbl"',' class="',this.ba,'monthtable" ',' style="-moz-user-select:none; cursor:pointer;">','<tr class="',this.ba,'heading" id="',a,'header">',"<td colspan=",k[0]," unselectable=on",' onmousedown="'+
qb(_DP_staticPrevMonth)+"(",ib(this.L),')"',' id="',a,'mhl" class="',this.ba,'prev">',d[0],"</td>","<td colspan=",k[1],' unselectable="on"',' id="',a,'mhc" class="',this.ba,'cur">',d[1],"</td>","<td colspan=",k[2],' unselectable="on"',' onmousedown="'+qb(_DP_staticNextMonth)+"(",ib(this.L),')"',' id="',a,'mhr" class="',this.ba,'next">',d[2],"</td>","</tr>");if(this.Qq){q.push('<tr class="',this.ba,'days" id="',a,'dow">');for(o=0;o<this.Tq.length;++o)q.push('<td unselectable="on"',' class="',this.ba,
'dayh" id="',a,"day_",o,'">',this.Tq[(o+this.eh)%7],"</td>");q.push("</tr>")}d=(7-this.eh)%7;var x=(d+6)%7;this.Vg={};var s=j,K=qb(_DP_staticCellClicked);o=0;for(k=-1;o<7;++o){q.push('<tr id="',a,"week_",o,'">');for(var S=0;S<this.Tq.length;++S){++k;var zb=this.Xa.contains(e[k]);s=[];o==0&&s.push(this.ba+"day_top");if(S==0)s.push(this.ba+"day_left");else S==6&&s.push(this.ba+"day_right");s.push(this.ba+"week"+(S==d||S==x?"end":"day")+(zb?"_selected":""));if(k<m||k>=m+l){s.push(this.ba+"offmonth");
if(e[k].date<=7){s.push(this.ba+"month_top");e[k].date==1&&S!=0&&s.push(this.ba+"month_left")}}else{s.push(this.ba+"onmonth");if(e[k].date<=7){s.push(this.ba+"month_top");e[k].date==1&&S!=0&&s.push(this.ba+"month_left")}if(e[k].date==this.rd.date&&c==this.rd.month&&b==this.rd.year)s.push(this.ba+"today"+(zb?"_selected":""))}zb="";if(this.Zz){var Mb=this.Zz(e[k]);if(Mb)zb=' style="'+Mb+'"'}q.push('<td id="',a,"day_",o,"_",S,'"',' class="',s.join(" "),'"',zb,' onclick="',K,'(this)"',' unselectable="on">',
e[k].date,"</td>")}q.push("</tr>")}this.wq&&q.push('<tr class="',this.ba,'months">','<td colspan="7" id="',a,'sel"></td></tr>');q.push("</table>");this.Zg.innerHTML=q.join("");this.xe=w(a+"day_0_0");this.el=w(a+"day_6_6");b=this.xe;l=b.parentNode;o=m=j;for(q=k=-1;l!=j;){++q;if(q==7)break;for(d=-1;b!=j;){++k;++d;x=a+"day_"+q+"_"+d;this.V[x]=e[k];this.Vg[e[k].toString()]=b;if(this.Vh[x]=m)this.Ne[o]=b;m=b;o=x;b=b.nextSibling}l=l.nextSibling;if(l!=j)b=l.firstChild}this.We=7;if(!this.vA){e=w(a+"week_4");
k=w(a+"week_5");b=w(a+"week_6");if(this.V[a+"day_4_0"].month!=c){e.style.display="none";k.style.display="none";b.style.display="none";this.We=4}else if(this.V[a+"day_5_0"].month!=c){k.style.display="none";b.style.display="none";this.We=5}else if(this.V[a+"day_6_0"].month!=c){b.style.display="none";this.We=6}}this.Hx=f;this.Zw=h;this.ck&&this.ck.call(j,this);this.br()}};z.prototype.refresh=function(){this.ck&&this.ck.call(j,this)};z.prototype.uj=function(a){return this.ny.add(a)};
z.prototype.oe=function(a){a=arguments.length===0||a;for(var b=this.Xa.zj(),c=0;c<b.length;++c){var d=this.Vg[b[c].toString()];this.od(d,n)}this.Xa.clear();if(!this.Wh){this.dq(j);this.Nl(j)}a&&this.Cd()};z.prototype.al=function(a){Qa(a,yb);return this.Xa.contains(a)};
z.prototype.Fm=function(a){if(this.Ir)this.Ir.call(j,a);else{var b=w(a),c=this.Xa;switch(this.ng){case 1:var d=this.it();if(d==0)break;if(d!=1&&(d!=-1||!c.contains(this.V[a]))){a=this.V[b.id];var e;switch(d){case -1:if(c.Ta()>7&&this.ci()){b=b.id.substr(b.id.length-3,1);a=this.V[this.L+"day_"+b+"_0"]}e=c.Ta()-1;break;case 7:b=b.id.substr(b.id.length-3,1);a=this.V[this.L+"day_"+b+"_0"];e=6;break;case 30:a=this.V[b.id];a=Cb(a.year,a.month,1);c=Ib(a);e=tb(a.year,a.month)-1;break;default:Na("Invalid click mode: "+
d)}Pa(typeof e!="undefined","duration should have been defined");c=Ib(a);c.date+=e;c=c.qb();this.Oc(a,c);return}Pa(d==1||d==-1&&c.contains(this.V[a]),"not a case for single date selection");this.oe(n);case 0:if(c.Ta()>0){a=c.zj()[0];c.remove(a);(a=this.Vg[a.toString()])&&this.od(a,n)}c.add(this.V[b.id]);this.od(b);this.Cd(this.V[b.id]);break;case 2:break;case 3:default:break}}};z.prototype.dq=function(a){this.kg=(this.Aa=a)?this.V[a.id]:j};
z.prototype.Nl=function(a){this.jg=(this.Wc=a)?this.V[a.id]:j};z.prototype.cw=function(){return this.Wh};z.prototype.wg=function(a){this.oe(n);this.Wh=i;this.dq(this.$g(a));a=this.V[this.Aa.id];this.Xa.add(a);this.od(this.Aa);this.Oc(a);this.Nl(this.Aa)};
z.prototype.Hf=function(a){this.Wh=n;this.Wc=this.$g(a);if(this.ci())this.Cd(this.kg,this.jg,n);else{var b;if(this.V[this.Wc.id].M()<this.V[this.Aa.id].M()){a=this.V[this.Wc.id];b=this.V[this.Aa.id]}else{a=this.V[this.Aa.id];b=this.V[this.Wc.id]}this.Cd(a,b,n)}};z.prototype.Wf=function(a,b,c,d){this.Cw=mb(a);if(!(this.ng!=1||this.Jo)){this.Jo=i;var e=this;window.setTimeout(function(){try{e.Wh&&e.Ys.call(e,b,c,d)}finally{e.Jo=n}},50)}};z.prototype.ci=function(){return this.wA};
z.prototype.Ys=function(){var a=this.Cw,b=this.$g(a);if(b!==this.Wc){var c=this.Wc;this.Nl(b);Pa(c!=b);a=this.V;var d=a[c.id].M()<a[b.id].M(),e=a[c.id].M()<a[this.Aa.id].M(),f=a[b.id].M()<a[this.Aa.id].M(),h=a[this.Aa.id].M()<a[b.id].M(),k=a[this.Aa.id].M()<a[c.id].M(),l;l=f?this.Wc:this.Aa;var m=f?this.Aa:this.Wc;if(this.ci()){b=xb(a[m.id].year,a[m.id].month,a[m.id].date,a[l.id].year,a[l.id].month,a[l.id].date);if(b>=7){l=parseInt(l.id.charAt(l.id.length-3),10);m=parseInt(m.id.charAt(m.id.length-
3),10);l=w(this.L+"day_"+l+"_0");m=w(this.L+"day_"+m+"_6")}this.Yd(this.xe,l,n);this.Yd(m,this.el,n);this.Yd(l,m,i);this.kg=a[l.id];this.jg=a[m.id]}else if(d){if(e){f=f?this.Vh[b.id]:this.Vh[this.Aa.id];this.Yd(c,f,n)}if(h){h=k?this.Ne[c.id]:this.Ne[this.Aa.id];this.Yd(h,b,i)}}else{if(k){h=h?this.Ne[b.id]:this.Ne[this.Aa.id];this.Yd(h,c,n)}if(f){f=f?this.Vh[this.Aa.id]:this.Vh[c.id];this.Yd(b,f,i)}}l=a[l.id];a=a[m.id];this.Cd(l,a,i)}};
z.prototype.Yd=function(a,b,c){Pa(a);Pa(b);Qa(c,Boolean);for(var d=n;a;){(d=c?this.Xa.add(this.V[a.id]):this.Xa.remove(this.V[a.id]))&&this.od(a,c);if(a.id===b.id)break;a=this.Ne[a.id];Pa(a,"did not find endCell: "+b.id)}};var Vc={4:"day_3_6",5:"day_4_6",6:"day_5_6",7:"day_6_6"};z.prototype.nr=function(a,b){if(this.zh)if(b){a.x-=this.zh.x;a.y-=this.zh.y}else{a.x+=this.zh.x;a.y+=this.zh.y}};
z.prototype.$g=function(a){var b=cc(this.xe),c=this.Hu();a=fc(a);this.nr(a);var d=7;d=this.Bn(c.x,b.w,d,a.x);b=this.Bn(c.y,b.h,this.We,a.y);return w(this.L+"day_"+b+"_"+d)};z.prototype.Bn=function(a,b,c,d){if(d<a)return 0;a=Math.floor((d-a)/b);return a>=c?c-1:a};z.prototype.Hu=function(){var a=this.L,b=this.We,c=cc(this.xe);a=cc(w(a+Vc[b]));return new bc(c.x,c.y,a.x+a.w-c.x,a.y+a.h-c.y,c.coordinateFrame)};z.prototype.pk=function(a,b){b=b?this.at:this.ll;return b[a.month]+" "+a.date};
z.prototype.Cd=function(a,b,c){var d={};d.startDate=a;d.endDate=b||a;d.cw=!!c;d.mode=this.Hk();this.ny.fireEvent(d)};z.prototype.po=function(){return this.rd};z.prototype.vm=function(a){if(a instanceof Bb)return a;if(a instanceof Gb)return Cb(a.year,a.month,a.date);else Pa(n,"Invalid arg: "+a)};
z.prototype.Oc=function(a,b,c){var d=this.Hk();c=c!==n;if(a)a=this.vm(a);if(b)b=this.vm(b);a&&this.sq(a);if(!a||d==3)this.oe(c);else if(d==0){this.oe(n);d=this.Vg[a.toString()];this.Xa.add(a);this.od(d);c&&this.Cd(a)}else if(d==1){b||(b=a);d=xb(b.year,b.month,b.date,a.year,a.month,a.date);var e=n;if(this.ci()&&d>=7){e=wb(a)+7;d=wb(b)+7;e=(e-this.Xn())%7;d=(d-this.Xn())%7;e=Kb(a.year,a.month,a.date-e);a=e.qb();e=Kb(b.year,b.month,b.date+(6-d));b=e.qb();e=this.sq(a)}e&&this.oe(n);d=this.xe;this.kg=
a;this.jg=b;e=this.el;for(var f=a.M(),h=b.M();d;d=this.Ne[d.id]){var k=this.V[d.id],l=this.Xa.contains(k),m=k.M()>=f&&k.M()<=h;if(l!=m)if(m){this.Xa.add(k);this.od(d)}else{this.Xa.remove(k);this.od(d,n)}if(d===e)break}if(!d){e=Ib(this.V[this.el.id]);d=j;do{e.date+=1;d=e.qb();this.Xa.add(d)}while(!d.equals(b))}c&&this.Cd(a,b)}};
z.prototype.Rl=function(a,b){if(this.te.month==a.month&&this.te.year==a.year)return n;b=arguments.length==1||b;this.te=Cb(a.year,a.month,1);this.kd();b&&this.nA.fireEvent();return i};z.prototype.sq=function(a,b){if(a.M()>=this.Pz.M()&&a.M()<=this.Oz.M())return n;return this.Rl(a,b)};z.prototype.getSelection=function(){switch(this.Hk()){case 0:return this.Xa.Ta()?this.Xa.zj()[0]:j;case 1:var a=this.kg?this.kg:j,b=this.jg?this.jg:j;if(!a||!b)return j;return[a,b];case 2:return j;case 3:default:return j}};
z.prototype.Ix=function(a){if(this.wq)w(this.L+"sel").innerHTML=a};
z.prototype.od=function(a,b){if(a){Oa(b)||(b=i);var c=[],d=[],e=" "+a.className+" ",f=" "+this.ba;if(b){if(-1!=e.indexOf(f+"today ")){c.push(f+"today ");d.push(f+"today_selected ")}if(-1!=e.indexOf(f+"weekday ")){c.push(f+"weekday ");d.push(f+"weekday_selected ")}else if(-1!=e.indexOf(f+"weekend ")){c.push(f+"weekend ");d.push(f+"weekend_selected ")}}else{if(-1!=e.indexOf(f+"today_selected ")){d.push(f+"today ");c.push(f+"today_selected ")}if(-1!=e.indexOf(f+"weekday_selected ")){d.push(f+"weekday ");
c.push(f+"weekday_selected ")}else if(-1!=e.indexOf(f+"weekend_selected ")){d.push(f+"weekend ");c.push(f+"weekend_selected ")}}for(b=0;b<c.length;++b)e=e.replace(c[b],d[b]);if(c.length!=0)a.className=e}};var Rc={};function _DP_staticPrevMonth(a){a=Rc[a];return a.Rl(a.Hx)}function _DP_staticNextMonth(a){a=Rc[a];return a.Rl(a.Zw)}function _DP_staticCellClicked(a){a=a.id;var b=a.match(/(.*)day_\d+_\d+/);b=Rc[b[1]];return b.Fm(a)}
z.prototype.br=function(){if(this.jA!==i){this.jA=i;var a=this.L,b=this,c=this.Zg;vc(function(d){if(b.ng==1&&d===c){d=new Jc(d);d.escapedStartPoint=n;d.wg=function(e){var f=fc(e),h=cc(b.xe),k=cc(w(a+Vc[b.We]));if(f.x<h.x||f.x>=k.x+k.w||f.y<h.y||f.y>=k.y+k.h)return n;this.startPoint=f.clone();this.startEvent=e;e=w(a+"lasso");if(!e){e=document.createElement("div");e.id=a+"lasso";e.style.position="absolute";e.style.display="none";document.body.appendChild(e)}hc=5;nc=3;y=e;return i};d.Wf=function(e,f){if(!this.escapedStartPoint){var h=
ec(this.startPoint,fc(e));if(h>5){this.escapedStartPoint=i;b.wg.call(b,this.startEvent,f)}else return i}b.Wf.apply(b,arguments);return i};d.Hf=function(){if(this.escapedStartPoint)b.Hf.apply(b,arguments);else if(this.startPoint){var e=b.$g(this.startEvent).id;b.Fm.call(b,e)}return i};return d}})}};z.prototype.log=function(){this.lA.fireEvent(arguments)};z.prototype.Bt=function(){return this.Zg};function Tc(){this.Ad={};this.sc=0}Tc.prototype.Ta=function(){return this.sc};
Tc.prototype.add=function(a){var b=this.bm(a);if(b in this.Ad)return n;this.Ad[b]=a.qb();++this.sc;return i};Tc.prototype.remove=function(a){a=this.bm(a);if(!(a in this.Ad))return n;delete this.Ad[a];--this.sc;return i};Tc.prototype.clear=function(){this.Ad={};this.sc=0};Tc.prototype.contains=function(a){a=this.bm(a);return a in this.Ad};Tc.prototype.zj=function(){var a=new Array(this.Ta()),b=-1;for(var c in this.Ad)a[++b]=this.Ad[c];return a};
Tc.prototype.bm=function(a){Pa(a instanceof Bb||a instanceof Gb,"expected a date or datetime: "+a);return a.toString().substr(0,9)};function Sc(a){this.rA=a;this.kb=[]}Sc.prototype.add=function(a){Qa(a,Function);if(!a)return n;for(var b=0;b<this.kb.length;++b)if(a===this.kb[b])return n;this.kb.push(a);return i};Sc.prototype.remove=function(a){if(!a)return n;for(var b=0;b<this.kb.length;++b)if(a===this.kb[b]){this.kb.splice(b,1);return i}return n};
Sc.prototype.fireEvent=function(){for(var a=0;a<this.kb.length;++a)this.kb[a].apply(this.rA,arguments)};Sc.prototype.Ta=function(){return this.kb.length};var Wc=j;function Xc(){return function(){return"&laquo;"}}function Yc(a){return function(b){return a.cu()[b.month]+" "+b.year}}function Zc(){return function(){return"&raquo;"}}var $c={};
function ad(a,b,c){if(ya()&&Wc==j){Wc=Wa(window,"DP_Iframe","javascript:false");Wc.parentNode.style.display="none";Wc.style.position="absolute"}var d,e;if($c[a]){d=$c[a];e=d.Bt()}else{e=document.createElement("div");e.id=a+"dp_div";e.style.position="absolute";e.style.display="none";e.style.width="10em";document.body.appendChild(e);d=new z(e,n,undefined,"DP_popup_");d.mq(0);d.Ky(Xc(d));d.cq(Yc(d));d.Jy(Zc(d));d.Py(i);d.By(0);$c[a]=d;d.uj(bd(d,a,b));d.deactivate=function(h){if(!d.ma())return i;var k=
cc(d.Mh());h=fc(h);if(!k.contains(h)){d.hide();if(Wc)Wc.parentNode.style.display="none";return i}return n}}c=cd(e.id,a,d,c);var f=w(a);Xb(f,"focus",c,n);Xb(f,"click",c,n);Xb(f,"blur",dd(d),n);Xb(f,"keydown",ed(d,a,b),n);if(Ca()){Xb(f,"keyup",ed(d,a,fd),n);Xb(e,"mousedown",gd(d),n);Xb(e,"mouseup",hd(d),n);d.FA=0;d.isDownInDiv=n}return d}function gd(a){return function(){a.isDownInDiv=i}}function hd(a){return function(){a.isDownInDiv=n}}
function cd(a,b,c,d){return function(){var e=w(b),f=cc(e),h=w(a);e.focus();h.style.left=f.x+"px";h.style.top=f.y+f.h+"px";h.className="DP_popup_div";h.style.display="";f=e.currentStyle?e.currentStyle:e.ownerDocument.defaultView.getComputedStyle(e,"");var k=0;if(f.zIndex&&"auto"!=f.zIndex)k=f.zIndex;h.style.zIndex=k+1;c.show();if(Wc){f=cc(c.Mh());Wc.parentNode.style.display="";Wc.style.left=f.x+"px";Wc.style.top=f.y+"px";Wc.style.width=f.w+"px";Wc.style.height=f.h+"px";Wc.style.zIndex=h.style.zIndex-
1;Wc.style.display=""}(e=d(e.value))?c.Oc(e,e,n):c.Oc(c.po(),c.po(),n);Qc(c);return i}}function dd(a){return function(b){if(!a.ma())return i;b=b||window.event;if(ya()){var c=cc(a.Mh());b=c.contains(fc(b))}else if(Ca())b=a.isDownInDiv;else{b=b.explicitOriginalTarget;b=Ua(a.Mh(),b)}if(!b){a.hide();if(Wc)Wc.parentNode.style.display="none"}return i}}function fd(a){var b=r("locale.locale");return"zh-Hans-CN"==b||"zh-Hant-HK"==b?a.year+"-"+a.month+"-"+a.date:Ub[a.month]+" "+a.date+", "+a.year}
function id(a){if(a=Pb(a))a=a.confidence>-2?a.date:j;return a}function bd(a,b,c){return function(){var d=a.getSelection();if(d){var e=w(b);e.value=c(d);a.hide();if(Wc)Wc.parentNode.style.display="none";e.onchange&&e.onchange(e)}}}function ed(a,b,c){return function(d){if(a.ma()){d=d||window.event;var e=nb(d);if(e==38||e==40){if(d=a.getSelection()){e=e==38?-1:1;d=Ib(d);d.date+=e;a.Oc(d.qb(),undefined,n)}}else e==13&&window.setTimeout(bd(a,b,c),0)}}};var jd=function(a,b){if(!a)g(Error("Assertion failed"+(b?": "+b:"")))};var kd=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ld=/^[a-zA-Z0-9\-_.!~*'()]*$/,md=function(a){a=String(a);if(!ld.test(a))return encodeURIComponent(a);return a},nd=function(a){return decodeURIComponent(a.replace(/\+/g," "))},td=function(a,b){if(b)return a.replace(od,"&amp;").replace(pd,"&lt;").replace(qd,"&gt;").replace(rd,"&quot;");else{if(!sd.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(od,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(pd,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(qd,
"&gt;");if(a.indexOf('"')!=-1)a=a.replace(rd,"&quot;");return a}},od=/&/g,pd=/</g,qd=/>/g,rd=/\"/g,sd=/[&<>\"]/,xd=function(a){if(ud(a,"&"))return"document"in p&&!ud(a,"<")?vd(a):wd(a);return a},vd=function(a){var b=p.document.createElement("a");b.innerHTML=a;b.normalize&&b.normalize();a=b.firstChild.nodeValue;b.innerHTML="";return a},wd=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)==
"#"){c=Number("0"+c.substr(1));if(!isNaN(c))return String.fromCharCode(c)}return b}})},yd=function(a,b,c){if(c)a=xd(a);if(a.length>b)a=a.substring(0,b-3)+"...";if(c)a=td(a);return a},zd=function(a,b,c){if(c)a=xd(a);if(a.length>b){var d=Math.floor(b/2),e=a.length-d;d+=b%2;a=a.substring(0,d)+"..."+a.substring(e)}if(c)a=td(a);return a},ud=function(a,b){return a.indexOf(b)!=-1},Ad=function(a,b){return(new Array(b+1)).join(a)},A=function(a,b,c){a=c!==undefined?a.toFixed(c):String(a);c=a.indexOf(".");if(c==
-1)c=a.length;return Ad("0",Math.max(0,b-c))+a},Cd=function(a,b){var c=0;a=kd(String(a)).split(".");b=kd(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",h=b[e]||"",k=new RegExp("(\\d*)(\\D*)","g"),l=new RegExp("(\\d*)(\\D*)","g");do{var m=k.exec(f)||["","",""],o=l.exec(h)||["","",""];if(m[0].length==0&&o[0].length==0)break;c=m[1].length==0?0:parseInt(m[1],10);var q=o[1].length==0?0:parseInt(o[1],10);c=Bd(c,q)||Bd(m[2].length==0,o[2].length==0)||Bd(m[2],
o[2])}while(c==0)}return c},Bd=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};ra();var Dd,Ed={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:["J","F","M","A","M","J","J","A","S","O","N","D"],STANDALONENARROWMONTHS:["J","F","M","A","M","J","J","A","S","O","N","D"],MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],STANDALONEMONTHS:["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"],STANDALONESHORTMONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WEEKDAYS:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],STANDALONEWEEKDAYS:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],SHORTWEEKDAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],STANDALONESHORTWEEKDAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],NARROWWEEKDAYS:["S","M","T","W","T","F","S"],STANDALONENARROWWEEKDAYS:["S",
"M","T","W","T","F","S"],SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],AVAILABLEFORMATS:{Md:"M/d",MMMMd:"MMMM d",MMMd:"MMM d"},FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:2};Dd=Ed;var Fd=function(){},Hd=function(a){if(typeof a=="number")return Gd(a);var b=new Fd;b.fj=a.id;b.$i=-a.std_offset;b.nf=a.names;b.sd=a.transitions;return b},Gd=function(a){var b=new Fd;b.$i=a;b.fj=Id(a);a=Jd(a);b.nf=[a,a];b.sd=[];return b},Kd=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(A(Math.floor(a/60)%100,2),":",A(a%60,2));return b.join("")},Id=function(a){if(a==0)return"Etc/GMT";var b=["Etc/GMT",a<0?"-":"+"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a%=60;a!=0&&b.push(":",
A(a,2));return b.join("")},Jd=function(a){if(a==0)return"UTC";var b=["UTC",a<0?"+":"-"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a%=60;a!=0&&b.push(":",a);return b.join("")};Fd.prototype.Ee=function(a){a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes());a=a/3600000;for(var b=0;b<this.sd.length&&a>=this.sd[b];)b+=2;return b==0?0:this.sd[b-1]};Fd.prototype.Dh=function(a){return Kd(this.cd(a))};Fd.prototype.Fh=function(a){return this.nf[this.Re(a)?3:1]};
Fd.prototype.cd=function(a){return this.$i-this.Ee(a)};Fd.prototype.Gh=function(a){a=-this.cd(a);var b=[a<0?"-":"+"];a=Math.abs(a);b.push(A(Math.floor(a/60)%100,2),A(a%60,2));return b.join("")};Fd.prototype.Ih=function(a){return this.nf[this.Re(a)?2:0]};Fd.prototype.Nh=function(){return this.fj};Fd.prototype.Re=function(a){return this.Ee(a)>0};var Ld=function(a){jd(a!==undefined,"Pattern must be defined");this.jd=[];typeof a=="number"?this.um(a):this.sm(a)},Md=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];Ld.prototype.sm=function(a){for(;a;)for(var b=0;b<Md.length;++b){var c=a.match(Md[b]);if(c){c=c[0];a=a.substring(c.length);if(b==0)if(c=="''")c="'";else{c=c.substring(1,c.length-1);c=c.replace(/\'\'/,"'")}this.jd.push({text:c,type:b});break}}};
Ld.prototype.format=function(a,b){var c=b?(a.getTimezoneOffset()-b.cd(a))*60000:0,d=c?new Date(a.getTime()+c):a,e=d;if(b&&d.getTimezoneOffset()!=a.getTimezoneOffset()){c+=c>0?-86400000:86400000;e=new Date(a.getTime()+c)}c=[];for(var f=0;f<this.jd.length;++f){var h=this.jd[f].text;1==this.jd[f].type?c.push(this.nh(h,a,d,e,b)):c.push(h)}return c.join("")};
Ld.prototype.um=function(a){if(a<4)a=Dd.DATEFORMATS[a];else if(a<8)a=Dd.TIMEFORMATS[a-4];else if(a<12)a=Dd.DATEFORMATS[a-8]+" "+Dd.TIMEFORMATS[a-8];else{this.um(10);return}this.sm(a)};Ld.prototype.mh=function(a,b){b=b.getFullYear()>0?1:0;return a>=4?Dd.ERANAMES[b]:Dd.ERAS[b]};Ld.prototype.xh=function(a,b){b=b.getFullYear();if(b<0)b=-b;return a==2?A(b%100,2):String(b)};
Ld.prototype.qh=function(a,b){b=b.getMonth();switch(a){case 5:return Dd.NARROWMONTHS[b];case 4:return Dd.MONTHS[b];case 3:return Dd.SHORTMONTHS[b];default:return A(b+1,a)}};Ld.prototype.ih=function(a,b){return A(b.getHours()||24,a)};Ld.prototype.oh=function(a,b){b=b.getTime()%1000/1000;return b.toFixed(Math.min(3,a)).substr(2)+(a>3?A(0,a-3):"")};Ld.prototype.lh=function(a,b){b=b.getDay();return a>=4?Dd.WEEKDAYS[b]:Dd.SHORTWEEKDAYS[b]};
Ld.prototype.jh=function(a,b){a=b.getHours();return Dd.AMPMS[a>=12&&a<24?1:0]};Ld.prototype.hh=function(a,b){return A(b.getHours()%12||12,a)};Ld.prototype.fh=function(a,b){return A(b.getHours()%12,a)};Ld.prototype.gh=function(a,b){return A(b.getHours(),a)};Ld.prototype.th=function(a,b){b=b.getDay();switch(a){case 5:return Dd.STANDALONENARROWWEEKDAYS[b];case 4:return Dd.STANDALONEWEEKDAYS[b];case 3:return Dd.STANDALONESHORTWEEKDAYS[b];default:return A(b,1)}};
Ld.prototype.uh=function(a,b){b=b.getMonth();switch(a){case 5:return Dd.STANDALONENARROWMONTHS[b];case 4:return Dd.STANDALONEMONTHS[b];case 3:return Dd.STANDALONESHORTMONTHS[b];default:return A(b+1,a)}};Ld.prototype.rh=function(a,b){b=Math.floor(b.getMonth()/3);return a<4?Dd.SHORTQUARTERS[b]:Dd.QUARTERS[b]};Ld.prototype.kh=function(a,b){return A(b.getDate(),a)};Ld.prototype.ph=function(a,b){return A(b.getMinutes(),a)};Ld.prototype.sh=function(a,b){return A(b.getSeconds(),a)};
Ld.prototype.vh=function(a,b,c){c=c||Hd(b.getTimezoneOffset());return a<4?c.Gh(b):c.Dh(b)};Ld.prototype.wh=function(a,b,c){c=c||Hd(b.getTimezoneOffset());return a<4?c.Ih(b):c.Fh(b)};Ld.prototype.$s=function(a,b){b=b||Hd(a.getTimezoneOffset());return b.Nh()};
Ld.prototype.nh=function(a,b,c,d,e){var f=a.length;switch(a.charAt(0)){case "G":return this.mh(f,c);case "y":return this.xh(f,c);case "M":return this.qh(f,c);case "k":return this.ih(f,d);case "S":return this.oh(f,d);case "E":return this.lh(f,c);case "a":return this.jh(f,d);case "h":return this.hh(f,d);case "K":return this.fh(f,d);case "H":return this.gh(f,d);case "c":return this.th(f,c);case "L":return this.uh(f,c);case "Q":return this.rh(f,c);case "d":return this.kh(f,c);case "m":return this.ph(f,
d);case "s":return this.sh(f,d);case "v":return this.$s(b,e);case "z":return this.wh(f,b,e);case "Z":return this.vh(f,b,e);default:return""}};function Rb(){return i}function _AddDatePickerSelectionListener(a,b){return a.uj(b)}var Nd,Od;function _InitDatePickerFormatter(a){Nd=new Ld(a)}function Pd(a){return function(b){b=new Date(b.year,b.month-1,b.date,0,0,0,0);return a.format(b)}}function _AddDatePickerToInput(a){a=ad(a,Pd(Nd),id);var b;b="MMM yyyy";Od=new Ld(b);a.cq(Pd(Od))};var Qd;function Rd(){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);Qd=c;break}catch(d){}}if(!Qd)g(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed."))}}Rd();function Sd(){return Qd?new ActiveXObject(Qd):new XMLHttpRequest}
function Td(a,b,c){a.open("GET",b,i);a.onreadystatechange=c;Ud(a,j)}function Ud(a,b){try{a.send(b)}catch(c){Ka("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);g(c)}};if("undefined"==typeof Ka)Ka=function(){};function Vd(a){this.doc=a||document;this.dA=this.doc.getElementById?function(b){return this.doc.getElementById(b)}:function(b){return this.doc.all[b]}}Vd.prototype.$a=function(a){return this.dA(a)};new Vd;var Wd=function(a,b,c){if(a.indexOf)return a.indexOf(b,c);if(Array.indexOf)return Array.indexOf(a,b,c);for(c=c=c==j?0:c<0?Math.max(0,a.length+c):c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Xd=function(a,b,c){if(a.forEach)a.forEach(b,c);else if(Array.forEach)Array.forEach(a,b,c);else for(var d=a.length,e=ia(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Yd=function(a,b,c){if(a.filter)return a.filter(b,c);if(Array.filter)return Array.filter(a,b,c);for(var d=a.length,e=[],f=0,h=
ia(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];if(b.call(c,l,k,a))e[f++]=l}return e},Zd=function(a,b,c){if(a.map)return a.map(b,c);if(Array.map)return Array.map(a,b,c);for(var d=a.length,e=[],f=0,h=ia(a)?a.split(""):a,k=0;k<d;k++)if(k in h)e[f++]=b.call(c,h[k],k,a);return e},$d=function(a,b,c){if(a.some)return a.some(b,c);if(Array.some)return Array.some(a,b,c);for(var d=a.length,e=ia(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return n},ae=function(a,b,c){if(a.every)return a.every(b,
c);if(Array.every)return Array.every(a,b,c);for(var d=a.length,e=ia(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return n;return i},be=function(a,b){if(a.contains)return a.contains(b);return Wd(a,b)>-1},ce=function(a,b){be(a,b)||a.push(b)},ee=function(a,b,c){de(a,c,0,b)},ge=function(a,b){b=Wd(a,b);var c;if(c=b!=-1)fe(a,b);return c},fe=function(a,b){return Array.prototype.splice.call(a,b,1).length==1},he=function(a){if(ga(a))return a.concat();else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=
a[c];return b}},ie=function(a){if(ga(a))return a.concat();return he(a)},je=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];if(ha(c)){c=ie(c);a.push.apply(a,c)}else a.push(c)}},de=function(a){return Array.prototype.splice.apply(a,ke(arguments,1))},ke=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},me=function(a,b){Array.prototype.sort.call(a,b||le)},ne=function(a,b){for(var c=0;c<a.length;c++)a[c]={index:c,value:a[c]};
var d=b||le;function e(f,h){return d(f.value,h.value)||f.index-h.index}me(a,e);for(c=0;c<a.length;c++)a[c]=a[c].value},le=function(a,b){return a>b?1:a<b?-1:0};var oe=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},pe=function(a){var b=0;for(var c in a)b++;return b},qe=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},re=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b},se=function(a,b){for(var c in a)if(a[c]==b)return i;return n},te=function(a){for(var b in a)return n;return i},ue=function(a,b){var c;if(c=b in a)delete a[b];return c},we=function(a,b,c){if(b in a)g(Error('The object already contains the key "'+b+'"'));ve(a,b,c)},
xe=function(a,b,c){if(b in a)return a[b];return c},ve=function(a,b,c){a[b]=c},ye=function(a){var b={};for(var c in a)b[c]=a[c];return b},ze=function(a){var b={};for(var c in a)b[a[c]]=c;return b},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Be=function(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<Ae.length;e++){b=Ae[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}},Ce=function(){var a=
arguments.length;if(a==1&&ga(arguments[0]))return Ce.apply(j,arguments[0]);if(a%2)g(Error("Uneven number of arguments"));for(var b={},c=0;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b};var De,Ee,Fe,Ge,He,Ie,Je,Ke,Le,Me,Ne=function(){return p.navigator?p.navigator.userAgent:j},Oe=function(){return p.navigator},Pe=function(){Ie=He=Ge=Fe=Ee=De=n;var a;if(a=Ne()){var b=Oe();De=a.indexOf("Opera")==0;Ee=!De&&a.indexOf("MSIE")!=-1;Ge=(Fe=!De&&a.indexOf("WebKit")!=-1)&&a.indexOf("Mobile")!=-1;Ie=(He=!De&&!Fe&&b.product=="Gecko")&&b.vendor=="Camino"}};Pe();
var Qe=De,B=Ee,Re=He,Se=Fe,Te=Ge,Ue=Se,Ve=function(){var a=Oe();return a&&a.platform||""},We=Ve(),Xe=function(){Je=ud(We,"Mac");Ke=ud(We,"Win");Le=ud(We,"Linux");Me=!!Oe()&&ud(Oe().appVersion||"","X11")};Xe();
var Ye=Je,Ze=Ke,$e=Me,af=function(){var a="",b;if(Qe&&p.opera){a=p.opera.version;a=typeof a=="function"?a():a}else{if(Re)b=/rv\:([^\);]+)(\)|;)/;else if(B)b=/MSIE\s+([^\);]+)(\)|;)/;else if(Se)b=/WebKit\/(\S+)/;if(b)a=(a=b.exec(Ne()))?a[1]:""}return a},bf=af(),cf={},df=function(a){return cf[a]||(cf[a]=Cd(bf,a)>=0)};var ef=function(){};ef.prototype.fk=n;ef.prototype.qw=function(){return this.fk};ef.prototype.dispose=function(){if(!this.fk){this.fk=i;this.j()}};ef.prototype.j=function(){};var ff=function(a,b){this.type=a;this.currentTarget=this.target=b};v(ff,ef);ff.prototype.j=function(){delete this.type;delete this.target;delete this.currentTarget};ff.prototype.ld=n;ff.prototype.cf=i;ff.prototype.stopPropagation=function(){this.ld=i};ff.prototype.preventDefault=function(){this.cf=n};var C=function(a,b){a&&this.init(a,b)};v(C,ff);var gf=[1,4,2];C.prototype.target=j;C.prototype.relatedTarget=j;C.prototype.offsetX=0;C.prototype.offsetY=0;C.prototype.clientX=0;C.prototype.clientY=0;C.prototype.screenX=0;C.prototype.screenY=0;C.prototype.button=0;C.prototype.keyCode=0;C.prototype.charCode=0;C.prototype.ctrlKey=n;C.prototype.altKey=n;C.prototype.shiftKey=n;C.prototype.metaKey=n;C.prototype.Bc=j;
C.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(Re)try{b=b.nodeName&&b}catch(d){}}else if(c=="mouseover")b=a.fromElement;else if(c=="mouseout")b=a.toElement;this.relatedTarget=b;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?a.clientY:a.pageY;this.screenX=a.screenX||
0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Bc=a;delete this.cf;delete this.ld};C.prototype.Po=function(a){return B?this.type=="click"?a==0:!!(this.Bc.button&gf[a]):this.Bc.button==a};C.prototype.stopPropagation=function(){this.ld=i;if(this.Bc.stopPropagation)this.Bc.stopPropagation();else this.Bc.cancelBubble=i};
var hf=B&&!df("8");C.prototype.preventDefault=function(){this.cf=n;var a=this.Bc;if(a.preventDefault)a.preventDefault();else{a.returnValue=n;if(hf)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};C.prototype.uk=function(){return this.Bc};C.prototype.j=function(){C.r.j.call(this);this.relatedTarget=this.currentTarget=this.target=this.Bc=j};var jf=function(a,b){this.Nw=b;this.Ae=[];this.as(a)};v(jf,ef);jf.prototype.Zj=j;jf.prototype.nn=j;jf.prototype.pg=function(a){this.Zj=a};jf.prototype.Ie=function(){if(this.Ae.length)return this.Ae.pop();return this.Um()};jf.prototype.af=function(a){this.Ae.length<this.Nw?this.Ae.push(a):this.mn(a)};jf.prototype.as=function(a){if(a>this.Nw)g(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.Ae.push(this.Um())};
jf.prototype.Um=function(){return this.Zj?this.Zj():{}};jf.prototype.mn=function(a){if(this.nn)this.nn(a);else if(ka(a.dispose))a.dispose();else for(var b in a)delete a[b]};jf.prototype.j=function(){jf.r.j.call(this);for(var a=this.Ae;a.length;)this.mn(a.pop());delete this.Ae};var kf,lf,mf=function(){var a="ScriptEngine"in p;lf=(kf=a&&p.ScriptEngine()=="JScript")?p.ScriptEngineMajorVersion()+"."+p.ScriptEngineMinorVersion()+"."+p.ScriptEngineBuildVersion():"0"};mf();var nf=kf,of=lf;var pf=function(){},qf=0;pf.prototype.key=0;pf.prototype.removed=n;pf.prototype.Ej=n;pf.prototype.init=function(a,b,c,d,e,f){if(ka(a))this.tw=i;else if(a&&a.handleEvent&&ka(a.handleEvent))this.tw=n;else g(Error("Invalid listener argument"));this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.Ej=n;this.key=++qf;this.removed=n};
pf.prototype.handleEvent=function(a){if(this.tw)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};var rf,sf,tf,uf,vf,wf,xf,yf,zf,Af,Bf;
(function(){var a=nf&&!(Cd(of,"5.7")>=0);function b(){return{I:0,nc:0}}function c(){return[]}var d;wf=function(x){d=x};function e(){var x=function(s){return d.call(x.src,x.key,s)};return x}function f(){return new pf}function h(){return new C}if(a){rf=function(){return k.Ie()};sf=function(x){k.af(x)};tf=function(){return l.Ie()};uf=function(x){l.af(x)};vf=function(){return m.Ie()};xf=function(){m.af(e())};yf=function(){return o.Ie()};zf=function(x){o.af(x)};Af=function(){return q.Ie()};Bf=function(x){q.af(x)};
var k=new jf(0,600);k.pg(b);var l=new jf(0,600);l.pg(c);var m=new jf(0,600);m.pg(e);var o=new jf(0,600);o.pg(f);var q=new jf(0,600);q.pg(h)}else{rf=b;sf=da;tf=c;uf=da;vf=e;xf=da;yf=f;zf=da;Af=h;Bf=da}})();var Cf={},Df={},Ef={},Ff="on",Gf={},D=function(a,b,c,d,e){if(b)if(ga(b)){for(var f=0;f<b.length;f++)D(a,b[f],c,d,e);return j}else{d=!!d;var h=Df;b in h||(h[b]=rf());h=h[b];if(!(d in h)){h[d]=rf();h.I++}h=h[d];var k=oa(a),l;h.nc++;if(h[k]){l=h[k];for(f=0;f<l.length;f++){h=l[f];if(h.listener==c&&h.handler==e){if(h.removed)break;return l[f].key}}}else{l=h[k]=tf();h.I++}f=vf();f.src=a;h=yf();h.init(c,f,a,b,d,e);c=h.key;f.key=c;l.push(h);Cf[c]=h;Ef[k]||(Ef[k]=tf());Ef[k].push(h);if(a.addEventListener){if(a==
p||!a.en)a.addEventListener(b,f,d)}else a.attachEvent(Hf(b),f);return c}else g(Error("Invalid event type"))},If=function(a,b,c,d,e){if(ga(b)){for(var f=0;f<b.length;f++)If(a,b[f],c,d,e);return j}a=D(a,b,c,d,e);b=Cf[a];b.Ej=i;return a},Jf=function(a,b,c,d,e){if(ga(b)){for(var f=0;f<b.length;f++)Jf(a,b[f],c,d,e);return j}d=!!d;a=Kf(a,b,d);if(!a)return n;for(f=0;f<a.length;f++)if(a[f].listener==c&&a[f].capture==d&&a[f].handler==e)return Lf(a[f].key);return n},Lf=function(a){if(!Cf[a])return n;var b=
Cf[a];if(b.removed)return n;var c=b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==p||!c.en)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(Hf(d),e);c=oa(c);e=Df[d][f][c];if(Ef[c]){var h=Ef[c];ge(h,b);h.length==0&&delete Ef[c]}b.removed=i;e.Tw=i;Mf(d,f,c,e);delete Cf[a];return i},Mf=function(a,b,c,d){if(!d.il)if(d.Tw){for(var e=0,f=0;e<d.length;e++)if(d[e].removed){var h=d[e].proxy;h.src=j;xf(h);zf(d[e])}else{if(e!=f)d[f]=d[e];f++}d.length=f;d.Tw=n;if(f==0){uf(d);
delete Df[a][b][c];Df[a][b].I--;if(Df[a][b].I==0){sf(Df[a][b]);delete Df[a][b];Df[a].I--}if(Df[a].I==0){sf(Df[a]);delete Df[a]}}}},Nf=function(a,b,c){var d=0,e=a==j,f=b==j,h=c==j;c=!!c;if(e)oe(Ef,function(l){for(var m=l.length-1;m>=0;m--){var o=l[m];if((f||b==o.type)&&(h||c==o.capture)){Lf(o.key);d++}}});else{a=oa(a);if(Ef[a]){a=Ef[a];for(e=a.length-1;e>=0;e--){var k=a[e];if((f||b==k.type)&&(h||c==k.capture)){Lf(k.key);d++}}}}return d},Kf=function(a,b,c){var d=Df;if(b in d){d=d[b];if(c in d){d=d[c];
a=oa(a);if(d[a])return d[a]}}return j},Of=function(a,b,c,d,e){d=!!d;if(a=Kf(a,b,d))for(b=0;b<a.length;b++)if(a[b].listener==c&&a[b].capture==d&&a[b].handler==e)return a[b];return j},Pf=function(a,b,c){a=oa(a);var d=Ef[a];if(d){var e=b!==undefined,f=c!==undefined;if(e&&f){d=Df[b];return!!d&&!!d[c]&&a in d[c]}else return e||f?$d(d,function(h){return e&&h.type==b||f&&h.capture==c}):i}return n},Hf=function(a){if(a in Gf)return Gf[a];return Gf[a]=Ff+a},Rf=function(a,b,c,d,e){var f=1;b=oa(b);if(a[b]){a.nc--;
a=a[b];if(a.il)a.il++;else a.il=1;try{for(var h=a.length,k=0;k<h;k++){var l=a[k];if(l&&!l.removed)f&=Qf(l,e)!==n}}finally{a.il--;Mf(c,d,b,a)}}return Boolean(f)},Qf=function(a,b){b=a.handleEvent(b);a.Ej&&Lf(a.key);return b},Sf=function(a,b){if(ia(b))b=new ff(b,a);else if(b instanceof ff)b.target=b.target||a;else{var c=b;b=new ff(b.type,a);Be(b,c)}c=1;var d,e=b.type,f=Df;if(!(e in f))return i;f=f[e];e=i in f;var h;if(e){d=[];for(h=a;h;h=h.ho())d.push(h);h=f[i];h.nc=h.I;for(var k=d.length-1;!b.ld&&k>=
0&&h.nc;k--){b.currentTarget=d[k];c&=Rf(h,d[k],b.type,i,b)&&b.cf!=n}}if(h=n in f){h=f[n];h.nc=h.I;if(e)for(k=0;!b.ld&&k<d.length&&h.nc;k++){b.currentTarget=d[k];c&=Rf(h,d[k],b.type,n,b)&&b.cf!=n}else for(a=a;!b.ld&&a&&h.nc;a=a.ho()){b.currentTarget=a;c&=Rf(h,a,b.type,n,b)&&b.cf!=n}}return Boolean(c)},Uf=function(a,b){if(!Cf[a])return i;a=Cf[a];var c=a.type,d=Df;if(!(c in d))return i;d=d[c];var e,f;if(B){e=b||r("window.event");b=i in d;var h=n in d;if(b){if(e.keyCode<0||e.returnValue!=undefined)return i;
Tf(e)}var k=Af();k.init(e,this);e=i;try{if(b){for(var l=tf(),m=k.currentTarget;m;m=m.parentNode)l.push(m);f=d[i];f.nc=f.I;for(var o=l.length-1;!k.ld&&o>=0&&f.nc;o--){k.currentTarget=l[o];e&=Rf(f,l[o],c,i,k)}if(h){f=d[n];f.nc=f.I;for(o=0;!k.ld&&o<l.length&&f.nc;o++){k.currentTarget=l[o];e&=Rf(f,l[o],c,n,k)}}}else e=Qf(a,k)}finally{if(l){l.length=0;uf(l)}k.dispose();Bf(k)}return e}f=new C(b,this);try{e=Qf(a,f)}finally{f.dispose()}return e};wf(Uf);
var Tf=function(a){var b=n;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=i}if(b||a.returnValue==undefined)a.returnValue=i};var E=function(){};v(E,ef);E.prototype.en=i;E.prototype.tl=j;E.prototype.ho=function(){return this.tl};E.prototype.Qi=function(a){this.tl=a};E.prototype.addEventListener=function(a,b,c,d){D(this,a,b,c,d)};E.prototype.removeEventListener=function(a,b,c,d){Jf(this,a,b,c,d)};E.prototype.dispatchEvent=function(a){return Sf(this,a)};E.prototype.j=function(){E.r.j.call(this);Nf(this);this.tl=j};var Vf=function(a){this.A=a;a=Re?"DOMMouseScroll":"mousewheel";this.hl=D(this.A,a,this)};v(Vf,E);Vf.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.uk();if(a.type=="mousewheel"){c=1;if(B||Se&&(Ze||df("532.0")))c=40;d=-a.wheelDelta/c;if(a.wheelDeltaX!==undefined){b=-a.wheelDeltaX/c;c=-a.wheelDeltaY/c}else c=d}else{d=a.detail;if(d>100)d=3;else if(d<-100)d=-3;if(a.axis!==undefined&&a.axis===a.HORIZONTAL_AXIS)b=d;else c=d}b=new Wf(d,a,b,c);try{this.dispatchEvent(b)}finally{b.dispose()}};
Vf.prototype.j=function(){Vf.r.j.call(this);Lf(this.hl);delete this.hl};var Wf=function(a,b,c,d){C.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};v(Wf,C);var Xf="StopIteration"in p?p.StopIteration:Error("StopIteration"),Yf=function(){};Yf.prototype.next=function(){g(Xf)};Yf.prototype.__iterator__=function(){return this};var Zf=function(a){if(typeof a.Ed=="function")return a.Ed();if(ha(a)||ia(a))return a.length;return pe(a)},$f=function(a){if(typeof a.Gb=="function")return a.Gb();if(ia(a))return a.split("");if(ha(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return qe(a)},ag=function(a){if(typeof a.bd=="function")return a.bd();if(typeof a.Gb!="function"){if(ha(a)||ia(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return re(a)}},bg=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,
c);else if(ha(a)||ia(a))Xd(a,b,c);else for(var d=ag(a),e=$f(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)},cg=function(a,b,c){if(typeof a.filter=="function")return a.filter(b,c);if(ha(a)||ia(a))return Yd(a,b,c);var d,e=ag(a),f=$f(a),h=f.length;if(e){d={};for(var k=0;k<h;k++)if(b.call(c,f[k],e[k],a))d[e[k]]=f[k]}else{d=[];for(k=0;k<h;k++)b.call(c,f[k],undefined,a)&&d.push(f[k])}return d};var dg=function(a){this.kc={};this.N=[];var b=arguments.length;if(b>1){if(b%2)g(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.Zq(a)};dg.prototype.I=0;dg.prototype.Tc=0;dg.prototype.Ed=function(){return this.I};dg.prototype.Gb=function(){this.xf();for(var a=[],b=0;b<this.N.length;b++){var c=this.N[b];a.push(this.kc[c])}return a};dg.prototype.bd=function(){this.xf();return this.N.concat()};dg.prototype.wb=function(a){return eg(this.kc,a)};
dg.prototype.equals=function(a,b){if(this===a)return i;if(this.I!=a.Ed())return n;b=b||fg;this.xf();for(var c,d=0;c=this.N[d];d++)if(!b(this.get(c),a.get(c)))return n;return i};var fg=function(a,b){return a===b};dg.prototype.clear=function(){this.kc={};this.Tc=this.I=this.N.length=0};dg.prototype.remove=function(a){if(eg(this.kc,a)){delete this.kc[a];this.I--;this.Tc++;this.N.length>2*this.I&&this.xf();return i}return n};
dg.prototype.xf=function(){if(this.I!=this.N.length){for(var a=0,b=0;a<this.N.length;){var c=this.N[a];if(eg(this.kc,c))this.N[b++]=c;a++}this.N.length=b}if(this.I!=this.N.length){var d={};for(b=a=0;a<this.N.length;){c=this.N[a];if(!eg(d,c)){this.N[b++]=c;d[c]=1}a++}this.N.length=b}};dg.prototype.get=function(a,b){if(eg(this.kc,a))return this.kc[a];return b};dg.prototype.set=function(a,b){if(!eg(this.kc,a)){this.I++;this.N.push(a);this.Tc++}this.kc[a]=b};
dg.prototype.Zq=function(a){var b;if(a instanceof dg){b=a.bd();a=a.Gb()}else{b=re(a);a=qe(a)}for(var c=0;c<b.length;c++)this.set(b[c],a[c])};dg.prototype.clone=function(){return new dg(this)};dg.prototype.__iterator__=function(a){this.xf();var b=0,c=this.N,d=this.kc,e=this.Tc,f=this,h=new Yf;h.next=function(){for(;1;){if(e!=f.Tc)g(Error("The map has changed since the iterator was created"));if(b>=c.length)g(Xf);var k=c[b++];return a?k:d[k]}};return h};
var eg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var gg=function(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0};gg.prototype.clone=function(){return new gg(this.x,this.y)};gg.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var hg=function(a,b){return new gg(a.x-b.x,a.y-b.y)};var ig=function(a,b){this.width=a;this.height=b},jg=function(a,b){if(a==b)return i;if(!a||!b)return n;return a.width==b.width&&a.height==b.height};ig.prototype.clone=function(){return new ig(this.width,this.height)};ig.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};ig.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
ig.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};ig.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};ig.prototype.scale=function(a){this.width*=a;this.height*=a;return this};var kg,lg=function(a,b){a.className=b},mg=function(a){return(a=a.className)&&typeof a.split=="function"?a.split(" "):[]},og=function(a){var b=mg(a),c=ke(arguments,1);c=ng(b,c);a.className=b.join(" ");return c},qg=function(a){var b=mg(a),c=ke(arguments,1);c=pg(b,c);a.className=b.join(" ");return c},ng=function(a,b){for(var c=0,d=0;d<b.length;d++)if(!be(a,b[d])){a.push(b[d]);c++}return c==b.length},pg=function(a,b){for(var c=0,d=0;d<a.length;d++)if(be(b,a[d])){de(a,d--,1);c++}return c==b.length},rg=
function(a,b,c){for(var d=mg(a),e=n,f=0;f<d.length;f++)if(d[f]==b){de(d,f--,1);e=i}if(e){d.push(c);a.className=d.join(" ")}return e},sg=function(a,b){return be(mg(a),b)},tg=function(a,b,c){c?og(a,b):qg(a,b)},ug=function(a,b){var c=!sg(a,b);tg(a,b,c);return c};var xg=function(a){return a?new vg(wg(a)):kg||(kg=new vg)},yg=function(a){return ia(a)?document.getElementById(a):a},F=yg,Ag=function(a,b,c){return zg(document,a,b,c)},zg=function(a,b,c,d){d=d||a;b=b&&b!="*"?b.toLowerCase():"";if(d.querySelectorAll&&(b||c)&&(!Se||Bg(a)||df("528"))){c=b+(c?"."+c:"");return d.querySelectorAll(c)}if(c&&d.getElementsByClassName){a=d.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)if(b==h.nodeName.toLowerCase())d[e++]=h;d.length=e;return d}else return a}a=
d.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++){b=h.className;if(typeof b.split=="function"&&be(b.split(" "),c))d[e++]=h}d.length=e;return d}else return a},Cg=Ag,Eg=function(a,b){oe(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in Dg)a.setAttribute(Dg[d],c);else a[d]=c})},Dg={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",
usemap:"useMap",frameborder:"frameBorder",type:"type"},Gg=function(a){return Fg(a||window)},Fg=function(a){var b=a.document;if(Se&&!df("500")&&!Te){if(typeof a.innerHeight=="undefined")a=window;b=a.innerHeight;var c=a.document.documentElement.scrollHeight;if(a==a.top)if(c<b)b-=15;return new ig(a.innerWidth,b)}a=Bg(b)&&(!Qe||Qe&&df("9.50"))?b.documentElement:b.body;return new ig(a.clientWidth,a.clientHeight)},Hg=function(a){a=!Se&&Bg(a)?a.documentElement:a.body;return new gg(a.scrollLeft,a.scrollTop)},
Jg=function(a){return a?Ig(a):window},Ig=function(a){if(a.parentWindow)return a.parentWindow;if(Se&&!df("500")&&!Te){var b=a.createElement("script");b.innerHTML="document.parentWindow=window";var c=a.documentElement;c.appendChild(b);c.removeChild(b);return a.parentWindow}return a.defaultView},Lg=function(){return Kg(document,arguments)},Kg=function(a,b){var c=b[0],d=b[1];if(B&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',td(d.name),'"');if(d.type){c.push(' type="',td(d.type),'"');d=pa(d);
delete d.type}c.push(">");c=c.join("")}var e=a.createElement(c);if(d)if(ia(d))e.className=d;else Eg(e,d);if(b.length>2){function f(h){if(h)e.appendChild(ia(h)?a.createTextNode(h):h)}for(d=2;d<b.length;d++){c=b[d];ha(c)&&!(la(c)&&c.nodeType>0)?Xd(Mg(c)?he(c):c,f):f(c)}}return e},Ng=Lg,Og=function(a){return document.createTextNode(a)},Qg=function(a){return Pg(document,a)},Pg=function(a,b){var c=a.createElement("div");c.innerHTML=b;if(c.childNodes.length==1)return c.firstChild;else{for(a=a.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);
return a}},Bg=function(a){return a.compatMode=="CSS1Compat"},G=function(a,b){a.appendChild(b)},Rg=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},Sg=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)},Tg=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)},Ug=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):j},Vg=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},Wg=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=11)if(a.removeNode)return a.removeNode(n);
else{for(;b=a.firstChild;)c.insertBefore(b,a);return Ug(a)}},Yg=function(a){return Xg(a.firstChild,i)},Xg=function(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a},Zg=Se&&df("522"),$g=function(a,b){if(typeof a.contains!="undefined"&&!Zg&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},wg=function(a){return a.nodeType==9?a:a.ownerDocument||
a.document},ah=function(a){return a=Se?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document},bh=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{Rg(a);var c=wg(a);a.appendChild(c.createTextNode(b))}},dh=function(a,b){var c=[];return(a=ch(a,b,c,i))?c[0]:undefined},ch=function(a,b,c,d){if(a!=j)for(var e=0,f;f=a.childNodes[e];e++){if(b(f)){c.push(f);
if(d)return i}if(ch(f,b,c,d))return i}return n},eh={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},fh={IMG:" ",BR:"\n"},gh=function(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){a=a.tabIndex;return ja(a)&&a>=0}return n},hh=function(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")},jh=function(a){if(B&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];ih(a,b,i);a=b.join("")}a=a.replace(/\xAD/g,"");a=a.replace(/ +/g," ");if(a!=" ")a=a.replace(/^\s*/,"");return a},
ih=function(a,b,c){if(!(a.nodeName in eh))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in fh)b.push(fh[a.nodeName]);else for(a=a.firstChild;a;){ih(a,b,c);a=a.nextSibling}},Mg=function(a){if(a&&typeof a.length=="number")if(la(a))return typeof a.item=="function"||typeof a.item=="string";else if(ka(a))return typeof a.item=="function";return n},vg=function(a){this.Ob=a||p.document||document};vg.prototype.la=xg;vg.prototype.Zc=function(){return this.Ob};
vg.prototype.k=function(a){return ia(a)?this.Ob.getElementById(a):a};vg.prototype.$a=vg.prototype.k;vg.prototype.Nu=function(a){return Gg(a||this.to())};vg.prototype.i=function(){return Kg(this.Ob,arguments)};vg.prototype.B=vg.prototype.i;vg.prototype.createElement=function(a){return this.Ob.createElement(a)};vg.prototype.createTextNode=function(a){return this.Ob.createTextNode(a)};vg.prototype.So=function(){return Bg(this.Ob)};vg.prototype.to=function(){return Ig(this.Ob)};
vg.prototype.Qn=function(){return!Se&&Bg(this.Ob)?this.Ob.documentElement:this.Ob.body};vg.prototype.yk=function(){return Hg(this.Ob)};vg.prototype.appendChild=G;vg.prototype.removeNode=Ug;vg.prototype.replaceNode=Vg;vg.prototype.Yn=Yg;vg.prototype.contains=$g;var lh=function(a,b){this.Zh=a||1;this.ij=b||kh;this.Am=t(this.pz,this);this.Zo=ra()};v(lh,E);lh.prototype.enabled=n;var kh=p.window,mh=0.8;lh.prototype.Rc=j;lh.prototype.setInterval=function(a){this.Zh=a;if(this.Rc&&this.enabled){this.stop();this.start()}else this.Rc&&this.stop()};lh.prototype.pz=function(){if(this.enabled){var a=ra()-this.Zo;if(a>0&&a<this.Zh*mh)this.Rc=this.ij.setTimeout(this.Am,this.Zh-a);else{this.Gs();if(this.enabled){this.Rc=this.ij.setTimeout(this.Am,this.Zh);this.Zo=ra()}}}};
lh.prototype.Gs=function(){this.dispatchEvent("tick")};lh.prototype.start=function(){this.enabled=i;if(!this.Rc){this.Rc=this.ij.setTimeout(this.Am,this.Zh);this.Zo=ra()}};lh.prototype.stop=function(){this.enabled=n;if(this.Rc){this.ij.clearTimeout(this.Rc);this.Rc=j}};lh.prototype.j=function(){lh.r.j.call(this);this.stop();delete this.ij};
var nh=function(a,b,c){if(ka(a)){if(c)a=t(a,c)}else if(a&&typeof a.handleEvent=="function")a=t(a.handleEvent,a);else g(Error("Invalid listener argument"));return b>2147483647?-1:kh.setTimeout(a,b||0)},oh=function(a){kh.clearTimeout(a)};var ph=function(a){return 1-Math.pow(1-a,3)},qh=function(a){return 3*a*a-2*a*a*a},rh=function(a,b,c,d){if(!ga(a)||!ga(b))g(Error("Start and end parameters must be arrays"));if(a.length!=b.length)g(Error("Start and end points must be the same length"));this.startPoint=a;this.endPoint=b;this.duration=c;this.Yq=d;this.coords=[]};v(rh,E);
var sh={},th=j,uh=function(){kh.clearTimeout(th);var a=ra();for(var b in sh)sh[b].cycle(a);th=te(sh)?j:kh.setTimeout(uh,20)},vh=function(a){var b=oa(a);b in sh||(sh[b]=a);th||(th=kh.setTimeout(uh,20))},wh=function(a){a=oa(a);delete sh[a];if(th&&te(sh)){kh.clearTimeout(th);th=j}};rh.prototype.D=0;rh.prototype.Jn=0;rh.prototype.progress=0;rh.prototype.ce=j;rh.prototype.rn=j;rh.prototype.fl=j;
rh.prototype.play=function(a){if(a||this.D==0){this.progress=0;this.coords=this.startPoint}else if(this.D==1)return n;wh(this);this.ce=ra();if(this.D==-1)this.ce-=this.duration*this.progress;this.rn=this.ce+this.duration;this.fl=this.ce;this.progress||this.lc();this.lx();this.D==-1&&this.si();this.D=1;vh(this);this.cycle(this.ce);return i};rh.prototype.stop=function(a){wh(this);this.D=0;if(a)this.progress=1;this.$l(this.progress);this.ti();this.hd()};
rh.prototype.pause=function(){if(this.D==1){wh(this);this.D=-1;this.qi()}};rh.prototype.j=function(){this.D!=0&&this.stop(n);this.pi();rh.r.j.call(this)};rh.prototype.destroy=function(){this.dispose()};rh.prototype.cycle=function(a){this.progress=(a-this.ce)/(this.rn-this.ce);if(this.progress>=1)this.progress=1;this.Jn=1000/(a-this.fl);this.fl=a;ka(this.Yq)?this.$l(this.Yq(this.progress)):this.$l(this.progress);if(this.progress==1){this.D=0;wh(this);this.gx();this.hd()}else this.D==1&&this.ni()};
rh.prototype.$l=function(a){this.coords=new Array(this.startPoint.length);for(var b=0;b<this.startPoint.length;b++)this.coords[b]=(this.endPoint[b]-this.startPoint[b])*a+this.startPoint[b]};rh.prototype.ni=function(){this.Ac("animate")};rh.prototype.lc=function(){this.Ac("begin")};rh.prototype.pi=function(){this.Ac("destroy")};rh.prototype.hd=function(){this.Ac("end")};rh.prototype.gx=function(){this.Ac("finish")};rh.prototype.qi=function(){this.Ac("pause")};rh.prototype.lx=function(){this.Ac("play")};
rh.prototype.si=function(){this.Ac("resume")};rh.prototype.ti=function(){this.Ac("stop")};rh.prototype.Ac=function(a){this.dispatchEvent(new xh(a,this))};var xh=function(a,b){ff.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.z=b.coords[2];this.duration=b.duration;this.progress=b.progress;this.fps=b.Jn;this.state=b.D;this.anim=b};v(xh,ff);var yh=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};yh.prototype.clone=function(){return new yh(this.top,this.right,this.bottom,this.left)};yh.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};yh.prototype.contains=function(a){return zh(this,a)};
yh.prototype.expand=function(a,b,c,d){if(la(a)){this.top-=a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};var zh=function(a,b){if(!a||!b)return n;if(b instanceof yh)return b.left>=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom;return b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom};var Ah=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Ah.prototype.clone=function(){return new Ah(this.left,this.top,this.width,this.height)};Ah.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
Ah.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a){this.left=b;this.top=d;this.width=c-b;this.height=a-d;return i}}return n};
Ah.prototype.contains=function(a){return a instanceof Ah?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};Ah.prototype.Ta=function(){return new ig(this.width,this.height)};var Bh,Ch,Dh,Eh,Fh,Gh,Hh=function(){Gh=Fh=Eh=Dh=Ch=Bh=n;var a=Ne();if(a)if(a.indexOf("Firefox")!=-1)Bh=i;else if(a.indexOf("Camino")!=-1)Ch=i;else if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1)Dh=i;else if(a.indexOf("Android")!=-1)Eh=i;else if(a.indexOf("Chrome")!=-1)Fh=i;else if(a.indexOf("Safari")!=-1)Gh=i};Hh();var Jh=function(a,b,c){ia(b)?Ih(a,c,b):oe(b,qa(Ih,a))},Ih=function(a,b,c){a.style[Kh(c)]=b},Lh=function(a,b){var c=wg(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(a=c.defaultView.getComputedStyle(a,""))return a[b];return j},Mh=function(a,b){return Lh(a,b)||(a.currentStyle?a.currentStyle[b]:j)||a.style[b]},Nh=function(a,b,c){var d,e=Re&&(Ye||$e)&&df("1.9");if(b instanceof gg){d=b.x;b=b.y}else{d=b;b=c}a.style.left=typeof d=="number"?(e?Math.round(d):d)+"px":d;a.style.top=typeof b=="number"?
(e?Math.round(b):b)+"px":b},Oh=function(a){a=a?a.nodeType==9?a:wg(a):document;if(B&&!xg(a).So())return a.body;return a.documentElement},Ph=function(a){var b=a.getBoundingClientRect();if(B){a=a.ownerDocument;b.left-=a.documentElement.clientLeft+a.body.clientLeft;b.top-=a.documentElement.clientTop+a.body.clientTop}return b},Qh=function(a){if(B)return a.offsetParent;var b=wg(a),c=Mh(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=Mh(a,"position");d=d&&c=="static"&&
a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"))return a}return j},Th=function(a){var b=new yh(0,Infinity,Infinity,0),c=xg(a),d=c.Qn(),e;for(a=a;a=Qh(a);)if((!B||a.clientWidth!=0)&&(a.scrollWidth!=a.clientWidth||a.scrollHeight!=a.clientHeight)&&Mh(a,"overflow")!="visible"){var f=Rh(a),h=Sh(a);f.x+=h.x;f.y+=h.y;b.top=Math.max(b.top,f.y);b.right=Math.min(b.right,f.x+a.clientWidth);b.bottom=Math.min(b.bottom,f.y+a.clientHeight);
b.left=Math.max(b.left,f.x);e=e||a!=d}a=d.scrollLeft;d=d.scrollTop;if(Se){b.left+=a;b.top+=d}else{b.left=Math.max(b.left,a);b.top=Math.max(b.top,d)}if(!e||Se){b.right+=a;b.bottom+=d}c=c.Nu();b.right=Math.min(b.right,a+c.width);b.bottom=Math.min(b.bottom,d+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:j},Sh=function(a){if(Re&&!df("1.9")){var b=parseFloat(Lh(a,"borderLeftWidth"));if(Uh(a)){var c=a.offsetWidth-a.clientWidth-b-parseFloat(Lh(a,"borderRightWidth"));b+=c}return new gg(b,
parseFloat(Lh(a,"borderTopWidth")))}return new gg(a.clientLeft,a.clientTop)},Rh=function(a){var b,c=wg(a),d=Mh(a,"position"),e=Re&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),f=new gg(0,0),h=Oh(c);if(a==h)return f;if(a.getBoundingClientRect){b=Ph(a);a=xg(c).yk();f.x=b.left+a.x;f.y=b.top+a.y}else if(c.getBoxObjectFor&&!e){b=c.getBoxObjectFor(a);a=c.getBoxObjectFor(h);f.x=b.screenX-a.screenX;f.y=b.screenY-a.screenY}else{b=a;do{f.x+=
b.offsetLeft;f.y+=b.offsetTop;if(b!=a){f.x+=b.clientLeft||0;f.y+=b.clientTop||0}if(Se&&Mh(b,"position")=="fixed"){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(Qe||Se&&d=="absolute")f.y-=c.body.offsetTop;for(b=a;(b=Qh(b))&&b!=c.body&&b!=h;){f.x-=b.scrollLeft;if(!Qe||b.tagName!="TR")f.y-=b.scrollTop}}return f},Wh=function(a,b){var c=new gg(0,0),d=Jg(wg(a));a=a;do{var e=d==b?Rh(a):Vh(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&(a=d.frameElement)&&(d=d.parent));return c},
Xh=function(a,b,c){if(b.Zc()!=c.Zc()){var d=b.Zc().body;c=Wh(d,c.to());c=hg(c,Rh(d));if(B&&!b.So())c=hg(c,b.yk());a.left+=c.x;a.top+=c.y}},Yh=function(a,b){a=Vh(a);b=Vh(b);return new gg(a.x-b.x,a.y-b.y)},Vh=function(a){var b=new gg;if(a.nodeType==1)if(a.getBoundingClientRect){var c=Ph(a);b.x=c.left;b.y=c.top}else{c=xg(a).yk();a=Rh(a);b.x=a.x-c.x;b.y=a.y-c.y}else{b.x=a.clientX;b.y=a.clientY}return b},Zh=function(a,b,c){var d=Rh(a);if(b instanceof gg){c=b.y;b=b.x}b=b-d.x;c=c-d.y;Nh(a,a.offsetLeft+b,
a.offsetTop+c)},$h=function(a,b,c){if(b instanceof ig){c=b.height;b=b.width}else{if(c==undefined)g(Error("missing height argument"));c=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof c=="number"?Math.round(c)+"px":c},ai=function(a){var b=Qe&&!df("10");if(Mh(a,"display")!="none")return b?new ig(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new ig(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position=
"absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=f;c.visibility=e;return new ig(b,a)},bi=function(a){var b=Rh(a);a=ai(a);return new Ah(b.x,b.y,a.width,a.height)},ci={},Kh=function(a){return ci[a]||(ci[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))},di=function(a,b){a=a.style;if("opacity"in a)a.opacity=b;else if("MozOpacity"in a)a.MozOpacity=b;else if("filter"in
a)a.filter=b===""?"":"alpha(opacity="+b*100+")"},H=function(a,b){a.style.display=b?"":"none"},Uh=function(a){return"rtl"==Mh(a,"direction")},ei=Re?"MozUserSelect":Se?"WebkitUserSelect":j,fi=function(a,b,c){c=!c?a.getElementsByTagName("*"):j;var d=ei;if(d){b=b?"none":"";a.style[d]=b;if(c){a=0;for(var e;e=c[a];a++)e.style[d]=b}}else if(B||Qe){b=b?"on":"";a.setAttribute("unselectable",b);if(c)for(a=0;e=c[a];a++)e.setAttribute("unselectable",b)}};var gi=function(a,b,c,d,e){rh.call(this,b,c,d,e);this.element=a};v(gi,rh);gi.prototype.Sc=da;gi.prototype.ni=function(){this.Sc();gi.r.ni.call(this)};gi.prototype.hd=function(){this.Sc();gi.r.hd.call(this)};gi.prototype.lc=function(){this.Sc();gi.r.lc.call(this)};var hi=function(a,b,c){if(b.length!=2||c.length!=2)g(Error("Start and end points must be 2D"));gi.apply(this,arguments);this.Sw=Math.max(this.endPoint[0],this.startPoint[0]);this.Pw=Math.max(this.endPoint[1],this.startPoint[1])};v(hi,gi);
hi.prototype.Sc=function(){var a=this.coords[0],b=this.coords[1];this.Pr(Math.round(a),Math.round(b),this.Sw,this.Pw);this.element.style.width=Math.round(a)+"px";this.element.style.marginLeft=Math.round(a)-this.Sw+"px";this.element.style.marginTop=Math.round(b)-this.Pw+"px"};hi.prototype.Pr=function(a,b,c,d){this.element.style.clip="rect("+(d-b)+"px "+c+"px "+d+"px "+(c-a)+"px)"};var ii=function(a,b,c,d,e){gi.call(this,a,[b],[c],d,e)};v(ii,gi);
ii.prototype.Sc=function(){this.element.style.height=Math.round(this.coords[0])+"px"};var ji=function(a,b,c,d,e){if(ja(b))b=[b];if(ja(c))c=[c];gi.call(this,a,b,c,d,e);if(b.length!=1||c.length!=1)g(Error("Start and end points must be 1D"))};v(ji,gi);ji.prototype.Sc=function(){di(this.element,this.coords[0])};ji.prototype.show=function(){this.element.style.display=""};ji.prototype.hide=function(){this.element.style.display="none"};var ki=function(a,b,c){ji.call(this,a,1,0,b,c)};v(ki,ji);
ki.prototype.lc=function(){this.show();ki.r.lc.call(this)};ki.prototype.hd=function(){this.hide();ki.r.hd.call(this)};var li=function(a){this.o=a};v(li,ef);var mi=new jf(0,100);li.prototype.listen=function(a,b,c,d,e){if(ga(b))for(var f=0;f<b.length;f++)this.listen(a,b[f],c,d,e);else{a=D(a,b,c||this,d||n,e||this.o||this);this.Mx(a)}return this};li.prototype.Mx=function(a){if(this.N)this.N[a]=i;else if(this.Sd){this.N=mi.Ie();this.N[this.Sd]=i;this.Sd=j;this.N[a]=i}else this.Sd=a};
li.prototype.unlisten=function(a,b,c,d,e){if(this.Sd||this.N)if(ga(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else if(a=Of(a,b,c||this,d||n,e||this.o||this)){a=a.key;Lf(a);if(this.N)ue(this.N,a);else if(this.Sd==a)this.Sd=j}return this};li.prototype.lg=function(){if(this.N){for(var a in this.N){Lf(a);delete this.N[a]}mi.af(this.N);this.N=j}else this.Sd&&Lf(this.Sd)};li.prototype.j=function(){li.r.j.call(this);this.lg()};li.prototype.handleEvent=function(){g(Error("EventHandler.handleEvent not implemented"))};B||Re&&df("1.9.3");if(window.jstiming){window.jstiming.rr={};window.jstiming.sA=1;function ni(a,b,c){var d=a.t[b],e=a.t.start;if(d&&(e||c)){d=a.t[b][0];e=c!=undefined?c:e[0];return d-e}}window.jstiming.report=function(a,b,c){var d="";if(window.jstiming.pt){d+="&srt="+window.jstiming.pt;delete window.jstiming.pt}try{if(window.external&&window.external.tran)d+="&tran="+window.external.tran;else if(window.gtbExternal&&window.gtbExternal.tran)d+="&tran="+window.gtbExternal.tran()}catch(e){}if(a.Yz)d+="&"+a.Yz;var f=a.t,
h=f.start,k=[],l=[];for(var m in f)if(m!="start")if(m.indexOf("_")!=0){var o=f[m][1];if(o)f[o]&&l.push(m+"."+ni(a,m,f[o][0]));else h&&k.push(m+"."+ni(a,m))}delete f.start;if(b)for(var q in b)d+="&"+q+"="+b[q];a=[c?c:"http://csi.gstatic.com/csi","?v=3","&s="+(window.jstiming.sn||"finance")+"&action=",a.name,l.length?"&it="+l.join(","):"",d,"&rt=",k.join(",")].join("");b=new Image;var x=window.jstiming.sA++;window.jstiming.rr[x]=b;b.onload=b.onerror=function(){delete window.jstiming.rr[x]};b.src=a;
b=j;return a}}if(window.jstiming){var oi=function(){window.jstiming.load.tick("ol")};if(window.attachEvent)window.attachEvent("onload",oi);else window.addEventListener&&window.addEventListener("load",oi,n)};function pi(a,b,c,d){this.src=a;this.width=b;this.height=c;this.version=d;this.menu="false";this.flashVarsStr=this.flashVars=this.id=j;this.genericParam={};this.ie=navigator.appName.indexOf("Microsoft")!=-1?1:0}pi.prototype.jf=function(a){this.id=a};pi.prototype.ke=function(a,b){if(this.flashVars==j)this.flashVars={};this.flashVars[a]=b};
pi.prototype.toString=function(){var a=new String("");if(this.ie){a+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';if(this.id!=j){a+='id="'+this.id+'" ';a+='name="'+this.id+'" '}a+='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.version+'" ';a+='width="'+this.width+'" ';a+='height="'+this.height+'">';a+='<param name="movie" value="'+this.src+'"/>';a+='<param name="menu" value="false">';for(var b in this.genericParam)if(this.genericParam[b]!=
j)a+='<param name="'+b+'" value="'+this.genericParam[b]+'"/>';if(this.flashVars!=j){b=this.Zn();if(b.length>0)a+='<param name="flashvars" value="'+b+'"/>'}a+="</object>"}else{a+='<embed src="'+this.src+'"';a+=' width="'+this.width+'"';a+=' height="'+this.height+'"';a+=' type="application/x-shockwave-flash"';a+=' menu="false"';if(this.id!=j){a+=' name="'+this.id+'"';a+=' id="'+this.id+'"'}for(b in this.genericParam)if(this.genericParam[b]!=j)a+=" "+b+'="'+this.genericParam[b]+'"';if(this.flashVars!=
j){b=this.Zn();if(b.length>0)a+=' flashvars="'+b+'"'}a+=' pluginspage="http://www.macromedia.com/go/getflashplayer">';a+="</embed>"}return a};pi.prototype.write=function(a){a.write(this.toString())};
pi.prototype.Zn=function(){var a=new String("");for(var b in this.flashVars)if(this.flashVars[b]!=j)a+=encodeURIComponent?escape(b)+"="+encodeURIComponent(this.flashVars[b])+"&":escape(b)+"="+escape(this.flashVars[b])+"&";if(this.flashVarsStr!=j)return a+this.flashVarsStr;return a.substring(0,a.length-1)};var qi=function(){this.Kz=B==i;this.Di=[];this.o=new li(this);this.Fw=0};v(qi,ef);qi.prototype.j=function(){this.o.dispose()};var ri=j,si=function(){ri||(ri=new qi);return ri};qi.prototype.Gy=function(a,b,c){var d=b+"px";if(this.Kz){var e=c?c:this.$m(a);e&&this.Ai(function(){a.style.width=e.offsetWidth<b+2?d:"auto"})}else a.style.minWidth=d};
qi.prototype.iq=function(a,b,c){var d=b+"px";if(this.Kz){var e=c?c:this.$m(a);e&&this.Ai(function(){a.style.width=e.offsetWidth>b+2?d:"auto"})}else a.style.maxWidth=d};qi.prototype.Ai=function(a){if(a){this.Di.length==0&&this.o.listen(window,"resize",this.hy);this.Di[this.Di.length]=a;a()}};qi.prototype.hy=function(){if(this.Fw!=document.body.offsetWidth){this.Fw=document.body.offsetWidth;for(var a=0;a<this.Di.length;++a)this.Di[a]()}};qi.prototype.$m=function(a){var b=Ng("div");Vg(b,a);G(b,a);return b};var ti;
(function(){function a(k){k=k.match(/[\d]+/g);k.length=3;return k.join(".")}var b=n,c="";if(navigator.plugins&&navigator.plugins.length){var d=navigator.plugins["Shockwave Flash"];if(d){b=i;if(d.description)c=a(d.description)}if(navigator.plugins["Shockwave Flash 2.0"]){b=i;c="2.0.0.11"}}else if(navigator.mimeTypes&&navigator.mimeTypes.length){if(b=(d=navigator.mimeTypes["application/x-shockwave-flash"])&&d.enabledPlugin)c=a(d.enabledPlugin.description)}else try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");b=
i;c=a(d.GetVariable("$version"))}catch(e){try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=i;c="6.0.21"}catch(f){try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");b=i;c=a(d.GetVariable("$version"))}catch(h){}}}ti=c})();var ui=j,wi=function(){if(ui)return ui;var a=document.getElementById("cgpDisclaimer");if(!a)return j;return ui=new vi(a)},vi=function(a){if(a){this.Ef=j;this.Xf=this.Go=n;this.Yh(a)}};vi.prototype.Yh=function(a){if(a){this.Ef=a;this.Go=this.Er()?i:n}};vi.prototype.Er=function(){if(!this.Ef)return n;if(/^[\s\xa0]*$/.test(this.Ef.innerHTML))return this.Xf=n;else return this.Xf=i};
vi.prototype.Mq=function(a,b){if(this.Ef)if(!this.Go){if(a&&!this.Xf){this.Ef.innerHTML="Search results not complying with Chinese law, regulation, or policy do not appear.<br>";this.Xf=i}else if(!a&&this.Xf){this.Ef.innerHTML="";this.Xf=n}if(a&&b)this.Go=i}};vi.prototype.Al=function(a,b){var c=[],d=0;if(a)for(var e=0;e<a.length;++e)if(!a[e].st||a[e].et)c[d++]=a[e];a&&a.length!=d?this.Mq(i,b):this.Mq(n,b);return c};var _alreadyProcessingRequest=n,_finance_chart=j,_relatedTickers=j,_hoverData=[],_jsVersion=1,_agent=j,_is_ie=j,_is_konqueror=j,_is_safari=j,_is_nav=j,_is_win=j,_count_tmp=j,_first_chart_data_is_here=n,_visible_chart_range_changed_already_called=n,_totalNumDivs=j,_previousBucketedDays=j,_getRecentNews=1,_minZoomDays=j,_minZoomDaysNoIntraDay=j,_maxZoomDaysForEnablingPansAndFlags=300,_eventid="",_external_target="",xi=function(){},_pstart=xi,_pstop=xi;_chartConfigObject={};
var _expid=j,_has_news=i,_tabs,_prefs;var yi=function(){var a=F("ad-target"),b=r("google.finance.data.common.dfp");if(a&&b){var c="http://finance.google.com/finance",d=r("_ticker");if(d)c+="?q="+d;d=b.indexOf("/adi/")!=-1;b+=";dc_ref="+encodeURIComponent(c)+";domain="+document.location.host;var e=Ng("iframe",{width:"300px",height:"250px",style:"border:0",frameborder:"0",border:"0",scrolling:"no",src:d?b:"javascript:false"});a.appendChild(e);if(!d)(a=ah(e)||j)&&a.write('<html><body style="margin:0"><script>google_page_url = "'+c+'";<\/script><script src="'+
b+";ord="+Math.random()*10000000000000000+'" type="text/javascript"><\/script></body></html>')}else{b=F("ad-source");if(a&&b){Vg(b,a);b.className="ads-300-250"}}if(a=F("ad-label"))a.className=""},zi=0,Ai={};function Bi(a){var b=new Image,c=zi++;Ai[c]=b;b.onload=b.onerror=function(){delete Ai[c]};b.src=a;b=j}
function Ci(a,b,c,d){return function(){if(a!=j&&a!=""){window.status=a;var e=escape(a.href).replace(/\+/g,"%2B");Bi("/finance/url?sa=T&ct="+escape(b)+"&cd="+escape(c)+"&url="+e+"&ei="+_eventid+d)}else Bi("/finance/url?sa=T&ct="+escape(b)+"&cd="+escape(c)+"&url=&ei="+_eventid+d);return i}}var Di="";function _setStickyUrlParams(a){Di=a}function Ei(){if(Di!="")return"&"+Di;return""}function _GF_click(a,b,c,d){Ci(a,b,c,d)()}
function _lbs(){var a=0,b=0;if(typeof window.innerWidth=="number"){a=window.innerWidth;b=window.innerHeight}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientWidth;b=document.body.clientHeight}if(a>0&&b>0){a="&biw="+a+"&bih="+b;Bi("/finance/url?sa=T&ct=bstats"+
a)}}function Fi(a){var b=r("google.finance.data.company.news.clusters");if(b){var c=a.split("-");if(c.length==3&&c[0]=="n"&&c[1]=="c"){c=[];for(var d=0;d<b.length;++d)b[d].a&&b[d].a[0]&&b[d].a[0].fid&&c.push(_companyId+":"+b[d].a[0].fid);a+="-"+c.join("|")}}return a}
function _rl(){if(document.images)for(var a=document.links.length,b=0;b<a;++b){var c=document.links[b];if(c.id)if(!(c.id.substring(0,2)!="b-"&&c.id.substring(0,2)!="e-"&&c.id.substring(0,3)!="fs-"&&c.id.substring(0,2)!="m-"&&c.id.substring(0,2)!="n-"&&c.id.substring(0,4)!="nav-"&&c.id.substring(0,2)!="p-"&&c.id.substring(0,3)!="rc-"&&c.id.substring(0,4)!="rct-"&&c.id.substring(0,3)!="rq-"))c.onmousedown=Ci(c,"res",Fi(c.id),"")}}
function Gi(a,b){a="/finance/prefs?action=set&prefsgroup=NW&prefskey=CL&prefsval="+escape(a)+"&onlycookie=1";if(b!=j&&b!="")a+="&hash="+b;Hi(a)}function _news_simple(a){var b=F("news_simple_div");b.style.display="block";b=F("news_simple_link");b.className="ac";b=F("news_detailed_div");b.style.display="none";b=F("news_detailed_link");b.className="nac";Gi("s",a)}
function _news_detailed(a){var b=F("news_simple_div");b.style.display="none";b=F("news_simple_link");b.className="nac";b=F("news_detailed_div");b.style.display="block";b=F("news_detailed_link");b.className="ac";Gi("d",a)}var Ii=function(a){var b=[];for(a=Yg(a);a;){b.push(a);a=Xg(a.nextSibling,i)}return b};
function Ji(a){return function(){var b=F("cq-"+a),c=F("cqi-"+a),d=F("cqa-"+a),e=F("cqt-"+a);if(!(!a||!b||!c||!d))if(sg(b,"hide")){if(e){d="/finance?q="+e.value+google.finance.data.stickyUrlArgs;var f="/finance/chart?q="+e.value+"&tlf=12";if(e.value.indexOf(",")>=0)f+="&cht=c";if(google.finance.data.common.up=="chr")f+="&chlc=rg";var h=google.finance.data.common.linktargetInternal;h=h?h.substr(7):"";d=Lg("div","chart",Lg("a",{href:d,target:h},Lg("img",{src:f,target:h},j)));(f=Yg(b))&&b.insertBefore(d,
f);Ug(e)}qg(b,"hide");rg(c,"SP_plus_sign","SP_minus_sign")}else{og(b,"hide");rg(c,"SP_minus_sign","SP_plus_sign")}}}function Ki(){for(var a=Cg("","cq-expand"),b=0;b<a.length;b++)if(a[b].id&&a[b].id.indexOf("cqi-")==0){var c=a[b].id.substr(4),d=Ji(c);D(a[b],"click",d);D(F("cqa-"+c),"click",d)}}u("google.finance.registerNewsZippy",Ki);
function Li(){if(_finance_chart&&!_finance_chart.hasFlash){var a=F("compare-bar-wrapper");if(a)a.style.display="none";if(a=F("chart-footer-links"))a.style.display="none"}}u("google.finance.maybeHideChartComponents",Li);function Mi(a,b){if(b<=0)return"";for(var c=0,d=0,e=0,f=0;f<a.length;f++,c=d){d=a.charAt(f)>="\u0080"&&a.charAt(f)<="\ufffd"?c+2:c+1;if(c<=b-3&&d>b-3)e=f;if(d>b)return a.substr(0,e)+"..."}return a};var Ni={LOCAL_NAME:"0",NAME:"1",EXCHANGE:"2",SYMBOL:"3",LAST:"4",MARKET_CAP:"5",EBITD_MARGIN:"6",ROAPCT:"7",ROEPCT:"8",EMPLOYEES_NUM:"9",EPS:"10",PE_RATIO:"11",PRICE_TO_BOOK:"12",PRICE_TO_SALES:"13",DIVIDEND:"14",DIVIDEND_YIELD:"15",CURRENT_RATIO:"16",ROIPCT:"17",BETA:"18",AVG_TRADE_VOL:"19",GROSS_MARGIN:"20",OPERATING_MARGIN:"21",NET_PROFIT_MARGIN:"22",ANALYST_RATING:"23",REVENUE:"24",NET_INCOME:"25",LT_DEBT_TO_ASSETS:"26",TOTAL_DEBT_TO_ASSETS:"27",LT_DEBT_TO_EQUITY:"28",TOTAL_DEBT_TO_EQUITY:"29",
CHANGE:"30",CHANGE_PCT:"31",SPARKLINE:"32",ID:"33",CHANGE_STYLE:"34",ENTERPRISE_VALUE:"35",EBITDA:"36",PRICE_CURRENCY:"37"},I={},J=Ni;I[J.LOCAL_NAME]="";I[J.NAME]="Company name";I[J.ID]="";I[J.CHANGE_STYLE]="";I[J.SPARKLINE]="Price history";I[J.EXCHANGE]="Exchange";I[J.SYMBOL]="Symbol";I[J.LAST]="Price";I[J.MARKET_CAP]="Mkt Cap";I[J.PRICE_CURRENCY]="Currency";I[J.EBITD_MARGIN]="EBITD margin";I[J.EBITDA]="EBITDA";I[J.ENTERPRISE_VALUE]="Enterprise value";I[J.ROAPCT]="Return&nbsp;on avg&nbsp;assets";
I[J.ROEPCT]="Return&nbsp;on avg&nbsp;equity";I[J.EMPLOYEES_NUM]="Employees";I[J.EPS]="Earnings per&nbsp;share";I[J.PE_RATIO]="P/E ratio";I[J.PRICE_TO_BOOK]="Price-to-<br>book&nbsp;ratio";I[J.PRICE_TO_SALES]="Price-to-<br>sales&nbsp;ratio";I[J.DIVIDEND]="Dividend";I[J.DIVIDEND_YIELD]="Dividend yield";I[J.CURRENT_RATIO]="Current ratio";I[J.ROIPCT]="Return&nbsp;on investment";I[J.BETA]="Beta";I[J.AVG_TRADE_VOL]="Avg&nbsp;trading volume";I[J.GROSS_MARGIN]="Gross margin";I[J.OPERATING_MARGIN]="Operating margin";
I[J.NET_PROFIT_MARGIN]="Net&nbsp;profit margin";I[J.ANALYST_RATING]="Analyst rating";I[J.REVENUE]="Revenue";I[J.NET_INCOME]="Net&nbsp;income";I[J.LT_DEBT_TO_ASSETS]="Lt&nbsp;debt to&nbsp;assets";I[J.TOTAL_DEBT_TO_ASSETS]="Total&nbsp;debt to&nbsp;assets";I[J.LT_DEBT_TO_EQUITY]="Lt&nbsp;debt to&nbsp;equity";I[J.TOTAL_DEBT_TO_EQUITY]="Total&nbsp;debt to&nbsp;equity";I[J.CHANGE]="Change";I[J.CHANGE_PCT]="Chg %";var Oi=function(a){this.Bp="d";this.ta=a;this.Zf=n};Oi.prototype.gt=function(){for(var a=this.ta.wa(),b=[],c=0;c<a.length;c++)b.push(a[c].id);return b.join(",")};Oi.prototype.wy=function(a){var b=this.gt();if(b)for(var c=0;;++c){var d=F("sparkline"+c);if(d)d.style.background="no-repeat url(/finance/chart?cht=s&cid="+b+"&p="+a+") 0 "+-15*c+"px";else break}};
Oi.prototype.Ul=function(a,b){if(!(!a||this.Bp==a&&!b)){b=["d","M","Y"];for(var c=0;c<b.length;++c){var d=b[c];if(F("sparkline-"+d.toLowerCase()))F("sparkline-"+d.toLowerCase()).className=a==d?"ac":"nac"}this.Bp=a;this.wy("1"+a)}};Oi.prototype.init=function(){this.Zf=n;for(var a=["Y","M","d"],b=0;b<a.length;++b){var c=a[b],d=F("sparkline-"+c.toLowerCase());if(d){D(d,"click",t(this.Ul,this,c));this.Zf=i}}this.Ul("d",i)};Oi.prototype.render=function(){this.Zf?this.Ul(this.Bp,i):this.init()};var Pi=function(a){this.xc=nf?[]:"";a!=j&&this.append.apply(this,arguments)};Pi.prototype.set=function(a){this.clear();this.append(a)};if(nf){Pi.prototype.Dj=0;Pi.prototype.append=function(a,b){if(b==j)this.xc[this.Dj++]=a;else{this.xc.push.apply(this.xc,arguments);this.Dj=this.xc.length}return this}}else Pi.prototype.append=function(a,b){this.xc+=a;if(b!=j)for(var c=1;c<arguments.length;c++)this.xc+=arguments[c];return this};
Pi.prototype.clear=function(){if(nf)this.Dj=this.xc.length=0;else this.xc=""};Pi.prototype.toString=function(){if(nf){var a=this.xc.join("");this.clear();a&&this.append(a);return a}else return this.xc};var Qi=Pi,Ri=function(a,b){function c(){}c.prototype=a;a=new c;for(var d in b)a[d]=b[d];return a},L=function(a){return td(String(a))};var Ti=function(a,b){var c=b||new Qi;c.append("<table id=cc-table class=gf-table><thead><tr>");for(var d=a.columnKeys.columnKeys,e=d.length,f=0;f<e;f++){var h=d[f];c.append("<th colspan=",L(h.columnKeys.length),' class="ctr',f!=0?" lb":"",'">',h.value)}c.append("<tr>");d=a.columnKeys.columnKeys;e=d.length;for(f=0;f<e;f++){h=d[f];h=h.columnKeys;for(var k=h.length,l=0;l<k;l++){var m=h[l];c.append('<th class="cth-sec',f!=0&&l==0?" lb":"",m.value=="1"?" lft":"",m.nosort?" nosort":"",'">',a.columnKeys.value==
"s"&&a.rawHeader[m.value].length>0?"<div class=ctr><input type=checkbox"+(m.selected?" checked":"")+" value="+L(m.value)+"></div>":"",m.value=="32"&&a.columnKeys.value!="s"?"<a id=sparkline-d>"+L("d")+"</a> | <a id=sparkline-m>"+L("m")+"</a> | <a id=sparkline-y>"+L("y")+"</a>":a.rawHeader[m.value])}}d=a.rawContents;e=d.length;for(f=0;f<e;f++){h=d[f];Si({columnKeys:a.columnKeys,rawContent:h,index:f},c)}c.append("</table>");if(!b)return c.toString()},Si=function(a,b){var c=b||new Qi;c.append("<tbody><tr",
a.rawContent.selected?" class=hilite":"",">");for(var d=a.columnKeys.columnKeys,e=d.length,f=0;f<e;f++){var h=d[f];h=h.columnKeys;for(var k=h.length,l=0;l<k;l++){var m=h[l];m.value=="0"||m.value=="1"?Ui({nameColumnKey:m.value,rawContent:a.rawContent},c):c.append("<td class=rgt>",m.value=="4"?"<span id=ref_"+L(a.rawContent["33"])+"_l>"+L(a.rawContent[m.value])+"</span>":m.value=="30"?"<span id=ref_"+L(a.rawContent["33"])+"_c class="+L(a.rawContent["34"])+">"+L(a.rawContent[m.value])+"</span>":m.value==
"31"?"<span id=ref_"+L(a.rawContent["33"])+"_cp class="+L(a.rawContent["34"])+">"+L(a.rawContent[m.value])+(a.rawContent[m.value]!="-"?"%":"")+"</span>":m.value=="32"?'<span class=sparkline><img src="'+L(_cleardot)+'" height=15 width=50 id=sparkline'+L(a.index)+" />":L(a.rawContent[m.value]))}}c.append("</tbody>");if(!b)return c.toString()},Ui=function(a,b){var c=b||new Qi;c.append(a.nameColumnKey=="1"?"<td class=ctname>":"<td class=ctsymbol>",a.rawContent.selected?L(a.rawContent[a.nameColumnKey]):
'<a href="/finance?'+(a.rawContent["3"]?"q="+L(a.rawContent["2"])+":"+L(a.rawContent["3"]):"cid="+L(a.rawContent["33"]))+L(google.finance.data.stickyUrlArgs)+'" '+L(google.finance.data.common.linktargetInternal)+' title="'+L(a.rawContent["1"])+'" '+(a.nameColumnKey=="0"?"id=rc-0":"id=rct-0")+">"+L(a.rawContent[a.nameColumnKey])+"</a>");if(!b)return c.toString()};var Vi=function(a,b,c,d){this.Rj=a;this.Ma=b;this.Dp=c||j;this.Cp=d||j};v(Vi,E);Vi.prototype.Nn=function(){return this.Rj};Vi.prototype.vk=function(a){return this.Rj.co(a)};Vi.prototype.wa=function(){return this.Ma};Vi.prototype.vu=function(){return this.Dp};Vi.prototype.uu=function(){return this.Cp};Vi.prototype.jo=function(a){if(a<0||a>=this.Ma.length)g(Error("rowIndex "+a+" is out of bounds."));return this.Ma[a]};
Vi.prototype.insertRow=function(a,b){if(a<0||a>this.Ma.length)g(Error("rowIndex "+a+" is out of bounds."));if(!la(b))g(Error("content must be an Object."));ee(this.Ma,b,a);this.dispatchEvent({type:"contentrowinsert",rowIndex:a})};Vi.prototype.deleteRow=function(a){if(a<0||a>=this.Ma.length)g(Error("rowIndex "+a+"is out of bounds."));fe(this.Ma,a);this.dispatchEvent({type:"contentrowdelete",rowIndex:a})};
Vi.prototype.mc=function(a,b,c,d){this.Ma=a||this.Ma;this.Rj=b||this.Rj;this.Dp=c||this.Dp;this.Cp=d||this.Cp;this.dispatchEvent({type:"datarefresh"})};var Wi=function(a,b){this.value="";this.columnKeys=j;this.sc=0;if(ga(a))this.columnKeys=Zd(a,function(c){return new Wi(c)});else{this.value=a;this.columnKeys=b||j}};Wi.prototype.ua=function(a){this.value=a};
Wi.prototype.co=function(a){if(this.columnKeys&&a>=0){var b="";if($d(this.columnKeys,function(c){if(c.Ta()<=a){a-=c.Ta();return n}else{b=c.co(a);return i}}))return b}else if(a==0)return this.value;g(Error("Index "+a+" is out of bounds."))};Wi.prototype.Ta=function(){if(this.sc==0)if(this.columnKeys)Xd(this.columnKeys,function(a){this.sc+=a.Ta()},this);else this.sc=1;return this.sc};var Xi=function(a,b,c,d){this.da=a;this.yA=b;this.uA=c;this.Nr=d;this.Ya=j;this.o=new li(this)};v(Xi,E);Xi.prototype.decorate=function(a){this.le();this.Ya=a;this.dispatchEvent({type:"render"})};Xi.prototype.render=function(a){if(!this.Ya){this.le();this.Np();a&&a.appendChild(this.Ya);this.dispatchEvent({type:"render"})}};Xi.prototype.k=function(){return this.Ya};
Xi.prototype.$b=function(a){if(!ja(a))g(Error("rowIndex: "+a+" is not a number."));if(a<0||a>=this.Hh())g(Error("rowIndex "+a+" is out of bounds."));return this.Ya.tBodies[a]};Xi.prototype.Cu=function(a){a=Wd(this.Ya.tBodies,a);return a<this.Hh()?a:-1};Xi.prototype.Du=function(a){for(;a.tagName.toLowerCase()!="tbody";){if(!a.parentNode)g(Error("element is not part of a row."));a=a.parentNode}return this.Cu(a)};Xi.prototype.bi=function(){return this.Ya!=j};
Xi.prototype.j=function(){Xi.r.j.call(this);this.o.dispose();Ug(this.Ya);this.da=this.Ya=j};Xi.prototype.le=function(){this.o.listen(this.da,"contentrowinsert",this.sv,i);this.o.listen(this.da,"contentrowdelete",this.Qh,n);this.o.listen(this.da,"contentrowmove",this.tv,i);this.o.listen(this.da,"datarefresh",this.Vu)};Xi.prototype.Np=function(){this.Ya=Qg(this.yA({columnKeys:this.da.Nn(),rawContents:this.da.wa(),rawHeader:this.da.vu(),rawFooter:this.da.uu(),clientData:this.Nr}))};
Xi.prototype.Wx=function(a){a=Qg("<table>"+this.uA({columnKeys:this.da.Nn(),rawContent:this.da.jo(a),clientData:this.Nr})+"</table>");return Ug(a.tBodies[0])};Xi.prototype.Hh=function(){return this.Ya.tBodies.length};Xi.prototype.Vu=function(){this.dispatchEvent({type:"unrender"});var a=this.Ya;this.Np();if(a.parentNode){Sg(this.Ya,a);Ug(a)}this.dispatchEvent({type:"render"})};Xi.prototype.Qh=function(a){Ug(this.$b(a.rowIndex))};Xi.prototype.Mo=function(a,b){b==this.Hh()?G(this.Ya,a):Sg(a,this.Ya.tBodies[b])};
Xi.prototype.sv=function(a){this.Mo(this.Wx(a.rowIndex),a.rowIndex)};Xi.prototype.tv=function(a){if(!ja(a.toRowIndex))g(Error("toRowIndex: "+a.toRowIndex+" is not a number."));if(a.toRowIndex<0||a.toRowIndex>=this.Hh())g(Error("toRowIndex: "+a.toRowIndex+" is out of bounds."));var b=Ug(this.$b(a.fromRowIndex));this.Mo(b,a.toRowIndex)};var Yi=function(a,b){this.ta=a;this.C=b;this.zb=i;this.o=j;this.Kp=new li(this);this.Kp.listen(this.C,"unrender",this.Sh);this.Kp.listen(this.C,"render",this.init)};v(Yi,ef);Yi.prototype.j=function(){this.o.dispose();this.Kp.dispose();this.C=this.ta=j;Yi.r.j.call(this)};Yi.prototype.init=function(){};Yi.prototype.Sh=function(){this.o&&this.o.lg()};Yi.prototype.U=function(){return this.zb};Yi.prototype.S=function(a){this.zb=a};Yi.prototype.W=function(){return this.ta};Yi.prototype.ga=function(){return this.C};
Yi.prototype.H=function(){return this.o||(this.o=new li(this))};var Zi=function(a,b,c,d){Yi.call(this,a,b);this.Im=c;this.aw=d;this.Jm=n;this.init()};v(Zi,Yi);Zi.prototype.no=function(){return this.ko(i)};Zi.prototype.Ku=function(){return this.ko(n)};Zi.prototype.ko=function(a){for(var b=[],c=0,d=this.W().wa(),e=0;e<d.length;++e)if(d[e].checked&&a||!d[e].checked&&!a)b[c++]=d[e];return b};Zi.prototype.j=function(){Zi.r.j.call(this)};
Zi.prototype.init=function(){var a=dh(this.ga().k().tHead.rows[0].cells[this.Im],this.Cn);if(a){a.checked=this.Jm;this.H().listen(a,"click",this.Ru)}a=this.W().wa();for(var b=0;b<a.length;++b){var c=this.En(b);if(c){c.value=a[b][this.aw];c.checked=a[b].checked;this.H().listen(c,"click",this.Oh)}}};Zi.prototype.Cn=function(a){return sg(a,"gf-table-chkall")};Zi.prototype.Ws=function(a){return sg(a,"gf-table-chk")};
Zi.prototype.En=function(a){if(a<0)return j;a=this.ga().$b(a);if(!a)return j;return dh(a.rows[0].cells[this.Im],this.Ws)};Zi.prototype.Ru=function(a){a=a.currentTarget.checked;for(var b=this.W().wa(),c=0;c<b.length;++c){var d=this.En(c);if(d){d.checked=a;b[c].checked=a}}this.Jm=a};
Zi.prototype.Oh=function(a){for(var b=this.W().wa(),c=a.currentTarget.value,d=0;d<b.length;++d)if(b[d][this.aw]==c)b[d].checked=a.currentTarget.checked;this.Jm=dh(this.ga().k().tHead.rows[0].cells[this.Im],this.Cn).checked=n};var $i=function(a,b,c){Yi.call(this,a,b);this.fx=c;this.ga().bi()&&this.init()};v($i,Yi);$i.prototype.init=function(){this.H().listen(this.W(),"contentrowinsert",this.bc);this.H().listen(this.W(),"contentrowdelete",this.bc,i);for(var a=0;a<this.W().wa().length;++a)this.Ye(i,this.ga().$b(a))};$i.prototype.j=function(){$i.r.j.call(this)};$i.prototype.bc=function(a){this.Ye(a.type=="contentrowinsert",this.ga().$b(a.rowIndex))};$i.prototype.Dn=function(a){return dh(a,function(b){return sg(b,"gf-table-delete")})};
$i.prototype.Ye=function(a,b){var c=this.Dn(b);if(c){H(c,n);a=a?t(this.H().listen,this.H()):t(this.H().unlisten,this.H());a(c,"click",this.Qh);a(b,["mouseover","mouseout"],this.jv)}};$i.prototype.jv=function(a){this.U()&&H(this.Dn(a.currentTarget),a.type==="mouseover")};$i.prototype.Qh=function(a){a=this.ga().Du(a.currentTarget);this.fx&&this.fx(this.W(),a);this.W().deleteRow(a)};var aj=function(a,b,c,d){Yi.call(this,a,b);this.sx=c;this.jj=d||0;this.ga().bi()&&this.init()};v(aj,Yi);aj.prototype.init=function(){this.H().listen(this.W(),"contentrowinsert",this.bc);this.H().listen(this.W(),"contentrowdelete",this.bc,i);for(var a=0;a<this.W().wa().length;++a)this.Ye(i,this.ga().$b(a))};aj.prototype.j=function(){aj.r.j.call(this)};aj.prototype.bc=function(a){this.Ye(a.type=="contentrowinsert",this.ga().$b(a.rowIndex))};
aj.prototype.Ye=function(a,b){if(b=this.Fn(b)){a=a?t(this.H().listen,this.H()):t(this.H().unlisten,this.H());for(var c=b.firstChild.childNodes,d=0;d<c.length;d++)d==this.jj?H(c[d],i):H(c[d],n);a(b,"click",this.uz)}};aj.prototype.Fn=function(a){return dh(a,function(b){return sg(b,"gf-table-toggle")})};aj.prototype.Ju=function(a){a=a.firstChild.childNodes;if(this.jj>=a.length)this.jj=0;return a[this.jj]};aj.prototype.uz=function(){this.toggle()};
aj.prototype.toggle=function(){for(var a=0;a<this.W().wa().length;++a){var b=this.Fn(this.ga().$b(a)),c=this.Ju(b);if(c){b=c.nextSibling||b.firstChild.firstChild;H(c,n);H(b,i)}}this.jj++;this.sx&&this.sx()};var bj=function(a,b){Yi.call(this,a,b);this.Uh=this.Me=j;this.ga().bi()&&this.init()};v(bj,Yi);bj.prototype.j=function(){bj.r.j.call(this)};bj.prototype.Sh=function(){bj.r.Sh.call(this);this.Uh=this.Me=j};bj.prototype.init=function(){this.H().listen(this.W(),"contentrowinsert",this.bc);this.H().listen(this.W(),"contentrowdelete",this.bc,i);this.H().listen(this.ga().k(),"mouseout",this.Mk);for(var a=0;a<this.W().wa().length;++a)this.le(this.ga().$b(a))};
bj.prototype.le=function(a){this.H().listen(a,"click",this.Bo);this.H().listen(a,"mouseover",this.zo)};bj.prototype.Sx=function(a){this.H().unlisten(a,"click",this.Bo);this.H().unlisten(a,"mouseover",this.zo)};bj.prototype.bc=function(a){var b=this.ga().$b(a.rowIndex);a.type=="contentrowinsert"?this.le(b):this.Sx(b)};bj.prototype.Bo=function(a){this.Mk();this.Me&&qg(this.Me,"gf-table-hilite");if(this.Me!=a.currentTarget){this.Me=a.currentTarget;og(a.currentTarget,"gf-table-hilite")}else this.Me=j};
bj.prototype.Mk=function(){if(this.Uh){qg(this.Uh,"gf-table-hover-hilite");this.Uh=j}};bj.prototype.zo=function(a){this.Mk();if(a.currentTarget!=this.Me){this.Uh=a.currentTarget;og(a.currentTarget,"gf-table-hover-hilite")}};function cj(a,b){b=b||google.finance.data.numberFormat;if(!b)g(Error("No default formatter is found."));if(typeof a=="string"){var c=a.length>0&&a.charAt(0)=="-"?-1:1,d="";a=a.toLowerCase();for(var e=a.length-1;e>=0;e--)if(a.charAt(e)>="0"&&a.charAt(e)<="9"||a.charAt(e)==".")d=a.charAt(e)+d;for(e=b.length-1;e>=0;e--){var f=a.lastIndexOf(b[e].symbol.toLowerCase());if(f!=-1&&f==a.length-b[e].symbol.length)return parseFloat(d)*b[e].threshold*c}return parseFloat(d)*c}return parseFloat(a)};var dj=function(){this.Qr={}};dj.prototype.register=function(a,b){this.Qr[a]=b};dj.prototype.wk=function(a){return this.Qr[a]||j};
var fj=function(a,b){var c=ej(a,b);if(c||c==0)return c;return cj(a)-cj(b)},gj=function(a,b){var c=ej(a,b);if(c||c==0)return c;a=a.toLowerCase();b=b.toLowerCase();return a<b?-1:a==b?0:1},hj=function(a,b){var c=!(a!=j&&a!=="")?NaN:Number(a.replace(/,/g,"")),d=!(b!=j&&b!=="")?NaN:Number(b.replace(/,/g,""));if(c||d||c==0||d==0)return(a=c-d)||a==0?a:c||c==0?-1:1;return gj(a,b)},ej=function(a,b){a=a!=j&&a!==""?1:0;b=b!=j&&b!==""?1:0;return a&&b?NaN:b-a};var ij=function(a,b,c,d,e){Yi.call(this,a,b);this.Tj=c;this.vg=-1;this.zA=d;this.Rr=e;this.ga().bi()&&this.init()};v(ij,Yi);ij.prototype.init=function(){var a=this.ga().k().tHead.rows;a=a[a.length-1].cells;for(var b=0;b<a.length;++b)if(this.Tj.wk(this.W().vk(b))&&this.Gj(a[b])){this.U()&&og(a[b],"sortable");this.H().listen(a[b],"click",this.ex(b))}this.H().listen(this.W(),["contentrowinsert","contentrowdelete"],this.Qx)};ij.prototype.j=function(){this.Tj=j;ij.r.j.call(this)};
ij.prototype.Gj=function(a){return!sg(a,"nosort")};ij.prototype.Qx=function(){if(this.vg!=-1){var a=this.ga().k().tHead.rows;a=a[a.length-1].cells;qg(a[this.vg],"sorted","reverse-sorted");this.vg=-1}};ij.prototype.Ey=function(a){var b=this.ga().k().tHead.rows;b=b[b.length-1].cells;b=b[this.vg];if(this.Gj(b))a?og(b,"reverse-sorted"):og(b,"sorted")};
ij.prototype.ex=function(a){return function(b){if(this.zb){var c=n;if(this.vg==a){if(sg(b.currentTarget,"sorted"))c=i;this.fy()}else this.Zy(a);this.W().mc();this.Ey(c);this.Rr&&this.Rr()}}};ij.prototype.Zy=function(a){var b=this.W().vk(a),c=this.Tj.wk(b);if(c){var d=this.W().wa();be(this.zA,b)?me(d,function(e,f){return c(yg("tid-"+e.tid).firstChild.nodeValue,yg("tid-"+f.tid).firstChild.nodeValue,e,f)}):me(d,function(e,f){return c(e[b],f[b],e,f)});this.vg=a}};
ij.prototype.fy=function(){for(var a=this.W().wa(),b=this.W().wa().length-1,c=0;c<b;++c){var d=a[b];fe(a,b);ee(a,d,c)}};ij.prototype.S=function(a){if(this.U()!=a){ij.r.S.call(this,a);a=this.ga().k().tHead.rows;a=a[a.length-1].cells;for(var b=0;b<a.length;++b)this.Tj.wk(this.W().vk(b))&&this.Gj(a[b])&&ug(a[b],"sortable")}};var jj=function(a){if(/^\s*$/.test(a))return n;var b=/\\["\\\/bfnrtu]/g,c=/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,d=/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,e=/^[\],:{}\s\u2028\u2029]*$/;return e.test(a.replace(b,"@").replace(c,"]").replace(d,""))},kj=function(a){a=String(a);if(jj(a))try{return eval("("+a+")")}catch(b){}g(Error("Invalid JSON string: "+a))},lj=function(a){return eval("("+a+")")},mj=function(){};
mj.prototype.serialize=function(a){var b=[];this.Ll(a,b);return b.join("")};mj.prototype.Ll=function(a,b){switch(typeof a){case "string":this.aq(a,b);break;case "number":this.sy(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(a==j){b.push("null");break}if(ga(a)){this.ry(a,b);break}this.ty(a,b);break;case "function":break;default:g(Error("Unknown type: "+typeof a))}};
var nj={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},oj=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;mj.prototype.aq=function(a,b){b.push('"',a.replace(oj,function(c){if(c in nj)return nj[c];var d=c.charCodeAt(0),e="\\u";if(d<16)e+="000";else if(d<256)e+="00";else if(d<4096)e+="0";return nj[c]=e+d.toString(16)}),'"')};mj.prototype.sy=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};
mj.prototype.ry=function(a,b){var c=a.length;b.push("[");for(var d="",e=0;e<c;e++){b.push(d);this.Ll(a[e],b);d=","}b.push("]")};mj.prototype.ty=function(a,b){b.push("{");var c="";for(var d in a)if(a.hasOwnProperty(d)){var e=a[d];if(typeof e!="function"){b.push(c);this.aq(d,b);b.push(":");this.Ll(e,b);c=","}}b.push("}")};var qj=function(){return pj()},pj=j,rj=j,sj=j,tj=function(a,b){pj=a;rj=b;sj=j},vj=function(){var a=uj();return a?new ActiveXObject(a):new XMLHttpRequest},wj=function(){var a=uj(),b={};if(a){b[0]=i;b[1]=i}return b};tj(vj,wj);var xj=j,uj=function(){if(!xj&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);return xj=c}catch(d){}}g(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return xj};var M=function(){this.headers=new dg};v(M,E);var yj=[],Hi=function(a,b,c,d,e,f){var h=new M;yj.push(h);b&&D(h,"complete",b);D(h,"ready",qa(zj,h));f&&h.Oy(f);h.send(a,c,d,e)},Aj=function(){for(var a=yj;a.length;)a.pop().dispose()},Bj=function(a,b){M.prototype.eg=a.protectEntryPoint(M.prototype.eg,b)},zj=function(a){a.dispose();ge(yj,a)};M.prototype.ab=n;M.prototype.Z=j;M.prototype.oj=j;M.prototype.Ew="";M.prototype.Dw="";M.prototype.$f=0;M.prototype.ra="";M.prototype.jk=n;M.prototype.Xh=n;
M.prototype.Xk=n;M.prototype.Pd=n;M.prototype.gj=0;M.prototype.fe=j;M.prototype.Oy=function(a){this.gj=Math.max(0,a)};
M.prototype.send=function(a,b,c,d){if(this.ab)g(Error("[goog.net.XhrIo] Object is active with another request"));b=b||"GET";this.Ew=a;this.ra="";this.$f=0;this.Dw=b;this.jk=n;this.ab=i;this.Z=new qj;this.oj=sj||(sj=rj());this.Z.onreadystatechange=t(this.qp,this);try{this.Xk=i;this.Z.open(b,a,i);this.Xk=n}catch(e){this.wn(5,e);return}a=c||"";var f=this.headers.clone();d&&bg(d,function(k,l){f.set(l,k)});b=="POST"&&!f.wb("Content-Type")&&f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");
bg(f,function(k,l){this.Z.setRequestHeader(l,k)},this);try{if(this.fe){kh.clearTimeout(this.fe);this.fe=j}if(this.gj>0)this.fe=kh.setTimeout(t(this.ge,this),this.gj);this.Xh=i;this.Z.send(a);this.Xh=n}catch(h){this.wn(5,h)}};M.prototype.dispatchEvent=function(a){return M.r.dispatchEvent.call(this,a)};M.prototype.ge=function(){if(typeof aa!="undefined")if(this.Z){this.ra="Timed out after "+this.gj+"ms, aborting";this.$f=8;this.dispatchEvent("timeout");this.abort(8)}};
M.prototype.wn=function(a,b){this.ab=n;if(this.Z){this.Pd=i;this.Z.abort();this.Pd=n}this.ra=b;this.$f=a;this.ln();this.Mg()};M.prototype.ln=function(){if(!this.jk){this.jk=i;this.dispatchEvent("complete");this.dispatchEvent("error")}};M.prototype.abort=function(a){if(this.Z){this.ab=n;this.Pd=i;this.Z.abort();this.Pd=n;this.$f=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");this.Mg()}};M.prototype.j=function(){if(this.Z){if(this.ab){this.ab=n;this.Pd=i;this.Z.abort();this.Pd=n}this.Mg(i)}M.r.j.call(this)};
M.prototype.qp=function(){!this.Xk&&!this.Xh&&!this.Pd?this.eg():this.pp()};M.prototype.eg=function(){this.pp()};M.prototype.pp=function(){if(this.ab)if(typeof aa!="undefined")if(!(this.oj[1]&&this.Hd()==4&&this.Lh()==2))if(this.Xh&&this.Hd()==4)kh.setTimeout(t(this.qp,this),0);else{this.dispatchEvent("readystatechange");if(this.Qe()){this.ab=n;if(this.di()){this.dispatchEvent("complete");this.dispatchEvent("success")}else{this.$f=6;this.ra=this.Gu()+" ["+this.Lh()+"]";this.ln()}this.Mg()}}};
M.prototype.Mg=function(a){if(this.Z){var b=this.Z,c=this.oj[0]?da:j;this.oj=this.Z=j;if(this.fe){kh.clearTimeout(this.fe);this.fe=j}a||this.dispatchEvent("ready");try{b.onreadystatechange=c}catch(d){}}};M.prototype.X=function(){return this.ab};M.prototype.Qe=function(){return this.Hd()==4};M.prototype.di=function(){switch(this.Lh()){case 0:case 200:case 204:case 304:return i;default:return n}};M.prototype.Hd=function(){return this.Z?this.Z.readyState:0};
M.prototype.Lh=function(){try{return this.Hd()>2?this.Z.status:-1}catch(a){return-1}};M.prototype.Gu=function(){try{return this.Hd()>2?this.Z.statusText:""}catch(a){return""}};M.prototype.Zb=function(){return this.Z?this.Z.responseText:""};M.prototype.getResponseHeader=function(a){return this.Z&&this.Qe()?this.Z.getResponseHeader(a):undefined};M.prototype.Qf=function(){return ia(this.ra)?this.ra:String(this.ra)};var Fj=function(a,b){if(!a||!a.rows||a.rows.length==0||!a.visible_cols||a.visible_cols.length==0||!a.cols||a.cols.length==0)g(Error("Given data must not be null or contain no rows."));Cj||Dj();this.oa=b;this.Ma=this.Nm(a);this.Og=[];for(b=0;b<this.Ma.length;b++)this.Og.push(String(this.Ma[b].id));this.Fi=[];this.Se=n;this.ta=new Vi(this.Pg(a.visible_cols,n),this.Ma,I);this.C=new Xi(this.ta,Ti,Si);this.zq=new ij(this.ta,this.C,Ej(),[],j);new bj(this.ta,this.C);this.$y=new Oi(this.ta);D(this.C,"render",
t(Oi.prototype.init,this.$y));this.C.render();this.Za=new M;D(this.Za,"error",function(){this.dispatchEvent({type:"datafetcherror"})},n,this);D(this.Za,"success",function(c){var d;try{d=eval("("+c.target.Zb()+")")}catch(e){return}if(d&&d.company&&d.company.related){d=d.company.related;this.ta.mc(this.Ma=this.Nm(d),this.Pg(d.visible_cols,this.Se))}this.dispatchEvent({type:"dataready"});this.Se&&this.dispatchEvent({type:"editingready"})},n,this);u("google.finance.updateComparisonCompanyIds",t(this.Fz,
this));u("google.finance.refreshComparisonTable",t(this.mc,this))};v(Fj,E);
var Gj=j,Ej=function(){if(!Gj){var a=new dj;for(var b in Ni){var c=Ni[b];Cj[c]==0||c=="37"?a.register(Ni[b],gj):a.register(Ni[b],fj)}Gj=a}return Gj},Cj=j,Dj=function(){var a=Cj={},b=Ni,c=Hj;a[b.LOCAL_NAME]=c.NAME;a[b.NAME]=c.NAME;a[b.EXCHANGE]=c.NAME;a[b.SYMBOL]=c.NAME;a[b.CHANGE_STYLE]=c.NAME;a[b.ID]=c.NAME;a[b.PRICE_CURRENCY]=c.VALUATION;a[b.LAST]=c.VALUATION;a[b.CHANGE]=c.VALUATION;a[b.CHANGE_PCT]=c.VALUATION;a[b.SPARKLINE]=c.VALUATION;a[b.MARKET_CAP]=c.VALUATION;a[b.ENTERPRISE_VALUE]=c.VALUATION;
a[b.EBITD_MARGIN]=c.MARGINS;a[b.ROAPCT]=c.OPERATING_METRICS;a[b.ROEPCT]=c.OPERATING_METRICS;a[b.EMPLOYEES_NUM]=c.PROFILE;a[b.EPS]=c.VALUATION;a[b.PE_RATIO]=c.VALUATION;a[b.PRICE_TO_BOOK]=c.VALUATION;a[b.PRICE_TO_SALES]=c.VALUATION;a[b.DIVIDEND]=c.DIVIDEND;a[b.DIVIDEND_YIELD]=c.DIVIDEND;a[b.CURRENT_RATIO]=c.FINANCIAL_RATIOS;a[b.ROIPCT]=c.OPERATING_METRICS;a[b.BETA]=c.STOCK_METRICS;a[b.AVG_TRADE_VOL]=c.STOCK_METRICS;a[b.GROSS_MARGIN]=c.MARGINS;a[b.OPERATING_MARGIN]=c.MARGINS;a[b.NET_PROFIT_MARGIN]=
c.MARGINS;a[b.ANALYST_RATING]=c.PROFILE;a[b.EBITDA]=c.INCOME_STATEMENT;a[b.REVENUE]=c.INCOME_STATEMENT;a[b.NET_INCOME]=c.INCOME_STATEMENT;a[b.LT_DEBT_TO_ASSETS]=c.FINANCIAL_RATIOS;a[b.TOTAL_DEBT_TO_ASSETS]=c.FINANCIAL_RATIOS;a[b.LT_DEBT_TO_EQUITY]=c.FINANCIAL_RATIOS;a[b.TOTAL_DEBT_TO_EQUITY]=c.FINANCIAL_RATIOS};Fj.prototype.Fz=function(a,b){if(b)Wd(this.Og,a)==-1&&this.Og.push(a);else ge(this.Og,a)};Fj.prototype.mc=function(a){this.Za.abort();var b=this.nt(a);this.Za.send(b);this.oa.set("dp",a)};
Fj.prototype.nt=function(a){a="/finance/data?cid="+this.Og.join(",")+"&dp="+a+google.finance.data.stickyUrlArgs+"&output=json&catid=";return a+(this.Se?"all":this.Fi.join("-"))};Fj.prototype.k=function(){return this.C.k()};
Fj.prototype.Pg=function(a,b){var c,d=[];for(c=0;c<Ij.length;++c){d[c]={};d[c].value=Ij[c];d[c].headers=[]}for(c=0;c<a.length;++c)a[c]!="3"&&a[c]!="34"&&a[c]!="33"&&d[Cj[a[c]]].headers.push(a[c]);for(c=Ij.length-1;c>=0;--c)d[c].headers.length==0&&fe(d,c);var e=[];for(c=0;c<d.length;++c){var f=e[c]=new Wi(d[c].headers);f.ua(d[c].value);for(var h=0;h<f.columnKeys.length;++h){var k=f.columnKeys[h];k.value=="32"&&ve(k,"nosort",i);ve(k,"selected",be(this.Fi,k.value))}}c=new Wi(b?"s":"",e);if(!b)this.Fi=
a;return c};Fj.prototype.Nm=function(a){var b=a.cols;a=a.rows;for(var c=[],d=0;d<a.length;++d){var e={};e.selected=d==0&&this.oa.bo()!="cc_compare";e.id=a[d].id;for(var f=a[d].values,h=0;h<f.length;++h){var k=String(b[h]);e[k]=k=="0"||k=="1"?yd(f[h],25):f[h]}c.push(e)}return c};Fj.prototype.bz=function(a){if(!this.Se){this.zq.S(n);this.Se=i;this.mc(a)}};Fj.prototype.jy=function(a){this.Se=n;this.Fi=a;this.ta.mc(this.Ma,this.Pg(a,n));this.zq.S(i);this.oa.set("cols",a.join("-"))};
Fj.prototype.vr=function(){this.Se=n;this.ta.mc(this.Ma,this.Pg(this.Fi,n));this.zq.S(i)};var Hj={NAME:0,VALUATION:1,DIVIDEND:2,FINANCIAL_RATIOS:3,OPERATING_METRICS:4,STOCK_METRICS:5,MARGINS:6,PROFILE:7,INCOME_STATEMENT:8},Ij=["","Valuation","Dividend","Financial ratios","Operating metrics","Stock metrics","Margins","Profile","Income statement"];var Kj=function(a,b){var c=b||new Qi;c.append('<table id=rq class="d-quotes" width=100%>');for(var d=a.rawContents,e=d.length,f=0;f<e;f++){var h=d[f];Jj({columnKeys:a.columnKeys,rawContent:h},c)}c.append("</table>");if(!b)return c.toString()},Jj=function(a,b){var c=b||new Qi;c.append('<tbody><tr><td class=symbol><a href="/finance?q=',L(a.rawContent.e),":",L(a.rawContent.s),L(google.finance.data.stickyUrlArgs),'"',L(google.finance.data.common.linktargetInternal)," id=rq- ",a.rawContent.lname?'title="'+
L(a.rawContent.e)+":"+L(a.rawContent.s)+'">'+L(a.rawContent.lname):'title="'+L(a.rawContent.name)+'">'+L(a.rawContent.s),"</a><td class=price>",a.rawContent.p?"<span id=ref_"+L(a.rawContent.cid)+"_l>"+L(a.rawContent.p)+"</span>":"&ndash;",'<td class="change gf-table-toggle"><span>',a.rawContent.c?"<span class="+L(a.rawContent.cs)+" id=ref_"+L(a.rawContent.cid)+"_c>"+L(a.rawContent.c)+"</span>":"<span>&ndash;</span>",a.rawContent.cp?"<span class="+L(a.rawContent.cs)+" id=ref_"+L(a.rawContent.cid)+
"_cp>"+L(a.rawContent.cp)+"%</span>":"<span>&ndash;</span>",'</span><td class=del-btn><b class="del-btn-wrapper gf-table-delete" style="display:none"><img class="SP_delete button" alt="');if(a.rawContent.lname){var d="Remove "+(L(a.rawContent.lname)+" from list");c.append(d)}else{d="Remove "+(L(a.rawContent.name)+" from list");c.append(d)}c.append('" title="');if(a.rawContent.lname){a="Remove "+(L(a.rawContent.lname)+" from list");c.append(a)}else{a="Remove "+(L(a.rawContent.name)+" from list");c.append(a)}c.append('" src="data:image/gif;base64,R0"/></b>');
if(!b)return c.toString()};var Lj=function(a){this.ta=a;this.o=new li(this)};v(Lj,E);Lj.prototype.decorate=function(a){this.o.listen(a,"click",this.ac)};Lj.prototype.j=function(){Lj.r.j.call(this);this.o.dispose()};Lj.prototype.ac=function(){var a=window.prompt("Enter the name of your new portfolio","");if(a!=j){var b=F("new_pform_nav"),c=F("new_pform_name"),d=F("new_pform_cids");if(!b||!c)this.dispatchEvent({type:"error"});else{if(d)d.value=this.xu();c.value=a;b.submit()}}};
Lj.prototype.xu=function(){for(var a=this.ta.wa(),b=[],c=0;c<a.length;c++)b.push(a[c].cid);return b.join(",")};var Mj=function(){var a=Lg("div",{id:"no-rq"});a.innerHTML="You have no recent quotes.";G(F("rq-table"),a);(a=F("rq-create"))&&H(a,n)},Nj=function(a,b){for(var c=[],d=0;d<a.wa().length;++d)d!=b&&c.push(a.jo(d).cid);b=r("google.finance.data.common.hash");if(!b&&_prefs)b=_prefs.hash;Td(Sd(),"/finance/prefs?action=set&prefsgroup=global&prefskey=RV&prefsval="+c.join("-")+"&hash="+b,function(){});if(a.wa().length==1){(a=F("rq"))&&H(a,n);if(a=F("rq-toggle"))a.innerHTML="";Mj()}},Oj=function(){return r("google.finance.data.common.rq.ct")==
"CP"},Qj=function(){var a=Oj();google.finance.data.common.rq.ct=a?"C":"CP";var b=F("rq-chg-abs"),c=F("rq-chg-pct");if(b&&c){H(b,!a);H(c,a)}a=r("google.finance.data.common.hash");if(!a&&_prefs)a=_prefs.hash;Td(Sd(),"/finance/prefs?action=set&prefsgroup=global&prefskey=NAV&prefsval="+google.finance.data.common.rq.ct+"&hash="+a,function(){});Pj()},Rj=function(){var a=F("rq"),b=F("rq-table");b.style.height=a&&a.offsetHeight?a.offsetHeight+"px":"auto"},Pj=function(){var a=[0,0,0],b=F("rq").childNodes;
if(b.length>0){for(var c=0;c<b.length;c++){var d=b[c].firstChild.childNodes,e=jh(d[0].firstChild);e.length>6&&bh(d[0].firstChild,zd(e,4));for(e=0;e<a.length;e++)if(a[e]<d[e].firstChild.offsetWidth)a[e]=d[e].firstChild.offsetWidth}c=6;b=4*c+1;for(d=0;d<a.length;d++)b+=a[d];d=148-b;if(d>0){a[0]+=d;b=148}b+="px";for(d=0;d<a.length;d++){if(d>0)a[d]+=c;a[d]+="px"}c=F("rq-box").parentNode;d=F("rt-content");c.style.width=b;d.style.marginLeft=b;b=F("rq").childNodes[0].firstChild.childNodes;for(d=0;d<a.length;d++)b[d].style.width=
a[d]}},Sj=n,Tj=function(a){var b=F("rq-toggle");if(b){b.innerHTML="";var c=function(){a.toggle()},d=Lg("span",{id:"rq-chg-abs"},Lg("a",{"class":"jslink",onmousedown:c},Og("chg")),Og(" | %"));c=Lg("span",{id:"rq-chg-pct"},Og(" chg | "),Lg("a",{"class":"jslink",onmousedown:c},Og("%")));H(d,Oj());H(c,!Oj());G(b,d);G(b,c)}},Uj=function(){if(!(!F("rq-table")||F("no-rq")||Sj||!google.finance.data.common||!google.finance.data.common.rq)){Sj=i;F("rq-box")&&Jh(F("rq-box"),"display","block");var a=google.finance.data.common.rq.q;
if(a&&wi()){a=ui.Al(a,i);google.finance.data.common.rq.q=a}if(a&&a.length>0){if(!google.finance.data.common.rq.ct)google.finance.data.common.rq.ct="CP";var b=google.finance.data.common.rq.ct=="C"?0:1;a=new Vi(new Wi(["s","p","c","cp"]),a);var c=new Xi(a,Kj,Jj);F("rq")?c.decorate(F("rq")):c.render(F("rq-table"));b=new aj(a,c,Qj,b);Tj(b);new $i(a,c,Nj);D(a,"contentrowdelete",Rj,n);D(a,"contentrowdelete",Pj,n);b=new Lj(a);a=F("rq-create");c=F("is_logged_in");if(a){c&&c.value==1&&b.decorate(a);Jh(a,"display",
"block")}Rj();Pj();if(B){b=Cg("img","SP_delete",F("rq"));for(a=0;a<b.length;a++){b[a].src=_cleardot;b[a].className="SP_delete"}}}else Mj()}};u("google.finance.renderRecentQuotes",Uj);D(window,"load",Uj);var Vj=function(a,b){var c=b||new Qi;c.append("<table width=100%>");a=a.quotes;for(var d=a.length,e=0;e<d;e++){var f=a[e];c.append('<tr><td class="name nwp"><a href="',L(f.url),L(google.finance.data.stickyUrlArgs),'" ',L(google.finance.data.common.linktargetInternal),' title="',L(f.name),'">',L(f.shortName),"</a><td class=price>",f.p?"<span id=ref_"+L(f.cid)+"_l>"+L(f.p)+"</span>":"","<td class=change>",f.cp?"<span id=ref_"+L(f.cid)+"_cp class="+L(f.changeStyle)+">"+L(f.cp)+"%</span>":"")}c.append("</table>");
if(!b)return c.toString()},Wj=function(a,b){var c=b||new Qi;c.append("<table width=100%>");for(var d=a.quotes,e=d.length,f=0;f<e;f++){var h=d[f];c.append("<tr><td width=",L(a.leftWidth),"% class=bar-left>",!h.isPositive&&h.width?"<table width=100% class=barChart><tr><td>&nbsp;<td class="+L(a.downStyle)+"-bar-left width="+L(h.width)+"%>&nbsp;</table>":"&nbsp;","<td width=",L(a.rightWidth),"% class=bar-right>",h.isPositive&&h.width?"<table width=100% class=barChart><tr><td class="+L(a.upStyle)+"-bar-right width="+
L(h.width)+"%>&nbsp;<td>&nbsp;</table>":"&nbsp;")}c.append("</table>");if(!b)return c.toString()};var Xj=function(){this.gb={};this.Kx=F("r-perf-quotes");this.yr=F("r-perf-charts");this.ig=google.finance.data.company.perf};Xj.prototype.install=function(){if(this.Kx&&this.yr&&this.ig){this.gb=this.Xm(this.ig);this.Jp();this.Vx();p.setTimeout(t(this.kz,this),5000);p.setInterval(t(this.mx,this),5500)}};Xj.prototype.kz=function(){google.Quote.addQuoteListener(t(this.ri,this))};
Xj.prototype.Xm=function(a){for(var b={quotes:[],upStyle:google.finance.data.common.up,downStyle:google.finance.data.common.down},c=0,d=0,e=[],f=0;f<a.length;++f){var h=new Number(a[f].cp.replace("%",""));if(h==Number.NaN)h=0;e.push(h);if(h<d)d=h;else if(h>c)c=h}for(f=0;f<e.length;++f){var k=0;h=e[f];var l="chb";if(h>1.0E-4){k=h/c*100;l=b.upStyle}else if(h<-1.0E-4){k=h/d*100;l=b.downStyle}if(k<1)k=0;h={width:k,changeStyle:l,isPositive:l==b.upStyle,name:a[f].name,shortName:Mi(a[f].name,14),cid:a[f].cid,
url:a[f].u,cp:a[f].cp,p:a[f].p};b.quotes.push(h)}a=(c-d)/100;b.leftWidth=d/a;b.rightWidth=c/a;return b};Xj.prototype.ri=function(a,b){for(var c=0;c<this.ig.length;++c)if(this.ig[c].cid==b&&a.cp)this.ig[c].cp=a.cp};Xj.prototype.Vx=function(){this.Kx.innerHTML=Vj(this.gb)};Xj.prototype.Jp=function(){this.yr.innerHTML=Wj(this.gb)};Xj.prototype.mx=function(){this.gb=this.Xm(this.ig);this.Jp()};var Yj=function(){(new Xj).install()};u("google.finance.renderRelativePerformance",Yj);var Zj,$j=function(a,b){if(Re||Zj){a.setAttribute("role",b);a.roleName=b}},ak=function(a,b,c){if(Re||Zj)a.setAttribute("aria-"+b,c)};var bk=65,ck=90,ek=function(a,b,c,d,e){if(!B&&!(Se&&df("525")))return i;if(Ye&&e)return dk(a);if(e&&!d)return n;if(B&&!c&&(b==17||b==18))return n;if(B&&d&&b==a)return n;switch(a){case 13:return i;case 27:return!Se}return dk(a)},dk=function(a){if(a>=48&&a<=57)return i;if(a>=96&&a<=106)return i;if(a>=bk&&a<=ck)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return n}};var fk=function(a){a&&this.attach(a)};v(fk,E);fk.prototype.A=j;fk.prototype.ei=j;fk.prototype.dl=j;fk.prototype.fi=j;fk.prototype.ag=-1;fk.prototype.Te=-1;
var gk={"3":13,"12":144,"63232":38,"63233":40,"63234":37,"63235":39,"63236":112,"63237":113,"63238":114,"63239":115,"63240":116,"63241":117,"63242":118,"63243":119,"63244":120,"63245":121,"63246":122,"63247":123,"63248":44,"63272":46,"63273":36,"63275":35,"63276":33,"63277":34,"63289":144,"63302":45},hk={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},ik={61:187,
59:186},jk=B||Se&&df("525");fk.prototype.ev=function(a){if(jk&&!ek(a.keyCode,this.ag,a.shiftKey,a.ctrlKey,a.altKey))this.handleEvent(a);else this.Te=Re&&a.keyCode in ik?ik[a.keyCode]:a.keyCode};fk.prototype.fv=function(){this.Te=this.ag=-1};
fk.prototype.handleEvent=function(a){var b=a.uk(),c,d;if(B&&a.type=="keypress"){c=this.Te;d=c!=13&&c!=27?b.keyCode:0}else if(Se&&a.type=="keypress"){c=this.Te;d=b.charCode>=0&&b.charCode<63232&&dk(c)?b.charCode:0}else if(Qe){c=this.Te;d=dk(c)?b.keyCode:0}else{c=b.keyCode||this.Te;d=b.charCode||0;if(Ye&&d==63&&!c)c=191}var e=c,f=b.keyIdentifier;if(c)if(c>=63232&&c in gk)e=gk[c];else{if(c==25&&a.shiftKey)e=9}else if(f&&f in hk)e=hk[f];a=e==this.ag;this.ag=e;b=new kk(e,d,a,b);try{this.dispatchEvent(b)}finally{b.dispose()}};
fk.prototype.attach=function(a){this.fi&&this.detach();this.A=a;this.ei=D(this.A,"keypress",this);this.dl=D(this.A,"keydown",this.ev,n,this);this.fi=D(this.A,"keyup",this.fv,n,this)};fk.prototype.detach=function(){if(this.ei){Lf(this.ei);Lf(this.dl);Lf(this.fi);this.fi=this.dl=this.ei=j}this.A=j;this.ag=-1};fk.prototype.j=function(){fk.r.j.call(this);this.detach()};var kk=function(a,b,c,d){C.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};v(kk,C);var lk=function(){};ea(lk);lk.prototype.Xw=0;lk.prototype.hu=function(){return":"+(this.Xw++).toString(36)};lk.getInstance();var N=function(a){this.g=a||xg();this.mg=mk};v(N,E);N.prototype.$v=lk.getInstance();var mk=j,nk=function(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close";default:}g(Error("Invalid component state"))};N.prototype.L=j;N.prototype.g=j;N.prototype.Ua=n;N.prototype.A=j;N.prototype.mg=j;
N.prototype.ta=j;N.prototype.Wa=j;N.prototype.Ia=j;N.prototype.vb=j;N.prototype.Sq=n;N.prototype.ca=function(){return this.L||(this.L=this.$v.hu())};N.prototype.jf=function(a){if(this.Wa&&this.Wa.vb){ue(this.Wa.vb,this.L);we(this.Wa.vb,a,this)}this.L=a};N.prototype.k=function(){return this.A};N.prototype.gf=function(a){this.A=a};N.prototype.H=function(){return this.Uf||(this.Uf=new li(this))};
N.prototype.kq=function(a){if(this==a)g(Error("Unable to set parent component"));if(a&&this.Wa&&this.L&&this.Wa.Mn(this.L)&&this.Wa!=a)g(Error("Unable to set parent component"));this.Wa=a;N.r.Qi.call(this,a)};N.prototype.Sf=function(){return this.Wa};N.prototype.Qi=function(a){if(this.Wa&&this.Wa!=a)g(Error("Method not supported"));N.r.Qi.call(this,a)};N.prototype.la=function(){return this.g};N.prototype.Hb=function(){return this.Ua};N.prototype.i=function(){this.A=this.g.createElement("div")};
N.prototype.render=function(a){this.Op(a)};N.prototype.Op=function(a,b){if(this.Ua)g(Error("Component already rendered"));this.A||this.i();a?a.insertBefore(this.A,b||j):this.g.Zc().body.appendChild(this.A);if(!this.Wa||this.Wa.Hb())this.P()};N.prototype.decorate=function(a){if(this.Ua)g(Error("Component already rendered"));else if(a&&this.pa(a)){this.Sq=i;if(!this.g||this.g.Zc()!=wg(a))this.g=xg(a);this.fa(a);this.P()}else g(Error("Invalid element to decorate"))};N.prototype.pa=function(){return i};
N.prototype.fa=function(a){this.A=a};N.prototype.P=function(){this.Ua=i;this.ye(function(a){!a.Hb()&&a.k()&&a.P()})};N.prototype.ja=function(){this.ye(function(a){a.Hb()&&a.ja()});this.Uf&&this.Uf.lg();this.Ua=n};N.prototype.j=function(){N.r.j.call(this);this.Ua&&this.ja();if(this.Uf){this.Uf.dispose();delete this.Uf}this.ye(function(a){a.dispose()});!this.Sq&&this.A&&Ug(this.A);this.Wa=this.ta=this.A=this.vb=this.Ia=j};N.prototype.bu=function(){return this.ta};
N.prototype.Hy=function(a){this.ta=a};N.prototype.rf=function(a,b){this.Eg(a,this.Be(),b)};
N.prototype.Eg=function(a,b,c){if(a.Ua&&(c||!this.Ua))g(Error("Component already rendered"));if(b<0||b>this.Be())g(Error("Child component index out of bounds"));if(!this.vb||!this.Ia){this.vb={};this.Ia=[]}if(a.Sf()==this){ve(this.vb,a.ca(),a);ge(this.Ia,a)}else we(this.vb,a.ca(),a);a.kq(this);ee(this.Ia,a,b);if(a.Ua&&this.Ua&&a.Sf()==this){c=this.T();c.insertBefore(a.k(),c.childNodes[b+1]||j)}else if(c){this.A||this.i();b=this.Xb(b+1);a.Op(this.T(),b?b.A:j)}else this.Ua&&!a.Ua&&a.A&&a.P()};
N.prototype.T=function(){return this.A};N.prototype.$k=function(){if(this.mg==j)this.mg=Uh(this.Ua?this.A:this.g.Zc().body);return this.mg};N.prototype.Nc=function(a){if(this.Ua)g(Error("Component already rendered"));this.mg=a};N.prototype.Be=function(){return this.Ia?this.Ia.length:0};N.prototype.Mn=function(a){return this.vb&&a?xe(this.vb,a)||j:j};N.prototype.Xb=function(a){return this.Ia?this.Ia[a]||j:j};N.prototype.ye=function(a,b){this.Ia&&Xd(this.Ia,a,b)};
N.prototype.Oe=function(a){return this.Ia&&a?Wd(this.Ia,a):-1};N.prototype.removeChild=function(a,b){if(a){var c=ia(a)?a:a.ca();a=this.Mn(c);if(c&&a){ue(this.vb,c);ge(this.Ia,a);if(b){a.ja();a.A&&Ug(a.A)}a.kq(j)}}if(!a)g(Error("Child is not in parent component"));return a};var pk=function(a){for(var b;a;){b=oa(a);if(b=ok[b])break;a=a.r?a.r.constructor:j}if(b)return ka(b.getInstance)?b.getInstance():new b;return j},qk=function(a,b){if(!ka(a))g(Error("Invalid component class "+a));if(!ka(b))g(Error("Invalid renderer class "+b));a=oa(a);ok[a]=b},sk=function(a,b){if(!a)g(Error("Invalid class name "+a));if(!ka(b))g(Error("Invalid decorator function "+b));rk[a]=b},tk=function(a){for(var b=mg(a),c=0,d=b.length;c<d;c++)if(a=b[c]in rk?rk[b[c]]():j)return a;return j},ok={},rk=
{};var O=function(){},uk;ea(O);O.prototype.va=function(){};O.prototype.i=function(a){return a.la().i("div",this.Yb(a).join(" "),a.Bh())};O.prototype.T=function(a){return a};O.prototype.Ff=function(a,b,c){if(a=a.k?a.k():a)if(B&&!df("7")){var d=this.sk(mg(a),b);d.push(b);b=c?og:qg;qa(b,a).apply(j,d)}else tg(a,b,c)};O.prototype.on=function(a,b,c){this.Ff(a,b,c)};O.prototype.pa=function(){return i};
O.prototype.decorate=function(a,b){b.id&&a.jf(b.id);var c=this.T(b);c&&c.firstChild?a.Hi(c.firstChild.nextSibling?he(c.childNodes):c.firstChild):a.Hi(j);var d=0,e=this.J(),f=this.Kd(),h=n,k=n;c=n;var l=mg(b);Xd(l,function(o){if(!h&&o==e){h=i;if(f==e)k=i}else if(!k&&o==f)k=i;else d|=this.Kh(o)},this);a.nq(d);if(!h){l.push(e);if(f==e)k=i}k||l.push(f);(a=a.Tn())&&l.push.apply(l,a);if(B&&!df("7")){var m=this.sk(l);if(m.length>0){l.push.apply(l,m);c=i}}if(!h||!k||a||c)lg(b,l.join(" "));return b};
O.prototype.Hc=function(a){a.$k()&&this.Nc(a.k(),i);a.U()&&this.qc(a,a.ma())};O.prototype.bq=function(a){if(Re){var b=this.va();b&&$j(a,b)}};O.prototype.Xd=function(a,b){fi(a,!b,!B&&!Qe)};O.prototype.Nc=function(a,b){this.Ff(a,this.Kd()+"-rtl",b)};O.prototype.jc=function(a){var b;if(a.Va(32)&&(b=a.aa()))return gh(b);return n};O.prototype.qc=function(a,b){var c;if(a.Va(32)&&(c=a.aa())){if(!b&&a.To()){try{c.blur()}catch(d){}a.To()&&a.Ec(j)}gh(c)!=b&&hh(c,b)}};O.prototype.Pa=function(a,b){H(a,b)};
O.prototype.Oa=function(a,b,c){var d=a.k();if(d){var e=this.Ce(b);e&&this.Ff(a,e,c);this.td(d,b,c)}};O.prototype.td=function(a,b,c){if(Re){uk||(uk=Ce(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));(b=uk[b])&&ak(a,b,c)}};O.prototype.Mc=function(a,b){var c=this.T(a);if(c){Rg(c);if(b)if(ia(b))bh(c,b);else{function d(e){if(e){var f=wg(c);c.appendChild(ia(e)?f.createTextNode(e):e)}}if(ga(b))Xd(b,d);else ha(b)&&!("nodeType"in b)?Xd(he(b),d):d(b)}}};O.prototype.aa=function(a){return a.k()};
O.prototype.J=function(){return"goog-control"};O.prototype.Rt=function(){return[]};O.prototype.Kd=function(){return this.J()};O.prototype.Yb=function(a){var b=this.J(),c=[b],d=this.Kd();d!=b&&c.push(d);(b=this.ht(a.Jh()))&&c.push.apply(c,b);(a=a.Tn())&&c.push.apply(c,a);B&&!df("7")&&c.push.apply(c,this.sk(c));return c};O.prototype.sk=function(a,b){var c=[];if(b)a=a.concat([b]);Xd(this.Rt(),function(d){if(ae(d,qa(be,a))&&(!b||be(d,b)))c.push(d.join("_"))});return c};
O.prototype.ht=function(a){if(a){for(var b=[],c=1;a;c<<=1)if(a&c){b.push(this.Ce(c));a&=~c}return b}return j};O.prototype.Ce=function(a){this.Oj||this.Rm();return this.Oj[a]};O.prototype.Kh=function(a){this.hz||this.qs();a=parseInt(this.hz[a],10);return isNaN(a)?0:a};O.prototype.Rm=function(){var a=this.Kd();this.Oj=Ce(1,a+"-disabled",2,a+"-hover",4,a+"-active",8,a+"-selected",16,a+"-checked",32,a+"-focused",64,a+"-open")};O.prototype.qs=function(){this.Oj||this.Rm();this.hz=ze(this.Oj)};var P=function(a,b,c){N.call(this,c);this.C=b||pk(this.constructor);this.Hi(a)};v(P,N);P.prototype.Xj=j;P.prototype.D=0;P.prototype.yg=39;P.prototype.Kg=255;P.prototype.aj=0;P.prototype.Ra=i;P.prototype.Tb=j;P.prototype.Kk=i;P.prototype.km=n;P.prototype.vw=function(){return this.Kk};P.prototype.Ol=function(a){this.Hb()&&a!=this.Kk&&this.qn(a);this.Kk=a};P.prototype.aa=function(){return this.C.aa(this)};P.prototype.Pf=function(){return this.jb||(this.jb=new fk)};P.prototype.Id=function(){return this.C};
P.prototype.Tn=function(){return this.Tb};P.prototype.qj=function(a){if(a){if(this.Tb)be(this.Tb,a)||this.Tb.push(a);else this.Tb=[a];this.C.on(this,a,i)}};P.prototype.Ox=function(a){if(a&&this.Tb){ge(this.Tb,a);if(this.Tb.length==0)this.Tb=j;this.C.on(this,a,n)}};P.prototype.Ff=function(a,b){b?this.qj(a):this.Ox(a)};P.prototype.i=function(){var a=this.C.i(this);this.gf(a);this.C.bq(a);this.Yk()||this.C.Xd(a,n);this.ma()||this.C.Pa(a,n)};P.prototype.T=function(){return this.C.T(this.k())};
P.prototype.pa=function(a){return this.C.pa(a)};P.prototype.fa=function(a){a=this.C.decorate(this,a);this.gf(a);this.C.bq(a);this.Yk()||this.C.Xd(a,n);this.Ra=a.style.display!="none"};P.prototype.P=function(){P.r.P.call(this);this.C.Hc(this);if(this.yg&-2){this.vw()&&this.qn(i);if(this.Va(32)){var a=this.aa();if(a){var b=this.Pf();b.attach(a);this.H().listen(b,"key",this.Fc).listen(a,"focus",this.Ld).listen(a,"blur",this.Ec)}}}};
P.prototype.qn=function(a){var b=this.H(),c=this.k();if(a){b.listen(c,"mouseover",this.Nk).listen(c,"mousedown",this.Ke).listen(c,"mouseup",this.Ok).listen(c,"mouseout",this.Lk);B&&b.listen(c,"dblclick",this.wo)}else{b.unlisten(c,"mouseover",this.Nk).unlisten(c,"mousedown",this.Ke).unlisten(c,"mouseup",this.Ok).unlisten(c,"mouseout",this.Lk);B&&b.unlisten(c,"dblclick",this.wo)}};P.prototype.ja=function(){P.r.ja.call(this);this.jb&&this.jb.detach();this.ma()&&this.U()&&this.C.qc(this,n)};
P.prototype.j=function(){P.r.j.call(this);if(this.jb){this.jb.dispose();delete this.jb}delete this.C;this.Tb=this.Xj=j};P.prototype.Bh=function(){return this.Xj};P.prototype.Mc=function(a){this.C.Mc(this.k(),a);this.Hi(a)};P.prototype.Hi=function(a){this.Xj=a};P.prototype.Ln=function(){var a=this.Bh();if(!a||ia(a))return a;return(a=ga(a)?Zd(a,jh).join(""):jh(a))&&kd(a)};P.prototype.Nc=function(a){P.r.Nc.call(this,a);var b=this.k();b&&this.C.Nc(b,a)};P.prototype.Yk=function(){return this.km};
P.prototype.Xd=function(a){this.km=a;var b=this.k();b&&this.C.Xd(b,a)};P.prototype.ma=function(){return this.Ra};P.prototype.Pa=function(a,b){if(b||this.Ra!=a&&this.dispatchEvent(a?"show":"hide")){(b=this.k())&&this.C.Pa(b,a);this.U()&&this.C.qc(this,a);this.Ra=a;return i}return n};P.prototype.U=function(){return!this.cc(1)};P.prototype.yw=function(){var a=this.Sf();return!!a&&typeof a.U=="function"&&!a.U()};
P.prototype.S=function(a){if(!this.yw()&&this.Rd(1,!a)){if(!a){this.setActive(n);this.ob(n)}this.ma()&&this.C.qc(this,a);this.Oa(1,!a)}};P.prototype.ob=function(a){this.Rd(2,a)&&this.Oa(2,a)};P.prototype.X=function(){return this.cc(4)};P.prototype.setActive=function(a){this.Rd(4,a)&&this.Oa(4,a)};P.prototype.al=function(){return this.cc(8)};P.prototype.Ui=function(a){this.Rd(8,a)&&this.Oa(8,a)};P.prototype.ow=function(){return this.cc(16)};P.prototype.yy=function(a){this.Rd(16,a)&&this.Oa(16,a)};
P.prototype.To=function(){return this.cc(32)};P.prototype.gq=function(a){this.Rd(32,a)&&this.Oa(32,a)};P.prototype.isOpen=function(){return this.cc(64)};P.prototype.kf=function(a){this.Rd(64,a)&&this.Oa(64,a)};P.prototype.Jh=function(){return this.D};P.prototype.cc=function(a){return!!(this.D&a)};P.prototype.Oa=function(a,b){if(this.Va(a)&&b!=this.cc(a)){this.C.Oa(this,a,b);this.D=b?this.D|a:this.D&~a}};P.prototype.nq=function(a){this.D=a};P.prototype.Va=function(a){return!!(this.yg&a)};
P.prototype.pd=function(a,b){if(this.Hb()&&this.cc(a)&&!b)g(Error("Component already rendered"));!b&&this.cc(a)&&this.Oa(a,n);this.yg=b?this.yg|a:this.yg&~a};P.prototype.bb=function(a){return!!(this.Kg&a)&&this.Va(a)};P.prototype.vy=function(a,b){this.Kg=b?this.Kg|a:this.Kg&~a};P.prototype.Ml=function(a,b){this.aj=b?this.aj|a:this.aj&~a};P.prototype.Rd=function(a,b){return this.Va(a)&&this.cc(a)!=b&&(!(this.aj&a)||this.dispatchEvent(nk(a,b)))&&!this.qw()};
P.prototype.Nk=function(a){a.relatedTarget&&!$g(this.k(),a.relatedTarget)&&this.dispatchEvent("enter")&&this.U()&&this.bb(2)&&this.ob(i)};P.prototype.Lk=function(a){if(a.relatedTarget&&!$g(this.k(),a.relatedTarget)&&this.dispatchEvent("leave")){this.bb(4)&&this.setActive(n);this.bb(2)&&this.ob(n)}};P.prototype.Ke=function(a){if(this.U()){this.bb(2)&&this.ob(i);if(a.Po(0)){this.bb(4)&&this.setActive(i);this.C.jc(this)&&this.aa().focus()}}!this.Yk()&&a.Po(0)&&a.preventDefault()};
P.prototype.Ok=function(a){if(this.U()){this.bb(2)&&this.ob(i);this.X()&&this.gg(a)&&this.bb(4)&&this.setActive(n)}};P.prototype.wo=function(a){this.U()&&this.gg(a)};P.prototype.gg=function(a){this.bb(16)&&this.yy(!this.ow());this.bb(8)&&this.Ui(i);this.bb(64)&&this.kf(!this.isOpen());var b=new ff("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey"],d,e=0;d=c[e];e++)b[d]=a[d];return this.dispatchEvent(b)};P.prototype.Ld=function(){this.bb(32)&&this.gq(i)};
P.prototype.Ec=function(){this.bb(4)&&this.setActive(n);this.bb(32)&&this.gq(n)};P.prototype.Fc=function(a){if(this.ma()&&this.U()&&this.Nd(a)){a.preventDefault();a.stopPropagation();return i}return n};P.prototype.Nd=function(a){return a.keyCode==13&&this.gg(a)};qk(P,O);sk("goog-control",function(){return new P(j)});var vk=function(){};v(vk,O);ea(vk);vk.prototype.i=function(a){return a.la().i("div",this.J())};vk.prototype.decorate=function(a,b){if(b.tagName=="HR"){var c=b;b=this.i(a);Sg(b,c);Ug(c)}else og(b,this.J());return b};vk.prototype.Mc=function(){};vk.prototype.J=function(){return"goog-menuseparator"};var wk=function(a,b){P.call(this,j,a||vk.getInstance(),b);this.pd(1,n);this.pd(2,n);this.pd(4,n);this.pd(32,n);this.nq(1)};v(wk,P);wk.prototype.P=function(){wk.r.P.call(this);$j(this.k(),"separator")};sk("goog-menuseparator",function(){return new wk});var xk=function(){};ea(xk);xk.prototype.va=function(){};xk.prototype.Tv=function(a){if(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){a=a.tabIndex;return ja(a)&&a>=0}}return n};xk.prototype.hk=function(a,b){if(a)a.tabIndex=b?0:-1};xk.prototype.i=function(a){return a.la().i("div",this.Yb(a).join(" "))};xk.prototype.T=function(a){return a};xk.prototype.pa=function(a){return a.tagName=="DIV"};
xk.prototype.decorate=function(a,b){b.id&&a.jf(b.id);var c=this.J(),d=n,e=mg(b);e&&Xd(e,function(f){if(f==c)d=i;else f&&this.Wi(a,f,c)},this);d||og(b,c);this.As(a,b);return b};xk.prototype.Wi=function(a,b,c){if(b==c+"-disabled")a.S(n);else if(b==c+"-horizontal")a.Pl("horizontal");else b==c+"-vertical"&&a.Pl("vertical")};
xk.prototype.As=function(a,b){if(b)for(var c=b.firstChild,d;c&&c.parentNode==b;){d=c.nextSibling;if(c.nodeType==1){var e=this.Ch(c);if(e){e.gf(c);a.U()||e.S(n);a.rf(e);e.decorate(c)}}else if(!c.nodeValue||kd(c.nodeValue)=="")b.removeChild(c);c=d}};xk.prototype.Ch=function(a){return tk(a)};xk.prototype.Hc=function(a){a=a.k();fi(a,i,Re);if(B)a.hideFocus=i;var b=this.va();b&&$j(a,b)};xk.prototype.aa=function(a){return a.k()};xk.prototype.J=function(){return"goog-container"};
xk.prototype.Yb=function(a){var b=this.J(),c=a.fo()=="horizontal";c=[b,c?b+"-horizontal":b+"-vertical"];a.U()||c.push(b+"-disabled");return c};xk.prototype.yt=function(){return"vertical"};var Q=function(a,b,c){N.call(this,c);this.C=b||xk.getInstance();this.Vd=a||this.C.yt()};v(Q,N);Q.prototype.Bw=j;Q.prototype.jb=j;Q.prototype.C=j;Q.prototype.Vd=j;Q.prototype.Ra=i;Q.prototype.zb=i;Q.prototype.ok=i;Q.prototype.ib=-1;Q.prototype.na=j;Q.prototype.ml=n;Q.prototype.jr=n;Q.prototype.Uc=j;Q.prototype.aa=function(){return this.Bw||this.C.aa(this)};Q.prototype.Pf=function(){return this.jb||(this.jb=new fk(this.aa()))};Q.prototype.Id=function(){return this.C};Q.prototype.i=function(){this.gf(this.C.i(this))};
Q.prototype.T=function(){return this.C.T(this.k())};Q.prototype.pa=function(a){return this.C.pa(a)};Q.prototype.fa=function(a){this.gf(this.C.decorate(this,a));if(a.style.display=="none")this.Ra=n};
Q.prototype.P=function(){Q.r.P.call(this);this.ye(function(b){b.Hb()&&this.Gp(b)},this);var a=this.k();this.C.Hc(this);this.Pa(this.Ra,i);this.H().listen(this,"enter",this.Ph).listen(this,"highlight",this.dv).listen(this,"unhighlight",this.Jv).listen(this,"open",this.mv).listen(this,"close",this.Uu).listen(a,"mousedown",this.Ke).listen(wg(a),"mouseup",this.Xu).listen(a,["mousedown","mouseup","mouseover","mouseout"],this.Su);this.jc()&&this.pn(i)};
Q.prototype.pn=function(a){var b=this.H(),c=this.aa();a?b.listen(c,"focus",this.Ld).listen(c,"blur",this.Ec).listen(this.Pf(),"key",this.Fc):b.unlisten(c,"focus",this.Ld).unlisten(c,"blur",this.Ec).unlisten(this.Pf(),"key",this.Fc)};Q.prototype.ja=function(){this.qg(-1);this.na&&this.na.kf(n);this.ml=n;Q.r.ja.call(this)};Q.prototype.j=function(){Q.r.j.call(this);if(this.jb){this.jb.dispose();this.jb=j}this.C=this.na=this.Uc=j};Q.prototype.Ph=function(){return i};
Q.prototype.dv=function(a){var b=this.Oe(a.target);if(b>-1&&b!=this.ib){var c=this.Fe();c&&c.ob(n);this.ib=b;c=this.Fe();this.xw()&&c.setActive(i);if(this.na&&c!=this.na)c.Va(64)?c.kf(i):this.na.kf(n)}ak(this.k(),"activedescendant",a.target.k().id)};Q.prototype.Jv=function(a){if(a.target==this.Fe())this.ib=-1;ak(this.k(),"activedescendant","")};Q.prototype.mv=function(a){if((a=a.target)&&a!=this.na&&a.Sf()==this){this.na&&this.na.kf(n);this.na=a}};
Q.prototype.Uu=function(a){if(a.target==this.na)this.na=j};Q.prototype.Ke=function(a){this.zb&&this.Oi(i);var b=this.aa();this.C.Tv(b)?b.focus():a.preventDefault()};Q.prototype.Xu=function(){this.Oi(n)};Q.prototype.Su=function(a){var b=this.ku(a.target);if(b)switch(a.type){case "mousedown":b.Ke(a);break;case "mouseup":b.Ok(a);break;case "mouseover":b.Nk(a);break;case "mouseout":b.Lk(a);break}};
Q.prototype.ku=function(a){if(this.Uc)for(var b=this.k();a&&a.parentNode&&a!=b;){var c=a.id;if(c in this.Uc)return this.Uc[c];a=a.parentNode}return j};Q.prototype.Ld=function(){};Q.prototype.Ec=function(){this.qg(-1);this.Oi(n);this.na&&this.na.kf(n)};Q.prototype.Fc=function(a){if(this.U()&&this.Be()!=0&&this.Nd(a)){a.preventDefault();a.stopPropagation();return i}return n};
Q.prototype.Nd=function(a){var b=this.Fe();if(b&&typeof b.Fc=="function"&&b.Fc(a))return i;if(this.na&&this.na!=b&&typeof this.na.Fc=="function"&&this.na.Fc(a))return i;switch(a.keyCode){case 27:if(this.jc())this.aa().blur();else return n;break;case 36:this.Wv();break;case 35:this.Yv();break;case 38:if(this.Vd=="vertical")this.Tk();else return n;break;case 37:if(this.Vd=="horizontal")this.$k()?this.Sk():this.Tk();else return n;break;case 40:if(this.Vd=="vertical")this.Sk();else return n;break;case 39:if(this.Vd==
"horizontal")this.$k()?this.Tk():this.Sk();else return n;break;default:return n}return i};Q.prototype.Gp=function(a){var b=a.k();b=b.id||(b.id=a.ca());if(!this.Uc)this.Uc={};this.Uc[b]=a};Q.prototype.rf=function(a,b){Q.r.rf.call(this,a,b)};Q.prototype.Eg=function(a,b,c){a.Ml(2,i);a.Ml(64,i);if(this.jc()||!this.sw())a.pd(32,n);a.Ol(n);Q.r.Eg.call(this,a,b,c);c&&this.Hb()&&this.Gp(a);b<=this.ib&&this.ib++};
Q.prototype.removeChild=function(a,b){var c=this.Oe(a);if(c!=-1)if(c==this.ib)a.ob(n);else c<this.ib&&this.ib--;(c=a.k())&&c.id&&ue(this.Uc,c.id);a=Q.r.removeChild.call(this,a,b);a.Ol(i);return a};Q.prototype.fo=function(){return this.Vd};Q.prototype.Pl=function(a){if(this.k())g(Error("Component already rendered"));this.Vd=a};Q.prototype.ma=function(){return this.Ra};
Q.prototype.Pa=function(a,b){if(b||this.Ra!=a&&this.dispatchEvent(a?"show":"hide")){this.Ra=a;var c=this.k();if(c){H(c,a);this.jc()&&this.C.hk(this.aa(),this.zb&&this.Ra);this.Ra&&!b&&this.dispatchEvent("aftershow")}return i}return n};Q.prototype.U=function(){return this.zb};
Q.prototype.S=function(a){if(this.zb!=a&&this.dispatchEvent(a?"enable":"disable")){if(a){this.zb=i;this.ye(function(b){if(b.wasDisabled)delete b.wasDisabled;else b.S(i)})}else{this.ye(function(b){if(b.U())b.S(n);else b.wasDisabled=i});this.zb=n;this.Oi(n)}this.jc()&&this.C.hk(this.aa(),a&&this.Ra)}};Q.prototype.jc=function(){return this.ok};Q.prototype.qc=function(a){a!=this.ok&&this.Hb()&&this.pn(a);this.ok=a;this.zb&&this.Ra&&this.C.hk(this.aa(),a)};Q.prototype.sw=function(){return this.jr};
Q.prototype.qg=function(a){if(a=this.Xb(a))a.ob(i);else this.ib>-1&&this.Fe().ob(n)};Q.prototype.ob=function(a){this.qg(this.Oe(a))};Q.prototype.Fe=function(){return this.Xb(this.ib)};Q.prototype.Wv=function(){this.Th(function(a,b){return(a+1)%b},this.Be()-1)};Q.prototype.Yv=function(){this.Th(function(a,b){a--;return a<0?b-1:a},0)};Q.prototype.Sk=function(){this.Th(function(a,b){return(a+1)%b},this.ib)};Q.prototype.Tk=function(){this.Th(function(a,b){a--;return a<0?b-1:a},this.ib)};
Q.prototype.Th=function(a,b){b=b<0?this.Oe(this.na):b;var c=this.Be();b=a(b,c);for(var d=0;d<=c;){var e=this.Xb(b);if(e&&this.Fj(e)){this.Li(b);return i}d++;b=a(b,c)}return n};Q.prototype.Fj=function(a){return a.ma()&&a.U()&&a.Va(2)};Q.prototype.Li=function(a){this.qg(a)};Q.prototype.xw=function(){return this.ml};Q.prototype.Oi=function(a){this.ml=a};var yk=function(){this.Gr=[]};v(yk,O);ea(yk);yk.prototype.De=function(a){var b=this.Gr[a];if(!b){switch(a){case 0:b=this.Kd()+"-highlight";break;case 1:b=this.Kd()+"-checkbox";break;case 2:b=this.Kd()+"-content";break}this.Gr[a]=b}return b};yk.prototype.va=function(){return"menuitem"};yk.prototype.i=function(a){var b=a.la().i("div",this.Yb(a).join(" "),this.Sm(a.Bh(),a.la()));this.eq(a,b,a.Va(8)||a.Va(16));return b};yk.prototype.T=function(a){return a&&a.firstChild};
yk.prototype.decorate=function(a,b){this.Mv(b)||b.appendChild(this.Sm(b.childNodes,a.la()));if(sg(b,"goog-option")){a.og(i);this.og(a,b,i)}return yk.r.decorate.call(this,a,b)};yk.prototype.Mc=function(a,b){var c=this.T(a),d=this.Rk(a)?c.firstChild:j;yk.r.Mc.call(this,a,b);if(d&&!this.Rk(a))c.insertBefore(d,c.firstChild||j)};yk.prototype.Mv=function(a){a=Yg(a);var b=this.De(2);return!!a&&a.className.indexOf(b)!=-1};yk.prototype.Sm=function(a,b){var c=this.De(2);return b.i("div",c,a)};
yk.prototype.og=function(a,b,c){if(b){$j(b,c?"menuitemcheckbox":this.va());this.eq(a,b,c)}};yk.prototype.Rk=function(a){if(a=this.T(a)){a=a.firstChild;var b=this.De(1);return!!a&&!!a.className&&a.className.indexOf(b)!=-1}return n};yk.prototype.eq=function(a,b,c){if(c!=this.Rk(b)){tg(b,"goog-option",c);b=this.T(b);if(c){c=this.De(1);b.insertBefore(a.la().i("div",c),b.firstChild||j)}else b.removeChild(b.firstChild)}};
yk.prototype.Ce=function(a){switch(a){case 2:return this.De(0);case 16:case 8:return"goog-option-selected";default:return yk.r.Ce.call(this,a)}};yk.prototype.Kh=function(a){var b=this.De(0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return yk.r.Kh.call(this,a)}};yk.prototype.J=function(){return"goog-menuitem"};var zk=function(a,b,c,d){P.call(this,a,d||yk.getInstance(),c);this.ua(b)};v(zk,P);zk.prototype.xa=function(){var a=this.bu();return a!=j?a:this.Ln()};zk.prototype.ua=function(a){this.Hy(a)};zk.prototype.og=function(a){this.pd(16,a);var b=this.k();b&&this.C.og(this,b,a)};sk("goog-menuitem",function(){return new zk(j)});var Ak=function(a){wk.call(this,vk.getInstance(),a)};v(Ak,wk);sk("goog-menuseparator",function(){return new wk});var Bk={TOP_LEFT:0,TOP_RIGHT:2,BOTTOM_LEFT:1,BOTTOM_RIGHT:3,TOP_START:4,TOP_END:6,BOTTOM_START:5,BOTTOM_END:7},Ek=function(a,b,c,d,e,f,h,k){var l,m=c.offsetParent;if(m){var o=m.tagName=="HTML"||m.tagName=="BODY";if(!o||Mh(m,"position")!="static"){l=Rh(m);o||(l=hg(l,new gg(m.scrollLeft,m.scrollTop)))}}m=Ck(a);Xh(m,xg(a),xg(c));a=(b&4&&Uh(a)?b^2:b)&-5;b=new gg(a&2?m.left+m.width:m.left,a&1?m.top+m.height:m.top);if(l)b=hg(b,l);if(e){b.x+=(a&2?-1:1)*e.x;b.y+=(a&1?-1:1)*e.y}var q;if(h)if((q=Th(c))&&l){q.top=
Math.max(0,q.top-l.y);q.right-=l.x;q.bottom-=l.y;q.left=Math.max(0,q.left-l.x)}return Dk(b,c,d,f,q,h,k)},Ck=function(a){var b=bi(a);(a=Th(a))&&b.intersection(new Ah(a.left,a.top,a.right-a.left,a.bottom-a.top));return b},Dk=function(a,b,c,d,e,f,h){a=a.clone();var k=0;c=(c&4&&Uh(b)?c^2:c)&-5;var l=ai(b);h=h?h.clone():l;if(d||c!=0){if(c&2)a.x-=h.width+(d?d.right:0);else if(d)a.x+=d.left;if(c&1)a.y-=h.height+(d?d.bottom:0);else if(d)a.y+=d.top}if(f){k=e?Fk(a,h,e,f):256;if(k&496)return k}Nh(b,a);jg(l,
h)||$h(b,h);return k},Fk=function(a,b,c,d){var e=0;if(a.x<c.left&&d&1){a.x=c.left;e|=1}if(a.x<c.left&&a.x+b.width>c.right&&d&16){b.width-=a.x+b.width-c.right;e|=4}if(a.x+b.width>c.right&&d&1){a.x=Math.max(c.right-b.width,c.left);e|=1}if(d&2)e|=(a.x<c.left?16:0)|(a.x+b.width>c.right?32:0);if(a.y<c.top&&d&4){a.y=c.top;e|=2}if(a.y>=c.top&&a.y+b.height>c.bottom&&d&32){b.height-=a.y+b.height-c.bottom;e|=8}if(a.y+b.height>c.bottom&&d&4){a.y=Math.max(c.bottom-b.height,c.top);e|=2}if(d&8)e|=(a.y<c.top?64:
0)|(a.y+b.height>c.bottom?128:0);return e};var Gk=function(){};Gk.prototype.reposition=function(){};var Hk=function(a,b){this.element=a;this.corner=b};v(Hk,Gk);Hk.prototype.reposition=function(a,b,c){Ek(this.element,this.corner,a,b,undefined,c)};var Ik=function(a,b,c){Hk.call(this,a,b);this.Tz=c};v(Ik,Hk);Ik.prototype.reposition=function(a,b,c,d){var e=Ek(this.element,this.corner,a,b,j,c,10,d)&496;if(e)if(e=Ek(this.element,b,a,this.corner,j,c,10,d)&496)this.Tz?Ek(this.element,this.corner,a,b,j,c,5,d):Ek(this.element,this.corner,a,b,j,c,0,d)};var Jk=function(a,b){this.coordinate=a instanceof gg?a:new gg(a,b)};v(Jk,Gk);Jk.prototype.reposition=function(a,b,c,d){var e=Oh(a),f=new gg(this.coordinate.x+e.scrollLeft,this.coordinate.y+e.scrollTop);Ek(e,0,a,b,f,c,j,d)};var Kk=function(a,b){Jk.call(this,a,b)};v(Kk,Jk);Kk.prototype.reposition=function(a,b,c,d){var e=Oh(a);e=Th(e);var f=xg(a).Qn();f=new gg(this.coordinate.x+f.scrollLeft,this.coordinate.y+f.scrollTop);var h=10,k=b,l=Dk(f,a,k,c,e,h,d);if((l&496)!=0){if(l&16||l&32)k^=2;if(l&64||l&128)k^=1;l=Dk(f,a,k,c,e,h,d);(l&496)!=0&&Dk(f,a,b,c,e,undefined,d)}};var Lk=Bk;var Mk=function(){};v(Mk,xk);ea(Mk);Mk.prototype.va=function(){return"menu"};Mk.prototype.pa=function(a){return a.tagName=="UL"||Mk.r.pa.call(this,a)};Mk.prototype.Ch=function(a){return a.tagName=="HR"?new wk:Mk.r.Ch.call(this,a)};Mk.prototype.pe=function(a,b){return $g(a.k(),b)};Mk.prototype.J=function(){return"goog-menu"};Mk.prototype.Hc=function(a){Mk.r.Hc.call(this,a);a=a.k();ak(a,"haspopup","true")};var Nk=function(a,b){Q.call(this,"vertical",b||Mk.getInstance(),a);this.qc(n)};v(Nk,Q);Nk.prototype.wj=i;Nk.prototype.kr=n;Nk.prototype.J=function(){return this.Id().J()};Nk.prototype.pe=function(a){if(this.Id().pe(this,a))return i;for(var b=0,c=this.Be();b<c;b++){var d=this.Xb(b);if(typeof d.pe=="function"&&d.pe(a))return i}return n};Nk.prototype.gm=function(a){this.rf(a,i)};Nk.prototype.$c=function(a){return this.Xb(a)};Nk.prototype.Of=function(){return this.Ia||[]};
Nk.prototype.setPosition=function(a,b){var c=this.ma();c||H(this.k(),i);Zh(this.k(),a,b);c||H(this.k(),n)};Nk.prototype.uy=function(a){(this.wj=a)&&this.qc(i)};Nk.prototype.Pa=function(a,b){(b=Nk.r.Pa.call(this,a,b))&&a&&this.Hb()&&this.wj&&this.aa().focus();return b};Nk.prototype.Ph=function(a){this.wj&&this.aa().focus();return Nk.r.Ph.call(this,a)};Nk.prototype.Fj=function(a){return(this.kr||a.U())&&a.ma()&&a.Va(2)};var Ok=function(a){Nk.call(this,a);this.uy(i);this.Pa(n,i);this.Qc=new dg};v(Ok,Nk);Ok.prototype.wz=n;Ok.prototype.Xo=0;Ok.prototype.an=j;Ok.prototype.fa=function(a){Ok.r.fa.call(this,a);(a=a.getAttribute("for")||a.htmlFor)&&this.attach(this.la().k(a),1)};Ok.prototype.P=function(){Ok.r.P.call(this);bg(this.Qc,this.wm,this);var a=this.H();a.listen(this,"action",this.ax);a.listen(this.la().Zc(),"mousedown",this.np,i);Se&&a.listen(this.la().Zc(),"contextmenu",this.np,i)};
Ok.prototype.attach=function(a,b,c,d,e){if(!this.Oo(a)){a=this.Xr(a,b,c,d,e);this.Hb()&&this.wm(a)}};Ok.prototype.Xr=function(a,b,c,d,e){if(!a)return j;b={A:a,Eq:b,hp:c,Ps:d?"contextmenu":"mousedown",mA:e};this.Qc.set(oa(a),b);return b};Ok.prototype.Oo=function(a){return a?this.Qc.wb(oa(a)):n};Ok.prototype.wm=function(a){this.H().listen(a.A,a.Ps,this.rp)};
Ok.prototype.detach=function(a){if(!this.Oo(a))g(Error("Menu not attached to provided element, unable to detach."));a=oa(a);this.Hb()&&this.Fs(this.Qc.get(a));this.Qc.remove(a)};Ok.prototype.Fs=function(a){this.H().unlisten(a.A,a.Ps,this.rp)};
Ok.prototype.vq=function(a,b,c){var d=this.ma();if((d||this.Qz())&&this.wz)this.hide();else if(this.dispatchEvent("beforeshow")){b=a.Eq!==undefined?new Ik(a.A,a.Eq):new Kk(b,c);c=a.hp!==undefined?a.hp:4;if(!d)this.k().style.visibility="hidden";H(this.k(),i);b.reposition(this.k(),c,a.mA);if(!d)this.k().style.visibility="visible";this.an=a.A;this.qg(-1);this.Pa(i)}};Ok.prototype.qq=function(a,b,c){this.vq({hp:c,A:a,Eq:b},0,0)};
Ok.prototype.hide=function(){this.Pa(n);if(!this.ma()){this.Xo=ra();this.an=j}};Ok.prototype.Qz=function(){return ra()-this.Xo<150};Ok.prototype.ax=function(){this.hide()};Ok.prototype.rp=function(a){for(var b=this.Qc.bd(),c=0;c<b.length;c++){var d=this.Qc.get(b[c]);if(d.A==a.currentTarget){this.vq(d,a.clientX,a.clientY);a.preventDefault();a.stopPropagation();return}}};Ok.prototype.np=function(a){this.ma()&&!this.pe(a.target)&&this.hide()};Ok.prototype.Ec=function(a){Ok.r.Ec.call(this,a);this.hide()};
Ok.prototype.j=function(){Ok.r.j.call(this);if(this.Qc){this.Qc.clear();delete this.Qc}};var Pk=function(a,b,c,d){N.call(this,c);this.Rv=a;this.Fo=b;this.O=[];this.Y=-1;this.o=new li(this);this.Ns=!!d;this.Wb=-1;this.db=this.fs()};v(Pk,N);var Qk={MOVE_TO_TOP:"movetotop",MOVE_TO_LEFT:"movetoleft",MOVE_TO_RIGHT:"movetoright",MOVE_UP:"moveup",MOVE_DOWN:"movedown",MINIMIZE:"minimize",MAXIMIZE:"maximize"},Rk={};Rk.movetotop="move to top";Rk.movetoleft="move left";Rk.movetoright="move right";Rk.moveup="move up";Rk.movedown="move down";Rk.minimize="minimize";Rk.maximize="show";
Pk.prototype.fa=function(a){Pk.r.fa.call(this,a);this.db.render(a.parentNode)};Pk.prototype.P=function(){this.db.P();this.o.listen(this.db,"action",this.iv);var a=Cg("div","mid-reorder",this.k()),b=Cg("div","rgt-reorder",this.k());this.ip=a.length>0?a[0]:j;this.Qp=b.length>0?b[0]:j;this.ip&&this.Hp(this.ip);this.Wb=this.O.length;this.Qp&&this.Hp(this.Qp)};
Pk.prototype.Hp=function(a){if(a)for(a=Yg(a);a;a=Xg(a.nextSibling,i)){var b=dh(a,function(d){return sg(d,"gf-reorder-btn")});if(b){var c=sg(b,"menu-on-top");this.O.push(a);this.o.listen(b,"mousedown",this.nv(a,c))}}};Pk.prototype.ja=function(){this.db.ja();this.o.lg()};Pk.prototype.Qo=function(a){return 0==a.indexOf("chart-section")};Pk.prototype.ai=function(){return this.Y>=this.Wb};Pk.prototype.lj=function(a){if(!a)return this.ai()?this.Wb:0;return this.ai()?this.O.length-1:this.Wb-1};
Pk.prototype.nv=function(a,b){return function(c){var d=0,e=this.Qo(a.id);this.Y=Wd(this.O,a);if(this.Rv){if(this.Y==-1)return;var f=this.ai();d=this.Y==this.lj();var h=this.Y==this.lj(i);this.db.$c(0).S(!d);this.db.$c(1).S(!d);this.db.$c(2).S(!h);d=4;if(this.Ns){this.db.$c(3).S(f&&!e);this.db.$c(4).S(!f&&!e);d=6}}if(this.Fo){if(e)this.db.$c(d).Pa(n);else{this.db.$c(d).Pa(i);this.db.$c(d).Mc(sg(a,"gf-reorder-hide")?"show":"minimize")}d++}b?this.db.qq(c.currentTarget,Lk.TOP_RIGHT,Lk.BOTTOM_RIGHT):this.db.qq(c.currentTarget,
Lk.BOTTOM_RIGHT,Lk.TOP_RIGHT);c.preventDefault();c.stopPropagation()}};
Pk.prototype.iv=function(a){if(this.Y!=-1){var b=Qk,c=this.O[this.Y];this.ai();var d=this.Qo(c.id);if(a.target.ca()==b.MOVE_TO_TOP){if(d)for(a=this.Y-1;a>=0;a--)Tg(this.O[a],c);else Sg(c,this.O[this.lj()]);ge(this.O,c);ee(this.O,c,this.lj());this.dispatchEvent({type:b.MOVE_TO_TOP,id:c.id,oldIndex:this.Y})}else if(a.target.ca()==b.MOVE_UP){d?Tg(this.O[this.Y-1],c):Sg(c,this.O[this.Y-1]);this.O[this.Y]=this.O[this.Y-1];this.O[this.Y-1]=c;this.dispatchEvent({type:b.MOVE_UP,id:c.id,oldIndex:this.Y,newIndex:this.Y-
1})}else if(a.target.ca()==b.MOVE_DOWN){d?Sg(this.O[this.Y+1],c):Tg(c,this.O[this.Y+1]);this.O[this.Y]=this.O[this.Y+1];this.O[this.Y+1]=c;this.dispatchEvent({type:b.MOVE_DOWN,id:c.id,oldIndex:this.Y,newIndex:this.Y+1})}else if(a.target.ca()==b.MOVE_TO_LEFT){this.Wb>0?Tg(c,this.O[this.Wb-1]):G(this.ip,c);ge(this.O,c);ee(this.O,c,this.Wb);this.dispatchEvent({type:b.MOVE_TO_LEFT,id:c.id,oldIndex:this.Y,newIndex:this.Wb});this.Wb++}else if(a.target.ca()==b.MOVE_TO_RIGHT){this.O.length>this.Wb?Tg(c,this.O[this.O.length-
1]):G(this.Qp,c);ge(this.O,c);this.O.push(c);this.dispatchEvent({type:b.MOVE_TO_RIGHT,id:c.id,oldIndex:this.Y,newIndex:this.O.length-1});this.Wb--}else a.target.ca()==b.MINIMIZE&&this.yz(c)}};Pk.prototype.yz=function(a){if(a.nodeType==1){var b=ug(a,"gf-reorder-hide");this.dispatchEvent({type:b?"minimize":"maximize",id:a.id})}};Pk.prototype.re=function(a,b){var c=new zk(Rk[b]);c.jf(b);a.gm(c)};
Pk.prototype.fs=function(){var a=new Ok;if(this.Rv){this.re(a,"movetotop");this.re(a,"moveup");this.re(a,"movedown");if(this.Ns){this.re(a,"movetoleft");this.re(a,"movetoright")}this.Fo&&a.gm(new Ak)}this.Fo&&this.re(a,"minimize");return a};var Sk=function(a,b,c,d){this.$p=d||"-";this.O=a;this.$z=b;this.oa=c;this.ha=this.kw(c)};Sk.prototype.kw=function(a){var b=n,c=this.oa.get("sorder");if(!c||c.length==0)c=this.$z;for(var d=[],e=0;e<c.length;++e){var f=c.charAt(e).toUpperCase();if(Wd(d,f)==-1&&Wd(d,f.toLowerCase())==-1&&(f==this.$p||se(this.O,f)))d[d.length]=c.charAt(e);else b=i}b&&a.set("sorder",d.join(""));return d};
Sk.prototype.vo=function(a){var b=Qk,c=this.O[a.id],d=Wd(this.ha,c);if(d==-1)d=Wd(this.ha,c.toLowerCase());if(d==-1){ce(this.ha,c);d=this.ha.length-1}var e=Wd(this.ha,this.$p);if(e==-1){ce(this.ha,this.$p);e=this.ha.length-1}var f=d<e;c=this.ha[d];if(a.type==b.MOVE_TO_TOP){fe(this.ha,d);ee(this.ha,c,f?0:e+1);this.Td(c,"t",0)}else if(a.type==b.MOVE_UP){fe(this.ha,d);ee(this.ha,c,d-1);this.Td(c,"u",d-1)}else if(a.type==b.MOVE_DOWN){fe(this.ha,d);ee(this.ha,c,d+1);this.Td(c,"d",d+1)}else if(a.type==
b.MOVE_TO_LEFT){fe(this.ha,d);ee(this.ha,c,e);this.Td(c,"l",d)}else if(a.type==b.MOVE_TO_RIGHT){fe(this.ha,d);this.ha.push(c);this.Td(c,"l",d)}else if(a.type==b.MINIMIZE){this.ha[d]=c.toLowerCase();this.Td(c,"m",d)}else if(a.type==b.MAXIMIZE){this.ha[d]=c.toUpperCase();this.Td(c,"s",d)}this.oa.set("sorder",this.ha.join(""))};Sk.prototype.Td=function(a,b,c){_GF_click("","re_"+this.oa.bo()+"_"+a.toLowerCase()+"_"+b,c,"")};var Tk=function(a,b,c){this.Qb=yg(a)||j;this.ve=b?yg(b):j;this.Bd=c==i;if(this.Qb){this.Qb.tabIndex=0;D(this.Qb,"click",this.hx,n,this);D(this.Qb,"keydown",this.ix,n,this)}this.hf(this.Bd)};v(Tk,E);Tk.prototype.j=function(){this.Qb&&Nf(this.Qb);Tk.r.j.call(this)};Tk.prototype.expand=function(){this.hf(i)};Tk.prototype.collapse=function(){this.hf(n)};Tk.prototype.toggle=function(){this.hf(!this.Bd)};
Tk.prototype.hf=function(a){if(this.ve)this.ve.style.display=a?"":"none";this.am(a);this.Bd=a;this.dispatchEvent(new Uk("toggle",this,this.Bd))};Tk.prototype.am=function(a){if(this.Qb)if(a){qg(this.Qb,"goog-zippy-collapsed");og(this.Qb,"goog-zippy-expanded")}else{qg(this.Qb,"goog-zippy-expanded");og(this.Qb,"goog-zippy-collapsed")}};Tk.prototype.ix=function(a){if(a.keyCode==13||a.keyCode==32){this.toggle();a.preventDefault();a.stopPropagation()}};Tk.prototype.hx=function(){this.toggle()};
var Uk=function(a,b,c){ff.call(this,a,b);this.expanded=c};v(Uk,ff);var Vk=function(a,b,c){var d=0,e=0,f=-1,h=-1;for(b=b;b<c&&b<a.length;++b){var k=Ii(a[b]),l=ai(k[0]).width;if(l>d){d=l;f=b}l=ai(k[1]).width;if(l>e){e=l;h=b}}return{label:d,value:e,same:h==f}},Wk=function(a,b){var c=Vk(b,0,4),d=Vk(b,4,11);a=ai(a).width-23;var e=ai(F("price-panel")).width;a=a-e-6;a=a-c.label-c.value;for(c=0;a>0&&d.label>0&&d.value>0;){c++;a-=d.label+d.value+16}d=b.length;a=5;switch(c){case 0:case 1:a=d=6;break;case 2:d=10;break;default:a=4}return{rows:a,snapCount:d,snapRows:b}},Xk=function(a,
b){if(!a)return j;return function(){if(document.body.offsetWidth>b){og(a,"wide");og(F("price-change"),"goog-inline-block")}else{qg(a,"wide");qg(F("price-change"),"goog-inline-block")}var c=F("snap-data");c=Ii(c);for(var d={"margin-left":0,"margin-top":0},e=0;e<c.length;++e){Jh(c[e],d);var f=Ii(c[e]);f[0].style.width="";f[1].style.width=""}H(F("market-data-div"),i);e=Wk(a,c);d=e.rows;var h=e.snapCount,k=0,l=0,m=[],o=0,q={},x={};for(e=0;e<h&&e<c.length;++e){f={};var s=c[e];H(s,i);if(k==d){f["margin-top"]=
d*-ai(s).height+"px";l++;k=0}if(k==0){x=Vk(c,e,e+d);q=x.same?0:0;o+=x.label+x.value+12+q;m.push(o);q={width:x.label+q+"px"};x={width:x.value+"px"}}if(l>0){f["margin-left"]=m[l-1]+"px";Jh(s,f)}f=Ii(s);Jh(f[0],q);Jh(f[1],x);k++}for(;e<c.length;)H(c[e++],n)}};
function Yk(a){var b=google.finance.data.company.related,c=F("related"),d=F("related-table");Zk();if(d&&b&&b.rows&&b.rows.length>0&&b.cols&&b.cols.length>0){if(wi())b.rows=ui.Al(b.rows,i);var e=F("related-select"),f=e.selectedIndex,h=F("related-edit-col"),k=F("related-save"),l=F("related-cancel"),m=new Fj(b,new _GF_Prefs(a?a:"ch_compare"));d.appendChild(m.k());if(c)c.style.display="block";m.$y.init();D(e,"change",function(o){if(o.currentTarget.selectedIndex!=f){k.disabled=l.disabled=i;m.mc(o.currentTarget.options[f=
o.currentTarget.selectedIndex].value)}});D(h,"click",function(){h.style.display="none";k.disabled=l.disabled=i;k.style.display=l.style.display="";m.bz(e.options[f].value)});D(m,"editingready",function(){k.disabled=l.disabled=n});D(k,"click",function(){h.style.display="";k.style.display=l.style.display="none";for(var o=["0"],q=m.k().tHead.rows[1].cells,x=1;x<q.length;++x){var s=q[x].firstChild.firstChild;s.checked&&o.push(Number(s.value))}m.jy(o)});D(l,"click",function(){h.style.display="";k.style.display=
l.style.display="none";m.vr()})}else if(c)c.style.display="none"}u("google.finance.onRelatedCompanyLoad",Yk);
(function(){var a={"blogs-section":"B","discussions-section":"D","summary-section":"S","mgmt-section":"M"};function b(k,l,m){if(F("reorder")){var o=Qk;m=new _GF_Prefs(m);m.get("sorder");k=new Sk(k,l,m);l=new Pk(i,i);D(l,[o.MOVE_TO_TOP,o.MOVE_UP,o.MOVE_DOWN,o.MAXIMIZE,o.MINIMIZE],t(k.vo,k));l.decorate(F("reorder"))}}function c(){var k=F("market-data-div");k&&si().Ai(Xk(k,1200))}function d(){B&&google.finance.showLess&&setTimeout(google.finance.showLess,1);google.finance.maybeHideChartComponents();
b(a,"BDSM","ch");var k=F("mgmt-table");if(k){k=k.tBodies[0].rows;for(var l=1;l<k.length;l+=2)new Tk(k[l-1],k[l])}Yk();$k();al();bl(i);yi();cl("c")}function e(){B&&google.finance.showLess&&setTimeout(google.finance.showLess,1);google.finance.maybeHideChartComponents();Yk("cc_compare");$k();al()}function f(){B&&google.finance.showLess&&setTimeout(google.finance.showLess,1);google.finance.maybeHideChartComponents();$k();al();bl(i);yi();cl("c")}function h(){var k=F("ra-src"),l=F("ra-target");if(k&&l){Vg(k,
l);k.className=""}}u("google.finance.onCompanyLoad",d);u("google.finance.onComparisonLoad",e);u("google.finance.onCurrencyLoad",f);u("google.finance.renderRecentActivities",h);u("google.finance.renderMarketData",c)})();var dl=n;
function el(a){if(!dl)if(a&&!a.ctrlKey&&!a.altKey&&!a.metaKey){var b=a.keyCode;if(b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122){dl=i;if(a.target.type!="text")if(Ue){b=a.charCode?a.charCode:a.keyCode;document.f.q.value=String.fromCharCode(b);document.f.q.focus();a.preventDefault()}else{document.f.q.focus();document.f.q.select()}}}}function _initAutoFocus(){D(document,"keydown",el)}var _gel=F;function Zk(){try{B&&df("6")&&document.execCommand("BackgroundImageCache",n,i)}catch(a){}};function fl(a){window.jstiming&&window.jstiming.load.tick(a)}window._tck=fl;function gl(a,b){var c=0,d=0;for(d=0;d<b.length;++d){var e=window.jstiming.load.t[b[d]];if(!e)return;e=e[0];if(e>c)c=e}if(c>0)window.jstiming.load.t[a]=[c,j]}
function cl(a){var b=window.jstiming;if(b){b.load.name=a;setTimeout(function(){if(a=="h")gl("prt",["aft","ic"]);else a=="c"&&gl("prt",["aft","chd","jl"]);_expid?b.report(b.load,{e:_expid}):b.report(b.load);try{if(window.external&&window.external.resT)window.external.resT();else window.gtbExternal&&window.gtbExternal.resT&&window.gtbExternal.resT()}catch(c){}},2000)}}u("_rpt",cl);var hl=function(a,b,c){var d=Lg("div",{style:"overflow:hidden"});b=yg(b);b.parentNode.replaceChild(d,b);d.appendChild(b);this.gk=d;this.uc=j;Tk.call(this,a,b,c);a=this.Bd;this.gk.style.display=a?"":"none";this.am(a)};v(hl,Tk);hl.prototype.lr=500;hl.prototype.mm=ph;
hl.prototype.hf=function(a){if(!(this.Bd==a&&!this.uc)){if(this.gk.style.display=="none")this.gk.style.display="";var b=this.ve.offsetHeight,c=0;if(this.uc){a=this.Bd;Nf(this.uc);this.uc.stop(n);c=b-Math.abs(parseInt(this.ve.style.marginTop,10))}else c=a?0:b;this.am(a);this.uc=new rh([0,c],[0,a?b:0],this.lr,this.mm);b=["begin","animate","end"];D(this.uc,b,this.bx,n,this);D(this.uc,"end",t(this.cx,this,a));this.uc.play(n)}};
hl.prototype.bx=function(a){var b=this.ve.offsetHeight;this.ve.style.marginTop=a.y-b+"px"};hl.prototype.cx=function(a){if(a)this.ve.style.marginTop="0";Nf(this.uc);this.Bd=a;this.uc=j;if(!a)this.gk.style.display="none";this.dispatchEvent(new Uk("toggle",this,a))};var il=function(){};v(il,O);ea(il);il.prototype.J=function(){return"goog-tab"};il.prototype.va=function(){return"tab"};il.prototype.i=function(a){var b=il.r.i.call(this,a);(a=a.hb())&&this.pb(b,a);return b};il.prototype.decorate=function(a,b){b=il.r.decorate.call(this,a,b);var c=this.hb(b);c&&a.sg(c);if(a.al())if((c=a.Sf())&&ka(c.lf)){a.Oa(8,n);c.lf(a)}return b};il.prototype.hb=function(a){return a.title||""};il.prototype.pb=function(a,b){if(a)a.title=b||""};var jl=function(a,b,c){P.call(this,a,b||il.getInstance(),c);this.pd(8,i);this.Ml(9,i)};v(jl,P);jl.prototype.hb=function(){return this.kj};jl.prototype.pb=function(a){this.Id().pb(this.k(),a);this.sg(a)};jl.prototype.sg=function(a){this.kj=a};sk("goog-tab",function(){return new jl(j)});var kl=function(){};v(kl,xk);ea(kl);kl.prototype.J=function(){return"goog-tab-bar"};kl.prototype.va=function(){return"tablist"};kl.prototype.Wi=function(a,b,c){this.Iw||this.es();var d=this.Iw[b];d?a.hq(d):kl.r.Wi.call(this,a,b,c)};kl.prototype.Yb=function(a){var b=kl.r.Yb.call(this,a);this.Nj||this.Qm();b.push(this.Nj[a.$t()]);return b};kl.prototype.Qm=function(){var a=this.J();this.Nj=Ce("top",a+"-top","bottom",a+"-bottom","start",a+"-start","end",a+"-end")};
kl.prototype.es=function(){this.Nj||this.Qm();this.Iw=ze(this.Nj)};var ll=function(a,b,c){this.hq(a||"top");Q.call(this,this.fo(),b||kl.getInstance(),c);a=this.H();a.listen(this,"select",this.Bv);a.listen(this,"unselect",this.Ev);a.listen(this,"disable",this.zv);a.listen(this,"hide",this.Av)};v(ll,Q);ll.prototype.qr=i;ll.prototype.nd=j;ll.prototype.j=function(){ll.r.j.call(this);this.nd=j};ll.prototype.removeChild=function(a,b){this.ek(a);return ll.r.removeChild.call(this,a,b)};ll.prototype.$t=function(){return this.kA};
ll.prototype.hq=function(a){this.Pl(a=="start"||a=="end"?"vertical":"horizontal");this.kA=a};ll.prototype.Li=function(a){ll.r.Li.call(this,a);this.qr&&this.Vi(a)};ll.prototype.Jd=function(){return this.nd};ll.prototype.lf=function(a){if(a)a.Ui(i);else this.Jd()&&this.Jd().Ui(n)};ll.prototype.dd=function(){return this.Oe(this.Jd())};ll.prototype.Vi=function(a){this.lf(this.Xb(a))};
ll.prototype.ek=function(a){if(a&&a==this.Jd()){for(var b=this.Oe(a),c=b-1;a=this.Xb(c);c--)if(this.Uo(a)){this.lf(a);return}for(b=b+1;a=this.Xb(b);b++)if(this.Uo(a)){this.lf(a);return}this.lf(j)}};ll.prototype.Uo=function(a){return a.ma()&&a.U()};ll.prototype.Bv=function(a){this.nd&&this.nd!=a.target&&this.nd.Ui(n);this.nd=a.target};ll.prototype.Ev=function(a){if(a.target==this.nd)this.nd=j};ll.prototype.zv=function(a){this.ek(a.target)};ll.prototype.Av=function(a){this.ek(a.target)};
ll.prototype.Ld=function(){this.Fe()||this.ob(this.Jd()||this.Xb(0))};sk("goog-tab-bar",function(){return new ll});function ml(a){return function(){var b=F(a),c=b.firstChild;sg(b,"goog-zippy-expanded")?rg(c,"SP_plus_sign","SP_minus_sign"):rg(c,"SP_minus_sign","SP_plus_sign")}}function nl(){var a=new hl("zippy","predict-info");D(a,"toggle",ml("zippy"));qg(F("page-content"),"hide")}u("google.finance.domesticTrendsLandingInit",nl);
function ol(a){var b=google.finance.data.ticker,c=google.finance.data.tickerDesc,d=n;if(a.currentTarget.dd()){b+="_YOY";c+=" year over year";d=i}_finance_chart.hasFlash?_finance_chart.call("changePrimaryTicker",b,c,d):_changeImage("40Y",604800,7300,b,n)}function pl(){var a=new ll;a.decorate(F("index-tabs"));D(a,"select",ol)}u("google.finance.domesticTrendsTabsInit",pl);var ql=function(a,b,c,d,e){this.rb=a;this.ui=b;this.xA=c;this.No=d;this.pm=e;this.o=new li(this);this.F=j};v(ql,ef);ql.prototype.init=function(){this.F=new ll;this.F.decorate(this.xA);this.o.listen(this.F,"select",this.yv);this.o.listen(this.No,"click",this.xv);this.o.listen(this.pm,"click",this.vv)};ql.prototype.j=function(){ql.r.j.call(this);this.o.dispose();this.F.dispose()};var rl=["inc","bal","cas"];
ql.prototype.Sl=function(a,b){H(F(this.rb+this.ui+"div"),n);H(F(a+b+"div"),i);var c=F(this.rb+"-reuters");c&&H(c,n);(c=F(a+"-reuters"))&&H(c,i);this.rb=a;this.ui=b};ql.prototype.yv=function(a){this.Sl(rl[a.currentTarget.dd()],this.ui);_GF_click("","fs_type",this.rb,"")};ql.prototype.vv=function(){this.No.className="nac";this.pm.className="ac";this.Sl(this.rb,"annual");_GF_click("","fs_period",this.ui,"")};
ql.prototype.xv=function(){this.No.className="ac";this.pm.className="nac";this.Sl(this.rb,"interim");_GF_click("","fs_period",this.ui,"")};var sl=function(){var a=new ql(_fs_type,_fs_period,F("fs-type-tabs"),F("interim"),F("annual"));a.init()};F("fs-type-tabs")&&D(window,"load",sl);function _getDateLinks(a,b,c){var d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=new Date,f=e.getMonth();e=e.getFullYear();var h=0,k=[];k.push('<div style="padding-bottom:5px;text-align:left">');k.push("Jump to news for");k.push("</div><table>");for(var l=e;l>=e-1&&h<12;l--){k.push('<tr><td valign="top">');k.push(l);k.push('</td><td valign="top">');for(f=f;f>=0&&h<12;f--){var m="";if(f+2<10)m="0";var o=f+2,q=l;if(o>12){o=1;q=l+1}if(c[h]>0){k.push('<a href="');k.push(b);
k.push(q);k.push("-");k.push(m);k.push(o);k.push("-");k.push("01");Ei()&&k.push(Ei());k.push('">');k.push(d[f]);k.push("</a>")}else k.push(d[f]);k.push('<span style="color:#888888;"> (');k.push(c[h]);k.push(")</span><br>");h++}k.push("</td></tr>");f=11}k.push("</table>");_gel(a).innerHTML=k.join("")};function _GF_Prefs(a){this.Jk=a}_GF_Prefs.prototype.bo=function(){return this.Jk};_GF_Prefs.prototype.get=function(a){return _prefs[this.Jk][a]};_GF_Prefs.prototype.set=function(a,b){_prefs[this.Jk][a]=b;a=["/finance/prefs?action=set","&prefsgroup=",this.Jk,"&prefskey=",a,"&prefsval=",b,"&hash=",_prefs.hash];b=Sd();b.onreadystatechange=function(){};b.open("GET",a.join(""),i);b.send(j)};var tl=function(){rh.call(this,[0],[0],0);this.Ib=[]};v(tl,rh);tl.prototype.si=function(){this.lk(function(a){a.play(a.progress==0)});tl.r.si.call(this)};tl.prototype.ti=function(){this.lk(function(a){a.stop()});tl.r.ti.call(this)};tl.prototype.qi=function(){this.lk(function(a){a.pause()});tl.r.qi.call(this)};tl.prototype.pi=function(){this.Es();tl.r.pi.call(this)};tl.prototype.Es=function(){Xd(this.Ib,function(a){a.destroy()})};var ul=function(){tl.call(this)};v(ul,tl);
ul.prototype.Bx=function(){for(var a=0;a<this.Ib.length;a++)this.Ib[a].play()};ul.prototype.lc=function(){this.Bx();ul.r.lc.call(this)};ul.prototype.lk=function(a){Xd(this.Ib,a)};ul.prototype.add=function(a){this.Ib.push(a);this.duration=Math.max(this.duration,a.duration)};ul.prototype.remove=function(a){if(ge(this.Ib,a))if(a.duration==this.duration){this.duration=0;Xd(this.Ib,function(b){this.duration=Math.max(b.duration,this.duration)},this)}};var vl=function(){this.Xc=[]};vl.prototype.ec=0;vl.prototype.de=0;vl.prototype.enqueue=function(a){this.Xc[this.de++]=a};vl.prototype.dequeue=function(){if(this.ec!=this.de){var a=this.Xc[this.ec];delete this.Xc[this.ec];this.ec++;return a}};vl.prototype.peek=function(){if(this.ec!=this.de)return this.Xc[this.ec]};vl.prototype.Ed=function(){return this.de-this.ec};vl.prototype.clear=function(){this.de=this.ec=this.Xc.length=0};vl.prototype.contains=function(a){return be(this.Xc,a)};
vl.prototype.remove=function(a){a=Wd(this.Xc,a);if(a<0)return n;if(a==this.ec)this.dequeue();else{fe(this.Xc,a);this.de--}return i};vl.prototype.Gb=function(){return this.Xc.slice(this.ec,this.de)};var wl=function(a,b,c,d){this.L=a;this.Ow=b;this.Rw=c;this.Hs=d;this.Ib=new vl;this.xp=n;this.mz=r("google.finance.data.common.linktargetInternal")=="target=_blank"?"_blank":"";this.bp=F("loading");this.Zk=n;this.Ww=0;this.ys=new lh(15000);(a=F(a))&&D(a,"mousemove",t(this.Ds,this),n);D(this.ys,"tick",t(this.rx,this),n);this.ys.start()};wl.prototype.lq=function(a){this.xp=a};wl.prototype.rx=function(){!this.Zk&&!this.xp&&ra()>=this.Ww&&this.vl()};wl.prototype.Ds=function(){this.Ww=ra()+5000};
wl.prototype.kx=function(a){if(this.bp){Ug(this.bp);this.bp=j}a.c||(a.tm=ra()/1000);var b=a.c&&this.Hs;if(!a.c||b)if(!(!a.c&&this.xp)){this.Ib.enqueue(a);!this.Zk&&b&&this.vl()}};wl.prototype.lp=function(){this.Zk=n;this.Ib.dequeue();var a=this.Ib.peek();a&&a.c&&this.Hs&&this.vl()};wl.prototype.Rx=function(a,b,c){if(a){a=ai(c).height;a=new ii(c,a,0,1500,qh);D(a,"finish",function(){b.removeChild(c)});return a}else b.removeChild(c);return j};
wl.prototype.Tx=function(a,b){var c=Cg("","snippet",b);if(c.length>0){c=c[0];if(a){a=ai(c).height;a=new ii(c,a,0,1500,qh);D(a,["animate","finish","begin"],function(d){b.style.marginBottom=8*(1-d.progress)+"px"});return a}else{H(c,n);b.style.marginBottom="0px"}}return j};
var xl=function(a,b){a=Math.floor((a-b)/1000);if(a<45)return"moments ago";else if(a<90)return"a minute ago";else if(a<3330)return Math.round(a/60)+" minutes ago";else if(a<36000){b=Math.round(a/60/60);return b==1?"an hour ago":b+" hours ago"}else{a=new Date;a.setTime(b);b=a.getHours()%12;a=a.getMinutes();return(b?b:"12")+":"+(a<10?"0"+a:a)+(b<12?"am":"pm")}},yl=function(){var a=ra(),b=Cg("span","date");if(b)for(var c=0;c<b.length;++c){var d=b[c],e=d.tm;if(e)d.innerHTML=" - "+xl(a,e*1000)}};
wl.prototype.vl=function(){var a=ra(),b=this.Ib.peek(),c=F(this.L);if(c&&b){var d=!b.c&&c.style.display!="none"&&c.parentNode.style.display!="none",e=Ci(unescape(b.u),"res","n-hp-",""),f=yd(b.t,60,i),h=Ng;b=h("div",{"class":"cluster"},h("div",{style:"overflow:hidden"},h("div",{"class":"title"},h("a",{href:b.u,onmousedown:e,title:f,ref:"nofollow"},Og(xd(f)))),h("div",{"class":"byline"},h("span",{"class":"src"},Og(b.src)),h("span",{"class":"date",tm:b.tm},Og(" - "+xl(a,b.tm*1000)))),h("div",{"class":"snippet"},
Og(xd(b.sp)))));c.insertBefore(b,c.firstChild);e=ai(b);f=Cg("","cluster",c);a=new ul;if(f.length>this.Rw)(h=this.Tx(d,f[this.Rw]))&&a.add(h);if(f.length>this.Ow){if(!c.style.height&&d)c.style.height=ai(c).height-e.height+"px";(c=this.Rx(d,c,f[this.Ow]))&&a.add(c)}if(d){d=new hi(b,[e.width,0],[e.width,e.height],1500,qh);D(a,"finish",this.lp,n,this);a.add(d);a.play();this.Zk=i}else this.lp()}};
var zl=function(a,b,c,d,e){var f=j;if(F(a)){f=new wl(a,b,c,d);if(a=r("google.Quote")){a.Fg(t(f.kx,f));a.Pi(e)}p.setInterval(yl,60000)}return f};u("google.finance.streamNews",zl);var Al=function(a,b,c,d){this.pA=a;this.Yl=b;this.oa=c;this.Ap=d;a.lq(this.Mp())},Bl=function(a,b,c,d){new Al(a,b,c,d)};u("google.finance.newsStreamToggle",Bl);Al.prototype.xz=function(){this.oa.set(this.Ap,this.oa.get(this.Ap)=="1"?"0":"1");this.pA.lq(this.Mp())};
Al.prototype.Mp=function(){var a=this.oa.get(this.Ap)=="1";if(this.Yl){var b=Ng("span",{},Og((a?"Updating stopped.":"Market news will appear below as it becomes available.")+" ")),c=Ng("a",{"class":"jslink",onmousedown:t(this.xz,this)},Og(a?"Start updating":"Stop updating"));this.Yl.innerHTML="";this.Yl.appendChild(b);this.Yl.appendChild(c)}return a};var Cl=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Dl=function(a){return a.match(Cl)},El=function(a,b){a=Dl(a);b=Dl(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]},Fl=function(a,b,c,d){b=b;for(var e=c.length;(b=a.indexOf(c,b))>=0&&b<d;){var f=a.charCodeAt(b-1);if(f==38||f==63){f=a.charCodeAt(b+e);if(!f||f==61||f==38||f==35)return b}b+=e+1}return-1},Gl=/#|$/,Hl=function(a,b){var c=a.search(Gl),d=Fl(a,0,b,c);if(d<0)return j;else{var e=a.indexOf("&",
d);if(e<0||e>c)e=c;d+=b.length+1;return nd(a.substr(d,e-d))}};var R=function(a,b){var c;if(a instanceof R){this.Zd(b==j?a.St():b);this.Ti(a.mo());this.Xi(a.ro());this.Ii(a.Rn());this.Ri(a.Fk());this.rg(a.Tf());this.Ql(a.tu().clone());this.Ki(a.ao())}else if(a&&(c=Dl(String(a)))){this.Zd(!!b);this.Ti(c[1]||"",i);this.Xi(c[2]||"",i);this.Ii(c[3]||"",i);this.Ri(c[4]);this.rg(c[5]||"",i);this.Si(c[6]||"",i);this.Ki(c[7]||"",i)}else{this.Zd(!!b);this.La=new Il(j,this,this.fc)}};R.prototype.Lc="";R.prototype.of="";R.prototype.ue="";R.prototype.$e=j;
R.prototype.Ca="";R.prototype.ze="";R.prototype.zw=n;R.prototype.fc=n;R.prototype.toString=function(){if(this.tb)return this.tb;var a=[];this.Lc&&a.push(Jl(this.Lc,Kl),":");if(this.ue){a.push("//");this.of&&a.push(Jl(this.of,Kl),"@");a.push(Ll(this.ue));this.$e!=j&&a.push(":",String(this.Fk()))}this.Ca&&a.push(Jl(this.Ca,Ml));var b=String(this.La);b&&a.push("?",b);this.ze&&a.push("#",Jl(this.ze,Nl));return this.tb=a.join("")};
R.prototype.resolve=function(a){var b=this.clone(),c=a.Sv();if(c)b.Ti(a.mo());else c=a.Uv();if(c)b.Xi(a.ro());else c=a.Do();if(c)b.Ii(a.Rn());else c=a.Pv();var d=a.Tf();if(c)b.Ri(a.Fk());else if(c=a.Eo()){if(d.charAt(0)!="/")if(this.Do()&&!this.Eo())d="/"+d;else{var e=b.Tf().lastIndexOf("/");if(e!=-1)d=b.Tf().substr(0,e+1)+d}d=Ol(d)}if(c)b.rg(d);else c=a.Qv();if(c)b.Si(a.xt());else c=a.Ov();c&&b.Ki(a.ao());return b};
R.prototype.clone=function(){return Pl(this.Lc,this.of,this.ue,this.$e,this.Ca,this.La.clone(),this.ze,this.fc)};R.prototype.mo=function(){return this.Lc};R.prototype.Ti=function(a,b){this.Ab();delete this.tb;if(this.Lc=b?Ql(a):a)this.Lc=this.Lc.replace(/:$/,"");return this};R.prototype.Sv=function(){return!!this.Lc};R.prototype.ro=function(){return this.of};R.prototype.Xi=function(a,b){this.Ab();delete this.tb;this.of=b?Ql(a):a;return this};R.prototype.Uv=function(){return!!this.of};
R.prototype.Rn=function(){return this.ue};R.prototype.Ii=function(a,b){this.Ab();delete this.tb;this.ue=b?Ql(a):a;return this};R.prototype.Do=function(){return!!this.ue};R.prototype.Fk=function(){return this.$e};R.prototype.Ri=function(a){this.Ab();delete this.tb;if(a){a=Number(a);if(isNaN(a)||a<0)g(Error("Bad port number "+a));this.$e=a}else this.$e=j;return this};R.prototype.Pv=function(){return this.$e!=j};R.prototype.Tf=function(){return this.Ca};
R.prototype.rg=function(a,b){this.Ab();delete this.tb;this.Ca=b?Ql(a):a;return this};R.prototype.Eo=function(){return!!this.Ca};R.prototype.Qv=function(){return this.La.toString()!==""};R.prototype.Ql=function(a,b){this.Ab();delete this.tb;if(a instanceof Il){this.La=a;this.La.mj=this;this.La.Zd(this.fc)}else{b||(a=Jl(a,Rl));this.La=new Il(a,this,this.fc)}return this};R.prototype.Si=function(a,b){return this.Ql(a,b)};R.prototype.xt=function(){return this.La.sz()};R.prototype.tu=function(){return this.La};
R.prototype.K=function(a,b){this.Ab();delete this.tb;this.La.set(a,b);return this};R.prototype.$d=function(a,b){this.Ab();delete this.tb;ga(b)||(b=[String(b)]);this.La.Ry(a,b);return this};R.prototype.mu=function(a){return this.La.Gb(a)};R.prototype.Rf=function(a){return this.La.get(a)};R.prototype.ao=function(){return this.ze};R.prototype.Ki=function(a,b){this.Ab();delete this.tb;this.ze=b?Ql(a):a;return this};R.prototype.Ov=function(){return!!this.ze};
R.prototype.fd=function(){this.Ab();this.K("zx",Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^(new Date).getTime()).toString(36));return this};R.prototype.removeParameter=function(a){this.Ab();this.La.remove(a);return this};R.prototype.Ab=function(){if(this.zw)g(Error("Tried to modify a read-only Uri"))};R.prototype.Zd=function(a){this.fc=a;this.La&&this.La.Zd(a)};R.prototype.St=function(){return this.fc};
var Pl=function(a,b,c,d,e,f,h,k){k=new R(j,k);a&&k.Ti(a);b&&k.Xi(b);c&&k.Ii(c);d&&k.Ri(d);e&&k.rg(e);f&&k.Ql(f);h&&k.Ki(h);return k},Ol=function(a){if(a==".."||a==".")return"";else if(!ud(a,"./")&&!ud(a,"/."))return a;else{var b=a.indexOf("/")==0;a=a.split("/");for(var c=[],d=0;d<a.length;){var e=a[d++];if(e==".")b&&d==a.length&&c.push("");else if(e==".."){if(c.length>1||c.length==1&&c[0]!="")c.pop();b&&d==a.length&&c.push("")}else{c.push(e);b=i}}return c.join("/")}},Ql=function(a){return a?decodeURIComponent(a):
""},Ll=function(a){if(ia(a))return encodeURIComponent(a);return j},Sl=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Jl=function(a,b){var c=j;if(ia(a)){c=a;Sl.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,Tl)}return c},Tl=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Kl=/[#\/\?@]/g,Ml=/[\#\?]/g,Rl=/[\#\?@]/g,Nl=/#/g,Il=function(a,b,c){this.Yc=a||j;this.mj=b||j;this.fc=!!c};
Il.prototype.Rb=function(){if(!this.R){this.R=new dg;if(this.Yc)for(var a=this.Yc.split("&"),b=0;b<a.length;b++){var c=a[b].indexOf("="),d=j,e=j;if(c>=0){d=a[b].substring(0,c);e=a[b].substring(c+1)}else d=a[b];d=nd(d);d=this.ad(d);this.add(d,e?nd(e):"")}}};Il.prototype.R=j;Il.prototype.I=j;Il.prototype.Ed=function(){this.Rb();return this.I};
Il.prototype.add=function(a,b){this.Rb();this.Pe();a=this.ad(a);if(this.wb(a)){var c=this.R.get(a);ga(c)?c.push(b):this.R.set(a,[c,b])}else this.R.set(a,b);this.I++;return this};Il.prototype.remove=function(a){this.Rb();a=this.ad(a);if(this.R.wb(a)){this.Pe();var b=this.R.get(a);if(ga(b))this.I-=b.length;else this.I--;return this.R.remove(a)}return n};Il.prototype.clear=function(){this.Pe();this.R&&this.R.clear();this.I=0};Il.prototype.wb=function(a){this.Rb();a=this.ad(a);return this.R.wb(a)};
Il.prototype.bd=function(){this.Rb();for(var a=this.R.Gb(),b=this.R.bd(),c=[],d=0;d<b.length;d++){var e=a[d];if(ga(e))for(var f=0;f<e.length;f++)c.push(b[d]);else c.push(b[d])}return c};Il.prototype.Gb=function(a){this.Rb();if(a){a=this.ad(a);if(this.wb(a)){var b=this.R.get(a);if(ga(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.R.Gb();a=[];for(var c=0;c<b.length;c++){var d=b[c];ga(d)?je(a,d):a.push(d)}}return a};
Il.prototype.set=function(a,b){this.Rb();this.Pe();a=this.ad(a);if(this.wb(a)){var c=this.R.get(a);if(ga(c))this.I-=c.length;else this.I--}this.R.set(a,b);this.I++;return this};Il.prototype.get=function(a,b){this.Rb();a=this.ad(a);if(this.wb(a)){a=this.R.get(a);return ga(a)?a[0]:a}else return b};Il.prototype.Ry=function(a,b){this.Rb();this.Pe();a=this.ad(a);if(this.wb(a)){var c=this.R.get(a);if(ga(c))this.I-=c.length;else this.I--}if(b.length>0){this.R.set(a,b);this.I+=b.length}};
Il.prototype.toString=function(){if(this.Yc)return this.Yc;if(!this.R)return"";for(var a=[],b=0,c=this.R.bd(),d=0;d<c.length;d++){var e=c[d],f=md(e);e=this.R.get(e);if(ga(e))for(var h=0;h<e.length;h++){b>0&&a.push("&");a.push(f,"=",md(e[h]));b++}else{b>0&&a.push("&");a.push(f,"=",md(e));b++}}return this.Yc=a.join("")};Il.prototype.sz=function(){if(!this.Cf)this.Cf=Ql(this.toString());return this.Cf};Il.prototype.Pe=function(){delete this.Cf;delete this.Yc;this.mj&&delete this.mj.tb};
Il.prototype.clone=function(){var a=new Il;if(this.Cf)a.Cf=this.Cf;if(this.Yc)a.Yc=this.Yc;if(this.R)a.R=this.R.clone();return a};Il.prototype.ad=function(a){a=String(a);if(this.fc)a=a.toLowerCase();return a};Il.prototype.Zd=function(a){var b=a&&!this.fc;if(b){this.Rb();this.Pe();bg(this.R,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},this)}this.fc=a};
Il.prototype.extend=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];bg(b,function(c,d){this.add(d,c)},this)}};var Vl=function(a,b){b=b;if(!b){b=new R("http://www.google.com/url");b.fd();b.$d("q","http://www.google.com/images/cleardot.gif")}Ul(b.toString(),10000,a)},Wl=function(a,b,c,d,e){if(d==0)c(n);else{e||(e=0);d--;Ul(a,b,function(f){f?c(i):p.setTimeout(function(){Wl(a,b,c,d,e)},e)})}},Ul=function(a,b,c){var d=new Image;d.onload=function(){try{Xl(d);c(i)}catch(e){}};d.onerror=function(){try{Xl(d);c(n)}catch(e){}};d.onabort=function(){try{Xl(d);c(n)}catch(e){}};d.ontimeout=function(){try{Xl(d);c(n)}catch(e){}};
p.setTimeout(function(){d.ontimeout&&d.ontimeout()},b);d.src=a},Xl=function(a){a.onload=j;a.onerror=j;a.onabort=j;a.ontimeout=j};var T=function(a,b,c,d){this.qa=a;this.mf=c;this.GA=d;this.Pp=45000;this.$=new li(this);this.ul=new lh;this.ul.setInterval(250)};T.prototype.Ja=j;T.prototype.fp=0;T.prototype.Pc=n;T.prototype.pf=j;T.prototype.dm=j;T.prototype.bf=0;T.prototype.rb=j;T.prototype.ud=j;T.prototype.md=j;T.prototype.wi=j;T.prototype.Ga=j;T.prototype.Dg=j;T.prototype.Mb=j;T.prototype.nj=j;T.prototype.ra=j;T.prototype.sa=-1;T.prototype.Xp=i;T.prototype.ne=n;var Yl={},Zl={};T.prototype.oc=function(a){this.Ja=a};
T.prototype.Ni=function(a){this.fp=a;if(this.bf>a){this.wr();this.me();this.vd();this.li()}};T.prototype.My=function(a){this.Pp=a};T.prototype.Vq=function(a,b,c){this.rb=1;this.ud=a.clone().fd();this.wi=b;this.zs=c;this.Kl()};T.prototype.em=function(a,b,c){this.rb=1;this.ud=a.clone().fd();this.wi=j;this.zs=b;if(c)this.Xp=n;this.Kl()};
T.prototype.Kl=function(){this.md=this.ud.clone();this.md.$d("t",this.bf+1);this.Dg=0;this.Ga=this.vs();D(this.Ga,"readystatechange",this.Uq,n,this);var a=this.Ja?ye(this.Ja):{};if(this.wi){this.nj="POST";a["Content-Type"]="application/x-www-form-urlencoded";this.Ga.send(this.md,this.nj,this.wi,a)}else{this.nj="GET";if(this.Xp)a.Connection="close";this.Ga.send(this.md,this.nj,j,a)}this.we()};T.prototype.vs=function(){return new M};
T.prototype.Uq=function(a){a=a.target;try{a==this.Ga&&this.xx()}catch(b){this.Ga&&this.Ga.Zb()}finally{}};
T.prototype.xx=function(){var a=this.Ga.Hd();if(B||Se&&!df("420+")){if(a<4)return}else if(a<3||a==3&&!Qe&&!this.Ga.Zb())return;this.me();var b=this.Ga.Lh();this.sa=b;var c=this.Ga.Zb();if(this.Pc=b==200){a==4&&this.vd();if(this.zs){this.gn(a,c);Qe&&a==3&&this.dz()}else this.Fl(c);if(this.Pc)if(!this.ne)if(a==4)this.qa.Xe(this);else{this.Pc=n;this.we()}}else{if(b==400&&c.indexOf("Unknown SID")>0){this.ra=3;$l(13)}else{this.ra=0;$l(14)}this.vd();this.li()}};
T.prototype.gn=function(a,b){for(var c=i;!this.ne&&this.Dg<b.length;){var d=this.fu(b);if(d==Zl){if(a==4){this.ra=4;$l(15);c=n}break}else if(d==Yl){this.ra=4;$l(16);c=n;break}else this.Fl(d)}if(a==4&&b.length==0){this.ra=1;$l(17);this.decodeNextChunksSuccessful=n}if(!c){this.vd();this.li()}this.Pc=this.Pc&&c};T.prototype.Ex=function(){var a=this.Ga.Hd(),b=this.Ga.Zb();if(this.Dg<b.length){this.me();this.gn(a,b);this.Pc&&a!=4&&this.we()}};
T.prototype.dz=function(){this.$.listen(this.ul,"tick",this.Ex);this.ul.start()};T.prototype.jz=function(){this.ul.stop();this.$.lg()};T.prototype.fu=function(a){var b=this.Dg,c=a.indexOf("\n",b);if(c==-1)return Zl;b=a.substring(b,c);b=Number(b);if(isNaN(b))return Yl;c=c+1;if(c+b>a.length)return Zl;a=a.substr(c,b);this.Dg=c+b;return a};T.prototype.Jq=function(a,b){this.rb=3;this.ud=a.clone().fd();this.Az(b)};
T.prototype.Az=function(a){this.Mb=new ActiveXObject("htmlfile");var b="",c="<html>";if(a){b=window.location.hostname;c+='<script>document.domain="'+b+'"<\/script>'}c+="</html>";this.Mb.open();this.Mb.write(c);this.Mb.close();this.Mb.parentWindow.m=t(this.vx,this);this.Mb.parentWindow.d=t(this.wp,this,i);this.Mb.parentWindow.rpcClose=t(this.wp,this,n);a=this.Mb.createElement("div");this.Mb.appendChild(a);this.md=this.ud.clone();this.md.K("DOMAIN",b);this.md.K("t",this.bf+1);a.innerHTML='<iframe src="'+
this.md+'"></iframe>';this.we()};T.prototype.vx=function(a){am(t(this.ux,this,a),0)};T.prototype.ux=function(a){if(!this.ne){this.me();this.Fl(a);this.we()}};T.prototype.wp=function(a){am(t(this.tx,this,a),0)};T.prototype.tx=function(a){if(!this.ne){this.me();this.vd();this.Pc=a;this.qa.Xe(this)}};T.prototype.qy=function(a){this.rb=2;this.ud=a.clone().fd();this.bw()};T.prototype.bw=function(){var a=new Image;a.src=this.ud;this.we()};T.prototype.cancel=function(){this.ne=i;this.me();this.vd()};
T.prototype.we=function(){this.dm=ra()+this.Pp;this.Bq(this.Pp)};T.prototype.Bq=function(a){if(this.pf!=j)g(Error("WatchDog timer not null"));this.pf=am(t(this.wx,this),a)};T.prototype.me=function(){if(this.pf){p.clearTimeout(this.pf);this.pf=j}};T.prototype.wx=function(){this.pf=j;var a=ra();a-this.dm>=0?this.Iv():this.Bq(this.dm-a)};T.prototype.Iv=function(){this.vd();this.ra=2;$l(18);this.li()};
T.prototype.li=function(){if(!(this.qa.$h()||this.ne))if(this.ra==3||this.ra==0&&this.sa>0)this.qa.Xe(this);else if(this.bf>=this.fp)this.qa.Xe(this);else{this.El=am(t(this.ey,this),this.Au());this.bf++}};T.prototype.Au=function(){var a=5000+Math.floor(Math.random()*10000);this.qa.X()||(a*=2);return a=a*this.bf+1};T.prototype.ey=function(){this.El=j;this.rb==1&&this.Kl()};T.prototype.wr=function(){if(this.El){p.clearTimeout(this.El);this.El=j}};
T.prototype.vd=function(){this.jz();if(this.Ga){var a=this.Ga;this.Ga=j;Jf(a,"readystatechange",this.Uq,n,this);a.abort()}if(this.Mb)this.Mb=j};T.prototype.oo=function(){return this.Pc};T.prototype.Qf=function(){return this.ra};T.prototype.Eb=function(){return this.sa};T.prototype.Fl=function(a){try{this.qa.sl(this,a)}catch(b){}};var bm=function(a){this.qa=a};bm.prototype.Ja=j;bm.prototype.Na=j;bm.prototype.yi=n;bm.prototype.Dd=j;bm.prototype.gl=j;bm.prototype.Ca=j;bm.prototype.D=j;bm.prototype.sa=-1;bm.prototype.ed=j;bm.prototype.Cj=j;bm.prototype.oc=function(a){this.Ja=a};bm.prototype.connect=function(a){this.Ca=a;a=this.qa.$n(this.Ca);$l(3);a.$d("MODE","init");this.Na=new T(this,this.wf);this.Na.oc(this.Ja);this.Na.Ni(0);this.Na.em(a,n,i);this.D=0};
bm.prototype.Dr=function(){var a=this.qa.Yj(this.Cj,"/mail/images/cleardot.gif");a.fd();Wl(a.toString(),5000,t(this.Cr,this),3,2000)};bm.prototype.Cr=function(a){if(a){this.D=2;this.Pm()}else{$l(4);this.qa.nz(this)}};bm.prototype.Pm=function(){this.Na=new T(this,this.wf);this.Na.oc(this.Ja);this.Na.Ni(0);var a=this.qa.Kn(this.ed,this.Ca);$l(5);if(B){a.$d("TYPE","html");this.Na.Jq(a,Boolean(this.ed))}else{a.$d("TYPE","xmlhttp");this.Na.em(a,n)}};
bm.prototype.abort=function(){if(this.Na){this.Na.cancel();this.Na=j}this.sa=-1};bm.prototype.$h=function(){return n};bm.prototype.sl=function(a,b){this.sa=a.Eb();if(this.D==0)if(b){try{var c=lj(b)}catch(d){this.qa.Wl(this,4);return}this.ed=this.qa.bt()?c[0]:j;this.Cj=c[1]}else this.qa.Wl(this,4);else if(this.D==2)if(this.yi){$l(7);this.gl=ra()}else if(b=="11111"){$l(6);this.yi=i;this.Dd=ra()}else{$l(8);this.Dd=this.gl=ra();this.yi=n}};
bm.prototype.Xe=function(){this.sa=this.Na.Eb();if(this.Na.oo())if(this.D==0)if(this.Cj){this.D=1;this.Dr()}else{this.D=2;this.Pm()}else{if(this.D==2){var a=n;if(B){a=this.gl-this.Dd;a=a<200?n:i}else a=this.yi;if(a){$l(12);this.qa.Gq(this,i)}else{$l(11);this.qa.Gq(this,n)}}}else{if(this.D==0)$l(9);else this.D==2&&$l(10);this.qa.Wl(this,this.Na.Qf())}};bm.prototype.Eb=function(){return this.sa};bm.prototype.X=function(){return this.qa.X()};var U=function(a){this.Or=a;this.D=1;this.fg=[]};U.prototype.Ja=j;U.prototype.mk=j;U.prototype.Db=j;U.prototype.eb=j;U.prototype.Ca=j;U.prototype.yh=j;U.prototype.zm=j;U.prototype.ed=j;U.prototype.jm=i;U.prototype.mi=0;U.prototype.Ss=n;U.prototype.o=j;U.prototype.qk=j;U.prototype.Aj=j;U.prototype.xd=j;U.prototype.Pq=j;U.prototype.ir=i;U.prototype.Wo=-1;U.prototype.sa=-1;var cm=new E,dm=function(a,b){ff.call(this,"statevent",a);this.stat=b};v(dm,ff);
U.prototype.connect=function(a,b,c){$l(0);this.Ca=b;this.mk=c;this.Ur(a)};U.prototype.disconnect=function(){this.Em();if(this.D==3){var a=this.mi++,b=this.yh.clone();b.K("SID",this.mf);b.K("RID",a);b.K("TYPE","terminate");this.qf(b);a=new T(this,this.wf,this.mf,a);a.qy(b);this.mp()}};U.prototype.Ur=function(a){this.xd=new bm(this,this.wf);this.xd.oc(this.Ja);this.xd.connect(a)};U.prototype.Tr=function(){this.Os(1);this.yh=this.$n(this.Ca);this.ik()};
U.prototype.Em=function(){if(this.xd){this.xd.abort();this.xd=j}if(this.eb){this.eb.cancel();this.eb=j}if(this.Db){this.Db.cancel();this.Db=j}};U.prototype.oc=function(a){this.Ja=a};U.prototype.H=function(){return this.o};U.prototype.Dy=function(a){this.o=a};U.prototype.bt=function(){return this.jm};U.prototype.Yp=function(a){if(this.D==0)g(Error("Invalid operation: sending map when state is closed"));this.fg.push(a);if(this.D==2||this.D==3)this.ik()};U.prototype.Mt=function(){return this.Ss?0:2};
U.prototype.$h=function(){return this.D==0};U.prototype.Jh=function(){return this.D};U.prototype.Eb=function(){return this.sa};U.prototype.ik=function(){if(!this.Db)if(!this.qk)this.qk=am(t(this.px,this),0)};U.prototype.px=function(){this.qk=j;this.cz()};U.prototype.cz=function(){if(this.D==1){this.yx();this.D=2}else if(this.D==3){this.tn();if(this.kp())if(this.fg.length!=0)this.Db||this.Kw()}};
U.prototype.yx=function(){this.D=2;this.mi=Math.floor(Math.random()*100000);var a=this.mi++,b=new T(this,this.wf,"",a);b.oc(this.Ja);var c=this.jn(),d=this.yh.clone();d.K("RID",a);this.Or&&d.K("CVER",this.Or);this.qf(d);b.Vq(d,c,i);this.Db=b};U.prototype.Kw=function(){var a=this.mi++,b=this.yh.clone();b.K("SID",this.mf);b.K("RID",a);this.qf(b);var c=this.jn();a=new T(this,this.wf,this.mf,a);a.oc(this.Ja);a.Ni(this.Mt());a.My(Math.round(10000)+Math.round(10000*Math.random()));this.Db=a;a.Vq(b,c,i)};
U.prototype.qf=function(a){if(this.o){var b=this.o.rk(this);b&&bg(b,function(c,d){a.K(d,c)})}};U.prototype.jn=function(){for(var a=["count="+this.fg.length],b=0;b<this.fg.length;b++){var c=this.fg[b];bg(c,function(d,e){a.push("req"+b+"_"+e+"="+encodeURIComponent(d))})}this.fg.length=0;return a.join("&")};U.prototype.tn=function(){if(!this.eb)if(!this.Aj)this.Aj=am(t(this.ox,this),0)};U.prototype.ox=function(){this.Aj=j;this.az()};
U.prototype.az=function(){if(this.kp()){this.eb=new T(this,this.wf,this.mf,"rpc");this.eb.oc(this.Ja);var a=this.zm.clone();a.K("RID","rpc");a.K("SID",this.mf);a.K("CI",this.Pq?"0":"1");a.K("AID",this.Wo);this.qf(a);if(B){a.K("TYPE","html");this.eb.Jq(a,Boolean(this.ed))}else{a.K("TYPE","xmlhttp");this.eb.Ni(3);this.eb.em(a,i)}}};U.prototype.kp=function(){if(this.o){var a=this.o.ql(this);if(a!=0){this.rc(a);return n}}return i};U.prototype.Gq=function(a,b){this.Pq=this.ir&&b;this.sa=a.Eb();this.Tr()};
U.prototype.Wl=function(a){this.sa=a.Eb();this.rc(2)};U.prototype.nz=function(){this.sa=this.xd.Eb();this.rc(9)};U.prototype.sl=function(a,b){if(!(this.D==0||this.eb!=a&&this.Db!=a)){this.sa=a.Eb();if(this.Db==a&&this.D==3)b!="y2f%"&&this.rc(11);else/^[\s\xa0]*$/.test(b)||this.jx(lj(b))}};
U.prototype.Xe=function(a){var b=n;if(this.eb==a){this.eb=j;b=i}else if(this.Db==a){this.Db=j;b=i}if(b){this.sa=a.Eb();if(this.D!=0)if(a.oo()){this.ik();this.tn()}else switch(a.Qf()){case 1:this.rc(5);break;case 4:this.rc(10);break;case 3:this.rc(6);break;default:this.rc(2);break}}};
U.prototype.jx=function(a){for(var b=this.o&&this.o.Kj?[]:j,c=0;c<a.length;c++){var d=a[c];this.Wo=d[0];d=d[1];if(this.D==2)if(d[0]=="c"){this.mf=d[1];this.ed=this.jm?d[2]:j;this.D=3;this.o&&this.o.Lj(this);this.zm=this.Kn(this.ed,this.Ca)}else d[0]=="stop"&&this.rc(7);else if(this.D==3)if(d[0]=="stop"){if(b&&b.length){this.o.Kj(this,b);b.length=0}this.rc(7)}else if(d[0]!="noop")if(b)b.push(d);else this.o&&this.o.Jj(this,d)}b&&b.length&&this.o.Kj(this,b)};
U.prototype.Os=function(a){if(this.D!=a)g(Error("Invalid operation: expected channel state "+a+" got channel state "+this.D))};U.prototype.rc=function(a){if(a==2||a==9){var b=j;if(this.o)b=this.o.Bk(this);Vl(t(this.oz,this,a),b)}else this.rl(a)};U.prototype.oz=function(a,b){b?this.rl(a):this.rl(8)};U.prototype.rl=function(a){a==8?$l(1):$l(2);this.D=0;this.o&&this.o.Ij(this,a);this.mp();this.Em()};U.prototype.mp=function(){this.D=0;this.sa=-1;this.o&&this.o.Hj(this)};
U.prototype.$n=function(a){return a=this.Yj(j,a)};U.prototype.Kn=function(a,b){return a=this.Yj(B?a:j,b)};U.prototype.Yj=function(a,b,c){var d=window.location;a=a?a+"."+d.hostname:d.hostname;c=c||d.port;var e=Pl(d.protocol,j,a,c,b);this.mk&&bg(this.mk,function(f,h){e.K(h,f)});e.K("VER",6);this.qf(e);return e};U.prototype.X=function(){return this.o.X(this)};
var am=function(a,b){if(!ka(a))g(Error("Fn must not be null and must be a function"));return p.setTimeout(function(){a()},b)},$l=function(a){var b=cm;b.dispatchEvent(new dm(b,a))},em=function(){};em.prototype.Kj=j;em.prototype.ql=function(){return 0};em.prototype.Lj=function(){};em.prototype.Jj=function(){};em.prototype.Ij=function(){};em.prototype.Hj=function(){};em.prototype.rk=function(){return{}};em.prototype.Bk=function(){return j};em.prototype.X=function(){return i};u("google.Quote",{});
(function(){var a=["l","vo","c","cp","ltt","el","evo","ec","ecp","elt"];function b(){this.companyIdToElements=j}b.prototype.tr=function(l,m,o){var q=this.companyIdToElements[l];if(!q){q={};this.companyIdToElements[l]=q}l=q[m];if(!l){l=[];q[m]=l}l.push(o)};b.prototype.Sn=function(l,m){return(l=this.companyIdToElements[l])?l[m]:j};b.prototype.Fx=function(){if(!this.companyIdToElements){this.companyIdToElements={};if(document.getElementsByTagName)for(var l=document.getElementsByTagName("span"),m=0;m<
l.length;++m){var o=l[m],q=o.id;if(q&&q.length>4&&q.substring(0,4)=="ref_"){var x=q.substring(4),s=x.indexOf("_");if(s){q=x.substring(0,s);x=x.substring(s+1);this.tr(q,x,o)}}}}};b.prototype.reset=function(){this.companyIdToElements=j};b.prototype.listen=function(l,m){this.Fx();for(var o=0;o<a.length;++o){var q=a[o],x=l[q];if(x){var s=this.Sn(m,q);if(s){var K=j,S=j;if((q=="c"||q=="cp"||q=="ec"||q=="ecp")&&x.length&&x.length>0)if("-"==x.charAt(0))K="down";else{K="up";if((q=="c"||q=="ec")&&x>0)x="+"+
x}for(var zb=0;zb<s.length;++zb){var Mb=s[zb];if(Mb){var jb=x;if(q=="cp"||q=="ecp")jb=(jb=Mb.innerHTML)&&jb.indexOf("(")!=-1?"("+x+"%)":x+"%";else if(q=="l"){jb=this.cy(Mb);S=this.pu(jb,x);jb=this.Kt(jb,x);jb=this.qu(x.substr(0,jb),x.substr(jb))}else if(q=="ltt")jb=this.At(Mb.innerHTML,x);if(S||K)Mb.className=S||K;Mb.innerHTML=jb}}q=="l"&&window.setTimeout(t(b.prototype.Oq,this,m),1000)}}}};b.prototype.Oq=function(l){if(l=this.Sn(l,"l"))for(var m=0;m<l.length;++m){var o=l[m];if(o)o.className="prb"}};
b.prototype.At=function(l,m){if(l&&l.length<8){l=m.indexOf(":");var o=parseInt(m.substr(0,l),10)%12;if(m.substr(l+3,2).toLowerCase()=="pm")o+=12;return o.toString()+m.substr(l,3)}return m};b.prototype.qu=function(l,m){return"<span class=prb>"+l+"</span><span>"+m+"</span>"};b.prototype.cy=function(l){return l.childNodes&&l.childNodes.length==2?l.firstChild.innerHTML+l.lastChild.innerHTML:l.innerHTML};b.prototype.pu=function(l,m){l=Number(l);m=Number(m);return l==m?"prb":l<m?"prg":"prr"};b.prototype.Kt=
function(l,m){for(var o=Math.min(l.length,m.length),q=0;q<o;q++)if(l.charAt(q)!=m.charAt(q))return q;return o};function c(){em.call();this.cj={};this.Dq={};this.kb=[function(l,m){h.listen(l,m)}];this.nl=[]}v(c,em);c.prototype.tf=function(l,m,o){this.cj[l]=m;if(o)this.Dq[l]=o;this.Gi()};c.prototype.sj=function(l){for(var m=0;m<l.length;++m){this.cj[l[m].symbol]=l[m].id;if(l[m].title)this.Dq[l[m].symbol]=l[m].title}this.Gi()};c.prototype.Pi=function(l){this.Uw=l;this.Gi()};c.prototype.ar=function(l){this.kb.push(l)};
c.prototype.Fg=function(l){this.nl.push(l)};c.prototype.ql=function(){return 0};c.prototype.Lj=function(){this.Gi()};c.prototype.Gi=function(){if(!(!e||e.Jh()!=3)){var l=new dg;for(var m in this.cj)l.set(m,"");if(this.nl.length>0)l.set("#!news!#",this.Uw?this.Uw.join(","):"");e.Yp(l);p.setTimeout(c.keepAlive,60000)}};c.prototype.Bk=function(){var l=new R("/finance/s/m4C5KaofCbA/images/cleardot.gif");l.fd();return l};c.keepAlive=function(){if(e&&!e.$h()){e.Yp({"#!ping!#":""});p.setTimeout(c.keepAlive,
60000)}};c.prototype.Jj=function(l,m){for(l=0;l<m.length;++l){var o=m[l],q=o.s;if(q){var x=this.cj[q];if(x)for(var s=0;s<this.kb.length;++s)this.kb[s](o,x);if(q=this.Dq[q])if(x=o.l){q=q.replace("{LAST}",x);x=o.c;o=o.cp;if(x&&o){q=q.replace("{CHANGE}",x>0?"+"+x:x);q=q.replace("{CHANGE_PCT}",o)}document.title=q}}else if(o.t&&o.u)for(q=0;q<this.nl.length;++q)this.nl[q](o)}};c.prototype.Ij=function(){};c.prototype.Hj=function(){};c.prototype.rk=function(){return j};var d=r("google.Quote"),e=new U("1"),
f=new c,h=new b;d.JA=h;d.streamQuotes=function(){e.Dy(f);e.connect("/finance/qs/test","/finance/qs/channel",j)};u("google.Quote.streamQuotes",d.streamQuotes);d.stopQuotes=function(){e.disconnect()};d.tf=function(l,m,o){f.tf(l,m,o);h.reset()};u("google.Quote.addQuote",d.tf);d.sj=function(l){f.sj(l);h.reset()};u("google.Quote.addQuotes",d.sj);d.Pi=function(l){f.Pi(l)};u("google.Quote.setNewsCids",d.Pi);d.addQuoteListener=function(l){f.ar(l)};u("google.Quote.addQuoteListener",d.addQuoteListener);d.Fg=
function(l){f.Fg(l)};u("google.Quote.addNewsListener",d.Fg);function k(){var l=r("google.finance.data.common.rq.q");if(l){for(var m=0;m<l.length;++m){var o=l[m];if(o.cid>0&&o.s&&o.e){var q=o.e;if(q.indexOf("NASDAQ")==0)q="NASD";d.tf(q+":"+o.s,o.cid)}}Zf(f.cj)>0&&kh.setTimeout(d.streamQuotes,100)}}if(window.attachEvent){window.attachEvent("onload",k);window.attachEvent("onunload",d.stopQuotes)}else if(window.addEventListener){window.addEventListener("load",k,n);window.addEventListener("unload",d.stopQuotes,
n)}u("_aQ",d.tf)})();var V=function(a,b){N.call(this,b);this.gi=a||""};v(V,N);V.prototype.Vb=j;V.prototype.i=function(){this.gf(this.la().i("input",{type:"text"}))};V.prototype.fa=function(a){V.r.fa.call(this,a);if(!this.gi)this.gi=a.getAttribute("label")||""};V.prototype.P=function(){V.r.P.call(this);this.pr();this.Lg();this.k().gA=this};V.prototype.ja=function(){V.r.ja.call(this);this.kn();this.k().gA=j};
V.prototype.pr=function(){var a=new li(this);a.listen(this.k(),"focus",this.av);a.listen(this.k(),"blur",this.Qu);Re&&a.listen(this.k(),["keypress","keydown","keyup"],this.Zu);var b=wg(this.k());b=Jg(b);a.listen(b,"load",this.Kv);this.$=a;this.xm()};V.prototype.xm=function(){if(!this.cA&&this.$&&this.k().form){this.$.listen(this.k().form,"submit",this.bv);this.cA=i}};V.prototype.kn=function(){if(this.$){this.$.dispose();this.$=j}};V.prototype.j=function(){V.r.j.call(this);this.kn()};
V.prototype.pj="label-input-label";V.prototype.av=function(){this.Nv=i;qg(this.k(),this.pj);if(!this.Le()&&!this.dw){var a=this,b=function(){a.k().value=""};B?nh(b,10):b()}};V.prototype.Qu=function(){this.Vb=j;this.Nv=n;this.Lg()};V.prototype.Zu=function(a){if(a.keyCode==27){if(a.type=="keydown")this.Vb=this.k().value;else if(a.type=="keypress")this.k().value=this.Vb;else if(a.type=="keyup")this.Vb=j;a.preventDefault()}};V.prototype.bv=function(){if(!this.Le()){this.k().value="";nh(this.Pu,10,this)}};
V.prototype.Pu=function(){if(!this.Le())this.k().value=this.gi};V.prototype.Kv=function(){this.Lg()};V.prototype.Le=function(){return this.k().value!=""&&this.k().value!=this.gi};V.prototype.clear=function(){this.k().value="";if(this.Vb!=j)this.Vb=""};V.prototype.ua=function(a){if(this.Vb!=j)this.Vb=a;this.k().value=a;this.Lg()};V.prototype.xa=function(){if(this.Vb!=j)return this.Vb;return this.Le()?this.k().value:""};
V.prototype.Lg=function(){this.xm();if(this.Le())qg(this.k(),this.pj);else{!this.dw&&!this.Nv&&og(this.k(),this.pj);nh(this.by,10,this)}};V.prototype.If=function(){this.dw=n};V.prototype.by=function(){if(this.k()&&!this.Le())this.k().value=this.gi};var fm=function(a){this.Ug=this.zd=0;this.xn=a;this.ah=[];this.oa=j;this.o=new li(this);this.F=j;this.Yh()};fm.prototype.Yh=function(){Xd(this.xn,function(c){ce(this.ah,"l_exch_"+c)},this);var a=F("trends");if(a){this.F=new ll;this.F.decorate(a);this.o.listen(this.F,"select",this.Cv);this.zd=Wd(gm,this.F.Jd().T().firstChild.id)}for(var b=0;b<this.ah.length;++b)(a=F(this.ah[b]))&&this.o.listen(a,"click",this.wv)};
var gm=["l_tm_zeitgeist","l_tm_price","l_tm_mcap","l_tm_volume"],hm=["tm_zeitgeist","tm_price","tm_mcap","tm_volume"],im=["z","p","m","v"];
fm.prototype.Cv=function(a){a=Wd(gm,a.target.T().firstChild.id);if(a>-1){this.zd=a;for(a=0;a<hm.length;++a){var b=F(hm[a]+"_"+this.Ug);if(b)b.style.display=a==this.zd?"block":"none"}if(b=F("tm_zeitgeist"))b.style.display=this.zd==0?"block":"none";if(a=F("tm-exchanges"))a.style.display=this.zd==0?"none":"block";if(!this.oa)this.oa=new _GF_Prefs("home_tabs");this.oa.set("trends",im[this.zd])}};
fm.prototype.wv=function(a){this.Ug=Wd(this.ah,a.currentTarget.id);for(a=0;a<this.xn.length;++a){var b=F(this.ah[a]);if(b)b.className=this.Ug==a?"ac":"nac";if(b=F(hm[this.zd]+"_"+a))b.style.display=a==this.Ug?"block":"none"}if(b=F("tm_zeitgeist"))b.style.display=this.zd=="tm_zeitgeist"?"block":"none";_GF_click("","hp_movers",this.xn[this.Ug],"")};u("google.MiniPortfolios",{});function _GF_checkPromos(){var a=new _GF_Prefs("promo");a.get("ig0")!="1"&&Ci("","promo","p-i-ig0","")()}function _GF_onPromo(a){Ci("","promo","p-h-"+a,"")();var b=new _GF_Prefs("promo");b.set(a,"1")}function _GF_closePromo(a){var b=new _GF_Prefs("promo");b.set(a,"1");Ci("","promo","p-c-"+a,"")();if(a=F(a)){b=ai(a).height;b=new ii(a,b,0,1000,ph);a=new ki(a,1000,ph);b.play();a.play()}}
(function(){var a=["market-news","portfolio-news"],b=["m","p"],c=j,d=j,e=j;function f(s){var K=Yg(s.target.T()).id;for(s=0;s<a.length&&a[s]+"-title"!=K;++s);if(!(s>=a.length)){c||(c=new _GF_Prefs("home_tabs"));c.set("news",b[s]);_GF_click("","hp_"+b[s],b[s],"");for(K=0;K<a.length;++K){var S=F(a[K]);if(S)S.style.display=s==K?"":"none"}}}function h(){var s=F("news-tabs");if(s){var K=new ll;K.decorate(s);D(K,"select",f)}}function k(){var s={"mk-news":"M","pf-news":"P","country-widget":"C",bonds:"B",
currencies:"F",markets:"A",portfolios:"W",trend:"T","economy-indicators":"I"},K=Qk;s=new Sk(s,"MPCT,WAFB",d);var S=new Pk(i,i);D(S,[K.MOVE_TO_TOP,K.MOVE_UP,K.MOVE_DOWN,K.MOVE_TO_LEFT,K.MOVE_TO_RIGHT,K.MAXIMIZE,K.MINIMIZE],t(s.vo,s));S.decorate(F("reorder"))}function l(){var s=function(zb){if(zb.id){var Mb=zb.id.replace("portfolio","");if(Mb>=0){var jb=r("google.MiniPortfolios");jb&&jb.setPortfolioVisible(Mb,zb.type==K.MAXIMIZE)}}},K=Qk,S=new Pk(n,i);D(S,[K.MAXIMIZE,K.MINIMIZE],s);S.decorate(F("home-portfolios"))}
function m(){var s=F("mkt-chart");if(s){var K=new R(s.src);K.K("auto","1");K.fd();s.src=K.toString();p.setTimeout(m,120000)}}function o(){var s=r("google.finance.home.widescreenWidth");s=s?s:1290;document.body.offsetWidth>s?og(document.body,"wide"):qg(document.body,"wide")}function q(){if(e=zl("market-news-stream",5,5,n)){var s=F("market-news");if(s){s=Cg("","dis",s);s.length>0&&new Al(e,s[0],d,"pn")}}}function x(){d=new _GF_Prefs("home");q();si().Ai(o);var s=F("topmovers");s&&si().iq(s,700);(s=F("secperf"))&&
si().iq(s,700);if(s=F("watchlist")){_ac_register(function(K){if(K.id=="watchlist")return _p_Store;if(K.id=="searchbox")return _s_Store});(new V).decorate(s)}p.setTimeout(m,120000);h();if(Re&&F("axs_link"))F("axs_link").style.display="block";new fm(google.finance.data.home.tmExch);k();l();if(s=F("searchbox")){s.focus();s.select()}yi();cl("h")}u("google.finance.onHomeLoad",x);u("google.finance.onPortfolioBoxLoad",l)})();
(function(){var a=r("google.MiniPortfolios"),b=[],c="";a.setHiddenPids=function(e,f){if(e)b=e.split(",");d(0)==-1&&b.push(0);c=f};u("google.MiniPortfolios.setHiddenPids",a.setHiddenPids);function d(e){for(var f=-1,h=0;h<b.length;++h)if(b[h]==e){f=h;break}return f}a.setPortfolioVisible=function(e,f){var h=d(e);if(f)h!=-1&&b.splice(h,1);else h==-1&&b.push(e);e=["/finance/prefs?action=set","&prefsgroup=home","&prefskey=hidden_pids","&prefsval=",escape(b.join(",")),"&hash=",c];f=Sd();f.onreadystatechange=
function(){};f.open("GET",e.join(""),i);f.send(j)};u("google.MiniPortfolios.setPortfolioVisible",a.setPortfolioVisible);a.togglePortfolio=function(e,f){var h=F("portfolio"+e),k=F("mktCap"+e);if(h&&k){var l=F("more"+e);if(f.innerHTML=="hide"){f.innerHTML="show";h.style.display="none";k.style.display="none";if(l)l.style.display="none";a.setPortfolioVisible(e,n)}else{f.innerHTML="hide";h.style.display="";k.style.display="";if(l)l.style.display="";a.setPortfolioVisible(e,i)}}};u("google.MiniPortfolios.togglePortfolio",
a.togglePortfolio)})();var sm=function(a,b){var c=b||new Qi;c.append("<table class=gf-table><thead>");jm(j,c);switch(a.columnKeys.value){case "overview":km(j,c);break;case "fundamentals":lm(j,c);break;case "performance":mm(j,c);break;case "returns":nm(j,c);break;case "transactions":om({displayCash:a.clientData.displayCash},c);break}c.append("<tfoot>");pm(Ri(a,{displayEmpty:n,displayCash:a.clientData.displayCash,tabView:a.columnKeys.value}),c);qm({columnKeys:a.columnKeys,summary:a.rawFooter.su,isWatchlist:a.clientData.isWatchlist,
hasCompanies:a.clientData.hasCompanies},c);for(var d=a.rawContents,e=d.length,f=0;f<e;f++){var h=d[f];rm({columnKeys:a.columnKeys,rawContent:h,displayCash:a.clientData.displayCash},c)}c.append("</table>");if(!b)return c.toString()},rm=function(a,b){var c=b||new Qi;c.append("<tbody><tr",a.rawContent.n?" class=pf-table-wn":"",">");for(var d=a.columnKeys.columnKeys,e=d.length,f=0;f<e;f++){var h=d[f];if(f==0)c.append('<td class="chk lft pf-table-cell">',a.rawContent.tid=="-"?"&nbsp;":"<input class=gf-table-chk type=checkbox />");
else switch(h.value){case "n":break;default:tm({dirmap:a.columnKeys.dirmap,col:h,rawContent:a.rawContent,showReturns:i},c)}}c.append(a.rawContent.n?"<tr class=pf-table-n><td colspan=3><td colspan="+(a.displayCash?"6":"5")+" class=lft>"+L(a.rawContent.n)+"</td>":"");if(!b)return c.toString()},tm=function(a,b){var c=b||new Qi;c.append('<td class="pf-table-',L(a.col.value)," pf-table-cell ",a.dirmap[a.col.value]?"lft":"rgt",'">');if(a.rawContent[a.col.value])switch(a.col.value){case "lname":case "s":if(a.rawContent.s){c.append('<a href="/finance?q=',
L(a.rawContent.e),":",L(a.rawContent.s),L(google.finance.data.stickyUrlArgs),'" title="',L(a.rawContent.lname),'" ',L(google.finance.data.common.linktargetInternal),">");if(a.rawContent[a.col.value]){c.append(L(a.rawContent[a.col.value]));a.rawContent.ia||c.append(" ","(Inactive)")}c.append("</a>")}else if(a.rawContent.ic&&a.col.value=="lname")c.append("Cash");else a.rawContent[a.col.value]&&c.append(L(a.rawContent[a.col.value]));break;case "tp":switch(a.rawContent.tp){case 1:c.append("Buy");break;
case 2:c.append("Sell");break;case 3:c.append("Buy to Cover");break;case 4:c.append("Sell Short");break;case 7:c.append("Deposit Cash");break;case 8:c.append("Withdraw Cash");break;case 9:c.append("Dividend (paid to cash)");break;case 10:c.append("Dividend (scheduled)");break;case 11:c.append("Split");break;default:c.append("Unrecognized type: ",L(a.rawContent.tp))}break;case "cp":c.append("<span id=ref_",L(a.rawContent.cid),"_c class=",L(a.rawContent.cs)," >",L(a.rawContent.c),"</span> <span id=ref_",
L(a.rawContent.cid),"_cp class=",L(a.rawContent.cs)," >",a.rawContent.cp.f?"("+L(a.rawContent.cp.f)+"%)":"","</span>");break;case "lp":c.append("<span id=ref_",L(a.rawContent.cid),"_l>",L(a.rawContent[a.col.value].f),"</span>",a.rawContent.lpd>0?"*":"");break;case "g":case "gp":c.append("<span class=",L(a.rawContent.gs)," >",a.col.value=="gp"?L(a.rawContent[a.col.value])+"%":L(a.rawContent[a.col.value].f),"</span>");break;case "dg":c.append("<span class=",L(a.rawContent.cs)," >",L(a.rawContent[a.col.value].f),
"</span>");break;case "cv":c.append("<span class=",L(a.rawContent.cvs)," >",L(a.rawContent[a.col.value].f),"</span>");break;case "b":case "mv":case "cap":case "op":case "hi":case "lo":case "eps":case "hi52":case "lo52":case "vol":case "pc":case "com":case "avvo":c.append(L(a.rawContent[a.col.value].f));break;case "r1w":case "r1y":case "r3m":case "r3y":case "r4w":case "r5y":case "rytd":case "rt":c.append(a.showReturns?L(a.rawContent[a.col.value])+"%":"");break;default:c.append(L(a.rawContent[a.col.value]))}if(!b)return c.toString()},
jm=function(a,b){a=b||new Qi;a.append('<tr class="portfolio-header-row"><th class="lft chk"><input class=gf-table-chkall type=checkbox />');W({classes:"lft pf-table-lname",label:"Name"},a);W({classes:"lft",label:"Symbol"},a);if(!b)return a.toString()},km=function(a,b){a=b||new Qi;W({label:"Last price"},a);W({label:"Change"},a);W({label:"Mkt cap"},a);W({label:"Volume"},a);W({label:"Open"},a);W({label:"High"},a);W({label:"Low"},a);W({label:"Day's gain"},a);if(!b)return a.toString()},lm=function(a,b){a=
b||new Qi;W({label:"Last price"},a);W({label:"Mkt cap"},a);W({label:"Avg vol"},a);W({label:"52wk high"},a);W({label:"52wk low"},a);W({label:"EPS"},a);W({label:"P/E"},a);W({label:"Beta"},a);if(!b)return a.toString()},mm=function(a,b){a=b||new Qi;W({label:"Last price"},a);W({label:"Change"},a);W({label:"Shares"},a);W({label:"Cost basis"},a);W({label:"Mkt value"},a);W({label:"Gain"},a);W({label:"Gain&nbsp;%"},a);W({label:"Day's gain"},a);W({label:"Overall return"},a);if(!b)return a.toString()},nm=function(a,
b){a=b||new Qi;W({label:"Last price"},a);W({label:"1w return"},a);W({label:"4w return"},a);W({label:"3m return"},a);W({label:"YTD return"},a);W({label:"1y return"},a);W({label:"3y return"},a);W({label:"5y return"},a);W({label:"Overall return"},a);if(!b)return a.toString()},om=function(a,b){var c=b||new Qi;W({classes:"lft",label:"Type"},c);W({classes:"lft",label:"Date"},c);W({label:"Shares"},c);W({label:"Price"},c);a.displayCash&&W({label:"Cash value"},c);W({label:"Commission"},c);if(!b)return c.toString()},
pm=function(a,b){var c=b||new Qi;c.append("<tr class=cash",a.displayEmpty?"-for-empty-portfolio":"",">",!a.displayEmpty?"<td class=no-border>":"",'<td colspan=2 class="lft ',!a.displayEmpty?"no-border":"",' pf-table-cell">',"Cash<span id=add_cash_prompt> - <a class=jslink id=deposit_cash>Deposit</a> / <a class=jslink id=withdraw_cash>Withdraw</a></span>",'<td class="rgt no-border pf-table-cell ',L(a.rawFooter.cts),'">',a.tabView!="transactions"?L(a.rawFooter.ct):"");if(a.displayEmpty)c.append("<td>");
else if(a.tabView=="performance")c.append('<td colspan=3><td class="rgt no-border pf-table-cell ',L(a.rawFooter.cts),'">',L(a.rawFooter.ct));else{c.append("<td class=no-border colspan=");switch(a.tabView){case "overview":case "fundamentals":c.append("7");break;case "returns":c.append("8");break;case "performance":c.append("4");break;case "transactions":c.append(a.displayCash?"5":"6");break}c.append(">")}c.append('<tr id=add_cash_row style="display: none"><td class=no-border><td colspan=11 class="no-p-top no-border"><form method="post" name="addform" action="/finance/portfolio?action=add&hash=',
L(google.finance.data.expectedHashValue),L(google.finance.data.stickyUrlArgs),'"><input type=hidden name=pid value="',L(a.rawFooter.pid),'"/><input type=hidden value=cash name=menu_type /><input type=hidden name=add_cashtype_1 id=add_cash_type value=CASH_DEPOSIT /><table width=73% cellspacing=0 cellpadding=0 style="float:left"><tr class=add-cash><td id=type_prompt class=add-cash width=1% nowrap><td class=add-cash width=1% nowrap>',"Date","<td class=add-cash width=1%><input name=add_date_1 id=add_date_cash autocomplete=off size=15 /><td class=add-cash width=1% nowrap>",
"Amount","<td class=add-cash width=1%><input name=add_price_1 size=9 size=30 /><td class=add-cash width=1% nowrap>","Notes",'<td class=add-cash><input name=add_notes_1 size=30 style="width:100%;"/></table><nobr><span class=inputbox><input type=submit value="',"Add to portfolio",'"/><input type=button id=cancel_add_cash value="',"Cancel",'"/></span></nobr></form><tr height=1><td colspan=12 style="padding:0;font-size:0;">&nbsp;');if(!b)return c.toString()},qm=function(a,b){var c=b||new Qi;if(a.summary&&
a.columnKeys.value!="transactions"&&(!a.isWatchlist||!a.hasCompanies)){c.append('<tr class="hilite portfolio-value-row"><td><td class="lft pf-table-cell" colspan=3>',"Portfolio value:");for(var d=a.columnKeys.columnKeys,e=d.length,f=0;f<e;f++){var h=d[f];if(f!=0)switch(h.value){case "lname":case "s":case "lp":case "n":break;default:tm({dirmap:a.columnKeys.dirmap,col:h,rawContent:a.summary,showReturns:a.hasCompanies},c)}}}if(!b)return c.toString()},W=function(a,b){var c=b||new Qi;c.append("<th ",a.classes?
'class="'+L(a.classes)+'"':"",">",a.label,"<span class=sort-arrow>&#9650;</span><span class=reverse-sort-arrow>&#9660;</span>");if(!b)return c.toString()};var vm=function(a,b){var c=b||new Qi;c.append("<table id=portfolio-import class=gf-table><thead><tr><th><input type=checkbox id=gf-table-chkall>");for(var d=a.column_value,e=d.length,f=0;f<e;f++){var h=d[f];c.append('<th><select class="',L(f),'" style="width: 8em"><option class=none>Other</option><option class=symbol ',h=="symbol"?"selected":"",">Symbol</option><option class=shares ",h=="shares"?"selected":"",">Shares</option><option class=date ",h=="date"?"selected":"",">Date purchased</option><option class=price ",
h=="price"?"selected":"",">Purchase price per share</option><option class=commission ",h=="commission"?"selected":"",">Commission</option><option class=ttype ",h=="ttype"?"selected":"",">Transaction type</option></select>")}c.append("<tbody>");d=a.Row;e=d.length;for(f=0;f<e;f++){h=d[f];um({Cell:h.Cell,rowIndex:f,cols:a.column_value.length},c)}c.append("</table>");if(!b)return c.toString()},um=function(a,b){var c=b||new Qi;c.append("<tr><td><input type=checkbox class=gf-table-chk name=add_del_",L(a.rowIndex),
">");for(var d=a.Cell,e=d.length,f=0;f<e;f++){var h=d[f];c.append("<td class=",h.parse_type=="number"?'"shares price commission"':L(h.parse_type),">",L(h.raw_value))}if(a.Cell.length<a.cols){d=a.Cell.length;a=a.cols;for(d=d;d<a;d++)c.append("<td>")}if(!b)return c.toString()};var wm=function(a,b){this.ub=a;this.iA=b||j;this.o=new li(this)};v(wm,E);wm.prototype.decorate=function(a){this.o.listen(a,"click",this.ac)};wm.prototype.j=function(){wm.r.j.call(this);this.o.dispose()};wm.prototype.ac=function(){for(var a=[],b=this.ub.no(),c=0;c<b.length;++c)a[c]=b[c].e+":"+b[c].s;if(a.length>1){a="/finance?q="+a.join()+Ei();if(this.iA)window.open(a);else window.location=a}else this.dispatchEvent({type:"error"})};var xm=function(a,b){if(!b)g(Error("No checkbox handler info."));this.Da=a;this.o=new li(this),this.ub=b;this.Nz()};v(xm,E);xm.prototype.decorate=function(a){this.o.listen(a,"click",this.ac)};xm.prototype.ac=function(){var a=this.ub.no();if(!a||a.length==0)this.dispatchEvent({type:"error"});this.Vf(a,this.ub.Ku())};xm.prototype.Vf=function(){g(Error("Not implemented yet."))};xm.prototype.j=function(){xm.r.j.call(this);this.o.dispose()};
xm.prototype.Nz=function(){if(!this.Da||!this.Da.id||!this.Da.expected_hash||!this.Da.name||!this.Da.currency)g(Error("No portfolio info."))};var ym=function(a,b){xm.call(this,a,b)};v(ym,xm);
ym.prototype.Vf=function(a,b){a=[];for(var c=0;c<b.length;++c){var d=b[c].e;a[c]=d+":"+b[c].s}b=Lg("form",{action:"/finance/portfolio?action=edit_portfolio&hash="+this.Da.expected_hash+"&ed="+this.Da.edition+document.location.hash,method:"post"},Lg("input",{name:"pid",value:this.Da.id}),Lg("input",{name:"editmode",value:"trans"}),Lg("input",{name:"currency_code",value:this.Da.currency}),Lg("input",{name:"pname",value:this.Da.name}),Lg("input",{name:"watchlist",value:a.join(" ")}));H(b,n);G(document.body,
b);b.submit()};var zm=function(a,b){xm.call(this,a,b)};v(zm,xm);
zm.prototype.Vf=function(a){var b=Lg("form",{action:"/finance/portfolio?action=edit_transactions&hash="+this.Da.expected_hash+"&ed="+this.Da.edition+document.location.hash,method:"post"},Lg("input",{name:"pid",value:this.Da.id}),Lg("input",{name:"editmode",value:"trans"}));H(b,n);for(var c=0;c<a.length;++c){var d=a[c].tid;if(d){var e=Lg("input",{name:"edit_del_"+d,value:"on"});d=Lg("input",{name:"edit_id_"+d,value:d});G(b,e);G(b,d)}}G(document.body,b);b.submit()};var Am=function(){this.o=new li(this)};v(Am,E);Am.prototype.decorate=function(a){this.o.listen(a,"click",this.ac)};Am.prototype.j=function(){Am.r.j.call(this);this.o.dispose()};Am.prototype.ac=function(){if(window.confirm("Permanently delete this portfolio and all transactions in it?")){var a=F("delete-portfolio-form"),b=F("delete-portfolio-confirm");if(a&&b){b.checked=i;a.submit()}}};var Bm=function(){var a=F("deposit_cash");a&&D(a,"click",Bm.prototype.uq);(a=F("withdraw_cash"))&&D(a,"click",Bm.prototype.xq);(a=F("cancel_add_cash"))&&D(a,"click",Bm.prototype.Ho)};Bm.prototype.uq=function(){F("add_cash_row").style.display="";F("add_cash_type").value="CASH_DEPOSIT";F("type_prompt").innerHTML="Deposit:";F("add_cash_prompt").style.display="none"};
Bm.prototype.xq=function(){F("add_cash_row").style.display="";F("add_cash_type").value="CASH_WITHDRAWAL";F("type_prompt").innerHTML="Withdraw:";F("add_cash_prompt").style.display="none"};Bm.prototype.Ho=function(){F("add_cash_row").style.display="none";F("add_cash_prompt").style.display=""};
var _pfAddTransactionMenuOnchange=function(){var a=w("add-trans-t"),b=w("add_ttype");if(a&&b)0==b.selectedIndex||2==b.selectedIndex?og(a,"purchase"):qg(a,"purchase")},_pf_edit_setup_edit_module=function(){var a=w("tedit_t");if(a){var b=["edit_basic","edit_trans"],c=w("edit_basic");if(c)c.onmousedown=function(){qg(a,"details");Cm(b,"edit_basic","active-view");w("edit_editmode").value="basic"};if(c=_forid("edit_trans"))c.onmousedown=function(){og(a,"details");Cm(b,"edit_trans","active-view");w("edit_editmode").value=
"trans"}}},_pf_edit_init=function(){_pf_edit_setup_edit_module();var a=w("edit_sortlink");if(a)a.style.display=""},_pf_edit_attach_dp=function(a){if((a=w(a))&&a.tBodies[0]){a=Ag(undefined,"input_date",a);Xd(a,function(b){Dm(b.id,"")})}},Fm=function(a,b){a=new Em(a,b);a.init();return a};u("google.finance.portfolio.init",Fm);var Hm=function(){new Gm};u("google.finance.portfolio.initTransactionBar",Hm);var Im=function(){new Bm};u("google.finance.portfolio.initAddCashSection",Im);
var Jm=function(){Dm("add_date","header-calendar");Dm("add_date_cash","")};u("google.finance.portfolio.initDatePickers",Jm);var Em=function(a,b){Km();this.F=this.da=j;this.o=new li(this);this.dk=this.Df=this.Vj=this.ub=this.C=j;this.Da=a;this.Is=b;this.KA=new Gm;this.xr=j};v(Em,ef);
var Lm={"pf-overview":"sview","pf-fundamentals":"fview","pf-perf":"pview","pf-returns":"rview","pf-trans":"tview"},Mm={"pf-overview":0,"pf-fundamentals":1,"pf-perf":2,"pf-returns":3,"pf-trans":4},Nm={sview:0,fview:1,pview:2,rview:3,tview:4},Om={0:"action=view&pview=sview",2:"action=view&pview=pview",3:"action=view&pview=rview",4:"action=viewt"};
Em.prototype.init=function(){var a=google.finance.data.portfolio_view.portfolio_table;this.Is||this.mw();this.lw(a);this.xr=new Bm;if(a=F("delete-portfolio-link")){this.dk=new Am;this.dk.decorate(a)}this.Nq(2)};Em.prototype.j=function(){Em.r.j.call(this);this.o.dispose();this.da&&this.da.dispose();this.dk&&this.dk.dispose()};
Em.prototype.lw=function(a){if(this.Is){var b=F("pf-view-empty-table");if(a&&b){var c=pm({rawFooter:a,columnKeys:Pm[2],displayEmpty:i});a=Lg("div");a.innerHTML="<table><tbody>"+c+"</tbody></table>";c=Yg(a);c=c.tBodies[0];Ug(c);G(b,c);Wg(c);this.da=j}}else{b=F("pf-view-table");if(a&&b){c=Yg(this.F.Jd().T()).id;c=Mm[c];var d=Pm[c];this.da=new Vi(d,this.On(c),j,a);a=google.finance.data.portfolio_view.transaction_table.dc;d=google.finance.data.portfolio_view.portfolio_table.iw;var e=this.da.wa().length>
0;this.C=new Xi(this.da,sm,rm,{displayCash:a,isWatchlist:d,hasCompanies:e});this.C.render(b);this.Ko(c,i)}}};Em.prototype.Ko=function(a,b){b&&new ij(this.da,this.C,Qm,["tp"],Bm);this.ub=new Zi(this.da,this.C,0,this.Bu(a));if(a!=4){F("pf-compare").style.display="inline";a=new wm(this.ub,google.finance.data.common.linktargetInternal);a.decorate(F("pf-compare"));this.Vj=a;this.Df=new ym(this.Da,this.ub)}else this.Df=new zm(this.Da,this.ub);this.Df.decorate(F("pf-delete"))};
Em.prototype.Hr=function(){this.Vj&&this.Vj.dispose();this.Df&&this.Df.dispose();this.ub&&this.ub.dispose();this.ub=this.Vj=this.Df=j;F("pf-compare").style.display="none"};Em.prototype.mw=function(){var a=F("pf-tabs");if(a){var b=function(e){e.preventDefault();e.stopPropagation()};for(var c in Lm){var d=F(c);d&&D(d,"click",b)}this.F=new ll;this.F.decorate(a);this.o.listen(this.F,"select",this.Dv)}};
Em.prototype.On=function(a){return a==4?google.finance.data.portfolio_view.transaction_table.txns:google.finance.data.portfolio_view.portfolio_table.cps||[]};Em.prototype.Bu=function(a){return a==4?"tid":"cid"};var Rm=function(a,b){var c=Nm[b];if(!F("pf-returns")){if(b=="rview")return;b=="tview"&&c--}a.F.Vi(c)};u("google.finance.portfolio.selectTab",Rm);
Em.prototype.Dv=function(a){a=Yg(a.target.T());var b=a.id,c=Lm[b];Ci("","pf_views",c,"");b=Mm[b];if(b!=-1&&F("pf-view-table"))this.lz(b);else if(!F("pf-empty"))window.location=a.href;this.xr=new Bm;Jm()};Em.prototype.Nq=function(a){var b=Om[a],c=F("download"),d="disabled-url";if(b&&c&&(F("pf-returns")||a!=3)){qg(c,d);c.onclick=function(){return i};c.href="/finance/portfolio?pid="+this.Da.id+"&output=csv&"+b+Ei()}else if(c){og(c,d);c.onclick=function(){return n};c.href="#"}};
Em.prototype.lz=function(a){if(this.da){this.Hr();this.da.mc(this.On(a),Pm[a]);this.Ko(a,n)}this.Nq(a)};
var Pm=j,Qm=j,Km=function(){var a=["chk","lname","s","tp","dtf","sh","pc"];google.finance.data.portfolio_view.transaction_table.dc&&a.push("cv");a=a.concat(["com","n"]);a=[{value:"overview",keys:["chk","lname","s","lp","cp","cap","vol","op","hi","lo","dg"]},{value:"fundamentals",keys:["chk","lname","s","lp","cap","avvo","hi52","lo52","eps","pe","beta"]},{value:"performance",keys:["chk","lname","s","lp","cp","sh","b","mv","g","gp","dg","rt"]},{value:"returns",keys:["chk","lname","s","lp","r1w","r4w",
"r3m","rytd","r1y","r3y","r5y","rt"]},{value:"transactions",keys:a}];var b={rt:i,r1w:i,r4w:i,r3m:i,rytd:i,r1y:i,r3y:i,r5y:i,pc:i,cv:i},c={dtf:i,lname:i,n:i,s:i,tp:i};Pm=[];for(var d=0;d<a.length;++d){var e=new Wi(a[d].keys);e.ua(a[d].value);Pm[d]=e;Pm[d].colormap=b;Pm[d].dirmap=c}if(!Qm){b=new dj;for(d=0;d<a.length;++d){c=3;for(e=a[d].keys.length;c<e;++c)b.register(a[d].keys[c],Sm)}b.register("chk",j);b.register("lname",gj);b.register("s",gj);b.register("tp",gj);b.register("dtf",Tm);Qm=b}},Tm=function(a,
b,c,d){return Number(c.dti)-Number(d.dti)},Sm=function(a,b){if(a.so!=j&&a.so!==""&&b.so!=j&&b.so!=="")return Number(a.so)-Number(b.so);else if(a.so==="")return 1;else if(b.so==="")return-1;return hj(a,b)},Gm=function(){var a=F("pf-add-trans-toggle-btn");a&&D(a,"click",this.tz)};Gm.prototype.tz=function(){var a=F("pf-add-trans-bar");if(a)rg(a,"pf-add-trans-basic","pf-add-trans-detailed")||rg(a,"pf-add-trans-detailed","pf-add-trans-basic");if(a=F("add_editmode"))a.value="basic"==a.value?"trans":"basic"};var Zm=function(){var a=google.finance.data.portfolio_import,b=F("csv-import-table");if(a&&b){b.innerHTML=vm(a);a=Ag("select",j,F("portfolio-import").tHead);for(b=0;b<a.length;b++){Um(a[b]);D(a[b],"change",Vm)}}a=F("gf-table-chkall");D(a,"change",Wm);a=F("import-delete");D(a,"click",Xm);a=F("pform");D(a,"submit",Ym)};u("google.finance.renderPreviewTable",Zm);
var Xm=function(){for(var a=$m(),b=0;b<a.length;b++)if(a[b].checked){var c=a[b].parentNode.parentNode;og(c,"hide")}},Wm=function(a){a=a.currentTarget;a=a.checked;for(var b=$m(),c=0;c<b.length;c++)b[c].checked=a},Vm=function(a){a=a.target;for(var b=an(a),c=Ag("select",j,F("portfolio-import").tHead),d=0;d<c.length;d++)if(a!=c[d]&&b==an(c[d])){c[d].selectedIndex=0;Um(c[d])}Um(a)},$m=function(){return Ag(j,"gf-table-chk",F("portfolio-import"))},an=function(a){return a.options[a.selectedIndex].className},
Um=function(a){var b=Number(a.className)+1;a=an(a);for(var c=F("portfolio-import").tBodies[0].childNodes,d=0;d<c.length;d++){var e=c[d].childNodes[b];sg(e,a)?qg(e,"cant-parse"):og(e,"cant-parse")}},Ym=function(){for(var a=Ag(j,"gf-table-chk",F("portfolio-import")),b=0;b<a.length;b++)if(a[b].checked){var c=a[b].parentNode.parentNode;if(!sg(c,"hide"))a[b].checked=n}a=F("pform");c=google.finance.data.portfolio_import;var d=Ag("select",j,F("portfolio-import").tHead);for(b=0;b<d.length;b++){var e=d[b],
f=Number(e.className);e=an(e);if(e=="symbol")e="cid";if(e)for(var h=0;h<c.Row.length;h++){var k=c.Row[h].Cell[f]||{};G(a,Lg("input",{type:"hidden",value:k.parsed_value||"",name:"add_"+e+"_"+h}))}}};var fn=function(a,b){var c=b||new Qi;a.showPutCallZippy&&bn({type:a.type},c);c.append("<table id=opt-",L(a.type),' class="gf-table rgt"><thead>');if(!a.showPutCallZippy){c.append("<tr><th colspan=7 class=lft style='background:#d5d5d5'><div style='padding-left:5px'>");cn({type:a.type},c);c.append("</div></th></tr>")}c.append("<tr>");dn({showStrike:a.showStrike},c);c.append("</tr></thead><tbody>");for(var d=a.options,e=d.length,f=0;f<e;f++){var h=d[f];c.append("<tr>");en({quote:h,showStrike:a.showStrike},
c);c.append("</tr>")}c.append("</tbody></table>");if(!b)return c.toString()},gn=function(a,b){var c=b||new Qi;c.append("<style>#opt-calls, #opt-puts {float: left; width: 47%;}#opt-strikes {float: left; width: 5%;}#opt-strikes th {border-top: 1px solid #f2f2f2;}</style>");fn({type:"calls",showStrike:n,showPutCallZippy:n,options:a.calls},c);c.append("<table id=opt-strikes class=gf-table><thead><tr><th>&nbsp;<tr><th>",L("Strike"),"</thead><tbody>");for(var d=a.calls,e=d.length,f=0;f<e;f++){var h=d[f];
c.append("<tr><td><span>",L(h.strike),"</span>")}c.append("</tbody></table>");fn({type:"puts",showStrike:n,showPutCallZippy:n,options:a.puts},c);c.append("</table>");if(!b)return c.toString()},cn=function(a,b){var c=b||new Qi;c.append(a.type=="calls"?L("Calls"):L("Puts"));if(!b)return c.toString()},bn=function(a,b){var c=b||new Qi;c.append('<div class=gf-table-control-lite><div class=gf-control style="padding-left:5px"><span id=zippy-',L(a.type),"><img class=SP_minus_sign src=",L(_cleardot)," /> ");
cn({type:a.type},c);c.append("</span></div></div>");if(!b)return c.toString()},dn=function(a,b){var c=b||new Qi;c.append('<th class="symbol lm lft">',L("Symbol"),"<th>",L("Price"),"<th>",L("Change"),"<th>",L("Bid"),"<th>",L("Ask"),"<th>",L("Volume"),'<th class="nwp',!a.showStrike?" rm":"",'">',L("Open Int"),a.showStrike?"<th class=rm>"+L("Strike"):"");if(!b)return c.toString()},en=function(a,b){var c=b||new Qi;c.append('<td class="symbol lm lft">',L(a.quote.s),"<td><span id=ref_",L(a.quote.cid),"_l>",
L(a.quote.p),"</span><td><span class=",L(a.quote.cs),"  id=ref_",L(a.quote.cid),"_c>",L(a.quote.c),"</span><td><span id=ref_",L(a.quote.cid),"_b>",L(a.quote.b),"</span><td><span id=ref_",L(a.quote.cid),"_a>",L(a.quote.a),"</span><td><span id=ref_",L(a.quote.cid),"_vo>",L(a.quote.vol),"</span><td class=",!a.showStrike?"rm":"","><span id=ref_",L(a.quote.cid),"_oi>",L(a.quote.oi),"</span>",a.showStrike?"<td class=rm><span>"+L(a.quote.strike)+"</span>":"");if(!b)return c.toString()};var hn=j,kn=function(){hn=new jn;hn.init()};u("google.finance.onOptionChainLoad",kn);var jn=function(){this.F=j;this.Za=new M;this.gb=google.finance.data.option_chain;this.zx=F("expiration-tabs").cloneNode(i)};
jn.prototype.init=function(){if(this.F){this.F.dispose();Vg(this.zx,F("expiration-tabs"));this.zx=F("expiration-tabs").cloneNode(i);Nf(F("straddle-toggle"));Nf(F("stacked-toggle"))}else D(this.Za,"success",this.nx,n,this);this.F=new ll;this.$r();D(F("straddle-toggle"),"click",function(){ln("straddle")});D(F("stacked-toggle"),"click",function(){ln("stacked")});this.Ci("calls");this.Ci("puts")};
jn.prototype.$r=function(){function a(k){return Lg("div",{"class":"goog-tab"},Lg("a",{"class":"t"},Lg("b",{"class":"t"},Lg("b",{"class":"t"},Og(k)))))}for(var b=F("expiration-tabs"),c=0,d=this.gb.expiry,e=this.gb.expirations,f=0;f<e.length;++f){var h=e[f];Sg(a(Dd.SHORTMONTHS[h.m-1]+" "+(h.y-2000)),b.lastChild);if(h.m==d.m&&h.y==d.y)c=f}this.F.decorate(b);this.F.Vi(c);D(this.F,"select",t(this.qx,this))};jn.prototype.qx=function(a){a=a.currentTarget.dd();this.$x(this.gb.expirations[a])};
jn.prototype.$x=function(a){this.Za.abort();this.Za.send("/finance/option_chain?cid="+this.gb.underlying_id+"&expm="+a.m+"&expy="+a.y+google.finance.data.stickyUrlArgs+"&output=json")};jn.prototype.nx=function(a){var b;try{b=eval("("+a.target.Zb()+")")}catch(c){return}if(b){this.gb=google.finance.data.option_chain=b;this.init()}};
var ln=function(a){if(a=="straddle"){F("straddle-toggle").className="ac";F("stacked-toggle").className="nac";hn.Xx()}else{F("straddle-toggle").className="nac";F("stacked-toggle").className="ac";hn.Ci("calls");hn.Ci("puts")}};
jn.prototype.Ci=function(a){var b=fn({type:a,showStrike:i,showPutCallZippy:i,options:this.gb[a]}),c=F("option-chain-straddle");c.innerHTML="";H(c,n);F("option-chain-"+a).innerHTML=b;H(F("option-chain-stacked"),i);b=new hl("zippy-"+a,"opt-"+a,i);b.mm=qh;D(b,"toggle",function(d){var e=F("zippy-"+a).firstChild;d.expanded?rg(e,"SP_plus_sign","SP_minus_sign"):rg(e,"SP_minus_sign","SP_plus_sign")})};
jn.prototype.Xx=function(){var a=gn({calls:this.gb.calls,puts:this.gb.puts});F("option-chain-calls").innerHTML="";F("option-chain-puts").innerHTML="";H(F("option-chain-stacked"),n);var b=F("option-chain-straddle");b.innerHTML=a;H(b,i)};var mn=function(a,b,c,d,e,f,h,k,l){N.call(this,l);this.IA=a;this.mb=b;this.zz=c;this.sb=d;this.Vl=F(e);this.Bj=f>=0?f:0;this.ur=h;this.df=k?k:[10,20,30];this.o=new li(this);this.ki=Math.max(Math.floor(c/b)+Math.min(c%b,1)-1,0);this.yd=Math.min(Math.floor(a/b),this.ki);this.Yy();this.Bs()};v(mn,N);mn.prototype.Yy=function(){Wd(this.df,this.mb)==-1&&this.df.push(this.mb);me(this.df)};
mn.prototype.Bs=function(){if(this.mb>0)if(this.Vl){for(var a,b=0;b<this.Vl.childNodes.length;b++){var c=this.Vl.childNodes[b].tagName;if(c&&c.toLowerCase()=="tbody")a=this.Vl.childNodes[b]}if(a)if(b=this.Lt(a)){b=this.Wr(b);if(!(b<=this.Bj)){c=this.Bf();var d=this.Rg("SP_arrow_first",this.$u,this.yd==0),e=this.Rg("SP_arrow_previous",this.rv,this.yd==0),f=this.Rg("SP_arrow_next",this.lv,this.yd==this.ki),h=this.Rg("SP_arrow_last",this.gv,this.yd==this.ki),k=this.yd*this.mb+1+(" - "+(Math.min((this.yd+
1)*this.mb,this.zz)+(" of "+(this.zz+" rows")))),l=this.Ym("tpsrd","Show rows:");k=this.Ym("tpsd",k);b=this.g.i("td",{"class":"rgt",colspan:b-this.Bj},h,f,k,e,d,c,l);b=this.g.i("tr",{"class":"tptr"},b);this.Bj>0&&b.appendChild(this.g.i("td",{colspan:this.Bj}));a.appendChild(b)}}}};mn.prototype.Lt=function(a){if(a&&a.childNodes)for(var b=0;b<a.childNodes.length;b++){var c=a.childNodes[b];if(c&&c.tagName){var d=c.tagName.toLowerCase();if(d=="tr")return c}}return j};
mn.prototype.Wr=function(a){var b=0;if(a&&a.childNodes)for(var c=0;c<a.childNodes.length;c++){var d=a.childNodes[c];if(d&&d.tagName){d=d.tagName.toLowerCase();if(d=="th"||d=="td")b++}}return b};mn.prototype.Bf=function(){for(var a=this.g.i("select",{"class":"tpdd"}),b=0;b<this.df.length;b++)a.appendChild(this.g.i("option",{value:this.df[b],selected:this.mb==this.df[b]},this.g.createTextNode(String(this.df[b]))));this.o.listen(a,"change",this.Yu);return a};
mn.prototype.Rg=function(a,b,c){var d=c?"tpbdd":"tpbd";a=this.g.i("div",{"class":d},this.g.i("div",{"class":a+(c?"_off":"")}));c||this.o.listen(a,"click",b);return a};mn.prototype.Ym=function(a,b){return this.g.i("div",{"class":a},this.g.createTextNode(b))};mn.prototype.Af=function(a,b,c){a=new R(a);a.K("start",b);a.K("num",c);return a.toString()};mn.prototype.cg=function(a){if(this.ur)this.ur.call(this,a);else window.location.href=a};
mn.prototype.Yu=function(a){a=this.Af(this.sb,0,a.currentTarget.value);this.cg(a)};mn.prototype.$u=function(){var a=this.Af(this.sb,0,this.mb);this.cg(a)};mn.prototype.rv=function(){var a=this.Af(this.sb,this.mb*Math.max(this.yd-1,0),this.mb);this.cg(a)};mn.prototype.lv=function(){var a=this.Af(this.sb,this.mb*Math.min(this.yd+1,this.ki),this.mb);this.cg(a)};mn.prototype.gv=function(){var a=this.Af(this.sb,this.ki*this.mb,this.mb);this.cg(a)};function nn(a,b,c,d,e,f,h,k){new mn(a,b,c,d,e,f,h,k)}
u("google.finance.applyPagination",nn);var on=function(a,b,c,d,e){N.call(this,e);this.Jb=[];this.Ea=[];this.Xz=b;this.Ha=a;this.pw=c!==undefined?c:n;this.oA=d!==undefined?d:n;this.o=new li(this);this.Za=j;this.Rp=0;this.lb=this.Tl=this.xi=this.un=this.vn=this.Sb=this.Uj=j;u("google.finance.searchTicker",t(this.Wp,this));u("google.finance.showLess",t(this.be,this))};v(on,N);on.prototype.j=function(){on.r.j.call(this);this.o.dispose();google.finance.searchTicker=undefined;google.finance.setChartErrorMessage=undefined};
on.prototype.gr=function(a){for(var b=0;b<a.length;++b){if(this.Jb.length==9)return;a[b]&&a[b].ticker&&a[b].name&&a[b].ticker!=""&&this.Jb.push({id:a[b].id,ticker:a[b].ticker,name:a[b].name,checked:Boolean(a[b].checked),is_index:a[b].is_index,different_market_session:a[b].different_market_session,disabled:a[b].ticker==this.Xz})}};
on.prototype.im=function(a){for(var b=0;b<this.Jb.length;++b){var c=this.Jb[b];if(c.ticker==a[0]){c.checked||this.Cg(c);return}}for(b=0;b<this.Ea.length;++b){c=this.Ea[b];if(c.ticker==a[0]){c.checked||this.Cg(c);this.Zi()&&this.ug();return}}if(this.Ea.length==5){for(b=0;b<this.Ea.length&&this.Ea[b].checked;)++b;if(b==this.Ea.length){this.Cg(this.Ea[0]);b=0}de(this.Ea,b,1)}a={id:a.length>=5?a[4]:undefined,ticker:a[0],name:a[1],different_market_session:a[3]=="1",checked:n};this.Ea.push(a);this.Lx();
this.Cg(a);this.Zi()&&this.ug()};on.prototype.i=function(){this.fa(this.g.B("div"))};on.prototype.fa=function(a){this.A=a;this.Uj=this.g.B("div",{"class":"gf-chart-qc"});this.lb=this.g.B("div",{"class":"gf-chart-more linkbtn"});this.lb.style.display="none";this.Yr();this.is();this.rs();this.Dm();if(a=Yg(a))Ug(a);else a=j;G(this.Tl.firstChild,this.xi);G(this.A,this.Uj);a&&G(this.A,a);G(this.A,this.lb);G(this.A,this.Tl)};
on.prototype.P=function(){this.o.listen(document.forms["gf-chart-ts"],"submit",this.uo);this.o.listen(window,"resize",this.Pk);this.o.listen(this.un,"click",this.xo);this.Pk()};on.prototype.ja=function(){this.o.unlisten(document.forms["gf-chart-ts"],"submit",this.uo);this.o.unlisten(window,"resize",this.Pk);this.o.unlisten(this.un,"click",this.xo)};
on.prototype.Yr=function(){this.Sb=this.g.B("div",{"class":"gf-chart-err"},this.g.B("div",{"class":"gf-chart-err-btn SP_close"}),this.g.B("span",{"class":"gf-chart-err-txt"}));this.Sb.style.lineHeight="1em";this.Sb.style.whiteSpace="normal";this.Sb.style.display="none";this.vn=this.Sb.lastChild;this.un=this.Sb.firstChild};
on.prototype.is=function(){var a=this.g.B("input",{autocomplete:"off",id:"add_comparison_symbol",name:"gf-chart-ts-query",size:12,type:"text"});this.o.listen(a,"focus",this.yo);this.o.listen(a,"blur",this.yo);var b=new V(this.pw?"Enter currency":"Enter ticker here");b.decorate(a);b=this.g.B("input",{id:"add_comparison_button",value:"Add",type:"submit"});b.value="Add";var c=this.g.B("span",{"class":"bld add_comparison_prompt"},this.g.createTextNode("Compare:"));a=this.g.B("form",{id:"gf-chart-ts",
name:"gf-chart-ts"},c,a,b);this.xi=this.g.B("div",{"class":"gf-chart-qcb"});G(this.Uj,this.g.B("div",{},a));G(this.Uj,this.Sb)};on.prototype.yo=function(){sg(this.A,"gf-chart-collapsed")&&this.be()};on.prototype.rs=function(){var a=this.g.B("div",{"class":"gf-chart-sbi"});this.Tl=this.g.B("div",{"class":"gf-chart-sb"},a);for(var b=0;b<this.Jb.length;++b){G(a,this.Zm(this.Jb[b]));G(a,this.g.createTextNode(" "))}};
on.prototype.Zm=function(a){var b="gf-chart-ticker"+this.Rp++,c=this.g.B("input",{type:"checkbox",name:b,id:b});c.disabled=a.disabled;c.checked=a.checked;c.defaultChecked=a.checked;c.value=a.ticker;b=this.g.B("label",{"for":b,"class":a.is_index?"gf-chart-ticker index":"gf-chart-ticker"});b.innerHTML=a.name;this.o.listen(c,"click",this.Oh);return a.dom=this.g.B("p",{"class":"gf-chart-ticker"},c,b)};
on.prototype.Lx=function(){this.xi.innerHTML="";for(var a=0;a<this.Ea.length;++a){var b=this.Ea[a];G(this.xi,this.Zm(b));G(this.xi,this.g.createTextNode(" "));b.dom.firstChild.checked=b.checked}};on.prototype.Cg=function(a){if(a.checked){a.checked=n;a.dom.firstChild.checked=n;this.Ha.Px(a.ticker)}else{a.checked=i;a.dom.firstChild.checked=i;this.Ha.rj(a.ticker,a.name,a.different_market_session);this.jl("compare_cb",a.ticker)}if(this.oA){this.Hz();this.Gz(a)}};
on.prototype.Gz=function(a){var b=F("related-select");if(b=b?b.options[b.selectedIndex].value:j){var c=r("google.finance");c.updateComparisonCompanyIds(a.id,a.checked);c.refreshComparisonTable(b)}};on.prototype.Hz=function(){this.Dm();var a=this.Ha.Cc("defaultEndTime"),b=this.Ha.Cc("defaultStartTime"),c=this.Ha.Cc("numDays");pn(new Date(b),new Date(a),c)};
on.prototype.Dm=function(){if(_companyId!=j){_companyId=_companyId.toString();var a=_companyId.indexOf(",");if(a!=-1)_companyId=_companyId.substr(0,a);a=[_companyId];for(var b=0;b<this.Jb.length;++b){var c=this.Jb[b];c.checked&&c.id!=_companyId&&a.push(c.id)}for(b=0;b<this.Ea.length;++b){c=this.Ea[b];c.checked&&c.id!=_companyId&&a.push(c.id)}_companyId=a.join(",")}};
on.prototype.Wp=function(a){if(a.length>0){var b=this.Ha.main_layer_ticker,c=b.split(":");if(c[0]=="MUTF")b=c[1];b="/finance/validate?q="+escape(a)+"&basetkr="+escape(b)+"&auto=1&hl="+r("locale.hl")+"&gl="+r("locale.gl");if(!this.Za){this.Za=new M;this.o.listen(this.Za,"error",function(){this.Ji("Failed validating ticker, please try again later.")})}this.Za.abort();If(this.Za,"success",t(this.Hv,this,a));this.Za.send(b)}};
on.prototype.Hv=function(a,b){b=kd(b.target.Zb()).split("|");var c=b.length>=3&&b[2]=="1";if(c){if(b[0]==this.Ha.main_layer_ticker)this.Ji("Cannot compare a ticker to itself.");else{this.im(b);this.jl("compare_text",b[0])}document.forms["gf-chart-ts"]["gf-chart-ts-query"].value=""}else{if(b[0]!=""){b='Comparing to "'+(a+'" is not supported.');this.Ji(b)}else{b='Ticker symbol "'+(a+'" unknown.');c='Currency "'+(a+'" unknown.');this.Ji(this.pw?c:b)}this.jl("compare_error",a)}};
on.prototype.Ji=function(a){this.vn.innerHTML="";G(this.vn,this.g.createTextNode(a));this.Sb.style.display="block";this.ug()};on.prototype.Zi=function(){var a=this.Tl.firstChild,b=j;if(a)if(this.Jb.length>0)b=a.firstChild;else if(this.Ea.length>0)b=a.firstChild?a.firstChild.firstChild:j;return!!b&&a.scrollHeight>b.offsetHeight};
on.prototype.be=function(){this.o.unlisten(this.lb,"click",this.be);this.o.listen(this.lb,"click",this.ug);og(this.A,"gf-chart-collapsed");this.lb.innerHTML="more &raquo;";this.Sb.style.display="none";this.lb.style.display=this.Zi()?"":"none"};on.prototype.ug=function(){this.o.unlisten(this.lb,"click",this.ug);this.o.listen(this.lb,"click",this.be);qg(this.A,"gf-chart-collapsed");this.lb.style.display="";this.lb.innerHTML="&laquo; less"};
on.prototype.Oh=function(a){a=a.currentTarget.value;for(var b=j,c=0;c<this.Jb.length;++c)if(this.Jb[c].ticker==a)b=this.Jb[c];if(!b)for(c=0;c<this.Ea.length;++c)if(this.Ea[c].ticker==a)b=this.Ea[c];b&&this.Cg(b)};on.prototype.uo=function(a){this.Wp(document.forms["gf-chart-ts"]["gf-chart-ts-query"].value);a.stopPropagation();a.preventDefault()};on.prototype.xo=function(){this.Sb.style.display="none";this.be()};
on.prototype.Pk=function(){if(this.Sb.style.display=="none")if(this.Zi())this.lb.style.display=="none"&&this.be();else{this.be();this.lb.style.display="none"}};on.prototype.jl=function(a,b){b=this.Ha.main_layer_ticker+"-"+b;Ci(j,a,b,"")()};var X=function(a,b){N.call(this,b);this.tg=[];this.dj=[];this.ea=[];this.Rp=0;this.ee=this.Kb=j;this.Ve=[];this.Fa=this.jp=j;this.Ha=a;this.o=new li(this);this.Ms=this.Cs=n;qn("noFeedDataReturned",t(this.Wy,this));rn("chartTypeChanged",t(this.Ez,this));u("google.finance.setLinkToChart",t(this.Mi,this));u("google.finance.initTechnicals",t(this.nw,this));u("google.finance.clickSettingsLink",t(this.Lr,this));u("google.finance.clickPlotFeedsLink",t(this.Kr,this));u("google.finance.clickTechnicalsLink",
t(this.Mr,this));u("google.finance.clickLinkToChartLink",t(this.Jr,this))};v(X,N);X.prototype.j=function(){X.r.j.call(this);this.o.dispose();delete google.finance.setLinkToChart;delete google.finance.clickSettingsLink;delete google.finance.clickPlotFeedsLink;delete google.finance.clickTechnicalsLink;delete google.finance.clickLinkToChartLink};X.prototype.fr=function(a){this.tg=a;this.Ms=this.tg.chartType!=undefined};
X.prototype.Ny=function(a,b,c,d){this.Kb=a;this.dj=b;this.ee=c;if(d)this.Ve=d;this.Fa={};for(var e in a)this.Fa[e]=[]};X.prototype.i=function(){this.fa(this.g.i("div"))};X.prototype.fa=function(a){this.A=a;this.Ms?this.ps():this.os();this.hs();this.us();this.ds();G(this.A,this.qd);G(this.A,this.Wd);G(this.A,this.Ag);G(this.A,this.Ue)};
X.prototype.P=function(){this.o.listen(this.Yi,"click",this.Ba);this.o.listen(this.yp,"click",this.Ba);this.o.listen(this.Fq,"click",this.Ba);this.o.listen(this.ap,"click",this.Ba);this.o.listen(this.bg,"click",this.Mi)};X.prototype.ja=function(){this.o.unlisten(this.Yi,"click",this.Ba);this.o.unlisten(this.yp,"click",this.Ba);this.o.unlisten(this.Fq,"click",this.Ba);this.o.unlisten(this.ap,"click",this.Ba);this.o.unlisten(this.bg,"click",this.Mi)};
X.prototype.os=function(){this.qd=this.g.i("div",{"class":"gf-chart-settings"});for(var a=this.g.i("table",{"class":"gf-chart-settings"},this.g.i("tbody",j)),b=a.firstChild,c=this.g.i("tr",j),d=0;d<3;d++)c.appendChild(this.g.i("td",{"class":"gf-chart-settings-controller-td"},this.Ik(d*3)));this.Yi=this.g.i("div",{"class":"gf-chart-settings-clsbtn SP_delete"});c.appendChild(this.g.i("td",{"class":"gf-chart-settings-td"},this.Yi));b.appendChild(c);for(d=3;d<9;d++){d%3==0&&b.appendChild(this.g.i("tr",
j));b.lastChild.appendChild(this.g.i("td",{"class":"gf-chart-settings-controller-td"},this.Ik(d%3*3+Math.floor(d/3))))}this.qd.appendChild(a);this.qd.style.display="none"};
X.prototype.ps=function(){this.qd=this.g.i("div",{"class":"gf-chart-settings"});var a=this.g.i("table",{"class":"gf-chart-settings"},this.g.i("tbody",j)),b=a.firstChild;this.Yi=this.g.i("div",{"class":"gf-chart-settings-clsbtn SP_delete"});var c=this.g.i("td",{"class":"gf-chart-settings-td"},this.bs()),d=this.g.i("td",{"class":"gf-chart-settings-td"},this.ks()),e=this.g.i("td",{"class":"gf-chart-settings-td"},this.Yi);b.appendChild(this.g.i("tr",j,c,d,e));this.qd.appendChild(a);this.qd.style.display=
"none"};X.prototype.bs=function(){for(var a=this.g.i("table",{"class":"gf-chart-settings"},this.g.i("tbody",j)),b=a.firstChild,c=0;c<3;c++){b.appendChild(this.g.i("tr",j));for(var d=0;d<2;d++)b.lastChild.appendChild(this.g.i("td",{"class":"gf-chart-settings-newcontroller-td"},this.Ik(c+d*3)))}return a};
X.prototype.ks=function(){this.yb=this.g.i("tbody",j);var a=this.g.i("table",{"class":"gf-chart-settings"},this.yb),b=this.Tg("verticalScaling",this.rm),c=this.Tg("chartType",this.rm);this.Xg=this.Tg("defaultZoomDays",this.qm);this.Wg=this.Tg("defaultInterval",this.qm);if(b){this.yb.appendChild(b);c&&this.yb.appendChild(this.Tm(5))}if(c){this.Mj=c.lastChild;this.yb.appendChild(c);this.yb.appendChild(this.Tm(5));b=this.tg.chartType.selected;if(!b||b=="IntervalBasedLine")this.Xg&&this.yb.appendChild(this.Xg);
else this.Wg&&this.yb.appendChild(this.Wg)}return a};X.prototype.Tm=function(a){return this.g.i("tr",j,this.g.i("td",{height:a}))};X.prototype.Tg=function(a,b){if(this.tg[a]){var c=this.tg[a],d=this.g.i("label",j);bh(d,c.name);d=this.g.i("td",{"class":"gf-chart-settings-label-td"},d);var e=this.g.i("td",{"class":"gf-chart-settings-newcontroller-td"});b.call(this,e,a,c);return this.g.i("tr",j,d,e)}};
X.prototype.rm=function(a,b,c){b=this.Vm("gf-chart-settings-radiobutton"+b,c.paramName,c.options,c.values,c.selected,c.clickType,this.Rh,"gf-chart-settings-radiobutton");for(c=0;c<b.length;c+=2){var d=this.g.i("div",{});d.appendChild(b[c]);d.appendChild(b[c+1]);a.appendChild(d)}};X.prototype.qm=function(a,b,c){b=this.Bf("gf-chart-settings-dropdown"+b,c.paramName,c.options,c.values,c.selected,c.clickType,this.Rh);c=this.g.i("div",{"class":"gf-chart-settings-dropdown"});c.appendChild(b);a.appendChild(c)};
X.prototype.Vm=function(a,b,c,d,e,f,h,k){d||(d=c);var l=0;if(e){e=e.toLowerCase();for(var m=0;m<d.length;m++)if(e==d[m].toLowerCase()){l=m;break}}e=[];for(m=0;m<c.length;m++){var o=a+"_"+m,q=this.g.i("input",{type:"radio",id:o,name:b,value:d[m],checked:m==l,defaultChecked:m==l,clickType:f});this.o.listen(q,"click",h);o=this.g.i("label",{"for":o,"class":k});bh(o,c[m]||"");e.push(q);e.push(o)}return e};
X.prototype.Bf=function(a,b,c,d,e,f,h){a=this.g.i("select",{id:a,name:b,clickType:f});if(d)for(b=0;b<d.length;b++)a.appendChild(this.g.i("option",{value:d[b],selected:e==d[b]},this.g.createTextNode(c[b])));this.o.listen(a,"change",h);return a};X.prototype.Ik=function(a){var b=this.tg[a];return!b||b.blank?this.g.createTextNode(""):b.checked!=undefined?this.ls(a,b):b.isradioselection!=undefined?this.ns(a,b):this.ms(a,b)};
X.prototype.ls=function(a,b){var c="gf-chart-settings-checkbox"+a;a=this.g.i("input",{type:"checkbox",id:c,name:b.paramName,checked:b.checked,defaultChecked:b.checked,clickType:b.clickType});this.o.listen(a,"click",this.uv);c=this.g.i("label",{"for":c,"class":"gf-chart-settings-checkbox"});bh(c,b.name);return this.g.i("p",{"class":"gf-chart-settings-checkbox"},a,c)};
X.prototype.ns=function(a,b){var c=this.g.i("p",{"class":"gf-chart-settings-radiobutton"});bh(c,b.name);a=this.Vm("gf-chart-settings-radiobutton"+a,b.paramName,b.options,b.values,b.selected,b.clickType,this.Rh,"gf-chart-settings-radiobutton");for(b=0;b<a.length;b+=2){c.appendChild(a[b]);c.appendChild(a[b+1]);c.appendChild(this.g.createTextNode(" "))}return c};
X.prototype.ms=function(a,b){var c="gf-chart-settings-dropdown"+a;a=this.Bf(c,b.paramName,b.options,b.values,b.selected,b.clickType,this.Rh);c=this.g.i("label",{"for":c});bh(c,b.name);return this.g.i("p",{"class":"gf-chart-settings-dropdown"},c,a)};X.prototype.qe=function(a,b,c){a=this.g.B("input",{"class":c,value:a,type:"button"});this.o.listen(a,"click",b);return a};
X.prototype.hs=function(){this.Wd=this.g.i("div",{"class":"gf-chart-plotfeeds"});var a=this.g.i("table",{"class":"gf-chart-plotfeeds"},this.g.i("tbody",j)),b=a.firstChild;this.hg=this.g.i("input",{size:36,maxLength:1024,type:"text",autocomplete:"off"});var c=this.g.i("td",{"class":"gf-chart-plotfeeds-inputbox-td"},this.hg),d=this.qe("Plot feed",this.qv,"gf-chart-plotfeeds-pcbtn"),e=this.qe("Clear flags",this.Tu,"gf-chart-plotfeeds-pcbtn");d=this.g.i("td",{"class":"gf-chart-plotfeeds-button-td"},d,
e);this.yp=this.g.i("div",{"class":"gf-chart-plotfeeds-clsbtn SP_delete"});e=this.g.i("td",{"class":"gf-chart-settings-td"},this.yp);b.appendChild(this.g.i("tr",j,c,d,e));this.Wd.appendChild(a);this.Wd.style.display="none";this.Zr()};X.prototype.Zr=function(){var a=this.g.i("span",{"class":"gf-chart-plotfeeds-errtxt"},this.g.createTextNode("The feed address you entered has returned no data."));a=this.g.i("td",{"class":"gf-chart-plotfeeds-errtxt",colspan:3},a);this.Dx=this.g.i("tr",j,a)};
X.prototype.ds=function(){this.Ue=this.g.i("div",{"class":"gf-chart-linktochart"});var a=this.g.i("table",{"class":"gf-chart-linktochart"},this.g.i("tbody",j)),b=a.firstChild,c=this.g.i("td",{"class":"gf-chart-linktochart"},this.g.createTextNode("Paste link in email, IM or website"));this.ap=this.g.i("div",{"class":"gf-chart-linktochart-clsbtn SP_delete"});var d=this.g.i("td",{"class":"gf-chart-settings-td"},this.ap);this.bg=this.g.i("input",{size:52,maxLength:1024,type:"text",autocomplete:"off",
value:location.protocol+"//"+location.host+"/"+_getLinkToChart()});var e=this.g.i("td",{"class":"gf-chart-linktochart"},this.bg);b.appendChild(this.g.i("tr",j,c,d));b.appendChild(this.g.i("tr",j,e));this.Ue.appendChild(a);this.Ue.style.display="none"};
X.prototype.us=function(){this.Ag=this.g.i("div",{"class":"gf-chart-technicals"});this.ej=this.g.i("div",j);if(this.dj&&this.dj.length>0)for(var a=0;a<this.dj.length;a++){var b=this.dj[a];(b=this.$j(b.name,b.param))&&this.ej.appendChild(b)}else this.ej.appendChild(this.$j());this.Fq=this.g.i("div",{"class":"gf-chart-technicals-clsbtn SP_delete"});a=this.g.i("label",{"class":"gf-chart-technicals-label"},this.g.createTextNode("Add technical"));this.o.listen(a,"click",this.Ou);a=this.g.i("div",j,a);
b=this.g.i("table",{"class":"gf-chart-technicals"},this.g.i("tbody",j));var c=b.firstChild;c.appendChild(this.g.i("tr",j));c.firstChild.appendChild(this.g.i("td",j,this.ej,a));c.firstChild.appendChild(this.g.i("td",{"class":"gf-chart-settings-td"},this.Fq));this.Ag.appendChild(b);this.Ag.style.display="none"};
X.prototype.ss=function(a,b){a=this.g.i("input",{type:"checkbox",id:a,"class":"gf-chart-technicals-checkbox",checked:b,defaultChecked:b});this.o.listen(a,"click",this.Fv);return this.g.i("td",{"class":"gf-chart-technicals-checkbox-td"},a)};
X.prototype.ts=function(a,b){a=this.g.i("select",{id:a,"class":"gf-chart-technicals-dropdown"});a.appendChild(this.g.i("option",j,this.g.createTextNode("Select technical...")));for(var c in this.Kb){var d=this.ee[c].displayName;a.appendChild(this.g.i("option",{value:c,selected:c==b},this.g.createTextNode(d?d:c)))}this.o.listen(a,"change",this.Gv);return a};
X.prototype.js=function(a){a=this.g.i("label",{id:a,"class":"gf-chart-technicals-label"},this.g.createTextNode("Remove technical"));this.o.listen(a,"click",this.Wu);return a};
X.prototype.$j=function(a,b){var c;if(a&&b){if(this.Kb[a]==undefined)return;var d=this.Kb[a].length;c=b.split("*");if(c.length!=d+1)return}b=this.Rp++;if((d=c&&c[0]=="true")&&this.Ve){var e=Wd(this.Ve,a);if(e>=0)if(this.jp){if(this.jp!=a)d=n}else this.jp=this.Ve[e]}d&&this.Fa[a].push(b);e=this.ts(this.Ct(b),a);var f=this.js(this.Ut(b)),h=this.g.i("table",{"class":"gf-chart-technicals-table"},this.g.i("tbody",j)),k=h.firstChild;k.appendChild(this.g.i("tr",j,this.ss(this.Lf(b),d==i),this.g.i("td",j,
e,f)));k.appendChild(this.g.i("tr",j));if(c){c.splice(0,1);this.ea[b]={name:a||"",checked:d};this.Wm(k.lastChild,String(b),a||"",c)}return this.g.i("div",{id:this.xk(b),"class":"gf-chart-technicals-div"},h)};
X.prototype.ov=function(a){if(a.currentTarget.value!=a.currentTarget.lastValue){_GF_click("","t-e",a.currentTarget.logName,"");var b=parseInt(a.currentTarget.value,10);if(b>0&&b!=Number.POSITIVE_INFINITY){a.currentTarget.value=b.toString();a.currentTarget.lastValue=a.currentTarget.value;a=this.Pt(a.currentTarget.id);this.Ep(a);this.ea[a]&&this.Hl([this.ea[a].name])}else a.currentTarget.value=a.currentTarget.lastValue}};X.prototype.pv=function(a){a.keyCode==13&&a.currentTarget.blur()};
X.prototype.Ou=function(){this.ej.appendChild(this.$j());bl()};X.prototype.Wu=function(a){var b=this.Qt(a.currentTarget.id);a=this.g.$a(this.Lf(Number(b))).checked;this.Bi(b);var c=this.ea[b]?this.ea[b].name:j;if(this.ea[b]){this.ea[b]=j;this.Hl([c])}b=this.g.$a(this.xk(Number(b)));this.ej.removeChild(b);c&&a&&_GF_click("","t-d",this.ee[c].logName,"");bl()};
X.prototype.Fv=function(a){var b=this.Nt(a.currentTarget.id);if(this.ea[b]==undefined)a.currentTarget.checked=n;else{var c=this.ea[b].name,d=[c];if(a.currentTarget.oldIndicatorId){d.push(a.currentTarget.oldIndicatorId);a.currentTarget.oldIndicatorId=j}if(a.currentTarget.checked){this.ea[b].checked=i;for(var e=[],f=0;f<this.Fa[c].length;f++)e.push(this.Fa[c][f]);if(c=="SMA"||c=="EMA")e=e.length>3?e.splice(0,e.length-3):[];else if(c=="VMA")e=e.length>2?e.splice(0,e.length-2):[];if(Wd(this.Ve,c)!=-1)for(var h=
0;h<this.Ve.length;h++){var k=this.Ve[h];if(k!=c&&this.Fa[k]&&this.Fa[k].length>0){d.push(k);for(f=0;f<this.Fa[k].length;f++)e.push(this.Fa[k][f])}}for(f=0;f<e.length;f++)this.Bi(e[f]);this.Fa[c].push(b);b=this.Kb[c].length;e="true";for(f=0;f<this.Fa[c].length;f++){k=this.Ge(this.Fa[c][f]);for(h=0;h<b;h++){e+="*";e+=this.g.$a(k+"_"+h).value}}this.Ha.call("enableIndicator",c,e)}else this.Bi(b);this.Hl(d);if(a.currentTarget.checked)if(a.currentTarget.skipLogToggleOn)a.currentTarget.skipLogToggleOn=
undefined;else _GF_click("","t-on",this.ee[c].logName,"");else _GF_click("","t-off",this.ee[c].logName,"");bl()}};
X.prototype.Gv=function(a){var b=this.Ot(a.currentTarget.id),c=this.g.$a(this.Lf(Number(b))).checked,d=this.ea[b]?this.ea[b].name:j,e=this.Kb[a.currentTarget.value]?a.currentTarget.value:j;this.Bi(b);this.ea[b]=j;var f=this.g.$a(this.xk(Number(b)));f=f.firstChild.firstChild;f.removeChild(f.lastChild);f.appendChild(this.g.i("tr",j));a=a.currentTarget.value;if(this.Kb[a]){this.ea[b]={name:a,checked:n};this.Wm(f.lastChild,b,a,j)}b=this.g.$a(this.Lf(Number(b)));b.skipLogToggleOn=i;b.oldIndicatorId=d;
b.click();d&&c&&_GF_click("","t-d",this.ee[d].logName,"");e&&_GF_click("","t-a",this.ee[e].logName,"");bl()};X.prototype.Tt=function(a){return this.g.$a(a).value};
X.prototype.lu=function(a){var b=[],c=this.Kb[a];if(c.length==0)return b;for(var d=c[0].value.length,e=d-1,f=this.Fa[a],h,k,l=0;l<d-1;l++){for(h=0;h<f.length;h++){var m=this.Ge(f[h]);for(k=0;k<c.length;k++)if(this.Tt(m+"_"+k)!=c[k].value[l])break;if(k==c.length)break}if(h==this.Fa[a].length){e=l;break}}for(k=0;k<c.length;k++)b.push(""+c[k].value[e]);return b};
X.prototype.Wm=function(a,b,c,d){var e=this.g.i("td",j),f=this.g.i("td",j);b=this.Ge(Number(b));d||(d=this.lu(c));for(var h=this.Kb[c],k=0;k<h.length;k++){f.appendChild(this.g.i("input",{id:b+"_"+k,"class":"gf-chart-technicals-inputbox",maxLength:3,size:2,type:"text",value:d[k]}));f.lastChild.lastValue=d[k];f.lastChild.logName=this.ee[c].logName+(h.length>1?"-"+(k+1):"");this.o.listen(f.lastChild,"blur",this.ov);this.o.listen(f.lastChild,"keypress",this.pv);f.appendChild(this.g.i("span",{"class":"gf-chart-technicals-textspan"},
this.g.createTextNode(h[k].name)))}a.appendChild(e);a.appendChild(f)};X.prototype.Ep=function(a){var b;if(a!=undefined){if(!this.ea[a])return;if(!this.ea[a].checked)return;b=this.ea[a].name}for(var c in this.Fa)if(!(b&&c!=b)){a=this.Fa[c];if(a.length!=0){this.Ha.call("enableIndicator",c,"false");for(var d=this.Kb[c].length,e="true",f=0;f<a.length;f++)for(var h=this.Ge(a[f]),k=0;k<d;k++){e+="*";e+=this.g.$a(h+"_"+k).value}this.Ha.call("enableIndicator",c,e)}}};
X.prototype.Bi=function(a){var b=this.ea[a];if(b!=undefined){var c=this.g.$a(this.Lf(Number(a)));c.checked=n;b.checked=n;b=b.name;c=this.Fa[b];for(var d="",e=0;e<c.length;e++)if(c[e]==a){c.splice(e,1);e--}else for(var f=this.Kb[b].length,h=this.Ge(c[e]),k=0;k<f;k++){d+="*";d+=this.g.$a(h+"_"+k).value}d=d==""?"false":"true"+d;this.Ha.call("enableIndicator",b,d)}};
X.prototype.Hl=function(a){for(var b={},c=0;c<this.ea.length;c++)if(this.ea[c]!=undefined){var d=this.ea[c].name;if(b[d]==undefined)b[d]="";else b[d]+="@";b[d]+=this.ea[c].checked;for(var e=this.Kb[d].length,f=this.Ge(c),h=0;h<e;h++){b[d]+="*";b[d]+=this.g.$a(f+"_"+h).value}}if(a){c={};for(d=0;d<a.length;d++){e=b[a[d]]?b[a[d]]:"";c[a[d]]=e}this.Sp(c)}else this.Sp(b)};X.prototype.Nt=function(a){return a.replace("gf-chart-technicals-checkbox","")};
X.prototype.Ot=function(a){return a.replace("gf-chart-technicals-dropdown","")};X.prototype.Qt=function(a){return a.replace("gf-chart-technicals-label","")};X.prototype.Pt=function(a){a=a.replace("gf-chart-technicals-inputbox","");return a.split("_")[0]};X.prototype.Lf=function(a){return"gf-chart-technicals-checkbox"+a};X.prototype.xk=function(a){return"gf-chart-technicals-div"+a};X.prototype.Ct=function(a){return"gf-chart-technicals-dropdown"+a};
X.prototype.Ge=function(a){return"gf-chart-technicals-inputbox"+a};X.prototype.Ut=function(a){return"gf-chart-technicals-label"+a};X.prototype.dg=function(){if(!this.Cs){this.decorate(F("settings-panel"));this.Cs=i}};X.prototype.nw=function(){this.dg();this.Ep();bl()};
X.prototype.Jr=function(){this.dg();if(this.Ue.style.display=="block")this.Ba(j);else{this.Ba(j);this.Ue.style.display="block";this.A.style.display="block";F("link-to-chart-img").className="SP_link_on";F("link-to-chart-link").className="chart-footer-link-selected";this.Mi(j);bl()}};X.prototype.Mr=function(){this.dg();if(this.Ag.style.display=="block")this.Ba(j);else{this.Ba(j);this.Ag.style.display="block";this.A.style.display="block";F("technicals-link").className="chart-footer-link-selected";bl()}};
X.prototype.Kr=function(){this.dg();if(this.Wd.style.display=="block")this.Ba(j);else{this.Ba(j);this.Wd.style.display="block";this.A.style.display="block";F("plot-feeds-link").className="chart-footer-link-selected";bl()}};X.prototype.Lr=function(){this.dg();if(this.qd.style.display=="block")this.Ba(j);else{this.Ba(j);this.qd.style.display="block";this.A.style.display="block";F("settings-link").className="chart-footer-link-selected";bl()}};
X.prototype.Ba=function(){this.qd.style.display="none";this.Wd.style.display="none";this.Ag.style.display="none";this.Ue.style.display="none";this.A.style.display="none";if(F("settings-link"))F("settings-link").className="chart-footer-link";if(F("plot-feeds-link"))F("plot-feeds-link").className="chart-footer-link";if(F("technicals-link"))F("technicals-link").className="chart-footer-link";if(F("link-to-chart-link"))F("link-to-chart-link").className="chart-footer-link";if(F("link-to-chart-img"))F("link-to-chart-img").className=
"SP_link";bl()};X.prototype.qv=function(){if(this.hg.value&&this.hg.value!=""){this.Io();r("google.finance.chart").plotRssFeed(this.hg.value);this.If(this.hg)}};X.prototype.Tu=function(){this.Io();r("google.finance.chart").clearFlags();this.If(this.hg);sn()};X.prototype.Io=function(){var a=this.Wd.firstChild.firstChild;a.childNodes.length==2&&a.removeChild(this.Dx)};X.prototype.Wy=function(){var a=this.Wd.firstChild.firstChild;a.childNodes.length==1&&a.appendChild(this.Dx)};
X.prototype.Ez=function(a){if(this.Mj)switch(a.chartType){case "IntervalBasedLine":this.Mj.childNodes[0].firstChild.click();break;case "CandleStick":this.Mj.childNodes[1].firstChild.click();break;case "Ohlc":this.Mj.childNodes[2].firstChild.click();break}};X.prototype.uv=function(a){var b=a.currentTarget.name,c=a.currentTarget.checked?"true":"false";this.Ha.setParameter(b,c);this.Gl(b,c);if(a.currentTarget.clickType)_GF_click("","chs_"+a.currentTarget.clickType,a.currentTarget.checked?"1":"0","")};
X.prototype.Rh=function(a){var b=a.currentTarget.name,c=a.currentTarget.value;if(b=="chartType"){var d=this.yb.lastChild;if(c=="IntervalBasedLine"){if(d==this.Wg){this.yb.removeChild(this.Wg);this.yb.appendChild(this.Xg)}}else if(d==this.Xg){this.yb.removeChild(this.Xg);this.yb.appendChild(this.Wg)}this.Ha.call("setLineStyle",c)}else this.Ha.setParameter(b,c);this.Gl(b,c);a.currentTarget.clickType&&_GF_click("","chs_"+a.currentTarget.clickType,c,"")};
X.prototype.Gl=function(a,b){if(!(a==j||b==j)){a="/finance/prefs?action=set&prefsgroup=charts&prefskey="+escape(a)+"&prefsval="+escape(b);if(b=r("google.finance.data.common.hash"))a+="&hash="+b;b=this.ws();b.send(a)}};X.prototype.Sp=function(a){if(a!=j){var b=[],c=[];for(var d in a){b.push(d);c.push(a[d])}b.length!=0&&this.Gl(b.join("|"),c.join("|"))}};X.prototype.ws=function(){return new M};
X.prototype.Mi=function(){if(this.bg&&this.Ue.style.display=="block"){this.bg.value=location.protocol+"//"+location.host+"/"+_getLinkToChart();this.If(this.bg)}};X.prototype.If=function(a){try{a.blur();a.focus();a.select()}catch(b){}};var tn=function(a,b,c,d,e){this.title=a;this.time=b||j;this.href=c||j;this.snippet=d||j;this.properties=e||{}};tn.prototype.getTime=function(){return this.time};var un=function(a,b){return b.getTime()-a.getTime()};tn.prototype.Fb=function(){return this.title};tn.prototype.Dc=function(a){return this.properties[a]};tn.prototype.dr=function(a,b){this.properties[a]=b};tn.prototype.toString=function(){return this.time+" "+this.title};var vn;var wn=function(){vn||(vn="en");return vn},yn=function(a,b,c){xn[b]||(xn[b]={});xn[b][c]=a;vn||(vn=c)},zn=function(a,b){return a in xn&&b in xn[a]},xn={},An=function(a,b){yn(a,"DateTimeConstants",b)},Bn=function(a,b){b=b?b:wn();if(a in xn)return xn[a][b]},Cn={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:["J","F","M","A","M","J","J","A","S","O","N","D"],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"],SHORTWEEKDAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],NARROWWEEKDAYS:["S","M","T","W","T","F","S"],SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, yyyy","MMMM d, yyyy","MMM d, yyyy","M/d/yy"],TIMEFORMATS:["h:mm:ss a v","h:mm:ss a z","h:mm:ss a","h:mm a"],
FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};Cn.STANDALONENARROWMONTHS=Cn.NARROWMONTHS;Cn.STANDALONEMONTHS=Cn.MONTHS;Cn.STANDALONESHORTMONTHS=Cn.SHORTMONTHS;Cn.STANDALONEWEEKDAYS=Cn.WEEKDAYS;Cn.STANDALONESHORTWEEKDAYS=Cn.SHORTWEEKDAYS;Cn.STANDALONENARROWWEEKDAYS=Cn.NARROWWEEKDAYS;var Dn=function(){},Fn=function(a){if(typeof a=="number")return En(a);var b=new Dn;b.fj=a.id;b.$i=-a.std_offset;b.nf=a.names;b.sd=a.transitions;return b},En=function(a){var b=new Dn;b.$i=a;b.fj=Gn(a);a=Hn(a);b.nf=[a,a];b.sd=[];return b},In=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(A(Math.floor(a/60)%100,2),":",A(a%60,2));return b.join("")},Gn=function(a){if(a==0)return"Etc/GMT";var b=["Etc/GMT",a<0?"-":"+"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a%=60;a!=0&&b.push(":",
A(a,2));return b.join("")},Hn=function(a){if(a==0)return"UTC";var b=["UTC",a<0?"+":"-"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a%=60;a!=0&&b.push(":",a);return b.join("")};Dn.prototype.Ee=function(a){a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes());a=a/3600000;for(var b=0;b<this.sd.length&&a>=this.sd[b];)b+=2;return b==0?0:this.sd[b-1]};Dn.prototype.Dh=function(a){return In(this.cd(a))};Dn.prototype.Fh=function(a){return this.nf[this.Re(a)?3:1]};
Dn.prototype.cd=function(a){return this.$i-this.Ee(a)};Dn.prototype.Gh=function(a){a=-this.cd(a);var b=[a<0?"-":"+"];a=Math.abs(a);b.push(A(Math.floor(a/60)%100,2),A(a%60,2));return b.join("")};Dn.prototype.Ih=function(a){return this.nf[this.Re(a)?2:0]};Dn.prototype.Nh=function(){return this.fj};Dn.prototype.Re=function(a){return this.Ee(a)>0};var Jn=function(){this.Qa=Bn("DateTimeConstants",wn());this.jd=[]},Kn=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];Jn.prototype.or=function(a){for(;a;)for(var b=0;b<Kn.length;++b){var c=a.match(Kn[b]);if(c){c=c[0];a=a.substring(c.length);if(b==0)if(c=="''")c="'";else{c=c.substring(1,c.length-1);c=c.replace(/\'\'/,"'")}this.jd.push({text:c,type:b});break}}};
Jn.prototype.format=function(a,b){b||(b=Fn(a.getTimezoneOffset()));var c=(a.getTimezoneOffset()-b.cd(a))*60000,d=c?new Date(a.getTime()+c):a,e=d;if(d.getTimezoneOffset()!=a.getTimezoneOffset()){c+=c>0?-86400000:86400000;e=new Date(a.getTime()+c)}c=[];for(var f=0;f<this.jd.length;++f){var h=this.jd[f].text;1==this.jd[f].type?c.push(this.nh(h,a,d,e,b)):c.push(h)}return c.join("")};Jn.prototype.mh=function(a,b){b=b.getFullYear()>0?1:0;return a>=4?this.Qa.ERANAMES[b]:this.Qa.ERAS[b]};
Jn.prototype.xh=function(a,b){b=b.getFullYear();if(b<0)b=-b;return a==2?A(b%100,2):String(b)};Jn.prototype.qh=function(a,b){b=b.getMonth();switch(a){case 5:return this.Qa.NARROWMONTHS[b];case 4:return this.Qa.MONTHS[b];case 3:return this.Qa.SHORTMONTHS[b];default:return A(b+1,a)}};Jn.prototype.ih=function(a,b){return A(b.getHours()||24,a)};Jn.prototype.oh=function(a,b){b=b.getTime()%1000/1000;return b.toFixed(Math.min(3,a)).substr(2)+(a>3?A(0,a-3):"")};
Jn.prototype.lh=function(a,b){b=b.getDay();return a>=4?this.Qa.WEEKDAYS[b]:this.Qa.SHORTWEEKDAYS[b]};Jn.prototype.jh=function(a,b){a=b.getHours();return this.Qa.AMPMS[a>=12&&a<24?1:0]};Jn.prototype.hh=function(a,b){return A(b.getHours()%12||12,a)};Jn.prototype.fh=function(a,b){return A(b.getHours()%12,a)};Jn.prototype.gh=function(a,b){return A(b.getHours(),a)};
Jn.prototype.th=function(a,b){b=b.getDay();switch(a){case 5:return this.Qa.STANDALONENARROWWEEKDAYS[b];case 4:return this.Qa.STANDALONEWEEKDAYS[b];case 3:return this.Qa.STANDALONESHORTWEEKDAYS[b];default:return A(b,1)}};Jn.prototype.uh=function(a,b){b=b.getMonth();switch(a){case 5:return this.Qa.STANDALONENARROWMONTHS[b];case 4:return this.Qa.STANDALONEMONTHS[b];case 3:return this.Qa.STANDALONESHORTMONTHS[b];default:return A(b+1,a)}};
Jn.prototype.rh=function(a,b){b=Math.floor(b.getMonth()/3);return a<4?this.Qa.SHORTQUARTERS[b]:this.Qa.QUARTERS[b]};Jn.prototype.kh=function(a,b){return A(b.getDate(),a)};Jn.prototype.ph=function(a,b){return A(b.getMinutes(),a)};Jn.prototype.sh=function(a,b){return A(b.getSeconds(),a)};Jn.prototype.vh=function(a,b,c){return a<4?c.Gh(b):c.Dh(b)};Jn.prototype.wh=function(a,b,c){return a<4?c.Ih(b):c.Fh(b)};
Jn.prototype.nh=function(a,b,c,d,e){var f=a.length;switch(a.charAt(0)){case "G":return this.mh(f,c);case "y":return this.xh(f,c);case "M":return this.qh(f,c);case "k":return this.ih(f,d);case "S":return this.oh(f,d);case "E":return this.lh(f,c);case "a":return this.jh(f,d);case "h":return this.hh(f,d);case "K":return this.fh(f,d);case "H":return this.gh(f,d);case "c":return this.th(f,c);case "L":return this.uh(f,c);case "Q":return this.rh(f,c);case "d":return this.kh(f,c);case "m":return this.ph(f,
d);case "s":return this.sh(f,d);case "v":return e.Nh();case "z":return this.wh(f,b,e);case "Z":return this.vh(f,b,e);default:return""}};var Ln=function(a){this.A=a;a=B?"propertychange":Se&&a.tagName=="TEXTAREA"&&!df("531")?"keypress":"input";this.hl=D(this.A,a,this)};v(Ln,E);Ln.prototype.handleEvent=function(a){a=a.uk();if(a.type=="propertychange"&&a.propertyName=="value"||a.type=="input"||a.type=="keypress"){if(B||Qe){var b=a.srcElement;if(b!=wg(b).activeElement)return}a=new C(a);a.type="input";try{this.dispatchEvent(a)}finally{a.dispose()}}};Ln.prototype.j=function(){Ln.r.j.call(this);Lf(this.hl);delete this.A};var Mn=function(){};v(Mn,O);ea(Mn);Mn.prototype.va=function(){return"button"};Mn.prototype.td=function(a,b,c){if(Re)b==16?ak(a,"pressed",c):Mn.r.td.call(this,a,b,c)};Mn.prototype.i=function(a){var b=Mn.r.i.call(this,a),c=a.hb();c&&this.pb(b,c);(c=a.xa())&&this.ua(b,c);a.Va(16)&&this.td(b,16,n);return b};Mn.prototype.decorate=function(a,b){b=Mn.r.decorate.call(this,a,b);a.Qy(this.xa(b));a.sg(this.hb(b));a.Va(16)&&this.td(b,16,n);return b};Mn.prototype.xa=da;Mn.prototype.ua=da;Mn.prototype.hb=function(a){return a.title};
Mn.prototype.pb=function(a,b){if(a)a.title=b||""};Mn.prototype.J=function(){return"goog-button"};var Nn=function(){};v(Nn,Mn);ea(Nn);Nn.prototype.va=function(){};Nn.prototype.i=function(a){this.pq(a);return a.la().i("button",{"class":this.Yb(a).join(" "),disabled:!a.U(),title:a.hb()||"",value:a.xa()||""},a.Ln()||"")};Nn.prototype.pa=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};Nn.prototype.decorate=function(a,b){this.pq(a);b.disabled&&og(b,this.Ce(1));return Nn.r.decorate.call(this,a,b)};
Nn.prototype.Hc=function(a){a.H().listen(a.k(),"click",a.gg)};Nn.prototype.Xd=da;Nn.prototype.Nc=da;Nn.prototype.jc=function(a){return a.U()};Nn.prototype.qc=da;Nn.prototype.Oa=function(a,b,c){Nn.r.Oa.call(this,a,b,c);if((a=a.k())&&b==1)a.disabled=c};Nn.prototype.xa=function(a){return a.value};Nn.prototype.ua=function(a,b){if(a)a.value=b};Nn.prototype.td=da;Nn.prototype.pq=function(a){a.Ol(n);a.vy(255,n);a.pd(32,n)};var On=function(a,b,c){P.call(this,a,b||Nn.getInstance(),c)};v(On,P);On.prototype.xa=function(){return this.Rq};On.prototype.ua=function(a){this.Rq=a;this.Id().ua(this.k(),a)};On.prototype.Qy=function(a){this.Rq=a};On.prototype.hb=function(){return this.kj};On.prototype.pb=function(a){this.kj=a;this.Id().pb(this.k(),a)};On.prototype.sg=function(a){this.kj=a};On.prototype.j=function(){On.r.j.call(this);delete this.Rq;delete this.kj};
On.prototype.P=function(){On.r.P.call(this);if(this.Va(32)){var a=this.aa();a&&this.H().listen(a,"keyup",this.Nd)}};On.prototype.Nd=function(a){if(a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup")return this.gg(a);return a.keyCode==32};sk("goog-button",function(){return new On(j)});var Pn=function(){};v(Pn,Mn);ea(Pn);Pn.prototype.i=function(a){var b=this.Yb(a);b={"class":"goog-inline-block "+b.join(" "),title:a.hb()||""};return a.la().i("div",b,this.qe(a.Bh(),a.la()))};Pn.prototype.T=function(a){return a&&a.firstChild.firstChild};Pn.prototype.qe=function(a,b){return b.i("div","goog-inline-block "+(this.J()+"-outer-box"),b.i("div","goog-inline-block "+(this.J()+"-inner-box"),a))};Pn.prototype.pa=function(a){return a.tagName=="DIV"};
Pn.prototype.Lv=function(a,b){if((b=a.la().Yn(b))&&b.className.indexOf(this.J()+"-outer-box")!=-1)if((a=a.la().Yn(b))&&a.className.indexOf(this.J()+"-inner-box")!=-1)return i;return n};Pn.prototype.decorate=function(a,b){Qn(b,i);Qn(b,n);this.Lv(a,b)||b.appendChild(this.qe(b.childNodes,a.la()));og(b,"goog-inline-block",this.J());return Pn.r.decorate.call(this,a,b)};Pn.prototype.J=function(){return"goog-custom-button"};
var Qn=function(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==3){var e=c.nodeValue;if(kd(e)=="")a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};var Rn=function(a,b,c){On.call(this,a,b||Pn.getInstance(),c)};v(Rn,On);sk("goog-custom-button",function(){return new Rn(j)});var Y=function(a,b){this.B=Ng;this.sc=a||j;this.ya=[];this.Ic=this.Jc=0;this.Uk=[];this.Hq=0;this.Bz=this.B("div");this.Js=this.B("div");this.AA=this.B("td",{},this.Bz);this.aA=this.B("td",{},this.Js);this.Vs=b&&b.MSG_FILTER!==undefined?b.MSG_FILTER:"Enter a filter term";this.Cz=b&&b.MSG_SCROLL_UP!==undefined?b.MSG_SCROLL_UP:"Scroll Up";this.Ks=b&&b.MSG_SCROLL_DOWN!==undefined?b.MSG_SCROLL_DOWN:"Scroll Down";this.Gf=new V(this.Vs);this.Ax=this.B("div");this.An="on";this.dh=j;this.$=new li;this.om=
new lh(40);this.nm=new lh(40);this.fw();this.Uy()};v(Y,E);Y.prototype.fw=function(){this.Gc=this.B("div");Jh(this.Gc,"position","relative");this.wd=this.B("div",j,this.Gc);Jh(this.wd,"overflow","hidden");Jh(this.wd,"position","relative");Jh(this.wd,"width","100%");this.Cl();this.Ty()};Y.prototype.Cl=function(){Nh(this.Gc,0,0)};
Y.prototype.Ty=function(){var a={border:0,cellspacing:0,cellpadding:0};this.tc=new Rn(this.B("table",a,this.B("tbody",{},this.B("tr",{},this.B("td",{},this.B("div",{"class":"icon-up"})),this.B("td",{},this.B("div",{"class":"button-text"},this.Cz))))));this.tc.qj("chartclient-button-up");this.Pb=new Rn(this.B("table",a,this.B("tbody",{},this.B("tr",{},this.B("td",{},this.B("div",{"class":"icon-down"})),this.B("td",{},this.B("div",{"class":"button-text"},this.Ks))))));this.Pb.qj("chartclient-button-down");
this.dh=j;if(this.An!="off")this.dh=this.B("td",{"class":"chartclient-list-filter"});a.width="100%";delete a.cellpadding;this.Uz=this.B("table",{border:0,cellspacing:0,cellpadding:0,width:"100%"},this.B("tbody",{},this.B("tr",{},this.B("td",{},this.B("table",a,this.B("tbody",{},this.B("tr",{},this.AA,this.dh))))),this.B("tr",{},this.B("td",{id:"scrollingListTd"},this.He())),this.B("tr",{},this.B("td",{},this.B("table",a,this.B("tbody",{},this.B("tr",{},this.aA,this.B("td",{"class":"chartclient-placeholder-cell"},
this.Ax))))))));this.tc.render(this.Bz);this.Pb.render(this.Js);this.tc.pb(this.Cz);this.Pb.pb(this.Ks);this.tc.S(n);this.Pb.S(i);this.Gf.render(this.dh);lg(this.Gf.k(),"filter-box label-input-label")};Y.prototype.Ay=function(a){switch(a){case "off":Rg(this.dh);break;default:this.An=a;break}};Y.prototype.Vv=function(){H(this.Gf.k(),n)};Y.prototype.Vy=function(){H(this.Gf.k(),i)};
Y.prototype.Uy=function(){this.$.listen(this.tc.k(),"mousedown",this.fz,n,this);this.$.listen(this.Pb.k(),"mousedown",this.ez,n,this);this.$.listen(this.tc.k(),"mouseup",this.bj,n,this);this.$.listen(this.Pb.k(),"mouseup",this.bj,n,this);this.$.listen(this.om,"tick",t(function(){this.Ei(0)},this));this.$.listen(this.nm,"tick",t(function(){this.Ei(1)},this));this.Lo=new Ln(this.Gf.k());this.Lo.addEventListener("input",this.Ts,n,this)};
Y.prototype.Ts=function(){var a=this.Vn();this.Yg=this.Wn(this.ya,a);this.yl(this.Yg);this.dispatchEvent({type:"list_changed"});this.Cl()};Y.prototype.Wn=function(a,b){a=cg(a,function(c){return ud(c.he().toLowerCase(),b)},this);this.An=="sortOnOccurence"&&a.sort(t(function(c,d){c=c.he().toLowerCase().indexOf(b);d=d.he().toLowerCase().indexOf(b);return c-d},this));return a};Y.prototype.Vn=function(){return this.Gf.xa().toLowerCase()};Y.prototype.Fd=function(){return this.Yg};Y.prototype.ou=function(){return this.Ax};
Y.prototype.fz=function(){this.bj();this.Ei(0);this.Hq=nh(t(function(){this.om.start()},this),400)};Y.prototype.ez=function(){this.bj();this.Ei(1);this.Hq=nh(t(function(){this.nm.start()},this),400)};Y.prototype.bj=function(){oh(this.Hq);this.om.stop();this.nm.stop()};
Y.prototype.Ei=function(a){var b=0;switch(a){case 0:if(this.Jc>0){this.Jc--;b=this.Gk(this.Jc)}break;case 1:if(this.Ic<this.ya.length-1){this.Ic++;b=this.Gk(this.Ic)}break}this.Tp(b);switch(a){case 0:this.Ic=this.tk();break;case 1:this.Jc=this.qo();break}};Y.prototype.Tp=function(a){var b=this.Yt(),c=this.Mu(),d=this.Zt();a=b.y+a;if(a>=0)a=0;else if(a<=c.height-d.height){a=c.height-d.height;this.dispatchEvent({type:"scroll_to_end"})}Nh(this.Gc,b.x,a);this.Lq()};
Y.prototype.Yt=function(){return Yh(this.Gc,this.He())};Y.prototype.Mu=function(){return ai(this.He())};Y.prototype.Zt=function(){return ai(this.Gc)};Y.prototype.Gk=function(a){var b=0;a=this.ya[a];var c=this.He();c=Yh(a.k(),c);if(c.y<-1)b=c.y*-1;else{a=ai(a.k());a=c.y+a.height-this.yf;if(a>0)b=a*-1}return b};Y.prototype.Lq=function(){var a=Yh(this.Gc,this.wd),b=ai(this.wd),c=ai(this.Gc);this.tc.S(i);this.Pb.S(i);a.y>=0&&this.tc.S(n);a.y<=b.height-c.height+5&&this.Pb.S(n)};
Y.prototype.Gg=function(a){if(a){this.ya=this.ya.concat(a);a=this.Vn();this.Yg=a==this.Vs.toLowerCase()?this.ya:this.Wn(this.ya,a);this.yl()}};Y.prototype.zl=function(){for(var a=0;a<this.ya.length;a++)Nf(this.ya[a]);this.Yg=this.ya=[];this.Ic=this.Jc=0;this.yl();this.Cl()};
Y.prototype.Kq=function(a){Xd(this.Uk,function(c){c.unhighlight()});this.Uk=[];for(var b=0;b<this.ya.length;b++)if(this.ya[b].ca()==a){this.ya[b].highlight();this.Uk.push(this.ya[b]);this.Ic=this.Jc=b}if(this.Uk.length){a=this.Gk(this.Jc);this.Tp(a)}this.Jc=this.qo();this.Ic=this.tk()};
Y.prototype.yl=function(a){a=a||this.Yg;Rg(this.Gc);Xd(a,function(b){G(this.Gc,b.k());Pf(b,"mousedown",n)||this.$.listen(b,"mousedown",t(function(){var c={};c.type="item_clicked";c.id=b.ca();this.dispatchEvent(c)},this))},this);if(a)this.Ic=this.tk();this.Lq()};Y.prototype.qo=function(){for(var a=this.He(),b=this.Jc,c=this.Ic;c>=0;c--){var d=this.ya[c];d=Yh(d.k(),a);if(d.y<-1)break;b=c}return b};
Y.prototype.tk=function(){for(var a=this.He(),b=this.Ic,c=this.Jc;c<this.ya.length;c++){var d=this.ya[c],e=ai(d.k());d=Yh(d.k(),a);e=d.y+e.height-this.yf;if(e>0)break;b=c}return b};Y.prototype.He=function(){return this.wd};
Y.prototype.decorate=function(a,b){b=b||this.sc;var c=xg(a);c.appendChild(a,this.Uz);c=a=20;this.yf=b.height-a-c;if(!isNaN(b.width)&&!isNaN(this.yf)&&b.width>=0&&this.yf>=0){a=F("scrollingListTd");Jh(a,"width","100%");Jh(a,"height",this.yf);$h(this.wd,b.width,this.yf);Jh(this.wd,"width","100%")}this.tc.S(n);this.Pb.S(i)};Y.prototype.j=function(){Y.r.j.call(this);this.$.dispose();this.$=j;this.Pb.dispose();this.Pb=j;this.tc.dispose();this.tc=j;this.Lo.dispose();this.Lo=j};var Sn=function(a,b){this.cb=a;this.Nb=b;this.mz=google.finance.data.common.linktargetInternal=="target=_blank"?"_black":"";this.A=this.gc=j;this.o=new li(this)};v(Sn,E);Sn.prototype.ca=function(){var a=this.Nb.id;if(a=="0"){var b=this.getTime();if(b>0)return String(b)}return a};
Sn.prototype.k=function(){if(!this.A){this.gc=this.Sg();var a=Ng,b=xd(yd(this.Nb.a[0].t,80)),c=this.Nb.a[0].s.replace(/ \(.*\)$/,""),d="n-c-",e=this.Nb.a[0].fid;if(e)d+=e;this.A=a("div",{"class":"news-item"},a("div",{"class":"pin"},a("div",{"class":"g-c"},this.gc)),a("div",{"class":"cluster"},a("div",{"class":"g-c"},a("a",{"class":"title",id:d,href:this.Nb.a[0].u,target:this.mz},Og(b)),a("div",{},a("span",{"class":"source"},Og(c+" - ")),a("span",{"class":"date"},Og(this.Nb.a[0].d))))))}return this.A};
Sn.prototype.he=function(){return this.Nb.a[0].t+" "+this.Nb.a[0].s};Sn.prototype.Sg=function(){var a=Ng("img",{src:"/finance/images/cleardot.gif","class":"SP_pin"+this.cb,id:"pin"+this.cb,align:"absmiddle",width:"16",height:"16",style:"cursor:pointer"});this.o.listen(a,"mousedown",function(){this.dispatchEvent({type:"mousedown",id:this.ca()})});return a};Sn.prototype.Wt=function(){return this.cb};Sn.prototype.Fy=function(a){this.cb=a};
Sn.prototype.getTime=function(){return this.Nb.a.tt?this.Nb.a.tt:this.Nb.a[0].tt};Sn.prototype.unhighlight=function(){lg(this.A,"news-item");lg(this.gc,"SP_pin"+this.cb);this.gc.id="pin"+this.cb};Sn.prototype.highlight=function(){og(this.A,"news-item-sel");lg(this.gc,"SP_ph"+this.cb);this.gc.id="ph"+this.cb};var Tn=function(a,b,c){this.L=a;this.cb=b;this.ka=c;this.Vp=this.A=this.gc=j;this.displayAuthor=n};v(Tn,E);Tn.prototype.ca=function(){return this.L};
Tn.prototype.k=function(){if(!this.A){this.gc=this.Sg();var a=new Pi;a.append("<span class=title>"+this.ka.title+"</span>");if(this.displayAuthor&&this.ka.Dc("author"))a.append("<span class=author> - ").append(this.ka.Dc("author")).append("</span>");else if(this.ka.snippet){var b=this.ka.snippet.length>70?this.ka.snippet.substr(0,70)+"...":this.ka.snippet;a.append("<span class=snippet> - ").append(b).append("</span>")}b=new Date(this.getTime()*1000);b=new Pi(this.ut(b));this.ka.href&&b.append('<a target=_blank href="'+
this.ka.href).append('"><img src=/finance/images/cleardot.gif class=rssSprite ').append("width=16 height=16 id=link></a>");var c=Ng,d=c("div",{"class":"content"});d.innerHTML=a.toString();a=c("div",{});a.innerHTML=b.toString();this.A=c("div",{"class":"rss-item"});a=c("table",{border:0,width:"100%",cellpadding:0,cellspacing:0},c("tbody",{},c("tr",{},c("td",{valign:"top",width:"20"},this.gc),c("td",{},d),c("td",{width:"80",align:"right",valign:"top"},a))));G(this.A,a)}return this.A};
Tn.prototype.ut=function(a){var b=new Pi;b.append("<div class=date>").append(Un(this.vt(a),a)).append("</div>");return b.toString()};Tn.prototype.vt=function(a){var b=new Date;return b.getFullYear()==a.getFullYear()&&b.getDate()==a.getDate()?"h:mma":"MMM dd"};
Tn.prototype.Sg=function(){var a=Ng("img",{src:"/finance/images/cleardot.gif","class":"rssSprite pin",id:"pin"+this.cb,align:"absmiddle",style:"cursor:pointer"});D(a,"mousedown",t(function(){this.dispatchEvent({type:"mousedown",id:this.ca()})},this));return a};Tn.prototype.getTime=function(){return this.ka.getTime()};Tn.prototype.unhighlight=function(){lg(this.A,"rss-item");this.gc.id="pin"+this.cb};Tn.prototype.highlight=function(){og(this.A,"rss-item-sel");this.gc.id="ph"+this.cb};
Tn.prototype.he=function(){if(!this.Vp)this.Vp=this.cb+this.ka.title+(this.ka.snippet||"");return this.Vp};var Vn=function(a,b,c,d){Tn.call(this,a,b,c);this.CA=d};v(Vn,Tn);
Vn.prototype.k=function(){if(!this.A){new Date(this.ka.getTime()*1000);this.A=Lg("div",{"padding-top":"2px"});var a=new Pi;a.append('<div style="padding-bottom:18px">').append(this.ka.title);a.append('<div id="'+this.Eu()+'" ').append('style="padding-top:3px;color:#666;">');this.ka.snippet&&a.append(this.ka.snippet+"<br>");if(this.ka.Dc("link")){var b=this.ka.Dc("link");b=b.length>50?b.substr(0,50)+"...":b;a.append('<a class=g href="').append(this.ka.Dc("link")+'">').append(b+"</a></div>")}a.append('<div style="font-size:12px;padding-top:3px;">').append("<a href=\"javascript:google.finance.plotRssFeed('").append(this.ka.href).append("')\">"+
this.CA+"</a></div></div>");this.A.innerHTML=a.toString()}return this.A};Vn.prototype.Eu=function(){return"rss-feed-item-snippet-"+this.L};var Wn=function(a,b){this.Lz=a;this.ba=b||"plot_feeds_user_message";this.fakeTime=n};Wn.inherits(Tn);Wn.prototype.ca=function(){return"0"};Wn.prototype.getTime=function(){return this.fakeTime?1:0};Wn.prototype.k=function(){if(!this.A){this.A=Ng("div",{"class":this.ba});this.A.innerHTML=this.Lz}return this.A};Wn.prototype.he=function(){return this.Lz};var Xn=function(a,b){this.bk=a;this.nk=0;this.kl=b||200;this.Qw=Math.min(this.kl,90);this.hn=Math.min(this.Qw,30)};Xn.prototype.xb=[];Xn.prototype.Cb=function(){g(new Error("Implement this method."))};Xn.prototype.Gd=function(a,b,c){a(this.xb);if(b<this.eo()){this.nk=0;this.yn(function(d){a(d)},b,c)}};Xn.prototype.Of=function(a,b,c){b+c<this.pl()||this.Cb(function(d){a(d)},b)};
Xn.prototype.yn=function(a,b,c){if(this.nk>this.Qw||this.xb.length>=this.kl||b>this.eo()){this.nk=0;a([])}else this.Cb(t(function(d){a(d);this.nk+=d.length;var e=Math.min(this.kl-this.xb.length,d.length);this.xb=this.xb.concat(d.slice(0,e));me(this.xb,un);d.length>=this.hn&&this.xb.length<this.kl&&this.yn(function(f){a(f)},b,c)},this),this.hn)};Xn.prototype.eo=function(){return this.xb.length==0?ra()/1000:this.xb[this.xb.length-1].getTime()};Xn.prototype.pl=function(){return this.xb.length};
Xn.prototype.Fb=function(){g(new Error("Implement this method."))};var Yn=function(a){var b={type:1};return new tn(a,undefined,undefined,undefined,b)},Zn=/&lt;b&gt;/g,$n=/&lt;\/b&gt;/g;Xn.prototype.Yf=function(a){if(!a)return a;a=td(a);return a.replace(Zn,"<b>").replace($n,"</b>")};var ao=function(a,b){this.mj=new R(a);this.Vz=b?b:"callback";this.ge=5000},bo=0;
ao.prototype.send=function(a,b,c,d){if(!document.documentElement.firstChild){c&&c(a);return j}d=d||"_"+(bo++).toString(36)+ra().toString(36);p._callbacks_||(p._callbacks_={});var e=document.createElement("script"),f=j;if(this.ge>0){f=co(d,e,a,c);f=p.setTimeout(f,this.ge)}c=this.mj.clone();eo(a,c);if(b){a=fo(d,e,b,f);p._callbacks_[d]=a;c.$d(this.Vz,"_callbacks_."+d)}Eg(e,{type:"text/javascript",id:d,charset:"UTF-8",src:c.toString()});G(document.getElementsByTagName("head")[0],e);return{L:d,ge:f}};
ao.prototype.cancel=function(a){if(a&&a.L){var b=yg(a.L);if(b&&b.tagName=="SCRIPT"&&typeof p._callbacks_[a.L]=="function"){a.ge&&p.clearTimeout(a.ge);go(a.L,b,n)}}};
var co=function(a,b,c,d){return function(){go(a,b,n);d&&d(c)}},fo=function(a,b,c,d){return function(){p.clearTimeout(d);go(a,b,i);c.apply(undefined,arguments)}},go=function(a,b,c){p.setTimeout(function(){Ug(b)},0);if(p._callbacks_[a])if(c)delete p._callbacks_[a];else p._callbacks_[a]=da},eo=function(a,b){for(var c in a)if(!a.hasOwnProperty||a.hasOwnProperty(c))b.$d(c,a[c]);return b};var ho=function(a,b){Xn.call(this,a,b);if(a.indexOf("http://")!=0)g(new Error("Invalid feed url"));this.Qg="";this.Bl=n;this.Us=i;a=this.wu(a,this.hn);this.cl=new ao(a);this.rz="&nbsp;"};v(ho,Xn);var io=function(a,b){a=new R("http://www.google.com/reader/api/0/feed-finder?output=json&q="+escape(a));a=new ao(a);a.send({},function(c){if(c.feed)b(c.feed[0].href);else if(c.items.length==0)b(j);else c.items[0].feed.length==0?b(j):b(c.items[0].feed[0].href)})};
ho.prototype.wu=function(a,b){a=new R("http://www.google.com/reader/public/javascript/feed/"+escape(a));return a.K("n",b.toString())};ho.prototype.Cb=function(a){if(this.Bl||this.Qg=="none")a([]);else{this.Bl=i;var b={};if(this.Qg!="")b.c=this.Qg;this.cl.send(b,t(function(c){this.Bl=n;this.Qg=this.kt(c);this.rz=this.Iu(c);a(this.Ht(c))},this),t(function(){this.Bl=n;a([this.Et()])},this))}};ho.prototype.Ck=function(){return Yn("This feed seems to contain no items.<br>You can try some of <a href=\"javascript:goog.finance.switchToRssFeed('')\">our examples</a> instead.")};
ho.prototype.Et=function(){return Yn("There seems to be a connection problem.<br><a href=\"javascript:goog.finance.switchToRssFeed('feedUrl')\">Try again</a>?")};ho.prototype.kt=function(a){return a.continuation||"none"};ho.prototype.Iu=function(a){if(!a.title)return"(no title)";a=td(a.title);return a.replace(/&amp;gt;/g,"&gt;").replace(/&amp;lt;/g,"&lt;").replace(/&amp;quot;/g,"&quot;")};
ho.prototype.Ht=function(a){var b=[];if(a.items)for(var c=0;c<a.items.length;c++)try{var d=a.items[c],e=this.Yf(d.summary||d.content),f=d.alternate.href?(new R(d.alternate.href)).toString():undefined,h=new tn(this.Yf(d.title),d.updated,f,e);d.author&&h.dr("author",this.Yf(d.author));if(!this.Us||!d.author||d.author!="SocialPicks.com: Recent Picks")b.push(h)}catch(k){}me(b,un);return b.length==0?[this.Ck()]:b};ho.prototype.Fb=function(){return this.rz};var jo=function(a,b){ho.call(this,a,b);if(a.indexOf("/finance/blogs?q=")==-1)g(new Error("Invalid company blog url"));a=this.dt(a);this.cl=new ao(a);this.Us=n};jo.inherits(ho);jo.prototype.dt=function(a){a=new R(a);return a.K("output","jsonp")};jo.prototype.Ck=function(){return Yn("This company does not have any blog results.")};jo.prototype.Of=function(a,b,c){if(this.Qg=="none")a([]);else b+c<this.pl()?a([]):this.Cb(function(d){a(d)},b)};var Un=function(a,b,c){var d=new Jn;d.or(a);return d.format(b,c)};if(window.location&&(window.location.hash.indexOf("xdrp")==1||window.location.search.indexOf("xdrp")==1))if(B)document.execCommand("Stop");else if(Re)window.stop();else g(Error("stopped"));var ko=function(a){var b=a.indexOf("?");if(b>0)a=a.substring(0,b);b=a.indexOf("#");if(b>0)a=a.substring(0,b);return a};ko(document.referrer);var lo=M;lo.send=Hi;lo.cleanup=Aj;lo.protectEntryPoints=Bj;lo.EA=zj;lo.CONTENT_TYPE_HEADER="Content-Type";lo.FORM_CONTENT_TYPE="application/x-www-form-urlencoded;charset=utf-8";lo.HA=yj;var mo=function(){if(document.getElementsByTagName("head").length==0){var a=document.getElementsByTagName("html")[0],b=document.getElementsByTagName("body")[0],c=document.createElement("head");a.insertBefore(c,b)}return document.getElementsByTagName("head")[0]},no=function(a){var b=mo(),c=document.createElement("script");c.type="text/javascript";c.src=a;b.appendChild(c)};var oo=/^Date\([\d\,\s]*\)$/,qo=function(a,b,c){if(typeof b!="object"||!("column"in b))g(Error(c+' must have a property "column"'));else if("desc"in b&&typeof b.desc!="boolean")g(Error('Property "desc" in '+c+" must be boolean."));po(a,b.column)},ro=function(a,b){if(typeof b=="number"){po(a,b);return[{column:b}]}else if(typeof b=="object")if(b.constructor==Array){if(b.length<1)g(Error("sortColumn is an empty array. Must have at least one element."));var c={};if(typeof b[0]=="object"){for(var d=0;d<
b.length;d++){qo(a,b[d],"sortColumns["+d+"]");var e=b[d].column;if(e in c)g(Error("Column index "+e+" is duplicate in sortColumns."));c[e]=i}return b}else if(typeof b[0]=="number"){var f=[];for(d=0;d<b.length;d++){po(a,b[d]);if(b[d]in c)g(Error("Column index "+e+" is duplicate in sortColumns."));c[e]=i;f.push({column:b[d]})}return f}else g(Error("sortColumns is an array, but neither of objects nor of numbers. Must be either of those."))}else{qo(a,b,"sortColumns");return[b]}},so=function(a){a=a;a=
a.getMilliseconds()!==0?[a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()]:a.getSeconds()!==0||a.getMinutes()!==0||a.getHours()!==0?[a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()]:[a.getFullYear(),a.getMonth(),a.getDate()];return a="Date("+a.join(", ")+")"},to=function(a){if(oo.test(a))a=eval("new "+a);else g(Error("Invalid date: "+a));return a},uo=function(a,b){a=a.Ek();if(Math.floor(b)!==b||b<0||b>=a)g(Error("Invalid row index "+
b+". Should be in the range [0-"+(a-1)+"]."))},po=function(a,b){a=a.Dk();if(Math.floor(b)!==b||b<0||b>=a)g(Error("Invalid column index "+b+". Should be an integer in the range [0-"+(a-1)+"]."))},vo=function(a,b,c){if(c!=j){a=a.Ah(b);var d=typeof c;switch(a){case "number":if(d=="number")return;break;case "string":if(d=="string")return;break;case "boolean":if(d=="boolean")return;break;case "date":case "datetime":if(d=="object"&&c.constructor==Date)return;break;case "timeofday":if(d=="object"&&c.constructor==
Array&&c.length>=3&&c.length<=4){d=i;for(var e=0;e<c.length;e++){var f=c[e];if(typeof f!="number"||f!=Math.floor(f)){d=n;break}}if(c[0]<0||c[0]>23||c[1]<0||c[1]>59||c[2]<0||c[2]>59)d=n;if(c.length==4&&(c[3]<0||c[3]>999))d=n;if(d)return}break}g(Error("Type mismatch. Value "+c+" does not match type "+a+" in column index "+b))}},wo=function(a,b,c){if(b==j&&c==j)return 0;else if(b==j)return-1;else if(c==j)return 1;switch(a){case "boolean":case "number":case "string":case "date":case "datetime":return b<
c?-1:c<b?1:0;case "timeofday":for(a=0;a<3;a++)if(b[a]<c[a])return-1;else if(c[a]<b[a])return 1;b=b.length<4?0:b[3];c=c.length<4?0:c[3];return b<c?-1:c<b?1:0}};var xo=function(a,b){this.Tc=b?b=="0.5"?"0.5":"0.6":"0.6";if(a){if(ia(a))a=kj(a);this.zc=a.cols;this.fb=a.rows;this.zg=a.p||j}else{this.zc=[];this.fb=[];this.zg=j}zn("DateTimeConstants",wn())||An(Cn,wn())};xo.prototype.zc=j;xo.prototype.Tc=j;xo.prototype.fb=j;xo.prototype.zg=j;xo.prototype.Ek=function(){return this.fb.length};xo.prototype.Dk=function(){return this.zc.length};
xo.prototype.clone=function(){var a=new xo(j,this.Tc);a.zc=[];a.fb=[];var b=this.zg;if(b)a.zg=ye(b);for(b=0;b<this.zc.length;b++){var c=this.zc[b],d=ye(c);if(c=c.p)d.p=ye(c);a.zc.push(d)}for(d=0;d<this.fb.length;d++){c=this.fb[d];var e;e={};e.c=[];var f=c.c;for(b=0;b<f.length;b++){var h=f[b],k=ye(h);if(h)if(h=h.p)k.p=ye(h);e.c.push(k);if(k=c.p)e.p=ye(k)}a.fb.push(e)}return a};xo.prototype.Ah=function(a){po(this,a);return a=this.zc[a].type};
xo.prototype.xa=function(a,b){uo(this,a);po(this,b);a=this.Jf(a,b);var c=j;if(a){c=typeof a.v!="undefined"?a.v:j;b=this.Ah(b);if(b==="date"||b==="datetime")if(ia(c)){c=to(c);a.v=c}}return c};xo.prototype.Jf=function(a,b){return this.fb[a].c[b]};xo.prototype.Dc=function(a,b,c){uo(this,a);po(this,b);return(a=(a=this.Jf(a,b))&&a.p)&&c in a?a[c]:j};xo.prototype.ru=function(a,b){uo(this,a);po(this,b);var c=this.Jf(a,b);if(!c){c={v:j,f:j};this.fb[a].c[b]=c}c.p||(c.p={});return c.p};
xo.prototype.ua=function(a,b,c){this.xy(a,b,c,undefined,undefined)};xo.prototype.setProperty=function(a,b,c,d){a=this.ru(a,b);a[c]=d};xo.prototype.xy=function(a,b,c,d,e){uo(this,a);po(this,b);var f=this.Jf(a,b);if(!f){f={};this.fb[a].c[b]=f}if(typeof c!="undefined"){vo(this,b,c);f.v=c}if(typeof d!="undefined")f.f=d;if(typeof e!="undefined")f.p=e};
xo.prototype.sort=function(a){a=ro(this,a);ne(this.fb,t(function(b,c){for(var d=0;d<a.length;d++){var e=a[d].column,f=a[d].desc?-1:1,h=b.c[e]?b.c[e].v:j,k=c.c[e]?c.c[e].v:j;e=wo(this.Ah(e),h,k);if(e!=0)return e*f}return 0},this))};xo.prototype.toJSON=function(){for(var a=0;a<this.Dk();a++){var b=this.Ah(a);if(b=="datetime"||b=="date")for(b=0;b<this.Ek();b++){var c=this.Jf(b,a),d=c.v;if(la(d)&&typeof d.getFullYear=="function")c.v=so(d)}}return(new mj).serialize({cols:this.zc,rows:this.fb,p:this.zg})};var Ao=function(a){this.tA=yo(a);this.Qs=a.status;this.kk=[];this.cm=[];this.cm=a.warnings||[];this.kk=a.errors||[];zo(this.cm);zo(this.kk);if(this.Qs!="error"){this.yq=a.sig;this.fn=new xo(a.table,this.tA)}},zo=function(a){for(var b=0;b<a.length;b++){var c=a[b].detailed_message;if(c)a[b].detailed_message=Bo(c)}},Co=/^[^<]*(<a(( )+target=('_blank')?("_blank")?)?( )+(href=('[^']*')?("[^"]*")?)>[^<]*<\/a>[^<]*)*$/,Do=/javascript((s)?( )?)*:/,Bo=function(a){if(!a)return"";return a.match(Co)&&!a.match(Do)?
a:a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;")},yo=function(a){a=a.version||"0.6";return se(Eo,a)?a:"0.6"},Eo={VERSION_0_5:"0.5",VERSION_0_6:"0.6"};Ao.prototype.yq=j;Ao.prototype.fn=j;Ao.prototype.rw=function(){return this.Qs=="error"};Ao.prototype.Vr=function(a){for(var b=0;b<this.kk.length;b++)if(this.kk[b].reason==a)return i;for(b=0;b<this.cm.length;b++)if(this.cm[b].reason==a)return i;return n};Ao.prototype.ot=function(){return this.yq};
Ao.prototype.qt=function(){return this.fn};var Io=function(a,b){this.dataSourceUrl=a;b=b||{};this.Zp=b.sendMethod||"auto";if(!se(Fo,this.Zp))g(Error("Send method not supported: "+this.Zp));this.dp=b.dp||{};if(/spreadsheets/.test(a)||/\.corp\.google\.com:4040/.test(a)){this.Ux();this.Zx()}this.fA=/spreadsheets.google.com\/a\/.*\/tq\?.*/.test(this.dataSourceUrl)||/.*corp.google.com:4040\/a\/.*\/tq\?.*/.test(this.dataSourceUrl);this.requestId=Go++;Ho.push(this)},Fo={XHR:"xhr",SCRIPT_INJECTION:"scriptInjection",MAKE_REQUEST:"makeRequest",AUTO:"auto"},
Jo=new dg({"X-DataSource-Auth":"a"}),Go=0,Ko={};Io.prototype.Iq=30;var Ho=[],Lo=p.gadgets;Io.prototype.Zx=function(){var a=this.dataSourceUrl;if(/.google\.com(:4040)?(\/a\/.*)?\/ccc\?.*key=/.test(a))a=a.replace(/\/ccc\?/,"/tq?");else if(/.google\.com(:4040)?(\/a\/.*)?\/pub\?.*key=/.test(a))a=a.replace(/\/pub\?/,"/tq?pub=1&");this.dataSourceUrl=a};
Io.prototype.Ux=function(){var a=this.dataSourceUrl;a=a.replace(/spreadsheets[0-9]\.google\.com/,"spreadsheets.google.com");this.dataSourceUrl=a=a.replace(/spreadsheets\.google\.com:433/,"spreadsheets.google.com")};
var Mo=function(a,b){var c=a.indexOf("#");if(c!=-1)a=a.substring(0,c);var d=a.indexOf("?");var e=c="";e=[];if(d==-1)c=a;else{c=a.substring(0,d);e=a.substring(d+1);e=e.split("&")}a=[];for(d=0;d<e.length;d++){var f=e[d].split("="),h={};h.name=f[0];h.originalParamText=e[d];a.push(h)}for(var k in b){e=b[k];f=n;for(d=0;d<a.length;d++)if(a[d].name==k){a[d].originalParamText=k+"="+encodeURIComponent(e);f=i;break}if(!f){d={};d.name=k;d.originalParamText=k+"="+encodeURIComponent(e);a.push(d)}}b=c;if(a.length>
0){b+="?";k=[];for(d=0;d<a.length;d++)k.push(a[d].originalParamText);b+=k.join("&")}return b},Oo=function(a){if(a.target.di()){a=kd(a.target.Zb());if(a.match(/^({.*})$/)){a=lj(a);No(a)}else sa(a)}else g(Error("google.visualization.Query: "+a.target.Qf()))},No=function(a){yo(a);var b=a.reqId,c=Ko[b];if(c){Ko[b]=j;c.Ao(a)}else g(Error("Missing query for request id: "+b))};Io.prototype.Dl=j;Io.prototype.zi=j;Io.prototype.hj=j;Io.prototype.wl=j;Io.prototype.Co=j;Io.prototype.Qk=j;Io.prototype.Nx=i;
Io.prototype.Fp=0;Io.prototype.Yo=j;Io.prototype.X=n;Io.prototype.Qj=function(){if(this.hj){window.clearTimeout(this.hj);this.hj=j}};Io.prototype.qz=function(){var a="timeout",b="Request timed out";this.fq(a,b)};Io.prototype.fq=function(a,b,c){a={version:"0.6",status:"error",errors:[{reason:a,message:b,detailed_message:c}]};this.Ao(a)};
Io.prototype.cr=function(a){var b={};if(this.wl)b.tq=String(this.wl);var c="reqId:"+String(this.requestId),d=this.Yo;if(d)c+=";sig:"+d;if(this.Co)c+=";type:"+this.Co;b.tqx=c;if(this.Qk){c=[];for(var e in this.Qk)c.push(e+":"+this.Qk[e]);b.tqh=c.join(";")}return Mo(a,b)};
Io.prototype.Jl=function(){var a=this.cr(this.dataSourceUrl);Ko[String(this.requestId)]=this;var b=this.Zp;if(b=="auto")b=Po(a);if(b=="makeRequest")if(r("gadgets.io.makeRequest"))this.py(a,this.dp);else g(Error("gadgets.io.makeRequest is not defined."));else if(b=="xhr"||b=="auto"&&El(p.location.href,(new R(p.location.href)).resolve(new R(a)).toString()))lo.send(a,Oo,"GET",j,Jo);else{b=document.getElementsByTagName("body")[0];if(this.fA){var c=this,d=document.createElement("img");d.onerror=function(){c.yj(a)};
d.onload=function(){c.yj(a)};d.style.display="none";var e=a+"&requireauth=1&"+(new Date).getTime();d.src=e;b.appendChild(d)}else this.yj(a)}};var Po=function(a){if(/[?&]alt=gviz(&[^&]*)*$/.test(a))a="makeRequest";else{a=Hl(a,"tqrt")||"auto";se(Fo,a)||(a="auto")}return a};
Io.prototype.py=function(a,b){var c=Lo;if(b[c.io.RequestParameters.CONTENT_TYPE]==j)b[c.io.RequestParameters.CONTENT_TYPE]=c.io.ContentType.TEXT;if(b[c.io.RequestParameters.AUTHORIZATION]==j)b[c.io.RequestParameters.AUTHORIZATION]=c.io.AuthorizationType.SIGNED;if(b.OAUTH_ENABLE_PRIVATE_NETWORK==j)b.OAUTH_ENABLE_PRIVATE_NETWORK=i;if(b.OAUTH_ADD_EMAIL==j)b.OAUTH_ADD_EMAIL=i;c.io.Lw(a,t(this.hv,this),b);this.Aq()};
Io.prototype.hv=function(a){if(a!=j&&a.data)eval(a.data);else{var b="make_request_failed",c="gadgets.io.makeRequest failed",d="";if(a&&a.errors){a=a.errors;d=a.join(" ")}this.fq(b,c,d)}};Io.prototype.yj=function(a){this.Aq();no(a);this.ay()};Io.prototype.Aq=function(){var a=this;this.Qj();this.hj=window.setTimeout(function(){a.qz()},this.Iq*1000)};Io.prototype.Cq=function(){if(this.zi){window.clearTimeout(this.zi);this.zi=j}};
Io.prototype.ay=function(){this.Cq();if(this.Fp!=0&&this.Nx&&this.X){var a=this;this.zi=window.setTimeout(function(){a.Jl()},this.Fp*1000)}};Io.prototype.send=function(a){this.X=i;this.Dl=a;this.Jl()};Io.prototype.Lw=function(a,b){this.X=i;this.Dl=a;this.sendMethod="makeRequest";this.dp=b||{};this.Jl()};Io.prototype.abort=function(){this.X=n;this.Qj();this.Cq()};Io.prototype.Ao=function(a){this.Qj();a=new Ao(a);if(!a.Vr("not_modified")){this.Yo=a.rw()?j:a.ot();var b=this.Dl;b.call(b,a)}};
Io.prototype.setTimeout=function(a){if(typeof a!="number"||isNaN(a)||a<=0)g(Error("Timeout must be a positive number"));this.Iq=a};Io.prototype.Si=function(a){if(typeof a!="string")g(Error("queryString must be a string"));this.wl=a};var Qo=function(a,b){Xn.call(this,a,b)};v(Qo,Xn);Qo.prototype.nb=0;Qo.prototype.Cb=function(a){if(this.nb!=0)a([]);else{this.nb=1;var b=new Io(this.bk);b.send(t(function(c){this.nb=3;c=c.qt();a(this.Xt(c))},this))}};Qo.prototype.Xt=function(a){if(a){for(var b=[],c=a.Ek(),d=a.Dk(),e=0;e<c;e++){var f=a.xa(e,0);if(f){var h=this.Yf(a.xa(e,1));f=new tn(h,f.getTime()/1000);if(d>2)f.snippet=this.Yf(a.xa(e,2));b.push(f)}}me(b,function(k,l){return l.time-k.time});return b}return[this.zk()]};
Qo.prototype.zk=function(){};u("google.visualization.Query.setResponse",No);var Ro=function(a,b){Qo.call(this,a,b);if(this.bk.indexOf("spreadsheets.google.com")==-1)g(new Error("Invalid feed url"))};Ro.inherits(Qo);var So=function(a,b){a=new R(a);var c=a.mu("key");if(c!=""){c=a.Tf();c=c.substr(0,c.lastIndexOf("/"))+"/tq";a.rg(c);a.K("gid","0");a.K("pub","1");b(a.toString())}else b(j)};Ro.prototype.Fb=function(){return"Google Spreadsheet data"};Ro.prototype.zk=function(){return Yn("There was an error while getting the data.<br>Make sure you published your spreadsheet.")};var To=function(a,b){Xn.call(this,a,b);this.ak=new R(this.bk);this.cl=new ao(this.ak)};v(To,Xn);To.prototype.nb=0;var Uo=function(a,b){b("http://www.google.com/reader/api/0/feed-finder?output=json&q="+escape(a))};To.prototype.Cb=function(a){if(this.nb!=0)a([]);else{this.nb=1;this.cl.send({},t(function(b){this.nb=3;a(this.lo(b))},this),t(function(){this.nb=2;a([this.yu()])},this))}};
To.prototype.lo=function(a){if(a.feed){var b=new tn(a.title,undefined,a.feed[0].href);return[b]}if(!a.items||a.items.length==0)return[this.ju()];for(var c=[],d=0;d<a.items.length;d++)if(a.items[d].feed&&a.items[d].feed.length){b=a.items[d];var e=b.content.content;e=e.replace(/\u003cbr\u003e/,"");var f=this.iy(b.feed[0].href),h=b.alternate&&b.alternate[0]?b.alternate[0].href:f;b=new tn(b.title,undefined,f,e,{link:h});c.push(b)}return c};To.prototype.iy=function(a){return a.replace(/(%0A|%27)/g,"")};
To.prototype.ju=function(){var a=this.ak.Rf("q");a=td(a);a="Your search - <b>"+(a+"</b> - did not match any feeds.<br>You can try some of <a href=\"javascript:goog.finance.switchToRssFeed('')\">these examples</a> instead.");return Yn(a)};To.prototype.yu=function(){var a=this.ak.Rf("q");a="There seems to be a connection problem. <a href=\"javascript:goog.finance.switchToRssFeed('"+(a+"')\">Try again</a>?");return Yn(a)};
To.prototype.Fb=function(){var a=this.ak.Rf("q");a=td(a);return a='Results matching "'+(a+'"')};var Vo=function(a,b){Xn.call(this,a,b)};v(Vo,To);var Wo=function(a,b){b("finance/plot_feeds_examples.js")};Vo.prototype.Cb=function(a){if(this.nb!=0)a([]);else{this.nb=1;var b=new M;D(b,"complete",t(function(){this.nb=3;if(b.di()){var c=eval(b.Zb());a(this.lo(c))}},this));b.send(this.bk)}};Vo.prototype.Fb=function(){return"Examples"};var Xo=function(a){this.bh={};this.Jx={};this.BA=a},Yo=["srch","sht","url","stat","blog"];Xo.prototype.Ly=function(a,b){this.Jx[a]=b};Xo.prototype.gu=function(a,b,c,d){this.Un(a,function(e){e==j?b(a,j):e.Of(function(f){b(a,f)},c,e.pl())},d)};Xo.prototype.Gd=function(a,b,c,d,e){this.Un(a,t(function(f){if(f){var h=this.Je(a);f.Gd(function(k){for(var l=0;l<k.length;l++)k[l].source=h;b(a,k)},c,d)}else b(a,[this.iu()])},this),e)};
Xo.prototype.Un=function(a,b,c){if(this.bh[a])b(this.bh[a].feedFetcher);else{var d=this.Ft(a),e=this.Jt(d),f=this.zu(d);if(c)f=function(h,k){k(h)};f(d,t(function(h){if(h==j)b(j);else try{var k=new e(h,this.Jx[a]);this.bh[a]={feedFetcher:k,feedUrl:h,callback:b};b(k)}catch(l){b(j)}},this))}};Xo.prototype.It=function(a){if(this.bh[a])return this.bh[a].feedFetcher.Fb();return"Ooops!"};
Xo.prototype.Jt=function(a){switch(this.Je(a)){case 1:return Ro;case 4:return this.BA?ho:jo;case 2:return ho;case 3:return Vo;case 0:return To}};Xo.prototype.zu=function(a){switch(this.Je(a)){case 1:return So;case 4:return io;case 2:return io;case 3:return Wo;case 0:return Uo}};Xo.prototype.Je=function(a){return a.indexOf("spreadsheets.google.com")!=-1?1:a.indexOf("/finance/blogs?q")!=-1?4:a.indexOf("http://")==0?2:a==""?3:0};
Xo.prototype.Ft=function(a){if(!_ticker)return a;var b=_ticker,c=b.indexOf(":")!=-1?b.split(":")[1]:b,d=r("_companyName")||b;a=a.replace(/{TICKER}/ig,b);a=a.replace(/{SYMBOL}/ig,c);return a=a.replace(/{COMPANY_NAME}/ig,d)};Xo.prototype.iu=function(){return Yn("This URL does not have a feed associated with it.<br>You can try some of <a href=\"javascript:goog.finance.switchToRssFeed('')\">our examples</a> instead.")};var Zo=function(){};v(Zo,E);Zo.prototype.se=function(){g(new Error("Implement this method."))};Zo.prototype.Nf=function(){g(new Error("Implement this method."))};Zo.prototype.Eh=function(){return j};Zo.prototype.gd=function(){};Zo.prototype.Od=function(){};Zo.prototype.op=function(a){this.dispatchEvent({type:"item_highlighted",id:a.id})};Zo.prototype.j=function(){Zo.r.j.call(this)};var $o=function(a,b,c,d){d=d!=undefined?d:i;this.Ub=new Xo(d);(this.hc=a?a:j)&&c&&this.Ub.Ly(this.hc,c);this.oa=!a&&r("_prefs")?new _GF_Prefs("feeds"):j;this.hi=this.$o=this.vc=this.Xl=this.A=this.yc=j;b=b?b:{MSG_FILTER:"Search within items",MSG_SCROLL_UP:"Previous",MSG_SCROLL_DOWN:"Next"};this.Q=new Y(j,b);this.Il=j;this.Zf=n;this.Qd();if(!a)p.rssFeedsPanel=this};v($o,Zo);
$o.prototype.Qd=function(){D(this.Q,"scroll_to_end",t(this.Mz,this));D(this.Q,"item_clicked",t(function(a){this.op(a);this.Od(a.id)},this));D(this.Q,"list_changed",t(function(){this.dispatchEvent({type:"items_changed"})},this))};$o.prototype.oq=function(a){if(this.Xl)this.Xl.innerHTML=a};
var ap=function(){var a=new Pi;a.append("<form name=add_feed_form class=add_feed_form id=add_feed_form").append('  method=get onsubmit="google.finance.plotRssFeed();').append('  return false;">').append('<table width=100% style="table-layout:fixed" cellspacing=0').append('  cellpadding=0><td><input class=feed_query_box name="').append('rss_query_box" id="').append('rss_query_box">').append("</td><td width=80>").append('<input class=fsbutt id=add_feed_url_button value="Search').append('" type=submit></td></table></form>');return a.toString()};
$o.prototype.Gw=function(){if(!this.Zf){this.Zf=i;var a=this.hc||this.yc||"";this.tj(a)}};$o.prototype.tj=function(a){this.Iz(a);this.Jz(a);this.hc||this.ii(a);this.yc=a;this.yc==""?this.Q.Vv():this.Q.Vy();this.Il&&!this.hc&&this.Il.ua(a);this.Q.zl();var b=this.Kf(),c=this.hc?i:n;this.Ub.Gd(a,t(this.Ud,this),b.start,b.end,c)};$o.prototype.ii=function(a){var b=this.Ub.Je(a);Ci({href:a},"feeds",Yo[b],"")()};
$o.prototype.Kf=function(){var a=r("_finance_chart"),b=a?a.Cc("defaultEndTime")/1000:ra(),c=a?a.Cc("defaultStartTime")/1000:j;if(!c){c=_chartConfigObject.defaultZoomDays;a=a?a.Cc("numDays"):j;c=b-(a?a:c)*86400}return{start:c,end:b}};
$o.prototype.Iz=function(a){if(!(this.yc==j||!this.vc)){var b=this.Ub.Je(this.yc);if(a!=""){H(this.vc,i);H(this.hi,i);if(this.yc!=""&&b==0){a="javascript:google.finance.plotRssFeed('"+this.yc+"')";b="&lsaquo; Back to search results"}else{a="javascript:google.finance.plotRssFeed('')";b="&lsaquo; Back to examples"}this.vc.href=a;this.vc.innerHTML=b}else{H(this.vc,n);H(this.hi,n);this.vc.href="javascript:;"}}};$o.prototype.Jz=function(a){this.oa&&a!=""&&a!=" "&&this.oa.set("last_query",a)};
$o.prototype.Vt=function(){if(this.oa){var a=this.oa.get("last_query");if(a&&a!=""&&a!=" "){var b='Your last query - "'+(td(a)+'"'),c=new Pi;c.append('<div style="font-size:12px;padding-top:3px;">').append("<a href=\"javascript:google.finance.plotRssFeed('").append(a.replace(/'/g,"\\'")+"')\">").append("Try this example").append("</a></div></div>");return new Wn(b+"<br>"+c.toString())}}return j};
$o.prototype.gd=function(a){if(this.se()){var b=a.startDate.getTime()/1000;a=a.endDate.getTime()/1000;this.Q.zl();this.Ub.Gd(this.yc,t(this.Ud,this),b,a)}};$o.prototype.lt=function(){return this.yc};$o.prototype.Eh=function(){return this.hc};$o.prototype.Ud=function(a,b){if(b&&b.length>0){this.oq(this.Ub.It(a));this.Br(b);this.Q.Gg(this.Gt(b));if(a=="")(a=this.Vt())&&this.Q.Gg([a]);this.dispatchEvent({type:"items_changed"})}};
$o.prototype.Br=function(a){if(a[0]&&a[0].time){var b=this.Kf();if(a[0].time<b.start){a=new Wn("The most recent item is out of the chart view. Zoom out to see these items on the chart.","plot_feeds_user_warning");a.fakeTime=i;this.Q.Gg([a])}}};$o.prototype.se=function(){for(var a=this.Q.Fd(),b=0;b<a.length;b++){var c=a[b];if(c.getTime())return i}return n};$o.prototype.Od=function(a){this.Q.Kq(a)};
$o.prototype.Nf=function(){for(var a=this.Q.Fd(),b=[],c=0;c<a.length;c++){var d=a[c];d=new bp(_ticker,d.getTime(),d.cb,d.L);d._color="orange";b.push(d)}return b};
$o.prototype.Gt=function(a){for(var b=[],c="ABCDEFGHIJKLMNOPQRSTUWVXYZ",d=0;d<a.length;d++){var e;e=c.charAt(d%c.length);var f=a[d].Dc("type");if(f==1)e=new Wn(a[d].title);else{f=d;switch(a[d].source){case 0:e=new Vn(f,e,a[d],"Plot feed on chart");break;case 3:e=new Vn(f,e,a[d],"Try this example");break;case 2:default:e=new Tn(a[d].time?a[d].time.toString():j,e,a[d]);if(this.hc)e.displayAuthor=i;break}}b.push(e)}return b};
$o.prototype.ff=function(a){this.A=a;if(!this.hc){var b=F("rss_query_box");if(b){this.Il=new V("Enter a search term to find feeds or paste a feed url");this.Il.decorate(b)}}b=Ng("div");this.Xl=Ng("div",{id:"feed_list_title"});this.oq("&nbsp;");G(a,this.Xl);G(a,b);a=new ig(400,_slHeight);this.hc||(a.height-=22);this.Q.decorate(b,a);this.hc||this.$q()};
$o.prototype.$q=function(){var a=this.Q.ou();this.vc=Ng("a",{"class":"lac"});this.vc.innerHTML="&lsaquo; Back to search results";this.hi=Ng("span",{}," | ");this.$o=Ng("a",{href:"http://google.com/support/finance/bin/answer.py?answer=98635"});this.$o.innerHTML="Learn more &raquo;";G(a,this.vc);G(a,this.hi);G(a,this.$o);H(this.vc,n);H(this.hi,n)};$o.prototype.Mz=function(){this.Ub.gu(this.yc,t(this.Ud,this),30)};$o.prototype.j=function(){Nf(this.Q);if(this.A){Rg(this.A);this.A=j}$o.r.j.call(this)};
var cp=function(a){var b=F("rss_query_box");if(a||a==""||b){a=a||a==""?a:b.value;p.rssFeedsPanel&&p.rssFeedsPanel.tj(a)}};u("google.finance.plotRssFeed",cp);var dp=function(){var a={MSG_FILTER:"",MSG_SCROLL_UP:"",MSG_SCROLL_DOWN:""};this.$=new li(this);this.gz=-1;this.Dd=i;this.Wq=_chartConfigObject.defaultZoomDays;this.Sj=_companyId.toString();this.Q=new Y(j,a);this.Q.Ay("off");this.Qd()};v(dp,Zo);dp.prototype.Qd=function(){this.$.listen(this.Q,"scroll_to_end",function(){this.zn(this.gz)});this.$.listen(this.Q,"item_clicked",function(a){this.op(a);this.Od(a.id)});this.$.listen(this.Q,"list_changed",function(){this.dispatchEvent({type:"items_changed"})})};
dp.prototype.jq=function(a,b){b&&this.Q.zl();this.Q.Gg(this.jt(a));this.dispatchEvent({type:"items_changed"})};dp.prototype.jt=function(a){var b=this.Q.Fd();b=b&&b.length?b[b.length-1]:j;for(var c=[],d=0;d<a.length;++d){var e=a[d];if(e.a){var f=String.fromCharCode("A".charCodeAt(0)+(this.Q.Fd().length+c.length)%26);e=new Sn(f,e);var h=e.getTime();if(!(b&&h>=b.getTime())){e.Fy(f);c.push(e);this.gz=h}}}return c};dp.prototype.ff=function(a){this.A=a;this.Q.decorate(a,new ig(400,_slHeight+31))};
dp.prototype.se=function(){return i};dp.prototype.Nf=function(){for(var a=this.Q.Fd(),b=[],c=0;c<a.length;c++){var d=a[c];d=new bp(_ticker,d.getTime(),d.Wt(),d.ca());b.push(d)}return b};dp.prototype.Lp=function(){if(B)this.Dd=n;var a=r("google.finance.data.company.news.clusters");a&&this.jq(a,i)};
dp.prototype.gd=function(a){if(this.Dd){this.Dd=n;this.Lp()}else{this.Wq=a.numDays;var b=a.startDate.getTime()/1000;a=a.endDate.getTime()/1000;var c=this.Fu(),d=this.Dt(),e=n;if(this.Sj!=_companyId.toString()){this.Sj=_companyId.toString();e=i}else if(c!=-1&&d!=-1){if(b<c||a>d)e=i}else e=i;e&&this.zn(a,b)}};dp.prototype.Fu=function(){var a=-1,b=this.Q.Fd();if(b.length)a=b[b.length-1].getTime();return a};dp.prototype.Dt=function(){var a=-1,b=this.Q.Fd();if(b.length)a=b[0].getTime();return a};
dp.prototype.Od=function(a){this.Q.Kq(a)};dp.prototype.j=function(){this.$.dispose();if(this.A){Rg(this.A);this.A=j}dp.r.j.call(this)};dp.prototype.eu=function(a,b){var c=new R("/finance/kd");c.K("output","json");c.K("keydevs","1");c.K("st",b*1000);c.K("et",a*1000);c.K("recnews","0");c.K("zoomdays",this.Wq);return c.toString()+"&cid="+_companyId+Ei()};
dp.prototype.zn=function(a,b){var c=b?b:a-86400*this.Wq,d=new M;D(d,"complete",t(function(){if(d.di())try{var e=lj(d.Zb()),f=b!==undefined;e&&e.clusters&&this.jq(e.clusters,f)}catch(h){}},this));d.send(this.eu(a,c))};var fp=function(a,b){this.F=j;this.Vw=new dp;this.Bb=new ep(n);this.gy=new $o;var c={MSG_FILTER:"Search within posts",MSG_SCROLL_UP:"Newer posts",MSG_SCROLL_DOWN:"Older posts"};this.MAX_BLOG_ITEMS=26;var d="http://www.google.com";if(!a&&b!=undefined)d=b;b=d+"/finance/blogs?q={TICKER}&output=rss"+Ei();this.sr=new $o(b,c,this.MAX_BLOG_ITEMS,a);this.Kc=[this.Vw,this.sr,this.gy];this.Ze=[];this.qA=["n","b","f"];this.bn=j;this.Qd();a="DateTimeConstants";zn(a,wn())||An(Cn,wn())};v(fp,ef);
fp.prototype.Hm=function(a){this.bn=a;if(this.Bb&&this.Bb.X())this.Bb.gd(a);else if(!a.pinClicked){var b=this.Mf();b&&b.gd(a)}};fp.prototype.zr=function(a){var b=this.Mf();b&&b.Od(a.id)};fp.prototype.Zl=function(){if(!(this.Bb&&this.Bb.X())){this.Ip();var a=this.Mf();a&&a.se()&&this.er(a.Nf())}};
fp.prototype.Yx=function(){var a=F("news_div_cont");if(a){H(a,i);this.Vw.ff(a);this.Ze[0]=a}if(a=F("news-tabs")){H(a,n);this.F=new ll;this.F.decorate(a);D(this.F,"select",t(this.ly,this))}(a=F("tabs-clear"))&&H(a,n);if(a=F("blogs_div_cont")){this.Ze[1]=a;this.sr.ff(a)}if(a=F("plot_feed_div_cont")){this.Ze[2]=a;a.innerHTML=ap();this.gy.ff(a)}this.Ze[0]&&H(this.Ze[0],i);this.Rs(p.location.href);u("google.finance.chart.plotRssFeed",t(this.zp,this));u("google.finance.chart.clearFlags",t(this.Ip,this))};
fp.prototype.Qd=function(){rn("visibleChartRangeChanged",t(this.Hm,this));rn("chartObjectClicked",t(this.zr,this));for(var a=0;a<this.Kc.length;a++){D(this.Kc[a],"items_changed",t(this.Zl,this));D(this.Kc[a],"item_highlighted",t(this.Xv,this))}};fp.prototype.j=function(){for(var a=0;a<this.Kc.length;a++)this.Kc[a].dispose();if(this.F){Nf(this.F);this.F.dispose()}fp.r.j.call(this)};
fp.prototype.Rs=function(a){if(this.F){var b=new R(a);a=Number(b.Rf("ntsp"));if(a>=0){if(a>0){b=b.Rf("ntrssurl")||this.Kc[a].Eh()||"";this.Kc[a].tj(unescape(b))}this.F.Vi(a)}}};fp.prototype.du=function(){if(!this.F)return"";var a=[];a.push("ntsp=");a.push(this.F.dd());if(this.F.dd()>0){var b=this.Kc[this.F.dd()];if(!b.Eh()){a.push("&ntrssurl=");a.push(escape(b.lt()))}}return a.join("")};
fp.prototype.zp=function(a){if(!(this.Bb.X()&&this.Bb.mt()==a)){var b=r("_finance_chart");b&&b.Pj(_ticker);this.Bb.setActive(i);this.Bb.Cx(a)}};var gp=function(a){r("_tabs").zp(a)};fp.prototype.ly=function(a){if(this.F){var b=this.F.dd(),c=F("news-wrapper");if(c){var d=b!=0||_has_news;H(c,d);(c=F("no-news"))&&H(c,!d)}for(d=0;d<3;++d)this.Ze[d]&&H(this.Ze[d],b==d);b!=0&&this.Kc[b].Gw();this.Zl(a);Ci("","news-tabs",this.qA[b],"")();this.bn&&this.Hm(this.bn)}};
fp.prototype.Mf=function(){if(!this.F)return j;return this.Kc[this.F.dd()]};var al=function(){var a=r("_tabs");if(a)(a=a.Mf())&&a.Lp()},sn=function(){var a=r("_tabs");a&&a.Zl()},$k=function(){var a=r("_tabs");a&&a.Yx()},hp=function(a){var b=0;for(a=a;a&&a.tagName.toLowerCase()!="body";){b+=a.offsetTop;a=a.offsetParent}return b},bl=function(a){if(a)if(!F("ad-label")){a=F("link-to-chart-link");var b=F("news_div_cont"),c=_tabs.Mf();if(a&&b&&c){_slHeight=hp(a)-hp(b)-36;b.innerHtml="";c.ff(b)}}};
fp.prototype.Ip=function(){var a=r("_finance_chart");a&&a.Pj(_ticker);this.Bb&&this.Bb.X()&&this.Bb.setActive(n)};fp.prototype.er=function(a){a.length>0&&_finance_chart&&_finance_chart.sf(a)};fp.prototype.Xv=function(a){_finance_chart&&_finance_chart.Zv(_ticker,a.id)};u("goog.finance.switchToRssFeed",gp);u("goog.finance.renderNewsTabs",$k);var ep=function(a){this.ab=n;this.Ub=new Xo(a!=undefined?a:i);this.cn="";this.vi=[]};ep.prototype.X=function(){return this.ab};ep.prototype.setActive=function(a){this.ab=a};ep.prototype.mt=function(){return this.cn};ep.prototype.Cx=function(a){this.ii(a);this.cn=a;this.vi=[];this.Lb=this.Kf();this.Ub.Gd(a,t(this.Ud,this),this.Lb.start,this.Lb.end)};ep.prototype.ii=function(a){var b=this.Ub.Je(a);Ci({href:a},"feeds",Yo[b],"")()};
ep.prototype.Kf=function(){var a=_finance_chart,b=a?a.Cc("defaultEndTime")/1000:ra(),c=a?a.Cc("defaultStartTime")/1000:j;if(!c){c=_chartConfigObject.defaultZoomDays;a=a?a.Cc("numDays"):j;c=b-(a?a:c)*86400}return{start:c,end:b}};
ep.prototype.gd=function(a){var b=a.startDate.getTime()/1000;a=a.endDate.getTime()/1000;var c=n;if(this.Lb&&this.Lb.start&&this.Lb.end){if(b<this.Lb.start){c=i;this.Lb.start=b}if(a>this.Lb.end){c=i;this.Lb.end=a}}else{c=i;this.Lb={start:b,end:a}}if(c){this.vi=[];this.Ub.Gd(this.cn,t(this.Ud,this),this.Lb.start,this.Lb.end)}};ep.prototype.Ud=function(a,b){if(a!=j&&b&&b.length>0){this.ky(b);this.Dz()}};
ep.prototype.Dz=function(){if(this.ab&&_finance_chart){_finance_chart.Pj(_ticker);_finance_chart.sf(this.vi);if(this.vi.length==0){var a=new ff("noFeedDataReturned");ip.dispatchEvent(a)}}};
ep.prototype.ky=function(a){for(var b="ABCDEFGHIJKLMNOPQRSTUWVXYZ",c=0;c<a.length;c++){var d=b.charAt(c%b.length),e=a[c].Dc("type");if(e!=1)switch(a[c].source){case 0:case 3:continue;case 2:default:d=new bp(_ticker,a[c].time,d,a[c].time);d._color="orange";d._title=a[c].title;d._snippet=a[c].snippet&&a[c].snippet.length>70?a[c].snippet.substr(0,70)+"...":a[c].snippet;this.vi.push(d);break}}};var ip=new E,qn=function(a,b){ip.addEventListener(a,b)};function _ac_install(){jp(document.body,"onkeydown",kp);jp(document.body,"onkeypress",kp)}function _ac_register(a){for(var b=lp.length;--b>=0;)if(lp[b]===a)return;lp.push(a)}function _ac_onfocus(a){kp(a)}function _ac_isCompleting(){return!!mp&&!np}function _ac_isCompleteListShowing(){return!!mp&&!np&&op&&op.length}function _ac_cancel(){np=i;pp(n)}function jp(a,b,c){var d=a[b];a[b]=d?qp(a[b],c):c;return d}
function rp(a){if("stopPropagation"in a)a.stopPropagation();else a.cancelBubble=i;"preventDefault"in a&&a.preventDefault()}function qp(a,b){return function(){var c=a.apply(this,arguments),d=b.apply(this,arguments);return c===n||d===n?n:i}}
function kp(a){a=a||window.event;var b=a.target||a.srcElement;if("INPUT"==b.tagName&&b.type.match(/^text$/i)||"TEXTAREA"==b.tagName){var c=nb(a),d=a.type=="keydown",e=a.shiftKey;if(b!==sp||mp===j){sp=b;var f=n;if(13!==c&&27!==c){for(var h=0;h<lp.length;++h){var k=lp[h](b,a);if(k){mp=k;tp=jp(sp,"onblur",_ac_ob);f=i;break}}if(!f){sp=j;_ac_ob(j)}}}if(mp){b=mp.Ro(c,d,e);f=op&&op.length>0;h=n;if(b&&f){if(up>=0)h=!np&&!!op;window.setTimeout(function(){mp&&vp(c,d,e)},0)}else if(b)mp.oncomplete&&mp.oncomplete(n,
c,sp,undefined);else{h=c==27||!e&&c==40||!e&&c==38;window.setTimeout(function(){mp&&vp(c,d,e)},0)}h&&rp(a);return!h}}return i}function _ac_ob(){window.setTimeout(function(){if(sp)sp.onblur=tp;tp=sp=mp=j;np=n;pp(n)},0)}function _AC_Store(){}_AC_Store.prototype.completable=function(){alert("UNIMPLEMENTED completable")};_AC_Store.prototype.completions=function(){alert("UNIMPLEMENTED completions")};_AC_Store.prototype.oncomplete=function(){};_AC_Store.prototype.substitute=function(){alert("UNIMPLEMENTED substitute")};
_AC_Store.prototype.Ng=i;_AC_Store.prototype.vf=i;_AC_Store.prototype.lm=n;_AC_Store.prototype.Jg=n;_AC_Store.prototype.xj=n;_AC_Store.prototype.Ro=function(a,b,c){if(!b&&(13===a||wp==a&&this.Ng))return i;if(9===a&&!c)return b==ya();return n};function _AC_SimpleStore(a){this.Hn={};this.vj(a);this.countThreshold=10}_AC_SimpleStore.prototype=new _AC_Store;_AC_SimpleStore.prototype.constructor=_AC_SimpleStore;
_AC_SimpleStore.prototype.vj=function(a){for(var b=0;b<a.length;++b){var c=a[b];if(c)for(var d=c.split(/ |,|\.|:|\(|\)|\[|\]|\t|\r|\n/),e=0;e<d.length;++e)if(d[e]&&d[e].length)for(var f=0;f<d[e].length;++f){var h=d[e].charAt(f).toLowerCase();if(f==0||h>="\u4e00"&&h<="\u9fbb"){var k=this.Hn[h];if(k){if(k[k.length-1].value==c)continue}else k=this.Hn[h]=[];k.push(new _AC_Completion(c,j))}}}};
_AC_SimpleStore.prototype.completable=function(a,b){for(var c=0,d=0,e=0;e<b;++e){var f=a.charAt(e);switch(d){case 0:if('"'==f)d=1;else if(","==f)c=e+1;break;case 1:if('"'==f)d=0;break}}for(;c<b&&" \t\r\n".indexOf(a.charAt(c))>=0;)++c;return a.substring(c,b)};
_AC_SimpleStore.prototype.completions=function(a,b){if(!a)return[];var c=new RegExp("^(.*[\\s<\"',])?("+a.replace(/([\^*+\-\$\\\{\}\(\)\[\]\#?\.])/g,"\\$1")+")(.*)","i"),d=a.charAt(0);if(!(b&&b.length)&&a)b=this.Hn[d.toLowerCase()];var e=[];if(b)for(var f=0;f<b.length;++f){var h;if(d>="\u4e00"&&d<="\u9fbb"){var k=b[f].value.indexOf(a);if(k<0)continue;h=[""];h.push(b[f].value.substring(0,k));h.push(a);h.push(b[f].value.substring(k+a.length))}else h=b[f].value.match(c);if(h){e.push(new _AC_Completion(b[f].value,
xp(h[1]||"")+"<b>"+xp(h[2])+"</b>"+xp(h[3])));if(e.length>this.countThreshold)break}}e.sort(_AC_CompareACCompletion);return e};function _AC_CompareACCompletion(a,b){var c=a.value.toLowerCase().replace(/^\W*/,""),d=b.value.toLowerCase().replace(/^\W*/,"");return a.value===b.value?0:c<d?-1:1}_AC_SimpleStore.prototype.substitute=function(a,b,c,d){return a.substring(0,b-c.length)+d.value+", "+a.substring(b)};function _AC_Completion(a,b){this.value=a;this.html=b}
_AC_Completion.prototype.toString=function(){return"(AC_Completion: "+this.value+")"};var lp=[],sp=j,mp=j,tp=j,np=n,yp=j,op=j,up=-1;
function vp(a,b,c){var d=a===37||a===39,e=zp(sp)===sp.value.length;if(!d||_ac_isCompleteListShowing()||a===39&&e)Ap();d=i;e=op?op.length:0;if(mp.Ro(a,b,c)){if(mp.vf&&up<0&&e>=1)up=0;if(up>=0){b=sp;c=op[up].value;Bp();mp.oncomplete&&mp.oncomplete(i,a,b,c)}}else switch(a){case 27:up=-1;d=n;break;case 38:if(b)up=Math.max(e>=0?0:-1,up-1);break;case 40:if(b)up=Math.min(e-1,up+1);break}sp&&pp(d)}function _ac_select(a){up=a;Bp();mp&&mp.oncomplete&&mp.oncomplete(i,j,sp,sp.value);pp(n)}
function Bp(){var a=zp(sp);sp.value=mp.substitute(sp.value,a,yp,op[up]);up=-1;yp=op=j;lb(window,sp,sp.value.length)}function Ap(){if(!np&&mp){var a=zp(sp);a=mp.completable(sp.value,a);if(a!=yp){var b;op=j;up=-1;var c=up>=0&&op?op[up].value:j;op=mp.completions(a,b);up=-1;for(b=0;b<op.length;++b)if(c==op[b].value){up=b;break}yp=a}}else{op=yp=j;up=-1}}function _ac_mouse_over(a){if(up!=a){up=a;pp(i)}}
function pp(a){var b=document.getElementById("ac-list");if(a&&op&&op.length){if(!b){b=document.createElement("DIV");b.id="ac-list";b.style.position="absolute";b.style.display="none";document.body.appendChild(b)}if(mp.vf&&up<0)up=0;a=[];for(var c=0;c<op.length;++c)a.push('<div onmouseover="_ac_mouse_over(',c,'); "',mp.vf?"":' onmouseout="_ac_mouse_over(-1)"',' onmousedown="try{_ac_select(',c,')}finally{return false}"',c==up?" class=selected>":">",op[c].html,"</div>");b.innerHTML=a.join("");b.style.left=
"";b.style.right="";b.style.top="";b.style.bottom="";a={};if(sp){a=sp;a=cc(a)}a.x-=2;a.y-=2;b.style.left=a.x+"px";if(mp&&mp.xj){var d=ab(window,$a);b.style.visibilty="hidden";b.style.display="";b.style.top=a.y-b.offsetHeight+"px";b.style.display="none";b.style.visibility=""}else b.style.top=a.y+a.h+"px";b.style.display="";c=cc(b);if(mp&&!mp.lm){d=ab(window,$a);if(c.y+c.h>d&&!mp.xj)b.style.top=a.y-c.h+"px"}if(mp&&!mp.Jg){d=ab(window,Za);if(c.x+c.w>d)b.style.left=a.x+a.w-c.w+"px"}}else if(b){b.style.display=
"none";b.innerHTML=""}}function xp(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\"/g,"&quot;").replace(/ /g,"&nbsp;").replace(/\r\n?|\n/g,"<br>")}function zp(a){if("INPUT"==a.tagName){var b=a.value.length;if(undefined!=a.selectionStart)b=a.selectionStart;else if(document.selection){a=document.selection.createRange();a.moveStart("character",-b);b=a.text.length}return b}else return kb(window,a)}var wp=",".charCodeAt(0);var Z=function(a,b,c,d,e,f){this.Gm="chartElement";this.main_layer_ticker=e;this.Sj=f.companyId;this.indicator_enabled=f.enableIndicator;this.za={};this.za.q=e;this.za.query=f.query||e;f.minZoomDaysNoIntraDay=f.minZoomDaysNoIntraDay||20;this.za.minZoomDaysNoIntraDay=f.minZoomDaysNoIntraDay;f.minZoomDaysNormal=f.minZoomDaysNormal||1;this.za.minZoomDaysNormal=f.minZoomDaysNormal;f.minZoomDays=f.minZoomDaysNormal;if(f.compareTo){this.za.compareTo=f.compareTo;var h=f.compareToDiffMarketSessions||"";this.za.compareToDiffMarketSessions=
h}this.dn=[{lname:"displayNewsPins",sname:"chdnp"},{lname:"displayDividends",sname:"chdd"},{lname:"displaySplits",sname:"chds"},{lname:"displayVolume",sname:"chdv"},{lname:"verticalScaling",sname:"chvs"},{lname:"displayExtendedHours",sname:"chdeh"},{lname:"forceDisplayExtendedHours",sname:"chfdeh"},{lname:"defaultEndTime",sname:"chdet"},{lname:"defaultDisplayMinutes",sname:"chddm"},{lname:"defaultDisplayInterval",sname:"chddi"},{lname:"lineStyle",sname:"chls"},{lname:"compareTo",sname:"cmpto"},{lname:"compareToDiffMarketSessions",
sname:"cmptdms"},{lname:"query",sname:"q"}];if(Cd(ti,"9")>=0){this.flash_uid=(new Date).getTime();this.removePinsBuffer=[];this.addPinsBuffer=[];this.data_fetch_pending=i;this.pending_tasks=[];this.width=c;this.height=d;this.flash_tag=new pi(a,c,d,"9, 0, 0, 0");this.flash_tag.jf(this.Gm);this.ae("lcId",this.flash_uid);this.ae("q",this.main_layer_ticker);this.ae("u",b);this.fieldSeparator=",";this.objectSeparator="::";this.ae("fieldSeparator",this.fieldSeparator);this.ae("objectSeparator",this.objectSeparator);
this.ae("sparklineType","static");a="MainViewPoint";b="BottomViewPoint";this.G("single_viewpoints",["name:"+a,"height:202","topMargin:0"]);if(f.hasVolume){c="visible";if(f.displayVolume=="false")c="hidden";this.G("single_viewpoints",["name:"+b,this.indicator_enabled?"height:80":"height:45","topMargin:0","display:"+c])}if(this.indicator_enabled){c=["MACD","RSI","WilliamsPercentR","KDJ","BIAS","FastStochastic","SlowStochastic","CCI"];for(d=0;d<c.length;d++){this.G("single_viewpoints",["name:"+c[d],
"height:80","topMargin:0","display:hidden"]);this.G("single_layers",["vp:"+c[d],"name:DateLinesLayer","arity:Unique","tickPosition:1","type:simple","topMargin:20"]);this.G("single_layers",["vp:"+c[d],"name:"+c[d],"arity:Unique","type:indicator"])}}c=this.indicator_enabled?"IntervalBased":"";this.G("single_layers",["vp:"+a,"name:DateLinesLayer","arity:Unique","tickPosition:0","type:simple","hasText:true"]);this.G("single_layers",["vp:"+a,"name:PriceLinesLayer","arity:Unique","type:simple"]);d=this.indicator_enabled?
"IntervalBasedChartManagerLayer":"LineChartLayer";this.G("single_layers",["vp:"+a,"name:"+d,"arity:Unique","type:simple"]);if(this.indicator_enabled){this.G("single_layers",["vp:"+a,"name:SMA","arity:Unique","type:indicator","enabled:false"]);this.G("single_layers",["vp:"+a,"name:EMA","arity:Unique","type:indicator","enabled:false"]);this.G("single_layers",["vp:"+a,"name:BollingerBands","arity:Unique","type:indicator","enabled:false"])}d=this.indicator_enabled?"IntervalBasedAHChartLayer":"AHLineChartLayer";
this.G("single_layers",["vp:"+a,"name:"+d,"arity:Unique","type:simple"]);this.G("single_layers",["vp:"+a,"name:LastDayLineLayer","arity:Unique","type:simple"]);this.G("single_layers",["vp:"+a,"name:"+c+"PinPointsLayer","arity:Unique","type:simple"]);f.displayDividends!="false"&&this.G("single_layers",["vp:"+a,"name:"+c+"IndependentObjectsLayer","arity:Unique","type:simple","renderObj:dividend","positioning:bottom","avoidObj:split"]);f.displaySplits!="false"&&this.G("single_layers",["vp:"+a,"name:"+
c+"IndependentObjectsLayer","arity:Unique","type:simple","renderObj:split","positioning:bottom","avoidObj:dividend"]);this.G("single_layers",["vp:"+a,"name:BottomBarLayer","arity:Unique","type:simple"]);if(f.hasVolume){this.G("single_layers",["vp:"+b,"name:VolumeScaleLayer","arity:Unique","type:simple"]);if(this.indicator_enabled){this.G("single_layers",["vp:"+b,"name:IntervalBasedAHVolumeLayer","arity:Unique","type:simple"]);this.G("single_layers",["vp:"+b,"name:IntervalBasedVolumeLayer","arity:Unique",
"type:simple"]);this.G("single_layers",["vp:"+b,"name:VMA","arity:Unique","type:indicator","enabled:false"]);this.G("single_layers",["vp:"+b,"name:DateLinesLayer","arity:Unique","tickPosition:1","topMargin:20","type:simple"])}else{this.G("single_layers",["vp:"+b,"name:ECNVolume","arity:Unique","type:indicator"]);this.G("single_layers",["vp:"+b,"name:Volume","arity:Unique","type:indicator"]);this.G("single_layers",["vp:"+b,"name:DateLinesLayer","arity:Unique","tickPosition:1","type:simple"])}}this.G("compare_viewpoints",
["name:"+a,"height:247","topMargin:15"]);this.G("compare_layers",["vp:"+a,"name:PercentLinesLayer","arity:Unique","type:simple"]);this.G("compare_layers",["vp:"+a,"name:DateLinesLayer","arity:Unique","type:simple","tickPosition:0"]);this.G("compare_layers",["vp:"+a,"name:BottomBarLayer","arity:Unique","type:simple"]);this.G("compare_layers",["vp:"+a,"name:PercentLineChartLayer","arity:Multiple","type:simple"]);f.inComparisonPage&&this.G("compare_layers",["vp:"+a,"name:"+c+"PinPointsLayer","arity:Unique",
"type:simple"]);this.G("percent_viewpoints",["name:"+a,"height:247","topMargin:15"]);this.G("percent_layers",["vp:"+a,"name:PercentLinesLayer","arity:Unique","type:simple"]);this.G("percent_layers",["vp:"+a,"name:DateLinesLayer","arity:Unique","type:simple","tickPosition:0"]);this.G("percent_layers",["vp:"+a,"name:BottomBarLayer","arity:Unique","type:simple"]);this.G("percent_layers",["vp:"+a,"name:PrecalculatedPercentLineChartLayer","arity:Unique","type:simple"]);this.G("percent_layers",["vp:"+a,
"name:PercentLineChartLayer","arity:MultipleNonPrimary","type:simple"]);this.mr(f);this.hasFlash=i;this.jw(this.Gm);this.ew();if(f.enableRealtimeChart){f=r("google.Quote");f.addQuoteListener(t(this.ri,this))}}else{this.flash_tag=new Cp("/finance/getchart",c,d,e,f);this.hasFlash=n}};Z.prototype.ri=function(a,b){if(b==this.Sj){b=[{field:"l",isAh:n},{field:"el",isAh:i}];for(var c=0;c<b.length;c++){var d=a[b[c].field];d&&this.call("updateLastPrice",b[c].isAh,d.replace(/,/g,""))}}};
Z.prototype.ew=function(){rn("visibleChartRangeChanged",t(this.Ar,this))};Z.prototype.jw=function(){this.DA=new Vf(F("chart_anchor"));this.DA.addEventListener("mousewheel",this.kv,n,this)};Z.prototype.kv=function(a){if(Dp){this.call("handleMouseWheel",this.zt(a));this.iz(a)}return n};Z.prototype.iz=function(a){if(a.stopPropagation){a.stopPropagation();a.preventDefault()}a.cancelBubble=i;a.returnValue=n};Z.prototype.zt=function(a){return-a.detail};
Z.prototype.call=function(){if(arguments.length==0)g("Invalid call to chart: The first argument should be the function name followed by any number of additional arguments.");for(var a=[],b=1;b<arguments.length;b++)a.push(arguments[b]);b=arguments[0];var c=F(this.Gm);c&&c.callAsFunction&&c.callAsFunction(b,a)};Z.prototype.ae=function(a,b){this.flash_tag.ke(a,b)};Z.prototype.mr=function(a){for(var b in a)this.ae(b,a[b]);for(b=0;b<this.dn.length;b++){var c=this.dn[b];if(a[c.lname])this.za[c.lname]=a[c.lname]}};
Z.prototype.G=function(a,b){if(this[a]==undefined)this[a]="";else if(this[a]!="")this[a]+=this.objectSeparator;for(var c=b.length-1,d=0;d<c;d++)this[a]+=b[d]+this.fieldSeparator;this[a]+=b[c];this.flash_tag.ke(a,escape(this[a]))};Z.prototype.Rz=function(a){a.write(this.flash_tag.toString())};Z.prototype.Sz=function(a){a.innerHTML=this.flash_tag.toString()};Z.prototype.Zv=function(a,b){this.hasFlash&&this.call("htmlClicked",a,b)};Z.prototype.xl=function(a,b){var c={};c.method=a;c.args=b;this.pending_tasks.push(c)};
Z.prototype.sf=function(a){this.data_fetch_pending?this.xl(this.hm,arguments):this.hm(a)};Z.prototype.hm=function(a){this.hasFlash&&this.call("addObjectArray",a)};Z.prototype.Pj=function(a){this.data_fetch_pending?this.xl(this.Km,arguments):this.Km(a)};Z.prototype.Km=function(a){this.hasFlash&&this.call("clearAllPins",a)};Z.prototype.Gn=function(){this.data_fetch_pending=n;if(this.pending_tasks)for(;this.pending_tasks.length>0;){var a=this.pending_tasks.shift();a.method.apply(this,a.args)}};
Z.prototype.rj=function(a,b,c){if(this.data_fetch_pending)this.xl(this.rj,arguments);else{this.call("addCompareTo",a,b,c);this.Lm(a,i,c)}};
Z.prototype.Lm=function(a,b,c){var d;c=c||n;if(this.za.compareTo){var e=this.za.compareTo.split(";");d=(this.za.compareToDiffMarketSessions||"").split(";");if(e.length!=d.length){d.length=0;for(var f=e.length-1;f>=0;f--)d.push("1")}f=this.Xs(a,e);if(f==-1&&b){e.push(a);d.push(c?"1":"0")}else if(f!=-1&&!b){e.splice(f,1);d.splice(f,1)}this.za.compareTo=e.join(";")}else{this.za.compareTo=a;d=[c?"1":"0"]}this.za.compareToDiffMarketSessions=d.join(";")};
Z.prototype.Xs=function(a,b){for(var c=0;c<b.length;c++)if(b[c]==a)return c;return-1};Z.prototype.Px=function(a){this.call("removeCompareTo",a);this.Lm(a,n,j)};
Z.prototype.vz=function(a,b){var c="single";a={name:this.indicator_enabled?"IntervalBasedIndependentObjectsLayer":"IndependentObjectsLayer",vp:"MainViewPoint",arity:"Unique",type:"simple",renderObj:a=="displayDividends"?"dividend":"split",avoidObj:a=="displayDividends"?"split":"dividend",positioning:"bottom"};b=="false"?this.call("removeLayerFromStyle",a,c):this.call("addLayerToStyle",a,c)};
Z.prototype.setParameter=function(a,b){a=="displayDividends"||a=="displaySplits"?this.vz(a,b):this.call("setParameter",a,b);this.ef(a,b)};Z.prototype._getCurrentViewAsString=function(){return this.Xy(this.za)};Z.prototype.ef=function(a,b){this.za[a]=b};Z.prototype.Cc=function(a){return this.za[a]};Z.prototype.Xy=function(a){var b="{",c=i;for(var d in a){b+=(c?"":",")+'"'+d+'":"'+a[d]+'"';c=n}b+="}";return b};
Z.prototype.Ar=function(a){var b=a.startDate.getTime(),c=a.endDate.getTime();a.minutes&&this.ef("defaultDisplayMinutes",a.minutes);a.numDays&&this.ef("numDays",a.numDays);this.ef("defaultEndTime",c);this.ef("defaultStartTime",b)};Z.prototype.ft=function(){for(var a=this.za,b=this.dn,c=[],d=0;d<b.length;d++){var e=b[d];if(a[e.lname]){var f=a[e.lname];if(f=="true"||f=="false")f=f=="true"?1:0;c.push(e.sname+"="+f)}}return c.join("&")};
var Ep=new E,Dp=n,rn=function(a,b){Ep.addEventListener(a,b)},pn=function(a,b,c,d,e){Fp();var f=new ff("visibleChartRangeChanged");f.startDate=a;f.endDate=b;f.numDays=c;f.minutes=d;f.pinClicked=e;Ep.dispatchEvent(f)},Gp=function(a){var b=new ff("chartObjectClicked");b.id=a;Ep.dispatchEvent(b)};u("_visibleChartRangeChanged",pn);u("_flashClicked",Gp);function Fp(){_finance_chart.Gn()}function _setCurrentViewParam(a,b){_finance_chart.ef(a,b);r("google.finance").setLinkToChart()}
function _setChartSize(a){document.getElementById("chartElement").style.height=a;document.getElementById("chart_anchor").style.height=a}function _setChartType(a){var b=new ff("chartTypeChanged");b.chartType=a;Ep.dispatchEvent(b)}function _setChartFocus(a){Dp=a}function _getLinkToChart(){var a=[];a.push("finance?");_finance_chart&&a.push(_finance_chart.ft());if(_tabs){a.length>1&&a.push("&");a.push(_tabs.du())}a.push(Ei());return a.join("")}
function _replaceHref(a,b){if(a=document.getElementById(a))a.href=b}function bp(a,b,c,d){this._quote=a;this._date=b;this._letter=c;this._id=d}function _comparePushPinDescOnTime(a,b){return b._date-a._date};function Cp(a,b,c,d,e){this.src=a;this.width=b;this.height=c;this.ticker=d;this.zoomLevels=[{text:"1d",period:"1d",interval:60,days:1},{text:"5d",period:"5d",interval:240,days:5},{text:"1m",period:"1M",interval:86400,days:30},{text:"3m",period:"3M",interval:86400,days:90},{text:"6m",period:"6M",interval:86400,days:180},{text:"1y",period:"1Y",interval:86400,days:365},{text:"5y",period:"5Y",interval:604800,days:1825},{text:"Max",period:"40Y",interval:604800,days:7300}];this.configObject=e;this.Fr()}
Cp.prototype.Fr=function(){if(this.configObject.defaultZoomDays){if(this.configObject.minZoomDays>this.configObject.defaultZoomDays)this.configObject.defaultZoomDays=this.configObject.minZoomDays;for(var a=0;a<this.zoomLevels.length&&this.zoomLevels[a].days<this.configObject.defaultZoomDays;)a++;a=Math.min(a,this.zoomLevels.length-1);this.configObject.displayPeriod=this.zoomLevels[a].period;this.configObject.displayInterval=this.zoomLevels[a].interval}};
Cp.prototype.ke=function(a,b){if(this.configObject==j)this.configObject={};this.configObject[a]=b};Cp.prototype.toString=function(){var a='<div id="image_chart">';a+=this.Pn();a+="</div>";return a};
Cp.prototype.Pn=function(){var a=[];a.push('<table><tr><td class="itxt" align="left">');for(var b=0;b<this.zoomLevels.length;b++)if(this.configObject.minZoomDays==undefined||this.configObject.minZoomDays<=this.zoomLevels[b].days){a.push('<a href="javascript:_changeImage(');a.push("'"+this.zoomLevels[b].period+"',");a.push(this.zoomLevels[b].interval+", "+this.zoomLevels[b].days);a.push(');">'+this.zoomLevels[b].text+"</a> ")}a.push("</td></tr><tr><td>");a.push('<img src="'+this.src);a.push("?"+this.Lu());
a.push('" width="500" height="322">');a.push("</td></tr>");a.push('<tr><td class="itxt">For the ubercool interactive charts, ');a.push(" you need to install the ");a.push('<a href="http://www.adobe.com/go/getflashplayer/">');a.push("Adobe Flash Player</a></td></tr>");a.push("</table>");return a.join("")};Cp.prototype.write=function(a){a.write(this.toString())};Cp.prototype.update=function(){var a=document.getElementById("image_chart");a.innerHTML=this.Pn()};
Cp.prototype.Lu=function(){var a=[],b=this.ticker.split(":");if(b[0]=="NASDAQ")b[0]="NASD";a.push("q="+b[1]+"&x="+b[0]);if(this.configObject.displayPeriod!=j)a.push("&p="+escape(this.configObject.displayPeriod));else this.configObject.defaultZoomDays!=j?a.push("&p="+escape(this.configObject.defaultZoomDays)+"d"):a.push("&p=5d");this.configObject.displayInterval!=j?a.push("&i="+escape(this.configObject.displayInterval)):a.push("&i=240");return a.join("")};function Hp(){if($e){if(Re&&bf){for(var a=[1,8,1],b=bf.split(".");b.length<a.length;)b.push("0");for(var c=0;c<a.length;c++){var d=parseInt(b[c],10);if(isNaN(d)||d<a[c])return n;else if(d>a[c])return i}return i}return n}else return i}
function Ip(a,b,c,d){var e=r("google.finance.data.chart");if(e){var f=_ticker.indexOf(":");f=f>=0?_ticker.substring(f+1):_ticker;for(var h=["_5d","_10d","_30d","_1Y","_5Y","_ah"],k=0;k<h.length;k++)if(google.finance.data.chart[h[k]])_chartConfigObject[f+"_data"+h[k]]=e[h[k]];_chartConfigObject.corpActionsArray=eval(e.corp_actions)}return new Z(a,"getprices",b,340,c,d)}
function _emitFlashChart(a,b,c,d,e,f,h){if(Hp()){if(h!==undefined)c.query=h;_finance_chart=Ip(a,"100%",b,c);_finance_chart.sf(c.corpActionsArray);if(e){a=F(e);a.innerHTML=_finance_chart.flash_tag.toString()}else _finance_chart.Rz(document);if(_finance_chart.hasFlash){if(F("compare-bar")){f=new on(_finance_chart,_ticker,f,c.inComparisonPage);_relatedTickers!=j&&f.gr(_relatedTickers);f.decorate(F("compare-bar"));if(c.compareTo){a=c.compareTo.split(";");for(b=0;b<a.length;b++)f.im([a[b],a[b]])}}f=new X(_finance_chart);
f.fr(Jp());f.Ny(Kp(c),Lp(c),Mp(c),c.enableIndicatorSetting?["SMA","EMA","BollingerBands"]:[])}}else if(a=F(e||"chart_anchor"))a.style.height="340px";_tabs=new fp(i,d)}
function Kp(a){if(a.enableIndicatorSetting){var b={SMA:[{name:"Period",value:[20,50,100,200]}],EMA:[{name:"Period",value:[20,50,100,200]}],MACD:[{name:"Short Period",value:[12]},{name:"Long Period",value:[26]},{name:"EMA Period",value:[9]}],KDJ:[{name:"Period",value:[10]}],RSI:[{name:"Period",value:[10]}],WilliamsPercentR:[{name:"Period",value:[10]}],BIAS:[{name:"Period",value:[10]}],BollingerBands:[{name:"Period",value:[10]}],FastStochastic:[{name:"K Period",value:[14]},{name:"D Period",value:[3]}],
SlowStochastic:[{name:"K Period",value:[14]},{name:"D Period",value:[3]}],CCI:[{name:"Period",value:[20]}]};if(a.hasVolume)b.VMA=[{name:"Period",value:[5,10,20]}];return b}else return{}}
function Mp(a){if(a.enableIndicatorSetting){var b={SMA:{logName:"S",displayName:"Simple Moving Average (SMA)"},EMA:{logName:"E",displayName:"Exponential Moving Average (EMA)"},MACD:{logName:"M",displayName:"Moving Average Convergence Divergence (MACD)"},KDJ:{logName:"K",displayName:"KDJ Indicator (KDJ)"},RSI:{logName:"R",displayName:"Relative Strength Index (RSI)"},WilliamsPercentR:{logName:"W",displayName:"Williams %R (W%R)"},BIAS:{logName:"B",displayName:"Bias Ratio (BIAS)"},BollingerBands:{logName:"BB",
displayName:"Bollinger Bands (BOLL)"},FastStochastic:{logName:"FS",displayName:"Fast Stochastic Oscillator (FSTO)"},SlowStochastic:{logName:"SS",displayName:"Slow Stochastic Oscillator (SSTO)"},CCI:{logName:"C",displayName:"Commodity Channel Index (CCI)"}};if(a.hasVolume)b.VMA={logName:"V",displayName:"Volume Moving Average (VMA)"};return b}else return{}}
function Lp(a){var b=[];if(a.enableIndicatorSetting){Np(b,"SMA",a.smaSetting);Np(b,"EMA",a.emaSetting);a.hasVolume&&Np(b,"VMA",a.vmaSetting);Np(b,"MACD",a.macdSetting);Np(b,"KDJ",a.kdjSetting);Np(b,"RSI",a.rsiSetting);Np(b,"WilliamsPercentR",a.williamsPercentRSetting);Np(b,"BIAS",a.biasSetting);Np(b,"BollingerBands",a.bollingerBandsSetting);Np(b,"FastStochastic",a.fastStochasticSetting);Np(b,"SlowStochastic",a.slowStochasticSetting);Np(b,"CCI",a.cciSetting)}return b}
function Np(a,b,c){if(!(!c||c=="")){c=c.split("@");for(var d=0;d<c.length;d++)a.push({name:b,param:c[d]})}}
function Jp(){var a=[],b=j;if(_chartConfigObject.hasNews){b=_chartConfigObject.displayNewsPins!="false";a.push({name:"News Flags",checked:b,options:[],selected:n,paramName:"displayNewsPins",clickType:"np"})}if(_chartConfigObject.corpActionsArray!=undefined){b=_chartConfigObject.displayDividends!="false";a.push({name:"Dividends",checked:b,options:[],selected:n,paramName:"displayDividends",clickType:"dv"});b=_chartConfigObject.displaySplits!="false";a.push({name:"Splits",checked:b,options:[],selected:n,
paramName:"displaySplits",clickType:"sp"})}else{a.push({name:"Blank1",blank:i,options:[],selected:"",paramName:"blank1"});a.push({name:"Blank1",blank:i,options:[],selected:"",paramName:"blank1"})}_chartConfigObject.hasNews||a.push({name:"Blank1",blank:i,options:[],selected:"",paramName:"blank1"});if(_chartConfigObject.hasVolume){b=_chartConfigObject.displayVolume!="false";a.push({name:"Volume",checked:b,options:[],selected:n,paramName:"displayVolume",clickType:"vo"})}else a.push({name:"Blank1",blank:i,
options:[],selected:"",paramName:"blank1"});if(_chartConfigObject.hasExtendedHours){b=_chartConfigObject.displayExtendedHours=="true";a.push({name:"Extended Hours",checked:b,options:[],selected:n,paramName:"displayExtendedHours",clickType:"xh"})}else a.push({name:"Blank1",blank:i,options:[],selected:"",paramName:"blank1"});a.push({name:"Blank1",blank:i,options:[],selected:"",paramName:"blank1"});if(_chartConfigObject.hasDefaultZoomSetting){a.push({name:"Default zoom: ",options:["1 day","3 days","5 days",
"1 month","3 months","6 months","1 Year"],values:[1,3,5,20,60,140,265],selected:_chartConfigObject.defaultZoomDays,paramName:"defaultZoomDays",clickType:"zd"});if(_chartConfigObject.enableChartTypeSetting)a.defaultZoomDays=a[a.length-1]}_chartConfigObject.hasVerticalScaleSetting&&a.push({name:"Vertical scale: ",options:["Linear","Logarithmic"],values:["Linear","Logarithmic"],selected:_chartConfigObject.verticalScaling,isradioselection:i,clickType:"vs",paramName:"verticalScaling"});if(_chartConfigObject.enableChartTypeSetting)a.verticalScaling=
a[a.length-1];if(_chartConfigObject.enableChartTypeSetting){a.chartType={name:"Chart type: ",options:["Line","Candlestick","OHLC"],values:["IntervalBasedLine","CandleStick","Ohlc"],selected:_chartConfigObject.lineStyle,clickType:"ls",isradioselection:i,paramName:"chartType"};a.defaultInterval={name:"Default interval: ",options:["2 minutes","5 minutes","30 minutes","daily","weekly"],values:[120,300,1800,86400,604800],selected:_chartConfigObject.defaultInterval,clickType:"di",paramName:"defaultInterval"}}return a}
var Op=[];function Pp(a){if(a==j||a==undefined)return j;for(;Op.length>0;){var b=Op.shift();if(b.methodName=="addPushPinArray"){a.sf(b.args);r("newsPanel").onNewPushPinsHook(b.args)}}}
function _emitFlashChartOnLoad(a,b,c,d,e){if(!Hp())if(document.getElementById){var f=430;if(document.getElementById(d)){f=document.getElementById(d);f=f.offsetWidth}if(c=document.getElementById(c)){_finance_chart=Ip(a,f,b,e);_finance_chart.sf(e.corpActionsArray);Pp(_finance_chart);_finance_chart.Sz(c)}return f}return j}
function _changeImage(a,b,c,d){_finance_chart.flash_tag.ke("displayPeriod",a);_finance_chart.flash_tag.ke("displayInterval",b);if(d)_finance_chart.flash_tag.ticker=d;_finance_chart.flash_tag.update()}function _firstDataIsHere(){_first_chart_data_is_here=i;_finance_chart.Gn();_tck("chd")}function _addCompareToChart(a){_finance_chart&&_finance_chart.rj(a)};function Qp(a){var b=function(){a&&a();_ac_s_init();_rl();Rp()};D(window,"load",b)}u("_regOnLoad",Qp);function Rp(){var a=F("body-wrapper");if(a){var b=r("google.finance.data.minWidth");if(b||B)si().Gy(a,b?b:987,F("outer-wrapper"))}};function $(){_AC_Store.call(this)}$.inherits(_AC_Store);$.prototype._numToDisplay=9;$.prototype._allowMultipleInBox=n;$.prototype._allowMultiTimezoneCompare=n;$.prototype.In=n;$.prototype.ep="matchall";$.prototype.matches=[];$.prototype.Ka="";$.prototype.Sa="";$.prototype.ji={};$.prototype.Hg=n;$.prototype.uf="";$.prototype.Ig=[];$.prototype.Cm="";$.prototype.Bm=j;$.prototype.Jw=function(a){for(var b in this.ji)a.substring(0,b.length)!=b&&delete this.ji[b];if(a=this.ji[a])return a;return j};
$.prototype.hr=function(a,b){if(b&&b!=[])this.ji[a]=b};$.prototype.nu=function(a){if(a=="")return j;if(a!=this.Cm){var b="^(.*?[\\s])??("+this.Ka.replace(/([\^*+\-\$\\\{\}\(\)\[\]\#?\.])/g,"\\$1")+")(.*)";this.Cm=a;this.Bm=new RegExp(b,"i")}return this.Bm};
$.prototype.Sr=function(a){var b=this.nu(this.Ka);if(!b)return"";for(var c=["tick","cname","local","pinyin","isin","altname"],d=a.sugg[0].split(","),e="",f=n,h=1;h<a.sugg.length;++h){var k=c[d[h-1]-1];if(k=="cname"&&h!=a.sugg.length-1)k+="_w";k="<span class="+k+">";var l=a.sugg[h],m=l.match(b);if(m){l=(m[1]||"")+"<b>"+m[2]+"</b>"+m[3];f=i}e+=k+" "+l+"</span>"}if(!f)return"";return"<div>"+e+"</div>"};$.prototype.zf=function(a){return a.t&&a.t!=""?a.t:a.n};$.prototype.gp=function(){};
$.prototype.Mm=function(){return new _AC_Completion(this.Sa,'<div style="white-space:nowrap"><i>Search for</i> <b>'+this.Sa+"</b><span class=spacer>&nbsp;</span></div>")};
$.prototype.completions=function(a){if(!a)return[];if(this.matches.length==0)return[];a=[];if(this.In&&this.Ka)a[0]=this.Mm();for(var b=0;b<this.matches.length&&a.length<this._numToDisplay;++b){var c=this.zf(this.matches[b]),d=this.Sr(this.matches[b]),e=new _AC_Completion(c,d);this.gp(this.matches[b],e);if(c!=""&&d!="")a[a.length]=e}return a};
$.prototype.completable=function(a,b){var c=0,d=",";if(this._allowMultipleInBox){for(var e=0;e<b;++e)if(d.indexOf(a.charAt(e))>=0)c=e+1;for(;c<b&&" \t\r\n".indexOf(a.charAt(c))>=0;)++c}a=a.substring(c,b);if(a==""){this.Sa="";this.matches=[];this.Ka="";this.Hg=n;this.uf="";this.Ig=[];op=[];pp(i);return""}if(this.Hg){this.Sa=a;if(a.substring(0,this.uf.length)==this.uf){this.matches=this.Ig;return this.Ka=a}else{this.Hg=n;this.uf="";this.Ig=[]}}if(b=this.Jw(a)){this.matches=b;return this.Sa=this.Ka=
a}if(a!=this.Sa){this.Sa=a;if(this.matches.length==0&&this.Ka.length>0&&a.substring(0,this.Ka.length)==this.Ka)return this.Sa;else{this.au(a);return this.Ka}}return[]};$.prototype.substitute=function(a,b,c,d){return this.Sa!=this.Ka?a:a.length==c.length||this._allowMultipleInBox&&a.indexOf(",")==-1?d.value:a.substring(0,b-c.length)+d.value+", "+a.substring(b)};$.prototype.Xq=function(a,b){if(b.readyState==4){b.status==200&&this.Vo(a,b.responseText);b.onreadystatechange=function(){}}};
$.prototype.Vo=function(a,b){try{this.Ka=a;if(this.Sa.substring(0,this.Ka.length)==this.Ka){var c=eval("("+b+")");if(wi())c.matches=ui.Al(c.matches,i);this.matches=c.matches;this.Hg=c.all;this.uf=a;this.Ig=this.matches;this.hr(a,this.matches)}else this.matches=[];Ap();pp(i)}catch(d){}};$.prototype.Ak=function(a){return a="/finance/match?matchtype="+this.ep+"&q="+escape(a)+Ei()};
$.prototype.au=function(a){if(a.length==0){this.matches=[];this.Ka="";op=[];pp(i);return i}var b=this.Ak(a),c=this;if(this.uw){var d=function(f){c.Vo(a,f)};_IG_FetchContent("http://www.google.com"+b,d)}else{var e=Sd();Td(e,b,function(){c.Xq(a,e)})}return i};var _p_Store=new $;_p_Store.Ng=n;_p_Store._allowMultipleInBox=i;_p_Store.ep="matchportfolio";_p_Store.Jg=i;_p_Store.zf=function(a){return a.t&&a.t!=""?a.e&&a.e!=""?a.e+":"+a.t:a.t:""};function Sp(){_AC_SimpleStore.call(this,[])}Sp.inherits(_AC_SimpleStore);
Sp.prototype._display_field_name_map=[];Sp.prototype._addStringsSub=function(a){var b=[];for(var c in a){b.push(a[c]);this._display_field_name_map[a[c]]=c}_AC_SimpleStore.prototype.vj.call(this,b)};Sp.prototype._addStrings=Sp.prototype._addStringsSub;Sp.prototype.ww=function(a,b){for(var c=0,d=0,e=0;e<b;++e){var f=a.charAt(e);if(f=="[")c++;else f=="]"&&d++}if(c==1&&d==0)return i;return n};
Sp.prototype.substitute=function(a,b,c,d){var e="";if(this._display_field_name_map[d.value])e=this._display_field_name_map[d.value];return a.substring(0,b-c.length)+e+a.substring(b)};Sp.prototype.completable=function(a,b){for(var c=0,d=0;d<b;++d){var e=a.charAt(d);if(">"==e||"<"==e||"&"==e||"|"==e||"["==e||"+"==e||"-"==e||"*"==e||"/"==e)c=d+1}for(;c<b&&" \t\r\n".indexOf(a.charAt(c))>=0;)++c;return a.substring(c,b)};var _s_Store=new $;_s_Store.Ng=n;_s_Store.lm=i;_s_Store.Jg=i;_s_Store.In=n;
_s_Store.vf=n;_s_Store.additionalUrlParams="";_s_Store.isInIframe=n;_s_Store._allowMatchAdvancedSearch=i;_s_Store.Mw=n;_s_Store._asStore=new Sp;_s_Store.sb="";_s_Store.fm=function(){};_s_Store.uw=n;_s_Store.Mm=function(){var a=new _AC_Completion(this.Sa,'<div style="white-space:nowrap"><i>Search for</i> <b>'+this.Sa+"</b><span class=spacer>&nbsp;</span></div>");a.urlpath="q="+encodeURIComponent(this.Sa);return a};_s_Store.zf=function(a){return a.t&&a.t!=""?a.e&&a.e!=""?a.e+":"+a.t:a.t:a.n};
_s_Store.gp=function(a,b){b.urlpath=a.t&&a.t!=""?a.e&&a.e!=""?"q="+encodeURIComponent(a.e+":"+a.t)+Ei():"q="+encodeURIComponent(a.t)+Ei():a.ismf?"mfid="+a.id+Ei():"cid="+a.id+Ei()};_s_Store.superSubstitute=_s_Store.substitute;
_s_Store.substitute=function(a,b,c,d){if(_s_Store.isAdvancedSearchCompletion())return _s_Store._asStore.substitute(a,b,c,d);if(_s_Store._allowMultipleInBox&&a.indexOf(",")!=-1)return _s_Store.superSubstitute(a,b,c,d);else{_s_Store.sb="/finance?"+d.urlpath;if(_s_Store.additionalUrlParams)_s_Store.sb=_s_Store.sb+"&"+_s_Store.additionalUrlParams;return d.value}};_s_Store.oncomplete=function(a,b,c,d){d&&_s_Store.fm(d)};
_s_Store.completions=function(a,b){return _s_Store.isAdvancedSearchCompletion()?_s_Store._asStore.completions(a,b):$.prototype.completions.call(this,a,b)};_s_Store.completable=function(a,b){_s_Store.Mw=_s_Store._asStore.ww(a,b);return _s_Store.isAdvancedSearchCompletion()?_s_Store._asStore.completable(a,b):$.prototype.completable.call(this,a,b)};_s_Store.isAdvancedSearchCompletion=function(){return this._allowMatchAdvancedSearch&&this.Mw&&this._asStore};
function _ac_s_init(){_s_Store.fm=function(){if(!_s_Store.isAdvancedSearchCompletion())if(this.sb)if(this.isInIframe){window.parent.location=this.sb;window.parent.location=this.sb}else window.location=this.sb};_ac_register(function(a){if(a.id=="searchbox")return _s_Store});_ac_install()}function _ac_init(a,b,c){_s_Store.fm=b;_s_Store.uw=Boolean(c);_ac_register(function(d){if(d.id==a)return _s_Store});_ac_install()}var _comparison_charts_Store=new $;_comparison_charts_Store.Ng=n;
_comparison_charts_Store.Jg=i;_comparison_charts_Store.xj=i;_comparison_charts_Store.baseTicker="";_comparison_charts_Store.vf=i;_comparison_charts_Store.getMatchAllTimezoneUrl=_comparison_charts_Store.Ak;_comparison_charts_Store.Ak=function(a){if(this._allowMultiTimezoneCompare)return _comparison_charts_Store.getMatchAllTimezoneUrl(a);return a="/finance/match?matchtype=matchtimezone&q="+escape(a)+"&basetkr="+escape(this.baseTicker)+Ei()};
_comparison_charts_Store.substitute=function(a,b,c,d){google.finance.searchTicker(d.value);_comparison_charts_Store.matches=[];return d.value};_comparison_charts_Store.zf=_s_Store.zf;var Tp=function(a){var b={};if(!a)return b;a=a.split(":");for(var c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");if(e!=-1)b[d.substring(0,e)]=d.substring(e+1)}return b},_pf_dictFromHash=Tp,Up=function(a,b){return function(){var c=j;if(b.value){var d=Pb(b.value);if(d&&d.confidence>-2){c=d.date;if(c.year>3000)c=j}if(c==j)c=a.getSelection()}a.Oc(c,c,n);b.value=c?fd(c):""}},Dm=function(a,b){if(!a)return j;var c=w(a);if(!c)return j;var d=ad(a,fd,id),e=Up(d,c);D(c,"change",e);var f;if(b&&(f=w(b))){a=cd(a+
"dp_div",a,d,fd);D(f,"click",a)}return d},Vp=function(a,b,c){for(var d=0;d<a.length;d++){qg(a[d],d%2?b:c);og(a[d],d%2?c:b)}},Wp=function(a,b,c,d){for(var e=0;e<a.length;e++)a[e].setAttribute(b,e%2?d:c)},Xp=function(a,b,c,d){if(!ga(a))return n;if(!b)return n;if(!be(a,b))return n;for(var e=0;e<a.length;e++){var f=a[e];if(f!=b)if(f){c&&qg(f,c);d&&og(f,d)}}c&&og(b,c);d&&qg(b,d);return i},Cm=function(a,b,c,d){if(!ga(a))return n;if(!b)return n;b=w(b);if(!b)return n;for(var e=[],f=0;f<a.length;f++){var h=
w(a[f]);h&&e.push(h)}return Xp(e,b,c,d)},Yp=function(a,b,c,d,e){var f={};if(!a)return j;a=w(a);if(!a)return j;c=Ag(undefined,c,a);if(c.length==0)return j;var h={},k=[];for(a=0;a<c.length;a++){var l=c[a];l.removeAttribute("href");var m=l.getAttribute(b);if(m){k.push(l);h[m]=l;D(l,"mousedown",qa(d,m));D(l,"mousedown",Ci("","pf_views",m,""))}}f.setActiveLink=function(o){o=h[o];if(!o)return n;return Xp(k,o,e,j)};return f},_pf_setup_viewlinksbar=Yp,_pf_set_active_id=Cm,_pf_set_active_element=Xp,_pf_set_class_alternate_rows=
Vp,_pf_set_attribute_alternate_rows=Wp,_partial=qa,_addClass=og,_removeClass=qg,_forid=w;; function _lastFinanceFn(){} _tck('jl');
