function h(a){throw a;}
var k=true,l=null,p=false,aa=aa||{},t=this,ba=l,ca=function(a,b,c){var d=a.split("."),e=c||t;!(d[0]in e)&&e.execScript&&e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift());)if(!d.length&&b!==undefined)e[f]=b;else e=e[f]?e[f]:(e[f]={})},da=function(a,b){for(var c=a.split("."),d=b||t,e;e=c.shift();)if(d[e])d=d[e];else return l;return d},ea=function(){},fa=function(a){a.getInstance=function(){return a.Lz||(a.Lz=new a)}},ga=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},ha=function(a){return ga(a)=="array"},ia=function(a){var b=ga(a);return b=="array"||b=="object"&&typeof a.length=="number"},ka=function(a){return typeof a=="string"},la=function(a){return typeof a=="number"},ma=function(a){return ga(a)=="function"},na=function(a){var b=ga(a);return b=="object"||b=="array"||b=="function"},qa=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(oa))return a[oa];a[oa]||(a[oa]=++pa);return a[oa]},oa="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36),
pa=0,ra=function(a){var b=ga(a);if(b=="object"||b=="array"){if(a.clone)return a.clone.call(a);var c=b=="array"?[]:{};for(var d in a)c[d]=ra(a[d]);return c}return a},u=function(a,b){var c=a.yz;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);c&&d.unshift.apply(d,c);c=d}b=a.Az||b;a=a.zz||a;var e,f=b||t;e=c?function(){var g=Array.prototype.slice.call(arguments);g.unshift.apply(g,c);return a.apply(f,g)}:function(){return a.apply(f,arguments)};e.yz=c;e.Az=b;e.zz=a;return e},sa=function(a){var b=
Array.prototype.slice.call(arguments,1);b.unshift(a,l);return u.apply(l,b)},ta=Date.now||function(){return(new Date).getTime()},ua=function(a){if(t.execScript)t.execScript(a,"JavaScript");else if(t.eval){if(ba==l){t.eval("var _et_ = 1;");if(typeof t._et_!="undefined"){delete t._et_;ba=k}else ba=p}if(ba)t.eval(a);else{var b=t.document,c=b.createElement("script");c.type="text/javascript";c.defer=p;c.appendChild(b.createTextNode(a));b.body.appendChild(c);b.body.removeChild(c)}}else h(Error("goog.globalEval not available"))},
v=function(a,b,c){ca(a,b,c)},w=function(a,b){function c(){}c.prototype=b.prototype;a.o=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 u.apply(l,b)}else return u(this,a)};Function.prototype.inherits=function(a){w(this,a)};var va=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},xa=/^[a-zA-Z0-9\-_.!~*'()]*$/,ya=function(a){a=String(a);if(!xa.test(a))return encodeURIComponent(a);return a},za=function(a){return decodeURIComponent(a.replace(/\+/g," "))},Ga=function(a,b){if(b)return a.replace(Aa,"&amp;").replace(Ca,"&lt;").replace(Da,"&gt;").replace(Ea,"&quot;");else{if(!Fa.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(Aa,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(Ca,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(Da,
"&gt;");if(a.indexOf('"')!=-1)a=a.replace(Ea,"&quot;");return a}},Aa=/&/g,Ca=/</g,Da=/>/g,Ea=/\"/g,Fa=/[&<>\"]/,Ka=function(a){if(Ha(a,"&"))return"document"in t&&!Ha(a,"<")?Ia(a):Ja(a);return a},Ia=function(a){var b=t.document.createElement("a");b.innerHTML=a;b.normalize&&b.normalize();a=b.firstChild.nodeValue;b.innerHTML="";return a},Ja=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)==
"#"){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return b}})},Ma=function(a,b,c){if(c)a=Ka(a);if(a.length>b)a=a.substring(0,b-3)+"...";if(c)a=Ga(a);return a},Na=function(a,b,c){if(c)a=Ka(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=Ga(a);return a},Ha=function(a,b){return a.indexOf(b)!=-1},Oa=function(a,b){return(new Array(b+1)).join(a)},Pa=function(a,b,c){var d=c!==undefined?a.toFixed(c):String(a),e=d.indexOf(".");
if(e==-1)e=d.length;return Oa("0",Math.max(0,b-e))+d},Ra=function(a,b){for(var c=0,d=va(String(a)).split("."),e=va(String(b)).split("."),f=Math.max(d.length,e.length),g=0;c==0&&g<f;g++){var i=d[g]||"",j=e[g]||"",m=new RegExp("(\\d*)(\\D*)","g"),n=new RegExp("(\\d*)(\\D*)","g");do{var o=m.exec(i)||["","",""],q=n.exec(j)||["","",""];if(o[0].length==0&&q[0].length==0)break;var s=o[1].length==0?0:parseInt(o[1],10),r=q[1].length==0?0:parseInt(q[1],10);c=Qa(s,r)||Qa(o[2].length==0,q[2].length==0)||Qa(o[2],
q[2])}while(c==0)}return c},Qa=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};ta();var Sa;var Va=function(a){Sa=a=a.replace(/-/g,"_")},Wa=function(){Sa||(Sa="en");return Sa},Ya=function(a,b,c){Xa[b]||(Xa[b]={});Xa[b][c]=a;Sa||(Sa=c)},Za=function(a,b){return a in Xa&&b in Xa[a]},Xa={},$a=function(a,b){Ya(a,"DateTimeConstants",b)},ab=function(a,b){var c=b?b:Wa();if(!(a in Xa))return undefined;return Xa[a][c]},bb=["BC","AD"],cb=["Before Christ","Anno Domini"],db=["J","F","M","A","M","J","J","A","S","O","N","D"],eb=["January","February","March","April","May","June","July","August","September",
"October","November","December"],fb=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gb=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ib=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],jb=["S","M","T","W","T","F","S"],kb=["Q1","Q2","Q3","Q4"],lb=["1st quarter","2nd quarter","3rd quarter","4th quarter"],mb=["AM","PM"],nb=["EEEE, MMMM d, yyyy","MMMM d, yyyy","MMM d, yyyy","M/d/yy"],ob=["h:mm:ss a v","h:mm:ss a z","h:mm:ss a","h:mm a"],pb=[5,6],qb={ERAS:bb,
ERANAMES:cb,NARROWMONTHS:db,MONTHS:eb,SHORTMONTHS:fb,WEEKDAYS:gb,SHORTWEEKDAYS:ib,NARROWWEEKDAYS:jb,SHORTQUARTERS:kb,QUARTERS:lb,AMPMS:mb,DATEFORMATS:nb,TIMEFORMATS:ob,FIRSTDAYOFWEEK:6,WEEKENDRANGE:pb,FIRSTWEEKCUTOFFDAY:6};var rb=function(){},tb=function(a){if(typeof a=="number")return sb(a);var b=new rb;b.Uy=a.id;b.Fy=-a.std_offset;b.Rp=a.names;b.rl=a.transitions;return b},sb=function(a){var b=new rb;b.Fy=a;b.Uy=ub(a);var c=vb(a);b.Rp=[c,c];b.rl=[];return b},wb=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(Pa(Math.floor(a/60)%100,2),":",Pa(a%60,2));return b.join("")},ub=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=a%60;a!=0&&b.push(":",
Pa(a,2));return b.join("")},vb=function(a){if(a==0)return"UTC";var b=["UTC",a<0?"+":"-"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a=a%60;a!=0&&b.push(":",a);return b.join("")};rb.prototype.Zm=function(a){for(var b=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes()),c=b/3600000,d=0;d<this.rl.length&&c>=this.rl[d];)d+=2;return d==0?0:this.rl[d-1]};rb.prototype.wt=function(a){return wb(this.Oj(a))};rb.prototype.Ot=function(a){return this.Rp[this.$n(a)?3:1]};
rb.prototype.Oj=function(a){return this.Fy-this.Zm(a)};rb.prototype.iu=function(a){var b=-this.Oj(a),c=[b<0?"-":"+"];b=Math.abs(b);c.push(Pa(Math.floor(b/60)%100,2),Pa(b%60,2));return c.join("")};rb.prototype.ru=function(a){return this.Rp[this.$n(a)?2:0]};rb.prototype.Bu=function(){return this.Uy};rb.prototype.$n=function(a){return this.Zm(a)>0};var xb=function(){this.Oa=ab("DateTimeConstants",Wa());this.Kk=[]},yb=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];xb.prototype.zq=function(a){for(;a;)for(var b=0;b<yb.length;++b){var c=a.match(yb[b]);if(c){var d=c[0];a=a.substring(d.length);if(b==0)if(d=="''")d="'";else{d=d.substring(1,d.length-1);d=d.replace(/\'\'/,"'")}this.Kk.push({text:d,type:b});break}}};
xb.prototype.format=function(a,b){b||(b=tb(a.getTimezoneOffset()));var c=(a.getTimezoneOffset()-b.Oj(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)}for(var f=[],g=0;g<this.Kk.length;++g){var i=this.Kk[g].text;1==this.Kk[g].type?f.push(this.ws(i,a,d,e,b)):f.push(i)}return f.join("")};xb.prototype.vs=function(a,b){var c=b.getFullYear()>0?1:0;return a>=4?this.Oa.ERANAMES[c]:this.Oa.ERAS[c]};
xb.prototype.Gs=function(a,b){var c=b.getFullYear();if(c<0)c=-c;return a==2?Pa(c%100,2):String(c)};xb.prototype.zs=function(a,b){var c=b.getMonth();switch(a){case 5:return this.Oa.NARROWMONTHS[c];case 4:return this.Oa.MONTHS[c];case 3:return this.Oa.SHORTMONTHS[c];default:return Pa(c+1,a)}};xb.prototype.rs=function(a,b){return Pa(b.getHours()||24,a)};xb.prototype.xs=function(a,b){var c=b.getTime()%1000/1000;return c.toFixed(Math.min(3,a)).substr(2)+(a>3?Pa(0,a-3):"")};
xb.prototype.us=function(a,b){var c=b.getDay();return a>=4?this.Oa.WEEKDAYS[c]:this.Oa.SHORTWEEKDAYS[c]};xb.prototype.ss=function(a,b){var c=b.getHours();return this.Oa.AMPMS[c>=12&&c<24?1:0]};xb.prototype.qs=function(a,b){return Pa(b.getHours()%12||12,a)};xb.prototype.ns=function(a,b){return Pa(b.getHours()%12,a)};xb.prototype.ps=function(a,b){return Pa(b.getHours(),a)};
xb.prototype.Cs=function(a,b){var c=b.getDay();switch(a){case 5:return this.Oa.STANDALONENARROWWEEKDAYS[c];case 4:return this.Oa.STANDALONEWEEKDAYS[c];case 3:return this.Oa.STANDALONESHORTWEEKDAYS[c];default:return Pa(c,1)}};xb.prototype.Ds=function(a,b){var c=b.getMonth();switch(a){case 5:return this.Oa.STANDALONENARROWMONTHS[c];case 4:return this.Oa.STANDALONEMONTHS[c];case 3:return this.Oa.STANDALONESHORTMONTHS[c];default:return Pa(c+1,a)}};
xb.prototype.As=function(a,b){var c=Math.floor(b.getMonth()/3);return a<4?this.Oa.SHORTQUARTERS[c]:this.Oa.QUARTERS[c]};xb.prototype.ts=function(a,b){return Pa(b.getDate(),a)};xb.prototype.ys=function(a,b){return Pa(b.getMinutes(),a)};xb.prototype.Bs=function(a,b){return Pa(b.getSeconds(),a)};xb.prototype.Es=function(a,b,c){return a<4?c.iu(b):c.wt(b)};xb.prototype.Fs=function(a,b,c){return a<4?c.ru(b):c.Ot(b)};
xb.prototype.ws=function(a,b,c,d,e){var f=a.length;switch(a.charAt(0)){case "G":return this.vs(f,c);case "y":return this.Gs(f,c);case "M":return this.zs(f,c);case "k":return this.rs(f,d);case "S":return this.xs(f,d);case "E":return this.us(f,c);case "a":return this.ss(f,d);case "h":return this.qs(f,d);case "K":return this.ns(f,d);case "H":return this.ps(f,d);case "c":return this.Cs(f,c);case "L":return this.Ds(f,c);case "Q":return this.As(f,c);case "d":return this.ts(f,c);case "m":return this.ys(f,
d);case "s":return this.Bs(f,d);case "v":return e.Bu();case "z":return this.Fs(f,b,e);case "Z":return this.Es(f,b,e);default:return""}};var zb=function(a,b,c){var d=new xb;d.zq(a);return d.format(b,c)};var Ab=p;function Cb(a){Db(a,0)}function Eb(a){try{h(a)}catch(b){Fb(b)}}function Fb(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(Gb())c+=" "+a.name+": "+a.message+" ("+a.number+")";var d="";if(typeof a=="string")d=a+"\n";else for(var e in a)try{d+=e+": "+a[e]+"\n"}catch(f){}d+=Hb(Fb.caller);Db(c+"\n"+d,1)}var Ib=/function (\w+)/;function Jb(a){var b=Ib.exec(String(a));if(b)return b[1];return""}
function Hb(a){try{if(!Gb()&&!Kb()&&Lb("mozilla"))return Error().stack;if(!a)return"";for(var b="- "+Jb(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+=Hb(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var Mb,Nb=l,Ob=p;
function Pb(){if((Nb==l||Nb.closed)&&!Ob)try{Ob=k;Nb=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");Nb.blur();Nb.document.open();Ob=p;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>";Qb(a)}catch(b){}}
function Db(a,b){if(Ab){try{var c=(new Date).getTime()-Mb,d="["+c+"] "+Rb(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";Nb.focus()}}catch(e){}Qb(d)}else typeof Sb!="undefined"&&Sb(Rb(a))}function Qb(a){if(Ab)try{Pb();Nb.document.write(a);Nb.scrollTo(0,1000000)}catch(b){}};function Lb(a){if(a in Tb)return Tb[a];return Tb[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var Tb={};function Gb(){return Lb("msie")&&!window.opera}function Kb(){return Lb("safari")||Lb("konqueror")}function Ub(a){if(typeof Error!="undefined")h(new Error(a||"Assertion Failed"));else h(a)}function Wb(a){a=a||"Assertion failed";Xb(Eb)&&Eb(a+"\n");Ub(a)}function Yb(a,b){if(!a){b=b||"Assertion failed";Wb(b)}}
function Zb(a,b,c){if(!(typeof a==b)){if(a||a=="")try{if(b==$b[typeof a]||a instanceof b)return}catch(d){}var e=c===undefined;if(e){if(typeof b=="function"){var f=b.toString().match(/^\s*function\s+([^\s\{]+)/);if(f)b=f[1]}c="AssertType failed: <"+a+"> not typeof "+b}Wb(c)}}var $b={string:String,number:Number,"boolean":Boolean};function ac(a,b){var c=a.document.getElementById(b);c||Eb("Element "+b+" not found.");return c}function bc(a){try{return a.parentNode}catch(b){return a}}
function cc(a,b){do{if(a===b)return k;b=bc(b)}while(b&&b!==document.body);return p}function dc(a,b,c){var d=a.document.createElement(c);b.appendChild(d);return d}function ec(a,b,c){var d=a.document.getElementById(b);if(!d){var e=dc(a,a.document.body,"div");e.innerHTML="<iframe id="+b+" name="+b+" src="+c+"></iframe>";d=ac(a,b)}return d}
var fc={mk:function(a){return a.document.body.scrollTop},nk:function(a){return a.document.documentElement.scrollTop},b:function(a){return a.pageYOffset}},hc={mk:function(a){return a.document.body.scrollLeft},nk:function(a){return a.document.documentElement.scrollLeft},b:function(a){return a.pageXOffset}},ic={mk:function(a){return a.document.body.clientWidth},nk:function(a){return a.document.documentElement.clientWidth},b:function(a){return a.innerWidth}},jc={mk:function(a){return a.document.body.clientHeight},
nk:function(a){return a.document.documentElement.clientHeight},b:function(a){return a.innerHeight}};function kc(a,b){try{if(Kb())return b.b(a);else if(!window.opera&&"compatMode"in a.document&&a.document.compatMode=="CSS1Compat")return b.nk(a);else if(Gb())return b.mk(a)}catch(c){}return b.b(a)}var lc=/&/g,mc=/</g,nc=/>/g;function Rb(a){if(!a)return"";return a.replace(lc,"&amp;").replace(mc,"&lt;").replace(nc,"&gt;").replace(oc,"&quot;")}var oc=/\"/g,pc=/[\'\\\r\n\b\"<>&\u0085\u2028\u2029]/g;
function qc(a){return rc[a]}var rc;function sc(a){if(!rc){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";rc=b}return"'"+a.toString().replace(pc,qc)+"'"}function tc(a){if(!a)return"";return a.replace(/^\s+/,"").replace(/\s+$/,"")}
function uc(a,b){try{if(Xb(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{Cb("Unable to get cursor position for: "+navigator.userAgent);return b.value.length}}catch(f){Fb(f,"Cannot get cursor pos")}return-1}
function wc(a,b,c){if(Xb(b.selectionEnd)&&Xb(b.selectionStart)){b.selectionStart=c;b.selectionEnd=c}else if(a.document.selection&&b.createTextRange){var d=b.createTextRange();d.collapse(k);d.move("character",c);d.select()}}
function xc(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 yc(a,b,c){a||(a=window);if(!a._tm)a._tm=[];var d=zc(a,b),e=a.setTimeout(d,c);d.id=e;a._tm[e]=1;return e}
function zc(a,b){var c=function(){try{b(a);var d=a._tm;d&&delete d[c.id]}catch(e){Fb(e)}};return c}function Xb(a){return typeof a!="undefined"}function Ac(a){var b;if(a.keyCode)b=a.keyCode;else if(a.which)b=a.which;return b}function Bc(a){return document.getElementById(a)}function Cc(a){return document.all[a]}var y=document.getElementById?Bc:Cc;
function Dc(a){Yb(a,"func passed to GetFnName() is undefined");var b;if("name"in a)b=a.name;else{var c=/\W*function\s+([\w\$]+)\(/.exec(a);if(!c)h(new Error("Cannot extract name from function: "+a));b=c[1];a.name=b}if(!b||b=="anonymous")h(new Error("Anonymous function has no name: "+a));return a.name}
function Sb(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=y("log");if(c){var d="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=d+c.innerHTML}else window.status=a};function Ec(a,b){for(var c=a.toString();c.length<b;)c="0"+c;return c}var Fc=[undefined,31,undefined,31,30,31,30,31,31,30,31,30,31];function Gc(a,b){if(2!==b)return Fc[b];var c=a<<4,d=Fc[c];if(!d){d=Math.round((Date.UTC(a,2,1)-Date.UTC(a,1,1))/86400000);Fc[c]=d}return d}var Hc={};function Ic(a,b){var c=a<<4|b,d=Hc[c];if(!d){d=(new Date(a,b-1,1,0,0,0,0)).getDay();Hc[c]=d}return d}function Jc(a){return(a.date-1+Ic(a.year,a.month))%7}
function Kc(a,b,c,d,e,f){var g;if(a===d)if((g=b-e)===0)return c-f;else if(g<0){g=c-f;do g-=Gc(a,b++);while(b<e);return g}else{g=c-f;do g+=Gc(d,e++);while(e<b);return g}else return Math.round((Date.UTC(a,b-1,c)-Date.UTC(d,e-1,f))/86400000)}function Lc(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}Lc.prototype.year=NaN;Lc.prototype.month=NaN;Lc.prototype.date=NaN;
Lc.prototype.hour=NaN;Lc.prototype.minute=NaN;Lc.prototype.second=NaN;Lc.prototype.Zs=function(){return Jc(this)};Lc.prototype.toString=function(){if(this.lg!==undefined)return this.lg;return this.lg=this.pg()};function Mc(){}Mc.prototype=new Lc;Mc.prototype.constructor=Mc;function Nc(a,b,c){Yb(b&&c,"invalid date params: "+b+" "+c);Lc.call(this,a,b,c,NaN,NaN,NaN)}Nc.prototype=new Mc;Nc.prototype.constructor=Nc;var Pc=function(){var a=new Date;return Oc(a.getFullYear(),a.getMonth()+1,a.getDate())};
Nc.prototype.type="Date";Nc.prototype.qb=function(){return this};Nc.prototype.M=function(){if(undefined===this.Oc)this.Oc=(((this.year-1970)*12+this.month<<5)+this.date)*86400;return this.Oc};Nc.prototype.He=function(){return k};Nc.prototype.pg=function(){return Ec(this.year,4)+Ec(this.month,2)+Ec(this.date,2)};Nc.prototype.equals=function(a){return this.constructor===a.constructor&&this.date===a.date&&this.month===a.month&&this.year===a.year};
var Qc={},Rc=0,Oc=function(a,b,c){var d=(((a-1970)*12+b<<5)+c)*86400;if(d in Qc)return Qc[d];else{var e=new Nc(a,b,c);e.Oc=d;if(Rc<200)Qc[d]=e;return e}};function Sc(a,b,c,d,e,f){Lc.call(this,a,b,c,d,e,f)}Sc.prototype=new Mc;Sc.prototype.constructor=Sc;Sc.prototype.type="DateTime";Sc.prototype.qb=function(){return Oc(this.year,this.month,this.date)};
Sc.prototype.M=function(){if(undefined===this.Oc)this.Oc=(((((this.year-1970)*12+this.month<<5)+this.date)*24+this.hour)*60+this.minute)*60+this.second;return this.Oc};Sc.prototype.He=function(){return k};Sc.prototype.pg=function(){return Ec(this.year,4)+Ec(this.month,2)+Ec(this.date,2)+"T"+Ec(this.hour,2)+Ec(this.minute,2)+Ec(this.second,2)};
Sc.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};Sc.prototype.clone=function(){var a=new Sc(this.year,this.month,this.date,this.hour,this.minute,this.second);if(this.lg!==undefined)a.lg=this.lg;return a};new Lc;
function Tc(a,b,c,d){var e=d+60*(c+60*(b+24*a)),f=e/86400|0;e-=f*86400;var g=e/3600|0;e-=g*3600;var i=e/60|0;e-=i*60;var j=e|0;Lc.call(this,NaN,NaN,f,g,i,j)}Tc.prototype=new Lc;Tc.prototype.constructor=Tc;Tc.prototype.type="Duration";Tc.prototype.M=function(){if(undefined===this.Oc)this.Oc=((this.date*24+this.hour)*60+this.minute)*60+this.second;return this.Oc};
Tc.prototype.pg=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};Tc.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 Uc(a){Zb(a,Lc);var b=new Vc;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 Wc(a,b,c){Yb(!(isNaN(a)|isNaN(b)|isNaN(c)));var d=new Vc;d.year=a||0;d.month=b||0;d.date=c||0;return d}function Vc(){}Vc.prototype=new Lc;
Vc.prototype.constructor=Vc;Vc.prototype.type="DTBuilder";Vc.prototype.year=Vc.prototype.month=Vc.prototype.date=Vc.prototype.hour=Vc.prototype.minute=Vc.prototype.second=0;Vc.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};
Vc.prototype.normalize=function(){this.Rw();this.Dk();for(var a=Gc(this.year,this.month);this.date<1;){this.month-=1;this.Dk();a=Gc(this.year,this.month);this.date+=a}for(;this.date>a;){this.date-=a;this.month+=1;this.Dk();a=Gc(this.year,this.month)}};
Vc.prototype.Rw=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}};Vc.prototype.Dk=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}};Vc.prototype.qb=function(){this.normalize();return Oc(this.year,this.month,this.date)};
Vc.prototype.toString=function(){return"["+(NaN!==this.year?Ec(this.year,4):"????")+"/"+(NaN!==this.month?Ec(this.month,2):"??")+"/"+(NaN!==this.date?Ec(this.date,2):"??")+" "+(NaN!==this.hour?Ec(this.hour,2):"??")+" "+(NaN!==this.minute?Ec(this.minute,2):"??")+" "+(NaN!==this.second?Ec(this.second,2):"??")+"]"};
Vc.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 Mc;new Mc;var Xc=undefined,Yc=[];
function Zc(){var a=new Date,b=Xc;Xc=Oc(a.getFullYear(),a.getMonth()+1,a.getDate());if(b&&!b.equals(Xc))for(var c=0;c<Yc.length;++c){var d=Yc[c];try{d(Xc)}catch(e){}}var f=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0,0);f.setDate(f.getDate()+1);var g=f.getTime()-a.getTime();if(g<0||g>=1800000)g=1800000;window.setTimeout(Zc,g)}Zc();function $c(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");for(var b=a.split(/\b|_/),c=[],d=[],e=0;e<b.length;++e){b[e]=b[e].replace(/^\s+|\s+$/,"");c[e]=b[e].length;d[e]=0;if(b[e].match(/^[0-9]+/)){var f=parseInt(b[e],10);b[e]=f;if(0===f){if(c[e]==2)d[e]|=1}else if(f>12&&f<=31)d[e]|=4;else if(f<=12)d[e]|=6;else if(f<100||f>=1900)d[e]|=1}else if(f=ad(b[e])){b[e]=f[0];d[e]|=10}}var g=0,i=0,j=0,m=0,n=0;for(e=0;e<d.length;++e){!d[e]&&
/\w/.test(b[e])&&++n;if(6===(d[e]&6))++j;else{d[e]&4&&++g;d[e]&2&&++i}d[e]&1&&++m}if(j){var o=p,q=p;if(!g||!i)if(g)o=k;else if(i)q=k;else if(1===j)o=k;else for(e=0;e<d.length;++e){var s=p;if(d[0]===1&&b[1]&&/^\s*-\s*$/.test(b[1])&&d[2]===6&&b[3]&&/^\s*-\s*$/.test(b[3]))s=k;if(6==(d[e]&6)){if(s||!bd||1){d[e]&=-5;++i;--j;q=k}else{d[e]&=-3;++g;--j;o=k}break}}if(o)for(e=0;e<d.length;++e){if(6==(d[e]&6)){d[e]&=-5;++i;--j}}else if(q)for(e=0;e<d.length;++e)if(6==(d[e]&6)){d[e]&=-3;++g;--j}}var r,x,H,J=0,
Q=7;if(g){for(e=0;e<d.length;++e)if(d[e]&4){r=b[e];d[e]=0;--g;break}Yb(r)}else{r=l;Q&=-5}if(i){var Ba=p;for(e=0;e<d.length;++e)if(d[e]&2){x=b[e];d[e]&=-3;--i;Ba=0!==(d[e]&8);break}if(Ba)for(var ja=c[e],La=e+1;La<d.length;++La)if(d[La]&8)if(c[La]>ja){d[e]|=2;d[La]&=-3;x=b[La];ja=c[La];e=La}}else{x=l;Q&=-3}var wa=!!m;if(wa)for(e=0;e<d.length;++e){if(d[e]&1){H=b[e];d[e]=0;--m;break}}else{H=l;if(g|i|j){var Ta=-1,hb=0;for(e=0;e<d.length;++e)if(d[e]&&!(d[e]&8))if(b[e]>hb){Ta=e;hb=b[e]}if(Ta>=0){H=hb;switch(d[Ta]){case 4:--g;
break;case 2:--i;break;case 6:--j;break}d[Ta]=0}}if(l==H){J-=1;H=Xc.year+(x&&x<Xc.month?1:0);Q&=-2}}if(l==r){r=1;J-=0.5}if(l==x)if(wa)x=1;else return l;if(H<100)H+=H<50?2000:1900;J-=g+i+m+j+(n>>2);return new cd(Oc(H,x,r),J,Q)}function cd(a,b,c){this.date=a;this.confidence=b;this.specified=c}cd.prototype.toString=function(){return this.date.toString()};
function ad(a){for(var b=-1,c=-1,d=0;d<dd.length;++d){var e=dd[d];if(e){var f=ed[d],g=Math.max(fd(e,a),fd(f,a));if(g&&g>c){b=d;c=g}}}return c>=a.length+1>>1?[b,c]:l}function fd(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 gd=["Su","M","Tu","W","Th","F","Sa"],ed=[,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dd=[,"January","February","March","April","May","June","July","August","September","October","November","December"];Function.prototype.bind=function(a){if(typeof this!="function")h(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 hd,id,kd;
(function(){var a={},b=0;function c(f){if(f.Fw==l)f.Fw=++b;return f.Fw}function d(f,g,i,j){var m=c(f),n=c(i);j=!!j;var o=m+"_"+g+"_"+n+"_"+j;return o}hd=function(f,g,i,j){var m=d(f,g,i,j);if(m in a)return m;var n=e.bind(l,m);a[m]={listener:i,proxy:n,event:g,node:f,useCapture:j};if(f.addEventListener)f.addEventListener(g,n,j);else if(f.attachEvent)f.attachEvent("on"+g,n);else h(new Error("Node {"+f+"} does not support event listeners."));return m};id=function(f,g,i,j){var m=d(f,g,i,j);return kd(m)};
kd=function(f){if(!(f in a))return p;var g=a[f],i=g.proxy,j=g.event,m=g.node,n=g.useCapture;if(m.removeEventListener)m.removeEventListener(j,i,n);else m.detachEvent&&m.detachEvent("on"+j,i);delete a[f];return k};function e(f){var g=Array.prototype.splice.call(arguments,1,arguments.length);return a[f].listener.apply(l,g)}})();function md(a,b,c){this.x=a;this.y=b;this.coordinateFrame=c||l}md.prototype.toString=function(){return"[P "+this.x+","+this.y+"]"};md.prototype.clone=function(){return new md(this.x,this.y,this.coordinateFrame)};function nd(a,b){this.dx=a;this.dy=b}nd.prototype.toString=function(){return"[D "+this.dx+","+this.dy+"]"};function od(a,b,c,d,e){this.x=a;this.y=b;this.w=c;this.h=d;this.coordinateFrame=e||l}
od.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};od.prototype.toString=function(){return"[R "+this.w+"x"+this.h+"+"+this.x+"+"+this.y+"]"};od.prototype.clone=function(){return new od(this.x,this.y,this.w,this.h,this.coordinateFrame)};function pd(a){if(!a)return l;function b(m){for(var n=a.offsetParent;n&&n.offsetParent;n=n.offsetParent){if(n.scrollLeft)m.x-=n.scrollLeft;if(n.scrollTop)m.y-=n.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),e=new od(d.x,d.y,d.width,d.height,c);b(e);return e}if(a.getBoundingClientRect){var f=a.getBoundingClientRect();return new od(f.left+kc(c,hc),f.top+
kc(c,fc),f.right-f.left,f.bottom-f.top,c)}for(var g=0,i=0,j=a;j.offsetParent;j=j.offsetParent){g+=j.offsetLeft;i+=j.offsetTop}e=new od(g,i,a.offsetWidth,a.offsetHeight,c);b(e);return e}function qd(a){if(!a)return l;var b=pd(a);return new md(b.x,b.y,b.coordinateFrame)}function rd(a,b){Yb(a,"p1 passed to Distance is undefined");Yb(b,"p2 passed to Distance is undefined");Yb(a.coordinateFrame==b.coordinateFrame);var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)}
function sd(a){var b=0,c=0;if(a.pageX||a.pageY){b=a.pageX;c=a.pageY}else if(a.clientX||a.clientY){var d=a.target?a.target:a.srcElement,e;e=d.ownerDocument&&d.ownerDocument.parentWindow?d.ownerDocument.parentWindow:window;b=a.clientX+kc(e,hc);c=a.clientY+kc(e,fc)}return new md(b,c,window)};var td=2*Math.PI/16,z=l,ud=0,vd=undefined,wd=undefined,xd=undefined,yd=undefined,zd=undefined,Ad=undefined,Bd=undefined,Cd=undefined,Dd=p,Ed=undefined,Fd=undefined;function _DD_Install(a){a||(a=document);Fd=a;hd(Fd.body,"mousedown",Gd)}var Hd=[];function Id(a){Hd.push(a)}function Jd(a,b){for(var c=Hd.length-1;c>=0;--c){var d=Hd[c](a,b);if(d)return d}return undefined}var Kd;function Gd(a){Kd=xc(a||window.event);hd(Fd.body,"mousemove",Ld);hd(Fd.body,"mouseup",Md);return p}
function Nd(a){for(var b=undefined,c=a.srcElement||a.target;c;c=c.parentNode)if(b=Jd(c,a)){wd=sd(a);if(b.kg(a,c)){if(!(z&&ud>=0&&ud<6&&1===1+ud%1&&Ad&&0===(Ad&-4))){var d="Bogus drag: el="+z+", type="+ud+", axis mask="+Ad;Od();Ub(d)}a.cancelBubble=k;vd=b;xd=wd;yd={x:z.offsetLeft,y:z.offsetTop,w:z.offsetWidth,h:z.offsetHeight};if(ud===4)zd=[wd];Bd=new nd(0,0);Cd=new nd(0,0);if(ud===1||ud===2||ud===5){ud!==2&&vd.useUserDefinedAlpha&&!vd.useUserDefinedAlpha()&&Pd(z,k);Ed=z.style.zIndex;z.style.zIndex=
2000}Gb()?hd(Fd.body,"mouseleave",Qd):hd(Fd.body,"mouseout",Qd)}else Od();return p}return k}function Md(a){if(Kd){Kd=l;id(Fd.body,"mousemove",Ld);id(Fd.body,"mouseup",Md);for(var b=undefined,c=a.srcElement||a.target;c;c=c.parentNode)if((b=Jd(c,a))&&b.handleClick){b.handleClick(c,a);return p}}else{var d=a||Fd.parentWindow.event;vd.vf(d,z,ud)?Od():Rd()}}
function Ld(a){if(Kd){var b=Nd(Kd);Kd=l;if(b){Rd();return k}}if(!z)return k;if(!vd)return k;var c=a||Fd.parentWindow.event;c.cancelBubble=k;var d=sd(c),e=new nd(d.x-wd.x+Bd.dx,d.y-wd.y+Bd.dy);if(!(e.dx|e.dy))return p;var f=new nd(e.dx,e.dy);wd=d;Dd=k;var g=qd(z);if(Ad&1)Cd.dx+=f.dx;if(Ad&2)Cd.dy+=f.dy;if(vd.Lf(c,z,ud,f,Cd)){var i=qd(z);Cd.dx-=i.x-g.x;Cd.dy-=i.y-g.y;switch(ud){case 1:case 2:case 5:Bd.dx=e.dx-f.dx;Bd.dy=e.dy-f.dy;break}switch(ud){case 1:if(!(Ad&1))f.dx=0;if(!(Ad&2))f.dy=0;var j=z.currentStyle?
z.currentStyle:z.ownerDocument.defaultView.getComputedStyle(z,"");if(j&&j.position=="relative"){z.style.left=Cd.dx+"px";z.style.top=Cd.dy+"px"}else{var m=z.offsetLeft+f.dx,n=z.offsetTop+f.dy;if(f.dx)z.style.left=m+"px";if(f.dy)z.style.top=n+"px";if(f.dx&&m!==z.offsetLeft)z.style.left=m+m-z.offsetLeft+"px";if(f.dy&&n!==z.offsetTop)z.style.top=n+n-z.offsetTop+"px"}break;case 5:var o=pd(z);if(Ad&1){var q=wd.x+Bd.dx,s=Math.min(q,xd.x),r=Math.abs(q-xd.x);if(s!==o.x){m=s;z.style.left=m+"px";if(m!==z.offsetLeft)z.style.left=
m+m-z.offsetLeft+"px"}if(r!==o.w){z.style.width=r+"px";if(r!=z.offsetWidth){r=Math.max(0,r+r-z.offsetWidth);z.style.width=r+"px"}}}if(Ad&2){var x=wd.y+Bd.dy,H=Math.min(x,xd.y),J=Math.abs(x-xd.y);if(H!==o.y){n=H;z.style.top=n+"px";if(n!==z.offsetTop)z.style.top=n+n-z.offsetTop+"px"}if(J!==o.h){z.style.height=J+"px";if(J!=z.offsetHeight){J=Math.max(0,J+J-z.offsetHeight);z.style.height=J+"px"}}}break;case 2:if(f.dx&&Ad&1){var Q=z.offsetWidth;r=Q+f.dx;if(r<0){Bd.dx+=r;r=0}if(r<1){Bd.dx+=r-1;r=1}z.style.width=
r+"px";if(r!=z.offsetWidth){r+=r-z.offsetWidth;if(r<1)r=1;z.style.width=r+"px"}}if(f.dy&&Ad&2){var Ba=z.offsetHeight;J=Ba+f.dy;if(J<0){Bd.dy+=J;J=0}if(J<1){Bd.dy+=J-1;J=1}z.style.height=J+"px";if(J!=z.offsetHeight){J+=J-z.offsetHeight;if(J<1)J=1;z.style.height=J+"px"}}break;case 3:if(!(Ad&1))f.dx=0;if(!(Ad&2))f.dy=0;if(z.scrollBy)z.scrollBy(f.dx,f.dy);else{f.dx*=-1;f.dy*=-1;var ja=z.scrollLeft,La=z.scrollLeft+z.scrollWidth-z.offsetWidth,wa=z.scrollTop,Ta=z.scrollTop+z.scrollHeight-z.offsetHeight;
f.dx=Math.max(Math.min(f.dx,La),-ja);f.dy=Math.max(Math.min(f.dy,Ta),-wa);if(f.dx)z.scrollLeft=z.scrollLeft+f.dx;if(f.dy)z.scrollTop=z.scrollTop+f.dy}break;case 4:if(f.dx|f.dy){if(zd.length>=1){var hb=f,Bb=zd[zd.length-1],Ua=new nd(hb.dx+Bb.dx,hb.dy+Bb.dy),Vb=p;if(Ua.dx*Ua.dx+Ua.dy*Ua.dy<=25)Vb=k;else{var vc=Math.atan2(hb.dx,hb.dy),gc=Math.atan2(Bb.dx,Bb.dy),jd=Math.abs((vc-gc+2*Math.PI)%(2*Math.PI));Vb=jd<td}if(Vb){Bb.dx=Ua.dx;Bb.dy=Ua.dy}else zd.push(f)}else zd.push(f);Sd(zd)}break}}else Rd();return p}
function Qd(a){a=a||window.event;var b=a.relatedTarget||a.toElement;b||Rd()}function Od(){if(ud!==0){if(z){ud===4&&Sd([]);vd.Sr(z,ud)}if(ud===1||ud===2||ud===5){ud!==2&&vd.useUserDefinedAlpha&&!vd.useUserDefinedAlpha()&&Pd(z,p);if(undefined!==Ed){z.style.zIndex=Ed;Ed=undefined}else delete z.style.zIndex}}z=l;ud=0;yd=wd=undefined;Ad=0;Bd=undefined;Dd=p;if(vd)Gb()?id(Fd.body,"mouseleave",Qd):id(Fd.body,"mouseout",Qd);vd=undefined;id(Fd.body,"mousemove",Ld);id(Fd.body,"mouseup",Md)}
function Rd(){switch(ud){case 1:var a=z.currentStyle?z.currentStyle:window.getComputedStyle(z,"");if(a&&a.position=="relative"){z.style.left="0px";z.style.top="0px"}else{z.style.left=yd.x+"px";z.style.top=yd.y+"px"}break;case 2:z.style.width=yd.w+"px";z.style.height=yd.h+"px";break;case 3:break;case 4:zd=[];break;case 0:break;case 5:break;default:Ub("failed to cancel drag with dd_dragType="+ud)}Od()}
function Pd(a,b){if(Gb())a.style.filter=b?"alpha(opacity=50)":"alpha(opacity=100)";else a.style.MozOpacity=b?0.5:1}var Td=p,Ud=undefined;function Sd(a){Ud=a;if(!Td){Td=k;window.setTimeout(Vd,100)}}
function Vd(){var a=Ud;Ud=undefined;Td=p;if(a){var b="";if(a.length)for(var c=a[0].x,d=a[0].y,e=0,f=0,g=1;g<a.length;g++){var i=a[g];if(i.dx|i.dy){if(g!=0)b+="<img class=gestimg src=images/joiner.png width=5 height=5 style=left:"+(c-2)+"px;top:"+(d-2)+"px>";var j=Math.atan2(i.dx,i.dy),m,n=Math.floor(j/(Math.PI/6));switch(n){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}var o=Math.max(1,Math.abs(i.dx)),q=Math.max(1,Math.abs(i.dy));b+="<img class=gestimg src=images/"+m+" width="+o+" height="+q+" style=left:"+(c+Math.min(i.dx,0))+"px;top:"+(d+Math.min(i.dy,0))+"px>";c+=i.dx;d+=i.dy;e=Math.max(c,e);f=Math.max(d,f)}}var s=y("gesture");s.style.display="none";s.innerHTML=b;s.style.display="inline"}};function Wd(a){this.Rx=(this.Px=a)?Xd(a):undefined;this.ls=p;this.Oz=l;this.Ql=3}var Xd=function(a,b){b=b||[];if(a.className&&a.className.match(/\bddSelected\b/))b.push(a);else for(var c=a.firstChild;c;c=c.nextSibling)Xd(c,b);return b};Wd.prototype.hw=function(a,b){a.style.left=b.x+"px";a.style.top=b.y+"px";if(this.Ql&1)a.style.width="0px";if(this.Ql&2)a.style.height="0px"};Wd.prototype.iw=function(a){a.style.display="block"};
Wd.prototype.kg=function(a){var b=y("ddLasso");if(!b){b=document.createElement("div");b.id="ddLasso";b.style.position="absolute";b.style.display="none";document.body.appendChild(b)}var c=sd(a);this.hw(b,c);this.iw(b);ud=5;Ad=this.Ql;this.Oz=z=b;var d=this;window.setTimeout(function(){d.finished||d.hj(b)},200);return k};Wd.prototype.vf=function(){return k};Wd.prototype.zw=function(a){return a.className&&a.className.match(/\bddSelectable\b/)};
Wd.prototype.dm=function(a,b,c){if(this.zw(a)){var d=pd(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(var e=a.firstChild;e;e=e.nextSibling)this.dm(e,b,c)};Wd.prototype.hj=function(a){if(this.Px){var b=[];this.dm(this.Px,pd(a),b);this.ed(b);if(!this.ls){var c=this;window.setTimeout(function(){c.finished||c.hj(a)},200)}}};
Wd.prototype.ed=function(a){for(var b=this.Rx,c=a.length;--c>=0;)a[c].dd_newSelection=k;for(c=b.length;--c>=0;){var d=b[c];d.dd_oldSelection=k;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=p}for(c=b.length;--c>=0;)b[c].dd_oldSelection=p;this.Rx=a};Wd.prototype.Lf=function(){return k};Wd.prototype.Sr=function(a){this.ls=k;this.hj(a);a.style.display="none"};
new Wd(undefined);function Yd(){this.ce=[]}function _PC_Install(a){if(Zd)return p;Zd=k;var b=a?a:document;hd(b.body,"mousedown",$d);return k}function $d(a){if(ae.ce.length==0)return p;a=a||window.event;for(var b=ae.ce.length-1;b>=0;--b){var c=ae.ce[b];be(c);c.deactivate(a)&&ae.ce.splice(b,1)}return k}function ce(a){be(a);for(var b=0;b<ae.ce.length;++b)if(a===ae.ce[b])return p;ae.ce.push(a);return k}function be(a){Zb(a.deactivate,Function,"popup missing deactivate function")}var ae=new Yd,Zd=p;function A(a,b,c,d,e){Yb(a,"element passed to DP_DatePicker constructor is null");this.Og=a;this.R=c?c:this.Og.id+"_";this.ga=d?d:"DP_";de[this.R]=this;if(e){Zb(e,Nc,"opt_today is not an ICAL_Date");this.ae=e}else this.ae=Pc();this.le=Oc(this.ae.year,this.ae.month,1);this.Tg=0;this.Iz=!!b;this.Xp=p;this.Qw=this.sx=l;this.Kg={};this.Ee={};this.th={};this.X={};this.vk=this.oe=l;this.Qx=new ee(this);this.Uz=new ee(this);this.sk=this.Cp=p;this.Wa=new fe;this.Oe=0;this.nj=l;this.aA=k;this.$c();this.bA=
p;this.pp(0);this.Zx(0);this.wy(gd);this.by(dd);this.jy(ed);this.Rn=p;this.Bw=this.Yf=this.Zf=this.Rc=this.Aa=this.Vg=l;this.uh=p;this.rz=this.sz=l;var f=this,g=function(i){var j=i.startDate,m=i.endDate,n;n=j?!m||j.equals(m)?"Selected: "+f.Bj(j,k):"Selected: "+f.Bj(j)+" - "+f.Bj(m):ge[this.bg];f.tx(n)};this.Cp&&this.Hi(g);this.Sz=new ee(this)}var ge={};ge[0]="Select a date";ge[1]="Select a range of dates";ge[2]="Select dates";ge[3]="&nbsp;";
A.prototype.Zx=function(a,b){if(a!=0&&a!=1&&a!=7&&a!=30&&a!=-1&&!(b instanceof Function))h(new Error("Invalid click mode: "+a));this.Cz=a;this.Tq=b};A.prototype.ty=function(a){if(a!=this.Xp){this.Xp=a;this.$c()}};A.prototype.wy=function(a){this.$p=a;this.$c()};A.prototype.Os=function(){return this.Cz};A.prototype.pp=function(a){0<=a&&a<=3||Wb("Invalid selection mode: "+a);if(!(this.bg==a)){this.bg=a;this.ie()}};A.prototype.Tj=function(){return this.bg};A.prototype.show=function(){this.sk=k;this.$c()};
A.prototype.hide=function(){this.Og.innerHTML="";this.sk=p};A.prototype.ma=function(){return this.sk};A.prototype.ih=function(){return y(this.R+"tbl")};A.prototype.ay=function(a){Yb(0<=a&&a<=6,a+" not a valid first day of week");this.Tg=a;this.$c()};A.prototype.gn=function(){return this.Tg};A.prototype.ly=function(a){Zb(a,Function);this.rx=a};A.prototype.gp=function(a){Zb(a,Function);this.Dr=a};A.prototype.ky=function(a){Zb(a,Function);this.Pw=a};A.prototype.jy=function(a){this.Bk=a;this.$c()};
A.prototype.Rt=function(){return this.Bk};A.prototype.by=function(a){this.Hs=a;this.$c()};
A.prototype.$c=function(){if(this.sk){var a=this.R,b,c=this.le.month,d=this.le.year,e=[c==1?12:c-1,c,c==12?1:c+1],f=Oc(this.ae.year,this.ae.month,1),g=Wc(d,c-1,1).qb(),i=Wc(d,c+1,1).qb();if(this.rx)e[0]=this.rx(g);else{var j=g.M()>=f.M()?"&laquo;":"&lsaquo;&nbsp;";e[0]=j+this.Bk[e[0]]}e[1]=this.Dr?this.Dr(this.le):this.Hs[e[1]]+" "+d;if(this.Pw)e[2]=this.Pw(i);else{var m=i.M()-f.M()<=0?"&raquo;":"&nbsp;&rsaquo;";e[2]=this.Bk[e[2]]+m}var n=Gc(d,c),o=Gc(g.year,g.month),q=new Array(49),s=this.le.Zs()-
this.Tg;if(s<0)s+=7;if(n<30||s<5)s+=7;for(var r=0;r<s;++r)q[r]=Oc(g.year,g.month,o-s+r+1);r=s;for(var x=0;x<n;++r)q[r]=Oc(d,c,++x);r=s+n;for(x=0;r<q.length;++r)q[r]=Oc(i.year,i.month,++x);this.sz=q[0];this.rz=q[q.length-1];var H=[],J=this.Iz?[2,3,2]:[1,5,1];H.push('<table cols=7 cellspacing="0" cellpadding="3" id="',a,'tbl"',' class="',this.ga,'monthtable" ',' style="-moz-user-select:none; cursor:pointer;">','<tr class="',this.ga,'heading" id="',a,'header">',"<td colspan=",J[0]," unselectable=on",
' onmousedown="'+Dc(_DP_staticPrevMonth)+"(",sc(this.R),')"',' id="',a,'mhl" class="',this.ga,'prev">',e[0],"</td>","<td colspan=",J[1],' unselectable="on"',' id="',a,'mhc" class="',this.ga,'cur">',e[1],"</td>","<td colspan=",J[2],' unselectable="on"',' onmousedown="'+Dc(_DP_staticNextMonth)+"(",sc(this.R),')"',' id="',a,'mhr" class="',this.ga,'next">',e[2],"</td>","</tr>");if(this.Xp){H.push('<tr class="',this.ga,'days" id="',a,'dow">');for(r=0;r<this.$p.length;++r)H.push('<td unselectable="on"',
' class="',this.ga,'dayh" id="',a,"day_",r,'">',this.$p[(r+this.Tg)%7],"</td>");H.push("</tr>")}var Q=(7-this.Tg)%7,Ba=(Q+6)%7;this.Kg={};var ja=l,La=Dc(_DP_staticCellClicked);r=0;for(x=-1;r<7;++r){H.push('<tr id="',a,"week_",r,'">');for(var wa=0;wa<this.$p.length;++wa){++x;var Ta=this.Wa.contains(q[x]);ja=[];r==0&&ja.push(this.ga+"day_top");if(wa==0)ja.push(this.ga+"day_left");else wa==6&&ja.push(this.ga+"day_right");ja.push(this.ga+"week"+(wa==Q||wa==Ba?"end":"day")+(Ta?"_selected":""));if(x<s||
x>=s+n){ja.push(this.ga+"offmonth");if(q[x].date<=7){ja.push(this.ga+"month_top");q[x].date==1&&wa!=0&&ja.push(this.ga+"month_left")}}else{ja.push(this.ga+"onmonth");if(q[x].date<=7){ja.push(this.ga+"month_top");q[x].date==1&&wa!=0&&ja.push(this.ga+"month_left")}if(q[x].date==this.ae.date&&c==this.ae.month&&d==this.ae.year)ja.push(this.ga+"today"+(Ta?"_selected":""))}var hb="";if(this.Fz){var Bb=this.Fz(q[x]);if(Bb)hb=' style="'+Bb+'"'}H.push('<td id="',a,"day_",r,"_",wa,'"',' class="',ja.join(" "),
'"',hb,' onclick="',La,'(this)"',' unselectable="on">',q[x].date,"</td>")}H.push("</tr>")}this.Cp&&H.push('<tr class="',this.ga,'months">','<td colspan="7" id="',a,'sel"></td></tr>');H.push("</table>");this.Og.innerHTML=H.join("");this.oe=y(a+"day_0_0");this.vk=y(a+"day_6_6");b=this.oe;for(var Ua=b.parentNode,Vb=l,vc=l,gc=x=-1;Ua!=l;){++gc;if(gc==7)break;for(var jd=-1;b!=l;){++x;++jd;var Me=a+"day_"+gc+"_"+jd;this.X[Me]=q[x];this.Kg[q[x].toString()]=b;if(this.th[Me]=Vb)this.Ee[vc]=b;Vb=b;vc=Me;b=
b.nextSibling}Ua=Ua.nextSibling;if(Ua!=l)b=Ua.firstChild}this.Oe=7;if(!this.aA){var Vg=y(a+"week_4"),je=y(a+"week_5"),ld=y(a+"week_6");if(this.X[a+"day_4_0"].month!=c){Vg.style.display="none";je.style.display="none";ld.style.display="none";this.Oe=4}else if(this.X[a+"day_5_0"].month!=c){je.style.display="none";ld.style.display="none";this.Oe=5}else if(this.X[a+"day_6_0"].month!=c){ld.style.display="none";this.Oe=6}}this.sx=g;this.Qw=i;this.nj&&this.nj.call(l,this);this.kq()}};
A.prototype.refresh=function(){this.nj&&this.nj.call(l,this)};A.prototype.Hi=function(a){return this.Qx.add(a)};A.prototype.ie=function(a){a=arguments.length===0||a;for(var b=this.Wa.Mi(),c=0;c<b.length;++c){var d=this.Kg[b[c].toString()];this.dd(d,p)}this.Wa.clear();if(!this.uh){this.ip(l);this.al(l)}a&&this.ud()};A.prototype.rk=function(a){Zb(a,Lc);return this.Wa.contains(a)};
A.prototype.Vl=function(a){if(this.Tq)this.Tq.call(l,a);else{var b=y(a),c=this.Wa;switch(this.bg){case 1:var d=this.Os();if(d==0)break;if(d!=1&&(d!=-1||!c.contains(this.X[a]))){var e=this.X[b.id],f;switch(d){case -1:if(c.Ra()>7&&this.zh()){var g=b.id.substr(b.id.length-3,1);e=this.X[this.R+"day_"+g+"_0"]}f=c.Ra()-1;break;case 7:g=b.id.substr(b.id.length-3,1);e=this.X[this.R+"day_"+g+"_0"];f=6;break;case 30:e=this.X[b.id];e=Oc(e.year,e.month,1);var i=Uc(e);f=Gc(e.year,e.month)-1;break;default:Wb("Invalid click mode: "+
d)}Yb(typeof f!="undefined","duration should have been defined");i=Uc(e);i.date+=f;var j=i.qb();this.ed(e,j);return}Yb(d==1||d==-1&&c.contains(this.X[a]),"not a case for single date selection");this.ie(p);case 0:if(c.Ra()>0){var m=c.Mi()[0];c.remove(m);var n=this.Kg[m.toString()];n&&this.dd(n,p)}c.add(this.X[b.id]);this.dd(b);this.ud(this.X[b.id]);break;case 2:break;case 3:default:break}}};A.prototype.ip=function(a){this.Zf=(this.Aa=a)?this.X[a.id]:l};
A.prototype.al=function(a){this.Yf=(this.Rc=a)?this.X[a.id]:l};A.prototype.cw=function(){return this.uh};A.prototype.kg=function(a){this.ie(p);this.uh=k;this.ip(this.Pg(a));var b=this.X[this.Aa.id];this.Wa.add(b);this.dd(this.Aa);this.ed(b);this.al(this.Aa)};
A.prototype.vf=function(a){this.uh=p;this.Rc=this.Pg(a);if(this.zh())this.ud(this.Zf,this.Yf,p);else{var b,c;if(this.X[this.Rc.id].M()<this.X[this.Aa.id].M()){b=this.X[this.Rc.id];c=this.X[this.Aa.id]}else{b=this.X[this.Aa.id];c=this.X[this.Rc.id]}this.ud(b,c,p)}};A.prototype.Lf=function(a,b,c,d){this.Bw=xc(a);if(!(this.bg!=1||this.Rn)){this.Rn=k;var e=this;window.setTimeout(function(){try{e.uh&&e.ks.call(e,b,c,d)}finally{e.Rn=p}},50)}};A.prototype.zh=function(){return this.bA};
A.prototype.ks=function(){var a=this.Bw,b=this.Pg(a);if(!(b===this.Rc)){var c=this.Rc;this.al(b);Yb(c!=b);var d=this.X,e=d[c.id].M()<d[b.id].M(),f=d[c.id].M()<d[this.Aa.id].M(),g=d[b.id].M()<d[this.Aa.id].M(),i=d[this.Aa.id].M()<d[b.id].M(),j=d[this.Aa.id].M()<d[c.id].M(),m,n,o,q,s=g?this.Rc:this.Aa,r=g?this.Aa:this.Rc;if(this.zh()){var x=Kc(d[r.id].year,d[r.id].month,d[r.id].date,d[s.id].year,d[s.id].month,d[s.id].date);if(x>=7){var H,J;H=parseInt(s.id.charAt(s.id.length-3),10);J=parseInt(r.id.charAt(r.id.length-
3),10);s=y(this.R+"day_"+H+"_0");r=y(this.R+"day_"+J+"_6")}this.Rd(this.oe,s,p);this.Rd(r,this.vk,p);this.Rd(s,r,k);this.Zf=d[s.id];this.Yf=d[r.id]}else if(e){if(f){n=g?this.th[b.id]:this.th[this.Aa.id];this.Rd(c,n,p)}if(i){m=j?this.Ee[c.id]:this.Ee[this.Aa.id];this.Rd(m,b,k)}}else{if(j){m=i?this.Ee[b.id]:this.Ee[this.Aa.id];this.Rd(m,c,p)}if(g){n=g?this.th[this.Aa.id]:this.th[c.id];this.Rd(b,n,k)}}o=d[s.id];q=d[r.id];this.ud(o,q,k)}};
A.prototype.Rd=function(a,b,c){Yb(a);Yb(b);Zb(c,Boolean);for(var d=p;a;){(d=c?this.Wa.add(this.X[a.id]):this.Wa.remove(this.X[a.id]))&&this.dd(a,c);if(a.id===b.id)break;a=this.Ee[a.id];Yb(a,"did not find endCell: "+b.id)}};var he={4:"day_3_6",5:"day_4_6",6:"day_5_6",7:"day_6_6"};A.prototype.yq=function(a,b){if(this.Vg)if(b){a.x-=this.Vg.x;a.y-=this.Vg.y}else{a.x+=this.Vg.x;a.y+=this.Vg.y}};
A.prototype.Pg=function(a){var b=pd(this.oe),c=this.yu(),d=sd(a);this.yq(d);var e=7,f=this.Lm(c.x,b.w,e,d.x),g=this.Lm(c.y,b.h,this.Oe,d.y);return y(this.R+"day_"+g+"_"+f)};A.prototype.Lm=function(a,b,c,d){if(d<a)return 0;var e=Math.floor((d-a)/b);return e>=c?c-1:e};A.prototype.yu=function(){var a=this.R,b=this.Oe,c=pd(this.oe),d=pd(y(a+he[b]));return new od(c.x,c.y,d.x+d.w-c.x,d.y+d.h-c.y,c.coordinateFrame)};A.prototype.Bj=function(a,b){var c=b?this.Hs:this.Bk;return c[a.month]+" "+a.date};
A.prototype.ud=function(a,b,c){var d={};d.startDate=a;d.endDate=b||a;d.cw=!!c;d.mode=this.Tj();this.Qx.fireEvent(d)};A.prototype.Nl=function(a){if(a instanceof Nc)return a;if(a instanceof Sc)return Oc(a.year,a.month,a.date);else Yb(p,"Invalid arg: "+a)};
A.prototype.ed=function(a,b,c){var d=this.Tj();c=c!==p;if(a)a=this.Nl(a);if(b)b=this.Nl(b);a&&this.xp(a);if(!a||d==3)this.ie(c);else if(d==0){this.ie(p);var e=this.Kg[a.toString()];this.Wa.add(a);this.dd(e);c&&this.ud(a)}else if(d==1){b||(b=a);var f=Kc(b.year,b.month,b.date,a.year,a.month,a.date),g=p;if(this.zh()&&f>=7){var i=Jc(a)+7,j=Jc(b)+7;i=(i-this.gn())%7;j=(j-this.gn())%7;var m;m=Wc(a.year,a.month,a.date-i);a=m.qb();m=Wc(b.year,b.month,b.date+(6-j));b=m.qb();g=this.xp(a)}g&&this.ie(p);e=this.oe;
this.Zf=a;this.Yf=b;for(var n=this.vk,o=a.M(),q=b.M();e;e=this.Ee[e.id]){var s=this.X[e.id],r=this.Wa.contains(s),x=s.M()>=o&&s.M()<=q;if(r!=x)if(x){this.Wa.add(s);this.dd(e)}else{this.Wa.remove(s);this.dd(e,p)}if(e===n)break}if(!e){m=Uc(this.X[this.vk.id]);var H=l;do{m.date+=1;H=m.qb();this.Wa.add(H)}while(!H.equals(b))}c&&this.ud(a,b)}};
A.prototype.jl=function(a,b){if(this.le.month==a.month&&this.le.year==a.year)return p;b=arguments.length==1||b;this.le=Oc(a.year,a.month,1);this.$c();b&&this.Uz.fireEvent();return k};A.prototype.xp=function(a,b){if(a.M()>=this.sz.M()&&a.M()<=this.rz.M())return p;return this.jl(a,b)};A.prototype.getSelection=function(){switch(this.Tj()){case 0:return this.Wa.Ra()?this.Wa.Mi()[0]:l;case 1:var a=this.Zf?this.Zf:l,b=this.Yf?this.Yf:l;if(!a||!b)return l;return[a,b];case 2:return l;case 3:default:return l}};
A.prototype.tx=function(a){if(this.Cp)y(this.R+"sel").innerHTML=a};
A.prototype.dd=function(a,b){if(a){Xb(b)||(b=k);var c=[],d=[],e=" "+a.className+" ",f=" "+this.ga;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(var g=0;g<c.length;++g)e=e.replace(c[g],d[g]);if(c.length!=0)a.className=e}};var de={};function _DP_staticPrevMonth(a){var b=de[a];return b.jl(b.sx)}function _DP_staticNextMonth(a){var b=de[a];return b.jl(b.Qw)}function _DP_staticCellClicked(a){var b=a.id,c=b.match(/(.*)day_\d+_\d+/),d=de[c[1]];return d.Vl(b)}
A.prototype.kq=function(){if(!(this.Qz===k)){this.Qz=k;var a=this.R,b=this,c=this.Og;Id(function(d){if(b.bg==1&&d===c){var e=new Wd(d);e.escapedStartPoint=p;e.kg=function(f){var g=sd(f),i=pd(b.oe),j=pd(y(a+he[b.Oe]));if(g.x<i.x||g.x>=j.x+j.w||g.y<i.y||g.y>=j.y+j.h)return p;this.startPoint=g.clone();this.startEvent=f;var m=y(a+"lasso");if(!m){m=document.createElement("div");m.id=a+"lasso";m.style.position="absolute";m.style.display="none";document.body.appendChild(m)}ud=5;Ad=3;z=m;return k};e.Lf=function(f,
g){if(!this.escapedStartPoint){var i=rd(this.startPoint,sd(f));if(i>5){this.escapedStartPoint=k;b.kg.call(b,this.startEvent,g)}else return k}b.Lf.apply(b,arguments);return k};e.vf=function(){if(this.escapedStartPoint)b.vf.apply(b,arguments);else if(this.startPoint){var f=b.Pg(this.startEvent).id;b.Vl.call(b,f)}return k};return e}else return undefined})}};A.prototype.log=function(){this.Sz.fireEvent(arguments)};A.prototype.ft=function(){return this.Og};function fe(){this.sd={};this.fc=0}
fe.prototype.Ra=function(){return this.fc};fe.prototype.add=function(a){var b=this.wl(a);if(b in this.sd)return p;this.sd[b]=a.qb();++this.fc;return k};fe.prototype.remove=function(a){var b=this.wl(a);if(!(b in this.sd))return p;delete this.sd[b];--this.fc;return k};fe.prototype.clear=function(){this.sd={};this.fc=0};fe.prototype.contains=function(a){var b=this.wl(a);return b in this.sd};fe.prototype.Mi=function(){var a=new Array(this.Ra()),b=-1;for(var c in this.sd)a[++b]=this.sd[c];return a};
fe.prototype.wl=function(a){Yb(a instanceof Nc||a instanceof Sc,"expected a date or datetime: "+a);return a.toString().substr(0,9)};function ee(a){this.Xz=a;this.Xc=[]}ee.prototype.add=function(a){Zb(a,Function);if(!a)return p;for(var b=0;b<this.Xc.length;++b)if(a===this.Xc[b])return p;this.Xc.push(a);return k};ee.prototype.remove=function(a){if(!a)return p;for(var b=0;b<this.Xc.length;++b)if(a===this.Xc[b]){this.Xc.splice(b,1);return k}return p};
ee.prototype.fireEvent=function(){for(var a=0;a<this.Xc.length;++a)this.Xc[a].apply(this.Xz,arguments)};ee.prototype.Ra=function(){return this.Xc.length};var ie=l;function ke(){return function(){return"&laquo;"}}function le(a){return function(b){return a.Rt()[b.month]+" "+b.year}}function me(){return function(){return"&raquo;"}}var ne={};
function oe(a,b,c){if(Gb()&&ie==l){ie=ec(window,"DP_Iframe","javascript:false");ie.parentNode.style.display="none";ie.style.position="absolute"}var d,e;if(ne[a]){d=ne[a];e=d.ft()}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 A(e,p,undefined,"DP_popup_");d.pp(0);d.ly(ke(d));d.gp(le(d));d.ky(me(d));d.ty(k);d.ay(0);ne[a]=d;d.Hi(pe(d,a,b));d.deactivate=function(i){if(!d.ma())return k;var j=
pd(d.ih()),m=sd(i);if(!j.contains(m)){d.hide();if(ie)ie.parentNode.style.display="none";return k}return p}}var f=qe(e.id,a,d,c),g=y(a);hd(g,"focus",f,p);hd(g,"click",f,p);hd(g,"blur",re(d),p);hd(g,"keydown",se(d,a,b),p);if(Kb()){hd(g,"keyup",se(d,a,te),p);hd(e,"mousedown",ue(d),p);hd(e,"mouseup",ve(d),p);d.iA=0;d.isDownInDiv=p}return d}function ue(a){return function(){a.isDownInDiv=k}}function ve(a){return function(){a.isDownInDiv=p}}
function qe(a,b,c,d){return function(){var e=y(b),f=pd(e),g=y(a);g.style.left=f.x+"px";g.style.top=f.y+f.h+"px";g.className="DP_popup_div";g.style.display="";var i=e.currentStyle?e.currentStyle:e.ownerDocument.defaultView.getComputedStyle(e,""),j=0;if(i.zIndex&&"auto"!=i.zIndex)j=i.zIndex;g.style.zIndex=j+1;c.show();if(ie){var m=pd(c.ih());ie.parentNode.style.display="";ie.style.left=m.x+"px";ie.style.top=m.y+"px";ie.style.width=m.w+"px";ie.style.height=m.h+"px";ie.style.zIndex=g.style.zIndex-1;ie.style.display=
""}var n=d(e.value);n&&c.ed(n,n,p);ce(c);return k}}function re(a){return function(b){if(!a.ma())return k;b=b||window.event;var c;if(Gb()){var d=pd(a.ih());c=d.contains(sd(b))}else if(Kb())c=a.isDownInDiv;else{var e=b.explicitOriginalTarget;c=cc(a.ih(),e)}if(!c){a.hide();if(ie)ie.parentNode.style.display="none"}return k}}function te(a){if(window.locale.locale=="zh-Hans-CN"||window.locale.locale=="zh-Hant-HK")return a.year+"-"+a.month+"-"+a.date;return ed[a.month]+" "+a.date+", "+a.year}
function we(a){var b=$c(a);if(b)b=b.confidence>-2?b.date:l;return b}function pe(a,b,c){return function(){var d=a.getSelection();if(d){var e=y(b);e.value=c(d);a.hide();if(ie)ie.parentNode.style.display="none";e.onchange&&e.onchange(e)}}}function se(a,b,c){return function(d){if(a.ma()){d=d||window.event;var e=Ac(d);if(e==38||e==40){var f=a.getSelection();if(f){var g=e==38?-1:1,i=Uc(f);i.date+=g;a.ed(i.qb(),undefined,p)}}else e==13&&window.setTimeout(pe(a,b,c),0)}}};function bd(){return k}function _AddDatePickerSelectionListener(a,b){return a.Hi(b)}var xe="",ye="";function _InitDatePickerFormatter(a,b){Va(b);Za("DateTimeConstants",Wa())||$a(qb,Wa());xe=a}function ze(a){return function(b){var c=new Date(b.year,b.month-1,b.date,0,0,0,0);return zb(a,c)}}function _AddDatePickerToInput(a){var b=oe(a,ze(xe),we);ye=Wa()=="zh_CN"?"yyyy\u5e74MMMMM":"MMM yyyy";b.gp(ze(ye))};function Ae(a,b){this.sortTypes=b||[];this.descending=this.sortColumn=l;var c=this;this._headerOnclick=function(e){c.Tv(e)};if(a){this.qy(a);this.document=a.ownerDocument||a.document}else this.document=document;var d=this.document.defaultView||this.document.parentWindow;this._onunload=function(){c.destroy()};d&&typeof d.attachEvent!="undefined"&&d.attachEvent("onunload",this._onunload)}var Be=navigator.product=="Gecko",Ce=/msie/i.test(navigator.userAgent),De=Be;Ae.prototype.onsort=function(){};
Ae.prototype.Kr=p;Ae.prototype._sortTypeInfo={};Ae.prototype.qy=function(a){this.tHead&&this.sl();this.element=a;this.py(a.tHead);this.oy(a.tBodies[0])};Ae.prototype.py=function(a){this.tHead&&this.tHead!=a&&this.sl();this.tHead=a;this.gw(this.sortTypes)};Ae.prototype.oy=function(a){this.tBody=a};
Ae.prototype.gw=function(a){if(this.tHead){var b=this.tHead.rows[0].cells;this.sortTypes=a||[];for(var c=b.length,d,e=0;e<c;e++){d=b[e];if(this.sortTypes[e]!=l&&this.sortTypes[e]!="None"){if(this.sortTypes[e]!=l)d._sortType=this.sortTypes[e];if(typeof d.addEventListener!="undefined")d.addEventListener("click",this._headerOnclick,p);else if(typeof d.attachEvent!="undefined")d.attachEvent("onclick",this._headerOnclick);else d.onclick=this._headerOnclick}else{d.setAttribute("_sortType",a[e]);d._sortType=
"None"}}this.vl()}};Ae.prototype.sl=function(){if(this.tHead)for(var a=this.tHead.rows[0].cells,b=a.length,c,d=0;d<b;d++){c=a[d];if(c._sortType!=l&&c._sortType!="None"){c.removeChild(c.lastChild);if(typeof c.removeEventListener!="undefined")c.removeEventListener("click",this._headerOnclick,p);else typeof c.detachEvent!="undefined"&&c.detachEvent("onclick",this._headerOnclick);c._sortType=l;c.removeAttribute("_sortType")}}};
Ae.prototype.vl=function(){if(this.tHead)for(var a=this.tHead.rows[0].cells,b=a.length,c,d=0;d<b;d++)if(a[d]._sortType!=l&&a[d]._sortType!="None"){c=a[d].lastChild;c.className=d==this.sortColumn?"sort-arrow "+(this.descending?"descending":"ascending"):"sort-arrow"}};Ae.prototype.Tv=function(a){for(var b=a.target||a.srcElement;b.tagName!="TD";)b=b.parentNode;this.sort(Ce?Ee(b):b.cellIndex)};var Ee=function(a){var b=a.parentNode.childNodes,c=b.length,d;for(d=0;b[d]!=a&&d<c;d++);return d};
Ae.prototype.vu=function(a){return this.sortTypes[a]||"String"};
Ae.prototype.sort=function(a,b,c){if(this.tBody){if(c==l)c=this.vu(a);if(!(c=="None")){this.descending=b==l?this.sortColumn!=a?this.Kr:!this.descending:b;this.sortColumn=a;typeof this.onbeforesort=="function"&&this.onbeforesort();var d=this.uu(c,a),e=this.Ks(c,a),f=this.tBody;e.sort(d);this.descending&&e.reverse();if(De){var g=f.nextSibling,i=f.parentNode;i.removeChild(f)}for(var j=e.length,m=0;m<j;m++)f.appendChild(e[m].element);De&&i.insertBefore(f,g);this.vl();this.Lr(e);typeof this.onsort=="function"&&
this.onsort()}}};Ae.prototype.Ks=function(a,b){if(!this.tBody)return[];for(var c=this.tBody.rows,d=c.length,e=new Array(d),f,g=0;g<d;g++){f=c[g];e[g]={value:this.pu(f,a,b),element:f}}return e};Ae.prototype.Lr=function(a){for(var b=a.length,c=0;c<b;c++){a[c].value=l;a[c].element=l;a[c]=l}};
Ae.prototype.pu=function(a,b,c){if(this._sortTypeInfo[b]&&this._sortTypeInfo[b].getRowValue)return this._sortTypeInfo[b].getRowValue(a,c);var d,e=a.cells[c];d=typeof e.innerText!="undefined"?e.innerText:Fe(e);return this.Gu(d,b)};var Fe=function(a){for(var b="",c=a.childNodes,d=c.length,e=0;e<d;e++)switch(c[e].nodeType){case 1:b+=Fe(c[e]);break;case 3:b+=c[e].nodeValue;break}return b};Ae.prototype.Gu=function(a,b){if(this._sortTypeInfo[b])return this._sortTypeInfo[b].getValueFromString(a);return a};
Ae.prototype.uu=function(a){if(this._sortTypeInfo[a])return this.descending?this._sortTypeInfo[a].compareReverse:this._sortTypeInfo[a].compare;return Ge};Ae.prototype.destroy=function(){this.sl();var a=this.document.parentWindow;a&&typeof a.detachEvent!="undefined"&&a.detachEvent("onunload",this._onunload);this._asyncsort=this.sortTypes=this._headerOnclick=this.document=this.tBody=this.tHead=this.element=this._onunload=l;this.onsort=function(){}};
Ae.prototype.ba=function(a,b,c,d,e){this._sortTypeInfo[a]={type:a,getValueFromString:b||He,compare:c||Ge,compareReverse:e||c||Ge,getRowValue:d}};
var Ge=function(a,b){if(a.value<b.value)return-1;if(b.value<a.value)return 1;return 0},He=function(a){return a},Ie=function(a){return a.toUpperCase()},Je=function(a){var b=a.split("-"),c=new Date(0);c.setFullYear(b[0]);c.setDate(b[2]);c.setMonth(b[1]-1);return c.valueOf()},Ke=function(a,b){if(a<b)return-1;if(b<a)return 1;return 0},Le=function(a,b){var c=/([a-z][a-z])([a-z]{1,2})/,d=a.match(c),e=b.match(c);if(!d||!e)return Ke(a,b);a=d[2].length==1?d[1]+"  "+d[2]:d[2].length==2&&d[2].charAt(0)==d[2].charAt(1)?
d[1]+" "+d[2]:d[1]+d[2];b=e[2].length==1?e[1]+"  "+e[2]:e[2].length==2&&e[2].charAt(0)==e[2].charAt(1)?e[1]+" "+e[2]:e[1]+e[2];return Ke(a,b)},Ne=function(a,b){var c=a.value,d=b.value;return Le(c,d)},Oe=function(a,b){var c=a.value,d=b.value,e=/([a-z][a-z])([a-z]{1,2})([0-9]+)/,f=c.match(e),g=d.match(e);if(!f||!g)return Ke(c,d);var i=Le(f[1]+f[2],g[1]+g[2]);if(i!=0)return i;var j=parseInt(f[3],undefined),m=parseInt(g[3],undefined);return Ke(j,m)};Ae.prototype.ba("Number",Number);
Ae.prototype.ba("CaseInsensitiveString",Ie);Ae.prototype.ba("Date",Je);Ae.prototype.ba("String");Ae.prototype.ba("GoogleHost",He,Oe);Ae.prototype.ba("GoogleRack",He,Ne);function Pe(a){a=a.toUpperCase();var b="____",c=a.replace(/(([0-9]*\.)?[0-9]+([eE][-+]?[0-9]+)?)(.*)/,"$1"+b+"$4").split(b),d=Number(c[0]).valueOf(),e=c[1].replace(/\s*([KMGB])\s*/,"$1");if(e=="K")d*=1024;else if(e=="M")d*=1048576;else if(e=="G")d*=1073741824;else if(e=="T")d*=1099511627776;return d}Ae.prototype.ba("NumberK",Pe);function Qe(a){var b=a,c=a.indexOf("$");if(c==-1)c=a.indexOf(",");if(c!=-1){var d=a.substr(0,c),e=a.substr(c+1,a.length);return Qe(d+e)}return parseFloat(b)}Ae.prototype.ba("UsCurrency",Qe);var Re;function Se(){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);Re=c;break}catch(d){}}if(!Re)h(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed."))}}Se();function Te(){return Re?new ActiveXObject(Re):new XMLHttpRequest}
function Ue(a,b,c){a.open("GET",b,k);a.onreadystatechange=c;Ve(a,l)}function We(a,b,c,d){a.open("POST",b,k);a.onreadystatechange=d;a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.setRequestHeader("Content-Length",c.length);Ve(a,c)}function Ve(a,b){try{a.send(b)}catch(c){Sb("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);h(c)}};if("undefined"==typeof Sb)Sb=function(){};function Xe(a){this.doc=a||document;this.Kz=this.doc.getElementById?function(b){return this.doc.getElementById(b)}:function(b){return this.doc.all[b]}}Xe.prototype.Xa=function(a){return this.Kz(a)};new Xe;var Ye=function(a,b,c){if(a.indexOf)return a.indexOf(b,c);if(Array.indexOf)return Array.indexOf(a,b,c);for(var d=c==l?0:c<0?Math.max(0,a.length+c):c,e=d;e<a.length;e++)if(e in a&&a[e]===b)return e;return-1},Ze=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=ka(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},$e=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,g=ka(a)?a.split(""):a,i=0;i<d;i++)if(i in g){var j=g[i];if(b.call(c,j,i,a))e[f++]=j}return e},af=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,g=ka(a)?a.split(""):a,i=0;i<d;i++)if(i in g)e[f++]=b.call(c,g[i],i,a);return e},bf=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=ka(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return k;return p},cf=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=ka(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return p;return k},df=function(a,b){if(a.contains)return a.contains(b);return Ye(a,b)>-1},ef=function(a,b){df(a,b)||a.push(b)},gf=function(a,b,c){ff(a,c,0,b)},jf=function(a,b){var c=Ye(a,b),d;if(d=c!=-1)hf(a,c);return d},hf=function(a,b){return Array.prototype.splice.call(a,b,1).length==1},kf=function(a){if(ha(a))return a.concat();else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=
a[c];return b}},lf=function(a){if(ha(a))return a.concat();return kf(a)},mf=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];if(ia(c)){c=lf(c);a.push.apply(a,c)}else a.push(c)}},ff=function(a){return Array.prototype.splice.apply(a,nf(arguments,1))},nf=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},pf=function(a,b){Array.prototype.sort.call(a,b||of)},qf=function(a,b){for(var c=0;c<a.length;c++)a[c]={index:c,value:a[c]};
var d=b||of;function e(f,g){return d(f.value,g.value)||f.index-g.index}pf(a,e);for(c=0;c<a.length;c++)a[c]=a[c].value},of=function(a,b){return a>b?1:a<b?-1:0};var rf=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},sf=function(a){var b=0;for(var c in a)b++;return b},tf=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},uf=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b},vf=function(a,b){for(var c in a)if(a[c]==b)return k;return p},wf=function(a){for(var b in a)return p;return k},xf=function(a,b){var c;if(c=b in a)delete a[b];return c},zf=function(a,b,c){if(b in a)h(Error('The object already contains the key "'+b+'"'));yf(a,b,c)},
Af=function(a,b,c){if(b in a)return a[b];return c},yf=function(a,b,c){a[b]=c},Bf=function(a){var b={};for(var c in a)b[c]=a[c];return b},Cf=function(a){var b={};for(var c in a)b[a[c]]=c;return b},Df=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ef=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<Df.length;e++){b=Df[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}},Ff=function(){var a=
arguments.length;if(a==1&&ha(arguments[0]))return Ff.apply(l,arguments[0]);if(a%2)h(Error("Uneven number of arguments"));for(var b={},c=0;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b};var Gf=function(){};Gf.prototype.sj=p;Gf.prototype.qw=function(){return this.sj};Gf.prototype.dispose=function(){if(!this.sj){this.sj=k;this.i()}};Gf.prototype.i=function(){};var Hf=function(a,b){Gf.call(this);this.Lw=b;this.qe=[];this.hr(a)};w(Hf,Gf);Hf.prototype.kj=l;Hf.prototype.rj=l;Hf.prototype.dg=function(a){this.kj=a};Hf.prototype.hp=function(a){this.rj=a};Hf.prototype.rc=function(){if(this.qe.length)return this.qe.pop();return this.jm()};Hf.prototype.Od=function(a){this.qe.length<this.Lw?this.qe.push(a):this.ym(a)};Hf.prototype.hr=function(a){if(a>this.Lw)h(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.qe.push(this.jm())};
Hf.prototype.jm=function(){return this.kj?this.kj():{}};Hf.prototype.ym=function(a){if(this.rj)this.rj(a);else if(ma(a.dispose))a.dispose();else for(var b in a)delete a[b]};Hf.prototype.i=function(){Hf.o.i.call(this);for(var a=this.qe;a.length;)this.ym(a.pop());delete this.qe};var If,Jf,Kf,Lf,Mf,Nf,Of,Pf,Qf,Rf,Sf=function(){return t.navigator?t.navigator.userAgent:l},Tf=function(){return t.navigator},Uf=function(){Nf=Mf=Lf=Kf=Jf=If=p;var a;if(a=Sf()){var b=Tf();If=a.indexOf("Opera")==0;Jf=!If&&a.indexOf("MSIE")!=-1;Lf=(Kf=!If&&a.indexOf("WebKit")!=-1)&&a.indexOf("Mobile")!=-1;Nf=(Mf=!If&&!Kf&&b.product=="Gecko")&&b.vendor=="Camino"}};Uf();
var Vf=If,B=Jf,Wf=Mf,Xf=Kf,Yf=Lf,Zf=function(){var a=Tf();return a&&a.platform||""},$f=Zf(),ag=function(){Of=Ha($f,"Mac");Pf=Ha($f,"Win");Qf=Ha($f,"Linux");Rf=!!Tf()&&Ha(Tf().appVersion||"","X11")};ag();
var bg=Of,cg=Rf,dg=function(){var a="",b;if(Vf&&t.opera){var c=t.opera.version;a=typeof c=="function"?c():c}else{if(Wf)b=/rv\:([^\);]+)(\)|;)/;else if(B)b=/MSIE\s+([^\);]+)(\)|;)/;else if(Xf)b=/WebKit\/(\S+)/;if(b){var d=b.exec(Sf());a=d?d[1]:""}}return a},eg=dg(),fg={},gg=function(a){return fg[a]||(fg[a]=Ra(eg,a)>=0)};var hg=function(a,b){this.type=a;this.currentTarget=this.target=b};w(hg,Gf);hg.prototype.i=function(){delete this.type;delete this.target;delete this.currentTarget};hg.prototype.ad=p;hg.prototype.Ue=k;hg.prototype.stopPropagation=function(){this.ad=k};hg.prototype.preventDefault=function(){this.Ue=p};var ig=function(a,b){a&&this.init(a,b)};w(ig,hg);var jg=[1,4,2];ig.prototype.type=l;ig.prototype.target=l;ig.prototype.relatedTarget=l;ig.prototype.offsetX=0;ig.prototype.offsetY=0;ig.prototype.clientX=0;ig.prototype.clientY=0;ig.prototype.screenX=0;ig.prototype.screenY=0;ig.prototype.button=0;ig.prototype.keyCode=0;ig.prototype.charCode=0;ig.prototype.ctrlKey=p;ig.prototype.altKey=p;ig.prototype.shiftKey=p;ig.prototype.metaKey=p;ig.prototype.fb=l;
ig.prototype.init=function(a,b){this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;this.relatedTarget=a.relatedTarget?a.relatedTarget:this.type=="mouseover"?a.fromElement:this.type=="mouseout"?a.toElement:l;this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?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||(this.type=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.fb=a;delete this.Ue;delete this.ad};ig.prototype.Wn=function(a){return B?this.type=="click"?a==0:!!(this.fb.button&jg[a]):this.fb.button==a};ig.prototype.stopPropagation=function(){this.ad=k;if(this.fb.stopPropagation)this.fb.stopPropagation();else this.fb.cancelBubble=k};
ig.prototype.preventDefault=function(){this.Ue=p;if(this.fb.preventDefault)this.fb.preventDefault();else{this.fb.returnValue=p;try{this.fb.keyCode=-1}catch(a){}}};ig.prototype.Gj=function(){return this.fb};ig.prototype.i=function(){ig.o.i.call(this);this.fb=l};var kg=function(){},lg=0;kg.prototype.qk=l;kg.prototype.listener=l;kg.prototype.proxy=l;kg.prototype.src=l;kg.prototype.type=l;kg.prototype.capture=l;kg.prototype.handler=l;kg.prototype.key=0;kg.prototype.removed=p;kg.prototype.Si=p;
kg.prototype.init=function(a,b,c,d,e,f){if(ma(a))this.qk=k;else if(a&&a.handleEvent&&ma(a.handleEvent))this.qk=p;else h(Error("Invalid listener argument"));this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.Si=p;this.key=++lg;this.removed=p};kg.prototype.handleEvent=function(a){if(this.qk)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};var mg={},ng={},og={},pg=new Hf(0,600);pg.dg(function(){return{H:0,$b:0}});pg.hp(function(a){a.H=0});var qg=new Hf(0,600);qg.dg(function(){return[]});qg.hp(function(a){a.length=0;delete a.Fh;delete a.uo});var rg=new Hf(0,600);rg.dg(function(){var a=function(b){return sg.call(a.src,a.key,b)};return a});var tg=function(){return new kg},ug=new Hf(0,600);ug.dg(tg);
var vg=function(){return new ig},wg=function(){var a=l;if(B){a=new Hf(0,600);a.dg(vg)}return a},xg=wg(),yg="on",zg={},C=function(a,b,c,d,e){if(b)if(ha(b)){for(var f=0;f<b.length;f++)C(a,b[f],c,d,e);return l}else{var g=!!d,i=ng;b in i||(i[b]=pg.rc());i=i[b];if(!(g in i)){i[g]=pg.rc();i.H++}i=i[g];var j=qa(a),m,n;i.$b++;if(i[j]){m=i[j];for(f=0;f<m.length;f++){n=m[f];if(n.listener==c&&n.handler==e){if(n.removed)break;return m[f].key}}}else{m=i[j]=qg.rc();i.H++}var o=rg.rc();o.src=a;n=ug.rc();n.init(c,
o,a,b,g,e);var q=n.key;o.key=q;m.push(n);mg[q]=n;og[j]||(og[j]=qg.rc());og[j].push(n);if(a.addEventListener){if(a==t||!a.rm)a.addEventListener(b,o,g)}else a.attachEvent(Ag(b),o);return q}else h(Error("Invalid event type"))},Bg=function(a,b,c,d,e){if(ha(b)){for(var f=0;f<b.length;f++)Bg(a,b[f],c,d,e);return l}var g=C(a,b,c,d,e),i=mg[g];i.Si=k;return g},Cg=function(a,b,c,d,e){if(ha(b)){for(var f=0;f<b.length;f++)Cg(a,b[f],c,d,e);return l}var g=!!d,i=Dg(a,b,g);if(!i)return p;for(f=0;f<i.length;f++)if(i[f].listener==
c&&i[f].capture==g&&i[f].handler==e)return Eg(i[f].key);return p},Eg=function(a){if(!mg[a])return p;var b=mg[a];if(b.removed)return p;var c=b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==t||!c.rm)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(Ag(d),e);var g=qa(c),i=ng[d][f][g];if(og[g]){var j=og[g];jf(j,b);j.length==0&&delete og[g]}b.removed=k;i.uo=k;Fg(d,f,g,i);delete mg[a];return k},Fg=function(a,b,c,d){if(!d.Fh)if(d.uo){for(var e=0,f=0;e<d.length;e++)if(d[e].removed)ug.Od(d[e]);
else{if(e!=f)d[f]=d[e];f++}d.length=f;d.uo=p;if(f==0){qg.Od(d);delete ng[a][b][c];ng[a][b].H--;if(ng[a][b].H==0){pg.Od(ng[a][b]);delete ng[a][b];ng[a].H--}if(ng[a].H==0){pg.Od(ng[a]);delete ng[a]}}}},Gg=function(a,b,c){var d=0,e=a==l,f=b==l,g=c==l;c=!!c;if(e)rf(og,function(o){for(var q=o.length-1;q>=0;q--){var s=o[q];if((f||b==s.type)&&(g||c==s.capture)){Eg(s.key);d++}}});else{var i=qa(a);if(og[i])for(var j=og[i],m=j.length-1;m>=0;m--){var n=j[m];if((f||b==n.type)&&(g||c==n.capture)){Eg(n.key);d++}}}return d},
Dg=function(a,b,c){var d=ng;if(b in d){d=d[b];if(c in d){d=d[c];var e=qa(a);if(d[e])return d[e]}}return l},Hg=function(a,b,c,d,e){var f=!!d,g=Dg(a,b,f);if(g)for(var i=0;i<g.length;i++)if(g[i].listener==c&&g[i].capture==f&&g[i].handler==e)return g[i];return l},Ig=function(a,b,c){var d=qa(a),e=og[d];if(e){var f=b!==undefined,g=c!==undefined;if(f&&g){var i=ng[b];return!!i&&!!i[c]&&d in i[c]}else return f||g?bf(e,function(j){return f&&j.type==b||g&&j.capture==c}):k}return p},Ag=function(a){if(a in zg)return zg[a];
return zg[a]=yg+a},Kg=function(a,b,c,d,e){var f=1,g=qa(b);if(a[g]){a.$b--;var i=a[g];if(i.Fh)i.Fh++;else i.Fh=1;try{for(var j=i.length,m=0;m<j;m++){var n=i[m];if(n&&!n.removed)f&=Jg(n,e)!==p}}finally{i.Fh--;Fg(c,d,g,i)}}return Boolean(f)},Jg=function(a,b){var c=a.handleEvent(b);a.Si&&Eg(a.key);return c},Lg=function(a,b){if(ka(b))b=new hg(b,a);else if(b instanceof hg)b.target=b.target||a;else{var c=b;b=new hg(b.type,a);Ef(b,c)}var d=1,e,f=b.type,g=ng;if(!(f in g))return k;g=g[f];var i=k in g,j;if(i){e=
[];for(var m=a;m;m=m.bh())e.push(m);j=g[k];j.$b=j.H;for(var n=e.length-1;!b.ad&&n>=0&&j.$b;n--){b.currentTarget=e[n];d&=Kg(j,e[n],b.type,k,b)&&b.Ue!=p}}var o=p in g;if(o){j=g[p];j.$b=j.H;if(i)for(n=0;!b.ad&&n<e.length&&j.$b;n++){b.currentTarget=e[n];d&=Kg(j,e[n],b.type,p,b)&&b.Ue!=p}else for(var q=a;!b.ad&&q&&j.$b;q=q.bh()){b.currentTarget=q;d&=Kg(j,q,b.type,p,b)&&b.Ue!=p}}return Boolean(d)},sg=function(a,b){if(!mg[a])return k;var c=mg[a],d=c.type,e=ng;if(!(d in e))return k;e=e[d];var f,g;if(B){var i=
b||da("window.event"),j=k in e,m=p in e;if(j){if(i.keyCode<0||i.returnValue!=undefined)return k;Mg(i)}var n=xg.rc();n.init(i,this);f=k;try{if(j){for(var o=qg.rc(),q=n.currentTarget;q;q=q.parentNode)o.push(q);g=e[k];g.$b=g.H;for(var s=o.length-1;!n.ad&&s>=0&&g.$b;s--){n.currentTarget=o[s];f&=Kg(g,o[s],d,k,n)}if(m){g=e[p];g.$b=g.H;for(s=0;!n.ad&&s<o.length&&g.$b;s++){n.currentTarget=o[s];f&=Kg(g,o[s],d,p,n)}}}else f=Jg(c,n)}finally{if(o){o.length=0;qg.Od(o)}n.dispose();xg.Od(n)}return f}var r=new ig(b,
this);try{f=Jg(c,r)}finally{r.dispose()}return f},Mg=function(a){var b=p;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=k}if(b||a.returnValue==undefined)a.returnValue=k};var D=function(){};w(D,Gf);D.prototype.rm=k;D.prototype.Co=l;D.prototype.bh=function(){return this.Co};D.prototype.addEventListener=function(a,b,c,d){C(this,a,b,c,d)};D.prototype.removeEventListener=function(a,b,c,d){Cg(this,a,b,c,d)};D.prototype.dispatchEvent=function(a){return Lg(this,a)};D.prototype.i=function(){D.o.i.call(this);Gg(this);this.Co=l};var Ng=function(a){D.call(this);this.r=a;var b=Wf?"DOMMouseScroll":"mousewheel";this.zk=C(this.r,b,this)};w(Ng,D);Ng.prototype.handleEvent=function(a){var b=0,c=a.Gj(),d="vertical";if(c.type=="mousewheel"){b=-c.wheelDelta/40;if(Xf){gg("530.4")||(b/=3);if(c.wheelDeltaX)d="horizontal"}}else b=c.detail;if(typeof c.axis!="undefined"&&typeof c.HORIZONTAL_AXIS!="undefined"&&c.axis==c.HORIZONTAL_AXIS)d="horizontal";if(b>100)b=3;else if(b<-100)b=-3;var e=new Og(b,c,d);try{this.dispatchEvent(e)}finally{e.dispose()}};
Ng.prototype.i=function(){Ng.o.i.call(this);Eg(this.zk);delete this.zk};var Og=function(a,b,c){ig.call(this,b);this.type="mousewheel";this.axis=c||"vertical";this.detail=a};w(Og,ig);if("StopIteration"in t)var Pg=t.StopIteration;else Pg=Error("StopIteration");var Qg=function(){};Qg.prototype.next=function(){h(Pg)};Qg.prototype.__iterator__=function(){return this};var Rg=function(a){if(typeof a.Af=="function")return a.Af();if(ia(a)||ka(a))return a.length;return sf(a)},Sg=function(a){if(typeof a.uc=="function")return a.uc();if(ka(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return tf(a)},Tg=function(a){if(typeof a.Vc=="function")return a.Vc();if(typeof a.uc=="function")return undefined;if(ia(a)||ka(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(d);return b}return uf(a)},Ug=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,
c);else if(ia(a)||ka(a))Ze(a,b,c);else for(var d=Tg(a),e=Sg(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)},Wg=function(a,b,c){if(typeof a.filter=="function")return a.filter(b,c);if(ia(a)||ka(a))return $e(a,b,c);var d,e=Tg(a),f=Sg(a),g=f.length;if(e){d={};for(var i=0;i<g;i++)if(b.call(c,f[i],e[i],a))d[e[i]]=f[i]}else{d=[];for(i=0;i<g;i++)b.call(c,f[i],undefined,a)&&d.push(f[i])}return d};var Xg=function(a){this.Yb={};this.N=[];var b=arguments.length;if(b>1){if(b%2)h(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.fq(a)};Xg.prototype.H=0;Xg.prototype.Mc=0;Xg.prototype.Af=function(){return this.H};Xg.prototype.uc=function(){this.kf();for(var a=[],b=0;b<this.N.length;b++){var c=this.N[b];a.push(this.Yb[c])}return a};Xg.prototype.Vc=function(){this.kf();return this.N.concat()};Xg.prototype.eb=function(a){return Yg(this.Yb,a)};
Xg.prototype.equals=function(a,b){if(this===a)return k;if(this.H!=a.Af())return p;var c=b||Zg;this.kf();for(var d,e=0;d=this.N[e];e++)if(!c(this.get(d),a.get(d)))return p;return k};var Zg=function(a,b){return a===b};Xg.prototype.clear=function(){this.Yb={};this.Mc=this.H=this.N.length=0};Xg.prototype.remove=function(a){if(Yg(this.Yb,a)){delete this.Yb[a];this.H--;this.Mc++;this.N.length>2*this.H&&this.kf();return k}return p};
Xg.prototype.kf=function(){if(this.H!=this.N.length){for(var a=0,b=0;a<this.N.length;){var c=this.N[a];if(Yg(this.Yb,c))this.N[b++]=c;a++}this.N.length=b}if(this.H!=this.N.length){var d={};for(b=a=0;a<this.N.length;){c=this.N[a];if(!Yg(d,c)){this.N[b++]=c;d[c]=1}a++}this.N.length=b}};Xg.prototype.get=function(a,b){if(Yg(this.Yb,a))return this.Yb[a];return b};Xg.prototype.set=function(a,b){if(!Yg(this.Yb,a)){this.H++;this.N.push(a);this.Mc++}this.Yb[a]=b};
Xg.prototype.fq=function(a){var b,c;if(a instanceof Xg){b=a.Vc();c=a.uc()}else{b=uf(a);c=tf(a)}for(var d=0;d<b.length;d++)this.set(b[d],c[d])};Xg.prototype.clone=function(){return new Xg(this)};Xg.prototype.__iterator__=function(a){this.kf();var b=0,c=this.N,d=this.Yb,e=this.Mc,f=this,g=new Qg;g.next=function(){for(;1;){if(e!=f.Mc)h(Error("The map has changed since the iterator was created"));if(b>=c.length)h(Pg);var i=c[b++];return a?i:d[i]}};return g};
var Yg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var $g=function(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0};$g.prototype.clone=function(){return new $g(this.x,this.y)};$g.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var ah=function(a,b){return new $g(a.x-b.x,a.y-b.y)};var bh=function(a,b){this.width=a;this.height=b},ch=function(a,b){if(a==b)return k;if(!a||!b)return p;return a.width==b.width&&a.height==b.height};bh.prototype.clone=function(){return new bh(this.width,this.height)};bh.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};bh.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
bh.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};bh.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};bh.prototype.scale=function(a){this.width*=a;this.height*=a;return this};var dh,eh=function(a,b){a.className=b},fh=function(a){var b=a.className;return b&&typeof b.split=="function"?b.split(" "):[]},hh=function(a){var b=fh(a),c=nf(arguments,1),d=gh(b,c);a.className=b.join(" ");return d},jh=function(a){var b=fh(a),c=nf(arguments,1),d=ih(b,c);a.className=b.join(" ");return d},gh=function(a,b){for(var c=0,d=0;d<b.length;d++)if(!df(a,b[d])){a.push(b[d]);c++}return c==b.length},ih=function(a,b){for(var c=0,d=0;d<a.length;d++)if(df(b,a[d])){ff(a,d--,1);c++}return c==b.length},
kh=function(a,b,c){for(var d=fh(a),e=p,f=0;f<d.length;f++)if(d[f]==b){ff(d,f--,1);e=k}if(e){d.push(c);a.className=d.join(" ")}return e},lh=function(a,b){return df(fh(a),b)},mh=function(a,b,c){c?hh(a,b):jh(a,b)},nh=function(a,b){var c=!lh(a,b);mh(a,b,c);return c};var qh=function(a){return a?new oh(ph(a)):dh||(dh=new oh)},rh=function(a){return ka(a)?document.getElementById(a):a},E=rh,th=function(a,b,c){return sh(document,a,b,c)},sh=function(a,b,c,d){var e=d||a,f=b&&b!="*"?b.toLowerCase():"";if(e.querySelectorAll&&(f||c)&&(!Xf||uh(a)||gg("528"))){var g=f+(c?"."+c:"");return e.querySelectorAll(g)}if(c&&e.getElementsByClassName){var i=e.getElementsByClassName(c);if(f){for(var j={},m=0,n=0,o;o=i[n];n++)if(f==o.nodeName.toLowerCase())j[m++]=o;j.length=m;return j}else return i}i=
e.getElementsByTagName(f||"*");if(c){j={};for(n=m=0;o=i[n];n++){var q=o.className;if(typeof q.split=="function"&&df(q.split(" "),c))j[m++]=o}j.length=m;return j}else return i},vh=th,xh=function(a,b){rf(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 wh)a.setAttribute(wh[d],c);else a[d]=c})},wh={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",
usemap:"useMap",frameborder:"frameBorder",type:"type"},zh=function(a){return yh(a||window)},yh=function(a){var b=a.document;if(Xf&&!gg("500")&&!Yf){if(typeof a.innerHeight=="undefined")a=window;var c=a.innerHeight,d=a.document.documentElement.scrollHeight;if(a==a.top)if(d<c)c-=15;return new bh(a.innerWidth,c)}var e=uh(b)&&(!Vf||Vf&&gg("9.50"))?b.documentElement:b.body;return new bh(e.clientWidth,e.clientHeight)},Ah=function(a){var b=!Xf&&uh(a)?a.documentElement:a.body;return new $g(b.scrollLeft,b.scrollTop)},
Ch=function(a){return a?Bh(a):window},Bh=function(a){if(a.parentWindow)return a.parentWindow;if(Xf&&!gg("500")&&!Yf){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},Eh=function(){return Dh(document,arguments)},Dh=function(a,b){var c=b[0],d=b[1];if(B&&d&&(d.name||d.type)){var e=["<",c];d.name&&e.push(' name="',Ga(d.name),'"');if(d.type){e.push(' type="',Ga(d.type),'"');d=
ra(d);delete d.type}e.push(">");c=e.join("")}var f=a.createElement(c);if(d)if(ka(d))f.className=d;else xh(f,d);if(b.length>2){function g(m){if(m)f.appendChild(ka(m)?a.createTextNode(m):m)}for(var i=2;i<b.length;i++){var j=b[i];ia(j)&&!(na(j)&&j.nodeType>0)?Ze(Fh(j)?kf(j):j,g):g(j)}}return f},Gh=Eh,Ih=function(a){return Hh(document,a)},Hh=function(a,b){var c=a.createElement("div");c.innerHTML=b;if(c.childNodes.length==1)return c.firstChild;else{for(var d=a.createDocumentFragment();c.firstChild;)d.appendChild(c.firstChild);
return d}},uh=function(a){return a.compatMode=="CSS1Compat"},F=function(a,b){a.appendChild(b)},Jh=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},Kh=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)},Lh=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)},Mh=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):l},Nh=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},Ph=function(a){return Oh(a.firstChild,k)},Oh=function(a,b){for(;a&&a.nodeType!=1;)a=
b?a.nextSibling:a.previousSibling;return a},Qh=Xf&&Ra(eg,"521")<=0,Rh=function(a,b){if(typeof a.contains!="undefined"&&!Qh&&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},ph=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},Sh=function(a){var b;return b=Xf?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document},Th=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{Jh(a);var c=ph(a);a.appendChild(c.createTextNode(b))}},Vh=function(a,b){var c=[],d=Uh(a,b,c,k);return d?c[0]:undefined},Uh=function(a,b,c,d){if(a!=l)for(var e=0,f;f=a.childNodes[e];e++){if(b(f)){c.push(f);if(d)return k}if(Uh(f,b,c,d))return k}return p},Wh={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Xh={IMG:" ",BR:"\n"},Yh=function(a){var b=
a.getAttributeNode("tabindex");if(b&&b.specified){var c=a.tabIndex;return la(c)&&c>=0}return p},Zh=function(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")},ai=function(a){var b;if(B&&"innerText"in a)b=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var c=[];$h(a,c,k);b=c.join("")}b=b.replace(/\xAD/g,"");b=b.replace(/ +/g," ");if(b!=" ")b=b.replace(/^\s*/,"");return b},$h=function(a,b,c){if(!(a.nodeName in Wh))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 Xh)b.push(Xh[a.nodeName]);else for(var d=a.firstChild;d;){$h(d,b,c);d=d.nextSibling}},Fh=function(a){if(a&&typeof a.length=="number")if(na(a))return typeof a.item=="function"||typeof a.item=="string";else if(ma(a))return typeof a.item=="function";return p},oh=function(a){this.Jb=a||t.document||document};oh.prototype.Tc=function(){return this.Jb};oh.prototype.k=function(a){return ka(a)?this.Jb.getElementById(a):a};oh.prototype.Xa=oh.prototype.k;
oh.prototype.Ju=function(a){return zh(a||this.Ae())};oh.prototype.g=function(){return Dh(this.Jb,arguments)};oh.prototype.B=oh.prototype.g;oh.prototype.createElement=function(a){return this.Jb.createElement(a)};oh.prototype.createTextNode=function(a){return this.Jb.createTextNode(a)};oh.prototype.Zn=function(){return uh(this.Jb)};oh.prototype.Ae=function(){return Bh(this.Jb)};oh.prototype.an=function(){return!Xf&&uh(this.Jb)?this.Jb.documentElement:this.Jb.body};oh.prototype.Kj=function(){return Ah(this.Jb)};
oh.prototype.appendChild=F;oh.prototype.removeNode=Mh;oh.prototype.replaceNode=Nh;oh.prototype.hn=Ph;oh.prototype.contains=Rh;var ci=function(a,b){D.call(this);this.wh=a||1;this.yi=b||bi;this.Sl=u(this.Ty,this);this.ko=ta()};w(ci,D);ci.prototype.enabled=p;var bi=t.window,di=0.8;ci.prototype.Kc=l;ci.prototype.setInterval=function(a){this.wh=a;if(this.Kc&&this.enabled){this.stop();this.start()}else this.Kc&&this.stop()};
ci.prototype.Ty=function(){if(this.enabled){var a=ta()-this.ko;if(a>0&&a<this.wh*di)this.Kc=this.yi.setTimeout(this.Sl,this.wh-a);else{this.Nr();if(this.enabled){this.Kc=this.yi.setTimeout(this.Sl,this.wh);this.ko=ta()}}}};ci.prototype.Nr=function(){this.dispatchEvent("tick")};ci.prototype.start=function(){this.enabled=k;if(!this.Kc){this.Kc=this.yi.setTimeout(this.Sl,this.wh);this.ko=ta()}};ci.prototype.stop=function(){this.enabled=p;if(this.Kc){this.yi.clearTimeout(this.Kc);this.Kc=l}};
ci.prototype.i=function(){ci.o.i.call(this);this.stop();delete this.yi};var ei=function(a,b,c){if(ma(a)){if(c)a=u(a,c)}else if(a&&typeof a.handleEvent=="function")a=u(a.handleEvent,a);else h(Error("Invalid listener argument"));return b>2147483647?-1:bi.setTimeout(a,b||0)},fi=function(a){bi.clearTimeout(a)};var gi=function(a){return 1-Math.pow(1-a,3)},hi=function(a,b,c,d){D.call(this);if(!ha(a)||!ha(b))h(Error("Start and end parameters must be arrays"));if(a.length!=b.length)h(Error("Start and end points must be the same length"));this.startPoint=a;this.endPoint=b;this.duration=c;this.accel=d;this.coords=[]};w(hi,D);
var ii={},ji=l,ki=function(){bi.clearTimeout(ji);var a=ta();for(var b in ii)ii[b].cycle(a);ji=wf(ii)?l:bi.setTimeout(ki,20)},li=function(a){var b=qa(a);b in ii||(ii[b]=a);ji||(ji=bi.setTimeout(ki,20))},mi=function(a){var b=qa(a);delete ii[b];if(ji&&wf(ii)){bi.clearTimeout(ji);ji=l}};hi.prototype.C=0;hi.prototype.Um=0;hi.prototype.progress=0;hi.prototype.Wd=l;hi.prototype.Cm=l;hi.prototype.wk=l;
hi.prototype.play=function(a){if(a||this.C==0){this.progress=0;this.coords=this.startPoint}else if(this.C==1)return p;mi(this);this.Wd=ta();if(this.C==-1)this.Wd-=this.duration*this.progress;this.Cm=this.Wd+this.duration;this.wk=this.Wd;this.progress||this.Ld();this.ax();this.C==-1&&this.bx();this.C=1;li(this);this.cycle(this.Wd);return k};hi.prototype.stop=function(a){mi(this);this.C=0;if(a)this.progress=1;this.ul(this.progress);this.ex();this.Zc()};
hi.prototype.pause=function(){if(this.C==1){mi(this);this.C=-1;this.$w()}};hi.prototype.i=function(){this.C!=0&&this.stop(p);this.Vw();hi.o.i.call(this)};hi.prototype.destroy=function(){this.dispose()};hi.prototype.cycle=function(a){this.progress=(a-this.Wd)/(this.Cm-this.Wd);if(this.progress>=1)this.progress=1;this.Um=1000/(a-this.wk);this.wk=a;ma(this.accel)?this.ul(this.accel(this.progress)):this.ul(this.progress);if(this.progress==1){this.C=0;mi(this);this.Ww();this.Zc()}else this.C==1&&this.Mh()};
hi.prototype.ul=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]};hi.prototype.Mh=function(){this.mc("animate")};hi.prototype.Ld=function(){this.mc("begin")};hi.prototype.Vw=function(){this.mc("destroy")};hi.prototype.Zc=function(){this.mc("end")};hi.prototype.Ww=function(){this.mc("finish")};hi.prototype.$w=function(){this.mc("pause")};hi.prototype.ax=function(){this.mc("play")};
hi.prototype.bx=function(){this.mc("resume")};hi.prototype.ex=function(){this.mc("stop")};hi.prototype.mc=function(a){this.dispatchEvent(new ni(a,this))};var ni=function(a,b){hg.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.Um;this.state=b.C;this.anim=b};w(ni,hg);var oi=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};oi.prototype.clone=function(){return new oi(this.top,this.right,this.bottom,this.left)};oi.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};oi.prototype.contains=function(a){return pi(this,a)};
oi.prototype.expand=function(a,b,c,d){if(na(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 pi=function(a,b){if(!a||!b)return p;if(b instanceof oi)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 qi=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};qi.prototype.clone=function(){return new qi(this.left,this.top,this.width,this.height)};qi.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
qi.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),e=Math.min(this.top+this.height,a.top+a.height);if(d<=e){this.left=b;this.top=d;this.width=c-b;this.height=e-d;return k}}return p};
qi.prototype.contains=function(a){return a instanceof qi?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};qi.prototype.Ra=function(){return new bh(this.width,this.height)};var ri,si,ti,ui,vi,wi,xi=function(){wi=vi=ui=ti=si=ri=p;var a=Sf();if(a)if(a.indexOf("Firefox")!=-1)ri=k;else if(a.indexOf("Camino")!=-1)si=k;else if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1)ti=k;else if(a.indexOf("Android")!=-1)ui=k;else if(a.indexOf("Chrome")!=-1)vi=k;else if(a.indexOf("Safari")!=-1)wi=k};xi();var zi=function(a,b,c){ka(b)?yi(a,c,b):rf(b,sa(yi,a))},yi=function(a,b,c){a.style[Ai(c)]=b},Bi=function(a,b){var c=ph(a);if(c.defaultView&&c.defaultView.getComputedStyle){var d=c.defaultView.getComputedStyle(a,"");if(d)return d[b]}return l},Ci=function(a,b){return Bi(a,b)||(a.currentStyle?a.currentStyle[b]:l)||a.style[b]},Di=function(a,b,c){var d,e,f=Wf&&(bg||cg)&&gg("1.9");if(b instanceof $g){d=b.x;e=b.y}else{d=b;e=c}a.style.left=typeof d=="number"?(f?Math.round(d):d)+"px":d;a.style.top=typeof e==
"number"?(f?Math.round(e):e)+"px":e},Ei=function(a){var b;b=a?a.nodeType==9?a:ph(a):document;if(B&&!qh(b).Zn())return b.body;return b.documentElement},Fi=function(a){var b=a.getBoundingClientRect();if(B){var c=a.ownerDocument;b.left-=c.documentElement.clientLeft+c.body.clientLeft;b.top-=c.documentElement.clientTop+c.body.clientTop}return b},Gi=function(a){if(B)return a.offsetParent;for(var b=ph(a),c=Ci(a,"position"),d=c=="fixed"||c=="absolute",e=a.parentNode;e&&e!=b;e=e.parentNode){c=Ci(e,"position");
d=d&&c=="static"&&e!=b.documentElement&&e!=b.body;if(!d&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight||c=="fixed"||c=="absolute"))return e}return l},Ji=function(a){for(var b=new oi(0,Infinity,Infinity,0),c=qh(a),d=c.an(),e,f=a;f=Gi(f);)if((!B||f.clientWidth!=0)&&(f.scrollWidth!=f.clientWidth||f.scrollHeight!=f.clientHeight)&&Ci(f,"overflow")!="visible"){var g=Hi(f),i=Ii(f);g.x+=i.x;g.y+=i.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+f.clientWidth);b.bottom=Math.min(b.bottom,
g.y+f.clientHeight);b.left=Math.max(b.left,g.x);e=e||f!=d}var j=d.scrollLeft,m=d.scrollTop;if(Xf){b.left+=j;b.top+=m}else{b.left=Math.max(b.left,j);b.top=Math.max(b.top,m)}if(!e||Xf){b.right+=j;b.bottom+=m}var n=c.Ju();b.right=Math.min(b.right,j+n.width);b.bottom=Math.min(b.bottom,m+n.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:l},Ii=function(a){if(Wf&&!gg("1.9")){var b=parseFloat(Bi(a,"borderLeftWidth"));if(Ki(a)){var c=a.offsetWidth-a.clientWidth-b-parseFloat(Bi(a,"borderRightWidth"));
b+=c}return new $g(b,parseFloat(Bi(a,"borderTopWidth")))}return new $g(a.clientLeft,a.clientTop)},Hi=function(a){var b,c=ph(a),d=Ci(a,"position"),e=Wf&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),f=new $g(0,0),g=Ei(c);if(a==g)return f;if(a.getBoundingClientRect){b=Fi(a);var i=qh(c).Kj();f.x=b.left+i.x;f.y=b.top+i.y}else if(c.getBoxObjectFor&&!e){b=c.getBoxObjectFor(a);var j=c.getBoxObjectFor(g);f.x=b.screenX-j.screenX;f.y=b.screenY-
j.screenY}else{var m=a;do{f.x+=m.offsetLeft;f.y+=m.offsetTop;if(m!=a){f.x+=m.clientLeft||0;f.y+=m.clientTop||0}if(Xf&&Ci(m,"position")=="fixed"){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}m=m.offsetParent}while(m&&m!=a);if(Vf||Xf&&d=="absolute")f.y-=c.body.offsetTop;for(m=a;(m=Gi(m))&&m!=c.body&&m!=g;){f.x-=m.scrollLeft;if(!Vf||m.tagName!="TR")f.y-=m.scrollTop}}return f},Mi=function(a,b){var c=new $g(0,0),d=Ch(ph(a)),e=a;do{var f=d==b?Hi(e):Li(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&(e=d.frameElement)&&
(d=d.parent));return c},Ni=function(a,b,c){if(b.Tc()!=c.Tc()){var d=b.Tc().body,e=Mi(d,c.Ae());e=ah(e,Hi(d));if(B&&!b.Zn())e=ah(e,b.Kj());a.left+=e.x;a.top+=e.y}},Oi=function(a,b){var c=Li(a),d=Li(b);return new $g(c.x-d.x,c.y-d.y)},Li=function(a){var b=new $g;if(a.nodeType==1)if(a.getBoundingClientRect){var c=Fi(a);b.x=c.left;b.y=c.top}else{var d=qh(a).Kj(),e=Hi(a);b.x=e.x-d.x;b.y=e.y-d.y}else{b.x=a.clientX;b.y=a.clientY}return b},Pi=function(a,b,c){var d=Hi(a);if(b instanceof $g){c=b.y;b=b.x}var e=
b-d.x,f=c-d.y;Di(a,a.offsetLeft+e,a.offsetTop+f)},Qi=function(a,b,c){var d;if(b instanceof bh){d=b.height;b=b.width}else{if(c==undefined)h(Error("missing height argument"));d=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof d=="number"?Math.round(d)+"px":d},Ri=function(a){var b=Vf&&!gg("10");if(Ci(a,"display")!="none")return b?new bh(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new bh(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";var g,i;if(b){g=a.offsetWidth||a.clientWidth;i=a.offsetHeight||a.clientHeight}else{g=a.offsetWidth;i=a.offsetHeight}c.display=d;c.position=f;c.visibility=e;return new bh(g,i)},Si=function(a){var b=Hi(a),c=Ri(a);return new qi(b.x,b.y,c.width,c.height)},Ti={},Ai=function(a){return Ti[a]||(Ti[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))},Ui=function(a,b){var c=a.style;if("opacity"in c)c.opacity=b;
else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in c)c.filter=b===""?"":"alpha(opacity="+b*100+")"},G=function(a,b){a.style.display=b?"":"none"};Wf&&gg("1.9");
var Ki=function(a){return"rtl"==Ci(a,"direction")},Vi=Wf?"MozUserSelect":Xf?"WebkitUserSelect":l,Wi=function(a,b,c){var d=!c?a.getElementsByTagName("*"):l,e=Vi;if(e){var f=b?"none":"";a.style[e]=f;if(d)for(var g=0,i;i=d[g];g++)i.style[e]=f}else if(B||Vf){f=b?"on":"";a.setAttribute("unselectable",f);if(d)for(g=0;i=d[g];g++)i.setAttribute("unselectable",f)}};var Xi=function(a,b,c,d,e){hi.call(this,b,c,d,e);this.element=a};w(Xi,hi);Xi.prototype.be=ea;Xi.prototype.Mh=function(){this.be();Xi.o.Mh.call(this)};Xi.prototype.Zc=function(){this.be();Xi.o.Zc.call(this)};Xi.prototype.Ld=function(){this.be();Xi.o.Ld.call(this)};var Yi=function(a,b,c,d,e){Xi.call(this,a,[b],[c],d,e)};w(Yi,Xi);Yi.prototype.be=function(){this.element.style.height=Math.round(this.coords[0])+"px"};
var Zi=function(a,b,c,d,e){if(la(b))b=[b];if(la(c))c=[c];Xi.call(this,a,b,c,d,e);if(b.length!=1||c.length!=1)h(Error("Start and end points must be 1D"))};w(Zi,Xi);Zi.prototype.be=function(){Ui(this.element,this.coords[0])};Zi.prototype.show=function(){this.element.style.display=""};Zi.prototype.hide=function(){this.element.style.display="none"};var $i=function(a,b,c){Zi.call(this,a,1,0,b,c)};w($i,Zi);$i.prototype.Ld=function(){this.show();$i.o.Ld.call(this)};
$i.prototype.Zc=function(){this.hide();$i.o.Zc.call(this)};Wf&&gg("1.9a");if(window.jstiming){window.jstiming.Cq={};window.jstiming.Zz=1;function aj(a,b,c){var d=a.t[b];if(!d)return undefined;d=a.t[b][0];if(c!=undefined)var e=c;else e=a.t.start[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}catch(e){}if(a.Ez)d+="&"+a.Ez;var f=a.t,g=f.start,i=[],j=[];for(var m in f)if(!(m=="start"))if(!(m.indexOf("_")==
0)){var n=f[m][1];if(n)f[n]&&j.push(m+"."+aj(a,m,f[n][0]));else g&&i.push(m+"."+aj(a,m))}delete f.start;if(b)for(var o in b)d+="&"+o+"="+b[o];var q=[c?c:"http://csi.gstatic.com/csi","?v=3","&s="+(window.jstiming.sn?window.jstiming.sn:"finance")+"&action=",a.name,j.length?"&it="+j.join(",")+d:d,"&rt=",i.join(",")].join(""),s=new Image,r=window.jstiming.Zz++;window.jstiming.Cq[r]=s;s.onload=s.onerror=function(){delete window.jstiming.Cq[r]};s.src=q;s=l;return q}}
if(window.jstiming){var bj=function(){window.jstiming.load.tick("ol")};if(window.attachEvent)window.attachEvent("onload",bj);else window.addEventListener&&window.addEventListener("load",bj,p)};var cj=function(a){this.j=a};w(cj,Gf);var dj=new Hf(0,100);cj.prototype.listen=function(a,b,c,d,e){if(ha(b))for(var f=0;f<b.length;f++)this.listen(a,b[f],c,d,e);else{var g=C(a,b,c||this,d||p,e||this.j||this);this.wx(g)}return this};cj.prototype.wx=function(a){if(this.N)this.N[a]=k;else if(this.Jd){this.N=dj.rc();this.N[this.Jd]=k;this.Jd=l;this.N[a]=k}else this.Jd=a};
cj.prototype.unlisten=function(a,b,c,d,e){if(this.Jd||this.N)if(ha(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else{var g=Hg(a,b,c||this,d||p,e||this.j||this);if(g){var i=g.key;Eg(i);if(this.N)xf(this.N,i);else if(this.Jd==i)this.Jd=l}}return this};cj.prototype.$f=function(){if(this.N){for(var a in this.N){Eg(a);delete this.N[a]}dj.Od(this.N);this.N=l}else this.Jd&&Eg(this.Jd)};cj.prototype.i=function(){cj.o.i.call(this);this.$f()};cj.prototype.handleEvent=function(){h(Error("EventHandler.handleEvent not implemented"))};var ej=function(){this.nz=B==k;this.Yh=[];this.j=new cj(this)};w(ej,Gf);ej.prototype.i=function(){this.j.dispose()};var fj=l,gj=function(){fj||(fj=new ej);return fj};ej.prototype.hy=function(a,b,c){var d=b+"px";if(this.nz){var e=c?c:this.om(a);e&&this.Th(function(){a.style.width=e.offsetWidth<b+2?d:"auto"})}else a.style.minWidth=d};ej.prototype.dl=function(a,b,c){var d=b+"px";if(this.nz){var e=c?c:this.om(a);e&&this.Th(function(){a.style.width=e.offsetWidth>b+2?d:"auto"})}else a.style.maxWidth=d};
ej.prototype.Th=function(a){if(a){this.Yh.length==0&&this.j.listen(window,"resize",this.Kx);this.Yh[this.Yh.length]=a;a()}};ej.prototype.Kx=function(){for(var a=0;a<this.Yh.length;++a)this.Yh[a]()};ej.prototype.om=function(a){var b=Gh("div");Nh(b,a);F(b,a);return b};var hj=l,jj=function(){if(hj)return hj;var a=document.getElementById("cgpDisclaimer");if(!a)return l;return hj=new ij(a)},ij=function(a){if(a){this.rf=l;this.Mf=this.On=p;this.Hd(a)}};ij.prototype.Hd=function(a){if(a){this.rf=a;this.On=this.Pq()?k:p}};ij.prototype.Pq=function(){if(!this.rf)return p;if(/^[\s\xa0]*$/.test(this.rf.innerHTML))return this.Mf=p;else return this.Mf=k};
ij.prototype.Tp=function(a,b){if(this.rf)if(!this.On){if(a&&!this.Mf){this.rf.innerHTML="Search results not complying with Chinese law, regulation, or policy do not appear.<br>";this.Mf=k}else if(!a&&this.Mf){this.rf.innerHTML="";this.Mf=p}if(a&&b)this.On=k}};ij.prototype.Bx=function(a){return this.No(this.No(a,"<!--R7--\>"),"<!--R8--\>")};ij.prototype.No=function(a,b){for(var c=a,d=c.match(b);d;){c=c.replace(b,"");d=c.match(b)}return c};
ij.prototype.Vh=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.Tp(k,b):this.Tp(p,b);return c};var _alreadyProcessingRequest=p,_finance_chart=l,_relatedTickers=l,_data_5d=l,_data_5Y=l,_hoverData=[],_BROWSER_OTHER=0,_BROWSER_IE=1,_BROWSER_MOZILLA=2,_BROWSER_SAFARI=3,_BROWSER_OPERA=4,_OS_UNIX=1,_OS_MAC=2,_jsVersion=1,_agent=l,_is_ie=l,_is_konqueror=l,_is_safari=l,_is_nav=l,_is_win=l,_count_tmp=l,_first_chart_data_is_here=p,_visible_chart_range_changed_already_called=p,_totalNumDivs=l,_previousBucketedDays=l,_getRecentNews=1,_minZoomDays=l,_minZoomDaysNoIntraDay=l,_maxZoomDaysForEnablingPansAndFlags=
300,_eventid="",_external_target="",_XH_XmlHttpCreate=Te,_XH_XmlHttpGET=Ue,_XH_XmlHttpPOST=We,kj=function(){},_pstart=kj,_pstop=kj;_chartConfigObject={};var _expid=l,_has_news=k,_tabs;var lj=navigator.appVersion.indexOf("MSIE")!=-1?k:p,mj=navigator.appVersion.toLowerCase().indexOf("win")!=-1?k:p,nj=navigator.userAgent.indexOf("Opera")!=-1?k:p;_jsVersion=1.1;
function oj(){var a=l;if(navigator.plugins!=l&&navigator.plugins.length>0)if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var b=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"",c=navigator.plugins["Shockwave Flash"+b].description,d=c.split(" "),e=d[2].split("."),f=e[0],g=e[1],i=l;i=d[3]!=""?d[3].split("r"):d[4].split("r");var j=i[1]>0?i[1]:0;a=f+"."+g+"."+j}else a=-1;else a=navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1?4:navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=
-1?3:navigator.userAgent.toLowerCase().indexOf("webtv")!=-1?2:-1;return a}function pj(a,b,c){for(var d=parseFloat(a+"."+c),e=25;e>0;e--){var f=l;f=lj&&mj&&!nj?VBGetSwfVer(e):oj(e);if(f==-1)return p;else if(f!=0){var g=l;if(lj&&mj&&!nj){var i=f.split(" "),j=i[1];g=j.split(",")}else g=f.split(".");var m=g[0],n=g[1],o=g[2],q=m+"."+o,s=parseFloat(q);return m>a&&s>=d?k:s>=d&&n>=b?k:p}}return d?p:0};var qj=function(){return E("navmenu")!=l},rj=function(){var a=E("ad-target"),b=da("google.finance.data.common.dfp");if(a&&b){var c=Gh("iframe",{width:"300px",height:"250px",style:"border:0",frameborder:"0",border:"0",scrolling:"no",src:"javascript:false"});a.appendChild(c);var d="http://finance.google.com/finance",e=da("_ticker");if(e)d+="?q="+e;var f=Sh(c)||l;f&&f.write('<html><body style="margin:0"><script>google_page_url = "'+d+'";<\/script><script src="'+b+";ord="+Math.random()*10000000000000000+
'" type="text/javascript"><\/script></body></html>')}else{var g=E("ad-source");if(a&&g){Nh(g,a);g.className="ads-300-250"}}var i=E("ad-label");if(i)i.className=""},sj=0,tj={};function uj(a){var b=new Image,c=sj++;tj[c]=b;b.onload=b.onerror=function(){delete tj[c]};b.src=a;b=l}
function vj(a,b,c,d){return function(){if(a!=l&&a!=""){window.status=a;var e=escape(a.href).replace(/\+/g,"%2B");uj("/finance/url?sa=T&ct="+escape(b)+"&cd="+escape(c)+"&url="+e+"&ei="+_eventid+d)}else uj("/finance/url?sa=T&ct="+escape(b)+"&cd="+escape(c)+"&url=&ei="+_eventid+d);return k}}var wj="";function _setStickyUrlParams(a){wj=a}function xj(){if(wj!="")return"&"+wj;return""}function _GF_click(a,b,c,d){vj(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){var c="&biw="+a+"&bih="+b;uj("/finance/url?sa=T&ct=bstats"+
c)}}function _sfjs(a,b){if(pj(7,0,0)){var c=E(a);if(!(c==l))c.style.display=b?b:"block"}}function yj(a){if(da("google.finance.data.company.news.clusters")){if(hj)google.finance.data.company.news.clusters=hj.Vh(google.finance.data.company.news.clusters,k);var b=google.finance.data.company.news.clusters,c=a.split("-");if(c.length==3&&c[0]=="n"&&c[1]=="c"){for(var d=[],e=0;e<b.length;++e)b[e].a&&b[e].a[0].fid&&d.push(_companyId+":"+b[e].a[0].fid);a+="-"+d.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)!="n-"&&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,4)!="nav-"&&c.id.substring(0,3)!="rc-"&&c.id.substring(0,4)!="rct-"&&c.id.substring(0,3)!="rq-"&&c.id.substring(0,2)!="p-"))c.onmousedown=vj(c,"res",yj(c.id),"")}}
function zj(a,b){var c="/finance/prefs?action=set&prefsgroup=NW&prefskey=CL&prefsval="+escape(a)+"&onlycookie=1";if(b!=l&&b!="")c+="&hash="+b;Aj(c)}function _news_simple(a){var b=E("news_simple_div");b.style.display="block";var c=E("news_simple_link");c.className="ac";var d=E("news_detailed_div");d.style.display="none";var e=E("news_detailed_link");e.className="nac";zj("s",a)}
function _news_detailed(a){var b=E("news_simple_div");b.style.display="none";var c=E("news_simple_link");c.className="nac";var d=E("news_detailed_div");d.style.display="block";var e=E("news_detailed_link");e.className="ac";zj("d",a)}
function Bj(a,b){if(!a||!a.length)return l;var c=1;return function(){var d=l,e;if(c==1&&document.body.offsetWidth>b+30){c=2;d="two-columns";e="one-column"}else if(c==2&&document.body.offsetWidth<b){c=1;d="one-column";e="two-columns"}if(d)for(var f=0;f<a.length;f++){hh(a[f],d);e&&jh(a[f],e)}}}function Cj(a,b){if(!a)return l;return function(){document.body.offsetWidth>b?hh(a,"wide"):jh(a,"wide")}}
var Dj=function(){var a=E("body-wrapper");if(a){var b=da("google.finance.data.minWidth");if(b||B)gj().hy(a,b?b:950,E("outer-wrapper"))}},Ej=function(){qj()&&Dj()};if(window.attachEvent)window.attachEvent("onload",Ej);else window.addEventListener&&window.addEventListener("load",Ej,p);function Fj(a,b,c,d,e,f,g,i){new Gj(a,b,c,d,e,f,g,i)}v("google.finance.applyPagination",Fj);var Hj={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"},I={},K=Hj;I[K.LOCAL_NAME]="";I[K.NAME]="Company name";I[K.ID]="";I[K.CHANGE_STYLE]="";I[K.SPARKLINE]="Price history";I[K.EXCHANGE]="Exchange";I[K.SYMBOL]="Symbol";I[K.LAST]="Price";I[K.MARKET_CAP]="Mkt Cap";I[K.EBITD_MARGIN]="EBITD margin";I[K.ROAPCT]="Return&nbsp;on avg&nbsp;assets";I[K.ROEPCT]="Return&nbsp;on avg&nbsp;equity";I[K.EMPLOYEES_NUM]="Employees";I[K.EPS]="Earnings per&nbsp;share";I[K.PE_RATIO]="P/E ratio";
I[K.PRICE_TO_BOOK]="Price-to-<br>book&nbsp;ratio";I[K.PRICE_TO_SALES]="Price-to-<br>sales&nbsp;ratio";I[K.DIVIDEND]="Dividend";I[K.DIVIDEND_YIELD]="Dividend yield";I[K.CURRENT_RATIO]="Current ratio";I[K.ROIPCT]="Return&nbsp;on investment";I[K.BETA]="Beta";I[K.AVG_TRADE_VOL]="Avg&nbsp;trading volume";I[K.GROSS_MARGIN]="Gross margin";I[K.OPERATING_MARGIN]="Operating margin";I[K.NET_PROFIT_MARGIN]="Net&nbsp;profit margin";I[K.ANALYST_RATING]="Analyst rating";I[K.REVENUE]="Revenue";I[K.NET_INCOME]="Net&nbsp;income";
I[K.LT_DEBT_TO_ASSETS]="Lt&nbsp;debt to&nbsp;assets";I[K.TOTAL_DEBT_TO_ASSETS]="Total&nbsp;debt to&nbsp;assets";I[K.LT_DEBT_TO_EQUITY]="Lt&nbsp;debt to&nbsp;equity";I[K.TOTAL_DEBT_TO_EQUITY]="Total&nbsp;debt to&nbsp;equity";I[K.CHANGE]="Change";I[K.CHANGE_PCT]="Chg %";var Ij=function(a){this.Fo="d";this.ta=a;this.Of=p};Ij.prototype.Ms=function(){for(var a=this.ta.wa(),b=[],c=0;c<a.length;c++)b.push(a[c].id);return b.join(",")};Ij.prototype.Wx=function(a){var b=this.Ms();if(b)for(var c=0;;++c){var d=E("sparkline"+c);if(d)d.style.background="no-repeat url(/finance/chart?cht=s&cid="+b+"&p="+a+") 0 "+-15*c+"px";else break}};
Ij.prototype.ml=function(a,b){if(!(!a||this.Fo==a&&!b)){for(var c=["d","M","Y"],d=0;d<c.length;++d){var e=c[d];if(E("sparkline-"+e.toLowerCase()))E("sparkline-"+e.toLowerCase()).className=a==e?"ac":"nac"}this.Fo=a;this.Wx("1"+a)}};Ij.prototype.init=function(){this.Of=p;for(var a=["Y","M","d"],b=0;b<a.length;++b){var c=a[b],d=E("sparkline-"+c.toLowerCase());if(d){C(d,"click",u(this.ml,this,c));this.Of=k}}this.ml("d",k)};Ij.prototype.render=function(){this.Of?this.ml(this.Fo,k):this.init()};var Jj,Kj,Lj=function(){Jj=p;Kj="0";if("ScriptEngine"in t)if(Jj=t.ScriptEngine()=="JScript")Kj=t.ScriptEngineMajorVersion()+"."+t.ScriptEngineMinorVersion()+"."+t.ScriptEngineBuildVersion()};Lj();var Mj=function(a){this.kc=Jj?[]:"";a!=l&&this.append.apply(this,arguments)};Mj.prototype.set=function(a){this.clear();this.append(a)};if(Jj){Mj.prototype.Pi=0;Mj.prototype.append=function(a,b){if(b==l)this.kc[this.Pi++]=a;else{this.kc.push.apply(this.kc,arguments);this.Pi=this.kc.length}return this}}else Mj.prototype.append=function(a,b){this.kc+=a;if(b!=l)for(var c=1;c<arguments.length;c++)this.kc+=arguments[c];return this};
Mj.prototype.clear=function(){if(Jj)this.Pi=this.kc.length=0;else this.kc=""};Mj.prototype.toString=function(){if(Jj){var a=this.kc.join("");this.clear();a&&this.append(a);return a}else return this.kc};var Nj=Mj;var L=function(a){return Ga(String(a))};var Pj=function(a,b){var c=b||new Nj;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 g=d[f];c.append("<th colspan=",L(g.columnKeys.length),' class="ctr',!(f==0)?" lb":"",'">',g.value)}c.append("<tr>");for(var i=a.columnKeys.columnKeys,j=i.length,m=0;m<j;m++)for(var n=i[m],o=n.columnKeys,q=o.length,s=0;s<q;s++){var r=o[s];c.append('<th class= "cth-sec',!(m==0)&&s==0?" lb":""," ",r.value=="1"?" lft ":"",r.nosort?" nosort":"",'">',
a.columnKeys.value=="s"&&a.rawHeader[String(r.value)].length>0?"<div class=ctr><input type=checkbox "+(r.selected?"checked":"")+" value="+L(r.value)+" /></div>":"",r.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[String(r.value)])}for(var x=a.rawContents,H=x.length,J=0;J<H;J++){var Q=x[J];Oj({columnKeys:a.columnKeys,rawContent:Q,index:J},c)}c.append("</table>");if(!b)return c.toString()},Qj=
function(a,b){var c=b||new Nj;c.append(a.nameColumnKey=="0"?"<td class=ctsymbol>":a.nameColumnKey=="1"?"<td class=ctname>":"",a.rawContent.selected?L(Ma(a.rawContent[a.nameColumnKey],25)):'<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)+'" title="'+L(a.rawContent["1"])+'" '+(a.nameColumnKey=="0"?"id=rc-0":"id=rct-0")+">"+L(Ma(a.rawContent[a.nameColumnKey],25))+"</a>");if(!b)return c.toString()},
Oj=function(a,b){var c=b||new Nj;c.append("<tbody><tr",a.rawContent.selected?" class=hilite":"",">");for(var d=a.columnKeys.columnKeys,e=d.length,f=0;f<e;f++)for(var g=d[f],i=g.columnKeys,j=i.length,m=0;m<j;m++){var n=i[m];n.value=="0"||n.value=="1"?Qj({nameColumnKey:n.value,rawContent:a.rawContent},c):c.append("<td class=rgt>",n.value=="4"?"<span id=ref_"+L(a.rawContent["33"])+"_l>"+L(a.rawContent[n.value])+"</span>":n.value=="30"?"<span id=ref_"+L(a.rawContent["33"])+"_c class="+L(a.rawContent["34"])+
">"+L(a.rawContent[n.value])+"</span>":n.value=="31"?"<span id=ref_"+L(a.rawContent["33"])+"_cp class="+L(a.rawContent["34"])+">"+L(a.rawContent[n.value])+(a.rawContent[n.value]!="-"?"%":"")+"</span>":n.value=="32"?'<span class=sparkline><img src="'+L(_cleardot)+'" height=15 width=50 id=sparkline'+L(a.index)+" />":L(a.rawContent[n.value]))}c.append("</tbody>");if(!b)return c.toString()};var Rj=function(a,b,c,d){D.call(this);this.dj=a;this.Ea=b;this.Ho=c||l;this.Go=d||l};w(Rj,D);Rj.prototype.Xg=function(){return this.dj};Rj.prototype.Hj=function(a){return this.dj.ln(a)};Rj.prototype.wa=function(){return this.Ea};Rj.prototype.un=function(){return this.Ho};Rj.prototype.tn=function(){return this.Go};Rj.prototype.Qj=function(a){if(a<0||a>=this.Ea.length)h(Error("rowIndex "+a+" is out of bounds."));return this.Ea[a]};
Rj.prototype.insertRow=function(a,b){if(a<0||a>this.Ea.length)h(Error("rowIndex "+a+" is out of bounds."));if(!na(b))h(Error("content must be an Object."));gf(this.Ea,b,a);this.dispatchEvent({type:"contentrowinsert",rowIndex:a})};Rj.prototype.deleteRow=function(a){if(a<0||a>=this.Ea.length)h(Error("rowIndex "+a+"is out of bounds."));hf(this.Ea,a);this.dispatchEvent({type:"contentrowdelete",rowIndex:a})};
Rj.prototype.Fc=function(a,b,c,d){this.Ea=a||this.Ea;this.dj=b||this.dj;this.Ho=c||this.Ho;this.Go=d||this.Go;this.dispatchEvent({type:"datarefresh"})};var Sj=function(a,b){this.value="";this.columnKeys=l;this.fc=0;if(ha(a))this.columnKeys=af(a,function(c){return new Sj(c)});else{this.value=a;this.columnKeys=b||l}};Sj.prototype.ua=function(a){this.value=a};
Sj.prototype.ln=function(a){if(this.columnKeys&&a>=0){var b="";if(bf(this.columnKeys,function(c){if(c.Ra()<=a){a-=c.Ra();return p}else{b=c.ln(a);return k}}))return b}else if(a==0)return this.value;h(Error("Index "+a+" is out of bounds."))};Sj.prototype.Ra=function(){if(this.fc==0)if(this.columnKeys)Ze(this.columnKeys,function(a){this.fc+=a.Ra()},this);else this.fc=1;return this.fc};var Tj=function(a,b,c,d,e){D.call(this);this.P=a;this.Jp=b;this.To=c;this.Bg=e;this.K=l;this.j=new cj(this);this.j.listen(this.P,"contentrowinsert",this.nh,k);this.j.listen(this.P,"contentrowdelete",this.Ed,p);this.j.listen(this.P,"contentrowmove",this.oh,k);this.j.listen(this.P,"datarefresh",this.lh);d||this.Pd()};w(Tj,D);Tj.prototype.i=function(){Tj.o.i.call(this);this.j.dispose();Mh(this.K);this.P=this.K=l};
Tj.prototype.lh=function(){this.dispatchEvent({type:"unrender"});var a=this.K;this.Pd();if(a.parentNode){Kh(this.K,a);Mh(a)}this.dispatchEvent({type:"render"})};Tj.prototype.k=function(){return this.K};Tj.prototype.render=function(a){this.Pd();a.appendChild(this.K);this.dispatchEvent({type:"render"})};Tj.prototype.decorate=function(a){this.K=a;this.dispatchEvent({type:"render"})};Tj.prototype.Je=function(){return this.K!=l};
Tj.prototype.Pd=function(){var a=Eh("div");a.innerHTML=this.Jp({columnKeys:this.P.Xg(),rawContents:this.P.wa(),rawHeader:this.P.un(),rawFooter:this.P.tn(),clientData:this.Bg});this.K=a.firstChild;Mh(a.firstChild)};Tj.prototype.Xh=function(a){var b=Eh("div");b.innerHTML="<table><tbody>"+this.To({columnKeys:this.P.Xg(),rawContent:this.P.Qj(a),clientData:this.Bg})+"</tbody></table>";var c=b.firstChild.tBodies[0].rows[0];Mh(c);return c};
Tj.prototype.nh=function(a){var b=a.rowIndex,c=this.K.tBodies[0];if(!la(b)||b<0||b>c.rows.length)h(Error("rowIndex "+b+" is out of bounds."));var d=this.Xh(b);c.rows.length==b?c.appendChild(d):Kh(d,c.rows[b])};Tj.prototype.Ed=function(a){if(!la(a.rowIndex)||a.rowIndex<0||a.rowIndex>=this.K.tBodies[0].rows.length)h(Error("rowIndex"+a.rowIndex+" is out of bounds."));Mh(this.K.tBodies[0].rows[a.rowIndex])};
Tj.prototype.oh=function(a){if(!la(a.fromRowIndex)||!la(a.toRowIndex))h(Error("Event does not contain from and/or to row indices."));var b=this.K.tBodies[0];if(a.toRowIndex<0||a.toRowIndex>=b.rows.length)h(Error("toRowIndex "+a.toRowIndex+" is out of bounds."));var c=b.rows[a.fromRowIndex];Mh(c);a.toRowIndex==b.rows.length?b.appendChild(c):Kh(c,b.rows[a.toRowIndex])};Tj.prototype.gb=function(a){if(a<0||a>=this.K.tBodies[0].rows.length)h(Error("rowIndex "+a+" is out of bounds."));return this.K.tBodies[0].rows[a]};
Tj.prototype.fh=function(a){return Ye(this.K.tBodies[0].rows,a)};Tj.prototype.Rj=function(a){for(;!a.tagName||a.tagName.toLowerCase()!="tr";){if(!a.parentNode)h(Error("element is not part of a row."));a=a.parentNode}return this.fh(a)};var Uj=function(a,b,c,d){D.call(this);this.P=a;this.Jp=b;this.To=c;this.Bg=d;this.K=l;this.j=new cj(this)};w(Uj,D);Uj.prototype.decorate=function(a){this.ee();this.K=a;this.dispatchEvent({type:"render"})};Uj.prototype.render=function(a){if(!this.K){this.ee();this.Pd();a&&a.appendChild(this.K);this.dispatchEvent({type:"render"})}};Uj.prototype.k=function(){return this.K};
Uj.prototype.gb=function(a){if(!la(a))h(Error("rowIndex: "+a+" is not a number."));if(a<0||a>=this.dh())h(Error("rowIndex "+a+" is out of bounds."));return this.K.tBodies[a]};Uj.prototype.fh=function(a){var b=Ye(this.K.tBodies,a);return b<this.dh()?b:-1};Uj.prototype.Rj=function(a){for(;a.tagName.toLowerCase()!="tbody";){if(!a.parentNode)h(Error("element is not part of a row."));a=a.parentNode}return this.fh(a)};Uj.prototype.Je=function(){return this.K!=l};
Uj.prototype.i=function(){Uj.o.i.call(this);this.j.dispose();Mh(this.K);this.P=this.K=l};Uj.prototype.ee=function(){this.j.listen(this.P,"contentrowinsert",this.nh,k);this.j.listen(this.P,"contentrowdelete",this.Ed,p);this.j.listen(this.P,"contentrowmove",this.oh,k);this.j.listen(this.P,"datarefresh",this.lh)};Uj.prototype.Pd=function(){this.K=Ih(this.Jp({columnKeys:this.P.Xg(),rawContents:this.P.wa(),rawHeader:this.P.un(),rawFooter:this.P.tn(),clientData:this.Bg}))};
Uj.prototype.Xh=function(a){var b=Ih("<table>"+this.To({columnKeys:this.P.Xg(),rawContent:this.P.Qj(a),clientData:this.Bg})+"</table>");return Mh(b.tBodies[0])};Uj.prototype.dh=function(){return this.K.tBodies.length};Uj.prototype.lh=function(){this.dispatchEvent({type:"unrender"});var a=this.K;this.Pd();if(a.parentNode){Kh(this.K,a);Mh(a)}this.dispatchEvent({type:"render"})};Uj.prototype.Ed=function(a){Mh(this.gb(a.rowIndex))};Uj.prototype.Un=function(a,b){b==this.dh()?F(this.K,a):Kh(a,this.K.tBodies[b])};
Uj.prototype.nh=function(a){this.Un(this.Xh(a.rowIndex),a.rowIndex)};Uj.prototype.oh=function(a){if(!la(a.toRowIndex))h(Error("toRowIndex: "+a.toRowIndex+" is not a number."));if(a.toRowIndex<0||a.toRowIndex>=this.dh())h(Error("toRowIndex: "+a.toRowIndex+" is out of bounds."));var b=Mh(this.gb(a.fromRowIndex));this.Un(b,a.toRowIndex)};var Vj=function(a,b){Gf.call(this);this.ta=a;this.A=b;this.yb=k;this.j=l;this.Oo=new cj(this);this.Oo.listen(this.A,"unrender",this.qh);this.Oo.listen(this.A,"render",this.init)};w(Vj,Gf);Vj.prototype.i=function(){this.j.dispose();this.Oo.dispose();this.A=this.ta=l;Vj.o.i.call(this)};Vj.prototype.init=function(){};Vj.prototype.qh=function(){this.j&&this.j.$f()};Vj.prototype.W=function(){return this.yb};Vj.prototype.V=function(a){this.yb=a};Vj.prototype.Y=function(){return this.ta};
Vj.prototype.Ja=function(){return this.A};Vj.prototype.k=function(){return this.A.k()};Vj.prototype.F=function(){return this.j||(this.j=new cj(this))};var Wj=function(a,b,c,d,e){Vj.call(this,a,b);this.Yl=c;this.$v=d;this.Zl=p;this.hs=e;this.init()};w(Wj,Vj);Wj.prototype.xn=function(){return this.rn(k)};Wj.prototype.Fu=function(){return this.rn(p)};Wj.prototype.rn=function(a){for(var b=[],c=0,d=this.Y().wa(),e=0;e<d.length;++e)if(d[e].checked&&a||!d[e].checked&&!a)b[c++]=d[e];return b};Wj.prototype.i=function(){Wj.o.i.call(this)};
Wj.prototype.init=function(){var a=Vh(this.Ja().k().tHead.rows[0].cells[this.Yl],this.Mm);if(a){a.checked=this.Zl;this.F().listen(a,"click",this.Nu)}for(var b=this.Y().wa(),c=0;c<b.length;++c){var d=this.Om(c);if(d){d.value=b[c][this.$v];d.checked=b[c].checked;this.F().listen(d,"click",this.kh)}}};Wj.prototype.Mm=function(a){return lh(a,"gf-table-chkall")};Wj.prototype.is=function(a){return lh(a,"gf-table-chk")};
Wj.prototype.Om=function(a){var b=this.hs?this.hs(a):a;if(b<0)return l;var c=this.Ja().gb(b);if(!c)return l;return Vh(c.cells[this.Yl],this.is)};Wj.prototype.Nu=function(a){for(var b=a.currentTarget.checked,c=this.Y().wa(),d=0;d<c.length;++d){var e=this.Om(d);if(e){e.checked=b;c[d].checked=b}}this.Zl=b};
Wj.prototype.kh=function(a){for(var b=this.Y().wa(),c=a.currentTarget.value,d=0;d<b.length;++d)if(b[d][this.$v]==c)b[d].checked=a.currentTarget.checked;this.Zl=Vh(this.Ja().k().tHead.rows[0].cells[this.Yl],this.Mm).checked=p};var Xj=function(a,b,c){Vj.call(this,a,b);this.Uw=c;this.Ja().Je()&&this.init()};w(Xj,Vj);Xj.prototype.init=function(){this.F().listen(this.Y(),"contentrowinsert",this.Sb);this.F().listen(this.Y(),"contentrowdelete",this.Sb,k);for(var a=0;a<this.Y().wa().length;++a)this.Qe(k,this.Ja().gb(a))};Xj.prototype.i=function(){Xj.o.i.call(this)};Xj.prototype.Sb=function(a){this.Qe(a.type=="contentrowinsert",this.Ja().gb(a.rowIndex))};Xj.prototype.Nm=function(a){return Vh(a,function(b){return lh(b,"gf-table-delete")})};
Xj.prototype.Qe=function(a,b){var c=this.Nm(b);if(c){G(c,p);var d=a?u(this.F().listen,this.F()):u(this.F().unlisten,this.F());d(c,"click",this.Ed);d(b,["mouseover","mouseout"],this.gv)}};Xj.prototype.gv=function(a){this.W()&&G(this.Nm(a.currentTarget),a.type==="mouseover")};Xj.prototype.Ed=function(a){var b=this.Ja().Rj(a.currentTarget);this.Uw&&this.Uw(this.Y(),b);this.Y().deleteRow(b)};var Yj=function(a,b,c,d){Vj.call(this,a,b);this.fx=c;this.zi=d||0;this.Ja().Je()&&this.init()};w(Yj,Vj);Yj.prototype.init=function(){this.F().listen(this.Y(),"contentrowinsert",this.Sb);this.F().listen(this.Y(),"contentrowdelete",this.Sb,k);for(var a=0;a<this.Y().wa().length;++a)this.Qe(k,this.Ja().gb(a))};Yj.prototype.i=function(){Yj.o.i.call(this)};Yj.prototype.Sb=function(a){this.Qe(a.type=="contentrowinsert",this.Ja().gb(a.rowIndex))};
Yj.prototype.Qe=function(a,b){var c=this.Pm(b);if(c){for(var d=a?u(this.F().listen,this.F()):u(this.F().unlisten,this.F()),e=c.firstChild.childNodes,f=0;f<e.length;f++)f==this.zi?G(e[f],k):G(e[f],p);d(c,"click",this.$y)}};Yj.prototype.Pm=function(a){return Vh(a,function(b){return lh(b,"gf-table-toggle")})};Yj.prototype.Du=function(a){var b=a.firstChild.childNodes;if(this.zi>=b.length)this.zi=0;return b[this.zi]};
Yj.prototype.$y=function(){for(var a=0;a<this.Y().wa().length;++a){var b=this.Pm(this.Ja().gb(a)),c=this.Du(b);if(c){var d=c.nextSibling||b.firstChild.firstChild;G(c,p);G(d,k)}}this.zi++;this.fx&&this.fx()};var Zj=function(a,b){Vj.call(this,a,b);this.sh=this.De=l;this.Ja().Je()&&this.init()};w(Zj,Vj);Zj.prototype.i=function(){Zj.o.i.call(this)};Zj.prototype.qh=function(){Zj.o.qh.call(this);this.sh=this.De=l};Zj.prototype.init=function(){this.F().listen(this.Y(),"contentrowinsert",this.Sb);this.F().listen(this.Y(),"contentrowdelete",this.Sb,k);this.F().listen(this.k(),"mouseout",this.bk);for(var a=0;a<this.Y().wa().length;++a)this.ee(this.Ja().gb(a))};
Zj.prototype.ee=function(a){this.F().listen(a,"click",this.Jn);this.F().listen(a,"mouseover",this.Hn)};Zj.prototype.Ax=function(a){this.F().unlisten(a,"click",this.Jn);this.F().unlisten(a,"mouseover",this.Hn)};Zj.prototype.Sb=function(a){var b=this.Ja().gb(a.rowIndex);a.type=="contentrowinsert"?this.ee(b):this.Ax(b)};Zj.prototype.Jn=function(a){this.bk();this.De&&jh(this.De,"gf-table-hilite");if(this.De!=a.currentTarget){this.De=a.currentTarget;hh(a.currentTarget,"gf-table-hilite")}else this.De=l};
Zj.prototype.bk=function(){if(this.sh){jh(this.sh,"gf-table-hover-hilite");this.sh=l}};Zj.prototype.Hn=function(a){this.bk();if(a.currentTarget!=this.De){this.sh=a.currentTarget;hh(a.currentTarget,"gf-table-hover-hilite")}};function $j(a,b){var c=b||google.finance.data.numberFormat;if(!c)h(Error("No default formatter is found."));if(typeof a=="string"){var d=a.length>0&&a.charAt(0)=="-"?-1:1,e="";a=a.toLowerCase();for(var f=a.length-1;f>=0;f--)if(a.charAt(f)>="0"&&a.charAt(f)<="9"||a.charAt(f)==".")e=a.charAt(f)+e;for(f=c.length-1;f>=0;f--){var g=a.lastIndexOf(c[f].symbol.toLowerCase());if(g!=-1&&g==a.length-c[f].symbol.length)return parseFloat(e)*c[f].threshold*d}return parseFloat(e)*d}return parseFloat(a)};var ak=function(){this.$q={}};ak.prototype.register=function(a,b){this.$q[a]=b};ak.prototype.Ij=function(a){return this.$q[a]||l};
var ck=function(a,b){var c=bk(a,b);if(c||c==0)return c;return $j(a)-$j(b)},dk=function(a,b){var c=bk(a,b);if(c||c==0)return c;a=a.toLowerCase();b=b.toLowerCase();return a<b?-1:a==b?0:1},ek=function(a,b){var c=!(a!=l&&a!=="")?NaN:Number(a.replace(/,/g,"")),d=!(b!=l&&b!=="")?NaN:Number(b.replace(/,/g,""));if(c||d||c==0||d==0){var e=c-d;return e||e==0?e:c||c==0?-1:1}return dk(a,b)},bk=function(a,b){var c=a!=l&&a!==""?1:0,d=b!=l&&b!==""?1:0;return c&&d?NaN:d-c};var fk=function(a,b,c){Vj.call(this,a,b);this.ej=c;this.jg=-1;this.Ja().Je()&&this.init()};w(fk,Vj);fk.prototype.init=function(){for(var a=this.k().tHead.rows,b=a[a.length-1].cells,c=0;c<b.length;++c)if(this.ej.Ij(this.Y().Hj(c))&&this.Ui(b[c])){this.W()&&hh(b[c],"sortable");this.F().listen(b[c],"click",this.Tw(c))}this.F().listen(this.Y(),["contentrowinsert","contentrowdelete"],this.zx)};fk.prototype.i=function(){this.ej=l;fk.o.i.call(this)};fk.prototype.Ui=function(a){return!lh(a,"nosort")};
fk.prototype.zx=function(){if(this.jg!=-1){var a=this.k().tHead.rows,b=a[a.length-1].cells;jh(b[this.jg],"sorted","reverse-sorted");this.jg=-1}};fk.prototype.ey=function(a){var b=this.k().tHead.rows,c=b[b.length-1].cells,d=c[this.jg];if(this.Ui(d))a?hh(d,"reverse-sorted"):hh(d,"sorted")};fk.prototype.Tw=function(a){return function(b){if(this.yb){var c=p;if(this.jg==a){if(lh(b.currentTarget,"sorted"))c=k;this.Jx()}else this.Dy(a);this.Y().Fc();this.ey(c)}}};
fk.prototype.Dy=function(a){var b=this.Y().Hj(a),c=this.ej.Ij(b);if(c){var d=this.Y().wa();pf(d,function(e,f){return c(e[b],f[b],e,f)});this.jg=a}};fk.prototype.Jx=function(){for(var a=this.Y().wa(),b=this.Y().wa().length-1,c=0;c<b;++c){var d=a[b];hf(a,b);gf(a,d,c)}};fk.prototype.V=function(a){if(this.W()!=a){fk.o.V.call(this,a);for(var b=this.k().tHead.rows,c=b[b.length-1].cells,d=0;d<c.length;++d)this.ej.Ij(this.Y().Hj(d))&&this.Ui(c[d])&&nh(c[d],"sortable")}};var gk=function(a){return eval("("+a+")")};/\uffff/.test("\uffff");var ik=function(){return hk()},hk=l,jk=l,kk=l,lk=function(a,b){hk=a;jk=b;kk=l},nk=function(){var a=mk();return a?new ActiveXObject(a):new XMLHttpRequest},ok=function(){var a=mk(),b={};if(a){b[0]=k;b[1]=k}return b};lk(nk,ok);var pk=l,mk=function(){if(!pk&&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 pk=c}catch(d){}}h(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return pk};var M=function(){D.call(this);this.headers=new Xg};w(M,D);var qk=[],Aj=function(a,b,c,d,e,f){var g=new M;qk.push(g);b&&C(g,"complete",b);C(g,"ready",sa(rk,g));f&&g.sy(f);g.send(a,c,d,e)},sk=function(){for(var a=qk;a.length;)a.pop().dispose()},tk=function(a,b){M.prototype.Uf=a.protectEntryPoint(M.prototype.Uf,b)},rk=function(a){a.dispose();jf(qk,a)};M.prototype.Ya=p;M.prototype.$=l;M.prototype.Fi=l;M.prototype.Dw="";M.prototype.Cw="";M.prototype.Pf=0;M.prototype.ra="";M.prototype.vj=p;
M.prototype.vh=p;M.prototype.ok=p;M.prototype.Fd=p;M.prototype.wi=0;M.prototype.Yd=l;M.prototype.sy=function(a){this.wi=Math.max(0,a)};
M.prototype.send=function(a,b,c,d){if(this.Ya)h(Error("[goog.net.XhrIo] Object is active with another request"));var e=b||"GET";this.Dw=a;this.ra="";this.Pf=0;this.Cw=e;this.vj=p;this.Ya=k;this.$=new ik;this.Fi=kk||(kk=jk());this.$.onreadystatechange=u(this.zo,this);try{this.ok=k;this.$.open(e,a,k);this.ok=p}catch(f){this.Fm(5,f);return}var g=c||"",i=this.headers.clone();d&&Ug(d,function(m,n){i.set(n,m)});e=="POST"&&!i.eb("Content-Type")&&i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");
Ug(i,function(m,n){this.$.setRequestHeader(n,m)},this);try{if(this.Yd){bi.clearTimeout(this.Yd);this.Yd=l}if(this.wi>0)this.Yd=bi.setTimeout(u(this.Zd,this),this.wi);this.vh=k;this.$.send(g);this.vh=p}catch(j){this.Fm(5,j)}};M.prototype.dispatchEvent=function(a){this.$?M.o.dispatchEvent.call(this,a):M.o.dispatchEvent.call(this,a)};M.prototype.Zd=function(){if(!(typeof aa=="undefined"))if(this.$){this.ra="Timed out after "+this.wi+"ms, aborting";this.Pf=8;this.dispatchEvent("timeout");this.abort(8)}};
M.prototype.Fm=function(a,b){this.Ya=p;if(this.$){this.Fd=k;this.$.abort();this.Fd=p}this.ra=b;this.Pf=a;this.xm();this.Ag()};M.prototype.xm=function(){if(!this.vj){this.vj=k;this.dispatchEvent("complete");this.dispatchEvent("error")}};M.prototype.abort=function(a){if(this.$){this.Ya=p;this.Fd=k;this.$.abort();this.Fd=p;this.Pf=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");this.Ag()}};M.prototype.i=function(){if(this.$){if(this.Ya){this.Ya=p;this.Fd=k;this.$.abort();this.Fd=p}this.Ag(k)}M.o.i.call(this)};
M.prototype.zo=function(){!this.ok&&!this.vh&&!this.Fd?this.Uf():this.yo()};M.prototype.Uf=function(){this.yo()};M.prototype.yo=function(){if(this.Ya)if(!(typeof aa=="undefined"))if(!(this.Fi[1]&&this.Ad()==4&&this.hh()==2))if(this.vh&&this.Ad()==4)bi.setTimeout(u(this.zo,this),0);else{this.dispatchEvent("readystatechange");if(this.He()){this.Ya=p;if(this.Ah()){this.dispatchEvent("complete");this.dispatchEvent("success")}else{this.Pf=6;this.ra=this.xu()+" ["+this.hh()+"]";this.xm()}this.Ag()}}};
M.prototype.Ag=function(a){if(this.$){this.$.onreadystatechange=this.Fi[0]?ea:l;this.Fi=this.$=l;if(this.Yd){bi.clearTimeout(this.Yd);this.Yd=l}a||this.dispatchEvent("ready")}};M.prototype.aa=function(){return this.Ya};M.prototype.He=function(){return this.Ad()==4};M.prototype.Ah=function(){switch(this.hh()){case 0:case 200:case 204:case 304:return k;default:return p}};M.prototype.Ad=function(){return this.$?this.$.readyState:0};M.prototype.hh=function(){try{return this.Ad()>2?this.$.status:-1}catch(a){return-1}};
M.prototype.xu=function(){try{return this.Ad()>2?this.$.statusText:""}catch(a){return""}};M.prototype.tc=function(){return this.$?this.$.responseText:""};M.prototype.getResponseHeader=function(a){return this.$&&this.He()?this.$.getResponseHeader(a):undefined};M.prototype.Ef=function(){return ka(this.ra)?this.ra:String(this.ra)};var xk=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)h(Error("Given data must not be null or contain no rows."));uk||vk();this.Va=b;this.Ea=this.cm(a);this.Zq=""+this.Ea[0].id;for(var c=1;c<this.Ea.length;c++)this.Zq+=","+this.Ea[c].id;this.$h=[];this.Ie=p;this.ta=new Rj(this.Dg(a.visible_cols,p),this.Ea,I);this.A=new Uj(this.ta,Pj,Oj);this.Fp=new fk(this.ta,this.A,wk());new Zj(this.ta,this.A);this.Ey=new Ij(this.ta);C(this.A,
"render",u(Ij.prototype.init,this.Ey));this.A.render();this.hc=new M;C(this.hc,"error",function(){this.dispatchEvent({type:"datafetcherror"})},p,this);C(this.hc,"success",function(d){var e;try{e=eval("("+d.target.tc()+")")}catch(f){return}if(e&&e.company&&e.company.related){e=e.company.related;this.ta.Fc(this.Ea=this.cm(e),this.Dg(e.visible_cols,this.Ie))}this.dispatchEvent({type:"dataready"});this.Ie&&this.dispatchEvent({type:"editingready"})},p,this)};w(xk,D);
var yk=l,wk=function(){if(!yk){var a=new ak;for(var b in Hj){var c=Hj[b];uk[c]==0?a.register(Hj[b],dk):a.register(Hj[b],ck)}yk=a}return yk},uk=l,vk=function(){var a=uk={},b=Hj,c=zk;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.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.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.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};xk.prototype.Fc=function(a){this.hc.abort();var b=this.Us(a);this.hc.send(b);this.Va.set("dp",a)};xk.prototype.Us=function(a){var b="/finance/data?cid="+this.Zq+"&dp="+a+google.finance.data.stickyUrlArgs+"&output=json&catid=";return b+(this.Ie?"all":this.$h.join("-"))};xk.prototype.k=function(){return this.A.k()};
xk.prototype.Dg=function(a,b){var c,d=[];for(c=0;c<Ak.length;++c){d[c]={};d[c].value=Ak[c];d[c].headers=[]}for(c=0;c<a.length;++c)a[c]!="2"&&a[c]!="3"&&a[c]!="34"&&a[c]!="33"&&d[uk[a[c]]].headers.push(a[c]);for(c=Ak.length-1;c>=0;--c)d[c].headers.length==0&&hf(d,c);var e=[];for(c=0;c<d.length;++c){var f=e[c]=new Sj(d[c].headers);f.ua(d[c].value);for(var g=0;g<f.columnKeys.length;++g){var i=f.columnKeys[g];i.value=="32"&&yf(i,"nosort",k);yf(i,"selected",df(this.$h,i.value))}}var j=new Sj(b?"s":"",
e);if(!b)this.$h=a;return j};xk.prototype.cm=function(a){for(var b=a.cols,c=a.rows,d=[],e=0;e<c.length;++e){var f={};f.selected=e==0;f.id=c[e].id;for(var g=c[e].values,i=0;i<g.length;++i)f[String(b[i])]=g[i];d.push(f)}return d};xk.prototype.Gy=function(a){if(!this.Ie){this.Fp.V(p);this.Ie=k;this.Fc(a)}};xk.prototype.Mx=function(a){this.Ie=p;this.$h=a;this.ta.Fc(this.Ea,this.Dg(a,p));this.Fp.V(k);this.Va.set("cols",a.join("-"))};
xk.prototype.Gq=function(){this.Ie=p;this.ta.Fc(this.Ea,this.Dg(this.$h,p));this.Fp.V(k)};var zk={NAME:0,VALUATION:1,DIVIDEND:2,FINANCIAL_RATIOS:3,OPERATING_METRICS:4,STOCK_METRICS:5,MARGINS:6,PROFILE:7,INCOME_STATEMENT:8},Ak=["","Valuation","Dividend","Financial ratios","Operating metrics","Stock metrics","Margins","Profile","Income statement"];var Ck=function(a,b){var c=b||new Nj;c.append("<table id=rq class=quotes width=100%><thead><tr class=colHeader><td class=symbol>","Name","<td class=price>","Price","<td class=change>","Change","<td class=mktCap>","MktCap","<td class=delBtn><tbody>");for(var d=a.rawContents,e=d.length,f=0;f<e;f++){var g=d[f];Bk({columnKeys:a.columnKeys,rawContent:g},c)}c.append("</table>");if(!b)return c.toString()},Bk=function(a,b){var c=b||new Nj;c.append('<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)," ",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>",a.rawContent.c?"<span class="+L(a.rawContent.cs)+" id=ref_"+L(a.rawContent.cid)+"_c>"+L(a.rawContent.c)+
"</span> "+(a.rawContent.cp?"<span class="+L(a.rawContent.cs)+" id=ref_"+L(a.rawContent.cid)+"_cp>("+L(a.rawContent.cp)+"%)</span>":""):"&ndash;","<td class=mktCap>",a.rawContent.cap?L(a.rawContent.cap):"&ndash;",'<td class=delBtn><img style="display:none" class="button gf-table-delete" alt="');if(a.rawContent.lname){var d="Remove "+L(a.rawContent.lname);c.append(d)}else{var e="Remove "+L(a.rawContent.name);c.append(e)}c.append('" title="');if(a.rawContent.lname){var f="Remove "+L(a.rawContent.lname);
c.append(f)}else{var g="Remove "+L(a.rawContent.name);c.append(g)}c.append('" src="/finance/images/close.gif"/>');if(!b)return c.toString()},Ek=function(a,b){var c=b||new Nj;c.append('<table id=rq class="d-quotes" width=100%>');for(var d=a.rawContents,e=d.length,f=0;f<e;f++){var g=d[f];Dk({columnKeys:a.columnKeys,rawContent:g},c)}c.append("</table>");if(!b)return c.toString()},Dk=function(a,b){var c=b||new Nj;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)," ",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{var e="Remove "+(L(a.rawContent.name)+" from list");c.append(e)}c.append('" title="');if(a.rawContent.lname){var f=
"Remove "+(L(a.rawContent.lname)+" from list");c.append(f)}else{var g="Remove "+(L(a.rawContent.name)+" from list");c.append(g)}c.append('" src="data:image/gif;base64,R0"/></b>');if(!b)return c.toString()};var Fk=function(a){D.call(this);this.ta=a;this.j=new cj(this)};w(Fk,D);Fk.prototype.decorate=function(a){this.j.listen(a,"click",this.Rb)};Fk.prototype.i=function(){Fk.o.i.call(this);this.j.dispose()};Fk.prototype.Rb=function(){var a=window.prompt("Enter the name of your new portfolio","");if(a!=l){var b=E("new_pform_nav"),c=E("new_pform_name"),d=E("new_pform_cids");if(!b||!c)this.dispatchEvent({type:"error"});else{if(d)d.value=this.ku();c.value=a;b.submit()}}};
Fk.prototype.ku=function(){for(var a=this.ta.wa(),b=[],c=0;c<a.length;c++)b.push(a[c].cid);return b.join(",")};var Gk=function(){var a=Eh("div",{id:"no-rq"});a.innerHTML="You have no recent quotes.";F(E("rq-table"),a);var b=E("rq-create");b&&G(b,p)},Hk=function(a,b){for(var c=[],d=0;d<a.wa().length;++d)d!=b&&c.push(a.Qj(d).cid);var e=da("google.finance.data.common.hash");if(!e&&_prefs)e=_prefs.hash;Ue(Te(),"/finance/prefs?action=set&prefsgroup=global&prefskey=RV&prefsval="+c.join("-")+"&hash="+e,function(){});if(a.wa().length==1){var f=E("rq");f&&G(f,p);Gk()}},Jk=function(){google.finance.data.common.rq.ct=
google.finance.data.common.rq.ct=="CP"?"C":"CP";var a=da("google.finance.data.common.hash");if(!a&&_prefs)a=_prefs.hash;Ue(Te(),"/finance/prefs?action=set&prefsgroup=global&prefskey=NAV&prefsval="+google.finance.data.common.rq.ct+"&hash="+a,function(){});Ik()},Kk=function(){var a=E("rq"),b=E("rq-table");b.style.height=a&&a.offsetHeight?a.offsetHeight+"px":"auto"},Ik=function(){var a=[0,0,0],b=E("rq").childNodes;if(b.length>0){for(var c=0;c<b.length;c++){var d=b[c].firstChild.childNodes,e=ai(d[0].firstChild);
e.length>6&&Th(d[0].firstChild,Na(e,4));for(var f=0;f<a.length;f++)if(a[f]<d[f].firstChild.offsetWidth)a[f]=d[f].firstChild.offsetWidth}for(var g=6,i=4*g+1,j=0;j<a.length;j++)i+=a[j];var m=148-i;if(m>0){a[0]+=m;i=148}var n=i+8+"px";i+="px";for(j=0;j<a.length;j++){if(j>0)a[j]+=g;a[j]+="px"}var o=E("rq-box").parentNode,q=Oh(o.nextSibling,k);o.style.width=i;q.style.marginLeft=n;var s=E("rq").childNodes[0].firstChild.childNodes;for(j=0;j<a.length;j++)s[j].style.width=a[j]}},Lk=p,Mk=function(){if(!(!E("rq-table")||
E("no-rq")||Lk||!google.finance.data.common||!google.finance.data.common.rq)){Lk=k;E("rq-box")&&zi(E("rq-box"),"display","block");var a=google.finance.data.common.rq.q;if(a&&jj()){a=hj.Vh(a,k);google.finance.data.common.rq.q=a}if(a&&a.length>0){if(qj()){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,c=new Rj(new Sj(["s","p","c","cp"]),a),d=new Uj(c,Ek,Dk);E("rq")?d.decorate(E("rq")):d.render(E("rq-table"));new Yj(c,d,Jk,b);
new Xj(c,d,Hk);C(c,"contentrowdelete",Kk,p);C(c,"contentrowdelete",Ik,p);var e=new Fk(c),f=E("rq-create"),g=E("is_logged_in");if(f){g&&g.value==1&&e.decorate(f);zi(f,"display","block")}Kk();Ik()}else{c=new Rj(new Sj(["s","p","c","cap"]),a);d=new Tj(c,Ck,Bk);new Xj(c,d,Hk);E("rq-table").appendChild(d.k())}if(B)for(var i=vh("img","SP_delete",E("rq")),j=0;j<i.length;j++){i[j].src=_cleardot;i[j].className="SP_delete"}}else Gk()}};v("google.finance.renderRecentQuotes",Mk);C(window,"load",Mk);var Nk=function(a,b){var c=b||new Nj;c.append("<table width=100%>");for(var d=(new Nj(L(google.finance.data.stickyUrlArgs),'" ',L(google.finance.data.common.linktargetInternal),' title="')).toString(),e=a.quotes,f=e.length,g=0;g<f;g++){var i=e[g];c.append('<tr><td class="name nwp"><a href="',L(i.url),d,L(i.name),'">',L(Ma(i.name,14)),"</a><td class=price>",i.p?"<span id=ref_"+L(i.cid)+"_l>"+L(i.p)+"</span>":"","<td class=change>",i.cp?"<span id=ref_"+L(i.cid)+"_cp class="+L(i.changeStyle)+">"+L(i.cp)+
"%</span>":"")}c.append("</table>");if(!b)return c.toString()},Ok=function(a,b){var c=b||new Nj;c.append("<table width=100%>");for(var d=(new Nj("<tr><td width=",L(a.leftWidth),"% class=bar-left>")).toString(),e=(new Nj("<td width=",L(a.rightWidth),"% class=bar-right>")).toString(),f=a.quotes,g=f.length,i=0;i<g;i++){var j=f[i];c.append(d,!j.isPositive?"<table width=100% class=barChart><tr><td>&nbsp;<td class="+L(a.downStyle)+"-bar-left width="+L(j.width)+"%>&nbsp;</table>":"&nbsp;",e,j.isPositive?
"<table width=100% class=barChart><tr><td class="+L(a.upStyle)+"-bar-right width="+L(j.width)+"%>&nbsp;<td>&nbsp;</table>":"&nbsp;")}c.append("</table>");if(!b)return c.toString()};var Pk={},Qk=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 g=new Number(a[f].cp.replace("%",""));if(g==Number.NaN)g=0;e.push(g);if(g<d)d=g;else if(g>c)c=g}for(f=0;f<e.length;++f){var i=0;g=e[f];var j="chb";if(g>1.0E-4){i=g/c*100;if(i==0)i=1;j=b.upStyle}else if(g<-1.0E-4){i=g/d*100;if(i==0)i=1;j=b.downStyle}var m={width:i,changeStyle:j,isPositive:j==b.upStyle,name:a[f].name,cid:a[f].cid,url:a[f].u,
cp:a[f].cp,p:a[f].p};b.quotes.push(m)}var n=(c-d)/100;b.leftWidth=d/n;b.rightWidth=c/n;return b},Rk=function(a,b){for(var c=google.finance.data.company.perf,d=0;d<c.length;++d)if(c[d].cid==b&&a.cp)c[d].cp=a.cp},Sk=function(){var a=E("r-perf-quotes");a.innerHTML=Nk(Pk)},Tk=function(){var a=E("r-perf-charts");a.innerHTML=Ok(Pk)},Uk=function(){var a=E("r-perf-quotes"),b=E("r-perf-charts"),c=google.finance.data.company.perf;if(a&&b&&c){Pk=Qk(c);Tk();Sk();t.setTimeout(function(){google.Quote.addQuoteListener(Rk)},
5000);t.setInterval(function(){Pk=Qk(google.finance.data.company.perf);Tk()},5500)}};v("google.finance.renderRelativePerformance",Uk);var Vk,Wk=function(a,b){if(Wf||Vk){a.setAttribute("role",b);a.roleName=b}},Xk=function(a,b,c){if(Wf||Vk)a.setAttribute("aria-"+b,c)};var Yk=function(a,b,c){if(!B&&!(Xf&&gg("525")))return k;if(B&&!c&&(b==17||b==18))return p;if(a>=48&&a<=57)return k;if(a>=96&&a<=106)return k;if(a>=65&&a<=90)return k;if(a==27&&Xf)return p;switch(a){case 13:case 27: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 k;default:return p}},Zk=function(a){if(a>=48&&a<=57)return k;if(a>=96&&a<=106)return k;if(a>=65&&a<=90)return k;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 k;
default:return p}};var $k=function(a){D.call(this);a&&this.attach(a)};w($k,D);$k.prototype.r=l;$k.prototype.Bh=l;$k.prototype.uk=l;$k.prototype.Ch=l;$k.prototype.Qf=-1;$k.prototype.xk=p;$k.prototype.Le=-1;$k.prototype.jo=0;$k.prototype.aw=k;
var al={"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},bl={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},cl={61:187,
59:186},dl=B||Xf&&gg("525");$k.prototype.av=function(a){if(dl&&!Yk(a.keyCode,this.Qf,a.shiftKey))this.handleEvent(a);else this.Le=Wf&&a.keyCode in cl?cl[a.keyCode]:a.keyCode};$k.prototype.bv=function(){this.Le=this.Qf=-1};
$k.prototype.handleEvent=function(a){var b=a.Gj(),c,d;if(B&&a.type=="keypress"){c=this.Le;d=c!=13&&c!=27?b.keyCode:0}else if(Xf&&a.type=="keypress"){c=this.Le;d=b.charCode>=0&&b.charCode<63232&&Zk(c)?b.charCode:0}else if(Vf){c=this.Le;d=Zk(c)?b.keyCode:0}else{c=b.keyCode||this.Le;d=b.charCode||0;if(bg&&d==63&&!c)c=191}var e=c,f=b.keyIdentifier;if(c)if(c>=63232&&c in al)e=al[c];else{if(c==25&&a.shiftKey)e=9}else if(f&&f in bl)e=bl[f];var g=e==this.Qf;this.Qf=e;if(Xf&&this.aw){if(g&&b.timeStamp-this.jo<
50){this.xk&&a.preventDefault();return}this.jo=b.timeStamp}var i=new el(e,d,g,b);this.xk=p;try{this.xk=!this.dispatchEvent(i)}finally{i.dispose()}};$k.prototype.attach=function(a){this.Ch&&this.detach();this.r=a;this.Bh=C(this.r,"keypress",this);this.uk=C(this.r,"keydown",this.av,p,this);this.Ch=C(this.r,"keyup",this.bv,p,this)};$k.prototype.detach=function(){if(this.Bh){Eg(this.Bh);Eg(this.uk);Eg(this.Ch);this.Ch=this.uk=this.Bh=l}this.r=l;this.Qf=-1};
$k.prototype.i=function(){$k.o.i.call(this);this.detach()};var el=function(a,b,c,d){ig.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};w(el,ig);var fl=function(){};fa(fl);fl.prototype.Ow=0;fl.prototype.Wt=function(){return":"+(this.Ow++).toString(36)};fl.getInstance();var N=function(a){D.call(this);this.b=a||qh();this.ag=gl};w(N,D);N.prototype.Zv=fl.getInstance();var gl=l,hl=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:}h(Error("Invalid component state"))};N.prototype.R=l;N.prototype.b=l;N.prototype.Sa=p;N.prototype.r=l;
N.prototype.ag=l;N.prototype.ta=l;N.prototype.bb=l;N.prototype.qa=l;N.prototype.ub=l;N.prototype.Zp=p;N.prototype.da=function(){return this.R||(this.R=this.Zv.Wt())};N.prototype.setId=function(a){if(this.bb&&this.bb.ub){xf(this.bb.ub,this.R);zf(this.bb.ub,a,this)}this.R=a};N.prototype.k=function(){return this.r};N.prototype.Ye=function(a){this.r=a};N.prototype.F=function(){return this.Jf||(this.Jf=new cj(this))};
N.prototype.op=function(a){if(this==a)h(Error("Unable to set parent component"));if(a&&this.bb&&this.R&&this.bb.Xm(this.R)&&this.bb!=a)h(Error("Unable to set parent component"));this.bb=a};N.prototype.Gf=function(){return this.bb};N.prototype.bh=function(){return this.bb};N.prototype.$a=function(){return this.Sa};N.prototype.g=function(){this.r=this.b.createElement("div")};N.prototype.render=function(a){this.Qo(a)};
N.prototype.Qo=function(a,b){if(this.Sa)h(Error("Component already rendered"));this.r||this.g();a?a.insertBefore(this.r,b||l):this.b.Tc().body.appendChild(this.r);if(!this.bb||this.bb.$a())this.Q()};N.prototype.decorate=function(a){if(this.Sa)h(Error("Component already rendered"));else if(a&&this.oa(a)){this.Zp=k;if(!this.b||this.b.Tc()!=ph(a))this.b=qh(a);this.ja(a);this.Q()}else h(Error("Invalid element to decorate"))};N.prototype.oa=function(){return k};N.prototype.ja=function(a){this.r=a};
N.prototype.Q=function(){this.Sa=k;this.wd(function(a){!a.$a()&&a.k()&&a.Q()})};N.prototype.ka=function(){this.wd(function(a){a.$a()&&a.ka()});this.Jf&&this.Jf.$f();this.Sa=p};N.prototype.i=function(){N.o.i.call(this);this.Sa&&this.ka();if(this.Jf){this.Jf.dispose();delete this.Jf}this.wd(function(a){a.dispose()});!this.Zp&&this.r&&Mh(this.r);this.bb=this.ta=this.r=this.ub=this.qa=l};N.prototype.Qt=function(){return this.ta};N.prototype.iy=function(a){this.ta=a};
N.prototype.ff=function(a,b){this.rg(a,this.zf(),b)};
N.prototype.rg=function(a,b,c){if(a.Sa&&(c||!this.Sa))h(Error("Component already rendered"));if(b<0||b>this.zf())h(Error("Child component index out of bounds"));if(!this.ub||!this.qa){this.ub={};this.qa=[]}if(a.Gf()==this){yf(this.ub,a.da(),a);jf(this.qa,a)}else zf(this.ub,a.da(),a);a.op(this);gf(this.qa,a,b);if(a.Sa&&this.Sa&&a.Gf()==this){var d=this.T();d.insertBefore(a.k(),d.childNodes[b+1]||l)}else if(c){this.r||this.g();var e=this.qc(b+1);a.Qo(this.T(),e?e.r:l)}else this.Sa&&!a.Sa&&a.r&&a.Q()};
N.prototype.T=function(){return this.r};N.prototype.Ke=function(){if(this.ag==l)this.ag=Ki(this.Sa?this.r:this.b.Tc().body);return this.ag};N.prototype.Hc=function(a){if(this.Sa)h(Error("Component already rendered"));this.ag=a};N.prototype.Jv=function(){return!!this.qa&&this.qa.length!=0};N.prototype.zf=function(){return this.qa?this.qa.length:0};N.prototype.Xm=function(a){return this.ub&&a?Af(this.ub,a)||l:l};N.prototype.qc=function(a){return this.qa?this.qa[a]||l:l};
N.prototype.wd=function(a,b){this.qa&&Ze(this.qa,a,b)};N.prototype.Fe=function(a){return this.qa&&a?Ye(this.qa,a):-1};N.prototype.removeChild=function(a,b){if(a){var c=ka(a)?a:a.da();a=this.Xm(c);if(c&&a){xf(this.ub,c);jf(this.qa,a);if(b){a.ka();a.r&&Mh(a.r)}a.op(l)}}if(!a)h(Error("Child is not in parent component"));return a};var jl=function(a){for(var b,c;a;){b=qa(a);if(c=il[b])break;a=a.o?a.o.constructor:l}if(c)return ma(c.getInstance)?c.getInstance():new c;return l},kl=function(a,b){if(!ma(a))h(Error("Invalid component class "+a));if(!ma(b))h(Error("Invalid renderer class "+b));var c=qa(a);il[c]=b},ml=function(a,b){if(!a)h(Error("Invalid class name "+a));if(!ma(b))h(Error("Invalid decorator function "+b));ll[a]=b},nl=function(a){for(var b,c=fh(a),d=0,e=c.length;d<e;d++)if(b=c[d]in ll?ll[c[d]]():l)return b;return l},
il={},ll={};var O=function(){},ol;fa(O);O.prototype.va=function(){return undefined};O.prototype.g=function(a){return a.b.g("div",this.Qb(a).join(" "),a.Yg())};O.prototype.T=function(a){return a};O.prototype.sf=function(a,b,c){var d=a.k?a.k():a;if(d)if(B&&!gg("7")){var e=this.Ej(fh(d),b);e.push(b);var f=c?hh:jh;sa(f,d).apply(l,e)}else mh(d,b,c)};O.prototype.zm=function(a,b,c){this.sf(a,b,c)};O.prototype.oa=function(){return k};
O.prototype.decorate=function(a,b){b.id&&a.setId(b.id);var c=this.T(b);c&&c.firstChild?a.ai(c.firstChild.nextSibling?kf(c.childNodes):c.firstChild):a.ai(l);var d=0,e=this.J(),f=this.If(),g=p,i=p,j=p,m=fh(b);Ze(m,function(q){if(!g&&q==e){g=k;if(f==e)i=k}else if(!i&&q==f)i=k;else d|=this.gh(q)},this);a.qp(d);if(!g){m.push(e);if(f==e)i=k}i||m.push(f);var n=a.cn();n&&m.push.apply(m,n);if(B&&!gg("7")){var o=this.Ej(m);if(o.length>0){m.push.apply(m,o);j=k}}if(!g||!i||n||j)eh(b,m.join(" "));return b};
O.prototype.zc=function(a){a.Ke()&&this.Hc(a.k(),k);a.W()&&this.cc(a,a.ma())};O.prototype.ep=function(a){if(Wf){var b=this.va();b&&Wk(a,b)}};O.prototype.Qd=function(a,b){Wi(a,!b,!B&&!Vf)};O.prototype.Hc=function(a,b){this.sf(a,this.If()+"-rtl",b)};O.prototype.Xb=function(a){var b;if(a.Ta(32)&&(b=a.ea()))return Yh(b);return p};O.prototype.cc=function(a,b){var c;if(a.Ta(32)&&(c=a.ea())){if(!b&&a.ao()){try{c.blur()}catch(d){}a.ao()&&a.vc(l)}Yh(c)!=b&&Zh(c,b)}};O.prototype.Fa=function(a,b){G(a,b)};
O.prototype.Na=function(a,b,c){var d=a.k();if(d){var e=this.re(b);e&&this.sf(a,e,c);this.hd(d,b,c)}};O.prototype.hd=function(a,b,c){if(Wf){ol||(ol=Ff(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));var d=ol[b];d&&Xk(a,d,c)}};O.prototype.ac=function(a,b){var c=this.T(a);if(c){Jh(c);if(b)if(ka(b))Th(c,b);else{function d(e){if(e){var f=ph(c);c.appendChild(ka(e)?f.createTextNode(e):e)}}ha(b)?Ze(b,d):d(b)}}};O.prototype.ea=function(a){return a.k()};O.prototype.J=function(){return"goog-control"};
O.prototype.Ct=function(){return[]};O.prototype.If=function(){return this.J()};O.prototype.Qb=function(a){var b=this.J(),c=[b],d=this.If();d!=b&&c.push(d);var e=this.Ns(a.Wj());e&&c.push.apply(c,e);var f=a.cn();f&&c.push.apply(c,f);B&&!gg("7")&&c.push.apply(c,this.Ej(c));return c};O.prototype.Ej=function(a,b){var c=[];if(b)a=a.concat([b]);Ze(this.Ct(),function(d){if(cf(d,sa(df,a))&&(!b||df(d,b)))c.push(d.join("_"))});return c};
O.prototype.Ns=function(a){if(a){for(var b=[],c=1;a;c<<=1)if(a&c){b.push(this.re(c));a&=~c}return b}return l};O.prototype.re=function(a){this.bj||this.gm();return this.bj[a]};O.prototype.gh=function(a){this.My||this.wr();var b=parseInt(this.My[a],10);return isNaN(b)?0:b};O.prototype.gm=function(){var a=this.If();this.bj=Ff(1,a+"-disabled",2,a+"-hover",4,a+"-active",8,a+"-selected",16,a+"-checked",32,a+"-focused",64,a+"-open")};O.prototype.wr=function(){this.bj||this.gm();this.My=Cf(this.bj)};var P=function(a,b,c){N.call(this,c);this.A=b||jl(this.constructor);this.ai(a)};w(P,N);P.prototype.ij=l;P.prototype.C=0;P.prototype.mg=39;P.prototype.yg=255;P.prototype.ri=0;P.prototype.za=k;P.prototype.Mb=l;P.prototype.$j=k;P.prototype.Gl=p;P.prototype.uw=function(){return this.$j};P.prototype.cl=function(a){this.$a()&&a!=this.$j&&this.Bm(a);this.$j=a};P.prototype.ea=function(){return this.A.ea(this)};P.prototype.Df=function(){return this.jb||(this.jb=new $k)};P.prototype.eh=function(){return this.A};
P.prototype.cn=function(){return this.Mb};P.prototype.hq=function(a){if(a){if(this.Mb)df(this.Mb,a)||this.Mb.push(a);else this.Mb=[a];this.A.zm(this,a,k)}};P.prototype.yx=function(a){if(a&&this.Mb){jf(this.Mb,a);if(this.Mb.length==0)this.Mb=l;this.A.zm(this,a,p)}};P.prototype.sf=function(a,b){b?this.hq(a):this.yx(a)};P.prototype.g=function(){var a=this.A.g(this);this.Ye(a);this.A.ep(a);this.pk()||this.A.Qd(a,p);this.ma()||this.A.Fa(a,p)};P.prototype.T=function(){return this.A.T(this.k())};
P.prototype.oa=function(a){return this.A.oa(a)};P.prototype.ja=function(a){a=this.A.decorate(this,a);this.Ye(a);this.A.ep(a);this.pk()||this.A.Qd(a,p);this.za=a.style.display!="none"};P.prototype.Q=function(){P.o.Q.call(this);this.A.zc(this);if(this.mg&-2){this.uw()&&this.Bm(k);if(this.Ta(32)){var a=this.ea();if(a){var b=this.Df();b.attach(a);this.F().listen(b,"key",this.wc).listen(a,"focus",this.Cd).listen(a,"blur",this.vc)}}}};
P.prototype.Bm=function(a){var b=this.F(),c=this.k();if(a){b.listen(c,"mouseover",this.ck).listen(c,"mousedown",this.Be).listen(c,"mouseup",this.dk).listen(c,"mouseout",this.ak);B&&b.listen(c,"dblclick",this.En)}else{b.unlisten(c,"mouseover",this.ck).unlisten(c,"mousedown",this.Be).unlisten(c,"mouseup",this.dk).unlisten(c,"mouseout",this.ak);B&&b.unlisten(c,"dblclick",this.En)}};P.prototype.ka=function(){P.o.ka.call(this);this.jb&&this.jb.detach();this.ma()&&this.W()&&this.A.cc(this,p)};
P.prototype.i=function(){P.o.i.call(this);if(this.jb){this.jb.dispose();delete this.jb}delete this.A;this.Mb=this.ij=l};P.prototype.Yg=function(){return this.ij};P.prototype.ac=function(a){this.A.ac(this.k(),a);this.ai(a)};P.prototype.ai=function(a){this.ij=a};P.prototype.Wm=function(){var a=this.Yg();if(!a||ka(a))return a;var b=ha(a)?af(a,ai).join(""):ai(a);return b&&va(b)};P.prototype.Hc=function(a){P.o.Hc.call(this,a);var b=this.k();b&&this.A.Hc(b,a)};P.prototype.pk=function(){return this.Gl};
P.prototype.Qd=function(a){this.Gl=a;var b=this.k();b&&this.A.Qd(b,a)};P.prototype.ma=function(){return this.za};P.prototype.Fa=function(a,b){if(b||this.za!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.k();c&&this.A.Fa(c,a);this.W()&&this.A.cc(this,a);this.za=a;return k}return p};P.prototype.W=function(){return!this.Tb(1)};P.prototype.xw=function(){var a=this.Gf();return!!a&&typeof a.W=="function"&&!a.W()};
P.prototype.V=function(a){if(!this.xw()&&this.Id(1,!a)){if(!a){this.setActive(p);this.ob(p)}this.ma()&&this.A.cc(this,a);this.Na(1,!a)}};P.prototype.ob=function(a){this.Id(2,a)&&this.Na(2,a)};P.prototype.aa=function(){return this.Tb(4)};P.prototype.setActive=function(a){this.Id(4,a)&&this.Na(4,a)};P.prototype.rk=function(){return this.Tb(8)};P.prototype.li=function(a){this.Id(8,a)&&this.Na(8,a)};P.prototype.ow=function(){return this.Tb(16)};P.prototype.Yx=function(a){this.Id(16,a)&&this.Na(16,a)};
P.prototype.ao=function(){return this.Tb(32)};P.prototype.lp=function(a){this.Id(32,a)&&this.Na(32,a)};P.prototype.isOpen=function(){return this.Tb(64)};P.prototype.Ze=function(a){this.Id(64,a)&&this.Na(64,a)};P.prototype.Wj=function(){return this.C};P.prototype.Tb=function(a){return!!(this.C&a)};P.prototype.Na=function(a,b){if(this.Ta(a)&&b!=this.Tb(a)){this.A.Na(this,a,b);this.C=b?this.C|a:this.C&~a}};P.prototype.qp=function(a){this.C=a};P.prototype.Ta=function(a){return!!(this.mg&a)};
P.prototype.fd=function(a,b){if(this.$a()&&this.Tb(a)!=b)h(Error("Component already rendered"));!b&&this.Tb(a)&&this.Na(a,p);this.mg=b?this.mg|a:this.mg&~a};P.prototype.Za=function(a){return!!(this.yg&a)&&this.Ta(a)};P.prototype.Vx=function(a,b){this.yg=b?this.yg|a:this.yg&~a};P.prototype.$k=function(a,b){this.ri=b?this.ri|a:this.ri&~a};P.prototype.Id=function(a,b){return this.Ta(a)&&this.Tb(a)!=b&&(!(this.ri&a)||this.dispatchEvent(hl(a,b)))&&!this.qw()};
P.prototype.ck=function(a){a.relatedTarget&&!Rh(this.k(),a.relatedTarget)&&this.dispatchEvent("enter")&&this.W()&&this.Za(2)&&this.ob(k)};P.prototype.ak=function(a){if(a.relatedTarget&&!Rh(this.k(),a.relatedTarget)&&this.dispatchEvent("leave")){this.Za(4)&&this.setActive(p);this.Za(2)&&this.ob(p)}};P.prototype.Be=function(a){if(this.W()){this.Za(2)&&this.ob(k);if(a.Wn(0)){this.Za(4)&&this.setActive(k);this.A.Xb(this)&&this.ea().focus()}}!this.pk()&&a.Wn(0)&&a.preventDefault()};
P.prototype.dk=function(a){if(this.W()){this.Za(2)&&this.ob(k);this.aa()&&this.Wf(a)&&this.Za(4)&&this.setActive(p)}};P.prototype.En=function(a){this.W()&&this.Wf(a)};P.prototype.Wf=function(){this.Za(16)&&this.Yx(!this.ow());this.Za(8)&&this.li(k);this.Za(64)&&this.Ze(!this.isOpen());return this.dispatchEvent("action")};P.prototype.Cd=function(){this.Za(32)&&this.lp(k)};P.prototype.vc=function(){this.Za(4)&&this.setActive(p);this.Za(32)&&this.lp(p)};
P.prototype.wc=function(a){if(this.ma()&&this.W()&&this.Dd(a)){a.preventDefault();a.stopPropagation();return k}return p};P.prototype.Dd=function(a){return a.keyCode==13&&this.Wf(a)};kl(P,O);ml("goog-control",function(){return new P(l)});var pl=function(){return O.call(this)};w(pl,O);fa(pl);pl.prototype.g=function(a){return a.b.g("div",this.J())};pl.prototype.decorate=function(a,b){if(b.tagName=="HR"){var c=b;b=this.g(a);Kh(b,c);Mh(c)}else hh(b,this.J());return b};pl.prototype.ac=function(){};pl.prototype.J=function(){return"goog-menuseparator"};var ql=function(a,b){P.call(this,l,a||pl.getInstance(),b);this.fd(1,p);this.fd(2,p);this.fd(4,p);this.fd(32,p);this.qp(1)};w(ql,P);ql.prototype.Q=function(){ql.o.Q.call(this);Wk(this.k(),"separator")};ml("goog-menuseparator",function(){return new ql});var rl=function(){};fa(rl);rl.prototype.va=function(){return undefined};rl.prototype.Rv=function(a){if(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){var c=a.tabIndex;return la(c)&&c>=0}}return p};rl.prototype.tj=function(a,b){if(a)a.tabIndex=b?0:-1};rl.prototype.g=function(a){return a.b.g("div",this.Qb(a).join(" "))};rl.prototype.T=function(a){return a};rl.prototype.oa=function(a){return a.tagName=="DIV"};
rl.prototype.decorate=function(a,b){b.id&&a.setId(b.id);var c=this.J(),d=p,e=fh(b);e&&Ze(e,function(f){if(f==c)d=k;else f&&this.ni(a,f,c)},this);d||hh(b,c);this.Hr(a,b);return b};rl.prototype.ni=function(a,b,c){if(b==c+"-disabled")a.V(p);else if(b==c+"-horizontal")a.el("horizontal");else b==c+"-vertical"&&a.el("vertical")};
rl.prototype.Hr=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.$g(c);if(e){e.Ye(c);a.W()||e.V(p);a.ff(e);e.decorate(c)}}else if(!c.nodeValue||va(c.nodeValue)=="")b.removeChild(c);c=d}};rl.prototype.$g=function(a){return nl(a)};
rl.prototype.zc=function(a){var b=a.k();Wi(b,k,Wf);if(B)b.hideFocus=k;var c=this.va();c&&Wk(b,c);if(a.Ff()=="horizontal"&&Wf&&!gg("1.9a")&&a.Ke()){var d=this.T(b);a.wd(function(e){var f=e.k();f&&f.parentNode==d&&sl(e)})}};rl.prototype.ea=function(a){return a.k()};rl.prototype.J=function(){return"goog-container"};rl.prototype.Qb=function(a){var b=this.J(),c=a.Ff()=="horizontal",d=[b,b+(c?"-horizontal":"-vertical")];a.W()||d.push(this.J()+"-disabled");return d};rl.prototype.at=function(){return"vertical"};
var sl=function(a){var b=a.k();if(b){var c=b.parentNode,d=b.nextSibling,e=a instanceof ql?"display:-moz-box;position:relative;top:4px":"display:-moz-box;position:relative";c.insertBefore(a.b.g("div",{style:e},b),d)}},tl=function(a){var b=a.k();if(b){var c=b.parentNode;c.parentNode.insertBefore(b,c);Mh(c)}};var R=function(a,b,c){N.call(this,c);this.A=b||rl.getInstance();this.Md=a||this.A.at()};w(R,N);R.prototype.Aw=l;R.prototype.jb=l;R.prototype.A=l;R.prototype.Md=l;R.prototype.za=k;R.prototype.yb=k;R.prototype.Aj=k;R.prototype.ib=-1;R.prototype.na=l;R.prototype.Ck=p;R.prototype.vq=p;R.prototype.Nc=l;R.prototype.ea=function(){return this.Aw||this.A.ea(this)};R.prototype.Df=function(){return this.jb||(this.jb=new $k(this.ea()))};R.prototype.eh=function(){return this.A};R.prototype.g=function(){this.Ye(this.A.g(this))};
R.prototype.T=function(){return this.A.T(this.k())};R.prototype.oa=function(a){return this.A.oa(a)};R.prototype.ja=function(a){this.Ye(this.A.decorate(this,a));if(a.style.display=="none")this.za=p};
R.prototype.Q=function(){R.o.Q.call(this);this.wd(function(b){b.$a()&&this.Ko(b)},this);var a=this.k();this.A.zc(this);this.Fa(this.za,k);this.F().listen(this,"enter",this.mh).listen(this,"highlight",this.Yu).listen(this,"unhighlight",this.Gv).listen(this,"open",this.jv).listen(this,"close",this.Qu).listen(a,"mousedown",this.Be).listen(ph(a),"mouseup",this.Su).listen(a,["mousedown","mouseup","mouseover","mouseout"],this.Ou);this.Xb()&&this.Am(k)};
R.prototype.Am=function(a){var b=this.F(),c=this.ea();a?b.listen(c,"focus",this.Cd).listen(c,"blur",this.vc).listen(this.Df(),"key",this.wc):b.unlisten(c,"focus",this.Cd).unlisten(c,"blur",this.vc).unlisten(this.Df(),"key",this.wc)};R.prototype.ka=function(){this.eg(-1);this.na&&this.na.Ze(p);this.Ck=p;R.o.ka.call(this)};R.prototype.i=function(){R.o.i.call(this);if(this.jb){this.jb.dispose();this.jb=l}this.A=this.na=this.Nc=l};R.prototype.mh=function(){return k};
R.prototype.Yu=function(a){var b=this.Fe(a.target);if(b>-1&&b!=this.ib){var c=this.ue();c&&c.ob(p);this.ib=b;c=this.ue();this.ww()&&c.setActive(k);if(this.na&&c!=this.na)c.Ta(64)?c.Ze(k):this.na.Ze(p)}Xk(this.k(),"activedescendant",a.target.k().id)};R.prototype.Gv=function(a){if(a.target==this.ue())this.ib=-1;Xk(this.k(),"activedescendant","")};R.prototype.jv=function(a){var b=a.target;if(b&&b!=this.na&&b.Gf()==this){this.na&&this.na.Ze(p);this.na=b}};
R.prototype.Qu=function(a){if(a.target==this.na)this.na=l};R.prototype.Be=function(a){this.yb&&this.hi(k);var b=this.ea();this.A.Rv(b)?b.focus():a.preventDefault()};R.prototype.Su=function(){this.hi(p)};R.prototype.Ou=function(a){var b=this.Zt(a.target);if(b)switch(a.type){case "mousedown":b.Be(a);break;case "mouseup":b.dk(a);break;case "mouseover":b.ck(a);break;case "mouseout":b.ak(a);break}};
R.prototype.Zt=function(a){if(this.Nc)for(var b=this.k();a&&a.parentNode&&a!=b;){var c=a.id;if(c in this.Nc)return this.Nc[c];a=a.parentNode}return l};R.prototype.Cd=function(){};R.prototype.vc=function(){this.eg(-1);this.hi(p);this.na&&this.na.Ze(p)};R.prototype.wc=function(a){if(this.W()&&this.zf()!=0&&this.Dd(a)){a.preventDefault();a.stopPropagation();return k}return p};
R.prototype.Dd=function(a){var b=this.ue();if(b&&typeof b.wc=="function"&&b.wc(a))return k;if(this.na&&this.na!=b&&typeof this.na.wc=="function"&&this.na.wc(a))return k;switch(a.keyCode){case 27:if(this.Xb())this.ea().blur();else return p;break;case 36:this.Vv();break;case 35:this.Xv();break;case 38:if(this.Md=="vertical")this.kk();else return p;break;case 37:if(this.Md=="horizontal")this.Ke()?this.jk():this.kk();else return p;break;case 40:if(this.Md=="vertical")this.jk();else return p;break;case 39:if(this.Md==
"horizontal")this.Ke()?this.kk():this.jk();else return p;break;default:return p}return k};R.prototype.Ko=function(a){var b=a.k(),c=b.id||(b.id=a.da());if(!this.Nc)this.Nc={};this.Nc[c]=a};R.prototype.ff=function(a,b){R.o.ff.call(this,a,b)};R.prototype.rg=function(a,b,c){a.$k(2,k);a.$k(64,k);if(this.Xb()||!this.sw())a.fd(32,p);a.cl(p);R.o.rg.call(this,a,b,c);c&&this.$a()&&this.Ko(a);c&&this.$a()&&this.Ke()&&this.Ff()=="horizontal"&&Wf&&!gg("1.9a")&&sl(a);b<=this.ib&&this.ib++};
R.prototype.removeChild=function(a,b){var c=this.Fe(a);if(c!=-1)if(c==this.ib)a.ob(p);else c<this.ib&&this.ib--;b&&this.$a()&&this.Ke()&&this.Ff()=="horizontal"&&Wf&&!gg("1.9a")&&tl(a);var d=a.k();d&&d.id&&xf(this.Nc,d.id);a=R.o.removeChild.call(this,a,b);a.cl(k);return a};R.prototype.Ff=function(){return this.Md};R.prototype.el=function(a){if(this.k())h(Error("Component already rendered"));this.Md=a};R.prototype.ma=function(){return this.za};
R.prototype.Fa=function(a,b){if(b||this.za!=a&&this.dispatchEvent(a?"show":"hide")){this.za=a;var c=this.k();if(c){G(c,a);this.Xb()&&this.A.tj(this.ea(),this.yb&&this.za);this.za&&!b&&this.dispatchEvent("aftershow")}return k}return p};R.prototype.W=function(){return this.yb};
R.prototype.V=function(a){if(this.yb!=a&&this.dispatchEvent(a?"enable":"disable")){if(a){this.yb=k;this.wd(function(b){if(b.wasDisabled)delete b.wasDisabled;else b.V(k)})}else{this.wd(function(b){if(b.W())b.V(p);else b.wasDisabled=k});this.yb=p;this.hi(p)}this.Xb()&&this.A.tj(this.ea(),a&&this.za)}};R.prototype.Xb=function(){return this.Aj};R.prototype.cc=function(a){a!=this.Aj&&this.$a()&&this.Am(a);this.Aj=a;this.yb&&this.za&&this.A.tj(this.ea(),a)};R.prototype.sw=function(){return this.vq};
R.prototype.eg=function(a){var b=this.qc(a);if(b)b.ob(k);else this.ib>-1&&this.ue().ob(p)};R.prototype.ob=function(a){this.eg(this.Fe(a))};R.prototype.ue=function(){return this.qc(this.ib)};R.prototype.Vv=function(){this.rh(function(a,b){return(a+1)%b},this.zf()-1)};R.prototype.Xv=function(){this.rh(function(a,b){a--;return a<0?b-1:a},0)};R.prototype.jk=function(){this.rh(function(a,b){return(a+1)%b},this.ib)};R.prototype.kk=function(){this.rh(function(a,b){a--;return a<0?b-1:a},this.ib)};
R.prototype.rh=function(a,b){var c=b<0?this.Fe(this.na):b,d=this.zf();c=a(c,d);for(var e=0;e<=d;){var f=this.qc(c);if(f&&this.Ti(f)){this.ei(c);return k}e++;c=a(c,d)}return p};R.prototype.Ti=function(a){return a.ma()&&a.W()&&a.Ta(2)};R.prototype.ei=function(a){this.eg(a)};R.prototype.ww=function(){return this.Ck};R.prototype.hi=function(a){this.Ck=a};var ul=function(){O.call(this);this.Rq={}};w(ul,O);fa(ul);ul.prototype.se=function(a){return this.Rq[a]||(this.Rq[a]=this.If()+a)};ul.prototype.va=function(){return"menuitem"};ul.prototype.g=function(a){var b=a.b.g("div",this.Qb(a).join(" "),this.hm(a.Yg(),a.b));this.jp(a,b,a.Ta(8)||a.Ta(16));return b};ul.prototype.T=function(a){return a&&a.firstChild};
ul.prototype.decorate=function(a,b){this.Kv(b)||b.appendChild(this.hm(b.childNodes,a.b));if(lh(b,"goog-option")){a.cg(k);this.cg(a,b,k)}return ul.o.decorate.call(this,a,b)};ul.prototype.ac=function(a,b){var c=this.T(a),d=this.hk(a)?c.firstChild:l;ul.o.ac.call(this,a,b);if(d&&!this.hk(a))c.insertBefore(d,c.firstChild||l)};ul.prototype.Kv=function(a){var b=Ph(a),c=this.se("-content");return!!b&&b.className.indexOf(c)!=-1};ul.prototype.hm=function(a,b){var c=this.se("-content");return b.g("div",c,a)};
ul.prototype.cg=function(a,b,c){if(b){Wk(b,c?"menuitemcheckbox":this.va());this.jp(a,b,c)}};ul.prototype.hk=function(a){var b=this.T(a);if(b){var c=b.firstChild,d=this.se("-checkbox");return!!c&&!!c.className&&c.className.indexOf(d)!=-1}return p};ul.prototype.jp=function(a,b,c){if(c!=this.hk(b)){mh(b,"goog-option",c);var d=this.T(b);if(c){var e=this.se("-checkbox");d.insertBefore(a.b.g("div",e),d.firstChild||l)}else d.removeChild(d.firstChild)}};
ul.prototype.re=function(a){switch(a){case 2:return this.se("-highlight");case 16:case 8:return"goog-option-selected";default:return ul.o.re.call(this,a)}};ul.prototype.gh=function(a){var b=this.se("-highlight");switch(a){case "goog-option-selected":return 16;case b:return 2;default:return ul.o.gh.call(this,a)}};ul.prototype.J=function(){return"goog-menuitem"};var vl=function(a,b,c,d){P.call(this,a,d||ul.getInstance(),c);this.ua(b)};w(vl,P);vl.prototype.xa=function(){var a=this.Qt();return a!=l?a:this.Wm()};vl.prototype.ua=function(a){this.iy(a)};vl.prototype.cg=function(a){this.fd(16,a);var b=this.k();b&&this.A.cg(this,b,a)};ml("goog-menuitem",function(){return new vl(l)});var wl=function(a){ql.call(this,pl.getInstance(),a)};w(wl,ql);ml("goog-menuseparator",function(){return new ql});var xl={TOP_LEFT:0,TOP_RIGHT:2,BOTTOM_LEFT:1,BOTTOM_RIGHT:3,TOP_START:4,TOP_END:6,BOTTOM_START:5,BOTTOM_END:7},Bl=function(a,b,c,d,e,f,g,i){var j,m=c.offsetParent;if(m){var n=m.tagName=="HTML"||m.tagName=="BODY";if(!n||Ci(m,"position")!="static"){j=Hi(m);n||(j=ah(j,new $g(m.scrollLeft,m.scrollTop)))}}var o=yl(a);Ni(o,qh(a),qh(c));var q=(b&4&&Ki(a)?b^2:b)&-5,s=new $g(q&2?o.left+o.width:o.left,q&1?o.top+o.height:o.top);if(j)s=ah(s,j);if(e){s.x+=(q&2?-1:1)*e.x;s.y+=(q&1?-1:1)*e.y}var r;if(g)if((r=Ji(c))&&
j){r.top=Math.max(0,r.top-j.y);r.right-=j.x;r.bottom-=j.y;r.left=Math.max(0,r.left-j.x)}return zl(s,c,d,f,r,g,i)},yl=function(a){var b=Si(a),c=Ji(a);c&&b.intersection(new qi(c.left,c.top,c.right-c.left,c.bottom-c.top));return b},zl=function(a,b,c,d,e,f,g){a=a.clone();var i=0,j=(c&4&&Ki(b)?c^2:c)&-5,m=Ri(b),n=g?g.clone():m;if(d||j!=0){if(j&2)a.x-=n.width+(d?d.right:0);else if(d)a.x+=d.left;if(j&1)a.y-=n.height+(d?d.bottom:0);else if(d)a.y+=d.top}if(f){i=e?Cl(a,n,e,f):256;if(i&496)return i}Di(b,a);
ch(m,n)||Qi(b,n);return i},Cl=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 Dl=function(){};Dl.prototype.reposition=function(){};var El=function(a,b){this.element=a;this.corner=b};w(El,Dl);El.prototype.reposition=function(a,b,c){Bl(this.element,this.corner,a,b,undefined,c)};var Fl=function(a,b,c){El.call(this,a,b);this.wz=c};w(Fl,El);Fl.prototype.reposition=function(a,b,c,d){var e=Bl(this.element,this.corner,a,b,l,c,10,d)&496;if(e)if(e=Bl(this.element,b,a,this.corner,l,c,10,d)&496)this.wz?Bl(this.element,this.corner,a,b,l,c,5,d):Bl(this.element,this.corner,a,b,l,c,0,d)};var Gl=function(a,b){this.coordinate=a instanceof $g?a:new $g(a,b)};w(Gl,Dl);Gl.prototype.reposition=function(a,b,c,d){var e=Ei(a),f=new $g(this.coordinate.x+e.scrollLeft,this.coordinate.y+e.scrollTop);Bl(e,0,a,b,f,c,l,d)};var Hl=function(a,b){Gl.call(this,a,b)};w(Hl,Gl);Hl.prototype.reposition=function(a,b,c,d){var e=Ei(a),f=Ji(e),g=qh(a).an(),i=new $g(this.coordinate.x+g.scrollLeft,this.coordinate.y+g.scrollTop),j=10,m=b,n=zl(i,a,m,c,f,j,d);if(!((n&496)==0)){if(n&16||n&32)m=m^2;if(n&64||n&128)m=m^1;n=zl(i,a,m,c,f,j,d);(n&496)==0||zl(i,a,b,c,f,undefined,d)}};var Il=xl;var Jl=function(){rl.call(this)};w(Jl,rl);fa(Jl);Jl.prototype.va=function(){return"menu"};Jl.prototype.oa=function(a){return a.tagName=="UL"||Jl.o.oa.call(this,a)};Jl.prototype.$g=function(a){return a.tagName=="HR"?new ql:Jl.o.$g.call(this,a)};Jl.prototype.je=function(a,b){return Rh(a.k(),b)};Jl.prototype.J=function(){return"goog-menu"};Jl.prototype.zc=function(a){Jl.o.zc.call(this,a);var b=a.k();Xk(b,"haspopup","true")};var Kl=function(a,b){R.call(this,"vertical",b||Jl.getInstance(),a);this.cc(p)};w(Kl,R);Kl.prototype.Ji=k;Kl.prototype.wq=p;Kl.prototype.J=function(){return this.eh().J()};Kl.prototype.je=function(a){return this.eh().je(this,a)||this.Jv()&&bf(this.qa,function(b){return typeof b.je=="function"&&b.je(a)})};Kl.prototype.Cl=function(a){this.ff(a,k)};Kl.prototype.Cb=function(a){return this.qc(a)};Kl.prototype.Cf=function(){return this.qa||[]};
Kl.prototype.setPosition=function(a,b){var c=this.ma();c||G(this.k(),k);Pi(this.k(),a,b);c||G(this.k(),p)};Kl.prototype.Ux=function(a){(this.Ji=a)&&this.cc(k)};Kl.prototype.Fa=function(a,b){var c=Kl.o.Fa.call(this,a,b);c&&a&&this.$a()&&this.Ji&&this.ea().focus();return c};Kl.prototype.mh=function(a){this.Ji&&this.ea().focus();return Kl.o.mh.call(this,a)};Kl.prototype.Ti=function(a){return(this.wq||a.W())&&a.ma()&&a.Ta(2)};var Ll=function(a){Kl.call(this,a);this.Ux(k);this.gc=new Xg};w(Ll,Kl);Ll.prototype.za=p;Ll.prototype.bz=p;Ll.prototype.fo=0;Ll.prototype.pm=l;Ll.prototype.ja=function(a){Ll.o.ja.call(this,a);var b=a.getAttribute("for")||a.htmlFor;b&&this.attach(this.b.k(b),1)};Ll.prototype.Q=function(){Ll.o.Q.call(this);Ug(this.gc,this.Ol,this);var a=this.F();a.listen(this,"action",this.Sw);a.listen(this.b.Tc(),"mousedown",this.xo,k);Xf&&a.listen(this.b.Tc(),"contextmenu",this.xo,k)};
Ll.prototype.attach=function(a,b,c,d,e){var f=qa(a);if(!this.gc.eb(f)){var g={r:a,Kp:b,qo:c,Zr:d?"contextmenu":"mousedown",Tz:e};this.gc.set(f,g);this.$a()&&this.Ol(g)}};Ll.prototype.Ol=function(a){this.F().listen(a.r,a.Zr,this.Ao)};Ll.prototype.detach=function(a){var b=qa(a);if(!this.gc.eb(b))h(Error("Menu not attached to provided element, unable to detach."));this.$a()&&this.Mr(this.gc.get(b));this.gc.remove(b)};Ll.prototype.Mr=function(a){this.F().unlisten(a.r,a.Zr,this.Ao)};
Ll.prototype.Bp=function(a,b,c){var d=this.ma();if((d||this.tz())&&this.bz)this.hide();else if(this.dispatchEvent("beforeshow")){var e=a.Kp!==undefined?new Fl(a.r,a.Kp):new Hl(b,c),f=a.qo!==undefined?a.qo:4;if(!d)this.k().style.visibility="hidden";G(this.k(),k);e.reposition(this.k(),f,a.Tz);if(!d)this.k().style.visibility="visible";this.pm=a.r;this.eg(-1);this.Fa(k)}};Ll.prototype.wp=function(a,b,c){this.Bp({qo:c,r:a,Kp:b},0,0)};
Ll.prototype.hide=function(){this.Fa(p);if(!this.ma()){this.fo=ta();this.pm=l}};Ll.prototype.tz=function(){return ta()-this.fo<150};Ll.prototype.Sw=function(){this.hide()};Ll.prototype.Ao=function(a){for(var b=this.gc.Vc(),c=0;c<b.length;c++){var d=this.gc.get(b[c]);if(d.r==a.currentTarget){this.Bp(d,a.clientX,a.clientY);a.preventDefault();a.stopPropagation();return}}};Ll.prototype.xo=function(a){this.ma()&&!this.je(a.target)&&this.hide()};Ll.prototype.vc=function(a){Ll.o.vc.call(this,a);this.hide()};
Ll.prototype.i=function(){Ll.o.i.call(this);if(this.gc){this.gc.clear();delete this.gc}};var Ml=function(a,b,c,d,e){N.call(this,d);this.Pv=a;this.Nn=b;this.Mv=c;this.O=[];this.Z=-1;this.j=new cj(this);this.Wr=!!e;this.Pb=-1;this.Da=this.lr()};w(Ml,N);var Nl={MOVE_TO_TOP:"movetotop",MOVE_TO_LEFT:"movetoleft",MOVE_TO_RIGHT:"movetoright",MOVE_UP:"moveup",MOVE_DOWN:"movedown",MINIMIZE:"minimize",MAXIMIZE:"maximize",LARGER:"larger",SMALLER:"smaller"},Ol={};Ol.movetotop="move to top";Ol.movetoleft="move left";Ol.movetoright="move right";Ol.moveup="move up";Ol.movedown="move down";
Ol.minimize="minimize";Ol.maximize="show";Ol.larger="larger";Ol.smaller="smaller";Ml.prototype.ja=function(a){Ml.o.ja.call(this,a);this.Da.render(a.parentNode)};Ml.prototype.Q=function(){this.Da.Q();this.j.listen(this.Da,"action",this.fv);var a=vh("div","mid-reorder",this.k()),b=vh("div","rgt-reorder",this.k());this.ro=a.length>0?a[0]:l;this.So=b.length>0?b[0]:l;this.ro&&this.Lo(this.ro);this.Pb=this.O.length;this.So&&this.Lo(this.So)};
Ml.prototype.Lo=function(a){if(a)for(var b=Ph(a);b;b=Oh(b.nextSibling,k)){var c=Vh(b,function(e){return lh(e,"gf-reorder-btn")});if(c){var d=lh(c,"menu-on-top");this.O.push(b);this.j.listen(c,"mousedown",this.kv(b,d))}}};Ml.prototype.ka=function(){this.Da.ka();this.j.$f()};Ml.prototype.Xn=function(a){return 0==a.indexOf("chart-section")};Ml.prototype.yh=function(){return this.Z>=this.Pb};Ml.prototype.Bi=function(a){if(!a)return this.yh()?this.Pb:0;return this.yh()?this.O.length-1:this.Pb-1};
Ml.prototype.kv=function(a,b){return function(c){var d=0,e=this.Xn(a.id);this.Z=Ye(this.O,a);if(this.Pv){if(this.Z==-1)return;var f=this.yh(),g=this.Z==this.Bi(),i=this.Z==this.Bi(k);this.Da.Cb(0).V(!g);this.Da.Cb(1).V(!g);this.Da.Cb(2).V(!i);d=4;if(this.Wr){this.Da.Cb(3).V(f&&!e);this.Da.Cb(4).V(!f&&!e);d=6}}if(this.Nn){if(e)this.Da.Cb(d).Fa(p);else{this.Da.Cb(d).Fa(k);this.Da.Cb(d).ac(lh(a,"gf-reorder-hide")?"show":"minimize")}d++}if(this.Mv)if(e){this.Da.Cb(d).Fa(k);this.Da.Cb(d).ac(lh(a,"gf-reorder-hide")?
"larger":"smaller")}else this.Da.Cb(d).Fa(p);b?this.Da.wp(c.currentTarget,Il.TOP_RIGHT,Il.BOTTOM_RIGHT):this.Da.wp(c.currentTarget,Il.BOTTOM_RIGHT,Il.TOP_RIGHT);c.preventDefault();c.stopPropagation()}};
Ml.prototype.fv=function(a){if(!(this.Z==-1)){var b=Nl,c=this.O[this.Z];this.yh();var d=this.Xn(c.id);if(a.target.da()==b.MOVE_TO_TOP){if(d)for(var e=this.Z-1;e>=0;e--)Lh(this.O[e],c);else Kh(c,this.O[this.Bi()]);jf(this.O,c);gf(this.O,c,this.Bi());this.dispatchEvent({type:b.MOVE_TO_TOP,id:c.id,oldIndex:this.Z})}else if(a.target.da()==b.MOVE_UP){d?Lh(this.O[this.Z-1],c):Kh(c,this.O[this.Z-1]);this.O[this.Z]=this.O[this.Z-1];this.O[this.Z-1]=c;this.dispatchEvent({type:b.MOVE_UP,id:c.id,oldIndex:this.Z,
newIndex:this.Z-1})}else if(a.target.da()==b.MOVE_DOWN){d?Kh(this.O[this.Z+1],c):Lh(c,this.O[this.Z+1]);this.O[this.Z]=this.O[this.Z+1];this.O[this.Z+1]=c;this.dispatchEvent({type:b.MOVE_DOWN,id:c.id,oldIndex:this.Z,newIndex:this.Z+1})}else if(a.target.da()==b.MOVE_TO_LEFT){this.Pb>0?Lh(c,this.O[this.Pb-1]):F(this.ro,c);jf(this.O,c);gf(this.O,c,this.Pb);this.dispatchEvent({type:b.MOVE_TO_LEFT,id:c.id,oldIndex:this.Z,newIndex:this.Pb});this.Pb++}else if(a.target.da()==b.MOVE_TO_RIGHT){this.O.length>
this.Pb?Lh(c,this.O[this.O.length-1]):F(this.So,c);jf(this.O,c);this.O.push(c);this.dispatchEvent({type:b.MOVE_TO_RIGHT,id:c.id,oldIndex:this.Z,newIndex:this.O.length-1});this.Pb--}else if(a.target.da()==b.MINIMIZE)this.cz(c);else a.target.da()==b.LARGER&&this.Zy(c)}};Ml.prototype.cz=function(a){if(!(a.nodeType!=1)){var b=nh(a,"gf-reorder-hide");this.dispatchEvent({type:b?"minimize":"maximize",id:a.id})}};
Ml.prototype.Zy=function(a){if(!(a.nodeType!=1)){var b=!nh(a,"gf-reorder-hide");t._finance_chart&&t._finance_chart.flash_proxy.call("displayLargerChart",b);this.dispatchEvent({type:b?"larger":"smaller",id:a.id})}};Ml.prototype.od=function(a,b){var c=new vl(Ol[b]);c.setId(b);a.Cl(c)};
Ml.prototype.lr=function(){var a=new Ll;if(this.Pv){this.od(a,"movetotop");this.od(a,"moveup");this.od(a,"movedown");if(this.Wr){this.od(a,"movetoleft");this.od(a,"movetoright")}this.Nn&&a.Cl(new wl)}this.Nn&&this.od(a,"minimize");this.Mv&&this.od(a,"larger");return a};var Pl=function(a,b,c,d){this.dp=d||"-";this.O=a;this.Gz=b;this.Va=c;this.fa=this.kw(c)};Pl.prototype.kw=function(a){var b=p,c=this.Va.get("sorder");if(!c||c.length==0)c=this.Gz;for(var d=[],e=0;e<c.length;++e){var f=c.charAt(e).toUpperCase();if(Ye(d,f)==-1&&Ye(d,f.toLowerCase())==-1&&(f==this.dp||vf(this.O,f)))d[d.length]=c.charAt(e);else b=k}b&&a.set("sorder",d.join(""));return d};
Pl.prototype.Dn=function(a){var b=Nl,c=this.O[a.id],d=Ye(this.fa,c);if(d==-1)d=Ye(this.fa,c.toLowerCase());if(d==-1){ef(this.fa,c);d=this.fa.length-1}var e=Ye(this.fa,this.dp);if(e==-1){ef(this.fa,this.dp);e=this.fa.length-1}var f=d<e;c=this.fa[d];if(a.type==b.MOVE_TO_TOP){hf(this.fa,d);gf(this.fa,c,f?0:e+1);this.Ac(c,"t",0)}else if(a.type==b.MOVE_UP){hf(this.fa,d);gf(this.fa,c,d-1);this.Ac(c,"u",d-1)}else if(a.type==b.MOVE_DOWN){hf(this.fa,d);gf(this.fa,c,d+1);this.Ac(c,"d",d+1)}else if(a.type==
b.MOVE_TO_LEFT){hf(this.fa,d);gf(this.fa,c,e);this.Ac(c,"l",d)}else if(a.type==b.MOVE_TO_RIGHT){hf(this.fa,d);this.fa.push(c);this.Ac(c,"l",d)}else if(a.type==b.MINIMIZE){this.fa[d]=c.toLowerCase();this.Ac(c,"m",d)}else if(a.type==b.MAXIMIZE){this.fa[d]=c.toUpperCase();this.Ac(c,"s",d)}else if(a.type==b.LARGER){this.fa[d]=c.toUpperCase();this.Ac(c,"l",d)}else{this.fa[d]=c.toLowerCase();this.Ac(c,"n",d)}this.Va.set("sorder",this.fa.join(""))};
Pl.prototype.Ac=function(a,b,c){_GF_click("","re_"+this.Va.xt()+"_"+a.toLowerCase()+"_"+b,c,"")};var Ql=function(a,b,c){D.call(this);this.td=rh(a);this.Tr=b?rh(b):l;this.xj=c==k;this.td.tabIndex=0;C(this.td,"click",this.Xw,p,this);C(this.td,"keydown",this.Yw,p,this);this.ci(this.xj)};w(Ql,D);Ql.prototype.i=function(){Gg(this.td);Ql.o.i.call(this)};Ql.prototype.expand=function(){this.ci(k)};Ql.prototype.collapse=function(){this.ci(p)};Ql.prototype.toggle=function(){this.ci(!this.xj)};
Ql.prototype.ci=function(a){if(this.Tr)this.Tr.style.display=a?"":"none";this.kz(a);this.xj=a;this.dispatchEvent(new Rl("toggle",this,this.xj))};Ql.prototype.kz=function(a){if(a){jh(this.td,"goog-zippy-collapsed");hh(this.td,"goog-zippy-expanded")}else{jh(this.td,"goog-zippy-expanded");hh(this.td,"goog-zippy-collapsed")}};Ql.prototype.Yw=function(a){if(a.keyCode==13||a.keyCode==32){this.toggle();a.preventDefault();a.stopPropagation()}};Ql.prototype.Xw=function(){this.toggle()};
var Rl=function(a,b,c){hg.call(this,a,b);this.expanded=c};w(Rl,hg);var Sl=function(){Gf.call(this);this.rd=this.nb=l;this.j=new cj(this);this.Hd()};w(Sl,Gf);Sl.prototype.i=function(){this.j.dispose();Sl.o.i.call(this)};Sl.prototype.Hd=function(){var a=E("m");if(a)for(var b=0;b<a.rows.length;b++){var c=a.rows[b];if(c.className!="hide"&&c.className!="noinfo"){this.j.listen(c,"mouseover",this.qv);this.j.listen(c,"mouseout",this.pv);var d=E(c.id+"d");if(d){this.j.listen(d,"mouseover",this.$u);this.j.listen(d,"mouseout",this.Zu)}}}};
Sl.prototype.qv=function(a){clearTimeout(this.rd);if(this.nb==l){this.nb=a.currentTarget.id;this.rd=setTimeout(u(this.Ap,this),200)}else if(this.nb!=a.currentTarget.id){this.ik();this.nb=a.currentTarget.id;this.rd=setTimeout(u(this.Ap,this),200)}};Sl.prototype.pv=function(){clearTimeout(this.rd);var a=E(this.nb+"d");if(a&&a.style.display!="none")this.rd=setTimeout(u(this.ik,this),300);else this.nb=l};Sl.prototype.$u=function(a){a.currentTarget.id==this.nb+"d"&&clearTimeout(this.rd)};
Sl.prototype.Zu=function(a){if(!Rh(a.currentTarget,a.relatedTarget)){clearTimeout(this.rd);if(E(a.currentTarget.id).style.display!="none")this.rd=setTimeout(u(this.ik,this),300)}};Sl.prototype.ik=function(){var a=E(this.nb+"d");if(a){G(a,p);eh(E(this.nb),"")}this.nb=l};Sl.prototype.Ap=function(){var a=E(this.nb+"d");if(a){a.style.display="block";a.style.width=E(this.nb+"t").offsetWidth-12+"px";eh(E(this.nb),"over")}};
function Tl(){if(qj()){var a=google.finance.data.company.related,b=E("related"),c=E("related-table");if(c&&a&&a.rows&&a.rows.length>0&&a.cols&&a.cols.length>0){if(jj())a.rows=hj.Vh(a.rows,k);var d=E("related-select"),e=d.selectedIndex,f=E("related-edit-col"),g=E("related-save"),i=E("related-cancel"),j=new xk(a,new _GF_Prefs("ch_compare"));c.appendChild(j.k());if(b)b.style.display="block";j.Ey.init();C(d,"change",function(m){if(m.currentTarget.selectedIndex!=e){g.disabled=i.disabled=k;j.Fc(m.currentTarget.options[e=
m.currentTarget.selectedIndex].value)}});C(f,"click",function(){f.style.display="none";g.disabled=i.disabled=k;g.style.display=i.style.display="";j.Gy(d.options[e].value)});C(j,"editingready",function(){g.disabled=i.disabled=p});C(g,"click",function(){f.style.display="";g.style.display=i.style.display="none";for(var m=["0","2","3"],n=j.k().tHead.rows[1].cells,o=1;o<n.length;++o){var q=n[o].firstChild.firstChild;q.checked&&m.push(Number(q.value))}j.Mx(m)});C(i,"click",function(){f.style.display="";
g.style.display=i.style.display="none";j.Gq()})}else if(b)b.style.display="none"}}v("google.finance.onRelatedCompanyLoad",Tl);
(function(){var a={"chart-section":"G","news-section":"N","blogs-section":"B","discussions-section":"D","summary-section":"S","mgmt-section":"M"},b={"chart-section":"G","news-section":"N"};function c(i,j,m){if(E("reorder")){var n=Nl,o=new _GF_Prefs(m),q=o.get("sorder");if(q&&q.length>0){var s=q.replace(/(C|c)/g,"g");q!=s&&o.set("sorder",s)}var r=new Pl(i,j,o),x=new Ml(k,k,k);C(x,[n.MOVE_TO_TOP,n.MOVE_UP,n.MOVE_DOWN,n.MAXIMIZE,n.MINIMIZE,n.LARGER,n.SMALLER],u(r.Dn,r));x.decorate(E("reorder"))}}function d(){var i=
E("market-data-div");if(i){gj().Th(Cj(E("market-data-div"),1200));G(i,k)}}function e(){if(qj()){B&&google.finance.showLess&&setTimeout(google.finance.showLess,1);c(a,"BDSM","ch");var i=E("mgmt-table");if(i)for(var j=i.tBodies[0].rows,m=1;m<j.length;m+=2)new Ql(j[m-1],j[m]);Tl();Ul();Vl();Wl()}else{Dj();new Sl}rj();Xl("c")}function f(){if(qj()){B&&google.finance.showLess&&setTimeout(google.finance.showLess,1);Ul();Vl();Wl()}c(b,"g","cur");rj();Xl("c")}function g(){var i=E("ra-src"),j=E("ra-target");
if(i&&j){Nh(i,j);i.className=""}}v("google.finance.onCompanyLoad",e);v("google.finance.onCurrencyLoad",f);v("google.finance.renderRecentActivities",g);v("google.finance.renderMarketData",d)})();var Yl=p;
function Zl(a){if(!Yl)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){Yl=k;if(!(a.target.type=="text"))if(Xf){var c=a.charCode?a.charCode:a.keyCode;document.f.q.value=String.fromCharCode(c);document.f.q.focus();a.preventDefault()}else{document.f.q.focus();document.f.q.select()}}}}function _initAutoFocus(){C(document,"keydown",Zl)}function _initCompareSettings(){_windowGroup!=undefined&&_windowGroup._hideMoreLessCompareLink()}
function $l(a){_state.ms(a)}function am(){_finance_chart.Qm()}
function _DownloadInitialNews(){if(!_alreadyProcessingRequest)if(_kAsyncKeydevsParam){_alreadyProcessingRequest=k;var a=Date.parse(new Date),b=a-86400000*_defaultZoomDays;_previousBucketedDays=_defaultZoomDays;var c=_urlPrefix+"/kd?"+_kAsyncKeydevsParam+"=1&auto=1";c+="&"+_kAsyncKeydevsStartParam+"="+b;c+="&"+_kAsyncKeydevsEndParam+"="+a;c+="&"+_kAsyncKeydevsZoomLevelParam+"="+_defaultZoomDays;c+="&"+_kAsyncKeydevsGetRecentNewsParam+"="+_getRecentNews;c+="&"+_kCompanyIdParam+"="+_companyId;c+=xj();
bm(c)}}
function cm(a,b,c){var d=a.getTime(),e=b.getTime();_pstart("visible chart range called");_state||(_state=new dm(_totalNumDivs));if(_alreadyProcessingRequest){if(!_visible_chart_range_changed_already_called){_visible_chart_range_changed_already_called=k;_first_chart_data_is_here=p}}else{if(_previousBucketedDays==l)_previousBucketedDays=_defaultZoomDays;if(c!=_previousBucketedDays){_finance_chart.he(_ticker);_state.zoomLevelChanged=k;_getRecentNews=0;_previousBucketedDays=c}if(_visible_chart_range_changed_already_called){if(_kAsyncKeydevsParam)if(c<_maxZoomDaysForEnablingPansAndFlags||
c>_maxZoomDaysForEnablingPansAndFlags&&_state.zoomLevelChanged){_alreadyProcessingRequest=k;var f=_urlPrefix+"/kd?"+_kAsyncKeydevsParam+"=1";f+="&"+_kAsyncKeydevsStartParam+"="+d;f+="&"+_kAsyncKeydevsEndParam+"="+e;f+="&"+_kAsyncKeydevsZoomLevelParam+"="+c;f+="&"+_kAsyncKeydevsGetRecentNewsParam+"="+_getRecentNews;f+="&"+_kCompanyIdParam+"="+_companyId;f+=xj();bm(f)}}else{_visible_chart_range_changed_already_called=k;_first_chart_data_is_here=p}_pstop("visible chart range called")}}
function em(a){cm(a.startDate,a.endDate,a.numDays,a.minutes)}var _gel=E;function _gel_dn(a){if(_gel(a)){_gel(a).style.display="none";_gel(a+"l").className="rg"}}function _gel_db(a){if(_gel(a)){_gel(a).style.display="block";_gel(a+"l").className="rl"}}var _t$_d=0,_t$_to=0,_t$d,_t$to;function _o(a){if(_t$d!=a&&_t$d!=0){_gel_dn(_t$d);clearTimeout(_t$to)}_t$d=a;_gel_db(_t$d);_ct(_t$d)}function _c(a){_t$d=a;_t$to=window.setTimeout(u(_gel_dn,l,_t$d),100)}function _ct(a){_t$d==a&&clearTimeout(_t$to)}
function fm(a){var b=a.offsetLeft;if(a.offsetParent!=l)b+=fm(a.offsetParent);return b}function gm(a){var b=a.offsetTop;if(a.offsetParent!=l)b+=gm(a.offsetParent);return b}function _showRelatedDiv(){_ct(_t$d)}function _hideRelatedDiv(){_hideRelated(_t$d)}function hm(a){for(var b,c=0;c<6;c++)if(b=S("n-h-"+a+""+c))b.onmousedown=vj(b,"news",b.id,"");if(b=S("n-r-"+a))b.onmousedown=vj(b,"news",b.id,"")}
function _showRelatedInternal(a){var b=_gel(a+"detaileddiv");if(b){b.style.width="300px";b.style.marginLeft="0px";b.style.display="block"}var c=_gel("hoverdiv");if(c){c.name=a;if(_hoverData[a]==l||_hoverData[a]==undefined)return;var d=_gel(a+"ph");if(d==l)return;c.innerHTML=_hoverData[a];hm(a);c.style.left=fm(d)+"px";c.style.top=gm(d)+"px";c.style.width=_gel("newsmovingdiv").offsetWidth-80+"px";c.style.display="block"}var e=_gel(a+"link");if(e)e.className="rl";_ct(_t$d)}
function _showRelated(a){var b=_gel("hoverdiv");if(_t$d!=a&&_t$d!=0){var c=_gel(_t$d+"detaileddiv");if(c)c.style.display="none";if(b)b.style.display="none";if(_gel(_t$d+"link"))_gel(_t$d+"link").className="rg"}clearTimeout(_t$to);_t$d=a;_t$to=window.setTimeout(u(_showRelatedInternal,l,_t$d),200)}function _gel_dn_hover(a){var b=_gel(a+"link");if(b)b.className="rg";var c=_gel(a+"detaileddiv");if(c)c.style.display="none";if(_gel("hoverdiv"))_gel("hoverdiv").style.display="none"}
function _hideRelated(a){_t$d=a;clearTimeout(_t$to);_t$to=window.setTimeout(u(_gel_dn_hover,l,_t$d),100)}function _Init_State(a){_state||(_state=new dm(a))};function im(a){window.jstiming&&window.jstiming.load.tick(a)}window._tck=im;function jm(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;var f=e[0];if(f>c)c=f}if(c>0)window.jstiming.load.t[a]=[c,l]}
function Xl(a){if(window.jstiming){window.jstiming.load.name=a;setTimeout(function(){if(a=="h")jm("prt",["aft","ic"]);else a=="c"&&jm("prt",["aft","chd","jl"]);_expid?window.jstiming.report(window.jstiming.load,{e:_expid}):window.jstiming.report(window.jstiming.load)},2000)}}v("_rpt",Xl);var km=function(){O.call(this)};w(km,O);fa(km);km.prototype.J=function(){return"goog-tab"};km.prototype.va=function(){return"tab"};km.prototype.g=function(a){var b=km.o.g.call(this,a),c=a.hb();c&&this.pb(b,c);return b};km.prototype.decorate=function(a,b){b=km.o.decorate.call(this,a,b);var c=this.hb(b);c&&a.gg(c);if(a.rk()){var d=a.Gf();if(d&&ma(d.$e)){a.Na(8,p);d.$e(a)}}return b};km.prototype.hb=function(a){return a.title||""};km.prototype.pb=function(a,b){if(a)a.title=b||""};var lm=function(a,b,c){P.call(this,a,b||km.getInstance(),c);this.fd(8,k);this.$k(9,k)};w(lm,P);lm.prototype.hb=function(){return this.Ai};lm.prototype.pb=function(a){this.A.pb(this.k(),a);this.gg(a)};lm.prototype.gg=function(a){this.Ai=a};ml("goog-tab",function(){return new lm(l)});var mm=function(){rl.call(this)};w(mm,rl);fa(mm);mm.prototype.J=function(){return"goog-tab-bar"};mm.prototype.va=function(){return"tablist"};mm.prototype.ni=function(a,b,c){this.Gw||this.kr();var d=this.Gw[b];d?a.mp(d):mm.o.ni.call(this,a,b,c)};mm.prototype.Qb=function(a){var b=mm.o.Qb.call(this,a);this.aj||this.fm();b.push(this.aj[a.Nt()]);return b};mm.prototype.fm=function(){var a=this.J();this.aj=Ff("top",a+"-top","bottom",a+"-bottom","start",a+"-start","end",a+"-end")};
mm.prototype.kr=function(){this.aj||this.fm();this.Gw=Cf(this.aj)};var nm=function(a,b,c){this.mp(a||"top");R.call(this,this.Ff(),b||mm.getInstance(),c);var d=this.F();d.listen(this,"select",this.yv);d.listen(this,"unselect",this.Bv);d.listen(this,"disable",this.wv);d.listen(this,"hide",this.xv)};w(nm,R);nm.prototype.Bq=k;nm.prototype.cd=l;nm.prototype.i=function(){nm.o.i.call(this);this.cd=l};nm.prototype.removeChild=function(a,b){this.qj(a);return nm.o.removeChild.call(this,a,b)};nm.prototype.Nt=function(){return this.Rz};
nm.prototype.mp=function(a){this.el(a=="start"||a=="end"?"vertical":"horizontal");this.Rz=a};nm.prototype.ei=function(a){nm.o.ei.call(this,a);this.Bq&&this.mi(a)};nm.prototype.Bd=function(){return this.cd};nm.prototype.$e=function(a){if(a)a.li(k);else this.Bd()&&this.Bd().li(p)};nm.prototype.ye=function(){return this.Fe(this.Bd())};nm.prototype.mi=function(a){this.$e(this.qc(a))};
nm.prototype.qj=function(a){if(a&&a==this.Bd()){for(var b=this.Fe(a),c=b-1;a=this.qc(c);c--)if(this.bo(a)){this.$e(a);return}for(var d=b+1;a=this.qc(d);d++)if(this.bo(a)){this.$e(a);return}this.$e(l)}};nm.prototype.bo=function(a){return a.ma()&&a.W()};nm.prototype.yv=function(a){this.cd&&this.cd!=a.target&&this.cd.li(p);this.cd=a.target};nm.prototype.Bv=function(a){if(a.target==this.cd)this.cd=l};nm.prototype.wv=function(a){this.qj(a.target)};nm.prototype.xv=function(a){this.qj(a.target)};
nm.prototype.Cd=function(){this.ue()||this.ob(this.Bd()||this.qc(0))};ml("goog-tab-bar",function(){return new nm});var om=function(a,b,c,d,e){this.rb=a;this.Nh=b;this.cA=c;this.Vn=d;this.Kl=e;this.j=new cj(this);this.G=l};w(om,Gf);om.prototype.init=function(){this.G=new nm;this.G.decorate(this.cA);this.j.listen(this.G,"select",this.vv);this.j.listen(this.Vn,"click",this.uv);this.j.listen(this.Kl,"click",this.sv)};om.prototype.i=function(){om.o.i.call(this);this.j.dispose();this.G.dispose()};var pm=["inc","bal","cas"];
om.prototype.kl=function(a,b){G(E(this.rb+this.Nh+"div"),p);G(E(a+b+"div"),k);var c=E(this.rb+"-reuters");c&&G(c,p);(c=E(a+"-reuters"))&&G(c,k);this.rb=a;this.Nh=b};om.prototype.vv=function(a){this.kl(pm[a.currentTarget.ye()],this.Nh);_GF_click("","fs_type",this.rb,"")};om.prototype.sv=function(){this.Vn.className="nac";this.Kl.className="ac";this.kl(this.rb,"annual");_GF_click("","fs_period",this.Nh,"")};
om.prototype.uv=function(){this.Vn.className="ac";this.Kl.className="nac";this.kl(this.rb,"interim");_GF_click("","fs_period",this.Nh,"")};var qm=function(){var a=new om(_fs_type,_fs_period,E("fs-type-tabs"),E("interim"),E("annual"));a.init()};E("fs-type-tabs")&&C(window,"load",qm);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(),g=e.getFullYear(),i=0,j=[];j.push('<div style="padding-bottom:5px;text-align:left">');j.push("Jump to news for");j.push("</div><table>");for(var m=g;m>=g-1&&i<12;m--){j.push('<tr><td valign="top">');j.push(m);j.push('</td><td valign="top">');for(var n=f;n>=0&&i<12;n--){var o="";if(n+2<10)o="0";var q=n+2,s=m;if(q>12){q=1;s=m+1}if(c[i]>0){j.push('<a href="');j.push(b);
j.push(s);j.push("-");j.push(o);j.push(q);j.push("-");j.push("01");xj()&&j.push(xj());j.push('">');j.push(d[n]);j.push("</a>")}else j.push(d[n]);j.push('<span style="color:#888888;"> (');j.push(c[i]);j.push(")</span><br>");i++}j.push("</td></tr>");f=11}j.push("</table>");_gel(a).innerHTML=j.join("")};function _GF_Prefs(a){this.Zj=a}_GF_Prefs.prototype.xt=function(){return this.Zj};_GF_Prefs.prototype.get=function(a){return _prefs[this.Zj][a]};_GF_Prefs.prototype.set=function(a,b){_prefs[this.Zj][a]=b;var c=["/finance/prefs?action=set","&prefsgroup=",this.Zj,"&prefskey=",a,"&prefsval=",b,"&hash=",_prefs.hash],d=Te();d.onreadystatechange=function(){};d.open("GET",c.join(""),k);d.send(l)};var rm;
(function(){function a(m){var n=m.match(/[\d]+/g);n.length=3;return n.join(".")}var b=p,c="";if(navigator.plugins&&navigator.plugins.length){var d=navigator.plugins["Shockwave Flash"];if(d){b=k;if(d.description)c=a(d.description)}if(navigator.plugins["Shockwave Flash 2.0"]){b=k;c="2.0.0.11"}}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var e=navigator.mimeTypes["application/x-shockwave-flash"];if(b=e&&e.enabledPlugin)c=a(e.enabledPlugin.description)}else try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");b=
k;c=a(f.GetVariable("$version"))}catch(g){try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=k;c="6.0.21"}catch(i){try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");b=k;c=a(f.GetVariable("$version"))}catch(j){}}}rm=b})();(function(){var a=l,b=p;function c(i,j){var m=a.videos[i],n=m.player_url;if(j)n+="&autoplay=1&autoPlay=true";var o=new Mj("<a href='",m.video_url,"' rel=nofollow class=title>",m.title,"</a>","<div class=byline>",m.duration," - ",m.relative_date,"</div>"),q=new Mj("<embed id=videoPlay width=320 height=266","type='application/x-shockwave-flash' src='",n,"'</embed><input id=video_player_id type=hidden value='",i,"'/>"),s="";if(m.source)s=new Mj("<div class=byline>",m.source,"</div>");var r=new Mj(m.snippet,
s.toString());E("video-header").innerHTML=o.toString();E("video-player").innerHTML=q.toString();E("video-footer").innerHTML=r.toString()}function d(i,j){var m=a.videos[i],n="";if(m.source)n=" - "+m.source;var o=new Mj("<a href='",m.video_url,"' rel=nofollow class=title>",m.title,"</a>","<img src='",m.image_url,"' width=100 height=75 />","<div class=byline>",m.duration,n,"</div>","<input type=hidden name=video_id value='",i,"'/><br/>");E(j).innerHTML=o.toString();E(j).getElementsByTagName("img")[0].onclick=
e}function e(){var i=E("video-player").getElementsByTagName("input")[0].value,j=this.parentNode.id,m=E(j).getElementsByTagName("input")[0].value;m<a.videos.length&&_GF_click("","video",a.videos[m].source,"");c(m,k);d(i,j)}function f(){if(!b&&t.google.finance.video){b=k;a=t.google.finance.video;if(rm){c(0,p);for(var i=1;i<=4&&i<a.videos.length;++i)d(i,"video-"+i)}}}function g(){if(E("video-header")){for(var i=1;i<=4;++i){var j="video-"+i;if(E(j))E(j).innerHTML=""}E("video-header").innerHTML="";E("video-player").innerHTML=
"";E("video-footer").innerHTML="";b=p}}v("google.finance.initVideos",f);v("google.finance.removeVideos",g)})();var sm=function(a,b){N.call(this,b);this.Dh=a||""};w(sm,N);sm.prototype.Ob=l;sm.prototype.g=function(){this.Ye(this.b.g("input",{type:"text"}))};sm.prototype.ja=function(a){sm.o.ja.call(this,a);if(!this.Dh)this.Dh=a.getAttribute("label")||""};sm.prototype.Q=function(){sm.o.Q.call(this);this.Aq();this.zg();this.k().Nz=this};sm.prototype.ka=function(){sm.o.ka.call(this);this.wm();this.k().Nz=l};
sm.prototype.Aq=function(){var a=new cj(this);a.listen(this.k(),"focus",this.Wu);a.listen(this.k(),"blur",this.Mu);Wf&&a.listen(this.k(),["keypress","keydown","keyup"],this.Uu);var b=ph(this.k()),c=Ch(b);a.listen(c,"load",this.Hv);this.ca=a;this.Pl()};sm.prototype.Pl=function(){if(!this.Jz&&this.ca&&this.k().form){this.ca.listen(this.k().form,"submit",this.Xu);this.Jz=k}};sm.prototype.wm=function(){if(this.ca){this.ca.dispose();this.ca=l}};sm.prototype.i=function(){sm.o.i.call(this);this.wm()};
sm.prototype.Gi="label-input-label";sm.prototype.Wu=function(){jh(this.k(),this.Gi);if(!this.Ce()&&!this.dw){var a=this,b=function(){a.k().value=""};B?ei(b,10):b()}};sm.prototype.Mu=function(){this.Ob=l;this.zg()};sm.prototype.Uu=function(a){if(a.keyCode==27){if(a.type=="keydown")this.Ob=this.k().value;else if(a.type=="keypress")this.k().value=this.Ob;else if(a.type=="keyup")this.Ob=l;a.preventDefault()}};sm.prototype.Xu=function(){if(!this.Ce()){this.k().value="";ei(this.Lu,10,this)}};
sm.prototype.Lu=function(){if(!this.Ce())this.k().value=this.Dh};sm.prototype.Hv=function(){this.zg()};sm.prototype.Ce=function(){return this.k().value!=""&&this.k().value!=this.Dh};sm.prototype.clear=function(){this.k().value="";if(this.Ob!=l)this.Ob=""};sm.prototype.ua=function(a){if(this.Ob!=l)this.Ob=a;this.k().value=a;this.zg()};sm.prototype.xa=function(){if(this.Ob!=l)return this.Ob;return this.Ce()?this.k().value:""};
sm.prototype.zg=function(){this.Pl();if(this.Ce())jh(this.k(),this.Gi);else{this.dw||hh(this.k(),this.Gi);ei(this.Gx,10,this)}};sm.prototype.wf=function(){this.dw=p};sm.prototype.Gx=function(){if(this.k()&&!this.Ce())this.k().value=this.Dh};var tm=function(a){this.Ig=this.qd=0;this.Gm=a;this.Qg=[];this.Va=l;this.j=new cj(this);this.G=l;this.Hd()};tm.prototype.Hd=function(){Ze(this.Gm,function(c){ef(this.Qg,"l_exch_"+c)},this);var a=E("trends");if(a){this.G=new nm;this.G.decorate(a);this.j.listen(this.G,"select",this.zv);this.qd=Ye(um,this.G.Bd().T().firstChild.id)}for(var b=0;b<this.Qg.length;++b)(a=E(this.Qg[b]))&&this.j.listen(a,"click",this.tv)};
var um=["l_tm_zeitgeist","l_tm_price","l_tm_mcap","l_tm_volume"],vm=["tm_zeitgeist","tm_price","tm_mcap","tm_volume"],wm=["z","p","m","v"];
tm.prototype.zv=function(a){var b=Ye(um,a.target.T().firstChild.id);if(b>-1){this.qd=b;for(var c=0;c<vm.length;++c){var d=E(vm[c]+"_"+this.Ig);if(d)d.style.display=c==this.qd?"block":"none"}if(d=E("tm_zeitgeist"))d.style.display=this.qd==0?"block":"none";var e=E("tm-exchanges");if(e)e.style.display=this.qd==0?"none":"block";if(!this.Va)this.Va=new _GF_Prefs("home_tabs");this.Va.set("trends",wm[this.qd])}};
tm.prototype.tv=function(a){this.Ig=Ye(this.Qg,a.currentTarget.id);for(var b=0;b<this.Gm.length;++b){var c=E(this.Qg[b]);if(c)c.className=this.Ig==b?"ac":"nac";var d=E(vm[this.qd]+"_"+b);if(d)d.style.display=b==this.Ig?"block":"none"}if(d=E("tm_zeitgeist"))d.style.display=this.qd=="tm_zeitgeist"?"block":"none";_GF_click("","hp_movers",this.Gm[this.Ig],"")};t.google=t.google||{};t.google.MiniPortfolios=t.google.MiniPortfolios||{};t.google.finance=t.google.finance||{};function _GF_checkPromos(){var a=new _GF_Prefs("promo");a.get("ig0")!="1"&&vj("","promo","p-i-ig0","")()}function _GF_onPromo(a){vj("","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");vj("","promo","p-c-"+a,"")();var c=E(a);if(c){var d=Ri(c).height,e=new Yi(c,d,0,1000,gi),f=new $i(c,1000,gi);e.play();f.play()}}
(function(){var a=["market-news","portfolio-news","video-news"],b=["m","p","v"],c=l;function d(m){for(var n=Ph(m.target.T()).id,o=0;o<a.length&&a[o]+"-title"!=n;++o);if(!(o>=a.length)){c||(c=new _GF_Prefs("home_tabs"));c.set("news",b[o]);_GF_click("","hp_"+b[o],b[o],"");o==2?t.google.finance.initVideos():t.google.finance.removeVideos();for(var q=0;q<a.length;++q){var s=E(a[q]);if(s)s.style.display=o==q?"":"none"}}}function e(){var m=E("video-news");m&&m.style.display!="none"&&t.google.finance.initVideos();
if(m=E("news-tabs")){var n=new nm;n.decorate(m);C(n,"select",d)}}function f(){if(qj()){var m={"market-news":"M","pf-news":"P","country-widget":"C",bonds:"B",currencies:"F",markets:"A",portfolios:"W",trend:"T","economy-indicators":"I"},n=Nl,o=new Pl(m,"MPCT,WAFB",new _GF_Prefs("home")),q=new Ml(k,k,p);C(q,[n.MOVE_TO_TOP,n.MOVE_UP,n.MOVE_DOWN,n.MOVE_TO_LEFT,n.MOVE_TO_RIGHT,n.MAXIMIZE,n.MINIMIZE],u(o.Dn,o));q.decorate(E("reorder"))}}function g(){if(qj()){var m=function(q){if(q.id){var s=q.id.replace("portfolio",
"");s>=0&&t.google.MiniPortfolios.setPortfolioVisible(s,q.type==n.MAXIMIZE)}},n=Nl,o=new Ml(p,k,p);C(o,[n.MAXIMIZE,n.MINIMIZE],m);o.decorate(E("home-portfolios"))}}function i(){var m=E("mkt-chart");if(m){var n=new T(m.src);n.I("auto","1");n.Yc();m.src=n.toString();t.setTimeout(i,120000)}}function j(){if(qj()){var m=E("topmovers");m&&gj().dl(m,700);(m=E("secperf"))&&gj().dl(m,700);gj().Th(Bj(vh("","news-section-ol"),1200));var n=E("watchlist");if(n){_ac_register(function(q){if(q.id=="watchlist")return _p_Store;
if(q.id=="searchbox")return _s_Store});(new sm).decorate(n)}t.setTimeout(i,120000)}else gj().dl(E("fix-w"),548);e();if(Wf&&E("axs_link"))E("axs_link").style.display="block";new tm(google.finance.data.home.tmExch);f();g();var o=E("searchbox");if(o){o.focus();o.select()}rj();Xl("h")}v("google.finance.onHomeLoad",j);v("google.finance.onPortfolioBoxLoad",g)})();
(function(){var a=window.google.MiniPortfolios,b=[],c="";a.setHiddenPids=function(e,f){if(e)b=e.split(",");d(0)==-1&&b.push(0);c=f};function d(e){for(var f=-1,g=0;g<b.length;++g)if(b[g]==e){f=g;break}return f}a.setPortfolioVisible=function(e,f){var g=d(e);if(f)g!=-1&&b.splice(g,1);else g==-1&&b.push(e);var i=["/finance/prefs?action=set","&prefsgroup=home","&prefskey=hidden_pids","&prefsval=",escape(b.join(",")),"&hash=",c],j=Te();j.onreadystatechange=function(){};j.open("GET",i.join(""),k);j.send(l)};
a.togglePortfolio=function(e,f){var g=E("portfolio"+e),i=E("mktCap"+e);if(g&&i){var j=E("more"+e);if(f.innerHTML=="hide"){f.innerHTML="show";g.style.display="none";i.style.display="none";if(j)j.style.display="none";a.setPortfolioVisible(e,p)}else{f.innerHTML="hide";g.style.display="";i.style.display="";if(j)j.style.display="";a.setPortfolioVisible(e,k)}}}})();var Fm=function(a,b){var c="Name",d="Symbol",e=b||new Nj;e.append('<table class="gf-table rgt"><thead><tr class="portfolio-header-row"><th class="lft chk"><input class=gf-table-chkall type=checkbox ><th class="lft pf-table-lname">',c);U(l,e);e.append("<th class=lft>",d);U(l,e);if(a.columnKeys.value!="transactions"){e.append("<th>","Last price");U(l,e)}if(a.columnKeys.value=="overview")xm(l,e);else if(a.columnKeys.value=="fundamentals")ym(l,e);else if(a.columnKeys.value=="performance")zm(l,e);else if(a.columnKeys.value==
"returns")Am(l,e);else a.columnKeys.value=="transactions"&&Bm({displayCash:a.clientData.displayCash},e);e.append("<tfoot>");Cm({rawFooter:a.rawFooter,columnKeys:a.columnKeys},e);if(a.rawFooter.su&&a.columnKeys.value!="transactions"){e.append('<tr class="hilite portfolio-value-row"><td><td class="lft pf-table-cell" colspan=3>',"Portfolio value:");for(var f=a.columnKeys.columnKeys,g=f.length,i=0;i<g;i++){var j=f[i];!(i==0)&&j.value!="lname"&&j.value!="s"&&j.value!="lp"&&j.value!="n"&&Dm({colormap:a.columnKeys.colormap,
dirmap:a.columnKeys.dirmap,col:j,rawContent:a.rawFooter.su},e)}}e.append("<tbody>");for(var m=a.rawContents,n=m.length,o=0;o<n;o++){var q=m[o];Em({columnKeys:a.columnKeys,hideCheckBox:k,rawContent:q},e);e.append(q.n?"<tr class=pf-table-n><td><td><td><td colspan="+(a.clientData.displayCash?"6":"5")+" class=lft>"+L(q.n)+"</td>":"")}e.append("</table>");if(!b)return e.toString()},Em=function(a,b){var c=b||new Nj;c.append("<tr",a.rawContent.n?" class=pf-table-wn":"",">");for(var d=a.columnKeys.columnKeys,
e=d.length,f=0;f<e;f++){var g=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 if(g.value=="lname"||g.value=="s"){c.append('<td class="pf-table-',L(g.value),' lft pf-table-cell">');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[g.value]){c.append(L(a.rawContent[g.value]));
a.rawContent.ia||c.append(" ","(Inactive)")}c.append("</a>")}else if(a.rawContent.ic&&g.value=="lname")c.append("Cash");else a.rawContent[g.value]&&c.append(L(a.rawContent[g.value]))}else if(g.value=="tp"){c.append('  <td class="pf-table-tp lft pf-table-cell">');if(1==a.rawContent.tp){var i="Buy";c.append(i)}else if(2==a.rawContent.tp){var j="Sell";c.append(j)}else if(3==a.rawContent.tp)c.append("Buy to Cover");else if(4==a.rawContent.tp)c.append("Sell Short");else if(7==a.rawContent.tp)c.append("Deposit Cash");
else if(8==a.rawContent.tp)c.append("Withdraw Cash");else if(9==a.rawContent.tp)c.append("Dividend (paid to cash)");else if(10==a.rawContent.tp)c.append("Dividend (scheduled)");else 11==a.rawContent.tp?c.append("Split"):c.append("Unrecognized type: ",L(a.rawContent.tp));c.append("</td>")}else g.value!="n"&&Dm({colormap:a.columnKeys.colormap,dirmap:a.columnKeys.dirmap,col:g,rawContent:a.rawContent},c)}if(!b)return c.toString()},Dm=function(a,b){var c=b||new Nj;c.append('<td class="pf-table-',L(a.col.value),
" pf-table-cell",a.dirmap[a.col.value]?" lft":" rgt",a.rawContent[a.col.value]?'">'+(a.col.value=="cp"?"<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)+" >("+L(a.rawContent.cp.f)+"%)</span>":a.col.value=="lp"?"<span id=ref_"+L(a.rawContent.cid)+"_l>"+L(a.rawContent[a.col.value].f)+"</span>":a.col.value=="g"||a.col.value=="gp"?"<span class="+L(a.rawContent.gs)+" >"+(a.col.value=="gp"?
L(a.rawContent[a.col.value])+"%":L(a.rawContent[a.col.value].f))+"</span>":a.col.value=="dg"?"<span class="+L(a.rawContent.cs)+" >"+L(a.rawContent[a.col.value].f)+"</span>":a.col.value=="lp"||a.col.value=="cp"||a.col.value=="b"||a.col.value=="mv"||a.col.value=="cap"||a.col.value=="op"||a.col.value=="hi"||a.col.value=="lo"||a.col.value=="eps"||a.col.value=="hi52"||a.col.value=="lo52"||a.col.value=="vol"||a.col.value=="pc"||a.col.value=="cv"||a.col.value=="com"||a.col.value=="avvo"?L(a.rawContent[a.col.value].f):
L(a.rawContent[a.col.value]))+(a.col.value=="lp"?a.rawContent.lpd>0?"*":"":a.col.value=="r1w"||a.col.value=="r1y"||a.col.value=="r3m"||a.col.value=="r3y"||a.col.value=="r4w"||a.col.value=="r5y"||a.col.value=="rytd"||a.col.value=="rt"?"%":""):'">');if(!b)return c.toString()},U=function(a,b){var c=b||new Nj;c.append("<span class=sort-arrow>&#9650;</span><span class=reverse-sort-arrow>&#9660;</span>");if(!b)return c.toString()},xm=function(a,b){var c="Change",d="Mkt cap",e="Open",f=b||new Nj;f.append("<th>",
c);U(l,f);f.append("<th>",d);U(l,f);f.append("<th>","Volume");U(l,f);f.append("<th>",e);U(l,f);f.append("<th>","High");U(l,f);f.append("<th>","Low");U(l,f);f.append("<th>","Day's gain");U(l,f);if(!b)return f.toString()},ym=function(a,b){var c="Mkt cap",d="Avg vol",e="52wk high",f="52wk low",g="EPS",i="P/E",j="Fw P/E",m="Beta",n=b||new Nj;n.append("<th>",c);U(l,n);n.append("<th>",d);U(l,n);n.append("<th>",e);U(l,n);n.append("<th>",f);U(l,n);n.append("<th>",g);U(l,n);n.append("<th>",i);U(l,n);n.append("<th>",
j);U(l,n);n.append("<th>",m);U(l,n);if(!b)return n.toString()},zm=function(a,b){var c="Change",d="Shares",e="Cost basis",f="Mkt value",g="Gain",i="Gain&nbsp;%",j="Day's gain",m="Overall return",n=b||new Nj;n.append("<th>",c);U(l,n);n.append("<th>",d);U(l,n);n.append("<th>",e);U(l,n);n.append("<th>",f);U(l,n);n.append("<th>",g);U(l,n);n.append("<th>",i);U(l,n);n.append("<th>",j);U(l,n);n.append("<th>",m);U(l,n);if(!b)return n.toString()},Am=function(a,b){var c="1w return",d="4w return",e="3m return",
f="YTD return",g="1y return",i="3y return",j="5y return",m="Overall return",n=b||new Nj;n.append("<th>",c);U(l,n);n.append("<th>",d);U(l,n);n.append("<th>",e);U(l,n);n.append("<th>",f);U(l,n);n.append("<th>",g);U(l,n);n.append("<th>",i);U(l,n);n.append("<th>",j);U(l,n);n.append("<th>",m);U(l,n);if(!b)return n.toString()},Bm=function(a,b){var c="Type",d="Date",e="Shares",f="Price",g="Commission",i=b||new Nj;i.append("<th class=lft>",c);U(l,i);i.append("<th class=lft>",d);U(l,i);i.append("<th>",e);
U(l,i);i.append("<th>",f);U(l,i);if(a.displayCash){var j="Cash value";i.append("<th>",j);U(l,i)}i.append("<th>",g);U(l,i);if(!b)return i.toString()},Cm=function(a,b){var c="Cash<span id=add_cash_prompt> - <a class=jslink id=deposit_cash>Deposit</a> / <a class=jslink id=withdraw_cash>Withdraw</a></span>",d="Amount",e="Add to portfolio",f=b||new Nj;f.append('<tr class=cash><td class=no-border>&nbsp;<td colspan=2 class="lft no-border pf-table-cell">',c,'<td class="no-border pf-table-cell ',L(a.rawFooter.cts),
'">',a.columnKeys.value!="transactions"?L(a.rawFooter.ct):"",'<td colspan=20 class=no-border>&nbsp;<tr id=add_cash_row style="display:none"><td class="no-p-top no-border">&nbsp;<td colspan=20 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>",d,"<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="',e,'"><input type=button id=cancel_add_cash value="',"Cancel",'"></span></nobr></form><tr height=1><td colspan=20 style="padding:0;font-size:0;">&nbsp;');
if(!b)return f.toString()};var Gm=function(a,b){D.call(this);this.tb=a;this.Pz=b||l;this.j=new cj(this)};w(Gm,D);Gm.prototype.decorate=function(a){this.j.listen(a,"click",this.Rb)};Gm.prototype.i=function(){Gm.o.i.call(this);this.j.dispose()};Gm.prototype.Rb=function(){for(var a=[],b=this.tb.xn(),c=0;c<b.length;++c)a[c]=b[c].e+":"+b[c].s;if(a.length>1){var d="/finance?q="+a.join()+xj();if(this.Pz)window.open(d);else window.location=d}else this.dispatchEvent({type:"error"})};var Hm=function(a,b){D.call(this);if(!b)h(Error("No checkbox handler info."));this.Ua=a;this.j=new cj(this),this.tb=b;this.qz()};w(Hm,D);Hm.prototype.decorate=function(a){this.j.listen(a,"click",this.Rb)};Hm.prototype.Rb=function(){var a=this.tb.xn();if(!a||a.length==0)this.dispatchEvent({type:"error"});this.Kf(a,this.tb.Fu())};Hm.prototype.Kf=function(){h(Error("Not implemented yet."))};Hm.prototype.i=function(){Hm.o.i.call(this);this.j.dispose()};
Hm.prototype.qz=function(){if(!this.Ua||!this.Ua.id||!this.Ua.expected_hash||!this.Ua.name||!this.Ua.currency)h(Error("No portfolio info."))};var Im=function(a,b){Hm.call(this,a,b)};w(Im,Hm);
Im.prototype.Kf=function(a,b){for(var c=[],d=0;d<b.length;++d){var e=b[d].e;c[d]=e+":"+b[d].s}var f=Eh("form",{action:"/finance/portfolio?action=edit_portfolio&hash="+this.Ua.expected_hash+document.location.hash,method:"post"},Eh("input",{name:"pid",value:this.Ua.id}),Eh("input",{name:"editmode",value:"trans"}),Eh("input",{name:"currency_code",value:this.Ua.currency}),Eh("input",{name:"pname",value:this.Ua.name}),Eh("input",{name:"watchlist",value:c.join(" ")}));G(f,p);F(document.body,f);f.submit()};
var Jm=function(a,b){Hm.call(this,a,b)};w(Jm,Hm);Jm.prototype.Kf=function(a){var b=Eh("form",{action:"/finance/portfolio?action=edit_transactions&hash="+this.Ua.expected_hash+document.location.hash,method:"post"},Eh("input",{name:"pid",value:this.Ua.id}),Eh("input",{name:"editmode",value:"trans"}));G(b,p);for(var c=0;c<a.length;++c){var d=a[c].tid;if(d){var e=Eh("input",{name:"edit_del_"+d,value:"on"}),f=Eh("input",{name:"edit_id_"+d,value:d});F(b,e);F(b,f)}}F(document.body,b);b.submit()};var Km=function(){D.call(this);this.j=new cj(this)};w(Km,D);Km.prototype.decorate=function(a){this.j.listen(a,"click",this.Rb)};Km.prototype.i=function(){Km.o.i.call(this);this.j.dispose()};Km.prototype.Rb=function(){if(window.confirm("Permanently delete this portfolio and all transactions in it?")){var a=E("delete-portfolio-form"),b=E("delete-portfolio-confirm");if(a&&b){b.checked=k;a.submit()}}};(function(){var a=function(f){return f.getAttribute("pf:uid")},b=function(f,g){var i=f.cells[g],j=i.getAttribute("pf:pcol_val");if(j)return j;return""},c=function(f,g){return Lm(f,g,a,0)},d=function(f,g){return Lm(f,g,a,1)};Ae.prototype.ba("pcol_numeric_null",l,c,b,d);var e=function(f,g){return Mm(f,g,a)};Ae.prototype.ba("alpha_with_sec",Ie,e)})();
var _pf_attach_sortable_table=function(a,b,c){var d=y(a);if(!d||!d.tHead||!d.tHead.rows[0])return l;for(var e={alpha:"alpha_with_sec",num_with_null:"pcol_numeric_null"},f=[],g=d.tHead.rows[0].cells,i=0;i<g.length;i++){var j=g[i].getAttribute(b),m=e[j];m||(m="None");f.push(m)}var n=new Ae(d,f);n.onsort=sa(c,n);if(Vf)d.style.display="table";return n},_pf_get_sort_col_attr=function(a,b){if(!a||!a.tHead)return l;if(!b)return l;var c=a.sortColumn;if(!c)return l;var d=a.tHead.rows[0].cells[c],e=d.getAttribute(b);
if(!e)return l;return{attr_val:e,descending:a.descending}},_pf_set_sort_col_from_attr=function(a,b,c,d){if(!(!a||!a.tHead||!b||!c))for(var e=a.tHead.rows[0].cells,f=0;f<e.length;f++){var g=e[f];if(g.getAttribute(b)==c&&g._sortType!=l&&g._sortType!="None"){a.sortColumn=f;a.descending=d;a.vl();break}}},_pf_setup_multiticker_handler=function(a,b,c){if(!(!a||!b||!c)){var d=y(a),e=y(b);if(d&&e){var f=th(undefined,c,d);if(!(f.length==0)){var g=function(){var i=e.value.replace(/^\W+/,"").replace(/\W+$/,
""),j=p;if(i.indexOf(" ")!=-1||i.indexOf(",")!=-1)j=k;for(var m=0;m<f.length;m++){var n=f[m];n.disabled=j?k:p}};e.onkeyup=g}}}};function Nm(){var a=y("aform");if(a)for(var b=th(undefined,"no_multi",a),c=0;c<b.length;++c){var d=b[c];d.disabled=p}}
var _pf_add_init=function(){var a=function(o,q){return Om(o,q,"active-view")};_pf_setup_multiticker_handler("aform","add_symbols","no_multi");Pm("add_date");Pm("add_date_cash");var b=y("add-trans-t"),c=y("add_symbols"),d=y("transaction_menu"),e=y("cash_menu"),f=["add_basic","add_trans","add_cash","add_import","add_import_ofx"],g=["add-trans-form","add-import-form","add-import-ofx-form"];if(b){var i=y("add_basic");if(i)i.onmousedown=function(){hh(b,"basics");jh(b,"details");jh(b,"cash");hh(b,"purchase");
a(f,"add_basic");a(g,"add-trans-form");c.disabled=p;c.value="";y("add_editmode").value="basic";Nm()};var j=y("add_trans");if(j)j.onmousedown=function(){hh(b,"details");jh(b,"basics");jh(b,"cash");a(f,"add_trans");a(g,"add-trans-form");c.disabled=p;c.value="";y("add_editmode").value="trans";d.name="menu_type";e.name="disabled";Nm();_pfAddTransactionMenuOnchange()};var m=y("add_cash");if(m)m.onmousedown=function(){hh(b,"cash");jh(b,"basics");jh(b,"details");a(f,"add_cash");a(g,"add-trans-form");c.disabled=
k;c.value="(cash)";y("add_editmode").value="trans";d.name="disabled";e.name="menu_type";Nm()}}var n=y("add_import");if(n)n.onmousedown=function(){a(f,"add_import");a(g,"add-import-form");var o=document.getElementById("editframe").contentDocument;if(o)o.designMode="on"};if(n=y("add_import_ofx"))n.onmousedown=function(){a(f,"add_import_ofx");a(g,"add-import-ofx-form");var o=document.getElementById("editframe").contentDocument;if(o)o.designMode="on"}},_pfAddTransactionMenuOnchange=function(){var a=y("add-trans-t"),
b=y("add_ttype");if(a&&b)0==b.selectedIndex||2==b.selectedIndex?hh(a,"purchase"):jh(a,"purchase")},_pf_add_submit_import=function(){var a=y("editframe");document.forms.importform.content.value=a.contentWindow.document.body.innerHTML;document.forms.importform.submit()},_pf_edit_setup_edit_module=function(){var a=y("tedit_t");if(a){var b=["edit_basic","edit_trans"],c=y("edit_basic");if(c)c.onmousedown=function(){jh(a,"details");Om(b,"edit_basic","active-view");y("edit_editmode").value="basic"};var d=
_forid("edit_trans");if(d)d.onmousedown=function(){hh(a,"details");Om(b,"edit_trans","active-view");y("edit_editmode").value="trans"}}},_pf_edit_init=function(){_pf_edit_setup_edit_module();var a=y("edit_sortlink");if(a)a.style.display=""},_pf_edit_attach_dp=function(a){var b=y(a);if(b&&b.tBodies[0]){var c=th(undefined,"input_date",b);Ze(c,function(d){Pm(d.id)})}},Rm=function(a){var b=new Qm(a);b.init();return b};v("google.finance.portfolio.init",Rm);var Tm=function(){new Sm};
v("google.finance.portfolio.initTransactionBar",Tm);var Vm=function(){new Um};v("google.finance.portfolio.initAddCashSection",Vm);var Wm=function(){Pm("add_date");Pm("add_date_cash")};v("google.finance.portfolio.initDatePickers",Wm);var Qm=function(a){Xm();this.G=this.P=l;this.j=new cj(this);this.pj=this.qf=this.gj=this.tb=this.A=l;this.Ua=a;this.nA=new Sm;this.Iq=l};w(Qm,Gf);
var Ym={"pf-overview":"sview","pf-fundamentals":"fview","pf-perf":"pview","pf-returns":"rview","pf-trans":"tview"},Zm={"pf-overview":0,"pf-fundamentals":1,"pf-perf":2,"pf-returns":3,"pf-trans":4},$m={sview:0,fview:1,pview:2,rview:3,tview:4},an={0:"action=view&pview=sview",2:"action=view&pview=pview",3:"action=view&pview=rview",4:"action=viewt"};
Qm.prototype.init=function(){var a=google.finance.data.portfolio_view.portfolio_table;if(a.cps){this.mw();this.lw(a);this.Iq=new Um}var b=E("delete-portfolio-link");if(b){this.pj=new Km;this.pj.decorate(b)}};Qm.prototype.i=function(){Qm.o.i.call(this);this.j.dispose();this.P.dispose();this.pj&&this.pj.dispose()};
Qm.prototype.lw=function(a){var b=E("pf-view-table");if(a&&b){var c=Ph(this.G.Bd().T()).id,d=Zm[c],e=bn[d];this.P=new Rj(e,this.Zg(d),l,a);var f=google.finance.data.portfolio_view.transaction_table.dc;this.A=new Tj(this.P,Fm,Em,p,{displayCash:f});this.Sn(d,k);F(b,this.A.k())}};Qm.prototype.Eu=function(a){var b=Qm.prototype.Zg(4);if(a>=b.length)return-1;for(var c=0,d=0;d<a;d++)if(b[d].n&&typeof b[d].n=="string")c+=2;else c++;return c};
Qm.prototype.Sn=function(a,b){b&&new fk(this.P,this.A,cn);var c=l;if(a==4)c=this.Eu;this.tb=new Wj(this.P,this.A,0,this.ou(a),c);if(a!=4){E("pf-compare").style.display="inline";var d=new Gm(this.tb,google.finance.data.common.linktargetInternal);d.decorate(E("pf-compare"));this.gj=d;this.qf=new Im(this.Ua,this.tb)}else this.qf=new Jm(this.Ua,this.tb);this.qf.decorate(E("pf-delete"))};
Qm.prototype.Sq=function(){this.gj&&this.gj.dispose();this.qf&&this.qf.dispose();this.tb&&this.tb.dispose();this.tb=this.gj=this.qf=l;E("pf-compare").style.display="none"};Qm.prototype.mw=function(){var a=E("pf-tabs");if(a){var b=function(e){e.preventDefault();e.stopPropagation()};for(var c in Ym){var d=E(c);d&&C(d,"click",b)}this.G=new nm;this.G.decorate(a);this.j.listen(this.G,"select",this.Av)}};Qm.prototype.Zg=function(a){return a==4?google.finance.data.portfolio_view.transaction_table.txns:google.finance.data.portfolio_view.portfolio_table.cps};
Qm.prototype.ou=function(a){return a==4?"tid":"cid"};var dn=function(a,b){var c=$m[b];if(!E("pf-returns")){if(b=="rview")return;b=="tview"&&c--}a.G.mi(c)};v("google.finance.portfolio.selectTab",dn);Qm.prototype.Av=function(a){var b=Ph(a.target.T()),c=b.id,d=Ym[c];vj("","pf_views",d,"");var e=Zm[c];if(e!=-1&&E("pf-view-table"))this.Py(e);else if(!E("pf-empty"))window.location=b.href;this.Iq=new Um};
Qm.prototype.Py=function(a){if(this.P){this.Sq();this.P.Fc(this.Zg(a),bn[a]);this.Sn(a,p)}var b=an[a],c=E("download"),d="disabled-url";if(b&&c&&(E("pf-returns")||a!=3)){jh(c,d);c.onclick=function(){return k};c.href="/finance/portfolio?pid="+this.Ua.id+"&output=csv&"+b+xj()}else if(c){hh(c,d);c.onclick=function(){return p};c.href="#"}};
var bn=l,cn=l,Xm=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"]);var b=[{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","fwpe","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}],c={rt:k,r1w:k,r4w:k,r3m:k,rytd:k,r1y:k,r3y:k,r5y:k,pc:k,cv:k},d={tp:k,dtf:k,n:k};bn=[];for(var e=0;e<b.length;++e){var f=new Sj(b[e].keys);f.ua(b[e].value);bn[e]=f;bn[e].colormap=c;bn[e].dirmap=d}if(!cn){var g=new ak;for(e=0;e<b.length;++e)for(var i=3,j=b[e].keys.length;i<j;++i)g.register(b[e].keys[i],en);g.register("chk",l);g.register("lname",dk);g.register("s",dk);g.register("tp",dk);g.register("dtf",fn);cn=g}},fn=
function(a,b,c,d){return Number(c.dti)-Number(d.dti)},en=function(a,b){if(a.so!=l&&a.so!==""&&b.so!=l&&b.so!=="")return Number(a.so)-Number(b.so);else if(a.so==="")return 1;else if(b.so==="")return-1;return ek(a,b)},Sm=function(){var a=E("pf-add-trans-toggle-btn");a&&C(a,"click",this.Yy)};
Sm.prototype.Yy=function(){var a=E("pf-add-trans-bar");if(a)kh(a,"pf-add-trans-basic","pf-add-trans-detailed")||kh(a,"pf-add-trans-detailed","pf-add-trans-basic");var b=E("add_editmode");if(b)b.value="basic"==b.value?"trans":"basic"};var Um=function(){var a=E("deposit_cash");a&&C(a,"click",Um.prototype.yp);(a=E("withdraw_cash"))&&C(a,"click",Um.prototype.Dp);(a=E("cancel_add_cash"))&&C(a,"click",Um.prototype.Pn)};
Um.prototype.yp=function(){E("add_cash_row").style.display="";E("add_cash_type").value="CASH_DEPOSIT";E("type_prompt").innerHTML="Deposit:";E("add_cash_prompt").style.display="none"};Um.prototype.Dp=function(){E("add_cash_row").style.display="";E("add_cash_type").value="CASH_WITHDRAWAL";E("type_prompt").innerHTML="Withdraw:";E("add_cash_prompt").style.display="none"};Um.prototype.Pn=function(){E("add_cash_row").style.display="none";E("add_cash_prompt").style.display=""};var gn=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,hn=function(a){return a.match(gn)},jn=function(a,b){var c=hn(a),d=hn(b);return c[3]==d[3]&&c[1]==d[1]&&c[4]==d[4]},kn=function(a,b,c,d){for(var e=b,f=c.length;(e=a.indexOf(c,e))>=0&&e<d;){var g=a.charCodeAt(e-1);if(g==38||g==63){var i=a.charCodeAt(e+f);if(!i||i==61||i==38||i==35)return e}e+=f+1}return-1},ln=/#|$/,mn=function(a,b){var c=a.search(ln),d=kn(a,0,b,c);if(d<0)return l;else{var e=
a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return za(a.substr(d,e-d))}};var T=function(a,b){var c;if(a instanceof T){this.Sd(b==l?a.Dt():b);this.ki(a.wn());this.oi(a.Bn());this.bi(a.bn());this.ii(a.Pj());this.fg(a.Hf());this.fl(a.hu().clone());this.di(a.kn())}else if(a&&(c=hn(String(a)))){this.Sd(!!b);this.ki(c[1]||"",k);this.oi(c[2]||"",k);this.bi(c[3]||"",k);this.ii(c[4]);this.fg(c[5]||"",k);this.ji(c[6]||"",k);this.di(c[7]||"",k)}else{this.Sd(!!b);this.La=new nn(l,this,this.Ub)}};T.prototype.Gc="";T.prototype.cf="";T.prototype.me="";T.prototype.Se=l;
T.prototype.Ca="";T.prototype.pe="";T.prototype.yw=p;T.prototype.Ub=p;T.prototype.toString=function(){if(this.sb)return this.sb;var a=[];this.Gc&&a.push(on(this.Gc,pn),":");if(this.me){a.push("//");this.cf&&a.push(on(this.cf,pn),"@");a.push(qn(this.me));this.Se!=l&&a.push(":",String(this.Pj()))}this.Ca&&a.push(on(this.Ca,rn));var b=String(this.La);b&&a.push("?",b);this.pe&&a.push("#",on(this.pe,sn));return this.sb=a.join("")};
T.prototype.resolve=function(a){var b=this.clone(),c=a.Qv();if(c)b.ki(a.wn());else c=a.Sv();if(c)b.oi(a.Bn());else c=a.Ln();if(c)b.bi(a.bn());else c=a.Nv();var d=a.Hf();if(c)b.ii(a.Pj());else if(c=a.Mn()){if(d.charAt(0)!="/")if(this.Ln()&&!this.Mn())d="/"+d;else{var e=b.Hf().lastIndexOf("/");if(e!=-1)d=b.Hf().substr(0,e+1)+d}d=tn(d)}if(c)b.fg(d);else c=a.Ov();if(c)b.ji(a.$s());else c=a.Lv();c&&b.di(a.kn());return b};
T.prototype.clone=function(){return un(this.Gc,this.cf,this.me,this.Se,this.Ca,this.La.clone(),this.pe,this.Ub)};T.prototype.wn=function(){return this.Gc};T.prototype.ki=function(a,b){this.zb();delete this.sb;if(this.Gc=b?vn(a):a)this.Gc=this.Gc.replace(/:$/,"");return this};T.prototype.Qv=function(){return!!this.Gc};T.prototype.Bn=function(){return this.cf};T.prototype.oi=function(a,b){this.zb();delete this.sb;this.cf=b?vn(a):a;return this};T.prototype.Sv=function(){return!!this.cf};
T.prototype.bn=function(){return this.me};T.prototype.bi=function(a,b){this.zb();delete this.sb;this.me=b?vn(a):a;return this};T.prototype.Ln=function(){return!!this.me};T.prototype.Pj=function(){return this.Se};T.prototype.ii=function(a){this.zb();delete this.sb;if(a){a=Number(a);if(isNaN(a)||a<0)h(Error("Bad port number "+a));this.Se=a}else this.Se=l;return this};T.prototype.Nv=function(){return this.Se!=l};T.prototype.Hf=function(){return this.Ca};
T.prototype.fg=function(a,b){this.zb();delete this.sb;this.Ca=b?vn(a):a;return this};T.prototype.Mn=function(){return!!this.Ca};T.prototype.Ov=function(){return this.La.toString()!==""};T.prototype.fl=function(a,b){this.zb();delete this.sb;if(a instanceof nn){this.La=a;this.La.Ci=this;this.La.Sd(this.Ub)}else{b||(a=on(a,wn));this.La=new nn(a,this,this.Ub)}return this};T.prototype.ji=function(a,b){return this.fl(a,b)};T.prototype.$s=function(){return this.La.Xy()};T.prototype.hu=function(){return this.La};
T.prototype.I=function(a,b){this.zb();delete this.sb;this.La.set(a,b);return this};T.prototype.Td=function(a,b){this.zb();delete this.sb;ha(b)||(b=[String(b)]);this.La.vy(a,b);return this};T.prototype.au=function(a){return this.La.uc(a)};T.prototype.xe=function(a){return this.La.get(a)};T.prototype.kn=function(){return this.pe};T.prototype.di=function(a,b){this.zb();delete this.sb;this.pe=b?vn(a):a;return this};T.prototype.Lv=function(){return!!this.pe};
T.prototype.Yc=function(){this.zb();this.I("zx",Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^(new Date).getTime()).toString(36));return this};T.prototype.removeParameter=function(a){this.zb();this.La.remove(a);return this};T.prototype.zb=function(){if(this.yw)h(Error("Tried to modify a read-only Uri"))};T.prototype.Sd=function(a){this.Ub=a;this.La&&this.La.Sd(a)};T.prototype.Dt=function(){return this.Ub};
var un=function(a,b,c,d,e,f,g,i){var j=new T(l,i);a&&j.ki(a);b&&j.oi(b);c&&j.bi(c);d&&j.ii(d);e&&j.fg(e);f&&j.fl(f);g&&j.di(g);return j},tn=function(a){if(a==".."||a==".")return"";else if(!Ha(a,"./")&&!Ha(a,"/."))return a;else{for(var b=a.indexOf("/")==0,c=a.split("/"),d=[],e=0;e<c.length;){var f=c[e++];if(f==".")b&&e==c.length&&d.push("");else if(f==".."){if(d.length>1||d.length==1&&d[0]!="")d.pop();b&&e==c.length&&d.push("")}else{d.push(f);b=k}}return d.join("/")}},vn=function(a){return a?decodeURIComponent(a):
""},qn=function(a){if(ka(a))return encodeURIComponent(a);return l},xn=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,on=function(a,b){var c=l;if(ka(a)){c=a;xn.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,yn)}return c},yn=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},pn=/[#\/\?@]/g,rn=/[\#\?]/g,wn=/[\#\?@]/g,sn=/#/g,nn=function(a,b,c){this.Sc=a||l;this.Ci=b||l;this.Ub=!!c};
nn.prototype.Kb=function(){if(!this.U){this.U=new Xg;if(this.Sc)for(var a=this.Sc.split("&"),b=0;b<a.length;b++){var c=a[b].indexOf("="),d=l,e=l;if(c>=0){d=a[b].substring(0,c);e=a[b].substring(c+1)}else d=a[b];d=za(d);d=this.Uc(d);this.add(d,e?za(e):"")}}};nn.prototype.U=l;nn.prototype.H=l;nn.prototype.Af=function(){this.Kb();return this.H};
nn.prototype.add=function(a,b){this.Kb();this.Ge();a=this.Uc(a);if(this.eb(a)){var c=this.U.get(a);ha(c)?c.push(b):this.U.set(a,[c,b])}else this.U.set(a,b);this.H++;return this};nn.prototype.remove=function(a){this.Kb();a=this.Uc(a);if(this.U.eb(a)){this.Ge();var b=this.U.get(a);if(ha(b))this.H-=b.length;else this.H--;return this.U.remove(a)}return p};nn.prototype.clear=function(){this.Ge();this.U&&this.U.clear();this.H=0};nn.prototype.eb=function(a){this.Kb();a=this.Uc(a);return this.U.eb(a)};
nn.prototype.Vc=function(){this.Kb();for(var a=this.U.uc(),b=this.U.Vc(),c=[],d=0;d<b.length;d++){var e=a[d];if(ha(e))for(var f=0;f<e.length;f++)c.push(b[d]);else c.push(b[d])}return c};nn.prototype.uc=function(a){this.Kb();var b;if(a){var c=this.Uc(a);if(this.eb(c)){var d=this.U.get(c);if(ha(d))return d;else{b=[];b.push(d)}}else b=[]}else{var e=this.U.uc();b=[];for(var f=0;f<e.length;f++){var g=e[f];ha(g)?mf(b,g):b.push(g)}}return b};
nn.prototype.set=function(a,b){this.Kb();this.Ge();a=this.Uc(a);if(this.eb(a)){var c=this.U.get(a);if(ha(c))this.H-=c.length;else this.H--}this.U.set(a,b);this.H++;return this};nn.prototype.get=function(a,b){this.Kb();a=this.Uc(a);if(this.eb(a)){var c=this.U.get(a);return ha(c)?c[0]:c}else return b};nn.prototype.vy=function(a,b){this.Kb();this.Ge();a=this.Uc(a);if(this.eb(a)){var c=this.U.get(a);if(ha(c))this.H-=c.length;else this.H--}if(b.length>0){this.U.set(a,b);this.H+=b.length}};
nn.prototype.toString=function(){if(this.Sc)return this.Sc;if(!this.U)return"";for(var a=[],b=0,c=this.U.Vc(),d=0;d<c.length;d++){var e=c[d],f=ya(e),g=this.U.get(e);if(ha(g))for(var i=0;i<g.length;i++){b>0&&a.push("&");a.push(f,"=",ya(g[i]));b++}else{b>0&&a.push("&");a.push(f,"=",ya(g));b++}}return this.Sc=a.join("")};nn.prototype.Xy=function(){if(!this.pf)this.pf=vn(this.toString());return this.pf};nn.prototype.Ge=function(){delete this.pf;delete this.Sc;this.Ci&&delete this.Ci.sb};
nn.prototype.clone=function(){var a=new nn;if(this.pf)a.pf=this.pf;if(this.Sc)a.Sc=this.Sc;if(this.U)a.U=this.U.clone();return a};nn.prototype.Uc=function(a){var b=String(a);if(this.Ub)b=b.toLowerCase();return b};nn.prototype.Sd=function(a){var b=a&&!this.Ub;if(b){this.Kb();this.Ge();Ug(this.U,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},this)}this.Ub=a};
nn.prototype.extend=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];Ug(b,function(c,d){this.add(d,c)},this)}};var An=function(a,b){var c=b;if(!c){c=new T("http://www.google.com/url");c.Yc();c.Td("q","http://www.google.com/images/cleardot.gif")}zn(c.toString(),10000,a)},Bn=function(a,b,c,d,e){if(d==0)c(p);else{e||(e=0);d--;zn(a,b,function(f){f?c(k):t.setTimeout(function(){Bn(a,b,c,d,e)},e)})}},zn=function(a,b,c){var d=new Image;d.onload=function(){try{Cn(d);c(k)}catch(e){}};d.onerror=function(){try{Cn(d);c(p)}catch(e){}};d.onabort=function(){try{Cn(d);c(p)}catch(e){}};d.ontimeout=function(){try{Cn(d);c(p)}catch(e){}};
t.setTimeout(function(){d.ontimeout&&d.ontimeout()},b);d.src=a},Cn=function(a){a.onload=l;a.onerror=l;a.onabort=l;a.ontimeout=l};var V=function(a,b,c,d){this.pa=a;this.af=c;this.jA=d;this.Ro=45000;this.ca=new cj(this);this.Lk=new ci;this.Lk.setInterval(250)};V.prototype.Ia=l;V.prototype.oo=0;V.prototype.Ic=p;V.prototype.df=l;V.prototype.yl=l;V.prototype.Te=0;V.prototype.rb=l;V.prototype.kd=l;V.prototype.bd=l;V.prototype.Ph=l;V.prototype.Ha=l;V.prototype.qg=l;V.prototype.Hb=l;V.prototype.Ei=l;V.prototype.ra=l;V.prototype.sa=-1;V.prototype.$o=k;V.prototype.ge=p;var Dn={},En={};V.prototype.bc=function(a){this.Ia=a};
V.prototype.gi=function(a){this.oo=a;if(this.Te>a){this.Hq();this.fe();this.ld();this.Kh()}};V.prototype.ny=function(a){this.Ro=a};V.prototype.bq=function(a,b,c){this.rb=1;this.kd=a.clone().Yc();this.Ph=b;this.Gr=c;this.Zk()};V.prototype.zl=function(a,b,c){this.rb=1;this.kd=a.clone().Yc();this.Ph=l;this.Gr=b;if(c)this.$o=p;this.Zk()};
V.prototype.Zk=function(){this.bd=this.kd.clone();this.bd.Td("t",this.Te+1);this.qg=0;this.Ha=this.Br();C(this.Ha,"readystatechange",this.aq,p,this);var a=this.Ia?Bf(this.Ia):{};if(this.Ph){this.Ei="POST";a["Content-Type"]="application/x-www-form-urlencoded";this.Ha.send(this.bd,this.Ei,this.Ph,a)}else{this.Ei="GET";if(this.$o)a.Connection="close";this.Ha.send(this.bd,this.Ei,l,a)}this.ne()};V.prototype.Br=function(){return new M};
V.prototype.aq=function(a){var b=a.target;try{b==this.Ha&&this.kx()}catch(c){this.Ha&&this.Ha.tc()}finally{}};
V.prototype.kx=function(){var a=this.Ha.Ad();if(B||Xf&&Ra(eg,"420+")<0){if(a<4)return}else if(a<3||a==3&&!Vf&&!this.Ha.tc())return;this.fe();var b=this.Ha.hh();this.sa=b;var c=this.Ha.tc();if(this.Ic=b==200){a==4&&this.ld();if(this.Gr){this.tm(a,c);Vf&&a==3&&this.Iy()}else this.Uk(c);if(this.Ic)if(!this.ge)if(a==4)this.pa.Pe(this);else{this.Ic=p;this.ne()}}else{if(b==400&&c.indexOf("Unknown SID")>0){this.ra=3;Fn(13)}else{this.ra=0;Fn(14)}this.ld();this.Kh()}};
V.prototype.tm=function(a,b){for(var c=k;!this.ge&&this.qg<b.length;){var d=this.Ut(b);if(d==En){if(a==4){this.ra=4;Fn(15);c=p}break}else if(d==Dn){this.ra=4;Fn(16);c=p;break}else this.Uk(d)}if(a==4&&b.length==0){this.ra=1;Fn(17);this.decodeNextChunksSuccessful=p}if(!c){this.ld();this.Kh()}this.Ic=this.Ic&&c};V.prototype.px=function(){var a=this.Ha.Ad(),b=this.Ha.tc();if(this.qg<b.length){this.fe();this.tm(a,b);this.Ic&&a!=4&&this.ne()}};
V.prototype.Iy=function(){this.ca.listen(this.Lk,"tick",this.px);this.Lk.start()};V.prototype.Oy=function(){this.Lk.stop();this.ca.$f()};V.prototype.Ut=function(a){var b=this.qg,c=a.indexOf("\n",b);if(c==-1)return En;var d=a.substring(b,c),e=Number(d);if(isNaN(e))return Dn;var f=c+1;if(f+e>a.length)return En;var g=a.substr(f,e);this.qg=f+e;return g};V.prototype.Pp=function(a,b){this.rb=3;this.kd=a.clone().Yc();this.ez(b)};
V.prototype.ez=function(a){this.Hb=new ActiveXObject("htmlfile");var b="",c="<html>";if(a){b=window.location.hostname;c+='<script>document.domain="'+b+'"<\/script>'}c+="</html>";this.Hb.open();this.Hb.write(c);this.Hb.close();this.Hb.parentWindow.m=u(this.ix,this);this.Hb.parentWindow.d=u(this.Bo,this,k);this.Hb.parentWindow.rpcClose=u(this.Bo,this,p);var d=this.Hb.createElement("div");this.Hb.appendChild(d);this.bd=this.kd.clone();this.bd.I("DOMAIN",b);this.bd.I("t",this.Te+1);d.innerHTML='<iframe src="'+
this.bd+'"></iframe>';this.ne()};V.prototype.ix=function(a){Gn(u(this.hx,this,a),0)};V.prototype.hx=function(a){if(!this.ge){this.fe();this.Uk(a);this.ne()}};V.prototype.Bo=function(a){Gn(u(this.gx,this,a),0)};V.prototype.gx=function(a){if(!this.ge){this.fe();this.ld();this.Ic=a;this.pa.Pe(this)}};V.prototype.Tx=function(a){this.rb=2;this.kd=a.clone().Yc();this.bw()};V.prototype.bw=function(){var a=new Image;a.src=this.kd;this.ne()};V.prototype.cancel=function(){this.ge=k;this.fe();this.ld()};
V.prototype.ne=function(){this.yl=ta()+this.Ro;this.Hp(this.Ro)};V.prototype.Hp=function(a){if(this.df!=l)h(Error("WatchDog timer not null"));this.df=Gn(u(this.jx,this),a)};V.prototype.fe=function(){if(this.df){t.clearTimeout(this.df);this.df=l}};V.prototype.jx=function(){this.df=l;var a=ta();a-this.yl>=0?this.Fv():this.Hp(this.yl-a)};V.prototype.Fv=function(){this.ld();this.ra=2;Fn(18);this.Kh()};
V.prototype.Kh=function(){if(!(this.pa.xh()||this.ge))if(this.ra==3||this.ra==0&&this.sa>0)this.pa.Pe(this);else if(this.Te>=this.oo)this.pa.Pe(this);else{this.Tk=Gn(u(this.Ix,this),this.nu());this.Te++}};V.prototype.nu=function(){var a=5000+Math.floor(Math.random()*10000);this.pa.aa()||(a=a*2);return a=a*this.Te+1};V.prototype.Ix=function(){this.Tk=l;this.rb==1&&this.Zk()};V.prototype.Hq=function(){if(this.Tk){t.clearTimeout(this.Tk);this.Tk=l}};
V.prototype.ld=function(){this.Oy();if(this.Ha){var a=this.Ha;this.Ha=l;Cg(a,"readystatechange",this.aq,p,this);a.abort()}if(this.Hb)this.Hb=l};V.prototype.zn=function(){return this.Ic};V.prototype.Ef=function(){return this.ra};V.prototype.Db=function(){return this.sa};V.prototype.Uk=function(a){try{this.pa.Jk(this,a)}catch(b){}};var Hn=function(a){this.pa=a};Hn.prototype.Ia=l;Hn.prototype.Ma=l;Hn.prototype.Rh=p;Hn.prototype.vd=l;Hn.prototype.yk=l;Hn.prototype.Ca=l;Hn.prototype.C=l;Hn.prototype.sa=-1;Hn.prototype.Wc=l;Hn.prototype.Oi=l;Hn.prototype.bc=function(a){this.Ia=a};Hn.prototype.connect=function(a){this.Ca=a;var b=this.pa.jn(this.Ca);Fn(3);b.Td("MODE","init");this.Ma=new V(this,this.jf);this.Ma.bc(this.Ia);this.Ma.gi(0);this.Ma.zl(b,p,k);this.C=0};
Hn.prototype.Oq=function(){var a=this.pa.jj(this.Oi,"/mail/images/cleardot.gif");a.Yc();Bn(a,5000,u(this.Nq,this),3,2000)};Hn.prototype.Nq=function(a){if(a){this.C=2;this.em()}else{Fn(4);this.pa.Ry(this)}};Hn.prototype.em=function(){this.Ma=new V(this,this.jf);this.Ma.bc(this.Ia);this.Ma.gi(0);var a=this.pa.Vm(this.Wc,this.Ca);Fn(5);if(B){a.Td("TYPE","html");this.Ma.Pp(a,Boolean(this.Wc))}else{a.Td("TYPE","xmlhttp");this.Ma.zl(a,p)}};
Hn.prototype.abort=function(){if(this.Ma){this.Ma.cancel();this.Ma=l}this.sa=-1};Hn.prototype.xh=function(){return p};Hn.prototype.Jk=function(a,b){this.sa=a.Db();if(this.C==0)if(b){try{var c=gk(b)}catch(d){this.pa.ol(this,4);return}this.Wc=this.pa.Is()?c[0]:l;this.Oi=c[1]}else this.pa.ol(this,4);else if(this.C==2)if(this.Rh){Fn(7);this.yk=ta()}else if(b=="11111"){Fn(6);this.Rh=k;this.vd=ta()}else{Fn(8);this.vd=this.yk=ta();this.Rh=p}};
Hn.prototype.Pe=function(){this.sa=this.Ma.Db();if(this.Ma.zn())if(this.C==0)if(this.Oi){this.C=1;this.Oq()}else{this.C=2;this.em()}else{if(this.C==2){var a=p;if(B){var b=this.yk-this.vd;a=b<200?p:k}else a=this.Rh;if(a){Fn(12);this.pa.Mp(this,k)}else{Fn(11);this.pa.Mp(this,p)}}}else{if(this.C==0)Fn(9);else this.C==2&&Fn(10);this.pa.ol(this,this.Ma.Ef())}};Hn.prototype.Db=function(){return this.sa};Hn.prototype.aa=function(){return this.pa.aa()};var W=function(a){this.Yq=a;this.C=1;this.Vf=[]};W.prototype.Ia=l;W.prototype.yj=l;W.prototype.Bb=l;W.prototype.db=l;W.prototype.Ca=l;W.prototype.Ug=l;W.prototype.Rl=l;W.prototype.Wc=l;W.prototype.El=k;W.prototype.Lh=0;W.prototype.bs=p;W.prototype.j=l;W.prototype.Cj=l;W.prototype.nd=l;W.prototype.Wp=l;W.prototype.uq=k;W.prototype.eo=-1;W.prototype.sa=-1;var In=new D,Jn=function(a,b){hg.call(this,"statevent",a);this.stat=b};w(Jn,hg);W.prototype.connect=function(a,b,c){Fn(0);this.Ca=b;this.yj=c;this.cr(a)};
W.prototype.disconnect=function(){this.Ul();if(this.C==3){var a=this.Lh++,b=this.Ug.clone();b.I("SID",this.af);b.I("RID",a);b.I("TYPE","terminate");this.ef(b);var c=new V(this,this.jf,this.af,a);c.Tx(b);this.wo()}};W.prototype.cr=function(a){this.nd=new Hn(this,this.jf);this.nd.bc(this.Ia);this.nd.connect(a)};W.prototype.br=function(){this.Yr(1);this.Ug=this.jn(this.Ca);this.uj()};
W.prototype.Ul=function(){if(this.nd){this.nd.abort();this.nd=l}if(this.db){this.db.cancel();this.db=l}if(this.Bb){this.Bb.cancel();this.Bb=l}};W.prototype.bc=function(a){this.Ia=a};W.prototype.F=function(){return this.j};W.prototype.cy=function(a){this.j=a};W.prototype.Is=function(){return this.El};W.prototype.ap=function(a){if(this.C==0)h(Error("Invalid operation: sending map when state is closed"));this.Vf.push(a);if(this.C==2||this.C==3)this.uj()};W.prototype.vt=function(){return this.bs?0:2};
W.prototype.xh=function(){return this.C==0};W.prototype.Wj=function(){return this.C};W.prototype.Db=function(){return this.sa};W.prototype.uj=function(){if(!this.Bb)if(!this.Cj)this.Cj=Gn(u(this.cx,this),0)};W.prototype.cx=function(){this.Cj=l;this.Hy()};W.prototype.Hy=function(){if(this.C==1){this.lx();this.C=2}else if(this.C==3){this.Xr();if(this.vo())this.Vf.length==0||this.Bb||this.Iw()}};
W.prototype.lx=function(){this.C=2;this.Lh=Math.floor(Math.random()*100000);var a=this.Lh++,b=new V(this,this.jf,"",a);b.bc(this.Ia);var c=this.vm(),d=this.Ug.clone();d.I("RID",a);this.Yq&&d.I("CVER",this.Yq);this.ef(d);b.bq(d,c,k);this.Bb=b};W.prototype.Iw=function(){var a=this.Lh++,b=this.Ug.clone();b.I("SID",this.af);b.I("RID",a);this.ef(b);var c=this.vm(),d=new V(this,this.jf,this.af,a);d.bc(this.Ia);d.gi(this.vt());d.ny(Math.round(10000)+Math.round(10000*Math.random()));this.Bb=d;d.bq(b,c,k)};
W.prototype.ef=function(a){if(this.j){var b=this.j.Dj(this);b&&Ug(b,function(c,d){a.I(d,c)})}};W.prototype.vm=function(){for(var a=["count="+this.Vf.length],b=0;b<this.Vf.length;b++){var c=this.Vf[b];Ug(c,function(d,e){a.push("req"+b+"_"+e+"="+encodeURIComponent(d))})}this.Vf.length=0;return a.join("&")};
W.prototype.Xr=function(){if(!this.db)if(this.vo()){this.db=new V(this,this.jf,this.af,"rpc");this.db.bc(this.Ia);var a=this.Rl.clone();a.I("RID","rpc");a.I("SID",this.af);a.I("CI",this.Wp?"0":"1");a.I("AID",this.eo);this.ef(a);if(B){a.I("TYPE","html");this.db.Pp(a,Boolean(this.Wc))}else{a.I("TYPE","xmlhttp");this.db.gi(3);this.db.zl(a,k)}}};W.prototype.vo=function(){if(this.j){var a=this.j.Fk(this);if(a!=0){this.ec(a);return p}}return k};
W.prototype.Mp=function(a,b){this.Wp=this.uq&&b;this.sa=a.Db();this.br()};W.prototype.ol=function(a){this.sa=a.Db();this.ec(2)};W.prototype.Ry=function(){this.sa=this.nd.Db();this.ec(9)};W.prototype.Jk=function(a,b){if(!(this.C==0||this.db!=a&&this.Bb!=a)){this.sa=a.Db();if(this.Bb==a&&this.C==3)b!="y2f%"&&this.ec(11);else if(!/^[\s\xa0]*$/.test(b)){var c=gk(b);this.Zw(c)}}};
W.prototype.Pe=function(a){var b=p;if(this.db==a){this.db=l;b=k}else if(this.Bb==a){this.Bb=l;b=k}if(b){this.sa=a.Db();if(!(this.C==0))if(a.zn())this.uj();else switch(a.Ef()){case 1:this.ec(5);break;case 4:this.ec(10);break;case 3:this.ec(6);break;default:this.ec(2);break}}};
W.prototype.Zw=function(a){for(var b=this.j&&this.j.Yi?[]:l,c=0;c<a.length;c++){var d=a[c];this.eo=d[0];d=d[1];if(this.C==2)if(d[0]=="c"){this.af=d[1];this.Wc=this.El?d[2]:l;this.C=3;this.j&&this.j.Zi(this);this.Rl=this.Vm(this.Wc,this.Ca)}else d[0]=="stop"&&this.ec(7);else if(this.C==3)if(d[0]=="stop"){if(b&&b.length){this.j.Yi(this,b);b.length=0}this.ec(7)}else if(!(d[0]=="noop"))if(b)b.push(d);else this.j&&this.j.Xi(this,d)}b&&b.length&&this.j.Yi(this,b)};
W.prototype.Yr=function(a){if(this.C!=a)h(Error("Invalid operation: expected channel state "+a+" got channel state "+this.C))};W.prototype.ec=function(a){if(a==2||a==9){var b=l;if(this.j)b=this.j.Mj(this);An(u(this.Sy,this,a),b)}else this.Gk(a)};W.prototype.Sy=function(a,b){b?this.Gk(a):this.Gk(8)};W.prototype.Gk=function(a){a==8?Fn(1):Fn(2);this.C=0;this.j&&this.j.Wi(this,a);this.wo();this.Ul()};W.prototype.wo=function(){this.C=0;this.sa=-1;this.j&&this.j.Vi(this)};
W.prototype.jn=function(a){var b=this.jj(l,a);return b};W.prototype.Vm=function(a,b){var c=this.jj(B?a:l,b);return c};W.prototype.jj=function(a,b,c){var d=window.location,e;e=a?a+"."+d.hostname:d.hostname;var f=c||d.port,g=un(d.protocol,l,e,f,b);this.yj&&Ug(this.yj,function(i,j){g.I(j,i)});g.I("VER",6);this.ef(g);return g};W.prototype.aa=function(){return this.j.aa(this)};
var Gn=function(a,b){if(!ma(a))h(Error("Fn must not be null and must be a function"));return t.setTimeout(function(){a()},b)},Fn=function(a){var b=In;b.dispatchEvent(new Jn(b,a))},Kn=function(){};Kn.prototype.Yi=l;Kn.prototype.Fk=function(){return 0};Kn.prototype.Zi=function(){};Kn.prototype.Xi=function(){};Kn.prototype.Wi=function(){};Kn.prototype.Vi=function(){};Kn.prototype.Dj=function(){return{}};Kn.prototype.Mj=function(){return l};Kn.prototype.aa=function(){return k};window.google=window.google||{};window.google.Quote={};
(function(){var a=["l","vo","c","cp","ltt","el","evo","ec","ecp","elt"];function b(){this.companyIdToElements=l}b.prototype.Eq=function(j,m,n){var o=this.companyIdToElements[j];if(!o){o={};this.companyIdToElements[j]=o}var q=o[m];if(!q){q=[];o[m]=q}q.push(n)};b.prototype.ht=function(j,m){var n=this.companyIdToElements[j];return n?n[m]:l};b.prototype.qx=function(){if(!this.companyIdToElements){this.companyIdToElements={};if(document.getElementsByTagName)for(var j=document.getElementsByTagName("span"),
m=0;m<j.length;++m){var n=j[m];if(n.id&&n.id.length>4&&n.id.substring(0,4)=="ref_"){var o=n.id.substring(4),q=o.indexOf("_");if(q){var s=o.substring(0,q),r=o.substring(q+1);this.Eq(s,r,n)}}}}};b.prototype.listen=function(j,m){this.qx();for(var n=0;n<a.length;++n){var o=a[n],q=j[o];if(q){var s=this.ht(m,o);if(s){var r=l,x=l;if((o=="c"||o=="cp"||o=="ec"||o=="ecp")&&q.length&&q.length>0)if("-"==q.charAt(0))r="down";else{r="up";if((o=="c"||o=="ec")&&q>0)q="+"+q}for(var H=0;H<s.length;++H){var J=s[H];
if(J){var Q=q;if(o=="cp"||o=="ecp"){var Ba=J.innerHTML;Q=Ba&&Ba.indexOf("(")!=-1?"("+q+"%)":q+"%"}else if(qj()&&o=="l"){Ba=this.Hx(J);x=this.eu(Ba,q);var ja=this.qt(Ba,q);Q=this.fu(q.substr(0,ja),q.substr(ja))}else if(qj()&&o=="ltt")Q=this.dt(J.innerHTML,q);if(x||r)J.className=x||r;J.innerHTML=Q}}if(qj()&&o=="l"){var La=s;window.setTimeout(function(){for(var wa=0;wa<La.length;++wa){var Ta=La[wa];if(Ta)Ta.className="prb"}},1000)}}}}};b.prototype.dt=function(j,m){if(j&&j.length<8){if(m.substr(5,2).toLowerCase()==
"pm"){var n=parseInt(m.substr(0,2),10)+12;return n.toString()+m.substr(2,3)}return m.substr(0,5)}return m};b.prototype.fu=function(j,m){return"<span class=prb>"+j+"</span><span>"+m+"</span>"};b.prototype.Hx=function(j){return j.childNodes.length==2?j.firstChild.innerHTML+j.lastChild.innerHTML:j.innerHTML};b.prototype.eu=function(j,m){var n=Number(j),o=Number(m);return n==o?"prb":n<o?"prg":"prr"};b.prototype.qt=function(j,m){for(var n=Math.min(j.length,m.length),o=0;o<n;o++)if(j.charAt(o)!=m.charAt(o))return o;
return n};function c(){Kn.call();this.symbolToIds={};this.symbolToTitles={};this.listeners=[function(j,m){g.listen(j,m)}]}w(c,Kn);c.prototype.add=function(j,m,n){this.symbolToIds[j]=m;if(n)this.symbolToTitles[j]=n};c.prototype.jq=function(j){this.listeners.push(j)};c.prototype.Fk=function(){return 0};c.prototype.Zi=function(j){var m=new Xg;for(var n in this.symbolToIds)m.set(n,"");j.ap(m);t.setTimeout(c.keepAlive,60000)};c.prototype.Mj=function(){var j=new T("/finance/s/m4C5KaofCbA/images/cleardot.gif");
j.Yc();return j};c.keepAlive=function(){if(e&&!e.xh()){e.ap({"#!ping!#":""});t.setTimeout(c.keepAlive,60000)}};c.prototype.Xi=function(j,m){for(var n=0;n<m.length;++n){var o=m[n],q=o.s;if(q){var s=this.symbolToIds[q];if(s)for(var r=0;r<this.listeners.length;++r)this.listeners[r](o,s);var x=this.symbolToTitles[q];if(x){var H=o.l;if(H){x=x.replace("{LAST}",H);var J=o.c,Q=o.cp;if(J&&Q){x=x.replace("{CHANGE}",J>0?"+"+J:J);x=x.replace("{CHANGE_PCT}",Q)}document.title=x}}}}};c.prototype.Wi=function(){};
c.prototype.Vi=function(){};c.prototype.Dj=function(){return l};var d=window.google.Quote,e=new W("1"),f=new c,g=new b;window.google.Quote.mA=g;d.streamQuotes=function(){e.cy(f);e.connect("/finance/qs/test","/finance/qs/channel",l)};d.stopQuotes=function(){e.disconnect()};d.addQuote=function(j,m,n){f.add(j,m,n)};d.addQuoteListener=function(j){f.jq(j)};function i(){var j=t.google.finance.data;if(qj()&&j&&j.common&&j.common.rq&&j.common.rq.q){for(var m=0;m<j.common.rq.q.length;++m){var n=j.common.rq.q[m];
if(n.cid>0&&n.s&&n.e){var o=n.e;if(o.indexOf("NASDAQ")==0)o="NASD";d.addQuote(o+":"+n.s,n.cid)}}Rg(f.symbolToIds)>0&&t.setTimeout(d.streamQuotes,3000)}}if(window.attachEvent)window.attachEvent("onload",i);else window.addEventListener&&window.addEventListener("load",i,p);v("_aQ",d.addQuote)})();var Gj=function(a,b,c,d,e,f,g,i,j){N.call(this,j);this.lA=a;this.lb=b;this.dz=c;this.Di=d;this.nl=E(e);this.Ni=f>=0?f:0;this.Fq=g;this.Ve=i?i:[10,20,30,50,100];this.j=new cj(this);this.Jh=Math.max(Math.floor(c/b)+Math.min(c%b,1)-1,0);this.pd=Math.min(Math.floor(a/b),this.Jh);this.Cy();this.Ir()};w(Gj,N);Gj.prototype.Cy=function(){Ye(this.Ve,this.lb)==-1&&this.Ve.push(this.lb);pf(this.Ve)};
Gj.prototype.Ir=function(){if(this.lb>0)if(this.nl){for(var a,b=0;b<this.nl.childNodes.length;b++){var c=this.nl.childNodes[b].tagName;if(c&&c.toLowerCase()=="tbody")a=this.nl.childNodes[b]}if(a){var d=this.ut(a);if(d){var e=this.er(d);if(!(e<=this.Ni)){var f=this.of(),g=this.Fg("SP_arrow_first",this.Vu,this.pd==0),i=this.Fg("SP_arrow_previous",this.ov,this.pd==0),j=this.Fg("SP_arrow_next",this.iv,this.pd==this.Jh),m=this.Fg("SP_arrow_last",this.dv,this.pd==this.Jh),n=this.pd*this.lb+1+(" - "+(Math.min((this.pd+
1)*this.lb,this.dz)+(" of "+(this.dz+" rows")))),o=this.mm("tpsrd","Show rows:"),q=this.mm("tpsd",n),s=this.b.g("td",{"class":"rgt",colspan:e-this.Ni},m,j,q,i,g,f,o),r=this.b.g("tr",{"class":"tptr"},s);this.Ni>0&&r.appendChild(this.b.g("td",{colspan:this.Ni}));a.appendChild(r)}}}}};Gj.prototype.ut=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 l};
Gj.prototype.er=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){var e=d.tagName.toLowerCase();if(e=="th"||e=="td")b++}}return b};Gj.prototype.of=function(){for(var a=this.b.g("select",{"class":"tpdd"}),b=0;b<this.Ve.length;b++)a.appendChild(this.b.g("option",{value:this.Ve[b],selected:this.lb==this.Ve[b]},this.b.createTextNode(String(this.Ve[b]))));this.j.listen(a,"change",this.Tu);return a};
Gj.prototype.Fg=function(a,b,c){var d=c?"tpbdd":"tpbd",e=this.b.g("div",{"class":d},this.b.g("div",{"class":a+(c?"_off":"")}));c||this.j.listen(e,"click",b);return e};Gj.prototype.mm=function(a,b){return this.b.g("div",{"class":a},this.b.createTextNode(b))};Gj.prototype.nf=function(a,b,c){var d=new T(a);d.I("start",b);d.I("num",c);return d.toString()};Gj.prototype.Sf=function(a){if(this.Fq)this.Fq.call(this,a);else window.location.href=a};
Gj.prototype.Tu=function(a){var b=this.nf(this.Di,0,a.currentTarget.value);this.Sf(b)};Gj.prototype.Vu=function(){var a=this.nf(this.Di,0,this.lb);this.Sf(a)};Gj.prototype.ov=function(){var a=this.nf(this.Di,this.lb*Math.max(this.pd-1,0),this.lb);this.Sf(a)};Gj.prototype.iv=function(){var a=this.nf(this.Di,this.lb*Math.min(this.pd+1,this.Jh),this.lb);this.Sf(a)};Gj.prototype.dv=function(){var a=this.nf(this.Di,this.Jh*this.lb,this.lb);this.Sf(a)};var Ln=function(a,b,c,d){N.call(this,d);this.Jc=[];this.cb=[];this.Dz=b;this.Pa=a;this.pw=c!==undefined?c:p;this.j=new cj(this);this.hc=l;this.Vo=0;this.kb=this.ll=this.Qh=this.Dm=this.Em=this.Lb=this.fj=l;v("google.finance.searchTicker",u(this.Zo,this));v("google.finance.showLess",u(this.Vd,this))};w(Ln,N);Ln.prototype.i=function(){Ln.o.i.call(this);this.j.dispose();google.finance.searchTicker=undefined;google.finance.setChartErrorMessage=undefined};
Ln.prototype.pq=function(a){for(var b=0;b<a.length;++b){if(this.Jc.length==9)return;a[b]&&a[b].ticker&&a[b].name&&a[b].ticker!=""&&a[b].ticker!=this.Dz&&this.Jc.push({ticker:a[b].ticker,name:a[b].name,timezone_offset:a[b].timezone_offset,checked:p})}};
Ln.prototype.oq=function(a){for(var b=0;b<this.Jc.length;++b){var c=this.Jc[b];if(c.ticker==a[0]){c.checked||this.bf(c);return}}for(b=0;b<this.cb.length;++b){c=this.cb[b];if(c.ticker==a[0]){c.checked||this.bf(c);this.qi()&&this.ig();return}}if(this.cb.length==5){for(b=0;b<this.cb.length&&this.cb[b].checked;)++b;if(b==this.cb.length)b=0;var d=ff(this.cb,b,1)[0];d.checked&&this.Pa.Uh(d.ticker)}this.cb.push({ticker:a[0],name:a[1],timezone_offset:a[2],checked:k});this.Pa.de(a[0],a[1],a[2]);this.vx();
this.qi()&&this.ig()};Ln.prototype.g=function(){this.ja(this.b.B("div"))};Ln.prototype.ja=function(a){this.r=a;this.fj=this.b.B("div",{"class":"gf-chart-qc"});this.kb=this.b.B("div",{"class":"gf-chart-more linkbtn"});this.kb.style.display="none";this.fr();this.or();this.xr();var b=Ph(a);if(b)Mh(b);else b=l;F(this.ll.firstChild,this.Qh);F(this.r,this.fj);b&&F(this.r,b);F(this.r,this.kb);F(this.r,this.ll)};
Ln.prototype.Q=function(){this.j.listen(document.forms["gf-chart-ts"],"submit",this.Cn);this.j.listen(window,"resize",this.fk);this.j.listen(this.Dm,"click",this.Fn);this.fk()};Ln.prototype.ka=function(){this.j.unlisten(document.forms["gf-chart-ts"],"submit",this.Cn);this.j.unlisten(window,"resize",this.fk);this.j.unlisten(this.Dm,"click",this.Fn)};
Ln.prototype.fr=function(){this.Lb=this.b.B("div",{"class":"gf-chart-err"},this.b.B("div",{"class":"gf-chart-err-btn SP_close"}),this.b.B("span",{"class":"gf-chart-err-txt"}));this.Lb.style.lineHeight="1em";this.Lb.style.whiteSpace="normal";this.Lb.style.display="none";this.Em=this.Lb.lastChild;this.Dm=this.Lb.firstChild};
Ln.prototype.or=function(){var a=this.b.B("input",{autocomplete:"off",id:"add_comparison_symbol",name:"gf-chart-ts-query",size:12,type:"text"});this.j.listen(a,"focus",this.Gn);this.j.listen(a,"blur",this.Gn);var b=new sm(this.pw?"Enter currency":"Enter ticker here");b.decorate(a);var c=this.b.B("input",{id:"add_comparison_button",value:"Add",type:"submit"});c.value="Add";var d=this.b.B("span",{"class":"bld add_comparison_prompt"},this.b.createTextNode("Compare:")),e=this.b.B("form",{id:"gf-chart-ts",
name:"gf-chart-ts"},d,a,c);this.Qh=this.b.B("div",{"class":"gf-chart-qcb"});F(this.fj,this.b.B("div",{},e));F(this.fj,this.Lb)};Ln.prototype.Gn=function(){lh(this.r,"gf-chart-collapsed")&&this.Vd()};Ln.prototype.xr=function(){var a=this.b.B("div",{"class":"gf-chart-sbi"});this.ll=this.b.B("div",{"class":"gf-chart-sb"},a);for(var b=0;b<this.Jc.length;++b){F(a,this.nm(this.Jc[b]));F(a,this.b.createTextNode(" "))}};
Ln.prototype.nm=function(a){var b="gf-chart-ticker"+this.Vo++,c=this.b.B("input",{type:"checkbox",name:b,id:b});c.checked=a.checked;c.value=a.ticker;var d=this.b.B("label",{"for":b,"class":"gf-chart-ticker"});d.innerHTML=a.name;this.j.listen(c,"click",this.kh);return a.dom=this.b.B("p",{"class":"gf-chart-ticker"},c,d)};
Ln.prototype.vx=function(){this.Qh.innerHTML="";for(var a=0;a<this.cb.length;++a){var b=this.cb[a];F(this.Qh,this.nm(b));F(this.Qh,this.b.createTextNode(" "));b.dom.firstChild.checked=b.checked}};Ln.prototype.bf=function(a){if(a.checked){a.checked=p;a.dom.firstChild.checked=p;this.Pa.Uh(a.ticker)}else{a.checked=k;a.dom.firstChild.checked=k;this.Pa.de(a.ticker,a.name,a.timezone_offset);this.Bc("compare_cb",a.ticker)}};
Ln.prototype.Zo=function(a){if(a.length>0){var b=this.Pa.main_layer_ticker,c=b.split(":");if(c[0]=="MUTF")b=c[1];var d="/finance/validate?q="+escape(a)+"&basetkr="+escape(b)+"&auto=1&hl="+window.locale.hl+"&gl="+window.locale.gl;if(!this.hc){this.hc=new M;this.j.listen(this.hc,"error",function(){this.bl("Failed validating ticker, please try again later.")})}this.hc.abort();Bg(this.hc,"success",u(this.Ev,this,a));this.hc.send(d)}};
Ln.prototype.Ev=function(a,b){var c=va(b.target.tc()).split("|");if(c[0]!=""){if(c[0]==this.Pa.main_layer_ticker)this.bl("Cannot compare a ticker to itself.");else{this.oq(c);this.Bc("compare_text",c[0])}document.forms["gf-chart-ts"]["gf-chart-ts-query"].value=""}else{var d='Ticker symbol "'+(a+'" unknown.'),e='Currency "'+(a+'" unknown.');this.bl(this.pw?e:d);this.Bc("compare_error",a)}};
Ln.prototype.bl=function(a){this.Em.innerHTML="";F(this.Em,this.b.createTextNode(a));this.Lb.style.display="block";this.ig()};Ln.prototype.qi=function(){var a=this.ll.firstChild,b=l;if(a)if(this.Jc.length>0)b=a.firstChild;else if(this.cb.length>0)b=a.firstChild?a.firstChild.firstChild:l;return!!b&&a.scrollHeight>b.offsetHeight};
Ln.prototype.Vd=function(){this.j.unlisten(this.kb,"click",this.Vd);this.j.listen(this.kb,"click",this.ig);hh(this.r,"gf-chart-collapsed");this.kb.innerHTML="more &raquo;";this.Lb.style.display="none";this.kb.style.display=this.qi()?"":"none"};Ln.prototype.ig=function(){this.j.unlisten(this.kb,"click",this.ig);this.j.listen(this.kb,"click",this.Vd);jh(this.r,"gf-chart-collapsed");this.kb.style.display="";this.kb.innerHTML="&laquo; less"};
Ln.prototype.kh=function(a){for(var b=a.currentTarget.value,c=l,d=0;d<this.Jc.length;++d)if(this.Jc[d].ticker==b)c=this.Jc[d];if(!c)for(d=0;d<this.cb.length;++d)if(this.cb[d].ticker==b)c=this.cb[d];c&&this.bf(c)};Ln.prototype.Cn=function(a){this.Zo(document.forms["gf-chart-ts"]["gf-chart-ts-query"].value);a.stopPropagation();a.preventDefault()};Ln.prototype.Fn=function(){this.Lb.style.display="none";this.Vd()};
Ln.prototype.fk=function(){if(!(this.Lb.style.display!="none"))if(this.qi())this.kb.style.display=="none"&&this.Vd();else{this.Vd();this.kb.style.display="none"}};Ln.prototype.Bc=function(a,b){var c=this.Pa.main_layer_ticker+"-"+b;vj(l,a,c,"")()};var X=function(a,b){N.call(this,b);this.hg=[];this.ui=[];this.ha=[];this.Vo=0;this.Xd=this.Fb=l;this.Ne=[];this.Ga=this.to=l;this.Pa=a;this.j=new cj(this);this.Vr=this.Jr=p;Mn("noFeedDataReturned",u(this.Ay,this));Nn("chartTypeChanged",u(this.jz,this));v("google.finance.setLinkToChart",u(this.fi,this));v("google.finance.initTechnicals",u(this.nw,this));v("google.finance.clickSettingsLink",u(this.Wq,this));v("google.finance.clickPlotFeedsLink",u(this.Vq,this));v("google.finance.clickTechnicalsLink",
u(this.Xq,this));v("google.finance.clickLinkToChartLink",u(this.Uq,this))};w(X,N);X.prototype.i=function(){X.o.i.call(this);this.j.dispose();delete google.finance.setLinkToChart;delete google.finance.clickSettingsLink;delete google.finance.clickPlotFeedsLink;delete google.finance.clickTechnicalsLink;delete google.finance.clickLinkToChartLink};X.prototype.ug=function(a){this.hg=a;this.Vr=this.hg.chartType!=undefined};
X.prototype.ry=function(a,b,c,d){this.Fb=a;this.ui=b;this.Xd=c;if(d)this.Ne=d;this.Ga={};for(var e in a)this.Ga[e]=[]};X.prototype.g=function(){this.ja(this.b.g("div"))};X.prototype.ja=function(a){this.r=a;this.Vr?this.vr():this.ur();this.nr();this.Ar();this.jr();F(this.r,this.gd);F(this.r,this.Nd);F(this.r,this.og);F(this.r,this.Me)};
X.prototype.Q=function(){this.j.listen(this.pi,"click",this.Ba);this.j.listen(this.Do,"click",this.Ba);this.j.listen(this.Lp,"click",this.Ba);this.j.listen(this.mo,"click",this.Ba);this.j.listen(this.Rf,"click",this.fi)};X.prototype.ka=function(){this.j.unlisten(this.pi,"click",this.Ba);this.j.unlisten(this.Do,"click",this.Ba);this.j.unlisten(this.Lp,"click",this.Ba);this.j.unlisten(this.mo,"click",this.Ba);this.j.unlisten(this.Rf,"click",this.fi)};
X.prototype.ur=function(){this.gd=this.b.g("div",{"class":"gf-chart-settings"});for(var a=this.b.g("table",{"class":"gf-chart-settings"},this.b.g("tbody",l)),b=a.firstChild,c=this.b.g("tr",l),d=0;d<3;d++)c.appendChild(this.b.g("td",{"class":"gf-chart-settings-controller-td"},this.Uj(d*3)));this.pi=this.b.g("div",{"class":"gf-chart-settings-clsbtn SP_delete"});c.appendChild(this.b.g("td",{"class":"gf-chart-settings-td"},this.pi));b.appendChild(c);for(d=3;d<9;d++){d%3==0&&b.appendChild(this.b.g("tr",
l));b.lastChild.appendChild(this.b.g("td",{"class":"gf-chart-settings-controller-td"},this.Uj(d%3*3+Math.floor(d/3))))}this.gd.appendChild(a);this.gd.style.display="none"};
X.prototype.vr=function(){this.gd=this.b.g("div",{"class":"gf-chart-settings"});var a=this.b.g("table",{"class":"gf-chart-settings"},this.b.g("tbody",l)),b=a.firstChild;this.pi=this.b.g("div",{"class":"gf-chart-settings-clsbtn SP_delete"});var c=this.b.g("td",{"class":"gf-chart-settings-td"},this.ir()),d=this.b.g("td",{"class":"gf-chart-settings-td"},this.qr()),e=this.b.g("td",{"class":"gf-chart-settings-td"},this.pi);b.appendChild(this.b.g("tr",l,c,d,e));this.gd.appendChild(a);this.gd.style.display=
"none"};X.prototype.ir=function(){for(var a=this.b.g("table",{"class":"gf-chart-settings"},this.b.g("tbody",l)),b=a.firstChild,c=0;c<3;c++){b.appendChild(this.b.g("tr",l));for(var d=0;d<2;d++)b.lastChild.appendChild(this.b.g("td",{"class":"gf-chart-settings-newcontroller-td"},this.Uj(c+d*3)))}return a};
X.prototype.qr=function(){this.xb=this.b.g("tbody",l);var a=this.b.g("table",{"class":"gf-chart-settings"},this.xb),b=this.Hg("verticalScaling",this.Ml),c=this.Hg("chartType",this.Ml);this.Mg=this.Hg("defaultZoomDays",this.Ll);this.Lg=this.Hg("defaultInterval",this.Ll);if(b){this.xb.appendChild(b);c&&this.xb.appendChild(this.im(5))}if(c){this.$i=c.lastChild;this.xb.appendChild(c);this.xb.appendChild(this.im(5));var d=this.hg.chartType.selected;if(!d||d=="IntervalBasedLine")this.Mg&&this.xb.appendChild(this.Mg);
else this.Lg&&this.xb.appendChild(this.Lg)}return a};X.prototype.im=function(a){return this.b.g("tr",l,this.b.g("td",{height:a}))};X.prototype.Hg=function(a,b){if(this.hg[a]){var c=this.hg[a],d=this.b.g("label",l);Th(d,c.name);var e=this.b.g("td",{"class":"gf-chart-settings-label-td"},d),f=this.b.g("td",{"class":"gf-chart-settings-newcontroller-td"});b.call(this,f,a,c);return this.b.g("tr",l,e,f)}};
X.prototype.Ml=function(a,b,c){for(var d=this.km("gf-chart-settings-radiobutton"+b,c.paramName,c.options,c.values,c.selected,c.clickType,this.ph,"gf-chart-settings-radiobutton"),e=0;e<d.length;e+=2){var f=this.b.g("div",{"class":X.SETTINGS_RADIOBUTTON_DIV_CLASS});f.appendChild(d[e]);f.appendChild(d[e+1]);a.appendChild(f)}};
X.prototype.Ll=function(a,b,c){var d=this.of("gf-chart-settings-dropdown"+b,c.paramName,c.options,c.values,c.selected,c.clickType,this.ph),e=this.b.g("div",{"class":"gf-chart-settings-dropdown"});e.appendChild(d);a.appendChild(e)};
X.prototype.km=function(a,b,c,d,e,f,g,i){d||(d=c);var j=0;if(e){e=e.toLowerCase();for(var m=0;m<d.length;m++)if(e==d[m].toLowerCase()){j=m;break}}var n=[];for(m=0;m<c.length;m++){var o=a+"_"+m,q=this.b.g("input",{type:"radio",id:o,name:b,value:d[m],checked:m==j,defaultChecked:m==j,clickType:f});this.j.listen(q,"click",g);var s=this.b.g("label",{"for":o,"class":i});Th(s,c[m]||"");n.push(q);n.push(s)}return n};
X.prototype.of=function(a,b,c,d,e,f,g){var i=this.b.g("select",{id:a,name:b,clickType:f});if(d)for(var j=0;j<d.length;j++)i.appendChild(this.b.g("option",{value:d[j],selected:e==d[j]},this.b.createTextNode(c[j])));this.j.listen(i,"change",g);return i};X.prototype.Uj=function(a){var b=this.hg[a];return!b||b.blank?this.b.createTextNode(""):b.checked!=undefined?this.rr(a,b):b.isradioselection!=undefined?this.tr(a,b):this.sr(a,b)};
X.prototype.rr=function(a,b){var c="gf-chart-settings-checkbox"+a,d=this.b.g("input",{type:"checkbox",id:c,name:b.paramName,checked:b.checked,defaultChecked:b.checked,clickType:b.clickType});this.j.listen(d,"click",this.rv);var e=this.b.g("label",{"for":c,"class":"gf-chart-settings-checkbox"});Th(e,b.name);return this.b.g("p",{"class":"gf-chart-settings-checkbox"},d,e)};
X.prototype.tr=function(a,b){var c=this.b.g("p",{"class":"gf-chart-settings-radiobutton"});Th(c,b.name);for(var d=this.km("gf-chart-settings-radiobutton"+a,b.paramName,b.options,b.values,b.selected,b.clickType,this.ph,"gf-chart-settings-radiobutton"),e=0;e<d.length;e+=2){c.appendChild(d[e]);c.appendChild(d[e+1]);c.appendChild(this.b.createTextNode(" "))}return c};
X.prototype.sr=function(a,b){var c="gf-chart-settings-dropdown"+a,d=this.of(c,b.paramName,b.options,b.values,b.selected,b.clickType,this.ph),e=this.b.g("label",{"for":c});Th(e,b.name);return this.b.g("p",{"class":"gf-chart-settings-dropdown"},e,d)};X.prototype.ke=function(a,b,c){var d=this.b.B("input",{"class":c,value:a,type:"button"});this.j.listen(d,"click",b);return d};
X.prototype.nr=function(){this.Nd=this.b.g("div",{"class":"gf-chart-plotfeeds"});var a=this.b.g("table",{"class":"gf-chart-plotfeeds"},this.b.g("tbody",l)),b=a.firstChild;this.Xf=this.b.g("input",{size:36,maxLength:1024,type:"text",autocomplete:"off"});var c=this.b.g("td",{"class":"gf-chart-plotfeeds-inputbox-td"},this.Xf),d=this.ke("Plot feed",this.nv,"gf-chart-plotfeeds-pcbtn"),e=this.ke("Clear flags",this.Pu,"gf-chart-plotfeeds-pcbtn"),f=this.b.g("td",{"class":"gf-chart-plotfeeds-button-td"},d,
e);this.Do=this.b.g("div",{"class":"gf-chart-plotfeeds-clsbtn SP_delete"});var g=this.b.g("td",{"class":"gf-chart-settings-td"},this.Do);b.appendChild(this.b.g("tr",l,c,f,g));this.Nd.appendChild(a);this.Nd.style.display="none";this.gr()};X.prototype.gr=function(){var a=this.b.g("span",{"class":"gf-chart-plotfeeds-errtxt"},this.b.createTextNode("The feed address you entered has returned no data.")),b=this.b.g("td",{"class":"gf-chart-plotfeeds-errtxt",colspan:3},a);this.ox=this.b.g("tr",l,b)};
X.prototype.jr=function(){this.Me=this.b.g("div",{"class":"gf-chart-linktochart"});var a=this.b.g("table",{"class":"gf-chart-linktochart"},this.b.g("tbody",l)),b=a.firstChild,c=this.b.g("td",{"class":"gf-chart-linktochart"},this.b.createTextNode("Paste link in email, IM or website"));this.mo=this.b.g("div",{"class":"gf-chart-linktochart-clsbtn SP_delete"});var d=this.b.g("td",{"class":"gf-chart-settings-td"},this.mo);this.Rf=this.b.g("input",{size:52,maxLength:1024,type:"text",autocomplete:"off",
value:location.protocol+"//"+location.host+"/"+_getLinkToChart()});var e=this.b.g("td",{"class":"gf-chart-linktochart"},this.Rf);b.appendChild(this.b.g("tr",l,c,d));b.appendChild(this.b.g("tr",l,e));this.Me.appendChild(a);this.Me.style.display="none"};
X.prototype.Ar=function(){this.og=this.b.g("div",{"class":"gf-chart-technicals"});this.vi=this.b.g("div",l);if(this.ui&&this.ui.length>0)for(var a=0;a<this.ui.length;a++){var b=this.ui[a],c=this.lj(b.name,b.param);c&&this.vi.appendChild(c)}else this.vi.appendChild(this.lj());this.Lp=this.b.g("div",{"class":"gf-chart-technicals-clsbtn SP_delete"});var d=this.b.g("label",{"class":"gf-chart-technicals-label"},this.b.createTextNode("Add technical"));this.j.listen(d,"click",this.Ku);var e=this.b.g("div",
l,d),f=this.b.g("table",{"class":"gf-chart-technicals"},this.b.g("tbody",l)),g=f.firstChild;g.appendChild(this.b.g("tr",l));g.firstChild.appendChild(this.b.g("td",l,this.vi,e));g.firstChild.appendChild(this.b.g("td",{"class":"gf-chart-settings-td"},this.Lp));this.og.appendChild(f);this.og.style.display="none"};
X.prototype.yr=function(a,b){var c=this.b.g("input",{type:"checkbox",id:a,"class":"gf-chart-technicals-checkbox",checked:b,defaultChecked:b});this.j.listen(c,"click",this.Cv);return this.b.g("td",{"class":"gf-chart-technicals-checkbox-td"},c)};
X.prototype.zr=function(a,b){var c=this.b.g("select",{id:a,"class":"gf-chart-technicals-dropdown"});c.appendChild(this.b.g("option",l,this.b.createTextNode("Select technical...")));for(var d in this.Fb){var e=this.Xd[d].displayName;c.appendChild(this.b.g("option",{value:d,selected:d==b},this.b.createTextNode(e?e:d)))}this.j.listen(c,"change",this.Dv);return c};
X.prototype.pr=function(a){var b=this.b.g("label",{id:a,"class":"gf-chart-technicals-label"},this.b.createTextNode("Remove technical"));this.j.listen(b,"click",this.Ru);return b};
X.prototype.lj=function(a,b){var c;if(a&&b){if(this.Fb[a]==undefined)return;var d=this.Fb[a].length;c=b.split("*");if(c.length!=d+1)return}var e=this.Vo++,f=c&&c[0]=="true";if(f&&this.Ne){var g=Ye(this.Ne,a);if(g>=0)if(this.to){if(this.to!=a)f=p}else this.to=this.Ne[g]}f&&this.Ga[a].push(e);var i=this.zr(this.gt(e),a),j=this.pr(this.Ft(e)),m=this.b.g("table",{"class":"gf-chart-technicals-table"},this.b.g("tbody",l)),n=m.firstChild;n.appendChild(this.b.g("tr",l,this.yr(this.yf(e),f==k),this.b.g("td",
l,i,j)));n.appendChild(this.b.g("tr",l));if(c){c.splice(0,1);this.ha[e]={name:a||"",checked:f};this.lm(n.lastChild,String(e),a||"",c)}return this.b.g("div",{id:this.Jj(e),"class":"gf-chart-technicals-div"},m)};
X.prototype.lv=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;var c=this.At(a.currentTarget.id);this.Io(c);this.ha[c]&&this.Wk([this.ha[c].name])}else a.currentTarget.value=a.currentTarget.lastValue}};X.prototype.mv=function(a){a.keyCode==13&&a.currentTarget.blur()};
X.prototype.Ku=function(){this.vi.appendChild(this.lj());Wl()};X.prototype.Ru=function(a){var b=this.Bt(a.currentTarget.id),c=this.b.Xa(this.yf(Number(b))).checked;this.Wh(b);var d=this.ha[b]?this.ha[b].name:l;if(this.ha[b]){this.ha[b]=l;this.Wk([d])}var e=this.b.Xa(this.Jj(Number(b)));this.vi.removeChild(e);d&&c&&_GF_click("","t-d",this.Xd[d].logName,"");Wl()};
X.prototype.Cv=function(a){var b=this.yt(a.currentTarget.id);if(this.ha[b]==undefined)a.currentTarget.checked=p;else{var c=this.ha[b].name,d=[c];if(a.currentTarget.oldIndicatorId){d.push(a.currentTarget.oldIndicatorId);a.currentTarget.oldIndicatorId=l}if(a.currentTarget.checked){this.ha[b].checked=k;for(var e=[],f=0;f<this.Ga[c].length;f++)e.push(this.Ga[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(Ye(this.Ne,c)!=-1)for(var g=
0;g<this.Ne.length;g++){var i=this.Ne[g];if(i!=c&&this.Ga[i]&&this.Ga[i].length>0){d.push(i);for(f=0;f<this.Ga[i].length;f++)e.push(this.Ga[i][f])}}for(f=0;f<e.length;f++)this.Wh(e[f]);this.Ga[c].push(b);var j=this.Fb[c].length,m="true";for(f=0;f<this.Ga[c].length;f++){var n=this.ve(this.Ga[c][f]);for(g=0;g<j;g++){m+="*";m+=this.b.Xa(n+"_"+g).value}}this.Pa.flash_proxy.call("enableIndicator",c,m)}else this.Wh(b);this.Wk(d);if(a.currentTarget.checked)if(a.currentTarget.skipLogToggleOn)a.currentTarget.skipLogToggleOn=
undefined;else _GF_click("","t-on",this.Xd[c].logName,"");else _GF_click("","t-off",this.Xd[c].logName,"");Wl()}};
X.prototype.Dv=function(a){var b=this.zt(a.currentTarget.id),c=this.b.Xa(this.yf(Number(b))).checked,d=this.ha[b]?this.ha[b].name:l,e=this.Fb[a.currentTarget.value]?a.currentTarget.value:l;this.Wh(b);this.ha[b]=l;var f=this.b.Xa(this.Jj(Number(b))),g=f.firstChild.firstChild;g.removeChild(g.lastChild);g.appendChild(this.b.g("tr",l));var i=a.currentTarget.value;if(this.Fb[i]){this.ha[b]={name:i,checked:p};this.lm(g.lastChild,b,i,l)}var j=this.b.Xa(this.yf(Number(b)));j.skipLogToggleOn=k;j.oldIndicatorId=
d;j.click();d&&c&&_GF_click("","t-d",this.Xd[d].logName,"");e&&_GF_click("","t-a",this.Xd[e].logName,"");Wl()};X.prototype.Et=function(a){return this.b.Xa(a).value};
X.prototype.$t=function(a){var b=[],c=this.Fb[a];if(c.length==0)return b;for(var d=c[0].value.length,e=d-1,f=this.Ga[a],g,i,j=0;j<d-1;j++){for(g=0;g<f.length;g++){var m=this.ve(f[g]);for(i=0;i<c.length;i++)if(this.Et(m+"_"+i)!=c[i].value[j])break;if(i==c.length)break}if(g==this.Ga[a].length){e=j;break}}for(i=0;i<c.length;i++)b.push(""+c[i].value[e]);return b};
X.prototype.lm=function(a,b,c,d){var e=this.b.g("td",l),f=this.b.g("td",l),g=this.ve(Number(b));d||(d=this.$t(c));for(var i=this.Fb[c],j=0;j<i.length;j++){f.appendChild(this.b.g("input",{id:g+"_"+j,"class":"gf-chart-technicals-inputbox",maxLength:3,size:2,type:"text",value:d[j]}));f.lastChild.lastValue=d[j];f.lastChild.logName=this.Xd[c].logName+(i.length>1?"-"+(j+1):"");this.j.listen(f.lastChild,"blur",this.lv);this.j.listen(f.lastChild,"keypress",this.mv);f.appendChild(this.b.g("span",{"class":"gf-chart-technicals-textspan"},
this.b.createTextNode(i[j].name)))}a.appendChild(e);a.appendChild(f)};X.prototype.Io=function(a){var b;if(a!=undefined){if(!this.ha[a])return;if(!this.ha[a].checked)return;b=this.ha[a].name}for(var c in this.Ga)if(!(b&&c!=b)){var d=this.Ga[c];if(!(d.length==0)){this.Pa.flash_proxy.call("enableIndicator",c,"false");for(var e=this.Fb[c].length,f="true",g=0;g<d.length;g++)for(var i=this.ve(d[g]),j=0;j<e;j++){f+="*";f+=this.b.Xa(i+"_"+j).value}this.Pa.flash_proxy.call("enableIndicator",c,f)}}};
X.prototype.Wh=function(a){var b=this.ha[a];if(!(b==undefined)){var c=this.b.Xa(this.yf(Number(a)));c.checked=p;b.checked=p;for(var d=b.name,e=this.Ga[d],f="",g=0;g<e.length;g++)if(e[g]==a){e.splice(g,1);g--}else for(var i=this.Fb[d].length,j=this.ve(e[g]),m=0;m<i;m++){f+="*";f+=this.b.Xa(j+"_"+m).value}f=f==""?"false":"true"+f;this.Pa.flash_proxy.call("enableIndicator",d,f)}};
X.prototype.Wk=function(a){for(var b={},c=0;c<this.ha.length;c++)if(!(this.ha[c]==undefined)){var d=this.ha[c].name;if(b[d]==undefined)b[d]="";else b[d]+="@";b[d]+=this.ha[c].checked;for(var e=this.Fb[d].length,f=this.ve(c),g=0;g<e;g++){b[d]+="*";b[d]+=this.b.Xa(f+"_"+g).value}}if(a){for(var i={},j=0;j<a.length;j++){var m=b[a[j]]?b[a[j]]:"";i[a[j]]=m}this.Wo(i)}else this.Wo(b)};X.prototype.yt=function(a){return a.replace("gf-chart-technicals-checkbox","")};
X.prototype.zt=function(a){return a.replace("gf-chart-technicals-dropdown","")};X.prototype.Bt=function(a){return a.replace("gf-chart-technicals-label","")};X.prototype.At=function(a){var b=a.replace("gf-chart-technicals-inputbox","");return b.split("_")[0]};X.prototype.yf=function(a){return"gf-chart-technicals-checkbox"+a};X.prototype.Jj=function(a){return"gf-chart-technicals-div"+a};X.prototype.gt=function(a){return"gf-chart-technicals-dropdown"+a};
X.prototype.ve=function(a){return"gf-chart-technicals-inputbox"+a};X.prototype.Ft=function(a){return"gf-chart-technicals-label"+a};X.prototype.Tf=function(){if(!this.Jr){this.decorate(E("settings-panel"));this.Jr=k}};X.prototype.nw=function(){this.Tf();this.Io();Wl()};
X.prototype.Uq=function(){this.Tf();if(this.Me.style.display=="block")this.Ba(l);else{this.Ba(l);this.Me.style.display="block";this.r.style.display="block";E("link-to-chart-img").className="SP_link_on";E("link-to-chart-link").className="chart-footer-link-selected";this.fi(l);Wl()}};X.prototype.Xq=function(){this.Tf();if(this.og.style.display=="block")this.Ba(l);else{this.Ba(l);this.og.style.display="block";this.r.style.display="block";E("technicals-link").className="chart-footer-link-selected";Wl()}};
X.prototype.Vq=function(){this.Tf();if(this.Nd.style.display=="block")this.Ba(l);else{this.Ba(l);this.Nd.style.display="block";this.r.style.display="block";E("plot-feeds-link").className="chart-footer-link-selected";Wl()}};X.prototype.Wq=function(){this.Tf();if(this.gd.style.display=="block")this.Ba(l);else{this.Ba(l);this.gd.style.display="block";this.r.style.display="block";E("settings-link").className="chart-footer-link-selected";Wl()}};
X.prototype.Ba=function(){this.gd.style.display="none";this.Nd.style.display="none";this.og.style.display="none";this.Me.style.display="none";this.r.style.display="none";if(E("settings-link"))E("settings-link").className="chart-footer-link";if(E("plot-feeds-link"))E("plot-feeds-link").className="chart-footer-link";if(E("technicals-link"))E("technicals-link").className="chart-footer-link";if(E("link-to-chart-link"))E("link-to-chart-link").className="chart-footer-link";if(E("link-to-chart-img"))E("link-to-chart-img").className=
"SP_link";Wl()};X.prototype.nv=function(){if(this.Xf.value&&this.Xf.value!=""){this.Qn();google.finance.chart.plotRssFeed(this.Xf.value);this.wf(this.Xf)}};X.prototype.Pu=function(){this.Qn();google.finance.chart.clearFlags();this.wf(this.Xf);On()};X.prototype.Qn=function(){var a=this.Nd.firstChild.firstChild;a.childNodes.length==2&&a.removeChild(this.ox)};X.prototype.Ay=function(){var a=this.Nd.firstChild.firstChild;a.childNodes.length==1&&a.appendChild(this.ox)};
X.prototype.jz=function(a){if(this.$i)switch(a.chartType){case "IntervalBasedLine":this.$i.childNodes[0].firstChild.click();break;case "CandleStick":this.$i.childNodes[1].firstChild.click();break;case "Ohlc":this.$i.childNodes[2].firstChild.click();break}};X.prototype.rv=function(a){var b=a.currentTarget.name,c=a.currentTarget.checked?"true":"false";this.Pa.setParameter(b,c);this.Vk(b,c);if(a.currentTarget.clickType)_GF_click("","chs_"+a.currentTarget.clickType,a.currentTarget.checked?"1":"0","")};
X.prototype.ph=function(a){var b=a.currentTarget.name,c=a.currentTarget.value;if(b=="chartType"){var d=this.xb.lastChild;if(c=="IntervalBasedLine"){if(d==this.Lg){this.xb.removeChild(this.Lg);this.xb.appendChild(this.Mg)}}else if(d==this.Mg){this.xb.removeChild(this.Mg);this.xb.appendChild(this.Lg)}this.Pa.flash_proxy.call("setLineStyle",c)}else this.Pa.setParameter(b,c);this.Vk(b,c);a.currentTarget.clickType&&_GF_click("","chs_"+a.currentTarget.clickType,c,"")};
X.prototype.Vk=function(a,b){if(!(a==l||b==l)){var c="/finance/prefs?action=set&prefsgroup=charts&prefskey="+escape(a)+"&prefsval="+escape(b);if(_expected_hash_value!=l&&_expected_hash_value!="")c+="&hash="+_expected_hash_value;var d=this.Cr();d.send(c)}};X.prototype.Wo=function(a){if(!(a==l)){var b=[],c=[];for(var d in a){b.push(d);c.push(a[d])}b.length==0||this.Vk(b.join("|"),c.join("|"))}};X.prototype.Cr=function(){return new M};
X.prototype.fi=function(){if(this.Rf&&this.Me.style.display=="block"){this.Rf.value=location.protocol+"//"+location.host+"/"+_getLinkToChart();this.wf(this.Rf)}};X.prototype.wf=function(a){try{a.blur();a.focus();a.select()}catch(b){}};var Pn=function(a,b,c,d,e){this.title=a;this.time=b||l;this.href=c||l;this.snippet=d||l;this.properties=e||{}};Pn.prototype.getTime=function(){return this.time};var Qn=function(a,b){return b.getTime()-a.getTime()};Pn.prototype.Eb=function(){return this.title};Pn.prototype.sc=function(a){return this.properties[a]};Pn.prototype.mq=function(a,b){this.properties[a]=b};Pn.prototype.toString=function(){return this.time+" "+this.title};var Rn=function(a){D.call(this);this.r=a;var b=B?"propertychange":Xf&&a.tagName=="TEXTAREA"?"keypress":"input";this.zk=C(this.r,b,this)};w(Rn,D);Rn.prototype.handleEvent=function(a){var b=a.Gj();if(b.type=="propertychange"&&b.propertyName=="value"||b.type=="input"||b.type=="keypress"){if(B||Vf){var c=b.srcElement;if(c!=ph(c).activeElement)return}var d=new ig(b);d.type="input";try{this.dispatchEvent(d)}finally{d.dispose()}}};Rn.prototype.i=function(){Rn.o.i.call(this);Eg(this.zk);delete this.r};var Sn=function(){O.call(this)};w(Sn,O);fa(Sn);Sn.prototype.va=function(){return"button"};Sn.prototype.hd=function(a,b,c){if(Wf)b==16?Xk(a,"pressed",c):Sn.o.hd.call(this,a,b,c)};Sn.prototype.g=function(a){var b=Sn.o.g.call(this,a),c=a.hb();c&&this.pb(b,c);var d=a.xa();d&&this.ua(b,d);a.Ta(16)&&this.hd(b,16,p);return b};Sn.prototype.decorate=function(a,b){b=Sn.o.decorate.call(this,a,b);a.uy(this.xa(b));a.gg(this.hb(b));a.Ta(16)&&this.hd(b,16,p);return b};Sn.prototype.xa=ea;Sn.prototype.ua=ea;
Sn.prototype.hb=function(a){return a.title};Sn.prototype.pb=function(a,b){if(a)a.title=b||""};Sn.prototype.J=function(){return"goog-button"};var Tn=function(){Sn.call(this)};w(Tn,Sn);fa(Tn);Tn.prototype.va=function(){return undefined};Tn.prototype.g=function(a){this.sp(a);return a.b.g("button",{"class":this.Qb(a).join(" "),disabled:!a.W(),title:a.hb()||"",value:a.xa()||""},a.Wm()||"")};Tn.prototype.oa=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};Tn.prototype.decorate=function(a,b){this.sp(a);b.disabled&&hh(b,this.re(1));return Tn.o.decorate.call(this,a,b)};
Tn.prototype.zc=function(a){a.F().listen(a.k(),"click",a.Wf)};Tn.prototype.Qd=ea;Tn.prototype.Hc=ea;Tn.prototype.Xb=function(a){return a.W()};Tn.prototype.cc=ea;Tn.prototype.Na=function(a,b,c){Tn.o.Na.call(this,a,b,c);var d=a.k();if(d&&b==1)d.disabled=c};Tn.prototype.xa=function(a){return a.value};Tn.prototype.ua=function(a,b){if(a)a.value=b};Tn.prototype.hd=ea;Tn.prototype.sp=function(a){a.cl(p);a.Vx(255,p);a.fd(32,p)};var Un=function(a,b,c){P.call(this,a,b||Tn.getInstance(),c)};w(Un,P);Un.prototype.xa=function(){return this.Yp};Un.prototype.ua=function(a){this.Yp=a;this.A.ua(this.k(),a)};Un.prototype.uy=function(a){this.Yp=a};Un.prototype.hb=function(){return this.Ai};Un.prototype.pb=function(a){this.Ai=a;this.A.pb(this.k(),a)};Un.prototype.gg=function(a){this.Ai=a};Un.prototype.i=function(){Un.o.i.call(this);delete this.Yp;delete this.Ai};
Un.prototype.Q=function(){Un.o.Q.call(this);if(this.Ta(32)){var a=this.ea();a&&this.F().listen(a,"keyup",this.Dd)}};Un.prototype.Dd=function(a){if(a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup")return this.Wf(a);return a.keyCode==32};ml("goog-button",function(){return new Un(l)});var Vn=function(){Sn.call(this)};w(Vn,Sn);fa(Vn);Vn.prototype.g=function(a){var b=this.Qb(a),c={"class":"goog-inline-block "+b.join(" "),title:a.hb()||""};return a.b.g("div",c,this.ke(a.Yg(),a.b))};Vn.prototype.T=function(a){return a&&a.firstChild.firstChild};Vn.prototype.ke=function(a,b){var c="goog-inline-block "+this.J();return b.g("div",c+"-outer-box",b.g("div",c+"-inner-box",a))};Vn.prototype.oa=function(a){return a.tagName=="DIV"};
Vn.prototype.Iv=function(a,b){var c=a.b.hn(b);if(c&&c.className.indexOf(this.J()+"-outer-box")!=-1){var d=a.b.hn(c);if(d&&d.className.indexOf(this.J()+"-inner-box")!=-1)return k}return p};Vn.prototype.decorate=function(a,b){Wn(b,k);Wn(b,p);this.Iv(a,b)||b.appendChild(this.ke(b.childNodes,a.b));hh(b,"goog-inline-block",this.J());return Vn.o.decorate.call(this,a,b)};Vn.prototype.J=function(){return"goog-custom-button"};
var Wn=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(va(e)=="")a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};var Xn=function(a,b,c){Un.call(this,a,b||Vn.getInstance(),c)};w(Xn,Un);ml("goog-custom-button",function(){return new Xn(l)});var Y=function(a,b){this.B=Gh;this.fc=a||l;this.ya=[];this.Cc=this.Dc=0;this.lk=[];this.Np=0;this.fz=this.B("div");this.Qr=this.B("div");this.dA=this.B("td",{},this.fz);this.Hz=this.B("td",{},this.Qr);this.fs=b&&b.MSG_FILTER!==undefined?b.MSG_FILTER:"Enter a filter term";this.gz=b&&b.MSG_SCROLL_UP!==undefined?b.MSG_SCROLL_UP:"Scroll Up";this.Rr=b&&b.MSG_SCROLL_DOWN!==undefined?b.MSG_SCROLL_DOWN:"Scroll Down";this.uf=new sm(this.fs);this.mx=this.B("div");this.Km="on";this.Sg=l;this.ca=new cj;this.Jl=
new ci(40);this.Il=new ci(40);this.fw();this.yy()};w(Y,D);Y.prototype.fw=function(){this.yc=this.B("div");zi(this.yc,"position","relative");this.md=this.B("div",l,this.yc);zi(this.md,"overflow","hidden");zi(this.md,"position","relative");zi(this.md,"width","100%");this.Rk();this.xy()};Y.prototype.Rk=function(){Di(this.yc,0,0)};
Y.prototype.xy=function(){var a={border:0,cellspacing:0,cellpadding:0};this.Lc=new Xn(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.gz))))));this.nc=new Xn(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.Rr))))));this.Sg=l;if(this.Km!="off")this.Sg=this.B("td",{"class":"chartclient-list-filter"});
a.width="100%";delete a.cellpadding;this.xz=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.dA,this.Sg))))),this.B("tr",{},this.B("td",{id:"scrollingListTd"},this.we())),this.B("tr",{},this.B("td",{},this.B("table",a,this.B("tbody",{},this.B("tr",{},this.Hz,this.B("td",{"class":"chartclient-placeholder-cell"},this.mx))))))));this.Lc.render(this.fz);this.nc.render(this.Qr);this.Lc.pb(this.gz);
this.nc.pb(this.Rr);this.Lc.V(p);this.nc.V(k);this.uf.render(this.Sg);eh(this.uf.k(),"filter-box label-input-label")};Y.prototype.$x=function(a){switch(a){case "off":Jh(this.Sg);break;default:this.Km=a;break}};Y.prototype.Uv=function(){G(this.uf.k(),p)};Y.prototype.zy=function(){G(this.uf.k(),k)};
Y.prototype.yy=function(){this.ca.listen(this.Lc.k(),"mousedown",this.Ky,p,this);this.ca.listen(this.nc.k(),"mousedown",this.Jy,p,this);this.ca.listen(this.Lc.k(),"mouseup",this.si,p,this);this.ca.listen(this.nc.k(),"mouseup",this.si,p,this);this.ca.listen(this.Jl,"tick",u(function(){this.Zh(0)},this));this.ca.listen(this.Il,"tick",u(function(){this.Zh(1)},this));this.Tn=new Rn(this.uf.k());this.Tn.addEventListener("input",this.ds,p,this)};
Y.prototype.ds=function(){var a=this.en();this.Ng=this.fn(this.ya,a);this.Ok(this.Ng);this.dispatchEvent({type:"list_changed"});this.Rk()};Y.prototype.fn=function(a,b){var c=Wg(a,function(d){return Ha(d.$d().toLowerCase(),b)},this);this.Km=="sortOnOccurence"&&c.sort(u(function(d,e){var f=d.$d().toLowerCase().indexOf(b),g=e.$d().toLowerCase().indexOf(b);return f-g},this));return c};Y.prototype.en=function(){return this.uf.xa().toLowerCase()};Y.prototype.yd=function(){return this.Ng};
Y.prototype.cu=function(){return this.mx};Y.prototype.Ky=function(){this.si();this.Zh(0);this.Np=ei(u(function(){this.Jl.start()},this),400)};Y.prototype.Jy=function(){this.si();this.Zh(1);this.Np=ei(u(function(){this.Il.start()},this),400)};Y.prototype.si=function(){fi(this.Np);this.Jl.stop();this.Il.stop()};
Y.prototype.Zh=function(a){var b=0;switch(a){case 0:if(this.Dc>0){this.Dc--;b=this.Sj(this.Dc)}break;case 1:if(this.Cc<this.ya.length-1){this.Cc++;b=this.Sj(this.Cc)}break}this.Xo(b);switch(a){case 0:this.Cc=this.Fj();break;case 1:this.Dc=this.An();break}};Y.prototype.Xo=function(a){var b=this.Lt(),c=this.Iu(),d=this.Mt(),e=b.y+a;if(e>=0)e=0;else if(e<=c.height-d.height){e=c.height-d.height;this.dispatchEvent({type:"scroll_to_end"})}Di(this.yc,b.x,e);this.hz()};
Y.prototype.Lt=function(){return Oi(this.yc,this.we())};Y.prototype.Iu=function(){return Ri(this.we())};Y.prototype.Mt=function(){return Ri(this.yc)};Y.prototype.Sj=function(a){var b=0,c=this.ya[a],d=this.we(),e=Oi(c.k(),d);if(e.y<-1)b=e.y*-1;else{var f=Ri(c.k()),g=e.y+f.height-this.lf;if(g>0)b=g*-1}return b};Y.prototype.hz=function(){var a=Oi(this.yc,this.md),b=Ri(this.md),c=Ri(this.yc);this.Lc.V(k);this.nc.V(k);a.y>=0&&this.Lc.V(p);a.y<=b.height-c.height+5&&this.nc.V(p)};
Y.prototype.sg=function(a){if(a){this.ya=this.ya.concat(a);var b=this.en();this.Ng=b==this.fs.toLowerCase()?this.ya:this.fn(this.ya,b);this.Ok()}};Y.prototype.Pk=function(){for(var a=0;a<this.ya.length;a++)Gg(this.ya[a]);this.Ng=this.ya=[];this.Cc=this.Dc=0;this.Ok();this.Rk()};
Y.prototype.Sp=function(a){Ze(this.lk,function(d){d.unhighlight()});this.lk=[];for(var b=0;b<this.ya.length;b++)if(this.ya[b].da()==a){this.ya[b].highlight();this.lk.push(this.ya[b]);this.Cc=this.Dc=b}if(this.lk.length){var c=this.Sj(this.Dc);this.Xo(c)}this.Dc=this.An();this.Cc=this.Fj()};
Y.prototype.Ok=function(a){var b=a||this.Ng;Jh(this.yc);Ze(b,function(c){F(this.yc,c.k());Ig(c,"mousedown",p)||this.ca.listen(c,"mousedown",u(function(){var d={};d.type="item_clicked";d.id=c.da();this.dispatchEvent(d)},this))},this);if(b)this.Cc=this.Fj()};Y.prototype.An=function(){for(var a=this.we(),b=this.Dc,c=this.Cc;c>=0;c--){var d=this.ya[c],e=Oi(d.k(),a);if(e.y<-1)break;b=c}return b};
Y.prototype.Fj=function(){for(var a=this.we(),b=this.Cc,c=this.Dc;c<this.ya.length;c++){var d=this.ya[c],e=Ri(d.k()),f=Oi(d.k(),a),g=f.y+e.height-this.lf;if(g>0)break;b=c}return b};Y.prototype.we=function(){return this.md};
Y.prototype.decorate=function(a,b){var c=b||this.fc,d=qh(a);d.appendChild(a,this.xz);var e=20,f=20;this.lf=c.height-e-f;if(!isNaN(c.width)&&!isNaN(this.lf)&&c.width>=0&&this.lf>=0){var g=E("scrollingListTd");zi(g,"width","100%");zi(g,"height",this.lf);Qi(this.md,c.width,this.lf);zi(this.md,"width","100%")}this.Lc.V(p);this.nc.V(k)};Y.prototype.i=function(){Y.o.i.call(this);this.ca.dispose();this.ca=l;this.nc.dispose();this.nc=l;this.Lc.dispose();this.Lc=l;this.Tn.dispose();this.Tn=l};var Yn=function(a,b){D.call(this);this.ab=a;this.Ib=b;this.r=this.Vb=l;this.j=new cj(this)};w(Yn,D);Yn.prototype.da=function(){var a=this.Ib.id;if(a=="0"){var b=this.getTime();if(b>0)return String(b)}return a};
Yn.prototype.k=function(){if(!this.r){this.Vb=this.Gg();var a=Gh,b=Ma(this.Ib.a[0].t,80),c=this.Ib.a[0].s.replace(/ \(.*\)$/,""),d="n-c-",e=this.Ib.a[0].fid;if(e)d=d+e;this.r=a("div",{"class":"news-item"},a("div",{"class":"pin"},a("div",{"class":"g-c"},this.Vb)),a("div",{"class":"cluster"},a("div",{"class":"g-c"},a("a",{"class":"title",id:d,href:this.Ib.a[0].u},document.createTextNode(b)),a("div",{},a("span",{"class":"source"},document.createTextNode(c+" - ")),a("span",{"class":"date"},document.createTextNode(this.Ib.a[0].d))))))}return this.r};
Yn.prototype.$d=function(){return this.Ib.a[0].t+" "+this.Ib.a[0].s};Yn.prototype.Gg=function(){var a=Gh("img",{src:"/finance/images/cleardot.gif","class":"SP_pin"+this.ab,id:"pin"+this.ab,align:"absmiddle",width:"16",height:"16",style:"cursor:pointer"});this.j.listen(a,"mousedown",function(){this.dispatchEvent({type:"mousedown",id:this.da()})});return a};Yn.prototype.It=function(){return this.ab};Yn.prototype.gy=function(a){this.ab=a};
Yn.prototype.getTime=function(){return this.Ib.a.tt?this.Ib.a.tt:this.Ib.a[0].tt};Yn.prototype.unhighlight=function(){eh(this.r,"news-item");eh(this.Vb,"SP_pin"+this.ab);this.Vb.id="pin"+this.ab};Yn.prototype.highlight=function(){hh(this.r,"news-item-sel");eh(this.Vb,"SP_ph"+this.ab);this.Vb.id="ph"+this.ab};var Zn=function(a,b,c){D.call(this);this.R=a;this.ab=b;this.la=c;this.Yo=this.r=this.Vb=l;this.displayAuthor=p};w(Zn,D);Zn.prototype.da=function(){return this.R};
Zn.prototype.k=function(){if(!this.r){this.Vb=this.Gg();var a=new Mj;a.append("<span class=title>"+this.la.title+"</span>");if(this.displayAuthor&&this.la.sc("author"))a.append("<span class=author> - ").append(this.la.sc("author")).append("</span>");else if(this.la.snippet){var b=this.la.snippet.length>70?this.la.snippet.substr(0,70)+"...":this.la.snippet;a.append("<span class=snippet> - ").append(b).append("</span>")}var c=new Date(this.getTime()*1000),d=new Mj(this.Xs(c));this.la.href&&d.append('<a target=_blank href="'+
this.la.href).append('"><img src=/finance/images/cleardot.gif class=rssSprite ').append("width=16 height=16 id=link></a>");var e=Gh,f=e("div",{"class":"content"});f.innerHTML=a.toString();var g=e("div",{});g.innerHTML=d.toString();this.r=e("div",{"class":"rss-item"});var i=e("table",{border:0,width:"100%",cellpadding:0,cellspacing:0},e("tbody",{},e("tr",{},e("td",{valign:"top",width:"20"},this.Vb),e("td",{},f),e("td",{width:"80",align:"right",valign:"top"},g))));F(this.r,i)}return this.r};
Zn.prototype.Xs=function(a){var b=new Mj;b.append("<div class=date>").append(zb(this.Ys(a),a)).append("</div>");return b.toString()};Zn.prototype.Ys=function(a){var b=new Date;return b.getYear()==a.getYear()&&b.getDate()==a.getDate()?"h:mma":"MMM dd"};
Zn.prototype.Gg=function(){var a=Gh("img",{src:"/finance/images/cleardot.gif","class":"rssSprite pin",id:"pin"+this.ab,align:"absmiddle",style:"cursor:pointer"});C(a,"mousedown",u(function(){this.dispatchEvent({type:"mousedown",id:this.da()})},this));return a};Zn.prototype.getTime=function(){return this.la.getTime()};Zn.prototype.unhighlight=function(){eh(this.r,"rss-item");this.Vb.id="pin"+this.ab};Zn.prototype.highlight=function(){hh(this.r,"rss-item-sel");this.Vb.id="ph"+this.ab};
Zn.prototype.$d=function(){if(!this.Yo)this.Yo=this.ab+this.la.title+(this.la.snippet||"");return this.Yo};var $n=function(a,b,c,d){Zn.call(this,a,b,c);this.fA=d};w($n,Zn);
$n.prototype.k=function(){if(!this.r){new Date(this.la.getTime()*1000);this.r=Eh("div",{"padding-top":"2px"});var a=new Mj;a.append('<div style="padding-bottom:18px">').append(this.la.title);a.append('<div id="'+this.tu()+'" ').append('style="padding-top:3px;color:#666;">');this.la.snippet&&a.append(this.la.snippet+"<br>");if(this.la.sc("link")){var b=this.la.sc("link");b=b.length>50?b.substr(0,50)+"...":b;a.append('<a class=g href="').append(this.la.sc("link")+'">').append(b+"</a></div>")}a.append('<div style="font-size:12px;padding-top:3px;">').append("<a href=\"javascript:google.finance.plotRssFeed('").append(this.la.href).append("')\">"+
this.fA+"</a></div></div>");this.r.innerHTML=a.toString()}return this.r};$n.prototype.tu=function(){return"rss-feed-item-snippet-"+this.R};var ao=function(a,b){this.oz=a;this.ga=b||"plot_feeds_user_message";this.fakeTime=p};ao.inherits(Zn);ao.prototype.da=function(){return"0"};ao.prototype.getTime=function(){return this.fakeTime?1:0};ao.prototype.k=function(){if(!this.r){this.r=Gh("div",{"class":this.ga});this.r.innerHTML=this.oz}return this.r};ao.prototype.$d=function(){return this.oz};var bo=function(a,b){this.mj=a;this.zj=0;this.Ak=b||200;this.Mw=Math.min(this.Ak,90);this.um=Math.min(this.Mw,30)};bo.prototype.vb=[];bo.prototype.Ab=function(){h(new Error("Implement this method."))};bo.prototype.zd=function(a,b,c){a(this.vb);if(b<this.qn()){this.zj=0;this.Hm(function(d){a(d)},b,c)}};bo.prototype.Cf=function(a,b,c){b+c<this.Ek()||this.Ab(function(d){a(d)},b)};
bo.prototype.Hm=function(a,b,c){if(this.zj>this.Mw||this.vb.length>=this.Ak||b>this.qn()){this.zj=0;a([])}else this.Ab(u(function(d){a(d);this.zj+=d.length;var e=Math.min(this.Ak-this.vb.length,d.length);this.vb=this.vb.concat(d.slice(0,e));pf(this.vb,Qn);d.length>=this.um&&this.vb.length<this.Ak&&this.Hm(function(f){a(f)},b,c)},this),this.um)};bo.prototype.qn=function(){return this.vb.length==0?ta()/1000:this.vb[this.vb.length-1].getTime()};bo.prototype.Ek=function(){return this.vb.length};
bo.prototype.Eb=function(){h(new Error("Implement this method."))};var co=function(a){var b={type:1};return new Pn(a,undefined,undefined,undefined,b)},eo=/&lt;b&gt;/g,fo=/&lt;\/b&gt;/g;bo.prototype.Nf=function(a){if(!a)return a;var b=Ga(a);return b.replace(eo,"<b>").replace(fo,"</b>")};var go=function(a,b){this.Ci=new T(a);this.Bz=b?b:"callback";this.Zd=5000},ho=0;
go.prototype.send=function(a,b,c,d){if(!document.documentElement.firstChild){c&&c(a);return l}var e=d||"_"+(ho++).toString(36)+ta().toString(36);t._callbacks_||(t._callbacks_={});var f=document.createElement("script"),g=l;if(this.Zd>0){var i=io(e,f,a,c);g=t.setTimeout(i,this.Zd)}var j=this.Ci.clone();jo(a,j);if(b){var m=ko(e,f,b,g);t._callbacks_[e]=m;j.Td(this.Bz,"_callbacks_."+e)}xh(f,{type:"text/javascript",id:e,charset:"UTF-8",src:j.toString()});F(document.getElementsByTagName("head")[0],f);return{R:e,
Zd:g}};go.prototype.cancel=function(a){if(a&&a.R){var b=rh(a.R);if(b&&b.tagName=="SCRIPT"&&typeof t._callbacks_[a.R]=="function"){a.Zd&&t.clearTimeout(a.Zd);lo(a.R,b,p)}}};
var io=function(a,b,c,d){return function(){lo(a,b,p);d&&d(c)}},ko=function(a,b,c,d){return function(){t.clearTimeout(d);lo(a,b,k);c.apply(undefined,arguments)}},lo=function(a,b,c){t.setTimeout(function(){Mh(b)},0);if(t._callbacks_[a])if(c)delete t._callbacks_[a];else t._callbacks_[a]=ea},jo=function(a,b){for(var c in a)if(!a.hasOwnProperty||a.hasOwnProperty(c))b.Td(c,a[c]);return b};var mo=function(a,b){bo.call(this,a,b);if(a.indexOf("http://")!=0)h(new Error("Invalid feed url"));this.Eg="";this.Qk=p;this.es=k;var c=this.ju(a,this.um);this.tk=new go(c);this.Wy="&nbsp;"};w(mo,bo);var no=function(a,b){var c=new T("http://www.google.com/reader/api/0/feed-finder?output=json&q="+escape(a)),d=new go(c);d.send({},function(e){if(e.feed)b(e.feed[0].href);else if(e.items.length==0)b(l);else e.items[0].feed.length==0?b(l):b(e.items[0].feed[0].href)})};
mo.prototype.ju=function(a,b){var c=new T("http://www.google.com/reader/public/javascript/feed/"+escape(a));return c.I("n",b.toString())};mo.prototype.Ab=function(a){if(this.Qk||this.Eg=="none")a([]);else{this.Qk=k;var b={};if(this.Eg!="")b.c=this.Eg;this.tk.send(b,u(function(c){this.Qk=p;this.Eg=this.Ss(c);this.Wy=this.Cu(c);a(this.mt(c))},this),u(function(){this.Qk=p;a([this.jt()])},this))}};mo.prototype.Nj=function(){return co("This feed seems to contain no items.<br>You can try some of <a href=\"javascript:goog.finance.switchToRssFeed('')\">our examples</a> instead.")};
mo.prototype.jt=function(){var a=this.Jg.xe("q"),b="There seems to be a connection problem.<br><a href=\"javascript:goog.finance.switchToRssFeed('"+(a+"')\">Try again</a>?");return co(b)};mo.prototype.Ss=function(a){return a.continuation||"none"};mo.prototype.Cu=function(a){if(!a.title)return"(no title)";var b=Ga(a.title);return b.replace(/&amp;gt;/g,"&gt;").replace(/&amp;lt;/g,"&lt;").replace(/&amp;quot;/g,"&quot;")};
mo.prototype.mt=function(a){var b=[];if(a.items)for(var c=0;c<a.items.length;c++)try{var d=a.items[c],e=this.Nf(d.summary||d.content),f=d.alternate.href?(new T(d.alternate.href)).toString():undefined,g=new Pn(this.Nf(d.title),d.updated,f,e);d.author&&g.mq("author",this.Nf(d.author));if(!this.es||!d.author||d.author!="SocialPicks.com: Recent Picks")b.push(g)}catch(i){}pf(b,Qn);return b.length==0?[this.Nj()]:b};mo.prototype.Eb=function(){return this.Wy};var oo=function(a,b){mo.call(this,a,b);if(a.indexOf("/finance/blogs?q=")==-1)h(new Error("Invalid company blog url"));var c=this.Js(a);this.tk=new go(c);this.es=p};oo.inherits(mo);oo.prototype.Js=function(a){var b=new T(a);return b.I("output","jsonp")};oo.prototype.Nj=function(){return co("This company does not have any blog results.")};oo.prototype.Cf=function(a,b,c){if(this.Eg=="none")a([]);else b+c<this.Ek()?a([]):this.Ab(function(d){a(d)},b)};if(window.location&&(window.location.hash.indexOf("xdrp")==1||window.location.search.indexOf("xdrp")==1))if(B)document.execCommand("Stop");else if(Wf)window.stop();else h(Error("stopped"));var po=function(a){var b=a.indexOf("?");if(b>0)a=a.substring(0,b);var c=a.indexOf("#");if(c>0)a=a.substring(0,c);return a};po(document.referrer);var qo=M;qo.send=Aj;qo.cleanup=sk;qo.protectEntryPoints=tk;qo.hA=rk;qo.CONTENT_TYPE_HEADER="Content-Type";qo.FORM_CONTENT_TYPE="application/x-www-form-urlencoded;charset=utf-8";qo.kA=qk;var ro=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]},so=function(a){var b=ro(),c=document.createElement("script");c.type="text/javascript";c.src=a;b.appendChild(c)};var uo=function(a,b,c){if(typeof b!="object"||!("column"in b))h(Error(c+' must have a property "column"'));else if("desc"in b&&typeof b.desc!="boolean")h(Error('Property "desc" in '+c+" must be boolean."));to(a,b.column)},vo=function(a,b){if(typeof b=="number"){to(a,b);return[{column:b}]}else if(typeof b=="object")if(b.constructor==Array){if(b.length<1)h(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++){uo(a,b[d],
"sortColumns["+d+"]");var e=b[d].column;if(e in c)h(Error("Column index "+e+" is duplicate in sortColumns."));c[e]=k}return b}else if(typeof b[0]=="number"){var f=[];for(d=0;d<b.length;d++){to(a,b[d]);if(b[d]in c)h(Error("Column index "+e+" is duplicate in sortColumns."));c[e]=k;f.push({column:b[d]})}return f}else h(Error("sortColumns is an array, but neither of objects nor of numbers. Must be either of those."))}else{uo(a,b,"sortColumns");return[b]}},wo=function(a,b){var c=a.pn();if(Math.floor(b)!==
b||b<0||b>=c)h(Error("Invalid row index "+b+". Should be in the range [0-"+(c-1)+"]."))},to=function(a,b){var c=a.on();if(Math.floor(b)!==b||b<0||b>=c)h(Error("Invalid column index "+b+". Should be an integer in the range [0-"+(c-1)+"]."))},xo=function(a,b,c){if(!(c==l)){var d=a.Ym(b),e=typeof c;switch(d){case "number":if(e=="number")return;break;case "string":if(e=="string")return;break;case "boolean":if(e=="boolean")return;break;case "date":case "datetime":if(e=="object"&&c.constructor==Date)return;
break;case "timeofday":if(e=="object"&&c.constructor==Array&&c.length>=3&&c.length<=4){for(var f=k,g=0;g<c.length;g++){var i=c[g];if(typeof i!="number"||i!=Math.floor(i)){f=p;break}}if(c[0]<0||c[0]>23||c[1]<0||c[1]>59||c[2]<0||c[2]>59)f=p;if(c.length==4&&(c[3]<0||c[3]>999))f=p;if(f)return}break}h(Error("Type mismatch. Value "+c+" does not match type "+d+" in column index "+b))}},yo=function(a,b,c){if(b==l&&c==l)return 0;else if(b==l)return-1;else if(c==l)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(var d=0;d<3;d++)if(b[d]<c[d])return-1;else if(c[d]<b[d])return 1;var e=b.length<4?0:b[3],f=c.length<4?0:c[3];return e<f?-1:f<e?1:0}};var zo=function(a,b){this.Mc=b?b=="0.5"?"0.5":"0.6":"0.6";if(a){this.Qc=a.cols;this.wb=a.rows;this.ti=a.p||l}else{this.Qc=[];this.wb=[];this.ti=l}Za("DateTimeConstants",Wa())||$a(qb,Wa())};zo.prototype.Qc=l;zo.prototype.Mc=l;zo.prototype.wb=l;zo.prototype.ti=l;zo.prototype.pn=function(){return this.wb.length};zo.prototype.on=function(){return this.Qc.length};
zo.prototype.clone=function(){var a=new zo(l,this.Mc);a.Qc=[];a.wb=[];var b=this.ti;if(b)a.ti=Bf(b);for(var c=0;c<this.Qc.length;c++){var d=this.Qc[c],e=Bf(d),f=d.p;if(f)e.p=Bf(f);a.Qc.push(e)}for(var g=0;g<this.wb.length;g++){var i=this.wb[g],j;j={};j.c=[];var m=i.c;for(c=0;c<m.length;c++){var n=m[c],o=Bf(n);if(n){var q=n.p;if(q)o.p=Bf(q)}j.c.push(o);var s=i.p;if(s)j.p=Bf(s)}a.wb.push(j)}return a};zo.prototype.Ym=function(a){to(this,a);var b=this.Qc[a].type;return b};
zo.prototype.xa=function(a,b){wo(this,a);to(this,b);var c=this.Wg(a,b);return c?typeof c.v!="undefined"?c.v:l:l};zo.prototype.Wg=function(a,b){return this.wb[a].c[b]};zo.prototype.sc=function(a,b,c){wo(this,a);to(this,b);var d=this.Wg(a,b),e=d&&d.p;return e&&c in e?e[c]:l};zo.prototype.gu=function(a,b){wo(this,a);to(this,b);var c=this.Wg(a,b);if(!c){c={v:l,f:l};this.wb[a].c[b]=c}c.p||(c.p={});return c.p};zo.prototype.ua=function(a,b,c){this.Xx(a,b,c,undefined,undefined)};
zo.prototype.setProperty=function(a,b,c,d){var e=this.gu(a,b);e[c]=d};zo.prototype.Xx=function(a,b,c,d,e){wo(this,a);to(this,b);var f=this.Wg(a,b);if(!f){f={};this.wb[a].c[b]=f}if(typeof c!="undefined"){xo(this,b,c);f.v=c}if(typeof d!="undefined")f.f=d;if(typeof e!="undefined")f.p=e};
zo.prototype.sort=function(a){a=vo(this,a);qf(this.wb,u(function(b,c){for(var d=0;d<a.length;d++){var e=a[d].column,f=a[d].desc?-1:1,g=b.c[e]?b.c[e].v:l,i=c.c[e]?c.c[e].v:l,j=yo(this.Ym(e),g,i);if(j!=0)return j*f}return 0},this))};var Co=function(a){this.$z=Ao(a);this.$r=a.status;this.wj=[];this.xl=[];this.xl=a.warnings||[];this.wj=a.errors||[];Bo(this.xl);Bo(this.wj);if(this.$r!="error"){this.Ep=a.sig;this.sm=new zo(a.table,this.$z)}},Bo=function(a){for(var b=0;b<a.length;b++){var c=a[b].detailed_message;if(c)a[b].detailed_message=Do(c)}},Eo=/^[^<]*(<a(( )+target=('_blank')?("_blank")?)?( )+(href=('[^']*')?("[^"]*")?)>[^<]*<\/a>[^<]*)*$/,Fo=/javascript((s)?( )?)*:/,Do=function(a){if(!a)return"";return a.match(Eo)&&!a.match(Fo)?
a:a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;")},Ao=function(a){var b=a.version||"0.6";return vf(Go,b)?b:"0.6"},Go={VERSION_0_5:"0.5",VERSION_0_6:"0.6"};Co.prototype.Ep=l;Co.prototype.sm=l;Co.prototype.rw=function(){return this.$r=="error"};Co.prototype.dr=function(a){for(var b=0;b<this.wj.length;b++)if(this.wj[b].reason==a)return k;for(b=0;b<this.xl.length;b++)if(this.xl[b].reason==a)return k;return p};Co.prototype.Vs=function(){return this.Ep};
Co.prototype.Ws=function(){return this.sm};var Ko=function(a,b){this.dataSourceUrl=a;var c=b||{};this.bp=c.sendMethod||"auto";if(!vf(Ho,this.bp))h(Error("Send method not supported: "+this.bp));this.no=c.no||{};if(/spreadsheets/.test(a)||/\.corp\.google\.com:4040/.test(a)){this.Cx();this.Ex()}this.Mz=/spreadsheets.google.com\/a\/.*\/tq\?.*/.test(this.dataSourceUrl)||/.*corp.google.com:4040\/a\/.*\/tq\?.*/.test(this.dataSourceUrl);this.requestId=Io++;Jo.push(this)},Ho={XHR:"xhr",SCRIPT_INJECTION:"scriptInjection",MAKE_REQUEST:"makeRequest",
AUTO:"auto"},Lo=new Xg({"X-DataSource-Auth":"a"}),Io=0,Mo={};Ko.prototype.Op=30;var Jo=[],No=t.gadgets;Ko.prototype.Ex=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};
Ko.prototype.Cx=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 Oo=function(a,b){var c=a.indexOf("#");if(c!=-1)a=a.substring(0,c);var d=a.indexOf("?"),e="",f="",g=[];if(d==-1)e=a;else{e=a.substring(0,d);f=a.substring(d+1);g=f.split("&")}var i,j=[];for(i=0;i<g.length;i++){var m=g[i].split("="),n={};n.name=m[0];n.originalParamText=g[i];j.push(n)}for(var o in b){var q=b[o],s=p;for(i=0;i<j.length;i++)if(j[i].name==o){j[i].originalParamText=o+"="+encodeURIComponent(q);s=k;break}if(!s){var r={};r.name=o;r.originalParamText=o+"="+encodeURIComponent(q);j.push(r)}}var x=
e;if(j.length>0){x+="?";var H=[];for(i=0;i<j.length;i++)H.push(j[i].originalParamText);x+=H.join("&")}return x},Qo=function(a){if(a.target.Ah()){var b=va(a.target.tc());if(b.match(/^({.*})$/)){var c=gk(b);Po(c)}else ua(b)}else h(Error("google.visualization.Query: "+a.target.Ef()))},Po=function(a){Ao(a);var b=a.reqId,c=Mo[b];if(c){Mo[b]=l;c.In(a)}else h(Error("Missing query for request id: "+b))};Ko.prototype.Sk=l;Ko.prototype.Sh=l;Ko.prototype.xi=l;Ko.prototype.Mk=l;Ko.prototype.Kn=l;
Ko.prototype.gk=l;Ko.prototype.xx=k;Ko.prototype.Jo=0;Ko.prototype.ho=l;Ko.prototype.aa=p;Ko.prototype.cj=function(){if(this.xi){window.clearTimeout(this.xi);this.xi=l}};Ko.prototype.Vy=function(){var a="timeout",b="Request timed out";this.kp(a,b)};Ko.prototype.kp=function(a,b,c){var d={version:"0.6",status:"error",errors:[{reason:a,message:b,detailed_message:c}]};this.In(d)};
Ko.prototype.lq=function(a){var b={};if(this.Mk)b.tq=String(this.Mk);var c="reqId:"+String(this.requestId),d=this.ho;if(d)c+=";sig:"+d;if(this.Kn)c+=";type:"+this.Kn;b.tqx=c;if(this.gk){var e=[];for(var f in this.gk)e.push(f+":"+this.gk[f]);b.tqh=e.join(";")}return Oo(a,b)};
Ko.prototype.Yk=function(){var a=this.lq(this.dataSourceUrl);Mo[String(this.requestId)]=this;var b=this.bp;if(b=="auto")b=Ro(a);if(b=="makeRequest")if(da("gadgets.io.makeRequest"))this.Sx(a,this.no);else h(Error("gadgets.io.makeRequest is not defined."));else if(b=="xhr"||b=="auto"&&jn(t.location.href,(new T(t.location.href)).resolve(new T(a)).toString()))qo.send(a,Qo,"GET",l,Lo);else{var c=document.getElementsByTagName("body")[0];if(this.Mz){var d=this,e=document.createElement("img");e.onerror=function(){d.Li(a)};
e.onload=function(){d.Li(a)};e.style.display="none";var f=a+"&requireauth=1&"+(new Date).getTime();e.src=f;c.appendChild(e)}else this.Li(a)}};var Ro=function(a){var b;if(/[?&]alt=gviz(&[^&]*)*$/.test(a))b="makeRequest";else{b=mn(a,"tqrt")||"auto";vf(Ho,b)||(b="auto")}return b};
Ko.prototype.Sx=function(a,b){var c=No;if(b[c.io.RequestParameters.CONTENT_TYPE]==l)b[c.io.RequestParameters.CONTENT_TYPE]=c.io.ContentType.TEXT;if(b[c.io.RequestParameters.AUTHORIZATION]==l)b[c.io.RequestParameters.AUTHORIZATION]=c.io.AuthorizationType.SIGNED;if(b.OAUTH_ENABLE_PRIVATE_NETWORK==l)b.OAUTH_ENABLE_PRIVATE_NETWORK=k;if(b.OAUTH_ADD_EMAIL==l)b.OAUTH_ADD_EMAIL=k;c.io.Jw(a,u(this.ev,this),b);this.Gp()};
Ko.prototype.ev=function(a){if(a!=l&&a.data)eval(a.data);else{var b="make_request_failed",c="gadgets.io.makeRequest failed",d="";if(a&&a.errors){var e=a.errors;d=e.join(" ")}this.kp(b,c,d)}};Ko.prototype.Li=function(a){this.Gp();so(a);this.Fx()};Ko.prototype.Gp=function(){var a=this;this.cj();this.xi=window.setTimeout(function(){a.Vy()},this.Op*1000)};Ko.prototype.Ip=function(){if(this.Sh){window.clearTimeout(this.Sh);this.Sh=l}};
Ko.prototype.Fx=function(){this.Ip();if(this.Jo!=0&&this.xx&&this.aa){var a=this;this.Sh=window.setTimeout(function(){a.Yk()},this.Jo*1000)}};Ko.prototype.send=function(a){this.aa=k;this.Sk=a;this.Yk()};Ko.prototype.Jw=function(a,b){this.aa=k;this.Sk=a;this.sendMethod="makeRequest";this.no=b||{};this.Yk()};Ko.prototype.abort=function(){this.aa=p;this.cj();this.Ip()};Ko.prototype.In=function(a){this.cj();var b=new Co(a);if(!b.dr("not_modified")){this.ho=b.rw()?l:b.Vs();var c=this.Sk;c.call(c,b)}};
Ko.prototype.setTimeout=function(a){if(typeof a!="number"||isNaN(a)||a<=0)h(Error("Timeout must be a positive number"));this.Op=a};Ko.prototype.ji=function(a){if(typeof a!="string")h(Error("queryString must be a string"));this.Mk=a};var So=function(a,b){bo.call(this,a,b)};w(So,bo);So.prototype.mb=0;So.prototype.Ab=function(a){if(this.mb!=0)a([]);else{this.mb=1;var b=new Ko(this.mj);b.send(u(function(c){this.mb=3;var d=c.Ws();a(this.Kt(d))},this))}};So.prototype.Kt=function(a){if(a){for(var b=[],c=a.pn(),d=a.on(),e=0;e<c;e++){var f=a.xa(e,0);if(f){var g=this.Nf(a.xa(e,1)),i=new Pn(g,f.getTime()/1000);if(d>2)i.snippet=this.Nf(a.xa(e,2));b.push(i)}}pf(b,function(j,m){return m.time-j.time});return b}return[this.Lj()]};
So.prototype.Lj=function(){};v("google.visualization.Query.setResponse",Po);var To=function(a,b){So.call(this,a,b);if(this.mj.indexOf("spreadsheets.google.com")==-1)h(new Error("Invalid feed url"))};To.inherits(So);var Uo=function(a,b){var c=new T(a),d=c.au("key");if(d!=""){var e=c.Hf();e=e.substr(0,e.lastIndexOf("/"))+"/tq";c.fg(e);c.I("gid","0");c.I("pub","1");b(c.toString())}else b(l)};To.prototype.Eb=function(){return"Google Spreadsheet data"};To.prototype.Lj=function(){return co("There was an error while getting the data.<br>Make sure you published your spreadsheet.")};var Vo=function(a,b){bo.call(this,a,b);this.Jg=new T(this.mj);this.tk=new go(this.Jg)};w(Vo,bo);Vo.prototype.mb=0;var Wo=function(a,b){b("http://www.google.com/reader/api/0/feed-finder?output=json&q="+escape(a))};Vo.prototype.Ab=function(a){if(this.mb!=0)a([]);else{this.mb=1;this.tk.send({},u(function(b){this.mb=3;a(this.vn(b))},this),u(function(){this.mb=2;a([this.lu()])},this))}};
Vo.prototype.vn=function(a){if(a.feed){var b=new Pn(a.title,undefined,a.feed[0].href);return[b]}if(!a.items||a.items.length==0)return[this.Yt()];for(var c=[],d=0;d<a.items.length;d++)if(a.items[d].feed&&a.items[d].feed.length){var e=a.items[d],f=e.content.content;f=f.replace(/\u003cbr\u003e/,"");var g=this.Lx(e.feed[0].href),i=e.alternate&&e.alternate[0]?e.alternate[0].href:g;b=new Pn(e.title,undefined,g,f,{link:i});c.push(b)}return c};Vo.prototype.Lx=function(a){return a.replace(/(%0A|%27)/g,"")};
Vo.prototype.Yt=function(){var a=this.Jg.xe("q"),b=Ga(a),c="Your search - <b>"+(b+"</b> - did not match any feeds.<br>You can try some of <a href=\"javascript:goog.finance.switchToRssFeed('')\">these examples</a> instead.");return co(c)};Vo.prototype.lu=function(){var a=this.Jg.xe("q"),b="There seems to be a connection problem. <a href=\"javascript:goog.finance.switchToRssFeed('"+(a+"')\">Try again</a>?");return co(b)};
Vo.prototype.Eb=function(){var a=this.Jg.xe("q"),b=Ga(a),c='Results matching "'+(b+'"');return c};var Xo=function(a,b){bo.call(this,a,b)};w(Xo,Vo);var Yo=function(a,b){b("finance/plot_feeds_examples.js")};Xo.prototype.Ab=function(a){if(this.mb!=0)a([]);else{this.mb=1;var b=new M;C(b,"complete",u(function(){this.mb=3;if(b.Ah()){var c=eval(b.tc());a(this.vn(c))}},this));b.send(this.mj)}};Xo.prototype.Eb=function(){return"Examples"};var Zo=function(a){this.Rg={};this.ux={};this.eA=a},$o=["srch","sht","url","stat","blog"];Zo.prototype.my=function(a,b){this.ux[a]=b};Zo.prototype.Vt=function(a,b,c,d){this.dn(a,function(e){e==l?b(a,l):e.Cf(function(f){b(a,f)},c,e.Ek())},d)};Zo.prototype.zd=function(a,b,c,d,e){this.dn(a,u(function(f){if(f){var g=this.ze(a);f.zd(function(i){for(var j=0;j<i.length;j++)i[j].source=g;b(a,i)},c,d)}else b(a,[this.Xt()])},this),e)};
Zo.prototype.dn=function(a,b,c){if(this.Rg[a])b(this.Rg[a].feedFetcher);else{var d=this.kt(a),e=this.ot(d),f=this.mu(d);if(c)f=function(g,i){i(g)};f(d,u(function(g){if(g==l)b(l);else try{var i=new e(g,this.ux[a]);this.Rg[a]={feedFetcher:i,feedUrl:g,callback:b};b(i)}catch(j){b(l)}},this))}};Zo.prototype.nt=function(a){if(this.Rg[a])return this.Rg[a].feedFetcher.Eb();return"Ooops!"};
Zo.prototype.ot=function(a){switch(this.ze(a)){case 1:return To;case 4:return this.eA?mo:oo;case 2:return mo;case 3:return Xo;case 0:return Vo}};Zo.prototype.mu=function(a){switch(this.ze(a)){case 1:return Uo;case 4:return no;case 2:return no;case 3:return Yo;case 0:return Wo}};Zo.prototype.ze=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};
Zo.prototype.kt=function(a){if(!_ticker)return a;var b=_ticker,c=b.indexOf(":")!=-1?b.split(":")[1]:b,d=t._companyName||b,e=a.replace(/{TICKER}/ig,b);e=e.replace(/{SYMBOL}/ig,c);return e=e.replace(/{COMPANY_NAME}/ig,d)};Zo.prototype.Xt=function(){return co("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 ap=function(){D.call(this)};w(ap,D);ap.prototype.Pc=function(){h(new Error("Implement this method."))};ap.prototype.xd=function(){h(new Error("Implement this method."))};ap.prototype.ah=function(){return l};ap.prototype.Zb=function(){};ap.prototype.xc=function(){};ap.prototype.Hk=function(a){this.dispatchEvent({type:"item_highlighted",id:a.id})};ap.prototype.i=function(){ap.o.i.call(this)};var bp=function(a,b,c,d){ap.call(this);var e=d!=undefined?d:k;this.Nb=new Zo(e);(this.Wb=a?a:l)&&c&&this.Nb.my(this.Wb,c);this.Va=!a&&t._prefs?new _GF_Prefs("feeds"):l;this.Eh=this.lo=this.jc=this.ql=this.r=this.lc=l;var f=b?b:{MSG_FILTER:"Search within items",MSG_SCROLL_UP:"Previous",MSG_SCROLL_DOWN:"Next"};this.S=new Y(l,f);this.Xk=l;this.Of=p;this.Gd();if(!a)t.rssFeedsPanel=this};w(bp,ap);
bp.prototype.Gd=function(){C(this.S,"scroll_to_end",u(this.pz,this));C(this.S,"item_clicked",u(function(a){this.Hk(a);this.xc(a.id)},this));C(this.S,"list_changed",u(function(){this.dispatchEvent({type:"items_changed"})},this))};bp.prototype.rp=function(a){if(this.ql)this.ql.innerHTML=a};
var cp=function(){var a=new Mj;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()};
bp.prototype.Ew=function(){if(!this.Of){this.Of=k;var a=this.Wb||this.lc||"";this.tg(a)}};bp.prototype.tg=function(a){this.lz(a);this.mz(a);this.Wb||this.Gh(a);this.lc=a;this.lc==""?this.S.Uv():this.S.zy();this.Xk&&!this.Wb&&this.Xk.ua(a);this.S.Pk();var b=this.xf(),c=this.Wb?k:p;this.Nb.zd(a,u(this.Kd,this),b.start,b.end,c)};bp.prototype.Gh=function(a){var b=this.Nb.ze(a);vj({href:a},"feeds",$o[b],"")()};
bp.prototype.xf=function(){var a=t._finance_chart,b=a?a.te("defaultEndTime")/1000:ta(),c=a?a.te("defaultStartTime")/1000:l;if(!c){var d=a?a.te("numDays"):l;c=b-(d?d:_defaultZoomDays)*86400}return{start:c,end:b}};
bp.prototype.lz=function(a){if(!(this.lc==l||!this.jc)){var b=this.Nb.ze(this.lc);if(a!=""){G(this.jc,k);G(this.Eh,k);if(this.lc!=""&&b==0)var c="javascript:google.finance.plotRssFeed('"+this.lc+"')",d="&lsaquo; Back to search results";else{c="javascript:google.finance.plotRssFeed('')";d="&lsaquo; Back to examples"}this.jc.href=c;this.jc.innerHTML=d}else{G(this.jc,p);G(this.Eh,p);this.jc.href="javascript:;"}}};bp.prototype.mz=function(a){this.Va&&a!=""&&a!=" "&&this.Va.set("last_query",a)};
bp.prototype.Ht=function(){if(this.Va){var a=this.Va.get("last_query");if(a&&a!=""&&a!=" "){var b='Your last query - "'+(Ga(a)+'"'),c=new Mj;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 ao(b+"<br>"+c.toString())}}return l};
bp.prototype.Zb=function(a){if(this.Pc()){var b=a.startDate.getTime()/1000,c=a.endDate.getTime()/1000;this.S.Pk();this.Nb.zd(this.lc,u(this.Kd,this),b,c)}};bp.prototype.Ts=function(){return this.lc};bp.prototype.ah=function(){return this.Wb};bp.prototype.Kd=function(a,b){if(b&&b.length>0){this.rp(this.Nb.nt(a));this.Mq(b);this.S.sg(this.lt(b));if(a==""){var c=this.Ht();c&&this.S.sg([c])}this.dispatchEvent({type:"items_changed"})}};
bp.prototype.Mq=function(a){if(a[0]&&a[0].time){var b=this.xf();if(a[0].time<b.start){var c=new ao("The most recent item is out of the chart view. Zoom out to see these items on the chart.","plot_feeds_user_warning");c.fakeTime=k;this.S.sg([c])}}};bp.prototype.Pc=function(){for(var a=this.S.yd(),b=0;b<a.length;b++){var c=a[b];if(c.getTime())return k}return p};bp.prototype.xc=function(a){this.S.Sp(a)};
bp.prototype.xd=function(){for(var a=this.S.yd(),b=[],c=0;c<a.length;c++){var d=a[c],e=new dp(_ticker,d.getTime(),d.ab,d.R);e._color="orange";b.push(e)}return b};
bp.prototype.lt=function(a){for(var b=[],c="ABCDEFGHIJKLMNOPQRSTUWVXYZ",d=0;d<a.length;d++){var e,f=c.charAt(d%c.length),g=a[d].sc("type");if(g==1)e=new ao(a[d].title);else{var i=d;switch(a[d].source){case 0:e=new $n(i,f,a[d],"Plot feed on chart");break;case 3:e=new $n(i,f,a[d],"Try this example");break;case 2:default:e=new Zn(a[d].time?a[d].time.toString():l,f,a[d]);if(this.Wb)e.displayAuthor=k;break}}b.push(e)}return b};
bp.prototype.Xe=function(a){this.r=a;if(!this.Wb){var b=E("rss_query_box");if(b){this.Xk=new sm("Enter a search term to find feeds or paste a feed url");this.Xk.decorate(b)}}var c=Gh("div");this.ql=Gh("div",{id:"feed_list_title"});this.rp("&nbsp;");F(a,this.ql);F(a,c);var d=new bh(400,_slHeight);this.Wb||(d.height-=22);this.S.decorate(c,d);this.Wb||this.gq()};
bp.prototype.gq=function(){var a=this.S.cu();this.jc=Gh("a",{"class":"lac"});this.jc.innerHTML="&lsaquo; Back to search results";this.Eh=Gh("span",{}," | ");this.lo=Gh("a",{href:"http://google.com/support/finance/bin/answer.py?answer=98635"});this.lo.innerHTML="Learn more &raquo;";F(a,this.jc);F(a,this.Eh);F(a,this.lo);G(this.jc,p);G(this.Eh,p)};bp.prototype.pz=function(){this.Nb.Vt(this.lc,u(this.Kd,this),30)};bp.prototype.i=function(){Gg(this.S);if(this.r){Jh(this.r);this.r=l}bp.o.i.call(this)};
var ep=function(a){var b=E("rss_query_box");if(a||a==""||b){var c=a||a==""?a:b.value;t.rssFeedsPanel&&t.rssFeedsPanel.tg(c)}};v("google.finance.plotRssFeed",ep);var fp=function(){ap.call(this);var a={MSG_FILTER:"",MSG_SCROLL_UP:"",MSG_SCROLL_DOWN:""};this.ca=new cj(this);this.Ly=-1;this.vd=k;this.cq=_defaultZoomDays;this.S=new Y(l,a);this.S.$x("off");this.Gd()};w(fp,ap);fp.prototype.Gd=function(){this.ca.listen(this.S,"scroll_to_end",function(){this.Im(this.Ly)});this.ca.listen(this.S,"item_clicked",function(a){this.Hk(a);this.xc(a.id)});this.ca.listen(this.S,"list_changed",function(){this.dispatchEvent({type:"items_changed"})})};
fp.prototype.np=function(a,b){b&&this.S.Pk();this.S.sg(this.Ps(a));this.dispatchEvent({type:"items_changed"})};fp.prototype.Ps=function(a){for(var b=this.S.yd(),c=b&&b.length?b[b.length-1]:l,d=[],e=0;e<a.length;++e){var f=a[e];if(f.a){var g=String.fromCharCode("A".charCodeAt(0)+(this.S.yd().length+d.length)%26),i=new Yn(g,f),j=i.getTime();if(!(c&&j>=c.getTime())){i.gy(g);d.push(i);this.Ly=j}}}return d};fp.prototype.Xe=function(a){this.r=a;this.S.decorate(a,new bh(400,_slHeight+31))};
fp.prototype.Pc=function(){return k};fp.prototype.xd=function(){for(var a=this.S.yd(),b=[],c=0;c<a.length;c++){var d=a[c],e=new dp(_ticker,d.getTime(),d.It(),d.da());b.push(e)}return b};fp.prototype.Po=function(){if(B)this.vd=p;da("google.finance.data.company.news.clusters")&&this.np(t.google.finance.data.company.news.clusters,k)};
fp.prototype.Zb=function(a){if(this.vd){this.vd=p;this.Po()}else{this.cq=a.numDays;var b=a.startDate.getTime()/1000,c=a.endDate.getTime()/1000,d=this.wu(),e=this.it(),f=p;if(d!=-1&&e!=-1){if(b<d||c>e)f=k}else f=k;f&&this.Im(c,b)}};fp.prototype.wu=function(){var a=-1,b=this.S.yd();if(b.length)a=b[b.length-1].getTime();return a};fp.prototype.it=function(){var a=-1,b=this.S.yd();if(b.length)a=b[0].getTime();return a};fp.prototype.xc=function(a){this.S.Sp(a)};
fp.prototype.i=function(){this.ca.dispose();if(this.r){Jh(this.r);this.r=l}fp.o.i.call(this)};fp.prototype.Tt=function(a,b){var c=new T("/finance/kd");c.I("output","json");c.I("keydevs","1");c.I("st",b*1000);c.I("et",a*1000);c.I("recnews","0");c.I("zoomdays",this.cq);c.I("cid",_companyId);return c.toString()+xj()};
fp.prototype.Im=function(a,b){var c=b?b:a-86400*this.cq,d=new M;C(d,"complete",u(function(){if(d.Ah())try{var e=gk(d.tc()),f=b!==undefined;e&&e.clusters&&this.np(e.clusters,f)}catch(g){}},this));d.send(this.Tt(a,c))};var gp=function(){ap.call(this);this.Fr=[];t.newsPanel=this};w(gp,ap);gp.prototype.Pc=function(){return k};gp.prototype.xd=function(){return this.Fr};gp.prototype.Zb=function(a){em(a)};gp.prototype.xc=function(a){$l(a)};gp.prototype.Ik=function(a){this.Fr=a};var hp=function(a){t.newsPanel.Hk({id:a})};var jp=function(a,b,c){Gf.call(this);this.G=l;this.Nw=qj()?new fp:new gp;this.oc=qj()?new ip(p):l;this.Uo=new bp;var d={MSG_FILTER:"Search within posts",MSG_SCROLL_UP:"Newer posts",MSG_SCROLL_DOWN:"Older posts"};this.MAX_BLOG_ITEMS=26;var e="http://www.google.com";if(!b&&c!=undefined)e=c;var f=e+"/finance/blogs?q={TICKER}&output=rss"+xj();this.Dq=new bp(f,d,this.MAX_BLOG_ITEMS,b);this.Ec=[this.Nw,this.Dq,this.Uo];this.Re=[];this.Wz=["n","b","f"];this.ng=a||qj();this.qm=l;this.Gd();var g="DateTimeConstants";
Za(g,Wa())||$a(qb,Wa())};w(jp,Gf);jp.prototype.Xl=function(a){if(!qj()&&(!this.ng||!this.G)){if(E("news_div_cont"))a.pinClicked||em(a)}else{this.qm=a;if(this.oc&&this.oc.aa())this.oc.Zb(a);else if(!a.pinClicked){var b=this.Bf();b&&b.Zb(a)}}};jp.prototype.Kq=function(a){if(this.ng){var b=this.Bf();b&&b.xc(a.id)}else $l(a.id)};jp.prototype.tl=function(){if(!(this.oc&&this.oc.aa())){this.Mo();var a=this.Bf();a&&a.Pc()&&this.nq(a.xd())}};
jp.prototype.Dx=function(){var a=E("news_div_cont");if(a){if(qj()){G(a,k);this.Nw.Xe(a)}this.Re[0]=a}if(this.ng){if(e=E("news-tabs")){G(e,!qj());this.G=new nm;this.G.decorate(e);C(this.G,"select",u(this.Ox,this))}var b=E("tabs-clear");b&&G(b,!qj());var c=E("blogs_div_cont");if(c){this.Re[1]=c;this.Dq.Xe(c)}var d=E("plot_feed_div_cont");if(d){this.Re[2]=d;d.innerHTML=cp();this.Uo.Xe(d)}this.Re[0]&&G(this.Re[0],k);this.as(t.location.href);v("google.finance.chart.plotRssFeed",u(this.Eo,this));v("google.finance.chart.clearFlags",
u(this.Mo,this))}else{var e=E("news-tabs-alt");e&&G(e,k)}};jp.prototype.Gd=function(){Nn("visibleChartRangeChanged",u(this.Xl,this));Nn("chartObjectClicked",u(this.Kq,this));for(var a=0;a<this.Ec.length;a++){C(this.Ec[a],"items_changed",u(this.tl,this));C(this.Ec[a],"item_highlighted",u(this.Wv,this))}};jp.prototype.i=function(){for(var a=0;a<this.Ec.length;a++)this.Ec[a].dispose();if(this.G){Gg(this.G);this.G.dispose()}jp.o.i.call(this)};
jp.prototype.as=function(a){if(this.ng&&this.G){var b=new T(a),c=Number(b.xe("ntsp"));if(c>=0){if(c>0){var d=b.xe("ntrssurl")||this.Ec[c].ah()||"";this.Ec[c].tg(unescape(d))}this.G.mi(c)}}};jp.prototype.St=function(){if(!this.ng||!this.G)return"";var a=[];a.push("ntsp=");a.push(this.G.ye());if(this.G.ye()>0){var b=this.Ec[this.G.ye()];if(!b.ah()){a.push("&ntrssurl=");a.push(escape(b.Ts()))}}return a.join("")};
jp.prototype.Eo=function(a){if(qj()){t._finance_chart&&t._finance_chart.he(_ticker);this.oc.setActive(k);this.oc.nx(a)}else if(this.ng&&this.G){this.Uo.tg(a);this.G.mi(2)}};var kp=function(a){t._tabs.Eo(a)};jp.prototype.Ox=function(a){if(this.G){var b=this.G.ye(),c=E("news-wrapper");if(c){var d=b!=0||_has_news;G(c,d);var e=E("no-news");e&&G(e,!d)}for(var f=0;f<3;++f)this.Re[f]&&G(this.Re[f],b==f);b!=0&&this.Ec[b].Ew();this.tl(a);vj("","news-tabs",this.Wz[b],"")();this.qm&&this.Xl(this.qm)}};
jp.prototype.Bf=function(){if(!this.G)return l;return this.Ec[this.G.ye()]};var Vl=function(){if(t._tabs){var a=t._tabs.Bf();a&&a.Po()}},On=function(){t._tabs&&t._tabs.tl()},Ul=function(){t._tabs&&t._tabs.Dx()},Wl=function(a){var b=E("top-section");if(a&&b){var c=t._tabs.Bf(),d=E("news_div_cont");if(c&&d&&qj()){_slHeight=b.clientHeight-368;d.innerHtml="";c.Xe(d)}}};jp.prototype.Mo=function(){t._finance_chart&&t._finance_chart.he(_ticker);this.oc&&this.oc.aa()&&this.oc.setActive(p)};
jp.prototype.nq=function(a){a.length>0&&t._finance_chart&&t._finance_chart.jd(a)};jp.prototype.Wv=function(a){t._finance_chart&&t._finance_chart.Yv(_ticker,a.id)};v("goog.finance.switchToRssFeed",kp);v("goog.finance.renderNewsTabs",Ul);var ip=function(a){this.Ya=p;this.Nb=new Zo(a!=undefined?a:k);this.Er="";this.Oh=[]};ip.prototype.aa=function(){return this.Ya};ip.prototype.setActive=function(a){this.Ya=a};ip.prototype.nx=function(a){this.Gh(a);this.Er=a;this.Oh=[];this.Gb=this.xf();this.Nb.zd(a,u(this.Kd,this),this.Gb.start,this.Gb.end)};ip.prototype.Gh=function(a){var b=this.Nb.ze(a);vj({href:a},"feeds",$o[b],"")()};
ip.prototype.xf=function(){var a=t._finance_chart,b=a?a.te("defaultEndTime")/1000:ta(),c=a?a.te("defaultStartTime")/1000:l;if(!c){var d=a?a.te("numDays"):l;c=b-(d?d:_defaultZoomDays)*86400}return{start:c,end:b}};
ip.prototype.Zb=function(a){var b=a.startDate.getTime()/1000,c=a.endDate.getTime()/1000,d=p;if(this.Gb&&this.Gb.start&&this.Gb.end){if(b<this.Gb.start){d=k;this.Gb.start=b}if(c>this.Gb.end){d=k;this.Gb.end=c}}else{d=k;this.Gb={start:b,end:c}}if(d){this.Oh=[];this.Nb.zd(this.Er,u(this.Kd,this),this.Gb.start,this.Gb.end)}};ip.prototype.Kd=function(a,b){if(a!=l&&b&&b.length>0){this.Nx(b);this.iz()}};
ip.prototype.iz=function(){if(this.Ya&&t._finance_chart){t._finance_chart.he(_ticker);t._finance_chart.jd(this.Oh);if(this.Oh.length==0){var a=new hg("noFeedDataReturned");lp.dispatchEvent(a)}}};
ip.prototype.Nx=function(a){for(var b="ABCDEFGHIJKLMNOPQRSTUWVXYZ",c=0;c<a.length;c++){var d=b.charAt(c%b.length),e=a[c].sc("type");if(e!=1)switch(a[c].source){case 0:case 3:continue;case 2:default:var f=new dp(_ticker,a[c].time,d,a[c].time);f._color="orange";f._title=a[c].title;f._snippet=a[c].snippet&&a[c].snippet.length>70?a[c].snippet.substr(0,70)+"...":a[c].snippet;this.Oh.push(f);break}}};var lp=new D,Mn=function(a,b){lp.addEventListener(a,b)};var _windowGroup=l;var _state=l;function _ac_install(){mp(document.body,"onkeydown",np);mp(document.body,"onkeypress",np)}function _ac_register(a){for(var b=op.length;--b>=0;)if(op[b]===a)return;op.push(a)}function _ac_onfocus(a){np(a)}function _ac_isCompleting(){return!!pp&&!qp}function _ac_isCompleteListShowing(){return!!pp&&!qp&&rp&&rp.length}function _ac_cancel(){qp=k;sp(p)}function mp(a,b,c){var d=a[b];a[b]=d?tp(a[b],c):c;return d}
function up(a){if("stopPropagation"in a)a.stopPropagation();else a.cancelBubble=k;"preventDefault"in a&&a.preventDefault()}function tp(a,b){return function(){var c=a.apply(this,arguments),d=b.apply(this,arguments);return c===p||d===p?p:k}}
function np(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=Ac(a),d=a.type=="keydown",e=a.shiftKey;if(b!==vp||pp===l){vp=b;var f=p;if(13!==c&&27!==c){for(var g=0;g<op.length;++g){var i=op[g](b,a);if(i){pp=i;wp=mp(vp,"onblur",_ac_ob);f=k;break}}if(!f){vp=l;_ac_ob(l)}}}if(pp){var j=pp.Yn(c,d,e),m=rp&&rp.length>0,n=p;if(j&&m){if(xp>=0)n=!qp&&!!rp;window.setTimeout(function(){pp&&yp(c,d,e)},0)}else if(j)pp.oncomplete&&pp.oncomplete(p,
c,vp,undefined);else{n=c==27||!e&&c==40||!e&&c==38;window.setTimeout(function(){pp&&yp(c,d,e)},0)}n&&up(a);return!n}}return k}function _ac_ob(){window.setTimeout(function(){if(vp)vp.onblur=wp;wp=vp=pp=l;qp=p;sp(p)},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.Cg=k;_AC_Store.prototype.hf=k;_AC_Store.prototype.Hl=p;_AC_Store.prototype.xg=p;_AC_Store.prototype.Ki=p;_AC_Store.prototype.Yn=function(a,b,c){if(!b&&(13===a||zp==a&&this.Cg))return k;if(9===a&&!c)return b==Gb();return p};function _AC_SimpleStore(a){this.Rm={};this.Ii(a);this.countThreshold=10}_AC_SimpleStore.prototype=new _AC_Store;_AC_SimpleStore.prototype.constructor=_AC_SimpleStore;
_AC_SimpleStore.prototype.Ii=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 g=d[e].charAt(f).toLowerCase();if(f==0||g>="\u4e00"&&g<="\u9fbb"){var i=this.Rm[g];if(i){if(i[i.length-1].value==c)continue}else i=this.Rm[g]=[];i.push(new _AC_Completion(c,l))}}}};
_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.Rm[d.toLowerCase()];var e=[];if(b)for(var f=0;f<b.length;++f){var g;if(d>="\u4e00"&&d<="\u9fbb"){var i=b[f].value.indexOf(a);if(i<0)continue;g=[""];g.push(b[f].value.substring(0,i));g.push(a);g.push(b[f].value.substring(i+a.length))}else g=b[f].value.match(c);if(g){e.push(new _AC_Completion(b[f].value,
Ap(g[1]||"")+"<b>"+Ap(g[2])+"</b>"+Ap(g[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 op=[],vp=l,pp=l,wp=l,qp=p,Bp=l,rp=l,xp=-1;
function yp(a,b,c){var d=a===37||a===39,e=Cp(vp)===vp.value.length;if(!d||_ac_isCompleteListShowing()||a===39&&e)Dp();var f=k,g=rp?rp.length:0;if(pp.Yn(a,b,c)){if(pp.hf&&xp<0&&g>=1)xp=0;if(xp>=0){var i=vp,j=rp[xp].value;Ep();pp.oncomplete&&pp.oncomplete(k,a,i,j)}}else switch(a){case 27:xp=-1;f=p;break;case 38:if(b)xp=Math.max(g>=0?0:-1,xp-1);break;case 40:if(b)xp=Math.min(g-1,xp+1);break}vp&&sp(f)}function _ac_select(a){xp=a;Ep();pp&&pp.oncomplete&&pp.oncomplete(k,l,vp,vp.value);sp(p)}
function Ep(){var a=Cp(vp);vp.value=pp.substitute(vp.value,a,Bp,rp[xp]);xp=-1;Bp=rp=l;wc(window,vp,vp.value.length)}function Dp(){if(!qp&&pp){var a=Cp(vp),b=pp.completable(vp.value,a);if(!(b==Bp)){var c;rp=l;xp=-1;var d=xp>=0&&rp?rp[xp].value:l;rp=pp.completions(b,c);xp=-1;for(var e=0;e<rp.length;++e)if(d==rp[e].value){xp=e;break}Bp=b}}else{rp=Bp=l;xp=-1}}function _ac_mouse_over(a){if(xp!=a){xp=a;sp(k)}}
function sp(a){var b=document.getElementById("ac-list");if(a&&rp&&rp.length){if(!b){b=document.createElement("DIV");b.id="ac-list";b.style.position="absolute";b.style.display="none";document.body.appendChild(b)}if(pp.hf&&xp<0)xp=0;for(var c=[],d=0;d<rp.length;++d)c.push('<div onmouseover="_ac_mouse_over(',d,'); "',pp.hf?"":' onmouseout="_ac_mouse_over(-1)"',' onmousedown="try{_ac_select(',d,')}finally{return false}"',d==xp?" class=selected>":">",rp[d].html,"</div>");b.innerHTML=c.join("");b.style.left=
"";b.style.right="";b.style.top="";b.style.bottom="";var e={};if(vp){var f=vp;e=pd(f)}e.x=e.x-2;e.y=e.y-2;b.style.left=e.x+"px";if(pp&&pp.Ki){var g=kc(window,jc);b.style.visibilty="hidden";b.style.display="";b.style.top=e.y-b.offsetHeight+"px";b.style.display="none";b.style.visibility=""}else b.style.top=e.y+e.h+"px";b.style.display="";var i=pd(b);if(pp&&!pp.Hl){g=kc(window,jc);if(i.y+i.h>g&&!pp.Ki)b.style.top=e.y-i.h+"px"}if(pp&&!pp.xg){var j=kc(window,ic);if(i.x+i.w>j)b.style.left=e.x+e.w-i.w+"px"}}else if(b){b.style.display=
"none";b.innerHTML=""}}function Ap(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\"/g,"&quot;").replace(/ /g,"&nbsp;").replace(/\r\n?|\n/g,"<br>")}function Cp(a){if("INPUT"==a.tagName){var b=a.value.length;if(undefined!=a.selectionStart)b=a.selectionStart;else if(document.selection){var c=document.selection.createRange();c.moveStart("character",-b);b=c.text.length}return b}else return uc(window,a)}var zp=",".charCodeAt(0);var Gp=function(a,b,c,d,e,f,g,i,j){this.Wl="chartElement";this.Vz="displayNewsPins";if(g.forceRemoveNewsFlags)this.Yz=k;var m=pj(7,0,0),n=pj(9,0,0),o,q,s=p;if(n&&i){o="9, 0, 0, 0";q=i;s=k}else if(m){o="7, 0, 0, 0";q=g.swfName?g.swfName:a}this.main_layer_ticker=f;this.indicator_enabled=g.enableIndicator;this.currentViewParams={};this.currentViewParams.q=f;this.currentViewParams.qTimeZoneOffset=j||-18000;g.minZoomDaysNoIntraDay=g.minZoomDaysNoIntraDay||20;this.currentViewParams.minZoomDaysNoIntraDay=
g.minZoomDaysNoIntraDay;g.minZoomDaysNormal=g.minZoomDaysNormal||1;this.currentViewParams.minZoomDaysNormal=g.minZoomDaysNormal;g.minZoomDays=g.minZoomDaysNormal;if(g.compareTo){this.currentViewParams.compareTo=g.compareTo;var r=g.compareToTimeZoneOffsets||"";this.currentViewParams.compareToTimeZoneOffsets=r;this.Vp(r.split(";"));g.minZoomDays=this.currentViewParams.minZoomDays}this.currentViewAttributes=[{lname:this.Vz,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:"compareToTimeZoneOffsets",sname:"cmptzos"},{lname:"q",sname:"q"}];if(m){this.flash_uid=(new Date).getTime();
this.removePinsBuffer=[];this.addPinsBuffer=[];this.data_fetch_pending=k;this.pending_tasks=[];this.flash_proxy=new FlashProxy(this.flash_uid,this.Wl,b,l,s);this.width=d;this.height=e;this.flash_tag=new FlashTag(q,d,e,o);this.flash_tag.setId(this.Wl);this.Ud("lcId",this.flash_uid);this.Ud("q",this.main_layer_ticker);this.Ud("u",c);this.fieldSeparator=",";this.objectSeparator="::";this.Ud("fieldSeparator",this.fieldSeparator);this.Ud("objectSeparator",this.objectSeparator);this.Ud("sparklineType",
"static");var x="MainViewPoint",H="BottomViewPoint";this.L("single_viewpoints",["name:"+x,"height:202","topMargin:0"]);if(g.hasVolume==k){var J="visible";if(g.displayVolume=="false")J="hidden";this.L("single_viewpoints",["name:"+H,this.indicator_enabled?"height:80":"height:45","topMargin:0","display:"+J])}if(this.indicator_enabled)for(var Q=["MACD","RSI","WilliamsPercentR","KDJ","BIAS","FastStochastic","SlowStochastic"],Ba=0;Ba<Q.length;Ba++){this.L("single_viewpoints",["name:"+Q[Ba],"height:80",
"topMargin:0","display:hidden"]);this.L("single_layers",["vp:"+Q[Ba],"name:DateLinesLayer","arity:Unique","tickPosition:1","type:simple","topMargin:20"]);this.L("single_layers",["vp:"+Q[Ba],"name:"+Q[Ba],"arity:Unique","type:indicator"])}var ja=this.indicator_enabled?"IntervalBased":"";this.L("single_layers",["vp:"+x,"name:DateLinesLayer","arity:Unique","tickPosition:0","type:simple","hasText:true"]);this.L("single_layers",["vp:"+x,"name:PriceLinesLayer","arity:Unique","type:simple"]);var La=this.indicator_enabled?
"IntervalBasedChartManagerLayer":"LineChartLayer";this.L("single_layers",["vp:"+x,"name:"+La,"arity:Unique","type:simple"]);if(this.indicator_enabled){this.L("single_layers",["vp:"+x,"name:SMA","arity:Unique","type:indicator","enabled:false"]);this.L("single_layers",["vp:"+x,"name:EMA","arity:Unique","type:indicator","enabled:false"]);this.L("single_layers",["vp:"+x,"name:BollingerBands","arity:Unique","type:indicator","enabled:false"])}var wa=this.indicator_enabled?"IntervalBasedAHChartLayer":"AHLineChartLayer";
this.L("single_layers",["vp:"+x,"name:"+wa,"arity:Unique","type:simple"]);this.L("single_layers",["vp:"+x,"name:LastDayLineLayer","arity:Unique","type:simple"]);this.L("single_layers",["vp:"+x,"name:"+ja+"PinPointsLayer","arity:Unique","type:simple"]);g.displayDividends!="false"&&this.L("single_layers",["vp:"+x,"name:"+ja+"IndependentObjectsLayer","arity:Unique","type:simple","renderObj:dividend","positioning:bottom","avoidObj:split"]);g.displaySplits!="false"&&this.L("single_layers",["vp:"+x,"name:"+
ja+"IndependentObjectsLayer","arity:Unique","type:simple","renderObj:split","positioning:bottom","avoidObj:dividend"]);this.L("single_layers",["vp:"+x,"name:BottomBarLayer","arity:Unique","type:simple"]);if(g.hasVolume==k){this.L("single_layers",["vp:"+H,"name:VolumeScaleLayer","arity:Unique","type:simple"]);if(this.indicator_enabled){this.L("single_layers",["vp:"+H,"name:IntervalBasedAHVolumeLayer","arity:Unique","type:simple"]);this.L("single_layers",["vp:"+H,"name:IntervalBasedVolumeLayer","arity:Unique",
"type:simple"]);this.L("single_layers",["vp:"+H,"name:VMA","arity:Unique","type:indicator","enabled:false"]);this.L("single_layers",["vp:"+H,"name:DateLinesLayer","arity:Unique","tickPosition:1","topMargin:20","type:simple"])}else{this.L("single_layers",["vp:"+H,"name:ECNVolume","arity:Unique","type:indicator"]);this.L("single_layers",["vp:"+H,"name:Volume","arity:Unique","type:indicator"]);this.L("single_layers",["vp:"+H,"name:DateLinesLayer","arity:Unique","tickPosition:1","type:simple"])}}this.L("compare_viewpoints",
["name:"+x,"height:247","topMargin:15"]);this.L("compare_layers",["vp:"+x,"name:PercentLinesLayer","arity:Unique","type:simple"]);this.L("compare_layers",["vp:"+x,"name:DateLinesLayer","arity:Unique","type:simple","tickPosition:0"]);this.L("compare_layers",["vp:"+x,"name:BottomBarLayer","arity:Unique","type:simple"]);this.L("compare_layers",["vp:"+x,"name:PercentLineChartLayer","arity:Multiple","type:simple"]);this.xq(g);var Ta=document.getElementById("comparetab");if(Ta){Ta.style.display="block";
this.defaultTab="compare"}var hb=document.getElementById("settingstab");if(hb){hb.style.display="block";if(this.defaultTab==undefined)this.defaultTab="settings"}var Bb=document.getElementById("linktoviewtab");if(Bb){Bb.style.display="block";if(this.defaultTab==undefined)this.defaultTab="linktoview"}var Ua=document.getElementById("lefttabsgroup");if(Ua)Ua.style.display="block";var Vb=document.getElementById("righttabsgroup");if(Vb)Vb.style.display="block";var vc=document.getElementById("compareImg");
if(vc!=l&&vc!=undefined)vc.style.display="block";var gc=document.getElementById("settingsImg");if(gc!=l&&gc!=undefined)gc.style.display="block";this.hasFlash=k;this.jw(this.Wl);this.ew();if(g.enableRealtimeChart){var jd=this.flash_proxy;window.google.Quote.addQuoteListener(function(Me,Vg){if(Vg==g.companyId)for(var je=[{field:"l",isAh:p},{field:"el",isAh:k}],ld=0;ld<je.length;ld++){var Al=Me[je[ld].field];Al&&jd.call("updateLastPrice",je[ld].isAh,Al)}})}}else{this.flash_tag=new Fp("/finance/getchart",
d,e,f,g);this.hasFlash=p}};Gp.prototype.ew=function(){Nn("visibleChartRangeChanged",u(this.Lq,this))};Gp.prototype.jw=function(){this.gA=new Ng(E("chart_anchor"));this.gA.addEventListener("mousewheel",this.hv,p,this)};Gp.prototype.hv=function(a){if(Hp){this.flash_proxy.call("handleMouseWheel",this.bt(a));this.Ny(a)}return p};Gp.prototype.Ny=function(a){if(a.stopPropagation){a.stopPropagation();a.preventDefault()}a.cancelBubble=k;a.returnValue=p};Gp.prototype.bt=function(a){return-a.detail};
Gp.prototype.Ud=function(a,b){this.flash_tag.addFlashVar(a,b)};Gp.prototype.xq=function(a){for(var b in a)this.Ud(b,a[b]);for(var c=0;c<this.currentViewAttributes.length;c++){var d=this.currentViewAttributes[c];if(a[d.lname])this.currentViewParams[d.lname]=a[d.lname]}};Gp.prototype.L=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.addFlashVar(a,escape(this[a]))};
Gp.prototype.uz=function(a){a.write(this.flash_tag.toString())};Gp.prototype.vz=function(a){a.innerHTML=this.flash_tag.toString()};Gp.prototype.Yv=function(a,b){this.hasFlash&&this.flash_proxy.call("htmlClicked",a,b)};Gp.prototype.Nk=function(a,b){var c={};c.method=a;c.args=b;this.pending_tasks.push(c)};Gp.prototype.jd=function(a){this.data_fetch_pending?this.Nk(this.Dl,arguments):this.Dl(a)};Gp.prototype.Dl=function(a){this.hasFlash&&!this.Yz&&this.flash_proxy.call("addObjectArray",a)};
Gp.prototype.he=function(a){this.data_fetch_pending?this.Nk(this.$l,arguments):this.$l(a)};Gp.prototype.$l=function(a){this.hasFlash&&this.flash_proxy.call("clearAllPins",a)};Gp.prototype.Qm=function(){this.data_fetch_pending=p;if(this.pending_tasks)for(;this.pending_tasks.length>0;){var a=this.pending_tasks.shift();a.method.apply(this,a.args)}};Gp.prototype.de=function(a,b,c){if(this.data_fetch_pending)this.Nk(this.de,arguments);else{this.flash_proxy.call("addCompareTo",a,b);this.am(a,k,c)}};
Gp.prototype.am=function(a,b,c){var d;c=c||-18000;if(this.currentViewParams.compareTo){var e=this.currentViewParams.compareTo.split(";");d=(this.currentViewParams.compareToTimeZoneOffsets||"").split(";");if(e.length!=d.length){d.length=0;for(var f=e.length-1;f>=0;f--)d.push(f.toString())}var g=this.js(a,e);if(g==-1&&b){e.push(a);d.push(c.toString())}else if(g!=-1&&!b){e.splice(g,1);d.splice(g,1)}this.currentViewParams.compareTo=e.join(";")}else{this.currentViewParams.compareTo=a;d=[c.toString()]}this.currentViewParams.compareToTimeZoneOffsets=
d.join(";");this.Vp(d)};Gp.prototype.Vp=function(a){for(var b=a.length-1;b>=0;b--)if(a[b]!=this.currentViewParams.qTimeZoneOffset){this.setParameter("minZoomDays",this.currentViewParams.minZoomDaysNoIntraDay);return}this.setParameter("minZoomDays",this.currentViewParams.minZoomDaysNormal)};Gp.prototype.js=function(a,b){for(var c=0;c<b.length;c++)if(b[c]==a)return c;return-1};Gp.prototype.Uh=function(a){this.flash_proxy.call("removeCompareTo",a);this.am(a,p,l)};
Gp.prototype.az=function(a,b){var c="single";switch(a){case "displayDividends":var d={};d.name=this.indicator_enabled?"IntervalBasedIndependentObjectsLayer":"IndependentObjectsLayer";d.vp="MainViewPoint";d.arity="Unique";d.type="simple";d.renderObj="dividend";d.avoidObj="split";d.positioning="bottom";break;case "displaySplits":d={};d.name=this.indicator_enabled?"IntervalBasedIndependentObjectsLayer":"IndependentObjectsLayer";d.vp="MainViewPoint";d.arity="Unique";d.type="simple";d.renderObj="split";
d.avoidObj="dividend";d.positioning="bottom";break}b=="false"?this.flash_proxy.call("removeLayerFromStyle",d,c):this.flash_proxy.call("addLayerToStyle",d,c)};Gp.prototype.setParameter=function(a,b){if(this.flash_proxy)a=="displayDividends"||a=="displaySplits"?this.az(a,b):this.flash_proxy.call("setParameter",a,b);this.We(a,b)};Gp.prototype._getCurrentViewAsString=function(){return this.By(this.currentViewParams)};Gp.prototype.We=function(a,b){this.currentViewParams[a]=b};Gp.prototype.te=function(a){return this.currentViewParams[a]};
Gp.prototype.By=function(a){var b="{",c=k;for(var d in a){b+=(c?"":",")+'"'+d+'":"'+a[d]+'"';c=p}b+="}";return b};Gp.prototype.Lq=function(a){var b=a.startDate.getTime(),c=a.endDate.getTime();a.minutes&&this.We("defaultDisplayMinutes",a.minutes);a.numDays&&this.We("numDays",a.numDays);this.We("defaultEndTime",c);this.We("defaultStartTime",b)};
Gp.prototype.Ls=function(){for(var a=this.currentViewParams,b=this.currentViewAttributes,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 Ip=new D,Hp=p,Nn=function(a,b){Ip.addEventListener(a,b)},Jp=function(a,b,c,d,e){am();var f=new hg("visibleChartRangeChanged");f.startDate=a;f.endDate=b;f.numDays=c;f.minutes=d;f.pinClicked=e;Ip.dispatchEvent(f)},Kp=function(a){var b=new hg("chartObjectClicked");b.id=a;Ip.dispatchEvent(b)};v("_visibleChartRangeChanged",Jp);v("_flashClicked",Kp);function _setCurrentViewParam(a,b){_finance_chart.We(a,b);qj()?google.finance.setLinkToChart():_windowGroup._setLinkToChart()}
function _setChartSize(a){document.getElementById("chartElement").style.height=a;document.getElementById("chart_anchor").style.height=a}function _setChartType(a){var b=new hg("chartTypeChanged");b.chartType=a;Ip.dispatchEvent(b)}function _setChartFocus(a){Hp=a}function _getLinkToChart(){var a=[];a.push("finance?");t._finance_chart&&a.push(t._finance_chart.Ls());if(t._tabs){a.length>1&&a.push("&");a.push(t._tabs.St())}a.push(xj());return a.join("")}
function _replaceHref(a,b){var c=document.getElementById(a);if(c)c.href=b}function dp(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 Z(a,b,c){this.NOTHING="nothing";this.urlPrefix=c;this.comparableStocks=[];this.quickStocks=[];this.settingsFields=[];this.chart=a;this.containerName=b;this.currentWindow=this.NOTHING;this.builtWindows={};this.currentErrorMessage="";(this.newChartUI=document.getElementById("comparetab")!=undefined)&&this._setCompareWindowStyles()}Z.prototype.Al=9;Z.prototype.dq=4;Z.prototype.tf="compareErrorMessageBox";Z.prototype.oj="Enter ticker here";Z.prototype.pl=85;Z.prototype.Tm="5.2em";
Z.prototype.Qp="3.6em";Z.prototype.iq=function(a){var b=a.length;if(b>this.Al)b=this.Al;for(var c=0;c<b;c++)a[c]&&a[c].ticker&&a[c].name&&a[c].ticker!=""&&a[c].ticker!=_ticker&&this.comparableStocks.push({ticker:a[c].ticker,name:a[c].name,timezone_offset:a[c].timezone_offset,checked:p})};
Z.prototype.qq=function(a){if(this.quickStocks.length==this.dq){for(var b=0;b<this.quickStocks.length&&this.quickStocks[b].checked==k;)b++;if(b==this.quickStocks.length)b=0;var c=this.quickStocks[b];this.quickStocks.splice(b,1);c.checked&&this.chart.Uh(c.ticker)}this.quickStocks.push({ticker:a[0],name:a[1],timezone_offset:a[2],checked:k});this.chart.de(a[0],a[1],a[2]);var d=document.getElementById("tempTicks");d.innerHTML=this.Xj();this.il(a[0],k);this.newChartUI&&this._onClickMore()};
Z.prototype.Xj=function(){var a='<table cellpadding=0 cellspacing=0><td><div style="padding:3px 8px;background-color:#FFFF99;display:none" id="'+this.tf+'" width="200"></div></td></table>';a+='<table cellspacing="0" cellpadding="2" border=0>';for(var b=0;b<this.quickStocks.length;b++){if(b%2==0)a+="<tr>";a+='<td valign="middle" width="'+this.pl+(this.newChartUI?'" style="margin:0px;line-height:1.3em;':"")+'"><nobr>';a+=this.Yj(this.quickStocks,b,"tempTicker");a+="</nobr></td>"}a+="</table>";return a};
Z.prototype.ug=function(a){this.settingsFields=a;for(var b=0;b<this.settingsFields.length;b++)this.settingsFields[b].changed=p};Z.prototype.Ae=function(a){switch(a){case "compare":return this.newChartUI?this.Qs():this.Rs();case "settings":return this.qu();case "linktoview":return this.Jt()}};Z.prototype._toggleCheckbox=function(a,b){switch(a){case "ticker":case "tempTicker":this.bf(a,b);break;case "setting":this.Jq(b);break}};
Z.prototype.bf=function(a,b){var c;c=a=="ticker"?this.comparableStocks:this.quickStocks;var d=this.jh(b,c);if(!(d==-1)){if(c[d].checked){c[d].checked=p;this.chart.Uh(c[d].ticker)}else{c[d].checked=k;this.chart.de(c[d].ticker,c[d].name,c[d].timezone_offset);this.Bc("compare_cb",c[d].ticker)}this.il(b,c[d].checked)}};
Z.prototype.il=function(a,b,c){if(!(a==this.chart.main_layer_ticker)){var d=this.jh(a,this.comparableStocks),e=k;if(d!=-1){this.comparableStocks[d].checked=b;this.fp("ticker"+d,b);e=p}d=this.jh(a,this.quickStocks);if(d!=-1){this.quickStocks[d].checked=b;this.fp("tempTicker"+d,b)}else if(e){var f=this.Au(a);this.quickStocks.push({ticker:a,name:f,timezone_offset:c||1,checked:b})}}};Z.prototype.fp=function(a,b){var c=this.D(a);if(c!=l)c.checked=b};
Z.prototype.Bc=function(a,b){var c=this.chart.main_layer_ticker+"-"+b,d=vj(l,a,c,"");d()};
Z.prototype.Jq=function(a){for(var b=this.settingsFields.length-1;b>=0&&this.settingsFields[b].name!=a;)b--;if(!(b==-1)){var c=l;if(this.settingsFields[b].checked==k){this.settingsFields[b].checked=p;c="false"}else if(this.settingsFields[b].checked==p){this.settingsFields[b].checked=k;c="true"}else if(document.settings["s"+b].value!=undefined)c=document.settings["s"+b].value;else for(var d=0;d<document.settings["s"+b].length;d++)if(document.settings["s"+b][d].checked)c=document.settings["s"+b][d].value;
this.chart.setParameter(this.settingsFields[b].paramName,c);this._saveSetting(this.settingsFields[b].paramName,c);if(this.settingsFields[b].clickType){var e=c;if(e=="false")e="0";if(e=="true")e="1";_GF_click("","chs_"+this.settingsFields[b].clickType,e,"")}this.settingsFields[b].changed=!this.settingsFields[b].changed}};
Z.prototype.Au=function(a){var b=a.split(":");switch(b[1]){case ".INX":return"S&P 500";case ".DJI":return"Dow Jones";case ".IXIC":return"Nasdaq";case "OSPTX":return"TSX Composite";default:return b[1]}};Z.prototype.jh=function(a,b){for(var c=0;c<b.length;c++)if(b[c].ticker!=undefined&&b[c].ticker==a)return c;return-1};Z.prototype.D=function(a){return document.getElementById(a)};
Z.prototype._showWindow=function(a){if(this.currentWindow==a){this.D(a).style.display="none";this.D(a+"Img").src=this.urlPrefix+"/images/"+a+".gif";this.currentWindow=this.NOTHING;this.D("tabsTR").className=""}else{if(this.currentWindow!=this.NOTHING){this.D(this.currentWindow).style.display="none";this.D(this.currentWindow+"Img").src=this.urlPrefix+"/images/"+this.currentWindow+".gif"}else this.D("tabsTR").className="tabs";if(this.builtWindows[a]!=k){this.D(a).innerHTML=this.Ae(a);this.builtWindows[a]=
k}this.D(a).style.display="block";this.D(a+"Img").src=this.urlPrefix+"/images/"+a+"_clicked.gif";this.currentWindow=a}};
Z.prototype.Qy=function(a,b){if(b.readyState==4){if(b.status==200){var c=tc(b.responseText).split("|");if(c[0]!=""){if(c[0]==this.chart.main_layer_ticker)this._setErrorMessage("Cannot compare a ticker to itself&nbsp;&nbsp;");else if(this.jh(c[0],this.quickStocks)!=-1)this._setErrorMessage("You already added this stock&nbsp;&nbsp;");else{this.qq(c);this.Bc("compare_text",c[0])}document.compare.others.value=""}else{var d='Ticker symbol "'+(a+'" unknown&nbsp;&nbsp;');this._setErrorMessage(d);this.Bc("compare_error",
a)}}b.onreadystatechange=function(){}}};Z.prototype._setErrorMessage=function(a){var b=this.D(this.tf);if(a==""){b.style.display="none";this._onHideError()}else{var c='<font size="-1">'+a+'</font><a href="#" onclick="_windowGroup._setErrorMessage(\'\');return false;"><img src="'+this.urlPrefix+'/images/x3.gif" border="0"></a>';b.innerHTML=c;b.style.display="block";if(this.newChartUI){b.style.lineHeight="1em";b.style.whiteSpace="normal"}this._onClickMore()}this.currentErrorMessage=a};
Z.prototype._symbolSearch=function(a){var b=document.compare.others.value;if(a!=undefined)b=a;if(b.length==0)return p;var c=this.chart.main_layer_ticker,d=this.chart.main_layer_ticker.split(":");if(d[0]&&d[0]=="MUTF")c=d[1];var e="/finance/validate?q="+escape(b)+"&basetkr="+c+"&auto=1&hl="+window.locale.hl+"&gl="+window.locale.gl,f=Te(),g=this,i=function(){g.Qy(b,f)};Ue(f,e,i);return p};Z.prototype.Ur=function(a){if(a.readyState==4)a.onreadystatechange=function(){}};
Z.prototype._saveSetting=function(a,b){if(!(b==l)){var c="/finance/prefs?action=set&prefsgroup=charts&prefskey="+escape(a)+"&prefsval="+escape(b);if(_expected_hash_value!=l&&_expected_hash_value!="")c+="&hash="+_expected_hash_value;var d=Te(),e=this,f=function(){e.Ur(d)};Ue(d,c,f)}};Z.prototype._clearDefaultFastSearch=function(){var a=document.compare.others;if(a.value==this.oj)a.value="";if(a.style)a.style.cssText=""};
Z.prototype.Rs=function(){var a='<table width="100%" id="cw" cellpadding="3" cellspacing="0"><tr>';if(this.comparableStocks.length>0)for(var b=0;b<3;b++){a+='<td valign="bottom" width="'+this.pl+'">';var c=b*3;a+=this.Yj(this.comparableStocks,c,"ticker");a+="</td>"}a+='<td valign="top" rowspan="3" width="200px">';a+='<form style="margin: 0pt;" name="compare" method="get" onsubmit="javascript:_windowGroup._symbolSearch(); return false;">';a+='<input class="fsbox" style="color: rgb(153, 153, 153);"  onFocus="_windowGroup._clearDefaultFastSearch()" name="others" size="20" onKeyPress="_windowGroup._setErrorMessage(\'\')" value="'+
this.oj+'" id="add_comparison_symbol"  autocomplete=off type="text"> ';a+='<input class="fsbutt" id="add_comparison_button" value="Add"type="submit">';a+="</form>";a+=' <div id="tempTicks" height="50" style="overflow:hidden"> ';a+=this.Xj();a+=" </div>";a+="</td>";if(this.D("compareTab")==undefined)a+='<td align="right" valign="top" rowspan="3"><a  onclick="javascript:_windowGroup._showWindow(\'compare\');">  <img src="'+this.urlPrefix+'/images/close.gif" border="0"  width="14" height="13"></a></td>';
if(this.comparableStocks.length>0)for(b=3;b<9;b++){if(b%3==0)a+="</tr><tr>";c=b%3*3+Math.floor(b/3);a+='<td valign="bottom" width="'+this.pl+'">';a+=this.Yj(this.comparableStocks,c,"ticker");a+="</td>"}a+="</tr></table>";return a};
Z.prototype.Yj=function(a,b,c){if(a.length<=b)return"";var d=a[b].name,e=c+b,f='<input type="checkbox" name="'+e+'" id="'+e+'" class="checkbox"';if(a[b].checked)f+=" checked";f+=" onClick=\"_windowGroup._toggleCheckbox('"+c+"', '"+a[b].ticker+'\')"><label for="'+e+'"> '+d+"</label>";return f};
Z.prototype.zu=function(a,b,c){if(b<0||a.length<=b)return"";var d=a[b].name,e=c+b,f='<p id="check'+b+'" class="compareControlBox"><label for="'+e+'" class="comparisonCheckBox" ><input type="checkbox" name="'+e+'" id="'+e+'" onClick="_windowGroup._toggleCheckbox(\''+c+"', '"+a[b].ticker+"')\" ";if(a[b].checked)f+=" checked";f+=" />&nbsp;"+d+"</label>";f+='<img class="blankSpacingImg" src="'+_cleardot+'" align="middle"/></p> ';return f};
Z.prototype.yn=function(a,b){var c="",d=a[b];if(d.blank!=undefined)return c;if(d.checked!=undefined){var e="settingsButton"+b;c+='<label for="'+e+'">';c+='<input type="checkbox" name="'+e+'"  id="'+e+'"';if(d.checked)c+=" checked";c+=" onClick=\"_windowGroup._toggleCheckbox('setting', '"+d.name+'\');" class="checkbox""> '}c+=d.name+"</label>";if(d.isNew==k)c+='&nbsp;<sup><font size="-2" color="#CC0000">New!</font></sup>';var f=d.options,g=f;if(d.values!=undefined)g=d.values;e="s"+b;if(f.length>0)if(d.isradioselection!=
undefined){for(var i=0,j=0;j<f.length;j++)if(d.selected.toLowerCase()==g[j].toLowerCase())i=j;for(j=0;j<f.length;j++){var m=e+"_"+j;c+='<label for="'+m+'"><input type="radio" name="'+e+'" id='+m+' value="'+g[j]+'"';c+=" onClick=\"_windowGroup._toggleCheckbox('setting', '"+d.name+'\');" class="radiobutton" ';if(j==i)c+=" checked";c+=" /> ";c+=f[j]+"</label>&nbsp;&nbsp;"}}else{c+=' <select name="'+e+"\" onChange=\"_windowGroup._toggleCheckbox('setting','"+d.name+'\')" class="select">';for(j=0;j<f.length;j++){c+=
'<option value="'+g[j]+'"';if(d.selected==g[j])c+=" selected";c+=">"+f[j]+"</option>"}c+="</select>"}return c};
Z.prototype.qu=function(){for(var a='<form style="margin:0;" name="settings"><table width=100% id=cw cellpadding="2" cellspacing="0"><tr>',b=0;b<3;b++){a+='<td valign="bottom">';var c=b*3;if(c<this.settingsFields.length)a+=this.yn(this.settingsFields,c);a+="</td>"}if(this.D("settingstab")==undefined)a+='<td align="right" valign="top" rowspan="3"><a  onclick="javascript:_windowGroup._showWindow(\'settings\');"><img src="'+this.urlPrefix+'/images/close.gif" border="0"  width="14" height="13"></a></td> ';
for(b=3;b<9;b++){if(b%3==0)a+="</tr><tr>";a+='<td valign="bottom">';c=b%3*3+Math.floor(b/3);if(c<this.settingsFields.length)a+=this.yn(this.settingsFields,c);a+="</td>"}a+="</tr></table></form>";return a};
Z.prototype.Jt=function(){var a='<form style="margin:0;" name="linktoview"><table width=100% id=cw cellpadding="2" cellspacing="0"><tr>';a+='<td width="100%"></td>';a+='<td width="314" valign="bottom" class="linktoviewLabel">';a+="Paste link in email, IM or website";a+="</td>";a+='<td width="145" align="right" valign="bottom">';a+="</td>";a+="</tr><tr>";a+='<td width="100%"></td><td colspan="2">';var b=location.protocol+"/"+location.host+"/"+_getLinkToChart();a+='<input name="linktoviewTextBox" size="52" value="'+
b+'" id="linktoview_link" autocomplete="off" type="text" readonly onClick="_windowGroup._setLinkToChart();" maxlength="1024">';a+="</td></tr>";a+="</table></form>";return a};Z.prototype._hideMoreLessCompareLink=function(){if(this.newChartUI){var a=this.D("compareMore"),b=this.D("compareLess");if(a&&b)if(this._shouldShowMoreLessLink())a.style.display=="none"&&b.style.display=="none"&&this._onClickLess();else if(this.currentErrorMessage==""){this._onClickLess();a.style.display="none"}}};
Z.prototype._shouldShowMoreLessLink=function(){var a=p,b=this.D("ticker0"),c=this.D("predefinedTickers");if(b&&c)a=c.offsetHeight>2*b.offsetHeight;return this.quickStocks.length>0||a};
Z.prototype._showTab=function(a,b){if(this.currentWindow!=this.NOTHING){this.D(this.currentWindow).style.display="none";this.D(this.currentWindow+"tab_selected").id=this.currentWindow+"tab";var c=this.D(this.currentWindow+"img");if(c!=undefined)c.src=c.src.replace("_on.gif",".gif")}else this.D("tabsTR").className="tabs";if(this.builtWindows[a]!=k){this.D(a).innerHTML=this.Ae(a);this.builtWindows[a]=k}this.D(a).style.display="block";this.D(a+"tab").id=a+"tab_selected";this.currentWindow=a;c=this.D(a+
"img");if(c!=undefined)c.src=c.src.replace(".gif","_on.gif");a=="linktoview"&&this._setLinkToChart();b&&this.Bc("tab_"+a,"")};Z.prototype.du=function(){var a="";if(this.comparableStocks.length>0)for(var b=0;b<10;b++){var c=this.comparableStocks.length-1-b;if(c>=0)a+=this.zu(this.comparableStocks,c,"ticker")}return a};
Z.prototype._onClickMore=function(){if(this.newChartUI){var a=this.D(this.tf);if(this.quickStocks.length==0&&a.style.display=="block")this.D("compare").style.height=3.6+this.Vj()-1+"em";else if(this.quickStocks.length>2)if(a.style.display=="block")this.D("compare").style.height=5.6+this.Vj()+"em";else this.D("compare").style.height=this.Tm;else if(a.style.display=="block")this.D("compare").style.height=5.2+this.Vj()-1+"em";else this.D("compare").style.height=this.Qp;this.D("compareMore").style.display=
"none";this.D("compareLess").style.display="inline";this.D("moreLessLinks").style.verticalAlign="bottom"}};Z.prototype.Vj=function(){var a=this.D(this.tf),b=this.D("add_comparison_symbol"),c=b.offsetHeight==0?1:a.offsetHeight/b.offsetHeight;return c};
Z.prototype._onClickLess=function(){if(this.newChartUI){this.D("compare").style.height="1.7em";this.D("compareMore").style.display="inline";this.D("compareLess").style.display="none";this.D("moreLessLinks").style.verticalAlign="top";var a=this.D(this.tf);a.style.display="none";if(!this._shouldShowMoreLessLink())this.D("compareMore").style.display="none"}};
Z.prototype._onHideError=function(){if(this.newChartUI)if(this.currentErrorMessage!="")if(this.quickStocks.length==0)this._onClickLess();else if(this.quickStocks.length>2)this.D("compare").style.height=this.Tm;else this.D("compare").style.height=this.Qp};Z.prototype._setCompareWindowStyles=function(){var a=this.D("compare");if(a!=undefined){a.style.height="1.7em";a.style.padding=".5em";a.style.lineHeight="1.9em";a.style.overflow="hidden"}};
Z.prototype.Qs=function(){var a='<table width="100%" id="cw" cellpadding="0" cellspacing="0"><tr>';a+='<td valign="top" class="compareControl" nowrap>';a+='<form style="margin: 0pt;display:inline;" name="compare" method="get" onsubmit="javascript:_windowGroup._symbolSearch(); return false;">';a+='<input class="fsbox" style="color: rgb(153, 153, 153);"  onFocus="_windowGroup._clearDefaultFastSearch()" name="others"  size="20" onKeyPress="_windowGroup._setErrorMessage(\'\')" value="'+this.oj+'"  id="add_comparison_symbol" autocomplete=off type="text">&nbsp;';
a+='<input class="fsbutt" id="add_comparison_button" value="Add" type="submit">';a+="</form><br/>";a+=' <div id="tempTicks" style="overflow:hidden; margin-top:0.2em;"> ';a+=this.Xj();a+=" </div>";a+="</td>";a+='<td valign="top" id="predefinedTickers">';a+=this.du();a+="</td>";a+='<td valign="top" id="moreLessLinks">';a+='<span id="compareMore" onClick="_windowGroup._onClickMore()">more&nbsp;&raquo;</span>';a+='<span id="compareLess" onClick="_windowGroup._onClickLess()">&laquo;&nbsp;less</span>';
a+="</td>";a+="</tr>";a+="</table>";return a};Z.prototype._setLinkToChart=function(){var a=document.getElementById("linktoview_link"),b=this.D("linktoview");if(a&&b&&b.style.display=="block"){a.value=location.protocol+"//"+location.host+"/"+_getLinkToChart();try{a.blur();a.focus();a.select()}catch(c){}}};var Lp=function(){if(typeof ActiveXObject!="undefined")try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){}if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest;return l};
function bm(a){_pstart("fire async request");var b=Lp();b.overrideMimeType&&b.overrideMimeType("text/xml");b.onreadystatechange=function(){if(b.readyState==4){if(b.status==200)_ParseAsyncResult(b.responseText);else{_alreadyProcessingRequest=p;if(parent.debug_div)parent.debug_div.innerHTML="XML request status "+b.status+"<br />"+parent.debug_div.innerHTML+" <pre>"+b.responseText+"</pre>"}b.onreadystatechange=_nullFunction}};b.open("GET",a,k);b.send(l);_pstop("fire async request");return k}
function _nullFunction(){}
function _ParseAsyncResult(a){_pstart("parsing results of async req");if(jj())a=hj.Bx(a);var b=a.split("<br>"),c=[],d=l;for(var e in b)if(!(e==0||!b[e].split))if(e==1){var f=b[e].split("<r>");if(f[0])d=f[0]}else if(!(e==b.length-1))if((f=b[e].split("<r>"))&&f!=""){var g="",i="",j="",m="",n="";if(f[0])g=parseInt(f[0],10);if(f[1])i=parseInt(f[1],10);if(f[2])j=parseInt(f[2],10);if(f[3])m=f[3];if(f[4])n=f[4];var o="",q="",s="",r="",x="",H="";if(f[5])o=f[5];if(f[6])q=f[6];if(f[7])s=f[7];if(f[8])r=f[8];
if(j)x=j;else if(f[9])x=parseInt(f[9],10);if(f[10])H=f[10];var J=[];if(f.length>17)for(var Q=11;Q<f.length-2;Q+=6){var Ba="",ja="",La="",wa="",Ta="",hb="";if(f[Q])Ba=f[Q];if(f[Q+1])ja=f[Q+1];if(f[Q+2])La=f[Q+2];if(f[Q+3])wa=f[Q+3];if(f[Q+4])Ta=parseInt(f[Q+4],10);if(f[Q+5])hb=f[Q+5];var Bb=new Mp(Ba,ja,La,wa,Ta,hb);J.push(Bb)}var Ua="";if(f[f.length-2])Ua=f[f.length-2];var Vb="";if(f[f.length-1])Vb=f[f.length-1];var vc="",gc=new Np(g,i,o,q,s,r,x,m,H,n,J,Ua,Vb,vc);c.push(gc)}var jd=new Op(c,d);jd.Or();
_pstop("parsing results of async req")};var Pp=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Qp=p,$=-1,Rp=0,Sp=l,Tp=p,Up=p,Vp=p;function S(a){return document.getElementById(a)}
function dm(){_pstart("new sfe state object");this.lastFlashClickedIndex=l;var a=S("newsmovingdiv");if(a){a.style.top="0px";this.zoomLevelChanged=p;this.indexToNewsMap={};this.idToNewsMap={};var b=[];if(document.getElementById("dd0"))$=0;var c=0;do{var d=S("dd"+c);if(d){var e=l,f=S("dd"+c+"time");if(f)e=parseInt(f.innerHTML,10);var g=l,i=S("dd"+c+"id");if(i)g=parseInt(i.innerHTML,10);var j=Pp[c%Pp.length],m=new Np(g,c,l,l,l,l,l,e,l,l,l,l,l,j);this.indexToNewsMap[c]=m;this.idToNewsMap[e]=m;var n=new dp(_ticker,
new Date(e*1000),j,e);b.push(n)}c++}while(d);Rp=c;var o=Date.parse(new Date);this.threeDaysBackSeconds=(o-259200000)/1000;if(b.length>=1)if(_finance_chart){_finance_chart.jd(b);t.newsPanel.Ik(b)}else Wp("addPushPinArray",b);_pstop("new sfe state object")}}dm.prototype.Gt=function(){return this.lastFlashClickedIndex};dm.prototype.fy=function(a){this.lastFlashClickedIndex=a};
dm.prototype.mr=function(a,b){var c=document.createElement("div");c.setAttribute("id","dd"+b);a&&a.appendChild(c);c.innerHTML="";c.setAttribute("class","newsCluster");c.style.display="none";Rp=Math.max(Rp,b+1);return c};
dm.prototype.reset=function(){for(var a=0;a<Rp;a++){var b=S("dd"+a);if(b){b.innerHTML="";b.style.display="none"}}this.zoomLevelChanged=p;this.indexToNewsMap={};this.idToNewsMap={};$=-1;var c=S("newsmovingdiv");if(c){c.style.bottom="auto";c.style.top="0px"}if(this.lastFlashClickedIndex!=l){var d=S("dd"+this.lastFlashClickedIndex);if(d)d.style.backgroundColor="#FFFFFF"}this.lastFlashClickedIndex=l;_finance_chart&&_finance_chart.he(_ticker);var e=S("newshidingdiv");if(e)e.style.height=_newsdivHeight+
"px"};function Xp(){var a=0,b;for(b=$;b<Rp;b++){var c=S("dd"+b);if(!c)break;a+=c.offsetHeight;if(a==_newsdivHeight)return b;if(a>_newsdivHeight)return b-1<0?0:b-1}for(b=$;b<Rp;b++)if(!S("dd"+b))return b-1;return b-1}function Yp(a){if(a<$)return p;if(a==$)return k;if(a>$){var b=Xp();if(a<=b)return k}return p}
dm.prototype.ms=function(a){if(!_alreadyProcessingRequest)if(!Qp)if(!($==-1)){Qp=k;var b=1;if(a==undefined||a==l)Qp=p;else{var c=Pp.length;if(this.lastFlashClickedIndex!=undefined){S("dd"+this.lastFlashClickedIndex).style.backgroundColor="#FFFFFF";var d=this.lastFlashClickedIndex%c,e=Pp[d];S("ph"+e).id="pin"+e}var f=this.idToNewsMap[a],g=f.index;this.lastFlashClickedIndex=g;S("dd"+g).style.backgroundColor="#EFEFEF";e=Pp[g%c];S("pin"+e).id="ph"+e;if(Yp(g))Qp=p;else{var i=0;if(g<$){b=-1;i=parseInt(S("dd"+
$).offsetTop,10)-parseInt(S("dd"+g).offsetTop,10);$=g}if(g>$){b=1;var j=Xp(),m=parseInt(S("dd"+g).offsetTop,10)-parseInt(S("dd"+j).offsetTop,10),n,o=0,q;for(n=$;n<Rp;n++){var s=S("dd"+n);o+=s.offsetHeight;if(o==m){q=o;break}if(o>m){q=o;break}}i=q<=m?m:q;o=0;for(n=$;n<Rp;n++){if(o==i){$=n;break}if(o>i){$=0;break}s=S("dd"+n);o+=s.offsetHeight}}if(i!=0){var r=(new Date).getTime(),x=0,H=new Zp(x,i,r,b,undefined);setTimeout(function(){$p(H)},30)}else Qp=p}}}};
function $p(a){var b,c=p;if(a.currentSteps>=a.totalSteps)c=k;var d=(new Date).getTime(),e=d-a.scrollStartTime;if(e==0)setTimeout(function(){$p(a)},30);else{if(e>a.totalScrollTimeMs)e=a.totalScrollTimeMs;var f=a.totalSteps*1/a.totalScrollTimeMs*e*1;b=0;if(f-a.currentSteps<1){if(a.totalSteps<=a.currentSteps){Qp=_alreadyProcessingRequest=p;aq();return}b=1}else b=Math.floor(f)-a.currentSteps;if(b==0&&a.currentSteps<a.totalSteps)setTimeout(function(){$p(a)},30);else{if(a.currentSteps+b>a.totalSteps)b=
a.totalSteps-a.currentSteps;if(b==0){Qp=_alreadyProcessingRequest=p;aq()}else{a.currentSteps+=b;b*=a.direction;var g=S("newsmovingdiv");if(g){var i;i=g.style.top=="auto"||g.style.top==l||g.style.top==undefined||g.style.top==""?0:parseInt(g.style.top,10);g.style.top=i-b+"px";setTimeout(function(){$p(a)},30)}}}}}function Zp(a,b,c,d,e){this.currentSteps=a;this.totalSteps=b;this.scrollStartTime=c;this.direction=d;this.totalScrollTimeMs=e?e:800}
function bq(a){var b=S("n-"+a);if(b)b.onmousedown=vj(b,"news",b.id,"")}
function cq(a){if(!(!a||!a.newsArray||a.newsArray.length==0)){for(var b=a.newsArray,c=a.requestedZoomDays,d="",e="",f="",g=[],i=Pp.length,j=S("newsmovingdiv"),m=0;m<b.length;m++){var n=b[m].index,o=S("dd"+n);o||(o=_state.mr(j,n));if(o.innerHTML=="")if(!(b[m].id==-1)){o.innerHTML=b[m].nn(n);bq(n);var q=Pp[n%i],s=new dp(_ticker,new Date(b[m].time*1000),q,b[m].time);g.push(s);d+=n+" ";e+=q+" ";f+=b[m].time+" "}var r=b[m];if(_state.indexToNewsMap[r.index].url==l&&_state.indexToNewsMap[r.index].title==
l){if(r.index<_news_display_count)b[m].Jm(r.index);else o.innerHTML=b[m].nn(b[m].index);bq(r.index);_state.indexToNewsMap[r.index]=r;_state.idToNewsMap[r.time]=r}}if(g.length>=1&&c<_maxZoomDaysForEnablingPansAndFlags)if(_finance_chart){_finance_chart.jd(g);t.newsPanel&&t.newsPanel.Ik(g)}else Wp("addPushPinArray",g)}}function dq(a){if(a==l||a.length==0)return a;for(var b=Xp(),c=-1,d=0;d<a.length;d++)if(a[d].index>b){c=d;break}if(c!=-1)a.length=c;return a}
function eq(a,b,c){var d,e;if(a!=l){d=a.newsArray;e=a.requestedZoomDays}else e=d=l;S("newsmovingdiv");var f=0,g=1,i,j;if($==-1){$=d[0].index;var m=S("newsmovingdiv");if(m){m.style.bottom="auto";m.style.top="0px"}cq(a);aq();_alreadyProcessingRequest=p}else if(b==$){cq(a);aq();_alreadyProcessingRequest=p}else{if(b>$){i=$;j=b;g=1;cq(a);f=parseInt(S("dd"+j).offsetTop,10)-parseInt(S("dd"+i).offsetTop,10)}else if(b<$){i=b;j=$;g=-1;m=S("newsmovingdiv");var n=-(m.offsetHeight+m.offsetTop-_newsdivHeight);
m.style.bottom=n+"px";m.style.top="auto";d=dq(d);cq(a);var o=m.offsetHeight-_newsdivHeight+n;m.style.bottom="auto";m.style.top=-o+"px";f=parseInt(S("dd"+j).offsetTop,10)-parseInt(S("dd"+i).offsetTop,10)}if(f!=0){$=b;var q=(new Date).getTime(),s=0,r;r=c?100:800;var x=new Zp(s,f,q,g,r);setTimeout(function(){$p(x)},30)}else _alreadyProcessingRequest=p}}
function _imageClicked(a){if(!(a==l||a==undefined))if(!(_state==l)){var b=Pp.length,c=_state.Gt();if(c!=l){S("dd"+c).style.backgroundColor="#FFFFFF";S("ph"+Pp[c%b]).id="pin"+Pp[c%b]}S("dd"+a).style.backgroundColor="#EFEFEF";S("pin"+Pp[a%b]).id="ph"+Pp[a%b];_state.fy(a);hp(_state.indexToNewsMap[a].time)}}
dm.prototype.ek=function(a){_pstart("handle news array: "+a.length);for(var b=k,c="",d="",e=0;e<a.length;e++){var f=a[e],g=f.index;if(this.indexToNewsMap[g]!=l&&this.indexToNewsMap[g]!=undefined){if(this.indexToNewsMap[g].id!=f.id){b=p;break}if(this.indexToNewsMap[g].url==l&&this.indexToNewsMap[g].title==l)continue}this.indexToNewsMap[g]=f;c+=f.time+" ";this.idToNewsMap[f.time]=f;d+=f.id+" "}if(!b){_state.reset();for(e=0;e<a.length;e++){f=a[e];this.indexToNewsMap[f.index]=f;this.idToNewsMap[f.time]=
f;c+=f.time+" ";d+=f.id+" "}}_pstop("handle news array: "+a.length)};function Mp(a,b,c,d,e,f){this.url=a;this.title=b;this.source=c;this.relativeDate=d;this.time=e;this.snippet=f}function Np(a,b,c,d,e,f,g,i,j,m,n,o,q,s){this.id=a;this.index=b;this.url=c;this.title=d;this.source=e;this.relativeDate=f;this.time=g;this.eventDate=i;this.snippet=j;this.articles=n;this.numRelated=o;this.clusterUrl=q;this.pushpinLetter=s;this.importance=m?m:l;this.externalLinkTarget=_external_target}
Np.prototype.zp=function(){if(this.importance!=l&&this.importance!=undefined&&this.importance<=1)return k;return p};
Np.prototype.Jm=function(a){if(!(this.zp()&&this.articles.length>1)){for(var b="",c="",d=0;d<this.articles.length;d++){var e="n-h-hover"+a+""+d,f=this.articles[d].url;if(d<3)b+="<a id="+e+' href="'+f+'" '+this.externalLinkTarget+">"+this.articles[d].title+' </a><font color="#6f6f6f">&nbsp;'+this.articles[d].source+"</font><br>";else if(d<6){if(d!=3)b+=" - ";else c="&nbsp;-&nbsp;";b+="<a id="+e+' class=g href="'+f+'" '+this.externalLinkTarget+">"+this.articles[d].source+"</a>"}else break}if(this.time>=
_state.threeDaysBackSeconds&&this.clusterId>0){var g="n-r-hover"+a;b+=c;b+='<a class = "g bld" id='+g+' href="http://news.google.com/news?ncl='+this.clusterId+'" '+this.externalLinkTarget+"><nobr>Related articles&nbsp;&raquo</nobr></a><br>"}_hoverData["hover"+a]=b}};
Np.prototype.nn=function(a){var b=S("dd"+a);if(b)b.style.display="block";var c="";this.pushpinLetter=Pp[a%Pp.length];var d="dd"+a+"inner0";c+="<div class=inner id="+d+">";c+='<table width="100%" cellspacing="0" cellpadding="1"><tbody><tr><td valign=top width=1% rowspan=2 class="inner pin" style="padding-left:5px"><img width=19 height=20 class=csprite src='+_cleardot+' onclick=_imageClicked("'+a+'")  id=pin'+this.pushpinLetter+' style="cursor:pointer;cursor:hand"/></td>';var e=this.url,f="n-"+a;c+=
'<td class=title style="font-size:1em;padding-left:9px"><a id='+f+' href="'+e+'" rel=nofollow '+this.externalLinkTarget+">"+this.title+'</a></td></tr><tr><td class=source style="color:#6F6F6F;padding-left:9px">'+this.source+" - <span class=date>"+this.relativeDate+"</span>";if(this.zp()&&this.articles.length>1){if(_debugLevel>=4)c+=" ("+this.index+") ("+this.time+")";c+="</td></tr></tbody></table></div>";var g=0;for(g=0;g<this.articles.length&&g<2;g++){f="n-i-"+a+"r"+g;e=this.articles[g].url;var i=
"dd"+a+"inner"+(g+1);c+='<div style="padding-left:35px;" id='+i+">";c+="<a id="+f+' href="'+e+'" '+this.externalLinkTarget+">"+this.articles[g].title+' </a><font color="#6f6f6f">&nbsp;'+this.articles[g].source+"</font></div>"}if(this.articles.length>=2){i="dd"+a+"inner"+(g+1);c+='<div style="padding-left:35px;" id='+i+">"}for(;g<this.articles.length&&g<4;g++){if(g!=2)c+="&nbsp;-&nbsp;";f="n-i-"+a+"r"+g;e=this.articles[g].url;c+="<a id="+f+' href="'+e+'" class=g '+this.externalLinkTarget+">"+this.articles[g].source+
"</a>"}if(this.articles.length>1&&this.time>=_state.threeDaysBackSeconds&&this.clusterid>0){var j="n-i-"+a+"a";c+=" - <a id="+j+' class="g bld" href="http://news.google.com/news?ncl='+this.clusterId+'" '+this.externalLinkTarget+"><nobr>Related articles&nbsp;&raquo;</nobr></a>"}if(this.articles.length>=2)c+="</div>";return c}if(_debugLevel>=4)c+=" ("+this.index+") ("+this.time+")";if(this.articles.length==0)c+="</td></tr></table></div>";else{var m="hover"+a+"ph";S(m)&&document.removeChild(m);var n=
"",o="javascript:_dn()";if(this.time>=_state.threeDaysBackSeconds&&this.clusterId>0){o="http://news.google.com/news?ncl="+this.clusterId;n=this.externalLinkTarget}f="hover"+a+"link";c+="&nbsp;-<a class=rg id="+f+" href="+o+' onMouseOver=_showRelated("hover'+a+'")  onMouseOut=_hideRelated("hover'+a+'") '+n+"><nobr>Related articles&nbsp;&raquo;</nobr></a></td></tr>";c+="<tr><td colspan=2><div id="+m+"></div></td></tr>";c+="</table></div>";this.Jm(a)}return c};
function Op(a,b){this.newsArray=a;this.requestedZoomDays=b}
Op.prototype.Or=function(){if(Tp||Up)this.Pr();else if(Vp){if(this.newsArray.length>=1){_state.ek(this.newsArray);eq(this,0,k)}Vp=p}else if(Qp)_alreadyProcessingRequest=p;else{_state.zoomLevelChanged==k&&_state.reset();if(_first_chart_data_is_here==k){_state.reset();_first_chart_data_is_here=p}if(this.newsArray.length>=1){_state.ek(this.newsArray);eq(this,this.newsArray[0].index,p)}else{_finance_chart.he(_ticker);_state.reset();_alreadyProcessingRequest=p}}};
Op.prototype.Pr=function(){if(Qp)Up=Tp=_alreadyProcessingRequest=p;else{if(this.newsArray.length>=1){_state.ek(this.newsArray);if(Tp){cq(this);if(Sp==l){Sp=$;var a=Xp(),b=a+1,c=parseInt(S("dd"+b).offsetHeight,10),d=parseInt(S("newshidingdiv").style.height,10);if(d+c>_newsdivHeight){for(var e=d+c-_newsdivHeight,f=$,g=parseInt(S("dd"+f).offsetHeight,10);g<e;){f++;g+=parseInt(S("dd"+f).offsetHeight,10)}Sp=f+1}}eq(l,Sp,k)}Up&&eq(this,$-1,k)}Up=Tp=p}};
function _newerNews(){if(!_alreadyProcessingRequest)if(!Qp)if(!($==0||$==-1)){_alreadyProcessingRequest=k;var a=l,b=$-1;_state.indexToNewsMap[b]||(a=_state.indexToNewsMap[$]);if(a!=l){Up=k;var c=_state.Qi(0,a.time*1000);c+="&"+_kNumResultsParam+"=10";bm(c)}else eq(l,$-1,k)}}
function _olderNews(){if(!_alreadyProcessingRequest)if(!Qp){_alreadyProcessingRequest=k;var a=l,b=Xp();if(_state.indexToNewsMap[b].id==-1)_alreadyProcessingRequest=p;else{var c=b+1;if(_state.indexToNewsMap[c]){var d=parseInt(S("dd"+c).offsetHeight,10),e=parseInt(S("newshidingdiv").style.height,10);Sp=$;if(e+d>_newsdivHeight){for(var f=e+d-_newsdivHeight,g=$,i=parseInt(S("dd"+g).offsetHeight,10);i<f;){g++;i+=parseInt(S("dd"+g).offsetHeight,10)}Sp=g+1;var j=parseInt(S("dd"+Sp).offsetTop,10)-parseInt(S("dd"+
$).offsetTop,10);g=b+1;for(var m=parseInt(S("dd"+g).offsetHeight,10);m<j;){g++;if(!_state.indexToNewsMap[g]){a=_state.indexToNewsMap[g];break}m+=parseInt(S("dd"+g).offsetHeight,10)}}}else{Sp=l;a=_state.indexToNewsMap[b]}if(a!=l){Tp=k;var n=_state.Qi(a.time*1000);bm(n)}else eq(l,Sp,k)}}}
function _latestNews(){if(!_alreadyProcessingRequest)if(!Qp){_alreadyProcessingRequest=k;var a=0;if(_state.indexToNewsMap[a]==l||_state.indexToNewsMap[a]==undefined){Vp=k;var b=_state.Qi(Date.parse(new Date));bm(b)}else eq(l,0,k)}}
dm.prototype.Qi=function(a,b){var c=a,d=b?b:c-86400000*_previousBucketedDays,e=_urlPrefix+"/kd?"+_kAsyncKeydevsParam+"=1";e+="&"+_kAsyncKeydevsStartParam+"="+d;e+="&"+_kAsyncKeydevsEndParam+"="+c;e+="&"+_kAsyncKeydevsZoomLevelParam+"="+_previousBucketedDays;e+="&"+_kAsyncKeydevsGetRecentNewsParam+"="+_getRecentNews;e+="&"+_kCompanyIdParam+"="+_companyId;e+=xj();return e};function _dn(){}
function fq(a,b,c){if(a)a.className="imgnac";if(b){b.className="lnac";b.href="javascript:_dn()"}if(c){c.className="lnac";c.href="javascript:_dn()"}}
function aq(){var a=S("newer_news_img"),b=S("newer_news_img_link"),c=S("newer_news_link");if(c&&a&&b){if($==-1||$==0){a.src=_newsArrowNewerDisabled;fq(a,b,c)}else if(c&&c.className=="lnac"){a.src=_newsArrowNewerActive;b.href="javascript:_newerNews()";a.className="imgac";c.className="lac";c.href="javascript:_newerNews();"}var d=S("latest_news_link");if(d){if($==-1||$==0||_previousBucketedDays>30)fq(l,l,d);else if(d.className=="lnac"){d.className="lac";d.href="javascript:_latestNews();"}var e=S("older_news_img"),
f=S("older_news_img_link"),g=S("older_news_link");if(e&&g&&f){var i=Xp(),j=_state.indexToNewsMap[i];if(j&&j.id==-1){e.src=_newsArrowOlderDisabled;fq(e,f,g)}else if(g.className=="lnac"){e.src=_newsArrowOlderActive;f.href="javascript:_olderNews();";e.className="imgac";g.className="lac";g.href="javascript:_olderNews();"}}}}};function Fp(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.Qq()}
Fp.prototype.Qq=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}};
Fp.prototype.addFlashVar=function(a,b){if(this.configObject==l)this.configObject={};this.configObject[a]=b};Fp.prototype.toString=function(){var a='<div id="image_chart">';a+=this.$m();a+="</div>";return a};
Fp.prototype.$m=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.Hu());
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("")};Fp.prototype.write=function(a){a.write(this.toString())};Fp.prototype.update=function(){var a=document.getElementById("image_chart");a.innerHTML=this.$m()};
Fp.prototype.Hu=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!=l)a.push("&p="+escape(this.configObject.displayPeriod));else this.configObject.defaultZoomDays!=l?a.push("&p="+escape(this.configObject.defaultZoomDays)+"d"):a.push("&p=5d");this.configObject.displayInterval!=l?a.push("&i="+escape(this.configObject.displayInterval)):a.push("&i=240");return a.join("")};function gq(a,b,c){this.type=a;this.version=b;this.os=c}browser=new gq(_BROWSER_OTHER,0,l);_agent=navigator.userAgent.toLowerCase();
if(_agent.indexOf("opera")!=-1){browser.type=_BROWSER_OPERA;if(_agent.indexOf("opera/7")!=-1||_agent.indexOf("opera 7")!=-1)browser.version=7;else if(_agent.indexOf("opera/8")!=-1||_agent.indexOf("opera 8")!=-1)browser.version=8}else if(_agent.indexOf("msie")!=-1&&document.all){browser.type=_BROWSER_IE;if(_agent.indexOf("msie 5"))browser.version=5}else if(_agent.indexOf("safari")!=-1)browser.type=_BROWSER_SAFARI;else if(_agent.indexOf("mozilla")!=-1){browser.type=_BROWSER_MOZILLA;if(_agent.indexOf("firefox/2")!=
-1)browser.version=2;else if(_agent.indexOf("firefox/3")!=-1)browser.version=3}if(_agent.indexOf("x11;")!=-1)browser.os=_OS_UNIX;else if(_agent.indexOf("macintosh")!=-1)browser.os=_OS_MAC;function hq(){return browser.os==_OS_UNIX&&(browser.type==_BROWSER_MOZILLA&&browser.version<2||browser.type!=_BROWSER_MOZILLA)?p:k}
function _emitFlashChart(a,b,c,d,e,f,g,i,j,m,n){if(hq()){_finance_chart=new Gp(a,b,"getprices","100%",340,c,d,e,g);_finance_chart.jd(d.corpActionsArray);if(m){var o=E(m);o.innerHTML=_finance_chart.flash_tag.toString()}else _finance_chart.uz(document);if(qj()){if(E("compare-bar")){var q=new Ln(_finance_chart,_ticker,n);_relatedTickers!=l&&q.pq(_relatedTickers);q.decorate(E("compare-bar"))}var s=new X(_finance_chart);s.ug(iq());s.ry(jq(d),kq(d),lq(d),d.enableIndicatorSetting?["SMA","EMA","BollingerBands"]:
[])}else mq(_finance_chart)}else if(o=E(m||"chart_anchor"))o.style.height="340px";_tabs=new jp(f!==undefined&&f,i!==undefined&&i,j)}
function jq(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]}]};if(a.hasVolume)b.VMA=[{name:"Period",value:[5,10,20]}];return b}else return{}}
function lq(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)"}};if(a.hasVolume)b.VMA={logName:"V",displayName:"Volume Moving Average (VMA)"};return b}else return{}}
function kq(a){var b=[];if(a.enableIndicatorSetting){nq(b,"SMA",a.smaSetting);nq(b,"EMA",a.emaSetting);a.hasVolume&&nq(b,"VMA",a.vmaSetting);nq(b,"MACD",a.macdSetting);nq(b,"KDJ",a.kdjSetting);nq(b,"RSI",a.rsiSetting);nq(b,"WilliamsPercentR",a.williamsPercentRSetting);nq(b,"BIAS",a.biasSetting);nq(b,"BollingerBands",a.bollingerBandsSetting);nq(b,"FastStochastic",a.fastStochasticSetting);nq(b,"SlowStochastic",a.slowStochasticSetting)}return b}
function nq(a,b,c){if(!(!c||c==""))for(var d=c.split("@"),e=0;e<d.length;e++)a.push({name:b,param:d[e]})}
function mq(a){_windowGroup=new Z(a,"windowContainer","/finance");_relatedTickers!=l&&_windowGroup.iq(_relatedTickers);if(_chartConfigObject.compareTo){var b=_chartConfigObject.compareTo.split(";"),c=[];if(_chartConfigObject.compareToTimeZoneOffsets){c=_chartConfigObject.compareToTimeZoneOffsets.split(";");if(c.length!=b.length)c=[]}for(var d=0;d<b.length;d++)_windowGroup.il(b[d],k,c[d])}_windowGroup.ug(iq());a.defaultTab!=undefined&&_windowGroup._showTab(a.defaultTab,p)}
function iq(){var a=[],b=l;if(_chartConfigObject.hasNews){var c="displayNewsPins";b=_chartConfigObject[c]!="false";a.push({name:"News Flags",checked:b,options:[],selected:p,paramName:c,clickType:"np"})}else qj()&&a.push({name:"Blank1",blank:k,options:[],selected:"",paramName:"blank1"});if(_chartConfigObject.corpActionsArray!=undefined){b=_chartConfigObject.displayDividends!="false";a.push({name:"Dividends",checked:b,options:[],selected:p,paramName:"displayDividends",clickType:"dv"});b=_chartConfigObject.displaySplits!=
"false";a.push({name:"Splits",checked:b,options:[],selected:p,paramName:"displaySplits",clickType:"sp"})}else if(qj()){a.push({name:"Blank1",blank:k,options:[],selected:"",paramName:"blank1"});a.push({name:"Blank1",blank:k,options:[],selected:"",paramName:"blank1"})}if(_chartConfigObject.hasVolume){b=_chartConfigObject.displayVolume!="false";a.push({name:"Volume",checked:b,options:[],selected:p,paramName:"displayVolume",clickType:"vo"})}else qj()&&a.push({name:"Blank1",blank:k,options:[],selected:"",
paramName:"blank1"});if(_chartConfigObject.hasExtendedHours){b=_chartConfigObject.displayExtendedHours=="true";a.push({name:"Extended Hours",checked:b,options:[],selected:p,paramName:"displayExtendedHours",clickType:"xh"})}else qj()&&a.push({name:"Blank1",blank:k,options:[],selected:"",paramName:"blank1"});_chartConfigObject.enableLogCharts&&a.push({name:"Blank1",blank:k,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]}if(_chartConfigObject.hasVerticalScaleSetting)_chartConfigObject.enableLogCharts?a.push({name:"Vertical scale: ",options:["Linear","Logarithmic"],values:["Linear","Logarithmic"],selected:_chartConfigObject.verticalScaling,isradioselection:k,clickType:"vs",
paramName:"verticalScaling"}):a.push({name:"Vertical scale",options:["fixed","maximized"],selected:_chartConfigObject.verticalScaling,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:k,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 oq=[];function Wp(a,b){var c={};c.methodName=a;c.args=b;oq.push(c)}function pq(a){if(a==l||a==undefined)return l;for(;oq.length>0;){var b=oq.shift();if(b.methodName=="addPushPinArray"){a.jd(b.args);t.newsPanel.Ik(b.args)}}}
function _emitFlashChartOnLoad(a,b,c,d,e,f,g,i,j){if(!hq())if(document.getElementById){var m=430;if(document.getElementById(e)){var n=document.getElementById(e);m=n.offsetWidth}var o=document.getElementById(d);if(o){_finance_chart=new Gp(a,b,"getprices",m,340,c,f,g,j);_finance_chart.jd(f.corpActionsArray);pq(_finance_chart);mq(_finance_chart);_finance_chart.vz(o)}return m}return l}
function _changeImage(a,b,c){_finance_chart.flash_tag.addFlashVar("displayPeriod",a);_finance_chart.flash_tag.addFlashVar("displayInterval",b);_finance_chart.flash_tag.update();var d=new Date,e=new Date(d.getTime()-c*24*60*60*1000);cm(e,d,c)}function _firstDataIsHere(){_first_chart_data_is_here=k;_finance_chart.Qm();_tck("chd")}function _addCompareToChart(a){_finance_chart&&_finance_chart.de(a)};function qq(a){var b=function(){a&&a();_ac_s_init();_rl()};C(window,"load",b)}v("_regOnLoad",qq);function rq(){_AC_Store.call(this)}rq.inherits(_AC_Store);rq.prototype._numToDisplay=9;rq.prototype.Fl=p;rq.prototype.Sm=p;rq.prototype.Hh="matchall";rq.prototype.matches=[];rq.prototype.Ka="";rq.prototype.Qa="";rq.prototype.Ih={};rq.prototype.vg=p;rq.prototype.gf="";rq.prototype.wg=[];rq.prototype.Tl="";rq.prototype.Ri=l;rq.prototype.Hw=function(a){for(var b in this.Ih)a.substring(0,b.length)!=b&&delete this.Ih[b];var c=this.Ih[a];if(c)return c;return l};
rq.prototype.sq=function(a,b){if(b&&b!=[])this.Ih[a]=b};rq.prototype.bu=function(a){if(a=="")return l;if(a==this.Tl)return this.Ri;else{var b="^(.*?[\\s])??("+this.Ka.replace(/([\^*+\-\$\\\{\}\(\)\[\]\#?\.])/g,"\\$1")+")(.*)";this.Tl=a;return this.Ri=new RegExp(b,"i")}};
rq.prototype.ar=function(a){var b=this.bu(this.Ka);if(!b)return"";for(var c=["tick","cname","local","pinyin","isin","altname"],d=a.sugg[0].split(","),e="",f=p,g=1;g<a.sugg.length;++g){var i=c[d[g-1]-1];if(i=="cname"&&g!=a.sugg.length-1)i+="_w";var j="<span class="+i+">",m=a.sugg[g],n=m.match(b);if(n){m=(n[1]||"")+"<b>"+n[2]+"</b>"+n[3];f=k}e+=j+" "+m+"</span>"}if(!f)return"";return"<div>"+e+"</div>"};rq.prototype.mf=function(a){return a.t&&a.t!=""?a.t:a.n};rq.prototype.po=function(){};
rq.prototype.bm=function(){return new _AC_Completion(this.Qa,'<div style="white-space:nowrap"><i>Search for</i> <b>'+this.Qa+"</b><span class=spacer>&nbsp;</span></div>")};
rq.prototype.completions=function(a){if(!a)return[];if(this.matches.length==0)return[];var b=[];if(this.Sm&&this.Ka)b[0]=this.bm();for(var c=0;c<this.matches.length&&b.length<this._numToDisplay;++c){var d=this.mf(this.matches[c]),e=this.ar(this.matches[c]),f=new _AC_Completion(d,e);this.po(this.matches[c],f);if(d!=""&&e!="")b[b.length]=f}return b};
rq.prototype.completable=function(a,b){var c=0;if(this.Fl){for(var d=0;d<b;++d)if(","==a.charAt(d))c=d+1;for(;c<b&&" \t\r\n".indexOf(a.charAt(c))>=0;)++c}var e=a.substring(c,b);if(e==""){this.Qa="";this.matches=[];this.Ka="";this.vg=p;this.gf="";this.wg=[];rp=[];sp(k);return""}if(this.vg){this.Qa=e;if(e.substring(0,this.gf.length)==this.gf){this.matches=this.wg;return this.Ka=e}else{this.vg=p;this.gf="";this.wg=[]}}var f=this.Hw(e);if(f){this.matches=f;return this.Qa=this.Ka=e}if(e!=this.Qa){this.Qa=
e;if(this.matches.length==0&&this.Ka.length>0&&e.substring(0,this.Ka.length)==this.Ka)return this.Qa;else{this.Pt(e);return this.Ka}}return[]};rq.prototype.substitute=function(a,b,c,d){return this.Qa!=this.Ka?a:a.length==c.length?d.value:a.substring(0,b-c.length)+d.value+", "+a.substring(b)};rq.prototype.eq=function(a,b){if(b.readyState==4){b.status==200&&this.co(a,b.responseText);b.onreadystatechange=function(){}}};
rq.prototype.co=function(a,b){try{this.Ka=a;if(this.Qa.substring(0,this.Ka.length)==this.Ka){var c=eval("("+b+")");if(jj())c.matches=hj.Vh(c.matches,k);this.matches=c.matches;this.vg=c.all;this.gf=a;this.wg=c.matches;this.sq(a,c.matches)}else this.matches=[];Dp();sp(k)}catch(d){}};rq.prototype.mn=function(a){var b="/finance/match?matchtype="+this.Hh+"&q="+escape(a)+xj();return b};
rq.prototype.Pt=function(a){if(a.length==0){this.matches=[];this.Ka="";rp=[];sp(k);return k}var b=this.mn(a),c=this;if(this.tw){var d=function(f){c.co(a,f)};_IG_FetchContent("http://www.google.com"+b,d)}else{var e=Te();Ue(e,b,function(){c.eq(a,e)})}return k};var _p_Store=new rq;_p_Store.Cg=p;_p_Store.Fl=k;_p_Store.Hh="matchportfolio";_p_Store.xg=k;_p_Store.mf=function(a){return a.t&&a.t!=""?a.e&&a.e!=""?a.e+":"+a.t:a.t:""};function sq(){_AC_SimpleStore.call(this,[])}sq.inherits(_AC_SimpleStore);
sq.prototype._display_field_name_map=[];sq.prototype._addStrings=function(a){var b=[];for(var c in a){b.push(a[c]);this._display_field_name_map[a[c]]=c}_AC_SimpleStore.prototype.Ii.call(this,b)};sq.prototype.vw=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 k;return p};
sq.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)};sq.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 rq;_s_Store.Cg=p;_s_Store.Hl=k;_s_Store.xg=k;_s_Store.Sm=p;
_s_Store.hf=p;_s_Store.additionalUrlParams="";_s_Store.isInIframe=p;_s_Store._allowMatchAdvancedSearch=k;_s_Store.Kw=p;_s_Store._asStore=new sq;_s_Store.oA="";_s_Store.Bl=function(){};_s_Store.tw=p;_s_Store.bm=function(){var a=new _AC_Completion(this.Qa,'<div style="white-space:nowrap"><i>Search for</i> <b>'+this.Qa+"</b><span class=spacer>&nbsp;</span></div>");a.urlpath="q="+encodeURIComponent(this.Qa);return a};_s_Store.mf=function(a){return a.t&&a.t!=""?a.e&&a.e!=""?a.e+":"+a.t:a.t:a.n};
_s_Store.po=function(a,b){b.urlpath=a.t&&a.t!=""?a.e&&a.e!=""?"q="+encodeURIComponent(a.e+":"+a.t)+xj():"q="+encodeURIComponent(a.t)+xj():a.ismf?"mfid="+a.id+xj():"cid="+a.id+xj()};_s_Store.substitute=function(a,b,c,d){if(_s_Store.isAdvancedSearchCompletion())return _s_Store._asStore.substitute(a,b,c,d);_s_Store.url="/finance?"+d.urlpath;if(_s_Store.additionalUrlParams)_s_Store.url=_s_Store.url+"&"+_s_Store.additionalUrlParams;return d.value};_s_Store.oncomplete=function(a,b,c,d){d&&_s_Store.Bl(d)};
_s_Store.completions=function(a,b){return _s_Store.isAdvancedSearchCompletion()?_s_Store._asStore.completions(a,b):rq.prototype.completions.call(this,a,b)};_s_Store.completable=function(a,b){_s_Store.Kw=_s_Store._asStore.vw(a,b);return _s_Store.isAdvancedSearchCompletion()?_s_Store._asStore.completable(a,b):rq.prototype.completable.call(this,a,b)};_s_Store.isAdvancedSearchCompletion=function(){return this._allowMatchAdvancedSearch&&this.Kw&&this._asStore};
function _ac_s_init(){_s_Store.Bl=function(){if(!_s_Store.isAdvancedSearchCompletion())if(this.isInIframe){window.parent.location=this.url;window.parent.location=this.url}else window.location=this.url};_ac_register(function(a){if(a.id=="searchbox")return _s_Store});_ac_install()}function _ac_init(a,b,c){_s_Store.Bl=b;_s_Store.tw=Boolean(c);_ac_register(function(d){if(d.id==a)return _s_Store});_ac_install()}var _comparison_charts_Store=new rq;_comparison_charts_Store.Cg=p;
_comparison_charts_Store.allowMulitpleInBox=p;_comparison_charts_Store.Hh="matchtimezone";_comparison_charts_Store.xg=k;_comparison_charts_Store.Ki=k;_comparison_charts_Store.baseTicker="";_comparison_charts_Store.hf=k;_comparison_charts_Store.mn=function(a){var b="/finance/match?matchtype="+this.Hh+"&q="+escape(a)+"&basetkr="+escape(this.baseTicker)+xj();return b};
_comparison_charts_Store.substitute=function(a,b,c,d){qj()?google.finance.searchTicker(d.value):_windowGroup._symbolSearch(d.value);_comparison_charts_Store.matches=[];return d.value};_comparison_charts_Store.mf=_s_Store.mf;var tq=20,uq=k,vq=tq,wq=p,xq=120,yq=600,zq=1080,Aq=l,Bq=45,Cq="",Dq="",Eq="",Fq=0,Gq=p,Hq=p,Iq=5,Jq=l,Kq={},Lq="",Mq=0,Nq=0,Oq=0,Pq="",Rq=function(a){if(!(uq==p))if(!(Lq=="")){Jq&&clearTimeout(Jq);var b=function(){Qq()},c=tq;if(a!=l){c=a;if(c<0)c=0}else if(wq)c=xq;else{var d=(new Date).getTime(),e=(d-Nq)/1000;if(e>300)c=tq*3;else if(e>180)c=tq*2}vq=c<=tq?tq:c;Jq=setTimeout(b,c*1000)}},Sq=function(){if(Aq){clearTimeout(Aq);Aq=l}if(!Hq){var a=(new Date).getTime(),b=(a-Mq)/1000,c=300;if(b<c){var d=Math.max(c-
b,10);Aq=setTimeout(function(){Sq()},d*1000)}else if(!Gq&&b<yq){d=Math.max(yq-b,10);Aq=setTimeout(function(){Sq()},d*1000)}else{var e=(a-Nq)/1000;if(b>zq)Tq();else if(e>Bq)Tq();else Aq=setTimeout(function(){Sq()},10000)}}};function Uq(a){a.onload=a.onerror=a.onabort=a.ontimeout=l}
function Vq(a,b,c){var d=new Image;d.onload=function(){try{Uq(d);c(k)}catch(f){Fb(f)}};d.onerror=function(){try{Uq(d);c(p)}catch(f){Fb(f)}};d.onabort=function(){try{Uq(d);c(p)}catch(f){Fb(f)}};d.ontimeout=function(){try{Uq(d);c(p)}catch(f){Fb(f)}};yc(l,function(){d.ontimeout&&d.ontimeout()},b);var e=a;e=a.indexOf("?")==-1?e+"?"+(new Date).getTime():e+"&"+(new Date).getTime();d.src=e}
function Tq(){Hq=k;Vq("/finance/images/cleardot.gif",10000,function(a){if(a){var b="1";if(_finance_chart&&_finance_chart._getCurrentViewAsString)b="chart="+escape(_finance_chart._getCurrentViewAsString());document.cookie="FINREL="+b;if(Pq){document.location.replace(Pq);Pq=""}else document.location.reload()}else setTimeout(Tq,yq*1000)})}
var Xq=function(){var a=function(){Wq()};document.onkeydown=a;document.onmousedown=a;document.onmousemove=a},Wq=function(){var a=(new Date).getTime();Nq=a;if(wq){wq=p;Rq(0)}else{var b=(a-Oq)/1000;if(b>tq)Rq(0);else vq>tq&&Rq(tq-b)}document.onkeydown=l;document.onmousedown=l;document.onmousemove=l;setTimeout(function(){Xq()},Iq*1000)};
function _init_refresh(a){if(a){if(a.ref_time)tq=a.ref_time;if(a.min_rel)yq=a.min_rel;if(a.max_rel)zq=Math.max(a.max_rel,yq);if("auto_refresh_enabled"in a)uq=a.auto_refresh_enabled;if(a.title_id)Cq=a.title_id;if(a.title_prefix)Dq=a.title_prefix;if(a.title_suffix)Eq=a.title_suffix;if(a.is_reload)wq=k;if(a.infotype)a.infotype=a.infotype.toLowerCase();if(a.reload_destination)Pq=a.reload_destination}var b=(new Date).getTime();Oq=Nq=Mq=b;var c=0;if(document.getElementsByTagName)for(var d=document.getElementsByTagName("span"),
e=0;e<d.length;e++)if(d[e].id&&d[e].id.length>4&&d[e].id.substring(0,4)=="ref_"){var f=d[e].id.substring(4),g=f.indexOf("_");if(g){var i=f.substring(0,g),j=f.substring(g+1);if(!(j=="")){if(!Kq[i]){Kq[i]=[];c++}Kq[i][j]||(Kq[i][j]=[]);Kq[i][j][Kq[i][j].length]=d[e]}}}if(a&&a.infotype!="infoportfolio"&&(c>0||Cq)){if(Cq&&!isNaN(parseInt(Cq,10)))Kq[Cq]||(Lq="id-"+Cq);for(var m in Kq){if(Lq!="")Lq+=",";Lq=Lq+"id-"+m}Lq="/finance/info?q="+Lq;if(a.infotype&&a.infotype!="")Lq+="&infotype="+a.infotype}else if(a&&
a.infotype=="infoportfolio"&&a.pid)Lq="/finance/info?infotype=infoportfolio&action=view&pid="+a.pid;if(Lq){Lq+="&hl="+window.locale.hl+"&gl="+window.locale.gl;Rq(l)}Aq=setTimeout(function(){Sq()},(yq+1)*1000);Xq()}
var Qq=function(){if(!(Lq=="")){clearTimeout(Jq);var a=Te(),b=function(){if(a.readyState==4){Rq(l);if(a.status==200){var c=a.responseText;c=c.substring(c.indexOf("["));c="("+c+")";var d=eval(c);Yq(d);Oq=(new Date).getTime()}a.onreadystatechange=function(){}}};Ue(a,Lq,b)}},Zq=function(a){var b=0;if(a){var c=Dq;if(a.l){b=a.l;c+=": "+a.l;if(a.c)c+=" "+a.c;if(a.cp){a.cp=a.cp.replace(/\(|\)|%/g,"");c+=" ("+a.cp+"%)"}}if(c.length>0)c+=" - ";c+=Eq;document.title=c}else{c=Dq;if(c.length>0)c+=" - ";c+=" - "+
Eq;document.title=c}if(Fq<=0&&b)Fq=b;if(Fq>0&&b&&Math.abs(Fq-b)>0.05*Fq){Gq=k;Sq()}},$q=(new Date).getTime(),ar=983582,Yq=function(a){for(var b in a){if(ar==a[b].id){var c=(new Date).getTime();if(c-$q>120000)$q=c;else continue}Cq!=""&&a[b].id==Cq&&Zq(a[b]);if(Kq[a[b].id])for(var d in a[b])if(!(a[b][d]=="")){var e=Kq[a[b].id][d];if(e){var f=a[b][d],g="";if(d=="c"||d=="cp"||d=="ec"||d=="ecp"){var i="";if(d=="c"||d=="cp")i="ccol";if(d=="ec"||d=="ecp")i="eccol";if(a[b][i]&&a[b][i]=="green")g="chg";else if(a[b][i]&&
a[b][i]=="red")g="chr"}if(d=="pro"||d=="netpro")g=f.length>0&&"-"==f.charAt(0)?"chr":"chg";if(f&&(d=="netinv"||d=="netval"||d=="netpro"))f="$"+f;for(var j=0;j<e.length;j++){if(f&&(d=="cp"||d=="ecp")){f=f.replace(/\(|\)|%/g,"");f=e[j].innerHTML&&e[j].innerHTML.indexOf("(")!=-1?"("+f+"%)":f+"%"}e[j].innerHTML=f;if(g)e[j].className=g}}}}};var br=function(a){var b={};if(!a)return b;for(var c=a.split(":"),d=0;d<c.length;d++){var e=c[d],f=e.indexOf("=");f==-1||(b[e.substring(0,f)]=e.substring(f+1))}return b},_pf_dictFromHash=br,Lm=function(a,b,c,d){var e=1;if(d)e=-1;var f=a.value,g=b.value,i=c(a.element),j=c(b.element);if(!f&&!g)return Ke(i,j);if(!f)return e*1;if(!g)return e*-1;var m=Number(f).valueOf(),n=Number(g).valueOf(),o=m-n;if(o)return o;return Ke(i,j)},Mm=function(a,b,c){var d=a.value,e=b.value,f=c(a.element),g=c(b.element);if(d==
e)return Ke(f,g);if(!d)return-1;if(!e)return 1;return Ke(d,e)},cr=function(a,b){var c={},d=function(f){if(f){var g=f.tBody.rows;if(g){c={};for(var i=0;i<g.length;i++){var j=a(g[i]);if(j)c[j]=i}}}},e=function(f,g){var i=a(f.element),j=a(g.element);return Ke(c[i],c[j])};Ae.prototype.ba(b,l,e);return d},dr=function(a,b){return function(){var c=l;if(b.value){var d=$c(b.value);if(d&&d.confidence>-2){c=d.date;if(c.year>3000)c=l}if(c==l)c=a.getSelection()}a.ed(c,c,p);b.value=c?te(c):""}},Pm=function(a){if(!a)return l;
var b=y(a);if(!b)return l;var c=oe(a,te,we),d=dr(c,b);C(b,"change",d);return c},er=function(a,b,c){for(var d=0;d<a.length;d++){jh(a[d],d%2?b:c);hh(a[d],d%2?c:b)}},fr=function(a,b,c,d){for(var e=0;e<a.length;e++)a[e].setAttribute(b,e%2?d:c)},gr=function(a,b,c,d){if(!ha(a))return p;if(!b)return p;if(!df(a,b))return p;for(var e=0;e<a.length;e++){var f=a[e];if(!(f==b))if(f){c&&jh(f,c);d&&hh(f,d)}}c&&hh(b,c);d&&jh(b,d);return k},Om=function(a,b,c,d){if(!ha(a))return p;if(!b)return p;var e=y(b);if(!e)return p;
for(var f=[],g=0;g<a.length;g++){var i=y(a[g]);i&&f.push(i)}return gr(f,e,c,d)},hr=function(a,b,c,d,e){var f={};if(!a)return l;var g=y(a);if(!g)return l;var i=th(undefined,c,g);if(i.length==0)return l;for(var j={},m=[],n=0;n<i.length;n++){var o=i[n];o.removeAttribute("href");var q=o.getAttribute(b);if(q){m.push(o);j[q]=o;C(o,"mousedown",sa(d,q));C(o,"mousedown",vj("","pf_views",q,""))}}f.setActiveLink=function(s){var r=j[s];if(!r)return p;return gr(m,r,e,l)};return f},_pf_setup_viewlinksbar=hr,_pf_set_active_id=
Om,_pf_set_active_element=gr,_pf_setup_persistent_sort=cr,_pf_set_class_alternate_rows=er,_pf_set_attribute_alternate_rows=fr,_partial=sa,_addClass=hh,_removeClass=jh,_forid=y;
; function _lastFinanceFn(){} _tck('jl');
