(function() {
function g(a){throw a;}
var i=true,j=null,l=false,m=this,aa=function(a,b,c){a=a.split(".");c=c||m;!(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]={})},ba=function(a,b){a=a.split(".");b=b||m;for(var c;c=a.shift();)if(b[c])b=b[c];else return j;return b},ca=function(){},da=function(a){a.getInstance=function(){return a.$g||(a.$g=new a)}},ea=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&
Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b},
o=function(a){return ea(a)=="array"},fa=function(a){var b=ea(a);return b=="array"||b=="object"&&typeof a.length=="number"},p=function(a){return typeof a=="string"},ga=function(a){return ea(a)=="function"},ha=function(a){a=ea(a);return a=="object"||a=="array"||a=="function"},ka=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(ia))return a[ia];a[ia]||(a[ia]=++ja);return a[ia]},ia="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36),ja=0,la=function(a){var b=ea(a);if(b=="object"||b==
"array"){if(a.clone)return a.clone.call(a);b=b=="array"?[]:{};for(var c in a)b[c]=la(a[c]);return b}return a},q=function(a,b){var c=b||m;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}},ma=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,
b);return a.apply(this,c)}},na=Date.now||function(){return+new Date},oa=function(a,b,c){aa(a,b,c)},r=function(a,b,c){a[b]=c},s=function(a,b){function c(){}c.prototype=b.prototype;a.N=b.prototype;a.prototype=new c;a.prototype.constructor=a};Function.prototype.bind=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return q.apply(j,b)}else return q(this,a)};Function.prototype.inherits=function(a){s(this,a)};var t=Array.prototype,pa=t.indexOf?function(a,b,c){return t.indexOf.call(a,b,c)}:function(a,b,c){c=c==j?0:c<0?Math.max(0,a.length+c):c;if(p(a)){if(!p(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},qa=t.forEach?function(a,b,c){t.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=p(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ra=function(a,b){return pa(a,b)>=0},sa=function(a,b){b=pa(a,b);var c;if(c=b>=0)t.splice.call(a,
b,1).length==1;return c},ta=function(a){if(o(a))return a.concat();else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}},ua=function(a){if(o(a))return a.concat();return ta(a)},wa=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];if(fa(c)){c=ua(c);a.push.apply(a,c)}else a.push(c)}},ya=function(a){return t.splice.apply(a,xa(arguments,1))},xa=function(a,b,c){return arguments.length<=2?t.slice.call(a,b):t.slice.call(a,b,c)};var v=function(a,b){this.width=a;this.height=b};v.prototype.clone=function(){return new v(this.width,this.height)};v.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};v.prototype.area=function(){return this.width*this.height};v.prototype.$c=function(){return this.width/this.height};v.prototype.db=function(){return!this.area()};v.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
v.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};v.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};v.prototype.scale=function(a){this.width*=a;this.height*=a;return this};v.prototype.ge=function(a){a=this.$c()>a.$c()?a.width/this.width:a.height/this.height;return this.scale(a)};var za=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Aa=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},Ba=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b},Ca=function(a){for(var b in a)return l;return i},Da=function(a,b){var c;if(c=b in a)delete a[b];return c},Ea=function(a,b,c){if(b in a)return a[b];return c},Fa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ga=function(a){for(var b,c,d=1;d<arguments.length;d++){c=
arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<Fa.length;e++){b=Fa[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}},Ha=function(){var a=arguments.length;if(a==1&&o(arguments[0]))return Ha.apply(j,arguments[0]);for(var b={},c=0;c<a;c++)b[arguments[c]]=i;return b};var Ia=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ja=/^[a-zA-Z0-9\-_.!~*'()]*$/,Ka=function(a){a=String(a);if(!Ja.test(a))return encodeURIComponent(a);return a},Qa=function(a,b){if(b)return a.replace(La,"&amp;").replace(Ma,"&lt;").replace(Na,"&gt;").replace(Oa,"&quot;");else{if(!Pa.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(La,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(Ma,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(Na,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(Oa,"&quot;");return a}},
La=/&/g,Ma=/</g,Na=/>/g,Oa=/\"/g,Pa=/[&<>\"]/,Sa=function(a,b){var c=0;a=Ia(String(a)).split(".");b=Ia(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",h=b[e]||"",k=new RegExp("(\\d*)(\\D*)","g"),n=new RegExp("(\\d*)(\\D*)","g");do{var u=k.exec(f)||["","",""],A=n.exec(h)||["","",""];if(u[0].length==0&&A[0].length==0)break;c=u[1].length==0?0:parseInt(u[1],10);var va=A[1].length==0?0:parseInt(A[1],10);c=Ra(c,va)||Ra(u[2].length==0,A[2].length==0)||Ra(u[2],
A[2])}while(c==0)}return c},Ra=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};na();var Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb=function(){return m.navigator?m.navigator.userAgent:j},cb=function(){return m.navigator},db=function(){Xa=Wa=Va=Ua=Ta=l;var a;if(a=bb()){var b=cb();Ta=a.indexOf("Opera")==0;Ua=!Ta&&a.indexOf("MSIE")!=-1;Wa=(Va=!Ta&&a.indexOf("WebKit")!=-1)&&a.indexOf("Mobile")!=-1;Xa=!Ta&&!Va&&b.product=="Gecko"}};db();
var eb=Ta,w=Ua,fb=Xa,gb=Va,hb=function(){var a=cb();return a&&a.platform||""},ib=hb(),jb=function(){Ya=ib.indexOf("Mac")!=-1;Za=ib.indexOf("Win")!=-1;$a=ib.indexOf("Linux")!=-1;ab=!!cb()&&(cb().appVersion||"").indexOf("X11")!=-1};jb();
var kb=function(){var a="",b;if(eb&&m.opera){a=m.opera.version;a=typeof a=="function"?a():a}else{if(fb)b=/rv\:([^\);]+)(\)|;)/;else if(w)b=/MSIE\s+([^\);]+)(\)|;)/;else if(gb)b=/WebKit\/(\S+)/;if(b)a=(a=b.exec(bb()))?a[1]:""}return a},lb=kb(),mb={},nb=function(a){return mb[a]||(mb[a]=Sa(lb,a)>=0)};var ob,pb=function(a){return(a=a.className)&&typeof a.split=="function"?a.split(" "):[]},rb=function(a){var b=pb(a),c=xa(arguments,1);c=qb(b,c);a.className=b.join(" ");return c},tb=function(a){var b=pb(a),c=xa(arguments,1);c=sb(b,c);a.className=b.join(" ");return c},qb=function(a,b){for(var c=0,d=0;d<b.length;d++)if(!ra(a,b[d])){a.push(b[d]);c++}return c==b.length},sb=function(a,b){for(var c=0,d=0;d<a.length;d++)if(ra(b,a[d])){ya(a,d--,1);c++}return c==b.length},ub=function(a,b,c){for(var d=pb(a),
e=l,f=0;f<d.length;f++)if(d[f]==b){ya(d,f--,1);e=i}if(e){d.push(c);a.className=d.join(" ")}return e};var wb=function(a){return a?new x(vb(a)):ob||(ob=new x)},xb=function(a,b,c,d){d=d||a;b=b&&b!="*"?b.toLowerCase():"";if(d.querySelectorAll&&(b||c)&&(!gb||a.compatMode=="CSS1Compat"||nb("528"))){c=b+(c?"."+c:"");return d.querySelectorAll(c)}if(c&&d.getElementsByClassName){a=d.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)if(b==h.nodeName.toLowerCase())d[e++]=h;d.length=e;return d}else return a}a=d.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++){b=h.className;if(typeof b.split==
"function"&&ra(b.split(" "),c))d[e++]=h}d.length=e;return d}else return a},zb=function(a,b){za(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 yb)a.setAttribute(yb[d],c);else a[d]=c})},yb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"},Bb=function(){return Ab(document,arguments)},Ab=
function(a,b){var c=b[0],d=b[1];if(w&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Qa(d.name),'"');if(d.type){c.push(' type="',Qa(d.type),'"');d=la(d);delete d.type}c.push(">");c=c.join("")}var e=a.createElement(c);if(d)if(p(d))e.className=d;else zb(e,d);if(b.length>2){d=function(h){if(h)e.appendChild(p(h)?a.createTextNode(h):h)};for(c=2;c<b.length;c++){var f=b[c];fa(f)&&!(ha(f)&&f.nodeType>0)?qa(Cb(f)?ta(f):f,d):d(f)}}return e},Db=Bb,Eb=function(a,b){a.appendChild(b)},Fb=function(a){for(var b;b=
a.firstChild;)a.removeChild(b)},Gb=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):j},Hb=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},Ib=function(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},vb=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},Jb=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&
a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{Fb(a);var c=vb(a);a.appendChild(c.createTextNode(b))}},Cb=function(a){if(a&&typeof a.length=="number")if(ha(a))return typeof a.item=="function"||typeof a.item=="string";else if(ga(a))return typeof a.item=="function";return l},x=function(a){this.Wa=a||m.document||document};x.prototype.zd=function(){return this.Wa};x.prototype.F=function(a){return p(a)?this.Wa.getElementById(a):a};
x.prototype.Cd=function(a,b,c){return xb(this.Wa,a,b,c)};x.prototype.V=function(){return Ab(this.Wa,arguments)};x.prototype.createElement=function(a){return this.Wa.createElement(a)};x.prototype.createTextNode=function(a){return this.Wa.createTextNode(a)};x.prototype.wd=function(){return this.yf()?"CSS1Compat":"BackCompat"};x.prototype.yf=function(){return this.Wa.compatMode=="CSS1Compat"};x.prototype.appendChild=Eb;x.prototype.$b=Fb;x.prototype.removeNode=Gb;x.prototype.replaceNode=Hb;
x.prototype.contains=Ib;var Kb=function(){};Kb.prototype.od=l;Kb.prototype.dispose=function(){if(!this.od){this.od=i;this.J()}};Kb.prototype.J=function(){};var y=function(a,b){this.type=a;this.currentTarget=this.target=b};s(y,Kb);y.prototype.J=function(){delete this.type;delete this.target;delete this.currentTarget};y.prototype.Fa=l;y.prototype.gb=i;y.prototype.stopPropagation=function(){this.Fa=i};y.prototype.preventDefault=function(){this.gb=l};var z=function(a,b){this.Hf=b;this.Za=[];this.Te(a)};s(z,Kb);z.prototype.jc=j;z.prototype.nd=j;z.prototype.Fb=function(a){this.jc=a};z.prototype.$a=function(){if(this.Za.length)return this.Za.pop();return this.jd()};z.prototype.fb=function(a){this.Za.length<this.Hf?this.Za.push(a):this.md(a)};z.prototype.Te=function(a){if(a>this.Hf)g(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.Za.push(this.jd())};
z.prototype.jd=function(){return this.jc?this.jc():{}};z.prototype.md=function(a){if(this.nd)this.nd(a);else if(ga(a.dispose))a.dispose();else for(var b in a)delete a[b]};z.prototype.J=function(){z.N.J.call(this);for(var a=this.Za;a.length;)this.md(a.pop());delete this.Za};var B=function(a,b){a&&this.init(a,b)};s(B,y);B.prototype.target=j;B.prototype.relatedTarget=j;B.prototype.offsetX=0;B.prototype.offsetY=0;B.prototype.clientX=0;B.prototype.clientY=0;B.prototype.screenX=0;B.prototype.screenY=0;B.prototype.button=0;B.prototype.keyCode=0;B.prototype.charCode=0;B.prototype.ctrlKey=l;B.prototype.altKey=l;B.prototype.shiftKey=l;B.prototype.metaKey=l;B.prototype.Ya=j;
B.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(fb)try{b=b.nodeName&&b}catch(d){b=j}}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.Ya=a;delete this.gb;delete this.Fa};B.prototype.stopPropagation=function(){this.Fa=i;if(this.Ya.stopPropagation)this.Ya.stopPropagation();else this.Ya.cancelBubble=i};var Lb=w&&!nb("8");
B.prototype.preventDefault=function(){this.gb=l;var a=this.Ya;if(a.preventDefault)a.preventDefault();else{a.returnValue=l;if(Lb)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};B.prototype.J=function(){B.N.J.call(this);this.relatedTarget=this.currentTarget=this.target=this.Ya=j};var Mb,Nb,Ob=function(){var a="ScriptEngine"in m;Nb=(Mb=a&&m.ScriptEngine()=="JScript")?m.ScriptEngineMajorVersion()+"."+m.ScriptEngineMinorVersion()+"."+m.ScriptEngineBuildVersion():"0"};Ob();var Pb=Mb,Qb=Nb;var Rb=function(){},Sb=0;Rb.prototype.key=0;Rb.prototype.removed=l;Rb.prototype.cd=l;Rb.prototype.init=function(a,b,c,d,e,f){if(ga(a))this.zf=i;else if(a&&a.ab&&ga(a.ab))this.zf=l;else g(Error("Invalid listener argument"));this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.cd=l;this.key=++Sb;this.removed=l};Rb.prototype.ab=function(a){if(this.zf)return this.listener.call(this.handler||this.src,a);return this.listener.ab.call(this.listener,a)};var Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc;
(function(){function a(){return{o:0,pa:0}}function b(){return[]}function c(){var Q=function(jd){return h.call(Q.src,Q.key,jd)};return Q}function d(){return new Rb}function e(){return new B}var f=Pb&&!(Sa(Qb,"5.7")>=0),h;Yb=function(Q){h=Q};if(f){Tb=function(){return k.$a()};Ub=function(Q){k.fb(Q)};Vb=function(){return n.$a()};Wb=function(Q){n.fb(Q)};Xb=function(){return u.$a()};Zb=function(){u.fb(c())};$b=function(){return A.$a()};ac=function(Q){A.fb(Q)};bc=function(){return va.$a()};cc=function(Q){va.fb(Q)};
var k=new z(0,600);k.Fb(a);var n=new z(0,600);n.Fb(b);var u=new z(0,600);u.Fb(c);var A=new z(0,600);A.Fb(d);var va=new z(0,600);va.Fb(e)}else{Tb=a;Ub=ca;Vb=b;Wb=ca;Xb=c;Zb=ca;$b=d;ac=ca;bc=e;cc=ca}})();var dc={},C={},D={},ec="on",fc={},gc=function(a,b,c,d,e){if(b)if(o(b)){for(var f=0;f<b.length;f++)gc(a,b[f],c,d,e);return j}else{d=!!d;var h=C;b in h||(h[b]=Tb());h=h[b];if(!(d in h)){h[d]=Tb();h.o++}h=h[d];var k=ka(a),n;h.pa++;if(h[k]){n=h[k];for(f=0;f<n.length;f++){h=n[f];if(h.listener==c&&h.handler==e){if(h.removed)break;return n[f].key}}}else{n=h[k]=Vb();h.o++}f=Xb();f.src=a;h=$b();h.init(c,f,a,b,d,e);c=h.key;f.key=c;n.push(h);dc[c]=h;D[k]||(D[k]=Vb());D[k].push(h);if(a.addEventListener){if(a==
m||!a.kd)a.addEventListener(b,f,d)}else a.attachEvent(hc(b),f);return c}else g(Error("Invalid event type"))},ic=function(a,b,c,d,e){if(o(b)){for(var f=0;f<b.length;f++)ic(a,b[f],c,d,e);return j}d=!!d;a=jc(a,b,d);if(!a)return l;for(f=0;f<a.length;f++)if(a[f].listener==c&&a[f].capture==d&&a[f].handler==e)return kc(a[f].key);return l},kc=function(a){if(!dc[a])return l;var b=dc[a];if(b.removed)return l;var c=b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==m||!c.kd)c.removeEventListener(d,
e,f)}else c.detachEvent&&c.detachEvent(hc(d),e);c=ka(c);e=C[d][f][c];if(D[c]){var h=D[c];sa(h,b);h.length==0&&delete D[c]}b.removed=i;e.Kf=i;lc(d,f,c,e);delete dc[a];return i},lc=function(a,b,c,d){if(!d.Ac)if(d.Kf){for(var e=0,f=0;e<d.length;e++)if(d[e].removed){var h=d[e].proxy;h.src=j;Zb(h);ac(d[e])}else{if(e!=f)d[f]=d[e];f++}d.length=f;d.Kf=l;if(f==0){Wb(d);delete C[a][b][c];C[a][b].o--;if(C[a][b].o==0){Ub(C[a][b]);delete C[a][b];C[a].o--}if(C[a].o==0){Ub(C[a]);delete C[a]}}}},mc=function(a,b,
c){var d=0,e=a==j,f=b==j,h=c==j;c=!!c;if(e)za(D,function(n){for(var u=n.length-1;u>=0;u--){var A=n[u];if((f||b==A.type)&&(h||c==A.capture)){kc(A.key);d++}}});else{a=ka(a);if(D[a]){a=D[a];for(e=a.length-1;e>=0;e--){var k=a[e];if((f||b==k.type)&&(h||c==k.capture)){kc(k.key);d++}}}}return d},jc=function(a,b,c){var d=C;if(b in d){d=d[b];if(c in d){d=d[c];a=ka(a);if(d[a])return d[a]}}return j},nc=function(a,b,c,d,e){d=!!d;if(a=jc(a,b,d))for(b=0;b<a.length;b++)if(a[b].listener==c&&a[b].capture==d&&a[b].handler==
e)return a[b];return j},hc=function(a){if(a in fc)return fc[a];return fc[a]=ec+a},pc=function(a,b,c,d,e){var f=1;b=ka(b);if(a[b]){a.pa--;a=a[b];if(a.Ac)a.Ac++;else a.Ac=1;try{for(var h=a.length,k=0;k<h;k++){var n=a[k];if(n&&!n.removed)f&=oc(n,e)!==l}}finally{a.Ac--;lc(c,d,b,a)}}return Boolean(f)},oc=function(a,b){b=a.ab(b);a.cd&&kc(a.key);return b},qc=function(a,b){if(p(b))b=new y(b,a);else if(b instanceof y)b.target=b.target||a;else{var c=b;b=new y(b.type,a);Ga(b,c)}c=1;var d,e=b.type,f=C;if(!(e in
f))return i;f=f[e];e=i in f;var h;if(e){d=[];for(h=a;h;h=h.Ed())d.push(h);h=f[i];h.pa=h.o;for(var k=d.length-1;!b.Fa&&k>=0&&h.pa;k--){b.currentTarget=d[k];c&=pc(h,d[k],b.type,i,b)&&b.gb!=l}}if(h=l in f){h=f[l];h.pa=h.o;if(e)for(k=0;!b.Fa&&k<d.length&&h.pa;k++){b.currentTarget=d[k];c&=pc(h,d[k],b.type,l,b)&&b.gb!=l}else for(a=a;!b.Fa&&a&&h.pa;a=a.Ed()){b.currentTarget=a;c&=pc(h,a,b.type,l,b)&&b.gb!=l}}return Boolean(c)},sc=function(a,b){if(!dc[a])return i;a=dc[a];var c=a.type,d=C;if(!(c in d))return i;
d=d[c];var e,f;if(w){e=b||ba("window.event");b=i in d;var h=l in d;if(b){if(e.keyCode<0||e.returnValue!=undefined)return i;rc(e)}var k=bc();k.init(e,this);e=i;try{if(b){for(var n=Vb(),u=k.currentTarget;u;u=u.parentNode)n.push(u);f=d[i];f.pa=f.o;for(var A=n.length-1;!k.Fa&&A>=0&&f.pa;A--){k.currentTarget=n[A];e&=pc(f,n[A],c,i,k)}if(h){f=d[l];f.pa=f.o;for(A=0;!k.Fa&&A<n.length&&f.pa;A++){k.currentTarget=n[A];e&=pc(f,n[A],c,l,k)}}}else e=oc(a,k)}finally{if(n){n.length=0;Wb(n)}k.dispose();cc(k)}return e}f=
new B(b,this);try{e=oc(a,f)}finally{f.dispose()}return e};Yb(sc);var rc=function(a){var b=l;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=i}if(b||a.returnValue==undefined)a.returnValue=i};var E=function(a){this.pf=a};s(E,Kb);var tc=new z(0,100);E.prototype.listen=function(a,b,c,d,e){if(o(b))for(var f=0;f<b.length;f++)this.listen(a,b[f],c,d,e);else{a=gc(a,b,c||this,d||l,e||this.pf||this);this.rg(a)}return this};E.prototype.rg=function(a){if(this.B)this.B[a]=i;else if(this.Oa){this.B=tc.$a();this.B[this.Oa]=i;this.Oa=j;this.B[a]=i}else this.Oa=a};
E.prototype.unlisten=function(a,b,c,d,e){if(this.Oa||this.B)if(o(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else if(a=nc(a,b,c||this,d||l,e||this.pf||this)){a=a.key;kc(a);if(this.B)Da(this.B,a);else if(this.Oa==a)this.Oa=j}return this};E.prototype.Db=function(){if(this.B){for(var a in this.B){kc(a);delete this.B[a]}tc.fb(this.B);this.B=j}else this.Oa&&kc(this.Oa)};E.prototype.J=function(){E.N.J.call(this);this.Db()};E.prototype.ab=function(){g(Error("EventHandler.handleEvent not implemented"))};var F=function(){};s(F,Kb);F.prototype.kd=i;F.prototype.Gc=j;F.prototype.Ed=function(){return this.Gc};F.prototype.cc=function(a){this.Gc=a};F.prototype.addEventListener=function(a,b,c,d){gc(this,a,b,c,d)};F.prototype.removeEventListener=function(a,b,c,d){ic(this,a,b,c,d)};F.prototype.dispatchEvent=function(a){return qc(this,a)};F.prototype.J=function(){F.N.J.call(this);mc(this);this.Gc=j};var G=function(a,b,c){p(b)?uc(a,c,b):za(b,ma(uc,a))},uc=function(a,b,c){a.style[vc(c)]=b},wc=function(a,b){var c=vb(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(a=c.defaultView.getComputedStyle(a,""))return a[b];return j},xc=function(a,b,c){if(b instanceof v){c=b.height;b=b.width}else{if(c==undefined)g(Error("missing height argument"));c=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof c=="number"?Math.round(c)+"px":c},yc=function(a){var b=eb&&!nb("10");if((wc(a,
"display")||(a.currentStyle?a.currentStyle.display:j)||a.style.display)!="none")return b?new v(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new v(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=f;c.visibility=e;return new v(b,a)},zc={},vc=function(a){return zc[a]||
(zc[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))},Ac=function(a,b){a=a.style;if("opacity"in a)a.opacity=b;else if("MozOpacity"in a)a.MozOpacity=b;else if("filter"in a)a.filter=b===""?"":"alpha(opacity="+b*100+")"},H=function(a,b){a.style.display=b?"":"none"},Cc=function(a,b){b=wb(b);var c=j;if(w){c=b.zd().createStyleSheet();Bc(c,a)}else{var d=b.Cd("head")[0];if(!d){c=b.Cd("body")[0];d=b.V("head");c.parentNode.insertBefore(d,c)}c=b.V("style");Bc(c,a);b.appendChild(d,c)}return c},
Bc=function(a,b){if(w)a.cssText=b;else{var c=gb?"innerText":"innerHTML";a[c]=b}};var Dc=function(){};da(Dc);Dc.prototype.Lf=0;Dc.prototype.gf=function(){return":"+(this.Lf++).toString(36)};Dc.getInstance();var I=function(a){this.A=a||wb();this.wg=Ec};s(I,F);I.prototype.sf=Dc.getInstance();var Ec=j;I.prototype.bb=j;I.prototype.A=j;I.prototype.vb=l;I.prototype.K=j;I.prototype.wg=j;I.prototype.Jf=j;I.prototype.wa=j;I.prototype.za=j;I.prototype.Mb=j;I.prototype.Tg=l;I.prototype.Dd=function(){return this.bb||(this.bb=this.sf.gf())};I.prototype.F=function(){return this.K};
I.prototype.Gg=function(a){if(this==a)g(Error("Unable to set parent component"));if(a&&this.wa&&this.bb&&this.wa.vd(this.bb)&&this.wa!=a)g(Error("Unable to set parent component"));this.wa=a;I.N.cc.call(this,a)};I.prototype.cc=function(a){if(this.wa&&this.wa!=a)g(Error("Method not supported"));I.N.cc.call(this,a)};I.prototype.xc=function(){return this.vb};I.prototype.V=function(){this.K=this.A.createElement("div")};I.prototype.render=function(a){this.ug(a)};
I.prototype.ug=function(a,b){if(this.vb)g(Error("Component already rendered"));this.K||this.V();a?a.insertBefore(this.K,b||j):this.A.zd().body.appendChild(this.K);if(!this.wa||this.wa.xc())this.R()};I.prototype.Y=function(a){this.K=a};I.prototype.R=function(){this.vb=i;this.mc(function(a){!a.xc()&&a.F()&&a.R()})};I.prototype.Z=function(){this.mc(function(a){a.xc()&&a.Z()});this.uc&&this.uc.Db();this.vb=l};
I.prototype.J=function(){I.N.J.call(this);this.vb&&this.Z();if(this.uc){this.uc.dispose();delete this.uc}this.mc(function(a){a.dispose()});!this.Tg&&this.K&&Gb(this.K);this.wa=this.Jf=this.K=this.Mb=this.za=j};I.prototype.f=function(a){return this.Dd()+"."+a};I.prototype.qf=function(){return!!this.za&&this.za.length!=0};I.prototype.vd=function(a){return this.Mb&&a?Ea(this.Mb,a)||j:j};I.prototype.df=function(a){return this.za?this.za[a]||j:j};I.prototype.mc=function(a,b){this.za&&qa(this.za,a,b)};
I.prototype.removeChild=function(a,b){if(a){var c=p(a)?a:a.Dd();a=this.vd(c);if(c&&a){Da(this.Mb,c);sa(this.za,a);if(b){a.Z();a.K&&Gb(a.K)}a.Gg(j)}}if(!a)g(Error("Child is not in parent component"));return a};I.prototype.tg=function(a,b){return this.removeChild(this.df(a),b)};I.prototype.$b=function(a){for(;this.qf();)this.tg(0,a)};var Fc="StopIteration"in m?m.StopIteration:Error("StopIteration"),Gc=function(){};Gc.prototype.next=function(){g(Fc)};Gc.prototype.__iterator__=function(){return this};var Hc=function(a){if(typeof a.ia=="function")return a.ia();if(p(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Aa(a)},Ic=function(a){if(typeof a.La=="function")return a.La();if(typeof a.ia!="function"){if(fa(a)||p(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Ba(a)}},Jc=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(fa(a)||p(a))qa(a,b,c);else for(var d=Ic(a),e=Hc(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],
d&&d[h],a)};var J=function(a){this.na={};this.B=[];var b=arguments.length;if(b>1){if(b%2)g(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.Ae(a)};J.prototype.o=0;J.prototype.Jb=0;J.prototype.qc=function(){return this.o};J.prototype.ia=function(){this.ob();for(var a=[],b=0;b<this.B.length;b++){var c=this.B[b];a.push(this.na[c])}return a};J.prototype.La=function(){this.ob();return this.B.concat()};J.prototype.aa=function(a){return Kc(this.na,a)};
J.prototype.equals=function(a,b){if(this===a)return i;if(this.o!=a.qc())return l;b=b||Lc;this.ob();for(var c,d=0;c=this.B[d];d++)if(!b(this.get(c),a.get(c)))return l;return i};var Lc=function(a,b){return a===b};J.prototype.db=function(){return this.o==0};J.prototype.clear=function(){this.na={};this.Jb=this.o=this.B.length=0};J.prototype.remove=function(a){if(Kc(this.na,a)){delete this.na[a];this.o--;this.Jb++;this.B.length>2*this.o&&this.ob();return i}return l};
J.prototype.ob=function(){if(this.o!=this.B.length){for(var a=0,b=0;a<this.B.length;){var c=this.B[a];if(Kc(this.na,c))this.B[b++]=c;a++}this.B.length=b}if(this.o!=this.B.length){var d={};for(b=a=0;a<this.B.length;){c=this.B[a];if(!Kc(d,c)){this.B[b++]=c;d[c]=1}a++}this.B.length=b}};J.prototype.get=function(a,b){if(Kc(this.na,a))return this.na[a];return b};J.prototype.set=function(a,b){if(!Kc(this.na,a)){this.o++;this.B.push(a);this.Jb++}this.na[a]=b};
J.prototype.Ae=function(a){var b;if(a instanceof J){b=a.La();a=a.ia()}else{b=Ba(a);a=Aa(a)}for(var c=0;c<b.length;c++)this.set(b[c],a[c])};J.prototype.clone=function(){return new J(this)};J.prototype.__iterator__=function(a){this.ob();var b=0,c=this.B,d=this.na,e=this.Jb,f=this,h=new Gc;h.next=function(){for(;;){if(e!=f.Jb)g(Error("The map has changed since the iterator was created"));if(b>=c.length)g(Fc);var k=c[b++];return a?k:d[k]}};return h};
var Kc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Mc=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Nc=function(a){return a.match(Mc)};var K=function(a,b){var c;if(a instanceof K){this.Qa(b==j?a.ff():b);this.Rc(a.kf());this.Tc(a.lf());this.Mc(a.Bd());this.Pc(a.Fd());this.Oc(a.hf());this.Qc(a.sc().clone());this.Nc(a.ef())}else if(a&&(c=Nc(String(a)))){this.Qa(!!b);this.Rc(c[1]||"",i);this.Tc(c[2]||"",i);this.Mc(c[3]||"",i);this.Pc(c[4]);this.Oc(c[5]||"",i);this.Kg(c[6]||"",i);this.Nc(c[7]||"",i)}else{this.Qa(!!b);this.fa=new L(j,this,this.ka)}};K.prototype.Ga="";K.prototype.Ib="";K.prototype.rb="";K.prototype.Cb=j;
K.prototype.Bb="";K.prototype.tb="";K.prototype.Af=l;K.prototype.ka=l;K.prototype.toString=function(){if(this.$)return this.$;var a=[];this.Ga&&a.push(Oc(this.Ga,Pc),":");if(this.rb){a.push("//");this.Ib&&a.push(Oc(this.Ib,Pc),"@");a.push(Qc(this.rb));this.Cb!=j&&a.push(":",String(this.Fd()))}this.Bb&&a.push(Oc(this.Bb,Rc));var b=String(this.fa);b&&a.push("?",b);this.tb&&a.push("#",Oc(this.tb,Sc));return this.$=a.join("")};
K.prototype.clone=function(){return Tc(this.Ga,this.Ib,this.rb,this.Cb,this.Bb,this.fa.clone(),this.tb,this.ka)};K.prototype.kf=function(){return this.Ga};K.prototype.Rc=function(a,b){this.ha();delete this.$;if(this.Ga=b?a?decodeURIComponent(a):"":a)this.Ga=this.Ga.replace(/:$/,"");return this};K.prototype.lf=function(){return this.Ib};K.prototype.Tc=function(a,b){this.ha();delete this.$;this.Ib=b?a?decodeURIComponent(a):"":a;return this};K.prototype.Bd=function(){return this.rb};
K.prototype.Mc=function(a,b){this.ha();delete this.$;this.rb=b?a?decodeURIComponent(a):"":a;return this};K.prototype.Fd=function(){return this.Cb};K.prototype.Pc=function(a){this.ha();delete this.$;if(a){a=Number(a);if(isNaN(a)||a<0)g(Error("Bad port number "+a));this.Cb=a}else this.Cb=j;return this};K.prototype.hf=function(){return this.Bb};K.prototype.Oc=function(a,b){this.ha();delete this.$;this.Bb=b?a?decodeURIComponent(a):"":a;return this};
K.prototype.Qc=function(a,b){this.ha();delete this.$;if(a instanceof L){this.fa=a;this.fa.M=this;this.fa.Qa(this.ka)}else{b||(a=Oc(a,Uc));this.fa=new L(a,this,this.ka)}return this};K.prototype.Kg=function(a,b){return this.Qc(a,b)};K.prototype.sc=function(){return this.fa};K.prototype.l=function(a,b){this.ha();delete this.$;this.fa.set(a,b);return this};K.prototype.pe=function(a,b){this.ha();delete this.$;o(b)||(b=[String(b)]);this.fa.Ng(a,b);return this};K.prototype.ef=function(){return this.tb};
K.prototype.Nc=function(a,b){this.ha();delete this.$;this.tb=b?a?decodeURIComponent(a):"":a;return this};K.prototype.removeParameter=function(a){this.ha();this.fa.remove(a);return this};K.prototype.ha=function(){if(this.Af)g(Error("Tried to modify a read-only Uri"))};K.prototype.Qa=function(a){this.ka=a;this.fa&&this.fa.Qa(a)};K.prototype.ff=function(){return this.ka};
var Tc=function(a,b,c,d,e,f,h,k){k=new K(j,k);a&&k.Rc(a);b&&k.Tc(b);c&&k.Mc(c);d&&k.Pc(d);e&&k.Oc(e);f&&k.Qc(f);h&&k.Nc(h);return k},Qc=function(a){if(p(a))return encodeURIComponent(a);return j},Vc=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Oc=function(a,b){var c=j;if(p(a)){c=a;Vc.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,Wc)}return c},Wc=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Pc=/[#\/\?@]/g,Rc=/[\#\?]/g,Uc=/[\#\?@]/g,Sc=/#/g,L=function(a,b,c){this.Aa=
a||j;this.M=b||j;this.ka=!!c};L.prototype.ca=function(){if(!this.C){this.C=new J;if(this.Aa)for(var a=this.Aa.split("&"),b=0;b<a.length;b++){var c=a[b].indexOf("="),d=j,e=j;if(c>=0){d=a[b].substring(0,c);e=a[b].substring(c+1)}else d=a[b];d=decodeURIComponent(d.replace(/\+/g," "));d=this.Ca(d);this.add(d,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};L.prototype.C=j;L.prototype.o=j;L.prototype.qc=function(){this.ca();return this.o};
L.prototype.add=function(a,b){this.ca();this.cb();a=this.Ca(a);if(this.aa(a)){var c=this.C.get(a);o(c)?c.push(b):this.C.set(a,[c,b])}else this.C.set(a,b);this.o++;return this};L.prototype.remove=function(a){this.ca();a=this.Ca(a);if(this.C.aa(a)){this.cb();var b=this.C.get(a);if(o(b))this.o-=b.length;else this.o--;return this.C.remove(a)}return l};L.prototype.clear=function(){this.cb();this.C&&this.C.clear();this.o=0};L.prototype.db=function(){this.ca();return this.o==0};
L.prototype.aa=function(a){this.ca();a=this.Ca(a);return this.C.aa(a)};L.prototype.La=function(){this.ca();for(var a=this.C.ia(),b=this.C.La(),c=[],d=0;d<b.length;d++){var e=a[d];if(o(e))for(var f=0;f<e.length;f++)c.push(b[d]);else c.push(b[d])}return c};L.prototype.ia=function(a){this.ca();if(a){a=this.Ca(a);if(this.aa(a)){var b=this.C.get(a);if(o(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.C.ia();a=[];for(var c=0;c<b.length;c++){var d=b[c];o(d)?wa(a,d):a.push(d)}}return a};
L.prototype.set=function(a,b){this.ca();this.cb();a=this.Ca(a);if(this.aa(a)){var c=this.C.get(a);if(o(c))this.o-=c.length;else this.o--}this.C.set(a,b);this.o++;return this};L.prototype.get=function(a,b){this.ca();a=this.Ca(a);if(this.aa(a)){a=this.C.get(a);return o(a)?a[0]:a}else return b};L.prototype.Ng=function(a,b){this.ca();this.cb();a=this.Ca(a);if(this.aa(a)){var c=this.C.get(a);if(o(c))this.o-=c.length;else this.o--}if(b.length>0){this.C.set(a,b);this.o+=b.length}};
L.prototype.toString=function(){if(this.Aa)return this.Aa;if(!this.C)return"";for(var a=[],b=0,c=this.C.La(),d=0;d<c.length;d++){var e=c[d],f=Ka(e);e=this.C.get(e);if(o(e))for(var h=0;h<e.length;h++){b>0&&a.push("&");a.push(f,"=",Ka(e[h]));b++}else{b>0&&a.push("&");a.push(f,"=",Ka(e));b++}}return this.Aa=a.join("")};L.prototype.cb=function(){delete this.ld;delete this.Aa;this.M&&delete this.M.$};
L.prototype.clone=function(){var a=new L;if(this.ld)a.ld=this.ld;if(this.Aa)a.Aa=this.Aa;if(this.C)a.C=this.C.clone();return a};L.prototype.Ca=function(a){a=String(a);if(this.ka)a=a.toLowerCase();return a};L.prototype.Qa=function(a){var b=a&&!this.ka;if(b){this.ca();this.cb();Jc(this.C,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},this)}this.ka=a};L.prototype.extend=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];Jc(b,function(c,d){this.add(d,c)},this)}};var Xc=function(a,b){this.M=new K(a);this.Wg=b?b:"callback";this.Yc=5E3},Yc=0;Xc.prototype.dc=function(a){this.Yc=a};
Xc.prototype.send=function(a,b,c,d){if(!document.documentElement.firstChild){c&&c(a);return j}d=d||"_"+(Yc++).toString(36)+na().toString(36);m._callbacks_||(m._callbacks_={});var e=document.createElement("script"),f=j;if(this.Yc>0){f=Zc(d,e,a,c);f=m.setTimeout(f,this.Yc)}c=this.M.clone();$c(a,c);if(b){a=ad(d,e,b,f);m._callbacks_[d]=a;c.pe(this.Wg,"_callbacks_."+d)}zb(e,{type:"text/javascript",id:d,charset:"UTF-8",src:c.toString()});Eb(document.getElementsByTagName("head")[0],e);return{bb:d,Yc:f}};
var Zc=function(a,b,c,d){return function(){bd(a,b,l);d&&d(c)}},ad=function(a,b,c,d){return function(){m.clearTimeout(d);bd(a,b,i);c.apply(undefined,arguments)}},bd=function(a,b,c){m.setTimeout(function(){Gb(b)},0);if(m._callbacks_[a])if(c)delete m._callbacks_[a];else m._callbacks_[a]=ca},$c=function(a,b){for(var c in a)if(!a.hasOwnProperty||a.hasOwnProperty(c))b.pe(c,a[c]);return b};var cd=m.window;var M=function(a,b,c,d){if(!o(a)||!o(b))g(Error("Start and end parameters must be arrays"));if(a.length!=b.length)g(Error("Start and end points must be the same length"));this.startPoint=a;this.endPoint=b;this.duration=c;this.ye=d;this.coords=[]};s(M,F);
var dd={},ed=j,fd=function(){cd.clearTimeout(ed);var a=na();for(var b in dd)dd[b].cycle(a);ed=Ca(dd)?j:cd.setTimeout(fd,20)},gd=function(a){var b=ka(a);b in dd||(dd[b]=a);ed||(ed=cd.setTimeout(fd,20))},hd=function(a){a=ka(a);delete dd[a];if(ed&&Ca(dd)){cd.clearTimeout(ed);ed=j}};M.prototype.U=0;M.prototype.ud=0;M.prototype.progress=0;M.prototype.Ra=j;M.prototype.pd=j;M.prototype.yc=j;
M.prototype.play=function(a){if(a||this.U==0){this.progress=0;this.coords=this.startPoint}else if(this.U==1)return l;hd(this);this.Ra=na();if(this.U==-1)this.Ra-=this.duration*this.progress;this.pd=this.Ra+this.duration;this.yc=this.Ra;this.progress||this.Zb();this.Wf();this.U==-1&&this.Zf();this.U=1;gd(this);this.cycle(this.Ra);return i};M.prototype.stop=function(a){hd(this);this.U=0;if(a)this.progress=1;this.Zc(this.progress);this.bg();this.zb()};
M.prototype.pause=function(){if(this.U==1){hd(this);this.U=-1;this.Vf()}};M.prototype.J=function(){this.U!=0&&this.stop(l);this.Of();M.N.J.call(this)};M.prototype.cycle=function(a){this.progress=(a-this.Ra)/(this.pd-this.Ra);if(this.progress>=1)this.progress=1;this.ud=1E3/(a-this.yc);this.yc=a;ga(this.ye)?this.Zc(this.ye(this.progress)):this.Zc(this.progress);if(this.progress==1){this.U=0;hd(this);this.Pf();this.zb()}else this.U==1&&this.Yb()};
M.prototype.Zc=function(a){this.coords=new Array(this.startPoint.length);for(var b=0;b<this.startPoint.length;b++)this.coords[b]=(this.endPoint[b]-this.startPoint[b])*a+this.startPoint[b]};M.prototype.Yb=function(){this.sa("animate")};M.prototype.Zb=function(){this.sa("begin")};M.prototype.Of=function(){this.sa("destroy")};M.prototype.zb=function(){this.sa("end")};M.prototype.Pf=function(){this.sa("finish")};M.prototype.Vf=function(){this.sa("pause")};M.prototype.Wf=function(){this.sa("play")};
M.prototype.Zf=function(){this.sa("resume")};M.prototype.bg=function(){this.sa("stop")};M.prototype.sa=function(a){this.dispatchEvent(new id(a,this))};var id=function(a,b){y.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.z=b.coords[2];this.duration=b.duration;this.progress=b.progress;this.fps=b.ud;this.state=b.U;this.anim=b};s(id,y);var N=function(a,b,c,d,e){M.call(this,b,c,d,e);this.element=a};s(N,M);N.prototype.Ua=ca;N.prototype.Yb=function(){this.Ua();N.N.Yb.call(this)};N.prototype.zb=function(){this.Ua();N.N.zb.call(this)};N.prototype.Zb=function(){this.Ua();N.N.Zb.call(this)};var kd=function(a,b,c){if(b.length!=2||c.length!=2)g(Error("Start and end points must be 2D"));N.apply(this,arguments)};s(kd,N);
kd.prototype.Ua=function(){this.element.style.left=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};var O=function(a,b,c,d,e){if(typeof b=="number")b=[b];if(typeof c=="number")c=[c];N.call(this,a,b,c,d,e);if(b.length!=1||c.length!=1)g(Error("Start and end points must be 1D"))};s(O,N);O.prototype.Ua=function(){Ac(this.element,this.coords[0])};O.prototype.show=function(){this.element.style.display=""};O.prototype.hide=function(){this.element.style.display="none"};var ld=function(a){this.ra=Pb?[]:"";a!=j&&this.append.apply(this,arguments)};ld.prototype.set=function(a){this.clear();this.append(a)};if(Pb){ld.prototype.hc=0;ld.prototype.append=function(a,b){if(b==j)this.ra[this.hc++]=a;else{this.ra.push.apply(this.ra,arguments);this.hc=this.ra.length}return this}}else ld.prototype.append=function(a,b){this.ra+=a;if(b!=j)for(var c=1;c<arguments.length;c++)this.ra+=arguments[c];return this};
ld.prototype.clear=function(){if(Pb)this.hc=this.ra.length=0;else this.ra=""};ld.prototype.toString=function(){if(Pb){var a=this.ra.join("");this.clear();a&&this.append(a);return a}else return this.ra};var P=ld;

var pd=function(a,b){var c=b||new P;c.append('<div id="',a.rootId,'" style="overflow: hidden; width: 100%; height: 100%; position: relative">');a.pauseImage&&md(a.pauseImage,c);if(a.controlPanel)nd(a.controlPanel,c);else a.customControlPanel&&od(a.customControlPanel,c);c.append("</div>");if(!b)return c.toString()},md=function(a,b){var c=b||new P;c.append('<div id="',a.id,'" style="position: absolute; visibility: hidden; z-index: 222">&nbsp;</div>');if(!b)return c.toString()},nd=function(a,b){var c=
b||new P;c.append('<div style="background-color: #000000; height: ',a.height,"; width: 100%; bottom: 0; left: 0; position: absolute; z-index: 222; direction: ltr; padding: ",a.paddingTop," 0 ",a.paddingBottom,' 0; text-align: center;" id="',a.id,'"><img id="',a.prevId,'" src="',a.prevSrc,'" style="cursor: ',a.cursorStyle,'"/><img id="',a.pauseId,'" src="',a.pauseSrc,'" style="cursor: ',a.cursorStyle,'; margin: 0 5px"/><img id="',a.nextId,'" src="',a.nextSrc,'" style="cursor: ',a.cursorStyle,'"/>',
a.cursor?'<div id="'+a.cursor.id+'" style="height: 1.3em; font-size: 11px; color: #bbbbbb"/>':"","</div>");if(!b)return c.toString()},od=function(a,b){var c=b||new P;c.append('<div class="ss-control" id="',a.id,'"><div class="ss-control-bg"></div><table class="ss-control-table"><tr><td class="ss-control-prev-cell"><div id="',a.prevId,'" class="ss-control-prev"></div></td><td class="ss-control-pause-cell"><div id="',a.pauseId,'" class="ss-control-pause"></div></td><td class="ss-control-next-cell"><div id="',
a.nextId,'" class="ss-control-next"></div></td></tr></table></div>');if(!b)return c.toString()};function R(a,b,c,d){I.call(this,d);this.g=new E(this);this.qb=this.Rb=j;if(typeof a=="string")this.Rb=a;else if(typeof a=="object"&&typeof a.length=="number")this.qb=a;else g("invalid argument: photoFeed");if(typeof b=="string")b=this.A.F(b);this.P=b;this.oa(c);if(this.Rb){this.sd=new google.feeds.Feed(this.Rb);this.sd.setResultFormat(google.feeds.Feed.MIXED_FORMAT);this.sd.setNumEntries(this.a.numResults);this.sd.load(q(this.rd,this))}else this.qb&&this.rd(this.qb)}R.inherits(I);
R.prototype.V=function(){var a=this.A.createElement("div");G(a,"width","100%");G(a,"height","100%");this.Y(a)};
R.prototype.Y=function(a){this.K=a;a={rootId:this.f("root")};if(this.a.pauseOnHover)a.pauseImage={id:this.f("pauseImage")};if(this.a.fullControlPanel){var b,c,d,e=5;if(this.a.fullControlPanelSmallIcons){c=25;d=5;b="small"}else{c=45;d=10;b="big"}if(this.a.fullControlPanelCursor)c+=10;a.controlPanel={id:this.f("controlPanel"),height:c+"px",paddingTop:d+"px",paddingBottom:e+"px",prevId:this.f("controlPrev"),prevSrc:qd[b],pauseId:this.f("controlPause"),pauseSrc:rd[b],nextId:this.f("controlNext"),nextSrc:sd[b],
cursorStyle:w?"hand":"pointer"};if(this.a.fullControlPanelCursor)a.controlPanel.cursor={id:this.f("cursor")}}else if(this.a.customControlPanel)a.customControlPanel={id:this.f("controlPanel"),prevId:this.f("controlPrev"),pauseId:this.f("controlPause"),nextId:this.f("controlNext")};this.K.innerHTML=pd(a)};
R.prototype.R=function(){R.N.R.call(this);this.L=this.A.F(this.f("root"));this.Ha=yc(this.L);if(this.a.fullControlPanel||this.a.customControlPanel){this.d=new td;this.d.container=this.A.F(this.f("controlPanel"));this.d.pauseButton=this.A.F(this.f("controlPause"));this.d.prevButton=this.A.F(this.f("controlPrev"));this.d.nextButton=this.A.F(this.f("controlNext"));H(this.d.container,l);this.g.listen(this.d.prevButton,"click",this.Sb);this.g.listen(this.d.pauseButton,"click",this.hg);this.g.listen(this.d.nextButton,
"click",this.Tb);if(this.a.fullControlPanel){this.d.defaultOpacity=0.65;this.d.playCallback=this.a.fullControlPanelPlayCallback;this.d.fadeOutTime=this.a.fullControlPanelFadeOutTime}else{this.d.defaultOpacity=1;this.d.playCallback=this.a.customControlPanelPlayCallback;this.d.fadeOutTime=this.a.customControlPanelFadeOutTime;if(w){this.d.classSuffix="-ie";this.d.prevButton.className+=this.d.classSuffix;this.d.pauseButton.className+=this.d.classSuffix;this.d.nextButton.className+=this.d.classSuffix}else this.d.classSuffix=
""}}if(this.a.pauseOnHover){this.H=this.A.F(this.f("pauseImage"));var a=this.A.createElement("img");a.setAttribute("src",this.a.pauseImage);this.H.appendChild(a);a.complete?this.Ld({currentTarget:a}):this.g.listen(a,"load",this.Ld)}};R.prototype.Ld=function(a){a=a.currentTarget;if(this.a.scalePauseImage){var b=yc(a);b.ge(this.Ha.clone().scale(0.33));xc(a,b)}this.Oe(a);this.kg()};
R.prototype.Oe=function(a){xc(this.H,yc(a));G(this.H,"position","absolute");if(w){this.H.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+a.src+'", sizingMethod="scale")';this.H.removeChild(a)}else G(this.H,"opacity","")};
R.prototype.kg=function(){var a=yc(this.H),b=this.Ha.height-a.height;a=this.Ha.width-a.width;G(this.H,"top","0");G(this.H,"left","0");if(b>0){var c=Math.round(this.Ha.height*0.1);if(c<15)c=10;b=b-c;if(b<0)b=0;G(this.H,"top",this.H.offsetTop+b+this.a.pauseCenterBias.topBias+"px")}if(a>0){b=Math.round(a/2);G(this.H,"left",this.H.offsetLeft+b+this.a.pauseCenterBias.leftBias+"px")}};
R.prototype.oa=function(a){var b;b=typeof google!="undefined"&&google.feeds!=undefined?google.feeds.Feed.MAX_ENTRIES:20;this.a={numResults:b,scaleImages:l,thumbnailTag:"thumbnail",thumbnailNamespace:"http://search.yahoo.com/mrss/",thumbnailSize:"large",linkTarget:j,clickableImage:l,displayTime:3E3,transitionTime:1E3,transitionStep:40,pauseOnHover:i,pauseImage:ud,pauseStateCallback:j,scalePauseImage:i,autoCleanup:i,thumbnailUrlResolver:j,transitionCallback:j,transitionAnimationCallback:j,feedLoadCallback:j,
feedProcessedCallback:j,imageClickCallback:j,centerBias:{topBias:0,leftBias:0},pauseCenterBias:{topBias:0,leftBias:0},fullControlPanel:l,fullControlPanelCursor:l,fullControlPanelFadeOutTime:5E3,fullControlPanelPlayCallback:j,fullControlPanelSmallIcons:l,maintainAspectRatio:i,customControlPanel:l,customControlPanelFadeOutTime:5E3,customControlPanelPlayCallback:j};if(a)for(var c in this.a)if(typeof a[c]!="undefined")this.a[c]=a[c];if(this.a.displayTime<100)this.a.displayTime=100;a=this.a.transitionTime/
this.a.transitionStep;this.Zg=Math.min(1,1/a);this.te=l};R.prototype.vc=function(a){for(a=a.relatedTarget;a!=j;){if(a==this.L)return;a=a.parentNode}if(this.d){this.a.pauseOnHover&&!this.W&&this.Hc();this.qd()}else{this.W=i;this.H&&G(this.H,"visibility","visible")}this.a.pauseStateCallback&&this.a.pauseStateCallback(this.W)};
R.prototype.Ub=function(a){for(a=a.relatedTarget;a!=j;){if(a==this.L)return;a=a.parentNode}if(this.d){this.kc();this.g.unlisten(this.L,"mousemove",this.Ub);this.a.pauseOnHover&&this.W&&this.Hc()}else{this.W=l;this.H&&G(this.H,"visibility","hidden")}this.a.pauseStateCallback&&this.a.pauseStateCallback(this.W);this.Ka==j&&this.kb==j&&this.Qb()};R.prototype.eg=function(){var a=this.Ba[this.O];a=this.hd(a.link);a.click()};
R.prototype.pause=function(a){if(!this.W){var b=this.H;if(a)this.H=j;this.de();this.H=b;if(this.a.fullControlPanel){a=this.a.fullControlPanelSmallIcons?"small":"big";this.d.pauseButton.src=vd[a]}else if(this.a.customControlPanel)this.d.pauseButton.className="ss-control-play"+this.d.classSuffix}};
R.prototype.resume=function(){if(this.W){this.ac();if(this.a.fullControlPanel){var a=this.a.fullControlPanelSmallIcons?"small":"big";this.d.pauseButton.src=rd[a]}else if(this.a.customControlPanel)this.d.pauseButton.className="ss-control-pause"+this.d.classSuffix}};R.prototype.de=function(){this.W=i;this.H&&G(this.H,"visibility","visible");this.g.unlisten(this.L,"mouseout",this.Kd);this.a.imageClickCallback&&this.a.imageClickCallback(this.Ba[this.O])};
R.prototype.ac=function(){if(this.a.pauseOnHover||this.d){this.g.listen(this.L,"mouseover",this.vc);this.g.listen(this.L,"mouseout",this.Ub)}this.W=l;this.H&&G(this.H,"visibility","hidden");this.Ka==j&&this.kb==j&&this.Qb()};R.prototype.mf=function(a){var b=0;if(a.length>1)if(this.a.thumbnailSize=="large")b=a.length-1;else if(this.a.thumbnailSize=="medium")b=Math.floor(a.length/2);a=a[b];b=a.getAttribute("url");if(!b)b=a.firstChild.nodeValue;return b};
R.prototype.fe=function(a,b){this.Xc=j;var c=this.Qg,d=this.Ba.length;a=a||4;if(d>c+a){d=c+a;a=q(this.fe,this);b=b||Math.round(this.a.displayTime/4);this.Xc=window.setTimeout(a,b)}for(c=c;c<d;c++){b=this.Ba[c].thumbUrl;b=this.Se(b);this.S.push(b);if(this.a.linkTarget||this.a.clickableImage)if(eb){this.g.listen(b,"click",this.eg);G(b,"cursor","pointer");this.L.appendChild(b)}else{a=this.hd(this.Ba[c].link);a.appendChild(b);this.L.appendChild(a)}else this.L.appendChild(b);if(b.complete)this.Jd({currentTarget:b});
else{this.g.listen(b,"load",this.Jd);this.g.listen(b,"error",this.nf)}this.Qg++}};R.prototype.mg=function(a){for(var b=0;b<a.length;b++){var c=j;if(this.a.thumbnailUrlResolver)c=this.a.thumbnailUrlResolver(a[b]);else{var d=google.feeds.getElementsByTagNameNS(a[b].xmlNode,this.a.thumbnailNamespace,this.a.thumbnailTag);if(d&&d.length>0)c=this.mf(d)}if(c){a[b].thumbUrl=c;this.Ba.push(a[b])}}};
R.prototype.rd=function(a){this.a.feedLoadCallback&&this.a.feedLoadCallback(a);if(this.Rb&&a.error||this.qb&&this.qb.length==0){if(!this.a.feedLoadCallback)this.P.innerHTML="<center>feed could not be loaded.</center>"}else{this.A.$b(this.P);this.render(this.P);this.S=[];this.Ba=[];this.Qg=0;var b;b=this.Rb?a.feed.entries:this.qb;this.mg(b);this.a.feedProcessedCallback&&this.a.feedProcessedCallback(a);if((this.a.pauseOnHover||this.d)&&this.Ba.length>0){this.g.listen(this.L,"mouseover",this.vc);this.g.listen(this.L,
"mouseout",this.Ub)}this.a.imageClickCallback&&this.g.listen(this.L,"click",this.de);this.fe(1,100+Math.random()*100)}};R.prototype.Jd=function(a){a=a.currentTarget;a.__gfloaded=i;this.Be(a);if(!this.te)for(var b=0;b<this.S.length;){a==this.S[b]&&this.De(b);break}};R.prototype.nf=function(a){a=a.currentTarget;a.__gferror=i};R.prototype.Be=function(a){if(this.a.scaleImages)this.a.maintainAspectRatio?this.xg(a):xc(a,this.Ha);this.Je(a)};
R.prototype.xg=function(a,b,c){var d=yc(a);if(!(d.width<=0||d.height<=0)){b=new v(b||this.Ha.width,c||this.Ha.height);d.ge(b);xc(a,d)}};R.prototype.Je=function(a){var b=this.Ha.height-a.offsetHeight,c=this.Ha.width-a.offsetWidth;G(a,"top","0px");G(a,"left","0px");if(b>0){b=Math.round(b/2);G(a,"top",a.offsetTop+b+this.a.centerBias.topBias+"px")}if(c>0){c=Math.round(c/2);G(a,"left",a.offsetLeft+c+this.a.centerBias.leftBias+"px")}};
R.prototype.hd=function(a){var b=this.A.createElement("a");b.setAttribute("href",a);this.a.linkTarget&&b.setAttribute("target",this.a.linkTarget);return b};R.prototype.Se=function(a){var b=this.A.createElement("img");G(b,"position","absolute");b.setAttribute("src",a);wd(b,0);return b};R.prototype.Ob=function(){if(this.kb){window.clearInterval(this.kb);this.kb=j}};R.prototype.Mg=function(){this.Ob();this.Df=xd();var a=q(this.Rg,this);this.kb=window.setInterval(a,this.a.transitionStep)};
R.prototype.Le=function(){if(this.Ka){window.clearTimeout(this.Ka);this.Ka=j}};R.prototype.me=function(){if(!this.Ka){var a=q(this.Qb,this);this.Ka=window.setTimeout(a,this.a.displayTime)}};R.prototype.Me=function(){if(this.Xc){window.clearTimeout(this.Xc);this.Xc=j}};R.prototype.De=function(a){this.O=a;this.X=this.S[this.O];this.hb("transition-startup");this.te=i};var xd=function(){var a=new Date;return a.getTime()};R.prototype.Tb=function(){this.lc();this.oe();this.hb("transition-go-forward");this.Nb()};
R.prototype.Sb=function(){this.lc();this.Jg();this.hb("transition-go-backward");this.Nb()};R.prototype.Hd=function(a){if(a!=this.O){if(this.kb){wd(this.X,0);this.Ob()}this.Ig(a);this.hb("transition-go-index");this.Nb()}};R.prototype.hg=function(){if(this.d&&this.d.playCallback&&this.W){this.gd();this.d.playCallback(this.Ba[this.O]);this.kc()}else this.Hc()};
R.prototype.Hc=function(){if(this.W){this.W=l;if(this.a.fullControlPanel){var a=this.a.fullControlPanelSmallIcons?"small":"big";this.d.pauseButton.src=rd[a]}else if(this.a.customControlPanel)this.d.pauseButton.className="ss-control-pause"+this.d.classSuffix;this.Ka==j&&this.kb==j&&this.Qb()}else{this.W=i;if(this.a.fullControlPanel){a=this.a.fullControlPanelSmallIcons?"small":"big";this.d.pauseButton.src=vd[a]}else if(this.a.customControlPanel)this.d.pauseButton.className="ss-control-play"+this.d.classSuffix}};
R.prototype.Kd=function(){var a=this.d.container.opacity;if(a<this.d.defaultOpacity){this.g.unlisten(this.L,"mousemove",this.Kd);this.Nb();this.qd()}else this.Dg()};R.prototype.Nb=function(){if(this.d)if(this.d.timeout){window.clearTimeout(this.d.timeout);this.d.timeout=j}};R.prototype.Dg=function(){if(this.d.timeout){window.clearTimeout(this.d.timeout);this.d.timeout=j}if(this.d.fadeOutTime>0){var a=q(this.kc,this);this.d.timeout=window.setTimeout(a,this.d.fadeOutTime)}};
R.prototype.qd=function(){this.d.animation&&this.d.animation.stop();this.d.animation=new yd(this.d.container,0,this.d.defaultOpacity,300);this.d.animation.play()};R.prototype.kc=function(){this.d.animation&&this.d.animation.stop();this.d.animation=new zd(this.d.container,this.d.defaultOpacity,0,300);this.d.animation.play()};
R.prototype.Rg=function(){if(this.Va&&this.X){var a=this.Zg,b=this.a.transitionStep,c=xd(),d=c-this.Df;this.Df=c;a*=d/b;if(a<0)return;b=this.Va.opacity-a;a=this.X.opacity+a;wd(this.Va,b);wd(this.X,a);this.a.transitionAnimationCallback&&this.a.transitionAnimationCallback(this.X.opacity);if(b>0)return}this.lc()};
R.prototype.oe=function(){if(this.S.length!=0)for(var a=this.O,b=l;!b;){if(++this.O>=this.S.length)this.O=0;var c=this.S[this.O];if(c&&c.__gfloaded){this.X=c;b=i}else if(this.O==a){this.X=this.S[0];b=i}}};R.prototype.Jg=function(){for(var a=this.O,b=l;!b&&this.S.length!=0;){if(--this.O<0)this.O=this.S.length-1;var c=this.S[this.O];if(c&&c.__gfloaded){this.X=c;b=i}else if(this.O==a){this.X=this.S[0];b=i}}};
R.prototype.Ig=function(a){if(!(a<0||a>=this.S.length)){var b=this.S[a];if(b&&b.__gfloaded){this.X=b;this.O=a}}};R.prototype.gd=function(){this.g.unlisten(this.L,"mouseover",this.vc);this.g.unlisten(this.L,"mouseout",this.Ub)};R.prototype.dispose=function(){this.Ob();this.Le();this.Me();this.gd();this.g.dispose();this.A.$b(this.P);this.P=j};R.prototype.Qb=function(){this.Ka=j;if(!this.te)return l;if(!this.W)if((!this.L||!this.L.parentNode)&&this.a.autoCleanup)this.dispose();else{this.oe();this.Ee()}};
R.prototype.hb=function(a){wd(this.X,1);if(this.Va!=this.X){wd(this.Va,0);this.Va=this.X}this.me();this.a.transitionCallback&&this.a.transitionCallback(this.Ba[this.O],this.a.transitionTime,a);if(this.a.fullControlPanel&&this.a.fullControlPanelCursor){a=this.O+1+" / "+this.S.length;this.d.cursor.innerHTML=a}};R.prototype.Ee=function(){if(!this.Va||!this.X||this.Va==this.next)this.me();else this.a.transitionTime>=this.a.transitionStep?this.Mg():this.hb("transition-timer")};
R.prototype.lc=function(){this.Ob();this.hb("transition-timer")};var td=function(){this.timeout=this.pauseImage=this.container=j};function wd(a,b){if(a!=j){b=Math.max(0,Math.min(1,b));b==0?G(a,"visibility","hidden"):G(a,"visibility","visible");a.opacity=b;Ac(a,b)}}function zd(a,b,c,d,e){O.call(this,a,b,c,d,e);gc(this,"begin",this.show,l,this);gc(this,"end",this.hide,l,this)}s(zd,O);zd.prototype.stop=function(){this.U!=0&&zd.N.stop.call(this)};
function yd(a,b,c,d,e){O.call(this,a,b,c,d,e);gc(this,"begin",this.show,l,this)}s(yd,O);yd.prototype.stop=function(){this.U!=0&&yd.N.stop.call(this)};
var ud=google.loader.ServiceBase+"/solutions/slideshow/pause.png",Ad=google.loader.ServiceBase+"/solutions/slideshow/play.png",rd={small:google.loader.ServiceBase+"/solutions/slideshow/btn_pause_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_pause.png"},vd={small:google.loader.ServiceBase+"/solutions/slideshow/btn_play_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_play.png"},qd={small:google.loader.ServiceBase+"/solutions/slideshow/btn_prev_small.png",big:google.loader.ServiceBase+
"/solutions/slideshow/btn_prev.png"},sd={small:google.loader.ServiceBase+"/solutions/slideshow/btn_next_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_next.png"};oa("google.elements.SlideShow",R);r(R,"THUMBNAILS_SMALL","small");r(R,"THUMBNAILS_MEDIUM","medium");r(R,"THUMBNAILS_LARGE","large");r(R,"MRSS_THUMBNAIL_TAG","thumbnail");r(R,"MRSS_THUMBNAIL_NS","http://search.yahoo.com/mrss/");r(R,"ITMS_THUMBNAIL_TAG","coverArt");r(R,"ITMS_THUMBNAIL_NS","http://phobos.apple.com/rss/1.0/modules/itms/");
r(R,"DEFAULT_THUMBNAIL_TAG","thumbnail");r(R,"DEFAULT_THUMBNAIL_NS","http://search.yahoo.com/mrss/");r(R,"DEFAULT_DISPLAY_TIME",3E3);r(R,"DEFAULT_TRANSISTION_TIME",1E3);r(R,"DEFAULT_TRANSISTION_STEP",40);r(R,"DEFAULT_PAUSE_PNG",ud);r(R,"DEFAULT_PLAY_PNG",Ad);r(R,"TRANSITION_TIMER","transition-timer");r(R,"TRANSITION_STARTUP","transition-startup");r(R,"TRANSITION_GO_BACKWARD","transition-go-backward");r(R,"TRANSITION_GO_FORWARD","transition-go-forward");r(R,"TRANSITION_GO_INDEX","transition-go-index");
r(R.prototype,"pause",R.prototype.pause);r(R.prototype,"resume",R.prototype.resume);r(R.prototype,"goForward",R.prototype.Tb);r(R.prototype,"goBackward",R.prototype.Sb);r(R.prototype,"gotoIndex",R.prototype.Hd);

var Ee=function(a,b){var c=b||new P;c.append('<div id="',a.rootId,'" class="gvn"><div id="',a.slideshowId,'" class="gvn-ss"></div><div class="gvn-hd gvn-sprite"><a href="',a.channelUrl,'" target="_blank"><img id="',a.titleChannelIconId,'" class="gvn-ch-icon" /></a><div class="gvn-title">',a.title,'</div><a id="',a.headlineId,'" class="gvn-headline"></a></div><div class="gvn-body"><div id="',a.loadingId,'">',a.Strings.MSG_LOADING,'</div><div id="',a.resultId,'" style="display: none;"><table cellpadding="0" cellspacing="0"><tr><td id="',
a.previousId,'" class="gvn-pn" width="29" align="center" valign="middle"><a class="gvn-prev gvn-sprite gvn-ir" ><span>',a.Strings.MSG_PREVIOUS,'</span></a></td><td width="240"><div id="',a.imgFrameId,'" class="gvn-img-frame"><div class="gvn-play gvn-sprite"></div><div id="',a.imgContainerId,'" class="gvn-img-c"></div></div></td><td id="',a.nextId,'" class="gvn-pn" width="29" align="center" valign="middle"><a class="gvn-next gvn-sprite gvn-ir" ><span>',a.Strings.MSG_NEXT,'</span></a></td></tr></table></div><div id="',
a.playerId,'" class="gvn-player" style="display: none;"></div></div><div class="gvn-foot gvn-sprite"><div class="gvn-foot-1"><a id="',a.closeId,'" class="gvn-close gvn-sprite gvn-ir" style="display: none;"><span>',a.Strings.MSG_CLOSE,'</span></a><a class="gvn-gwe gvn-ir" href="',a.gweUrl,'" target="_blank"><span>',a.Strings.MSG_GWE,'</span></a></div><div class="gvn-foot-2"><div class="gvn-pwr"><div class="gvn-pwr-by"><div style="float: left;">',a.Strings.MSG_POWERED_BY,'</div><div class="gvn-yt gvn-sprite gvn-ir"><span>',
a.Strings.MSG_YOUTUBE,"</span></div></div></div></div></div></div>");if(!b)return c.toString()};function $(a,b,c){I.call(this,c);this.g=new E(this);if(typeof a=="string")a=this.A.F(a);this.P=a;this.c=[];this.Sg=[];this.Hb=[];this.xb=l;this.ta=google.search.Search.LARGE_RESULTSET;this.oa(b);this.Ve();this.render(this.P);this.v=new google.search.VideoSearch;this.v.setNoHtmlGeneration();this.a.channel!="google_news"&&this.v.setResultOrder(google.search.Search.ORDER_BY_DATE);this.v.setResultSetSize(this.ta);this.v.setSearchCompleteCallback(this,$.prototype.$d);this.v.execute(this.he);this.a.channel!=
"google_news"&&this.Gd(this.a.channel);try{document.execCommand("BackgroundImageCache",l,i)}catch(d){}}$.inherits(I);
var Fe={MSG_TOP_NEWS:"Top News Videos",MSG_TITLE_W_CHANNEL:"News Videos from ",MSG_POWERED_BY:"TOP NEWS ",MSG_PREVIOUS:"Previous video",MSG_NEXT:"Next video",MSG_CLOSE:"close",MSG_YOUTUBE:"YouTube",MSG_LOADING:"Loading...",MSG_NO_RESULTS:"No results, try again later.",MSG_GWE:"Google Web Elements"},Ge=[["google_news","Top News Videos"],["AlJazeeraEnglish","Al Jazeera English"],["AssociatedPress","the Associated Press"],["Bloomberg","Bloomberg"],["CBSNewsOnline","CBS News Online"],["CSPAN","CSPAN"],
["Euronews","Euronews"],["Foxnewschannel","Fox News"],["France24english","France24 English"],["ITNnews","ITN News"],["NYPost","the New York Post"],["thenewyorktimes","the New York Times"],["RussiaToday","Russia Today"],["WashingtonPost","the Washington Post"]],He=Ge[0][0],Ie=Db("img");Ie.style.width="240px";Ie.style.height="180px";
var Je={"300x250":{keyNodes:{root:"rootId",loading:"loadingId",titleChannelIcon:"titleChannelIconId",slideshow:"slideshowId",headline:"headlineId",imgFrame:"imgFrameId",imgContainer:"imgContainerId",result:"resultId",next:"nextId",previous:"previousId",close:"closeId",player:"playerId"},template:Ee}},Ke={format:"300x250"},Le={format:i,channel:i},Me=function(a){var b={};a=a?a:window.location.href;a=new K(a);a=a.sc();if(a.db())return Ke;for(var c in Le)if(a.aa(c)){var d=a.ia(c);if(!(d.length<0))switch(c){case "format":if($.mh[d[0]]!=
undefined)b.format=d[0];break;case "channel":b.channel=d[0]}}return b},Ne=function(a){if((a=a.branding["video-icon"]||a.channel.photo)&&a.charAt(0)=="/")a="http://www.youtube.com"+a;return a};$.prototype.Ia=j;$.prototype.Vc={};$.prototype.ya={};$.prototype.Gb=l;$.prototype.bc=l;$.prototype.T=-1;$.prototype.V=function(){this.Y(this.A.createElement("div"))};$.prototype.Y=function(a){this.K=a;rb(this.K,"gvn-el");this.K.innerHTML=this.ih(this.Hb)};
$.prototype.R=function(){$.N.R.call(this);var a=[];a.push(this.a.format);for(var b=0,c;c=a[b];b++)for(var d in Je[c].keyNodes){var e=Je[c].keyNodes[d];this.c[d]=this.A.F(this.f(e))}this.c.imgFrame.style.width="240px";this.c.imgFrame.style.height="180px";this.la()};$.prototype.Z=function(){$.N.Z.call(this);this.g.Db()};$.prototype.Gd=function(a,b){b=b||q(this.Ab,this);this.ya={};this.Gb=l;var c=new Xc("http://www.youtube.com/profile_style");c.dc(-1);c.send({user:a},b)};
$.prototype.Ab=function(a){this.ya=a;this.Gb=i;a=Ne(a);this.c.titleChannelIcon.src=a};
$.prototype.oa=function(a){this.a={format:"350x200",channel:He,linkTarget:"_parent",brandingLink:"http://news.google.com",deferResumeTime:300,deferBootTime:2500,displayTime:7500,transitionTime:1E3,sponsor:j,enableAds:j,publisherId:"pub-3122923178966709",pageUrl:j,hl:j,searchExpression:j};if(a)for(var b in this.a)if(typeof a[b]!="undefined")this.a[b]=a[b];if(this.a.format!="300x250")this.a.format="300x250";rb(this.P,"gvn-"+this.a.format);this.ih=Je[this.a.format].template;a={};b=0;for(var c;c=Ge[b];b++)a[c[0]]=
c[1];if(!a[this.a.channel])this.a.channel=He;this.Xg=a[this.a.channel];if(this.a.channel=="google_news"){this.qa=Fe.MSG_TOP_NEWS;this.he="ytfeed:"+this.a.channel}else{this.qa=Fe.MSG_TITLE_W_CHANNEL+this.Xg;this.he="ytchannel:"+this.a.channel}if(this.a.searchExpression)this.he+=" "+this.a.searchExpression};
$.prototype.Ve=function(){var a=[];a.push(this.a.format);for(var b=0;b<a.length;b++){var c=a[b];for(var d in Je[c].keyNodes){var e=Je[c].keyNodes[d];this.Hb[e]=this.f(e)}}this.Hb.Strings=Fe;this.Hb.gweUrl="#";this.Hb.title=this.qa;this.Hb.channelUrl="http://www.youtube.com/profile?user="+this.a.channel};
$.prototype.la=function(){this.g.listen(this.c.root,"mouseover",q(this.va,this));this.g.listen(this.c.root,"mouseout",q(this.ua,this));this.g.listen(this.c.headline,"click",q(this.Yd,this));this.g.listen(this.c.imgFrame,"click",q(this.Yd,this));this.g.listen(this.c.previous,"click",q(this.Xf,this));this.g.listen(this.c.next,"click",q(this.Uf,this));this.g.listen(this.c.close,"click",q(this.Nf,this))};
$.prototype.va=function(a){if(!a.relatedTarget||!Ib(a.currentTarget,a.relatedTarget)){rb(this.c.root,"gvn-hover");this.c.result.style.display!="none"&&this.Ia.pause()}};$.prototype.ua=function(a){if(!a.relatedTarget||!Ib(a.currentTarget,a.relatedTarget)){tb(this.c.root,"gvn-hover");this.c.result.style.display!="none"&&this.Ia.resume()}};
$.prototype.Xf=function(){if(!(this.xb||this.lg)){this.xb=i;var a=this.T-1;if(a==-1&&this.v.cursor.currentPageIndex==0)this.xb=l;else if(a==-1){this.Ia.pause();this.Yf=i;a=this.v.cursor.currentPageIndex-1;this.v.gotoPage(a)}else this.Uc(a)}};$.prototype.Uf=function(){if(!(this.xb||this.Vd)){this.xb=i;var a=this.T+1;if(a<=this.v.results.length-1)this.Uc(this.T+1);else{this.Ia.pause();a=this.v.cursor.currentPageIndex+1;this.v.gotoPage(a)}}};
$.prototype.Nf=function(){H(this.c.player,l);H(this.c.close,l);Fb(this.c.player);H(this.c.result,i);H(this.c.previous,i);H(this.c.next,i)};
$.prototype.Yd=function(a){a.preventDefault();if(this.c.player.style.display=="none"){this.Ia.pause();H(this.c.result,l);H(this.c.previous,l);H(this.c.next,l);a=google.search.VideoSearch.createPlayer(this.v.results[this.T]);a.firstChild.setAttribute("height",193);a.firstChild.setAttribute("width",298);this.c.player.appendChild(a);H(this.c.player,i);H(this.c.close,i)}};
$.prototype.$d=function(){this.bc=i;if(this.v.results.length==0)Jb(this.c.loading,Fe.MSG_NO_RESULTS);else{this.ta=this.v.results.length;for(var a=0;a<this.ta;a++)this.v.results[a].playUrl+="&rel=0";this.c.imgContainer.style.height="180px";this.c.imgContainer.style.width=240*this.ta+"px";for(a=0;a<this.ta;a++){var b=Ie.cloneNode(l);this.Sg.push(b);this.c.imgContainer.appendChild(b);if(this.a.channel=="google_news"){this.v.results[a].oh="";b=q(this.jf,this,a);this.Gd(this.v.results[a].author,b)}this.Sg[a].src=
this.v.results[a].tbUrl}if(this.Yf)this.Yf=l;if(this.Ia)this.Ia.resume();else this.Ia=new google.elements.SlideShow(this.v.results,this.c.slideshow,this.Pb())}};$.prototype.jf=function(a,b){b=Ne(b);this.v.results[a].ic=b;if(this.T==a&&this.c.titleChannelIcon.src!=this.v.results[a].ic)this.c.titleChannelIcon.src=this.v.results[a].ic};
$.prototype.Pb=function(){var a={};a.linkTarget=this.a.linkTarget;a.displayTime=this.a.displayTime;a.transitionTime=this.a.transitionTime;a.scaleImages=l;a.pauseOnHover=l;a.fullControlPanel=l;a.transitionCallback=q(this.dg,this);a.thumbnailUrlResolver=q(this.gc,this);return a};$.prototype.dg=function(){var a=this.T+1==this.v.results.length?0:this.T+1;this.Uc(a)};$.prototype.gc=function(a){return a.tbUrl};
$.prototype.Uc=function(a){if(a==0)this.c.imgContainer.style.left=0;else{var b=0-this.T*240,c=0-a*240;b=new kd(this.c.imgContainer,[b,0],[c,0],200);b.play()}this.T=a;if(this.T==0){this.lg=i;rb(this.c.previous,"gvn-disabled");this.Vd=l;tb(this.c.next,"gvn-disabled")}else if(this.T==1){this.lg=l;tb(this.c.previous,"gvn-disabled")}else if(this.T==this.ta-2){this.Vd=l;tb(this.c.next,"gvn-disabled")}else if(this.T==this.ta-1){this.Vd=i;rb(this.c.next,"gvn-disabled")}a=this.v.results[this.T];if(this.a.channel==
"google_news"){this.c.titleChannelIcon.parentNode.href="http://www.youtube.com/profile?user="+a.author;if(this.c.titleChannelIcon.src!=a.ic)this.c.titleChannelIcon.src=a.ic}Jb(this.c.headline,a.titleNoFormatting);this.c.headline.href=a.playUrl;this.c.headline.title=a.titleNoFormatting;this.c.loading.style.display="none";this.c.result.style.display="";this.xb=l};oa("google.elements.VideoNews",$);r($,"UrlToOptions",Me);
google.loader.loaded({"module":"elements","version":"1.0","components":["default","slideshow","videonews"]});
google.loader.eval.elements = function() {eval(arguments[0])}})()
