/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win)
{var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
/* 
 * flowplayer.js 3.2.6. The Flowplayer API
 * 
 * Copyright 2009-2011 Flowplayer Oy
 * 
 * This file is part of Flowplayer.
 * 
 * Flowplayer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Flowplayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Date: 2011-02-04 05:45:28 -0500 (Fri, 04 Feb 2011)
 * Revision: 614 
 */
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E},isLoaded:function(){return(v!==null&&v.fp_play!==undefined&&!D)},getParent:function(){return q},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&&!flashembed.isSupported(G.version)){q.innerHTML=""}if(J){J.cached=true;j(x,"onLoad",J)}flashembed(q,G,{config:t})};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&&w.isLoaded()){var I=w._api().fp_getPlugin(H);if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.6";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p},_swfHeight:function(){return v.clientHeight}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);return w}}w[H]=function(J){j(x,H,J);return w}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){g(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||c(r);o=w._swfHeight();m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;K<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<F.length){C=O;var J=F[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&&!t.clip.url){t.clip.url=q.getAttribute("href",2)}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var I=0;m(t.playlist,function(){var K=this;if(typeof K=="object"&&K.length){K={url:""+K}}m(t.clip,function(L,M){if(M!==undefined&&K[L]===undefined&&typeof M!="function"){K[L]=M}});t.playlist[I]=K;K=new h(K,I,w);F.push(K);I++});m(t,function(K,L){if(typeof L=="function"){if(s[K]){s[K](L)}else{j(x,K,L)}delete t[K]}});m(t.plugins,function(K,L){if(L){y[K]=new l(K,L,w)}});if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)}y.canvas=new l("canvas",null,w);u=q.innerHTML;function J(L){var K=w.hasiPadSupport&&w.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(F[0].url)&&!K){return true}if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return f(L)}function H(){if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",J,false)}else{if(q.attachEvent){q.attachEvent("onclick",J)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)}w.load()}}setTimeout(H,0)}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q}q=z;B()}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:false},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})();(function(){function aa(){return function(){}}function ba(a){return function(b){this[a]=b}}function e(a){return function(){return this[a]}}function k(a){return function(){return a}}var m,ca=ca||{},o=this;function p(a,b,c){a=a.split(".");c=c||o;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&b!==undefined)c[d]=b;else c=c[d]?c[d]:(c[d]={})}function da(a,b){a=a.split(".");b=b||o;for(var c;c=a.shift();)if(q(b[c]))b=b[c];else return null;return b}
function r(){}function t(){throw Error("unimplemented abstract method");}function ea(a){a.sa=function(){return a.bl||(a.bl=new a)}}
function fa(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function q(a){return a!=null}function u(a){return fa(a)=="array"}function ga(a){var b=fa(a);return b=="array"||b=="object"&&typeof a.length=="number"}function v(a){return typeof a=="string"}function ha(a){return fa(a)=="function"}function ia(a){a=fa(a);return a=="object"||a=="array"||a=="function"}function ja(a){return a[ka]||(a[ka]=++la)}var ka="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),la=0;
function ma(a){return a.call.apply(a.xh,arguments)}function na(a,b){if(!a)throw new Error;if(arguments.length>2){var c=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,c);return a.apply(b,d)}}else return function(){return a.apply(b,arguments)}}function w(){w=Function.prototype.xh&&Function.prototype.xh.toString().indexOf("native code")!=-1?ma:na;return w.apply(null,arguments)}
function oa(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}}var pa=Date.now||function(){return+new Date};function qa(a,b){b=b||{};for(var c in b){var d=(""+b[c]).replace(/\$/g,"$$$$");a=a.replace(new RegExp("\\{\\$"+c+"\\}","gi"),d)}return a}function x(a,b){function c(){}c.prototype=b.prototype;a.c=b.prototype;a.prototype=new c;a.prototype.constructor=a}
function y(){if(ra)sa[ja(this)]=this}var ra=false,sa={};y.prototype.rd=false;y.prototype.n=function(){if(!this.rd){this.rd=true;this.h();if(ra){var a=ja(this);if(!sa.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");delete sa[a]}}};y.prototype.h=function(){this.uk&&ta.apply(null,this.uk)};function ua(a){a&&typeof a.n=="function"&&a.n()}
function ta(){for(var a=0,b=arguments.length;a<b;++a){var c=arguments[a];ga(c)?ta.apply(null,c):ua(c)}}var va;function wa(a){this.stack=(new Error).stack||"";if(a)this.message=String(a)}x(wa,Error);wa.prototype.name="CustomError";function xa(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c}function ya(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a}
function Aa(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}function Ba(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Ca(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1}var Da=/^[a-zA-Z0-9\-_.!~*'()]*$/;function Ea(a){a=String(a);if(!Da.test(a))return encodeURIComponent(a);return a}function Fa(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")}
function Ga(a,b){if(b)return a.replace(Ha,"&amp;").replace(Ia,"&lt;").replace(Ja,"&gt;").replace(Ka,"&quot;");else{if(!La.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(Ha,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(Ia,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(Ja,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(Ka,"&quot;");return a}}var Ha=/&/g,Ia=/</g,Ja=/>/g,Ka=/\"/g,La=/[&<>\"]/;function Ma(a,b){return a.indexOf(b)!=-1}
function Na(a,b,c){a=c!==undefined?a.toFixed(c):String(a);c=a.indexOf(".");if(c==-1)c=a.length;b=Math.max(0,b-c);return(new Array(b+1)).join("0")+a}
function Oa(a,b){var c=0;a=Ba(String(a)).split(".");b=Ba(String(b)).split(".");for(var d=Math.max(a.length,b.length),f=0;c==0&&f<d;f++){var g=a[f]||"",h=b[f]||"",j=new RegExp("(\\d*)(\\D*)","g"),l=new RegExp("(\\d*)(\\D*)","g");do{var n=j.exec(g)||["","",""],s=l.exec(h)||["","",""];if(n[0].length==0&&s[0].length==0)break;c=n[1].length==0?0:parseInt(n[1],10);var F=s[1].length==0?0:parseInt(s[1],10);c=Pa(c,F)||Pa(n[2].length==0,s[2].length==0)||Pa(n[2],s[2])}while(c==0)}return c}
function Pa(a,b){if(a<b)return-1;else if(a>b)return 1;return 0}var Qa={};function Ra(a){return Qa[a]||(Qa[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))}function Sa(a,b){b.unshift(a);wa.call(this,ya.apply(null,b));b.shift();this.xn=a}x(Sa,wa);Sa.prototype.name="AssertionError";var Ta=Array.prototype;
function Ua(a,b,c){c=c==null?0:c<0?Math.max(0,a.length+c):c;if(v(a)){if(!v(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1}function z(a,b,c){for(var d=a.length,f=v(a)?a.split(""):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)}function Va(a,b,c){for(var d=a.length,f=[],g=0,h=v(a)?a.split(""):a,j=0;j<d;j++)if(j in h){var l=h[j];if(b.call(c,l,j,a))f[g++]=l}return f}
function A(a,b,c){for(var d=a.length,f=new Array(d),g=v(a)?a.split(""):a,h=0;h<d;h++)if(h in g)f[h]=b.call(c,g[h],h,a);return f}function Wa(a,b,c){for(var d=a.length,f=v(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a))return true;return false}function Xa(a,b,c){a:{for(var d=a.length,f=v(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a)){b=g;break a}b=-1}return b<0?null:v(a)?a.charAt(b):a[b]}function B(a,b){return Ua(a,b)>=0}function Ya(a,b,c){Za(a,c,0,b)}
function $a(a,b,c){oa(Za,a,c,0).apply(null,b)}function ab(a,b){b=Ua(a,b);var c;if(c=b>=0)Ta.splice.call(a,b,1);return c}function bb(){return Ta.concat.apply(Ta,arguments)}function cb(a){if(u(a))return bb(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}function db(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;if(u(c)||(d=ga(c))&&c.hasOwnProperty("callee"))a.push.apply(a,c);else if(d)for(var f=a.length,g=c.length,h=0;h<g;h++)a[f+h]=c[h];else a.push(c)}}
function Za(a){return Ta.splice.apply(a,eb(arguments,1))}function eb(a,b,c){return arguments.length<=2?Ta.slice.call(a,b):Ta.slice.call(a,b,c)}function fb(a,b){b=b||a;for(var c={},d=0,f=0;f<a.length;){var g=a[f++],h=ia(g)?"o"+ja(g):(typeof g).charAt(0)+g;if(!Object.prototype.hasOwnProperty.call(c,h)){c[h]=true;b[d++]=g}}b.length=d}function gb(a,b,c,d,f){for(var g=0,h=a.length,j;g<h;){var l=g+h>>1,n;n=c?b.call(f,a[l],l,a):b(d,a[l]);if(n>0)g=l+1;else{h=l;j=!n}}return j?g:~g}
function hb(a,b){Ta.sort.call(a,b||ib)}function ib(a,b){return a>b?1:a<b?-1:0}var jb=[],kb,lb,mb,nb,ob,pb,qb;function rb(){return o.navigator?o.navigator.userAgent:null}function sb(){return o.navigator}ob=nb=mb=lb=kb=false;var tb;if(tb=rb()){var ub=sb();kb=tb.indexOf("Opera")==0;lb=!kb&&tb.indexOf("MSIE")!=-1;nb=(mb=!kb&&tb.indexOf("WebKit")!=-1)&&tb.indexOf("Mobile")!=-1;ob=!kb&&!mb&&ub.product=="Gecko"}var vb=kb,C=lb,D=ob,E=mb,wb=nb,xb,yb=sb();xb=yb&&yb.platform||"";pb=Ma(xb,"Mac");Ma(xb,"Win");
qb=Ma(xb,"Linux");var zb=!!sb()&&Ma(sb().appVersion||"","X11"),Ab;a:{var Bb="",Cb;if(vb&&o.opera){var Db=o.opera.version;Bb=typeof Db=="function"?Db():Db}else{if(D)Cb=/rv\:([^\);]+)(\)|;)/;else if(C)Cb=/MSIE\s+([^\);]+)(\)|;)/;else if(E)Cb=/WebKit\/(\S+)/;if(Cb){var Eb=Cb.exec(rb());Bb=Eb?Eb[1]:""}}if(C){var Fb,Gb=o.document;Fb=Gb?Gb.documentMode:undefined;if(Fb>parseFloat(Bb)){Ab=String(Fb);break a}}Ab=Bb}var Hb={};function Ib(a){return Hb[a]||(Hb[a]=Oa(Ab,a)>=0)}var Jb={};
function Kb(a){return Jb[a]||(Jb[a]=C&&document.documentMode&&document.documentMode>=a)}var Lb,Mb=!C||Kb(9),Nb=C&&!Ib("8");function Ob(a,b){y.call(this);this.type=a;this.currentTarget=this.target=b}x(Ob,y);m=Ob.prototype;m.h=function(){delete this.type;delete this.target;delete this.currentTarget};m.Jb=false;m.tc=true;m.stopPropagation=function(){this.Jb=true};m.preventDefault=function(){this.tc=false};function Pb(a){a.preventDefault()}function Qb(a){Qb[" "](a);return a}Qb[" "]=r;
function G(a,b){a&&this.Vb(a,b)}x(G,Ob);var Rb=[1,4,2];m=G.prototype;m.target=null;m.relatedTarget=null;m.offsetX=0;m.offsetY=0;m.clientX=0;m.clientY=0;m.screenX=0;m.screenY=0;m.button=0;m.keyCode=0;m.charCode=0;m.ctrlKey=false;m.altKey=false;m.shiftKey=false;m.metaKey=false;m.Ql=false;m.ea=null;
m.Vb=function(a,b){var c=this.type=a.type;Ob.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(D){var d;a:{try{Qb(b.nodeName);d=true;break a}catch(f){}d=false}d||(b=null)}}else if(c=="mouseover")b=a.fromElement;else if(c=="mouseout")b=a.toElement;this.relatedTarget=b;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?
a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Ql=pb?a.metaKey:a.ctrlKey;this.hm=a.hm;this.ea=a;delete this.tc;delete this.Jb};function Sb(a){return(Mb?a.ea.button==0:a.type=="click"?true:!!(a.ea.button&Rb[0]))&&!(E&&pb&&a.ctrlKey)}
G.prototype.stopPropagation=function(){G.c.stopPropagation.call(this);if(this.ea.stopPropagation)this.ea.stopPropagation();else this.ea.cancelBubble=true};G.prototype.preventDefault=function(){G.c.preventDefault.call(this);var a=this.ea;if(a.preventDefault)a.preventDefault();else{a.returnValue=false;if(Nb)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};G.prototype.Fk=e("ea");
G.prototype.h=function(){G.c.h.call(this);this.relatedTarget=this.currentTarget=this.target=this.ea=null};function Tb(){}var Ub=0;m=Tb.prototype;m.ia=0;m.rc=false;m.Ff=false;m.Vb=function(a,b,c,d,f,g){if(ha(a))this.ri=true;else if(a&&a.handleEvent&&ha(a.handleEvent))this.ri=false;else throw Error("Invalid listener argument");this.Rc=a;this.bj=b;this.src=c;this.type=d;this.capture=!!f;this.Be=g;this.Ff=false;this.ia=++Ub;this.rc=false};
m.handleEvent=function(a){if(this.ri)return this.Rc.call(this.Be||this.src,a);return this.Rc.handleEvent.call(this.Rc,a)};function Vb(a,b){y.call(this);this.Hi=b;this.hc=[];if(a>this.Hi)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(b=0;b<a;b++)this.hc.push(this.Bb?this.Bb():{})}x(Vb,y);Vb.prototype.Bb=null;Vb.prototype.Lh=null;function Wb(a){if(a.hc.length)return a.hc.pop();return a.Bb?a.Bb():{}}function Xb(a,b){a.hc.length<a.Hi?a.hc.push(b):Yb(a,b)}
function Yb(a,b){if(a.Lh)a.Lh(b);else if(ia(b))if(ha(b.n))b.n();else for(var c in b)delete b[c]}Vb.prototype.h=function(){Vb.c.h.call(this);for(var a=this.hc;a.length;)Yb(this,a.pop());delete this.hc};var Zb;var $b=(Zb="ScriptEngine"in o&&o.ScriptEngine()=="JScript")?o.ScriptEngineMajorVersion()+"."+o.ScriptEngineMinorVersion()+"."+o.ScriptEngineBuildVersion():"0",ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc;
(function(){function a(){return{z:0,jb:0}}function b(){return[]}function c(){function W(J){J=h.call(W.src,W.ia,J);if(!J)return J}return W}function d(){return new Tb}function f(){return new G}var g=Zb&&!(Oa($b,"5.7")>=0),h;fc=function(W){h=W};if(g){ac=function(){return Wb(j)};bc=function(W){Xb(j,W)};cc=function(){return Wb(l)};dc=function(W){Xb(l,W)};ec=function(){return Wb(n)};gc=function(){Xb(n,c())};hc=function(){return Wb(s)};ic=function(W){Xb(s,W)};jc=function(){return Wb(F)};kc=function(W){Xb(F,
W)};var j=new Vb(0,600);j.Bb=a;var l=new Vb(0,600);l.Bb=b;var n=new Vb(0,600);n.Bb=c;var s=new Vb(0,600);s.Bb=d;var F=new Vb(0,600);F.Bb=f}else{ac=a;bc=r;cc=b;dc=r;ec=c;gc=r;hc=d;ic=r;jc=f;kc=r}})();function lc(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function mc(a,b,c){var d={};for(var f in a)if(b.call(c,a[f],f,a))d[f]=a[f];return d}function nc(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b}function oc(a){var b=[],c=0;for(var d in a)b[c++]=d;return b}
function pc(a,b){var c;if(c=b in a)delete a[b];return c}function qc(a,b,c){if(b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c}function rc(a,b,c){if(b in a)return a[b];return c}function sc(a){var b={};for(var c in a)b[a[c]]=c;return b}var tc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];
function uc(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var f=0;f<tc.length;f++){b=tc[f];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}}function vc(){var a=arguments.length;if(a==1&&u(arguments[0]))return vc.apply(null,arguments[0]);if(a%2)throw Error("Uneven number of arguments");for(var b={},c=0;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b}var wc={},xc={},yc={},zc={};
function H(a,b,c,d,f){if(b)if(u(b)){for(var g=0;g<b.length;g++)H(a,b[g],c,d,f);return null}else{d=!!d;var h=xc;b in h||(h[b]=ac());h=h[b];if(!(d in h)){h[d]=ac();h.z++}h=h[d];var j=ja(a),l;h.jb++;if(h[j]){l=h[j];for(g=0;g<l.length;g++){h=l[g];if(h.Rc==c&&h.Be==f){if(h.rc)break;return l[g].ia}}}else{l=h[j]=cc();h.z++}g=ec();g.src=a;h=hc();h.Vb(c,g,a,b,d,f);c=h.ia;g.ia=c;l.push(h);wc[c]=h;yc[j]||(yc[j]=cc());yc[j].push(h);if(a.addEventListener){if(a==o||!a.Hh)a.addEventListener(b,g,d)}else a.attachEvent(Ac(b),
g);return c}else throw Error("Invalid event type");}function Bc(a,b,c,d,f){if(u(b)){for(var g=0;g<b.length;g++)Bc(a,b[g],c,d,f);return null}a=H(a,b,c,d,f);wc[a].Ff=true;return a}function Cc(a,b,c,d,f){if(u(b)){for(var g=0;g<b.length;g++)Cc(a,b[g],c,d,f);return null}d=!!d;a=Dc(a,b,d);if(!a)return false;for(g=0;g<a.length;g++)if(a[g].Rc==c&&a[g].capture==d&&a[g].Be==f)return Ec(a[g].ia);return false}
function Ec(a){if(!wc[a])return false;var b=wc[a];if(b.rc)return false;var c=b.src,d=b.type,f=b.bj,g=b.capture;if(c.removeEventListener){if(c==o||!c.Hh)c.removeEventListener(d,f,g)}else c.detachEvent&&c.detachEvent(Ac(d),f);c=ja(c);f=xc[d][g][c];if(yc[c]){var h=yc[c];ab(h,b);h.length==0&&delete yc[c]}b.rc=true;f.Mi=true;Fc(d,g,c,f);delete wc[a];return true}
function Fc(a,b,c,d){if(!d.He)if(d.Mi){for(var f=0,g=0;f<d.length;f++)if(d[f].rc){var h=d[f].bj;h.src=null;gc(h);ic(d[f])}else{if(f!=g)d[g]=d[f];g++}d.length=g;d.Mi=false;if(g==0){dc(d);delete xc[a][b][c];xc[a][b].z--;if(xc[a][b].z==0){bc(xc[a][b]);delete xc[a][b];xc[a].z--}if(xc[a].z==0){bc(xc[a]);delete xc[a]}}}}
function Gc(a,b,c){var d=0,f=a==null,g=b==null,h=c==null;c=!!c;if(f)lc(yc,function(l){for(var n=l.length-1;n>=0;n--){var s=l[n];if((g||b==s.type)&&(h||c==s.capture)){Ec(s.ia);d++}}});else{a=ja(a);if(yc[a]){a=yc[a];for(f=a.length-1;f>=0;f--){var j=a[f];if((g||b==j.type)&&(h||c==j.capture)){Ec(j.ia);d++}}}}return d}function Dc(a,b,c){var d=xc;if(b in d){d=d[b];if(c in d){d=d[c];a=ja(a);if(d[a])return d[a]}}return null}function Ac(a){if(a in zc)return zc[a];return zc[a]="on"+a}
function Hc(a,b,c,d){var f=xc;if(b in f){f=f[b];if(c in f)return Ic(f[c],a,b,c,d)}return true}function Ic(a,b,c,d,f){var g=1;b=ja(b);if(a[b]){a.jb--;a=a[b];if(a.He)a.He++;else a.He=1;try{for(var h=a.length,j=0;j<h;j++){var l=a[j];if(l&&!l.rc)g&=Jc(l,f)!==false}}finally{a.He--;Fc(c,d,b,a)}}return Boolean(g)}function Jc(a,b){b=a.handleEvent(b);a.Ff&&Ec(a.ia);return b}
function Kc(a,b){var c=b.type||b,d=xc;if(!(c in d))return true;if(v(b))b=new Ob(b,a);else if(b instanceof Ob)b.target=b.target||a;else{var f=b;b=new Ob(c,a);uc(b,f)}f=1;var g;d=d[c];c=true in d;var h;if(c){g=[];for(h=a;h;h=h.Te)g.push(h);h=d[true];h.jb=h.z;for(var j=g.length-1;!b.Jb&&j>=0&&h.jb;j--){b.currentTarget=g[j];f&=Ic(h,g[j],b.type,true,b)&&b.tc!=false}}if(false in d){h=d[false];h.jb=h.z;if(c)for(j=0;!b.Jb&&j<g.length&&h.jb;j++){b.currentTarget=g[j];f&=Ic(h,g[j],b.type,false,b)&&b.tc!=false}else for(a=
a;!b.Jb&&a&&h.jb;a=a.Te){b.currentTarget=a;f&=Ic(h,a,b.type,false,b)&&b.tc!=false}}return Boolean(f)}
function Lc(a,b){if(!wc[a])return true;a=wc[a];var c=a.type,d=xc;if(!(c in d))return true;d=d[c];var f,g;if(Lb===undefined)Lb=C&&!o.addEventListener;if(Lb){f=b||da("window.event");b=true in d;var h=false in d;if(b){if(f.keyCode<0||f.returnValue!=undefined)return true;a:{var j=false;if(f.keyCode==0)try{f.keyCode=-1;break a}catch(l){j=true}if(j||f.returnValue==undefined)f.returnValue=true}}j=jc();j.Vb(f,this);f=true;try{if(b){for(var n=cc(),s=j.currentTarget;s;s=s.parentNode)n.push(s);g=d[true];g.jb=
g.z;for(var F=n.length-1;!j.Jb&&F>=0&&g.jb;F--){j.currentTarget=n[F];f&=Ic(g,n[F],c,true,j)}if(h){g=d[false];g.jb=g.z;for(F=0;!j.Jb&&F<n.length&&g.jb;F++){j.currentTarget=n[F];f&=Ic(g,n[F],c,false,j)}}}else f=Jc(a,j)}finally{if(n){n.length=0;dc(n)}j.n();kc(j)}return f}g=new G(b,this);try{f=Jc(a,g)}finally{g.n()}return f}fc(Lc);jb[jb.length]=function(a){Lc=a(Lc);fc(Lc)};function I(){y.call(this)}x(I,y);m=I.prototype;m.Hh=true;m.Te=null;m.wb=ba("Te");
m.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){Cc(this,a,b,c,d)};m.dispatchEvent=function(a){return Kc(this,a)};m.h=function(){I.c.h.call(this);Gc(this);this.Te=null};function K(a,b){y.call(this);this.Oc=a||1;this.Ud=b||Mc;this.Df=w(this.qm,this);this.ig=pa()}x(K,I);K.prototype.enabled=false;var Mc=o.window;m=K.prototype;m.Ia=null;
m.qm=function(){if(this.enabled){var a=pa()-this.ig;if(a>0&&a<this.Oc*0.8)this.Ia=this.Ud.setTimeout(this.Df,this.Oc-a);else{this.dispatchEvent(L);if(this.enabled){this.Ia=this.Ud.setTimeout(this.Df,this.Oc);this.ig=pa()}}}};m.start=function(){this.enabled=true;if(!this.Ia){this.Ia=this.Ud.setTimeout(this.Df,this.Oc);this.ig=pa()}};m.stop=function(){this.enabled=false;if(this.Ia){this.Ud.clearTimeout(this.Ia);this.Ia=null}};m.h=function(){K.c.h.call(this);this.stop();delete this.Ud};var L="tick";
function Nc(a,b,c){if(ha(a)){if(c)a=w(a,c)}else if(a&&typeof a.handleEvent=="function")a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return b>2147483647?-1:Mc.setTimeout(a,b||0)}var Oc,Pc=!C||Kb(9),Qc=!D&&!C||C&&Kb(9)||D&&Ib("1.9.1"),Rc=C&&!Ib("9");function Sc(a,b){a.className=b}function Tc(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]}
function M(a){var b=Tc(a),c;c=eb(arguments,1);for(var d=0,f=0;f<c.length;f++)if(!B(b,c[f])){b.push(c[f]);d++}c=d==c.length;a.className=b.join(" ");return c}function Uc(a){var b=Tc(a),c;c=eb(arguments,1);for(var d=0,f=0;f<b.length;f++)if(B(c,b[f])){Za(b,f--,1);d++}c=d==c.length;a.className=b.join(" ");return c}function Vc(a,b,c){c?M(a,b):Uc(a,b)}function Wc(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0}Wc.prototype.Fa=function(){return new Wc(this.x,this.y)};
function Xc(a,b){return new Wc(a.x-b.x,a.y-b.y)}function N(a,b){this.width=a;this.height=b}N.prototype.Fa=function(){return new N(this.width,this.height)};N.prototype.Ib=function(){return!(this.width*this.height)};N.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};N.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Yc(a){return a?new Zc($c(a)):Oc||(Oc=new Zc)}
function ad(a){return v(a)?document.getElementById(a):a}function bd(a,b,c){return cd(document,a,b,c)}function dd(a,b){var c=b||document;if(ed(c))return c.querySelectorAll("."+a);else if(c.getElementsByClassName)return c.getElementsByClassName(a);return cd(document,"*",a,b)}function fd(a,b){var c=b||document,d=null;return(d=ed(c)?c.querySelector("."+a):dd(a,b)[0])||null}function ed(a){return a.querySelectorAll&&a.querySelector&&(!E||gd(document)||Ib("528"))}
function cd(a,b,c,d){a=d||a;b=b&&b!="*"?b.toUpperCase():"";if(ed(a)&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var f=0,g=0,h;h=a[g];g++)if(b==h.nodeName)d[f++]=h;d.length=f;return d}else return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(g=f=0;h=a[g];g++){b=h.className;if(typeof b.split=="function"&&B(b.split(/\s+/),c))d[f++]=h}d.length=f;return d}else return a}
function hd(a,b){lc(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in id)a.setAttribute(id[d],c);else if(d.lastIndexOf("aria-",0)==0)a.setAttribute(d,c);else a[d]=c})}var id={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"};
function jd(a){var b=a.document;if(E&&!Ib("500")&&!wb){if(typeof a.innerHeight=="undefined")a=window;b=a.innerHeight;var c=a.document.documentElement.scrollHeight;if(a==a.top)if(c<b)b-=15;return new N(a.innerWidth,b)}a=gd(b)?b.documentElement:b.body;return new N(a.clientWidth,a.clientHeight)}function kd(a){return!E&&gd(a)?a.documentElement:a.body}function ld(a){return a?a.parentWindow||a.defaultView:window}
function md(a,b,c,d){function f(h){if(h)b.appendChild(v(h)?a.createTextNode(h):h)}for(d=d;d<c.length;d++){var g=c[d];ga(g)&&!(ia(g)&&g.nodeType>0)?z(nd(g)?cb(g):g,f):f(g)}}function gd(a){return a.compatMode=="CSS1Compat"}function od(a,b){a.appendChild(b)}function O(a){md($c(a),a,arguments,1)}function pd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function qd(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}
function rd(a){if(Qc&&a.nk!=undefined)return a.nk;return Va(a.childNodes,function(b){return b.nodeType==1})}function sd(a){if(a.firstElementChild!=undefined)return a.firstElementChild;return td(a.firstChild,true)}function td(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a}
function ud(a,b){if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function $c(a){return a.nodeType==9?a:a.ownerDocument||a.document}
function vd(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{pd(a);var c=$c(a);a.appendChild(c.createTextNode(b))}}function wd(a,b){var c=[];return xd(a,b,c,true)?c[0]:undefined}function xd(a,b,c,d){if(a!=null)for(a=a.firstChild;a;){if(b(a)){c.push(a);if(d)return true}if(xd(a,b,c,d))return true;a=a.nextSibling}return false}
var yd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},zd={IMG:" ",BR:"\n"};function Ad(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){a=a.tabIndex;return typeof a=="number"&&a>=0&&a<32768}return false}function Bd(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")}
function Cd(a){if(Rc&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Dd(a,b,true);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Rc||(a=a.replace(/ +/g," "));if(a!=" ")a=a.replace(/^\s*/,"");return a}function Ed(a){var b=[];Dd(a,b,false);return b.join("")}
function Dd(a,b,c){if(!(a.nodeName in yd))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in zd)b.push(zd[a.nodeName]);else for(a=a.firstChild;a;){Dd(a,b,c);a=a.nextSibling}}function nd(a){if(a&&typeof a.length=="number")if(ia(a))return typeof a.item=="function"||typeof a.item=="string";else if(ha(a))return typeof a.item=="function";return false}function Zc(a){this.K=a||o.document||document}Zc.prototype.g=Yc;
function Fd(a){return a.K}Zc.prototype.a=function(a){return v(a)?this.K.getElementById(a):a};Zc.prototype.e=function(){var a=this.K,b=arguments,c=b[0],d=b[1];if(!Pc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ga(d.name),'"');if(d.type){c.push(' type="',Ga(d.type),'"');var f={};uc(f,d);d=f;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)if(v(d))c.className=d;else u(d)?M.apply(null,[c].concat(d)):hd(c,d);b.length>2&&md(a,c,b,2);return c};Zc.prototype.createElement=function(a){return this.K.createElement(a)};
Zc.prototype.createTextNode=function(a){return this.K.createTextNode(a)};function Gd(a){return gd(a.K)}function Hd(a){var b=a.K;a=kd(b);b=b.parentWindow||b.defaultView;return new Wc(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Zc.prototype.appendChild=od;Zc.prototype.append=O;Zc.prototype.Xe=pd;Zc.prototype.contains=ud;function Id(a,b){a.setAttribute("role",b);a.En=b}function Jd(a,b,c){a.setAttribute("aria-"+b,c)}
function Kd(a,b){return a.e("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+(b||""),src:'javascript:""'})}function Ld(a){y.call(this);this.k=a;a=C?"focusout":"blur";this.hl=H(this.k,C?"focusin":"focus",this,!C);this.il=H(this.k,a,this,!C)}x(Ld,I);Ld.prototype.handleEvent=function(a){var b=new G(a.ea);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.n()}};Ld.prototype.h=function(){Ld.c.h.call(this);Ec(this.hl);Ec(this.il);delete this.k};
function Md(a,b,c,d,f){if(!C&&!(E&&Ib("525")))return true;if(pb&&f)return Nd(a);if(f&&!d)return false;if(!c&&(b==17||b==18))return false;if(C&&d&&b==a)return false;switch(a){case 13:return!(C&&Kb(9));case 27:return!E}return Nd(a)}
function Nd(a){if(a>=48&&a<=57)return true;if(a>=96&&a<=106)return true;if(a>=65&&a<=90)return true;if(E&&a==0)return true;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return true;default:return false}}function P(a){y.call(this);this.Ca=a;this.Q=[]}x(P,y);var Od=[];
P.prototype.d=function(a,b,c,d,f){if(!u(b)){Od[0]=b;b=Od}for(var g=0;g<b.length;g++)this.Q.push(H(a,b[g],c||this,d||false,f||this.Ca||this));return this};function Pd(a,b,c,d,f,g){if(u(c))for(var h=0;h<c.length;h++)Pd(a,b,c[h],d,f,g);else{b=Bc(b,c,d||a,f,g||a.Ca||a);a.Q.push(b)}return a}
P.prototype.ob=function(a,b,c,d,f){if(u(b))for(var g=0;g<b.length;g++)this.ob(a,b[g],c,d,f);else{a:{c=c||this;f=f||this.Ca||this;d=!!d;if(a=Dc(a,b,d))for(b=0;b<a.length;b++)if(!a[b].rc&&a[b].Rc==c&&a[b].capture==d&&a[b].Be==f){a=a[b];break a}a=null}if(a){a=a.ia;Ec(a);ab(this.Q,a)}}return this};P.prototype.Xc=function(){z(this.Q,Ec);this.Q.length=0};P.prototype.h=function(){P.c.h.call(this);this.Xc()};P.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};
function Qd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Qd.prototype.Fa=function(){return new Qd(this.top,this.right,this.bottom,this.left)};Qd.prototype.contains=function(a){return!this||!a?false:a instanceof Qd?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function Rd(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}
Rd.prototype.Fa=function(){return new Rd(this.left,this.top,this.width,this.height)};Rd.prototype.contains=function(a){return a instanceof Rd?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
function Sd(a,b,c){y.call(this);this.target=a;this.handle=b||a;this.kg=c||new Rd(NaN,NaN,NaN,NaN);this.K=$c(a);this.X=new P(this);H(this.handle,["touchstart","mousedown"],this.jf,false,this)}x(Sd,I);var Td=C||D&&Ib("1.9.3");m=Sd.prototype;m.clientX=0;m.clientY=0;m.screenX=0;m.screenY=0;m.nj=0;m.oj=0;m.Gc=0;m.Hc=0;m.Eb=true;m.Qb=false;m.fi=0;m.sl=0;m.Yk=false;m.q=e("X");m.uc=ba("Eb");
m.h=function(){Sd.c.h.call(this);Cc(this.handle,["touchstart","mousedown"],this.jf,false,this);this.X.n();delete this.target;delete this.handle;delete this.X};
m.jf=function(a){var b=a.type=="mousedown";if(this.Eb&&!this.Qb&&(!b||Sb(a))){Ud(this,a);if(this.fi==0){Vd(this,a);if(this.Qb)a.preventDefault();else return}else a.preventDefault();b=this.K;var c=b.documentElement,d=!Td;this.X.d(b,["touchmove","mousemove"],this.Rk,d);this.X.d(b,["touchend","mouseup"],this.se,d);if(Td){c.setCapture(false);this.X.d(c,"losecapture",this.se)}else this.X.d(ld(b),"blur",this.se);C&&this.Yk&&this.X.d(b,"dragstart",Pb);this.Zl&&this.X.d(this.Zl,"scroll",this.Kl,d);this.clientX=
this.nj=a.clientX;this.clientY=this.oj=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.Gc=this.target.offsetLeft;this.Hc=this.target.offsetTop;this.xg=Hd(Yc(this.K));this.sl=pa()}else this.dispatchEvent("earlycancel")};function Vd(a,b){if(a.dispatchEvent(new Wd("start",a,b.clientX,b.clientY,b))!==false)a.Qb=true}
Sd.prototype.se=function(a,b){this.X.Xc();Td&&this.K.releaseCapture();var c=Xd(this,this.Gc),d=Yd(this,this.Hc);if(this.Qb){Ud(this,a);this.Qb=false;this.dispatchEvent(new Wd("end",this,a.clientX,a.clientY,a,c,d,b||a.type=="touchcancel"))}else this.dispatchEvent("earlycancel");if(a.type=="touchend"||a.type=="touchcancel")a.preventDefault()};
function Ud(a,b){a=b.type;if(a=="touchstart"||a=="touchmove")b.Vb(b.ea.targetTouches[0],b.currentTarget);else if(a=="touchend"||a=="touchcancel")b.Vb(b.ea.changedTouches[0],b.currentTarget)}
Sd.prototype.Rk=function(a){if(this.Eb){Ud(this,a);var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.Qb){var d=this.nj-this.clientX,f=this.oj-this.clientY;if(d*d+f*f>this.fi){Vd(this,a);if(!this.Qb){this.se(a);return}}}c=Zd(this,b,c);b=c.x;c=c.y;if(this.Qb)if(this.dispatchEvent(new Wd("beforedrag",this,a.clientX,a.clientY,a,b,c))!==false){this.Ih(b,c);this.dispatchEvent(new Wd("drag",this,a.clientX,
a.clientY,a,b,c));a.preventDefault()}}};function Zd(a,b,c){var d=Hd(Yc(a.K));b+=d.x-a.xg.x;c+=d.y-a.xg.y;a.xg=d;a.Gc+=b;a.Hc+=c;b=Xd(a,a.Gc);a=Yd(a,a.Hc);return new Wc(b,a)}Sd.prototype.Kl=function(a){var b=Zd(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;var c=b.x;b=b.y;this.Ih(c,b);this.dispatchEvent(new Wd("drag",this,a.clientX,a.clientY,a,c,b))};
function Xd(a,b){var c=a.kg;a=!isNaN(c.left)?c.left:null;c=!isNaN(c.width)?c.width:0;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))}function Yd(a,b){var c=a.kg;a=!isNaN(c.top)?c.top:null;c=!isNaN(c.height)?c.height:0;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))}Sd.prototype.Ih=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};
function Wd(a,b,c,d,f,g,h,j){Ob.call(this,a);this.clientX=c;this.clientY=d;this.en=f;this.left=g!==undefined?g:b.Gc;this.top=h!==undefined?h:b.Hc;this.on=b;this.nn=!!j}x(Wd,Ob);function $d(a){if(typeof a.ub=="function")return a.ub();if(v(a))return a.split("");if(ga(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return nc(a)}
function ae(a){if(typeof a.ic=="function")return a.ic();if(typeof a.ub!="function"){if(ga(a)||v(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return oc(a)}}function be(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ga(a)||v(a))z(a,b,c);else for(var d=ae(a),f=$d(a),g=f.length,h=0;h<g;h++)b.call(c,f[h],d&&d[h],a)}"StopIteration"in o||Error("StopIteration");
function ce(a){this.ja={};this.Q=[];var b=arguments.length;if(b>1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c<b;c+=2)this.Y(arguments[c],arguments[c+1])}else a&&this.zf(a)}m=ce.prototype;m.z=0;m.Vg=0;m.ub=function(){de(this);for(var a=[],b=0;b<this.Q.length;b++)a.push(this.ja[this.Q[b]]);return a};m.ic=function(){de(this);return this.Q.concat()};m.Va=function(a){return ee(this.ja,a)};m.Ib=function(){return this.z==0};m.clear=function(){this.ja={};this.Vg=this.z=this.Q.length=0};
m.remove=function(a){if(ee(this.ja,a)){delete this.ja[a];this.z--;this.Vg++;this.Q.length>2*this.z&&de(this);return true}return false};function de(a){if(a.z!=a.Q.length){for(var b=0,c=0;b<a.Q.length;){var d=a.Q[b];if(ee(a.ja,d))a.Q[c++]=d;b++}a.Q.length=c}if(a.z!=a.Q.length){var f={};for(c=b=0;b<a.Q.length;){d=a.Q[b];if(!ee(f,d)){a.Q[c++]=d;f[d]=1}b++}a.Q.length=c}}m=ce.prototype;m.da=function(a,b){if(ee(this.ja,a))return this.ja[a];return b};
m.Y=function(a,b){if(!ee(this.ja,a)){this.z++;this.Q.push(a);this.Vg++}this.ja[a]=b};m.zf=function(a){var b;if(a instanceof ce){b=a.ic();a=a.ub()}else{b=oc(a);a=nc(a)}for(var c=0;c<b.length;c++)this.Y(b[c],a[c])};m.Fa=function(){return new ce(this)};m.wj=function(){de(this);for(var a={},b=0;b<this.Q.length;b++){var c=this.Q[b];a[c]=this.ja[c]}return a};function ee(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
function fe(a,b){var c=$c(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(a=c.defaultView.getComputedStyle(a,null))return a[b]||a.getPropertyValue(b);return""}function ge(a,b){return fe(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style[b]}function he(a){return ge(a,"position")}function ie(a,b,c){var d,f=D&&(pb||zb)&&Ib("1.9");if(b instanceof Wc){d=b.x;b=b.y}else{d=b;b=c}a.style.left=je(d,f);a.style.top=je(b,f)}
function ke(a){var b=a.getBoundingClientRect();if(C){a=a.ownerDocument;b.left-=a.documentElement.clientLeft+a.body.clientLeft;b.top-=a.documentElement.clientTop+a.body.clientTop}return b}
function le(a){if(C)return a.offsetParent;var b=$c(a),c=ge(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=ge(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a}return null}
function me(a,b,c){var d=ne(a),f=ne(b),g;if(C){var h=oe(b,"borderLeft");g=oe(b,"borderRight");var j=oe(b,"borderTop"),l=oe(b,"borderBottom");g=new Qd(j,g,l,h)}else{h=fe(b,"borderLeftWidth");g=fe(b,"borderRightWidth");j=fe(b,"borderTopWidth");l=fe(b,"borderBottomWidth");g=new Qd(parseFloat(j),parseFloat(g),parseFloat(l),parseFloat(h))}h=d.x-f.x-g.left;d=d.y-f.y-g.top;f=b.clientWidth-a.offsetWidth;a=b.clientHeight-a.offsetHeight;if(c){b.scrollLeft+=h-f/2;b.scrollTop+=d-a/2}else{b.scrollLeft+=Math.min(h,
Math.max(h-f,0));b.scrollTop+=Math.min(d,Math.max(d-a,0))}}
function ne(a){var b,c=$c(a),d=ge(a,"position"),f=D&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),g=new Wc(0,0),h;b=c?c.nodeType==9?c:$c(c):document;h=C&&!Kb(9)&&!Gd(Yc(b))?b.body:b.documentElement;if(a==h)return g;if(a.getBoundingClientRect){b=ke(a);a=Hd(Yc(c));g.x=b.left+a.x;g.y=b.top+a.y}else if(c.getBoxObjectFor&&!f){b=c.getBoxObjectFor(a);a=c.getBoxObjectFor(h);g.x=b.screenX-a.screenX;g.y=b.screenY-a.screenY}else{b=a;do{g.x+=
b.offsetLeft;g.y+=b.offsetTop;if(b!=a){g.x+=b.clientLeft||0;g.y+=b.clientTop||0}if(E&&he(b)=="fixed"){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(vb||E&&d=="absolute")g.y-=c.body.offsetTop;for(b=a;(b=le(b))&&b!=c.body&&b!=h;){g.x-=b.scrollLeft;if(!vb||b.tagName!="TR")g.y-=b.scrollTop}}return g}
function pe(a){var b=new Wc;if(a.nodeType==1)if(a.getBoundingClientRect){a=ke(a);b.x=a.left;b.y=a.top}else{var c=Hd(Yc(a));a=ne(a);b.x=a.x-c.x;b.y=a.y-c.y}else{c=ha(a.Fk);var d=a;if(a.targetTouches)d=a.targetTouches[0];else if(c&&a.ea.targetTouches)d=a.ea.targetTouches[0];b.x=d.clientX;b.y=d.clientY}return b}function qe(a,b,c){if(b instanceof N){c=b.height;b=b.width}else{if(c==undefined)throw Error("missing height argument");c=c}a.style.width=je(b,true);a.style.height=je(c,true)}
function je(a,b){if(typeof a=="number")a=(b?Math.round(a):a)+"px";return a}function re(a){if(ge(a,"display")!="none")return se(a);var b=a.style,c=b.display,d=b.visibility,f=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=se(a);b.display=c;b.position=f;b.visibility=d;return a}function se(a){var b=a.offsetWidth,c=a.offsetHeight,d=E&&!b&&!c;if((b===undefined||d)&&a.getBoundingClientRect){a=ke(a);return new N(a.right-a.left,a.bottom-a.top)}return new N(b,c)}
function ue(a,b){a=a.style;if("opacity"in a)a.opacity=b;else if("MozOpacity"in a)a.MozOpacity=b;else if("filter"in a)a.filter=b===""?"":"alpha(opacity="+b*100+")"}function Q(a,b){a.style.display=b?"":"none"}var ve=D?"MozUserSelect":E?"WebkitUserSelect":null;
function we(a,b,c){c=!c?a.getElementsByTagName("*"):null;if(ve){b=b?"none":"";a.style[ve]=b;if(c){a=0;for(var d;d=c[a];a++)d.style[ve]=b}}else if(C||vb){b=b?"on":"";a.setAttribute("unselectable",b);if(c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)}}var xe={thin:2,medium:4,thick:6};
function oe(a,b){if((a.currentStyle?a.currentStyle[b+"Style"]:null)=="none")return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;if(c in xe)return xe[c];if(/^\d+px?$/.test(c))a=parseInt(c,10);else{b=a.style.left;var d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=b;a.runtimeStyle.left=d;a=c}return a}
function ye(a){var b={};z(a.split(/\s*;\s*/),function(c){c=c.split(/\s*:\s*/);if(c.length==2)b[Ra(c[0].toLowerCase())]=c[1]});return b}function ze(){}ea(ze);ze.prototype.zl=0;ze.sa();function R(a){y.call(this);this.Db=a||Yc();this.Hd=Ae}x(R,I);R.prototype.Wk=ze.sa();var Ae=null;
function Be(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close";default:}throw Error("Invalid component state");}m=R.prototype;m.jc=null;m.U=false;m.k=null;m.Hd=null;m.ga=null;m.L=null;m.P=null;m.eb=null;m.Hj=false;function Ce(a){return a.jc||(a.jc=":"+(a.Wk.zl++).toString(36))}
function De(a,b){if(a.L&&a.L.eb){pc(a.L.eb,a.jc);qc(a.L.eb,b,a)}a.jc=b}R.prototype.a=e("k");R.prototype.q=function(){return this.Lc||(this.Lc=new P(this))};function Ee(a,b){if(a==b)throw Error("Unable to set parent component");if(b&&a.L&&a.jc&&a.L.Wh(a.jc)&&a.L!=b)throw Error("Unable to set parent component");a.L=b;R.c.wb.call(a,b)}R.prototype.wb=function(a){if(this.L&&this.L!=a)throw Error("Method not supported");R.c.wb.call(this,a)};R.prototype.g=e("Db");R.prototype.e=function(){this.k=this.Db.createElement("div")};
R.prototype.sc=function(a){Fe(this,a)};function Fe(a,b,c){if(a.U)throw Error("Component already rendered");a.k||a.e();b?b.insertBefore(a.k,c||null):a.Db.K.body.appendChild(a.k);if(!a.L||a.L.U)a.i()}m=R.prototype;m.ca=function(a){if(this.U)throw Error("Component already rendered");else if(a&&this.qb(a)){this.Hj=true;if(!this.Db||this.Db.K!=$c(a))this.Db=Yc(a);this.W(a);this.i()}else throw Error("Invalid element to decorate");};m.qb=k(true);m.W=ba("k");
m.i=function(){this.U=true;this.P&&z(this.P,function(a){!a.U&&a.a()&&a.i()},undefined)};m.Z=function(){this.P&&z(this.P,function(a){a.U&&a.Z()},undefined);this.Lc&&this.Lc.Xc();this.U=false};m.h=function(){R.c.h.call(this);this.U&&this.Z();if(this.Lc){this.Lc.n();delete this.Lc}this.P&&z(this.P,function(a){a.n()},undefined);!this.Hj&&this.k&&qd(this.k);this.L=this.ga=this.k=this.eb=this.P=null};m.La=function(a,b){this.mh(a,this.P?this.P.length:0,b)};
m.mh=function(a,b,c){if(a.U&&(c||!this.U))throw Error("Component already rendered");if(b<0||b>(this.P?this.P.length:0))throw Error("Child component index out of bounds");if(!this.eb||!this.P){this.eb={};this.P=[]}if(a.L==this){this.eb[Ce(a)]=a;ab(this.P,a)}else qc(this.eb,Ce(a),a);Ee(a,this);Ya(this.P,a,b);if(a.U&&this.U&&a.L==this){c=this.ma();c.insertBefore(a.a(),c.childNodes[b]||null)}else if(c){this.k||this.e();b=this.Xh(b+1);Fe(a,this.ma(),b?b.k:null)}else this.U&&!a.U&&a.k&&a.i()};m.ma=e("k");
m.$c=function(a){if(this.U)throw Error("Component already rendered");this.Hd=a};m.Wh=function(a){return this.eb&&a?rc(this.eb,a)||null:null};m.Xh=function(a){return this.P?this.P[a]||null:null};m.removeChild=function(a,b){if(a){var c=v(a)?a:Ce(a);a=this.Wh(c);if(c&&a){pc(this.eb,c);ab(this.P,a);if(b){a.Z();a.k&&qd(a.k)}Ee(a,null)}}if(!a)throw Error("Child is not in parent component");return a};m.Xe=function(a){for(;this.P&&this.P.length!=0;)this.removeChild(this.Xh(0),a)};
function S(a,b,c){R.call(this,c);this.ha=a||"modal-dialog";this.Sg=!!b;this.Aa=Ge()}x(S,R);m=S.prototype;m.ue=null;m.Nh=true;m.Zf=true;m.Sg=false;m.Ke=true;m.Mh=true;m.nd=0.5;m.Pg="";m.Ma="";m.Aa=null;m.Na=null;m.bb=false;m.Jc=false;m.T=null;m.ba=null;m.ab=null;m.bc=null;m.Og=null;m.Lb=null;m.rb=null;m.ra=null;m.ma=function(){this.a()||this.sc();return this.rb};
m.e=function(){He(this);var a=this.g();this.k=a.e("div",{className:this.ha,tabIndex:0},this.ab=a.e("div",{className:this.ha+"-title",id:Ce(this)},this.bc=a.e("span",this.ha+"-title-text",this.Pg),this.Lb=a.e("span",this.ha+"-title-close")),this.rb=a.e("div",this.ha+"-content"),this.ra=a.e("div",this.ha+"-buttons"),this.sj=a.e("span",{tabIndex:0}));this.Og=this.ab.id;Id(this.a(),"dialog");Jd(this.a(),"labelledby",this.Og||"");if(this.Ma)this.rb.innerHTML=this.Ma;Q(this.Lb,this.Zf);Q(this.a(),false);
this.Aa&&Ie(this.Aa,this.ra)};function He(a){if(a.Sg&&a.Ke&&!a.ba){a.ba=Kd(a.g());a.ba.className=a.ha+"-bg";Q(a.ba,false);ue(a.ba,0)}else if((!a.Sg||!a.Ke)&&a.ba){qd(a.ba);a.ba=null}if(a.Ke&&!a.T){a.T=a.g().e("div",a.ha+"-bg");ue(a.T,a.nd);Q(a.T,false)}else if(!a.Ke&&a.T){qd(a.T);a.T=null}}S.prototype.sc=function(a){if(this.U)throw Error("Component already rendered");this.a()||this.e();a=a||Fd(this.g()).body;Je(this,a);S.c.sc.call(this,a)};
function Je(a,b){a.ba&&b.appendChild(a.ba);a.T&&b.appendChild(a.T)}m=S.prototype;m.qb=function(a){return a&&a.tagName&&a.tagName=="DIV"&&S.c.qb.call(this,a)};
m.W=function(a){S.c.W.call(this,a);M(this.a(),this.ha);a=this.ha+"-content";if(this.rb=bd(null,a,this.a())[0])this.Ma=this.rb.innerHTML;else{this.rb=this.g().e("div",a);if(this.Ma)this.rb.innerHTML=this.Ma;this.a().appendChild(this.rb)}a=this.ha+"-title";var b=this.ha+"-title-text",c=this.ha+"-title-close";if(this.ab=bd(null,a,this.a())[0]){this.bc=bd(null,b,this.ab)[0];this.Lb=bd(null,c,this.ab)[0]}else{this.ab=this.g().e("div",a);this.a().insertBefore(this.ab,this.rb)}if(this.bc)this.Pg=Cd(this.bc);
else{this.bc=this.g().e("span",b,this.Pg);this.ab.appendChild(this.bc)}Jd(this.a(),"labelledby",this.Og||"");if(!this.Lb){this.Lb=this.g().e("span",c);this.ab.appendChild(this.Lb)}Q(this.Lb,this.Zf);a=this.ha+"-buttons";if(this.ra=bd(null,a,this.a())[0]){this.Aa=new Ke(this.g());this.Aa.ca(this.ra)}else{this.ra=this.g().e("div",a);this.a().appendChild(this.ra);this.Aa&&Ie(this.Aa,this.ra)}He(this);Je(this,$c(this.a()).body);Q(this.a(),false)};
m.i=function(){S.c.i.call(this);this.ue=new Ld(Fd(this.g()));if(this.Mh&&!this.Na){M(this.ab,this.ha+"-title-draggable");this.Na=new Sd(this.a(),this.ab)}this.q().d(this.Lb,"click",this.Ml).d(this.ue,"focusin",this.Gl);Id(this.a(),"dialog");this.bc.id!==""&&Jd(this.a(),"labelledby",this.bc.id)};m.Z=function(){this.bb&&this.t(false);this.ue.n();this.ue=null;if(this.Na){this.Na.n();this.Na=null}S.c.Z.call(this)};
m.t=function(a){if(a!=this.bb){var b=Fd(this.g()),c=ld(b)||window;this.U||this.sc(b.body);if(a){Le(this);this.Ye();this.q().d(this.a(),"keydown",this.Pe).d(this.a(),"keypress",this.Pe).d(c,"resize",this.Ui)}else this.q().ob(this.a(),"keydown",this.Pe).ob(this.a(),"keypress",this.Pe).ob(c,"resize",this.Ui);this.ba&&Q(this.ba,a);this.T&&Q(this.T,a);Q(this.a(),a);a&&this.focus();if(this.bb=a){this.dispatchEvent(Me);this.q().d(this.ra,"click",this.Ri)}else{this.q().ob(this.ra,"click",this.Ri);this.dispatchEvent(Ne);
this.Jc&&this.n()}}};m.focus=function(){try{this.a().focus()}catch(a){}if(this.Aa){var b;if(b=this.Aa.qe)for(var c=Fd(this.g()),d=this.ra.getElementsByTagName("button"),f=0,g;g=d[f];f++)if(g.name==b){try{if(E||vb){var h=c.createElement("input");h.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.a().appendChild(h);h.focus();this.a().removeChild(h)}g.focus()}catch(j){}break}}};
function Le(a){a.ba&&Q(a.ba,false);a.T&&Q(a.T,false);var b=Fd(a.g()),c=ld(b)||window;c=jd(c||window);var d=Math.max(b.body.scrollWidth,c.width);b=Math.max(b.body.scrollHeight,c.height);if(a.ba){Q(a.ba,true);qe(a.ba,d,b)}if(a.T){Q(a.T,true);qe(a.T,d,b)}if(a.Mh){var f=re(a.a());a.Na.kg=he(a.a())=="fixed"?new Rd(0,0,Math.max(0,c.width-f.width),Math.max(0,c.height-f.height)):new Rd(0,0,d-f.width,b-f.height)}}
S.prototype.Ye=function(){var a=Fd(this.g()),b=ld(a)||window;if(he(this.a())=="fixed")var c=a=0;else{c=Hd(this.g());a=c.x;c=c.y}var d=re(this.a());b=jd(b||window);a=Math.max(a+b.width/2-d.width/2,0);c=Math.max(c+b.height/2-d.height/2,0);ie(this.a(),a,c)};S.prototype.Ml=function(){if(this.Zf){var a=this.Aa,b=a&&a.Fc;if(b){a=a.da(b);this.dispatchEvent(new Oe(b,a))&&this.t(false)}else this.t(false)}};
S.prototype.h=function(){S.c.h.call(this);if(this.T){qd(this.T);this.T=null}if(this.ba){qd(this.ba);this.ba=null}this.sj=this.ra=this.Lb=null};function Pe(a,b){a.Aa=b;if(a.ra)if(a.Aa)Ie(a.Aa,a.ra);else a.ra.innerHTML=""}m=S.prototype;m.Ri=function(a){a:{for(a=a.target;a!=null&&a!=this.ra;){if(a.tagName=="BUTTON"){a=a;break a}a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;var b=this.Aa.da(a);this.dispatchEvent(new Oe(a,b))&&this.t(false)}};
m.Pe=function(a){var b=false,c=false,d=this.Aa,f=a.target;if(a.type=="keydown")if(this.Nh&&a.keyCode==27){var g=d&&d.Fc;f=f.tagName=="SELECT"&&!f.disabled;if(g&&!f){c=true;b=d.da(g);b=this.dispatchEvent(new Oe(g,b))}else f||(b=true)}else{if(a.keyCode==9&&a.shiftKey&&f==this.a())c=true}else if(a.keyCode==13){if(f.tagName=="BUTTON")g=f.name;else if(d){var h=d.qe,j=h&&Qe(d,h);f=(f.tagName=="TEXTAREA"||f.tagName=="SELECT")&&!f.disabled;if(j&&!j.disabled&&!f)g=h}if(g){c=true;b=this.dispatchEvent(new Oe(g,
String(d.da(g))))}}if(b||c){a.stopPropagation();a.preventDefault()}b&&this.t(false)};m.Ui=function(){Le(this)};m.Gl=function(a){this.sj==a.target&&Nc(this.Ak,0,this)};m.Ak=function(){C&&Fd(this.g()).body.focus();this.a().focus()};function Oe(a,b){this.type=Re;this.ia=a;this.caption=b}x(Oe,Ob);var Re="dialogselect",Ne="afterhide",Me="aftershow";function Ke(a){this.Db=a||Yc();ce.call(this)}x(Ke,ce);m=Ke.prototype;m.ha="goog-buttonset";m.qe=null;m.k=null;m.Fc=null;
m.Y=function(a,b,c,d){ce.prototype.Y.call(this,a,b);if(c)this.qe=a;if(d)this.Fc=a;return this};function Se(a,b,c,d){return a.Y(b.ia,b.caption,c,d)}function Ie(a,b){a.k=b;a.sc()}Ke.prototype.sc=function(){if(this.k){this.k.innerHTML="";var a=Yc(this.k);be(this,function(b,c){b=a.e("button",{name:c},b);if(c==this.qe)b.className=this.ha+"-default";this.k.appendChild(b)},this)}};
Ke.prototype.ca=function(a){if(!(!a||a.nodeType!=1)){this.k=a;a=this.k.getElementsByTagName("button");for(var b=0,c,d,f;c=a[b];b++){d=c.name||c.id;f=Cd(c)||c.value;if(d){var g=b==0;this.Y(d,f,g,c.name==Te);g&&M(c,this.ha+"-default")}}}};Ke.prototype.a=e("k");Ke.prototype.g=e("Db");function Qe(a,b){a=a.k.getElementsByTagName("BUTTON");for(var c=0,d;d=a[c];c++)if(d.name==b||d.id==b)return d;return null}
var Te="cancel",Ue=qa("OK"),Ve=qa("Cancel"),We=qa("Yes"),Xe=qa("No"),Ye=qa("Save"),Ze=qa("Continue"),$e={ia:"ok",caption:Ue},af={ia:Te,caption:Ve},bf={ia:"yes",caption:We},cf={ia:"no",caption:Xe},df={ia:"save",caption:Ye},ef={ia:"continue",caption:Ze};function Ge(){return Se(Se(new Ke,$e,true),af,false,true)}if(typeof document!="undefined"){Se(new Ke,$e,true,true);Ge();Se(Se(new Ke,bf,true),cf,false,true);Se(Se(Se(new Ke,bf),cf,true),af,false,true);Se(Se(Se(new Ke,ef),df),af,true,true)}
function ff(a){this.K=a}var gf=/\s*;\s*/;m=ff.prototype;m.fa=function(){var a=navigator.cookieEnabled;if(a&&E){var b="COOKIES_TEST_"+pa();hf.Y(b,"1");if(!this.da(b))return false;this.remove(b)}return a};
m.Y=function(a,b,c,d,f,g){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');c!==undefined||(c=-1);f=f?";domain="+f:"";d=d?";path="+d:"";g=g?";secure":"";c=c<0?"":c==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(pa()+c*1E3)).toUTCString();this.K.cookie=a+"="+b+f+d+c+g};
m.da=function(a,b){a=a+"=";for(var c=(this.K.cookie||"").split(gf),d=0,f;f=c[d];d++)if(f.indexOf(a)==0)return f.substr(a.length);return b};m.remove=function(a,b,c){var d=this.Va(a);this.Y(a,"",0,b,c);return d};m.ic=function(){return jf(this).ui};m.ub=function(){return jf(this).wm};m.Ib=function(){return!this.K.cookie};m.Va=function(a){return this.da(a)!==undefined};m.clear=function(){for(var a=jf(this).ui,b=a.length-1;b>=0;b--)this.remove(a[b])};
function jf(a){a=(a.K.cookie||"").split(gf);for(var b=[],c=[],d,f,g=0;f=a[g];g++){d=f.indexOf("=");if(d==-1){b.push("");c.push(f)}else{b.push(f.substring(0,d));c.push(f.substring(d+1))}}return{ui:b,wm:c}}var hf=new ff(document);hf.Lm=3950;
function kf(a){a=String(a);if(/^\s*$/.test(a)?false:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function lf(a){return(new mf).Hg(a)}function mf(){}mf.prototype.Hg=function(a){var b=[];nf(this,a,b);return b.join("")};
function nf(a,b,c){switch(typeof b){case "string":of(a,b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==null){c.push("null");break}if(u(b)){var d=b.length;c.push("[");for(var f="",g=0;g<d;g++){c.push(f);nf(a,b[g],c);f=","}c.push("]");break}c.push("{");d="";for(f in b)if(Object.prototype.hasOwnProperty.call(b,f)){g=b[f];if(typeof g!="function"){c.push(d);of(a,f,c);c.push(":");nf(a,g,c);d=
","}}c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var pf={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},qf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function of(a,b,c){c.push('"',b.replace(qf,function(d){if(d in pf)return pf[d];var f=d.charCodeAt(0),g="\\u";if(f<16)g+="000";else if(f<256)g+="00";else if(f<4096)g+="0";return pf[d]=g+f.toString(16)}),'"')}function rf(){}var sf;ea(rf);m=rf.prototype;m.tb=aa();m.e=function(a){return a.g().e("div",this.Kc(a).join(" "),a.Ma)};m.ma=function(a){return a};m.td=function(a,b,c){if(a=a.a?a.a():a)if(C&&!Ib("7")){var d=tf(this,Tc(a),b);d.push(b);oa(c?M:Uc,a).apply(null,d)}else Vc(a,b,c)};m.qb=k(true);
m.ca=function(a,b){b.id&&De(a,b.id);var c=this.ma(b);c&&c.firstChild?uf(a,c.firstChild.nextSibling?cb(c.childNodes):c.firstChild):uf(a,null);var d=0,f=this.$(),g=this.$(),h=false,j=false;c=false;var l=Tc(b);z(l,function(s){if(!h&&s==f){h=true;if(g==f)j=true}else if(!j&&s==g)j=true;else d|=this.Tf(s)},this);a.V=d;if(!h){l.push(f);if(g==f)j=true}j||l.push(g);(a=a.hb)&&l.push.apply(l,a);if(C&&!Ib("7")){var n=tf(this,l);if(n.length>0){l.push.apply(l,n);c=true}}if(!h||!j||a||c)Sc(b,l.join(" "));return b};
m.zd=function(a){if(a.Hd==null)a.Hd="rtl"==ge(a.U?a.k:a.Db.K.body,"direction");a.Hd&&this.$c(a.a(),true);a.fa()&&this.Jd(a,a.bb)};m.Id=function(a,b){we(a,!b,!C&&!vb)};m.$c=function(a,b){this.td(a,this.$()+"-rtl",b)};m.qi=function(a){var b;if(a.Da&32&&(b=a.Rb()))return Ad(b);return false};m.Jd=function(a,b){var c;if(a.Da&32&&(c=a.Rb())){if(!b&&a.V&32){try{c.blur()}catch(d){}a.V&32&&a.ai(null)}Ad(c)!=b&&Bd(c,b)}};m.t=function(a,b){Q(a,b)};
m.Za=function(a,b,c){var d=a.a();if(d){var f=this.vd(b);f&&this.td(a,f,c);this.dd(d,b,c)}};m.dd=function(a,b,c){sf||(sf=vc(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));(b=sf[b])&&Jd(a,b,c)};m.Rb=function(a){return a.a()};m.$=k("goog-control");m.Kc=function(a){var b=this.$(),c=[b],d=this.$();d!=b&&c.push(d);b=a.V;for(d=[];b;){var f=b&-b;d.push(this.vd(f));b&=~f}c.push.apply(c,d);(a=a.hb)&&c.push.apply(c,a);C&&!Ib("7")&&c.push.apply(c,tf(this,c));return c};
function tf(a,b,c){var d=[];if(c)b=b.concat([c]);z([],function(f){var g;a:{g=oa(B,b);for(var h=f.length,j=v(f)?f.split(""):f,l=0;l<h;l++)if(l in j&&!g.call(undefined,j[l],l,f)){g=false;break a}g=true}if(g&&(!c||B(f,c)))d.push(f.join("_"))});return d}rf.prototype.vd=function(a){this.ne||vf(this);return this.ne[a]};rf.prototype.Tf=function(a){this.pj||wf(this);a=parseInt(this.pj[a],10);return isNaN(a)?0:a};
function vf(a){var b=a.$();a.ne=vc(1,b+"-disabled",2,b+"-hover",4,b+"-active",8,b+"-selected",16,b+"-checked",32,b+"-focused",64,b+"-open")}function wf(a){a.ne||vf(a);a.pj=sc(a.ne)}function xf(){}x(xf,rf);ea(xf);m=xf.prototype;m.tb=k("button");m.dd=function(a,b,c){b==16?Jd(a,"pressed",c):xf.c.dd.call(this,a,b,c)};m.e=function(a){var b=xf.c.e.call(this,a),c=a.ye();c&&this.Kg(b,c);(c=a.Tb())&&this.vc(b,c);a.Da&16&&this.dd(b,16,false);return b};
m.ca=function(a,b){b=xf.c.ca.call(this,a,b);var c=this.Tb(b);a.Ug=c;c=this.ye(b);a.Qg=c;a.Da&16&&this.dd(b,16,false);return b};m.Tb=r;m.vc=r;m.ye=function(a){return a.title};m.Kg=function(a,b){if(a)a.title=b||""};m.$=k("goog-button");function yf(a,b){y.call(this);a&&this.sh(a,b)}x(yf,I);m=yf.prototype;m.k=null;m.Fe=null;m.eg=null;m.Ge=null;m.Yb=-1;m.Xb=-1;
var zf={"3":13,"12":144,"63232":38,"63233":40,"63234":37,"63235":39,"63236":112,"63237":113,"63238":114,"63239":115,"63240":116,"63241":117,"63242":118,"63243":119,"63244":120,"63245":121,"63246":122,"63247":123,"63248":44,"63272":46,"63273":36,"63275":35,"63276":33,"63277":34,"63289":144,"63302":45},Af={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Bf={61:187,
59:186},Cf=C||E&&Ib("525");m=yf.prototype;m.Ok=function(a){if(E&&(this.Yb==17&&!a.ctrlKey||this.Yb==18&&!a.altKey))this.Xb=this.Yb=-1;if(Cf&&!Md(a.keyCode,this.Yb,a.shiftKey,a.ctrlKey,a.altKey))this.handleEvent(a);else this.Xb=D&&a.keyCode in Bf?Bf[a.keyCode]:a.keyCode};m.Qk=function(){this.Xb=this.Yb=-1};
m.handleEvent=function(a){var b=a.ea,c,d;if(C&&a.type=="keypress"){c=this.Xb;d=c!=13&&c!=27?b.keyCode:0}else if(E&&a.type=="keypress"){c=this.Xb;d=b.charCode>=0&&b.charCode<63232&&Nd(c)?b.charCode:0}else if(vb){c=this.Xb;d=Nd(c)?b.keyCode:0}else{c=b.keyCode||this.Xb;d=b.charCode||0;if(pb&&d==63&&!c)c=191}var f=c,g=b.keyIdentifier;if(c)if(c>=63232&&c in zf)f=zf[c];else{if(c==25&&a.shiftKey)f=9}else if(g&&g in Af)f=Af[g];a=f==this.Yb;this.Yb=f;b=new Df(f,d,a,b);try{this.dispatchEvent(b)}finally{b.n()}};
m.a=e("k");m.sh=function(a,b){this.Ge&&this.detach();this.k=a;this.Fe=H(this.k,"keypress",this,b);this.eg=H(this.k,"keydown",this.Ok,b,this);this.Ge=H(this.k,"keyup",this.Qk,b,this)};m.detach=function(){if(this.Fe){Ec(this.Fe);Ec(this.eg);Ec(this.Ge);this.Ge=this.eg=this.Fe=null}this.k=null;this.Xb=this.Yb=-1};m.h=function(){yf.c.h.call(this);this.detach()};function Df(a,b,c,d){d&&this.Vb(d,undefined);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}x(Df,G);
function Ef(a){for(var b;a;){b=ja(a);if(b=Ff[b])break;a=a.c?a.c.constructor:null}if(b)return ha(b.sa)?b.sa():new b;return null}function Gf(a,b){if(!a)throw Error("Invalid class name "+a);if(!ha(b))throw Error("Invalid decorator function "+b);Hf[a]=b}var Ff={},Hf={};function T(a,b,c){R.call(this,c);this.J=b||Ef(this.constructor);this.Ma=a}x(T,R);m=T.prototype;m.Ma=null;m.V=0;m.Da=39;m.th=255;m.im=0;m.bb=true;m.hb=null;m.Ae=true;m.je=false;m.Rb=function(){return this.J.Rb(this)};
m.Hk=function(){return this.Pc||(this.Pc=new yf)};function If(a,b){if(b){if(a.hb)B(a.hb,b)||a.hb.push(b);else a.hb=[b];a.J.td(a,b,true)}}function Jf(a,b){if(b&&a.hb){ab(a.hb,b);if(a.hb.length==0)a.hb=null;a.J.td(a,b,false)}}m=T.prototype;m.td=function(a,b){b?If(this,a):Jf(this,a)};m.e=function(){var a=this.J.e(this);this.k=a;var b=this.J.tb();b&&Id(a,b);this.je||this.J.Id(a,false);this.bb||this.J.t(a,false)};m.ma=function(){return this.J.ma(this.a())};m.qb=function(a){return this.J.qb(a)};
m.W=function(a){var b=this.k=a=this.J.ca(this,a),c=this.J.tb();c&&Id(b,c);this.je||this.J.Id(a,false);this.bb=a.style.display!="none"};m.i=function(){T.c.i.call(this);this.J.zd(this);if(this.Da&-2){this.Ae&&Kf(this,true);if(this.Da&32){var a=this.Rb();if(a){var b=this.Hk();b.sh(a);this.q().d(b,"key",this.Pk).d(a,"focus",this.Mk).d(a,"blur",this.ai)}}}};
function Kf(a,b){var c=a.q(),d=a.a();if(b){c.d(d,"mouseover",a.Yf).d(d,"mousedown",a.Wf).d(d,"mouseup",a.xd).d(d,"mouseout",a.Xf);C&&c.d(d,"dblclick",a.bi)}else{c.ob(d,"mouseover",a.Yf).ob(d,"mousedown",a.Wf).ob(d,"mouseup",a.xd).ob(d,"mouseout",a.Xf);C&&c.ob(d,"dblclick",a.bi)}}T.prototype.Z=function(){T.c.Z.call(this);this.Pc&&this.Pc.detach();this.bb&&this.fa()&&this.J.Jd(this,false)};
T.prototype.h=function(){T.c.h.call(this);if(this.Pc){this.Pc.n();delete this.Pc}delete this.J;this.hb=this.Ma=null};function uf(a,b){a.Ma=b}m=T.prototype;m.we=function(){var a=this.Ma;if(!a)return"";a=v(a)?a:u(a)?A(a,Ed).join(""):Cd(a);return Aa(a)};m.$c=function(a){T.c.$c.call(this,a);var b=this.a();b&&this.J.$c(b,a)};m.Id=function(a){this.je=a;var b=this.a();b&&this.J.Id(b,a)};
m.t=function(a,b){if(b||this.bb!=a&&this.dispatchEvent(a?"show":"hide")){(b=this.a())&&this.J.t(b,a);this.fa()&&this.J.Jd(this,a);this.bb=a;return true}return false};m.fa=function(){return!!!(this.V&1)};m.uc=function(a){var b=this.L;if(!(b&&typeof b.fa=="function"&&!b.fa())&&Lf(this,1,!a)){if(!a){this.setActive(false);this.Kd(false)}this.bb&&this.J.Jd(this,a);this.Za(1,!a)}};m.Kd=function(a){Lf(this,2,a)&&this.Za(2,a)};m.li=function(){return!!(this.V&4)};
m.setActive=function(a){Lf(this,4,a)&&this.Za(4,a)};function Mf(a,b){Lf(a,8,b)&&a.Za(8,b)}T.prototype.mi=function(){return!!(this.V&16)};T.prototype.Jg=function(a){Lf(this,16,a)&&this.Za(16,a)};function Nf(a,b){Lf(a,32,b)&&a.Za(32,b)}function Of(a,b){Lf(a,64,b)&&a.Za(64,b)}T.prototype.Za=function(a,b){if(this.Da&a&&b!=!!(this.V&a)){this.J.Za(this,a,b);this.V=b?this.V|a:this.V&~a}};
function Pf(a,b,c){if(a.U&&a.V&b&&!c)throw Error("Component already rendered");!c&&a.V&b&&a.Za(b,false);a.Da=c?a.Da|b:a.Da&~b}function Qf(a,b){return!!(a.th&b)&&!!(a.Da&b)}function Lf(a,b,c){return!!(a.Da&b)&&!!(a.V&b)!=c&&(!(a.im&b)||a.dispatchEvent(Be(b,c)))&&!a.rd}T.prototype.Yf=function(a){!Rf(a,this.a())&&this.dispatchEvent("enter")&&this.fa()&&Qf(this,2)&&this.Kd(true)};
T.prototype.Xf=function(a){if(!Rf(a,this.a())&&this.dispatchEvent("leave")){Qf(this,4)&&this.setActive(false);Qf(this,2)&&this.Kd(false)}};function Rf(a,b){return!!a.relatedTarget&&ud(b,a.relatedTarget)}m=T.prototype;m.Wf=function(a){if(this.fa()){Qf(this,2)&&this.Kd(true);if(Sb(a)){Qf(this,4)&&this.setActive(true);this.J.qi(this)&&this.Rb().focus()}}!this.je&&Sb(a)&&a.preventDefault()};m.xd=function(a){if(this.fa()){Qf(this,2)&&this.Kd(true);this.li()&&this.Gd(a)&&Qf(this,4)&&this.setActive(false)}};
m.bi=function(a){this.fa()&&this.Gd(a)};m.Gd=function(a){Qf(this,16)&&this.Jg(!this.mi());Qf(this,8)&&Mf(this,true);Qf(this,64)&&Of(this,!!!(this.V&64));var b=new Ob("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey","platformModifierKey"],d,f=0;d=c[f];f++)b[d]=a[d];return this.dispatchEvent(b)};m.Mk=function(){Qf(this,32)&&Nf(this,true)};m.ai=function(){Qf(this,4)&&this.setActive(false);Qf(this,32)&&Nf(this,false)};
m.Pk=function(a){if(this.bb&&this.fa()&&this.ze(a)){a.preventDefault();a.stopPropagation();return true}return false};m.ze=function(a){return a.keyCode==13&&this.Gd(a)};if(!ha(T))throw Error("Invalid component class "+T);if(!ha(rf))throw Error("Invalid renderer class "+rf);var Sf=ja(T);Ff[Sf]=rf;Gf("goog-control",function(){return new T(null)});function Tf(){}x(Tf,xf);ea(Tf);m=Tf.prototype;m.tb=aa();
m.e=function(a){Uf(this,a);return a.g().e("button",{"class":this.Kc(a).join(" "),disabled:!a.fa(),title:a.ye()||"",value:a.Tb()||""},a.we()||"")};m.qb=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};m.ca=function(a,b){Uf(this,a);b.disabled&&M(b,this.vd(1));return Tf.c.ca.call(this,a,b)};m.zd=function(a){a.q().d(a.a(),"click",a.Gd)};m.Id=r;m.$c=r;m.qi=function(a){return a.fa()};m.Jd=r;
m.Za=function(a,b,c){Tf.c.Za.call(this,a,b,c);if((a=a.a())&&b==1)a.disabled=c};m.Tb=function(a){return a.value};m.vc=function(a,b){if(a)a.value=b};m.dd=r;function Uf(a,b){b.U&&false!=b.Ae&&Kf(b,false);b.Ae=false;b.th&=-256;Pf(b,32,false)}function Vf(a,b,c){T.call(this,a,b||Tf.sa(),c)}x(Vf,T);m=Vf.prototype;m.Tb=e("Ug");m.vc=function(a){this.Ug=a;this.J.vc(this.a(),a)};m.ye=e("Qg");m.Kg=function(a){this.Qg=a;this.J.Kg(this.a(),a)};m.h=function(){Vf.c.h.call(this);delete this.Ug;delete this.Qg};
m.i=function(){Vf.c.i.call(this);if(this.Da&32){var a=this.Rb();a&&this.q().d(a,"keyup",this.ze)}};m.ze=function(a){if(a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup")return this.Gd(a);return a.keyCode==32};Gf("goog-button",function(){return new Vf(null)});
function Wf(a,b){var c=a.type;if(c!==undefined)switch(c.toLowerCase()){case "checkbox":case "radio":a.checked=b?"checked":null;break;case "select-one":a.selectedIndex=-1;if(v(b))for(var d=0;c=a.options[d];d++)if(c.value==b){c.selected=true;break}break;case "select-multiple":b=b;if(v(b))b=[b];for(d=0;c=a.options[d];d++){c.selected=false;if(b)for(var f,g=0;f=b[g];g++)if(c.value==f)c.selected=true}break;default:a.value=q(b)?b:""}}function Xf(a,b){R.call(this,b);this.qa=a||""}x(Xf,R);
Xf.prototype.sb=null;var Yf="placeholder"in document.createElement("input");m=Xf.prototype;m.Ce=false;m.e=function(){this.k=this.g().e("input",{type:"text"})};m.W=function(a){Xf.c.W.call(this,a);if(!this.qa)this.qa=a.getAttribute("label")||"";if(Yf)this.a().Vi=this.qa;else Jd(this.a(),"label",this.qa)};
m.i=function(){Xf.c.i.call(this);var a=new P(this);a.d(this.a(),"focus",this.ci);a.d(this.a(),"blur",this.Kk);if(Yf)this.X=a;else{D&&a.d(this.a(),["keypress","keydown","keyup"],this.Lk);var b=$c(this.a());b=ld(b);a.d(b,"load",this.Tk);this.X=a;Zf(this)}ag(this);this.a().el=this};m.Z=function(){Xf.c.Z.call(this);bg(this);this.a().el=null};function Zf(a){if(!a.Dk&&a.X&&a.a().form){a.X.d(a.a().form,"submit",a.Nk);a.Dk=true}}function bg(a){if(a.X){a.X.n();a.X=null}}m=Xf.prototype;
m.h=function(){Xf.c.h.call(this);bg(this)};m.ae="label-input-label";m.ci=function(){this.Ce=true;Uc(this.a(),this.ae);if(!Yf)if(!cg(this)&&!this.$k){var a=this,b=function(){a.a().value=""};C?Nc(b,10):b()}};m.Kk=function(){if(!Yf){this.X.ob(this.a(),"click",this.ci);this.sb=null}this.Ce=false;ag(this)};m.Lk=function(a){if(a.keyCode==27){if(a.type=="keydown")this.sb=this.a().value;else if(a.type=="keypress")this.a().value=this.sb;else if(a.type=="keyup")this.sb=null;a.preventDefault()}};
m.Nk=function(){if(!cg(this)){this.a().value="";Nc(this.Jk,10,this)}};m.Jk=function(){if(!cg(this))this.a().value=this.qa};m.Tk=function(){ag(this)};function cg(a){return!!a.a()&&a.a().value!=""&&a.a().value!=a.qa}Xf.prototype.clear=function(){this.a().value="";if(this.sb!=null)this.sb=""};Xf.prototype.reset=function(){cg(this)&&this.clear();ag(this)};Xf.prototype.vc=function(a){if(this.sb!=null)this.sb=a;this.a().value=a;ag(this)};
Xf.prototype.Tb=function(){if(this.sb!=null)return this.sb;return cg(this)?this.a().value:""};function ag(a){if(Yf){if(a.a().Vi!=a.qa)a.a().Vi=a.qa}else{Zf(a);Jd(a.a(),"label",a.qa)}if(cg(a))Uc(a.a(),a.ae);else{!a.$k&&!a.Ce&&M(a.a(),a.ae);Yf||Nc(a.Vl,10,a)}}Xf.prototype.uc=function(a){this.a().disabled=!a;Vc(this.a(),this.ae+"-disabled",!a)};Xf.prototype.Vl=function(){if(this.a()&&!cg(this)&&!this.Ce)this.a().value=this.qa};function dg(a){this.ja=new ce;a&&this.zf(a)}
function eg(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+ja(a):b.substr(0,1)+a}m=dg.prototype;m.add=function(a){this.ja.Y(eg(a),a)};m.zf=function(a){a=$d(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};m.Xc=function(a){a=$d(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};m.remove=function(a){return this.ja.remove(eg(a))};m.clear=function(){this.ja.clear()};m.Ib=function(){return this.ja.Ib()};m.contains=function(a){return this.ja.Va(eg(a))};m.ub=function(){return this.ja.ub()};
m.Fa=function(){return new dg(this)};function fg(a){return gg(a||arguments.callee.caller,[])}
function gg(a,b){var c=[];if(B(b,a))c.push("[...circular reference...]");else if(a&&b.length<50){c.push(hg(a)+"(");for(var d=a.arguments,f=0;f<d.length;f++){f>0&&c.push(", ");var g;g=d[f];switch(typeof g){case "object":g=g?"object":"null";break;case "string":g=g;break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=hg(g))?g:"[fn]";break;case "undefined":default:g=typeof g;break}if(g.length>40)g=g.substr(0,40)+"...";c.push(g)}b.push(a);c.push(")\n");try{c.push(gg(a.caller,
b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")}function hg(a){if(ig[a])return ig[a];if(va){var b=va(a);if(b)return ig[a]=b}a=String(a);if(!ig[a]){b=/function ([^\(]+)/.exec(a);ig[a]=b?b[1]:"[Anonymous]"}return ig[a]}var ig={};function jg(a,b,c,d,f){this.reset(a,b,c,d,f)}jg.prototype.bm=0;jg.prototype.Qh=null;jg.prototype.Ph=null;var kg=0;
jg.prototype.reset=function(a,b,c,d,f){this.bm=typeof f=="number"?f:kg++;this.In=d||pa();this.Cd=a;this.wl=b;this.vn=c;delete this.Qh;delete this.Ph};jg.prototype.jj=ba("Cd");(function(){this.clear()}).prototype.clear=function(){this.db=new Array(0);this.jn=-1;this.tn=false};function lg(a){this.xl=a}lg.prototype.L=null;lg.prototype.Cd=null;lg.prototype.P=null;lg.prototype.di=null;function mg(a,b){this.name=a;this.value=b}mg.prototype.toString=e("name");new mg("OFF",Infinity);new mg("SHOUT",1200);
var ng=new mg("SEVERE",1E3),og=new mg("WARNING",900),pg=new mg("INFO",800),qg=new mg("CONFIG",700),rg=new mg("FINE",500);new mg("FINER",400);var sg=new mg("FINEST",300);new mg("ALL",0);lg.prototype.jj=ba("Cd");function tg(a){if(a.Cd)return a.Cd;if(a.L)return tg(a.L);return null}lg.prototype.log=function(a,b,c){a.value>=tg(this).value&&ug(this,this.Ik(a,b,c))};
lg.prototype.Ik=function(a,b,c){var d=new jg(a,String(b),this.xl);if(c){d.Qh=c;var f;var g=arguments.callee.caller;try{var h;var j=da("window.location.href");if(v(c))h={message:c,name:"Unknown error",lineNumber:"Not available",fileName:j,stack:"Not available"};else{var l,n,s=false;try{l=c.lineNumber||c.un||"Not available"}catch(F){l="Not available";s=true}try{n=c.fileName||c.filename||c.sourceURL||j}catch(W){n="Not available";s=true}h=s||!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,
lineNumber:l,fileName:n,stack:c.stack||"Not available"}:c}f="Message: "+Ga(h.message)+'\nUrl: <a href="view-source:'+h.fileName+'" target="_new">'+h.fileName+"</a>\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+Ga(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+Ga(fg(g)+"-> ")}catch(J){f="Exception trying to expose exception! You win, we lose. "+J}d.Ph=f}return d};lg.prototype.info=function(a,b){this.log(pg,a,b)};function vg(a,b,c){a.log(rg,b,c)}
function ug(a,b){var c="log:"+b.wl;if(o.console)if(o.console.timeStamp)o.console.timeStamp(c);else o.console.markTimeline&&o.console.markTimeline(c);o.msWriteProfilerMark&&o.msWriteProfilerMark(c);for(a=a;a;){c=a;if(c.di)for(var d=0,f=undefined;f=c.di[d];d++)f(b);a=a.L}}var wg={},xg=null;function yg(a){if(!xg){xg=new lg("");wg[""]=xg;xg.jj(qg)}return wg[a]||zg(a)}
function zg(a){var b=new lg(a),c=a.lastIndexOf("."),d=a.substr(0,c);c=a.substr(c+1);d=yg(d);if(!d.P)d.P={};d.P[c]=b;b.L=d;return wg[a]=b}function Ag(){}Ag.prototype.yh=null;Ag.prototype.If=t;Ag.prototype.Zh=function(){return this.yh||(this.yh=this.ki())};Ag.prototype.ki=t;function Bg(){return Cg.If()}var Cg;function Dg(){}x(Dg,Ag);Dg.prototype.If=function(){var a=Eg(this);return a?new ActiveXObject(a):new XMLHttpRequest};Dg.prototype.ki=function(){var a={};if(Eg(this)){a[0]=true;a[1]=true}return a};
Dg.prototype.$f=null;function Eg(a){if(!a.$f&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{new ActiveXObject(d);return a.$f=d}catch(f){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.$f}Cg=new Dg;function Fg(){if(D){this.fc={};this.rf={};this.hf=[]}}Fg.prototype.R=yg("goog.net.xhrMonitor");
Fg.prototype.Eb=D;Fg.prototype.uc=function(a){this.Eb=D&&a};function Gg(a,b){if(a.Eb){var c=v(b)?b:ia(b)?ja(b):"";a.R.log(sg,"Pushing context: "+b+" ("+c+")",undefined);a.hf.push(c)}}function Hg(a){if(a.Eb){var b=a.hf.pop();a.R.log(sg,"Popping context: "+b,undefined);Ig(a,b)}}function Jg(a,b){if(a.Eb){b=ja(b);vg(a.R,"Opening XHR : "+b);for(var c=0;c<a.hf.length;c++){var d=a.hf[c];Kg(a,a.fc,d,b);Kg(a,a.rf,b,d)}}}
function Ig(a,b){var c=a.rf[b],d=a.fc[b];if(c&&d){a.R.log(sg,"Updating dependent contexts",undefined);z(c,function(f){z(d,function(g){Kg(this,this.fc,f,g);Kg(this,this.rf,g,f)},this)},a)}}function Kg(a,b,c,d){b[c]||(b[c]=[]);B(b[c],d)||b[c].push(d)}var Lg=new Fg,Mg=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Ng(a){return a.match(Mg)}function U(a){y.call(this);this.headers=new ce;this.sf=a||null}
x(U,I);U.prototype.R=yg("goog.net.XhrIo");var Og=/^https?:?$/i,Pg=[];function Qg(a,b,c,d,f,g){var h=new U;Pg.push(h);b&&H(h,"complete",b);H(h,"ready",oa(Rg,h));g&&Sg(h,g);h.send(a,c,d,f)}function Rg(a){a.n();ab(Pg,a)}m=U.prototype;m.Mb=false;m.D=null;m.qf=null;m.Bd="";m.yi="";m.Qc=0;m.Ad="";m.Nf=false;m.Ee=false;m.bg=false;m.kc=false;m.Td=0;m.xc=null;m.dj="";m.zm=false;function Sg(a,b){a.Td=Math.max(0,b)}
U.prototype.send=function(a,b,c,d){if(this.D)throw Error("[goog.net.XhrIo] Object is active with another request");b=b?b.toUpperCase():"GET";this.Bd=a;this.Ad="";this.Qc=0;this.yi=b;this.Nf=false;this.Mb=true;this.D=this.sf?this.sf.If():new Bg;this.qf=this.sf?this.sf.Zh():Cg.Zh();Jg(Lg,this.D);this.D.onreadystatechange=w(this.Ti,this);try{vg(this.R,Tg(this,"Opening Xhr"));this.bg=true;this.D.open(b,a,true);this.bg=false}catch(f){vg(this.R,Tg(this,"Error opening Xhr: "+f.message));Ug(this,5,f);return}a=
c||"";var g=this.headers.Fa();d&&be(d,function(j,l){g.Y(l,j)});b=="POST"&&!g.Va("Content-Type")&&g.Y("Content-Type","application/x-www-form-urlencoded;charset=utf-8");be(g,function(j,l){this.D.setRequestHeader(l,j)},this);if(this.dj)this.D.Cn=this.dj;if("withCredentials"in this.D)this.D.Mn=this.zm;try{if(this.xc){Mc.clearTimeout(this.xc);this.xc=null}if(this.Td>0){vg(this.R,Tg(this,"Will abort after "+this.Td+"ms if incomplete"));this.xc=Mc.setTimeout(w(this.cd,this),this.Td)}vg(this.R,Tg(this,"Sending request"));
this.Ee=true;this.D.send(a);this.Ee=false}catch(h){vg(this.R,Tg(this,"Send error: "+h.message));Ug(this,5,h)}};U.prototype.dispatchEvent=function(a){if(this.D){Gg(Lg,this.D);try{return U.c.dispatchEvent.call(this,a)}finally{Hg(Lg)}}else return U.c.dispatchEvent.call(this,a)};U.prototype.cd=function(){if(typeof ca!="undefined")if(this.D){this.Ad="Timed out after "+this.Td+"ms, aborting";this.Qc=8;vg(this.R,Tg(this,this.Ad));this.dispatchEvent("timeout");this.abort(8)}};
function Ug(a,b,c){a.Mb=false;if(a.D){a.kc=true;a.D.abort();a.kc=false}a.Ad=c;a.Qc=b;Vg(a);Wg(a)}function Vg(a){if(!a.Nf){a.Nf=true;a.dispatchEvent("complete");a.dispatchEvent("error")}}U.prototype.abort=function(a){if(this.D&&this.Mb){vg(this.R,Tg(this,"Aborting"));this.Mb=false;this.kc=true;this.D.abort();this.kc=false;this.Qc=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");Wg(this)}};
U.prototype.h=function(){if(this.D){if(this.Mb){this.Mb=false;this.kc=true;this.D.abort();this.kc=false}Wg(this,true)}U.c.h.call(this)};U.prototype.Ti=function(){!this.bg&&!this.Ee&&!this.kc?this.tg():Xg(this)};U.prototype.tg=function(){Xg(this)};
function Xg(a){if(a.Mb)if(typeof ca!="undefined")if(a.qf[1]&&Yg(a)==4&&Zg(a)==2)vg(a.R,Tg(a,"Local request error detected and ignored"));else if(a.Ee&&Yg(a)==4)Mc.setTimeout(w(a.Ti,a),0);else{a.dispatchEvent("readystatechange");if(a.cl()){vg(a.R,Tg(a,"Request complete"));a.Mb=false;if($g(a)){a.dispatchEvent("complete");a.dispatchEvent("success")}else{a.Qc=6;a.Ad=ah(a)+" ["+Zg(a)+"]";Vg(a)}Wg(a)}}}
function Wg(a,b){if(a.D){var c=a.D,d=a.qf[0]?r:null;a.D=null;a.qf=null;if(a.xc){Mc.clearTimeout(a.xc);a.xc=null}if(!b){Gg(Lg,c);a.dispatchEvent("ready");Hg(Lg)}if(Lg.Eb){b=ja(c);vg(Lg.R,"Closing XHR : "+b);delete Lg.rf[b];for(var f in Lg.fc){ab(Lg.fc[f],b);Lg.fc[f].length==0&&delete Lg.fc[f]}}try{c.onreadystatechange=d}catch(g){a.R.log(ng,"Problem encountered resetting onreadystatechange: "+g.message,undefined)}}}U.prototype.li=function(){return!!this.D};
U.prototype.cl=function(){return Yg(this)==4};function $g(a){switch(Zg(a)){case 0:a=(a=v(a.Bd)?Ng(a.Bd)[1]||null:a.Bd.Kb)?Og.test(a):self.location?Og.test(self.location.protocol):true;return!a;case 200:case 204:case 304:case 1223:return true;default:return false}}function Yg(a){return a.D?a.D.readyState:0}function Zg(a){try{return Yg(a)>2?a.D.status:-1}catch(b){a.R.log(og,"Can not get status: "+b.message,undefined);return-1}}
function ah(a){try{return Yg(a)>2?a.D.statusText:""}catch(b){vg(a.R,"Can not get status: "+b.message);return""}}function bh(a,b){if(a.D){a=a.D.responseText;if(b&&a.indexOf(b)==0)a=a.substring(b.length);return kf(a)}}function Tg(a,b){return b+" ["+a.yi+" "+a.Bd+" "+Zg(a)+"]"}jb[jb.length]=function(a){U.prototype.tg=a(U.prototype.tg)};
function V(a,b){var c;if(a instanceof V){this.Zc(b==null?a.vb:b);ch(this,a.Kb);dh(this,a.Xd);eh(this,a.fb);fh(this,a.Zb);gh(this,a.pc);hh(this,a.Ra.Fa());ih(this,a.ud)}else if(a&&(c=Ng(String(a)))){this.Zc(!!b);ch(this,c[1]||"",true);dh(this,c[2]||"",true);eh(this,c[3]||"",true);fh(this,c[4]);gh(this,c[5]||"",true);hh(this,c[6]||"",true);ih(this,c[7]||"",true)}else{this.Zc(!!b);this.Ra=new jh(null,this,this.vb)}}m=V.prototype;m.Kb="";m.Xd="";m.fb="";m.Zb=null;m.pc="";m.ud="";m.dl=false;m.vb=false;
m.toString=function(){if(this.Ua)return this.Ua;var a=[];this.Kb&&a.push(kh(this.Kb,lh),":");if(this.fb){a.push("//");this.Xd&&a.push(kh(this.Xd,lh),"@");a.push(mh(this.fb));this.Zb!=null&&a.push(":",String(this.Zb))}if(this.pc){this.fb&&this.pc.charAt(0)!="/"&&a.push("/");a.push(kh(this.pc,this.pc.charAt(0)=="/"?nh:oh))}var b=String(this.Ra);b&&a.push("?",b);this.ud&&a.push("#",kh(this.ud,ph));return this.Ua=a.join("")};
m.Fa=function(){var a=this.Kb,b=this.Xd,c=this.fb,d=this.Zb,f=this.pc,g=this.Ra.Fa(),h=this.ud,j=new V(null,this.vb);a&&ch(j,a);b&&dh(j,b);c&&eh(j,c);d&&fh(j,d);f&&gh(j,f);g&&hh(j,g);h&&ih(j,h);return j};function ch(a,b,c){qh(a);delete a.Ua;a.Kb=c?b?decodeURIComponent(b):"":b;if(a.Kb)a.Kb=a.Kb.replace(/:$/,"");return a}function dh(a,b,c){qh(a);delete a.Ua;a.Xd=c?b?decodeURIComponent(b):"":b;return a}function eh(a,b,c){qh(a);delete a.Ua;a.fb=c?b?decodeURIComponent(b):"":b;return a}
function fh(a,b){qh(a);delete a.Ua;if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.Zb=b}else a.Zb=null;return a}function gh(a,b,c){qh(a);delete a.Ua;a.pc=c?b?decodeURIComponent(b):"":b;return a}function hh(a,b,c){qh(a);delete a.Ua;if(b instanceof jh){a.Ra=b;a.Ra.Wd=a;a.Ra.Zc(a.vb)}else{c||(b=kh(b,rh));a.Ra=new jh(b,a,a.vb)}return a}function sh(a,b,c){qh(a);delete a.Ua;a.Ra.Y(b,c);return a}
function th(a,b,c){qh(a);delete a.Ua;u(c)||(c=[String(c)]);var d=a.Ra;b=b;c=c;uh(d);vh(d);b=wh(d,b);if(d.Va(b)){var f=d.w.da(b);if(u(f))d.z-=f.length;else d.z--}if(c.length>0){d.w.Y(b,c);d.z+=c.length}return a}function ih(a,b,c){qh(a);delete a.Ua;a.ud=c?b?decodeURIComponent(b):"":b;return a}function qh(a){if(a.dl)throw Error("Tried to modify a read-only Uri");}V.prototype.Zc=function(a){this.vb=a;this.Ra&&this.Ra.Zc(a);return this};function mh(a){if(v(a))return encodeURIComponent(a);return null}
var xh=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;function kh(a,b){var c=null;if(v(a)){c=a;xh.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,yh)}return c}function yh(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var lh=/[#\/\?@]/g,oh=/[\#\?:]/g,nh=/[\#\?]/g,rh=/[\#\?@]/g,ph=/#/g;function jh(a,b,c){this.Fb=a||null;this.Wd=b||null;this.vb=!!c}
function uh(a){if(!a.w){a.w=new ce;a.z=0;if(a.Fb)for(var b=a.Fb.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),f=null,g=null;if(d>=0){f=b[c].substring(0,d);g=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));f=wh(a,f);a.add(f,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}}m=jh.prototype;m.w=null;m.z=null;m.add=function(a,b){uh(this);vh(this);a=wh(this,a);if(this.Va(a)){var c=this.w.da(a);u(c)?c.push(b):this.w.Y(a,[c,b])}else this.w.Y(a,b);this.z++;return this};
m.remove=function(a){uh(this);a=wh(this,a);if(this.w.Va(a)){vh(this);var b=this.w.da(a);if(u(b))this.z-=b.length;else this.z--;return this.w.remove(a)}return false};m.clear=function(){vh(this);this.w&&this.w.clear();this.z=0};m.Ib=function(){uh(this);return this.z==0};m.Va=function(a){uh(this);a=wh(this,a);return this.w.Va(a)};m.ic=function(){uh(this);for(var a=this.w.ub(),b=this.w.ic(),c=[],d=0;d<b.length;d++){var f=a[d];if(u(f))for(var g=0;g<f.length;g++)c.push(b[d]);else c.push(b[d])}return c};
m.ub=function(a){uh(this);if(a){a=wh(this,a);if(this.Va(a)){var b=this.w.da(a);if(u(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.w.ub();a=[];for(var c=0;c<b.length;c++){var d=b[c];u(d)?db(a,d):a.push(d)}}return a};m.Y=function(a,b){uh(this);vh(this);a=wh(this,a);if(this.Va(a)){var c=this.w.da(a);if(u(c))this.z-=c.length;else this.z--}this.w.Y(a,b);this.z++;return this};m.da=function(a,b){uh(this);a=wh(this,a);if(this.Va(a)){a=this.w.da(a);return u(a)?a[0]:a}else return b};
m.toString=function(){if(this.Fb)return this.Fb;if(!this.w)return"";for(var a=[],b=0,c=this.w.ic(),d=0;d<c.length;d++){var f=c[d],g=Ea(f);f=this.w.da(f);if(u(f))for(var h=0;h<f.length;h++){b>0&&a.push("&");a.push(g);f[h]!==""&&a.push("=",Ea(f[h]));b++}else{b>0&&a.push("&");a.push(g);f!==""&&a.push("=",Ea(f));b++}}return this.Fb=a.join("")};function vh(a){delete a.Kf;delete a.Fb;a.Wd&&delete a.Wd.Ua}
jh.prototype.Fa=function(){var a=new jh;if(this.Kf)a.Kf=this.Kf;if(this.Fb)a.Fb=this.Fb;if(this.w)a.w=this.w.Fa();return a};function wh(a,b){b=String(b);if(a.vb)b=b.toLowerCase();return b}jh.prototype.Zc=function(a){if(a&&!this.vb){uh(this);vh(this);be(this.w,function(b,c){var d=c.toLowerCase();if(c!=d){this.remove(c);this.add(d,b)}},this)}this.vb=a};function zh(a,b){this.Wd=new V(a);this.hk=b?b:"callback";this.cd=5E3}var Ah=0;
zh.prototype.send=function(a,b,c,d){a=a||null;if(!document.documentElement.firstChild){c&&c(a);return null}d=d||"_"+(Ah++).toString(36)+pa().toString(36);o._callbacks_||(o._callbacks_={});var f=document.createElement("script"),g=null;if(this.cd>0){c=Bh(d,f,a,c);g=o.setTimeout(c,this.cd)}c=this.Wd.Fa();a&&Ch(a,c);if(b){b=Dh(d,f,b,g);o._callbacks_[d]=b;th(c,this.hk,"_callbacks_."+d)}hd(f,{type:"text/javascript",id:d,charset:"UTF-8",src:c.toString()});document.getElementsByTagName("head")[0].appendChild(f);
return{jc:d,cd:g}};function Bh(a,b,c,d){return function(){Eh(a,b,false);d&&d(c)}}function Dh(a,b,c,d){return function(){o.clearTimeout(d);Eh(a,b,true);c.apply(undefined,arguments)}}function Eh(a,b,c){o.setTimeout(function(){qd(b)},0);if(o._callbacks_[a])if(c)delete o._callbacks_[a];else o._callbacks_[a]=r}function Ch(a,b){for(var c in a)if(!a.hasOwnProperty||a.hasOwnProperty(c))th(b,c,a[c]);return b}function Fh(){this.Ch=[]}x(Fh,rf);ea(Fh);
function Gh(a,b){var c=a.Ch[b];if(!c){switch(b){case 0:c=a.$()+"-highlight";break;case 1:c=a.$()+"-checkbox";break;case 2:c=a.$()+"-content";break}a.Ch[b]=c}return c}Fh.prototype.tb=k("menuitem");Fh.prototype.e=function(a){var b=a.g().e("div",this.Kc(a).join(" "),Hh(this,a.Ma,a.g()));Ih(this,a,b,!!(a.Da&8)||!!(a.Da&16));return b};Fh.prototype.ma=function(a){return a&&a.firstChild};
Fh.prototype.ca=function(a,b){var c=sd(b),d=Gh(this,2);c&&c.className.indexOf(d)!=-1||b.appendChild(Hh(this,b.childNodes,a.g()));if(B(Tc(b),"goog-option")){a.$e(true);this.$e(a,b,true)}return Fh.c.ca.call(this,a,b)};function Hh(a,b,c){a=Gh(a,2);return c.e("div",a,b)}Fh.prototype.$e=function(a,b,c){if(b){Id(b,c?"menuitemcheckbox":this.tb());Ih(this,a,b,c)}};function Jh(a,b){if(b=a.ma(b)){b=b.firstChild;a=Gh(a,1);return!!b&&!!b.className&&b.className.indexOf(a)!=-1}return false}
function Ih(a,b,c,d){if(d!=Jh(a,c)){Vc(c,"goog-option",d);c=a.ma(c);if(d){a=Gh(a,1);c.insertBefore(b.g().e("div",a),c.firstChild||null)}else c.removeChild(c.firstChild)}}Fh.prototype.vd=function(a){switch(a){case 2:return Gh(this,0);case 16:case 8:return"goog-option-selected";default:return Fh.c.vd.call(this,a)}};Fh.prototype.Tf=function(a){var b=Gh(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return Fh.c.Tf.call(this,a)}};Fh.prototype.$=k("goog-menuitem");
function Kh(a,b,c,d){T.call(this,a,d||Fh.sa(),c);this.vc(b)}x(Kh,T);m=Kh.prototype;m.Tb=function(){var a=this.ga;return a!=null?a:this.we()};m.vc=ba("ga");m.$e=function(a){Pf(this,16,a);var b=this.a();b&&this.J.$e(this,b,a)};m.we=function(){var a=this.Ma;if(u(a)){a=A(a,function(b){return B(Tc(b),"goog-menuitem-accel")?"":Ed(b)}).join("");return Aa(a)}return Kh.c.we.call(this)};
m.xd=function(a){var b=this.L;if(b){var c=b.Ol;b.Ol=null;if(c&&typeof a.clientX=="number"){b=new Wc(a.clientX,a.clientY);if(c==b?true:!c||!b?false:c.x==b.x&&c.y==b.y)return}}Kh.c.xd.call(this,a)};Gf("goog-menuitem",function(){return new Kh(null)});function Lh(a){return function(){return a}}Lh(false);Lh(true);Lh(null);function Mh(){}x(Mh,rf);ea(Mh);Mh.prototype.e=function(a){return a.g().e("div",this.$())};
Mh.prototype.ca=function(a,b){if(b.tagName=="HR"){var c=b;b=this.e(a);c.parentNode&&c.parentNode.insertBefore(b,c);qd(c)}else M(b,this.$());return b};Mh.prototype.$=k("goog-menuseparator");function Nh(a,b){T.call(this,null,a||Mh.sa(),b);Pf(this,1,false);Pf(this,2,false);Pf(this,4,false);Pf(this,32,false);this.V=1}x(Nh,T);Nh.prototype.i=function(){Nh.c.i.call(this);Id(this.a(),"separator")};Gf("goog-menuseparator",function(){return new Nh});function Oh(){}ea(Oh);m=Oh.prototype;m.tb=aa();
m.e=function(a){return a.g().e("div",this.Kc(a).join(" "))};m.ma=function(a){return a};m.qb=function(a){return a.tagName=="DIV"};m.ca=function(a,b){b.id&&De(a,b.id);var c=this.$(),d=false,f=Tc(b);f&&z(f,function(g){if(g==c)d=true;else g&&Ph(this,a,g,c)},this);d||M(b,c);Qh(this,a,this.ma(b));return b};function Ph(a,b,c,d){if(c==d+"-disabled")b.uc(false);else if(c==d+"-horizontal")b.cm(Rh);else c==d+"-vertical"&&b.cm(Sh)}
function Qh(a,b,c,d){if(c){d=d||c.firstChild;for(var f;d&&d.parentNode==c;){f=d.nextSibling;if(d.nodeType==1){var g=a.Sf(d);if(g){g.k=d;b.fa()||g.uc(false);b.La(g);g.ca(d)}}else if(!d.nodeValue||Ba(d.nodeValue)=="")c.removeChild(d);d=f}}}m=Oh.prototype;m.Sf=function(a){a:{for(var b=Tc(a),c=0,d=b.length;c<d;c++)if(a=b[c]in Hf?Hf[b[c]]():null){a=a;break a}a=null}return a};m.zd=function(a){a=a.a();we(a,true,D);if(C)a.hideFocus=true;var b=this.tb();b&&Id(a,b)};m.Rb=function(a){return a.a()};m.$=k("goog-container");
m.Kc=function(a){var b=this.$(),c=a.rn()==Rh;c=[b,c?b+"-horizontal":b+"-vertical"];a.fa()||c.push(b+"-disabled");return c};var Rh="horizontal",Sh="vertical";function Th(){}x(Th,rf);ea(Th);Th.prototype.$=k("goog-menuheader");function Uh(a,b,c){T.call(this,a,c||Th.sa(),b);Pf(this,1,false);Pf(this,2,false);Pf(this,4,false);Pf(this,32,false);this.V=1}x(Uh,T);Gf("goog-menuheader",function(){return new Uh(null)});function Vh(){}x(Vh,Oh);ea(Vh);m=Vh.prototype;m.tb=k("menu");
m.qb=function(a){return a.tagName=="UL"||Vh.c.qb.call(this,a)};m.Sf=function(a){return a.tagName=="HR"?new Nh:Vh.c.Sf.call(this,a)};m.$=k("goog-menu");m.zd=function(a){Vh.c.zd.call(this,a);a=a.a();Jd(a,"haspopup","true")};Gf("goog-menuseparator",function(){return new Nh});function Wh(a){y.call(this);this.Nc={};this.Ca=new P(this);this.L=a}x(Wh,I);function Xh(a,b,c){if(c=v(c)?c:c.src)a.Nc[b]=c}Wh.prototype.start=function(){lc(this.Nc,this.kl,this)};
Wh.prototype.kl=function(a,b){var c;c=this.L?Yc(this.L).e("img"):new Image;this.Ca.d(c,[C?"readystatechange":"load","abort","error"],this.Hl);c.id=b;c.src=a};
Wh.prototype.Hl=function(a){var b=a.currentTarget;if(b){if(a.type=="readystatechange")if(b.readyState=="complete")a.type="load";else return;if(typeof b.naturalWidth=="undefined")if(a.type=="load"){b.naturalWidth=b.width;b.naturalHeight=b.height}else{b.naturalWidth=0;b.naturalHeight=0}this.dispatchEvent({type:a.type,target:b});if(!this.rd){pc(this.Nc,b.id);a:{for(var c in this.Nc){a=false;break a}a=true}if(a){this.dispatchEvent("complete");this.Ca&&this.Ca.Xc()}}}};
Wh.prototype.h=function(){this.Nc&&delete this.Nc;if(this.Ca){this.Ca.n();this.Ca=null}Wh.c.h.call(this)};function Yh(){}x(Yh,rf);ea(Yh);Yh.prototype.e=function(a){var b=a.g().e("span",this.Kc(a).join(" "));Zh(this,b,a.Nb);return b};Yh.prototype.ca=function(a,b){b=Yh.c.ca.call(this,a,b);var c=Tc(b),d=$h;if(B(c,ai(this,bi)))d=bi;else if(B(c,ai(this,ci)))d=ci;else if(B(c,ai(this,$h)))d=$h;a.Nb=d;return b};Yh.prototype.tb=k("checkbox");
function Zh(a,b,c){if(b){var d=ai(a,c);if(!B(Tc(b),d)){lc(di,function(f){f=ai(this,f);Vc(b,f,f==d)},a);Jd(b,"checked",c==bi?"mixed":c==ci?"true":"false")}}}Yh.prototype.$=k("goog-checkbox");function ai(a,b){a=a.$();if(b==ci)return a+"-checked";else if(b==$h)return a+"-unchecked";else if(b==bi)return a+"-undetermined";throw Error("Invalid checkbox state: "+b);}function ei(a,b,c){c=c||Yh.sa();T.call(this,null,c,b);this.Nb=a!==undefined?a:$h}x(ei,T);var ci=true,$h=false,bi=null,di={Bm:ci,Wm:$h,Xm:bi};
m=ei.prototype;m.qa=null;m.mi=function(){return this.Nb==ci};m.Jg=function(a){if(a!=this.Nb){this.Nb=a;Zh(this.J,this.a(),this.Nb)}};m.i=function(){ei.c.i.call(this);if(this.Ae){var a=this.q();this.qa&&a.d(this.qa,"click",this.Vf).d(this.qa,"mouseover",this.Yf).d(this.qa,"mouseout",this.Xf).d(this.qa,"mousedown",this.Wf).d(this.qa,"mouseup",this.xd);a.d(this.a(),"click",this.Vf)}};m.uc=function(a){ei.c.uc.call(this,a);if(a=this.a())a.tabIndex=this.fa()?0:-1};
m.Vf=function(a){a.stopPropagation();var b=this.Nb?"uncheck":"check";if(this.fa()&&this.dispatchEvent(b)){a.preventDefault();this.Jg(this.Nb?$h:ci);this.dispatchEvent("change")}};m.ze=function(a){a.keyCode==32&&this.Vf(a);return false};Gf("goog-checkbox",function(){return new ei});function fi(a,b,c){y.call(this);this.jl=a;this.Oc=b;this.Ca=c;this.Ec=w(this.Ll,this)}x(fi,y);fi.prototype.cf=false;fi.prototype.yg=0;fi.prototype.Ia=null;function gi(a){if(!a.Ia&&!a.yg)hi(a);else a.cf=true}
fi.prototype.stop=function(){if(this.Ia){Mc.clearTimeout(this.Ia);this.Ia=null;this.cf=false}};fi.prototype.pause=function(){this.yg++};fi.prototype.h=function(){fi.c.h.call(this);this.stop()};fi.prototype.Ll=function(){this.Ia=null;if(this.cf&&!this.yg){this.cf=false;hi(this)}};function hi(a){a.Ia=Nc(a.Ec,a.Oc);a.jl.call(a.Ca)}function ii(a){this.db=Zb?[]:"";a!=null&&this.append.apply(this,arguments)}ii.prototype.Y=function(a){this.clear();this.append(a)};
if(Zb){ii.prototype.Ef=0;ii.prototype.append=function(a,b){if(b==null)this.db[this.Ef++]=a;else{this.db.push.apply(this.db,arguments);this.Ef=this.db.length}return this}}else ii.prototype.append=function(a,b){this.db+=a;if(b!=null)for(var c=1;c<arguments.length;c++)this.db+=arguments[c];return this};ii.prototype.clear=function(){if(Zb)this.Ef=this.db.length=0;else this.db=""};ii.prototype.toString=function(){if(Zb){var a=this.db.join("");this.clear();a&&this.append(a);return a}else return this.db};
function ji(a,b){this.type=a;this.currentTarget=this.target=b}uc(ji.prototype,Ob.prototype);function ki(a,b,c,d){var f=new ji("keydown",a),g=new ji("keyup",a);a=new ji("keypress",a);f.keyCode=g.keyCode=b;a.keyCode=c;if(d){uc(f,d);uc(g,d);uc(a,d)}c=true;pb&&D&&(f.keyCode==67||f.keyCode==88||f.keyCode==86)&&f.metaKey||(c=li(f));if(Md(b,undefined,f.shiftKey,f.ctrlKey,f.altKey)&&!(C&&!c))c&=li(a);return!!(c&li(g))}
function li(a){a.tc=true;for(var b=[],c=a.target;c;c=c.parentNode)b.push(c);for(c=b.length-1;c>=0&&!a.Jb;c--)Hc(b[c],a.type,true,new G(a,b[c]));for(c=0;c<b.length&&!a.Jb;c++)Hc(b[c],a.type,false,new G(a,b[c]));return a.tc}function mi(a,b,c,d,f,g){g=g>0?pa()+g:0;return ni(a,b,c,d,f||[],g,0)}var oi=["SCRIPT","STYLE","TEXTAREA"];
function ni(a,b,c,d,f,g,h){if(g>0&&pa()>=g||h>200)return false;var j=false;if(a.nodeType==3){b=pi(a.nodeValue,b,c,d);if(b!=null){j=$c(a).createElement("SPAN");j.innerHTML=b;for(b=a.parentNode;(c=j.firstChild)!=null;)b.insertBefore(c,a);b.removeChild(a);j=true}}else if(a.hasChildNodes()&&!B(oi,a.tagName)){var l=a.className.split(/\s+/);if(!Wa(l,function(n){return B(f,n)})){++h;for(l=a.firstChild;l;){a=l.nextSibling;l=ni(l,b,c,d,f,g,h);j=j||l;l=a}}}return j}var qi=/\W/;
function pi(a,b,c,d){var f=false,g=d?a.toLowerCase():a,h=g.length;d=b.length;for(var j=new Array(d),l=0;l<d;l++){var n=b[l],s=[],F=n[0];if(F!=""){var W=n[1];n=F.length;for(var J=0;J<h;){var za=g.indexOf(F,J);if(za==-1)break;else{J=za-1;var aj=za+n;if(!W||(J<0||qi.test(g.charAt(J)))&&(aj>=h||qi.test(g.charAt(aj)))){s.push(za);f=true}J=za+n}}}j[l]=s}if(f){f=[];for(J=0;;){var te;g=-1;for(l=0;l<d;l++){s=j[l];if(s.length!=0){for(za=s[0];za>=0&&za<J;){s.shift();za=s.length==0?-1:s[0]}if(za>=0&&(g<0||za<
g)){te=l;g=za}}}if(g<0)break;j[te].shift();f.push(Ga(a.substr(J,g-J)));n=b[te][0].length;l=Ga(a.substr(g,n));f.push(c(te,l));J=g+n}f.push(Ga(a.substr(J)));return f.join("")}else return null};var ri={},si=null,ti=null,ui=null,vi={},wi="",xi=null,yi=null,zi=null,Ai=0,Bi=null,Ci=null;function Di(a){if(Ci==null){Ci={};for(var b=0;b<zi.length;b++)Ci[zi[b][0]]=zi[b][1];for(b=0;b<Bi.length;b++)Ci[Bi[b][0]]=Bi[b][1]}return Ci[a]}function Ei(){return si?si.siteURL:window.location.protocol+"//"+window.location.host}function Fi(){return si?si.staticURL:window.STATIC_URL}function Gi(a){return[Fi(),"images/",a].join("")}var Hi=false,Ii={hh:"login",ce:"logout"},Ji=new I,Ki=false;
function Li(a,b){if(ti!=null)a&&a(true);else(new Mi(a,b)).t(true)}
var Ni=["/widget/twitter_login/","location=0,status=0,width=800,height=400"],Oi=["/socialauth/openid/?next=/widget/close_window/","scrollbars=yes,location=0,status=0,resizable=yes"],Pi=["/socialauth/gmail_login/?next=/widget/close_window/","scrollbars=yes,location=0,status=0,resizable=yes"],Qi=["/widget/facebook_login/?next=/widget/close_window/","location=0,status=0,width=1000,height=450"],Ri=["/auth/login/?next=/widget/close_window/","scrollbars=yes,location=0,status=0,resizable=yes"];
function Si(a,b,c){var d=window.open(Ei()+a[0],Ti(),a[1]),f=new K(250);H(f,L,function(){if(d.closed){f.n();Ui(b,c)}});f.start();return d}function Ui(a,b){Vi("get_my_user_info",{},function(c){Ki=false;c.logged_in&&Wi(c.username);a&&a(c.logged_in)},function(){b&&b()})}function Wi(a){ti=a;Ji.dispatchEvent(new Xi(ti))}function Yi(){Vi("logout",{},function(){ti=null;Ji.dispatchEvent(Ii.ce)})}
function Ti(){var a=[],b;for(b=0;b<10;b++)a.push((10+~~(Math.random()*26)).toString(36));return a.join("")+(new Date).getTime()%1E8}function Zi(){if(!ui)return false;var a=new V(ui),b=new V(window.location);return!!a.fb&&a.fb.toLowerCase()!=b.fb.toLowerCase()}function Xi(a){this.type=Ii.hh;this.Ln=a}function $i(a){return[Ei(),"/videos/",a].join("")}function bj(a,b,c){var d={href:"javascript:void(0);"};if(c)d.className=c;return a("a",d,b)}var cj=window.localStorage;
function dj(a,b,c,d){if(c&&d){var f=new K(250);H(f,L,function(){if(c()){f.stop();f.n();d()}});f.start()}var g=document.createElement("script");g.type="text/javascript";g.src=a;if(b)g.async=true;a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(g,a)};function ej(){return[Ei(),"/widget/",Hi?"null_":"","rpc/"].join("")}function fj(a,b,c,d){Qg([ej(),"xhr/",a].join(""),function(f){if($g(f.target))c&&c(bh(f.target));else{var g=null;if(f.target.Qc!=8)g=Zg(f.target);d&&d(g)}},"POST",gj(b),null,3E4)}function gj(a){var b=new jh;for(var c in a)b.Y(c,a[c]);return b.toString()}function hj(a,b,c,d){a=new zh([ej(),"jsonp/",a].join(""));a.cd=3E4;a.send(b,function(f){c&&c(f)},function(){d&&d()})}
function Vi(a,b,c,d){var f={},g,h=0;for(var j in b){g=lf(b[j]);f[j]=g;h+=g.length}si!=null?hj(a,f,c,d):fj(a,f,c,d)};function ij(a,b,c){if(a.nodeName=="EMBED")return a.getAttribute(b);else if(a=jj(a,c||b))return a.value;return null}function jj(a,b){return wd(a,function(c){return c.nodeName=="PARAM"&&Ca(c.name,b)==0})};function kj(){y.call(this);var a=window,b=a.onbeforeunload,c=a.onunload,d=this;a.onbeforeunload=function(f){var g;try{var h=new lj;Kc(d,h);g=h.message}finally{f=b&&b(f)}if(g!=null)return g;if(f!=null)return f};a.onunload=function(f){try{d.dispatchEvent("unload")}finally{c&&c(f);a.onresize=null;a.onscroll=null;a.onbeforeunload=null;a.onunload=null}}}x(kj,I);ea(kj);function lj(){Ob.call(this,"beforeunload");this.message=null}x(lj,Ob);function mj(){y.call(this);this.cg=false;var a=this;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);a.Oe()},false);else document.attachEvent&&nj(this);Bc(window,"load",this.Oe,false,this)}x(mj,I);ea(mj);
function nj(a){document.attachEvent("onreadystatechange",function(){if(document.readyState=="complete"){document.detachEvent("onreadystatechange",arguments.callee);a.Oe()}});document.documentElement.doScroll&&window==window.top&&function(){if(!a.cg){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a.Oe()}}()}mj.prototype.Oe=function(){if(!this.cg){this.cg=true;this.dispatchEvent("domloaded")}};function oj(){this.lh=false}ea(oj);oj.prototype.Ij="UA-163840-22";oj.prototype.fe="usubs";function pj(a,b,c){(c||{}).onsite=si!=null||Zi()?"no":"yes";qj(a);window._gaq.push([a.fe+"._trackPageview","/widget/"+b])}function qj(a){if(!a.lh){window._gaq=window._gaq||[];dj(("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js",true);window._gaq.push([a.fe+"._setAccount",a.Ij]);a.lh=true}};function rj(a,b,c){a.style.cssText=sj(a.style.cssText,b,c)}function sj(a,b,c){var d=a.match(new RegExp("\\s*"+b+"\\s*:\\s*[^;]*;?","i"));b=c===null?"":[b,":",c," !important;"].join("");if(d)return a.replace(d[0],b);else{a=Ba(a);if(a.length>0&&!xa(a,";"))a+=";";return a+b}}function tj(a){var b=ye(a.style.cssText);lc(b,function(c,d){c.indexOf("important")==-1&&rj(a,d,c)})}function uj(a,b,c){b=vj(b,c);wj(a,b[0]);xj(a,b[1])}
function yj(a,b,c){b=vj(b,c);a=sj(a,"width",zj(b[0]));return sj(a,"height",zj(b[1]))}function vj(a,b){if(a instanceof N){b=a.height;a=a.width}else{if(b==undefined)throw Error("missing height argument");b=b}return[a,b]}function zj(a,b){return typeof a=="number"?(b?Math.round(a):a)+"px":a}function Aj(a,b,c,d){rj(c,a,zj(d))}var xj=oa(Aj,"height",true),wj=oa(Aj,"width",true);
function Bj(a,b,c){var d,f=D&&(pb||zb)&&Ib("1.9");if(q(b)&&b instanceof Wc){d=b.x;b=b.y}else{d=b;b=c}q(d)&&Aj("left",f,a,d);q(b)&&Aj("top",f,a,b)}function Cj(a,b){rj(a,"display",b?null:"none")}function Dj(a,b){rj(a,"visibility",b?"visible":"hidden")};p("unisubs.messaging.simplemessage.displayPendingMessages",function(){var a=new ff(document),b=a.da("_user_message");b&&b.length>0&&jQuery.jGrowl(b,{life:1E4});a.remove("_user_message")},undefined);function Ej(){return!!document.createElement("video").canPlayType}function Fj(a){switch(a){case "H264":return Gj();case "Ogg":return Hj();case "WebM":return Ij();default:throw"unknown type";}}function Jj(a){var b=document.createElement("video");return!!(b.canPlayType&&b.canPlayType(a).replace(/no/,""))}function Gj(){return Jj('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')}function Hj(){return Jj('video/ogg; codecs="theora, vorbis"')}function Ij(){return Jj('video/webm; codecs="vp8, vorbis"')};function Kj(a){R.call(this);this.Ni=a||false;this.ek=this.Dc=null;this.Ne=new N(-1,-1);this.oi=true;this.Dj=false}x(Kj,R);function Lj(a,b){if(b==null||b=="")Mj(a,false);else{a.a().innerHTML=Fa(Ga(b));if(!a.Dj){b=re(a.a());if(!(b.width==a.Ne.width&&b.height==a.Ne.height)){var c=a.Dc.top+a.Dc.height-b.height-40;Bj(a.a(),a.zh,c);if(a.Ni&&a.me){ie(a.me,newLeft,c);qe(a.me,b)}a.Ne.width=b.width;a.Ne.height=b.height}}Mj(a,true)}}
Kj.prototype.e=function(){var a=w(this.g().e,this.g())("span","unisubs-captionSpan");this.k=a;var b=a.parent&&a.offsetParent;if(!b)b=$c(a).body;this.Ni&&Dj(a,false);b.appendChild(a);Mj(this,false);wj(this.a(),this.Ah);Bj(this.a(),this.zh);if(this.oi)this.Na=new Sd(this.a())};Kj.prototype.i=function(){Kj.c.i.call(this);this.oi&&this.q().d(this.Na,"start",w(this.jf,this)).d(this.Na,"drag",w(this.Fl,this))};Kj.prototype.jf=function(){this.Dj=true};Kj.prototype.Fl=function(){Bj(this.a(),this.Na.Gc,this.Na.Hc)};
function Mj(a,b){a.me&&Dj(a.me,b);Dj(a.a(),b)}Kj.prototype.n=function(){if(!this.rd){Kj.c.n.call(this);this.Na&&this.Na.n()}};function Nj(a,b){var c=null;if(hf.fa()){c=parseFloat(hf.da(a));if(isNaN(c)&&q(b))c=b}return c};function X(a){R.call(this);this.j=a;this.pa=this.Kh=this.Oi=false;this.lf=0;this.Ab=null;this.Ba=0;Oj.push(this)}x(X,R);var Oj=[],Pj=new N(480,360),Qj=new N(400,300);X.prototype.e=function(){this.k=this.g().createElement("span");M(this.a(),"unisubs-videoplayer")};function Rj(a){if(a.pa)throw new "can't check if paused, loading is stopped";return a.lc()}X.prototype.lc=t;function Sj(a){if(a.pa)throw new "can't check if playing, loading is stopped";return a.mc()}X.prototype.mc=t;
function Tj(a){if(a.pa)throw new "can't check if video ended, loading is stopped";return a.zc()}m=X.prototype;m.zc=t;m.Vc=function(a){if(this.pa)throw new "can't play, loading is stopped";a||this.dispatchEvent(Uj);this.Ya()};m.Ya=t;m.pause=function(a){if(this.pa)throw new "can't pause, loading is stopped";a||this.dispatchEvent(Vj);this.Xa()};m.Xa=t;m.kf=function(){if(!this.pa){this.pause();this.lf=this.Hb();if(this.$a())this.pa=true}};m.$a=t;m.kb=function(){t()};
m.mb=function(){this.Kh=true;uj(this.a(),this.Oa());this.dispatchEvent(Wj)};function Xj(a){if(!a.Ab){a.Ab=new Kj(a.Ed());var b;b=a.a();b=new Wc(b.offsetLeft,b.offsetTop);var c=a.Oa();b=new Rd(b.x,b.y,c.width,c.height);c=a.Ab;if(b){c.Dc=b;c.Ah=Math.min(400,c.Dc.width-20);c.zh=c.Dc.left+(c.Dc.width-c.Ah)/2;c.ek="BOTTOM_CENTER"}a.Ab.e();b=a.a().offsetParent||$c(a.a()).body;a=a.Ab.a();b.appendChild(a)}}m=X.prototype;m.Hb=function(){if(this.pa)return this.lf;return this.wd()};m.wd=t;m.Ic=function(){this.dispatchEvent(Yj)};
m.lb=function(){if(this.Oi){if(!this.hi)if(this.Hb()>=this.yn){this.hi=true;this.wa(this.Al);this.Al=null;this.pause();this.Oi=this.hi=false}}else this.dispatchEvent(Zj)};m.na=t;m.nb=function(a){hf.fa()&&hf.Y("lastestVolume",a)};m.wa=function(){t()};m.Ed=k(false);m.ni=k(true);m.Oa=t;var Uj="videoplaycalled",Yj="videoplayended",Vj="videopausecalled",Zj="videotimeupdate",Wj="dimensionsknown",$j={uf:"videoplay",Qm:Uj,Rm:Yj,jh:"videopause",Pm:Vj,Sm:"videoprogress",Vm:Zj,Cm:Wj};function ak(a){X.call(this,a);this.ln=this.Me=this.re=null;this.kn=0;this.rj=this.Lf=false}x(ak,X);ak.prototype.R=yg("unisubs.player.FlashVideoPlayer");ak.prototype.W=function(a){this.Lf=true;var b=new N(0,0),c=new N(0,0);a=bk(this,a);if(a[0]){this.Me=a[0];c=re(this.Me)}if(a[1]){this.re=a[1];b=re(this.re)}ak.c.W.call(this,c.height>b.height?this.Me:this.re)};function ck(a){if(!(!a.Lf||a.rj))a.rj=dk(a,a.Me)?true:dk(a,a.re)}ak.prototype.pi=t;ak.prototype.ij=t;
function dk(a,b){if(q(b))if(a.pi(b)){a.ij(b);return true}else return false;else return false}ak.prototype.Ci=function(){Vi("log_youtube_ei_failure",{page_url:window.location.href})};function bk(a,b){var c=a=null;if(b.nodeName=="EMBED"){c=b;if(c.parentNode.nodeName=="OBJECT")a=c.parentNode}else{a=b;c=wd(a,function(d){return d.nodeName=="EMBED"})}return[a,c]};function ek(a,b){X.call(this,a);this.oc=a;this.A=null;this.ng=this.Ii=0;this.Uh=b;this.Wi=false;this.aj=new fi(this.ql,500,this);this.uj=new fi(this.lb,80,this);this.Bg=false}x(ek,X);yg("Html5MediaPlayer");m=ek.prototype;
m.i=function(){ek.c.i.call(this);if(this.A){Pd(this.q().d(this.A,"play",this.ol).d(this.A,"pause",this.nl).d(this.A,"progress",this.pl).d(this.A,"loadedmetadata",this.mb).d(this.A,"timeupdate",this.am).d(this.A,"ended",this.Ic),this.A,"click",this.Xi);this.A.readyState>=this.A.HAVE_METADATA&&this.mb();this.nb(Nj("lastestVolume",1))}};m.Xi=aa();m.am=function(){this.Bg&&gi(this.uj)};m.ol=function(){this.Bg=true;this.dispatchEvent("videoplay")};m.nl=function(){this.dispatchEvent("videopause")};
m.pl=function(a){if(a.ea.loaded&&a.ea.total){this.Ii=a.ea.loaded;this.ng=a.ea.total;if(this.ng==-1)this.ng=this.Ii}gi(this.aj)};m.ql=function(){this.dispatchEvent("videoprogress")};m.nb=function(a){this.A.volume=a;ek.c.nb.call(this,a)};m.na=function(){var a=this.A.duration;return isNaN(a)?0:a};m.lc=function(){return this.A.paused};m.zc=function(){return this.A.ended};m.mc=function(){var a=this.A.readyState,b=fk;return(a==b.Sj||a==b.Rj)&&!Rj(this)&&!Tj(this)};m.Ya=function(){this.A.play()};m.Xa=function(){this.A.pause()};
m.kb=function(a){this.A.src=this.oc.oa();this.pa=false;this.wa(a);this.pause()};m.wd=function(){return this.A.currentTime};m.wa=function(a){try{this.A.currentTime=a}catch(b){}};m.Oa=function(){return re(this.A)};m.h=function(){ek.c.h.call(this);this.aj.n();this.uj.n()};var fk={Hm:0,Gm:1,Fm:2,Sj:3,Rj:4};function gk(a,b){ek.call(this,a,b)}x(gk,ek);m=gk.prototype;m.e=function(){var a=w(this.g().e,this.g());if(Fj(this.oc.ed)){var b={autobuffer:"true"};if(!this.Uh){if(this.oc.ta()){var c=this.oc.ta();if(c.play_to_click){this.Wi=true;pc(c,"play_to_click")}uc(b,c)}b.controls="true"}this.k=this.A=a("video",b,a("source",{src:this.oc.oa()}));this.Uh&&uj(this.A,Qj)}else{this.k=a=a("div");uj(a,400,300);rj(a,"line-height","300px");a.innerHTML="Sorry, your browser can't play HTML5/"+this.oc.ed+" video. <a href='http://getfirefox.com'>Get Firefox</a>."}};
m.W=function(a){gk.c.W.call(this,a);if(a.nodeName!="VIDEO")throw Error("Invalid element to decorate");this.A=a};m.Xi=function(a){if(this.Wi&&!this.Bg){a.preventDefault();this.Vc()}};m.$a=function(){this.A.src="http://holmeswilson.org/tinyblank.ogv";return true};m.Oa=function(){return re(this.A)};function hk(a,b){ek.call(this,a);this.F=!!b}x(hk,ek);hk.prototype.e=function(){var a=w(this.g().e,this.g()),b={autobuffer:"true"};this.F||(b.controls="true");this.A=a("audio",b,a("source",{src:this.oc.oa()}));this.k=a=a("div","unisubs-audio-player",this.A);uj(a,this.F?Qj:Pj);uj(this.A,this.F?Qj:Pj)};hk.prototype.$a=function(){this.A.src="";return true};hk.prototype.Oa=function(){return re(this.a())};function ik(a,b){ak.call(this,a);this.j=a;this.Qa=[a.Ea,""+(new Date).getTime()].join("");this.ka=a.Ea+"_ytplayer";this.gb="event"+a.Ea;this.F=!!b;jk.push(this);this.f=this.M=null;this.We=false;this.m=[];this.xa=false;this.N=new K(500);this.u=new K(80);a=ik.prototype;b=kk.prototype;for(var c in b)a[c]=b[c]}x(ik,ak);var jk=[],lk=new dg;ik.prototype.R=yg("unisubs.player.YoutubeVideoPlayer");ik.prototype.pi=function(a){return this.We?a.playVideo:false};
function mk(a,b){return(a=window.unisubs_readyAPIIDs)&&B(a,b)}m=ik.prototype;m.W=function(a){ik.c.W.call(this,a);this.xa=true;this.Qa=(a=/playerapiid=([^&]+)/.exec(a.nodeName=="OBJECT"&&a.data?a.data:ij(a,"src","movie")))?a[1]:"";if(lk.contains(this.Qa)||mk(this,this.Qa))nk(this,this.Qa);this.M=re(this.a());this.mb()};m.ij=function(a){this.f=a;window[this.gb]=w(this.Wc,this);this.f.addEventListener("onStateChange",this.gb)};
m.e=function(){ik.c.e.call(this);var a=ok(this.j);this.M=!this.F&&a?a:this.F?Qj:Pj;this.mb()};
m.i=function(){ik.c.i.call(this);if(!this.xa){this.xa=true;var a=this.g().e("span");a.id=Ti();this.a().appendChild(a);var b={id:this.ka,style:yj("",this.M)},c;c=this.F?new V("http://www.youtube.com/apiplayer"):new V("http://www.youtube.com/v/"+this.j.Ac);this.Af(c);window.swfobject.embedSWF(c.toString(),a.id,this.M.width+"",this.M.height+"","8",null,null,{allowScriptAccess:"always",wmode:"opaque",allowFullScreen:"true"},b)}this.q().d(this.N,L,this.$b).d(this.u,L,this.xb);this.N.start()};
m.Af=function(a){var b=this.j.ta();if(!this.F&&b)for(var c in b)c!="width"&&c!="height"&&sh(a,c,b[c]);sh(sh(sh(a,"enablejsapi","1"),"version","3"),"playerapiid",this.Qa);this.F&&sh(a,"disablekb","1")};m.Z=function(){ik.c.Z.call(this);this.N.stop();this.u.stop()};function nk(a,b){if(b==a.Qa){a.We=true;if(a.Lf)ck(a);else{a.f=ad(a.ka);uj(a.f,a.M);a.F&&a.f.cueVideoById(a.j.Ac);z(a.m,function(c){c()});a.m=[];window[a.gb]=w(a.Wc,a);a.f.addEventListener("onStateChange",a.gb)}}}ik.prototype.Ed=function(){return qb};
ik.prototype.h=function(){ik.c.h.call(this);this.N.n();this.u.n()};var pk={$j:-1,$d:0,ee:1,de:2,Am:3,ak:5};yg("unisubs.player.YoutubeVideoPlayerStatic");function qk(a){if(!q(a)||a=="undefined")a="";if(!lk.contains(a)){lk.add(a);z(jk,function(b){nk(b,a)})}}(function(){var a=window.onYouTubePlayerReady||r;window.onYouTubePlayerReady=function(b){try{a(b)}catch(c){}qk(b)}})();function rk(a,b){X.call(this,a);this.f=null;this.j=a;this.ka=Ti()+"_ytplayer";this.F=!!b;this.m=[];this.N=new K(500);this.u=new K(80);this.R=yg("unisubs.player.YTIFrameVideoPlayer");a=rk.prototype;b=kk.prototype;for(var c in b)a[c]=b[c]}x(rk,X);m=rk.prototype;
m.e=function(){rk.c.e.call(this);var a=ok(this.j);this.M=!this.F&&a?a:this.F?Qj:Pj;this.mb();a=new V("http://youtube.com/embed/"+this.j.Ac);this.Af(a);this.k=this.gi=this.g().e("iframe",{id:this.ka,type:"text/html",width:this.M.width+"",height:this.M.height+"",src:a.toString(),frameborder:"0",style:yj("",this.M)})};
m.Af=function(a){var b=this.j.ta();if(!this.F&&b)for(var c in b)c!="width"&&c!="height"&&sh(a,c,b[c]);b=new V(window.location);b=window.location.protocol+"//"+b.fb+(b.Zb!=null?":"+b.Zb:"");sh(sh(sh(a,"enablejsapi","1"),"origin",b),"wmode","opaque");this.F&&sh(sh(a,"disablekb","1"),"controls","0")};m.W=function(a){rk.c.W.call(this,a);this.R.info("decorating");this.gi=a;if(a.id)this.ka=a.id;else a.id=this.ka;this.M=new N(parseInt(a.width),parseInt(a.height));this.mb()};
m.i=function(){rk.c.i.call(this);var a=window;if(a.YT&&a.YT.Player)this.Gi();else{var b=r;if(a.onYouTubePlayerAPIReady)b=a.onYouTubePlayerAPIReady;var c=w(this.Gi,this);window.onYouTubePlayerAPIReady=function(){b();c()};dj("http://www.youtube.com/player_api")}};m.Gi=function(){var a=w(this.Wc,this);this.dk=new window.YT.Player(this.ka,{events:{onReady:w(this.We,this),onStateChange:function(b){a(b.data)}}})};
m.We=function(){this.R.info("player ready");this.f=this.dk;z(this.m,function(a){a()});this.m=[];this.q().d(this.N,L,this.$b).d(this.u,L,this.xb);this.N.start()};m.h=function(){rk.c.h.call(this);this.N.n();this.u.n()};m.Z=function(){rk.c.Z.call(this);this.N.stop();this.u.stop()};function kk(){}m=kk.prototype;m.$b=function(){this.na()>0&&this.dispatchEvent("videoprogress")};m.xb=function(){this.na()>0&&this.lb()};m.Wc=function(a){if(a==pk.ee){this.dispatchEvent($j.uf);this.u.start();this.Ag=false}else if(a==pk.de){this.dispatchEvent($j.jh);this.u.stop()}else a==pk.$d&&this.Ic()};m.na=function(){if(!this.Ba){this.Ba=this.f&&this.f.getDuration?this.f.getDuration():0;if(this.Ba<=0)this.Ba=0}return this.Ba};
m.nb=function(a){this.f?this.f.setVolume(a*100):this.m.push(w(this.nb,this,a))};m.lc=function(){return this.Sb()==2};m.zc=function(){return this.Sb()==0};m.mc=function(){return this.Sb()==1};m.Ya=function(){this.f?this.f.playVideo():this.m.push(w(this.Ya,this))};m.Xa=function(){if(this.f){this.Ag=true;this.zg=null;this.f.pauseVideo()}else this.m.push(w(this.Xa,this))};m.$a=function(){if(this.f){this.f.stopVideo();return this.pa=true}else{this.m.push(w(this.$a,this));return false}};
m.kb=function(a){if(this.f){this.f.cueVideoById(this.j.Ac,a);this.pa=false}else this.m.push(w(this.kb,this,a))};m.Hb=function(){return this.f?this.Ag&&this.zg!==null?this.zg:this.f.getCurrentTime():0};m.wa=function(a,b){if(this.f){this.f.seekTo(a,true);if(!b){if(this.Ag)this.zg=a;this.lb()}}else this.m.push(w(this.wa,this,a))};m.Sb=function(){return this.f?this.f.getPlayerState():-1};m.Oa=e("M");var sk=[];yg("unisubs.player.JWVideoPlayerStatic");(function(){var a=window.playerReady||r;window.playerReady=function(b){try{a(b)}catch(c){}z(sk,function(d){ck(d)})}})();function Y(a,b){X.call(this,a);this.F=!!b;this.j=a;this.ya=this.xa=false;this.f=this.qc=null;this.m=[];this.N=new K(500);this.u=new K(80)}x(Y,X);Y.prototype.e=function(){Y.c.e.call(this);var a=this.Od();this.qc=!this.F&&a?a:this.F?Qj:Pj};
Y.prototype.i=function(){Y.c.i.call(this);if(!this.xa){this.xa=true;var a=this.g().e("div");a.id=Ti();this.yk=a.id;this.a().appendChild(a);this.mb();var b={src:Fi()+"flowplayer/flowplayer-3.2.7.swf",width:this.qc.width+"",height:this.qc.height+"",wmode:"opaque"},c=this,d={playlist:[{url:this.j.xe(),autoPlay:false}],onLoad:function(){tk(c)}};uk(this,d);this.f=$f(a.id,b,d)}this.q().d(this.N,L,this.$b).d(this.u,L,this.xb);this.N.start()};
function uk(a,b){var c;if(a.F)c={controls:null};else if(a=a.j.ta())c=mc(a,function(d,f){return f!="width"&&f!="height"});if(c)b.plugins=c}Y.prototype.Od=function(){var a=this.j.ta();return a&&a.width&&a.height?new N(parseInt(a.width),parseInt(a.height)):null};Y.prototype.Z=function(){Y.c.Z.call(this);this.u.stop();this.N.stop()};
function tk(a){uj(sd(a.f.getParent()),a.qc);uj(ad(a.yk),a.qc);a.ya=true;z(a.m,function(b){b()});a.m=[];vk(a).onStart(function(){wk(a)});vk(a).onBegin(function(){wk(a)});vk(a).onResume(function(){wk(a)});vk(a).onPause(function(){a.dispatchEvent("videopause");a.u.stop()});vk(a).onFinish(function(){a.Ic()})}Y.prototype.$b=function(){if(this.na()>0){this.jm=this.f.getStatus();this.jm.bufferEnd>=this.na()-0.1&&this.N.stop();this.dispatchEvent("videoprogress")}};Y.prototype.xb=function(){this.na()>0&&this.lb()};
function wk(a){a.dispatchEvent("videoplay");a.u.start()}function vk(a){return a.f.getClip(0)}m=Y.prototype;m.na=function(){if(!this.Ba){this.Ba=this.ya?vk(this).fullDuration:0;if(isNaN(this.Ba))this.Ba=0}return this.Ba};m.nb=function(a){this.ya?this.f.setVolume(a*100):this.m.push(w(this.dm,this,a))};m.lc=function(){return this.ya?this.f.isPaused():false};m.zc=function(){return this.ya?this.f.getState()==5:false};m.mc=function(){return this.ya?this.f.isPlaying():false};
m.Ya=function(){if(this.ya)Sj(this)||this.f.play();else this.m.push(w(this.Ya,this))};m.Xa=function(){this.ya?this.f.pause():this.m.push(w(this.Xa,this))};m.$a=function(){if(this.ya){this.f.stopBuffering();return this.pa=true}else{this.m.push(w(this.$a,this));return false}};m.kb=function(a){if(this.ya){this.f.startBuffering();this.pa=false}else this.m.push(w(this.kb,this,a))};m.wd=function(){return this.ya?this.f.getTime():0};
m.wa=function(a,b){if(this.ya){this.f.seek(a);b||this.lb()}else this.m.push(w(this.wa,this,a))};m.Ed=function(){return qb};m.Oa=e("qc");m.h=function(){Y.c.h.call(this);this.N.n();this.u.n()};function xk(a,b){Y.call(this,a,b);this.F=!!b}x(xk,Y);xk.prototype.e=function(){xk.c.e.call(this);this.qc=this.F?Qj:Pj};xk.prototype.na=k(1E4);function yk(a){for(var b=["Ogg","WebM","H264"],c=0;c<b.length;c++)if(Fj(b[c])){var d=zk(a,b[c]);if(d!=null)return d}return null}function Ak(a){a=A(a,function(c){return v(c)?Bk(c):Bk(c.url,c.config)});var b=null;if(!C){b=yk(a);if(b!=null)return b}b=Xa(a,function(c){return!(c instanceof Ck)});if(b!=null)return b;b=zk(a,vt.Em);if(b!=null)return b;return a.length>0?a[0]:null}function zk(a,b){return Xa(a,function(c){return c instanceof Ck&&c.ed==b})}
function Bk(a,b){var c=/^\s*https?:\/\/([^\.]+\.)*blip\.tv\/file\/get\//;if(/^\s*https?:\/\/([^\.]+\.)?youtube/i.test(a)){var d=null;d=window.swfobject.hasFlashPlayerVersion("9")?Dk(a,b):Ek(a,b);if(d!=null)return d}else if(/^\s*https?:\/\/([^\.]+\.)?vimeo/.test(a)){if(d=/vimeo.com\/([0-9]+)/i.exec(a))return new Fk(d[1],a,b)}else if(/^\s*https?:\/\/([^\.]+\.)?dailymotion/.test(a)){if(d=/dailymotion.com\/video\/([0-9a-z]+)/i.exec(a))return new Gk(d[1],a)}else if(/^\s*https?:\/\/([^\.]+\.)?blip\.tv/.test(a)&&
!c.test(a))return new Hk(a);else if(/\.flv$|\.mov$/i.test(a))return new Ik(a,b);else if(Jk(a)){a:{b=undefined;if(Jk(a)){var f=new V(a);c=f.Ra.da("bckey");f=f.Ra.da("bctid");try{d=/bcpid([\d])+/.exec(a)[0].substring(5)}catch(g){}b||(b={});b.uri=a;if(d){a=new Kk(d,c,f,b);break a}}a=null}return a}else if(/\.mp3$/i.test(a))return/\.mp3$/i.test(a)?new Lk(a):null;else{d=a;c=d.indexOf("?");if(c>-1)d=d.substring(0,c);c=null;if(/\.ogv$|\.ogg$/i.test(d))c="Ogg";else if(/\.mp4$|\.m4v$/i.test(d))c="H264";else if(/\.webm$/i.test(d))c=
"WebM";d=c!=null?new Ck(d,c,b):null;if(d!=null)return d}throw new Error("Unrecognized video url "+a);};function Lk(a){this.vl=a}m=Lk.prototype;m.Pb=function(){return this.la(false)};m.Ob=function(){return new Mk(this.la(true))};m.la=function(a){var b=document.createElement("audio");return b.canPlayType&&b.canPlayType("audio/mpeg").replace(/no/,"")?new hk(this,a):new xk(this,a)};m.oa=e("vl");m.xe=function(){return this.oa()};m.ta=k(null);function Ck(a,b,c){this.S=a;this.ed=b;this.B=c;this.qh=[]}m=Ck.prototype;m.Pb=function(){return this.la(false)};m.Ob=function(){return new Mk(this.la(true))};m.la=function(a){if(this.ed=="H264"&&!Gj())return new Y(this,a);else{var b=new Ck(this.S,this.ed,this.B);b.qh=this.qh;return new gk(b,a)}};m.xe=function(){if(this.ed!="H264")throw new Error;return this.S};m.oa=e("S");m.ta=e("B");m.af=ba("B");function Nk(a,b){this.Ac=a;this.Ea=Ti();this.B=b}function Ok(a){return(a=/(?:v[\/=]|embed\/)([0-9a-zA-Z\-\_]+)/i.exec(a))?a[1]:null}function Dk(a,b){return(a=Ok(a))?new Nk(a,b):null}m=Nk.prototype;m.Pb=function(){return this.Jf(false)};m.Ob=function(){return new Mk(this.Jf(true))};m.Jf=function(a){return new ik(new Nk(this.Ac,this.B),a)};m.ta=e("B");m.af=ba("B");function ok(a){return a.B&&a.B.width&&a.B.height?new N(parseInt(a.B.width),parseInt(a.B.height)):null}
Nk.prototype.oa=function(){return"http://www.youtube.com/watch?v="+this.Ac};function Pk(a,b){Nk.call(this,a,b)}x(Pk,Nk);Pk.prototype.Jf=function(a){return new rk(new Pk(this.Ac,this.ta()),a)};function Ek(a,b){return(a=Ok(a))?new Pk(a,b):null};function Kk(a,b,c,d){this.Yi=a;this.r=c;this.Zi=b;this.Ea=Ti();this.B=d}function Jk(a){a=(new V(a)).fb;return Ca("brightcove.com",a.substr(a.length-14,14))==0}m=Kk.prototype;m.Pb=function(){return this.la(false)};m.Ob=function(){return new Mk(this.la(true))};m.la=function(a){return new Qk(new Kk(this.Yi,this.Zi,this.r,this.B),a)};m.ta=e("B");m.af=ba("B");m.oa=function(){return this.B.url};m.toString=function(){return"BrightcoveVideoSource "+this.r};function Qk(a,b){X.call(this,a);this.j=a;this.Qa=[a.Ea];this.ka=a.Ea+"_bcplayer";this.gb="event"+a.Ea;this.F=!!b;this.V=Rk;var c=w(this.Dl,this);if(window.onTemplateLoaded){var d=window.onTemplateLoaded;window.onTemplateLoaded=function(f){d(f);c(f)}}else window.onTemplateLoaded=c;this.f=this.M=null;this.m=[];this.xa=false;this.N=new K(500);this.u=new K(80)}x(Qk,X);m=Qk.prototype;
m.W=function(a){Qk.c.W.call(this,a);this.xa=true;this.f=a;this.M=re(a);this.mb();window[this.gb]=w(this.Wc,this);var b=new K(250),c=this,d=0;this.q().d(b,L,function(){d++;d==20&&c.Ci();if(c.f.play){b.stop();c.f.addEventListener("onStateChange",c.gb)}});b.start()};m.Ci=function(){Vi("log_brightCove_ei_failure",{page_url:window.location.href})};m.e=function(){Qk.c.e.call(this);var a=this.Od();this.M=!this.F&&a?a:this.F?Qj:Pj};
m.i=function(){Qk.c.i.call(this);if(!this.xa){this.xa=true;var a=this.g().e("div"),b=this.j.ta(),c={};for(var d in b)c[d]=b[d];c.playerID=this.j.Yi;c.playerKey=this.j.Zi;c.videoID=this.j.r;c.width=c.width||480;c.height=c.height||412;c.uuid=this.ka;b=' <object id="{{uuid}}" class="BrightcoveExperience"> <param name="bgcolor" value="#FFFFFF" /> <param name="width" value="{{width}}" /> <param name="height" value="{{height}}" /><param name="playerID" value="{{playerID}}" /><param name="playerKey" value="{{playerKey}}" /><param name="wmode" value="transparent" /><param name="isVid" value="true" /><param name="dynamicStreaming" value="true" /><param name="@videoPlayer" value="{{videoID}}" /></object>';
for(var f in c)b=b.replace("{{"+f+"}}",c[f]);a.innerHTML=b;a.id=Ti();this.a().appendChild(a);brightcove.hn()}this.q().d(this.N,L,this.$b).d(this.u,L,this.xb);this.N.start()};m.Od=function(){var a=this.j.ta();return a&&a.width&&a.height?new N(parseInt(a.width),parseInt(a.height)):null};m.Z=function(){Qk.c.Z.call(this);this.N.stop();this.u.stop()};m.$b=function(){this.na()>0&&this.dispatchEvent("videoprogress")};m.xb=function(){this.Hb()>0&&this.lb()};
m.Dl=function(a){if(a==this.ka){this.mb();this.f=ad(this.ka);this.Cf=brightcove.getExperience(this.ka);this.Cf.Yh(APIModules.Qj).addEventListener(BCExperienceEvent.Xj,w(this.Qi,this));uj(this.f,this.M);z(this.m,function(b){b()});this.m=[]}};m.Qi=function(){this.Cf.Yh(APIModules.Qj).removeEventListener(BCExperienceEvent.Xj,w(this.Qi,this));this.O=this.Cf.Yh(APIModules.an);this.O.addEventListener(BCMediaEvent.uf,w(this.Jl,this));this.O.addEventListener(BCMediaEvent.Um,w(this.Il,this));this.V=Sk};
m.Jl=function(){this.dispatchEvent("videoplay");this.u.start();this.V=Tk};function Uk(a){return a.O.getVideoDuration()-a.O.getVideoPosition()<0.1}Qk.prototype.Il=function(){this.dispatchEvent("videoplay");this.V=Vk;this.u.stop();Uk(this)&&Wk(this)};function Wk(a){a.V=Xk;a.Ic()}m=Qk.prototype;m.na=function(){if(!this.Ba&&this.O){this.Ba=this.O.getVideoDuration();if(this.Ba<=0)this.Ba=0}return this.Ba};m.nb=function(a){this.O?this.O.setVolume(a*100):this.m.push(w(this.dm,this,a))};
m.lc=function(){return this.O&&!this.O.isPlaying()};m.zc=function(){return Uk(this)};m.mc=function(){return this.O&&this.O.isPlaying()};m.Ya=function(){this.O?this.O.play():this.m.push(w(this.Ya,this))};m.Xa=function(){this.O?this.O.pause():this.m.push(w(this.Xa,this))};m.$a=function(){if(this.O){this.O.stop();return this.pa=true}else{this.m.push(w(this.$a,this));return false}};m.kb=function(a){if(this.O){this.O.cueVideoById(this.j.qn(),a);this.pa=false}else this.m.push(w(this.kb,this,a))};
m.Hb=function(){return this.O?this.O.getVideoPosition():0};m.wa=function(a){if(this.O){this.O.seek(a);this.lb()}else this.m.push(w(this.wa,this,a))};m.Sb=e("V");m.Ed=function(){return qb};m.ni=k(false);m.Oa=e("M");m.h=function(){Qk.c.h.call(this);this.N.n();this.u.n()};m.toString=k("BrightcoveVideoPlayer");var Rk=-1,Xk=0,Tk=1,Vk=2,Sk=3;function Ik(a,b){this.zk=a;this.B=b}m=Ik.prototype;m.Pb=function(){return this.la(false)};m.Ob=function(){return new Mk(this.la(true))};m.la=function(a){return new Y(this,a)};m.xe=e("zk");m.oa=function(){return this.xe()};m.ta=e("B");m.af=ba("B");function Hk(a){this.zn=a}Hk.prototype.Pb=function(){throw new Error;};Hk.prototype.Ob=function(){throw new Error;};function Mk(a){R.call(this);this.v=a;this.Hf=null}x(Mk,R);Mk.prototype.e=function(){Mk.c.e.call(this);this.La(this.v,true);if(this.v.ni()){this.Hf=new ri.gn.bn(this.v);this.La(this.Hf,true)}else this.Hf=aa()};function Fk(a,b,c){this.r=a;this.S=b;this.Ea=Ti();this.B=c}m=Fk.prototype;m.Pb=function(){return this.la(false)};m.Ob=function(){return new Mk(this.la(true))};m.la=function(a){return new Yk(new Fk(this.r,this.S,this.B),a)};m.ta=e("B");m.oa=e("S");function Yk(a,b){X.call(this,a);this.j=a;this.F=!!b;this.f=null;this.Qa=[a.Ea,""+(new Date).getTime()].join("");this.ka=a.Ea+"_vimeoplayer";this.gb="event"+a.Ea;this.ll=0;var c=w(this.Nl,this);if(window.vimeo_player_loaded){var d=window.vimeo_player_loaded;window.vimeo_player_loaded=function(f){d(f);c(f)}}else window.vimeo_player_loaded=c;this.f=this.M=null;this.m=[];this.xa=false;this.u=new K(80)}x(Yk,X);Yk.prototype.e=function(){Yk.c.e.call(this);var a=this.Od();this.M=!this.F&&a?a:this.F?Qj:Pj};
Yk.prototype.i=function(){Yk.c.i.call(this);if(!this.xa){this.xa=true;var a=this.g().e("span");a.id=Ti();this.a().appendChild(a);var b={id:this.ka,style:yj("",this.M)};this.mb();Zk(this);window.swfobject.embedSWF(Zk(this),a.id,this.M.width+"",this.M.height+"","8",null,null,{allowScriptAccess:"always",wmode:"opaque",allowfullscreen:"true"},b)}this.q().d(this.u,L,this.xb)};
function Zk(a){var b={},c=a.j.ta();if(!a.F&&c)b=c;uc(b,{js_api:"1",width:a.M.width,height:a.M.height,clip_id:a.j.r,js_swf_id:a.Qa});b=b;a=ae(b);if(typeof a=="undefined")throw Error("Keys are undefined");b=$d(b);if(a.length!=b.length)throw Error("Mismatched lengths for keys/values");c=new jh(null,undefined,undefined);for(var d=0;d<a.length;d++)c.add(a[d],b[d]);return"http://vimeo.com/moogaloop.swf?"+c.toString()}m=Yk.prototype;m.Z=function(){Yk.c.Z.call(this);this.u.stop()};
m.Od=function(){var a=this.j.ta();return a&&a.width&&a.height?new N(parseInt(a.width),parseInt(a.height)):null};m.wd=function(){return this.ya?this.f.api_getCurrentTime():0};m.xb=function(){this.na()>0&&this.lb()};m.na=function(){return this.f.api_getDuration()};m.nb=function(a){this.f?this.f.api_setVolume(a*100):this.m.push(w(this.nb,this,a))};m.wa=function(a){if(this.f){this.f.api_seekTo(a);this.lb()}else this.m.push(w(this.wa,this,a))};m.Oa=function(){return new N(Yk.cn,Yk.Im)};m.lc=function(){return!this.dg};
m.mc=e("dg");m.zc=function(){return this.Hb()==this.na()};m.Ya=function(){this.ya?this.f.api_play():this.m.push(w(this.Ya,this))};m.Xa=function(){this.ya?this.f.api_pause():this.m.push(w(this.Xa,this))};m.$a=function(){this.pause()};m.kb=function(){this.Vc()};
m.Nl=function(a){if(a==this.Qa){this.f=ad(this.ka);this.ya=true;z(this.m,function(d){d()});this.m=[];var b=this;a=Ti();var c="onVimeoLoa"+a;window[c]=function(d){b.ll=d;b.dispatchEvent("videoprogress")};this.f.api_addEventListener("onLoading",c);c="onVimeoFin"+a;window[c]=function(){b.Ic()};this.f.api_addEventListener("onFinish",c);c="onVimeoPla"+a;window[c]=function(){b.dg=true;b.u.start()};this.f.api_addEventListener("onPlay",c);a="onVimeoPau"+a;window[a]=function(){b.dg=false;b.Hn.stop()};this.f.api_addEventListener("onPause",
a)}};m.Oa=e("M");m.h=function(){Yk.c.h.call(this);this.u.n()};function Gk(a,b){this.r=a;this.S=b;this.Ea=Ti()}Gk.prototype.Pb=function(){return this.la(false)};Gk.prototype.Ob=function(){return new Mk(this.la(true))};Gk.prototype.la=function(a){return new $k(new Gk(this.r,this.S),a)};Gk.prototype.oa=e("S");function $k(a,b){X.call(this,a);this.j=a;this.ok=!!b;this.f=null;this.Qa=[a.Ea,""+(new Date).getTime()].join("");this.ka=a.Ea+"_dailymotionplayer";this.gb="event"+a.Ea;var c=w(this.El,this);if(window.onDailymotionPlayerReady){var d=window.onDailymotionPlayerReady;window.onDailymotionPlayerReady=function(f){d(f);c(f)}}else window.onDailymotionPlayerReady=c;this.m=[];this.xa=false;this.N=new K(500);this.u=new K(80)}x($k,X);m=$k.prototype;
m.i=function(){$k.c.i.call(this);if(!this.xa){this.xa=true;var a=this.g().e("div");a.id=Ti();this.a().appendChild(a);var b={id:this.ka,style:yj("",this.Oa())},c=["?chromeless=",this.ok?1:0,"&enableApi=1&playerapiid=",this.Qa].join("");this.mb();window.swfobject.embedSWF(["http://www.dailymotion.com/swf",c].join(""),a.id,400,300,"8",null,null,{allowScriptAccess:"always",wmode:"opaque"},b)}this.q().d(this.N,L,this.$b);this.q().d(this.u,L,this.xb)};m.Z=function(){$k.c.Z.call(this);this.N.stop();this.u.stop()};
m.wd=function(){return this.f?this.f.getCurrentTime():0};m.$b=function(){this.na()>0&&this.dispatchEvent("videoprogress")};m.xb=function(){this.na()>0&&this.lb()};m.na=function(){return this.f&&this.f.getDuration?this.f.getDuration():0};m.nb=function(a){this.f?this.f.setVolume(100*a):this.m.push(w(this.nb,this,a))};m.wa=function(a,b){if(this.f){a=Math.max(a,1);this.f.seekTo(a);b||this.lb()}else this.m.push(w(this.wa,this,a))};m.Oa=function(){return new N(400,300)};
m.lc=function(){return this.Sb()==al.de};m.mc=function(){return this.Sb()==al.ee};m.zc=function(){return this.Sb()==al.$d};m.Ya=function(){if(this.f){this.f.playVideo();this.u.start()}else this.m.push(w(this.Ya,this))};m.Xa=function(){if(this.f){this.f.pauseVideo();this.u.stop()}else this.m.push(w(this.Xa,this))};m.$a=function(){if(this.f){this.f.stopVideo();return true}else{this.m.push(w(this.$a,this));return false}};
m.kb=function(a){if(this.f){this.f.cueVideoById(this.j.r);this.wa(a);this.pa=false}else this.m.push(w(this.kb,this,a))};m.Wc=function(a){var b=al;if(a==b.ee){this.dispatchEvent($j.uf);this.u.start()}else if(a==b.de){this.dispatchEvent($j.jh);this.u.stop()}else a==b.$d&&this.Ic()};m.Sb=function(){return this.f?this.f.getPlayerState():-1};
m.El=function(a){if(a==this.Qa){this.f=ad(this.ka);this.f.cueVideoById(this.j.r);z(this.m,function(b){b()});this.m=[];window[this.gb]=w(this.Wc,this);this.N.start();this.f.addEventListener("onStateChange",this.gb)}};m.h=function(){$k.c.h.call(this);this.N.n();this.u.n()};m.Ed=function(){return qb};var al={$j:-1,$d:0,ee:1,de:2,ak:5};function bl(a,b){this.ua=a.my_languages;this.jg=a.limit_languages;fb(this.ua);this.ua=Va(this.ua,function(c){return!!Di(c)});this.Se=a.original_language;this.G=new cl(a.video_languages);this.yb=new dl(this.ua,this.G,this.jg,b);this.Gg=null;if(b)this.Ze=b.zb?el(this.yb,b.p+b.zb):fl(this.yb,b.p)}function gl(a){if(!a.Ze)a.Ze=hl(a.yb)[0];return a.Ze}
function il(a){var b=a.Se;if(!b)b=a.Gg;var c=gl(a);if(c.p==b)return[];var d=jl(a.G,c.p),f=[];a.G.forEach(function(h){B(d,h)||f.push(h)});f=Va(f,function(h){return h.za&&h.cb>0||!h.za&&h.ie>0});var g=new dg(a.ua);hb(f,function(h,j){return ib(g.contains(h.p)?0:1,g.contains(j.p)?0:1)});return f};function kl(a){this.Ta=a.pk;this.p=a.language;this.za=a.dependent;this.Bc=a.is_complete;this.cb=a.percent_done;this.kd=a.standard_pk;this.ie=a.subtitle_count;this.Tj=a.in_progress;this.ah=a.disabled}function ll(a){return a.p?Di(a.p):"Original"}kl.prototype.toString=function(){var a=ll(this);if(!this.za&&this.ie>0)a+=this.Bc?" (100%)":" (incomplete)";else if(this.za&&this.cb>0)a+=" ("+this.cb+"%)";a+=this.Tj||this.ah?" (in progress)":"";return a};
function ml(a,b){a.ck=b;if(a.kd)a.Pd=Xa(a.ck,function(c){return c.Ta==this.kd},a)}kl.prototype.Ib=function(){return this.za&&this.cb==0};function nl(a,b){if(!a.za)return false;return b.za?a.kd==b.kd:a.kd==b.Ta};function cl(a){a=A(a,function(b){return new kl(b)});this.G=Va(a,function(b){return!!Di(b.p)||b.ie>0});z(this.G,function(b){ml(b,this.G)},this);this.Ue=this.nc=null}cl.prototype.forEach=function(a,b){z(this.G,a,b)};function jl(a,b){if(!a.nc){a.nc={};for(var c,d=0;d<a.G.length;d++){c=a.G[d];if(a.nc[c.p])a.nc[c.p].push(c);else a.nc[c.p]=[c]}}return a.nc[b]?a.nc[b]:[]}function ol(a,b,c){a=jl(a,b);return Xa(a,function(d){return d.za&&d.Pd.p==c})}
function pl(a,b){if(!a.Ue){a.Ue={};z(a.G,function(c){this.Ue[c.Ta]=c},a)}return a.Ue[b]};function ql(a,b,c){this.p=c=b?b.p:c;this.tf=c+(b?""+b.Ta:"");this.pb=Di(c);this.ge=a;this.aa=b}ql.prototype.toString=function(){return this.aa?this.aa.toString():this.pb};function rl(a,b){if(!a.aa||a.aa.Ib())return false;if(!a.aa.za)return true;if(!nl(a.aa,b))return true;return false};function dl(a,b,c,d){this.ua=a;this.G=b;this.jg=c;this.Wb=d||null;this.w=this.Kn=null}
function sl(a){var b=[];if(a.Wb&&a.Wb.zb){var c=new ql(0,pl(a.G,a.Wb.zb));c.p&&b.push(c)}var d=[];z(a.ua,function(f){d=bb(d,tl(this,f))},a);b=bb(b,d);c=b.length;ul(a,b);vl(a,b);c=Za(b,0,c);hb(b,function(f,g){var h=ib(f.ge,g.ge);if(h==0)h=ib(f.pb,g.pb);return h});hb(c,function(f,g){var h=ib(f.ge,g.ge);if(h==0)if(f.aa&&g.aa){h=ib(g.aa.cb,f.aa.cb);if(h==0)h=ib(f.pb,g.pb)}else h=ib(f.pb,g.pb);return h});$a(b,c,0);return b=wl(a,b)}function hl(a){if(!a.yb)a.yb=sl(a);return a.yb}
function fl(a,b){return Xa(hl(a),function(c){return c.p==b})}function xl(a,b){return Xa(hl(a),function(c){return c.aa&&c.aa.Ta==b.Ta})}function el(a,b){if(!a.w){a.w={};z(hl(a),function(c){this.w[c.tf]=c},a)}return a.w[b]}function ul(a,b){var c=new dg(A(Va(b,function(d){return!!d.aa}),function(d){return d.aa.Ta}));a.G.forEach(function(d){c.contains(d.Ta)||b.push(new ql(11,d))})}
function vl(a,b){var c=new dg(A(b,function(d){return d.p}));z(zi,function(d){c.contains(d[0])||b.push(new ql(11,null,d[0]))})}function wl(a,b){var c;c=a.Wb&&a.Wb.FORCE?new dg([a.Wb.LANGUAGE]):new dg(a.jg);return c.Ib()?b:Va(b,function(d){return c.contains(d.p)})}function tl(a,b){var c=[],d=jl(a.G,b);d.length||(d=[null]);z(d,function(f){c.push(yl(this,f,b))},a);return c}function yl(a,b,c){var d=null;return(d=zl(a,b,true,1))?d:(d=Al(a,b,c))?d:(d=Bl(a,b))?d:new ql(10,b,c)}
function zl(a,b,c,d){if(b&&(c?b.za&&b.cb>0&&b.cb<100:b.za&&b.cb==100)){c=[];for(var f=0;f<a.ua.length;f++){var g=jl(a.G,a.ua[f]);c=bb(c,A(g,function(h){return nl(b,h)}))}if(c.length>0)return new ql(d,b)}return null}function Al(a,b,c){if(!b||b.Ib()){for(var d=[],f=0;f<a.ua.length;f++){var g=jl(a.G,a.ua[f]);d=bb(d,A(g,function(h){return h.za?h.Pd&&h.Pd.Bc&&h.cb>10:h.Bc}))}if(d.length>0)return new ql(2,b,c)}return null}function Bl(a,b){if(b&&!b.za&&!b.Bc)return new ql(3,b);return null};function Cl(a,b,c){S.call(this,"unisubs-modal-lang",true);Pe(this,null);this.Jc=true;this.r=a;this.te=false;this.ga=null;this.Wb=b;this.Ec=c}x(Cl,S);m=Cl.prototype;m.e=function(){Cl.c.e.call(this);var a=w(this.g().e,this.g()),b=this.a();b.appendChild(a("h3",null,"Create subtitles"));this.I=a("div",null,"");this.I.innerHTML="<p>Loading&hellip;</p>";b.appendChild(this.I)};m.i=function(){Cl.c.i.call(this);this.pd()};
m.t=function(a){Cl.c.t.call(this,a);a&&Vi("fetch_start_dialog_contents",{video_id:this.r},w(this.Eg,this))};m.Sc=function(a,b,c){for(var d=[],f,g,h,j=0;j<b.length;j++){f=b[j][0];g=b[j][1];h=b[j][3];f={value:f};if(h)f.disabled="disabled";d.push(a("option",f,g))}return a("select",c||null,d)};
m.Eg=function(a){this.te=true;this.ga=new bl(a,this.Wb);pd(this.I);a=w(this.g().e,this.g());if(this.ga.Se)this.I.appendChild(a("p",null,"This video is in "+Di(this.ga.Se)));else{this.Uc=this.Sc(a,zi,"original-language");this.Uc.value="en";this.ga.Gg="en";this.I.appendChild(a("p",null,a("span",null,"This video is in: "),this.Uc))}Dl(this,a);this.Qf=a("span");this.Vh=a("div",null,a("p",null,a("span",null,"Translate from: "),this.Qf));this.I.appendChild(this.Vh);El(this);this.Ka=a("p","warning");O(this.I,
this.Ka);Q(this.Ka,false);this.Wa=a("a",{href:"#",className:"unisubs-green-button unisubs-big"},"Continue");O(this.I,this.Wa);a=a("div");rj(a,"clear","both");a.innerHTML="&nbsp;";this.I.appendChild(a);this.Ye();this.pd();Fl(this)};
function El(a){var b=il(a.ga);Q(a.Vh,b.length>0);if(b.length>0){b=A(il(a.ga),function(d){return[d.Ta+"",d.toString()]});b.push(["forkk","Direct from video (more work)"]);var c=w(a.g().e,a.g());a.Gb=a.Sc(c,b,"from-language");pd(a.Qf);a.Qf.appendChild(a.Gb);a.q().d(a.Gb,"change",a.Ek)}else a.Gb=null}
function Dl(a,b){var c=A(hl(a.ga.yb),function(d){return[d.tf,d.toString(),d.p,d.aa?d.aa.ah:false]});a.Vd=a.Sc(b,c,"to-language");a.Vd.value=gl(a.ga).tf;a.I.appendChild(b("p",null,b("span",null,"Subtitle into: "),a.Vd));a=fd("to-language");b=rd(a)[a.selectedIndex];if(b.disabled){b=b.nextElementSibling!=undefined?b.nextElementSibling:td(b.nextSibling,true);Wf(a,b.value)}}
Cl.prototype.pd=function(){if(this.U&&this.te){this.q().d(this.Vd,"change",this.sm).d(this.Wa,"click",this.Fd);this.Uc&&this.q().d(this.Uc,"change",this.Pl)}};Cl.prototype.Pl=function(){this.ga.Gg=this.Uc.value;El(this)};Cl.prototype.sm=function(){console.log("in tolangchanged");var a=this.ga;a.Ze=el(a.yb,this.Vd.value);El(this);Fl(this)};Cl.prototype.Ek=function(){Fl(this)};
function Fl(a){var b=null;if(a.Gb&&a.Gb.value!="forkk"){b=gl(a.ga);var c;c=parseInt(a.Gb.value,0);c=pl(a.ga.G,c);if(rl(b,c)){var d="";if(b.aa.za)d="The "+b.pb+" subtitles you selected were translated from "+ll(b.aa.Pd)+". ";var f;f=a.ga;var g=ol(f.G,b.p,c.p);f=g?[xl(f.yb,g),g.Pd]:null;d+=f!==null?"There is a better choice for translating into "+b.pb+" from "+ll(c)+". ":"If you're translating into "+b.pb+" from "+ll(c)+", you'll need to start from scratch.";b=d}else b=null}b=b;vd(a.Ka,b||"");Q(a.Ka,
!!b)}Cl.prototype.Fd=function(a){a.preventDefault();if(!this.sg){this.sg=true;a=null;if(this.Gb&&this.Gb.value!="forkk")a=parseInt(this.Gb.value,0);var b=el(this.ga.yb,this.Vd.value),c=this;this.Ec(!this.ga.Se?this.Uc.value:null,b.p,b.aa?b.aa.Ta:null,a,function(){c.t(false)});vd(this.Wa,"Loading...");M(this.Wa,"unisubs-button-disabled")}};function Gl(){R.call(this);this.gc=this.Rd=null}x(Gl,R);
Gl.prototype.e=function(){Gl.c.e.call(this);var a=w(this.g().e,this.g());this.Ja=a("div","unisubs-transcript");this.Yc=a("a","resync","Back to current line");Dj(this.Yc,false);var b=a("a",{href:"#",id:"unisubs-logo"},a("img",{src:Gi("widget_button.png")}));this.C=new Hl(b);var c=a("div","unisubs-search-container",a("div","unisubs-search-input",a("input",{className:"unisubs-search",label:"Search..."}),a("span","resultcount")),bj(a,"\u2191"),bj(a,"\u2193"));a=a("div","unisubs-substreamer",a("div","unisubs-substreamer-controls",
a("ul",null,a("li",null,b)),this.Yc,c),this.Ja);O(this.a(),a);this.Qd=new Il;this.Qd.ca(c)};Gl.prototype.W=function(a){Gl.c.W.call(this,a);this.Ja=bd("div","unisubs-transcript",a)[0];this.Yc=bd("a","resync",a)[0];this.C=new Hl(ad("unisubs-logo"));var b=bd("span","unisubs-sub",a);Jl(this,b);this.Qd=new Il;this.Qd.ca(bd(null,"unisubs-search-container",a)[0]);Kl(this.Qd,this.Ja,this.Sd)};
function Ll(a,b){var c=w(a.g().e,a.g());b=A(b,function(g){return c("span",{className:"unisubs-sub",id:"usub-a-"+g.subtitle_id},g.text)});pd(a.Ja);for(var d=[],f=0;f<b.length;f++){d.push(b[f]);f<b.length-1&&d.push(document.createTextNode(" "))}O(a.Ja,d);Jl(a,b);Kl(a.Qd,a.Ja,a.Sd)}Gl.prototype.i=function(){Gl.c.i.call(this);this.q().d(this.Ja,"scroll",this.tm).d(this.Yc,"click",this.Xl)};Gl.prototype.tm=function(){if(this.Gj)this.Gj=false;else{this.ii=true;Dj(this.Yc,true)}};
function Jl(a,b){a.Sd=A(b,function(c){return new Ml(c)});a.Rd=new ce;z(a.Sd,function(c){c.wb(this);this.Rd.Y(c.yf,c)},a)}Gl.prototype.Xl=function(a){a.preventDefault();this.ii=false;Dj(this.Yc,false);Nl(this)};function Ol(a,b){if(a.gc){a.gc.display(false);a.gc=null}if(b){a.gc=a.Rd.da(b);Nl(a)}}function Nl(a){if(a.gc){a.gc.display(true);var b=a.gc;if(!a.ii){a.Gj=true;me(b.Sa,a.Ja,true)}}};function Il(){R.call(this)}x(Il,R);function Kl(a,b,c){a.Ja=b;a.Sd=c}Il.prototype.W=function(a){Il.c.W.call(this,a);a=rd(a);var b=rd(a[0]);this.Fg=new Xf;this.Fg.ca(b[0]);this.Cg=a[1];this.pg=a[2];this.ej=b[1]};Il.prototype.i=function(){Il.c.i.call(this);this.q().d(this.Fg.a(),"keyup",this.Sk).d(this.Cg,"click",this.Li).d(this.pg,"click",this.Li)};
Il.prototype.Li=function(a){a.preventDefault();if(a.target==this.Cg&&this.nf>0)Pl(this,this.nf-1);else a.target==this.pg&&this.nf<this.ec.length-1&&Pl(this,this.nf+1)};Il.prototype.Sk=function(){z(this.Sd,function(b){b.reset()});var a=this.Fg.Tb().toLowerCase();if(a!=""){mi(this.Ja,[[a,false]],function(b,c){return'<span class="unisubs-search">'+c+"</span>"},true);this.ec=bd("span","unisubs-search",this.Ja)}else this.ec=[];Dj(this.ej,this.ec.length>0);this.ec.length>0&&Pl(this,0)};
function Pl(a,b){a.nf=b;var c=a.ec[b];a.ei&&Uc(a.ei,"highlighted-search");a.ei=c;M(c,"highlighted-search");vd(a.ej,b+1+"/"+a.ec.length);Vc(a.Cg,"disabled",!(b>0));Vc(a.pg,"disabled",!(b<a.ec.length-1));b=ne(c);var d=ne(a.Ja);b.y>=d.y&&b.y+c.offsetHeight<d.y+a.Ja.clientHeight||me(c,a.Ja,true)};function Ml(a){y.call(this);this.Sa=a;this.Vk=a.innerHTML;a=Ql.exec(a.id);this.$m=a[1];this.yf=a[2];H(this.Sa,"mouseover",w(this.ul,this));H(this.Sa,"mouseout",w(this.tl,this));H(this.Sa,"click",w(this.qk,this))}x(Ml,I);var Rl=null,Ql=/usub\-(\w+)\-(\w+)/;m=Ml.prototype;m.display=function(a){Vc(this.Sa,"unisubs-sub-current",a)};m.reset=function(){this.Sa.innerHTML=this.Vk};
m.ul=function(a){if(ud(this.Sa,a.target)&&!ud(this.Sa,a.relatedTarget)){if(Rl&&this!=Rl){Uc(Rl.Sa,"highlighted");Rl=null}Rl=this;M(this.Sa,"highlighted")}};m.tl=function(a){if(ud(this.Sa,a.target)&&a.relatedTarget&&!ud(this.Sa,a.relatedTarget)&&this==Rl){Uc(this.Sa,"highlighted");Rl=null}};m.qk=function(){this.dispatchEvent("subclicked")};var Sl={};function Hl(a){this.rh=a}m=Hl.prototype;m.df=aa();m.kf=aa();m.Ld=aa();m.Md=aa();m.Gh=aa();m.Cj=aa();m.ef=aa();m.Rf=e("rh");m.a=e("rh");function Tl(a,b,c,d){var f=new Ul(a.j.oa(),a,b.C,true),g={video_url:a.j.oa(),is_remote:si!=null||Zi()};f.Ig(function(j){Ol(b,j?j.Pa.subtitle_id:null)});H(b,"subclicked",function(j){a.wa(Vl(f.va.Rd[j.target.yf]));Ol(b,j.target.yf)});H(f,Wl,function(j){Ll(b,j.target.pm)});function h(j){d&&Ll(b,Xl(j.subtitles).Cc);try{Yl(f,j)}catch(l){f.C.Md()}}c?h():Vi("show_widget",g,h)};function Zl(a){S.call(this,"unisubs-modal-lang",true);Pe(this,null);this.Jc=true;this.r=a;this.vi=0;this.ua=[];this.Bf=[];this.Dg=[];this.yj=true;this.Jh=null;this.Oj="Select a language";this.Pj="Please select a language to continue";this.Nj="Please provide a reason for your request";this.Zj="Subscribe to updates about this video";this.$g="Tell us why you're requesting these subtitles";this.Vj="Your request has been submitted. Thanks!";this.Wj="We weren't able to process your request. Please try again."}
x(Zl,S);Zl.prototype.e=function(){Zl.c.e.call(this);var a=w(this.g().e,this.g()),b=this.ma();this.Uk=a("h3",null,"Request subtitles");this.Ai=a("p",null,"Loading...");this.I=a("div",{className:"unisubs-request-div"},this.Ai);O(b,this.Uk,this.I)};Zl.prototype.i=function(){Zl.c.i.call(this);this.pd()};Zl.prototype.t=function(a){Cl.c.t.call(this,a);a&&Vi("fetch_request_dialog_contents",{video_id:this.r},w(this.Eg,this))};
Zl.prototype.Sc=function(a){var b=[];contents=this.Bf;b.push(a("option",{value:""},this.Oj));for(var c=0;c<contents.length;c++)b.push(a("option",{value:contents[c][0]},contents[c][1]));return a("select",{id:"unisubs-requestlang-"+ ++this.vi},b)};function $l(a,b){a.Ki=b("div");a.mk=b("input",{type:"checkbox",checked:true,id:"unisubs-request-track"});a.lk=b("label",{"for":"unisubs-request-track"},a.Zj);a.vk=b("textarea",{id:"unisubs-request-description"},a.$g);O(a.Ki,a.vk,a.mk,a.lk);O(a.I,a.Ki)}m=Zl.prototype;
m.Eg=function(a){this.te=true;this.ua=a.my_languages;this.Bf=a.all_languages;hb(this.Bf,function(b,c){return ib(b[1],c[1])});fb(this.ua);this.ua=Va(this.ua,function(b){return!!Di(b)});pd(this.I);a=w(this.g().e,this.g());this.Ka=a("p","warning");this.fg=a("div",{"class":"unisubs-request-langs"},a("p",null,"Your request will be submitted to our community of volunteers."));this.nh=a("a",{href:"#",className:"unisubs-request-addlang"},"Add another language");this.Wa=a("a",{href:"#",className:"unisubs-green-button unisubs-big",
style:"clear:both;"},"Request");this.Dh=a("a",{href:"#",className:"unisubs-green-button unisubs-big",style:"clear:both;"},"Close");O(this.I,this.Ka);O(this.I,this.fg);Q(this.Ka,false);O(this.fg,this.Sc(a));O(this.I,this.nh);$l(this,a);O(this.I,this.Wa);this.oe=a("div");rj(this.oe,"clear","both");this.oe.innerHTML="&nbsp;";this.I.appendChild(this.oe);this.Ye();this.pd()};m.pd=function(){this.U&&this.te&&this.q().d(this.Wa,"click",this.Fd).d(this.nh,"click",this.bk).d(this.Dh,"click",this.rk)};
m.Fd=function(a){a.preventDefault();this.sg&&Q(this.Ka,false);this.sg=true;for(i=1;i<=this.vi;i++){a=document.getElementById("unisubs-requestlang-"+i);(a=a.options[a.selectedIndex].value)&&this.Dg.push(a)}if(this.Dg.length>0){a=document.getElementById("unisubs-request-track").checked;var b=document.getElementById("unisubs-request-description").value;this.yj=a;if(b!=this.$g){this.Jh=b;w(this.cj,this);a=w(this.g().e,this.g());pd(this.I);this.I.appendChild(a("div",{className:"unisubs-request-div"},this.Ai));
Vi("submit_subtitle_request",{video_id:this.r,request_languages:this.Dg,track_request:this.yj,description:this.Jh},w(this.cj,this))}else{vd(this.Ka,this.Nj);Q(this.Ka,true)}}else{vd(this.Ka,this.Pj);Q(this.Ka,true)}};m.bk=function(a){a.preventDefault();a=w(this.g().e,this.g());O(this.fg,this.Sc(a));this.Ye()};m.rk=function(a){a.preventDefault();this.t(false)};
m.cj=function(a){if(a.status){a=w(this.g().e,this.g());pd(this.I);this.tk=a("p",null,this.Vj);this.ym=a("p",null,"Want to pitch in yourself? Visit our ",a("a",{href:Ei()+"/videos/volunteer/requested/"},"requests page"),"!");this.I.appendChild(this.tk);this.I.appendChild(this.ym);this.I.appendChild(this.Dh);this.I.appendChild(this.oe)}else{vd(this.Ka,this.Wj);Q(this.Ka,true)}};function am(a){R.call(this);this.bf=this.kj=this.qg=this.Le=this.Tc=this.bd=this.Mc=this.le=null;this.Bk=!!a;this.mj=Gi("spinner.gif");this.Ie=Gi("small_logo.png");this.Ub=new Wh;Xh(this.Ub,"spinner",this.mj);Xh(this.Ub,"small_logo",this.Ie);this.Ub.start()}x(am,R);m=am.prototype;
m.e=function(){am.c.e.call(this);M(this.a(),"cleanslate","unisubs-videoTab","unisubs-videoTab-"+(this.Bk?"anchoring":"static"));var a=w(this.g().e,this.g());this.Mc=a("img",{alt:"small logo"});this.bd=a("span","unisubs-tabTextchoose");this.le=a("a",{className:"unisubs-subtitleMeLink",href:"javascript:void(0);"},this.Mc,this.bd);this.Le=a("span","unisubs-tabTextfinish","NUDGE TEXT");this.Tc=a("a",{href:"#"},this.Le);O(this.a(),this.le,this.Tc)};
m.i=function(){am.c.i.call(this);this.ef(false);this.q().d(this.Tc,"click",this.Bl)};m.Rf=e("le");m.df=function(){this.Mc.src=this.mj;vd(this.bd,"Loading")};m.Md=function(a){this.Mc.src=this.Ie;vd(this.bd,a||"Subs Unavailable");this.q().d(this.le,"click",function(b){b.preventDefault()})};m.kf=function(){this.Mc.src=this.Ie;this.tj&&vd(this.bd,this.tj)};m.Ld=function(a,b){this.Mc.src=this.Ie;this.tj=a=b?b.p?Di(b.p):"Original Language":a?"Select Language":"Subtitle Me";vd(this.bd,a)};
m.Bl=function(a){a.preventDefault();pj(oj.sa(),"Clicks_Improve_Subtitles_or_translation");this.qg&&this.qg()};m.ef=function(a){Dj(this.Tc,a);Dj(this.Le,a);a?rj(this.Tc,"width",null):wj(this.Tc,0)};m.Gh=function(a,b){if(!(si==null||window.UNISUBS_HIDESHARE)){if(!this.bf){var c=w(this.g().e,this.g());this.kj=c("span",{href:"","class":"unisubs-tabTextShare"},"Share");this.bf=c("a",{href:"","class":""},this.kj);this.a().appendChild(this.bf)}b=b?"_blank":"_self";hd(this.bf,{href:a.toString(),target:b})}};
m.Cj=function(a,b){vd(this.Le,a);this.qg=b};m.Lg=function(a){Cj(this.a(),a)};m.h=function(){am.c.h.call(this);this.Ub.n()};var bm={};function cm(a,b){y.call(this);this.Pa=b||{subtitle_id:Ti(),text:"",start_time:dm,end_time:dm,sub_order:a};this.yl=this.Sl=null}x(cm,I);cm.prototype.ve=function(a){this.Pa.sub_order=a.sub_order;this.Pa.start_time=a.start_time;this.Pa.end_time=a.end_time};function em(a,b){return a.Pa.sub_order-b.Pa.sub_order}var dm=-1;function Vl(a){return q(a.Pa.start_time)?a.Pa.start_time:dm}function fm(a){return q(a.Pa.end_time)?a.Pa.end_time:dm}function gm(a,b){return Vl(a)<=b&&(fm(a)==dm||b<fm(a))};function hm(a,b,c,d){y.call(this);var f=this,g;this.H=A(a,function(h){g=new cm(null,h);g.wb(f);return g});hb(this.H,em);for(a=1;a<this.H.length;a++){this.H[a-1].yl=this.H[a];this.H[a].Sl=this.H[a-1]}this.sk=b;this.title=c;this.Pf=!!d}x(hm,I);var im={Xg:"clearall",Lj:"cleartimes",Jj:"addsub",Mj:"deletesub"};function jm(a){return Va(a.H,function(b){return Vl(b)!=-1})}hm.prototype.clear=function(){for(;this.H.length>0;)this.H.pop();this.dispatchEvent(im.Xg)};hm.prototype.caption=function(a){return this.H[a]};
hm.prototype.Je=function(){return A(this.H,function(a){return a.Pa})};hm.prototype.ve=function(a){var b=km(this),c;z(a.Cc,function(d){(c=b[d.subtitle_id])&&c.ve(d)});hb(this.H,em);this.Pf=true};function km(a){var b={};z(a.H,function(c){b[c.Pa.subtitle_id]=c});return b};function Mi(a,b){S.call(this,"unisubs-modal-login",true);this.nd=0;this.T&&ue(this.T,this.nd);this.Sh=a;this.Ji=b;this.Di=!!ti;Pe(this,null);this.Jc=true;this.Ub=new Wh;this.vh=Gi("big_spinner.gif");Xh(this.Ub,"bigSpinner",this.vh);this.Ub.start()}x(Mi,S);var lm=null;m=Mi.prototype;
m.e=function(){Mi.c.e.call(this);var a=w(this.g().e,this.g());this.lg=a("a",{className:"unisubs-log",href:"#"},a("span",null,"Log in or Create an Account"));this.Rg=a("a",{className:"unisubs-twitter",href:"#"},a("span",null,"Twitter"));this.wg=a("a",{className:"unisubs-openid",href:"#"},a("span",null,"OpenID"));this.Uf=a("a",{className:"unisubs-google",href:"#"},a("span",null,"Google"));this.Rh=a("a",{className:"unisubs-facebook",href:"#"},a("span",null,"Facebook"));var b=this.ma();this.Ji&&od(b,
a("h4",{className:"unisubs-login-message"},this.Ji));var c=a("h4",null,"Login using any of these options");b.appendChild(c);b.appendChild(this.lg);b.appendChild(this.Rg);b.appendChild(this.wg);b.appendChild(this.Uf);b.appendChild(this.Rh);a=a("p","unisubs-small","For security, the login prompt will open in a separate window.");b.appendChild(a)};m.Nd=function(){pd(this.ma());this.a().appendChild(this.g().e("img",{className:"big_spinner",src:this.vh}))};
m.i=function(){Mi.c.i.call(this);this.q().d(this.lg,"click",this.gm).d(this.Rg,"click",this.pe).d(this.wg,"click",this.pe).d(this.Uf,"click",this.pe).d(this.Rh,"click",this.pe)};m.gm=function(a){this.Nd();this.Dd=Si(Ri,w(this.$i,this),w(this.Ei,this));a.preventDefault()};m.pe=function(a){this.Nd();this.Dd=Si(a.target==this.lg?Ri:a.target==this.Rg?Ni:a.target==this.wg?Oi:a.target==this.Uf?Pi:Qi,w(this.$i,this),w(this.Ei,this));a.preventDefault()};m.Ei=function(){alert("We had a problem logging you in to the site. Most likely your network connection is flaky, or there is a serious problem with our server. You might want to try again.\n\nIf you are subtitling a video, you can always use the download subtitles link in the lower right corner of the dialog.")};
m.$i=function(a){this.Dd=null;this.Di=a;this.t(false)};m.t=function(a){Mi.c.t.call(this,a);lm=a?this:null;if(!a)if(q(this.Dd)&&!this.Dd.closed)try{this.Dd.close()}catch(b){}!a&&this.Sh&&this.Sh(this.Di)};m.h=function(){Mi.c.h.call(this);this.Ub.n()};new N(512,384);function Z(a){S.call(this,"unisubs-modal-widget",true);this.nd=0.8;this.T&&ue(this.T,this.nd);Pe(this,null);this.Jc=true;this.Nh=false;this.wk=null;this.Eh=a.Ob();this.v=this.Eh.v;this.gk=this.Yl=this.fj=this.Bh=this.rm=null;this.yd=new K(6E4);this.yd.start();this.og=0;this.Zk=xi==="review"}x(Z,S);
Z.prototype.e=function(){Z.c.e.call(this);var a=new R;a.La(this.Eh,true);a.a().className="unisubs-left";a.La(this.rm=new R,true);a.La(this.Bh=new R,true);this.Bh.a().className="unisubs-captioningArea";this.La(a,true);this.La(this.fj=new R,true);this.fj.a().className="unisubs-right";this.ma().appendChild(this.g().e("div","unisubs-clear"));this.La(this.gk=new R,true)};
Z.prototype.i=function(){Z.c.i.call(this);this.q().d(kj.sa(),"beforeunload",this.Cl).d(Ji,Ii.hh,this.Bj).d(kd(document),["keydown","mousemove"],this.vm).d(this.yd,L,this.Xk)};Z.prototype.vm=function(){this.og=0};Z.prototype.Xk=function(){this.og++;this.og>=5&&mm(this)};function mm(a){a.yd.stop();if(!a.Zk){var b=a.$h();if(b){b=new Sl.Dm(b,a.Je());a.q().d(b,Ne,a.xk);b.t(true)}}}Z.prototype.xk=function(a){a.target.mn()?nm(this):this.yd.start()};Z.prototype.Bj=function(){this.Yl.Bj()};
Z.prototype.ti=t;
function om(a,b){pj(oj.sa(),"Submits_final_work_in_widget");if(Hi){a.Gn=true;alert("Congratulations, you have completed a demo. There is a web full of videos waiting for your translations, enjoy!");a.t(false)}else ti==null&&!(Ki||lm!=null)?Li(function(c){c||alert("We had a problem logging you in. You might want to check your web connection and try again.\n\nYou can also download your subtitles using the download button in the lower right corner of the dialog and email them to widget-logs@universalsubtitles.org.")}):pm(a,
b)}function pm(){t()}Z.prototype.Cl=function(a){if(!this.ti())a.message="You have unsaved work."};Z.prototype.t=function(a){if(a){Z.c.t.call(this,true);kd(document).scrollTop=0}else this.ti()?nm(this):qm(this)};function qm(a){(new ri.Ym(function(b){b?om(a,true):nm(a,false)})).t(true)}Z.prototype.$h=t;function nm(a){var b=a.$h();if(b){var c={};c.session_pk=b.sn();Vi("release_lock",c)}ui!=null&&Nc(function(){window.location.replace(ui)});Z.c.t.call(a,false)}Z.prototype.Je=t;
Z.prototype.h=function(){Z.c.h.call(this);this.v.n();this.yd.n()};function rm(a,b){y.call(this);this.H=jm(b);this.fk=function(c,d){return c-Vl(d)};this.wh=function(c,d){return Vl(c)-Vl(d)};this.v=a;this.X=new P(this);this.X.d(a,Zj,this.vj);this.X.d(b,bb(nc(im),"captionchanged"),this.kk);this.Cb=-1;this.xi=null;this.Oh=false;this.R=yg("unisubs.CaptionManager")}x(rm,I);
rm.prototype.kk=function(a){if(a.type==im.Xg||a.type==im.Lj){this.H=[];this.Cb=-1;sm(this,null)}else if(a.type==im.Jj){var b=a.caption;if(Vl(b)!=-1){a=this.H;b=b;var c=gb(a,this.wh||ib,false,b);c<0&&Ya(a,b,-(c+1));tm(this,this.v.Hb())}}else if(a.type==im.Mj){b=a.caption;if(Vl(b)!=-1){a=this.H;b=gb(a,this.wh||ib,false,b);b>=0&&Ta.splice.call(a,b,1);tm(this,this.v.Hb())}}else if(a.type=="captionchanged")if(a.Jn){this.H.push(a.target);this.vj()}};
rm.prototype.vj=function(){var a=this.v.Hb();if(this.H.length!=0)if(!(this.Cb==-1&&a<Vl(this.H[0]))){var b=this.Cb>-1?this.H[this.Cb]:null;if(!(this.Cb>-1&&b!=null&&gm(b,a))){var c=this.Cb<this.H.length-1?this.H[this.Cb+1]:null;if(c!=null&&gm(c,a)){this.Cb++;sm(this,c)}else if((c==null||a<Vl(c))&&(b==null||a>=Vl(b))){sm(this,null);c==null&&!this.Oh&&this.dispatchEvent("captionsfinished")}else tm(this,a)}}};
function tm(a,b){var c=gb(a.H,a.fk||ib,false,b);if(c<0)c=-c-2;a.Cb=c;c>=0&&gm(a.H[c],b)?sm(a,a.H[c]):sm(a,null)}function sm(a,b){if(b!=a.xi)if(!a.Oh){a.xi=b;a.dispatchEvent(new um(b))}}rm.prototype.h=function(){rm.c.h.call(this);this.X.n()};function um(a){this.type="caption";this.caption=a};function vm(a){this.p=a.language_code;this.zb=a.language_pk;if(typeof this.p=="undefined")this.p=null;this.vf=a.revision;if(typeof this.vf=="undefined")this.vf=null;this.Tm=!!a.start_playing;this.ih=a}vm.prototype.p=null;vm.prototype.vf=null;vm.prototype.ih=null;function wm(a,b){this.p=a.language_code;this.zb=a.language_pk;this.Uj=a.is_original;this.Bc=a.is_complete;this.Mm=a.mode;this.Zm=a.version;this.Cc=a.subtitles||b;this.dh=a.forked;this.Kj=a.base_language;this.Wg=a.base_language_pk;this.Jm=a.is_latest;this.Yj=a.title}function Xl(a){return a?new wm(a):null}wm.prototype.ve=function(){this.dh=true;this.Wg=this.Kj=null};function xm(a,b,c){this.fh=A(a,function(f){return new kl(f)});function d(f){return A(f,function(g){return g.toLowerCase()})}this.Km=d(A(a,function(f){return f.language}));this.Om=d(b);this.eh=c};function ym(a,b,c,d,f,g){y.call(this);this.r=a;this.j=b;this.v=c;this.C=d;this.Ga=f;g&&zm(this,g);this.rl=new P(this);var h=this;this.rl.d(this.Ga,Am.be,function(j){Bm(h,j.pf)}).d(this.Ga,Am.md,this.of);this.wc=null;this.rg=false;this.zj=new dg}x(ym,I);var Wl="languagechanged";ym.prototype.km=function(){this.v.kf();this.of()};ym.prototype.of=function(){Cm(this.Ga,null);this.Ga.De();this.C.ef(false);Dm(this);var a=this.v;a.Ab||Xj(a);Lj(a.Ab,"");this.Ha=null;this.C.Ld(this.Ga.G.length>0)};
function zm(a,b){a.rg=false;Dm(a);a.Ha=b;a.pm=b.Cc;b=new hm(b.Cc);a.Rd=km(b);a.od=new rm(a.v,b);a.Ve=new P(a);a.Ve.d(a.od,"caption",a.jk).d(a.od,"captionsfinished",a.Th).d(a.v,Yj,a.Th).d(a.v,"videoplay",a.xj);Sj(a.v)&&a.xj()}ym.prototype.xj=function(){var a=this.j.oa();if(!this.zj.contains(a)){this.zj.add(a);var b=oj.sa(),c=window.location.href;qj(b);window._gaq.push([b.fe+"._trackEvent","Subs Played",c,a,undefined]);Vi("track_subtitle_play",{video_id:this.r})}};
function Bm(a,b){pj(oj.sa(),"Selects_language_from_widget_dropdown");a.C.df();Vi("fetch_subtitles",{video_id:a.r,language_pk:b.Ta},function(c){a.of();c=Xl(c);zm(a,c);a.C.Ld(a.Ga.G.length>0,c);Cm(a.Ga,c);a.dispatchEvent(Wl)})}ym.prototype.Ig=ba("Gf");ym.prototype.jk=function(a){this.Gf(a.caption)};ym.prototype.Th=function(){if(!this.rg){this.C.Cj(this.Ha.p?"Improve this Translation":"Improve these Subtitles",w(this.wc.ji,this.wc));this.C.ef(true);this.rg=true}};
function Dm(a){if(a.od){a.od.n();a.od=null}if(a.Ve){a.Ve.n();a.Ve=null}}ym.prototype.h=function(){ym.c.h.call(this);Dm(this)};function Em(a,b,c,d,f){this.r=a;this.S=b;this.C=d;this.Ga=f;this.va=c;this.va.wc=this;this.Ca=new P(this);this.Mf=new Fm(a,b,this.va.j,function(g){g?d.df():d.kf()},w(c.km,c));Pd(this.Ca,this.Mf,Ne,this.nm);a=Am;this.Ca.d(f,a.fd,this.Re).d(f,a.hd,this.ji).d(f,a.he,this.Ul).d(d.Rf(),"click",this.xm)}
Em.prototype.xm=function(a){a.preventDefault();pj(oj.sa(),"videoTabClicked");a=null;if(q(cj)?q(cj.getItem):false)a=Gm();var b=this;q(a)&&q(Hm(a))&&a.r==this.r?(new Im(a,function(c){c?Jm(b):Km(b)})).t(true):Km(this)};function Jm(a){a={videoID:a.r,videoURL:a.S,effectiveVideoURL:a.va.j.oa(),returnURL:window.location.href};var b=new V(Ei()+"/onsite_widget_resume/");sh(b,"config",lf(a));window.location.assign(b.toString())}function Km(a){a.Ga.G.length>0?Lm(a.Ga):a.vg()}m=Em.prototype;
m.ji=function(){var a=this.va.Ha;Mm(this.Mf,new Nm(a.p,null,a.zb,a.Wg),this.va.j.oa())};m.Ul=function(){Li();Ki||lm!=null||(new Zl(this.r)).t(true)};m.vg=function(){this.Re(this.va.Ha)};m.Re=function(a){this.Mf.ff(this.va.j.oa(),a)};m.nm=function(a){a=a.target.wk;var b=this.va.v;if(b.pa){b.kb(b.lf);b.lf=null}this.C.Ld(this.Ga.G.length>0,this.va.Ha);Cm(this.Ga,this.va.Ha);a!=null&&Om(this.Ga,a)};function Fm(a,b,c,d,f){y.call(this);this.r=a;this.S=b;this.j=c;this.Bi=d;this.ac=f}x(Fm,I);Fm.prototype.Nd=function(a){this.Bi&&this.Bi(a)};Fm.prototype.openDialog=function(a,b){if(!Pm(this)){this.Nd(true);var c;(c=(c=Gm())&&c.mg(this.r,a)?c:null)&&Hm(c)?Qm(this,Hm(c),a,b):Rm(this,a,b)}};
function Rm(a,b,c){Vi("start_editing",{video_id:a.r,language_code:b.p,subtitle_language_pk:b.ld||null,base_language_pk:b.gd||null,original_language_code:b.jd||null,mode:xi||null},function(d){(new Sm(a.r,d.session_pk,b)).save();c&&c();Tm(a,d,false)})}function Qm(a,b,c,d){Vi("resume_editing",{session_pk:b.wf},function(f){if(f.response=="ok"){f.subtitles.subtitles=b.cc.Je();f.subtitles.title=b.cc.title;Tm(a,f,true,b.cc.Pf)}else{a.Bn();Rm(a,c,d)}})}
Fm.prototype.ff=function(a,b){if(!Pm(this)){var c=this;(new Cl(this.r,b,function(d,f,g,h,j){Mm(c,new Nm(f,d,g,h),a,j)})).t(true)}};function Pm(){if(q(cj)?q(cj.getItem):false)return false;else{alert("Sorry, you'll need to upgrade your browser to use the subtitling dialog.");return true}}
function Mm(a,b,c,d){if(!Pm(a))if(ui)a.openDialog(b,d);else{a={videoID:a.r,videoURL:a.S,effectiveVideoURL:c||a.S,languageCode:b.p,originalLanguageCode:b.jd||null,subLanguagePK:b.ld||null,baseLanguagePK:b.gd||null};if(Hi)a.nullWidget=true;b=new V(Ei()+"/onsite_widget/");sh(b,"config",lf(a));window.location.assign(b.toString())}}function Um(a,b,c){a=(new Vm(b,c)).Hg();cj.setItem("_unisubs_work0",a)}
function Tm(a,b,c,d){a.Nd(false);if(b.can_edit){var f=b.session_pk,g=Xl(b.subtitles);d&&g.ve();b=Xl(b.original_subtitles);d=new hm(g.Cc,g.Bc,g.Yj,d);c||Um(a,f,d);c=new bm.Nm(f,a.r,a.S,d);if(xi=="review"){a.ac&&a.ac();g=new ri.Dn.Zd(a.j,c,g);g.wb(a);g.t(true)}else if(xi=="approve"){a.ac&&a.ac();g=new ri.dn.Zd(a.j,c,g);g.wb(a);g.t(true)}else g.Uj||g.dh?Wm(a,c,g):Xm(a,c,g,b)}else{alert((b.locked_by=="anonymous"?"Someone else":"The user "+b.locked_by)+" is currently editing these subtitles. Please wait and try again later.");
q(ui)&&window.location.replace(ui)}}function Wm(a,b,c){a.ac&&a.ac();b=new bm.Zd(a.j,b,c,a);b.wb(a);b.t(true)}function Xm(a,b,c,d){a.ac&&a.ac();b=new ri.translate.Zd(a,b,a.j,c,d);b.wb(a);b.t(true)};function Nm(a,b,c,d){this.p=a;this.jd=b;this.ld=c;this.gd=d}Nm.prototype.mg=function(a){return this.p==a.p&&this.jd==a.jd&&this.ld==a.ld&&this.gd==a.gd};Nm.prototype.wj=function(){return{l:this.p,o:this.jd,s:this.ld,b:this.gd}};function Ym(a,b,c){R.call(this);this.r=a;this.G=b.fh;this.em=false;this.si=b.eh;this.C=c;this.Ha=null;this.gf=false;this.gg=new P(this)}x(Ym,R);var Am={fd:"add_language",hd:"improve_subtitles",he:"request_subtitles",xf:"subtitle_homepage",bh:"download_subtitles",Yg:"create_account",gh:"language_preferences",md:"subtitles_off",be:"language_selected",kh:"username",ce:"logout"};function Om(a,b){a.G=b.fh;a.em=false;a.si=b.eh;Zm(a);$m(a);Cm(a,a.Ha)}
function Cm(a,b){a.mf.className="";for(var c=0;c<a.Yd.length;c++)a.Yd[c].zi.className="";a.Ha=b;an(a);Cj(a.ag,!!b);sd(a.sd).href=bn(a)}
Ym.prototype.e=function(){Ym.c.e.call(this);var a=w(this.g().e,this.g());M(this.a(),"cleanslate","unisubs-dropdown");var b=a("div",{className:"unisubs-languageList"});b.appendChild(this.hg=a("ul",null));this.mf=a("li",null,a("a",{href:"#"},"Subtitles Off"));this.lm=a("span","unisubs-languageStatus");this.dc=a("div",{className:"unisubs-actions"});this.yc=a("ul",null);this.ad=a("ul",null);this.Aj=a("h5","unisubs-uniLogo","Universal Subtitles");this.ph=a("a",{href:"#"},"");this.oh=a("li","unisubs-addTranslation",
this.ph);this.ag=a("li","unisubs-improveSubtitles",a("a",{href:"#"},"Improve These Subtitles"));this.Tl=a("li","unisubs-requestSubtitles",a("a",{href:"#"},"Request Subtitles"));this.Ng=a("li","unisubs-subtitleHomepage",a("a",{href:$i(this.r)},"Subtitle Homepage"));this.sd=a("li","unisubs-downloadSubtitles",a("a",{href:bn(this)},"Download Subtitles"));this.Fh=a("li","unisubs-createAccount",a("a",{href:"#"},"Login or Create Account"));this.wi=a("li","unisubs-languagePreferences",a("a",{href:"#"},"Language Preferences"));
this.Tg=a("li",null,a("a",{href:"#"},"USERNAME"));this.Fi=a("li",null,a("a",{href:"#"},"Logout"));this.Gk=a("li",null,a("a",{href:$i(this.r)},"Get Embed Code"));this.dc.appendChild(this.Aj);this.si&&this.dc.appendChild(a("h4",null,"SUBS ARE MODERATED"));this.dc.appendChild(a("h4",null,"THIS VIDEO"));this.dc.appendChild(this.yc);this.dc.appendChild(a("h4",null,"MY SETTINGS"));this.dc.appendChild(this.ad);Zm(this);cn(this);this.a().appendChild(b);this.a().appendChild(this.dc)};
function Zm(a){var b=w(a.g().e,a.g());a.g().Xe(a.hg);vd(a.ph,a.mm==0?"Add New Subtitles":"Add New Translation");vd(a.lm,"("+a.mm+" lines)");a.Of||O(a.hg,a.mf);a.Yd=[];for(var c=0;c<a.G.length;c++){var d=a.G[c],f=b("a",{href:"#"},b("span","unisubs-languageTitle",Di(d.p)),b("span","unisubs-languageStatus","("+(d.za?d.cb+"%":d.ie+" lines")+")")),g=b("li",null,f);a.Yd.push({link:f,zi:g,pf:d});O(a.hg,g)}}
function bn(a){var b=new V(Ei());gh(b,"/widget/download_"+(Hi?"null_":"")+"srt/");sh(b,"video_id",a.r);a.Ha&&a.Ha.zb&&sh(b,"lang_pk",a.Ha.zb);return b.toString()}function cn(a){w(a.g().e,a.g());a.g().Xe(a.yc);a.g().Xe(a.ad);a.yc.appendChild(a.oh);a.yc.appendChild(a.ag);a.yc.appendChild(a.Ng);a.yc.appendChild(a.Gk);a.yc.appendChild(a.sd);if(ti==null)a.ad.appendChild(a.Fh);else{vd(sd(a.Tg),ti);a.ad.appendChild(a.Tg);a.ad.appendChild(a.Fi)}a.ad.appendChild(a.wi)}
Ym.prototype.i=function(){Ym.c.i.call(this);var a=Am;this.q().d(this.Aj,"click",function(){window.open("http://www.universalsubtitles.org")}).d(this.oh,"click",w(this.ib,this,a.fd)).d(this.ag,"click",w(this.ib,this,a.hd)).d(this.Tl,"click",w(this.ib,this,a.he)).d(this.Ng,"click",w(this.ib,this,a.xf)).d(this.sd,"click",w(this.ib,this,a.bh)).d(this.Fh,"click",w(this.ib,this,a.Yg)).d(this.wi,"click",w(this.ib,this,a.gh)).d(this.mf,"click",w(this.ib,this,a.md)).d(this.Tg,"click",w(this.ib,this,a.kh)).d(this.Fi,
"click",w(this.ib,this,a.ce)).d(Ji,nc(Ii),this.ml).d(Fd(this.g()),"mousedown",this.Si,true);this.fl&&this.q().d(this.fl,"click",w(this.ib,this,a.he));E&&this.q().d(Fd(this.g()),"contextmenu",this.Si,true);$m(this)};function $m(a){a.gg.Xc();z(a.Yd,function(b){a.gg.d(b.link,"click",w(a.gl,a,b.pf))})}Ym.prototype.Si=function(a){this.gf&&!ud(this.a(),a.target)&&!ud(this.C.a(),a.target)&&this.De()};
Ym.prototype.ib=function(a,b){b.preventDefault();b=Am;if(a==b.Yg)Li();else if(a==b.ce)Yi();else if(a==b.kh)window.open(Ei()+"/profiles/mine");else if(a==b.gh)window.open(Ei()+"/profiles/mine");else if(a==b.xf)window.location.replace(sd(this.Ng).href);else if(a==b.bh)window.open(sd(this.sd).href);else if(a==b.fd||a==b.hd||a==b.he||a==b.md)this.dispatchEvent(a);this.De()};Ym.prototype.gl=function(a,b){b&&b.preventDefault();this.dispatchEvent(new dn(a));sd(this.sd).href=bn(this)};
function an(a){if(a.Ha){var b=Xa(a.Yd,function(c){return c.pf.Ta==a.Ha.zb});if(b)b.zi.className="unisubs-activeLanguage"}else a.mf.className="unisubs-activeLanguage"}function Lm(a){a.gf?a.De():a.Lg()}Ym.prototype.De=function(){Cj(this.a(),false);this.gf=false};
Ym.prototype.Lg=function(){var a=this.C.Rf(),b=this.a();Dj(b,false);Cj(b,true);var c,d=b.offsetParent;if(d){var f=d.tagName=="HTML"||d.tagName=="BODY";if(!f||he(d)!="static"){c=ne(d);f||(c=Xc(c,new Wc(d.scrollLeft,d.scrollTop)))}}d=ne(a);f=re(a);d=new Rd(d.x,d.y,f.width,f.height);a=Yc(a);var g=Yc(b);if(a.K!=g.K){f=a.K.body;g=g.K.parentWindow||g.K.defaultView;var h=new Wc(0,0),j=ld($c(f)),l=f;do{var n=j==g?ne(l):pe(l);h.x+=n.x;h.y+=n.y}while(j&&j!=g&&(l=j.frameElement)&&(j=j.parent));g=h;g=Xc(g,ne(f));
if(C&&!Gd(a))g=Xc(g,Hd(a));d.left+=g.x;d.top+=g.y}d=new Wc(d.left,d.top+d.height);if(c)d=Xc(d,c);c=d;c=c.Fa();d=re(b);a=d.Fa();ie(b,c);(d==a?true:!d||!a?false:d.width==a.width&&d.height==a.height)||qe(b,a);tj(b);Dj(b,true);this.gf=true};Ym.prototype.ml=function(){cn(this)};Ym.prototype.h=function(){Ym.c.h.call(this);this.gg.n()};function dn(a){this.type=Am.be;this.pf=a};function Sm(a,b,c){this.r=a;this.hj=b;this.Qe=c}Sm.prototype.mg=function(a,b){return a==this.r&&this.Qe.mg(b)};Sm.prototype.save=function(){var a=lf({version:1,videoID:this.r,sessionPK:this.hj,openDialogArgs:this.Qe.wj()});cj.setItem("_unisubs_editing",a)};function Hm(a){if(!a.gj){var b;b=(b=cj.getItem("_unisubs_work1"))?en(b):null;a.gj=b&&b.wf==a.hj?b:null}return a.gj}
function Gm(){var a=cj.getItem("_unisubs_editing");if(a){a=kf(a);return q(a.version)&&a.version==1?new Sm(a.videoID,a.sessionPK,new Nm(a.openDialogArgs.l,a.openDialogArgs.o,a.openDialogArgs.s,a.openDialogArgs.b)):null}else return null};function Im(a,b){S.call(this,"unisubs-modal-lang",true);Pe(this,null);this.Jc=true;this.Wl=a;this.Ec=b}x(Im,S);
Im.prototype.e=function(){Im.c.e.call(this);var a=w(this.g().e,this.g()),b=this.ma(),c=Di(this.Wl.Qe.p);this.Fc=a("a",{href:"#",className:"unisubs-green-button unisubs-big"},"Cancel");this.Wa=a("a",{href:"#",className:"unisubs-green-button unisubs-big"},"OK");var d=a("div");rj(d,"clear","both");d.innerHTML="&nbsp;";O(b,a("h3",null,"Resume editing?"),a("p",null,"You have saved "+c+" subtitles for this video. Would you like to resume editing those subtitles? Warning: clicking Cancel will erase your saved subs."),this.Fc,
this.Wa,d)};Im.prototype.i=function(){Im.c.i.call(this);this.q().d(this.Fc,"click",this.ik).d(this.Wa,"click",this.Fd)};Im.prototype.ik=function(a){a.preventDefault();if(!this.Pi){cj.removeItem("_unisubs_editing");this.t(false);this.Ec(false)}};Im.prototype.Fd=function(a){a.preventDefault();if(!this.Pi){this.Pi=true;vd(this.Wa,"Loading...");M(this.Wa,"unisubs-button-disabled");this.Ec(true)}};function Vm(a,b){this.wf=a;this.cc=b}Vm.prototype.Hg=function(){return lf({version:1,sessionPK:this.wf,title:this.cc.title,isComplete:this.cc.sk,forked:this.cc.Pf,captionSet:this.cc.Je()})};function en(a){a=kf(a);return q(a.version)&&a.version==1?new Vm(a.sessionPK,new hm(a.captionSet,a.isComplete,a.title,a.forked)):null};function Ul(a,b,c,d){y.call(this);this.S=a;this.v=b;this.C=c;this.Of=!!d}x(Ul,I);Ul.prototype.Ig=ba("Gf");
function Yl(a,b){fn(b);var c=b.video_id;c&&a.C.Gh(new V($i(c)),false);var d=new xm(b.drop_down_contents,b.my_languages,b.is_moderated);b=Xl(b.subtitles);d=new Ym(c,d,a.C);d.Of=a.Of;a.C.Ld(d.G.length>0,b);d.sc();Cj(d.a(),false);Cm(d,b);d.dispatchEvent(new dn(null));a.va=new ym(c,a.v.j,a.v,a.C,d,b);a.va.wb(a);var f=a.v;a.va.Ig(a.Gf||function(g){g=g?g.Pa.text:"";f.Ab||Xj(f);Lj(f.Ab,g)});a.wc=new Em(c,a.S,a.va,a.C,d)}
function fn(a){if(a.username)ti=a.username;yi=a.embed_version;Ai=a.writelock_expiration;zi=a.languages;Bi=a.metadata_languages;function b(c,d){return c[1]>d[1]?1:c[1]<d[1]?-1:0}hb(zi,b);hb(Bi,b)}Ul.prototype.ug=function(){this.wc.Ga.Lg()};function $(a){R.call(this);this.S=a.video_url;this.ke=a.alternate_video_urls;this.Ck=!!a.force_format;this.B=a.video_config;this.qj=a.streamer;this.om=!!a.subtitle_immediately;this.um=!!a.translate_immediately;if(a=a.base_state)this.uh=new vm(a);gn.push(this)}x($,R);$.prototype.e=function(){this.k=this.g().createElement("span");hn(this,this.a())};var gn=[];function jn(a){if(!a)return[];return Va(gn,function(b){return b.S==a})}$.prototype.W=function(a){$.c.W.call(this,a);hn(this,a)};
function kn(a,b){a.v=b.Pb();a.mh(a.v,0,true);ln(a)}function mn(a){if(a.ke&&a.ke.length>0){var b=a.S;if(a.B)b={url:a.S,config:a.B};return Ak(bb(b,a.ke))}else return Bk(a.S,a.B)}function nn(a){if(a.j instanceof Hk)return false;return a.Ck||q(a.ke)?true:!(a.j instanceof Ck)||Ej()}function on(a,b){a.Fj=a.g().e("div","unisubs-videoLoading","Loading...");b.appendChild(a.Fj)}
function hn(a,b){try{a.j=mn(a)}catch(c){b.innerHTML=c.message;return}nn(a)?kn(a,a.j):on(a,b);if(a.qj){a.Mg=new Gl;b=new R;a.La(b,true);b.La(a.Mg,true)}else{a.C=new am;b=new R;a.La(b,true);b.La(a.C,true);b.a().className="unisubs-videoTab-container";a.C.df()}b={video_url:a.S,is_remote:si!=null||Zi()};if(a.uh)b.base_state=a.uh.ih;Vi("show_widget",b,w(a.al,a),w(a.fm,a));b=oj.sa();var d=window.location.href;a=a.j.oa();qj(b);window._gaq.push([b.fe+"._trackEvent","Widget displayed",d,a,undefined])}
$.prototype.fm=function(){nn(this)||this.j instanceof Hk||kn(this,this.j);this.C&&this.C.Md()};$.prototype.al=function(a){if(a&&!a.error_msg)if(!nn(this)){qd(this.Fj);var b=Ak(a.video_urls);fa(b)==fa(this.j)&&this.B&&b.af(this.B);this.j=b;kn(this,this.j)}this.qj?pn(this,a):qn(this,a)};function qn(a,b){if(!b||b.error_msg)a.C.Md(b.error_msg);else{a.qd=new Ul(a.S,a.v,a.C);var c=a.qd;try{Yl(c,b)}catch(d){c.C.Md()}b=a.qd.wc;if(a.om)Nc(w(b.vg,b));else a.um&&Nc(w(subController_.Re,subController_))}}
function pn(a,b){var c=Xl(b.subtitles);Ll(a.Mg,c.Cc);Tl(a.v,a.Mg,b)}$.prototype.i=function(){$.c.i.call(this);ln(this)};function ln(a){if(a.U&&a.v)a.v.Kh?a.Ej():a.q().d(a.v,Wj,a.Ej)}m=$.prototype;m.Ej=function(){wj(this.a(),Math.round(this.v.Oa().width))};m.$l=function(a,b){var c=Am,d=this.qd.wc,f=this.qd.va;if(a==c.fd)d.Re();else if(a==c.hd)d.vg();else if(a==c.xf)alert("subtitle homepage");else if(a==c.md)f.of();else a==c.be&&Bm(f,b)};m.Rl=function(a){this.v.wa(a);this.v.Vc()};m.Vc=function(){this.v.Vc()};
m.pause=function(){this.v.pause()};m.ug=function(){this.qd.ug()};function rn(){p("unisubs.widget.fireKeySequence",ki,undefined);p("mirosubs.widget.fireKeySequence",ki,undefined)};function sn(a){for(var b=new ii,c=0;c<a.length;c++){var d=a[c];b.append(c+1).append("\n");tn(d.start_time,b);b.append(" --\> ");tn(d.end_time,b);b.append("\n");b.append(d.text).append("\n\n")}return b.toString()}function tn(a,b){if(a==-1||!q(a))b.append("99:59:59,000");else{var c=Math.floor(a);b.append(Na(Math.floor(c/3600),2)).append(":").append(Na(Math.floor(c/60)%60,2)).append(":").append(Na(c%60,2)).append(",").append(Na(Math.floor(a*1E3)%1E3,3))}};function un(a,b){Hi=!!b.null_widget;if(b.returnURL)ui=b.returnURL;b=new $(b);b.ca(a);return b}$.prototype.play=$.prototype.Vc;$.prototype.pause=$.prototype.pause;$.prototype.playAt=$.prototype.Rl;$.prototype.openMenu=$.prototype.ug;$.prototype.selectMenuItem=$.prototype.$l;rn();p("unisubs.widget.Widget.getWidgetByURL",function(a){return jn(a)[0]},undefined);p("unisubs.widget.Widget.getAllWidgets",function(){return gn.slice(0)},undefined);p("unisubs.player.MediaSource.videoSourceForURL",Bk,undefined);
p("unisubs.widget.SubtitleDialogOpener",Fm,undefined);p("unisubs.widget.WidgetController",Ul,undefined);p("unisubs.widget.WidgetController.makeGeneralSettings",fn,undefined);Fm.prototype.showStartDialog=Fm.prototype.ff;p("unisubs.widget.DropDown.Selection",Am,undefined);var vn=Am;vn.IMPROVE_SUBTITLES=vn.hd;vn.LANGUAGE_SELECTED=vn.be;vn.ADD_LANGUAGE=vn.fd;vn.SUBTITLES_OFF=vn.md;p("unisubs.widget.SameDomainEmbed.embed",un,undefined);p("unisubs.player.supportsVideo",Ej,undefined);
p("unisubs.player.supportsH264",Gj,undefined);p("unisubs.player.supportsOgg",Hj,undefined);p("unisubs.player.supportsWebM",Ij,undefined);p("mirosubs.widget.SameDomainEmbed.embed",un,undefined);p("mirosubs.video.supportsVideo",Ej,undefined);p("mirosubs.video.supportsH264",Gj,undefined);p("mirosubs.video.supportsOgg",Hj,undefined);p("mirosubs.video.supportsWebM",Ij,undefined);function wn(a){this.fn=a;this.Fn=a.save;this.An=a.permalink;this.wn=a.login;this.pn=a.embedCode}wn.prototype.Vb=aa();wn.prototype.n=aa();function xn(a){si=ri.Zg.lj;if(a.staticURL)ri.Zg.lj.staticURL=a.staticURL;var b=a.subtitles,c=a.closeListener,d=new Ck(a.videoURL,"Ogg"),f=new wn(a),g=new bm.Zd(d,f,new wm({},b),null,a.skipFinished);ti=a.username;g.t(true);Bc(g,Ne,c);return{close:function(){g.t(false)}}}
function yn(a,b,c){fn(c);if(b.returnURL)ui=b.returnURL;if(b.guidelines)vi=b.guidelines;if(b.team_url)wi=b.team_url;if(b.mode)xi=b.mode;Hi=!!b.nullWidget;c=Bk(b.effectiveVideoURL);c=new Fm(b.videoID,b.videoURL,c);a?c.ff():c.openDialog(new Nm(b.languageCode,b.originalLanguageCode,b.subLanguagePK,b.baseLanguagePK))}function zn(a,b,c){fn(c);c=Bk(b);(new Fm(a,b,c)).ff()}
function An(a){Vi("fetch_video_id_and_settings",{video_url:a},function(b){yn(true,{videoURL:a,effectiveVideoURL:a,videoID:b.video_id,originalLanguageSubtitled:b.is_original_language_subtitled,baseVersionNo:null},b.general_settings)})}function Bn(a){Wi(a)}function Cn(a,b){si=ri.Zg.lj;(new $(b)).ca(ad(a))}p("unisubs.api.openDialog",xn,undefined);p("unisubs.api.openUnisubsDialogWithSettings",yn,undefined);
p("unisubs.api.openUnisubsDialogForResume",function(a,b){fn(b);if(a.returnURL)ui=a.returnURL;b=Bk(a.effectiveVideoURL);a=new Fm(a.videoID,a.videoURL,b);b=Gm();Qm(a,Hm(b),b.Qe)},undefined);p("unisubs.api.openUnisubsDialog",An,undefined);p("unisubs.api.openUnisubsDialogOnsite",zn,undefined);p("unisubs.api.toSRT",sn,undefined);p("unisubs.api.loggedIn",Bn,undefined);p("unisubs.api.embed",Cn,undefined);p("mirosubs.api.embed",Cn,undefined);p("mirosubs.api.openDialog",xn,undefined);
p("mirosubs.api.openUnisubsDialogWithSettings",yn,undefined);p("mirosubs.api.openUnisubsDialog",An,undefined);p("mirosubs.api.openUnisubsDialogOnsite",zn,undefined);p("mirosubs.api.toSRT",sn,undefined);p("mirosubs.api.loggedIn",Bn,undefined);p("mirosubs.api.embed",Cn,undefined);rn();window.UnisubsApiLoaded=true;})();
/*unisubs.static_version="c4233aab"*/
