(function(){function aa(a){throw a;}var g=true,h=null,j=false,ba=unescape,ca=encodeURIComponent,l=window,da=Object,ea=screen,fa=navigator,ha=undefined,ia=parseInt,ja=parseFloat,ka=String,la=confirm,m=document,ma=decodeURIComponent,na=isNaN,n=Math;function oa(a,b){return a.hash=b}function pa(a,b){return a.relatedTarget=b}function qa(a,b){return a.width=b}function ra(a,b){return a.text=b}function o(a,b){return a.innerHTML=b}function p(a,b){return a.value=b}function sa(a,b){return a.preventDefault=b}
function ta(a,b){return a.paddingTop=b}function ua(a,b){return a.currentTarget=b}function va(a,b){return a.left=b}function wa(a,b){return a.charCode=b}function xa(a,b){return a.remove=b}function ya(a,b){return a.keyCode=b}function za(a,b){return a.type=b}function Aa(a,b){return a.clear=b}function Ca(a,b){return a.name=b}function Da(a,b){return a.cancelBubble=b}function Ea(a,b){return a.clientX=b}function Fa(a,b){return a.clientY=b}function Ga(a,b){return a.visibility=b}
function Ia(a,b){return a.scrollTop=b}function Ja(a,b){return a.toString=b}function La(a,b){return a.length=b}function Ma(a,b){return a.title=b}function Na(a,b){return a.position=b}function Oa(a,b){return a.prototype=b}function Pa(a,b){return a.className=b}function Qa(a,b){return a.checked=b}function Ra(a,b){return a.stopPropagation=b}function Sa(a,b){return a.location=b}function Ta(a,b){return a.disabled=b}function Ua(a,b){return a.target=b}function Va(a,b){return a.coords=b}
function Wa(a,b){return a.returnValue=b}function Xa(a,b){return a.scrollLeft=b}function Ya(a,b){return a.href=b}function Za(a,b){return a.backgroundImage=b}function $a(a,b){return a.display=b}function ab(a,b){return a.height=b}function bb(a,b){return a.right=b}
var q="appendChild",cb="forms",r="push",db="hash",eb="getBoundingClientRect",fb="page",gb="open",hb="test",ib="shift",jb="exec",kb="width",lb="round",mb="slice",s="replace",nb="nodeType",ob="floor",pb="responseText",qb="getElementById",rb="innerHTML",sb="offsetWidth",tb="dataset",ub="charAt",vb="blur",wb="createTextNode",xb="getData",u="value",yb="preventDefault",zb="item",Ab="insertBefore",v="indexOf",Bb="capture",Cb="nodeName",Db="left",Eb="write",Fb="insertRow",Gb="screenX",Hb="screenY",Ib="match",
Jb="getBoxObjectFor",Lb="innerHeight",Mb="opera",Nb="focus",Ob="createElement",Pb="scrollHeight",Qb="keyCode",Rb="firstChild",Sb="select",Tb="forEach",Vb="clientLeft",Wb="addEventListener",Xb="referrer",Yb="setAttribute",Zb="elements",$b="clientTop",ac="handleEvent",bc="cloneNode",cc="type",dc="clear",ec="childNodes",fc="attachEvent",gc="defaultView",hc="name",ic="nextSibling",jc="contentWindow",kc="getTime",lc="getElementsByTagName",mc="clientX",nc="clientY",oc="documentElement",pc="substr",qc="visibility",
rc="setData",sc="scrollTop",tc="toString",w="length",uc="propertyIsEnumerable",vc="title",x="prototype",wc="selectedIndex",xc="className",yc="clientWidth",zc="checked",Ac="setTimeout",Bc="document",Cc="removeEventListener",y="split",Dc="offsetParent",Ec="duration",Fc="stopPropagation",Gc="userAgent",Hc="stack",A="location",Ic="save",Jc="reload",Kc="offsetLeft",Lc="hasOwnProperty",B="style",Mc="PixelRadius",Nc="close",C="body",Oc="selectionStart",Pc="removeChild",Qc="parent",Rc="target",D="call",Sc=
"pathname",Tc="options",Uc="scrollWidth",Vc="random",Wc="getAttribute",Xc="coords",Yc="responseXML",Zc="clientHeight",$c="scrollLeft",ad="compatMode",bd="bottom",cd="currentStyle",dd="href",ed="substring",fd="console",gd="rows",hd="action",id="apply",jd="tagName",kd="element",ld="startTime",E="parentNode",md="fileName",nd="display",od="offsetTop",pd="height",qd="splice",rd="offsetHeight",F="join",sd="unshift",td="nodeValue",ud="toLowerCase",vd="right",wd="event",G;var yd=this,I=function(a,b,c){a=a[y](".");c=c||yd;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a[w]&&(d=a[ib]());)if(!a[w]&&zd(b))c[d]=b;else c=c[d]?c[d]:(c[d]={})},Ad=function(a,b){for(var c=a[y]("."),d=b||yd,e;e=c[ib]();)if(d[e])d=d[e];else return h;return d},Bd=function(){},Cd=function(a){a.c=function(){return a.Ri||(a.Ri=new a)}},Dd=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof da)&&da[x][tc][D](a)=="[object Array]"||typeof a[w]=="number"&&
typeof a[qd]!="undefined"&&typeof a[uc]!="undefined"&&!a[uc]("splice"))return"array";if(!(a instanceof da)&&(da[x][tc][D](a)=="[object Function]"||typeof a[D]!="undefined"&&typeof a[uc]!="undefined"&&!a[uc]("call")))return"function"}else return"null";else if(b=="function"&&typeof a[D]=="undefined")return"object";return b},zd=function(a){return a!==ha},Ed=function(a){return Dd(a)=="array"},Fd=function(a){var b=Dd(a);return b=="array"||b=="object"&&typeof a[w]=="number"},Gd=function(a){return typeof a==
"string"},Hd=function(a){return Dd(a)=="function"},Id=function(a){a=Dd(a);return a=="object"||a=="array"||a=="function"},Ld=function(a){if(a[Lc]&&a[Lc](Jd))return a[Jd];a[Jd]||(a[Jd]=++Kd);return a[Jd]},Jd="closure_uid_"+n[ob](n[Vc]()*2147483648)[tc](36),Kd=0,Md=function(a){var b=Dd(a);if(b=="object"||b=="array"){if(a.C)return a.C[D](a);b=b=="array"?[]:{};for(var c in a)b[c]=Md(a[c]);return b}return a},J=function(a,b){var c=b||yd;if(arguments[w]>2){var d=Array[x][mb][D](arguments,2);return function(){var e=
Array[x][mb][D](arguments);Array[x][sd][id](e,d);return a[id](c,e)}}else return function(){return a[id](c,arguments)}},Nd=function(a){var b=Array[x][mb][D](arguments,1);return function(){var c=Array[x][mb][D](arguments);c[sd][id](c,b);return a[id](this,c)}},Od=Date.now||function(){return+new Date},Pd=function(a,b){function c(){}Oa(c,b[x]);a.z=b[x];Oa(a,new c)};Function[x].bind=function(a){if(arguments[w]>1){var b=Array[x][mb][D](arguments,1);b[sd](this,a);return J[id](h,b)}else return J(this,a)};var Qd,Rd,Wd=function(a,b,c,d,e,f,i,k,t,z){if(m[qb]){this.Of=z?z:"detectflash";this.xk=Sd(this.Of);this.Ua={};this.Lf={};this.attributes=[];a&&this[Yb]("swf",a);b&&this[Yb]("id",b);c&&this[Yb]("width",c);d&&this[Yb]("height",d);e&&this[Yb]("version",new Td(e[tc]()[y](".")));this.Pb=Ud();if(!l[Mb]&&m.all&&this.Pb.B>7)if(!Qd){Rd=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};l[fc]("onunload",Vd)};l[fc]("onbeforeunload",Rd);Qd=g}f&&this.Da("bgcolor",f);this.Da("quality",
i?i:"high");this[Yb]("useExpressInstall",j);this[Yb]("doExpressInstall",j);this[Yb]("xiRedirectUrl",k?k:l[A]);this[Yb]("redirectUrl","");t&&this[Yb]("redirectUrl",t)}};
Oa(Wd,{Kf:function(a){this.Nf=!a?"expressinstall.swf":a;this[Yb]("useExpressInstall",g)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]||""},Da:function(a,b){this.Ua[a]=b},I:function(a,b){this.Lf[a]=b},Ee:function(){var a=[],b,c=this.Lf;for(b in c)a[a[w]]=b+"="+c[b];return a},vi:function(){var a="";if(fa.plugins&&fa.mimeTypes&&fa.mimeTypes[w]){if(this[Wc]("doExpressInstall")){this.I("MMplayerType","PlugIn");this[Yb]("swf",this.Nf)}a='<embed type="application/x-shockwave-flash" src="'+
this[Wc]("swf")+'" width="'+this[Wc]("width")+'" height="'+this[Wc]("height")+'" style="'+(this[Wc]("style")||"")+'"';a+=' id="'+this[Wc]("id")+'" name="'+this[Wc]("id")+'" ';var b=this.Ua;for(var c in b)a+=[c]+'="'+b[c]+'" ';b=this.Ee()[F]("&");if(b[w]>0)a+='flashvars="'+b+'"';a+="/>"}else{if(this[Wc]("doExpressInstall")){this.I("MMplayerType","ActiveX");this[Yb]("swf",this.Nf)}a='<object id="'+this[Wc]("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this[Wc]("width")+'" height="'+
this[Wc]("height")+'" style="'+(this[Wc]("style")||"")+'">';a+='<param name="movie" value="'+this[Wc]("swf")+'" />';b=this.Ua;for(c in b)a+='<param name="'+c+'" value="'+b[c]+'" />';b=this.Ee()[F]("&");if(b[w]>0)a+='<param name="flashvars" value="'+b+'" />';a+="</object>"}return a},write:function(a){if(this[Wc]("useExpressInstall"))if(this.Pb.zb(new Td([6,0,65]))&&!this.Pb.zb(this[Wc]("version"))){this[Yb]("doExpressInstall",g);this.I("MMredirectURL",escape(this[Wc]("xiRedirectUrl")));Ma(m,m[vc][mb](0,
47)+" - Flash Player Installation");this.I("MMdoctitle",m[vc])}if(this.xk||this[Wc]("doExpressInstall")||this.Pb.zb(this[Wc]("version"))){o(typeof a=="string"?m[qb](a):a,this.vi());return g}else this[Wc]("redirectUrl")!=""&&m[A][s](this[Wc]("redirectUrl"));return j}});
var Ud=function(){var a=new Td([0,0,0]),b;if(fa.plugins&&fa.mimeTypes[w]){if((b=fa.plugins["Shockwave Flash"])&&b.description)a=new Td(b.description[s](/([a-zA-Z]|\s)+/,"")[s](/(\s+r|\s+b[0-9]+)/,".")[y]("."))}else if(fa[Gc]&&fa[Gc][v]("Windows CE")>=0){b=1;for(var c=3;b;)try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);a=new Td([c,0,0])}catch(d){b=h}}else{try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
a=new Td([6,0,21]);b.Sk="always"}catch(f){if(a.B==6)return a}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(i){}}if(b)a=new Td(b.GetVariable("$version")[y](" ")[1][y](","))}return a},Td=function(a){this.B=a[0]!=h?ia(a[0],10):0;this.X=a[1]!=h?ia(a[1],10):0;this.rev=a[2]!=h?ia(a[2],10):0};Td[x].zb=function(a){if(this.B<a.B)return j;if(this.B>a.B)return g;if(this.X<a.X)return j;if(this.X>a.X)return g;if(this.rev<a.rev)return j;return g};
var Sd=function(a){var b=m[A].search||m[A][db];if(a==h)return Xd(b);if(b){b=b[ed](1)[y]("&");for(var c=0;c<b[w];c++)if(b[c][ed](0,b[c][v]("="))==a)return Xd(b[c][ed](b[c][v]("=")+1))}return""},Xd=function(a){return/[\\\"<>;]/[jb](a)!=h&&typeof ca!="undefined"?ca(a):a},Vd=function(){for(var a=m[lc]("OBJECT"),b=a[w]-1;b>=0;b--){$a(a[b][B],"none");for(var c in a[b])if(typeof a[b][c]=="function")a[b][c]=function(){}}};if(!m[qb]&&m.all)m.getElementById=function(a){return m.all[a]};var Yd=Array[x],Zd=Yd[v]?function(a,b,c){return Yd[v][D](a,b,c)}:function(a,b,c){c=c==h?0:c<0?n.max(0,a[w]+c):c;if(Gd(a)){if(!Gd(b)||b[w]!=1)return-1;return a[v](b,c)}for(c=c;c<a[w];c++)if(c in a&&a[c]===b)return c;return-1},K=Yd[Tb]?function(a,b,c){Yd[Tb][D](a,b,c)}:function(a,b,c){for(var d=a[w],e=Gd(a)?a[y](""):a,f=0;f<d;f++)f in e&&b[D](c,e[f],f,a)},$d=Yd.filter?function(a,b,c){return Yd.filter[D](a,b,c)}:function(a,b,c){for(var d=a[w],e=[],f=0,i=Gd(a)?a[y](""):a,k=0;k<d;k++)if(k in i){var t=
i[k];if(b[D](c,t,k,a))e[f++]=t}return e},ae=Yd.map?function(a,b,c){return Yd.map[D](a,b,c)}:function(a,b,c){for(var d=a[w],e=new Array(d),f=Gd(a)?a[y](""):a,i=0;i<d;i++)if(i in f)e[i]=b[D](c,f[i],i,a);return e},be=function(a,b,c){a:{for(var d=a[w],e=Gd(a)?a[y](""):a,f=0;f<d;f++)if(f in e&&b[D](c,e[f],f,a)){b=f;break a}b=-1}return b<0?h:Gd(a)?a[ub](b):a[b]},ce=function(a,b){return Zd(a,b)>=0},de=function(a,b){var c=Zd(a,b),d;if(d=c>=0)Yd[qd][D](a,c,1)[w]==1;return d},ee=function(){return Yd.concat[id](Yd,
arguments)},fe=function(a){if(Ed(a))return ee(a);else{for(var b=[],c=0,d=a[w];c<d;c++)b[c]=a[c];return b}},ge=function(a){for(var b=1;b<arguments[w];b++){var c=arguments[b],d;if(Ed(c)||(d=Fd(c))&&c[Lc]("callee"))a[r][id](a,c);else if(d)for(var e=a[w],f=c[w],i=0;i<f;i++)a[e+i]=c[i];else a[r](c)}},ie=function(a){return Yd[qd][id](a,he(arguments,1))},he=function(a,b,c){return arguments[w]<=2?Yd[mb][D](a,b):Yd[mb][D](a,b,c)};var je;var ke=function(a){return(a=a[xc])&&typeof a[y]=="function"?a[y](/\s+/):[]},L=function(a){var b=ke(a),c=he(arguments,1);c=le(b,c);Pa(a,b[F](" "));return c},M=function(a){var b=ke(a),c=he(arguments,1);c=me(b,c);Pa(a,b[F](" "));return c},le=function(a,b){for(var c=0,d=0;d<b[w];d++)if(!ce(a,b[d])){a[r](b[d]);c++}return c==b[w]},me=function(a,b){for(var c=0,d=0;d<a[w];d++)if(ce(b,a[d])){ie(a,d--,1);c++}return c==b[w]},ne=function(a,b,c){var d=ke(a);if(Gd(b))de(d,b);else Ed(b)&&me(d,b);if(Gd(c)&&!ce(d,
c))d[r](c);else Ed(c)&&le(d,c);Pa(a,d[F](" "))},N=function(a,b){return ce(ke(a),b)},oe=function(a,b,c){c?L(a,b):M(a,b)},pe=function(a,b){var c=!N(a,b);oe(a,b,c);return c};var qe=function(a,b){this.x=zd(a)?a:0;this.y=zd(b)?b:0};qe[x].C=function(){return new qe(this.x,this.y)};Ja(qe[x],function(){return"("+this.x+", "+this.y+")"});var re=function(a,b){return new qe(a.x-b.x,a.y-b.y)};var se=function(a,b){qa(this,a);ab(this,b)};se[x].C=function(){return new se(this[kb],this[pd])};Ja(se[x],function(){return"("+this[kb]+" x "+this[pd]+")"});se[x].floor=function(){qa(this,n[ob](this[kb]));ab(this,n[ob](this[pd]));return this};se[x].round=function(){qa(this,n[lb](this[kb]));ab(this,n[lb](this[pd]));return this};var te=function(a,b,c){for(var d in a)b[D](c,a[d],d,a)},ue=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},ve=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b},we=function(a,b,c){for(var d in a)if(b[D](c,a[d],d,a))return d},xe=function(a){for(var b in a)return j;return g},ye=function(a,b,c){if(b in a)return a[b];return c},ze=function(a){var b={};for(var c in a)b[c]=a[c];return b},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString",
"valueOf"],Be=function(a){for(var b,c,d=1;d<arguments[w];d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<Ae[w];e++){b=Ae[e];if(da[x][Lc][D](c,b))a[b]=c[b]}}};var Ce=function(a){for(var b=1;b<arguments[w];b++){var c=ka(arguments[b])[s](/\$/g,"$$$$");a=a[s](/\%s/,c)}return a},De=function(a){return a[s](/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ee=/^[a-zA-Z0-9\-_.!~*'()]*$/,Fe=function(a){a=ka(a);if(!Ee[hb](a))return ca(a);return a},Ge=function(a){return ma(a[s](/\+/g," "))},Me=function(a,b){if(b)return a[s](He,"&amp;")[s](Ie,"&lt;")[s](Je,"&gt;")[s](Ke,"&quot;");else{if(!Le[hb](a))return a;if(a[v]("&")!=-1)a=a[s](He,"&amp;");if(a[v]("<")!=-1)a=a[s](Ie,"&lt;");if(a[v](">")!=
-1)a=a[s](Je,"&gt;");if(a[v]('"')!=-1)a=a[s](Ke,"&quot;");return a}},He=/&/g,Ie=/</g,Je=/>/g,Ke=/\"/g,Le=/[&<>\"]/,Oe=function(a){if(a[v]("&")!=-1){if("document"in yd&&a[v]("<")==-1){a=a;var b=yd[Bc][Ob]("a");o(b,a);b.normalize&&b.normalize();a=b[Rb][td];o(b,"");a=a}else a=Ne(a);return a}return a},Ne=function(a){return a[s](/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c[ub](0)=="#"){var d=Number("0"+c[pc](1));if(!na(d))return ka.fromCharCode(d)}return b}})},
Qe=function(a,b){for(var c=0,d=De(ka(a))[y]("."),e=De(ka(b))[y]("."),f=n.max(d[w],e[w]),i=0;c==0&&i<f;i++){var k=d[i]||"",t=e[i]||"",z=new RegExp("(\\d*)(\\D*)","g"),R=new RegExp("(\\d*)(\\D*)","g");do{var H=z[jb](k)||["","",""],S=R[jb](t)||["","",""];if(H[0][w]==0&&S[0][w]==0)break;c=Pe(H[1][w]==0?0:ia(H[1],10),S[1][w]==0?0:ia(S[1],10))||Pe(H[2][w]==0,S[2][w]==0)||Pe(H[2],S[2])}while(c==0)}return c},Pe=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var Re,Se,Te,Ue,Ve,We,Xe=function(){return yd.navigator?yd.navigator[Gc]:h},Ye=function(){return yd.navigator};Ve=Ue=Te=Se=Re=j;var Ze;if(Ze=Xe()){var $e=Ye();Re=Ze[v]("Opera")==0;Se=!Re&&Ze[v]("MSIE")!=-1;Ue=(Te=!Re&&Ze[v]("WebKit")!=-1)&&Ze[v]("Mobile")!=-1;Ve=!Re&&!Te&&$e.product=="Gecko"}var af=Re,bf=Se,cf=Ve,df=Te,ef=Ue,ff=Ye();We=(ff&&ff.platform||"")[v]("Mac")!=-1;var gf=!!Ye()&&(Ye().appVersion||"")[v]("X11")!=-1,hf="",jf;
if(af&&yd[Mb]){var kf=yd[Mb].version;hf=typeof kf=="function"?kf():kf}else{if(cf)jf=/rv\:([^\);]+)(\)|;)/;else if(bf)jf=/MSIE\s+([^\);]+)(\)|;)/;else if(df)jf=/WebKit\/(\S+)/;if(jf){var lf=jf[jb](Xe());hf=lf?lf[1]:""}}var mf=hf,nf={},of=function(a){return nf[a]||(nf[a]=Qe(mf,a)>=0)};var rf=function(a){return a?new pf(qf(a)):je||(je=new pf)},O=function(a){return Gd(a)?m[qb](a):a},P=function(a,b,c){return sf(m,a,b,c)},sf=function(a,b,c,d){d=d||a;b=b&&b!="*"?b.toUpperCase():"";if(d.querySelectorAll&&(b||c)&&(!df||tf(a)||of("528")))return d.querySelectorAll(b+(c?"."+c:""));if(c&&d.getElementsByClassName){a=d.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,i;i=a[f];f++)if(b==i[Cb])d[e++]=i;La(d,e);return d}else return a}a=d[lc](b||"*");if(c){d={};for(f=e=0;i=a[f];f++){b=i[xc];
if(typeof b[y]=="function"&&ce(b[y](/\s+/),c))d[e++]=i}La(d,e);return d}else return a},vf=function(a,b){te(b,function(c,d){if(d=="style")a[B].cssText=c;else if(d=="class")Pa(a,c);else if(d=="for")a.htmlFor=c;else if(d in uf)a[Yb](uf[d],c);else a[d]=c})},uf={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"},wf=function(a){var b=a[Bc];if(df&&!of("500")&&!ef){if(typeof a[Lb]==
"undefined")a=l;b=a[Lb];var c=a[Bc][oc][Pb];if(a==a.top)if(c<b)b-=15;return new se(a.innerWidth,b)}a=tf(b)&&(!af||af&&of("9.50"))?b[oc]:b[C];return new se(a[yc],a[Zc])},xf=function(a){var b=a[Bc],c=0;if(b){a=wf(a)[pd];c=b[C];var d=b[oc];if(tf(b)&&d[Pb])c=d[Pb]!=a?d[Pb]:d[rd];else{b=d[Pb];var e=d[rd];if(d[Zc]!=e){b=c[Pb];e=c[rd]}c=b>a?b>e?b:e:b<e?b:e}}return c},yf=function(a){a=!df&&tf(a)?a[oc]:a[C];return new qe(a[$c],a[sc])},Af=function(){return zf(m,arguments)},zf=function(a,b){var c=b[0],d=b[1];
if(bf&&d&&(d[hc]||d[cc])){c=["<",c];d[hc]&&c[r](' name="',Me(d[hc]),'"');if(d[cc]){c[r](' type="',Me(d[cc]),'"');d=Md(d);delete d[cc]}c[r](">");c=c[F]("")}var e=a[Ob](c);if(d)if(Gd(d))Pa(e,d);else vf(e,d);if(b[w]>2){d=function(i){if(i)e[q](Gd(i)?a[wb](i):i)};for(c=2;c<b[w];c++){var f=b[c];Fd(f)&&!(Id(f)&&f[nb]>0)?K(Bf(f)?fe(f):f,d):d(f)}}return e},Cf=function(a){return m[Ob](a)},tf=function(a){return a[ad]=="CSS1Compat"},Df=function(a){for(var b;b=a[Rb];)a[Pc](b)},Ef=function(a){return a&&a[E]?a[E][Pc](a):
h},Gf=function(a){return Ff(a[Rb],g)},Hf=function(a){return Ff(a[ic],g)},Ff=function(a,b){for(;a&&a[nb]!=1;)a=b?a[ic]:a.previousSibling;return a},qf=function(a){return a[nb]==9?a:a.ownerDocument||a[Bc]},If=function(a,b){if("textContent"in a)a.textContent=b;else if(a[Rb]&&a[Rb][nb]==3){for(;a.lastChild!=a[Rb];)a[Pc](a.lastChild);a[Rb].data=b}else{Df(a);a[q](qf(a)[wb](b))}},Jf={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Kf={IMG:" ",BR:"\n"},Mf=function(a){if(bf&&"innerText"in a)a=a.innerText[s](/(\r\n|\r|\n)/g,
"\n");else{var b=[];Lf(a,b,g);a=b[F]("")}a=a[s](/\xAD/g,"");a=a[s](/ +/g," ");if(a!=" ")a=a[s](/^\s*/,"");return a},Lf=function(a,b,c){if(!(a[Cb]in Jf))if(a[nb]==3)c?b[r](ka(a[td])[s](/(\r\n|\r|\n)/g,"")):b[r](a[td]);else if(a[Cb]in Kf)b[r](Kf[a[Cb]]);else for(a=a[Rb];a;){Lf(a,b,c);a=a[ic]}},Bf=function(a){if(a&&typeof a[w]=="number")if(Id(a))return typeof a[zb]=="function"||typeof a[zb]=="string";else if(Hd(a))return typeof a[zb]=="function";return j},Of=function(a,b,c){var d=b?b.toUpperCase():h;
return Nf(a,function(e){return(!d||e[Cb]==d)&&(!c||N(e,c))},g)},Nf=function(a,b,c,d){if(!c)a=a[E];c=d==h;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a[E];e++}return h},pf=function(a){this.o=a||yd[Bc]||m};G=pf[x];G.aa=rf;G.ma=function(a){return Gd(a)?this.o[qb](a):a};G.a=pf[x].ma;G.mi=function(a,b,c){return sf(this.o,a,b,c)};G.ea=pf[x].mi;G.Bi=function(a){return wf(a||this.Pc()||l)};G.Hb=function(){return zf(this.o,arguments)};G.createElement=function(a){return this.o[Ob](a)};G.createTextNode=function(a){return this.o[wb](a)};
G.Qb=function(){return tf(this.o)};G.Pc=function(){return this.o.parentWindow||this.o[gc]};G.li=function(){return!df&&tf(this.o)?this.o[oc]:this.o[C]};G.Nb=function(){return yf(this.o)};G.appendChild=function(a,b){a[q](b)};var Pf="StopIteration"in yd?yd.StopIteration:Error("StopIteration"),Qf=function(){};Qf[x].next=function(){aa(Pf)};Qf[x].dh=function(){return this};var Rf=function(a){if(typeof a.Ba=="function")return a.Ba();if(Gd(a))return a[y]("");if(Fd(a)){for(var b=[],c=a[w],d=0;d<c;d++)b[r](a[d]);return b}return ue(a)},Sf=function(a,b,c){if(typeof a[Tb]=="function")a[Tb](b,c);else if(Fd(a)||Gd(a))K(a,b,c);else{var d;if(typeof a.Ja=="function")d=a.Ja();else if(typeof a.Ba!="function")if(Fd(a)||Gd(a)){d=[];for(var e=a[w],f=0;f<e;f++)d[r](f);d=d}else d=ve(a);else d=void 0;e=Rf(a);f=e[w];for(var i=0;i<f;i++)b[D](c,e[i],d&&d[i],a)}};var Tf=function(a){this.O={};this.f=[];var b=arguments[w];if(b>1){if(b%2)aa(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.l(arguments[c],arguments[c+1])}else a&&this.jh(a)};G=Tf[x];G.h=0;G.Ab=0;G.Ba=function(){this.Gb();for(var a=[],b=0;b<this.f[w];b++)a[r](this.O[this.f[b]]);return a};G.Ja=function(){this.Gb();return this.f.concat()};G.ha=function(a){return Uf(this.O,a)};Aa(G,function(){this.O={};La(this.f,0);this.Ab=this.h=0});
xa(G,function(a){if(Uf(this.O,a)){delete this.O[a];this.h--;this.Ab++;this.f[w]>2*this.h&&this.Gb();return g}return j});G.Gb=function(){if(this.h!=this.f[w]){for(var a=0,b=0;a<this.f[w];){var c=this.f[a];if(Uf(this.O,c))this.f[b++]=c;a++}La(this.f,b)}if(this.h!=this.f[w]){var d={};for(b=a=0;a<this.f[w];){c=this.f[a];if(!Uf(d,c)){this.f[b++]=c;d[c]=1}a++}La(this.f,b)}};G.A=function(a,b){if(Uf(this.O,a))return this.O[a];return b};
G.l=function(a,b){if(!Uf(this.O,a)){this.h++;this.f[r](a);this.Ab++}this.O[a]=b};G.jh=function(a){var b;if(a instanceof Tf){b=a.Ja();a=a.Ba()}else{b=ve(a);a=ue(a)}for(var c=0;c<b[w];c++)this.l(b[c],a[c])};G.C=function(){return new Tf(this)};G.dh=function(a){this.Gb();var b=0,c=this.f,d=this.O,e=this.Ab,f=this,i=new Qf;i.next=function(){for(;;){if(e!=f.Ab)aa(Error("The map has changed since the iterator was created"));if(b>=c[w])aa(Pf);var k=c[b++];return a?k:d[k]}};return i};
var Uf=function(a,b){return da[x][Lc][D](a,b)};var Xf=function(a){for(var b=[],c=Vf,d=a[Zb],e,f=0;e=d[f];f++)if(!(e.disabled||e[jd][ud]()=="fieldset")){var i=e[hc];switch(e[cc][ud]()){case "file":case "submit":case "reset":case "button":break;case "select-multiple":e=Wf(e);if(e!=h)for(var k,t=0;k=e[t];t++)c(b,i,k);break;default:k=Wf(e);k!=h&&c(b,i,k)}}d=a[lc]("input");for(f=0;e=d[f];f++)if(e.form==a&&e[cc][ud]()=="image"){i=e[hc];c(b,i,e[u]);c(b,i+".x","0");c(b,i+".y","0")}return b[F]("&")},Vf=function(a,b,c){a[r](ca(b)+"="+ca(c))},Wf=function(a){var b=
a[cc];if(!zd(b))return h;switch(b[ud]()){case "checkbox":case "radio":return a[zc]?a[u]:h;case "select-one":b=a[wc];return b>=0?a[Tc][b][u]:h;case "select-multiple":b=[];for(var c,d=0;c=a[Tc][d];d++)c.selected&&b[r](c[u]);return b[w]?b:h;default:return zd(a[u])?a[u]:h}};var Yf=/<[^>]*>|&[^;]+;/g,Zf=new RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]"),$f=function(a,b){return Zf[hb](b?a[s](Yf," "):a)};var ag=l.yt&&l.yt.config_||{};I("yt.config_",ag,void 0);var bg=l.yt&&l.yt.globals_||{};I("yt.globals_",bg,void 0);var cg=l.yt&&l.yt.msgs_||{};I("yt.msgs_",cg,void 0);var dg=l.yt&&l.yt.timeouts_||[];I("yt.timeouts_",dg,void 0);var eg=l.yt&&l.yt.intervals_||[];I("yt.intervals_",eg,void 0);
var gg=function(){fg(ag,arguments)},Q=function(a,b){return a in ag?ag[a]:b},hg=function(){for(var a=0,b=arguments[w];a<b;++a)bg[arguments[a]]=1},ig=function(a,b){var c=l[Ac](a,b);dg[r](c);return c},jg=function(a,b){var c=l.setInterval(a,b);eg[r](c);return c},kg=function(a){l.clearTimeout(a)},lg=function(a){l.clearInterval(a)},T=function(a,b,c){b=b||{};if(a=a in cg?cg[a]:c)for(var d in b)a=a[s](new RegExp("\\$"+d,"gi"),b[d]);return a},fg=function(a,b){if(b[w]>1){var c=b[0];a[c]=b[1]}else{var d=b[0];
for(c in d)a[c]=d[c]}},mg=!!eval("/*@cc_on!@*/false");/*
 Portions of this code are from the MooTools project, received by
 YouTube under the MIT License. All other code is Copyright 2009 YouTube LLC.
 All Rights Reserved.

 Prototype JavaScript framework, version 1.4
 (c) 2005 Sam Stephenson <sam@conio.net>
 Prototype is freely distributable under the terms of an MIT-style license.
 For details, see the Prototype web site: http://prototype.conio.net/

 (c) 2006 Valerio Proietti (http://mad4milk.net). MIT-style license.

 Author: Robert Penner, <http://www.robertpenner.com/easing/>, modified to be used with mootools.
 License: Easing Equations v1.5, (c) 2003 Robert Penner, all rights reserved. Open Source BSD License.

*/
var ng=function(){return function(){this.kb[id](this,arguments)}},og=function(a,b){for(var c in b)a[c]=b[c];return a},pg=function(a,b){return function(){return a[id](b,arguments)}},qg=function(){};
Oa(qg,{uf:function(a){this.options=og({onStart:function(){},onComplete:function(){},transition:function(b,c,d,e){return d*(b/=e)*b+c},transitionOut:function(b,c,d,e){return-d*(b/=e)*(b-2)+c},duration:333,unit:"px",wait:g,dontUseVisibility:j,fps:50},a||{})},Ak:function(){var a=(new Date)[kc]();if(a<this.Ef+this[Tc][Ec]){this.be=a-this.Ef;this.ik()}else{ig(pg(this[Tc].onComplete,this,this[kd]),10);this.yc();this.now=this.Gf}this.Uc()},ik:function(){this.now=this.Lh(this.hi,this.Gf)},Lh:function(a,b){var c=
b-a;return c<0?this[Tc].transition(this.be,a,c,this[Tc][Ec]):this[Tc].transitionOut(this.be,a,c,this[Tc][Ec])},yc:function(){lg(this.Ld);this.Ld=h;return this},ih:function(a,b){this[Tc].wait||this.yc();if(!this.Ld){ig(pg(this[Tc].onStart,this,this[kd]),10);this.hi=a;this.Gf=b;this.Ef=(new Date)[kc]();this.Ld=jg(pg(this.Ak,this),n[lb](1E3/this[Tc].fps));return this}},Ib:function(a,b){return this.ih(a,b)},l:function(a){this.now=a;this.Uc();return this},show:function(){return this.l(1)},jb:function(){return this.l(0)},
vf:function(a,b,c){if(b=="opacity"){if(!this[Tc].dontUseVisibility)if(c==0)Ga(a[B],"hidden");else if(a[B][qc]!="visible")Ga(a[B],"visible");if(l.ActiveXObject)a[B].filter="alpha(opacity="+c*100+")";a[B].opacity=c}else a[B][b]=c+this[Tc].unit}});var rg=ng();Oa(rg,og(new qg,{kb:function(a,b,c){this.element=O(a);this.uf(c);this.Ph=b},Uc:function(){this.vf(this[kd],this.Ph,this.now)}}));var sg=ng();
Oa(sg,og(new qg,{kb:function(a,b){this.element=O(a);this.uf(b);this.now=1},Hk:function(){return this.now>0?this.Ib(1,0):this.Ib(0,1)},jb:function(){return this.l(0)},Uc:function(){this.vf(this[kd],"opacity",this.now)}}));var tg={},ug=function(a,b,c,d){if(Q("EVENTS_TRACKER_INSTALLED")){var e=tg[a];if(!e){var f=l._gaq._getAsyncTracker("eventsPageTracker");if(!f)return;l._gaq[r](function(){e=f._createEventTracker(a);tg[a]=e})}var i=c||ha,k=d||ha;l._gaq[r](function(){e._trackEvent(b,i,k)})}};var vg=function(a,b,c){a=P(a,b,c);return a[w]?a[0]:h};var wg=function(a,b,c){if(a[tb])a[tb][b]=c;else a[Yb]("data-"+b,c)},xg=function(a,b){return a[tb]?a[tb][b]:a[Wc]("data-"+b)};var yg=function(a){if(a=a||Ad("window.event")){za(this,a[cc]);var b=a[Rc]||a.srcElement;if(b&&b[nb]==3)b=b[E];Ua(this,b);if(b=a.relatedTarget)try{b=b[Cb]&&b}catch(c){b=h}else if(this[cc]=="mouseover")b=a.fromElement;else if(this[cc]=="mouseout")b=a.toElement;pa(this,b);Ea(this,a[mc]!==ha?a[mc]:a.pageX);Fa(this,a[nc]!==ha?a[nc]:a.pageY);ya(this,a[Qb]||0);wa(this,a.charCode||(this[cc]=="keypress"?this[Qb]:0));this.D=a}};G=yg[x];za(G,"");Ua(G,h);pa(G,h);ya(G,0);wa(G,0);G.D=h;Ea(G,0);Fa(G,0);
sa(G,function(){Wa(this.D,j);this.D[yb]&&this.D[yb]()});Ra(G,function(){Da(this.D,j);this.D[Fc]&&this.D[Fc]()});var zg={},Ag=0,Bg=function(a,b,c){return we(zg,function(d){return d[0]==a&&d[1]==b&&d[2]==c})},U=function(a,b,c){if(!a||!(a[Wb]||a[fc]))return"";var d=Bg(a,b,c);if(d)return d;d=++Ag+"";var e=function(f){return c[D](a,new yg(f))};zg[d]=[a,b,c,e];a[Wb]?a[Wb](b,e,j):a[fc]("on"+b,e);return d},Dg=function(a,b,c,d){return Cg(a,b,c,function(e){return N(e,d)})},Cg=function(a,b,c,d){var e=a||m;return U(e,b,function(f){var i=Nf(f[Rc],function(k){return k===e||d(k)},g);i&&i!==e&&c[D](i,f)})},Fg=function(a,b,
c){(a=Bg(a,b,c))&&Eg(a)},Eg=function(a){if(a in zg){var b=zg[a],c=b[0],d=b[1];b=b[3];c[Cc]?c[Cc](d,b,j):c.detachEvent("on"+d,b);delete zg[a]}},Gg=function(){for(var a in zg)Eg(a)},Hg=function(a){a=a||l[wd];a=a[Rc]||a.srcElement;if(a[nb]==3)a=a[E];return a},Ig=function(a){a=a||l[wd];Da(a,g);a[Fc]&&a[Fc]()},Jg=function(a){a=a||l[wd];Wa(a,j);a[yb]&&a[yb]();return j};var Ng=function(a){this.vc={};this.wc={};this.Ua={};a=a||{};this.url=a.url||this.url;this.nc=a.url_v8||this.nc;this.oc=a.url_v9as2||this.oc;this.gd=a.min_version||this.gd;this.vc=a.args||ze(Kg);this.wc=a.attrs||ze(Lg);this.Ua=a.params||ze(Mg)},Kg={enablejsapi:1},Lg={width:"640",height:"385"},Mg={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};Ng[x].url="";Ng[x].nc="";Ng[x].oc="";Ng[x].gd="8.0.0";var Og=function(){this.pc=[];this.Pe()};Cd(Og);G=Og[x];G.B=0;G.X=0;G.rev=0;G.pd="";G.fi="";G.w=0;G.load=function(a){this.w>=3?a(this):this.pc[r](a)};G.xf=function(a){this.B=a[0];this.X=a[1];this.rev=a[2]};G.isSupported=function(a,b,c){a=typeof a=="string"?a[y]("."):[a,b,c];a[0]=ia(a[0],10)||0;a[1]=ia(a[1],10)||0;a[2]=ia(a[2],10)||0;return this.B>a[0]||this.B==a[0]&&this.X>a[1]||this.B==a[0]&&this.X==a[1]&&this.rev>=a[2]};G.Bk=function(){return mg&&this.isSupported(6,0,65)};
G.Bh=function(){if(this.pd[v]("Gnash")>-1&&this.pd[v]("AVM2")==-1)return j;if(this.B==9&&this.X==1)return j;if(this.B==9&&this.X==0&&this.rev==1)return j;return this.B>=9};G.Ch=function(){if(fa[Gc][v]("Sony/COM2")>-1&&!this.isSupported(9,1,58))return j;return g};G.Pe=function(){if(this.w<3)if(this.w<1)this.ei();else this.w<2?this.di():this.Ie()};G.Jf=function(a){this.w=a;this.B>0?this.Ie():this.Pe()};
G.Ei=function(a){var b;if(b=a){var c=b[v]("Shockwave Flash");if(c>=0)b=b[pc](c+15);c=b[y](" ");var d="";b="";for(var e=0,f=c[w];e<f;e++)if(d)if(b)break;else b=c[e];else d=c[e];d=d[y](".");c=ia(d[0],10)||0;d=ia(d[1],10)||0;e=0;if(b[ub](0)=="r"||b[ub](0)=="d")e=ia(b[pc](1),10)||0;b=[c,d,e]}else b=[0,0,0];this.pd=a;this.xf(b);this.Jf(1)};G.He=function(a){var b;if(a){b=a[y](" ")[1][y](",");b=[ia(b[0],10)||0,ia(b[1],10)||0,ia(b[2],10)||0]}else b=[0,0,0];this.fi=a;this.xf(b);this.Jf(2)};
G.Ie=function(){if(this.w<3){this.w=3;for(var a=0,b=this.pc[w];a<b;a++)this.pc[a](this);this.pc=[]}};G.ei=function(){var a=Ad("window.navigator.plugins"),b=Ad("window.navigator.mimeTypes");a=a&&a["Shockwave Flash"];b=b&&b["application/x-shockwave-flash"];this.Ei(a&&b&&b.enabledPlugin&&a.description||"")};
G.di=function(){var a,b,c,d;if(mg){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){a=h}a||this.He("")}else{c=m[lc]("body")[0];d=m[Ob]("object");d[Yb]("type","application/x-shockwave-flash");a=c[q](d)}var f=J(this.He,this),i=0,k=function(){if(a&&"GetVariable"in a)try{b=a.GetVariable("$version")}catch(t){b=""}if(b||i>=10){c&&d&&c[Pc](d);f(b||"")}else{i++;ig(k,10)}};ig(k,0)};var Pg=function(a){this.stack=(new Error)[Hc]||"";if(a)this.message=ka(a)};Pd(Pg,Error);Ca(Pg[x],"CustomError");var Qg=function(a,b){b[sd](a);Pg[D](this,Ce[id](h,b));b[ib]();this.bl=a};Pd(Qg,Pg);Ca(Qg[x],"AssertionError");var Rg=function(a){aa(new Qg("Failure"+(a?": "+a:""),Array[x][mb][D](arguments,1)))};var Sg=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Tg=function(a,b){for(var c in b){var d=c,e=b[c];if(Ed(e)){e=e;for(var f=0;f<e[w];f++){a[r]("&",d);e[f]!==""&&a[r]("=",Fe(e[f]))}}else if(e!=h){a[r]("&",d);e!==""&&a[r]("=",Fe(e))}}return a};var Ug=function(a){if(a[ub](0)=="?")a=a[pc](1);a=a[y]("&");for(var b={},c=0,d=a[w];c<d;c++){var e=a[c][y]("=");if(e[w]==2){var f=e[0];e=Ge(e[1]);if(f in b)if(Ed(b[f]))ge(b[f],e);else b[f]=[b[f],e];else b[f]=e}}return b},Vg=function(a){if(a[ub](0)=="#")a=a[ub](1)=="!"?a[pc](2):a[pc](1);return Ug(a)},Wg=function(a){a=Tg([],a);a[0]="";return a[F]("")},Xg=function(a,b){var c=Tg([a],b);if(c[1]){var d=c[0],e=d[v]("#");if(e>=0){c[r](d[pc](e));c[0]=d=d[pc](0,e)}e=d[v]("?");if(e<0)c[1]="?";else if(e==d[w]-
1)c[1]=ha}return c[F]("")},Yg=function(a){a=a[y]("/",3);if(a[w]>=3&&a[0]=="http:"&&a[1]==""){var b=a[2][y](".").reverse();if(b[w]<2)return j;var c=b[0];b=b[1];if(b=="youtube"&&c=="com")return g;if(b=="google")return g;if(a[2]=="google"&&(b=="co"&&c=="uk"||b=="com"&&c=="au"))return g}return j};var Zg=function(a,b,c){var d=Ud();if(d.B==9)if(fa[Gc][v]("Sony/COM2")>-1)d.zb(new Td([9,1,58]))||(d=new Td([8,0,0]));return d.zb(new Td([a,b,c]))},$g=function(a,b,c){if((a=O(a))&&b&&c){c instanceof Ng||(c=new Ng(c));var d=ze(c.wc),e=ze(c.Ua);e.flashvars=Wg(c.vc);c=[];if(mg){d.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";e.movie=b;c[r]("<object ");for(var f in d)c[r](f,'="',d[f],'"');c[r](">");for(f in e)c[r]('<param name="',f,'" value="',e[f],'">');c[r]("</object>")}else{za(d,"application/x-shockwave-flash");
d.src=b;c[r]("<embed ");for(f in d)c[r](f,'="',d[f],'"');for(f in e)c[r](f,'="',e[f],'"');c[r](" />")}o(a,c[F](""))}},ah=function(a,b){if(a){a instanceof Ng||(a=new Ng(a));var c=!!b,d=O(a.wc.id),e=d?d[E]:h;if(!d||!e)ig(function(){ah(a)},50);else{if(l!=l.top){var f=h;if(m[Xb]){var i=m[Xb][ed](0,128);Yg(i)||(f=i)}else f="unknown";if(f){c=g;a.vc.framer=f}}Og.c().load(function(k){if(k.isSupported(a.gd)){var t="";fa[Gc][v]("Sony/COM2")>-1||(t=d.src||d.movie);if(k.Bh()){if(t!=a.url||c)$g(e,a.url,a)}else if(k.Ch()){if(t!=
a.oc||c)$g(e,a.oc,a)}else if(t!=a.nc||c)$g(e,a.nc,a)}else if(k.Bk()){k=new Ng({url:"http://s.ytimg.com/yt/swf/expressInstall-vfl70493.swf",args:{MMredirectURL:l[A],MMplayerType:"ActiveX",MMdoctitle:m[vc]}});$g(e,k.url,k)}else o(e,'<div id="flash-upgrade">'+T("FLASH_UPGRADE")+"</div>")})}}};var bh=/\s*;\s*/,ch=function(a,b,c,d,e){if(/[;=]/[hb](a))aa(Error('Invalid cookie name "'+a+'"'));if(/;/[hb](b))aa(Error('Invalid cookie value "'+b+'"'));zd(c)||(c=-1);m.cookie=a+"="+b+(e?";domain="+e:"")+(d?";path="+d:"")+(c<0?"":c==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date((new Date)[kc]()+c*1E3)).toUTCString())},dh=function(a,b){for(var c=a+"=",d=ka(m.cookie)[y](bh),e=0,f;f=d[e];e++)if(f[v](c)==0)return f[pc](c[w]);return b};var eh=function(a,b,c){a=""+a;ch(a,b,c,"/","youtube.com")},fh=function(a,b){a=""+a;return dh(a,b)},gh=function(a){a=""+a;var b=zd(dh(a));ch(a,"",0,"/","youtube.com");return b};var hh=function(a,b,c,d){this.top=a;bb(this,b);this.bottom=c;va(this,d)};hh[x].C=function(){return new hh(this.top,this[vd],this[bd],this[Db])};Ja(hh[x],function(){return"("+this.top+"t, "+this[vd]+"r, "+this[bd]+"b, "+this[Db]+"l)"});hh[x].expand=function(a,b,c,d){if(Id(a)){this.top-=a.top;this.right+=a[vd];this.bottom+=a[bd];this.left-=a[Db]}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};var ih=function(a,b,c,d){va(this,a);this.top=b;qa(this,c);ab(this,d)};ih[x].C=function(){return new ih(this[Db],this.top,this[kb],this[pd])};Ja(ih[x],function(){return"("+this[Db]+", "+this.top+" - "+this[kb]+"w x "+this[pd]+"h)"});ih[x].Si=function(a){var b=n.max(this[Db],a[Db]),c=n.min(this[Db]+this[kb],a[Db]+a[kb]);if(b<=c){var d=n.max(this.top,a.top);a=n.min(this.top+this[pd],a.top+a[pd]);if(d<=a){va(this,b);this.top=d;qa(this,c-b);ab(this,a-d);return g}}return j};var kh=function(a,b,c){Gd(b)?jh(a,c,b):te(b,Nd(jh,a))},jh=function(a,b,c){a[B][lh(c)]=b},mh=function(a,b){var c=qf(a);if(c[gc]&&c[gc].getComputedStyle)if(c=c[gc].getComputedStyle(a,""))return c[b];return h},nh=function(a,b){return a[cd]?a[cd][b]:h},oh=function(a,b){return mh(a,b)||nh(a,b)||a[B][b]},ph=function(a){a=a?a[nb]==9?a:qf(a):m;if(bf&&!rf(a).Qb())return a[C];return a[oc]},qh=function(a){var b=a[eb]();if(bf){a=a.ownerDocument;b.left-=a[oc][Vb]+a[C][Vb];b.top-=a[oc][$b]+a[C][$b]}return b},rh=
function(a){if(bf)return a[Dc];var b=qf(a),c=oh(a,"position"),d=c=="fixed"||c=="absolute";for(a=a[E];a&&a!=b;a=a[E]){c=oh(a,"position");d=d&&c=="static"&&a!=b[oc]&&a!=b[C];if(!d&&(a[Uc]>a[yc]||a[Pb]>a[Zc]||c=="fixed"||c=="absolute"))return a}return h},uh=function(a){var b=new hh(0,Infinity,Infinity,0),c=rf(a),d=c.o[C],e=c.li(),f;for(a=a;a=rh(a);)if((!bf||a[yc]!=0)&&(!df||a[Zc]!=0||a!=d)&&(a[Uc]!=a[yc]||a[Pb]!=a[Zc])&&oh(a,"overflow")!="visible"){var i=sh(a),k;k=a;if(cf&&!of("1.9")){var t=ja(mh(k,
"borderLeftWidth"));if(th(k)){var z=k[sb]-k[yc]-t-ja(mh(k,"borderRightWidth"));t+=z}k=new qe(t,ja(mh(k,"borderTopWidth")))}else k=new qe(k[Vb],k[$b]);i.x+=k.x;i.y+=k.y;b.top=n.max(b.top,i.y);bb(b,n.min(b[vd],i.x+a[yc]));b.bottom=n.min(b[bd],i.y+a[Zc]);va(b,n.max(b[Db],i.x));f=f||a!=e}d=e[$c];e=e[sc];if(df){b.left+=d;b.top+=e}else{va(b,n.max(b[Db],d));b.top=n.max(b.top,e)}if(!f||df){b.right+=d;b.bottom+=e}c=c.Bi();bb(b,n.min(b[vd],d+c[kb]));b.bottom=n.min(b[bd],e+c[pd]);return b.top>=0&&b[Db]>=0&&
b[bd]>b.top&&b[vd]>b[Db]?b:h},sh=function(a){var b,c=qf(a),d=oh(a,"position"),e=cf&&c[Jb]&&!a[eb]&&d=="absolute"&&(b=c[Jb](a))&&(b[Gb]<0||b[Hb]<0),f=new qe(0,0),i=ph(c);if(a==i)return f;if(a[eb]){b=qh(a);a=rf(c).Nb();f.x=b[Db]+a.x;f.y=b.top+a.y}else if(c[Jb]&&!e){b=c[Jb](a);a=c[Jb](i);f.x=b[Gb]-a[Gb];f.y=b[Hb]-a[Hb]}else{b=a;do{f.x+=b[Kc];f.y+=b[od];if(b!=a){f.x+=b[Vb]||0;f.y+=b[$b]||0}if(df&&oh(b,"position")=="fixed"){f.x+=c[C][$c];f.y+=c[C][sc];break}b=b[Dc]}while(b&&b!=a);if(af||df&&d=="absolute")f.y-=
c[C][od];for(b=a;(b=rh(b))&&b!=c[C]&&b!=i;){f.x-=b[$c];if(!af||b[jd]!="TR")f.y-=b[sc]}}return f},vh=function(a,b,c){if(b instanceof se){c=b[pd];b=b[kb]}else{if(c==ha)aa(Error("missing height argument"));c=c}qa(a[B],typeof b=="number"?n[lb](b)+"px":b);ab(a[B],typeof c=="number"?n[lb](c)+"px":c)},wh=function(a){var b=af&&!of("10");if(oh(a,"display")!="none")return b?new se(a[sb]||a[yc],a[rd]||a[Zc]):new se(a[sb],a[rd]);var c=a[B],d=c[nd],e=c[qc],f=c.position;Ga(c,"hidden");Na(c,"absolute");$a(c,"inline");
if(b){b=a[sb]||a[yc];a=a[rd]||a[Zc]}else{b=a[sb];a=a[rd]}$a(c,d);Na(c,f);Ga(c,e);return new se(b,a)},xh={},lh=function(a){return xh[a]||(xh[a]=ka(a)[s](/\-([a-z])/g,function(b,c){return c.toUpperCase()}))},th=function(a){return"rtl"==oh(a,"direction")},Bh=function(a){var b=qf(a),c=bf&&a[cd];if(c&&rf(b).Qb()&&c[kb]!="auto"&&c[pd]!="auto"&&!c.boxSizing){b=yh(a,c[kb],"width","pixelWidth");a=yh(a,c[pd],"height","pixelHeight");return new se(b,a)}else{c=new se(a[sb],a[rd]);if(bf){b=zh(a,"paddingLeft");
var d=zh(a,"paddingRight"),e=zh(a,"paddingTop"),f=zh(a,"paddingBottom");b=new hh(e,d,f,b)}else{b=mh(a,"paddingLeft");d=mh(a,"paddingRight");e=mh(a,"paddingTop");f=mh(a,"paddingBottom");b=new hh(ja(e),ja(d),ja(f),ja(b))}if(bf){d=Ah(a,"borderLeft");e=Ah(a,"borderRight");f=Ah(a,"borderTop");a=Ah(a,"borderBottom");a=new hh(f,e,a,d)}else{d=mh(a,"borderLeftWidth");e=mh(a,"borderRightWidth");f=mh(a,"borderTopWidth");a=mh(a,"borderBottomWidth");a=new hh(ja(f),ja(e),ja(a),ja(d))}return new se(c[kb]-a[Db]-
b[Db]-b[vd]-a[vd],c[pd]-a.top-b.top-b[bd]-a[bd])}},yh=function(a,b,c,d){if(/^\d+px?$/[hb](b))return ia(b,10);else{var e=a[B][c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a[cd][c];a[B][c]=b;b=a[B][d];a[B][c]=e;a.runtimeStyle[c]=f;return b}},zh=function(a,b){return yh(a,nh(a,b),"left","pixelLeft")},Ch={thin:2,medium:4,thick:6},Ah=function(a,b){if(nh(a,b+"Style")=="none")return 0;var c=nh(a,b+"Width");if(c in Ch)return Ch[c];return yh(a,c,"left","pixelLeft")};var Dh=function(a,b){if((a=O(a))&&a[B]){$a(a[B],b?"":"none");oe(a,"hid",!b)}},Eh=function(a){a=O(a);if(!a)return j;return!(a[B][nd]=="none"||N(a,"hid"))},Fh=function(a){if(a=O(a))if(Eh(a)){$a(a[B],"none");L(a,"hid")}else{$a(a[B],"");M(a,"hid")}},Gh=function(a,b){if(a=O(a))Ga(a[B],b?"visible":"hidden")},Hh=function(a){a=O(a);if(!a)return h;var b=0,c=0;if(a[Dc]){do{b+=a[Kc];c+=a[od]}while(a=a[Dc])}return new qe(b,c)},V=function(){K(arguments,function(a){Dh(a,g)})},W=function(){K(arguments,function(a){Dh(a,
j)})},Ih=function(){K(arguments,Fh)};var Kh=function(){return Jh&&Jh()},Jh=h;(function(){if(typeof XMLHttpRequest!="undefined")Jh=function(){return new XMLHttpRequest};else if(typeof ActiveXObject!="undefined")Jh=function(){return new ActiveXObject("Microsoft.XMLHTTP")}})();var Lh=function(a,b,c,d,e){var f=new Kh;if("open"in f){f.onreadystatechange=function(){(f&&"readyState"in f?f.readyState:0)==4&&b&&b(f)};c=c||"GET";d=d||"";f[gb](c,a,g);c=="POST"&&f.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(e)for(var i in e)f.setRequestHeader(i,e[i]);f.send(d)}},Mh=function(a){l[fd]&&l[fd].warn&&l[fd].warn(a)},X=function(a,b){var c=b.onComplete||h,d=b.onException||h,e=b.onError||h,f=b.update||h,i=b.json||j;Lh(a,function(k){var t;a:switch(k&&"status"in
k?k.status:-1){case 0:case 200:case 204:case 304:t=g;break a;default:t=j;break a}if(t){var z=k[Yc];t=z?Nh(z):h;z=!!(z&&t);var R,H;if(z){R=Oh(t,"return_code");H=Oh(t,"html_content");if(R==0){if(f&&H)o(O(f),H);var S=Oh(t,"css_content"),ga=Oh(t,"js_content");if(S){var Ka=m[Ob]("style");Ka[Yb]("type","text/css");if(Ka.styleSheet)Ka.styleSheet.cssText=S;else Ka[q](m[wb](S));m[lc]("head")[0][q](Ka)}if(ga){S=m[Ob]("script");ra(S,ga);m[lc]("head")[0][q](S)}}}if(c)if(z){z=Oh(t,"redirect_on_success");if(R&&
z)Sa(l,z);else{(t=Oh(t,R==0?"success_message":"error_message"))&&alert(t);k=i?eval("("+H+")"):k;if(R==0)c(k);else if(d)d(k);else t||Mh("Non-zero ("+R+") return code from AJAX request: "+a)}}else k[pb]?c(k):Mh("No xmlResponse or xhr.responseText from AJAX request: "+a)}else e&&e(k)},b.method||"POST",b.postBody||h,b.headers||h)},Nh=function(a){if(!a)return h;return(a=("responseXML"in a?a[Yc]:a)[lc]("root"))&&a[w]>0?a[0]:h},Oh=function(a,b){if(!a)return h;var c=a[lc](b);return c&&c[w]>0&&c[0][Rb]?c[0][Rb][td]:
h},Ph={};I("yt.net.ajax.setToken",function(a,b){Ph[a]=b},void 0);var Qh=function(a){return ye(Ph,a)};var Sh=function(a,b){try{var c,d=Ad("window.location.href");c=typeof a=="string"?{message:a,name:"Unknown error",lineNumber:"Not available",fileName:d,stack:"Not available"}:!a.lineNumber||!a[md]||!a[Hc]?{message:a.message,name:a[hc],lineNumber:a.lineNumber||a.Zk||"Not available",fileName:a[md]||a.filename||a.sourceURL||d,stack:a[Hc]||"Not available"}:a;return"Message: "+Me(c.message)+'\nUrl: <a href="view-source:'+c[md]+'" target="_new">'+c[md]+"</a>\nLine: "+c.lineNumber+"\n\nBrowser stack:\n"+
Me(c[Hc]+"-> ")+"[end]\n\nJS stack traversal:\n"+Me(Rh(b)+"-> ")}catch(e){return"Exception trying to expose exception! You win, we lose. "+e}},Rh=function(a){return Th(a||arguments.callee.caller,[])},Th=function(a,b){var c=[];if(ce(b,a))c[r]("[...circular reference...]");else if(a&&b[w]<50){c[r](Uh(a)+"(");for(var d=a.arguments,e=0;e<d[w];e++){e>0&&c[r](", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":f=f;break;case "number":f=ka(f);break;case "boolean":f=
f?"true":"false";break;case "function":f=(f=Uh(f))?f:"[fn]";break;case "undefined":default:f=typeof f;break}if(f[w]>40)f=f[pc](0,40)+"...";c[r](f)}b[r](a);c[r](")\n");try{c[r](Th(a.caller,b))}catch(i){c[r]("[exception trying to get caller]\n")}}else a?c[r]("[...long stack...]"):c[r]("[end]");return c[F]("")},Uh=function(a){a=ka(a);if(!Vh[a]){var b=/function ([^\(]+)/[jb](a);Vh[a]=b?b[1]:"[Anonymous]"}return Vh[a]},Vh={};var Wh=function(a,b,c,d,e){this.reset(a,b,c,d,e)};Wh[x].Yj=0;Wh[x].Hc=h;Wh[x].Gc=h;var Xh=0;Wh[x].reset=function(a,b,c,d,e){this.Yj=typeof e=="number"?e:Xh++;this.Ff=d||Od();this.Ra=a;this.kj=b;this.bj=c;delete this.Hc;delete this.Gc};Wh[x].dk=function(a){this.Hc=a};Wh[x].ek=function(a){this.Gc=a};Wh[x].xd=function(a){this.Ra=a};var Yh=function(a){this.Sa=a};Yh[x].J=h;Yh[x].Ra=h;Yh[x].ga=h;Yh[x].Ma=h;var Zh=function(a,b){Ca(this,a);p(this,b)};Ja(Zh[x],function(){return this[hc]});var $h=new Zh("SHOUT",1200),ai=new Zh("SEVERE",1E3),bi=new Zh("WARNING",900),ci=new Zh("INFO",800),di=new Zh("CONFIG",700);G=Yh[x];G.getName=function(){return this.Sa};G.nh=function(a){if(!this.Ma)this.Ma=[];this.Ma[r](a)};G.Nj=function(a){var b=this.Ma;return!!b&&de(b,a)};G.ji=function(){if(!this.ga)this.ga={};return this.ga};
G.xd=function(a){this.Ra=a};G.xe=function(){if(this.Ra)return this.Ra;if(this.J)return this.J.xe();Rg("Root logger has no level set.");return h};G.Ui=function(a){return a[u]>=this.xe()[u]};G.log=function(a,b,c){this.Ui(a)&&this.Xh(this.qi(a,b,c))};G.qi=function(a,b,c){var d=new Wh(a,ka(b),this.Sa);if(c){d.dk(c);d.ek(Sh(c,arguments.callee.caller))}return d};G.Xh=function(a){for(var b=this;b;){b.zh(a);b=b.J}};G.zh=function(a){if(this.Ma)for(var b=0,c;c=this.Ma[b];b++)c(a)};G.kk=function(a){this.J=a};
G.lh=function(a,b){this.ji()[a]=b};var ei={},fi=h,gi=function(){if(!fi){fi=new Yh("");ei[""]=fi;fi.xd(di)}},hi=function(a){gi();var b;if(!(b=ei[a])){b=new Yh(a);var c=a.lastIndexOf("."),d=a[pc](0,c);c=a[pc](c+1);d=hi(d);d.lh(c,b);b.kk(d);b=ei[a]=b}return b};var ii=function(){this.jf=Od()},ji=new ii;ii[x].l=function(a){this.jf=a};ii[x].reset=function(){this.l(Od())};ii[x].A=function(){return this.jf};var ki=function(a){this.Jj=a||"";this.zk=ji};ki[x].Af=g;ki[x].vk=g;ki[x].sk=g;ki[x].Bf=j;var li=function(a){if(a<10)return"0"+a;return ka(a)},mi=function(a,b){var c=(a.Ff-b)/1E3,d=c.toFixed(3),e=0;if(c<1)e=2;else for(;c<100;){e++;c*=10}for(;e-- >0;)d=" "+d;return d},ni=function(a){ki[D](this,a)};Pd(ni,ki);
ni[x].gi=function(a){var b=[];b[r](this.Jj," ");if(this.Af){var c=new Date(a.Ff);b[r]("[",li(c.getFullYear()-2E3)+li(c.getMonth()+1)+li(c.getDate())+" "+li(c.getHours())+":"+li(c.getMinutes())+":"+li(c.getSeconds())+"."+li(n[ob](c.getMilliseconds()/10)),"] ")}this.vk&&b[r]("[",mi(a,this.zk.A()),"s] ");this.sk&&b[r]("[",a.bj,"] ");b[r](a.kj,"\n");this.Bf&&a.Hc&&b[r](a.Gc,"\n");return b[F]("")};var oi=function(){this.hf=J(this.ph,this);this.Kc=new ni;this.Kc.Af=j;this.Qe=this.Kc.Bf=j;this.aj=""};oi[x].$j=function(a){if(a!=this.Qe){var b;gi();b=fi;if(a)b.nh(this.hf);else{b.Nj(this.hf);this.$k=""}this.Qe=a}};oi[x].ph=function(a){var b=this.Kc.gi(a);if(l[fd]&&l[fd].firebug)switch(a.Ra){case $h:l[fd].info(b);break;case ai:l[fd].error(b);break;case bi:l[fd].warn(b);break;default:l[fd].debug(b);break}else if(l[fd])l[fd].log(b);else if(l[Mb])l[Mb].postError(b);else this.aj+=b};var pi=h;pi||(pi=new oi);l[A][dd][v]("Debug=true")!=-1&&pi.$j(g);hi("yt.player.logger").xd(ci);var qi=function(a){a=ka(a);if(/^\s*$/[hb](a)?j:/^[\],:{}\s\u2028\u2029]*$/[hb](a[s](/\\["\\\/bfnrtu]/g,"@")[s](/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]")[s](/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}aa(Error("Invalid JSON string: "+a))};var ri=function(a,b){var c;if(a instanceof ri){this.bb(b==h?a.W:b);this.Cd(a.ta);this.Dd(a.yb);this.td(a.fb);this.Ad(a.Va);this.zd(a.qb);this.Bd(a.K.C());this.vd(a.hb)}else if(a&&(c=ka(a)[Ib](Sg))){this.bb(!!b);this.Cd(c[1]||"",g);this.Dd(c[2]||"",g);this.td(c[3]||"",g);this.Ad(c[4]);this.zd(c[5]||"",g);this.lk(c[6]||"",g);this.vd(c[7]||"",g)}else{this.bb(!!b);this.K=new si(h,this,this.W)}};G=ri[x];G.ta="";G.yb="";G.fb="";G.Va=h;G.qb="";G.hb="";G.Vi=j;G.W=j;
Ja(G,function(){if(this.N)return this.N;var a=[];this.ta&&a[r](ti(this.ta,ui),":");if(this.fb){a[r]("//");this.yb&&a[r](ti(this.yb,ui),"@");var b;b=this.fb;b=Gd(b)?ca(b):h;a[r](b);this.Va!=h&&a[r](":",ka(this.Va))}this.qb&&a[r](ti(this.qb,vi));(b=ka(this.K))&&a[r]("?",b);this.hb&&a[r]("#",ti(this.hb,wi));return this.N=a[F]("")});
G.C=function(){var a=this.ta,b=this.yb,c=this.fb,d=this.Va,e=this.qb,f=this.K.C(),i=this.hb,k=new ri(h,this.W);a&&k.Cd(a);b&&k.Dd(b);c&&k.td(c);d&&k.Ad(d);e&&k.zd(e);f&&k.Bd(f);i&&k.vd(i);return k};G.Cd=function(a,b){this.ka();delete this.N;if(this.ta=b?a?ma(a):"":a)this.ta=this.ta[s](/:$/,"");return this};G.Dd=function(a,b){this.ka();delete this.N;this.yb=b?a?ma(a):"":a;return this};G.td=function(a,b){this.ka();delete this.N;this.fb=b?a?ma(a):"":a;return this};
G.Ad=function(a){this.ka();delete this.N;if(a){a=Number(a);if(na(a)||a<0)aa(Error("Bad port number "+a));this.Va=a}else this.Va=h;return this};G.zd=function(a,b){this.ka();delete this.N;this.qb=b?a?ma(a):"":a;return this};G.Bd=function(a,b){this.ka();delete this.N;if(a instanceof si){this.K=a;this.K.Sd=this;this.K.bb(this.W)}else{b||(a=ti(a,xi));this.K=new si(a,this,this.W)}return this};G.lk=function(a,b){return this.Bd(a,b)};G.cb=function(a,b){this.ka();delete this.N;this.K.l(a,b);return this};
G.Aa=function(a){return this.K.A(a)};G.vd=function(a,b){this.ka();delete this.N;this.hb=b?a?ma(a):"":a;return this};G.ka=function(){if(this.Vi)aa(Error("Tried to modify a read-only Uri"))};G.bb=function(a){this.W=a;this.K&&this.K.bb(a)};
var yi=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,ti=function(a,b){var c=h;if(Gd(a)){c=a;yi[hb](c)||(c=encodeURI(a));if(c.search(b)>=0)c=c[s](b,zi)}return c},zi=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15)[tc](16)+(a&15)[tc](16)},ui=/[#\/\?@]/g,vi=/[\#\?]/g,xi=/[\#\?@]/g,wi=/#/g,si=function(a,b,c){this.$=a||h;this.Sd=b||h;this.W=!!c};G=si[x];
G.la=function(){if(!this.j){this.j=new Tf;if(this.$)for(var a=this.$[y]("&"),b=0;b<a[w];b++){var c=a[b][v]("="),d=h,e=h;if(c>=0){d=a[b][ed](0,c);e=a[b][ed](c+1)}else d=a[b];d=Ge(d);d=this.za(d);this.add(d,e?Ge(e):"")}}};G.j=h;G.h=h;G.add=function(a,b){this.la();this.lb();a=this.za(a);if(this.ha(a)){var c=this.j.A(a);Ed(c)?c[r](b):this.j.l(a,[c,b])}else this.j.l(a,b);this.h++;return this};
xa(G,function(a){this.la();a=this.za(a);if(this.j.ha(a)){this.lb();var b=this.j.A(a);if(Ed(b))this.h-=b[w];else this.h--;return this.j.remove(a)}return j});Aa(G,function(){this.lb();this.j&&this.j[dc]();this.h=0});G.ha=function(a){this.la();a=this.za(a);return this.j.ha(a)};G.Ja=function(){this.la();for(var a=this.j.Ba(),b=this.j.Ja(),c=[],d=0;d<b[w];d++){var e=a[d];if(Ed(e))for(var f=0;f<e[w];f++)c[r](b[d]);else c[r](b[d])}return c};
G.Ba=function(a){this.la();if(a){a=this.za(a);if(this.ha(a)){var b=this.j.A(a);if(Ed(b))return b;else{a=[];a[r](b)}}else a=[]}else{b=this.j.Ba();a=[];for(var c=0;c<b[w];c++){var d=b[c];Ed(d)?ge(a,d):a[r](d)}}return a};G.l=function(a,b){this.la();this.lb();a=this.za(a);if(this.ha(a)){var c=this.j.A(a);if(Ed(c))this.h-=c[w];else this.h--}this.j.l(a,b);this.h++;return this};G.A=function(a,b){this.la();a=this.za(a);if(this.ha(a)){var c=this.j.A(a);return Ed(c)?c[0]:c}else return b};
Ja(G,function(){if(this.$)return this.$;if(!this.j)return"";for(var a=[],b=0,c=this.j.Ja(),d=0;d<c[w];d++){var e=c[d],f=Fe(e);e=this.j.A(e);if(Ed(e))for(var i=0;i<e[w];i++){b>0&&a[r]("&");a[r](f);e[i]!==""&&a[r]("=",Fe(e[i]));b++}else{b>0&&a[r]("&");a[r](f);e!==""&&a[r]("=",Fe(e));b++}}return this.$=a[F]("")});G.lb=function(){delete this.Dc;delete this.$;this.Sd&&delete this.Sd.N};G.C=function(){var a=new si;if(this.Dc)a.Dc=this.Dc;if(this.$)a.$=this.$;if(this.j)a.j=this.j.C();return a};
G.za=function(a){a=ka(a);if(this.W)a=a[ud]();return a};G.bb=function(a){if(a&&!this.W){this.la();this.lb();Sf(this.j,function(b,c){var d=c[ud]();if(c!=d){this.remove(c);this.add(d,b)}},this)}this.W=a};var Ai=function(){};G=Ai[x];G.ua=[];G.Xb=h;G.Wb=j;G.Td=j;G.Rk=h;G.Nd=h;G.Od=h;G.kb=function(a,b,c,d){if(this.Wb=a&&!b){this.Nd=new ri(a);this.Od=h}else{this.Nd=new ri(a);this.Od=new ri(b)}this.Rk=c;this.Td=d||j};
G.zj=function(a){a=qi(a);for(var b=[],c=[],d=new Tf,e=0,f=a[w];e<f;e++){var i=a[e],k=new Bi({languageCode:i.language,languageName:i.language_name,name:i[hc],kind:i.kind,is_servable:i.is_servable}),t=[];i=i.plaintext_list;for(var z=0,R=i[w];z<R;z++)t[r](new Ci(i[z]));b[r](k);c[r](t);d.l(k[tc](),t)}return{trackMetaDataArray:b,trackMap:d}};G.Bj=function(a){a=qi(a);for(var b=[],c=0,d=a[w];c<d;c++){var e=new Bi(a[c]);e.Se&&b[r](e)}return b};
G.Cj=function(a){var b=a[Rb];if(a&&a[Rb])b=a[Rb][ec];else return[];a=[];for(var c=[],d=0,e=b[w];d<e;d++){var f=b[d];f[jd]=="track"?a[r](f):c[r](f)}b=[];d=0;for(e=a[w];d<e;d++){var i=a[d];c=i[Wc]("lang_code");f=i[Wc]("name");i=i[Wc]("kind")||"";b[r](new Bi({languageCode:c,name:f,kind:i,is_servable:g}))}return b};
G.Ve=function(a){var b=new ri(this.Nd),c=this,d={method:"GET",onComplete:function(e){if(c.Wb){e=c.zj(e[pb]);c.Xb=e.trackMap;c.ua=e.trackMetaDataArray}else c.ua=c.Td?c.Cj(e[Yc]):c.Bj(e[pb]);a(c.ua)}};X(b[tc](),d)};G.Ue=function(a){for(var b=Q("LANGUAGE"),c=-1,d=-1,e=0,f=this.ua[w];e<f;e++){var i=this.ua[e];if(i.Ub!="asr")if(i.Vb==b){c=e;break}else if(d<0)d=e}b=-1;if(c>=0)b=c;else if(d>=0)b=d;b>=0&&this.ed(this.ua[b],a)};G.Aj=function(a){a=qi(a);for(var b=[],c=0,d=a[w];c<d;c++)b[r](new Ci(a[c]));return b};
G.Dj=function(a){if(a&&a[Rb])a=a[Rb][ec];else return[];for(var b=[],c=0,d=a[w];c<d;c++){var e=a[c],f=e[Rb][td],i=ja(e[Wc]("start")||0);e=ja(e[Wc]("dur")||0);b[r](new Ci({text:f,start_ms:i,dur_ms:e}))}return b};G.ed=function(a,b){if(this.Wb)this.Xb&&this.Xb.ha(a[tc]())&&b(this.Xb.A(a[tc](),[]),a);else{var c=new ri(this.Od);c.K.l("type","track").l("lang",a.Vb).l("name",a.getName()).l("kind",a.Ub);var d=this,e={method:"GET",onComplete:function(f){f=d.Td?d.Dj(f[Yc]):d.Aj(f[pb]);b(f,a)}};X(c[tc](),e)}};
var Bi=function(a){this.Vb=a.languageCode;this.Te=a.languageName;this.Ub=a.kind;this.Sa=a[hc];this.Se=a.is_servable};G=Bi[x];G.Vb=h;G.Te=h;G.Ub=h;G.Sa=h;G.Se=j;G.getName=function(){return this.Sa};Ja(G,function(){return this.Vb+": "+this.Sa+" ("+this.Ub+")"});var Ci=function(a){this.Jd=a.text;this.wb=a.start_ms;this.qe=a.dur_ms||0};Ci[x].Jd="";Ci[x].wb=0;Ci[x].qe=0;Ja(Ci[x],function(){return this.wb+", "+this.qe+": "+this.Jd});I("yt.player.Subtitles",Ai,void 0);Ai[x].initialize=Ai[x].kb;
Ai[x].loadTrackList=Ai[x].Ve;Ai[x].loadTrack=Ai[x].ed;Ai[x].loadDefaultTrack=Ai[x].Ue;I("yt.player.TimedTextEvent",Ci,void 0);var Di={},Ei=0,Fi=function(a){var b=new Image,c=""+Ei++;Di[c]=b;b.onload=b.onerror=function(){delete Di[c]};b.src=a;b=eval("null")};var Gi=function(a,b){var c="a="+a+(b?"&"+b:"")[s](/\//g,"&");Fi("/gen_204?"+c);ug(a,b||"null")};var Hi=function(a,b,c,d,e,f,i,k){var t,z=c[Dc];if(z){var R=z[jd]=="HTML"||z[jd]=="BODY";if(!R||oh(z,"position")!="static"){t=sh(z);R||(t=re(t,new qe(z[$c],z[sc])))}}z=sh(a);R=wh(a);z=new ih(z.x,z.y,R[kb],R[pd]);(R=uh(a))&&z.Si(new ih(R[Db],R.top,R[vd]-R[Db],R[bd]-R.top));R=rf(a);var H=rf(c);if(R.o!=H.o){var S=R.o[C];H=H.Pc();var ga=new qe(0,0),Ka=qf(S)?qf(S).parentWindow||qf(S)[gc]:l,Ub=S;do{var Ba;if(Ka==H)Ba=sh(Ub);else{var Kb=Ub;Ba=new qe;if(Kb[nb]==1)if(Kb[eb]){var xd=qh(Kb);Ba.x=xd[Db];Ba.y=
xd.top}else{xd=rf(Kb).Nb();Kb=sh(Kb);Ba.x=Kb.x-xd.x;Ba.y=Kb.y-xd.y}else{Ba.x=Kb[mc];Ba.y=Kb[nc]}Ba=Ba}Ba=Ba;ga.x+=Ba.x;ga.y+=Ba.y}while(Ka&&Ka!=H&&(Ub=Ka.frameElement)&&(Ka=Ka[Qc]));H=ga;H=re(H,sh(S));if(bf&&!R.Qb())H=re(H,R.Nb());z.left+=H.x;z.top+=H.y}a=(b&4&&th(a)?b^2:b)&-5;b=new qe(a&2?z[Db]+z[kb]:z[Db],a&1?z.top+z[pd]:z.top);if(t)b=re(b,t);if(e){b.x+=(a&2?-1:1)*e.x;b.y+=(a&1?-1:1)*e.y}var Ha;if(i)if((Ha=uh(c))&&t){Ha.top=n.max(0,Ha.top-t.y);Ha.right-=t.x;Ha.bottom-=t.y;va(Ha,n.max(0,Ha[Db]-t.x))}a:{e=
b;t=Ha;e=e.C();Ha=0;a=(d&4&&th(c)?d^2:d)&-5;d=wh(c);k=k?k.C():d;if(f||a!=0){if(a&2)e.x-=k[kb]+(f?f[vd]:0);else if(f)e.x+=f[Db];if(a&1)e.y-=k[pd]+(f?f[bd]:0);else if(f)e.y+=f.top}if(i){if(t){f=e;Ha=0;if(f.x<t[Db]&&i&1){f.x=t[Db];Ha|=1}if(f.x<t[Db]&&f.x+k[kb]>t[vd]&&i&16){k.width-=f.x+k[kb]-t[vd];Ha|=4}if(f.x+k[kb]>t[vd]&&i&1){f.x=n.max(t[vd]-k[kb],t[Db]);Ha|=1}if(i&2)Ha|=(f.x<t[Db]?16:0)|(f.x+k[kb]>t[vd]?32:0);if(f.y<t.top&&i&4){f.y=t.top;Ha|=2}if(f.y>=t.top&&f.y+k[pd]>t[bd]&&i&32){k.height-=f.y+k[pd]-
t[bd];Ha|=8}if(f.y+k[pd]>t[bd]&&i&4){f.y=n.max(t[bd]-k[pd],t.top);Ha|=2}if(i&8)Ha|=(f.y<t.top?64:0)|(f.y+k[pd]>t[bd]?128:0);i=Ha}else i=256;Ha=i;if(Ha&496){c=Ha;break a}}e=e;f=cf&&(We||gf)&&of("1.9");if(e instanceof qe){i=e.x;e=e.y}else{i=e;e=void 0}va(c[B],typeof i=="number"?(f?n[lb](i):i)+"px":i);c[B].top=typeof e=="number"?(f?n[lb](e):e)+"px":e;(d==k?g:!d||!k?j:d[kb]==k[kb]&&d[pd]==k[pd])||vh(c,k);c=Ha}return c};var Ii={},Ji=function(a){a=a.c();var b=a.b();if(!(b in Ii)&&a.zf()){a.Wa();Ii[b]=a}};var Ki=function(){};Ki[x].oe=j;Ki[x].Ga=function(){if(!this.oe){this.oe=g;this.u()}};Ki[x].u=function(){};var Li=function(){this.Q=[];this.da={}};Pd(Li,Ki);G=Li[x];G.qa=1;G.ec=0;G.Df=function(a,b,c){var d=this.da[a];d||(d=this.da[a]=[]);var e=this.qa;this.Q[e]=a;this.Q[e+1]=b;this.Q[e+2]=c;this.qa=e+3;d[r](e);return e};G.Pd=function(a){if(this.ec!=0){if(!this.rb)this.rb=[];this.rb[r](a);return j}var b=this.Q[a];if(b){var c=this.da[b];c&&de(c,a);delete this.Q[a];delete this.Q[a+1];delete this.Q[a+2]}return!!b};
G.gf=function(a){var b=this.da[a];if(b){this.ec++;for(var c=he(arguments,1),d=0,e=b[w];d<e;d++){var f=b[d];this.Q[f+1][id](this.Q[f+2],c)}this.ec--;if(this.rb&&this.ec==0)for(;b=this.rb.pop();)this.Pd(b);return d!=0}return j};Aa(G,function(a){if(a){var b=this.da[a];if(b){K(b,this.Pd,this);delete this.da[a]}}else{La(this.Q,0);this.da={}}});G.u=function(){Li.z.u[D](this);delete this.Q;delete this.da;delete this.rb};var Mi={},Ni=function(a){var b=Hg(a);if(b[jd]!="HTML"){a=(a||l[wd])[cc];if(a in Mi){var c=Mi[a];for(var d in c.da){var e=Nf(b,function(f){return N(f,d)},g,a[v]("mouse")!=-1?2:ha);e&&c.gf(d,e,a)}}}};U(m,"click",Ni);U(m,"mouseover",Ni);U(m,"mouseout",Ni);var Oi=function(){this.va={}};G=Oi[x];G.Yc=!!eval("/*@cc_on!@*/false");G.zf=function(){return g};G.M=function(a,b,c){c=this.b(c);var d=J(b,this);a in Mi||(Mi[a]=new Li);Mi[a].Df(c,d);this.va[b]=d};G.getData=function(a,b){return xg(a,b)};G.setData=function(a,b,c){wg(a,b,c)};G.ba=function(a){return Of(a,h,this.b())};G.b=function(a){return this.ki()+(a?"-"+a:"")};G.ki=function(){return"yt-uix"+(this.wa?"-"+this.wa:"")};var Pi=function(){this.va={}};Pd(Pi,Oi);Cd(Pi);G=Pi[x];G.wa="button";G.Wa=function(){this.M("click",this.zc)};G.zc=function(a){var b=this[xb](a,"button-action");if(b)(b=Ad(b))&&b[D](h,a);b=this.ib(a);a&&b&&this.Kk(a)};G.Kk=function(a){var b=this.ib(a);Eh(b)?this.Sc(a):this.tk(a)};G.yf=function(a){return!!this[xb](a,"button-menu-ignore-group")};
G.df=function(a,b){var c=this.Nc(a),d=this.yf(a);c=c&&!d?c:a;d=5;var e=4;if(N(a,"reverse")){d=4;e=5}if(N(a,"flip"))if(N(a,"reverse")){d=6;e=7}else{d=7;e=6}Hi(c,d,b,e)};G.tk=function(a){if(a){var b=this.ib(a);if(b){b.originalParentNode=b[E];b[E][Pc](b);m[C][q](b);var c=this.Nc(a),d=this.yf(a);b[B].minWidth=(c&&!d?c[sb]-2:a[sb]-2)+"px";this.df(a,b);V(b);L(a,this.b("active"));c&&L(c,this.b("group-active"));b=J(this.gj,this,a);b=U(m,"click",b);this[rc](a,"button-listener",b)}}};
G.Sc=function(a){if(a){var b=this.ib(a);if(b){W(b);ig(function(){if(b.originalParentNode){b[E][Pc](b);b.originalParentNode[q](b);b.originalParentNode=h}},1)}var c=this.Nc(a);M(a,this.b("active"));c&&M(c,this.b("group-active"));if(c=this[xb](a,"button-listener")){Eg(c);this[rc](a,"button-listener","")}}};G.If=function(a,b){var c=this.ib(a);if(c){o(c,b);this.df(a,c)}};G.ri=function(a){return Of(a,h,this.b())};
G.gj=function(a,b){var c=Hg(b);if(!this.ii(c))if(!this.Ae(c)||c[Cb]=="SPAN"||N(c,this.b("menu-close"))){this.Sc(a);var d=this.ri(a),e=this.Ae(c);if(e&&this[xb](d,"button-menu-indicate-selected")){If(vg(h,this.b("content"),d),Mf(c));this.dj(e,c)}}};G.dj=function(a,b){var c=this.b("menu-item-selected"),d=vg(h,c,a);d&&M(d,c);L(b[E],c)};G.ib=function(a){a.widgetMenu||(a.widgetMenu=vg(h,this.b("menu"),a));return a.widgetMenu};G.ii=function(a){return Of(a,h,this.b())};G.Ae=function(a){return Of(a,h,this.b("menu"))};
G.Nc=function(a){return Of(a,h,this.b("group"))};var Qi=function(){this.va={}};Pd(Qi,Oi);Cd(Qi);G=Qi[x];G.wa="expander";G.Wa=function(){this.M("click",this.zc,"head")};G.zc=function(a){if(a=this.ba(a)){pe(a,this.b("collapsed"));var b=this[xb](a,"expander-action");if(b)(b=Ad(b))&&b[D](h,a)}};G.collapse=function(a){if(a=this.ba(a)){L(a,this.b("collapsed"));var b=this[xb](a,"expander-action");if(b)(b=Ad(b))&&b[D](h,a)}};G.expand=function(a){if(a=this.ba(a)){M(a,this.b("collapsed"));var b=this[xb](a,"expander-action");if(b)(b=Ad(b))&&b[D](h,a)}};var Ri=function(){this.va={}};Pd(Ri,Oi);Cd(Ri);G=Ri[x];G.wa="tooltip";G.Wa=function(){this.M("mouseover",this.kd);this.M("mouseout",this.jd)};G.zf=function(){return!(this.Yc&&/MSIE 6/[hb](fa[Gc]))};G.kd=function(a){var b=ia(this[xb](a,"tooltip-timer"),10);b&&kg(b);this.Cf(a);if(a[vc]){this[rc](a,"tooltip-title",a[vc]);Ma(a,"")}};G.jd=function(a){var b=J(this.Oe,this,a);b=ig(b,50);this[rc](a,"tooltip-timer",b[tc]());if(b=this[xb](a,"tooltip-title"))Ma(a,b)};
G.Cf=function(a){if(a){var b=this[xb](a,"tooltip")||a[vc];if(b){var c=this.b("tip"),d=c+Ld(a),e=O(d);if(!e){var f=Hh(a),i=f.C();i.x+=a[sb]/2;i.y-=3;e=m[Ob]("div");e.id=d;Pa(e,c);va(e[B],i.x+"px");e[B].top=i.y+"px";c=m[Ob]("div");Pa(c,this.b("tip-body"));d=m[Ob]("div");Pa(d,this.b("tip-arrow"));var k=m[Ob]("div");Pa(k,this.b("tip-content"));o(k,b);c[q](k);e[q](c);e[q](d);m[C][q](e);if(N(a,"reverse")){i.y=f.y+a[rd]+1;e[B].top=i.y+"px";L(e,this.b("tip-reverse"))}var t=this.b("tip-visible");ig(function(){L(e,
t)},0)}}}};G.Oe=function(a){if(a){a=this.b("tip")+Ld(a);(a=O(a))&&m[C][Pc](a)}};var Si=function(a,b){var c=O(a);for(c=Gf(c);c;){b&&b!=c.id&&W(c);c=Hf(c)}},Ti=j,Ui=function(a){if(!Ti&&(a[Qb]==40||a[Qb]==32||a[Qb]==34))O("masthead-search-term")[vb]();Ti=g};var Vi,Wi,Xi,Yi,Zi,$i,aj,bj,cj,dj,ej,fj,gj=g,hj="",ij=h,jj=h,kj=h,lj=-1,mj=h,nj=h,oj=0,pj=0,qj=h,rj=j,sj=j,tj={ja:"co.jp",cs:"com"},uj=h,vj=h,wj=new RegExp("^[\\s\\u1100-\\u11FF\\u3040-\\u30FF\\u3130-\\u318F\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\u9FFF\\uAC00-\\uD7A3\\uF900-\\uFAFF\\uFF65-\\uFFDC]+$"),xj=j,yj=-1,zj="",Aj="",Bj=10,Cj=h,Dj=j,Ej=fa[Gc][ud](),Fj=Ej[v]("opera")!=-1,Gj=Ej[v]("msie")!=-1&&!Fj,Hj=Ej[v]("webkit")!=-1,Ij=Ej[v]("firefox")!=-1,Jj=Ej[v]("firefox/3")!=-1,Kj=Ej[v]("windows")!=-1&&
(Ij||Hj)||Ej[v]("macintosh")!=-1&&Ij&&!Jj||Fj,Lj=function(a){if(a.persisted)p(cj,"f");p(dj,$i[u])},Nj=function(){if(aj){var a=xj?20:0;va(bj,Mj($i,"offsetLeft")-a+"px");bj.top=Mj($i,"offsetTop")+$i[rd]-1+"px";qa(bj,$i[sb]+a+"px");va(nj,bj[Db]);nj.top=bj.top;qa(nj,aj[sb]+"px");ab(nj,aj[rd]+"px")}},Oj=function(a,b,c){var d=m[Ob]("input");za(d,"hidden");Ca(d,a);p(d,b);Ta(d,c);return Zi[q](d)},Qj=function(){rj||Pj();rj=j},Uj=function(a){var b=a[Qb];l[A][Sc]=="/"&&Ui(a);if(b==13&&bj[qc]=="visible"&&hj==
Wi&&kj&&kj.suggestType){kj.onclick();return j}if(b==27&&bj[qc]=="visible"){Pj();Rj(Wi);Da(a,g);Wa(a,j);return j}if(!Sj(b))return g;pj++;pj%3==1&&Tj(b);return j},Vj=function(a){var b=a[Qb];!(fj&&Sj(b))&&pj==0&&Tj(b);pj=0;if(Wi[w]>0&&$i.onkeyup_original){$i.onkeyup_original(a);oe(aj,"rtl",$i.dir=="rtl"!=Dj)}return!Sj(b)},Tj=function(a){if(fj&&Sj(a)){rj=g;$i[vb]();ig(Wj,10)}if($i[u]!=Vi||a==39){Wi=$i[u];Yi=Xj($i);if(a!=39)p(dj,Wi)}if(a==40||a==63233)Yj(lj+1);else(a==38||a==63232)&&Yj(lj-1);Nj();if(hj!=
Wi&&!qj)qj=ig(Pj,500);Vi=$i[u];Vi==""&&!ij&&Zj()},Sj=function(a){return a==38||a==63232||a==40||a==63233},$j=function(){$i[vb]();p(cj,this.completeId);Rj(this.completeString);Cj?Cj():Zi.submit()},ak=function(a,b){return b?function(){$i[vb]();l[gb](a);kj=h}:function(){Ya(l[A],a)}},bk=function(){if(!sj){if(kj)Pa(kj,"yt-suggest-unselected");Pa(this,"yt-suggest-selected");kj=this;if(jj)for(var a=0;a<jj[w];a++)if(jj[a]==kj){lj=a;break}}},ck=function(){if(sj){sj=j;bk[D](this)}},Yj=function(a){if(hj==""&&
Wi!=""){Xi="";Zj()}else if(!(Wi!=hj||!ij))if(!(!jj||jj[w]<=0))if(bj[qc]=="visible"){var b=jj[w];if(uj)b-=1;if(kj)Pa(kj,"yt-suggest-unselected");if(a==b||a==-1){lj=-1;Rj(Wi);Wj();p(cj,"f")}else{if(a>b)a=0;else if(a<-1)a=b-1;lj=a;kj=jj[zb](a);Pa(kj,"yt-suggest-selected");Rj(kj.completeString);p(cj,kj.completeId)}}else dk()},Pj=function(){if(qj){kg(qj);qj=h}Gh(aj,j);Gh(mj,j)},dk=function(){if(gj){Gh(aj,g);Gh(mj,g);Nj();sj=g}},gk=function(a,b,c,d,e,f){var i=aj[gd][w];i!=0&&aj[gd][i-1][xc]=="yt-suggest-close"&&
--i;var k=aj[Fb](i);k.onclick=f;k.onmousedown=ek;k.onmouseover=bk;k.onmousemove=ck;k.completeString=a;k.completeId=c;k.suggestType=d;Pa(k,"yt-suggest-unselected");if(xj){f=m[Ob]("td");Pa(f,"yt-suggest-icon");k[q](f);if(c=="g"){c=m[Ob]("img");c.src="http://www.google.com/favicon.ico";f[q](c)}}c=m[Ob]("td");if(b)o(c,b);else fk(c,a);Pa(c,"yt-suggest-left");if(Gj&&wj[hb](a))ta(c[B],"2px");a=m[Ob]("td");e&&fk(a,e);if(i>0&&aj[gd][i-1].suggestType!=d)k[B].borderTop="1px solid #CCC";Pa(a,"yt-suggest-right");
if(N(aj,"rtl")){k[q](a);k[q](c)}else{k[q](c);k[q](a)}},hk=function(){Pj();Ta(dj,g);if(dj[u]!=$i[u]&&jj&&jj[w]&&lj>=0){p(cj,jj[zb](lj).completeId);Ta(dj,j)}else if(oj>=10)p(cj,"o");return Cj?j:g},Zj=function(){if(!gj)return j;if(Xi!=Wi&&Wi){var a=ca(Wi);kj=h;oj++;var b=m[Ob]("script");b[Yb]("type","text/javascript");b[Yb]("charset","utf-8");b[Yb]("id","jsonpACScriptTagY");b[Yb]("src","http://"+ej+"&q="+a+"&cp="+Yi);a=m[qb]("jsonpACScriptTagY");var c=m[lc]("head")[0];a&&c[Pc](a);c[q](b);Wj()}Xi=Wi;
b=100;for(a=1;a<=(oj-2)/2;++a)b*=2;b+=50;ij=ig(Zj,b);return g},Rj=function(a){p($i,a);Vi=a},Wj=function(){$i[Nb]()},Mj=function(a,b){for(var c=0;a;){c+=a[b];a=a[Dc]}return c},fk=function(a,b){a[q](m[wb](b))};
function ik(a){for(var b=aj[gd],c=b[w]-1;c>=0;--c)b[c].completeString&&b[c].completeString[w]==Xi[w]&&b[c].completeString==Xi[ud]()&&(b[c].suggestType=="mv"||b[c].suggestType=="sh")||aj.deleteRow(c);var d=0;for(c in a){if(d>=Bj)break;var e=a[c];if(e){d++;var f=e[0],i=e[2];if(e[w]==3){e="";if(d==1)e=vj;var k=h;if(yj!=1){k=Wi[ud]();k=f[s](k,"</b>"+k+"<b>");if(k!=f)k="<b>"+k+"</b>"}gk(f,k,i,"y",e,$j)}else if(e[w]==4){var t=e[3];k=t[0];var z=ma(t[1]);e=t[2];t=ak("/"+t[3],j);if(k=="mv"&&e){e=e[y]("\t");
if(e[0])z=z+' <span class="grayText">('+e[0]+")</span>";e=e[w]>1&&e[1]?e[1]:""}gk(f,z,i,k,e,t)}}}if(uj&&b[w]>0){a=aj[Fb](-1);a.onmousedown=ek;b=m[Ob]("td");b.colSpan=xj?3:2;Pa(a,"yt-suggest-close");c=m[Ob]("span");a[q](b);b[q](c);fk(c,uj);c.onclick=function(){Pj();hj="";kg(ij);ij=h;p(cj,"x")}}}
var ek=function(a){if(a&&a[Fc]){a[Fc]();dk();$i[Nb]()}else rj=g;return j},jk=function(){var a=$i[u];a!=Vi&&Tj(0);Vi=a},Xj=function(a){var b=0,c=0,d;try{d=typeof a[Oc]=="number"}catch(e){d=j}if(d){b=a[Oc];c=a.selectionEnd}if(Gj){a=a.createTextRange();var f;try{f=m.selection.createRange()}catch(i){f=h}if(f&&a.inRange(f)){a.setEndPoint("EndToStart",f);b=a.text[w];a.setEndPoint("EndToEnd",f);c=a.text[w]}}if(b&&c&&b==c)return b;return 0},kk=function(){gj=g;if($i){$i[Yb]("autocomplete","off");Zj()}},lk=
function(){gj=j;if($i){Xi=Wi;$i[Yb]("autocomplete","on");Pj()}};var mk=m[lc]("html")[0],nk=function(){var a=!m[ad]||m[ad]=="CSS1Compat"?mk:m[C];return l.pageYOffset||a[sc]},ok=function(){if(l[Mb]||!l.ActiveXObject&&!fa.taintEnabled)return l[Lb];return(!m[ad]||m[ad]=="CSS1Compat"?mk:m[C])[Zc]},pk=175,qk=j,rk=function(a,b){b=b||nk()+ok();var c;if(!(c=qk)){if(m[oc][eb]){if(m[oc][eb]){c=a[eb]();var d=m[oc];c=c.top+d[sc]-d[$b]}else c=0;d=a;for(var e=0;d&&!/^(?:body|html)$/i[hb](d[jd]);){e+=d[sc];d=d[E]}c=c-e}else c=0;c=c<=b+pk}if(c){a.src=a[Wc]("thumb");a.removeAttribute("thumb")}},
sk=function(){for(var a=m[lc]("IMG"),b=nk()+ok(),c=0;c<a[w];++c)a[c][Wc]("thumb")&&rk(a[c],b)};var tk=-1,uk=function(a,b,c,d,e,f,i,k,t,z){kg(tk);k=k?k:{};k.session_token=ba(c);c={postBody:Wg(k),onComplete:function(R){var H=O(z?z:"subscribeMessage");R=Nh(R);if(H){o(H,'<div id="subscribeMessage">'+Oh(R,"html_content")+"</div>");V(H)}if(O(d)){W(d);V(e)}if(H&&!t)tk=ig(function(){W(H)},5E3);i&&i()}};f=f==0?"/ajax_subscriptions?subscribe_to_":f==1?"/ajax_subscriptions?unsubscribe_from_":"/ajax_subscriptions?get_edit_subscription_form_for_";if(b=="username")X(f+"user="+a,c);else b=="playlist"&&X(f+
"playlist="+a,c)};var vk=function(a){a=O(a);for(var b=O(a.id+"-body"),c=Gf(a[E]);c;){M(c,"watch-tab-sel");c=Hf(c)}L(a,"watch-tab-sel");for(c=Gf(b[E]);c;){M(c,"watch-tab-sel");c=Hf(c)}L(b,"watch-tab-sel");a[lc]("A")[0][vb]();W("recent-fav-video");W("autoshare-widget-favorite-wizard");W("rec-playlist-video")},wk=function(){var a=O("watch-main-area")?O("watch-main-area"):O("watch-actions-area");a=P("img","watch-check-grn-circle",a);for(var b=0,c=a[w];b<c;b++)Za(a[b][B],'url("http://s.ytimg.com/yt/img/check-grn-circle-vfl91176.png")')};var xk=function(){var a=fh(this.ge);a&&this.Ej(a)};Cd(xk);var yk=Ad("yt.prefs.UserPrefs.prefs_")||{};I("yt.prefs.UserPrefs.prefs_",yk,void 0);G=xk[x];G.ge="PREF";G.Dk=function(a){if(a==h)aa("ExpectedNotNull")};G.Ek=function(a,b){if(b[hb](a))aa("ExpectedRegexMatch: "+a)};G.Fk=function(a,b){if(!b[hb](a))aa("ExpectedRegexMismatch: "+a)};G.Kd=function(a){this.Fk(a,/^\w+$/);this.Ek(a,/^f([1-9][0-9]*)$/)};G.Ed=function(a,b){yk[a]=b[tc]()};
G.Be=function(a){a=this.De(a);return a!=h&&/^[A-Fa-f0-9]+$/[hb](a)?ia(a,16):h};G.De=function(a){return yk[a]!==ha?yk[a][tc]():h};G.ud=function(a,b,c){var d=this.Be(a);d=d!=h?d:0;b=c?d|b:d&~b;b==0?this.le(a):this.Ed(a,b[tc](16))};G.Mc=function(a,b){var c=this.Be(a);c=c!=h?c:0;return(c&b)>0};G.le=function(a){delete yk[a]};G.Ej=function(a){a=ba(a)[y]("&");for(var b=0;b<a[w];b++){var c=a[b][y]("="),d=c[0];(c=c[1])&&this.Ed(d,c)}};G.A=function(a,b){this.Kd(a);var c=this.De(a);return c!=h?c:b?b:""};
G.l=function(a,b){this.Kd(a);this.Dk(b);this.Ed(a,b)};G.ya=function(a){return this.Mc("f1",a)};G.vb=function(a,b){this.ud("f1",a,b)};G.Ia=function(a){return this.Mc("f2",a)};G.ic=function(a,b){this.ud("f2",a,b)};G.ye=function(a){return this.Mc("f3",a)};G.tf=function(a,b){this.ud("f3",a,b)};xa(G,function(a){this.Kd(a);this.le(a)});G.save=function(a){a=(a||7)*24*60*60;eh(this.ge,this.pe(),a)};Aa(G,function(){yk={}});G.pe=function(){var a=[];for(var b in yk)a[r](b+"="+escape(yk[b]));return a[F]("&")};
var zk=xk.c();zk.set=zk.l;zk.get=zk.A;zk.setFlag=zk.vb;zk.getFlag=zk.ya;zk.setFlag2=zk.ic;zk.getFlag2=zk.Ia;zk.setFlag3=zk.tf;zk.getFlag3=zk.ye;xa(zk,zk.remove);zk.save=zk[Ic];Aa(zk,zk[dc]);zk.dump=zk.pe;var Y={};Y.Og=1;Y.FLAG_SAFE_SEARCH=Y.Og;Y.Cg=2;Y.FLAG_GRID_VIEW_SEARCH_RESULTS=Y.Cg;Y.Db=4;Y.FLAG_EMBED_NO_RELATED_VIDEOS=Y.Db;Y.eb=8;Y.FLAG_EMBED_SHOW_BORDER=Y.eb;Y.Dg=16;Y.FLAG_GRID_VIEW_VIDEOS_AND_CHANNELS=Y.Dg;Y.$g=32;Y.FLAG_WATCH_EXPAND_ABOUT_PANEL=Y.$g;Y.bh=64;Y.FLAG_WATCH_EXPAND_MOREFROM_PANEL=Y.bh;Y.Zg=128;Y.FLAG_WATCH_COLLAPSE_RELATED_PANEL=Y.Zg;Y.Xg=256;Y.FLAG_WATCH_COLLAPSE_PLAYLIST_PANEL=Y.Xg;Y.Yg=512;Y.FLAG_WATCH_COLLAPSE_QUICKLIST_PANEL=Y.Yg;Y.ah=1024;
Y.FLAG_WATCH_EXPAND_ALSOWATCHING_PANEL=Y.ah;Y.Wg=2048;Y.FLAG_WATCH_COLLAPSE_COMMENTS_PANEL=Y.Wg;Y.Tg=4096;Y.FLAG_STATMODULES_INBOX_COLLAPSED=Y.Tg;Y.Sg=8192;Y.FLAG_STATMODULES_ABOUTYOU_COLLAPSED=Y.Sg;Y.Rg=16384;Y.FLAG_STATMODULES_ABOUTVIDEOS_COLLAPSED=Y.Rg;Y.sc=32768;Y.FLAG_HIDE_WATCH_AUTOSHARE_PROMOTION=Y.sc;Y.Jg=65536;Y.FLAG_PERSONALIZED_HOMEPAGE_FEED_FEATURED_COLLAPSED=Y.Jg;Y.Mg=131072;Y.FLAG_PERSONALIZED_HOMEPAGE_FEED_RECOMMENDED_COLLAPSED=Y.Mg;Y.Ng=262144;
Y.FLAG_PERSONALIZED_HOMEPAGE_FEED_SUBSCRIPTIONS_COLLAPSED=Y.Ng;Y.Lg=524288;Y.FLAG_PERSONALIZED_HOMEPAGE_FEED_POPULAR_COLLAPSED=Y.Lg;Y.Kg=1048576;Y.FLAG_PERSONALIZED_HOMEPAGE_FEED_FRIENDTIVITY_COLLAPSED=Y.Kg;Y.Ug=2097152;Y.FLAG_SUGGEST_ENABLED=Y.Ug;Y.Gg=4194304;Y.FLAG_HAS_SUGGEST_ENABLED=Y.Gg;Y.Vg=8388608;Y.FLAG_WATCH_BETA_PLAYER=Y.Vg;Y.Fg=16777216;Y.FLAG_HAS_REDIRECTED_TO_LOCAL_SITE=Y.Fg;Y.Vd=33554432;Y.FLAG_ACCOUNT_SHOW_PLAYLIST_INFO=Y.Vd;Y.Hg=67108864;Y.FLAG_HAS_TAKEN_CHANNEL_SURVEY=Y.Hg;Y.Ig=134217728;
Y.FLAG_HIDE_TOOLBAR=Y.Ig;Y.Qg=268435456;Y.FLAG_SHOWN_LANG_OPT_OUT=Y.Qg;Y.Eg=536870912;Y.FLAG_HAS_REDIRECTED_TO_LOCAL_LANG=Y.Eg;Y.Pg=1073741824;Y.FLAG_SHOWN_COUNTRY_OPT_OUT=Y.Pg;Y.kg=1;Y.FLAG2_UPLOAD_BETA_OPTSET=Y.kg;Y.jg=2;Y.FLAG2_UPLOAD_BETA_OPTIN=Y.jg;Y.Ud=4;Y.FLAG2_HIDE_MASTHEAD=Y.Ud;Y.hg=8;Y.FLAG2_TV_PARITY=Y.hg;Y.eg=16;Y.FLAG2_TV_AUTO_FULLSCREEN_OFF=Y.eg;Y.fg=32;Y.FLAG2_TV_AUTO_PLAY_NEXT_OFF=Y.fg;Y.gg=64;Y.FLAG2_TV_ENABLE_MULTIPLE_CONTROLLERS=Y.gg;Y.ig=128;Y.FLAG2_TV_RESERVED=Y.ig;Y.Wf=256;
Y.FLAG2_LIGHT_HOMEPAGE=Y.Wf;Y.ag=512;Y.FLAG2_REDLINE_HIDE_TOAST=Y.ag;Y.Pf=1024;Y.FLAG2_ANNOTATIONS_EDITOR_WATCH_PAGE_DEFAULT_OFF=Y.Pf;Y.$f=2048;Y.FLAG2_REDLINE_HIDE_START_MESSAGE=Y.$f;Y.Qf=4096;Y.FLAG2_ANNOTATIONS_LOAD_POLICY_BY_DEMAND=Y.Qf;Y.Cb=8192;Y.FLAG2_EMBED_DELAYED_COOKIES=Y.Cb;Y.Sf=16384;Y.FLAG2_HD_TIP_DEMOTE=Y.Sf;Y.Yf=32768;Y.FLAG2_NEWS_TIP_DEMOTE=Y.Yf;Y.lg=65536;Y.FLAG2_UPLOAD_RESTRICT_TIP_DEMOTE=Y.lg;Y.mg=131072;Y.FLAG2_YPP_HIDE_INVITE_SPAM_BOX=Y.mg;Y.ng=262144;
Y.FLAG2_YPP_HIDE_NEEDS_ADSENSE_BOX=Y.ng;Y.og=524288;Y.FLAG2_YPP_HIDE_NEEDS_TRAINING_BOX=Y.og;Y.dg=1048576;Y.FLAG2_SKIP_CONTRINTER=Y.dg;Y.Bb=2097152;Y.FLAG2_EMBED_DEFAULT_HD=Y.Bb;Y.Rf=4194304;Y.FLAG2_ENABLE_FILTER_WORDS=Y.Rf;Y.Zf=8388608;Y.FLAG2_OPTED_IN_FOR_COMMENTS=Y.Zf;Y.Uf=16777216;Y.FLAG2_HQ_SETTING_SAVED=Y.Uf;Y.rc=33554432;Y.FLAG2_HAS_TAKEN_WATCH_PAGE_SURVEY=Y.rc;Y.cg=67108864;Y.FLAG2_SERVE_MOBILE_HQ_VIDEO=Y.cg;Y.bg=134217728;Y.FLAG2_SAFETY_CONTENT_MODE=Y.bg;Y.Tf=268435456;
Y.FLAG2_HIDE_PROMO_ACTIVITY_SUBSCRIPTIONS=Y.Tf;Y.Xf=536870912;Y.FLAG2_MOBILE_APP_OPTOUT=Y.Xf;Y.Vf=1073741824;Y.FLAG2_HTML5_BETA=Y.Vf;Y.wg=1;Y.FLAG3_LITE_WATCH=Y.wg;Y.pg=2;Y.FLAG3_ANNOTATIONS_EDITOR_WATCH_PAGE_DEFAULT_ON=Y.pg;Y.Bg=4;Y.FLAG3_WATCH5_OPTIN=Y.Bg;Y.rg=8;Y.FLAG3_CAPTIONS_DEFAULT_OFF=Y.rg;Y.qg=16;Y.FLAG3_AUTO_CAPTIONS_DEFAULT_ON=Y.qg;Y.xg=32;Y.FLAG3_LITE_WATCH_OPT_OUT=Y.xg;Y.sg=64;Y.FLAG3_FBPROMO_OPT_OUT=Y.sg;Y.tg=128;Y.FLAG3_HIDE_CHROME_PROMOS=Y.tg;Y.vg=256;
Y.FLAG3_HOMEPAGE_ALL_VS_SUB_VIEW=Y.vg;Y.zg=512;Y.FLAG3_MYVIDEOSMANAGER_BETA_OPTOUT=Y.zg;Y.ug=1024;Y.FLAG3_HIDE_VIDEO_EDITOR_GUIDED_HELP=Y.ug;Y.Ag=2048;Y.FLAG3_SAFETY_MODE_CHANGED_MANUALLY=Y.Ag;Y.yg=4096;Y.FLAG3_LIVE_COMMENTS_SCROLL=Y.yg;var Ak={};Ak.blank="b1b1b1 cfcfcf";Ak.storm="3a3a3a 999999";Ak.iceberg="2b405b 6b8ab6";Ak.acid="006699 54abd6";Ak.green="234900 4e9e00";Ak.orange="e1600f febd01";Ak.pink="cc2550 e87a9f";Ak.purple="402061 9461ca";Ak.rubyred="5d1719 cd311b";var Bk={};Bk["default"]="425 344";Bk.medium="480 385";Bk.large="640 505";Bk.hd720="960 745";var Ck={};Ck["default"]="560 340";Ck.medium="640 385";Ck.large="853 505";Ck.hd720="1280 745";var Gk=function(){var a=O("watch-embed-code");if(a){var b=O("watch-customize-embed-theme-preview"),c=!O("embed-show-border")[zc]?"_nb":"";b.src="img/customize_player/preview_embed_"+Dk+"_sm"+c+".gif";b=Q("IS_WIDESCREEN")?Ck:Bk;for(var d in b){c=O("watch-embed-size-text-"+d);var e=Ek(d);o(c,e[0]+" &times; "+e[1])}p(a,Fk())}},Fk=function(){var a=xk.c(),b={};if(a.ya(Y.Db))b.rel="0";var c=a.A("emt");if(c&&c!="blank"){c=Ak[c][y](" ");b.color1="0x"+c[0];b.color2="0x"+c[1]}if(a.Ia(Y.Bb))b.hd="1";var d=a.Ia(Y.Cb);
c=Q("EMBED_URL");if(d)c=c[s]("youtube.com","youtube-nocookie.com");if(a.ya(Y.eb))b.border="1";a=Ek();b=Xg(c,b);return'<object width="'+a[0]+'" height="'+a[1]+'"><param name="movie" value="'+Me(b)+'"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'+Me(b)+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+a[0]+'" height="'+a[1]+'"></embed></object>'},Ek=function(a){var b=xk.c(),
c=a||b.A("ems");a=function(f){f=(Q("IS_WIDESCREEN")?Ck:Bk)[f][y](" ");d=ia(f[0],10);e=ia(f[1],10);return[d,e]};var d,e;if(!c||c=="custom"){b=O("watch-embed-size-custom-width");b=ia(b[u],10)||0;c=O("watch-embed-size-custom-height");c=ia(c[u],10)||0;a=b>=200&&c>0?[b,c]:a("default");d=a[0];e=a[1]}else{a=a(c);d=a[0];e=a[1];if(b.ya(Y.eb)){d+=20;e+=20}}return[d,e]},Jk=function(){if(O("watch-customize-embed")){var a=xk.c();Qa(O("embed-show-border"),a.ya(Y.eb));Qa(O("embed-show-related"),!a.ya(Y.Db));Qa(O("embed-delayed-cookies"),
a.Ia(Y.Cb));var b=O("embed-use-hd");if(b)Qa(b,a.Ia(Y.Bb));(b=a.A("emt"))&&Hk(b);(a=a.A("ems"))&&a!="small"?Ik(a):Ik("medium");Gk()}},Dk="blank",Kk="default",Hk=function(a){var b=O("watch-embed-theme-"+Dk),c=O("watch-embed-theme-"+a),d=xk.c();d.l("emt",a);d[Ic]();M(b,"radio-selected");L(c,"radio-selected");Dk=a;Gk();return j},Ik=function(a){var b=O("watch-embed-size-radio-"+Kk),c=O("watch-embed-size-radio-"+a),d=xk.c();d.l("ems",a);d[Ic]();M(b,"radio-selected");L(c,"radio-selected");c[vb]();Kk=a;b=
O("embed-use-hd");if(a!="hd720"&&b)Qa(b,j);if(a!="custom"){a=O("watch-embed-size-custom-width");b=O("watch-embed-size-custom-height");p(a,"");p(b,"")}Gk();return j},Lk=function(a){var b=a||h;a=O("watch-embed-size-custom-width");var c=O("watch-embed-size-custom-height");if(b||a[u]){var d=0;if(O("embed-show-border")[zc])d=20;var e=Ek("medium");e=(e[0]-d)/(e[1]-25-d);if(b==c){b=ia(c[u],10)||1;b=n[ob]((b-d-25)*e);if(b<0)b=0;p(a,b+d)}else{b=ia(a[u],10)||1;b=n[ob]((b-d)/e)+25+d;if(b<0)b=0;p(c,b)}Gk()}};var Mk=function(a){a=!!a;var b=O("content"),c=O("watch-sidebar"),d=O("watch-video"),e=O("baseDiv"),f=Q("WIDE_PLAYER_STYLES"),i=0;if("webkitTransition"in c[B]){c=m[gc].getComputedStyle(c,h);i=ja(c["-webkit-transition-duration"])*1E3}c=O("movie_player");if(a){i=i;L(b,"watch-wide");ig(function(){L(d,"wide");for(var t=0;t<f[w];++t)L(e,f[t])},i);c&&c.getPlaybackQuality()=="medium"&&!Q("PREFER_LOW_QUALITY")&&c.setPlaybackQuality("large")}else{i=i/2;M(d,"wide");for(var k=0;k<f[w];++k)M(e,f[k]);ig(function(){M(b,
"watch-wide")},i);c&&c.getPlaybackQuality()=="large"&&c.setPlaybackQuality("medium")}Dh("masthead-utility-menulink-short",a);Dh("masthead-utility-menulink-long",!a)},Nk=function(){var a=O("watch-video");return a?N(a,"wide"):j},Pk=function(){if(!Q("LOGGED_IN")){o(O("watch-actions-area"),O("watch-actions-close")[rb]+O("watch-actions-logged-out")[rb]);Ok();return j}return g},Qk=function(){if(Q("REQUIRES_RENTAL_PURCHASE")){o(O("watch-actions-area"),O("watch-actions-close")[rb]+O("watch-actions-rental-required")[rb]);
Ok();return g}return j},Rk=function(){oe(O("watch-description"),"yt-uix-expander-collapsed",g);Dh("watch-info-shmoovie-sidebar",j)},Sk=function(){var a=O("watch-views");if(a){L(a,"yt-uix-expander-collapsed");L(O("watch-stats-container"),"collapsed")}},Tk=function(){var a=O("watch-captions");if(a){L(a,"yt-uix-expander-collapsed");L(O("watch-captions-container"),"collapsed")}},Uk=j,Vk=[],Wk=h,Xk=-1,Yk=0,Zk=0,al=function(){var a=O("watch-captions-container"),b=Wk,c=b.ua,d=c[w];if(!(d<=0)){if(d>1){var e=
m[Ob]("select");e.id="watch-captions-track-selector";for(var f=0;f<d;++f){var i=c[f],k=m[Ob]("option");o(k,i.Te+(i.getName()?" : "+i.getName():""));p(k,i[tc]());e[q](k)}U(e,"change",function(){Wk.ed(this[u],$k)});a[q](e)}c=m[Ob]("div");c.id="captions-scrollbox";U(c,"mouseover",function(){Uk=g});U(c,"mouseout",function(){Uk=j});a[q](c);b.Ue($k)}},$k=function(a,b){lg(Yk);Xk=-1;Vk=a;var c=O("watch-captions-container"),d=O("captions-scrollbox");o(d,"");var e=O("watch-captions-track-selector");if(e)for(var f=
b[tc](),i=0,k=e[Tc][w];i<k;++i)if(e[Tc][i][u]==f){e[Tc][i].selected=g;break}i=0;for(k=a[w];i<k;++i){e=a[i];f=m[Ob]("div");var t=e.wb/1E3;f.id="cp-"+i;Pa(f,"cpline");wg(f,"time",t+"");f.onmousedown=function(R){bl().seekTo(xg(this,"time"),g);return Jg(R)};d[q](f);var z=m[Ob]("div");Pa(z,"cptime");o(z,n[ob](t/60)+":"+(t%60<10?"0":"")+n[ob](t%60));f[q](z);t=m[Ob]("div");Pa(t,"cptext");o(t,e.Jd);f[q](t)}L(O("watch-captions-loading"),"hid");i=O("watch-captions-track-selector");ab(c[B],d[rd]+(i?i[rd]+5:
0)+10+"px");Yk=jg(cl,500)},bl=function(){return O("movie_player")||O("video-player")},cl=function(){for(var a=bl().getCurrentTime(),b=Vk,c=Xk,d=c;;)if(a+0.5<(d>=0?b[d].wb/1E3:-1))d-=1;else if(a+0.5>(d+1<b[w]?b[d+1].wb/1E3:1E6))d+=1;else break;if(d!=c){c>=0&&M(O("cp-"+c),"cpline-highlight");d>=0&&L(O("cp-"+d),"cpline-highlight");Xk=d;Uk||dl(O("cp-"+(d>=3?d-3:0)))}},dl=function(a){lg(Zk);var b=O("captions-scrollbox"),c=n.min(a[od]-b[od],b[Pb]-b[rd]),d=0;Zk=jg(function(){var e=c-b[sc],f=n[lb](2*e*50/
(1E3-50*d));if(n.abs(e)<=n.abs(f)||d>20){Ia(b,c);lg(Zk)}else{b.scrollTop+=f;d++}},50)},fl=function(){el(h,g)},el=function(a,b){var c=O("watch-actions-area-container");if(!N(c,"collapsed")&&P("INPUT","watch-actions-share-input",c)[w])gl();else{gl();hl();o(O("watch-actions-area"),O("watch-actions-close")[rb]+O("watch-actions-share")[rb]);L(O("watch-share"),"active");var d=vg("DIV","watch-actions-share",c);L(d,"active");ig(function(){var e=vg("INPUT","watch-actions-share-input",c);e[Nb]();e[Sb]()},0);
b?Gi("shareOpenedFromFlash"):Gi("shareOpenedFromActionBar");il()}},il=function(){var a=O("watch-actions-area-container"),b=vg("DIV","watch-actions-share",a);if(b){a=vg("input","watch-actions-share-input",b);var c=vg("input","watch-actions-share-hd",b);b=(b=vg("input","watch-actions-share-short",b))&&b[zc]?Q("SHARE_URL_SHORT"):Q("SHARE_URL");var d={};if(c&&c[zc])d.hd="1";p(a,Xg(b,d))}},hl=function(){o(O("watch-actions-area"),T("LOADING"));Ok()},Ok=function(){var a=O("watch-actions-area-container"),
b=O("watch-actions-area");M(a,"collapsed");ig(function(){ab(a[B],O("inappropriateMainDiv")?"565px":b[rd]+1+"px")},0)},gl=function(){var a=O("watch-actions-area-container"),b=O("watch-actions-area");L(a,"collapsed");a=["watch-like","watch-unlike","watch-share","watch-embed","watch-flag"];for(var c=0;c<a[w];++c){var d=O(a[c]);d&&M(d,"active")}o(b,T("LOADING"))},jl=function(a,b,c){var d=xg(a,"expander-ajax-link");if(d){var e=P(h,"watch-module-expanded-title-wrapper",a)[0];L(e,"list-action-pending");
var f=O(a.id+"-body");if(c)if(c=Q("SHUFFLE_ENABLED")?"&shuffle="+Q("SHUFFLE_VALUE"):"")d+=c;Lh(d,function(i){o(f,i[pb]);wg(a,"loaded","true");switch(b||1){case 1:if(i=vg(h,"next-list-current",f))Ia(f,i[od]);break;case 2:Ia(f,f[Pb]);break;case 3:break}i=P(h,"watch-module-expanded-title-wrapper",a)[0];M(i,"list-action-pending");if(Q("HAS_ACTIVE_QUICKLIST")||a.id=="watch-passive-QL"){i=O(a.id+"-body");Ad("yt.www.watch.quicklistdragdrop").init(i);i=fe(P("li","edit-list-item",i));for(var k=0;k<i[w];k++)Ad("yt.www.watch.quicklistdragdrop").addQuicklistRow(i[k])}sk()})}},
kl=function(a,b){var c=vg("h3","yt-uix-expander-head",a);pe(c,"yt-rounded-bottom");if(!xg(a,"loaded")||xg(a,"loaded")=="false")jl(a,b)},ll=function(a){a=a||"";return a+"&"+Q("XSRF_QL_PAIR")},ml=function(){return Q("HAS_ACTIVE_QUICKLIST")?O("watch-next-list"):O("watch-passive-QL")},nl=function(a){var b=O("subscribeDiv"),c=Ri.c();c[rc](b,"tooltip",a);c.Cf(b);ig(function(){c.Oe(b);c[rc](b,"tooltip","")},6E3)};var ol,pl,ql=function(){var a=Cf("script");za(a,"text/javascript");a.src="http://www.google.com/support/youtube/bin/resource/guide_inproduct.js?v="+Od();m[C][q](a)},rl=function(){ol=j;var a=O("staged-player");W(a);Ef(a);oe(pl,"player-hid",j)},sl=function(a){a=a||Q("GUIDED_HELP_FLOW");var b;if(!(b=ol)){b=O("watch-player");b=!(b?N(b,"flash-player"):j)}if(!b){l.guidedhelp.onFlowDismiss=rl;l.guidedhelp.onFlowLoadFailure=rl;ol=g;if(!(b=O("staged-player"))){b=Cf("div");b.id="staged-player";var c=Cf("img");
c.src=Q("VIDEO_HQ_THUMB");c.id="staged-screenshot";var d=Cf("img");Pa(d,"staged-player-controls");d.src=Nk()?Q("STAGED_WIDE_PLAYER_CONTROLS_URI"):Q("STAGED_PLAYER_CONTROLS_URI");b[q](c);b[q](d);c=Cf("div");c.id="staged-quality-size-controls";b[q](c);c=O("watch-video");W(b);c[q](b);b=b}b=b;O("movie_player").pauseVideo();pl=c=O("watch-player");oe(c,"player-hid",g);V(b)}if(a)Ad("help.guide.loadFlow")(a);else(a=Ad("help.guide.optionallyResume"))&&a()};var tl,vl=function(a,b,c){this.nb=a;if(ul)this.Tc=b;this.qc=c||l;this.Yb=this.qc[A];this.yh=this.Yb[dd][y]("#")[0];this.ae=J(this.Gk,this)},wl=bf&&m.documentMode>=8||cf&&of("1.9.2")||df&&of("532.1"),ul=bf&&!wl;G=vl[x];G.ck=function(a,b){if(this.dd){Eg(this.dd);delete this.dd}if(this.Vc){lg(this.Vc);delete this.Vc}if(a){this.V=this.Oc();if(ul){var c=this.Tc[jc][Bc][C];if(!c||!c[rb])this.wd(this.V)}b||this.nb(this.V);if(wl)this.dd=U(this.qc,"hashchange",this.ae);else this.Vc=jg(this.ae,200)}};
G.Ki=function(){if(ul){var a=this.oi();if(a!=this.V){this.V=a;this.wf(a);this.nb(a)}else{a=this.Oc();if(a!=this.V){this.V=a;this.wd(a);this.nb(a)}}}else{a=this.Oc();if(a!=this.V){this.V=a;this.nb(a)}}};G.Gk=function(){this.Ki()};G.Oc=function(){var a=this.Yb[dd],b=a[v]("#");return b<0?"":a[ed](b+1)};G.wf=function(a){a=this.yh+"#"+a;var b=this.Yb[dd];if(!(b==a||b+"#"==a))Ya(this.Yb,a)};G.oi=function(){var a=this.Tc[jc][Bc][C];return a?Ge(a[rb][ed](1)):""};
G.wd=function(a,b){var c=this.Tc[jc][Bc],d=c[C]?c[C][rb]:"",e="#"+Fe(a);if(d!=e){d=["<title>",Me(b||l[Bc][vc]||""),"</title><body>",e,"</body>"];c[gb]("text/html");c[Eb](d[F](""));c[Nc]()}};G.add=function(a,b,c){this.V=ka(a);ul&&this.wd(a,b);this.wf(a);c||this.nb(this.V)};var xl=Ad("yt.pubsub.instance_")||new Li;Li[x].subscribe=Li[x].Df;Li[x].unsubscribeByKey=Li[x].Pd;Li[x].publish=Li[x].gf;Aa(Li[x],Li[x][dc]);I("yt.pubsub.instance_",xl,void 0);var yl=function(a,b,c){var d=Ad("yt.pubsub.instance_");return d?d.subscribe(a,function(){var e=arguments;ig(function(){b[id](c||yd,e)},0)},c):0},zl=function(){var a=Ad("yt.pubsub.instance_");return a?a.publish[id](a,arguments):j};var Bl=function(a){var b=Al();b.setEnabled[D](b,g,a)},Cl=function(){var a=Al();a.setEnabled[D](a,j)},Al=function(){var a=Ad("yt.history.instance_");if(!a){a=O("legacy-history-iframe");tl=a=new vl(Dl,a);vl[x].setEnabled=vl[x].ck;vl[x].add=vl[x].add;I("yt.history.instance_",tl,void 0)}return a},Dl=function(a){zl("navigate",a)};var El={},Fl={},Gl=function(a){var b=j;if(a in El&&!Fl[a]){K(El[a],function(c){var d=c[0];c=c[1];if(d&&d[jd]=="IMG"){d.onload="";d.src=c;b=g}else b=j});Fl[a]=g}return b};var Hl=function(a,b){za(this,a);Ua(this,b);ua(this,this[Rc])};Pd(Hl,Ki);G=Hl[x];G.u=function(){delete this[cc];delete this[Rc];delete this.currentTarget};G.ra=j;G.Za=g;Ra(G,function(){this.ra=g});sa(G,function(){this.Za=j});var Il=function(a,b){a&&this.pa(a,b)};Pd(Il,Hl);G=Il[x];Ua(G,h);pa(G,h);G.offsetX=0;G.offsetY=0;Ea(G,0);Fa(G,0);G.screenX=0;G.screenY=0;G.button=0;ya(G,0);wa(G,0);G.ctrlKey=j;G.altKey=j;G.shiftKey=j;G.metaKey=j;G.Fj=j;G.D=h;
G.pa=function(a,b){var c=za(this,a[cc]);Ua(this,a[Rc]||a.srcElement);ua(this,b);var d=a.relatedTarget;if(d){if(cf)try{d=d[Cb]&&d}catch(e){d=h}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;pa(this,d);this.offsetX=a.offsetX!==ha?a.offsetX:a.layerX;this.offsetY=a.offsetY!==ha?a.offsetY:a.layerY;Ea(this,a[mc]!==ha?a[mc]:a.pageX);Fa(this,a[nc]!==ha?a[nc]:a.pageY);this.screenX=a[Gb]||0;this.screenY=a[Hb]||0;this.button=a.button;ya(this,a[Qb]||0);wa(this,a.charCode||(c=="keypress"?
a[Qb]:0));this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Fj=We?a.metaKey:a.ctrlKey;this.D=a;delete this.Za;delete this.ra};Ra(G,function(){this.ra=g;if(this.D[Fc])this.D[Fc]();else Da(this.D,g)});var Jl=bf&&!of("8");sa(Il[x],function(){this.Za=j;var a=this.D;if(a[yb])a[yb]();else{Wa(a,j);if(Jl)try{if(a.ctrlKey||a[Qb]>=112&&a[Qb]<=123)ya(a,-1)}catch(b){}}});Il[x].u=function(){Il.z.u[D](this);this.D=h;Ua(this,h);ua(this,h);pa(this,h)};var Kl=function(){},Ll=0;G=Kl[x];G.key=0;G.Ya=j;G.ce=j;G.pa=function(a,b,c,d,e,f){if(Hd(a))this.Re=g;else if(a&&a[ac]&&Hd(a[ac]))this.Re=j;else aa(Error("Invalid listener argument"));this.mb=a;this.ff=b;this.src=c;za(this,d);this.capture=!!e;this.Rc=f;this.ce=j;this.key=++Ll;this.Ya=j};G.handleEvent=function(a){if(this.Re)return this.mb[D](this.Rc||this.src,a);return this.mb[ac][D](this.mb,a)};var Ml=function(a,b){this.Xe=b;this.xa=[];this.Nh(a)};Pd(Ml,Ki);G=Ml[x];G.Cc=h;G.ne=h;G.ub=function(a){this.Cc=a};G.Ka=function(){if(this.xa[w])return this.xa.pop();return this.he()};G.Xa=function(a){this.xa[w]<this.Xe?this.xa[r](a):this.me(a)};G.Nh=function(a){if(a>this.Xe)aa(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.xa[r](this.he())};G.he=function(){return this.Cc?this.Cc():{}};G.me=function(a){if(this.ne)this.ne(a);else if(Hd(a.Ga))a.Ga();else for(var b in a)delete a[b]};
G.u=function(){Ml.z.u[D](this);for(var a=this.xa;a[w];)this.me(a.pop());delete this.xa};var Nl;var Ol=(Nl="ScriptEngine"in yd&&yd.ScriptEngine()=="JScript")?yd.ScriptEngineMajorVersion()+"."+yd.ScriptEngineMinorVersion()+"."+yd.ScriptEngineBuildVersion():"0";var Pl,Ql,Rl,Sl,Tl,Ul,Vl,Wl,Xl,Yl,Zl;
(function(){function a(){return{h:0,P:0}}function b(){return[]}function c(){var S=function(ga){return i[D](S.src,S.key,ga)};return S}function d(){return new Kl}function e(){return new Il}var f=Nl&&!(Qe(Ol,"5.7")>=0),i;Ul=function(S){i=S};if(f){Pl=function(){return k.Ka()};Ql=function(S){k.Xa(S)};Rl=function(){return t.Ka()};Sl=function(S){t.Xa(S)};Tl=function(){return z.Ka()};Vl=function(){z.Xa(c())};Wl=function(){return R.Ka()};Xl=function(S){R.Xa(S)};Yl=function(){return H.Ka()};Zl=function(S){H.Xa(S)};
var k=new Ml(0,600);k.ub(a);var t=new Ml(0,600);t.ub(b);var z=new Ml(0,600);z.ub(c);var R=new Ml(0,600);R.ub(d);var H=new Ml(0,600);H.ub(e)}else{Pl=a;Ql=Bd;Rl=b;Sl=Bd;Tl=c;Vl=Bd;Wl=d;Xl=Bd;Yl=e;Zl=Bd}})();var $l={},am={},bm={},cm={},dm=function(a,b,c,d,e){if(b)if(Ed(b)){for(var f=0;f<b[w];f++)dm(a,b[f],c,d,e);return h}else{d=!!d;var i=am;b in i||(i[b]=Pl());i=i[b];if(!(d in i)){i[d]=Pl();i.h++}i=i[d];var k=Ld(a),t;i.P++;if(i[k]){t=i[k];for(f=0;f<t[w];f++){i=t[f];if(i.mb==c&&i.Rc==e){if(i.Ya)break;return t[f].key}}}else{t=i[k]=Rl();i.h++}f=Tl();f.src=a;i=Wl();i.pa(c,f,a,b,d,e);c=i.key;f.key=c;t[r](i);$l[c]=i;bm[k]||(bm[k]=Rl());bm[k][r](i);if(a[Wb]){if(a==yd||!a.je)a[Wb](b,f,d)}else a[fc](em(b),f);
return c}else aa(Error("Invalid event type"))},fm=function(a,b,c,d,e){if(Ed(b)){for(var f=0;f<b[w];f++)fm(a,b[f],c,d,e);return h}d=!!d;a:{f=am;if(b in f){f=f[b];if(d in f){f=f[d];a=Ld(a);if(f[a]){a=f[a];break a}}}a=h}if(!a)return j;for(f=0;f<a[w];f++)if(a[f].mb==c&&a[f][Bb]==d&&a[f].Rc==e)return gm(a[f].key);return j},gm=function(a){if(!$l[a])return j;var b=$l[a];if(b.Ya)return j;var c=b.src,d=b[cc],e=b.ff,f=b[Bb];if(c[Cc]){if(c==yd||!c.je)c[Cc](d,e,f)}else c.detachEvent&&c.detachEvent(em(d),e);c=
Ld(c);e=am[d][f][c];if(bm[c]){var i=bm[c];de(i,b);i[w]==0&&delete bm[c]}b.Ya=g;e.Ze=g;hm(d,f,c,e);delete $l[a];return g},hm=function(a,b,c,d){if(!d.Zb)if(d.Ze){for(var e=0,f=0;e<d[w];e++)if(d[e].Ya){var i=d[e].ff;i.src=h;Vl(i);Xl(d[e])}else{if(e!=f)d[f]=d[e];f++}La(d,f);d.Ze=j;if(f==0){Sl(d);delete am[a][b][c];am[a][b].h--;if(am[a][b].h==0){Ql(am[a][b]);delete am[a][b];am[a].h--}if(am[a].h==0){Ql(am[a]);delete am[a]}}}},im=function(a,b,c){var d=0,e=a==h,f=b==h,i=c==h;c=!!c;if(e)te(bm,function(t){for(var z=
t[w]-1;z>=0;z--){var R=t[z];if((f||b==R[cc])&&(i||c==R[Bb])){gm(R.key);d++}}});else{a=Ld(a);if(bm[a]){a=bm[a];for(e=a[w]-1;e>=0;e--){var k=a[e];if((f||b==k[cc])&&(i||c==k[Bb])){gm(k.key);d++}}}}return d},em=function(a){if(a in cm)return cm[a];return cm[a]="on"+a},km=function(a,b,c,d,e){var f=1;b=Ld(b);if(a[b]){a.P--;a=a[b];if(a.Zb)a.Zb++;else a.Zb=1;try{for(var i=a[w],k=0;k<i;k++){var t=a[k];if(t&&!t.Ya)f&=jm(t,e)!==j}}finally{a.Zb--;hm(c,d,b,a)}}return Boolean(f)},jm=function(a,b){var c=a[ac](b);
a.ce&&gm(a.key);return c};
Ul(function(a,b){if(!$l[a])return g;var c=$l[a],d=c[cc],e=am;if(!(d in e))return g;e=e[d];var f,i;if(bf){f=b||Ad("window.event");var k=g in e,t=j in e;if(k){if(f[Qb]<0||f.returnValue!=ha)return g;a:{var z=j;if(f[Qb]==0)try{ya(f,-1);break a}catch(R){z=g}if(z||f.returnValue==ha)Wa(f,g)}}z=Yl();z.pa(f,this);f=g;try{if(k){for(var H=Rl(),S=z.currentTarget;S;S=S[E])H[r](S);i=e[g];i.P=i.h;for(var ga=H[w]-1;!z.ra&&ga>=0&&i.P;ga--){ua(z,H[ga]);f&=km(i,H[ga],d,g,z)}if(t){i=e[j];i.P=i.h;for(ga=0;!z.ra&&ga<H[w]&&
i.P;ga++){ua(z,H[ga]);f&=km(i,H[ga],d,j,z)}}}else f=jm(c,z)}finally{if(H){La(H,0);Sl(H)}z.Ga();Zl(z)}return f}d=new Il(b,this);try{f=jm(c,d)}finally{d.Ga()}return f});var lm=function(a,b,c){c=c||"";Sa(l,Xg(a,b||{})+c)},mm=function(a,b){var c=b||{};Ua(c,c[Rc]||a[Rc]||"YouTube");qa(c,c[kb]||600);ab(c,c[pd]||600);var d=c;d||(d={});var e=l;c=typeof a[dd]!="undefined"?a[dd]:ka(a);var f=d[Rc]||a[Rc],i=[];for(var k in d)switch(k){case "width":case "height":case "top":case "left":i[r](k+"="+d[k]);break;case "target":case "noreferrer":break;default:i[r](k+"="+(d[k]?1:0))}k=i[F](",");if(d.noreferrer){if(d=e[gb]("",f,k)){d[Bc][Eb]('<META HTTP-EQUIV="refresh" content="0; url='+
Me(c)+'">');d[Bc][Nc]()}}else d=e[gb](c,f,k);c=d;if(!c)return g;if(!c.opener)c.opener=l;c[Nb]();return j};var Z=function(a,b,c,d,e,f,i){this.Zj=a;this.tb="session_token="+a;if((this.r=b)&&this.r[ub](this.r[w]-1)!="/")this.r+="/";this.$i=c;this.L=d;this.Xc=e;this.ci=f;this.Mk=i;this.Wc=j;this.cc=h;this.sd=[];this.Lc=[];this.xc=[];this.qf={}};I("yt.sharing.AutoShare",Z,void 0);Z[x].Mj=function(a,b){dm(a,"click",this.Fe,j,this);if(a.id)this.qf[a.id]=b;else aa("Connect dialog launch buttons must have an id.")};Z[x].registerConnectDialogLauncher=Z[x].Mj;
Z[x].Fe=function(a){(a=this.qf[a.currentTarget.id])&&this.Ac(a,g)};Z[x].handleConnectService=Z[x].Fe;Z[x].Yh=function(a){a&&this.fa();this.Eb()};Z[x].doOnLoad=Z[x].Yh;Z[x].rh=function(a){this.sd[r](a)};Z[x].addServiceChangedCallback=Z[x].rh;Z[x].mh=function(a){this.Lc[r](a)};Z[x].addGaiaChangedCallback=Z[x].mh;Z[x].kh=function(a){this.xc[r](a)};Z[x].addCanConnectCallback=Z[x].kh;Z[x].Ti=function(){return this.Xc};Z[x].isGaiaUser=Z[x].Ti;
Z[x].Ok=function(){this.tc(this.r+"autoshare?action_link_start=1&root_url="+ca(this.r),{height:660,width:1E3})};Z[x].upgradeToGoogleAccount=Z[x].Ok;Z[x].Pk=function(a,b){this.Xc=a;this.hh();b&&b()};Z[x].upgradeToGoogleAccountDone=Z[x].Pk;Z[x].zi=function(){return this.L};Z[x].getServiceInfo=Z[x].zi;
Z[x].Ac=function(a,b){this.Xc||X(this.r+"autoshare?action_ajax_stats_ping=1&stat=connect_no_google&service="+a,{method:"GET",onComplete:function(){}});for(var c in this.xc)if(!this.xc[c](this,a,b))return;X(this.r+"autoshare?action_ajax_stats_ping=1&stat=connect_has_google&service="+a,{method:"GET",onComplete:function(){}});if(a=="facebook")this.Yd(b);else{this.tc(this.r+"autoshare?action_popup_auth=1&service="+a+"&connect_only="+(b?"True":"False")+"&root_url="+ca(this.r),{height:430,width:860});a==
"buzz"&&Dh("autoshare-info-box",g)}};Z[x].connectService=Z[x].Ac;Z[x].Wi=function(a){X(this.r+"autoshare?action_ajax_stats_ping=1&stat=launch_facebook_onboarding",{method:"GET",onComplete:function(){}});this.Yd(!a,g)};Z[x].launchFacebookOnboarding=Z[x].Wi;
Z[x].Mh=function(a,b,c){var d=!!c;c=J(function(k){if(d)Sa(l[Qc],k[Rc]);else{this.L=k;this.fa();this.Eb()}b&&b()},this);var e=J(function(){b&&b();this.fa()},this),f=d?"display_hybrid_onboarding":"ajax_connect_service",i={};i["action_"+f]=1;i.return_url=a;X(this.r+"autoshare?"+f,{postBody:Wg(i)+"&"+this.tb,onComplete:c,onException:e,json:g})};Z[x].connectServiceDone=Z[x].Mh;Z[x].Vh=function(a){a=="facebook"?this.eh():this.Wd(a)};Z[x].disconnectService=Z[x].Vh;
Z[x].ak=function(a,b){var c=J(function(f){this.L=f;this.fa();this.Eb()},this),d=J(function(){this.fa()},this),e={};e.action_ajax_set_connect_only=1;e.service=a;e.connect_only=b?"True":"False";X(this.r+"autoshare?ajax_set_connect_only",{postBody:Wg(e)+"&"+this.tb,onComplete:c,onException:d,json:g})};Z[x].setConnectOnly=Z[x].ak;
Z[x].Wd=function(a){var b=function(e){this.L=e;this.fa();this.Eb()}.bind(this),c=function(){this.fa()}.bind(this),d={};d.action_ajax_disconnect_service=1;d.service=a;X(this.r+"autoshare?ajax_disconnect_service",{postBody:Wg(d)+"&"+this.tb,onComplete:b,onException:c,json:g})};Z[x]._disconnectService=Z[x].Wd;G=Z[x];G.hh=function(){for(var a in this.Lc)this.Lc[a](this)};G.fa=function(){for(var a in this.sd)this.sd[a](this)};
G.Eb=function(){for(var a in this.L){var b=this.L[a];a=="facebook"&&b.is_connected&&this.fh()}};G.tc=function(a,b){if(this.cc)try{this.cc[Nc]()}catch(c){this.cc=h}this.cc=mm(a,b)};
G.Yd=function(a,b){var c=!!a,d=!!b;this.Wc=g;var e=this.ci,f=ca(this.r+"autoshare?action_popup_end=1&service=facebook&connect_only="+(c?"True":"False")+"&hybrid_onboarding="+(d?"True":"False")),i=ca(this.r+"autoshare?action_popup_end=1&service=facebook&cancel=1"),k="read_stream,offline_access";c||(k=[k,"publish_stream"][F](","));if(d)k=[k,"email"][F](",");this.tc("http://www.facebook.com/login.php?return_session=1&nochrome=1&fbconnect=1&extern=1&connect_display=popup&api_key="+e+"&v=1.0&next="+f+
"&cancel_url="+i+"&req_perms="+ca(k)+"&locale="+this.$i,{height:535,width:530,location:"yes",gl:"yes"})};G.eh=function(){var a=J(function(c){if(c[Yc]){c=Nh(c);this.Xd(Oh(c,"html_content"),"disconnect")}},this);this.Wc=g;var b={};b.action_ajax_facebook_get_disconnect_url=1;X(this.r+"autoshare?ajax_facebook_get_disconnect_url",{postBody:Wg(b)+"&"+this.tb,onComplete:a})};
G.fh=function(){var a=J(function(c){if(c[Yc]){c=Nh(c);this.Xd(Oh(c,"html_content"),"get_permissions_url_and_info")}},this),b={};b.action_ajax_facebook_get_info_url=1;b.facebook_critical=this.Wc?"True":"False";X(this.r+"autoshare?ajax_facebook_get_info_url",{postBody:Wg(b)+"&"+this.tb,onComplete:a})};
G.Xd=function(a,b){var c=O("autoshare-facebook-connect");if(!c){c=Af("DIV");c[Yb]("id","autoshare-facebook-connect");c[Yb]("style","display:none;");m[C][q](c)}var d=O("autoshare-facebook-connect-iframe");d||(d=Af("IFRAME"));d[Yb]("id","autoshare-facebook-connect-iframe");d[Yb]("scrolling","no");d[Yb]("frameborder","0");d[Yb]("allowTransparency","true");d[Yb]("width","1");d[Yb]("height","1");d[Yb]("style","border: none;");d[Yb]("src","http://"+this.Mk+"/ytfb_connect.html?xsrf="+this.Zj+"&base_url="+
this.r+"&tpmethod="+b+"&"+a);c[q](d)};G.gh=function(a,b,c,d,e){this.L.facebook.is_connected=a;this.L.facebook.connected_as=b;this.L.facebook.has_publish=c;this.L.facebook.has_feed=d;this.L.facebook.has_offline=e;this.fa()};Z[x]._facebookUpdateServiceInfo=Z[x].gh;Z[x].Tk=function(){this.Ac("facebook",!this.L.facebook.is_autosharing)};var $=Ad("yt.timing")||{};I("yt.timing",$,void 0);$.Zi=0;$.We=0;$.db=function(a){var b=$.timer||{};b[a]=Od();$.timer=b};
$.fc=function(a,b){var c=a||Q("TIMING_ACTION"),d=$.timer||{},e=d.start,f="",i=[],k="",t="",z="";delete d.start;if($.pt)f="&srt="+$.pt;for(var R in d)i[r](R+"."+n[lb](d[R]-e));d.vr&&d.gv&&i[r]("vl."+n[lb](d.vr-d.gv));if(!d.aft&&d.vr&&d.cl)d.cl>d.vr?i[r]("aft."+n[lb](d.cl-e)):i[r]("aft."+n[lb](d.vr-e));else if(!d.aft&&d.vr)i[r]("aft."+n[lb](d.vr-e));else d.aft||i[r]("aft."+n[lb](d.ol-e));if($.asn)k+="&asn="+$.asn;if($.experiment)t="&e="+$.experiment;if($.addomain){z=$.addomain;z=z[y](".");if(z[w]>1)z=
"&ad="+z[0]}$.timer={};if($.fmt)k+="&fmt="+$.fmt;if($.asv)k+="&asv="+$.asv;if($.plid)k+="&plid="+$.plid;if($.sprot)k+="&sprot="+$.sprot;if($.fv)k+="&fv="+$.fv;if($.manu)k+="&manu="+$.manu;if($.cookieName)k+="&vid="+fh($.cookieName);if(b)for(var H in b)k+="&"+H+"="+b[H];Fi(["http://csi.gstatic.com/csi?v=2&s=youtube&action=",c,f,k,"&rt=",i[F](","),t,z][F](""))};
$.fd=function(){var a=Q("TIMING_ACTION"),b=$.timer||{};if(a&&b.start)if($.wff&&a[v]("ajax")!=-1&&b.vr&&b.cl)$.fc();else if($.wff&&a[v]("ajax")==-1&&b.vr)$.fc();else if(!$.wff&&(b.ol||b.aft))$.fc()};$.Je=function(){$.db("ol");$.fd()};$.Ji=function(a){var b=++$.Zi;typeof a!="undefined"&&a<4&&$.We++;$.We==4&&$.db("tn_c4");b!=1&&b!=5&&b!=10&&b!=20&&b!=30||$.db("tn"+b)};var nm=function(){this.va={}};Pd(nm,Oi);Cd(nm);G=nm[x];G.wa="carousel";G.Wa=function(){this.M("click",this.Gh,"num");this.M("click",this.Hh,"prev");this.M("click",this.Fh,"next")};G.Gh=function(a){if(a){var b=this.ba(a);a=ia(this[xb](a,"carousel-num"),10);if(na(a)||a<0)a=0;this.rd(b,a)}};G.Fh=function(a){a&&this.Vj(this.ba(a))};G.Hh=function(a){a&&this.Wj(this.ba(a))};G.Wj=function(a){if(a){var b=ia(this[xb](a,"carousel-current"),10);if(na(b)||b<0)b=0;this.rd(a,n.max(b-1,0))}};
G.Vj=function(a){if(a){var b=ia(this[xb](a,"carousel-current"),10);if(na(b)||b<0)b=0;var c=ia(this[xb](a,"carousel-slides"),10);if(na(c)||c<0)c=0;this.rd(a,n.min(b+1,c-1))}};G.rd=function(a,b){if(a){var c=this.ti(a),d=this.b("num-current"),e;K(c,function(k){e=this[xb](k,"carousel-num")==b;oe(k,d,e);oe(k,"yt-uix-pager-selected",e)},this);if(c=this.Ai(a)){var f=vg(h,this.b("slide"),c);if(f){var i=b*f[sb]*-1+"px";if(th(f))bb(c[B],i);else va(c[B],i)}}this[rc](a,"carousel-current",b+"")}};
G.ti=function(a){return P(h,this.b("num"),a)};G.Ai=function(a){return vg(h,this.b("slides"),a)};var om=function(){this.va={}};Pd(om,Oi);Cd(om);G=om[x];G.wa="hovercard";G.Wa=function(){this.M("mouseover",this.kd,"target");this.M("mouseout",this.jd,"target")};G.kd=function(a){var b=J(this.ok,this,a);b=ig(b,625);this[rc](a,"hovercard-timer",b[tc]());if(a.alt){this[rc](a,"hovercard-alt",a.alt);a.alt=""}if(a[vc]){this[rc](a,"hovercard-title",a[vc]);Ma(a,"")}};
G.jd=function(a){var b=ia(this[xb](a,"hovercard-timer"),10);kg(b);this.Ni(a);if(b=this[xb](a,"hovercard-alt"))a.alt=b;if(b=this[xb](a,"hovercard-title"))Ma(a,b)};
G.ok=function(a){var b=this.ba(a);if(b){var c=this.b("card"),d=c+Ld(b),e=O(d);if(!e){var f=this.Mb(b);if(f){b=Hh(a);b.y+=a[rd]/2;e=m[Ob]("div");e.id=d;Pa(e,c);va(e[B],b.x+"px");e[B].top=b.y+"px";d=m[Ob]("div");Pa(d,this.b("card-border"));var i=m[Ob]("div");Pa(i,this.b("card-border-arrow"));c=m[Ob]("div");Pa(c,this.b("card-body"));var k=m[Ob]("div");Pa(k,this.b("card-body-arrow"));var t=m[Ob]("div");Pa(t,this.b("card-content"));o(t,f[rb]);c[q](t);d[q](k);d[q](c);e[q](i);e[q](d);m[C][q](e);var z=this.b("card-visible");
ig(function(){L(e,z)},10);i=wf(l);d=yf(m);if(f=e[sb]+10>b.x){b.x+=a[sb];va(e[B],b.x+"px");L(e,this.b("card-flip"))}if(a=(a=e[rd]+b.y>i[pd]+d.y)&&b.y-e[rd]>d.y){b.y-=e[rd];e[B].top=b.y+"px";L(e,this.b("card-reverse"))}if(this.Yc){a=e[bc](g);a.id=e.id+"ie";L(a,this.b("card-ie"));if(d=vg("div",this.b("card-body"),a)){o(d,"");qa(d[B],c[sb]+"px");ab(d[B],c[rd]+"px")}m[C][Ab](a,e);if(c=a.filters["DXImageTransform.Microsoft.Blur"]){c.Enabled=g;if(!f)va(a[B],b.x-c[Mc]+"px");a[B].top=b.y-c[Mc]+"px"}}}}}};
G.Ni=function(a){if(a=this.ba(a)){a=this.b("card")+Ld(a);var b=O(a);b&&m[C][Pc](b);(a=O(a+"ie"))&&m[C][Pc](a)}};G.Mb=function(a){return vg(h,this.b("content"),a)};var pm=function(){this.va={}};Pd(pm,Oi);Cd(pm);G=pm[x];G.wa="overlay";G.Wa=function(){this.M("click",this.nk,"target");this.M("click",this.Le,"close")};
G.nk=function(a){var b=this.ba(a);if(b){var c=this.b("fg");a=O(c);if(!a){var d=this.Mb(b);if(d){a=m[Ob]("div");a.id=c;Pa(a,c);var e=m[Ob]("div");Pa(e,this.b("fg-content"));var f=this.b("bg");c=m[Ob]("div");c.id=f;Pa(c,f);ab(c[B],xf(l)+"px");b=m[Ob]("iframe");b.id=f+"mask";b.frameBorder="0";b.src='javascript:""';Pa(b,f);o(e,d[rb]);d=P("iframe",h,e);K(d,function(i){i.src=this[xb](i,"src")||i.src},this);a[q](e);m[C][q](b);m[C][q](c);m[C][q](a);a[B].marginLeft=a[sb]/-2+"px";a[B].marginTop=a[rd]/-2+"px";
if(this.Yc){d=m[Ob]("div");d.id=a.id+"ie";Pa(d,a[xc]);L(d,this.b("fg-ie"));qa(d[B],a[sb]+"px");ab(d[B],a[rd]+"px");m[C][Ab](d,a);if(e=d.filters["DXImageTransform.Microsoft.Blur"]){e.Enabled=g;d[B].marginLeft=a[sb]/-2-e[Mc]+"px";d[B].marginTop=a[rd]/-2-e[Mc]+"px"}}a=J(this.Le,this);U(c,"click",a);(c=b[jc]&&b[jc][Bc])&&U(c,"click",a)}}}};G.Le=function(){var a=this.b("fg"),b=this.b("bg"),c=O(a);if(c){W(c);m[C][Pc](c)}(a=O(a+"ie"))&&m[C][Pc](a);(a=O(b))&&m[C][Pc](a);(b=O(b+"mask"))&&m[C][Pc](b)};
G.Mb=function(a){return vg(h,this.b("content"),a)};var qm=j,rm=function(){zl("init")},sm=function(){zl("dispose")};var tm=function(a,b,c){if(c=c?O(c):O("messages")){o(P("DIV","yt-alert-content",b)[0],a);c[q](b);M(c,"hidden")}},um=function(a,b){var c=O("error-template")[bc](g);tm(a,c,b)},vm=function(a,b){var c=O("success-template")[bc](g);tm(a,c,b)},wm=function(a){if(a=a?O(a):O("messages")){L(a,"hidden");o(a,"")}},xm=function(a){var b=[];if(a=a?O(a):O("items")){a[lc]("INPUT");K(a[lc]("INPUT"),function(c){c[cc]=="checkbox"&&c[zc]&&b[r](c[u])})}return b};I("yt.www.account.getSelectedItems",xm,void 0);
I("yt.www.account.applySort",function(a){var b=new ri(l[A]),c=b.Aa("sf"),d=b.Aa("sa");d=!d||d==0?j:g;b.cb("sf",a);var e=g;if(c==a)e=!d;e?b.cb("sa",1):b.cb("sa",0);lm(b[tc]())},void 0);I("yt.www.account.applyPage",function(a){var b=new ri(l[A]);b.cb("pi",a);lm(b[tc]())},void 0);I("yt.www.account.applySearch",function(a){var b=new ri(l[A]);b.cb("sq",a);lm(b[tc]())},void 0);I("yt.www.account.applyDisplayMode",function(a){var b=new ri(l[A]);b.cb("dm",a);lm(b[tc]())},void 0);
var ym=function(a){if(a=a?O(a):O("items")){a[lc]("INPUT");K(a[lc]("INPUT"),function(b){if(b[cc]=="checkbox")Ta(b,g)})}},zm=function(a){if(a=a?O(a):O("items")){a[lc]("INPUT");K(a[lc]("INPUT"),function(b){if(b[cc]=="checkbox")Ta(b,j)})}},Am=function(a,b,c){a=O(a);if(N(a,b)){M(a,b);L(a,c)}},Bm=function(a){if(a=O(a)){N(a,"yt-button")&&Am(a,"yt-button","yt-button-disabled");N(a,"yt-button-alt")&&Am(a,"yt-button-alt","yt-button-alt-disabled");N(a,"yt-button-compact")&&Am(a,"yt-button-compact","yt-button-compact-disabled")}};
I("yt.www.account.isButtonEnabled",function(a){a=O(a);return N(a,"yt-uix-button")||N(a,"yt-button")||N(a,"yt-button-alt")||N(a,"yt-button-compact")},void 0);var Dm=function(){Cm("TransportError")};I("yt.www.account.onKeyDownHandler",function(a,b,c){var d;if(l[wd])d=a[Qb];else if(a.which)d=a.which;c(d,b)},void 0);
var Cm=function(a){a=a||T("ERROR_OCCURRED");um(a);Em()},Gm=function(){Fm();M(O("button-addto"),"expanded");M(O("menu-addto"),"hidden");var a=[O("dialog-addto-playlist"),O("dialog-addto-favorites"),O("dialog-addto-quicklist"),O("dialog-addingto-playlist")];K(a,function(b){L(b,"hidden")});Bm("button-addto-playlist");o(O("addto-playlist-checklist"),'<span class="yt-loader">'+T("LOADING_PLAYLISTS")+"</span>");wm("messages-addto-playlist")};I("yt.www.account.closeAddToDropdown",Gm,void 0);
var Fm=function(){Ta(O("all-items-checkbox"),j);zm("videos")},Hm=function(){Ta(O("all-items-checkbox"),g);ym("videos")},Em=function(){Im();Gm()},Im=function(){Fm();M(O("button-new"),"expanded");M(O("menu-new"),"hidden");var a=[O("dialog-new-playlist"),O("dialog-creating-playlist")];K(a,function(b){L(b,"hidden")});Jm()};I("yt.www.account.closeNewDropdown",Im,void 0);
var Jm=function(){var a=O("new-playlist-title-textbox");if(a)p(a,"");wm("messages-new-playlist")},Km=function(){um(T("NO_VIDEOS_SELECTED"))},Lm=function(){um(T("MULTIPLE_VIDEOS_SELECTED"))},Mm=function(){var a=O("dialog-addto-favorites");L(O("button-addto"),"expanded");L(O("menu-addto"),"hidden");M(a,"hidden");a=[O("dialog-addto-playlist"),O("dialog-addto-quicklist")];K(a,function(b){L(b,"hidden")})};
I("yt.www.account.toggleVideoDetails",function(a){var b=O("video-details-"+a);if(N(b,"hidden")){b=O("video-"+a);L(b,"expanded");b=O("video-details-"+a);M(b,"hidden")}else{b=O("video-"+a);M(b,"expanded");b=O("video-details-"+a);L(b,"hidden")}Ih("video-thumb-tiny-"+a)},void 0);I("yt.www.account.onPlayVideos",function(a){Em();wm();Ya(m[A],a)},void 0);I("yt.www.account.extractVideoSetIds",function(a){var b=[];K(a,function(c){b[r](c[y](":")[0])});return b},void 0);
I("yt.www.account.saveUserPrefState",function(){var a=xk.c();a.vb(Y.Vd,O("playlist-details")[B][nd]!="none");a[Ic]()},void 0);I("yt.www.account.onEditVideos",function(a){var b=Q("RETURN_URL")||ca("/my_videos");Em();wm();if(a[w]==0)Km();else a[w]>1?Lm():lm("/my_videos_edit?ns=1&video_id="+a[0]+"&next="+b[tc]())},void 0);I("yt.www.account.onInsightVideos",function(a){Em();wm();if(a[w]==0)Km();else a[w]>1?Lm():lm("/my_videos_insight?v="+a[0])},void 0);
I("yt.www.account.onAnnotateVideos",function(a){a[w]>1?Lm():lm("/my_videos_annotate?v="+a[0])},void 0);I("yt.www.account.updateScr",function(){var a=O("scr");if(a)p(a,"h="+ea[pd]+"&w="+ea[kb]+"&d="+ea.colorDepth)},void 0);var Om=function(a){var b=a[Zb]["new-playlist-title-textbox"][u][s](/\"/g,"'");a=a[Zb].token[u];var c={};c.action_create_playlist=1;c.n=b;c.session_token=a;b=Wg(c);X("/playlist_ajax",{postBody:b,onComplete:function(d){d=qi(d[pb]);var e=d.errors;if(e[w]>0){d=e.pop();um(d,"messages-new-playlist");Nm()}else{d={id:d.response.playlistId,name:d.response.playlistName};vm(T("PLAYLIST_CREATED")+' <a href="/my_playlists?p='+d.id+'">'+Me(d[hc])+"</a>");Im();Ya(m[A],"/my_playlists?p="+d.id+"&ex=1")}},onError:Dm,
json:g})};I("yt.www.account.my.playlists.onNewPlaylistFormSubmitted",function(a){wm("messages-new-playlist");if(a[Zb]["new-playlist-title-textbox"][u]=="")um(T("MUST_SPECIFY_TITLE"),"messages-new-playlist");else{Pm();Om(a)}},void 0);
var Pm=function(){L(O("button-new"),"expanded");L(O("menu-new"),"hidden");M(O("dialog-creating-playlist"),"hidden");var a=[O("dialog-new-playlist")];K(a,function(b){L(b,"hidden")})},Nm=function(){L(O("button-new"),"expanded");L(O("menu-new"),"hidden");M(O("dialog-new-playlist"),"hidden");var a=[O("dialog-creating-playlist")];K(a,function(b){L(b,"hidden")})};I("yt.www.account.my.playlists.showNewPlaylistDialog",Nm,void 0);
var Qm=function(){var a=O("dialog-addto-playlist");L(O("button-addto"),"expanded");L(O("menu-addto"),"hidden");M(a,"hidden");a=Wg({action_list_playlists_by_current_user:1});X("/playlist_ajax",{postBody:a,onComplete:function(b){b=qi(b[pb]);var c=b.errors;if(c[w]>0){for(b=0;b<c[w];b++)um(c[b],"messages-addto-playlist");Qm()}else{c=b.response.playlists;o(O("addto-playlist-checklist"),"");for(b=0;b<c[w];b++){var d=c[b];O("addto-playlist-checklist").innerHTML+='<div><input type="checkbox" value="'+d.playlistId+
'" />'+Me(d.playlistName)+"</div>"}if(b=O("button-addto-playlist")){N(b,"yt-button-disabled")&&Am(b,"yt-button-disabled","yt-button");N(b,"yt-button-alt-disabled")&&Am(b,"yt-button-alt-disabled","yt-button-alt");N(b,"yt-button-compact-disabled")&&Am(b,"yt-button-compact-disabled","yt-button-compact")}}},onError:function(){um(T("ERROR_OCCURRED"),"messages-addto-playlist");Qm()},json:g})};I("yt.www.account.my.playlists.showAddToPlaylistDialog",Qm,void 0);
var Rm=function(a,b){var c={};c.action_add_videos_to_playlists=1;c.v=a[F](",");c.p=b[F](",");c.session_token=Qh("playlist_ajax");c=Wg(c);X("/playlist_ajax",{postBody:c,onComplete:function(d){d=qi(d[pb]).errors;if(d[w]>0){d=d.pop();um(d,"messages-addto-playlist");Qm()}else{if(Q("reloadOnCompletion"))Sa(m,m[A][dd]);vm(T("VIDEOS_ADDED_TO_PLAYLISTS"));Gm()}},onError:Dm,json:g})};
I("yt.www.account.my.playlists.onAddToPlaylistFormSubmitted",function(){var a=xm("addto-playlist-checklist"),b=xm("videos");wm("messages-addto-playlist");if(a[w]==0)um(T("MUST_SELECT_PLAYLIST"),"messages-addto-playlist");else{var c=[];K(b,function(d){c[r](d[y](":")[1])});Sm();Rm(c,a)}},void 0);
var Sm=function(){L(O("button-new"),"expanded");L(O("menu-new"),"hidden");M(O("dialog-addingto-playlist"),"hidden");var a=[O("dialog-addto-playlist"),O("dialog-addto-favorites"),O("dialog-addto-quicklist")];K(a,function(b){L(b,"hidden")})};I("yt.www.account.my.playlists.addVideoToCurrentPlaylist",function(a){Rm([a],[Q("currentPlaylistId")]);gg("reloadOnCompletion",g);Sm()},void 0);I("yt.www.account.my.playlists.onDeletePlaylist",function(a){la(T("ARE_YOU_SURE_DELETE"))&&Tm(a)},void 0);
var Tm=function(a){var b={};b.action_delete_playlist=1;b.p=a;b.session_token=Qh("playlist_ajax");a=Wg(b);X("/playlist_ajax",{postBody:a,onComplete:function(c){c=qi(c[pb]).errors;if(c[w]>0)Cm(c.pop());else{wm();vm(T("PLAYLIST_DELETED_SUCCESS"));lm("/my_playlists")}},onError:Dm,json:g})},Um=function(a){wm();for(var b=0;b<a[w];b++)um(a[b])};
I("yt.www.account.my.playlists.toggleShowRecommendations",function(a,b){if(a){if(Q("fetchRecos")){gg("fetchRecos",j);X("/my_playlists?a=playlist_rec_show&action_recommend=1&p="+b,{method:"GET",update:"playlist_recs"})}V("playlist_recs")}else W("playlist_recs")},void 0);I("yt.www.account.my.playlists.startEditingPosition",function(a){if(!Q("isEditingPosition")){Ih("pos-view-"+a,"pos-edit-"+a);O("pos-edit-"+a)[Nb]()}gg("isEditingPosition",g)},void 0);
I("yt.www.account.my.playlists.finishEditingPosition",function(a,b,c){var d=ia(O("pos-view-"+b)[rb],10);c=ia(c,10);var e=ia(Q("videoListTotal"),10);if(c>e)c=e;if(c<1)c=1;if(d!=c){Ih("pos-edit-"+b,"pos-load-"+b);Vm(a,b,d,c)}else{Ih("pos-edit-"+b,"pos-view-"+b);gg("isEditingPosition",j)}},void 0);
var Vm=function(a,b,c,d){c=new ri(l[A]);var e={};e.action_reorder_playlist_video=1;e.p=a;e.v=b;e.i=d;e.pi=c.Aa("pi")||0;e.ps=c.Aa("ps")||Q("DEFAULT_NUM_RESULTS");e.sf=c.Aa("sf");e.sa=zd(c.Aa("sa"))?1:0;e.sh=Q("sortHeadings")=="True"?1:0;e.dm=c.Aa("dm")||0;e.session_token=Qh("playlist_ajax");a=Wg(e);X("/playlist_ajax",{postBody:a,onComplete:function(){wm("messages-edit-playlist");gg("isEditingPosition",j)},update:"view-drop",onError:Dm})};
I("yt.www.account.my.playlists.removeVideosFromPlaylist",function(a,b){var c={};c.action_remove_videos_from_playlist=1;c.p=a;c.v=b[F](",");c.session_token=Qh("playlist_ajax");c=Wg(c);X("/playlist_ajax",{postBody:c,onComplete:function(d){d=qi(d[pb]).errors;d[w]>0?Cm(d.pop()):l[A][Jc]()},onError:Dm,json:g})},void 0);
I("yt.www.account.my.playlists.showEditPlaylistThumbnail",function(a){if(O("edit-playlist-thumbnail-panel")[B][nd]=="none"){p(O("edit-playlist-thumbnail-page"),"0");Ih(O("edit-playlist-thumbnail-panel"));Wm(a,0,Q("PLAYLIST_THUMBNAIL_PAGESIZE"))}},void 0);
var Wm=function(a,b,c){o(O("edit-playlist-thumbnail-drop"),'<img src="http://s.ytimg.com/yt/img/loader-vfl35975.gif" />');var d={};d.action_list_videos_for_playlist=1;d.p=a;d.pi=b;d.ps=c;d.session_token=Qh("playlist_ajax");b=Wg(d);X("/playlist_ajax",{postBody:b,onComplete:function(e){e=qi(e[pb]);var f=e.errors;if(f[w]>0){wm("messages-edit-playlist");for(e=0;e<f[w];e++)um(f[e],"messages-edit-playlist")}else{wm("messages-edit-playlist");f=e.response.videos;var i=O("edit-playlist-thumbnail-drop");o(i,"");var k=Q("stillImageTemplate");
for(e=0;e<f[w];e++)i.innerHTML+='<a class="edit-playlist-thumbnail" href="#" onClick="yt.www.account.my.playlists.setPlaylistThumbnail(this, \''+a+"', '"+f[e].encrypted_set_video_id+"', '"+f[e].encrypted_id+'\'); return false"><img src="'+k[s]("%videoId%",f[e].encrypted_id)+'" /></a>'}},onError:Dm,json:g})},Xm=function(a,b,c){var d={};d.action_set_playlist_thumbnail=1;d.p=a;d.v=b;d.session_token=Qh("playlist_ajax");b=Wg(d);X("/playlist_ajax",{postBody:b,onComplete:function(e){e=qi(e[pb]).errors;if(e[w]>
0)Um(e);else{e={el:a,Qk:c};wm("messages-edit-playlist");vm(T("PLAYLIST_THUMBNAIL_UPDATED"),"messages-edit-playlist");Ih("edit-playlist-thumbnail-panel");var f=Q("stillImageTemplate");O("playlist-thumbnail-img").src=f[s]("%videoId%",e.Qk)}},onError:Dm,json:g})};I("yt.www.account.my.playlists.onApplyPlaylistThumbnail",function(a){var b=O("edit-playlist-thumbnail-id");if(b[u]!=""){b=b[u][y](":");Xm(a,b[0],b[1])}},void 0);
I("yt.www.account.my.playlists.setPlaylistThumbnail",function(a,b,c,d){b=O("edit-playlist-thumbnail-drop")[lc]("A");K(b,function(e){M(e,"selected")});L(a,"selected");p(O("edit-playlist-thumbnail-id"),[c,d][F](":"))},void 0);I("yt.www.account.my.playlists.nextPlaylistThumbnailPage",function(a){var b=O("edit-playlist-thumbnail-page");if(b){var c=ia(b[u],10);p(b,(c+1)[tc]());Wm(a,c+1,Q("PLAYLIST_THUMBNAIL_PAGESIZE"))}},void 0);
I("yt.www.account.my.playlists.prevPlaylistThumbnailPage",function(a){var b=O("edit-playlist-thumbnail-page");if(b){var c=ia(b[u],10);if(c>0){p(b,(c-1)[tc]());Wm(a,c-1,Q("PLAYLIST_THUMBNAIL_PAGESIZE"))}}},void 0);I("yt.www.account.my.playlists.onUpdatePlaylist",function(a,b,c,d,e,f,i,k){wm("messages-edit-playlist");Ym(a,b,c,d,e,f,i,k)},void 0);
var Ym=function(a,b,c,d,e,f,i,k){var t={};t.action_edit_playlist=1;t.p=a;t.t=b;t.d=c;t.k=d;t.y=e?0:1;t.e=f?1:0;t.v=i?1:0;t.s=k?1:0;t.session_token=Qh("playlist_ajax");a=Wg(t);X("/playlist_ajax",{postBody:a,onComplete:function(z){z=qi(z[pb]).errors;if(z[w]>0)Um(z);else{wm("messages-edit-playlist");vm(T("PLAYLIST_EDITED_SUCCESS"),"messages-edit-playlist");l[A][Jc]()}},onError:Dm,json:g})};
I("yt.www.account.my.playlists.onSharePlaylist",function(a){l[gb]("/share?p="+a,"Share","toolbar=no,width=546,height=485,status=no,resizable=yes,fullscreen=no,scrollbars=no")[Nb]()},void 0);I("yt.www.account.my.quicklist.onAddVideosToQuicklist",function(a){Em();wm();if(a[w]==0)Km();else{Hm();Zm();var b=[];K(a,function(c){b[r](c[y](":")[1])});$m(b)}},void 0);
var Zm=function(){var a=O("dialog-addto-quicklist");L(O("button-addto"),"expanded");L(O("menu-addto"),"hidden");M(a,"hidden");a=[O("dialog-addto-playlist"),O("dialog-addto-favorites")];K(a,function(b){L(b,"hidden")})},$m=function(a){var b={};b.action_add_videos_to_quicklist=1;b.v=a[F](",");b.session_token=Qh("video_ajax");a=Wg(b);X("/video_ajax",{postBody:a,onComplete:function(c){c=qi(c[pb]).errors;if(c[w]>0)Cm(c.pop());else{vm(T("VIDEOS_ADDED_TO_QUICKLIST"));Gm()}},onError:Dm,json:g})};
I("yt.www.account.my.quicklist.onRemoveVideosFromQuicklist",function(a){wm();var b={};b.action_remove_from_queue_json=1;b.v=a[F](",");b.session_token=Qh("watch_queue_ajax");a=Wg(b);X("/watch_queue_ajax",{postBody:a,onComplete:function(){l[A][Jc]()},onError:Dm,json:g})},void 0);I("yt.www.account.my.favorites.onDeleteFavorites",function(a){Em();wm();if(a[w]==0)Km();else if(la(T("SURE_TO_DELETE_FAVORITES"))){vm(T("WAIT_DELETING_FAVORITES"));an(a)}},void 0);var an=function(a){var b={};b.action_remove_videos_from_favorites=1;b.v=a[F](",");b.session_token=Qh("video_ajax");a=Wg(b);X("/video_ajax",{postBody:a,onComplete:function(c){c=qi(c[pb]).errors;if(c[w]>0)Cm(c.pop());else{vm(T("FAVORITES_REMOVED"));l[A][Jc]()}},onError:Dm,json:g})};
I("yt.www.account.my.favorites.onAddVideosToFavorites",function(a){Em();wm();if(a[w]==0)Km();else{Hm();Mm();var b=[];K(a,function(c){b[r](c[y](":")[1])});bn(b)}},void 0);var bn=function(a){var b={};b.action_add_videos_to_favorites=1;b.v=a[F](",");b.session_token=Qh("video_ajax");a=Wg(b);X("/video_ajax",{postBody:a,onComplete:function(c){c=qi(c[pb]).errors;if(c[w]>0)Cm(c.pop());else{vm(T("VIDEOS_ADDED_TO_FAVES"));Gm()}},onError:Dm,json:g})};I("yt.www.account.my.favorites.addVideosToFavorites",bn,void 0);var cn=function(a,b,c,d,e){l.google_ad_client=a;l.google_ad_channel=b;l.google_max_num_ads=c;l.google_ad_output="js";l.google_ad_type="text";l.google_only_pyv_ads=g;if(d){l.google_kw=d;l.google_kw_type="broad"}if(l.dclk_language)l.google_language=l.dclk_language;l.google_ad_request_done=e;m[Eb]('<script language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/script>')},dn=function(){if(l.dclk_language)l.google_language=l.dclk_language;l.google_ad_client="pub-6219811747049371";
l.google_ad_channel="1802068507";l.google_ad_format="300x250_as";l.google_ad_type="text_image";l.google_ad_width=300;l.google_ad_height=250;l.google_alternate_color="FFFFFF";l.google_color_border="FFFFFF";l.google_color_bg="FFFFFF";l.google_color_link="0033CC";l.google_color_text="444444";l.google_color_url="0033CC";m[Eb]('<script language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/script>')},fn=function(){if(!l.ppv_fallback_rendered){en();W("pyv-placeholder");V(l.ppv_fallback_placeholder_id||
"ppv-placeholder");l.ppv_fallback_rendered=g}},en=function(){W(l.pyv_google_ad_collapse_id||"ad_creative_2")},gn=function(a,b,c,d,e){var f=be(b.media_template_data,function(i){return!!i.imageUrl});if(!f)return j;a={video_id:f.videoId,ad_type:a,headline:Oe(b.line1),image_url:f.imageUrl,description1:Oe(b.line2),description2:Oe(b.line3),channel_title:f.channelName,test_mode:(!!e)[tc](),destination_url:Oe(b.url)};X("/pyv?"+Wg(a),{method:"GET",update:c,onComplete:d})},jn=function(){W("ad_creative_2");
Q("PYV_IS_ALLOWED")?cn("ca-youtube-homepage",Q("PYV_AD_CHANNEL")||"",1,Q("PYV_KW")||"",hn):fn()},hn=function(a){var b=O("pyv-placeholder");a[w]==0||!b?fn():gn("homepage",a[0],b,function(){en()})},ln=function(a){if(Q("PYV_IS_ALLOWED")){var b="pyvOnBrowse";if(Q("PYV_CATEGORY"))b+=" pyvBrowse_"+Q("PYV_CATEGORY");cn("ca-youtube-browse",b,1,"",function(c){kn(c,a)})}else dn()},kn=function(a,b){var c=O("pyv-placeholder");!b&&(a[w]==0||!c)?dn():gn(b?"new_browse":"browse",a[0],c,function(){W("ad_creative_1")})},
mn=function(a,b){var c=O(a);if(c){c=P("li","video-list-item",c);K(c,function(d,e){var f=P("a",h,d);K(f,function(i){var k=i[Wc]("href");if(k&&ba(k)[Ib](/\/watch(\?|#!)v=/))i.href+=b?"&pvpos="+e:"&pvnpos="+e})})}};var nn=function(a,b){var c;try{c=typeof a[Oc]=="number"}catch(d){c=j}if(c){a.selectionStart=b;a.selectionEnd=b}else if(bf){c=b;if(a[cc]=="textarea")c=a[u][ed](0,c)[s](/(\r\n|\r|\n)/g,"\n")[w];b=c;c=a.createTextRange();c.collapse(g);c.move("character",b);c[Sb]()}};var on=h,pn=function(){if(O("watch-comments-sigin")){Ya(l[A],O("watch-comments-sigin")[dd]);return j}return g},qn=function(){if(Q("COMMENTS_PPS_CAN_POST_OR_REACT_TO_COMMENT"))return g;return j},sn=function(a){var b=Of(a,"FORM");if(b){L(b,"input-focused");if(!N(b,"input-expanded"))p(a,"");M(b,"input-collapsed");L(b,"input-expanded");V("comments-attach-video")}U(a,"input",rn);U(a,"propertychange",rn)},rn=function(a){tn(a[Rc])},tn=function(a){var b=a[E];a=P(h,"comments-post-count-textbox",b)[0];var c=
P(h,"comments-post-count",b)[0],d=P(h,"comments-textarea",b)[0];b=P(h,"watch-comments-post",b)[0];d=500-d[u][w];p(a,n.max(d,0));if(d<0){Ta(b,g);L(c,"error")}else{Ta(b,j);M(c,"error")}},un=1,wn=function(a){V("comments-loading");var b=O("comments-view"),c={method:"GET",onComplete:function(f){if(f=Oh(f[Yc],"html_content")){o(b,f);b.scrollIntoView()}W("comments-loading");vn();sk()}};un=a;a=Q("VIDEO_ID");var d=Q("COMMENTS_THRESHHOLD"),e=Q("COMMENTS_FILTER");wg(b,"type","everything");X("/watch_ajax?v="+
a+"&action_get_comments=1&p="+un+"&commentthreshold="+d+"&commentfilter="+e+"&commenttype=everything&page_size=10&last_comment_id=",c)},xn=function(a){vn();on=a;var b=O("comments-view"),c=P(h,"content",on)[0];c=c?N(c,"hide-comment"):g;if(!(xg(a,"pending")=="1"||c&&(xg(a,"removed")=="True"||xg(a,"flagged")=="True"))){xg(a,"author-viewing")=="True"||xg(b,"owner-viewing")=="True"?V("watch-comment-remove-link"):W("watch-comment-remove-link");if(xg(b,"owner-viewing")=="True")if(xg(a,"blocked")=="True"){W("watch-comment-block-user");
V("watch-comment-unblock-user")}else{V("watch-comment-block-user");W("watch-comment-unblock-user")}else{W("watch-comment-block-user");W("watch-comment-unblock-user")}if(xg(b,"disallow-ratings")=="True"){W("watch-comment-vote-up");W("watch-comment-vote-down")}else{V("watch-comment-vote-up");V("watch-comment-vote-down")}b=O("comments-actions");M(b,"voted-up");M(b,"voted-down");if(xg(a,"voted")=="1")L(b,"voted-up");else xg(a,"voted")=="-1"&&L(b,"voted-down");M(b,"replying");(c=vg(h,"comments-reply-form",
a))&&c[rb]&&L(b,"replying");Hi(a,6,b,6);L(a,"current")}},vn=function(){O("comments-actions")[B].top="-10000px";on&&M(on,"current")},yn=function(a,b){if(la(T(b?"BLOCK_USER":"UNBLOCK_USER")))X("/link_servlet",{postBody:(b?"":"un")+"block_user=1&"+Q("BLOCK_USER_XSRF")+"&friend_username="+a})},zn=function(){var a=O("captcha_div");if(a){var b=a[E];b[Pc](a);V(b.comment)}},An=function(a){var b=this,c=O("comments-actions"),d=a[cc];a=Nf(a.relatedTarget,function(e){return e===b||e===c},g,6);if(!(!b||a))if(d==
"mouseover")xn(b);else d=="mouseout"&&vn()};var Bn=h,Fn=function(a){var b=Bn;if(b)if(!N(b,"hid"))if(a[nc]>b[od]-160){if(!N(b,"max")){a=Cn(b)?"loaded-active":"loaded-passive";b=!!xg(b,a);Dn(b)}}else N(b,"min")||En()},Hn=function(a){var b=O("quicklist-bar");a[Rc]===b&&Gn(a[Rc])},In=function(a){if(O("quicklist"))a?Dn():En()},Jn=function(){var a=O("quicklist");a&&ne(a,["min","max"],"hid")},En=function(){var a=O("quicklist");a&&ne(a,["hid","max"],"min")},Dn=function(a){var b=O("quicklist");if(b){a||Kn(j,function(){Ln(3)});ne(b,["hid","min"],"max")}},
Gn=function(a){var b=O("quicklist");if(b){N(b,"min")?Dn():En();if(a&&xg(b,"autohide-mode")=="on"){wg(b,"autohide-mode","off");Fg(m,"mousemove",Fn)}}},Mn=function(){var a=O("quicklist");if(a){ne(a,"active","passive");Dn()}},Nn=function(){var a=O("quicklist"),b;if(b=a){b=O("quicklist");b=!!(b&&xg(b,"active-ajax-url"))}if(b){ne(a,"passive","active");Dn()}},Cn=function(a){a=a||O("quicklist");return!!(a&&N(a,"active"))},Kn=function(a,b){var c=!!a,d=O("quicklist");if(d){var e=Cn(),f=N(d,"loading"),i=e?
"loaded-active":"loaded-passive",k=e?"active-ajax-url":"passive-ajax-url";e=e?"quicklist-tray-active":"quicklist-tray-passive";if(c||!f&&!xg(d,i)){L(d,"loading");c=xg(d,k);if(Q("SHUFFLE_ENABLED"))c+="&shuffle="+(Q("SHUFFLE_VALUE")||"");var t=O(e);Lh(c,function(z){o(t,z[pb]);sk();wg(d,i,"true");M(d,"loading");b&&b()})}else b&&b()}},Ln=function(a,b){var c=a||0;if(O("quicklist")){var d=Cn()?"quicklist-tray-active":"quicklist-tray-passive",e=O(d);d=O("quicklist-tray");switch(c){case 0:break;case 1:Xa(d,
0);break;case 2:Xa(d,m[C].dir=="rtl"?-d[Uc]:d[Uc]);break;case 3:if(c=vg("li","quicklist-item-playing",e))Xa(d,m[C].dir=="rtl"?c[Kc]-d[sb]+c[sb]+30:c[Kc]-30);break;case 4:if(b>-1){c=P("li","quicklist-item",e);if(b<c[w]){c=c[b];Xa(d,m[C].dir=="rtl"?c[Kc]-d[sb]+c[sb]+30:c[Kc]-30)}}break}}},On=function(a){var b;if(Q("SHUFFLE_ENABLED")){b=Q("LIST_PLAY_NEXT_URL_WITH_SHUFFLE");b+="&shuffle="+Q("SHUFFLE_VALUE")}else b=Q("LIST_PLAY_NEXT_URL");if(b&&Q("LIST_AUTO_PLAY_ON")){var c=Q("LIST_AUTO_PLAY_VALUE");b+=
c&&!a?"&playnext="+c:"&playnext=1"}return b},Qn=function(){var a=On(g);if(!a)return h;var b=Q("VIDEO_ID"),c=Pn();b=Zd(c,b);if(b<0)return h;b=(b-1)%c[w];if(b<0)b=c[w]-1;return a[s](/v=([a-zA-Z0-9_-]{11})/,"v="+c[b])},Rn=function(){var a=Q("VIDEO_ID"),b=Pn();a=Zd(b,a);if(!(a<0)){b="v="+b[(a+1)%b[w]];if(a=Q("LIST_PLAY_NEXT_URL")){a=a[s](/v=([a-zA-Z0-9_-]{11})/,b);gg("LIST_PLAY_NEXT_URL",a)}if(a=Q("LIST_PLAY_NEXT_URL_WITH_SHUFFLE")){a=a[s](/v=([a-zA-Z0-9_-]{11})/,b);gg("LIST_PLAY_NEXT_URL_WITH_SHUFFLE",
a)}}},Sn=function(a){if(!(a<0)){var b=Cn()?"quicklist-tray-active":"quicklist-tray-passive";if(b=O(b)){b=P("li","quicklist-item",b);if(a<b[w]){var c=b[a],d=0,e=function(){pe(c,"quicklist-item-highlight");d++;d<6&&ig(e,150)};e()}}}},Tn=function(a){M(a,"QLIconImg");M(a,"QLIconImgOver");L(a,"QLIconImgDone");a[vb]();W(a);V(vg("span","quicklist-inlist",a[E]))},Un=function(){var a=ml();if(a)o(O(a.id+"-count"),Pn()[w])},Yn=function(a,b,c,d,e,f,i){if(Vn(b)){if(a=ml()){a=O(a.id+"-body");b=Zd(Pn(),b);var k=
P("li","edit-list-item",a)[b];Ia(a,k[od]);L(k,"video-list-item-highlight");ig(function(){M(k,"video-list-item-highlight")},500)}}else{Wn(b,i);i?Xn(1):Xn(2);Un();Rn();a&&Tn(a);f&&Gi(f)}},Xn=function(a){if(Q("HAS_ACTIVE_QUICKLIST")){var b=O("watch-next-list");b&&!N(b,"yt-uix-expander-collapsed")&&jl(b,a)}else if(b=O("watch-passive-QL")){V(b);if(N(b,"yt-uix-expander-collapsed")){wg(b,"loaded","false");M(b,"yt-uix-expander-collapsed");kl(b,a)}else jl(b,a)}},Pn=function(){var a=fh("watch_queue_new");if(a)return a[y](",");
return[]},Zn=function(a){a=he(a,0,100);(a=a[F](","))?eh("watch_queue_new",a):gh("watch_queue_new")},Vn=function(a){return ce(Pn(),a)},Wn=function(a,b){var c=Pn();b?ie(c,b,0,a):c[r](a);Gi("ql","add=1");Zn(c)},$n=function(a){var b=Pn();a=Zd(b,a);if(a>=0){Yd[qd][D](b,a,1)[w]==1;Gi("ql","delete=1");Zn(b)}return a},ao=function(){Gi("ql","clear=1");Zn([])};var bo=j,co=h,eo=h,fo=h,io=function(){var a=Vg(l[A][db]);if(a.q!=eo)(eo=a.q)?go(a.q,a[fb],a.st):ho()},go=function(a,b,c,d){l.scroll(0,0);p(O("masthead-search-term"),a);jo()||(bo=Nk());try{Mk(j)}catch(e){}var f=Qi.c(),i=O("page"),k=O("pagetop")||O("watch-pagetop-section"),t=O("watch-search"),z=O("footer-container"),R=O("watch-panel"),H=O("watch-branded-actions"),S=ml();if(!jo()){co=Hf(S);L(i,"search-mode");if(cf)L(i,"search-mode-ff");else Q("SEARCH_ON_WATCH_TINY_UI")?L(i,"search-mode-tiny"):L(i,"search-mode-std");
(i=O("movie_player"))&&i.startAutoHideControls&&i.startAutoHideControls();Ef(t);Ef(z);k[q](t);k[q](z);Ef(S);t[q](S);if(H&&R){Ef(H);R[q](H)}if(c=="disco"){L(S,"disco");V(S);f.expand(S)}else W(S)}V(t);V("watch-search-body-loading");W("watch-search-body");ko();o(O("watch-search-options"),"");o(O("watch-search-count"),"");o(O("watch-search-query"),a);a=m[cb].searchForm;try{hk()}catch(ga){}f.collapse(O("watch-video-count"));var Ka=Vg(l[A][db]);if(Q("AJAX_MODE"))if(Ka.v)fo=Ka.v;f={method:"GET",onComplete:function(Ub){var Ba=
Vg(l[A][db]);if(!(Ba.q!=Ka.q||Ba[fb]!=Ka[fb])){Ba=(Ub=Ub[Yc])?Nh(Ub):h;if(Ub&&Ba){Ub=Oh(Ba,"html_content");o(O("watch-search-body"),Ub)}W("watch-search-body-loading");V("watch-search-body");if(O("watch-search-count-hidden"))o(O("watch-search-count"),O("watch-search-count-hidden")[rb]);if(O("watch-search-options-hidden"))o(O("watch-search-options"),O("watch-search-options-hidden")[rb]);W("ad_creative_1");sk()}}};k=a[hd];if(c)k="/"+c;c=Xf(a);c+="&ajax=1";c+="&nocache="+((new Date)[kc]()+ia(n[Vc]()*
1234567,10));if(b)c+="&page="+b;if(d){W("watch-search-body-loading");V("watch-search-body");if(O("watch-search-count-hidden"))o(O("watch-search-count"),O("watch-search-count-hidden")[rb]);if(O("watch-search-options-hidden"))o(O("watch-search-options"),O("watch-search-options-hidden")[rb]);sk()}else X(k+"?"+c,f);lk();ig(kk,100)},jo=function(){return N(O("page"),"search-mode")},lo=0,ko=function(){if(cf)if(jo()){lo&&kg(lo);lo=ig(function(){var a=O("pagetop")||O("watch-pagetop-section"),b=O("content"),
c=l[Lb]?l[Lb]:m[C][Zc],d=b[rd],e=b[B].paddingTop;if(e){e=ia(e[Ib](/([0-9]+)px/)[1],10);d-=e}c=c-d-8;ab(a[B],c+"px");ta(b[B],c+"px")},50)}},mo=function(){var a=Vg(l[A][db]);if(a.q){delete a.q;delete a[fb];if(Q("AJAX_MODE"))a.v=fo;oa(l[A],"#!"+Wg(a));Q("SEARCH_ON_WATCH_MODE")||ho()}else ho()},ho=function(){var a=O("page"),b=O("watch-search"),c=O("footer-container"),d=O("pagetop")||O("watch-pagetop-section"),e=O("content"),f=O("watch-video"),i=O("watch-branded-actions"),k=O("watch-sidebar"),t=ml();if(jo()){M(a,
"search-mode");if(cf)M(a,"search-mode-ff");else Q("SEARCH_ON_WATCH_TINY_UI")?M(a,"search-mode-tiny"):M(a,"search-mode-std");(a=O("movie_player"))&&a.stopAutoHideControls&&a.stopAutoHideControls();ab(d[B],"");ta(e[B],"");W(b);Ef(b);Ef(c);e[q](b);e[q](c);b=co||Gf(k);Ef(t);b[E]&&b[E][Ab](t,b);if(i&&f){Ef(i);f[q](i)}}co=h;bo&&Mk(g);bo=j;if((f=O("watch-next-list"))&&Q("HAS_ACTIVE_QUICKLIST")){M(f,"disco");V(f)}if(f=O("watch-passive-QL")){M(f,"disco");if(!ia(O("watch-passive-QL-count")[rb],10)||Q("HAS_ACTIVE_QUICKLIST"))W(f)}};var no=function(a,b){Yn(h,a,j,"","","disco_add_to_queue_end");if(b){Jg(b);Ig(b)}};var oo=function(a,b,c,d,e,f,i){this.kl=a;this.il=b;this.Ck=this.Ck;this.Zh=d;this.Qi=e;this.Uk=f;this.Vk=i;this.fj="ad_creative_"+a;this.ai="ad_creative_expand_btn_"+a;this.Kh="ad_creative_collapse_btn_"+a;this.Yk="ad_creative_iframe_"+a;this.jl="ad_creative_"+c;this.al="masthead_child_div";this.Wk=Y.Ud;this.ee="HIDDEN_MASTHEAD_ID"};
Oa(oo,{collapse:function(){W(this.fj);this.Qi||W(this.Kh);V(this.ai);var a=xk.c();a.l(this.ee,this.Zh);a[Ic]();Gi("homepage_collapse_masthead_ad")},expand:function(){var a=xk.c();a.l(this.ee,j);a[Ic]();Gi("homepage_expand_masthead_ad");Ya(m[A],m[A][dd])}});var po=j,qo=j;var ro=function(a,b,c){this.Ec=[];this.F=[];this.R=a;this.Sb=b;this.Pa=c;this.Rb=j;this.Fc=[];this.ad="";yl("init",J(this.pa,this))};I("yt.www.home.ModuleHelper",ro,void 0);ro[x].qh=function(a){a&&this.Ec[r](a)};ro[x].addModule=ro[x].qh;G=ro[x];G.pa=function(){this.Sj();this.ca();this.Pa||this.Pi()};G.Sj=function(){this.F=[];K(this.Ec,function(a){O("feedmodule-"+a)&&this.F[r](a)},this)};
G.ca=function(){K(this.F,function(a,b,c){var d=O("mup-"+a),e=O("mdown-"+a);a=O("mclose-"+a);if(d)b==0||this.Sb||this.Pa?L(d,"disabled"):M(d,"disabled");if(e)b==c[w]-1||this.Sb||this.Pa?L(e,"disabled"):M(e,"disabled");if(a)this.Sb||this.Pa?L(a,"disabled"):M(a,"disabled")},this)};G.Pi=function(){var a=O("feed_undo_delete_link");a&&dm(a,"click",J(this.Nk,this));K(this.Ec,function(b){this.Oa(b)},this)};
G.Oa=function(a){var b=function(c,d,e,f){(d=O(d+c))&&dm(d,"click",J(e,f,c))};b(a,"medit-",this.Hf,this);b(a,"mup-",this.jj,this);b(a,"mdown-",this.ij,this);b(a,"mclose-",this.Qj,this);O("feedmodule-"+a);switch(a){case "SUB":(a=O("homepage-exclude-videos-already-watched"))&&dm(a,"click",J(this.Dh,this));break;case "GEO":(a=O("geo-hometown-btn"))&&dm(a,"click",J(this.fk,this));break}};G.Hf=function(a){a=O(a+"-options");Ih(a)};G.Jh=function(a){a=O(a+"-options");Dh(a,j)};ro[x].closeOptionsPane=ro[x].Jh;
G=ro[x];G.jj=function(a){this.Ye(a,g)};G.ij=function(a){this.Ye(a,j)};G.Ye=function(a,b){if(!this.Ge(a)){var c=Zd(this.F,a),d=b?c-1:c+1,e=O("feedmodule-"+a),f=O("feedmodule-"+this.F[d]);if(e&&f){var i=this.F[c];this.F[c]=this.F[d];this.F[d]=i;d==this.F[w]-1?this.of(a,a,"arrow"):this.of(a,this.F[d+1],"arrow");c=f[ic];e[E][Ab](f,e[ic]);f[E][Ab](e,c);this.ca()}}};G.of=function(a,b,c){this.Rb?this.Fc[r]({targetModule:a,pivotModule:b,logging:c}):this.pf(a,b,c)};
G.pf=function(a,b,c){X("/index_ajax"+(c?"?"+c:""),{postBody:["module="+a,"dir=dragdrop","next_module="+b,"session_token="+this.R][F]("&"),onComplete:J(function(){if(this.Fc[w]>0){var d=this.Fc[ib]();this.pf(d.targetModule,d.pivotModule,d.logging)}else this.Rb=j},this),onException:J(function(){this.Rb=j},this)});this.Rb=g};G.Ge=function(a){if(this.Sb||this.Pa){this.Hf(a+"-options");return g}return j};
G.Qj=function(a){if(!this.Ge(a)){X("/index_ajax",{postBody:["remove=true","module="+a,"session_token="+this.R][F]("&")});var b=O("feedmodule-"+a);Dh(b,j);b.id="UNDO-"+b.id;this.mf();this.ca();this.ad=a;Dh("mundo-remove",g)}};G.Nk=function(){var a=this.ad;X("/index_ajax",{postBody:["remove=true&undo=true","module="+a,"session_token="+this.R][F]("&"),onComplete:J(function(){this.ad=""},this)});a="feedmodule-"+a;var b=O("UNDO-"+a);Dh(b,g);b.id=a;this.mf();this.ca();Dh("mundo-remove",j)};
G.hk=function(a,b,c){Dh(a+"-loading-msg",g);b=O(b);b=b[Tc][b[Tc][wc]][u];if(c=="AGG")b*=4;X("/index_ajax",{postBody:["alter=true","module="+a,"num="+b,"session_token="+this.R][F]("&"),onComplete:J(function(d){o(O("feedmodule-"+a),d[pb]);this.Oa(a);this.ca();Dh(a+"-options",g);Dh(a+"-loading-icn",j);Dh(a+"-laoding-msg",j)},this)})};ro[x].setLengthPreference=ro[x].hk;
ro[x].gk=function(a,b){Dh(a+"-options-AGG",j);Dh(a+"-options-SIN",j);Dh(a+"-options-BTH",j);Dh(a+"-options-"+b,g);Dh(a+"-loading-icn",g);Dh(a+"-loading-msg",g);X("/index_ajax",{postBody:["alter=true","module="+a,"ftype="+b,"session_token="+this.R][F]("&"),onComplete:J(function(c){o(O("feedmodule-"+a),c[pb]);this.Oa(a);this.ca();Dh(a+"-options",g);Dh(a+"-loading-icn",j);Dh(a+"-loading-msg",j)},this)})};ro[x].setLayoutPreference=ro[x].gk;
ro[x].fk=function(){var a=["alter=true","module=GEO","loc="+O("geo-hometown")[u],"session_token="+this.R];X("/index_ajax",{postBody:a[F]("&"),onComplete:J(function(b){o(O("feedmodule-GEO"),b[pb]);this.Oa("GEO");this.ca()},this)})};
ro[x].Eh=function(a,b){if(this.Pa)Dh("feed-helptext",g);else{Dh("feed-view-picker",j);Dh("feed-view-loading-msg",g);X("/index_ajax?feedview="+b,{postBody:["alter=true","module="+a,"session_token="+this.R][F]("&"),onComplete:J(function(c){o(O("feedmodule-"+a),c[pb]);this.Oa(a);this.ca()},this)})}};ro[x].changeFeedFilter=ro[x].Eh;ro[x].mf=function(){var a=P("DIV","feedmodule-anchor");this.F=[];K(a,function(b){b=b.id;b[ed](0,5)!="UNDO-"&&b[ed](b[w]-6,b[w])!="-clone"&&this.F[r](b[y]("-")[1])},this)};
ro[x].Yi=function(a){var b=["feedmore=true","module=ALL","end_time="+a,"session_token="+this.R],c=O("feedmore-link-"+a),d=O("feedmore-loading-"+a);L(c,"hid");M(d,"hid");X("/index_ajax?feedmore=true",{postBody:b[F]("&"),onComplete:J(function(e){var f=O("ALL-data");if(f){L(d,"hid");var i=Cf("DIV");o(i,e[pb]);f[q](i)}},this),onError:J(function(){L(d,"hid");M(c,"hid")},this),onException:J(function(){L(d,"hid");M(c,"hid")},this)})};ro[x].loadMoreFeedItems=ro[x].Yi;
ro[x].cj=function(a,b){var c="/index_ajax?delete="+b,d=["xfeedvid="+a,"module=ALL","item_type="+b,"session_token="+this.R],e=g,f=O("feedxm-"+a+"-"+b);if(!f){e=j;f=O("feedxs-"+a+"-"+b)[E]}if(f){var i=f[E];Ef(f);if(e){e=h;for(f=Gf(i);f;){if(f.id&&f.id[Ib](/feeditem-.*-videos/))e=f;f=Hf(f)}if(e){i=Ff(e.previousSibling,j);f=Gf(e);Ef(f);i[E]&&i[E][Ab](f,i)}else e=i;i=0;for(f=Gf(e);f;){i+=1;f=Hf(f)}if(i==0){i=Ff(e.previousSibling,j);Ef(Hf(e));Ef(e);Ef(i)}}}X(c,{postBody:d[F]("&")})};
ro[x].markFeedVideoWatched=ro[x].cj;ro[x].ej=function(a){X("/index_ajax",{postBody:["alter=true&module=SUB","seen="+a,"session_token="+this.R][F]("&"),onComplete:J(function(b){var c=Cf("DIV");o(c,b[pb]);if(b=O("feedmodule-SUB")){b[E].replaceChild(c[Rb],b);this.Oa("SUB");this.ca()}},this)})};ro[x].markSubscriptionVideoWatched=ro[x].ej;
ro[x].Dh=function(){var a=["alter=true","setfilter=True","module=SUB","session_token="+this.R];O("homepage-exclude-videos-already-watched")[zc]==1&&a[r]("filter=True");X("/index_ajax",{postBody:a[F]("&")})};var so=function(){this.S=j;this.Ea=h};I("yt.www.home.Subscriptions",so,void 0);so[x].bk=function(a){this.Ea=a};so[x].setCurrentLink=so[x].bk;so[x].Ci=function(a){if(this.Ea)if(!(O("edit-subscription-bubble")||this.S)){a=P("A","edit-subscription-recent-activity-link",a);if(a[w]!=0){a=a[0];if(this.Ea!=a){this.Ea&&Dh(this.Ea,j);Dh(a,g);this.Ea=a}}}};so[x].handleActivityItemMouseover=so[x].Ci;
so[x].Jk=function(a,b,c,d){if(!this.S){this.S=g;var e=O("edit-subscription-bubble");if(e){Ef(e);this.S=j}else X("/iyt_ajax?action_get_inline_subscription_edit_markup",{postBody:["publisher_id="+c,"publisher_username="+b,"session_token="+d][F]("&"),onComplete:J(function(f){f=Oh(f[Yc],"html_content");var i=Cf("DIV");o(i,f);a[E][E][Ab](i[Rb],a[E][ic]);this.S=j},this),onException:J(function(){this.S=j},this)})}};so[x].toggleInlineSubscriptionEditBubble=so[x].Jk;
so[x].Li=function(a,b,c){if(!this.S){var d=O("edit-subscription-all-activity")[zc],e=O("edit-subscription-uploads-only")[zc],f=O("edit-subscription-unsubscribe")[zc],i="";if(d)i="all_activity";else if(e)i="uploads";else if(f)i="unsubscribe";if(i){this.S=g;X("/ajax_subscriptions?edit_subscription="+b,{postBody:["username="+a,"subscription_level="+i,"session_token="+c][F]("&"),onComplete:J(function(){var k=O("edit-subscription-bubble");Ef(k);i=="unsubscribe"&&this.Oj(a);this.S=j},this),onException:J(function(){this.S=
j},this)})}}};so[x].handleUpdateClick=so[x].Li;so[x].Oj=function(a){var b=O("recent-activity-box");a=P("SPAN","username_"+a,b);for(b=0;b<a[w];b++)Dh(a[b][E],j)};so[x].Ih=function(){var a=O("edit-subscription-bubble");Ef(a)};so[x].closeInlineSubscriptionEditBubble=so[x].Ih;var to=function(a){a[pb]=="block"&&function(){try{for(var b=this;;){if(b[Qc]==b)break;b=b[Qc]}if(b.frameElement!=h)aa("busted")}catch(c){m[Eb]("--\><plaintext style=display:none><!--");l[gb]("/","_top");Sa(top,"/")}}()};if(l!=l.top){var uo=m[Xb];Yg(uo)||X("/roger_rabbit",{postBody:"location="+ca(uo)+"&self="+ca(l[A][dd]),onComplete:to})};var vo=0,wo=h,xo=function(a,b,c,d,e){this.fl=c;this.Ah=a;this.m=b;this.Qa=b[u];this.H=b[u];this.bd=b[u];this.Fa="";this.Qh=h;this.de=Xj(b);this.Y=this.U=this.ab=h;this.$a=-1;this.T=this.g=h;this.Tb=this.bc=0;this.oa=h;this.Zc=/^(zh-(CN|TW)|ja|ko)$/[hb](c);this.lc=this.kc=j;this.Rj=e+"?hl="+c+"&ds="+d+"&client=youtube&hjson=t&jsonp=window.yt.www.suggest2.handleResponse";this.m[Yb]("autocomplete","off");U(this.m,"blur",J(this.oj,this));this.m.onkeyup_original=this.m.onkeyup;U(this.m,"keydown",J(this.sj,
this));U(this.m,"keyup",J(this.tj,this));this.g=Cf("table");this.g.id="completeTable_"+vo++;this.g.cellSpacing=this.g.cellPadding="0";Pa(this.g,"yt-suggest-table");this.na();m[C][q](this.g);this.T=Cf("iframe");this.T.id="yt-suggest-iframe-"+vo++;Pa(this.T,"yt-suggest-iframe");m[C][q](this.T);this.dc();U(l,"resize",J(this.dc,this));this.Zc&&jg(this.Gj,10);this.gc()};G=xo[x];G.oj=function(){this.kc||this.na();this.kc=j};G.Gj=function(){var a=this.m[u];a!=this.Qa&&this.Qc(0);this.Qa=a};
G.te=function(){this.kc=g;this.m[vb]();ig(J(this.Lb,this),10)};G.dc=function(){va(this.g[B],Mj(this.m,"offsetLeft")+"px");this.g[B].top=Mj(this.m,"offsetTop")+this.m[rd]-1+"px";qa(this.g[B],this.m[sb]+"px");va(this.T[B],this.g[B][Db]);this.T[B].top=this.g[B].top;qa(this.T[B],this.g[sb]+"px");ab(this.T[B],this.g[rd]+"px")};G.na=function(){if(this.oa){kg(this.oa);this.oa=h}Gh(this.g,j);Gh(this.T,j)};G.Fd=function(){Gh(this.g,g);Gh(this.T,g);this.dc();this.lc=g};
G.uc=function(){return this.g[B][qc]=="visible"};G.sj=function(a){a=a||l[wd];var b=a[Qb];wo=this;if(b==13&&this.uc()&&this.Fa==this.H&&this.Y){this.na();return j}if(b==27&&this.uc()){this.na();this.hc(this.H);Da(a,g);Wa(a,j);return j}if(!Sj(b))return g;this.Tb++;this.Tb%3==1&&this.Qc(b);return j};G.tj=function(a){a=a||l[wd];var b=a[Qb];!(this.Zc&&Sj(b))&&this.Tb==0&&this.Qc(b);this.Tb=0;if(this.H[w]>0&&this.m.onkeyup_original){this.m.onkeyup_original(a);oe(this.g,"rtl",this.m.dir=="rtl")}return!Sj(b)};
G.Qc=function(a){this.Zc&&Sj(a)&&this.te();if(this.m[u]!=this.Qa||a==39){this.H=this.m[u];this.de=Xj($i)}if(a==40||a==63233)this.nf(this.$a+1);else(a==38||a==63232)&&this.nf(this.$a-1);this.dc();if(this.Fa!=this.H&&!this.oa)this.oa=ig(J(this.na,this),500);this.Qa=this.m[u];this.Qa==""&&!this.ab&&this.gc()};G.te=function(){this.kc=g;this.m[vb]();ig(J(this.Lb,this),10)};G.Lb=function(){this.m[Nb]()};G.qj=function(a){this.m[vb]();this.hc(a.completeString);this.na();this.Ah(a.completeString);return j};
G.hc=function(a){p(this.m,a);this.Qa=a};G.Xj=function(a,b){this.bc++;var c=Cf("script");vf(c,{type:"text/javascript",id:b,charset:"utf-8",src:this.Rj+"&q="+a+"&cp="+this.de});var d=O(b),e=m[lc]("head")[0];d&&e[Pc](d);e[q](c)};G.gc=function(){if(this.bd!=this.H&&this.H){this.Xj(ca(this.H),"jsonpACScriptTagY");this.Lb()}this.bd=this.H;for(var a=100,b=1;b<=(this.bc-2)/2;++b)a*=2;a+=50;this.ab=ig(J(this.gc,this),a);return g};G.mj=function(){this.na();this.Fa="";this.ab&&kg(this.ab);this.ab=h;return j};
G.Hj=function(a){for(var b=this.g[gd],c=b[w]-1;c>=0;--c)this.g.deleteRow(c);var d=0;for(c in a){var e=a[c];if(e){d++;this.wh(e[0],d==1)}}if(b[w]>0){a=this.g[Fb](-1);U(a,"mousedown",J(this.ef,this));b=Cf("td");b.colSpan=2;Pa(a,"yt-suggest-close");c=Cf("span");a[q](b);b[q](c);fk(c,T("SUGGEST_CLOSE"));U(c,"click",J(this.mj,this))}};G.ef=function(a){a=a||l[wd];Ig(a);this.Fd();this.m[Nb]();return Jg(a)};
G.af=function(a){if(!this.lc){if(this.Y)Pa(this.Y,"yt-suggest-unselected");Pa(a,"yt-suggest-selected");this.Y=a;if(this.U)for(a=0;a<this.U[w];a++)if(this.U[a]==this.Y){this.$a=a;break}}};G.rj=function(a,b){var c=b||l[wd];if(this.lc){this.lc=j;this.af(a,c)}};
G.nf=function(a){if(this.Fa==""&&this.H!=""){this.bd="";this.gc()}else if(!(this.H!=this.Fa||!this.ab))if(!(!this.U||this.U[w]<=0))if(this.uc()){var b=this.U[w]-1;if(this.Y)Pa(this.Y,"yt-suggest-unselected");if(a==b||a==-1){this.$a=-1;this.hc(this.H);this.Lb()}else{if(a>b)a=0;else if(a<-1)a=b-1;this.$a=a;this.Y=this.U[zb](a);Pa(this.Y,"yt-suggest-selected");this.hc(this.Y.completeString)}}else this.Fd()};
G.wh=function(a,b){var c=this.g[gd][w];c!=0&&this.g[gd][c-1][xc]=="yt-suggest-close"&&--c;c=this.g[Fb](c);Pa(c,"yt-suggest-unselected");c.completeString=a;U(c,"click",J(this.qj,this,c));U(c,"mouseover",J(this.af,this,c));U(c,"mousemove",J(this.rj,this,c));U(c,"mousedown",J(this.ef,this));var d=Cf("td");fk(d,a);Pa(d,"yt-suggest-left");if(Gj&&wj[hb](a))ta(d[B],"2px");var e=Cf("td");Pa(e,"yt-suggest-right");b&&fk(e,T("SUGGEST_SUGGEST"));if(N(this.g,"rtl")){c[q](e);c[q](d)}else{c[q](d);c[q](e)}};
G.Gi=function(a){this.bc>0&&this.bc--;if(a[0]==this.H){if(this.oa){kg(this.oa);this.oa=h}this.Fa=a[0];this.Qh=a[1];this.Hj(a[1]);this.$a=-1;(this.U=this.g[gd])&&this.U[w]>0?this.Fd():this.na()}};var yo=[];var zo=function(){};Pd(zo,Ki);G=zo[x];G.je=g;G.ac=h;G.yd=function(a){this.ac=a};G.addEventListener=function(a,b,c,d){dm(this,a,b,c,d)};G.removeEventListener=function(a,b,c,d){fm(this,a,b,c,d)};
G.dispatchEvent=function(a){a=a;if(Gd(a))a=new Hl(a,this);else if(a instanceof Hl)Ua(a,a[Rc]||this);else{var b=a;a=new Hl(a[cc],this);Be(a,b)}b=1;var c,d=a[cc],e=am;if(d in e){e=e[d];d=g in e;var f;if(d){c=[];for(f=this;f;f=f.ac)c[r](f);f=e[g];f.P=f.h;for(var i=c[w]-1;!a.ra&&i>=0&&f.P;i--){ua(a,c[i]);b&=km(f,c[i],a[cc],g,a)&&a.Za!=j}}if(j in e){f=e[j];f.P=f.h;if(d)for(i=0;!a.ra&&i<c[w]&&f.P;i++){ua(a,c[i]);b&=km(f,c[i],a[cc],j,a)&&a.Za!=j}else for(c=this;!a.ra&&c&&f.P;c=c.ac){ua(a,c);b&=km(f,c,a[cc],
j,a)&&a.Za!=j}}a=Boolean(b)}else a=g;return a};G.u=function(){zo.z.u[D](this);im(this);this.ac=h};var Ao=yd.window;var Bo=function(a,b,c,d){if(!Ed(a)||!Ed(b))aa(Error("Start and end parameters must be arrays"));if(a[w]!=b[w])aa(Error("Start and end points must be the same length"));this.xb=a;this.$h=b;this.duration=c;this.Zd=d;Va(this,[])};Pd(Bo,zo);var Co={},Do=h,Eo=function(){Ao.clearTimeout(Do);var a=Od();for(var b in Co)Co[b].ke(a);Do=xe(Co)?h:Ao[Ac](Eo,20)},Fo=function(a){a=Ld(a);delete Co[a];if(Do&&xe(Co)){Ao.clearTimeout(Do);Do=h}};G=Bo[x];G.w=0;G.ve=0;G.G=0;G.startTime=h;G.re=h;G.$c=h;
G.play=function(a){if(a||this.w==0){this.G=0;Va(this,this.xb)}else if(this.w==1)return j;Fo(this);this.startTime=Od();if(this.w==-1)this.startTime-=this[Ec]*this.G;this.re=this[ld]+this[Ec];this.$c=this[ld];this.G||this.ob();this.uj();this.w==-1&&this.wj();this.w=1;a=Ld(this);a in Co||(Co[a]=this);Do||(Do=Ao[Ac](Eo,20));this.ke(this[ld]);return g};G.stop=function(a){Fo(this);this.w=0;if(a)this.G=1;this.Qd(this.G);this.xj();this.Ta()};G.u=function(){this.w!=0&&this.stop(j);this.nj();Bo.z.u[D](this)};
G.ke=function(a){this.G=(a-this[ld])/(this.re-this[ld]);if(this.G>=1)this.G=1;this.ve=1E3/(a-this.$c);this.$c=a;Hd(this.Zd)?this.Qd(this.Zd(this.G)):this.Qd(this.G);if(this.G==1){this.w=0;Fo(this);this.pj();this.Ta()}else this.w==1&&this.md()};G.Qd=function(a){Va(this,new Array(this.xb[w]));for(var b=0;b<this.xb[w];b++)this[Xc][b]=(this.$h[b]-this.xb[b])*a+this.xb[b]};G.md=function(){this.ia("animate")};G.ob=function(){this.ia("begin")};G.nj=function(){this.ia("destroy")};G.Ta=function(){this.ia("end")};
G.pj=function(){this.ia("finish")};G.uj=function(){this.ia("play")};G.wj=function(){this.ia("resume")};G.xj=function(){this.ia("stop")};G.ia=function(a){this.dispatchEvent(new Go(a,this))};var Go=function(a,b){Hl[D](this,a);Va(this,b[Xc]);this.x=b[Xc][0];this.y=b[Xc][1];this.ll=b[Xc][2];this.duration=b[Ec];this.G=b.G;this.Xk=b.ve;this.hl=b.w;this.$d=b};Pd(Go,Hl);var Ho=function(a,b,c,d,e){Bo[D](this,b,c,d,e);this.element=a};Pd(Ho,Bo);Ho[x].mc=Bd;Ho[x].md=function(){this.mc();Ho.z.md[D](this)};Ho[x].Ta=function(){this.mc();Ho.z.Ta[D](this)};Ho[x].ob=function(){this.mc();Ho.z.ob[D](this)};var Io=function(a,b,c,d,e){if(typeof b=="number")b=[b];if(typeof c=="number")c=[c];Ho[D](this,a,b,c,d,e);if(b[w]!=1||c[w]!=1)aa(Error("Start and end points must be 1D"))};Pd(Io,Ho);
Io[x].mc=function(){var a=this[Xc][0],b=this[kd][B];if("opacity"in b)b.opacity=a;else if("MozOpacity"in b)b.MozOpacity=a;else if("filter"in b)b.filter=a===""?"":"alpha(opacity="+a*100+")"};Io[x].show=function(){$a(this[kd][B],"")};Io[x].jb=function(){$a(this[kd][B],"none")};var Jo=function(a,b,c){Io[D](this,a,1,0,b,c)};Pd(Jo,Io);Jo[x].ob=function(){this.show();Jo.z.ob[D](this)};Jo[x].Ta=function(){this.jb();Jo.z.Ta[D](this)};var Ko=function(a){this.Mi=a};Pd(Ko,Ki);var Lo=new Ml(0,100);G=Ko[x];G.cd=function(a,b,c,d,e){if(Ed(b))for(var f=0;f<b[w];f++)this.cd(a,b[f],c,d,e);else this.Kj(dm(a,b,c||this,d||j,e||this.Mi||this));return this};G.Kj=function(a){if(this.f)this.f[a]=g;else if(this.qa){this.f=Lo.Ka();this.f[this.qa]=g;this.qa=h;this.f[a]=g}else this.qa=a};G.kf=function(){if(this.f){for(var a in this.f){gm(a);delete this.f[a]}Lo.Xa(this.f);this.f=h}else this.qa&&gm(this.qa)};G.u=function(){Ko.z.u[D](this);this.kf()};
G.handleEvent=function(){aa(Error("EventHandler.handleEvent not implemented"))};var Mo=function(){};Cd(Mo);Mo[x].lj=0;Mo[x].si=function(){return":"+(this.lj++)[tc](36)};Mo.c();var Oo=function(a){this.Ha=a||rf();this.Tj=No};Pd(Oo,zo);Oo[x].Oi=Mo.c();var No=h;G=Oo[x];G.Ob=h;G.Ha=h;G.Na=j;G.Z=h;G.Tj=h;G.hj=h;G.J=h;G.ga=h;G.Fb=h;G.Mf=j;G.ni=function(){return this.Ob||(this.Ob=this.Oi.si())};G.ma=function(){return this.Z};G.ze=function(){return this.La||(this.La=new Ko(this))};G.jk=function(a){if(this==a)aa(Error("Unable to set parent component"));if(a&&this.J&&this.Ob&&this.J.we(this.Ob)&&this.J!=a)aa(Error("Unable to set parent component"));this.J=a;Oo.z.yd[D](this,a)};
G.yd=function(a){if(this.J&&this.J!=a)aa(Error("Method not supported"));Oo.z.yd[D](this,a)};G.aa=function(){return this.Ha};G.Hb=function(){this.Z=this.Ha[Ob]("div")};G.Th=function(a){if(this.Na)aa(Error("Component already rendered"));else if(a){this.Mf=g;if(!this.Ha||this.Ha.o!=qf(a))this.Ha=rf(a);this.Jb(a);this.Kb()}else aa(Error("Invalid element to decorate"))};G.Jb=function(a){this.Z=a};G.Kb=function(){this.Na=g;this.Jc(function(a){!a.Na&&a.ma()&&a.Kb()})};
G.Ic=function(){this.Jc(function(a){a.Na&&a.Ic()});this.La&&this.La.kf();this.Na=j};G.u=function(){Oo.z.u[D](this);this.Na&&this.Ic();if(this.La){this.La.Ga();delete this.La}this.Jc(function(a){a.Ga()});!this.Mf&&this.Z&&Ef(this.Z);this.J=this.hj=this.Z=this.Fb=this.ga=h};G.Mb=function(){return this.Z};G.we=function(a){return this.Fb&&a?ye(this.Fb,a)||h:h};G.Jc=function(a,b){this.ga&&K(this.ga,a,b)};
G.removeChild=function(a,b){if(a){var c=Gd(a)?a:a.ni();a=this.we(c);if(c&&a){var d=this.Fb;c in d&&delete d[c];de(this.ga,a);if(b){a.Ic();a.Z&&Ef(a.Z)}a.jk(h)}}if(!a)aa(Error("Child is not in parent component"));return a};var Po=function(a,b){var c=a?rf(a):b;Oo[D](this,c);this.yj=a||this.aa().o[C];this.$b={}};Pd(Po,Oo);Po[x].qd=g;Po[x].gb=j;var Qo=["position","top","left","width","cssFloat"],Ro=["position","top","left","display","cssFloat","marginTop","marginLeft","marginRight","marginBottom"];G=Po[x];G.Hb=function(){Po.z.Hb[D](this);this.Jb(this.ma())};G.Jb=function(a){Po.z.Jb[D](this,a);L(a,"goog-scrollfloater")};
G.Kb=function(){Po.z.Kb[D](this);if(!this.Ca)this.Ca=this.aa().Hb("div",{style:"visibility:hidden"});var a=this.ma();this.bf=sh(a).y;this.mk(this.qd);this.ze().cd(l,"scroll",this.Rd);this.ze().cd(l,"resize",this.Fi)};G.u=function(){Po.z.u[D](this);delete this.Ca};G.mk=function(a){if(this.qd=a){this.xh();this.Rd()}else this.Id()};G.Rd=function(){if(this.qd){this.aa().o;this.aa().Nb().y>this.bf?this.yk():this.Id()}};
G.yk=function(){if(!this.gb){var a=this.ma();this.aa().o;var b=sh(a).x,c=Bh(a)[kb];this.$b={};te(Qo,function(d){this.$b[d]=a[B][d]},this);te(Ro,function(d){this.Ca[B][d]=a[B][d]||nh(a,d)||mh(a,d)},this);vh(this.Ca,a[sb],a[rd]);kh(a,{left:b+"px",width:c+"px",cssFloat:"none"});a[E].replaceChild(this.Ca,a);this.yj[q](a);if(this.ld()){Na(a[B],"absolute");a[B].setExpression("top",'document.compatMode=="CSS1Compat"?documentElement.scrollTop:document.body.scrollTop')}else{Na(a[B],"fixed");a[B].top="0"}this.gb=
g}};G.Id=function(){if(this.gb){var a=this.ma();for(var b in this.$b)a[B][b]=this.$b[b];this.ld()&&a[B].removeExpression("top");this.Ca[E].replaceChild(a,this.Ca);this.gb=j}};G.Fi=function(){this.Id();var a=this.ma();this.bf=sh(a).y;this.Rd()};G.ld=function(){return bf&&!(of("7")&&this.aa().Qb())};G.xh=function(){if(this.ld()){var a=this.aa().o;a=ph(a);if(a[cd].backgroundImage=="none"){Za(a[B],this.aa().Pc()[A].protocol=="https:"?"url(https:///)":"url(about:blank)");a[B].backgroundAttachment="fixed"}}};var So=function(){this.a=O;this.ea=P;this.console=l[fd];this.cf=j};So[x].pa=function(){this.qc=l;U(this.qc,"load",J(this.Xi,this))};So[x].init=So[x].pa;G=So[x];
G.Xi=function(){var a=this.a("vm-playlist-copy-to");if(a)Ta(a,g);var b=this.a("vm-playlist-remove-videos");if(b)Ta(b,g);this.lf();U(a,"click",J(this.Ik,this));a=this.a("vm-playlist-search-field");U(a,"click",J(this.Ke,this));U(a,"blur",J(this.Ke,this));U(a,"keyup",J(this.Ii,this));U(this.a("vm-videos-copyto-cancel"),"click",J(this.pb,this));U(this.a("vm-playlist-copy-to-submit"),"click",J(this.Di,this));U(this.a("vm-new-playlist"),"click",J(this.Lk,this));U(this.a("vm-new-playlist-save"),"click",
J(this.$e,this));U(this.a("vm-new-playlist-cancel"),"click",J(this.nd,this));U(this.a("vm-video-select-all"),"click",J(this.Uj,this));U(this.a("vm-playlist-video-list-ol"),"click",J(this.Wh,this));this.ue=new Po;this.ue.Th(this.a("vm-video-actions-bar"));U(l,"scroll",J(this.Hi,this))};G.Hi=function(){var a=this.a("vm-floater-shadow");if(this.ue.gb){V(a);this.pb()}else W(a)};G.Wh=function(a){if(N(a[Rc],"video-checkbox"))this.Md();else{var b=Of(a[Rc],"button");b&&N(b,"vm-playlist-edit-video")&&this.Lj(a)}};
G.Uj=function(a){var b=this.ea("input","video-checkbox"),c=a[Rc][zc]?g:j;K(b,function(d){Qa(d,c)},this);this.Md()};G.Ii=function(){var a=De(this.a("vm-playlist-search-field")[u]);if(this.cf){var b=this.ea("span","vm-playlist-copyto-title",this.a("vm-videos-copyto-dialog"));K(b,function(c){var d=Mf(c);$a(Of(c,"li")[B],d[ud]()[v](a[ud]())==-1?"none":"")},this)}};
G.Ke=function(a){var b=this.a("vm-playlist-search-field"),c=T("VM_SEARCH_PLAYLISTS");if(a[cc]=="click"&&b[u]==c)p(b,"");else if(a[cc]=="blur"&&b[u]==""){p(b,c);b[vb]()}};G.Md=function(){var a=[this.a("vm-playlist-copy-to"),this.a("vm-playlist-remove-videos"),this.a("vm-playlist-delete-videos")];this.Ce()[w]>0?this.rf(a,j):this.rf(a,g)};G.rf=function(a,b){K(a,function(c){if(c)Ta(c,b)})};G.Lk=function(a){var b=this.a("vm-dialog-new-playlist");Eh(b)?this.nd():this.uk(a)};
G.uk=function(a){var b=this.a("vm-dialog-new-playlist");if(b[B][nd]=="none"){this.a("vm-form-new-playlist").reset();V(b);Hi(a[Rc],1,b,0);this.a("vm-new-playlist-title-field")[Nb]()}this.Ne=U(m,"click",J(this.fe,this,this.nd,b.id,"vm-new-playlist"));this.se=U(b,"keydown",J(this.Uh,this))};G.Uh=function(a){a[Qb]==13&&this.$e()};
G.$e=function(){var a=this.a("vm-new-playlist-title-field");if(/^[\s\xa0]*$/[hb](a[u])){a[Nb]();this.jc(T("VM_MUST_SPECIFY_TITLE"),"vm-new-playlist-notifs",g)}else{If(this.a("vm-new-playlist-save"),T("VM_ADDTO_CREATING"));this.rk(T("VM_PLAYLIST_CREATING"),"vm-new-playlist-notifs",g);this.Oh()}};
G.Oh=function(){var a=this.a("vm-new-playlist-title-field")[u][s](/\"/g,"'"),b=this.a("vm-new-playlist-desc-field")[u],c=this.a("vm-new-playlist-tags-field")[u];this.sb({servlet:"/playlist_ajax",postData:{action_create_playlist:1,n:a,d:b,k:c},onComplete:J(this.vj,this)})};
G.vj=function(a){a=qi(a[pb]);var b=a.errors;if(b[w]>0){this.Gd(b,"vm-new-playlist-notifs",g);If(this.a("vm-new-playlist-save"),T("VM_CREATE_PLAYLIST"))}else{a=a.response.playlistId;$a(this.a("vm-dialog-new-playlist")[B],"none");a="/my_playlists?p="+a;if((b=Q("numPlaylists"))&&b==30)a+="&playlist_msg=1";lm(a)}};G.Lj=function(a){a=Of(a[Rc],"li");a=Q("currentPlaylistId")?a.id[y](":")[1]:a.id[s](/^vm-video-/,"");lm("/my_videos_edit?ns=1&video_id="+a+"&next="+(Q("RETURN_URL")||ca("/my_videos"))[tc]())};
G.Hd=function(a,b,c){if(c=c?this.a(c):this.a("vm-general-notifs")){var d=P("DIV","yt-alert-content",b)[0];If(d,a);o(c,"");c[q](b);V(b);this.dl=l[Ac](J(function(){this.$d=new Jo(b,750);this.$d.play()},this),8E3)}};G.jc=function(a,b,c){c=this.a(c?"error-small-template":"error-template")[bc](g);this.Hd(a,c,b)};G.rk=function(a,b,c){c=this.a(c?"info-small-template":"info-template")[bc](g);this.Hd(a,c,b)};G.wk=function(a,b,c){c=this.a(c?"success-small-template":"success-template")[bc](g);this.Hd(a,c,b)};
G.qk=function(){this.jc(T("ERROR_OCCURRED"))};G.Gd=function(a,b,c){K(a,function(d){this.jc(d,b,c)},this)};G.yi=function(){var a=this.ea("input","video-checkbox");return $d(a,function(b){return b[zc]})};G.Ce=function(){return ae(this.yi(),function(a){return a[u]})};G.bi=function(a){return ae(a,function(b){return b[y](":")[1]})};G.xi=function(){var a=this.ea("input","vm-playlist-copyto-checkbox");return $d(a,function(b){return b[zc]})};G.wi=function(){return ae(this.xi(),function(a){return a[u]})};
G.lf=function(){var a=this.ea("input","video-checkbox");K(a,function(b){if(b[zc])Qa(b,j)});Qa(this.a("vm-video-select-all"),j)};G.Ik=function(a){var b=this.a("vm-videos-copyto-dialog");Eh(b)?this.pb():this.pk(a)};G.pk=function(){var a=this.a("vm-videos-copyto-dialog");if(a[B][nd]=="none"){V(a);Hi(this.a("vm-playlist-copy-to"),1,a,0);Df(this.a("vm-copyto-list"));this.oh();this.ui();this.Me=U(m,"click",J(this.fe,this,this.pb,a.id,"vm-playlist-copy-to"))}};
G.fe=function(a,b,c,d){d=Hg(d);var e=Of(d,h,"vm-dialog");b=e&&e.id==b||d.id==b;e=Of(d,h,"vm-button");!(e&&e.id==c||d.id==c)&&!b&&a[D](this)};G.oh=function(){var a=this.a("vm-copyto-list"),b=Af("li",{id:"vm-copyto-loading"});If(b,T("VM_LOADING_PLAYLISTS"));a[q](b)};G.Pj=function(){Ef(this.a("vm-copyto-loading"))};G.ui=function(){this.sb({servlet:"/playlist_ajax",postData:{action_list_playlists_by_current_user:1},onComplete:J(this.Ij,this)})};
G.Ij=function(a){a=qi(a[pb]);var b=a.errors;if(b[w]>0)this.Gd(b);else{a=a.response.playlists;this.cf=g;this.Pj();b=l[A][Sc]=="/my_quicklist";this.Bc("Favorites","FAVORITES",l[A][Sc]=="/my_favorites");this.Bc("Queue","QUEUE",b);var c=Q("currentPlaylistId");K(a,function(d){var e=j;if(c&&c==d.playlistId)e=g;this.Bc(d.playlistName,d.playlistId,e)},this)}};
G.Bc=function(a,b,c){var d=this.a("vm-playlist-search-template"),e=this.a("vm-copyto-list");d=d[bc](g);d.id="";$a(d[B],"");var f=this.ea("span","vm-playlist-search-template-title",d)[0];If(f,a);M(f,"vm-playlist-search-template-title");L(f,"vm-playlist-copyto-title");c&&L(f,"disabled");f.id=b;a=this.ea("input","vm-playlist-search-template-checkbox",d)[0];p(a,b);Ta(a,c);M(a,"vm-playlist-search-template-checkbox");L(a,"vm-playlist-copyto-checkbox");L(a,"vm-playlist-copyto-"+b);e[q](d)};
G.Di=function(){var a=this.wi();if(a[w]==0)this.jc(T("VM_ADDTO_NONE_SELECTED"),h,g);else{var b=this.a("vm-playlist-copy-to-submit");Ta(b,g);If(b,T("VM_ADDTO_ADDING"));b=this.Ce();b=Q("currentPlaylistId")?this.bi(b):b;var c=j,d=j,e=j;if(ce(a,"FAVORITES")){de(a,"FAVORITES");c=g}if(ce(a,"QUEUE")){de(a,"QUEUE");d=g}if(a[w]>0)e=g;c&&this.th(b);d&&this.vh(b);e&&this.uh(b,a)}};
G.uh=function(a,b){this.sb({servlet:"/playlist_ajax",postData:{action_add_videos_to_playlists:1,v:a[F](","),p:b[F](",")},onComplete:J(this.od,this,"VM_VIDEOS_ADDED_TO_PLAYLISTS")})};G.th=function(a){this.sb({servlet:"/video_ajax",postData:{action_add_videos_to_favorites:1,v:a[F](",")},onComplete:J(this.od,this,"VM_VIDEOS_ADDED_TO_FAVORITES")})};G.vh=function(a){this.sb({servlet:"/video_ajax",postData:{action_add_videos_to_quicklist:1,v:a[F](",")},onComplete:J(this.od,this,"VM_VIDEOS_ADDED_TO_QUEUE")})};
G.sb=function(a){var b=a.servlet,c=a.postData,d=a.noJSON?j:g;c.session_token=Qh(b[y]("/")[1]);c=Wg(c);X(b,{postBody:c,onComplete:a.onComplete,onError:this.qk,json:d})};G.od=function(a,b){var c=qi(b[pb]).errors;if(c[w]>0)this.Gd(c);else{this.wk(T(a),h,g);this.pb();this.lf();this.Md()}c=this.a("vm-playlist-copy-to-submit");if(c.disabled){Ta(c,j);If(c,T("VM_ADDTO_ADD_VIDEOS"))}};
G.pb=function(){var a=this.a("vm-videos-copyto-dialog");if(a[B][nd]!="none"){p(this.a("vm-playlist-search-field"),T("VM_SEARCH_PLAYLISTS"));Ih(a)}this.Me&&Eg(this.Me)};G.nd=function(){var a=this.a("vm-dialog-new-playlist");a[B][nd]!="none"&&Ih(a);this.Ne&&Eg(this.Ne);this.se&&Eg(this.se)};var Uo=function(a){a=a[s](";dc_seed=",";kmyd=watch-channel-brand-div;dc_seed=");W("instream_google_companion_ad_div");W("instream_gut_companion");W("gut_companion");W("google_companion_ad_div");V("ad300x250");V("watch-channel-brand-div");var b=O("ad300x250"),c=n[lb](n[Vc]()*1E4);o(b,['<iframe src="',a,'" name="ifr_300x250ad',c,'" id="ifr_300x250ad',c,'" width="300" height="250" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>'][F](""));To()},Vo=function(a){a=
a[s](";dc_seed=",";kmyd=watch-longform-ad;dc_seed=");W("instream_google_companion_ad_div");W("instream_gut_companion");V("watch-longform-ad");V("watch-longform-text");V("watch-longform-ad-placeholder");var b=O("watch-longform-ad-placeholder"),c=n[lb](n[Vc]()*1E4);o(b,['<iframe src="',a,'" name="ifr_300x60ad',c,'" id="ifr_300x60ad',c,'" width="300" height="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>'][F](""));To()},Wo=function(a){var b=O("watch-longform-ad-placeholder");
if(a){W("instream_google_companion_ad_div");W("instream_gut_companion");V("watch-longform-ad");V("watch-longform-text");V("watch-longform-ad-placeholder");o(b,a)}else W("watch-longform-ad");To()},Xo=function(a,b){var c="watch-channel-brand-div",d="ad300x250",e=300,f=250;if(a=="video"){c="watch-longform-ad";d="watch-longform-ad-placeholder";e=300;f=60;W("instream_google_companion_ad_div")}var i=ma(b);o(O(d),['<iframe name="fw_ad" id="fw_ad" ','width="'+e+'" height="'+f+'" ','marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>'][F](""));
var k=O("fw_ad");k=k[jc]?k[jc]:k.contentDocument[Bc]?k.contentDocument[Bc]:k.contentDocument;e=fa[Gc][ud]();d=e[v]("msie")!=-1;e=e[v]("opera")!=-1;k[Bc][gb]();k[Bc][Eb](i);d||e?ig(function(){k[Bc][Nc]()},7500):k[Bc][Nc]();V(c);To()},Yo=function(){V("watch-channel-brand-div");W("ad300x250");W("gut_companion");ab(O("google_companion_ad_div")[B],"250px");To()},Zo=function(){W("watch-longform-ad");To()},$o=function(){W("watch-channel-brand-div");To()},To=function(){var a=Ad("yt.www.watch.ads.handleAdLoaded");
a&&a[D]()},ap=function(){},bp=function(a){gg("POPOUT_AD_SLOTS",a)},cp=function(){var a=O("watch-longform-popup");Ta(a,g);L(a,"yt-button-disabled")},dp=function(a){var b=O("watch-longform-popup");Ta(b,j);bp(a);M(b,"yt-button-disabled")},ep=function(a){l.google_ad_output="html";if(a){l.google_ad_height="60";l.google_ad_format="300x60_as";l.google_container_id="instream_google_companion_ad_div"}else{l.google_ad_height="250";l.google_ad_format="300x250_as";l.google_container_id="google_companion_ad_div"}},
fp=function(a){if(a){W("watch-longform-ad-placeholder");W("watch-channel-brand-div");W("instream_gut_companion");V("watch-longform-text");V("watch-longform-ad");ab(O("instream_google_companion_ad_div")[B],"60px");V("instream_google_companion_ad_div")}else{W("ad300x250");W("watch-longform-ad");W("gut_companion");V("google_companion_ad_div");V("watch-channel-brand-div");ab(O("google_companion_ad_div")[B],"250px")}To()},gp=function(){W("instream_google_companion_ad_div");W("watch-longform-text");W("watch-longform-ad-placeholder");
To()},hp=function(a){if(a){W("watch-longform-ad-placeholder");W("watch-longform-text");W("instream_google_companion_ad_div");V("watch-longform-text");V("watch-longform-ad");V("instream_gut_companion")}else{W("ad300x250");W("watch-longform-ad");W("google_companion_ad_div");V("watch-channel-brand-div");V("gut_companion")}To()};var ip=["prepage","pagetop","watchsearchclose","contenttop","videoextra","contentbottom","pagebottom","postpage"],jp=j,kp=h,lp=h,mp=function(){return N(O("page"),"watch-needs-rental")},np=function(){var a=l[A][db];if(a[ub](0)=="#")a=a[ub](1)=="!"?a[pc](2):a[pc](1);return a},pp=function(){var a=Vg(l[A][db]);if(a.v==kp)if(!(a.rented&&mp()))return;op();var b=m[lc]("head")[0];a=m[Ob]("script");a.src=m[qb]("www-core-js").src;b[q](a);var c=function(){if(l.yt){var d=m[Ob]("script");ra(d,"yt.www.watch.ajax.init();");
b[q](d)}else l[Ac](c,50)};c()},op=function(){jp=j;$.timer={};$.db("start");lp=ze($.timer);try{sm()}catch(a){}Cl();var b=Ad("yt.pubsub.instance_");b&&b[dc](void 0);Gg();for(b=dg[w]-1;b>=0;b--)kg(dg[b]);dg=[];for(b=eg[w]-1;b>=0;b--)lg(eg[b]);eg=[];b=0;for(var c=ip[w];b<c;++b){var d=O("watch-"+ip[b]+"-section");L(d,"watch-section-loading")}l.scroll(0,0);for(var e in l)if((e in bg||e[v]("google")==0)&&e!="yt")l[e]=ha;bg={};l.yt=ha},qp=function(a,b){var c=a[v](b)+b[w];return a[ed](c,a[v]('"',c))},rp=function(){var a=
Vg(l[A][db]);if(a.v){kp=a.v;var b=j,c=function(){var f=O("movie_player");if(f&&f.loadVideoByFlashvars){b=g;if((f.src||f.movie||"")[v]("watch_as3")!=-1)try{var i={video_id:a.v,ajax_preroll:"12"},k=[];a.feature&&k[r]("f:"+a.feature);a.NR&&k[r]("n:"+a.NR);if(k[w]!=0)i.sdetail=k[F](",");f.loadVideoByFlashvars(i)}catch(t){}}else ig(c,50)};a.v&&ig(c,0);var d=(new Date)[kc]()+ia(n[Vc]()*1234567,10),e="/watch?"+np()+"&ajax=1&nocache="+d;X(e,{method:"GET",onException:function(){Ya(l[A],e)},onError:function(){Ya(l[A],
e)},onComplete:function(f){if(Vg(l[A][db]).v!=a.v)rp();else{var i=f[pb];if(i[v]('id="watch-video-container"')==-1)Ya(l[A],e);else{$.db("art");f=qp(i,'<link id="www-core-css" rel="stylesheet" href="');var k=qp(i,'<script id="www-core-js" src="'),t=/^http:\/\/.*www-core-vfl\d*\.js$/;if(!/^http:\/\/.*www-core-vfl\d*\.css$/[hb](f)||!t[hb](k))Ya(l[A],"/videos");else if(l[A].search[v]("debugjs")==-1&&(f!=O("www-core-css")[dd]||k!=O("www-core-js").src))l[A][Jc](g);else{K(ip,function(H){var S=O("watch-"+
H+"-section");o(S,i[ed](i[v]("<!-- begin "+H+" section --\>"),i[v]("<!-- end "+H+" section --\>")));M(S,"watch-section-loading")});i[v]('<html lang="')!=-1&&m[oc][Yb]("lang",qp(i,'<html lang="'));Pa(m[C],qp(i,'<body class="'));Pa(O("page"),qp(i,'<div id="page" class="'));i[s](/\x3cscript([\s\S]*?)\x3e([\s\S]*?)\x3c\/script/ig,function(H,S,ga){H=m[Ob]("script");var Ka=S[Ib](/src="([\S]*?)"/);if(Ka){if(S[v]('id="www-core-js"')!=-1)return;H.src=Ka[1]}else ra(H,ga);m[lc]("head")[0][q](H)});f=m[Ob]("script");
ra(f,"yt.www.watch.ajax.initReady();");m[lc]("head")[0][q](f);var z=mp(),R=function(){ho();var H=O("movie_player");if(jp&&(z||H&&H.playVideo&&b)){$.db("cl");if((H.src||H.movie||"")[v]("watch_as3")!=-1)if(a.v&&!z){H.onPrerollReady("12");H.playVideo()}try{rm()}catch(S){}}else ig(R,50)};ig(R,0)}}}}})}else Ya(l[A],"/videos")};var sp,tp;var up=["reportConcernResult1","reportConcernResult2","reportConcernResult3","reportConcernResult4","reportConcernResult5","reportConcernResult6","reportConcernResult7"],vp=function(a){X("/watch_ajax?video_id="+a+"&action_get_flag_video_component=1",{method:"GET",onComplete:function(){o(O("inappropriateMsgsDiv"),O("inappropriateMsgs")[rb]);o(O("inappropriateMsgs"),"");V("inappropriateMsgsDiv");wk()},update:"inappropriateVidDiv"})};var wp=function(a){if(Q("SHUFFLE_ENABLED")){var b=Q("LIST_PLAY_NEXT_URL_WITH_SHUFFLE");b+="&shuffle="+Q("SHUFFLE_VALUE")}else b=Q("LIST_PLAY_NEXT_URL");if(b&&Q("LIST_AUTO_PLAY_ON")){var c=Q("LIST_AUTO_PLAY_VALUE");b+=c&&!a?"&playnext="+c:"&playnext=1"}if(b){lm(b);return j}};var xp,yp=j,zp=j,Ap="",Bp={},Cp=function(){return Q("RESUME_COOKIE_NAME")},Dp=function(a,b){var c=Cp();if(!c)return h;var d=fh(c,"")[y](",");d=$d(d,function(e){return 0!=e[v](a)&&e[w]});d[w]>=4&&d[ib]();d[r](a+":"+b);eh(c,d[F](","),1814400)},Ep=function(a){var b=Cp();if(!b)return h;var c=$d(fh(b,"")[y](","),function(d){return 0!=d[v](a)});0==c[w]?gh(b):eh(b,c[F](","),1814400)},Fp=function(a){var b=Cp();if(!b)return h;b=fh(b,"")[y](",");b=$d(b,function(c){return 0==c[v](a)});if(0==b[w])return h;b=
b[0][y](":");if(2!=b[w])return h;return ia(b[1],10)},Gp=function(){var a=O("movie_player"),b=a.getDuration();a=n[ob](a.getCurrentTime());var c=Q("VIDEO_ID");a<=120||a+120>=b?Ep(c):Dp(c,n[ob](a))},Hp=function(a){zp||(xp=a)},Ip=function(){var a=O("movie_player");if(a){var b=Q("SHOW_NEXT_BUTTON");if(b==g)a.showNextButton();else b==j&&a.hideNextButton()}},Jp=function(){wp(g)},Mp=function(a){if(Q("WATCH5")){Kp(a);mo();Mk(a)}else Lp(a,g)},Np=function(a){var b=O("watch-next-list-body-collapsed");oe(b,"hover",
a)},Lp=function(a,b){for(var c=O("baseDiv"),d=Q("WIDE_PLAYER_STYLES"),e=0;e<d[w];++e)oe(c,d[e],a);Dh("masthead-utility-menulink-short",a);Dh("masthead-utility-menulink-long",!a);(c=O("watch-longform-player"))&&c[vb]();if(b){Kp(a);sk()}},Kp=function(a){a?eh("wide","1",-1):eh("wide","0",-1)},Op=function(a,b){var c=b!=h?b:g,d=O("movie_player");d.seekTo(a,g);if(c)if(O("watch-video-container"))l.scroll(0,0);else Ya(l[A],"#movie_player");d.playVideo()},Pp=function(){var a={target:"FullScreenVideo",width:ea.availWidth,
height:ea.availHeight,resizable:g,fullscreen:g};mm("/watch_popup?v="+Q("VIDEO_ID"),a)},Qp=function(a){if(Q("VIDEO_ID")!=a){a={v:a};if(Q("SHUFFLE_ENABLED"))a.shuffle=Q("SHUFFLE_VALUE");if(Q("LIST_AUTO_PLAY_ON"))a.playnext=Q("LIST_AUTO_PLAY_VALUE");var b=Ug(l[A][dd]);if(b){var c=["list","playnext_from","p","a","videos","parent_video"];for(var d in c){var e=c[d];if(b[e])a[e]=b[e]}}lm("/watch",a)}},Sp=function(){var a=Vg(l[A][db]),b=a.t||a.at;if(b){Bp.t=a.t;Bp.at=a.at;return Rp(b)}else return h},Rp=function(a){var b=
0;if(a[v]("h")!=-1){a=a[y]("h");b=a[0]*60*60;a=a[1]}if(a[v]("m")!=-1){a=a[y]("m");b=a[0]*60+b;a=a[1]}if(a[v]("s")!=-1){a=a[y]("s");b=a[0]*1+b}else b=a*1+b;return b},Tp=function(a,b,c){var d=Q("ANALYTICS_ANNOTATIONS_TRACKER");l._gaq[r](function(){d._trackEvent(a,b,c)})},Up=function(){Ya(l[A],"#watch-main-area")},Vp=function(a,b,c,d,e,f,i){if(b)$.fmt=b;if(c)$.asv=c;if(d)$.plid=d;if(e)$.sprot=e;if(f)$.fv=f;if(i)$.manu=i;b=$.timer||{};c=0;for(d=a[w]/2;c<d;c++)b[a[2*c]]=a[2*c+1];$.fd()};var Wp=["watch-share-video-div","watch-share-blog-quick","shareMessageQuickDiv","shareVideoEmailDiv"],Yp=function(){K(Wp,W);V("aggregationServicesDiv");Xp("fewer-options","more-options");Xp("watch-share-services-expanded","watch-share-services-collapsed")},Zp=function(a,b,c,d){var e=Q("LOCALE")||"en_US",f=O(b);a="video_id="+a;if(c=="all"&&e){K(Wp,W);V(f);Xp("more-options","fewer-options");Xp("watch-share-services-collapsed","watch-share-services-expanded");a=a+"&locale="+e+"&action_get_share_video_component=1"}else if(c==
"email"||c=="blog"&&d){if(Eh("watch-share-video-div")){Xp("more-options","fewer-options");Xp("watch-share-services-collapsed","watch-share-services-expanded")}K(Wp,W);V(f);if(c=="email")a+="&action_get_share_message_component=1";else a=a+"&blog_info_id="+d+"&action_get_share_blog_component=1"}V("aggregationServicesDiv");if(Eh(f))if(f.loaded){if(d)if(f.ie!=d){c={method:"GET",update:f};X("/watch_ajax?"+a,c);f.ie=d}}else{c={method:"GET",onComplete:function(){f.loaded=g;if(d)f.ie=d},onException:function(){W(f)},
update:f};X("/watch_ajax?"+a,c)}},aq=function(a,b,c,d){Zp(a,b,c);V("aggregationServicesDiv");Xp("more-options","fewer-options");Xp("watch-share-services-collapsed","watch-share-services-expanded");$p("MORE_SHARING_OPTIONS",a,"",d);return j},$p=function(a,b,c,d){Lh("/sharing_services?"+["name="+ca(a),"v="+b,c?"locale="+c:"",d?d:""][F]("&"))},Xp=function(a,b){W(a);V(b)};var bq=function(a,b){var c=ha;c=b==h?Q("XSRF_TOKEN"):b;var d=m[Ob]("input");d[Yb]("name",Q("XSRF_FIELD_NAME"));d[Yb]("type","hidden");d[Yb]("value",c);a[q](d)},cq=[];var dq=function(a){if(a){a="http://www.youtube.com/watch?v="+Q("VIDEO_ID")+"&layer_token="+a;var b=O("iv_invite_link");if(b){p(b,a);Ta(b,j)}if(b=O("iv_invite_reset"))Ta(b,j);if(b=O("iv_mailto_link")){var c=[],d=0;c[d++]="mailto:";c[d++]="someone@example.com";c[d++]="?";c[d++]="&subject=";c[d++]=ca(T("ANNOTATIONS_SUBJECT"));var e=Q("VIDEO_TITLE");c[d++]=ca(e);c[d++]="&body=";c[d++]=ca(T("ANNOTATIONS_BODY_1"));c[d++]="%0A";c[d++]=ca(T("ANNOTATIONS_BODY_2"));c[d++]="%0A";c[d++]=ca(a);Ya(b,c[F](""))}}};var eq=function(a,b,c){var d=O(a+"reason");if(d)p(d,b);if(a=O(a+"sub_reason"))p(a,c)},hq=function(a,b){var c=O("flag_"+a+"checkbox");if(c)if(!c[zc]){if(c=O(b)){o(c,"- "+T("FLAG_DEFAULT")+" -");fq(c)}gq("flag_"+a)}},fq=function(a){if(a){var b=a.Sh;a=a.Rh;b&&iq(O(b));a&&iq(O(a))}},kq=function(a,b,c,d,e){if(a=O(a)){fq(a);var f=h,i=h;if(d){f=O(d);jq(f)}if(e){i=O(e);jq(i)}var k=h;if(i)k=i;else if(d)k=f;if(a){if(k)o(a,k[rb]);a.Sh=d;a.Rh=e}Gh(c,j);Gh(b,j)}},gq=function(a){for(var b=["MoreInfo1","MoreInfo2",
"MoreInfo3","MoreInfo4","MoreInfo5","MoreInfo6","Error"],c=0;c<b[w];c++){var d=O(a+b[c]);d&&W(d)}},lq=function(a){if(a){p(a.flag_reason,"");p(a.flag_sub_reason,"");p(a.flag_t_secs,"");p(a.flag_t_mins,"");p(a.flag_desc,"");p(a.flag_protected_group,"")}},mq=function(a){if(a){p(a.flag_anno_reason,"");p(a.flag_anno_sub_reason,"");p(a.flag_anno_t_secs,"");p(a.flag_anno_t_mins,"");p(a.flag_anno_desc,"");p(a.flag_anno_protected_group,"")}},nq=function(a,b){if(a==Q("COMPLAINT_REASON_RACIALLY_OR_ETHNICALLY_OFFENSIVE_CONTENT")&&
b==Q("COMPLAINT_SUBREASON_PROMOTES_HATRED"))return g;return j},oq=function(a,b){if(a==Q("COMPLAINT_REASON_GRAPHIC_VIOLENCE")&&b==Q("COMPLAINT_SUBREASON_ADULTS_FIGHTING"))return g;return j},pq=function(a,b){if(a==Q("COMPLAINT_REASON_PORNOGRAPHY_OR_OBSCENITY")&&b==Q("COMPLAINT_SUBREASON_SEXUALLY_SUGGESTIVE"))return g;return j},qq=function(a,b,c,d){var e="";e=a!=""?nq(a,b)?"reportConcernResult3":(a==Q("COMPLAINT_REASON_RACIALLY_OR_ETHNICALLY_OFFENSIVE_CONTENT")&&b==Q("COMPLAINT_SUBREASON_BULLYING")?
g:j)?"reportConcernResult6":oq(a,b)||pq(a,b)?"reportConcernResult2":"reportConcernResult1":nq(c,d)?"reportConcernResult3":oq(c,d)||pq(c,d)?"reportConcernResult2":"reportConcernResult1";Ih(e)},rq=function(a,b,c){var d=O("flag"+a+"_t_mins"),e=O("t_mins"+a);if(d&&e)p(d,e[u]);e=O("flag"+a+"_t_secs");d=O("t_secs"+a);if(e&&d)p(e,d[u]);e=O("flag"+a+"_desc");var f=O("desc"+a);if(e&&d)p(e,f[u]);if(d=O("flag"+a+"_protected_group"))p(d,"");if(nq(b,c))if(b=O("protected_group"+a)){if(b[Tc][b[wc]][u]==""){Ih("flag"+
a+"_Error");return j}if(d)p(d,b[Tc][b[wc]][u])}return g},iq=function(a){if(a){a[B].backgroundColor="";a[B].color=""}},jq=function(a){if(a){a[B].backgroundColor="#6681ba";a[B].color="#fff"}};var sq=function(){var a=xk.c();a.ic(Y.rc,g);a[Ic]();W("watch_page_survey")};l.yt=l.yt||{};I("_gel",O,void 0);I("_hasclass",N,void 0);I("_addclass",L,void 0);I("_removeclass",M,void 0);I("_showdiv",V,void 0);I("_hidediv",W,void 0);I("_ajax",Lh,void 0);I("goog.dom.getElementsByTagNameAndClass",P,void 0);I("goog.dom.getFirstElementChild",Gf,void 0);I("goog.array.forEach",K,void 0);I("goog.array.indexOf",Zd,void 0);I("goog.array.contains",ce,void 0);I("yt.dom.hasAncestor",function(a,b,c){a=O(a);b=O(b);return!!Nf(a,function(d){return d===b},g,c)},void 0);I("yt.setConfig",gg,void 0);
I("yt.getConfig",Q,void 0);I("yt.registerGlobal",hg,void 0);I("yt.setTimeout",ig,void 0);I("yt.setInterval",jg,void 0);I("yt.clearTimeout",kg,void 0);I("yt.clearInterval",lg,void 0);I("yt.setMsg",function(){fg(cg,arguments)},void 0);I("yt.getMsg",T,void 0);I("yt.events.listen",U,void 0);I("yt.events.unlisten",Fg,void 0);I("yt.events.stopPropagation",Ig,void 0);I("yt.events.preventDefault",Jg,void 0);I("yt.events.getTarget",Hg,void 0);I("yt.events.clear",Gg,void 0);I("yt.events.Event",yg,void 0);
sa(yg[x],yg[x][yb]);Ra(yg[x],yg[x][Fc]);I("yt.pubsub.subscribe",yl,void 0);I("yt.pubsub.unsubscribeByKey",function(a){var b=Ad("yt.pubsub.instance_");return b?b.unsubscribeByKey(a):j},void 0);I("yt.pubsub.publish",zl,void 0);I("yt.www.init",rm,void 0);I("yt.www.dispose",sm,void 0);U(l,"load",rm);U(l,"unload",sm);
l.onerror=function(a,b,c){var d=O("www-core-js");if(!(qm||!d||d.src[v]("/debug/")==-1)){a:if(cf){try{eval("(0)()")}catch(e){c=e[Hc][s](/(.*):/g,"")[s](/\n/g,",");break a}c=void 0}else c=c;Gi("jserror","error="+ca(a)+"&script="+ca(b)+"&linenumber="+ca(c)+"&url="+ca(l[A][dd]));qm=g}};var tq=function(a,b){var c=b[u],d="";if($f(c))d="rtl";else $f(c)||(d="ltr");b.dir=d};I("goog.i18n.bidi.isRtlText",$f,void 0);I("goog.i18n.bidi.setDirAttribute",tq,void 0);I("yt.style.toggle",Ih,void 0);
I("yt.style.setDisplayed",Dh,void 0);I("yt.style.isDisplayed",Eh,void 0);I("yt.style.setVisible",Gh,void 0);I("yt.net.ajax.sendRequest",X,void 0);I("yt.net.ajax.getRootNode",Nh,void 0);I("yt.net.ajax.getNodeValue",Oh,void 0);I("yt.net.delayed.register",function(a,b,c){a=O(a);c=c||Ld(a);c in El||(El[c]=[]);El[c][r]([a,b]);Fl[c]=j;return c},void 0);I("yt.net.delayed.load",Gl,void 0);I("yt.net.delayed.markAsLoaded",function(a){if(a in El)Fl[a]=g},void 0);I("goog.dom.forms.getFormDataString",Xf,void 0);
I("yt.uri.buildQueryData",Wg,void 0);I("yt.uri.appendQueryData",Xg,void 0);I("yt.flash.isFlashVersionSupported",Zg,void 0);I("yt.flash.canPlayV8Swf",function(){return Zg(8,0,0)},void 0);I("yt.flash.canPlayV9Swf",function(){return Zg(9,0,0)},void 0);I("yt.flash.canPlayH264Videos",function(){return Zg(9,0,115)},void 0);I("yt.flash.supportsPixelBender",function(){return Zg(10,0,0)},void 0);I("yt.flash.showDivIfVersionNotSupported",function(a,b){Zg(b[0],b[1],b[2])||V(a)},void 0);
I("yt.net.cookies.set",eh,void 0);I("yt.net.cookies.get",fh,void 0);I("yt.net.cookies.remove",gh,void 0);var uq=xk.c();I("yt.UserPrefs",uq,void 0);I("yt.UserPrefs.Flags",Y,void 0);var vq=xk.c().ye;I("yt.UserPrefs.getFlag3",vq,void 0);var wq=xk.c().tf;I("yt.UserPrefs.setFlag3",wq,void 0);I("yt.window.redirect",lm,void 0);I("yt.window.popup",mm,void 0);I("yt.www.displayLoading",function(a){o(O(a),'<img src="http://s.ytimg.com/yt/img/icn_loading_animated-vfl24663.gif">')},void 0);I("SWFObject",Wd,void 0);Wd[x].addParam=Wd[x].Da;
Wd[x].addVariable=Wd[x].I;Wd[x].setAttribute=Wd[x][Yb];Wd[x].write=Wd[x][Eb];Wd[x].useExpressInstall=Wd[x].Kf;Ji(Pi);Ji(nm);Ji(Qi);Ji(om);Ji(pm);Ji(Ri);
I("yt.www.watch.player.write",function(a,b,c,d,e,f,i){e=e||480;var k=f||385,t=i||"#000000",z=7,R=j,H=Q("SWF_URL");i=Q("SWF_ARGS");var S=Q("SWF_EXPRESS_URL");f=Q("SWF_GAM_URL");var ga=Q("SWF_IS_PLAYING_ALL"),Ka=Q("SWF_SET_WMODE"),Ub=Q("SWF_AD_EURL"),Ba=Sp();if(h==Ba&&Cp()){var Kb=Fp(Q("VIDEO_ID"));if(Kb&&Kb>20){Ba=Kb-20;i.resume="1"}}if(b)z=0;else if(c){z=c;R=g}b=new Wd(H,"movie_player",e,k,z,t);R&&S&&b.Kf(S);b.Da("allowFullscreen","true");if(l!=l.top){c=m[Xb][ed](0,128);Yg(c)||(i.framer=ca(c))}for(var xd in i)b.I(xd,
i[xd]);f&&b.I("gam",f);ga||b.I("playnext",0);Ka&&b.Da("wmode","opaque");Ub&&b.I("ad_eurl",Ub);Ba&&b.I("start",Ba);b.I("enablejsapi",1);d&&b.I("jsapicallback",d);b.Da("AllowScriptAccess","always");gg("PLAYER_WRITTEN",b[Eb](a));return b},void 0);
I("onYouTubePlayerReady",function(){yp=g;var a=O("movie_player");a[Wb]("onStateChange","handleWatchPagePlayerStateChange");a[Wb]("onPlaybackQualityChange","onPlayerFormatChanged");a[Wb]("NEXT_CLICKED","yt.www.watch.player.onPlayerNextClicked");a[Wb]("SIZE_CLICKED","yt.www.watch.player.onPlayerSizeClicked");a[Wb]("NEXT_SELECTED","yt.www.watch.player.onPlayerNextSelected");Cp()&&U(l,"beforeunload",Gp);Ip();Vg(l[A][db]).q&&Q("WIDE_PLAYER_STYLES")&&Mk(j);if(a=O("watch-player"))a[B].background="transparent"},
void 0);I("handleWatchPagePlayerStateChange",function(a){if(a==0){Q("LIST_AUTO_PLAY_ON")&&wp();Q("SHOW_SUBSCRIBE_UPSELL")&&nl(T("SUBSCRIBE_UPSELL_MESSAGE"))}},void 0);I("onPlayerFormatChanged",Hp,void 0);I("movie_player_DoFSCommand",function(a){a=="onPlayerFormatChanged"&&Hp(arguments[1])},void 0);I("yt.www.watch.player.enableWideScreen",Lp,void 0);I("yt.www.watch.player.enableVideoQualityDisplay",function(){zp=g;xp&&Hp(xp)},void 0);I("yt.www.watch.player.onPlayerNextClicked",Jp,void 0);
I("yt.www.watch.player.onPlayerSizeClicked",Mp,void 0);I("yt.www.watch.player.onPlayerNextSelected",Np,void 0);I("yt.www.watch.player.seekTo",Op,void 0);I("yt.www.watch.player.openPopup",function(a,b,c){var d=h,e=O("movie_player");a="/watch_popup?v="+a;if(e){a+="&vq="+e.getPlaybackQuality();d=n[lb](e.getCurrentTime());e.stopVideo()}if(Q("POPOUT_AD_SLOTS"))a+="&pop_ads="+Q("POPOUT_AD_SLOTS");if(d&&d>10)a+="#t="+d;mm(a,{width:b,height:c,resizable:g})},void 0);
I("yt.www.watch.player.openFullScreenPopup",Pp,void 0);I("yt.www.watch.player.checkCurrentVideo",Qp,void 0);I("yt.www.watch.player.trackAnnotationsEvent",Tp,void 0);I("yt.www.watch.player.handleShare",Up,void 0);I("yt.www.watch.player.reportTiming",Vp,void 0);I("yt.www.watch.player.processLocationHashSeekTime",Sp,void 0);
I("yt.www.watch.player.handleHashArgumentsOnWatchLoad",function(){var a=Vg(l[A][db]),b=j;if(a.fav){delete a.fav;b=g}if(a.at){delete a.at;b=g}if(a.q){!Q("SEARCH_ON_WATCH_MODE")&&!Q("AJAX_MODE")&&go(a.q,a[fb],a.st);b=g}if(b)oa(l[A],"#!"+Wg(a))},void 0);I("handleEndPreview",function(){O("movie_player").stopVideo();$a(O("watch-player")[B],"none");$a(O("watch-player-rental-still-frame")[B],"block")},void 0);
hg("onYouTubePlayerReady","handleWatchPagePlayerStateChange","onPlayerFormatChanged","movie_player_DoFSCommand","handleEndPreview");jg(function(){if(yp){var a=l[A][db];if(a!=Ap){Ap=a;a=Vg(a);if(a.t&&a.t!=Bp.t){var b=Rp(a.t);Op(b,j)}else if(a.at&&a.at!=Bp.at){b=Rp(a.at);Op(b,j)}Bp=a}}},1E3);I("yt.www.watch.sharing.reset",Yp,void 0);I("yt.www.watch.sharing.shareVideo",Zp,void 0);I("yt.www.watch.sharing.processShareVideo",aq,void 0);
I("yt.www.watch.sharing.handleShareVideo",function(){var a=Q("VIDEO_ID");vk("watch-tab-share");N(O("watch-tab-share"),"watch-tab-sel")&&!Eh("watch-share-video-div")?aq(a,"watch-share-video-div","all"):Yp();Up()},void 0);
I("yt.www.watch.sharing.closeShareVideo",function(){Eh("watch-share-video-div")?Ih("watch-share-video-div"):Ih("shareMessageQuickDiv");Xp("fewer-options","more-options");Xp("watch-share-services-expanded","watch-share-services-collapsed");Ih("shareVideoResult");ig(function(){W("shareVideoResult")},3E3)},void 0);I("yt.www.watch.sharing.logService",$p,void 0);I("yt.www.watch.sharing.hideAndShow",Xp,void 0);
I("yt.www.watch.flagging.report",function(a){K(up,W);vk("watch-tab-flag");if(Q("LOGGED_IN")){V("inappropriateVidDiv");O("inappropriateVidDiv")[rb][ud]()[v]("<div")==-1&&vp(a)}else V("inappropriateMsgsLogin")},void 0);I("yt.www.watch.about.editSubscription",function(a,b,c){uk(a,"username",b,"","",2,ha,ha,g,c)},void 0);I("yt.www.watch.embed.generateEmbed",Fk,void 0);I("yt.www.watch.embed.getEmbedSize",Ek,void 0);
I("yt.www.watch.about.subscribe",function(a,b,c,d,e,f){if(Q("LOGGED_IN")){var i={};if(d)i.show_recommendations=1;if(e)i.show_sub_channels=1;uk(a,b,c,"subscribeDiv","unsubscribeDiv",0,f,i,g)}else{a=O("subscribeLoginInvite");V(a)}},void 0);I("yt.www.watch.about.subscribeWatch5",function(a,b,c,d){if(Q("LOGGED_IN"))uk(a,b,c,"subscribeDiv","editSubscriptionDiv",0,ha,{watch5:g,feature:d});else{a=O("alerts");o(a,'<div id="subscribeMessage">'+O("watch-actions-logged-out")[rb]+"</div>");V(a)}},void 0);
I("yt.www.watch.about.unsubscribe",function(a,b,c,d){uk(a,b,c,"unsubscribeDiv","subscribeDiv",1,d)},void 0);I("yt.www.watch.autoshare.triggerAutosharePromo",function(a){var b=xk.c().ya(Y.sc);if(Q("SHOW_AUTOSHARE")&&!b){V("autoshare-promo-"+a);gg("SHOW_AUTOSHARE",j)}},void 0);I("yt.www.watch.autoshare.dismissAutosharePromo",function(a){var b=xk.c();b.vb(Y.sc,g);b[Ic]();gg("SHOW_AUTOSHARE",j);W("autoshare-promo-"+a);a=P(h,"autoshare-promo");for(b=0;b<a[w];b++)Ef(a[b])},void 0);
I("yt.www.watch.autoshare.initAutoshareWidget",function(a,b,c){sp=b;W("autoshare-widget-"+a);var d=j,e=j;if(b){for(var f in b){var i=P("*","autoshare-widget-service-"+f),k=P("*","autoshare-widget-service-auto-"+f),t=O("autoshare-widget-service-checkbox-"+f);if(b[f].is_connected){K(i,V);d=g;if(b[f].is_autosharing){K(k,V);Qa(t,g);e=g}else{K(k,W);Qa(t,j)}}else{K(i,W);K(k,W);Qa(t,j)}}if(e){V("autoshare-widget-"+a+"-auto");tp=ig(function(){W("autoshare-widget-"+a+"-auto");V("autoshare-widget-"+a+"-auto-sharing")},
7E3)}else if(d){for(f in b)if(b[f].is_connected){t=O("autoshare-widget-service-checkbox-"+f);Qa(t,g)}V("autoshare-widget-"+a+"-oneoff")}else if(Q("SHOW_AUTOSHARE")){V("autoshare-widget-"+a+"-wizard");gg("SHOW_AUTOSHARE",j)}}if(c){p(O("autoshare-widget-"+a+"-message"),c);o(O("autoshare-widget-"+a+"-message-counter"),130-c[w])}V("autoshare-widget-"+a)},void 0);I("yt.www.watch.autoshare.toggleShareToService",function(a){a=O("autoshare-widget-service-checkbox-"+a);Qa(a,!a[zc])},void 0);
I("yt.www.watch.autoshare.updateMessageCount",function(a,b){if(b[u][w]>130)p(b,b[u][mb](0,130));var c=O(b.id+"-counter");if(c)o(c,130-b[u][w]);tq(a,b)},void 0);I("yt.www.watch.autoshare.customizePost",function(a){kg(tp);W("autoshare-widget-"+a+"-auto");V("autoshare-widget-"+a+"-oneoff");if(a=O("autoshare-widget-"+a+"-message")){a[Nb]();a[Sb]()}},void 0);
I("yt.www.watch.autoshare.cancelPost",function(a){kg(tp);W("autoshare-widget-"+a+"-auto");W("autoshare-widget-"+a+"-oneoff");V("autoshare-widget-"+a+"-cancelling");p(O("autoshare-widget-"+a+"-cancelled-input"),"true");var b={method:"POST",postBody:Xf(m[cb]["autoshareWidgetForm-"+a]),onComplete:function(){W("autoshare-widget-"+a+"-cancelling");V("autoshare-widget-"+a+"-cancelled")}};X("/autoshare?action_ajax_share=1&cancelled=1",b)},void 0);
I("yt.www.watch.autoshare.share",function(a){var b=j;for(var c in sp){var d=O("autoshare-widget-service-checkbox-"+c),e=P("*","autoshare-widget-service-auto-"+c);if(d[zc]){K(e,V);b=g}else K(e,W)}if(b){W("autoshare-widget-"+a+"-auto");W("autoshare-widget-"+a+"-oneoff");V("autoshare-widget-"+a+"-sharing");b={method:"POST",postBody:Xf(m[cb]["autoshareWidgetForm-"+a]),onComplete:function(){W("autoshare-widget-"+a+"-sharing");V("autoshare-widget-"+a+"-shared")}};X("/autoshare?action_ajax_share=1",b)}else alert("No services selected.")},
void 0);I("yt.www.watch.ads.handleSetCompanion",Uo,void 0);I("yt.www.watch.ads.handleSetCompanionForInstream",Vo,void 0);I("yt.www.watch.ads.handleSetCompanionForLongform",Wo,void 0);I("yt.www.watch.ads.handleSetCompanionForFreewheel",Xo,void 0);I("yt.www.watch.ads.handleHideCompanion",Yo,void 0);I("yt.www.watch.ads.handleHideCompanionForInstream",Zo,void 0);I("yt.www.watch.ads.disablePopoutButton",cp,void 0);I("yt.www.watch.ads.enablePopoutButton",dp,void 0);
I("yt.www.watch.ads.handleCloseMpuCompanion",$o,void 0);I("yt.www.watch.ads.handleAdLoaded",ap,void 0);I("yt.www.watch.ads.updatePopoutAds",bp,void 0);I("yt.www.watch.ads.handleSetAfvCompanionVars",ep,void 0);I("yt.www.watch.ads.handleShowAfvCompanionAdDiv",fp,void 0);I("yt.www.watch.ads.handleHideAfvInstreamCompanionAdDiv",gp,void 0);I("yt.www.watch.ads.handleShowGutCompanion",hp,void 0);I("yt.www.watch.quicklist.clickedAddIcon",Yn,void 0);
I("yt.www.watch.quicklist.clickedAddIcon_w5",function(a,b,c,d,e,f){if(O("quicklist")){if(b=!Vn(c)){Wn(c);Rn()}var i=Zd(Pn(),c);Dn(g);Kn(b,function(){var k=Cn();if(Q("HAS_ACTIVE_QUICKLIST")||!k){Ln(4,i);Sn(i)}})}else Yn(b,c,d,e,f);L(O(a),"in-quicklist")},void 0);I("yt.www.watch.ajax.init",function(){yl("navigate",function(){pp()});Bl(g);rp()},void 0);I("yt.www.watch.ajax.initReady",function(){var a=$.timer;if(lp&&a){Be(a,lp);lp=h}jp=g},void 0);
I("yt.www.watch.sow.search",function(a,b){if(a)p(O("masthead-search-term"),a);var c=O("masthead-search-term")[u],d=Vg(l[A][db]);d.q=c;if(b)d.page=b;else delete d[fb];if(d.v)fo=d.v;oa(l[A],"#!"+Wg(d));!Q("AJAX_MODE")&&!Q("SEARCH_ON_WATCH_MODE")&&go(c,b)},void 0);I("yt.www.watch.sow.closeSearch",mo,void 0);
I("yt.www.watch.sow.closeContent",function(){if(jo()){W("watch-headline-container","watch-video-container","watch-main-container");ko();var a=m[cb].searchForm,b=O("masthead-search-term");Sa(l,a[hd]+"?"+b[hc]+"="+b[u])}},void 0);I("yt.www.watch.sow.resizeForSearch",ko,void 0);I("yt.www.disco.watch5.toggleDiscoList",function(a,b,c,d){a+="-";for(b=b;b<c;b++)if(d){W(a+b);W(a+"less");V(a+"more")}else{V(a+b);V(a+"less");W(a+"more")}},void 0);
I("yt.www.disco.watch5.discoSearch",function(a,b){var c=!N(O("page"),"search-mode")&&O("watch-disco-search-term")!=h,d=j;if(c){Gi("discoOnWatchFlip");if(O("watch-disco-search-term"))a=O("watch-disco-search-term")[u]}else{if(O("watch-disco-search-term"))p(O("watch-disco-search-term"),a);var e=Vg(l[A][db]);e.q=a;e.st="disco";if(Q("AJAX_MODE")||Q("SEARCH_ON_WATCH_MODE")){oa(l[A],"#!"+Wg(e));d=g}else oa(l[A],"#"+Wg(e))}d||go(a,"","disco",c);if(b){Jg(b);Ig(b)}},void 0);
I("yt.www.disco.watch5.handleToggleArtistBio",function(a){var b=N(a,"yt-uix-expander-collapsed");oe(a,"expanded",!b);if(!b){a=O(a.id+"-body");ab(a[E][B],a[rd]+"px")}},void 0);I("yt.www.disco.watch5.handleDiscoRowMouseEvent",function(a,b){var c=(b||l[wd])[cc],d=P(h,"watch-disco-video-queue-end",a)[0],e=P(h,"watch-disco-video-queue-next",a)[0];if(c=="mouseover"){Gh(d,g);Gh(e,g)}else if(c=="mouseout"){Gh(d,j);Gh(e,j)}},void 0);
I("yt.www.disco.watch5.addVideoToQueueNext",function(a,b){var c=Zd(Pn(),Q("VIDEO_ID"));c==-1?no(a):Yn(h,a,j,"","","disco_add_to_queue_next",c+1);if(b){Jg(b);Ig(b)}},void 0);I("yt.www.disco.watch5.addVideoToQueueEnd",no,void 0);I("yt.www.watch.sow.init",function(){yl("navigate",function(){io()});Bl(g);io()},void 0);
I("yt.www.watch.watch5.hideBrowserUpgrade",function(){V("movie_player");W("browser-upgrade-outer-box");M(O("watch-video"),"deprecated-browser");M(O("watch-sidebar"),"deprecated-browser")},void 0);I("yt.history.enable",Bl,void 0);I("yt.history.disable",Cl,void 0);I("yt.flash.embed",$g,void 0);I("yt.flash.update",ah,void 0);
I("yt.help.guide.start",function(a){if(l.guidedhelp&&l.guidedhelp.loaded?g:j)sl(a);else{l.guidedhelp=l.guidedhelp||{};l.guidedhelp.onLoad=function(){var b=Ad("help.guide.init");if(b){b("http://www.google.com/support/youtube",Q("GUIDED_HELP_LOCALE")||"en_US","v2");sl(a)}};ql()}return j},void 0);I("yt.www.watch.watch5.enableWide",Mk,void 0);I("yt.www.watch.watch5.toggleWide",function(){Mk(!Nk())},void 0);I("yt.www.watch.watch5.isWide",Nk,void 0);I("yt.www.watch.player.enableWideScreen",Mk,void 0);
I("yt.www.watch.player.onPlayerNextClicked",Jp,void 0);I("yt.www.watch.player.onPlayerSizeClicked",Mp,void 0);I("yt.www.watch.player.onPlayerNextSelected",Np,void 0);I("yt.www.watch.player.showHideNextButton",Ip,void 0);I("yt.www.watch.queue.playNext",wp,void 0);I("yt.www.watch.queue.handleToggleAutoplay",function(a){var b=N(a,"autoplay-off"),c=vg("span",h,a);oe(a,"autoplay-on",b);oe(a,"autoplay-off",!b);if(c)o(c,b?T("AUTOPLAY_ON"):T("AUTOPLAY_OFF"));gg("LIST_AUTO_PLAY_ON",b)},void 0);
I("yt.www.watch.queue.handleToggleShuffle",function(a){var b=N(a,"autoplay-off"),c=vg("span",h,a);oe(a,"autoplay-on",b);oe(a,"autoplay-off",!b);if(c)o(c,b?T("SHUFFLE_ON"):T("SHUFFLE_OFF"));gg("SHUFFLE_ENABLED",b);if(a=Of(a,"div","watch-active-list")){pe(a,"shuffled");N(a,"yt-uix-expander-collapsed")?wg(a,"loaded","false"):jl(a,1,g)}},void 0);
I("yt.www.watch.queue.handleListOnclick",function(a){var b=Of(Hg(a),"A","video-list-item-link");if(b&&b[dd]){b=b[dd];if(Q("LIST_AUTO_PLAY_ON"))b+="&playnext=1";if(Q("SHUFFLE_ENABLED")){var c=Q("SHUFFLE_VALUE");if(c)b+="&shuffle="+c}lm(b);Ig(a);return Jg(a)}},void 0);
I("yt.www.watch.watch5.handleLoadMoreRelated",function(){var a=O("watch-more-related-link"),b=O("watch-more-related-loading");V(b);W(a);a={method:"GET",update:"watch-more-related",onComplete:function(){W(b);V(O("watch-more-related"))}};X("/watch_ajax?video_id="+Q("VIDEO_ID")+"&action_more_related_videos",a)},void 0);
I("yt.www.watch.watch5.handleToggleMoreFromUser",function(a){a=N(a,"yt-uix-expander-collapsed");var b=O("watch-more-from-user");if(!a&&xg(b,"loaded")!="true"){var c={method:"GET",update:"watch-more-from-user",onComplete:function(){wg(b,"loaded","true");sk()}};X("/watch_ajax?user="+Q("VIDEO_USERNAME")+"&video_id="+Q("VIDEO_ID")+"&action_channel_videos_w5",c)}oe(b,"collapsed",a)},void 0);
I("yt.www.watch.watch5.handleToggleStats",function(a){Rk();Tk();var b=N(a,"yt-uix-expander-collapsed"),c=O("watch-info"),d=O("watch-stats");a=d[E];oe(c,"expanded",!b);if(xg(d,"loaded")!="true"){b={method:"GET",update:"watch-stats",onComplete:function(){ab(d[E][B],d[rd]+"px")}};X("/watch_ajax?v="+Q("VIDEO_ID")+"&l="+Q("VIDEO_LANGUAGE")+"&action_get_statistics_and_data=1",b);V(a);M(a,"collapsed");wg(d,"loaded","true")}else{oe(a,"collapsed",b);if(b){o(d,'<div id="watch-stats-loading">'+T("LOADING")+
"</div>");wg(d,"loaded","false")}}},void 0);I("yt.www.watch.watch5.handleToggleCaptionViewer",function(a){Rk();Sk();a=N(a,"yt-uix-expander-collapsed");var b=O("watch-info");oe(b,"expanded",!a);b=O("watch-captions-container");oe(O("watch-captions"),"expanded",!a);if(xg(b,"loaded")=="true")oe(b,"collapsed",a);else{a=new Ai;a.kb(Q("TTS_WATCH_URL"),h,Q("VIDEO_ID"));a.Ve(al);Wk=a;M(b,"collapsed");wg(b,"loaded","true")}},void 0);
I("yt.www.watch.watch5.handleToggleDescription",function(a){Sk();Tk();a=!N(a,"yt-uix-expander-collapsed");var b=O("watch-info");oe(b,"expanded",a);Dh("watch-info-shmoovie-sidebar",a);if(a){a=O("watch-description-body");ab(a[E][B],a[rd]+"px")}},void 0);
I("yt.www.watch.watch5.like",function(){gl();L(O("watch-like"),"active");hl();if(Q("ALLOW_RATINGS")){if(Pk())if(!Qk()){var a=m[cb].likeForm,b={postBody:Xf(a),onComplete:function(){o(O("watch-actions-area"),O("watch-actions-close")[rb]+O("watch-actions-area")[rb]);Ok()},update:"watch-actions-area",method:"POST"};X(a[hd],b)}}else o(O("watch-actions-area"),O("watch-actions-close")[rb]+"<em>"+T("RATINGS_DISABLED")+"</em>")},void 0);
I("yt.www.watch.watch5.unlike",function(){gl();L(O("watch-unlike"),"active");hl();if(Q("ALLOW_RATINGS")){if(Pk())if(!Qk()){var a=m[cb].unlikeForm,b={postBody:Xf(a),onComplete:function(){o(O("watch-actions-area"),O("watch-actions-close")[rb]+O("watch-actions-area")[rb]);Ok()},update:"watch-actions-area",method:"POST"};X(a[hd],b)}}else o(O("watch-actions-area"),O("watch-actions-close")[rb]+"<em>"+T("RATINGS_DISABLED")+"</em>")},void 0);
I("yt.www.watch.watch5.save",function(a,b,c,d,e){if(d){if(a[Qb]!=13)return;Ig(a)}a=Of(b,"FORM","watch-playlists-form");p(a.playlist_id,c);p(a.add_to_favorite,c==""?"on":"");var f=Pi.c();f.Sc(O("watch-playlists-button"));if(e)p(a.new_playlist_name,e);hl();c={postBody:Xf(a),method:"POST",onComplete:function(i){f.If(O("watch-playlists-button"),'<li><span class="yt-uix-button-menu-item">'+T("LOADING")+"</span></li>");(i=i[Yc])&&Nh(i);o(O("watch-actions-area"),O("watch-actions-close")[rb]+O("watch-actions-area")[rb]);
Ok()},onException:function(){gl()},update:"watch-actions-area"};X(a[hd],c)},void 0);I("yt.www.watch.watch5.createPlaylist",function(a,b){Ig(a);W(b);var c=P(h,"create-playlist-input",b[E])[0];V(c);c=c[lc]("INPUT")[0];c[Nb]();c=Of(c,"FORM","watch-playlists-form");Ia(c,c[Pb])},void 0);
I("yt.www.watch.watch5.loadPlaylists",function(){gl();if(Pk())if(!P(h,"watch-playlists-form",h)[w]){var a={method:"GET",onComplete:function(b){if(b=(b=b[Yc])?Nh(b):h){b=Oh(b,"html_content")||"";Pi.c().If(O("watch-playlists-button"),b)}}};X("/watch_ajax?video_id="+Q("VIDEO_ID")+"&action_get_playlists_component=1",a)}},void 0);I("yt.www.watch.watch5.shareSuccess",function(a){hl();o(O("watch-actions-area"),O("watch-actions-close")[rb]+a)},void 0);I("yt.www.watch.watch5.share",el,void 0);
I("yt.www.watch.watch5.shareFromFlashPlayer",fl,void 0);I("yt.www.watch.watch5.updateShareURL",il,void 0);I("yt.www.watch.watch5.url",function(){hl();o(O("watch-actions-area"),O("watch-actions-close")[rb]+'<input id="watch-href" type="textbox" style="width: 350px" onclick="this.focus();this.select();" value="'+l[A][dd]+'"/>');ig(function(){O("watch-href")[Nb]();O("watch-href")[Sb]()},0)},void 0);
I("yt.www.watch.watch5.embed",function(){var a=O("watch-actions-area-container");if(!N(a,"collapsed")&&O("watch-customize-embed"))gl();else{gl();hl();L(O("watch-embed"),"active");if(Q("ALLOW_EMBED")){a={method:"GET",onComplete:function(){o(O("watch-actions-area"),O("watch-actions-close")[rb]+O("watch-actions-area")[rb]);Jk();Ok();ig(function(){var b=O("watch-embed-code");b[Nb]();b[Sb]()},0)},update:"watch-actions-area"};X("/watch_ajax?action_customize_embed=1"+(Q("IS_WIDESCREEN")?"&wide=1":"")+(Q("IS_HD_AVAILABLE")?
"&hd=1":""),a)}else o(O("watch-actions-area"),O("watch-actions-close")[rb]+'<p id="watch-customize-embed"><em>'+T("EMBEDDING_DISABLED")+"</em></p>")}},void 0);
I("yt.www.watch.watch5.flag",function(a){var b=O("watch-actions-area-container");if(!N(b,"collapsed")&&O("watch-flag-form"))gl();else{gl();hl();L(O("watch-flag"),"active");if(Pk()){b="/watch_ajax?video_id="+Q("VIDEO_ID")+"&action_get_flag_video_component=1";if(xg(a,"from-dislike")=="1")b+="&from_dislike=1";X(b,{method:"GET",onComplete:function(){wk();o(O("watch-actions-area"),O("watch-actions-close")[rb]+O("watch-actions-area")[rb]);Ok()},update:"watch-actions-area"})}}},void 0);
I("yt.www.watch.watch5.hide",gl,void 0);I("yt.www.comments.watch5.inputFocus",sn,void 0);I("yt.www.comments.watch5.inputBlur",function(a){var b=Of(a,"FORM");b&&M(b,"input-focused");Fg(a,"input",rn);Fg(a,"propertychange",rn)},void 0);
I("yt.www.comments.watch5.cancelPost",function(a){zn();if(a=Of(a,"FORM"))if(a.id=="comments-post-form"){p(vg(h,"comments-textarea",a),"");M(a,"input-expanded");L(a,"input-collapsed");W("comments-attach-video");a=P("BUTTON","comments-reaction-button",O("reaction-buttons"));K(a,function(b){M(b,"yt-button-disabled")})}else a[E][Pc](a)},void 0);
I("yt.www.comments.watch5.post",function(a){a=Of(a,"FORM");var b=a.comment,c=P(h,"watch-comments-post",a)[0],d=P(h,"comments-post-result",a)[0];o(d,"");var e=O("screen");if(e)p(e,"h="+ea[pd]+"&w="+ea[kb]+"&d="+ea.colorDepth);if(!N(c,"yt-button-disabled")){e=a[hd];a={postBody:Xf(a),onComplete:function(f){var i=Oh(f[Yc],"str_code");o(d,i=="OK"?T("COMMENT_OK"):T("COMMENT_ERROR"));i!="INLINE_CAPTCHAFAIL"&&zn();if(i=="OK"){M(d,"comments-bad-post");L(d,"comments-good-post");L(c,"yt-button-disabled");i=
O("comments-view");if(xg(i,"type")=="everything")if(i=vg(h,"comment-list",i)){f=Oh(f[Yc],"html_content");o(i,f+i[rb])}}else if(i=="INLINE_CAPTCHA"){o(d,"");var k=Cf("DIV");k.id="captcha_div";X("/comment_servlet?gimme_captcha=1&watch5=1",{update:k,onComplete:function(){Dh(b,j);M(c,"yt-button-disabled");b[E]&&b[E][Ab](k,b)}})}else if(i=="INLINE_CAPTCHAFAIL"){o(d,"");f=O("fail_warning");o(O("fail_warning_text"),T("COMMENT_CAPTCHAFAIL"));V(f);M(c,"yt-button-disabled")}},onException:function(f){f=Oh(f[Yc],
"str_code");if(f=="PENDING")o(d,T("COMMENT_PENDING"));else{o(d,f=="BLOCKED"?T("COMMENT_BLOCKED"):T("COMMENT_ERROR"));M(c,"yt-button-disabled")}L(d,"comments-bad-post");M(d,"comments-good-post")}};e+="&len="+b[u][w]+"&wc="+b[u][y](" ")[w];X(e,a);L(c,"yt-button-disabled")}},void 0);I("yt.www.comments.watch5.showPage",wn,void 0);I("yt.www.comments.watch5.showPageFromElement",function(a){wn(a[Wc]("data-page"));return j},void 0);
I("yt.www.comments.watch5.react",function(a,b){if(!N(a,"yt-button-disabled")){var c=O("comments-post-form"),d=P(h,"comments-textarea",c)[0];c="#"+b+" ";if(m.selection){d[Nb]();ra(m.selection.createRange(),c)}else if(d[Oc]||d[Oc]=="0"){var e=d[Oc],f=d.selectionEnd;p(d,d[u][ed](0,e)+c+d[u][ed](f,d[u][w]));d.selectionStart=e+c[w];d.selectionEnd=d[Oc]}else d.value+=c;L(a,"yt-button-disabled");ig(function(){d[Nb]()},1)}},void 0);
I("yt.www.comments.watch5.vote",function(a){if(pn()&&qn()){var b=on;if(!xg(b,"voted")){var c=Q("VIDEO_ID"),d=xg(b,"id"),e=xg(b,"score");a=xg(a,"vote-increment");c="/comment_voting?a="+a+"&id="+d+"&video_id="+c+"&old_vote="+e;if(b[tb]?"tag"in b[tb]:b.hasAttribute?!!b.hasAttribute("data-tag"):!!b[Wc]("data-tag"))c+="&tag="+xg(b,"tag");X(c,{method:"GET",onComplete:function(){}});wg(b,"voted",a);xn(b)}}},void 0);
I("yt.www.comments.watch5.reply",function(){if(pn()&&qn()){zn();var a=O("comments-post-form")[bc](g);a.id="";Pa(a,"comments-reply-form");var b=vg(h,"watch-comments-post",a);M(b,"yt-button-disabled");o(vg(h,"comments-post-result",a),"");p(vg(h,"comment-parent-id",a),xg(on,"id"));a.action+="&reply=1";if(b=xg(on,"tag"))a.action+="&tag="+b;b=P(h,"comments-reply-form",on);K(b,function(d){on[Pc](d)});on[q](a);sn(a[Rb]);b=xg(on,"author");var c=vg(h,"comments-textarea",a);p(c,"@"+b+" ");c[Nb]();nn(c,c[rb][w]);
tn(a[Rb]);xn(on)}},void 0);I("yt.www.comments.watch5.flag",function(){if(pn()&&qn()){var a=Q("VIDEO_ID");a="/comment_servlet?mark_comment_as_spam="+xg(on,"id")+"&entity_id="+a;X(a,{});a=P(h,"content",on)[0];L(a,"hide-comment");wg(on,"flagged","True")}},void 0);I("yt.www.comments.watch5.block",function(){var a=xg(on,"author");a&&yn(a,g)},void 0);I("yt.www.comments.watch5.unblock",function(){var a=xg(on,"author");a&&yn(a,j)},void 0);I("yt.www.comments.watch5.showActions",xn,void 0);
I("yt.www.comments.watch5.hideActions",vn,void 0);I("yt.www.comments.watch5.approve",function(a,b){var c=on,d=xg(c,"id"),e=xg(O("comments-post-form"),"comment-type");X("/comment_servlet?field_approve_comment=1",{postBody:"comment_id="+d+"&comment_type="+e+"&entity_id="+Q("VIDEO_ID")+"&"+b,onComplete:function(){W(a[E]);wg(c,"pending","0");xn(c)}})},void 0);
I("yt.www.comments.watch5.remove",function(a,b){var c=on,d=xg(c,"id"),e=xg(O("comments-post-form"),"comment-type");d={postBody:"deleter_user_id="+a+"&comment_id="+d+"&"+b,onComplete:function(){W(c);vn()}};X("/comment_servlet?remove_comment=1&comment_type="+e+"&entity_id="+Q("VIDEO_ID"),d)},void 0);I("yt.www.comments.watch5.updateCount",tn,void 0);
I("yt.www.comments.watch5.display",function(a,b){if(b){M(on,"hidden");M(a[E],"hide-mode");L(a[E],"show-mode")}else{L(on,"hidden");L(a[E],"hide-mode");M(a[E],"show-mode")}},void 0);I("yt.www.comments.watch5.addCommentMouseListener",function(){var a=O("comments-view");if(a){Dg(a,"mouseout",An,"comment");Dg(a,"mouseover",An,"comment")}},void 0);
I("yt.www.comments.viewing.rotateVideoResponses",function(a,b,c,d){Gl("video_bar");var e=O("video-bar-container-box-"+b);b=O("video-bar-long-box-"+b);b=ia(th(e)?b[B].marginRight:b[B].marginLeft,10);if(na(b))b=0;c=(c-1)*e[yc]*-1;if(a&&b>c||!a&&b<0)d.Ib(b,b+(a?-1:1)*e[yc])},void 0);I("yt.www.watch.watch5.toggleNextList",function(a){if(!xg(a,"loaded")||xg(a,"loaded")=="false")jl(a,1,g);else{a=O("watch-next-list-body");var b=vg(h,"next-list-current",a);if(b)Ia(a,b[od])}},void 0);
I("yt.www.watch.watch5.togglePassiveList",kl,void 0);I("yt.www.watch.watch5.clearQuicklist",function(){la(T("QUEUE_CLEAR"))&&X("/watch_queue_ajax?action_clear_queue=1",{postBody:ll(),onComplete:function(){var a=ml();o(O(a.id+"-body"),'<div class="quicklist-help"><em>'+T("QUEUE_EMPTY")+"</em></div>");o(O(a.id+"-count"),"0")}})},void 0);
I("yt.www.watch.watch5.showQuicklistPlaylists",function(a){var b=O(a);O(b.id+"-body");a=P(h,"watch-playlist-actions",b)[0];b=P(h,"watch-module-body",b)[0];L(b,"actions-shown");V(a);if(Pk())X("/watch_ajax?action_get_playlists=1",{method:"GET",update:a});else o(a,O("watch-actions-logged-out")[rb])},void 0);
I("yt.www.watch.watch5.getSaveQuicklistForm",function(a){var b=O(a);O(b.id+"-body");a=P(h,"watch-playlist-actions",b)[0];b=P(h,"watch-module-body",b)[0];L(b,"actions-shown");V(a);if(Pk())X("/watch_ajax?action_get_save_quicklist_form=1",{method:"GET",update:a});else o(a,O("watch-actions-logged-out")[rb])},void 0);I("yt.www.watch.watch5.saveQuicklist",function(){var a=m[cb]["save-quicklist"],b=a[E];if(a[vc]){b={postBody:Xf(a),method:"POST",onComplete:function(){},update:b};X(a[hd],b)}},void 0);
I("yt.www.watch.watch5.selectPlaylist",function(){var a=O("watch-playlists-select");if(a)Ya(l[A],a[u])},void 0);I("ieThumbEvent",function(a,b){if(mg){Ig(a);Jg(a);Of(b,"a",h).click()}},void 0);I("yt.www.watch.watch5.handleListItemMouseEvent",function(a,b){var c=(b||l[wd])[cc],d=P(h,"video-list-item-delete",a)[0],e=P(h,"video-list-item-gripper",a)[0];if(c=="mouseover"){Gh(d,g);Gh(e,g)}else if(c=="mouseout"){Gh(d,j);Gh(e,j)}},void 0);I("yt.www.watch.quicklist.getWatchQueue",Pn,void 0);
I("yt.www.watch.quicklist.isInWatchQueue",Vn,void 0);I("yt.www.watch.quicklist.onAddAllToQueue",function(a,b){var c=[];for(var d in a)Vn(a[d])||c[r](a[d]);if(c[w]){d=Pn();ge(d,c);Gi("ql","add="+c[w]);Zn(d);Xn(2);Un();Rn();b&&Gi(b)}},void 0);I("yt.www.watch.quicklist.onQuickDeleteClick",function(a,b,c){$n(a);if(O("quicklist"))Kn(g);else{Xn(3);Un()}Rn();if(b){Jg(b);Ig(b)}c&&Gi(c)},void 0);
I("yt.www.watch.quicklist.moveVideoInWatchQueue",function(a,b){if(a!=b){var c=Pn();if(!(a<0||a>=c[w]))if(!(b<0||b>=c[w])){var d=ml();d=O(d.id+"-body");d=fe(P("li","edit-list-item",d));var e=d[b];e[E]&&e[E][Ab](d[a],e[ic]);if(a>b)b+=1;d=c[qd](a,1);ie(c,b,0,d);Zn(c);Xn(3);Rn()}}},void 0);I("yt.www.watch.quicklist.addToWatchQueue",Wn,void 0);I("yt.www.watch.quicklist.deleteFromWatchQueue",$n,void 0);I("yt.www.watch.quicklist.clearWatchQueue",ao,void 0);
I("yt.www.watch.quicklist.init",function(){var a=O("quicklist");if(a){Bn=a;var b=Cn(),c=xg(a,"autohide-mode")=="on",d=Pn();b||d[w]>0?In(b&&!c):Jn();c&&U(m,"mousemove",Fn);b=O("quicklist-bar");U(b,"click",Hn);if(mg){b=m[Ob]("iframe");b.id="quicklist-mask";b.frameBorder="0";b.src='javascript:""';a[Ab](b,a[Rb])}}},void 0);I("yt.www.watch.quicklist.show",In,void 0);I("yt.www.watch.quicklist.hide",Jn,void 0);I("yt.www.watch.quicklist.minimize",En,void 0);I("yt.www.watch.quicklist.maximize",Dn,void 0);
I("yt.www.watch.quicklist.toggle",Gn,void 0);I("yt.www.watch.quicklist.play",function(){var a=Pn();a&&lm("/watch?v="+a[0]+"&playnext_from=QL&feature=bf_play&playnext=1")},void 0);I("yt.www.watch.quicklist.next",function(a){(a=On(!!a))&&lm(a)},void 0);I("yt.www.watch.quicklist.prev",function(){var a=Qn();a&&lm(a)},void 0);
I("yt.www.watch.quicklist.autoplay",function(){var a=O("quicklist");if(a)if(N(a,"autoplay-off")){ne(a,"autoplay-off","autoplay-on");gg("LIST_AUTO_PLAY_ON",g)}else{ne(a,"autoplay-on","autoplay-off");gg("LIST_AUTO_PLAY_ON",j)}},void 0);I("yt.www.watch.quicklist.shuffle",function(){var a=O("quicklist");if(a)if(N(a,"shuffle-off")){ne(a,"shuffle-off","shuffle-on");gg("SHUFFLE_ENABLED",g)}else{ne(a,"shuffle-on","shuffle-off");gg("SHUFFLE_ENABLED",j)}Kn(g,function(){Ln(3)})},void 0);
I("yt.www.watch.quicklist.clear",function(){if(la(T("QUEUE_CLEAR"))){var a=O("quicklist");if(a){ao();if(Q("HAS_ACTIVE_QUICKLIST")){wg(a,"loaded-active","");Nn()}else{wg(a,"loaded-passive","");Mn()}}}},void 0);I("yt.www.watch.quicklist.showPassive",Mn,void 0);I("yt.www.watch.quicklist.showActive",Nn,void 0);I("yt.dom.datasets.get",xg,void 0);I("yt.uri.parseFragmentData",Vg,void 0);I("yt.www.watch.watch5.promoteSubscribe",nl,void 0);I("openFull",Pp,void 0);I("checkCurrentVideo",Qp,void 0);
I("trackAnnotationsEvent",Tp,void 0);I("reportFlashTiming",Vp,void 0);I("shareVideoFromFlash",fl,void 0);I("setCompanion",Uo,void 0);I("setInstreamCompanion",Vo,void 0);I("setLongformCompanion",Wo,void 0);I("setFreewheelCompanion",Xo,void 0);I("closeInPageAdIframe",Yo,void 0);I("hideInstreamCompanion",Zo,void 0);I("disablePopout",cp,void 0);I("enablePopout",dp,void 0);I("closeMpuCompanion",$o,void 0);I("handleAdLoaded",ap,void 0);I("updatePopAds",bp,void 0);I("setAfvCompanionVars",ep,void 0);
I("showAfvCompanionAdDiv",fp,void 0);I("hideAfvInstreamCompanionAdDiv",gp,void 0);I("show_ppv_in_yva_spot",fn,void 0);I("requestPyvAds",jn,void 0);I("pyvHomeRequestAds",jn,void 0);I("pyvBrowseRequestAds",ln,void 0);I("showGutCompanion",hp,void 0);
hg("openFull","checkCurrentVideo","trackAnnotationsEvent","reportFlashTiming","shareVideoFromFlash","setCompanion","setInstreamCompanion","setLongformCompanion","setFreewheelCompanion","closeInPageAdIframe","hideInstreamCompanion","disablePopout","enablePopout","closeMpuCompanion","handleAdLoaded","updatePopAds","setAfvCompanionVars","showAfvCompanionAdDiv","hideAfvInstreamCompanionAdDiv","show_ppv_in_yva_spot","requestPyvAds","pyvHomeRequestAds","pyvBrowseRequestAds","showGutCompanion");
I("yt.www.embeds.CustomSizes",Bk,void 0);I("yt.www.embeds.CustomSizesWide",Ck,void 0);I("yt.www.recos.removeRecommendation",function(a){W("reco-"+a);a=Xg("/remove_recommendation_ajax",{video_id:a});X(a,{method:"GET"});return j},void 0);
I("yt.www.search.toggleAdvSearch",function(a,b,c,d,e,f,i,k,t,z,R,H,S){Ih("search-advanced-form");var ga=O("additional-search-option-expander");Eh(O("search-advanced-form"))?L(ga,"collapsed"):M(ga,"collapsed");if(O("search-advanced-form")[rb][ud]()[v]("<form")!=-1)return j;ga={};ga.action_advanced="1";ga.search_query=a;ga.search_type=b;ga.geo_name=c;ga.geo_latlong=d;ga.search_duration=e;ga.search_hl=f;ga.search_sort=k;ga.uploaded=t;if(z)ga.high_definition=1;if(R)ga.annotations=1;if(H)ga.closed_captions=
1;if(S)ga.partner=1;a=Xg("/results_ajax",ga);i=i[y](",");for(b=0;b<i[w];b++)a+="&search_category="+i[b];X(a,{method:"GET",update:"search-advanced-form"});return j},void 0);I("yt.www.search.toggleToolbelt",function(){var a=O("toolbelt-top"),b=O("search-option-expander"),c=N(b,"collapsed");oe(b,"collapsed",!c);ab(a[B],c?0:O("toolbelt-container")[rd]+"px");return j},void 0);
I("yt.www.search.toggleEpisodes",function(a,b){var c=O("similar_videos_link_"+a),d=O("episodes_placeholder_"+a),e=N(c,"collapsed"),f=N(c,"loaded");oe(c,"collapsed",!e);if(e){ab(d[B],0);return j}else if(f){ab(d[B],d[ec][0][rd]+"px");return j}e=m[Ob]("div");L(e,"episodes-loading");d[q](e);ab(d[B],e[rd]+"px");e={};e.base_id=a;e.episode_ids=b;e.search_query=O("masthead-search-term")[u];X("/results_ajax?action_show_episodes=1",{postBody:Wg(e),onComplete:function(i){i=Oh(i[Yc],"html_content");o(d,i);ab(d[B],
d[ec][0][rd]+"px");oe(c,"loaded",g);sk()}});return j},void 0);
I("yt.www.suggest.install",function(a,b,c,d,e,f,i,k){Zi=a;$i=b;Aj=c;uj=d;vj=e;zj=ba(f);yj=i;Cj=k;if(Kj&&l[A][dd][v]("/watch?")!=-1){Bj=4;uj=""}fj=/^(zh-(CN|TW)|ja|ko)$/[hb](c);a="yt";if(l[A][Sc][Ib](/^\/show(s$|$|\/)/))a="yt_sh";else if(l[A][Sc]=="/movies")a="yt_mv";ej="suggestqueries.google.com/complete/search?hl="+c+"&ds="+a+"&client=youtube&hjson=t&jsonp=window.yt.www.suggest.handleResponse";U(Zi,"submit",hk);$i[Yb]("autocomplete","off");U($i,"blur",Qj);$i.onkeyup_original=$i.onkeyup;if($i[Wb]){if(Hj||
Fj)$i.onkeydown=Uj;else $i.onkeypress=Uj;$i.onkeyup=Vj}else{U($i,Gj?"keydown":"keypress",Uj);U($i,"keyup",Vj)}Xi=Vi=Wi=$i[u];Yi=Xj($i);if(i!=2&&l[A][Sc]=="/")Xi=Vi="";aj=O("completeTable");c=j;if(aj)c=g;else aj=m[Ob]("table");aj.id="completeTable";aj.cellSpacing=aj.cellPadding="0";bj=aj[B];Pa(aj,"yt-suggest-table");Pj();c||m[C][q](aj);mj=O("yt-suggest-iframe");c||(mj=m[Ob]("iframe"));nj=mj[B];mj.id="yt-suggest-iframe";c||m[C][q](mj);Nj();U(l,"resize",Nj);U(l,"pageshow",Lj);fj&&jg(jk,10);cj=Oj("aq",
"f",j);dj=Oj("oq",Wi,g);if(Aj in tj){xj=g;uj=""}Dj=m[C][E].dir=="rtl";Zj()},void 0);I("yt.www.suggest.handleResponse",function(a){oj>0&&oj--;if(a[0]==Wi){if(qj){kg(qj);qj=h}hj=a[0];ik(a[1]);if(xj)gk(Wi,h,"g","g",zj,ak("http://www.google."+(tj[Aj]||"com")+"/search?source=youtube-suggest"+(yj>=0?"-"+yj:"")+"&hl="+Aj+"&q="+ca(hj),g));lj=-1;(jj=aj[gd])&&jj[w]>0?dk():Pj()}},void 0);I("yt.www.suggest.setFieldValue",Rj,void 0);I("yt.www.suggest.enable",kk,void 0);I("yt.www.suggest.disable",lk,void 0);
I("yt.www.suggest2.install",function(a,b,c,d,e){yo[vo++]=new xo(a,b,c,d,e)},void 0);I("yt.www.suggest2.handleResponse",function(a){wo&&wo.Gi(a)},void 0);I("yt.www.thumbnailDelayLoad.setFudgeFactor",function(a){pk=a},void 0);I("yt.www.thumbnailDelayLoad.setLoadAllAtOnce",function(a){qk=a},void 0);I("yt.www.thumbnailDelayLoad.testImage",rk,void 0);I("yt.www.thumbnailDelayLoad.loadImages",sk,void 0);
I("yt.www.ads.pyv.pyvWatchAfcCallback",function(a){if(a[w]==0){if(Q("PYV_TRACK_RELATED_CTR")){mn("watch-related",j);mn("watch-channel-videos-panel",j)}}else{var b=O("watch-channel-videos-panel");b&&!Q("IS_BRANDED_WATCH")&&L(b,"yt-uix-expander-collapsed");gn("watch_related",a[0],h,function(c){c=Nh(c[Yc]);c=Oh(c,"html_content");var d=O(l.pyv_related_box_id||"watch-related");if(d){var e=d[rb];if(e[v](c)!=0){o(d,c+e);if(Q("PYV_TRACK_RELATED_CTR")){mn("watch-related",g);mn("watch-channel-videos-panel",
g)}}}},l.google_adtest&&l.google_adtest=="on")}},void 0);I("yt.www.ads.pyv.pyvHomeAfcCallback",hn,void 0);I("yt.www.ads.pyv.showPpvAdInYvaSpot",fn,void 0);I("yt.www.ads.pyv.pyvHomeRequestAds",jn,void 0);I("yt.www.ads.pyv.pyvBrowseRequestAds",ln,void 0);I("MooFx",{},void 0);I("MooFx.Base",qg,void 0);qg[x].clearTimer=qg[x].yc;qg[x].custom=qg[x].Ib;qg[x].set=qg[x].l;qg[x].show=qg[x].show;qg[x].hide=qg[x].jb;I("MooFx.BasicEffect",rg,void 0);I("MooFx.Opacity",sg,void 0);sg[x].toggle=sg[x].Hk;
sg[x].hide=sg[x].jb;I("yt.www.xsrf.dynamicAppendSessionToken",bq,void 0);I("yt.www.xsrf.sessionExcludedForms",cq,void 0);I("yt.www.xsrf.populateSessionToken",function(){for(var a=0;a<m[cb][w];a++){for(var b=j,c=0;c<cq[w];c++)if(m[cb][a][hc]==cq[c])b=g;c=m[cb][a];if(c.method[ud]()=="post"&&b==j){b=j;for(var d=0;d<c[Zb][w];d++)if(c[Zb][d][hc]==Q("XSRF_FIELD_NAME"))b=g;b||bq(c)}}},void 0);
I("yt.www.masthead.performSearch",function(a,b,c){var d=m[a];a=xg(c,b)||"";if("rentals"==a){p(d.rental,1);p(d.search_type,"")}else{p(d.search_type,a);p(d.rental,0)}if(d.search_query[u])d.submit();else{d=c[rb];var e=O("default-search-button"),f=e[rb],i=xg(e,b)||"";o(e,d);wg(e,b,a);o(c,f);wg(c,b,i)}return j},void 0);
I("yt.www.masthead.loadPicker",function(a,b,c){var d=O(a);if(d)c?V(d):Ih(d);else{d=Cf("div");d.id=a;W(d);O("picker-container")[q](d);c="/masthead_ajax?action_get_"+a[s]("-","_")+"=1";if(b)c=b+c;X(c,{method:"GET",update:a,onComplete:function(){W("picker-loading");V(a);O(a).scrollIntoView()}});V("picker-loading")}Si("picker-container",a);O(a).scrollIntoView()},void 0);I("yt.www.masthead.searchBarFocusTest",Ui,void 0);I("yt.www.home.ads.mastheadAd",oo,void 0);oo[x].collapse_ad=oo[x].collapse;
oo[x].expand_ad=oo[x].expand;I("yt.www.home.ads.workaroundLoad",function(){po=g},void 0);I("yt.www.home.ads.workaroundIE",function(a){if(!(qo||!po)){qo=g;ig(function(){a[Nb]()},0)}},void 0);I("yt.www.home.ads.workaroundReset",function(){qo=j},void 0);I("yt.tracking.track",Gi,void 0);
I("yt.tracking.reachability",function(){var a=new Date,b=n[Vc]();a="/gen_204?atyp=edge&id="+a[kc]()[tc](32)+b[tc](16);if(b>=0.5){Fi("http://coretest.ytimg.com"+a);Fi("http://alltest.ytimg.com"+a)}else{Fi("http://alltest.ytimg.com"+a);Fi("http://coretest.ytimg.com"+a)}},void 0);I("yt.tracking.resolution",function(){Fi("/mac_204?"+("action_scr2=1&height="+ea[pd]+"&width="+ea[kb]+"&depth="+ea.colorDepth))},void 0);I("yt.analytics.urchinTracker",function(){},void 0);I("yt.analytics.trackEvent",ug,void 0);
I("yt.timing.report",$.fc,void 0);I("yt.timing.maybeReport",$.fd,void 0);I("yt.timing.handlePageLoad",$.Je,void 0);I("yt.timing.handleThumbnailLoad",$.Ji,void 0);yl("init",$.Je);
I("yt.www.core.toggleSimpleTooltip",function(a,b){a=O(a);for(a[E][B].zIndex=b?"100":"0";a;){if(N(a,"tooltip-wrapper-box")||N(a,"reverse-tooltip-wrapper-box")){Dh(a,b);for(var c=a[Rb];c;){if(N(c,"tooltip-box")||N(c,"tooltip-box-bot"))Za(c[B],'url("http://s.ytimg.com/yt/img/tooltip-vfl56131.gif")');if(N(c,"reverse-tooltip-box")||N(c,"reverse-tooltip-box-bot"))Za(c[B],'url("http://s.ytimg.com/yt/img/tooltip-reverse-vfl88394.gif")');c=c[ic]}break}a=a[ic]}},void 0);
I("yt.www.subscriptions.edit.onUpdateSubscription",function(a,b,c,d){c=c||"";var e=j;if((b=O("subscription_level_unsubscribe"))&&b[zc])e=g;b=Xf(O("subscription_level_uploads"+c).form);X("/ajax_subscriptions?"+b,{postBody:"session_token="+a,onComplete:function(f){var i=O("subscribeMessage"+c)[Rb];f=Oh(f[Yc],"html_content");if("textContent"in i)i.textContent=f;else i.data=f;W("edit_subscription_wrapper"+c);W("edit_subscription_arrow"+c);V("subscribeMessage"+c);if(c){Ga(O("edit_subscription_opener"+
c)[B],"");ig(function(){W("subscribeMessage"+c)},5E3)}if(e){f=O("channel-body");i=P("div","subscribe-div",f);f=P("div","unsubscribe-div",f);K(i,function(k){Ih(k)});K(f,function(k){Ih(k)});d()}}})},void 0);I("yt.www.subscriptions.edit.onCancelUpdateSubscription",function(a){a=a||"";W("edit_subscription_wrapper"+a);W("edit_subscription_arrow"+a);if(a)Ga(O("edit_subscription_opener"+a)[B],"");W("alerts")},void 0);
I("yt.www.subscriptions.onSubscribeFromChannelSuccess",function(a){var b=O("channel-body"),c=P("div","subscribe-div",b);b=P("div","unsubscribe-div",b);K(c,function(d){Ih(d)});K(b,function(d){Ih(d)});c=O("position-edit-subscription-in-channel");b=O("edit_subscription_container");o(c,b[rb]);if(a){a=P("div","subscription_save_as_default",c)[0];c=P("div","subscription_level_unsubscribe",c)[0];Ih(a);Ih(c)}},void 0);
I("yt.www.subscriptions.edit.onEditSubscriptionFromRecentActivity",function(a,b,c,d){if(l["edit_subscription_download_"+c]){W("subscribeMessage"+c);Ih("edit_subscription_wrapper"+c);Ih("edit_subscription_arrow"+c);a=O("edit_subscription_opener"+c);Ga(a[B],a[B][qc]=="visible"?"":"visible")}else{l["edit_subscription_download_"+c]=g;X("/ajax_subscriptions?get_edit_subscription_form="+b+"&i="+c,{postBody:"session_token="+a,onComplete:function(e){Ga(O("edit_subscription_opener"+c)[B],"visible");var f=
m[Ob]("div");o(f,Oh(e[Yc],"html_content"));d[E][Ab](f,d);V("edit_subscription_wrapper"+c);V("edit_subscription_arrow"+c)}})}},void 0);hg("yt","goog","SWFObject","MooFx","_gel","_hasclass","_addclass","_removeclass","_showdiv","_hidediv","_ajax");
I("yt.www.masthead.extended.redirectWithNewParam",function(a,b){var c,d;c=l[A][dd];c=c[y]("#");d=c[w]==2?"#"+c[1]:"";c=c[0];var e=c[Ib](/[\?&]\w+=[^&#]*/g),f={};if(e)for(var i=0;i<e[w];++i){e[i]=e[i][y]("=");f[e[i][0][ed](1)]=ma(e[i][1][s](/\+/g,"%20"))}f[b]=a;f["persist_"+b]="1";c=c[y]("?");c=c[0];lm(c,f,d)},void 0);
I("yt.www.masthead.extended.onSafetyModeChange",function(){var a=O("safety-mode-lock-button"),b=O("safety-mode-on");if(a&&b)b[zc]?_removeclass(a,"yt-button-disabled"):_addclass(a,"yt-button-disabled")},void 0);I("yt.www.watch.annotations.setLayerToken",dq,void 0);I("yt.www.watch.embed.changeColor",Hk,void 0);I("yt.www.watch.embed.changeSize",Ik,void 0);I("yt.www.watch.embed.changeBorder",function(a){var b=xk.c();b.vb(Y.eb,!!a);b[Ic]();Lk();Gk()},void 0);
I("yt.www.watch.embed.changeRelated",function(a){var b=xk.c();b.vb(Y.Db,!a);b[Ic]();Gk()},void 0);I("yt.www.watch.embed.changeDelayedCookies",function(a){var b=xk.c();b.ic(Y.Cb,a);b[Ic]();Gk()},void 0);I("yt.www.watch.embed.changeDefaultHd",function(a){var b=xk.c();b.ic(Y.Bb,a);b[Ic]();if(a){a=Ek();b=Ek("hd720");if(a[0]<b[0]||a[1]<b[1])Ik("hd720")}Gk()},void 0);I("yt.www.watch.embed.changeCustomSize",Lk,void 0);
I("yt.www.watch.flagging.extended.onFlagVideoCheckboxClicked",function(){hq("","selectedFlagReason")},void 0);I("yt.www.watch.flagging.extended.onFlagAnnoCheckboxClicked",function(){hq("anno_","selectedAnnoFlagReason")},void 0);I("yt.www.watch.flagging.extended.flagReasonSelection",function(a,b,c,d,e,f){var i=O("flag_checkbox");if(i)Qa(i,g);kq("selectedFlagReason",a,b,c,d);gq("flag_");eq("flag_",e,f)},void 0);
I("yt.www.watch.flagging.extended.flagAnnoReasonSelection",function(a,b,c,d,e,f){var i=O("flag_anno_checkbox");if(i)Qa(i,g);kq("selectedAnnoFlagReason",a,b,c,d);gq("flag_anno_");eq("flag_anno_",e,f)},void 0);
I("yt.www.watch.flagging.extended.processFlagForm",function(a,b){if(b){var c=O("flag_checkbox"),d=O("flag_anno_checkbox");c[zc]||lq(b);d[zc]||mq(b);c=b.flag_reason[u];d=b.flag_sub_reason[u];var e=b.flag_anno_reason[u],f=b.flag_anno_sub_reason[u];if(c==""&&e=="")Ih("flag_Error");else{if(c!="")if(!rq("",c,d))return;if(e!="")if(!rq("_anno",e,f))return;qq(c,d,e,f);O("inappropriateVidDiv")?Ih("inappropriateVidDiv"):Ih("inappropriateMainDiv");c=function(){O("inappropriateVidDiv")?W("inappropriateVidDiv"):
W("inappropriateMainDiv")};d=b[hd]+"?log_action_flag";if(xg(a,"from-dislike")=="1")d+="&log_action_from_dislikes=1";X(d,{postBody:Xf(b),onComplete:c,onException:c});o(O("selectedFlagReason"),"- "+T("FLAG_DEFAULT")+" -");fq(O("selectedFlagReason"));gq("flag_");o(O("selectedAnnoFlagReason"),"- "+T("FLAG_DEFAULT")+" -");fq(O("selectedAnnoFlagReason"));gq("flag_anno_");if(O("watch-tab-flag"))L(O("watch-tab-flag"),"disabled");else if(c=O("watch-flag")){L(c,"yt-button-disabled");c[Yb]("onclick","return false");
wg(c,"button-action","")}}}},void 0);I("yt.www.watch.flagging.extended.flagError",function(a,b){if(a){o(O(a),b);Ih(a)}},void 0);I("yt.www.watch.flagging.extended.stripNonNumber",function(a){return a[s](/[^\d]/g,"")},void 0);
I("yt.www.watch.sharing.extended.submitToBlog",function(a){Ta(O("submitToBlogBtn"),g);var b=function(){Ih("addToBlogResult");ig(function(){W("addToBlogResult")},3E3);Ta(O("submitToBlogBtn"),j)},c,d;if(O("watch-share-video-div")[B][nd]!="none"){Xp("fewer-options","more-options");c=function(){W("watch-share-video-div");b()};d=function(){W("watch-share-video-div")}}else{c=function(){W("watch-share-blog-quick");b()};d=function(){W("watch-share-blog-quick")}}X(a[hd],{postBody:Xf(a),onComplete:c,onException:d})},
void 0);I("yt.www.watch.stats.extended.setInsightOptOut",function(a){if(a){L(O("insight-private"),"selected");M(O("insight-public"),"selected");L(O("insightBox"),"watch-stats-private-border")}else{L(O("insight-public"),"selected");M(O("insight-private"),"selected");M(O("insightBox"),"watch-stats-private-border")}X("/watch_ajax?action_set_insight_opt_out=1&opt_out="+a+"&video_id="+Q("VIDEO_ID"),{postBody:Q("AXC"),onComplete:function(){}});return j},void 0);
I("yt.www.watch.stats.extended.toggleReferrer",function(a){Ih(a);return j},void 0);I("yt.www.watch.survey.takeWatchPageSurvey",function(){sq();l[gb]("/watch_page_survey?r2="+Q("SURVEY_REFERER")+"&r1="+Q("SURVEY_SERVLET_NAME")+"&name="+Q("SURVEY_TYPE"),"YouTube_User_Happiness_Survey","toolbar=no,width=800,height=768,status=no,resizable=yes,fullscreen=no,scrollbars=yes")[Nb]()},void 0);I("yt.www.watch.survey.watchPageSurveyGoAway",sq,void 0);
I("yt.www.watch.survey.checkSurveyCompletedAndShow",function(){xk.c().Ia(Y.rc)||V("watch_page_survey")},void 0);I("yt.www.watch.user.unblockUserLink",function(a,b){if(!la(T("UNBLOCK_USER")))return j;X("/link_servlet",{postBody:"unblock_user=1&"+Q("BLOCK_USER_XSRF")+"&friend_id="+a,onComplete:function(){lm(b)}});return g},void 0);
I("yt.www.watch.user.blockUserLink",function(a,b){if(!la(T("BLOCK_USER")))return g;X("/link_servlet",{postBody:"block_user=1&"+Q("BLOCK_USER_XSRF")+"&friend_id="+a,onComplete:function(){lm(b)}});return g},void 0);I("yt.www.watch.user.unblockUserLinkByUsername",function(a){if(!la(T("UNBLOCK_USER")))return j;X("/link_servlet",{postBody:"unblock_user=0&"+Q("BLOCK_USER_XSRF")+"&friend_username="+a});return j},void 0);
I("yt.www.watch.user.blockUserLinkByUsername",function(a){if(!la(T("BLOCK_USER")))return j;X("/link_servlet",{postBody:"block_user=1&"+Q("BLOCK_USER_XSRF")+"&friend_username="+a});return j},void 0);I("__html5_enableWideScreen",Lp,void 0);I("setLayerToken",dq,void 0);I("getNextVideoId",function(a){if(a>Q("PLAY_ALL_MAX"))return"";var b;if((b=Q("SHUFFLE_ENABLED")?Q("SHUFFLED_VIDEO_LIST"):Q("SEQUENTIAL_VIDEO_LIST"))&&b[a-1])return b[a-1];return""},void 0);hg("setLayerToken","getNextVideoId");})();
