function e(a){throw a;}var h=void 0,j=!0,k=null,m=!1;function aa(){return function(){}}function ba(a){return function(b){this[a]=b}}function o(a){return function(){return this[a]}}function p(a){return function(){return a}}var q,ca=ca||{},s=this;function da(a){for(var a=a.split("."),b=s,c;c=a.shift();)if(ea(b[c]))b=b[c];else return k;return b}function ga(){}function ha(a){a.pa=function(){return a.fu||(a.fu=new a)}}
function ia(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";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 ja(a){return a!==h}function ea(a){return a!=k}function ka(a){return ia(a)=="array"}function la(a){var b=ia(a);return b=="array"||b=="object"&&typeof a.length=="number"}function t(a){return typeof a=="string"}function ma(a){return typeof a=="number"}function na(a){return ia(a)=="function"}function oa(a){a=ia(a);return a=="object"||a=="array"||a=="function"}function pa(a){return a[qa]||(a[qa]=++ra)}
var qa="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),ra=0;function sa(a,b,c){return a.call.apply(a.bind,arguments)}function ta(a,b,c){a||e(Error());if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function u(a,b,c){u=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?sa:ta;return u.apply(k,arguments)}function ua(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var va=Date.now||function(){return+new Date};function x(a,b){var c=b||{},d;for(d in c)var f=(""+c[d]).replace(/\$/g,"$$$$"),a=a.replace(RegExp("\\{\\$"+d+"\\}","gi"),f);return a}
function y(a,b){var c=a.split("."),d=s;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var f;c.length&&(f=c.shift());)!c.length&&ja(b)?d[f]=b:d=d[f]?d[f]:d[f]={}}function z(a,b){function c(){}c.prototype=b.prototype;a.c=b.prototype;a.prototype=new c;a.prototype.constructor=a};function wa(a){this.stack=Error().stack||"";if(a)this.message=""+a}z(wa,Error);wa.prototype.name="CustomError";function xa(a,b){return a.lastIndexOf(b,0)==0}function ya(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c}function za(a,b){for(var c=1;c<arguments.length;c++)var d=(""+arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}function Aa(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")}function Ba(a){return/^[\s\xa0]*$/.test(a)}function Ca(a){return Ba(a==k?"":""+a)}function Da(a){return!/[^\t\n\r ]/.test(a)}function Ea(a){return a.replace(/(\r\n|\r|\n)+/g," ")}
function Fa(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}function Ga(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Ha(a){return a.replace(/^[\s\xa0]+/,"")}var Ia=/^[a-zA-Z0-9\-_.!~*'()]*$/;function Ja(a){a=""+a;return!Ia.test(a)?encodeURIComponent(a):a}function Ka(a){return decodeURIComponent(a.replace(/\+/g," "))}
function La(a){if(!Ma.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(Na,"&amp;"));a.indexOf("<")!=-1&&(a=a.replace(Oa,"&lt;"));a.indexOf(">")!=-1&&(a=a.replace(Pa,"&gt;"));a.indexOf('"')!=-1&&(a=a.replace(Qa,"&quot;"));return a}var Na=/&/g,Oa=/</g,Pa=/>/g,Qa=/\"/g,Ma=/[&<>\"]/;function Ra(a){var b;if(b&&a.length>48)b>48&&(b=48),a=a.substring(0,48-b)+"..."+a.substring(a.length-b);else if(a.length>48){b=Math.floor(24);var c=a.length-b;b+=0;a=a.substring(0,b)+"..."+a.substring(c)}return a}
function Sa(a,b){return a.indexOf(b)!=-1}function Ta(a,b){var c=ja(h)?a.toFixed(h):""+a,d=c.indexOf(".");if(d==-1)d=c.length;d=Math.max(0,b-d);return Array(d+1).join("0")+c}
function Ua(a,b){for(var c=0,d=Ga(""+a).split("."),f=Ga(""+b).split("."),g=Math.max(d.length,f.length),i=0;c==0&&i<g;i++){var l=d[i]||"",n=f[i]||"",r=RegExp("(\\d*)(\\D*)","g"),v=RegExp("(\\d*)(\\D*)","g");do{var F=r.exec(l)||["","",""],R=v.exec(n)||["","",""];if(F[0].length==0&&R[0].length==0)break;c=((F[1].length==0?0:parseInt(F[1],10))<(R[1].length==0?0:parseInt(R[1],10))?-1:(F[1].length==0?0:parseInt(F[1],10))>(R[1].length==0?0:parseInt(R[1],10))?1:0)||((F[2].length==0)<(R[2].length==0)?-1:(F[2].length==
0)>(R[2].length==0)?1:0)||(F[2]<R[2]?-1:F[2]>R[2]?1:0)}while(c==0)}return c}var Va=Math.random()*2147483648|0;function Wa(){return"goog_"+Va++}function Xa(a){var b=Number(a);return b==0&&Ba(a)?NaN:b}var Ya={};function Za(a){return Ya[a]||(Ya[a]=(""+a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))}var $a={};function ab(a){return $a[a]||($a[a]=(""+a).replace(/([A-Z])/g,"-$1").toLowerCase())};function bb(a,b){b.unshift(a);wa.call(this,za.apply(k,b));b.shift();this.Ky=a}z(bb,wa);bb.prototype.name="AssertionError";function cb(a,b){e(new bb("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};function db(a){return a[a.length-1]}
var eb=Array.prototype,fb=eb.indexOf?function(a,b,c){return eb.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:c<0?Math.max(0,a.length+c):c;if(t(a))return!t(b)||b.length!=1?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},gb=eb.lastIndexOf?function(a,b,c){return eb.lastIndexOf.call(a,b,c==k?a.length-1:c)}:function(a,b,c){c=c==k?a.length-1:c;c<0&&(c=Math.max(0,a.length+c));if(t(a))return!t(b)||b.length!=1?-1:a.lastIndexOf(b,c);for(;c>=0;c--)if(c in a&&a[c]===b)return c;return-1},
A=eb.forEach?function(a,b,c){eb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=t(a)?a.split(""):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)},hb=eb.filter?function(a,b,c){return eb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=[],g=0,i=t(a)?a.split(""):a,l=0;l<d;l++)if(l in i){var n=i[l];b.call(c,n,l,a)&&(f[g++]=n)}return f},ib=eb.map?function(a,b,c){return eb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=Array(d),g=t(a)?a.split(""):a,i=0;i<d;i++)i in g&&(f[i]=b.call(c,g[i],
i,a));return f},jb=eb.some?function(a,b,c){return eb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=t(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a))return j;return m},kb=eb.every?function(a,b,c){return eb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=t(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&!b.call(c,f[g],g,a))return m;return j};
function lb(a,b){var c;a:{c=a.length;for(var d=t(a)?a.split(""):a,f=0;f<c;f++)if(f in d&&b.call(h,d[f],f,a)){c=f;break a}c=-1}return c<0?k:t(a)?a.charAt(c):a[c]}function mb(a,b){var c;a:{c=t(a)?a.split(""):a;for(var d=a.length-1;d>=0;d--)if(d in c&&b.call(h,c[d],d,a)){c=d;break a}c=-1}return c<0?k:t(a)?a.charAt(c):a[c]}function B(a,b){return fb(a,b)>=0}function nb(a,b){B(a,b)||a.push(b)}function ob(a,b){var c=fb(a,b);c>=0&&eb.splice.call(a,c,1)}
function pb(a){return eb.concat.apply(eb,arguments)}function qb(a){if(ka(a))return pb(a);for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}function rb(a){return ka(a)?pb(a):qb(a)}function sb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],f;if(ka(d)||(f=la(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(f)for(var g=a.length,i=d.length,l=0;l<i;l++)a[g+l]=d[l];else a.push(d)}}function tb(a,b,c,d){eb.splice.apply(a,ub(arguments,1))}
function ub(a,b,c){return arguments.length<=2?eb.slice.call(a,b):eb.slice.call(a,b,c)}function vb(a,b){eb.sort.call(a,b||wb)}function xb(a){var b=wb;vb(a,function(a,d){return b(a.index,d.index)})}function wb(a,b){return a>b?1:a<b?-1:0}function yb(a){for(var b=Math.random,c=a.length-1;c>0;c--){var d=Math.floor(b()*(c+1)),f=a[c];a[c]=a[d];a[d]=f}};var zb,Ab,Bb,Cb,Db,Eb,Fb,Gb;function Hb(){return s.navigator?s.navigator.userAgent:k}function Ib(){return s.navigator}Db=Cb=Bb=Ab=zb=m;var Jb;if(Jb=Hb()){var Kb=Ib();zb=Jb.indexOf("Opera")==0;Ab=!zb&&Jb.indexOf("MSIE")!=-1;Cb=(Bb=!zb&&Jb.indexOf("WebKit")!=-1)&&Jb.indexOf("Mobile")!=-1;Db=!zb&&!Bb&&Kb.product=="Gecko"}var C=zb,D=Ab,E=Db,G=Bb,Lb=Cb,Mb,Nb=Ib();Mb=Nb&&Nb.platform||"";Eb=Sa(Mb,"Mac");Fb=Sa(Mb,"Win");Gb=Sa(Mb,"Linux");var Ob=!!Ib()&&Sa(Ib().appVersion||"","X11"),Pb;
a:{var Qb="",Rb;if(C&&s.opera)var Sb=s.opera.version,Qb=typeof Sb=="function"?Sb():Sb;else if(E?Rb=/rv\:([^\);]+)(\)|;)/:D?Rb=/MSIE\s+([^\);]+)(\)|;)/:G&&(Rb=/WebKit\/(\S+)/),Rb)var Tb=Rb.exec(Hb()),Qb=Tb?Tb[1]:"";if(D){var Ub,Vb=s.document;Ub=Vb?Vb.documentMode:h;if(Ub>parseFloat(Qb)){Pb=""+Ub;break a}}Pb=Qb}var Wb={};function I(a){return Wb[a]||(Wb[a]=Ua(Pb,a)>=0)}var Xb={};function Yb(){return Xb[9]||(Xb[9]=D&&document.documentMode&&document.documentMode>=9)};var Zb,$b=!D||Yb(),ac=!E&&!D||D&&Yb()||E&&I("1.9.1"),bc=D&&!I("9");function cc(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]}function J(a,b){var c=cc(a),d=ub(arguments,1),f;f=c;for(var g=0,i=0;i<d.length;i++)B(f,d[i])||(f.push(d[i]),g++);f=g==d.length;a.className=c.join(" ");return f}function K(a,b){var c=cc(a),d=ub(arguments,1),f;f=c;for(var g=0,i=0;i<f.length;i++)B(d,f[i])&&(tb(f,i--,1),g++);f=g==d.length;a.className=c.join(" ");return f}function dc(a,b){return B(cc(a),b)}function L(a,b,c){c?J(a,b):K(a,b)}
function ec(a,b){var c=!dc(a,b);L(a,b,c)};function M(a,b){this.x=ja(a)?a:0;this.y=ja(b)?b:0}M.prototype.U=function(){return new M(this.x,this.y)};M.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function fc(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)}function gc(a,b){return new M(a.x-b.x,a.y-b.y)}function hc(a,b){return new M(a.x+b.x,a.y+b.y)};function ic(a,b){this.width=a;this.height=b}function jc(a,b){return a==b?j:!a||!b?m:a.width==b.width&&a.height==b.height}q=ic.prototype;q.U=function(){return new ic(this.width,this.height)};q.toString=function(){return"("+this.width+" x "+this.height+")"};q.Hc=function(){return!(this.width*this.height)};q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function kc(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function lc(a,b){for(var c in a)if(b.call(h,a[c],c,a))return j;return m}function mc(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return m;return j}function nc(a){var b=0,c;for(c in a)b++;return b}function oc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function pc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function qc(a){for(var b in a)return m;return j}function rc(a,b){b in a&&delete a[b]}
function sc(a,b,c){b in a&&e(Error('The object already contains the key "'+b+'"'));a[b]=c}function N(a,b,c){return b in a?a[b]:c}function tc(a,b){a.url=b}function uc(a){var b={},c;for(c in a)b[a[c]]=c;return b}var vc="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
function wc(a,b){for(var c,d,f=1;f<arguments.length;f++){d=arguments[f];for(c in d)a[c]=d[c];for(var g=0;g<vc.length;g++)c=vc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function xc(a){var b=arguments.length;if(b==1&&ka(arguments[0]))return xc.apply(k,arguments[0]);b%2&&e(Error("Uneven number of arguments"));for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c}
function yc(a){var b=arguments.length;if(b==1&&ka(arguments[0]))return yc.apply(k,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=j;return c};function O(a){return a?new zc(P(a)):Zb||(Zb=new zc)}function Ac(a){return t(a)?document.getElementById(a):a}function Bc(a,b,c){return Cc(document,a,b,c)}function Dc(a,b){var c=b||document;return Ec(c)?c.querySelectorAll("."+a):c.getElementsByClassName?c.getElementsByClassName(a):Cc(document,"*",a,b)}function Fc(a,b){var c=b||document,d=k;return(d=Ec(c)?c.querySelector("."+a):Dc(a,b)[0])||k}function Ec(a){return a.querySelectorAll&&a.querySelector&&(!G||Gc(document)||I("528"))}
function Cc(a,b,c,d){a=d||a;b=b&&b!="*"?b.toUpperCase():"";if(Ec(a)&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){for(var d={},f=0,g=0,i;i=a[g];g++)b==i.nodeName&&(d[f++]=i);d.length=f;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(g=f=0;i=a[g];g++)b=i.className,typeof b.split=="function"&&B(b.split(/\s+/),c)&&(d[f++]=i);d.length=f;return d}return a}
function Hc(a,b){kc(b,function(b,d){d=="style"?a.style.cssText=b:d=="class"?a.className=b:d=="for"?a.htmlFor=b:d in Ic?a.setAttribute(Ic[d],b):xa(d,"aria-")?a.setAttribute(d,b):a[d]=b})}var Ic={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"};function Jc(a){return Kc(a||window)}
function Kc(a){var b=a.document;if(G&&!I("500")&&!Lb){typeof a.innerHeight=="undefined"&&(a=window);var b=a.innerHeight,c=a.document.documentElement.scrollHeight;a==a.top&&c<b&&(b-=15);return new ic(a.innerWidth,b)}a=Gc(b)?b.documentElement:b.body;return new ic(a.clientWidth,a.clientHeight)}function Lc(a){var b=Mc(a),a=a.parentWindow||a.defaultView;return new M(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Mc(a){return!G&&Gc(a)?a.documentElement:a.body}
function Nc(a){return a?a.parentWindow||a.defaultView:window}function Oc(a,b,c){return Pc(document,arguments)}function Pc(a,b){var c=b[0],d=b[1];if(!$b&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',La(d.name),'"');if(d.type){c.push(' type="',La(d.type),'"');var f={};wc(f,d);d=f;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)t(d)?c.className=d:ka(d)?J.apply(k,[c].concat(d)):Hc(c,d);b.length>2&&Qc(a,c,b,2);return c}
function Qc(a,b,c,d){function f(c){c&&b.appendChild(t(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];la(g)&&!(oa(g)&&g.nodeType>0)?A(Rc(g)?qb(g):g,f):f(g)}}function Sc(a){return Tc(document,a)}function Tc(a,b){var c=a.createElement("div");D?(c.innerHTML="<br>"+b,c.removeChild(c.firstChild)):c.innerHTML=b;if(c.childNodes.length==1)return c.removeChild(c.firstChild);for(var d=a.createDocumentFragment();c.firstChild;)d.appendChild(c.firstChild);return d}
function Gc(a){return a.compatMode=="CSS1Compat"}function Uc(a,b){Qc(P(a),a,arguments,1)}function Vc(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Wc(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)}function Xc(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)}function Q(a){return a&&a.parentNode?a.parentNode.removeChild(a):k}function Yc(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}
function Zc(a){var b,c=a.parentNode;if(c&&c.nodeType!=11){if(a.removeNode)return a.removeNode(m);for(;b=a.firstChild;)c.insertBefore(b,a);return Q(a)}}function $c(a){return ac&&a.children!=h?a.children:hb(a.childNodes,function(a){return a.nodeType==1})}function ad(a){return a.firstElementChild!=h?a.firstElementChild:bd(a.firstChild,j)}function bd(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a}
function cd(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 dd(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==1,d=b.nodeType==1;if(c&&d)return a.sourceIndex-b.sourceIndex;var f=a.parentNode,g=b.parentNode;return f==g?ed(a,b):!c&&cd(f,b)?-1*fd(a,b):!d&&cd(g,a)?fd(b,a):(c?a.sourceIndex:f.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=P(a);c=d.createRange();c.selectNode(a);c.collapse(j);d=d.createRange();d.selectNode(b);
d.collapse(j);return c.compareBoundaryPoints(s.Range.START_TO_END,d)}function fd(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return ed(d,a)}function ed(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}
function gd(a){var b,c=arguments.length;if(c){if(c==1)return arguments[0]}else return k;var d=[],f=Infinity;for(b=0;b<c;b++){for(var g=[],i=arguments[b];i;)g.unshift(i),i=i.parentNode;d.push(g);f=Math.min(f,g.length)}g=k;for(b=0;b<f;b++){for(var i=d[0][b],l=1;l<c;l++)if(i!=d[l][b])return g;g=i}return g}function P(a){return a.nodeType==9?a:a.ownerDocument||a.document}function hd(a){return a.contentDocument||a.contentWindow.document}
function id(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 Vc(a),a.appendChild(P(a).createTextNode(b))}var jd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},kd={IMG:" ",BR:"\n"};function ld(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?(a=a.tabIndex,ma(a)&&a>=0&&a<32768):m}function md(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))}
function nd(a){if(bc&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];od(a,b,j);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");bc||(a=a.replace(/ +/g," "));a!=" "&&(a=a.replace(/^\s*/,""));return a}function pd(a){var b=[];od(a,b,m);return b.join("")}
function od(a,b,c){if(!(a.nodeName in jd))if(a.nodeType==3)c?b.push((""+a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in kd)b.push(kd[a.nodeName]);else for(a=a.firstChild;a;)od(a,b,c),a=a.nextSibling}function Rc(a){if(a&&typeof a.length=="number"){if(oa(a))return typeof a.item=="function"||typeof a.item=="string";if(na(a))return typeof a.item=="function"}return m}
function qd(a,b){var c=b?b.toUpperCase():k;return rd(a,function(a){return(!c||a.nodeName==c)&&j},j)}function rd(a,b,c){if(!c)a=a.parentNode;for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return k}function sd(){var a=document;try{return a&&a.activeElement}catch(b){}return k}function zc(a){this.ba=a||s.document||document}q=zc.prototype;q.q=O;q.T=o("ba");q.b=function(a){return t(a)?this.ba.getElementById(a):a};q.f=function(a,b,c){return Pc(this.ba,arguments)};q.createElement=function(a){return this.ba.createElement(a)};
q.createTextNode=function(a){return this.ba.createTextNode(a)};q.Sk=function(a,b,c){for(var d=this.ba,f=!!c,c=["<tr>"],g=0;g<b;g++)c.push(f?"<td>&nbsp;</td>":"<td></td>");c.push("</tr>");c=c.join("");b=["<table>"];for(g=0;g<a;g++)b.push(c);b.push("</table>");a=d.createElement("DIV");a.innerHTML=b.join("");return a.removeChild(a.firstChild)};function td(a,b){return Tc(a.ba,b)}function ud(a){return Gc(a.ba)}q.v=function(){return this.ba.parentWindow||this.ba.defaultView};
function vd(a){return Lc(a.ba)}q.appendChild=function(a,b){a.appendChild(b)};q.append=Uc;q.Jm=Vc;q.Dp=Wc;q.removeNode=Q;q.Qs=Zc;q.Zo=ad;q.contains=cd;var wd=!D||Yb(),xd=!D||Yb(),yd=D&&!I("8");function zd(){}zd.prototype.Hd=m;zd.prototype.m=function(){if(!this.Hd)this.Hd=j,this.d()};zd.prototype.d=function(){this.Ds&&Ad.apply(k,this.Ds)};function Bd(a){a&&typeof a.m=="function"&&a.m()}function Ad(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];la(d)?Ad.apply(k,d):Bd(d)}};function Cd(a,b){this.type=a;this.currentTarget=this.target=b}z(Cd,zd);q=Cd.prototype;q.d=function(){delete this.type;delete this.target;delete this.currentTarget};q.uf=m;q.Uh=j;q.stopPropagation=function(){this.uf=j};q.preventDefault=function(){this.Uh=m};function Dd(a){a.stopPropagation()}function Ed(a){a.preventDefault()};var S="click",Fd="keydown",Gd=D?"focusin":"DOMFocusIn",Hd={Jw:S,Pw:"dblclick",xx:"mousedown",Bx:"mouseup",Ax:"mouseover",zx:"mouseout",yx:"mousemove",Tx:"selectstart",rx:"keypress",qx:Fd,sx:"keyup",Gr:"blur",Jr:"focus",Qw:"deactivate",$w:Gd,ax:D?"focusout":"DOMFocusOut",Hr:"change",Rx:"select",dy:"submit",kx:"input",Lx:"propertychange",Vw:"dragstart",Sw:"dragenter",Uw:"dragover",Tw:"dragleave",Ww:"drop",ky:"touchstart",jy:"touchmove",iy:"touchend",hy:"touchcancel",Mw:"contextmenu",Zw:"error",hx:"help",
Kr:"load",ux:"losecapture",Nx:"readystatechange",Px:"resize",Qx:"scroll",Mr:"unload",gx:"hashchange",Gx:"pagehide",Hx:"pageshow",Kx:"popstate",Nw:"copy",Ix:"paste",Ow:"cut",Dw:"beforecopy",Ew:"beforecut",Gw:"beforepaste",wx:"message",Lw:"connect",ly:G?"webkitTransitionEnd":C?"oTransitionEnd":"transitionend"};function Id(a){Id[" "](a);return a}Id[" "]=ga;function Jd(a,b){try{return Id(a[b]),j}catch(c){}return m};function Kd(a,b){a&&this.init(a,b)}z(Kd,Cd);var Ld=[1,4,2];q=Kd.prototype;q.target=k;q.relatedTarget=k;q.offsetX=0;q.offsetY=0;q.clientX=0;q.clientY=0;q.screenX=0;q.screenY=0;q.button=0;q.keyCode=0;q.charCode=0;q.ctrlKey=m;q.altKey=m;q.shiftKey=m;q.metaKey=m;q.lv=m;q.wa=k;
q.init=function(a,b){var c=this.type=a.type;Cd.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d)E&&(Jd(d,"nodeName")||(d=k));else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==h?a.offsetX:a.layerX;this.offsetY=a.offsetY!==h?a.offsetY:a.layerY;this.clientX=a.clientX!==h?a.clientX:a.pageX;this.clientY=a.clientY!==h?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.lv=Eb?a.metaKey:a.ctrlKey;this.state=a.state;this.wa=a;delete this.Uh;delete this.uf};function Md(a){return(wd?a.wa.button==0:a.type=="click"?j:!!(a.wa.button&Ld[0]))&&!(G&&Eb&&a.ctrlKey)}
q.stopPropagation=function(){Kd.c.stopPropagation.call(this);this.wa.stopPropagation?this.wa.stopPropagation():this.wa.cancelBubble=j};q.preventDefault=function(){Kd.c.preventDefault.call(this);var a=this.wa;if(a.preventDefault)a.preventDefault();else if(a.returnValue=m,yd)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}};q.Vo=o("wa");q.d=function(){Kd.c.d.call(this);this.relatedTarget=this.currentTarget=this.target=this.wa=k};function Nd(){}var Od=0;q=Nd.prototype;q.key=0;q.xf=m;q.Kk=m;q.init=function(a,b,c,d,f,g){na(a)?this.Gp=j:a&&a.handleEvent&&na(a.handleEvent)?this.Gp=m:e(Error("Invalid listener argument"));this.rg=a;this.Eq=b;this.src=c;this.type=d;this.capture=!!f;this.ej=g;this.Kk=m;this.key=++Od;this.xf=m};q.handleEvent=function(a){return this.Gp?this.rg.call(this.ej||this.src,a):this.rg.handleEvent.call(this.rg,a)};function Pd(a,b){this.qf=b;this.Ya=[];a>this.qf&&e(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.Ya.push(this.Tf())}z(Pd,zd);q=Pd.prototype;q.Te=k;q.Bo=k;q.cf=function(){return this.Ya.length?this.Ya.pop():this.Tf()};q.Wd=function(a){this.Ya.length<this.qf?this.Ya.push(a):this.Xf(a)};q.Tf=function(){return this.Te?this.Te():{}};q.Xf=function(a){if(this.Bo)this.Bo(a);else if(oa(a))if(na(a.m))a.m();else for(var b in a)delete a[b]};
q.d=function(){Pd.c.d.call(this);for(var a=this.Ya;a.length;)this.Xf(a.pop());delete this.Ya};var Qd,Rd=(Qd="ScriptEngine"in s&&s.ScriptEngine()=="JScript")?s.ScriptEngineMajorVersion()+"."+s.ScriptEngineMinorVersion()+"."+s.ScriptEngineBuildVersion():"0";var Sd,Td,Ud,Vd,Wd,Xd,Yd,Zd,$d,ae,be;
(function(){function a(){return{Y:0,Nc:0}}function b(){return[]}function c(){var a=xd?function(b){return i.call(a.src,a.key,b)}:function(b){b=i.call(a.src,a.key,b);if(!b)return b};return a}function d(){return new Nd}function f(){return new Kd}var g=Qd&&!(Ua(Rd,"5.7")>=0),i;Xd=function(a){i=a};if(g){Sd=function(){return l.cf()};Td=function(a){l.Wd(a)};Ud=function(){return n.cf()};Vd=function(a){n.Wd(a)};Wd=function(){return r.cf()};Yd=function(){r.Wd(c())};Zd=function(){return v.cf()};$d=function(a){v.Wd(a)};
ae=function(){return F.cf()};be=function(a){F.Wd(a)};var l=new Pd(0,600);l.Te=a;var n=new Pd(0,600);n.Te=b;var r=new Pd(0,600);r.Te=c;var v=new Pd(0,600);v.Te=d;var F=new Pd(0,600);F.Te=f}else Sd=a,Td=ga,Ud=b,Vd=ga,Wd=c,Yd=ga,Zd=d,$d=ga,ae=f,be=ga})();var ce={},de={},ee={},fe={};
function T(a,b,c,d,f){if(b){if(ka(b)){for(var g=0;g<b.length;g++)T(a,b[g],c,d,f);return k}var d=!!d,i=de;b in i||(i[b]=Sd());i=i[b];d in i||(i[d]=Sd(),i.Y++);var i=i[d],l=pa(a),n;i.Nc++;if(i[l]){n=i[l];for(g=0;g<n.length;g++)if(i=n[g],i.rg==c&&i.ej==f){if(i.xf)break;return n[g].key}}else n=i[l]=Ud(),i.Y++;g=Wd();g.src=a;i=Zd();i.init(c,g,a,b,d,f);c=i.key;g.key=c;n.push(i);ce[c]=i;ee[l]||(ee[l]=Ud());ee[l].push(i);a.addEventListener?(a==s||!a.to)&&a.addEventListener(b,g,d):a.attachEvent(b in fe?fe[b]:
fe[b]="on"+b,g);return c}e(Error("Invalid event type"))}function ge(a,b,c,d,f){if(ka(b))for(var g=0;g<b.length;g++)ge(a,b[g],c,d,f);else a=T(a,b,c,d,f),ce[a].Kk=j}function he(a,b,c,d,f){if(ka(b))for(var g=0;g<b.length;g++)he(a,b[g],c,d,f);else if(d=!!d,a=ie(a,b,d))for(g=0;g<a.length;g++)if(a[g].rg==c&&a[g].capture==d&&a[g].ej==f){je(a[g].key);break}}
function je(a){if(!ce[a])return m;var b=ce[a];if(b.xf)return m;var c=b.src,d=b.type,f=b.Eq,g=b.capture;c.removeEventListener?(c==s||!c.to)&&c.removeEventListener(d,f,g):c.detachEvent&&c.detachEvent(d in fe?fe[d]:fe[d]="on"+d,f);c=pa(c);f=de[d][g][c];if(ee[c]){var i=ee[c];ob(i,b);i.length==0&&delete ee[c]}b.xf=j;f.fq=j;ke(d,g,c,f);delete ce[a];return j}
function ke(a,b,c,d){if(!d.wj&&d.fq){for(var f=0,g=0;f<d.length;f++)if(d[f].xf){var i=d[f].Eq;i.src=k;Yd(i);$d(d[f])}else f!=g&&(d[g]=d[f]),g++;d.length=g;d.fq=m;g==0&&(Vd(d),delete de[a][b][c],de[a][b].Y--,de[a][b].Y==0&&(Td(de[a][b]),delete de[a][b],de[a].Y--),de[a].Y==0&&(Td(de[a]),delete de[a]))}}
function le(a){var b,c=0,d=b==k;b=!!b;if(a==k)kc(ee,function(a){for(var f=a.length-1;f>=0;f--){var g=a[f];if(d||b==g.capture)je(g.key),c++}});else if(a=pa(a),ee[a])for(var a=ee[a],f=a.length-1;f>=0;f--){var g=a[f];if(d||b==g.capture)je(g.key),c++}}function ie(a,b,c){var d=de;return b in d&&(d=d[b],c in d&&(d=d[c],a=pa(a),d[a]))?d[a]:k}
function me(a,b,c,d,f){var g=1,b=pa(b);if(a[b]){a.Nc--;a=a[b];a.wj?a.wj++:a.wj=1;try{for(var i=a.length,l=0;l<i;l++){var n=a[l];n&&!n.xf&&(g&=ne(n,f)!==m)}}finally{a.wj--,ke(c,d,b,a)}}return Boolean(g)}function ne(a,b){var c=a.handleEvent(b);a.Kk&&je(a.key);return c}
Xd(function(a,b){if(!ce[a])return j;var c=ce[a],d=c.type,f=de;if(!(d in f))return j;var f=f[d],g,i;if(!xd){g=b||da("window.event");var l=j in f,n=m in f;if(l){if(g.keyCode<0||g.returnValue!=h)return j;a:{var r=m;if(g.keyCode==0)try{g.keyCode=-1;break a}catch(v){r=j}if(r||g.returnValue==h)g.returnValue=j}}r=ae();r.init(g,this);g=j;try{if(l){for(var F=Ud(),R=r.currentTarget;R;R=R.parentNode)F.push(R);i=f[j];i.Nc=i.Y;for(var H=F.length-1;!r.uf&&H>=0&&i.Nc;H--)r.currentTarget=F[H],g&=me(i,F[H],d,j,r);
if(n){i=f[m];i.Nc=i.Y;for(H=0;!r.uf&&H<F.length&&i.Nc;H++)r.currentTarget=F[H],g&=me(i,F[H],d,m,r)}}else g=ne(c,r)}finally{if(F)F.length=0,Vd(F);r.m();be(r)}return g}d=new Kd(b,this);try{g=ne(c,d)}finally{d.m()}return g});var oe=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function pe(a){return a&&decodeURIComponent(a)}function qe(a){var b=a.match(oe),a=b[1],c=b[2],d=b[3],b=b[4],f=[];a&&f.push(a,":");d&&(f.push("//"),c&&f.push(c,"@"),f.push(d),b&&f.push(":",b));return f.join("")}function re(a,b){var c=a.match(oe),d=b.match(oe);return c[3]==d[3]&&c[1]==d[1]&&c[4]==d[4]}
function U(a){var b=[],c;for(c in a){var d=c,f=a[c],g=b;if(ka(f))for(var i=0;i<f.length;i++)g.push("&",d),f[i]!==""&&g.push("=",Ja(f[i]));else f!=k&&(g.push("&",d),f!==""&&g.push("=",Ja(f)))}b[0]="";return b.join("")}function se(a,b,c,d){for(var f=c.length;(b=a.indexOf(c,b))>=0&&b<d;){var g=a.charCodeAt(b-1);if(g==38||g==63)if(g=a.charCodeAt(b+f),!g||g==61||g==38||g==35)return b;b+=f+1}return-1}var te=/#|$/;
function ue(a,b){var c=a.search(te),d=se(a,0,b,c);if(d<0)return k;var f=a.indexOf("&",d);if(f<0||f>c)f=c;d+=b.length+1;return Ka(a.substr(d,f-d))}var ve=/[?&]($|#)/;
function we(a,b){for(var c=a.search(te),d=0,f,g=[];(f=se(a,d,"angle",c))>=0;)g.push(a.substring(d,f)),d=Math.min(a.indexOf("&",f)+1||c,c);g.push(a.substr(d));c=[g.join("").replace(ve,"$1"),"&","angle","=",Ja(b)];c[1]&&(d=c[0],f=d.indexOf("#"),f>=0&&(c.push(d.substr(f)),c[0]=d=d.substr(0,f)),f=d.indexOf("?"),f<0?c[1]="?":f==d.length-1&&(c[1]=h));return c.join("")};function xe(){}z(xe,zd);q=xe.prototype;q.to=j;q.Qj=k;q.Um=ba("Qj");q.addEventListener=function(a,b,c,d){T(this,a,b,c,d)};q.removeEventListener=function(a,b,c,d){he(this,a,b,c,d)};
q.dispatchEvent=function(a){var b=a.type||a,c=de;if(b in c){if(t(a))a=new Cd(a,this);else if(a instanceof Cd)a.target=a.target||this;else{var d=a,a=new Cd(b,this);wc(a,d)}var d=1,f,c=c[b],b=j in c,g;if(b){f=[];for(g=this;g;g=g.Qj)f.push(g);g=c[j];g.Nc=g.Y;for(var i=f.length-1;!a.uf&&i>=0&&g.Nc;i--)a.currentTarget=f[i],d&=me(g,f[i],a.type,j,a)&&a.Uh!=m}if(m in c)if(g=c[m],g.Nc=g.Y,b)for(i=0;!a.uf&&i<f.length&&g.Nc;i++)a.currentTarget=f[i],d&=me(g,f[i],a.type,m,a)&&a.Uh!=m;else for(f=this;!a.uf&&f&&
g.Nc;f=f.Qj)a.currentTarget=f,d&=me(g,f,a.type,m,a)&&a.Uh!=m;a=Boolean(d)}else a=j;return a};q.d=function(){xe.c.d.call(this);le(this);this.Qj=k};function ye(a,b){this.jf=a||1;this.ji=b||ze;this.Ik=u(this.lw,this);this.Zl=va()}z(ye,xe);ye.prototype.enabled=m;var ze=s.window;q=ye.prototype;q.K=k;q.setInterval=function(a){this.jf=a;this.K&&this.enabled?(this.stop(),this.start()):this.K&&this.stop()};q.lw=function(){if(this.enabled){var a=va()-this.Zl;if(a>0&&a<this.jf*0.8)this.K=this.ji.setTimeout(this.Ik,this.jf-a);else if(this.dispatchEvent(Ae),this.enabled)this.K=this.ji.setTimeout(this.Ik,this.jf),this.Zl=va()}};
q.start=function(){this.enabled=j;if(!this.K)this.K=this.ji.setTimeout(this.Ik,this.jf),this.Zl=va()};q.stop=function(){this.enabled=m;if(this.K)this.ji.clearTimeout(this.K),this.K=k};q.d=function(){ye.c.d.call(this);this.stop();delete this.ji};var Ae="tick";function Be(a,b,c){na(a)?c&&(a=u(a,c)):a&&typeof a.handleEvent=="function"?a=u(a.handleEvent,a):e(Error("Invalid listener argument"));return b>2147483647?-1:ze.setTimeout(a,b||0)}function Ce(a){ze.clearTimeout(a)};function De(a){return typeof a.xa=="function"?a.xa():la(a)||t(a)?a.length:nc(a)}function Ee(a){if(typeof a.Za=="function")return a.Za();if(t(a))return a.split("");if(la(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return oc(a)}function Fe(a){if(typeof a.dd=="function")return a.dd();if(typeof a.Za!="function"){if(la(a)||t(a)){for(var b=[],a=a.length,c=0;c<a;c++)b.push(c);return b}return pc(a)}}
function Ge(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(la(a)||t(a))A(a,b,c);else for(var d=Fe(a),f=Ee(a),g=f.length,i=0;i<g;i++)b.call(c,f[i],d&&d[i],a)}function He(a,b){if(typeof a.every=="function")return a.every(b,h);if(la(a)||t(a))return kb(a,b,h);for(var c=Fe(a),d=Ee(a),f=d.length,g=0;g<f;g++)if(!b.call(h,d[g],c&&c[g],a))return m;return j};var Ie="StopIteration"in s?s.StopIteration:Error("StopIteration");function Je(){}Je.prototype.next=function(){e(Ie)};Je.prototype.xd=function(){return this};function Ke(a){if(a instanceof Je)return a;if(typeof a.xd=="function")return a.xd(m);if(la(a)){var b=0,c=new Je;c.next=function(){for(;;){b>=a.length&&e(Ie);if(b in a)return a[b++];b++}};return c}e(Error("Not implemented"))}
function Le(a,b){if(la(a))try{A(a,b,h)}catch(c){c!==Ie&&e(c)}else{a=Ke(a);try{for(;;)b.call(h,a.next(),h,a)}catch(d){d!==Ie&&e(d)}}}function Me(a,b){var a=Ke(a),c=new Je;c.next=function(){for(;;){var c=a.next();if(b.call(h,c,h,a))return c}};return c}function Ne(a,b){a=Ke(a);try{for(;;)if(b.call(h,a.next(),h,a))return j}catch(c){c!==Ie&&e(c)}return m}
function Oe(a){var b=arguments,c=b.length,d=0,f=new Je;f.next=function(){try{return d>=c&&e(Ie),Ke(b[d]).next()}catch(a){return(a!==Ie||d>=c)&&e(a),d++,this.next()}};return f};function Pe(a,b){this.ma={};this.la=[];var c=arguments.length;if(c>1){c%2&&e(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.Ug(a)}q=Pe.prototype;q.Y=0;q.Ge=0;q.xa=o("Y");q.Za=function(){Qe(this);for(var a=[],b=0;b<this.la.length;b++)a.push(this.ma[this.la[b]]);return a};q.dd=function(){Qe(this);return this.la.concat()};q.sb=function(a){return Re(this.ma,a)};
q.Ii=function(a){for(var b=0;b<this.la.length;b++){var c=this.la[b];if(Re(this.ma,c)&&this.ma[c]==a)return j}return m};q.ag=function(a,b){if(this===a)return j;if(this.Y!=a.xa())return m;var c=b||Se;Qe(this);for(var d,f=0;d=this.la[f];f++)if(!c(this.get(d),a.get(d)))return m;return j};function Se(a,b){return a===b}q.Hc=function(){return this.Y==0};q.clear=function(){this.ma={};this.Ge=this.Y=this.la.length=0};
q.remove=function(a){return Re(this.ma,a)?(delete this.ma[a],this.Y--,this.Ge++,this.la.length>2*this.Y&&Qe(this),j):m};function Qe(a){if(a.Y!=a.la.length){for(var b=0,c=0;b<a.la.length;){var d=a.la[b];Re(a.ma,d)&&(a.la[c++]=d);b++}a.la.length=c}if(a.Y!=a.la.length){for(var f={},c=b=0;b<a.la.length;)d=a.la[b],Re(f,d)||(a.la[c++]=d,f[d]=1),b++;a.la.length=c}}q.get=function(a,b){return Re(this.ma,a)?this.ma[a]:b};q.set=function(a,b){Re(this.ma,a)||(this.Y++,this.la.push(a),this.Ge++);this.ma[a]=b};
q.Ug=function(a){var b;a instanceof Pe?(b=a.dd(),a=a.Za()):(b=pc(a),a=oc(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};q.U=function(){return new Pe(this)};function Te(a){Qe(a);for(var b={},c=0;c<a.la.length;c++){var d=a.la[c];b[d]=a.ma[d]}return b}q.xd=function(a){Qe(this);var b=0,c=this.la,d=this.ma,f=this.Ge,g=this,i=new Je;i.next=function(){for(;;){f!=g.Ge&&e(Error("The map has changed since the iterator was created"));b>=c.length&&e(Ie);var i=c[b++];return a?i:d[i]}};return i};
function Re(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Ue(a){this.ma=new Pe;a&&this.Ug(a)}function Ve(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+pa(a):b.substr(0,1)+a}q=Ue.prototype;q.xa=function(){return this.ma.xa()};q.add=function(a){this.ma.set(Ve(a),a)};q.Ug=function(a){for(var a=Ee(a),b=a.length,c=0;c<b;c++)this.add(a[c])};q.mc=function(a){for(var a=Ee(a),b=a.length,c=0;c<b;c++)this.remove(a[c])};q.remove=function(a){return this.ma.remove(Ve(a))};q.clear=function(){this.ma.clear()};q.Hc=function(){return this.ma.Hc()};
q.contains=function(a){return this.ma.sb(Ve(a))};q.Ep=function(a){for(var b=new Ue,a=Ee(a),c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};q.Za=function(){return this.ma.Za()};q.U=function(){return new Ue(this)};q.ag=function(a){return this.xa()==De(a)&&We(this,a)};
function We(a,b){var c=De(b);if(a.xa()>c)return m;!(b instanceof Ue)&&c>5&&(b=new Ue(b));return He(a,function(a){if(typeof b.contains=="function")a=b.contains(a);else if(typeof b.Ii=="function")a=b.Ii(a);else if(la(b)||t(b))a=B(b,a);else a:{for(var c in b)if(b[c]==a){a=j;break a}a=m}return a})}q.xd=function(){return this.ma.xd(m)};function Xe(a){return Ye(a||arguments.callee.caller,[])}
function Ye(a,b){var c=[];if(B(b,a))c.push("[...circular reference...]");else if(a&&b.length<50){c.push(Ze(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":break;case "number":g=""+g;break;case "boolean":g=g?"true":"false";break;case "function":g=(g=Ze(g))?g:"[fn]";break;default:g=typeof g}g.length>40&&(g=g.substr(0,40)+"...");c.push(g)}b.push(a);c.push(")\n");try{c.push(Ye(a.caller,b))}catch(i){c.push("[exception trying to get caller]\n")}}else a?
c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Ze(a){if($e[a])return $e[a];a=""+a;if(!$e[a]){var b=/function ([^\(]+)/.exec(a);$e[a]=b?b[1]:"[Anonymous]"}return $e[a]}var $e={};function af(a,b,c,d,f){this.reset(a,b,c,d,f)}af.prototype.Jv=0;af.prototype.Ko=k;af.prototype.Jo=k;var bf=0;af.prototype.reset=function(a,b,c,d,f){this.Jv=typeof f=="number"?f:bf++;this.Sy=d||va();this.Fh=a;this.Du=b;this.Jy=c;delete this.Ko;delete this.Jo};af.prototype.Zq=ba("Fh");function cf(a){this.yg=a}cf.prototype.Ca=k;cf.prototype.Fh=k;cf.prototype.Da=k;cf.prototype.rp=k;function df(a,b){this.name=a;this.value=b}df.prototype.toString=o("name");var ef=new df("SHOUT",1200),ff=new df("SEVERE",1E3),gf=new df("WARNING",900),hf=new df("INFO",800),jf=new df("CONFIG",700),kf=new df("FINE",500),lf=new df("FINEST",300);q=cf.prototype;q.getName=o("yg");q.getParent=o("Ca");q.Zq=ba("Fh");
function mf(a){if(a.Fh)return a.Fh;if(a.Ca)return mf(a.Ca);cb("Root logger has no level set.");return k}q.log=function(a,b,c){if(a.value>=mf(this).value){a=this.Ss(a,b,c);b="log:"+a.Du;s.console&&(s.console.timeStamp?s.console.timeStamp(b):s.console.markTimeline&&s.console.markTimeline(b));s.msWriteProfilerMark&&s.msWriteProfilerMark(b);for(b=this;b;){var c=b,d=a;if(c.rp)for(var f=0,g=h;g=c.rp[f];f++)g(d);b=b.getParent()}}};
q.Ss=function(a,b,c){var d=new af(a,""+b,this.yg);if(c){d.Ko=c;var f;var g=arguments.callee.caller;try{var i;var l=da("window.location.href");if(t(c))i={message:c,name:"Unknown error",lineNumber:"Not available",fileName:l,stack:"Not available"};else{var n,r,v=m;try{n=c.lineNumber||c.Gy||"Not available"}catch(F){n="Not available",v=j}try{r=c.fileName||c.filename||c.sourceURL||l}catch(R){r="Not available",v=j}i=v||!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:n,fileName:r,
stack:c.stack||"Not available"}:c}f="Message: "+La(i.message)+'\nUrl: <a href="view-source:'+i.fileName+'" target="_new">'+i.fileName+"</a>\nLine: "+i.lineNumber+"\n\nBrowser stack:\n"+La(i.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+La(Xe(g)+"-> ")}catch(H){f="Exception trying to expose exception! You win, we lose. "+H}d.Jo=f}return d};function nf(a,b,c){a.log(ff,b,c)}function of(a,b){a.log(gf,b,h)}q.info=function(a,b){this.log(hf,a,b)};function pf(a,b){a.log(kf,b,h)}
function qf(a,b){a.log(lf,b,h)}var rf={},sf=k;function uf(a){sf||(sf=new cf(""),rf[""]=sf,sf.Zq(jf));var b;if(!(b=rf[a])){b=new cf(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=uf(a.substr(0,c));if(!c.Da)c.Da={};c.Da[d]=b;b.Ca=c;rf[a]=b}return b};function vf(a){a=""+a;if(/^\s*$/.test(a)?0:/^[\],:{}\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){}e(Error("Invalid JSON string: "+a))}function wf(a){var b=[];xf(new yf,a,b);return b.join("")}function yf(){this.Xj=h}
function xf(a,b,c){switch(typeof b){case "string":zf(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==k){c.push("null");break}if(ka(b)){var d=b.length;c.push("[");for(var f="",g=0;g<d;g++)c.push(f),f=b[g],xf(a,a.Xj?a.Xj.call(b,""+g,f):f,c),f=",";c.push("]");break}c.push("{");d="";for(g in b)Object.prototype.hasOwnProperty.call(b,g)&&(f=b[g],typeof f!="function"&&(c.push(d),zf(g,c),c.push(":"),
xf(a,a.Xj?a.Xj.call(b,g,f):f,c),d=","));c.push("}");break;case "function":break;default:e(Error("Unknown type: "+typeof b))}}var Af={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},Bf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function zf(a,b){b.push('"',a.replace(Bf,function(a){if(a in Af)return Af[a];var b=a.charCodeAt(0),f="\\u";b<16?f+="000":b<256?f+="00":b<4096&&(f+="0");return Af[a]=f+b.toString(16)}),'"')};function Cf(){}Cf.prototype.Vn=k;function Df(a){var b;if(!(b=a.Vn))b={},Ef(a)&&(b[0]=j,b[1]=j),b=a.Vn=b;return b};var Ff;function Gf(){}z(Gf,Cf);function Hf(a){return(a=Ef(a))?new ActiveXObject(a):new XMLHttpRequest}Gf.prototype.Ll=k;
function Ef(a){if(!a.Ll&&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{return new ActiveXObject(d),a.Ll=d}catch(f){}}e(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return a.Ll}Ff=new Gf;function If(){if(E)this.Se={},this.yk={},this.lk=[]}If.prototype.ya=uf("goog.net.xhrMonitor");If.prototype.ka=E;If.prototype.Ia=function(a){this.ka=E&&a};function Jf(a){var b=Kf;if(b.ka){var c=t(a)?a:oa(a)?pa(a):"";qf(b.ya,"Pushing context: "+a+" ("+c+")");b.lk.push(c)}}function Lf(){var a=Kf;if(a.ka){var b=a.lk.pop();qf(a.ya,"Popping context: "+b);Mf(a,b)}}
function Nf(a){var b=Kf;if(b.ka){a=pa(a);pf(b.ya,"Opening XHR : "+a);for(var c=0;c<b.lk.length;c++){var d=b.lk[c];Of(b.Se,d,a);Of(b.yk,a,d)}}}function Mf(a,b){var c=a.yk[b],d=a.Se[b];c&&d&&(qf(a.ya,"Updating dependent contexts"),A(c,function(a){A(d,function(b){Of(this.Se,a,b);Of(this.yk,b,a)},this)},a))}function Of(a,b,c){a[b]||(a[b]=[]);B(a[b],c)||a[b].push(c)}var Kf=new If;function Pf(a){this.headers=new Pe;this.zk=a||k}z(Pf,xe);Pf.prototype.ya=uf("goog.net.XhrIo");var Qf=/^https?:?$/i,Rf=[];function V(a,b,c,d){var f=new Pf;Rf.push(f);b&&T(f,"complete",b);T(f,"ready",ua(Sf,f));f.send(a,c,d,h)}function Sf(a){a.m();ob(Rf,a)}q=Pf.prototype;q.ee=m;q.aa=k;q.xk=k;q.Eh="";q.Kp="";q.Ch=0;q.Dh="";q.kl=m;q.jj=m;q.Nl=m;q.ff=m;q.qk=0;q.Ef=k;q.Oq="";q.uw=m;
q.send=function(a,b,c,d){this.aa&&e(Error("[goog.net.XhrIo] Object is active with another request"));b=b?b.toUpperCase():"GET";this.Eh=a;this.Dh="";this.Ch=0;this.Kp=b;this.kl=m;this.ee=j;this.aa=this.zk?Hf(this.zk):Hf(Ff);this.xk=this.zk?Df(this.zk):Df(Ff);Nf(this.aa);this.aa.onreadystatechange=u(this.oq,this);try{pf(this.ya,Tf(this,"Opening Xhr")),this.Nl=j,this.aa.open(b,a,j),this.Nl=m}catch(f){pf(this.ya,Tf(this,"Error opening Xhr: "+f.message));Uf(this,f);return}var a=c||"",g=this.headers.U();
d&&Ge(d,function(a,b){g.set(b,a)});b=="POST"&&!g.sb("Content-Type")&&g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Ge(g,function(a,b){this.aa.setRequestHeader(b,a)},this);if(this.Oq)this.aa.responseType=this.Oq;if("withCredentials"in this.aa)this.aa.withCredentials=this.uw;try{if(this.Ef)ze.clearTimeout(this.Ef),this.Ef=k;if(this.qk>0)pf(this.ya,Tf(this,"Will abort after "+this.qk+"ms if incomplete")),this.Ef=ze.setTimeout(u(this.mw,this),this.qk);pf(this.ya,Tf(this,"Sending request"));
this.jj=j;this.aa.send(a);this.jj=m}catch(i){pf(this.ya,Tf(this,"Send error: "+i.message)),Uf(this,i)}};q.dispatchEvent=function(a){if(this.aa){Jf(this.aa);try{return Pf.c.dispatchEvent.call(this,a)}finally{Lf()}}else return Pf.c.dispatchEvent.call(this,a)};q.mw=function(){if(typeof ca!="undefined"&&this.aa)this.Dh="Timed out after "+this.qk+"ms, aborting",this.Ch=8,pf(this.ya,Tf(this,this.Dh)),this.dispatchEvent("timeout"),this.abort(8)};
function Uf(a,b){a.ee=m;if(a.aa)a.ff=j,a.aa.abort(),a.ff=m;a.Dh=b;a.Ch=5;Vf(a);Wf(a)}function Vf(a){if(!a.kl)a.kl=j,a.dispatchEvent("complete"),a.dispatchEvent("error")}q.abort=function(a){if(this.aa&&this.ee)pf(this.ya,Tf(this,"Aborting")),this.ee=m,this.ff=j,this.aa.abort(),this.ff=m,this.Ch=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Wf(this)};q.d=function(){if(this.aa){if(this.ee)this.ee=m,this.ff=j,this.aa.abort(),this.ff=m;Wf(this,j)}Pf.c.d.call(this)};
q.oq=function(){!this.Nl&&!this.jj&&!this.ff?this.Xu():Xf(this)};q.Xu=function(){Xf(this)};
function Xf(a){if(a.ee&&typeof ca!="undefined")if(a.xk[1]&&Yf(a)==4&&Zf(a)==2)pf(a.ya,Tf(a,"Local request error detected and ignored"));else if(a.jj&&Yf(a)==4)ze.setTimeout(u(a.oq,a),0);else if(a.dispatchEvent("readystatechange"),Yf(a)==4){pf(a.ya,Tf(a,"Request complete"));a.ee=m;if($f(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.Ch=6;var b;try{b=Yf(a)>2?a.aa.statusText:""}catch(c){pf(a.ya,"Can not get status: "+c.message),b=""}a.Dh=b+" ["+Zf(a)+"]";Vf(a)}Wf(a)}}
function Wf(a,b){if(a.aa){var c=a.aa,d=a.xk[0]?ga:k;a.aa=k;a.xk=k;if(a.Ef)ze.clearTimeout(a.Ef),a.Ef=k;b||(Jf(c),a.dispatchEvent("ready"),Lf());var f=Kf;if(f.ka){var g=pa(c);pf(f.ya,"Closing XHR : "+g);delete f.yk[g];for(var i in f.Se)ob(f.Se[i],g),f.Se[i].length==0&&delete f.Se[i]}try{c.onreadystatechange=d}catch(l){nf(a.ya,"Problem encountered resetting onreadystatechange: "+l.message)}}}q.Fc=function(){return!!this.aa};
function $f(a){switch(Zf(a)){case 0:return a=t(a.Eh)?a.Eh.match(oe)[1]||k:a.Eh.Yd,!(a?Qf.test(a):self.location?Qf.test(self.location.protocol):1);case 200:case 201:case 202:case 204:case 304:case 1223:return j;default:return m}}function Yf(a){return a.aa?a.aa.readyState:0}function Zf(a){try{return Yf(a)>2?a.aa.status:-1}catch(b){return of(a.ya,"Can not get status: "+b.message),-1}}
function ag(a){try{return a.aa?a.aa.responseText:""}catch(b){return pf(a.ya,"Can not get responseText: "+b.message),""}}function bg(a){if(a.aa)return vf(a.aa.responseText)}function Tf(a,b){return b+" ["+a.Kp+" "+a.Eh+" "+Zf(a)+"]"};function cg(a,b){a.setAttribute("role",b);a.Py=b}function dg(a,b,c){a.setAttribute("aria-"+b,c)};function eg(a,b,c,d,f){if(!D&&(!G||!I("525")))return j;if(Eb&&f)return fg(a);if(f&&!d)return m;if(!c&&(b==17||b==18))return m;if(D&&d&&b==a)return m;switch(a){case 13:return!(D&&Yb());case 27:return!G}return fg(a)}
function fg(a){if(a>=48&&a<=57)return j;if(a>=96&&a<=106)return j;if(a>=65&&a<=90)return j;if(G&&a==0)return j;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return j;default:return m}};function gg(a){this.fa=a;this.la=[]}z(gg,zd);var hg=[];q=gg.prototype;q.h=function(a,b,c,d,f){ka(b)||(hg[0]=b,b=hg);for(var g=0;g<b.length;g++)this.la.push(T(a,b[g],c||this,d||m,f||this.fa||this));return this};q.Sa=function(a,b,c,d,f){if(ka(b))for(var g=0;g<b.length;g++)this.Sa(a,b[g],c,d,f);else{a:{c=c||this;f=f||this.fa||this;d=!!d;if(a=ie(a,b,d))for(b=0;b<a.length;b++)if(!a[b].xf&&a[b].rg==c&&a[b].capture==d&&a[b].ej==f){a=a[b];break a}a=k}if(a)a=a.key,je(a),ob(this.la,a)}return this};
q.mc=function(){A(this.la,je);this.la.length=0};q.d=function(){gg.c.d.call(this);this.mc()};q.handleEvent=function(){e(Error("EventHandler.handleEvent not implemented"))};function ig(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}ig.prototype.U=function(){return new ig(this.top,this.right,this.bottom,this.left)};ig.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};ig.prototype.contains=function(a){return!this||!a?m:a instanceof ig?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};
ig.prototype.expand=function(a,b,c,d){oa(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};function jg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}q=jg.prototype;q.U=function(){return new jg(this.left,this.top,this.width,this.height)};function kg(a){return new ig(a.top,a.left+a.width,a.top+a.height,a.left)}q.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
q.Ep=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top),a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,j}return m};q.contains=function(a){return a instanceof jg?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};
q.sl=function(){return new ic(this.width,this.height)};function lg(a,b,c){this.target=a;this.handle=b||a;this.od=c||new jg(NaN,NaN,NaN,NaN);this.ba=P(a);this.w=new gg(this);T(this.handle,["touchstart","mousedown"],this.lr,m,this)}z(lg,xe);var mg=D||E&&I("1.9.3");q=lg.prototype;q.clientX=0;q.clientY=0;q.screenX=0;q.screenY=0;q.fi=0;q.gi=0;q.Ue=0;q.xc=0;q.ka=j;q.zc=m;q.Kl=0;q.aq=0;q.$t=m;q.ca=o("w");function ng(a,b){a.od=b||new jg(NaN,NaN,NaN,NaN)}q.Ia=ba("ka");
q.d=function(){lg.c.d.call(this);he(this.handle,["touchstart","mousedown"],this.lr,m,this);this.w.m();delete this.target;delete this.handle;delete this.w};
q.lr=function(a){var b=a.type=="mousedown";if(this.ka&&!this.zc&&(!b||Md(a))){og(a);if(this.Kl==0)if(pg(this,a),this.zc)a.preventDefault();else return;else a.preventDefault();var b=this.ba,c=b.documentElement,d=!mg;this.w.h(b,["touchmove","mousemove"],this.yt,d);this.w.h(b,["touchend","mouseup"],this.$f,d);mg?(c.setCapture(m),this.w.h(c,"losecapture",this.$f)):this.w.h(Nc(b),"blur",this.$f);D&&this.$t&&this.w.h(b,"dragstart",Ed);this.Gv&&this.w.h(this.Gv,"scroll",this.Zu,d);this.clientX=this.fi=a.clientX;
this.clientY=this.gi=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.Ue=this.target.offsetLeft;this.xc=this.target.offsetTop;this.Oj=vd(O(this.ba));this.aq=va()}else this.dispatchEvent("earlycancel")};function pg(a,b){if(a.dispatchEvent(new qg("start",a,b.clientX,b.clientY,b))!==m)a.zc=j}
q.$f=function(a,b){this.w.mc();mg&&this.ba.releaseCapture();var c=rg(this,this.Ue),d=sg(this,this.xc);this.zc?(og(a),this.zc=m,this.dispatchEvent(new qg("end",this,a.clientX,a.clientY,a,c,d,b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel");(a.type=="touchend"||a.type=="touchcancel")&&a.preventDefault()};
function og(a){var b=a.type;b=="touchstart"||b=="touchmove"?a.init(a.wa.targetTouches[0],a.currentTarget):(b=="touchend"||b=="touchcancel")&&a.init(a.wa.changedTouches[0],a.currentTarget)}
q.yt=function(a){if(this.ka){og(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.zc){var d=this.fi-this.clientX,f=this.gi-this.clientY;if(d*d+f*f>this.Kl&&(pg(this,a),!this.zc)){this.$f(a);return}}c=tg(this,b,c);b=c.x;c=c.y;this.zc&&this.dispatchEvent(new qg("beforedrag",this,a.clientX,a.clientY,a,b,c))!==m&&(ug(this,a,b,c),a.preventDefault())}};
function tg(a,b,c){var d=vd(O(a.ba));b+=d.x-a.Oj.x;c+=d.y-a.Oj.y;a.Oj=d;a.Ue+=b;a.xc+=c;b=rg(a,a.Ue);a=sg(a,a.xc);return new M(b,a)}q.Zu=function(a){var b=tg(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;ug(this,a,b.x,b.y)};function ug(a,b,c,d){vg(a,c,d);a.dispatchEvent(new qg("drag",a,b.clientX,b.clientY,b,c,d))}function rg(a,b){var c=a.od,d=!isNaN(c.left)?c.left:k,c=!isNaN(c.width)?c.width:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))}
function sg(a,b){var c=a.od,d=!isNaN(c.top)?c.top:k,c=!isNaN(c.height)?c.height:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))}function vg(a,b,c){a.target.style.left=b+"px";a.target.style.top=c+"px"}function qg(a,b,c,d,f,g,i,l){Cd.call(this,a);this.clientX=c;this.clientY=d;this.uy=f;this.left=ja(g)?g:b.Ue;this.top=ja(i)?i:b.xc;this.Xe=b;this.zy=!!l}z(qg,Cd);function wg(a,b,c){t(b)?xg(a,c,b):kc(b,ua(xg,a))}function xg(a,b,c){a.style[Za(c)]=b}function yg(a,b){var c=P(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b):""}function zg(a,b){return a.currentStyle?a.currentStyle[b]:k}function Ag(a,b){return yg(a,b)||zg(a,b)||a.style[b]}function Bg(a){return Ag(a,"position")}
function Cg(a,b,c){var d,f=E&&(Eb||Ob)&&I("1.9");b instanceof M?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Dg(d,f);a.style.top=Dg(b,f)}function Eg(a){a=a?a.nodeType==9?a:P(a):document;return D&&!Yb()&&!ud(O(a))?a.body:a.documentElement}function Fg(a){var b=a.getBoundingClientRect();if(D)a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop;return b}
function Gg(a){if(D)return a.offsetParent;for(var b=P(a),c=Ag(a,"position"),d=c=="fixed"||c=="absolute",a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ag(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return k}
function Hg(a){for(var b=new ig(0,Infinity,Infinity,0),c=O(a),d=c.T().body,f=c.T().documentElement,g=Mc(c.ba);a=Gg(a);)if((!D||a.clientWidth!=0)&&(!G||a.clientHeight!=0||a!=d)&&a!=d&&a!=f&&Ag(a,"overflow")!="visible"){var i=Ig(a),l;l=a;if(E&&!I("1.9")){var n=parseFloat(yg(l,"borderLeftWidth"));if(Jg(l)){var r=l.offsetWidth-l.clientWidth-n-parseFloat(yg(l,"borderRightWidth"));n+=r}l=new M(n,parseFloat(yg(l,"borderTopWidth")))}else l=new M(l.clientLeft,l.clientTop);i.x+=l.x;i.y+=l.y;b.top=Math.max(b.top,
i.y);b.right=Math.min(b.right,i.x+a.clientWidth);b.bottom=Math.min(b.bottom,i.y+a.clientHeight);b.left=Math.max(b.left,i.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c=Jc(c.v());b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:k}
function Ig(a){var b,c=P(a),d=Ag(a,"position"),f=E&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),g=new M(0,0),i=Eg(c);if(a==i)return g;if(a.getBoundingClientRect)b=Fg(a),a=vd(O(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(i),g.x=b.screenX-a.screenX,g.y=b.screenY-a.screenY;else{b=a;do{g.x+=b.offsetLeft;g.y+=b.offsetTop;b!=a&&(g.x+=b.clientLeft||0,g.y+=b.clientTop||0);if(G&&
Bg(b)=="fixed"){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(C||G&&d=="absolute")g.y-=c.body.offsetTop;for(b=a;(b=Gg(b))&&b!=c.body&&b!=i;)if(g.x-=b.scrollLeft,!C||b.tagName!="TR")g.y-=b.scrollTop}return g}function Kg(a,b){var c=Lg(a),d=Lg(b);return new M(c.x-d.x,c.y-d.y)}
function Lg(a){var b=new M;if(a.nodeType==1)if(a.getBoundingClientRect)a=Fg(a),b.x=a.left,b.y=a.top;else{var c=vd(O(a)),a=Ig(a);b.x=a.x-c.x;b.y=a.y-c.y}else{var c=na(a.Vo),d=a;a.targetTouches?d=a.targetTouches[0]:c&&a.wa.targetTouches&&(d=a.wa.targetTouches[0]);b.x=d.clientX;b.y=d.clientY}return b}function Mg(a,b,c){b instanceof ic?(c=b.height,b=b.width):c==h&&e(Error("missing height argument"));Ng(a,b);Og(a,c)}function Dg(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}
function Og(a,b){a.style.height=Dg(b,j)}function Ng(a,b){a.style.width=Dg(b,j)}function Pg(a){if(Ag(a,"display")!="none")return Qg(a);var b=a.style,c=b.display,d=b.visibility,f=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Qg(a);b.display=c;b.position=f;b.visibility=d;return a}function Qg(a){var b=a.offsetWidth,c=a.offsetHeight,d=G&&!b&&!c;return(!ja(b)||d)&&a.getBoundingClientRect?(a=Fg(a),new ic(a.right-a.left,a.bottom-a.top)):new ic(b,c)}
function Rg(a){var b=Ig(a),a=Pg(a);return new jg(b.x,b.y,a.width,a.height)}function Sg(a,b){var c=a.style;if("opacity"in c)c.opacity=b;else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in c)c.filter=b===""?"":"alpha(opacity="+b*100+")"}function W(a,b){a.style.display=b?"":"none"}function Tg(a){return a.style.display!="none"}function Ug(a,b){D?a.cssText=b:a[G?"innerText":"innerHTML"]=b}function Jg(a){return"rtl"==Ag(a,"direction")}var Vg=E?"MozUserSelect":G?"WebkitUserSelect":k;
function Wg(a,b,c){c=!c?a.getElementsByTagName("*"):k;if(Vg){if(b=b?"none":"",a.style[Vg]=b,c)for(var a=0,d;d=c[a];a++)d.style[Vg]=b}else if(D||C)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)}function Xg(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var f=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return f}var Yg={thin:2,medium:4,thick:6};
function Zg(a,b){if(zg(a,b+"Style")=="none")return 0;var c=zg(a,b+"Width");return c in Yg?Yg[c]:Xg(a,c)}var $g=/[^\d]+$/;function ah(a){return a.f("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'})};function bh(a){this.j=a;a=D?"focusout":"blur";this.ru=T(this.j,D?"focusin":"focus",this,!D);this.su=T(this.j,a,this,!D)}z(bh,xe);bh.prototype.handleEvent=function(a){var b=new Kd(a.wa);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.m()}};bh.prototype.d=function(){bh.c.d.call(this);je(this.ru);je(this.su);delete this.j};function ch(){}ha(ch);ch.prototype.Hu=0;ch.pa();function dh(a){this.k=a||O();this.Vh=eh}z(dh,xe);dh.prototype.Zt=ch.pa();var eh=k;function fh(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"}e(Error("Invalid component state"))}q=dh.prototype;q.fc=k;q.N=m;q.j=k;q.Vh=k;q.jm=k;q.Ca=k;q.Da=k;q.vc=k;q.Dr=m;
function gh(a){return a.fc||(a.fc=":"+(a.Zt.Hu++).toString(36))}function hh(a,b){a.Ca&&a.Ca.vc&&(rc(a.Ca.vc,a.fc),sc(a.Ca.vc,b,a));a.fc=b}q.b=o("j");q.ca=function(){return this.gg||(this.gg=new gg(this))};function ih(a,b){a==b&&e(Error("Unable to set parent component"));b&&a.Ca&&a.fc&&jh(a.Ca,a.fc)&&a.Ca!=b&&e(Error("Unable to set parent component"));a.Ca=b;dh.c.Um.call(a,b)}q.getParent=o("Ca");q.Um=function(a){this.Ca&&this.Ca!=a&&e(Error("Method not supported"));dh.c.Um.call(this,a)};q.q=o("k");
q.f=function(){this.j=this.k.createElement("div")};q.Pa=function(a){kh(this,a)};function kh(a,b,c){a.N&&e(Error("Component already rendered"));a.j||a.f();b?b.insertBefore(a.j,c||k):a.k.T().body.appendChild(a.j);(!a.Ca||a.Ca.N)&&a.W()}q.Z=function(a){this.N&&e(Error("Component already rendered"));if(a&&this.qb(a)){this.Dr=j;if(!this.k||this.k.T()!=P(a))this.k=O(a);this.Va(a);this.W()}else e(Error("Invalid element to decorate"))};q.qb=p(j);q.Va=ba("j");
q.W=function(){this.N=j;lh(this,function(a){!a.N&&a.b()&&a.W()})};q.Wa=function(){lh(this,function(a){a.N&&a.Wa()});this.gg&&this.gg.mc();this.N=m};q.d=function(){dh.c.d.call(this);this.N&&this.Wa();this.gg&&(this.gg.m(),delete this.gg);lh(this,function(a){a.m()});!this.Dr&&this.j&&Q(this.j);this.Ca=this.jm=this.j=this.vc=this.Da=k};q.Ab=function(a,b){this.Ie(a,mh(this),b)};
q.Ie=function(a,b,c){a.N&&(c||!this.N)&&e(Error("Component already rendered"));(b<0||b>mh(this))&&e(Error("Child component index out of bounds"));if(!this.vc||!this.Da)this.vc={},this.Da=[];a.getParent()==this?(this.vc[gh(a)]=a,ob(this.Da,a)):sc(this.vc,gh(a),a);ih(a,this);tb(this.Da,b,0,a);a.N&&this.N&&a.getParent()==this?(c=this.s(),c.insertBefore(a.b(),c.childNodes[b]||k)):c?(this.j||this.f(),b=nh(this,b+1),kh(a,this.s(),b?b.j:k)):this.N&&!a.N&&a.j&&a.W()};q.s=o("j");
function oh(a){if(a.Vh==k)a.Vh=Jg(a.N?a.j:a.k.T().body);return a.Vh}q.Be=function(a){this.N&&e(Error("Component already rendered"));this.Vh=a};function mh(a){return a.Da?a.Da.length:0}function jh(a,b){return a.vc&&b?N(a.vc,b)||k:k}function nh(a,b){return a.Da?a.Da[b]||k:k}function lh(a,b,c){a.Da&&A(a.Da,b,c)}function ph(a,b){return a.Da&&b?fb(a.Da,b):-1}
q.removeChild=function(a,b){if(a){var c=t(a)?a:gh(a),a=jh(this,c);c&&a&&(rc(this.vc,c),ob(this.Da,a),b&&(a.Wa(),a.j&&Q(a.j)),ih(a,k))}a||e(Error("Child is not in parent component"));return a};q.Jm=function(a){for(;this.Da&&this.Da.length!=0;)this.removeChild(nh(this,0),a)};function qh(a,b){this.fa=new gg(this);this.Rm(a||k);if(b)this.Qg=b}z(qh,xe);q=qh.prototype;q.j=k;q.Sn=j;q.Rn=k;q.Jc=m;q.Xv=m;q.Yl=-1;q.sj=-1;q.sp=m;q.Eo=j;q.Qg="toggle_display";q.fg=o("Qg");q.b=o("j");q.Rm=function(a){rh(this);this.j=a};function sh(a){rh(a);a.Sn=j}function th(a){rh(a);a.sp=j}function rh(a){a.Jc&&e(Error("Can not change this state of the popup while showing."))}q.B=o("Jc");q.t=function(a){this.di&&this.di.stop();this.uh&&this.uh.stop();a?this.$m():this.jg()};q.na=ga;
q.$m=function(){if(!this.Jc&&this.qm()){this.j||e(Error("Caller must call setElement before trying to show the popup"));this.na();var a=P(this.j);this.sp&&this.fa.h(a,Fd,this.Qu,j);if(this.Sn)if(this.fa.h(a,"mousedown",this.nq,j),D){var b;try{b=a.activeElement}catch(c){}for(;b&&b.nodeName=="IFRAME";){try{var d=hd(b)}catch(f){break}a=d;b=a.activeElement}this.fa.h(a,"mousedown",this.nq,j);this.fa.h(a,"deactivate",this.mq)}else this.fa.h(a,"blur",this.mq);this.Qg=="toggle_display"?(this.j.style.visibility=
"visible",W(this.j,j)):this.Qg=="move_offscreen"&&this.na();this.Jc=j;this.di?(ge(this.di,"end",this.Kj,m,this),this.di.play()):this.Kj()}};q.jg=function(a){if(!this.Jc||!this.dispatchEvent({type:"beforehide",target:a}))return m;this.fa&&this.fa.mc();this.uh?(ge(this.uh,"end",ua(this.no,a),m,this),this.uh.play()):this.no(a);return j};
q.no=function(a){if(this.Qg=="toggle_display")this.Xv?Be(this.up,0,this):this.up();else if(this.Qg=="move_offscreen")this.j.style.left="-200px",this.j.style.top="-200px";this.Jc=m;this.rm(a)};q.up=function(){this.j.style.visibility="hidden";W(this.j,m)};q.qm=function(){return this.dispatchEvent("beforeshow")};q.Kj=function(){this.Yl=va();this.sj=-1;this.dispatchEvent("show")};q.rm=function(a){this.sj=va();this.dispatchEvent({type:"hide",target:a})};
q.nq=function(a){a=a.target;!cd(this.j,a)&&(!this.Rn||cd(this.Rn,a))&&!(va()-this.Yl<150)&&this.jg(a)};q.Qu=function(a){a.keyCode==27&&this.jg(a.target)&&(a.preventDefault(),a.stopPropagation())};q.mq=function(a){if(this.Eo){var b=P(this.j);if(D||C){if(a=b.activeElement,!a||cd(this.j,a)||a.tagName=="BODY")return}else if(a.target!=b)return;va()-this.Yl<150||this.jg()}};q.d=function(){qh.c.d.call(this);this.fa.m();Bd(this.di);Bd(this.uh);delete this.j;delete this.fa};function uh(a,b){dh.call(this,b);this.rw=!!a}z(uh,dh);q=uh.prototype;q.nl=k;q.Ta=m;q.Lb=k;q.jb=k;q.ud=k;q.n=p("goog-modalpopup");q.lh=o("Lb");q.f=function(){uh.c.f.call(this);var a=this.b();J(a,this.n());md(a,j);W(a,m);vh(this);wh(this)};function vh(a){if(a.rw&&!a.jb)a.jb=ah(a.q()),a.jb.className=a.n()+"-bg",W(a.jb,m),Sg(a.jb,0);if(!a.Lb)a.Lb=a.q().f("div",a.n()+"-bg"),W(a.Lb,m)}function wh(a){if(!a.ud)a.ud=a.q().createElement("span"),W(a.ud,m),md(a.ud,j),a.ud.style.position="absolute"}
q.qb=function(a){return!!a&&a.tagName=="DIV"};q.Va=function(a){uh.c.Va.call(this,a);J(this.b(),this.n());vh(this);wh(this);W(this.b(),m)};q.W=function(){this.jb&&Wc(this.jb,this.b());Wc(this.Lb,this.b());uh.c.W.call(this);Xc(this.ud,this.b());this.nl=new bh(this.q().T());this.ca().h(this.nl,"focusin",this.Su)};q.Wa=function(){this.B()&&this.t(m);Bd(this.nl);uh.c.Wa.call(this);Q(this.jb);Q(this.Lb);Q(this.ud)};q.t=function(a){a!=this.Ta&&(a?this.$m():this.jg())};
q.$m=function(){if(this.dispatchEvent("beforeshow"))this.Lm(),this.na(),this.ca().h(this.q().v(),"resize",this.Lm),xh(this,j),this.focus(),this.Ta=j,this.dispatchEvent("show")};q.jg=function(){if(this.dispatchEvent("beforehide"))this.ca().Sa(this.q().v(),"resize",this.Lm),xh(this,m),this.Ta=m,this.dispatchEvent("hide")};function xh(a,b){a.jb&&W(a.jb,b);a.Lb&&W(a.Lb,b);W(a.b(),b);W(a.ud,b)}q.B=o("Ta");q.focus=function(){this.Qo()};
q.Lm=function(){this.jb&&W(this.jb,m);this.Lb&&W(this.Lb,m);var a=this.q().T(),b=Jc(Nc(a)||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height);this.jb&&(W(this.jb,j),Mg(this.jb,c,a));this.Lb&&(W(this.Lb,j),Mg(this.Lb,c,a))};
q.na=function(){var a=this.q().T(),b=Nc(a)||window;if(Bg(this.b())=="fixed")var c=a=0;else c=vd(this.q()),a=c.x,c=c.y;var d=Pg(this.b()),b=Jc(b),a=Math.max(a+b.width/2-d.width/2,0),c=Math.max(c+b.height/2-d.height/2,0);Cg(this.b(),a,c);Cg(this.ud,a,c)};q.Su=function(a){a.target==this.ud&&Be(this.Qo,0,this)};q.Qo=function(){try{D&&this.q().T().body.focus(),this.b().focus()}catch(a){}};function yh(a,b,c){uh.call(this,b,c);this.lb=a||"modal-dialog";this.Ua=zh()}z(yh,uh);q=yh.prototype;q.Ho=j;q.El=j;q.im=j;q.Is=j;q.vi=0.5;q.rk="";q.Ba="";q.Db=k;q.Gs=m;q.Ib=k;q.vd=k;q.nn=k;q.be=k;q.Zb=k;q.Ga=k;q.n=o("lb");q.ik=function(a){this.rk=a;this.vd&&id(this.vd,a)};q.Ea=function(a){this.Ba=a;if(this.Zb)this.Zb.innerHTML=a};function Ah(a){a.b()||a.Pa()}q.s=function(){Ah(this);return this.Zb};q.Xo=function(){Ah(this);return this.Ga};q.lh=function(){Ah(this);return yh.c.lh.call(this)};
function Bh(a,b){a.vi=b;if(a.b()){var c=a.lh();c&&Sg(c,a.vi)}}function Ch(a){j!=a.im&&Dh(a,j)}function Dh(a,b){a.im=b;if(a.N){var c=a.q(),d=a.lh(),f=a.jb;b?(f&&c.Dp(f,a.b()),c.Dp(d,a.b())):(c.removeNode(f),c.removeNode(d))}}function Eh(a,b){a.b()&&L(a.Ib,a.lb+"-title-draggable",b);if(b&&!a.Db)a.Db=new lg(a.b(),a.Ib),J(a.Ib,a.lb+"-title-draggable"),T(a.Db,"start",a.Mv,m,a);else if(!b&&a.Db)a.Db.m(),a.Db=k}
q.f=function(){yh.c.f.call(this);var a=this.b(),b=this.q();this.Ib=b.f("div",{className:this.lb+"-title",id:gh(this)},this.vd=b.f("span",this.lb+"-title-text",this.rk),this.be=b.f("span",this.lb+"-title-close"));Uc(a,this.Ib,this.Zb=b.f("div",this.lb+"-content"),this.Ga=b.f("div",this.lb+"-buttons"));this.nn=this.Ib.id;cg(a,"dialog");dg(a,"labelledby",this.nn||"");if(this.Ba)this.Zb.innerHTML=this.Ba;W(this.be,this.El);if(this.Ua)a=this.Ua,a.j=this.Ga,a.Pa();W(this.Ga,!!this.Ua);Bh(this,this.vi)};
q.Va=function(a){yh.c.Va.call(this,a);a=this.lb+"-content";if(this.Zb=Bc(k,a,this.b())[0])this.Ba=this.Zb.innerHTML;else{this.Zb=this.q().f("div",a);if(this.Ba)this.Zb.innerHTML=this.Ba;this.b().appendChild(this.Zb)}var a=this.lb+"-title",b=this.lb+"-title-text",c=this.lb+"-title-close";(this.Ib=Bc(k,a,this.b())[0])?(this.vd=Bc(k,b,this.Ib)[0],this.be=Bc(k,c,this.Ib)[0]):(this.Ib=this.q().f("div",a),this.b().insertBefore(this.Ib,this.Zb));this.vd?this.rk=nd(this.vd):(this.vd=this.q().f("span",b,this.rk),
this.Ib.appendChild(this.vd));dg(this.b(),"labelledby",this.nn||"");if(!this.be)this.be=this.q().f("span",c),this.Ib.appendChild(this.be);W(this.be,this.El);a=this.lb+"-buttons";if(this.Ga=Bc(k,a,this.b())[0])this.Ua=new Fh(this.q()),this.Ua.Z(this.Ga);else{this.Ga=this.q().f("div",a);this.b().appendChild(this.Ga);if(this.Ua)a=this.Ua,a.j=this.Ga,a.Pa();W(this.Ga,!!this.Ua)}Bh(this,this.vi)};
q.W=function(){yh.c.W.call(this);this.ca().h(this,["show","hide"],this.Uv);Eh(this,this.Is);this.ca().h(this.be,S,this.bv);cg(this.b(),"dialog");this.vd.id!==""&&dg(this.b(),"labelledby",this.vd.id);this.im||Dh(this,m)};q.Wa=function(){this.B()&&this.t(m);Eh(this,m);yh.c.Wa.call(this)};q.t=function(a){a!=this.B()&&(this.N||this.Pa(),yh.c.t.call(this,a))};
q.Uv=function(a){a.target==this&&(this.B()?(this.ca().h(this.b(),Fd,this.Jj).h(this.b(),"keypress",this.Jj),this.dispatchEvent(Gh),this.ca().h(this.Ga,S,this.kq)):(this.ca().Sa(this.b(),Fd,this.Jj).Sa(this.b(),"keypress",this.Jj).Sa(this.Ga,S,this.kq),this.dispatchEvent(Hh),this.Gs&&this.m()))};
q.focus=function(){yh.c.focus.call(this);if(this.Ua){var a=this.Ua.Oi;if(a)for(var b=this.q().T(),c=this.Ga.getElementsByTagName("button"),d=0,f;f=c[d];d++)if(f.name==a){try{if(G||C){var g=b.createElement("input");g.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.b().appendChild(g);g.focus();this.b().removeChild(g)}f.focus()}catch(i){}break}}};
q.Mv=function(){var a=this.q().T(),b=Jc(Nc(a)||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height),d=Pg(this.b());Bg(this.b())=="fixed"?ng(this.Db,new jg(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height))):ng(this.Db,new jg(0,0,c-d.width,a-d.height))};q.bv=function(){if(this.El){var a=this.Ua,b=a&&a.Lk;b?(a=a.get(b),this.dispatchEvent(new Ih(b,a))&&this.t(m)):this.t(m)}};q.d=function(){this.Ga=this.be=k;yh.c.d.call(this)};
function Jh(a,b){a.Ua=b;if(a.Ga){if(a.Ua){var c=a.Ua;c.j=a.Ga;c.Pa()}else a.Ga.innerHTML="";W(a.Ga,!!a.Ua)}}q.kq=function(a){a:{for(a=a.target;a!=k&&a!=this.Ga;){if(a.tagName=="BUTTON")break a;a=a.parentNode}a=k}if(a&&!a.disabled){var a=a.name,b=this.Ua.get(a);this.dispatchEvent(new Ih(a,b))&&this.t(m)}};
q.Jj=function(a){var b=m,c=m,d=this.Ua,f=a.target;if(a.type==Fd)if(this.Ho&&a.keyCode==27){var g=d&&d.Lk,f=f.tagName=="SELECT"&&!f.disabled;g&&!f?(c=j,b=d.get(g),b=this.dispatchEvent(new Ih(g,b))):f||(b=j)}else a.keyCode==9&&a.shiftKey&&f==this.b()&&(c=j);else if(a.keyCode==13){if(f.tagName=="BUTTON")g=f.name;else if(d){var i=d.Oi,l=i&&Kh(d,i),f=(f.tagName=="TEXTAREA"||f.tagName=="SELECT")&&!f.disabled;l&&!l.disabled&&!f&&(g=i)}g&&d&&(c=j,b=this.dispatchEvent(new Ih(g,""+d.get(g))))}if(b||c)a.stopPropagation(),
a.preventDefault();b&&this.t(m)};function Ih(a,b){this.type=Lh;this.key=a;this.caption=b}z(Ih,Cd);var Lh="dialogselect",Hh="afterhide",Gh="aftershow";function Fh(a){this.k=a||O();Pe.call(this)}z(Fh,Pe);q=Fh.prototype;q.lb="goog-buttonset";q.Oi=k;q.j=k;q.Lk=k;q.set=function(a,b,c,d){Pe.prototype.set.call(this,a,b);if(c)this.Oi=a;if(d)this.Lk=a;return this};q.Tb=function(a,b,c){return this.set(a.key,a.caption,b,c)};
q.Pa=function(){if(this.j){this.j.innerHTML="";var a=O(this.j);Ge(this,function(b,c){var d=a.f("button",{name:c},b);if(c==this.Oi)d.className=this.lb+"-default";this.j.appendChild(d)},this)}};q.Z=function(a){if(a&&a.nodeType==1){this.j=a;for(var a=this.j.getElementsByTagName("button"),b=0,c,d,f;c=a[b];b++)if(d=c.name||c.id,f=nd(c)||c.value,d){var g=b==0;this.set(d,f,g,c.name==Mh);g&&J(c,this.lb+"-default")}}};q.b=o("j");q.q=o("k");
function Kh(a,b){for(var c=a.j.getElementsByTagName("BUTTON"),d=0,f;f=c[d];d++)if(f.name==b||f.id==b)return f;return k}var Mh="cancel",Nh=x("OK"),Oh=x("Cancel"),Ph=x("Yes"),Qh=x("No"),Rh=x("Save"),Sh=x("Continue"),Th={key:"ok",caption:Nh},Uh={key:Mh,caption:Oh},Vh={key:"yes",caption:Ph},Wh={key:"no",caption:Qh},Xh={key:"save",caption:Rh},Yh={key:"continue",caption:Sh};function zh(){return(new Fh).Tb(Th,j).Tb(Uh,m,j)}
typeof document!="undefined"&&((new Fh).Tb(Th,j,j),zh(),(new Fh).Tb(Vh,j).Tb(Wh,m,j),(new Fh).Tb(Vh).Tb(Wh,j).Tb(Uh,m,j),(new Fh).Tb(Yh).Tb(Xh).Tb(Uh,j,j));var Zh={1:"NativeMessagingTransport",2:"FrameElementMethodTransport",3:"IframeRelayTransport",4:"IframePollingTransport",5:"FlashTransport",6:"NixTransport"},$h=["pu","lru","pru","lpu","ppu"],ai={};function bi(a){for(var b=ci,c=b.length,d="";a-- >0;)d+=b.charAt(Math.floor(Math.random()*c));return d}var ci="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",X=uf("goog.net.xpc");function di(a,b){var c;a instanceof di?(this.Ig(b==k?a.ld:b),ei(this,a.Yd),fi(this,a.ni),gi(this,a.We),hi(this,a.Cg),ii(this,a.tf),ji(this,a.Mc.U()),ki(this,a.kh)):a&&(c=(""+a).match(oe))?(this.Ig(!!b),ei(this,c[1]||"",j),fi(this,c[2]||"",j),gi(this,c[3]||"",j),hi(this,c[4]),ii(this,c[5]||"",j),ji(this,c[6]||"",j),ki(this,c[7]||"",j)):(this.Ig(!!b),this.Mc=new li(k,this,this.ld))}q=di.prototype;q.Yd="";q.ni="";q.We="";q.Cg=k;q.tf="";q.kh="";q.ku=m;q.ld=m;
q.toString=function(){if(this.uc)return this.uc;var a=[];this.Yd&&a.push(mi(this.Yd,ni),":");this.We&&(a.push("//"),this.ni&&a.push(mi(this.ni,ni),"@"),a.push(t(this.We)?encodeURIComponent(this.We):k),this.Cg!=k&&a.push(":",""+this.Cg));this.tf&&(this.We&&this.tf.charAt(0)!="/"&&a.push("/"),a.push(mi(this.tf,this.tf.charAt(0)=="/"?oi:pi)));var b=""+this.Mc;b&&a.push("?",b);this.kh&&a.push("#",mi(this.kh,qi));return this.uc=a.join("")};
q.U=function(){var a=this.Yd,b=this.ni,c=this.We,d=this.Cg,f=this.tf,g=this.Mc.U(),i=this.kh,l=new di(k,this.ld);a&&ei(l,a);b&&fi(l,b);c&&gi(l,c);d&&hi(l,d);f&&ii(l,f);g&&ji(l,g);i&&ki(l,i);return l};function ei(a,b,c){ri(a);delete a.uc;a.Yd=c?b?decodeURIComponent(b):"":b;if(a.Yd)a.Yd=a.Yd.replace(/:$/,"")}function fi(a,b,c){ri(a);delete a.uc;a.ni=c?b?decodeURIComponent(b):"":b}function gi(a,b,c){ri(a);delete a.uc;a.We=c?b?decodeURIComponent(b):"":b}
function hi(a,b){ri(a);delete a.uc;b?(b=Number(b),(isNaN(b)||b<0)&&e(Error("Bad port number "+b)),a.Cg=b):a.Cg=k}function ii(a,b,c){ri(a);delete a.uc;a.tf=c?b?decodeURIComponent(b):"":b}function ji(a,b,c){ri(a);delete a.uc;b instanceof li?(a.Mc=b,a.Mc.un=a,a.Mc.Ig(a.ld)):(c||(b=mi(b,si)),a.Mc=new li(b,a,a.ld))}function ti(a,b){ri(a);delete a.uc;a.Mc.set("xpc",b)}function ki(a,b,c){ri(a);delete a.uc;a.kh=c?b?decodeURIComponent(b):"":b}
function ri(a){a.ku&&e(Error("Tried to modify a read-only Uri"))}q.Ig=function(a){this.ld=a;this.Mc&&this.Mc.Ig(a);return this};var ui=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;function mi(a,b){var c=k;t(a)&&(c=a,ui.test(c)||(c=encodeURI(a)),c.search(b)>=0&&(c=c.replace(b,vi)));return c}function vi(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var ni=/[#\/\?@]/g,pi=/[\#\?:]/g,oi=/[\#\?]/g,si=/[\#\?@]/g,qi=/#/g;function li(a,b,c){this.Id=a||k;this.un=b||k;this.ld=!!c}
function wi(a){if(!a.ra&&(a.ra=new Pe,a.Y=0,a.Id))for(var b=a.Id.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),f=k,g=k;d>=0?(f=b[c].substring(0,d),g=b[c].substring(d+1)):f=b[c];f=Ka(f);f=xi(a,f);a.add(f,g?Ka(g):"")}}q=li.prototype;q.ra=k;q.Y=k;q.xa=function(){wi(this);return this.Y};q.add=function(a,b){wi(this);yi(this);a=xi(this,a);if(this.sb(a)){var c=this.ra.get(a);ka(c)?c.push(b):this.ra.set(a,[c,b])}else this.ra.set(a,b);this.Y++;return this};
q.remove=function(a){wi(this);a=xi(this,a);if(this.ra.sb(a)){yi(this);var b=this.ra.get(a);ka(b)?this.Y-=b.length:this.Y--;return this.ra.remove(a)}return m};q.clear=function(){yi(this);this.ra&&this.ra.clear();this.Y=0};q.Hc=function(){wi(this);return this.Y==0};q.sb=function(a){wi(this);a=xi(this,a);return this.ra.sb(a)};q.Ii=function(a){var b=this.Za();return B(b,a)};
q.dd=function(){wi(this);for(var a=this.ra.Za(),b=this.ra.dd(),c=[],d=0;d<b.length;d++){var f=a[d];if(ka(f))for(var g=0;g<f.length;g++)c.push(b[d]);else c.push(b[d])}return c};q.Za=function(a){wi(this);if(a)if(a=xi(this,a),this.sb(a)){var b=this.ra.get(a);if(ka(b))return b;a=[];a.push(b)}else a=[];else for(var b=this.ra.Za(),a=[],c=0;c<b.length;c++){var d=b[c];ka(d)?sb(a,d):a.push(d)}return a};
q.set=function(a,b){wi(this);yi(this);a=xi(this,a);if(this.sb(a)){var c=this.ra.get(a);ka(c)?this.Y-=c.length:this.Y--}this.ra.set(a,b);this.Y++;return this};q.get=function(a,b){wi(this);a=xi(this,a);if(this.sb(a)){var c=this.ra.get(a);return ka(c)?c[0]:c}return b};
q.toString=function(){if(this.Id)return this.Id;if(!this.ra)return"";for(var a=[],b=0,c=this.ra.dd(),d=0;d<c.length;d++){var f=c[d],g=Ja(f),f=this.ra.get(f);if(ka(f))for(var i=0;i<f.length;i++)b>0&&a.push("&"),a.push(g),f[i]!==""&&a.push("=",Ja(f[i])),b++;else b>0&&a.push("&"),a.push(g),f!==""&&a.push("=",Ja(f)),b++}return this.Id=a.join("")};function yi(a){delete a.Yk;delete a.Id;a.un&&delete a.un.uc}
q.U=function(){var a=new li;if(this.Yk)a.Yk=this.Yk;if(this.Id)a.Id=this.Id;if(this.ra)a.ra=this.ra.U();return a};function xi(a,b){var c=""+b;a.ld&&(c=c.toLowerCase());return c}q.Ig=function(a){a&&!this.ld&&(wi(this),yi(this),Ge(this.ra,function(a,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.add(d,a))},this));this.ld=a};q.extend=function(a){for(var b=0;b<arguments.length;b++)Ge(arguments[b],function(a,b){this.add(b,a)},this)};function zi(){this.ek={}}z(zi,zd);zi.prototype.$a=uf("goog.messaging.AbstractChannel");zi.prototype.wc=function(a){a&&a()};zi.prototype.Gc=p(j);function Ai(a,b,c){a.ek[b]={Wn:c,iq:m}}zi.prototype.d=function(){zi.c.d.call(this);Bd(this.$a);delete this.$a;delete this.ek;delete this.wo};function Bi(a){this.Cb=a||O()}z(Bi,zd);Bi.prototype.Ff=0;Bi.prototype.fg=o("Ff");Bi.prototype.v=function(){return this.Cb.v()};Bi.prototype.getName=function(){return Zh[this.Ff]||""};function Ci(a,b){this.Cb=b||O();this.e=a;this.Rh=[];this.Bs=u(this.Cs,this)}z(Ci,Bi);q=Ci.prototype;q.Ff=2;q.Gm=m;q.K=0;q.wc=function(){Di(this.e)==0?(this.Md=this.e.kg,this.Md.XPC_toOuter=u(this.yp,this)):this.Pn()};
q.Pn=function(){var a=j;try{if(!this.Md)this.Md=this.v().frameElement;if(this.Md&&this.Md.XPC_toOuter)this.vm=this.Md.XPC_toOuter,this.Md.XPC_toOuter.XPC_toInner=u(this.yp,this),a=m,this.send("tp","SETUP_ACK"),Ei(this.e)}catch(b){nf(X,"exception caught while attempting setup: "+b)}if(a){if(!this.On)this.On=u(this.Pn,this);this.v().setTimeout(this.On,100)}};q.rn=function(a){Di(this.e)==0&&!this.e.Gc()&&a=="SETUP_ACK"?(this.vm=this.Md.XPC_toOuter.XPC_toInner,Ei(this.e)):e(Error("Got unexpected transport message."))};
q.yp=function(a,b){if(!this.Gm&&this.Rh.length==0)this.e.Fd(a,b);else if(this.Rh.push({Lv:a,xm:b}),this.Rh.length==1)this.K=this.v().setTimeout(this.Bs,1)};q.Cs=function(){for(;this.Rh.length;){var a=this.Rh.shift();this.e.Fd(a.Lv,a.xm)}};q.send=function(a,b){this.Gm=j;this.vm(a,b);this.Gm=m};q.d=function(){Ci.c.d.call(this);this.Md=this.vm=k};function Fi(a,b){this.Cb=b||O();this.e=a;this.Wh=this.e.oa.ppu;this.wv=this.e.oa.lpu;this.ck=[]}var Gi,Hi;z(Fi,Bi);q=Fi.prototype;q.Ff=4;q.dk=0;q.Sg=m;q.hf=m;function Ii(a){return"googlexpc_"+a.e.name+"_msg"}function Ji(a){return"googlexpc_"+a.e.name+"_ack"}
q.wc=function(){if(!this.Hd){pf(X,"transport connect called");if(!this.hf){pf(X,"initializing...");var a=Ii(this);this.xg=Ki(this,a);this.mm=this.v().frames[a];a=Ji(this);this.Lf=Ki(this,a);this.Bk=this.v().frames[a];this.hf=j}if(!Li(this,Ii(this))||!Li(this,Ji(this))){qf(X,"foreign frames not (yet) present");if(Di(this.e)==1&&!this.xv)qf(X,"innerPeerReconnect called"),this.e.name=bi(10),qf(X,"switching channels: "+this.e.name),Mi(this),this.hf=m,this.xv=Ki(this,"googlexpc_reconnect_"+this.e.name);
else if(Di(this.e)==0){qf(X,"outerPeerReconnect called");for(var a=this.e.kc.frames,b=a.length,c=0;c<b;c++){var d;try{if(a[c]&&a[c].name)d=a[c].name}catch(f){}if(d){var g=d.split("_");if(g.length==3&&g[0]=="googlexpc"&&g[1]=="reconnect"){this.e.name=g[2];Mi(this);this.hf=m;break}}}}this.v().setTimeout(u(this.wc,this),100)}else pf(X,"foreign frames present"),this.dq=new Ni(this,this.e.kc.frames[Ii(this)],u(this.rv,this)),this.Gn=new Ni(this,this.e.kc.frames[Ji(this)],u(this.qv,this)),this.eo()}};
function Ki(a,b){qf(X,"constructing sender frame: "+b);var c=document.createElement("iframe"),d=c.style;d.position="absolute";d.top="-10px";d.left="10px";d.width="1px";d.height="1px";c.id=c.name=b;c.src=a.Wh+"#INITIAL";a.v().document.body.appendChild(c);return c}function Mi(a){qf(X,"deconstructSenderFrames called");if(a.xg)a.xg.parentNode.removeChild(a.xg),a.xg=k,a.mm=k;if(a.Lf)a.Lf.parentNode.removeChild(a.Lf),a.Lf=k,a.Bk=k}
function Li(a,b){qf(X,"checking for receive frame: "+b);try{var c=a.e.kc.frames[b];if(!c||c.location.href.indexOf(a.wv)!=0)return m}catch(d){return m}return j}
q.eo=function(){var a=this.e.kc.frames;if(!a[Ji(this)]||!a[Ii(this)]){if(!this.co)this.co=u(this.eo,this);this.v().setTimeout(this.co,100);pf(X,"local frames not (yet) present")}else this.eq=new Oi(this.Wh,this.mm),this.qi=new Oi(this.Wh,this.Bk),pf(X,"local frames ready"),this.v().setTimeout(u(function(){this.eq.send("SETUP");this.Sg=this.Ry=j;pf(X,"SETUP sent")},this),100)};
function Pi(a){if(a.Qm&&a.Gq){if(Ei(a.e),a.Vf){pf(X,"delivering queued messages ("+a.Vf.length+")");for(var b=0,c;b<a.Vf.length;b++)c=a.Vf[b],a.e.Fd(c.Kv,c.xm);delete a.Vf}}else qf(X,"checking if connected: ack sent:"+a.Qm+", ack rcvd: "+a.Gq)}
q.rv=function(a){qf(X,"msg received: "+a);if(a=="SETUP"){if(this.qi)this.qi.send("SETUP_ACK"),qf(X,"SETUP_ACK sent"),this.Qm=j,Pi(this)}else if(this.e.Gc()||this.Qm){var b=a.indexOf("|"),c=a.substring(0,b),a=a.substring(b+1),b=c.indexOf(",");if(b==-1){var d;this.qi.send("ACK:"+c);Qi(this,a)}else{d=c.substring(0,b);this.qi.send("ACK:"+d);c=c.substring(b+1).split("/");b=parseInt(c[0],10);c=parseInt(c[1],10);if(b==1)this.wm=[];this.wm.push(a);b==c&&(Qi(this,this.wm.join("")),delete this.wm)}}else of(X,
"received msg, but channel is not connected")};q.qv=function(a){qf(X,"ack received: "+a);a=="SETUP_ACK"?(this.Sg=m,this.Gq=j,Pi(this)):this.e.Gc()?this.Sg?parseInt(a.split(":")[1],10)==this.dk?(this.Sg=m,Ri(this)):of(X,"got ack with wrong sequence"):of(X,"got unexpected ack"):of(X,"received ack, but channel not connected")};function Ri(a){if(!a.Sg&&a.ck.length){var b=a.ck.shift();++a.dk;a.eq.send(a.dk+b);qf(X,"msg sent: "+a.dk+b);a.Sg=j}}
function Qi(a,b){var c=b.indexOf(":"),d=b.substr(0,c),c=b.substring(c+1);a.e.Gc()?a.e.Fd(d,c):((a.Vf||(a.Vf=[])).push({Kv:d,xm:c}),qf(X,"queued delivery"))}q.oi=3800;q.send=function(a,b){var c=a+":"+b;if(!D||b.length<=this.oi)this.ck.push("|"+c);else for(var d=b.length,f=Math.ceil(d/this.oi),g=0,i=1;g<d;)this.ck.push(","+i+"/"+f+"|"+c.substr(g,this.oi)),i++,g+=this.oi;Ri(this)};
q.d=function(){Fi.c.d.call(this);var a=Si;ob(a,this.dq);ob(a,this.Gn);this.dq=this.Gn=k;Q(this.xg);Q(this.Lf);this.mm=this.Bk=this.xg=this.Lf=k};
var Si=[],Ti=u(function(){var a=m;try{for(var b=0,c=Si.length;b<c;b++){var d;if(!(d=a)){var f=Si[b],g=f.Fq.location.href;if(g!=f.ro){f.ro=g;var i=g.split("#")[1];i&&(i=i.substr(1),f.fs(decodeURIComponent(i)));d=j}else d=m}a=d}}catch(l){if(X.info("receive_() failed: "+l),b=Si[b].yb.e,X.info("Transport Error"),b.close(),!Si.length)return}b=va();a&&(Gi=b);Hi=window.setTimeout(Ti,b-Gi<1E3?10:100)},Fi);
function Ui(){pf(X,"starting receive-timer");Gi=va();Hi&&window.clearTimeout(Hi);Hi=window.setTimeout(Ti,10)}function Oi(a,b){this.Wh=a;this.Wq=b;this.Xk=0}Oi.prototype.send=function(a){this.Xk=++this.Xk%2;a=this.Wh+"#"+this.Xk+encodeURIComponent(a);try{G?this.Wq.location.href=a:this.Wq.location.replace(a)}catch(b){nf(X,"sending failed",b)}Ui()};function Ni(a,b,c){this.yb=a;this.Fq=b;this.fs=c;this.ro=this.Fq.location.href.split("#")[0]+"#INITIAL";Si.push(this);Ui()};function Vi(a,b){this.Cb=b||O();this.e=a;this.kv=this.e.oa.pru;this.yq=this.e.oa.ifrid;G&&Wi()}z(Vi,Bi);if(G)var Xi=[],Yi=0,Wi=function(){Yi||(Yi=window.setTimeout(function(){Zi()},1E3))},Zi=function(a){for(var b=va(),a=a||3E3;Xi.length&&b-Xi[0].timestamp>=a;){var c=Xi.shift().au;Q(c);qf(X,"iframe removed")}Yi=window.setTimeout($i,1E3)},$i=function(){Zi()};var aj={};q=Vi.prototype;q.Ff=3;q.wc=function(){this.v().xpcRelay||(this.v().xpcRelay=bj);this.send("tp","SETUP")};
function bj(a,b){var c=b.indexOf(":"),d=b.substr(0,c),f=b.substr(c+1);if(!D||(c=d.indexOf("|"))==-1)var g=d;else{var g=d.substr(0,c),d=d.substr(c+1),c=d.indexOf("+"),i=d.substr(0,c),c=parseInt(d.substr(c+1),10),l=aj[i];l||(l=aj[i]={To:[],Hq:0,Mo:0});if(Sa(d,"++"))l.Mo=c+1;l.To[c]=f;l.Hq++;if(l.Hq!=l.Mo)return;f=l.To.join("");delete aj[i]}ai[a].Fd(g,decodeURIComponent(f))}q.rn=function(a){a=="SETUP"?(this.send("tp","SETUP_ACK"),Ei(this.e)):a=="SETUP_ACK"&&Ei(this.e)};
q.send=function(a,b){var c=encodeURIComponent(b),d=c.length;if(D&&d>1800)for(var f=Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^va()).toString(36),g=0,i=0;g<d;i++){var l=c.substr(g,1800);g+=1800;cj(this,a,l,f+(g>=d?"++":"+")+i)}else cj(this,a,c)};
function cj(a,b,c,d){if(D){var f=a.v().document.createElement("div");f.innerHTML='<iframe onload="this.xpcOnload()"></iframe>';f=f.childNodes[0];f.xpcOnload=dj}else f=a.v().document.createElement("iframe"),G?Xi.push({timestamp:va(),au:f}):T(f,"load",dj);var g=f.style;g.visibility="hidden";g.width=f.style.height="0px";g.position="absolute";g=a.kv;g+="#"+a.e.name;a.yq&&(g+=","+a.yq);g+="|"+b;d&&(g+="|"+d);g+=":"+c;f.src=g;a.v().document.body.appendChild(f);qf(X,"msg sent: "+g)}
function dj(){qf(X,"iframe-load");Q(this);this.Wy=k}q.d=function(){Vi.c.d.call(this);G&&Zi(0)};function ej(a,b,c){this.Cb=c||O();this.e=a;this.xq=b||"*"}z(ej,Bi);ej.prototype.hf=m;ej.prototype.Ff=1;var fj={};
function gj(a){var b=a.wa.data;if(!t(b))return m;var c=b.indexOf("|"),d=b.indexOf(":");if(c==-1||d==-1)return m;var f=b.substring(0,c),c=b.substring(c+1,d),b=b.substring(d+1);pf(X,"messageReceived: channel="+f+", service="+c+", payload="+b);if(d=ai[f])return d.Fd(c,b,a.wa.origin),j;for(var g in ai)if(a=ai[g],Di(a)==1&&!a.Gc()&&c=="tp"&&b=="SETUP")return pf(X,"changing channel name to "+f),a.name=f,delete ai[g],ai[f]=a,a.Fd(c,b),j;X.info('channel name mismatch; message ignored"');return m}q=ej.prototype;
q.rn=function(a){switch(a){case "SETUP":this.send("tp","SETUP_ACK");break;case "SETUP_ACK":Ei(this.e)}};q.wc=function(){var a=this.v(),b=pa(a),c=fj[b];ma(c)||(c=0);c==0&&T(a.postMessage?a:a.document,"message",gj,m,ej);fj[b]=c+1;this.hf=j;this.mo()};q.mo=function(){!this.e.Gc()&&!this.Hd&&(this.send("tp","SETUP"),this.v().setTimeout(u(this.mo,this),100))};
q.send=function(a,b){var c=this.e.kc;if(c){var d=c.postMessage?c:c.document;this.send=function(a,b){pf(X,"send(): payload="+b+" to hostname="+this.xq);d.postMessage(this.e.name+"|"+a+":"+b,this.xq)};this.send(a,b)}else pf(X,"send(): window not ready")};q.d=function(){ej.c.d.call(this);if(this.hf){var a=this.v(),b=pa(a),c=fj[b];fj[b]=c-1;c==1&&he(a.postMessage?a:a.document,"message",gj,m,ej)}delete this.send};function hj(a,b){this.Cb=b||O();this.e=a;this.Qn=a.at||"";this.Kq=a.rat||"";var c=this.v();if(!c.nix_setup_complete){var d="Class GCXPC____NIXVBS_wrapper\n Private m_Transport\nPrivate m_Auth\nPublic Sub SetTransport(transport)\nIf isEmpty(m_Transport) Then\nSet m_Transport = transport\nEnd If\nEnd Sub\nPublic Sub SetAuth(auth)\nIf isEmpty(m_Auth) Then\nm_Auth = auth\nEnd If\nEnd Sub\nPublic Function GetAuthToken()\n GetAuthToken = m_Auth\nEnd Function\nPublic Sub SendMessage(service, payload)\n Call m_Transport."+
ij+"(service, payload)\nEnd Sub\nPublic Sub CreateChannel(channel)\n Call m_Transport."+jj+"(channel)\nEnd Sub\nPublic Sub GCXPC____NIXVBS_container()\n End Sub\nEnd Class\n Function GCXPC____NIXVBS_get_wrapper(transport, auth)\nDim wrap\nSet wrap = New GCXPC____NIXVBS_wrapper\nwrap.SetTransport transport\nwrap.SetAuth auth\nSet GCXPC____NIXVBS_get_wrapper = wrap\nEnd Function";try{c.execScript(d,"vbscript"),c.nix_setup_complete=j}catch(f){nf(X,"exception caught while attempting global setup: "+f)}}this[ij]=
this.ut;this[jj]=this.ws}z(hj,Bi);var ij="GCXPC____NIXJS_handle_message",jj="GCXPC____NIXJS_create_channel";q=hj.prototype;q.Ff=6;q.sg=m;q.we=k;q.wc=function(){Di(this.e)==0?this.Nn():this.Mn()};q.Nn=function(){if(!this.sg){var a=this.e.kg;try{a.contentWindow.opener=this.v().GCXPC____NIXVBS_get_wrapper(this,this.Qn),this.sg=j}catch(b){nf(X,"exception caught while attempting setup: "+b)}this.sg||this.v().setTimeout(u(this.Nn,this),100)}};
q.Mn=function(){if(!this.sg){try{var a=this.v().opener;if(a&&"GCXPC____NIXVBS_container"in a){this.we=a;if(this.we.GetAuthToken()!=this.Kq){nf(X,"Invalid auth token from other party");return}this.we.CreateChannel(this.v().GCXPC____NIXVBS_get_wrapper(this,this.Qn));this.sg=j;Ei(this.e)}}catch(b){nf(X,"exception caught while attempting setup: "+b);return}this.sg||this.v().setTimeout(u(this.Mn,this),100)}};
q.ws=function(a){(typeof a!="unknown"||!("GCXPC____NIXVBS_container"in a))&&nf(X,"Invalid NIX channel given to createChannel_");this.we=a;this.we.GetAuthToken()!=this.Kq?nf(X,"Invalid auth token from other party"):Ei(this.e)};q.ut=function(a,b){this.v().setTimeout(u(function(){this.e.Fd(a,b)},this),1)};q.send=function(a,b){typeof this.we!=="unknown"&&nf(X,"NIX channel not connected");this.we.SendMessage(a,b)};q.d=function(){hj.c.d.call(this);this.we=k};function kj(a,b){this.ek={};for(var c=0,d;d=$h[c];c++)d in a&&!/^https?:\/\//.test(a[d])&&e(Error("URI "+a[d]+" is invalid for field "+d));this.oa=a;this.name=this.oa.cn||bi(10);this.Cb=b||O();this.dh=[];a.lpu=a.lpu||qe(this.Cb.v().location.href)+"/robots.txt";a.ppu=a.ppu||qe(a.pu||"")+"/robots.txt";ai[this.name]=this;T(window,"unload",lj);X.info("CrossPageChannel created: "+this.name)}z(kj,zi);var mj=/^%*tp$/,nj=/^%+tp$/;q=kj.prototype;q.yb=k;q.P=1;q.Gc=function(){return this.P==2};q.kc=k;q.kg=k;
function oj(a){var b={};b.cn=a.name;b.tp=a.oa.tp;a.oa.lru&&(b.pru=a.oa.lru);a.oa.lpu&&(b.ppu=a.oa.lpu);a.oa.ppu&&(b.lpu=a.oa.ppu);return b}
function pj(a,b,c){var d=a.oa.ifrid;d||(d=a.oa.ifrid="xpcpeer"+bi(4));var f=document.createElement("IFRAME");f.id=f.name=d;c?c(f):f.style.width=f.style.height="100%";var g=a.oa.pu;t(g)&&(g=a.oa.pu=new di(g));ti(g,wf(oj(a)));E||G?(a.$k=j,window.setTimeout(u(function(){this.$k=m;b.appendChild(f);f.src=g.toString();X.info("peer iframe created ("+d+")");this.Zg&&this.wc(this.Qk)},a),1)):(f.src=g.toString(),b.appendChild(f),X.info("peer iframe created ("+d+")"))}q.$k=m;q.Zg=m;
q.wc=function(a){this.Qk=a||ga;if(this.$k)X.info("connect() deferred"),this.Zg=j;else{this.Zg=m;X.info("connect()");if(this.oa.ifrid)this.kg=this.Cb.b(this.oa.ifrid);if(this.kg)(a=this.kg.contentWindow)||(a=window.frames[this.oa.ifrid]),this.kc=a;if(!this.kc)window==top&&e(Error("CrossPageChannel: Can't connect, peer window-object not set.")),this.kc=window.parent;if(!this.yb){if(!this.oa.tp){var a=this.oa,b;if(na(document.postMessage)||na(window.postMessage)||D&&window.postMessage)b=1;else if(E)b=
2;else if(D&&this.oa.pru)b=3;else{var c;if(c=D){c=m;try{b=window.opener,window.opener={},c=Jd(window,"opener"),window.opener=b}catch(d){}}b=c?6:4}a.tp=b}switch(this.oa.tp){case 1:this.yb=new ej(this,this.oa.ph,this.Cb);break;case 6:this.yb=new hj(this,this.Cb);break;case 2:this.yb=new Ci(this,this.Cb);break;case 3:this.yb=new Vi(this,this.Cb);break;case 4:this.yb=new Fi(this,this.Cb)}this.yb?X.info("Transport created: "+this.yb.getName()):e(Error("CrossPageChannel: No suitable transport found!"))}for(this.yb.wc();this.dh.length>
0;)this.dh.shift()()}};q.close=function(){if(this.Gc())this.P=3,this.yb.m(),this.Qk=this.yb=k,this.Zg=m,this.dh.length=0,X.info('Channel "'+this.name+'" closed')};function Ei(a){if(!a.Gc())a.P=2,X.info('Channel "'+a.name+'" connected'),a.Qk()}q.send=function(a,b){this.Gc()?Boolean(this.kc.closed)?(nf(X,"Peer has disappeared."),this.close()):(oa(b)&&(b=wf(b)),this.yb.send(qj(a),b)):nf(X,"Can't send. Channel not connected.")};
q.Fd=function(a,b,c){if(this.Zg)this.dh.push(u(this.Fd,this,a,b,c));else{var d=this.oa.ph;if(Ca(c)||Ca(d)||c==this.oa.ph)if(this.Hd)of(X,"CrossPageChannel::deliver_(): Disposed.");else if(!a||a=="tp")this.yb.rn(b);else if(this.Gc()){if(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=nj.test(a)?a.substring(1):a,c=this.ek[a],c||(this.wo?(c=ua(this.wo,a),d=oa(b),c={Wn:c,iq:d}):(of(this.$a,'Unknown service name "'+a+'"'),c=k)),c){var f;a:{if((d=c.iq)&&t(b))try{f=vf(b);break a}catch(g){of(this.$a,"Expected JSON payload for "+
a+', was "'+b+'"');f=k;break a}else if(!d&&!t(b)){f=wf(b);break a}f=b}ea(f)&&c.Wn(f)}}else X.info("CrossPageChannel::deliver_(): Not connected.");else of(X,'Message received from unapproved origin "'+c+'" - rejected.')}};function qj(a){mj.test(a)&&(a="%"+a);return a.replace(/[%:|]/g,encodeURIComponent)}function Di(a){return window.parent==a.kc?1:0}q.d=function(){kj.c.d.call(this);this.close();this.kg=this.kc=k;delete ai[this.name];this.dh.length=0};
function lj(){for(var a in ai){var b=ai[a];b&&b.m()}};function rj(a,b){this.Xn=a;this.cs=b;sj(this)}function sj(a){function b(a){a.style.width="400px";a.style.border="none";a.style.height="200px"}a.Pj=new kj({pu:"https://secure.shoesofprey.com/members/login-dialog"});Ai(a.Pj,"storeCookie",u(a.gw,a));Ai(a.Pj,"error",u(a.lt,a));a.ia=new yh("modal-dialog",j);Jh(a.ia,k);a.ia.t(j);var c=a.ia.s();c&&(pj(a.Pj,c,b),a.Pj.wc())}
rj.prototype.gw=function(a){var a=vf(a),b;for(b in a)a.hasOwnProperty(b)&&tj.set(b,a[b]);this.ia&&this.ia.d();(b=Ac("logout-link"))&&K(b,"hidden");(b=Ac("menu-shoes-link"))&&K(b,"hidden");(b=Ac("menu-login-link"))&&J(b,"hidden");A(uj("hide-on-login"),function(a){J(a,"hidden")});A(uj("show-on-login"),function(a){K(a,"hidden")});this.Xn&&this.Xn(this.cs)};rj.prototype.lt=function(){top.location="/members/login"};y("sop.asynclogin",rj);var vj={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function wj(a){var b={},a=""+a,c=a.charAt(0)=="#"?a:"#"+a;if(xj.test(c))return b.gj=yj(c),b.type="hex",b;a:{var d=a.match(zj);if(d){var c=Number(d[1]),f=Number(d[2]),d=Number(d[3]);if(c>=0&&c<=255&&f>=0&&f<=255&&d>=0&&d<=255){c=[c,f,d];break a}}c=[]}if(c.length)return f=c[0],a=c[1],c=c[2],f=Number(f),a=Number(a),c=Number(c),(isNaN(f)||f<0||f>255||isNaN(a)||a<0||a>255||isNaN(c)||c<0||c>255)&&e(Error('"('+f+","+a+","+c+'") is not a valid RGB color')),f=Aj(f.toString(16)),a=Aj(a.toString(16)),c=Aj(c.toString(16)),
b.gj="#"+f+a+c,b.type="rgb",b;if(vj&&(c=vj[a.toLowerCase()]))return b.gj=c,b.type="named",b;e(Error(a+" is not a valid color string"))}var Bj=/#(.)(.)(.)/;function yj(a){xj.test(a)||e(Error("'"+a+"' is not a valid hex color"));a.length==4&&(a=a.replace(Bj,"#$1$1$2$2$3$3"));return a.toLowerCase()}var xj=/^#(?:[0-9a-f]{3}){1,2}$/i,zj=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Aj(a){return a.length==1?"0"+a:a};function Cj(){this.P=Dj;this.Go=this.startTime=k}z(Cj,xe);var Dj=0;Cj.prototype.Td=function(){this.Gd("begin")};Cj.prototype.zg=function(){this.Gd("end")};Cj.prototype.Gd=function(a){this.dispatchEvent(a)};var Ej={},Fj=k;function Gj(a){a=pa(a);delete Ej[a];qc(Ej)&&Fj&&(Ce(Fj),Fj=k)}function Hj(){Fj||(Fj=Be(function(){Fj=k;Ij()},20))}function Ij(){var a=va();kc(Ej,function(b){Jj(b,a)});qc(Ej)||Hj()};function Kj(a,b,c,d){Cj.call(this);(!ka(a)||!ka(b))&&e(Error("Start and end parameters must be arrays"));a.length!=b.length&&e(Error("Start and end points must be the same length"));this.Ng=a;this.Js=b;this.duration=c;this.Fn=d;this.coords=[]}z(Kj,Cj);q=Kj.prototype;q.So=0;q.lc=0;q.Xl=k;
q.play=function(a){if(a||this.P==Dj)this.lc=0,this.coords=this.Ng;else if(this.P==1)return m;Gj(this);this.startTime=a=va();this.P==-1&&(this.startTime-=this.duration*this.lc);this.Go=this.startTime+this.duration;this.Xl=this.startTime;this.lc||this.Td();this.Gd("play");this.P==-1&&this.Gd("resume");this.P=1;var b=pa(this);b in Ej||(Ej[b]=this);Hj();Jj(this,a);return j};q.stop=function(a){Gj(this);this.P=Dj;if(a)this.lc=1;Lj(this,this.lc);this.Gd("stop");this.zg()};
q.d=function(){this.P==Dj||this.stop(m);this.Gd("destroy");Kj.c.d.call(this)};function Jj(a,b){a.lc=(b-a.startTime)/(a.Go-a.startTime);if(a.lc>=1)a.lc=1;a.So=1E3/(b-a.Xl);a.Xl=b;Lj(a,a.lc);a.lc==1?(a.P=Dj,Gj(a),a.Gd("finish"),a.zg()):a.P==1&&a.pm()}function Lj(a,b){na(a.Fn)&&(b=a.Fn(b));a.coords=Array(a.Ng.length);for(var c=0;c<a.Ng.length;c++)a.coords[c]=(a.Js[c]-a.Ng[c])*b+a.Ng[c]}q.pm=function(){this.Gd("animate")};q.Gd=function(a){this.dispatchEvent(new Mj(a,this))};
function Mj(a,b){Cd.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.Xy=b.coords[2];this.duration=b.duration;this.lc=b.lc;this.Ay=b.So;this.state=b.P;this.sy=b}z(Mj,Cd);function Nj(a,b,c,d,f){Kj.call(this,b,c,d,f);this.element=a}z(Nj,Kj);Nj.prototype.ki=ga;Nj.prototype.pm=function(){this.ki();Nj.c.pm.call(this)};Nj.prototype.zg=function(){this.ki();Nj.c.zg.call(this)};Nj.prototype.Td=function(){this.ki();Nj.c.Td.call(this)};function Oj(a,b,c,d,f){(b.length!=2||c.length!=2)&&e(Error("Start and end points must be 2D"));Nj.apply(this,arguments)}z(Oj,Nj);
Oj.prototype.ki=function(){this.element.style.left=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};function Pj(a,b,c,d){Oj.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}z(Pj,Oj);Pj.prototype.Td=function(){this.Ng=[this.element.offsetLeft,this.element.offsetTop];Pj.c.Td.call(this)};function Qj(a,b,c,d,f){ma(b)&&(b=[b]);ma(c)&&(c=[c]);Nj.call(this,a,b,c,d,f);(b.length!=1||c.length!=1)&&e(Error("Start and end points must be 1D"))}z(Qj,Nj);
Qj.prototype.ki=function(){Sg(this.element,this.coords[0])};Qj.prototype.show=function(){this.element.style.display=""};Qj.prototype.gb=function(){this.element.style.display="none"};function Rj(a,b,c){Qj.call(this,a,1,0,b,c)}z(Rj,Qj);Rj.prototype.Td=function(){this.show();Rj.c.Td.call(this)};Rj.prototype.zg=function(){this.gb();Rj.c.zg.call(this)};function Sj(a,b,c){Qj.call(this,a,0,1,b,c)}z(Sj,Qj);Sj.prototype.Td=function(){this.show();Sj.c.Td.call(this)};function Tj(a){a.Rq.start();T(a.Rq,Ae,function(){if(this.pl){if(this.ah++,this.ah==this.Ku)this.pl=m}else if(this.ah--,this.ah==1)this.pl=j;(new Pj(this.dw,[-((this.ah-1)*this.jv),0],400)).play()},h,a)}y("sop.autoscroller",function(a,b){this.dw=Y(a+"-scroller");this.jv=b;this.Ku=Z("div",a+"-panel").length;this.ah=1;this.pl=j;this.Rq=new ye(5E3);Tj(this)});function Uj(){}Uj.prototype.init=function(){new Vj;Wj(this)};function Wj(a){A(Z("a","open-homepage-video"),function(a){T(a,S,u(this.qq,this,"homepage-video"))},a)}Uj.prototype.qq=function(a,b){b.preventDefault();var c=new yh("modal-dialog",j);c.Ea(Y(a).innerHTML);Jh(c,k);c.t(j)};y("sop.homepage",Uj);Uj.prototype.init=Uj.prototype.init;function Xj(a){dh.call(this);a=a||{};this.vp=a.Jl;this.tb=typeof a.Lo!="undefined"?a.Lo:j;this.Iy=typeof a.loaded!="undefined"?a.loaded:j;this.ys=a.xs||Yj;this.cl=j}z(Xj,dh);q=Xj.prototype;q.W=function(){Xj.c.W.call(this);this.ys(this,this.ca())};q.f=function(){var a="<table>"+this.vp+"</table>",b=this.q().T().createElement("div");b.innerHTML=a;this.j=b.firstChild.rows[0]};q.qb=function(a){return a.tagName=="TR"};q.Ie=function(a,b,c){Xj.c.Ie.call(this,a,b,m);Zj(a,this.Jc()&&this.tb);c&&!a.N&&a.Pa()};
q.removeChild=function(a){Q(a.b());return Xj.c.removeChild.call(this,a)};q.d=function(){delete this.vp;this.Da=k;Xj.c.d.call(this)};
q.Pa=function(){arguments.length&&e(Error("A DrilldownRow cannot be placed under a specific parent."));var a=this.getParent();a.N||e(Error("Cannot render child of un-rendered parent"));var b;a:{for(var c=mh(a)-1;c>=0;c--)if(nh(a,c)==this)for(b=c-1;b>=0;b--){var d=nh(a,b);if(d.N){b=d;break a}}b=k}if(b){for(c=k;b&&b.N;b=nh(b,mh(b)-1))c=b;c=c.b()}else c=a.b();(c=c.nextSibling)?kh(this,c.parentNode,c):(a=a.b().parentNode,Xj.c.Pa.call(this,a))};
q.Zd=function(a){if(a!=this.tb)this.tb=a,ec(this.b(),"goog-drilldown-expanded"),ec(this.b(),"goog-drilldown-collapsed"),this.Jc()&&lh(this,function(b){Zj(b,a)})};function $j(a){for(var b=0;a instanceof Xj;a=a.getParent(),b++);return b}
function Yj(a){var b=$j(a),c=a.b();c.cells||e(Error("No cells"));var d=c.cells[0],b=td(a.q(),'<div style="float: left; width: '+b+'em;"><div class=toggle style="width: 1em; float: right;">&nbsp;</div></div>');d.insertBefore(b,d.firstChild);J(c,a.tb?"goog-drilldown-expanded":"goog-drilldown-collapsed");c=b.getElementsByTagName("div")[0];a.ca().h(c,"click",function(){a.Zd(!a.tb)})}
function Zj(a,b){b&&!a.N&&a.Pa();if(a.cl!=b){a.cl=b;if(a.N)a.b().style.display=b?"":"none";lh(a,function(c){Zj(c,b&&a.tb)})}}q.Jc=function(){for(var a=this;a instanceof Xj;a=a.getParent())if(!a.cl)return m;return j};function ak(a){A(Z("td","year"),function(a){K(a,"year")});A(Z("td","month"),function(a){K(a,"month")});A(Z("td","post"),function(a){K(a,"post")});A(a,function(a){var c=""+a.year;this.An=new Xj({Jl:"<tr><td>"+c+"</td></tr>"});this.An.Z(Y(c));A(a.months,function(a){var b=""+a.month;this.km=new Xj({Jl:Y(b).innerHTML});this.An.Ab(this.km,j);A(a.posts,function(a){this.nv=new Xj({Jl:Y(""+a.id).innerHTML,xs:this.Z});this.km.Ab(this.nv)},this);dc(Y(b),"first")||this.km.Zd(m)},this);dc(Y(c),"first")||this.An.Zd(m)},
this);A(Z("tr","archive"),function(a){a.innerHTML=""})}ak.prototype.Z=function(a){var b=a.b();b.cells||e(Error("No cells"));b=b.cells[0];a=td(a.q(),'<div style="float: left; width:25px">&nbsp;</div>');b.insertBefore(a,b.firstChild)};y("sop.blog",ak);function bk(a,b,c){this.bm=a;this.jf=b||0;this.fa=c;this.ds=u(this.Yf,this)}z(bk,zd);q=bk.prototype;q.fc=0;q.d=function(){bk.c.d.call(this);this.stop();delete this.bm;delete this.fa};q.start=function(a){this.stop();this.fc=Be(this.ds,ja(a)?a:this.jf)};q.stop=function(){this.Fc()&&Ce(this.fc);this.fc=0};function ck(a){a.Fc()&&(a.stop(),a.Yf())}q.Fc=function(){return this.fc!=0};q.Yf=function(){this.fc=0;this.bm&&this.bm.call(this.fa)};function dk(){}z(dk,zd);var ek=uf("goog.dom.SavedRange");dk.prototype.restore=function(a){this.Hd&&nf(ek,"Disposed SavedRange objects cannot be restored.");var b=this.Yj();a||this.m();return b};function fk(a){this.kr=Wa();this.Fo=Wa();this.k=O(a.T());a.hi(this.k.f("SPAN",{id:this.kr}),this.k.f("SPAN",{id:this.Fo}))}z(fk,dk);function gk(a,b){return a.k.b(b?a.kr:a.Fo)}fk.prototype.Th=function(a){Q(gk(this,j));Q(gk(this,m));return a};fk.prototype.Yj=function(){var a=k,b=gk(this,j),c=gk(this,m);if(b&&c){var a=b.parentNode,b=fb(a.childNodes,b),d=c.parentNode,c=fb(d.childNodes,c);d==a&&(c-=1);a=hk(a,b,d,c);a=this.Th(a);a.select()}else this.Th();return a};
fk.prototype.d=function(){this.Th();this.k=k};function ik(a,b,c,d,f){this.hb=!!b;a&&this.Sc(a,d);this.depth=f!=h?f:this.Ra||0;this.hb&&(this.depth*=-1);this.Hi=!c}z(ik,Je);q=ik.prototype;q.C=k;q.Ra=0;q.fn=m;q.Sc=function(a,b,c){if(this.C=a)this.Ra=ma(b)?b:this.C.nodeType!=1?0:this.hb?-1:1;if(ma(c))this.depth=c};q.Ed=function(a){this.C=a.C;this.Ra=a.Ra;this.depth=a.depth;this.hb=a.hb;this.Hi=a.Hi};q.U=function(){return new ik(this.C,this.hb,!this.Hi,this.Ra,this.depth)};
q.an=function(){var a=this.hb?-1:1;if(this.Ra==a)this.Ra=a*-1,this.depth+=this.Ra*(this.hb?-1:1)};q.next=function(){var a;if(this.fn){(!this.C||this.Hi&&this.depth==0)&&e(Ie);a=this.C;var b=this.hb?-1:1;if(this.Ra==b){var c=this.hb?a.lastChild:a.firstChild;c?this.Sc(c):this.Sc(a,b*-1)}else(c=this.hb?a.previousSibling:a.nextSibling)?this.Sc(c):this.Sc(a.parentNode,b*-1);this.depth+=this.Ra*(this.hb?-1:1)}else this.fn=j;(a=this.C)||e(Ie);return a};
q.ag=function(a){return a.C==this.C&&(!this.C||a.Ra==this.Ra)};q.splice=function(a){var b=this.C,c=this.hb?1:-1;if(this.Ra==c)this.Ra=c*-1,this.depth+=this.Ra*(this.hb?-1:1);this.hb=!this.hb;ik.prototype.next.call(this);this.hb=!this.hb;for(var c=la(arguments[0])?arguments[0]:arguments,d=c.length-1;d>=0;d--)Xc(c[d],b);Q(b)};function jk(){}function kk(a){if(a.getSelection)return a.getSelection();var a=a.document,b=a.selection;if(b){try{var c=b.createRange();if(c.parentElement){if(c.parentElement().document!=a)return k}else if(!c.length||c.item(0).document!=a)return k}catch(d){return k}return b}return k}function lk(a){for(var b=[],c=0,d=a.df();c<d;c++)b.push(a.ec(c));return b}q=jk.prototype;q.fb=function(){var a=this.cc();return a.nodeType==1?a:a.parentNode};function mk(a){return a.Pd()?a.r():a.H()}
function nk(a){return a.Pd()?a.S():a.da()}q.Pd=p(m);q.T=function(){return P(D?this.cc():this.r())};q.v=function(){return Nc(this.T())};q.containsNode=function(a,b){return this.Dd(ok(pk(a),h),b)};q.Mq=function(a){this.isCollapsed()||this.Xd();return this.insertNode(a,j)};function qk(a,b){ik.call(this,a,b,j)}z(qk,ik);function rk(){}z(rk,jk);rk.prototype.Dd=function(a,b){var c=lk(this),d=lk(a);return(b?jb:kb)(d,function(a){return jb(c,function(c){return c.Dd(a,b)})})};rk.prototype.insertNode=function(a,b){b?Wc(a,this.r()):Xc(a,this.H());return a};rk.prototype.hi=function(a,b){this.insertNode(a,j);this.insertNode(b,m)};function sk(a,b,c,d,f){var g;if(a){this.J=a;this.O=b;this.G=c;this.M=d;if(a.nodeType==1&&a.tagName!="BR")if(a=a.childNodes,b=a[b])this.J=b,this.O=0;else{if(a.length)this.J=db(a);g=j}if(c.nodeType==1)(this.G=c.childNodes[d])?this.M=0:this.G=c}qk.call(this,f?this.G:this.J,f);if(g)try{this.next()}catch(i){i!=Ie&&e(i)}}z(sk,qk);q=sk.prototype;q.J=k;q.G=k;q.O=0;q.M=0;q.r=o("J");q.H=o("G");q.Ah=function(){return this.fn&&this.C==this.G&&(!this.M||this.Ra!=1)};q.next=function(){this.Ah()&&e(Ie);return sk.c.next.call(this)};
q.an=function(){sk.c.an.apply(this);cd(this.C,this.G)&&e(Ie)};q.Ed=function(a){this.J=a.J;this.G=a.G;this.O=a.O;this.M=a.M;this.Ic=a.Ic;sk.c.Ed.call(this,a)};q.U=function(){var a=new sk(this.J,this.O,this.G,this.M,this.Ic);a.Ed(this);return a};function tk(a,b){this.Zc=Qd?[]:"";a!=k&&this.append.apply(this,arguments)}tk.prototype.set=function(a){this.clear();this.append(a)};Qd?(tk.prototype.Jk=0,tk.prototype.append=function(a,b,c){b==k?this.Zc[this.Jk++]=a:(this.Zc.push.apply(this.Zc,arguments),this.Jk=this.Zc.length);return this}):tk.prototype.append=function(a,b,c){this.Zc+=a;if(b!=k)for(var d=1;d<arguments.length;d++)this.Zc+=arguments[d];return this};tk.prototype.clear=function(){Qd?this.Jk=this.Zc.length=0:this.Zc=""};
tk.prototype.toString=function(){if(Qd){var a=this.Zc.join("");this.clear();a&&this.append(a);return a}return this.Zc};function uk(){}uk.prototype.Dd=function(a,b){var c=b&&!a.isCollapsed(),d=a.l;try{return c?this.Yb(d,0,1)>=0&&this.Yb(d,1,0)<=0:this.Yb(d,0,0)>=0&&this.Yb(d,1,1)<=0}catch(f){return D||e(f),m}};uk.prototype.containsNode=function(a,b){return this.Dd(pk(a),b)};uk.prototype.xd=function(){return new sk(this.r(),this.S(),this.H(),this.da())};function vk(a){this.l=a}z(vk,uk);function wk(a){var b=P(a).createRange();if(a.nodeType==3)b.setStart(a,0),b.setEnd(a,a.length);else if(xk(a)){for(var c,d=a;(c=d.firstChild)&&xk(c);)d=c;b.setStart(d,0);for(d=a;(c=d.lastChild)&&xk(c);)d=c;b.setEnd(d,d.nodeType==1?d.childNodes.length:d.length)}else c=a.parentNode,a=fb(c.childNodes,a),b.setStart(c,a),b.setEnd(c,a+1);return b}function yk(a,b,c,d){var f=P(a).createRange();f.setStart(a,b);f.setEnd(c,d);return f}q=vk.prototype;q.U=function(){return new this.constructor(this.l.cloneRange())};
q.cc=function(){return this.l.commonAncestorContainer};q.r=function(){return this.l.startContainer};q.S=function(){return this.l.startOffset};q.H=function(){return this.l.endContainer};q.da=function(){return this.l.endOffset};q.Yb=function(a,b,c){return this.l.compareBoundaryPoints(c==1?b==1?s.Range.START_TO_START:s.Range.START_TO_END:b==1?s.Range.END_TO_START:s.Range.END_TO_END,a)};q.isCollapsed=function(){return this.l.collapsed};q.le=function(){return this.l.toString()};
q.select=function(a){this.$j(Nc(P(this.r())).getSelection(),a)};q.$j=function(a){a.removeAllRanges();a.addRange(this.l)};q.Xd=function(){var a=this.l;a.extractContents();if(a.startContainer.hasChildNodes()&&(a=a.startContainer.childNodes[a.startOffset])){var b=a.previousSibling;pd(a)==""&&Q(a);b&&pd(b)==""&&Q(b)}};q.insertNode=function(a,b){var c=this.l.cloneRange();c.collapse(b);c.insertNode(a);c.detach();return a};
q.hi=function(a,b){var c=Nc(P(this.r()));if(c=zk(c))var d=c.r(),f=c.H(),g=c.S(),i=c.da();var l=this.l.cloneRange(),n=this.l.cloneRange();l.collapse(m);n.collapse(j);l.insertNode(b);n.insertNode(a);l.detach();n.detach();if(c){if(d.nodeType==3)for(;g>d.length;){g-=d.length;do d=d.nextSibling;while(d==a||d==b)}if(f.nodeType==3)for(;i>f.length;){i-=f.length;do f=f.nextSibling;while(f==a||f==b)}hk(d,g,f,i).select()}};q.collapse=function(a){this.l.collapse(a)};function Ak(a){this.l=a}z(Ak,vk);Ak.prototype.$j=function(a,b){var c=b?this.H():this.r(),d=b?this.da():this.S(),f=b?this.r():this.H(),g=b?this.S():this.da();a.collapse(c,d);(c!=f||d!=g)&&a.extend(f,g)};function Bk(a,b){this.l=a;this.Ri=b}z(Bk,uk);var Ck=uf("goog.dom.browserrange.IeRange");function Dk(a){var b=P(a).body.createTextRange();if(a.nodeType==1)b.moveToElementText(a),xk(a)&&!a.childNodes.length&&b.collapse(m);else{for(var c=0,d=a;d=d.previousSibling;){var f=d.nodeType;if(f==3)c+=d.length;else if(f==1){b.moveToElementText(d);break}}d||b.moveToElementText(a.parentNode);b.collapse(!d);c&&b.move("character",c);b.moveEnd("character",a.length)}return b}q=Bk.prototype;q.pd=k;q.J=k;q.G=k;q.O=-1;
q.M=-1;q.U=function(){var a=new Bk(this.l.duplicate(),this.Ri);a.pd=this.pd;a.J=this.J;a.G=this.G;return a};q.Xb=function(){this.pd=this.J=this.G=k;this.O=this.M=-1};
q.cc=function(){if(!this.pd){var a=this.l.text,b=this.l.duplicate(),c=a.replace(/ +$/,"");(c=a.length-c.length)&&b.moveEnd("character",-c);c=b.parentElement();b=Ea(b.htmlText).length;if(this.isCollapsed()&&b>0)return this.pd=c;for(;b>Ea(c.outerHTML).length;)c=c.parentNode;for(;c.childNodes.length==1&&c.innerText==(c.firstChild.nodeType==3?c.firstChild.nodeValue:c.firstChild.innerText);){if(!xk(c.firstChild))break;c=c.firstChild}a.length==0&&(c=Ek(this,c));this.pd=c}return this.pd};
function Ek(a,b){for(var c=b.childNodes,d=0,f=c.length;d<f;d++){var g=c[d];if(xk(g)){var i=Dk(g),l=i.htmlText!=g.outerHTML;if(a.isCollapsed()&&l?a.Yb(i,1,1)>=0&&a.Yb(i,1,0)<=0:a.l.inRange(i))return Ek(a,g)}}return b}q.r=function(){if(!this.J&&(this.J=Fk(this,1),this.isCollapsed()))this.G=this.J;return this.J};q.S=function(){if(this.O<0&&(this.O=Gk(this,1),this.isCollapsed()))this.M=this.O;return this.O};q.H=function(){if(this.isCollapsed())return this.r();if(!this.G)this.G=Fk(this,0);return this.G};
q.da=function(){if(this.isCollapsed())return this.S();if(this.M<0&&(this.M=Gk(this,0),this.isCollapsed()))this.O=this.M;return this.M};q.Yb=function(a,b,c){return this.l.compareEndPoints((b==1?"Start":"End")+"To"+(c==1?"Start":"End"),a)};
function Fk(a,b,c){c=c||a.cc();if(!c||!c.firstChild)return c;for(var d=b==1,f=0,g=c.childNodes.length;f<g;f++){var i=d?f:g-f-1,l=c.childNodes[i],n;try{n=pk(l)}catch(r){continue}var v=n.l;if(a.isCollapsed())if(xk(l)){if(n.Dd(a))return Fk(a,b,l)}else{if(a.Yb(v,1,1)==0){a.O=a.M=i;break}}else{if(a.Dd(n)){if(!xk(l)){d?a.O=i:a.M=i+1;break}return Fk(a,b,l)}if(a.Yb(v,1,0)<0&&a.Yb(v,0,1)>0)return Fk(a,b,l)}}return c}
function Gk(a,b){var c=b==1,d=c?a.r():a.H();if(d.nodeType==1){for(var d=d.childNodes,f=d.length,g=c?1:-1,i=c?0:f-1;i>=0&&i<f;i+=g){var l=d[i];if(!xk(l)&&a.l.compareEndPoints((b==1?"Start":"End")+"To"+(b==1?"Start":"End"),pk(l).l)==0)return c?i:i+1}return i==-1?0:i}f=a.l.duplicate();g=Dk(d);f.setEndPoint(c?"EndToEnd":"StartToStart",g);f=f.text.length;return c?d.length-f:f}q.ng=function(){var a=this.Ri.body.createTextRange();a.moveToElementText(this.Ri.body);return this.Dd(new Bk(a,this.Ri),j)};
q.isCollapsed=function(){return this.l.compareEndPoints("StartToEnd",this.l)==0};q.le=function(){return this.l.text};q.select=function(){this.l.select()};
q.Xd=function(){if(!this.isCollapsed()&&this.l.htmlText){var a=this.r(),b=this.H(),c=this.l.text,d=this.l.duplicate();d.moveStart("character",1);d.moveStart("character",-1);if(d.text==c)this.l=d;this.l.text="";this.Xb();c=this.r();d=this.S();try{var f=a.nextSibling;if(a==b&&a.parentNode&&a.nodeType==3&&f&&f.nodeType==3)a.nodeValue+=f.nodeValue,Q(f),this.l=Dk(c),this.l.move("character",d),this.Xb()}catch(g){}}};
function Hk(a,b,c){var d;d=d||O(a.parentElement());var f;b.nodeType!=1&&(f=j,b=d.f("DIV",k,b));a.collapse(c);var c=d||O(a.parentElement()),g,i=g=b.id;if(!g)g=b.id=Wa();a.pasteHTML(b.outerHTML);(b=c.b(g))&&(i||b.removeAttribute("id"));if(f)a=b.firstChild,d.Qs(b),b=a;return b}q.insertNode=function(a,b){var c=Hk(this.l.duplicate(),a,b);this.Xb();return c};q.hi=function(a,b){var c=this.l.duplicate(),d=this.l.duplicate();Hk(c,a,j);Hk(d,b,m);this.Xb()};
q.collapse=function(a){this.l.collapse(a);a?(this.G=this.J,this.M=this.O):(this.J=this.G,this.O=this.M)};function Ik(a){this.l=a}z(Ik,vk);Ik.prototype.$j=function(a){a.collapse(this.r(),this.S());(this.H()!=this.r()||this.da()!=this.S())&&a.extend(this.H(),this.da());a.rangeCount==0&&a.addRange(this.l)};function Jk(a){this.l=a}z(Jk,vk);Jk.prototype.Yb=function(a,b,c){return I("528")?Jk.c.Yb.call(this,a,b,c):this.l.compareBoundaryPoints(c==1?b==1?s.Range.START_TO_START:s.Range.END_TO_START:b==1?s.Range.START_TO_END:s.Range.END_TO_END,a)};Jk.prototype.$j=function(a,b){a.removeAllRanges();b?a.setBaseAndExtent(this.H(),this.da(),this.r(),this.S()):a.setBaseAndExtent(this.r(),this.S(),this.H(),this.da())};function Kk(a){return D&&!Yb()?new Bk(a,P(a.parentElement())):G?new Jk(a):E?new Ak(a):C?new Ik(a):new vk(a)}function pk(a){if(D&&!Yb()){var b=new Bk(Dk(a),P(a));if(xk(a)){for(var c,d=a;(c=d.firstChild)&&xk(c);)d=c;b.J=d;b.O=0;for(d=a;(c=d.lastChild)&&xk(c);)d=c;b.G=d;b.M=d.nodeType==1?d.childNodes.length:d.length;b.pd=a}else b.J=b.G=b.pd=a.parentNode,b.O=fb(b.pd.childNodes,a),b.M=b.O+1;a=b}else a=G?new Jk(wk(a)):E?new Ak(wk(a)):C?new Ik(wk(a)):new vk(wk(a));return a}
function xk(a){var b;a:if(a.nodeType!=1)b=m;else{switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "STYLE":b=m;break a}b=j}return b||a.nodeType==3};function Lk(){}z(Lk,jk);function ok(a,b){var c=new Lk;c.Me=a;c.Ic=!!b;return c}function hk(a,b,c,d){var f=new Lk;f.Ic=Mk(a,b,c,d);if(a.tagName=="BR")var g=a.parentNode,b=fb(g.childNodes,a),a=g;if(c.tagName=="BR")g=c.parentNode,d=fb(g.childNodes,c),c=g;f.Ic?(f.J=c,f.O=d,f.G=a,f.M=b):(f.J=a,f.O=b,f.G=c,f.M=d);return f}q=Lk.prototype;q.Me=k;q.J=k;q.O=k;q.G=k;q.M=k;q.Ic=m;q.U=function(){var a=new Lk;a.Me=this.Me;a.J=this.J;a.O=this.O;a.G=this.G;a.M=this.M;a.Ic=this.Ic;return a};q.fg=p("text");q.Mb=function(){return Nk(this).l};
q.Xb=function(){this.J=this.O=this.G=this.M=k};q.df=p(1);q.ec=function(){return this};
function Nk(a){var w;var b;if(!(b=a.Me)){b=a.r();var c=a.S(),d=a.H(),f=a.da();if(D&&!Yb()){var g=b,i=c,l=d,n=f,r=m;g.nodeType==1&&(i>g.childNodes.length&&nf(Ck,"Cannot have startOffset > startNode child count"),i=g.childNodes[i],r=!i,g=i||g.lastChild||g,i=0);var v=Dk(g);i&&v.move("character",i);g==l&&i==n?v.collapse(j):(r&&v.collapse(m),r=m,l.nodeType==1&&(n>l.childNodes.length&&nf(Ck,"Cannot have endOffset > endNode child count"),w=(i=l.childNodes[n])||l.lastChild||l,l=w,n=0,r=!i),g=Dk(l),g.collapse(!r),
n&&g.moveEnd("character",n),v.setEndPoint("EndToEnd",g));n=new Bk(v,P(b));n.J=b;n.O=c;n.G=d;n.M=f;b=n}else b=G?new Jk(yk(b,c,d,f)):E?new Ak(yk(b,c,d,f)):C?new Ik(yk(b,c,d,f)):new vk(yk(b,c,d,f));b=a.Me=b}return b}q.cc=function(){return Nk(this).cc()};q.r=function(){return this.J||(this.J=Nk(this).r())};q.S=function(){return this.O!=k?this.O:this.O=Nk(this).S()};q.H=function(){return this.G||(this.G=Nk(this).H())};q.da=function(){return this.M!=k?this.M:this.M=Nk(this).da()};q.Pd=o("Ic");
q.Dd=function(a,b){var c=a.fg();if(c=="text")return Nk(this).Dd(Nk(a),b);return c=="control"?(c=a.bf(),(b?jb:kb)(c,function(a){return this.containsNode(a,b)},this)):m};function Ok(a){if(D&&!Yb()){var b=m;try{b=a.parentNode}catch(c){}return!!b}return cd(a.ownerDocument.body,a)}q.ng=function(){return(!this.J||Ok(this.J))&&(!this.G||Ok(this.G))&&(!(D&&!Yb())||Nk(this).ng())};q.isCollapsed=function(){return Nk(this).isCollapsed()};q.le=function(){return Nk(this).le()};
q.xd=function(){return new sk(this.r(),this.S(),this.H(),this.da())};q.select=function(){Nk(this).select(this.Ic)};q.Xd=function(){Nk(this).Xd();this.Xb()};q.insertNode=function(a,b){var c=Nk(this).insertNode(a,b);this.Xb();return c};q.hi=function(a,b){Nk(this).hi(a,b);this.Xb()};q.Mm=function(){return new Pk(this)};q.collapse=function(a){a=this.Pd()?!a:a;this.Me&&this.Me.collapse(a);a?(this.G=this.J,this.M=this.O):(this.J=this.G,this.O=this.M);this.Ic=m};
function Pk(a){this.Jn=a.Pd()?a.H():a.r();this.Ur=a.Pd()?a.da():a.S();this.Ro=mk(a);this.Rs=nk(a)}z(Pk,dk);Pk.prototype.Yj=function(){return hk(this.Jn,this.Ur,this.Ro,this.Rs)};Pk.prototype.d=function(){Pk.c.d.call(this);this.Ro=this.Jn=k};function Qk(){}z(Qk,rk);function Rk(a){var b=new Qk;b.l=a;return b}function Sk(a){for(var b=P(arguments[0]).body.createControlRange(),c=0,d=arguments.length;c<d;c++)b.addElement(arguments[c]);return Rk(b)}q=Qk.prototype;q.l=k;q.Q=k;q.ei=k;q.Xb=function(){this.ei=this.Q=k};q.U=function(){return Sk.apply(this,this.bf())};q.fg=p("control");q.Mb=function(){return this.l||document.body.createControlRange()};q.df=function(){return this.l?this.l.length:0};
q.ec=function(a){a=this.l.item(a);return ok(pk(a),h)};q.cc=function(){return gd.apply(k,this.bf())};q.r=function(){return Tk(this)[0]};q.S=p(0);q.H=function(){var a=Tk(this),b=db(a);return lb(a,function(a){return cd(a,b)})};q.da=function(){return this.H().childNodes.length};q.bf=function(){if(!this.Q&&(this.Q=[],this.l))for(var a=0;a<this.l.length;a++)this.Q.push(this.l.item(a));return this.Q};
function Tk(a){if(!a.ei)a.ei=a.bf().concat(),a.ei.sort(function(a,c){return a.sourceIndex-c.sourceIndex});return a.ei}q.ng=function(){var a=m;try{a=kb(this.bf(),function(a){return D?a.parentNode:cd(a.ownerDocument.body,a)})}catch(b){}return a};q.isCollapsed=function(){return!this.l||!this.l.length};q.le=p("");q.xd=function(){return new Uk(this)};q.select=function(){this.l&&this.l.select()};q.Xd=function(){if(this.l){for(var a=[],b=0,c=this.l.length;b<c;b++)a.push(this.l.item(b));A(a,Q);this.collapse(m)}};
q.Mq=function(a){a=this.insertNode(a,j);this.isCollapsed()||this.Xd();return a};q.Mm=function(){return new Vk(this)};q.collapse=function(){this.l=k;this.Xb()};function Vk(a){this.Q=a.bf()}z(Vk,dk);Vk.prototype.Yj=function(){for(var a=(this.Q.length?P(this.Q[0]):document).body.createControlRange(),b=0,c=this.Q.length;b<c;b++)a.addElement(this.Q[b]);return Rk(a)};Vk.prototype.d=function(){Vk.c.d.call(this);delete this.Q};
function Uk(a){if(a)this.Q=Tk(a),this.J=this.Q.shift(),this.G=db(this.Q)||this.J;qk.call(this,this.J,m)}z(Uk,qk);q=Uk.prototype;q.J=k;q.G=k;q.Q=k;q.r=o("J");q.H=o("G");q.Ah=function(){return!this.depth&&!this.Q.length};q.next=function(){this.Ah()&&e(Ie);if(!this.depth){var a=this.Q.shift();this.Sc(a,1,1);return a}return Uk.c.next.call(this)};q.Ed=function(a){this.Q=a.Q;this.J=a.J;this.G=a.G;Uk.c.Ed.call(this,a)};q.U=function(){var a=new Uk(k);a.Ed(this);return a};function Wk(){this.tc=[];this.Eg=[];this.Cd=this.Mg=k}z(Wk,rk);function Xk(a){var b=new Wk;b.Eg=a;b.tc=ib(a,function(a){return a.Mb()});return b}q=Wk.prototype;q.ya=uf("goog.dom.MultiRange");q.Xb=function(){this.Eg=[];this.Cd=this.Mg=k};q.U=function(){var a=new Wk;a.tc=qb(this.tc);return a};q.fg=p("mutli");q.Mb=function(){this.tc.length>1&&of(this.ya,"getBrowserRangeObject called on MultiRange with more than 1 range");return this.tc[0]};q.df=function(){return this.tc.length};
q.ec=function(a){this.Eg[a]||(this.Eg[a]=ok(Kk(this.tc[a]),h));return this.Eg[a]};q.cc=function(){if(!this.Cd){for(var a=[],b=0,c=this.df();b<c;b++)a.push(this.ec(b).cc());this.Cd=gd.apply(k,a)}return this.Cd};function Yk(a){if(!a.Mg)a.Mg=lk(a),a.Mg.sort(function(a,c){var d=a.r(),f=a.S(),g=c.r(),i=c.S();return d==g&&f==i?0:Mk(d,f,g,i)?1:-1});return a.Mg}q.r=function(){return Yk(this)[0].r()};q.S=function(){return Yk(this)[0].S()};q.H=function(){return db(Yk(this)).H()};q.da=function(){return db(Yk(this)).da()};
q.ng=function(){return kb(lk(this),function(a){return a.ng()})};q.isCollapsed=function(){return this.tc.length==0||this.tc.length==1&&this.ec(0).isCollapsed()};q.le=function(){return ib(lk(this),function(a){return a.le()}).join("")};q.xd=function(){return new Zk(this)};q.select=function(){var a=kk(this.v());a.removeAllRanges();for(var b=0,c=this.df();b<c;b++)a.addRange(this.ec(b).Mb())};q.Xd=function(){A(lk(this),function(a){a.Xd()})};q.Mm=function(){return new $k(this)};
q.collapse=function(a){if(!this.isCollapsed()){var b=a?this.ec(0):this.ec(this.df()-1);this.Xb();b.collapse(a);this.Eg=[b];this.Mg=[b];this.tc=[b.Mb()]}};function $k(a){this.Nm=ib(lk(a),function(a){return a.Mm()})}z($k,dk);$k.prototype.Yj=function(){var a=ib(this.Nm,function(a){return a.restore()});return Xk(a)};$k.prototype.d=function(){$k.c.d.call(this);A(this.Nm,function(a){a.m()});delete this.Nm};function Zk(a){if(a)this.qe=ib(Yk(a),function(a){return Ke(a)});qk.call(this,a?this.r():k,m)}
z(Zk,qk);q=Zk.prototype;q.qe=k;q.Mi=0;q.r=function(){return this.qe[0].r()};q.H=function(){return db(this.qe).H()};q.Ah=function(){return this.qe[this.Mi].Ah()};q.next=function(){try{var a=this.qe[this.Mi],b=a.next();this.Sc(a.C,a.Ra,a.depth);return b}catch(c){return(c!==Ie||this.qe.length-1==this.Mi)&&e(c),this.Mi++,this.next()}};q.Ed=function(a){this.qe=qb(a.qe);Zk.c.Ed.call(this,a)};q.U=function(){var a=new Zk(k);a.Ed(this);return a};function zk(a){return(a=kk(a||window))&&al(a)}function al(a){var b,c=m;if(a.createRange)try{b=a.createRange()}catch(d){return k}else if(a.rangeCount){if(a.rangeCount>1){b=new Wk;for(var c=0,f=a.rangeCount;c<f;c++)b.tc.push(a.getRangeAt(c));return b}b=a.getRangeAt(0);c=Mk(a.anchorNode,a.anchorOffset,a.focusNode,a.focusOffset)}else return k;return b&&b.addElement?Rk(b):ok(Kk(b),c)}function bl(a,b){return hk(a,b,a,b)}
function cl(a){if(a=kk(a||window))if(a.empty)try{a.empty()}catch(b){}else try{a.removeAllRanges()}catch(c){}}function Mk(a,b,c,d){if(a==c)return d<b;var f;if(a.nodeType==1&&b)if(f=a.childNodes[b])a=f,b=0;else if(cd(a,c))return j;if(c.nodeType==1&&d)if(f=c.childNodes[d])c=f,d=0;else if(cd(c,a))return m;return(dd(a,c)||b-d)>0};var dl,el,fl,gl,hl,il,jl;jl=il=hl=gl=fl=el=dl=m;var kl=Hb();kl&&(kl.indexOf("Firefox")!=-1?dl=j:kl.indexOf("Camino")!=-1?el=j:kl.indexOf("iPhone")!=-1||kl.indexOf("iPod")!=-1?fl=j:kl.indexOf("iPad")!=-1?gl=j:kl.indexOf("Android")!=-1?hl=j:kl.indexOf("Chrome")!=-1?il=j:kl.indexOf("Safari")!=-1&&(jl=j));var ll=el,ml=fl,nl=gl,ol=hl,pl=il,ql=jl;var rl;a:{var sl="",tl,ul;if(dl)tl=/Firefox\/([0-9.]+)/;else{if(D||C){rl=Pb;break a}pl?tl=/Chrome\/([0-9.]+)/:ql?tl=/Version\/([0-9.]+)/:ml||nl?(tl=/Version\/(\S+).*Mobile\/(\S+)/,ul=j):ol?tl=/Android\s+([0-9.]+)(?:.*Version\/([0-9.]+))?/:ll&&(tl=/Camino\/([0-9.]+)/)}if(tl)var vl=tl.exec(Hb()),sl=vl?ul?vl[1]+"."+vl[2]:vl[2]||vl[1]:"";rl=sl};var wl=D&&!Yb(),xl=E||G||C||D&&Yb(),yl=D||G||C||m,zl=G||m,Al=D||G||C,Cl=E||G;G&&I("534.16");var Dl=E&&j,El=E||G||C,Fl=E||C;D&&I("7.0");var Gl=E&&I("1.8")||G||C;D||C||E&&I("1.9");var Hl=E||G&&!I("527"),Il=D||C,Jl=D||G&&I("525"),Kl=G&&!I("531"),Ll=G&&!I("528");E&&I("1.9")||D||C||G&&I("531");var Ml=D||E||C,Nl=E||G&&!I("526"),Ol=D||C,Pl=!D&&!C,Ql=!G;pl&&Ua(rl,"4")>=0||ql&&I("533")||E&&I("2.0");var Rl=C&&I("11.10");pl&&Ua(rl,"12");function Sl(a){return function(){return a}}var Tl=Sl(m),Ul=Sl(j);function Vl(){this.ka=this.Ck()}z(Vl,xe);q=Vl.prototype;q.g=k;function Wl(a){return a.g&&a.g.eb}q.Xr=j;q.$a=uf("goog.editor.Plugin");q.Jq=ba("g");q.yr=function(){if(this.g)this.disable(this.g),this.g=k};q.enable=function(a){this.g==a?this.ka=j:nf(this.$a,"Trying to enable an unregistered field with this plugin.")};q.disable=function(a){this.g==a?this.ka=m:nf(this.$a,"Trying to disable an unregistered field with this plugin.")};q.isEnabled=function(a){return this.g==a?this.ka:m};q.Ck=Tl;q.lu=Tl;
q.d=function(){this.g&&this.yr(this.g);Vl.c.d.call(this)};var Xl=uc({Cy:1,ot:2,fp:3,ig:4,oh:5,execCommand:6,queryCommandValue:7,Aq:8,ms:10,ls:11}),Yl=yc(8,10,11);Vl.prototype.execCommand=function(a,b){var c=this.lu(a);c||(E&&Zl(this.g,j),this.g.Ve());try{var d=this.bg.apply(this,arguments)}finally{c||(this.g.ad(),a!="+link"&&$l(this.g))}return d};Vl.prototype.og=p(m);function am(a,b,c){this.Oo=a;this.bn=b;this.Po=this.Fk=m;this.ll=c||{}}function bm(a,b){this.Vy=a;this.po=b};function cm(a,b,c){this.hq=a;this.Ev=!!c;a&&!b&&this.next()}z(cm,Je);cm.prototype.next=function(){var a=this.hq;a||e(Ie);this.hq=this.Ev?a.previousSibling:a.nextSibling;return a};function dm(a,b,c){ja(c)||(c=b&&a.childNodes.length?a.childNodes.length-1:0);cm.call(this,a.childNodes[c],j,b)}z(dm,cm);var em=yc("ADDRESS","BLOCKQUOTE","BODY","CAPTION","CENTER","COL","COLGROUP","DIR","DIV","DL","DD","DT","FIELDSET","FORM","H1","H2","H3","H4","H5","H6","HR","ISINDEX","OL","LI","MAP","MENU","OPTGROUP","OPTION","P","PRE","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","TL","UL"),fm=yc("IMG","IFRAME","EMBED");function gm(a){for(var b;b=!a||a.nodeType!=1?k:hm(Me(new dm(a,m),im));)a=b;return a}function hm(a){try{return a.next()}catch(b){return k}}
function im(a){return a.nodeType==1||a.nodeType==3&&!Da(a.nodeValue)}function jm(a,b){var c=pd(a);if(a.getElementsByTagName)for(var d in fm)if(a.tagName==d||a.getElementsByTagName(d).length>0)return m;return!b&&c=="\u00a0"||Da(c)}function km(a){return a.length||a.childNodes.length}function lm(a){return a.getAttribute&&a.getAttribute("g_editable")=="true"};function mm(a){var b=a&&a.nodeName.toLowerCase();return!(!a||(a.nodeType!=1?k:D?zg(a,"display"):yg(a,"display"))!="block"&&!(b=="td"||b=="table"||b=="li"))}function nm(a){return rd(a,mm,j)}var om=yc("text","file","url");function pm(a){var b=a.target.tagName;b!="TEXTAREA"&&b!="INPUT"&&a.preventDefault()}function qm(a,b){Cl&&b.h(a,"mousedown",pm,j);Wg(a,j);for(var c=a.getElementsByTagName("INPUT"),d=0,f=c.length;d<f;d++){var g=c[d];g.type in om&&rm(g)}A(a.getElementsByTagName("TEXTAREA"),rm)}
function rm(a){Wg(a,m);if(Cl)for(var b=a,a=a.parentNode;a&&a.tagName!="HTML";){if(Vg?a.style[Vg].toLowerCase()=="none":(D||C)&&a.getAttribute("unselectable")=="on"){Wg(a,m,j);for(var c=0,d=a.childNodes.length;c<d;c++){var f=a.childNodes[c];f!=b&&f.nodeType==1&&Wg(a.childNodes[c],j)}}b=a;a=a.parentNode}};function sm(a,b){var c=tm(a,1,b),c=tm(c,0,b),d=c.r(),f=c.H(),g=c.S(),c=c.da();if(d==f){for(;f!=b&&g==0&&c==km(f);)d=f.parentNode,g=fb(d.childNodes,f),c=g+1,f=d;d=f}return hk(d,g,f,c)}function tm(a,b,c){for(var d=(b=b==1)?a.r():a.H(),f=b?a.S():a.da(),g=a.fb();d!=g&&d!=c;){if(b&&f!=0||!b&&f!=km(d))break;var i=d.parentNode,f=fb(i.childNodes,d),f=b?f:f+1,d=i}c=b?d:a.r();g=b?f:a.S();d=b?a.H():d;a=b?a.da():f;return hk(c,g,d,a)}
function um(a){var b=a.parentNode,a=fb(b.childNodes,a)+1,b=vm(b,a,m);bl(b.C,b.Hj).select()}function wm(a){for(var b=k,c=a.firstChild;c;){var d=c.nextSibling;c.nodeType==3?c.nodeValue==""?a.removeChild(c):b?(b.nodeValue+=c.nodeValue,a.removeChild(c)):b=c:(wm(c),b=k);c=d}}function xm(a,b){if(b)var c=ym(b),d=nm(b.fb());d?(d=gd(d,a),D?wm(d):d.normalize()):a&&(D?wm(a):a.normalize());return c?c():k}function zm(a,b){return b?vm(a.r(),a.S()):vm(a.H(),a.da())}
function ym(a){var b=Am(zm(a,j)),c=Bm(b),d=b.C.previousSibling;if(b.C.nodeType==3)b.C=k;var f=Am(zm(a,m)),g=Bm(f),i=f.C.previousSibling;if(f.C.nodeType==3)f.C=k;return function(){if(!b.C&&d)b.C=d.nextSibling,b.C||(b=new Cm(d,km(d)));if(!f.C&&i)f.C=i.nextSibling,f.C||(f=new Cm(i,km(i)));return hk(b.C||c.C.firstChild||c.C,b.Hj,f.C||g.C.firstChild||g.C,f.Hj)}}
function Am(a){var b;if(a.C.nodeType==3)for(b=a.C.previousSibling;b&&b.nodeType==3;b=b.previousSibling)a.Hj+=km(b);else b=a.C.previousSibling;var c=a.C.parentNode;a.C=b?b.nextSibling:c.firstChild;return a}function Dm(a){return qd(a.fb(),"LI")?j:Ne(a,function(a){return a.tagName=="LI"})}function Cm(a,b){this.C=a;this.Hj=b}function Bm(a){var b=a.C.parentNode;return new Cm(b,fb(b.childNodes,a.C))}
function vm(a,b,c){for(;a.nodeType==1;){var d=a.childNodes[b];if(!d&&!a.lastChild)break;d?(a=d.previousSibling,c&&a?b=km(a):(a=d,b=0)):(a=a.lastChild,b=km(a))}return new Cm(a,b)}function Em(a){fk.call(this,a)}z(Em,fk);Em.prototype.Th=function(a){var b=gk(this,j),c=gk(this,m),b=b&&c?gd(b,c):b||c;Em.c.Th.call(this);if(a)return xm(b,a);b&&(a=zk(Nc(P(b))),(a=xm(b,a))&&a.select())};function Fm(a,b){this.Jd=this.id=a;this.eb=k;this.Lc={};this.gf={};for(var c in Xl)this.gf[c]=[];this.Li="";if(G&&I("525.13")&&Ua(Pb,"525.18")<=0)this.zn="tr-webkit-workaround",this.Li="."+this.zn+">*{padding-right:1}";this.zf={};this.zf[Gm]=1;this.zf[Hm]=1;this.Rl=this.lj=m;this.Pi=new bk(this.zo,Im,this);this.Ni={};for(var d in Jm)this.Ni[Jm[d]]=0;if(E)this.Vb=new bk(this.wl,Km,this);this.Eb=new gg(this);this.vw=[];this.of=Lm;this.Ag=O(b||document);this.Ud=this.Ag.b(this.id);this.Ke=this.Ag.v()}
z(Fm,xe);Fm.prototype.field=k;Fm.prototype.Ud=k;Fm.prototype.$a=uf("goog.editor.Field");var Gm="change",Hm="delayedchange",Jm={Kw:"cvc",Kr:"load",Mr:"unload",Cw:"beforechange",Hr:Gm,Rw:Hm,Fw:"beforefocus",Jr:"focus",Gr:"blur",Hw:"beforetab",Sx:"selectionchange"},Lm=0,Mm=k;Fm.prototype.mg=m;Fm.prototype.b=o("field");Fm.prototype.addListener=function(a,b,c,d){var f=this.b();if(f&&Dl)f=f.ownerDocument;this.Eb.h(f,a,b,c,d)};
function Nm(a,b){var c=b.fd();a.Lc[c]&&nf(a.$a,"Cannot register the same class of plugin twice.");a.Lc[c]=b;for(var d in Xl)b[Xl[d]]&&a.gf[d].push(b);b.Jq(a);a.lf()&&b.enable(a)}var Km=15,Im=250;Fm.prototype.Rg=Ul;var Om={46:j,8:j};D||(Om[9]=j);var Pm={86:j,88:j};D&&(Om[229]=j);function Qm(a){var b=!(a.ctrlKey||a.metaKey)&&a.keyCode in Om;return(a.ctrlKey||a.metaKey)&&a.keyCode in Pm||b}
Fm.prototype.d=function(){(this.of==1||this.lf())&&of(this.$a,"Disposing a field that is in use.");this.Ud&&this.execCommand("clearlorem");this.of=Lm;for(var a in this.Lc){var b=this.Lc[a];b.Ck()||b.disable(this)}this.eb=this.field=k;this.Eb&&this.Eb.mc();if(C&&this.Rg()){try{var c=this.eb.v();c.removeEventListener("focus",this.Hk,m);c.removeEventListener("blur",this.Gk,m)}catch(d){}delete this.Hk;delete this.Gk}this.Vb&&this.Vb.stop();this.Pi.stop();this.Ag=k;if(this.Eb)this.Eb.m(),this.Eb=k;for(;a=
this.vw.pop();)a.m();Mm==this.id&&(Mm=k);for(var f in this.Lc)a=this.Lc[f],a.Xr&&a.m();delete this.Lc;Fm.c.d.call(this)};var Rm=["DOMNodeInserted","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMNodeInsertedIntoDocument","DOMCharacterDataModified"];
function Sm(a,b){if(b.keyCode==9&&!a.dispatchEvent({type:"beforetab",shiftKey:b.shiftKey,altKey:b.altKey,ctrlKey:b.ctrlKey})||E&&b.metaKey&&(b.keyCode==37||b.keyCode==39))return b.preventDefault(),m;a.ul=b.charCode||(Qm(b)?j:!(!E||b.ctrlKey||b.metaKey||E&&!b.charCode));a.ul&&a.Ve();return j}var Tm={8:1,9:1,13:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,46:1},Um={65:j,86:j,88:j},Vm={8:1,9:1,13:1,27:1,33:1,34:1,37:1,38:1,39:1,40:1};q=Fm.prototype;
q.zh=function(a,b){for(var c=this.gf[a],d=ub(arguments,1),f=0;f<c.length;++f){var g=c[f];if((g.isEnabled(this)||Yl[a])&&g[Xl[a]].apply(g,d))return j}return m};q.gu=function(a,b){for(var c=this.gf[a],d=ub(arguments,1),f=0;f<c.length;++f){var g=c[f];(g.isEnabled(this)||Yl[a])&&g[Xl[a]].apply(g,d)}};q.Wj=function(a,b,c){for(var d=this.gf[a],f=ub(arguments,1),g=0;g<d.length;++g){var i=d[g];if(i.isEnabled(this)||Yl[a])f[0]=i[Xl[a]].apply(i,f)}return f[0]};
q.zl=function(a){(E||Sm(this,a))&&!this.zh(1,a)&&Jl&&Wm(this,a)};q.pt=function(a){if(E){if(!Sm(this,a))return}else this.ul=j,this.Ve();!this.zh(2,a)&&!Jl&&Wm(this,a)};q.qt=function(a){!E&&(this.ul||Qm(a))&&this.wl();this.zh(3,a);Xm(this,"selectionchange")||(Tm[a.keyCode]||(a.ctrlKey||a.metaKey)&&Um[a.keyCode])&&this.Vq.start()};
function Wm(a,b){if(!b.altKey){var c=Eb?b.metaKey:b.ctrlKey;if(c||Vm[b.keyCode]){var d=b.charCode||b.keyCode;d!=17&&a.zh(5,b,String.fromCharCode(d).toLowerCase(),c)&&b.preventDefault()}}}q.execCommand=function(a,b){for(var c=arguments,d,f=this.gf[6],g=0;g<f.length;++g){var i=f[g];if(i.isEnabled(this)&&i.og(a)){d=i.execCommand.apply(i,c);break}}return d};q.queryCommandValue=function(a){var b=this.lf()&&this.mj;if(t(a))return this.Uj(a,b);for(var c={},d=0;d<a.length;d++)c[a[d]]=this.Uj(a[d],b);return c};
q.Uj=function(a,b){for(var c=this.gf[7],d=0;d<c.length;++d){var f=c[d];if(f.isEnabled(this)&&f.og(a)&&(b||f.Ck()))return f.queryCommandValue(a)}return b?k:m};q.it=function(a,b){if(!Xm(this,Gm)){var c=b.wa;try{if(c.originalTarget.prefix||c.originalTarget.nodeName=="scrollbar")return}catch(d){return}c.prevValue!=c.newValue&&a.call(this,c)}};q.Bl=function(a){if(!Xm(this,Gm)&&(a=a.Vo?a.wa:a,!a.target.firebugIgnore))this.Rl=this.lj=j,this.Vb.start()};
q.ep=function(){D&&this.execCommand("clearlorem",j);E&&this.bl();this.ad()};function Ym(a){return(a=a.eb&&a.eb.v())&&zk(a)}function $l(a,b,c){if(!Xm(a,"selectionchange")){var d=Ym(a),d=d&&d.fb();a.mj=!!d&&cd(a.b(),d);a.dispatchEvent("cvc");a.dispatchEvent({type:"selectionchange",Ny:b&&b.type});a.zh(4,b,c)}}q.Mt=function(){var a=this.Uq;this.Uq=k;$l(this,h,a)};q.Ve=function(){Xm(this,"beforechange")||this.dispatchEvent("beforechange")};
function Zl(a,b){b&&(a.Vb&&ck(a.Vb),a.zf[Gm]=1);Zm(a);a.zf[Hm]=1}function $m(a,b,c){!b&&a.Vb&&ck(a.Vb);a.zf[Gm]=0;a.zf[Hm]=0;b&&a.wl();c&&a.zo()}function Xm(a,b){return!!a.zf[b]||a.Ni[b]&&va()-a.Ni[b]<=500}q.ad=function(a){$m(this,j,a)};q.wl=function(){if(!Xm(this,Gm))this.Vb&&this.Vb.stop(),this.Rl=this.lj=j,Xm(this,Hm)||this.Pi.start()};q.zo=function(){if(!Xm(this,Hm))this.Pi.stop(),this.lj=m,this.dispatchEvent(Hm)};function Zm(a){a.Vb&&ck(a.Vb);ck(a.Pi)}q.bl=function(){this.xo();this.Ao()};
q.xo=function(){Xm(this,"beforefocus")||(this.execCommand("clearlorem",j),this.dispatchEvent("beforefocus"))};q.Ao=function(){if(!Xm(this,"focus")){Mm=this.id;this.mj=j;this.dispatchEvent("focus");if(E){var a=this.b(),b=Ym(this);if(b){var c=mk(b);nk(b)==0&&(!c||c==a||c.tagName=="BODY")&&bl(gm(a),0).select()}}!Al&&this.Rg()&&this.eb.v().parent.getSelection().removeAllRanges()}};q.yo=function(){if(!Xm(this,"blur"))Mm==this.id&&(Mm=k),this.mj=m,this.dispatchEvent("blur")};
function an(a){qd(a.target,"A")&&a.preventDefault()}q.wt=function(a){if(!Mm)Mm=this.id;if(D){var b=a.target;b&&b.tagName=="A"&&a.ctrlKey&&this.Ag.v().open(b.href)}};q.xt=function(a){$l(this,a);if(D)this.Uq=a.target,this.Vq.start()};
function bn(a){if(a.queryCommandValue("usinglorem"))return"\u00a0";if(!a.lf()){var b=a.Ud;b||a.$a.log(ef,"Couldn't get the field element to read the contents",h);return b.innerHTML}var c=a.b(),b=c.cloneNode(m),c=c.innerHTML;D&&c.match(/^\s*<script/i)&&(c="\u00a0"+c);b.innerHTML=c;a.gu(11,b);return a.Wj(10,b.innerHTML)}
q.Tm=function(a,b,c,d){if(this.of==1)nf(this.$a,"Can't set html while loading Trogedit");else{d&&this.execCommand("clearlorem");b&&a&&(b="<p>"+b+"</p>");c&&Zl(this,m);a=b;if(b=this.b()){if(this.Rg()&&G)for(var f=b.ownerDocument.getElementsByTagName("HEAD"),g=f.length-1;g>=1;--g)f[g].parentNode.removeChild(f[g])}else b=this.Ud;if(b)f={},a=this.Wj(8,a||"",f),wg(b,f),b.innerHTML=a;d&&this.execCommand("updatelorem");this.lf()&&(c?(E&&ck(this.Vb),$m(this)):this.ad())}};
q.lf=function(){return this.of==2};q.focus=function(){if(!yl||G)this.eb.v().focus();else{if(C)var a=this.Ke.pageXOffset,b=this.Ke.pageYOffset;this.b().focus();C&&this.Ke.scrollTo(a,b)}};
function cn(a){a.of=1;var b=a.Ud;a.nodeName=b.nodeName;a.Qy=b.className;a.cssText=b.style.cssText;b.className+=" editable";if(b=a.Ud){var b=b.innerHTML,c={},b=a.Wj(8,b,c),d="padding:0;"+a.Ud.style.cssText;ya(d,";")||(d+=";");d+="background-color:white;";D&&(d+="overflow:visible;");d=a.Ag.f("IFRAME",{frameBorder:0,style:d});if(dn(a)){var f=u(a.xp,a,d,b,c);a.ml=T(d,"load",f,j)}f=a.Ud;d.className=f.className;d.id=f.id;Yc(d,f);dn(a)||a.xp(d,b,c)}}
function dn(a){if(!ja(a.Sl)&&(a.Sl=m,D&&a.Rg())){for(var b=a.Ag.v();b!=b.parent;)try{b=b.parent}catch(c){break}b=b.location;a.Sl=b.protocol=="https:"&&b.search.indexOf("nocheckhttps")==-1}return a.Sl}
q.xp=function(a,b,c){if(this.ml)je(this.ml),this.ml=k;a.ry="true";var d=ud(O(this.Ud)),c=new am(this.id,d,c);if(dn(this)){var f=hd(a).body;if(yl)f.contentEditable=j;f.className="editable";f.setAttribute("g_editable",j);f.hideFocus=j;f.id=c.Oo;wg(f,c.ll);f.innerHTML=b}else{var d=new bm(this.b(),this.Li),g=[];c.Fk&&c.bn&&g.push("<!DOCTYPE HTML>");g.push('<html style="background:none transparent;');c.Fk&&g.push("height:",c.Po?"100%":"auto");g.push('">');g.push("<head><style>");d&&d.po&&g.push(d.po);
E&&c.bn&&g.push(" img {-moz-force-broken-image-icon: 1;}");g.push("</style></head>");g.push('<body g_editable="true" hidefocus="true" ');yl&&g.push("contentEditable ");g.push('class="editable ');g.push('" id="',c.Oo,'" style="');E&&c.Fk&&(g.push(";width:100%;border:0;margin:0;background:none transparent;",";height:",c.bn?"100%":"auto"),c.Po?g.push(";overflow:auto"):g.push(";overflow-y:hidden;overflow-x:auto"));C&&g.push(";outline:hidden");for(f in c.ll)g.push(";"+f+":"+c.ll[f]);g.push('">',b,"</body></html>");
b=g.join("");f=hd(a);f.open();f.write(b);f.close()}a=hd(a).body;this.of=2;this.field=a;this.eb=O(a);this.Rl=this.lj=m;a.setAttribute("g_editable","true");if(!yl)a=this.eb.T(),a.designMode="on",Gl&&a.execCommand("styleWithCSS",m,m);D&&cl(this.eb.v());Mm!=this.id&&this.execCommand("updatelorem");C&&this.Rg()?(this.Hk=u(this.bl,this),this.Gk=u(this.yo,this),a=this.eb.v(),a.addEventListener("focus",this.Hk,m),a.addEventListener("blur",this.Gk,m)):(Il?(this.addListener("focus",this.Ao),this.addListener(Gd,
this.xo)):this.addListener("focus",this.bl),this.addListener("blur",this.yo,E));E?zl?this.Eb.h(this.b(),"DOMSubtreeModified",this.Bl):(a=this.eb.T(),this.Eb.h(a,Rm,this.Bl,j),this.Eb.h(a,"DOMAttrModified",u(this.it,this,this.Bl),j)):(this.addListener(["beforecut","beforepaste","drop","dragend"],this.Ve),this.addListener(["cut","paste"],this.ad),this.addListener("drop",this.ep));this.addListener(G?"dragend":"dragdrop",this.ep);this.addListener(Fd,this.zl);this.addListener("keypress",this.pt);this.addListener("keyup",
this.qt);this.Vq=new bk(this.Mt,250,this);G&&this.addListener(S,an);this.addListener("mousedown",this.wt);this.addListener("mouseup",this.xt);a=this.b();this.zn&&J(a,this.zn);if(this.Li&&dn(this))a=this.Li,b=this.b(),b=O(b),c=k,D?(c=b.T().createStyleSheet(),Ug(c,a)):(f=Cc(b.ba,"head",h,h)[0],f||(c=Cc(b.ba,"body",h,h)[0],f=b.f("head"),c.parentNode.insertBefore(f,c)),c=b.f("style"),Ug(c,a),b.appendChild(f,c));$m(this);this.$a.info("Dispatching load "+this.id);this.dispatchEvent("load");for(var i in this.Lc)this.Lc[i].enable(this)};function en(a,b){this.qc=a;this.Bh=b}function fn(a){if(!a.Uk)a.Uk=pd(a.qc);return a.Uk}function gn(a,b,c){var d=a.qc;d.href=c;var f=fn(a);if(b!=f){c=gm(d);if(c.nodeType==3)c=c.parentNode;pd(c)!=f&&(c=d);Vc(c);d=O(c);c.appendChild(d.createTextNode(b));a.Uk=k}a.Bh=m}function hn(a){a=a.qc;if(Ll){var b;b=a.nextSibling;if(!b||!(b.nodeType==3&&(xa(b.data,"\u00a0")||xa(b.data," "))))b=O(a).createTextNode("\u00a0"),Xc(b,a);bl(b,1).select()}else um(a)}
function jn(a,b){var c=new en(a,j);c.qc.href="/";if(b)a.target=b;return c}function kn(a){if(/\s/.test(a))return m;if(ln.test(a))return m;var b=m;/^[^:\/?#.]+:/.test(a)||(a="http://"+a,b=j);a=a.match(oe);if(fb(["mailto","aim"],a[1])!=-1)return j;var c=a[3];if(!c||b&&c.indexOf(".")==-1)return m;b=a[5];return!b||b.indexOf("/")==0}var ln=/^[\w-]+(\.[\w-]+)*\@([\w-]+\.)+(\d+|\w\w+)$/i;var mn=x("Link"),nn=x("Edit Link"),on=x("Text to display:"),pn=x("Link to:"),qn=x("Web address"),rn=x("Link to a page or file somewhere else on the web"),sn=x("Test this link"),tn=x("{$startBold}Not sure what to put in the box?{$endBold} First, find the page on the web that you want to link to. (A {$searchEngineLink}search engine{$endLink} might be useful.) Then, copy the web address from the box in your browser's address bar, and paste it into the box above.",{startBold:"<b>",endBold:"</b>",searchEngineLink:"<a href='http://www.google.com/' target='_new'>",
endLink:"</a>"}),un=x("To what URL should this link go?"),vn=x("Email address"),wn=x("Link to an email address"),xn=x("Invalid email address"),yn=x("To what email address should this link?");x("{$preb}Be careful.{$postb} Remember that any time you include an email address on a web page, nasty spammers can find it too.",{preb:"<b>",postb:"</b>"});var zn=x("Open this link in a new window");x("Image");function An(){Vl.call(this)}z(An,Vl);An.prototype.fd=p("BTF");An.prototype.$a=uf("goog.editor.plugins.BasicTextFormatter");var Bn=uc({tx:"+link",ex:"+formatBlock",jx:"+indent",Fx:"+outdent",cy:"+strikeThrough",ix:"+insertHorizontalRule",ey:"+subscript",fy:"+superscript",my:"+underline",Iw:"+bold",lx:"+italic",dx:"+fontSize",cx:"+fontName",bx:"+foreColor",Bw:"+backColor",Ex:"+insertOrderedList",oy:"+insertUnorderedList",mx:"+justifyCenter",nx:"+justifyFull",px:"+justifyRight",ox:"+justifyLeft"});
q=An.prototype;q.og=function(a){return a in Bn};q.dc=function(){return Ym(this.g)};function Cn(a){return Wl(a).T()}
q.bg=function(a,b){var c,d,f,g,i,l=b;switch(a){case "+backColor":if(l!==k)if(Hl){d=l;f=Ym(this.g);var n,r;if(f&&f.isCollapsed())n=Wl(this).createTextNode(E?" ":""),l=f.r(),r=l.nodeType==1?l:l.parentNode,r.innerHTML==""?(r.style.textIndent="-10000px",r.appendChild(n)):(r=Wl(this).f("span",{style:"text-indent:-10000px"},n),f.Mq(r)),ok(pk(n),h).select();Dn(this,"hiliteColor",d,m,j);if(n){if(E)n.data="";r.style.textIndent=""}}else C?Dn(this,"hiliteColor",l):Dn(this,a,l);break;case "+link":a:{i=l;this.g.mj||
Wl(this).v().focus();f=(d=this.dc())&&d.fb();if((f=qd(f,"A"))&&rd(f,lm))Zc(f);else if(i=En(this,d,i)){if(!this.g.execCommand("link",i))if(d=this.g.Ke.prompt(pn,"http://"))gn(i,fn(i)||d,d),hn(i);else{d=ok(pk(i.qc),h);d=new Em(d);Zc(i.qc);i.qc=k;d.restore().select();i=k;break a}break a}i=k}break;case "+justifyCenter":case "+justifyFull":case "+justifyRight":case "+justifyLeft":Dn(this,a,k,m,j);E&&Dn(this,a,k,m,j);(!Gl||!E)&&Le(Ym(this.g),Fn);break;default:D&&a=="+formatBlock"&&l&&(l="<"+l+">");if(a==
"+foreColor"&&l===k)break;switch(a){case "+indent":case "+outdent":Gl&&(E&&(d=j),C&&(d=a=="+outdent"?!Cn(this).queryCommandEnabled("outdent"):j));case "+insertOrderedList":case "+insertUnorderedList":if(n=Ol)n=Cn(this),n=Gn(this,j,n,a,h);n?f=this.g.queryCommandValue("+defaultTag")!="P":Pl||Hn(this);E&&Nl&&!this.queryCommandValue(a)&&(n=this.g.queryCommandValue("+defaultTag"),n=="P"||n=="DIV"?n=m:(n=this.dc(),n.isCollapsed()&&n.cc().nodeType!=3?(c=Wl(this).createTextNode("\u00a0"),n.insertNode(c,m),
ok(pk(c),h).select(),n=j):n=m),g|=n);case "+formatBlock":c=!!this.g.Lc.Bidi;break;case "+subscript":case "+superscript":Ml&&!this.queryCommandValue(a)&&(n=a=="+subscript"?"+superscript":"+subscript",r=In(n),this.queryCommandValue(n)||Cn(this).execCommand(r,m,k),Cn(this).execCommand(r,m,k));break;case "+underline":case "+bold":case "+italic":d=E&&Gl&&this.queryCommandValue(a);break;case "+foreColor":case "+fontName":d=Gl&&E}Dn(this,a,l,c,d);g&&Cn(this).execCommand("Delete",m,j);f&&Cn(this).execCommand("FormatBlock",
m,"<div>")}E&&!this.g.mg&&Wl(this).v().focus();return i};
q.queryCommandValue=function(a){var b;switch(a){case "+link":return a=(a=this.dc())&&a.fb(),a=qd(a,"A"),!!a&&!!rd(a,lm);case "+justifyCenter":case "+justifyFull":case "+justifyRight":case "+justifyLeft":return Jn(this,a);case "+formatBlock":return Kn(Ym(this.g));case "+indent":case "+outdent":case "+insertHorizontalRule":return m;case "+fontSize":case "+fontName":case "+foreColor":case "+backColor":return this.Uj(Cn(this),a,Gl&&E);case "+underline":case "+bold":case "+italic":b=Gl&&E;default:var c=
Cn(this);return Gn(this,j,c,a,b)}};q.Aq=function(a){El&&a.match(/^\s*<script/i)&&(a="&nbsp;"+a);Fl&&(a=a.replace(/<(\/?)strong([^\w])/gi,"<$1b$2"),a=a.replace(/<(\/?)em([^\w])/gi,"<$1i$2"));return a};q.ls=function(a){for(var a=a.getElementsByTagName("IMG"),b=0,c;c=a[b];b++)if(D){c.removeAttribute("tabIndex");c.removeAttribute("tabIndexSet");var d=c;"removeAttribute"in d&&d.removeAttribute(qa);try{delete d[qa]}catch(f){}if(c.Mu)c.tabIndex=c.Mu}};
q.ms=function(a){if(G){for(var b=Cc(this.g.eb.ba,"HEAD",h,h),c=[],d=b.length,f=1;f<d;++f)for(var g=b[f].getElementsByTagName("STYLE"),i=g.length,l=0;l<i;++l)c.push(g[l].outerHTML);return c.join("")+a}return a};q.oh=function(a,b,c){if(!c)return m;var d;switch(b){case "b":d="+bold";break;case "i":d="+italic";break;case "u":d="+underline";break;case "s":return j}return d?(this.g.execCommand(d),j):m};var Ln=D?/<br([^\/>]*)\/?>/gi:/<br([^\/>]*)\/?>(?!<\/(div|p)>)/gi;
function Hn(a){if(D||C){var b=a.dc(),c=b.fb(),d=Cn(a);Ln.lastIndex=0;if(Ln.test(c.innerHTML))a=b.r()&&b.H()?new fk(b):k,c.tagName=="P"?Mn(c,j):(c.innerHTML=c.innerHTML.replace(Ln,'<p$1 trtempbr="temp_br">'),c=rb(c.getElementsByTagName("P")),Le(c,function(a){if(a.getAttribute("trtempbr")=="temp_br"){a.removeAttribute("trtempbr");if(Da(nd(a))){var b=D?d.createTextNode("\u00a0"):d.createElement("BR");a.appendChild(b)}Mn(a)}})),a.restore()}}
function Mn(a,b){if(D||C){var c=a.outerHTML.replace(/<(\/?)p/gi,"<$1div");b&&(c=c.replace(Ln,"</div><div$1>"));C&&!/<\/div>$/i.test(c)&&(c+="</div>");a.outerHTML=c}}function In(a){return a.indexOf("+")==0?a.substring(1):a}function Fn(a){a=nm(a);if(a.align)a.style.textAlign=a.align,a.removeAttribute("align")}
function Dn(a,b,c,d,f){var g=k;d&&(g=a.g.queryCommandValue("rtl")?"rtl":a.g.queryCommandValue("ltr")?"ltr":k);var b=In(b),i,l;if(D){var n=b;l=[];var d=k,r=a.dc();i=Wl(a);if(n in Nn){var v=r&&r.fb();if(v){for(var F=Bc("BLOCKQUOTE",k,v),R,H=0;H<F.length;H++)if(r.containsNode(F[H])){R=F[H];break}if(v=R||qd(v,"BLOCKQUOTE"))d=i.f("div",{style:"height:0"}),v.appendChild(d),l.push(d),R?r=hk(R,0,d,0):r.containsNode(d)&&(R=r.r(),r=r.S(),r=hk(R,r,d,0)),r.select()}}R=a.g;!R.Rg()&&!d&&n in On&&(n=R.b(),r&&r.isCollapsed()&&
!ad(n)&&(d=r.ec(0).Mb(),r=d.duplicate(),r.moveToElementText(n),r.collapse(m),r.isEqual(d)&&(r=i.createTextNode("\u00a0"),n.appendChild(r),d.move("character",1),d.move("character",-1),d.select(),l.push(r))),d=i.f("div",{style:"height:0"}),n.appendChild(d),l.push(d));i=l[0];l=l[1]}if(G){i=b;var fa;Pn[i]&&(fa=Wl(a).f("div",{style:"height: 0"},"x"),a.g.b().appendChild(fa));Qn[i]&&(i=a.g.b(),fa=Wl(a).f("div",{style:"height: 0"},"x"),i.insertBefore(fa,i.firstChild));i=fa}if(E&&(fa=b,I("1.9")&&fa.toLowerCase()==
"formatblock"&&(fa=a.dc(),d=fa.r(),fa.isCollapsed()&&d&&d.tagName=="BODY"&&(n=fa.S(),(d=d.childNodes[n])&&d.tagName=="BR"))))fa=fa.Mb(),fa.setStart(d,0),fa.setEnd(d,0);Ql&&b.toLowerCase()=="fontsize"&&Rn(a);fa=Cn(a);f&&Gl&&(fa.execCommand("styleWithCSS",m,j),C&&Sn(a));fa.execCommand(b,m,c);f&&Gl&&fa.execCommand("styleWithCSS",m,m);G&&!I("526")&&b.toLowerCase()=="formatblock"&&c&&/^[<]?h\d[>]?$/i.test(c)&&Tn(a);/insert(un)?orderedlist/i.test(b)&&(G&&Un(a),D&&(Vn(a),l&&Q(l)));i&&Q(i);g&&a.g.execCommand(g)}
function En(a,b,c){var d=k,f=b&&b.fb();if(f&&f.tagName=="IMG")return k;if(b&&b.isCollapsed())b=b.ec(0).Mb(),xl?(d=Wl(a).createElement("A"),b.insertNode(d)):wl&&(b.pasteHTML("<a id='newLink'></a>"),d=Wl(a).b("newLink"),d.removeAttribute("id"));else{var g=Wa();Dn(a,"CreateLink",g);A(a.g.b().getElementsByTagName("A"),function(a){ya(a.href,g)&&(d=a)})}return jn(d,c)}
var On={indent:1,outdent:1,insertOrderedList:1,insertUnorderedList:1,justifyCenter:1,justifyFull:1,justifyRight:1,justifyLeft:1,ltr:1,rtl:1},Nn={insertOrderedList:1,insertUnorderedList:1};function Rn(a){var b=sm(Ym(a.g),a.g.b());Le(Me(b,function(a,d,f){return f.Ra==1&&b.containsNode(a)}),function(a){wg(a,"font-size","");E&&a.style.length==0&&a.getAttribute("style")!=k&&a.removeAttribute("style")})}
function Tn(a){Le(a.dc(),function(a){if(a.className=="Apple-style-span")a.style.fontSize="",a.style.fontWeight=""})}
function Un(a){var b=m;Le(a.dc(),function(a){var d=a.tagName;if(d=="UL"||d=="OL")if(b){if(d=a.previousElementSibling!=h?a.previousElementSibling:bd(a.previousSibling,m)){var f=a.ownerDocument.createRange();f.setStartAfter(d);f.setEndBefore(a);if(Ba(f.toString())&&d.nodeName==a.nodeName){for(;d.lastChild;)a.insertBefore(d.lastChild,a.firstChild);d.parentNode.removeChild(d)}}}else b=j})}var Wn={1:1,a:1,A:1,i:1,I:1},Xn={disc:1,circle:1,square:1};
function Vn(a){var c;for(c=(a=a.dc())&&a.cc(),a=c;a&&a.tagName!="UL"&&a.tagName!="OL";)a=a.parentNode;if(a)a=a.parentNode;if(a){var b=rb(a.getElementsByTagName("UL"));sb(b,rb(a.getElementsByTagName("OL")));A(b,function(a){var b=a.type;if(b&&!(a.tagName=="UL"?Xn:Wn)[b])a.type=""})}}var Pn={justifyCenter:1,justifyFull:1,justifyRight:1,justifyLeft:1,formatBlock:1},Qn={insertOrderedList:1,insertUnorderedList:1};
function Sn(a){var b=[],c=Ym(a.g).fb();do b.push(c);while(c=c.parentNode);a=Oe(Ke(Ym(a.g)),Ke(b));a=Me(a,mm);Le(a,function(a){var b=a.style.outline;a.style.outline="0px solid red";a.style.outline=b})}function Kn(a){var b=k;Le(a,function(a,d,f){if(f.Ra!=-1)a=nm(a).tagName,b=b||a,b!=a&&(b=k,e(Ie)),f.an()});return b}var Yn={center:1,justify:1,right:1,left:1};
function Jn(a,b){var c=b.replace("+justify","").toLowerCase();c=="full"&&(c="justify");var d=a.g.Lc.Bidi;if(d)return c==d.By();var f=a.dc();if(!f)return m;for(var g=f.fb(),d=hb(g.childNodes,function(a){return im(a)&&f.containsNode(a,j)}),d=d.length?d:[g],g=0;g<d.length;g++){var i=nm(d[g]);if(c!=Zn(i))return m}return j}function Zn(a){var b=Ag(a,"textAlign"),b=b.replace(/^-(moz|webkit)-/,"");Yn[b]||(b=a.align||"left");return b}An.prototype.Uj=function(a,b,c){return Gn(this,m,a,b,c)};
function Gn(a,b,c,d,f){d=In(d);if(f){var g=Cn(a);g.execCommand("styleWithCSS",m,j)}a=b?c.queryCommandState(d):c.queryCommandValue(d);f&&g.execCommand("styleWithCSS",m,m);return a};function $n(a,b){this.Ij=[];for(this.Fj=[];a&&a.nodeName!="BODY"&&a!=b;){for(var c=0,d=a.previousSibling;d;)d=d.previousSibling,++c;this.Ij.unshift(c);this.Fj.unshift(a.nodeName);a=a.parentNode}}z($n,zd);$n.prototype.toString=function(){for(var a=[],b,c=0;b=this.Fj[c];c++)a.push(this.Ij[c]+","+b);return a.join("\n")};function ao(a,b){for(var c,d=b,f=0;c=a.Fj[f];++f)if(d=d.childNodes[a.Ij[f]],!d||d.nodeName!=c)return k;return d}$n.prototype.d=function(){delete this.Ij;delete this.Fj};uf("goog.editor.plugins.Blockquote");function bo(){Vl.call(this)}z(bo,Vl);q=bo.prototype;q.ln="DIV";q.fd=p("EnterHandler");q.enable=function(a){bo.c.enable.call(this,a);Rl&&(this.ln=="P"||this.ln=="DIV")&&Wl(this).T().execCommand("opera-defaultBlock",m,this.ln)};q.Aq=function(a){return!a||Da(a)?El?this.Us():"":a};q.Us=Sl("<br>");
q.ot=function(a){if(E&&this.g.mg)return m;if(a.keyCode==8){var b=Ym(this.g),c=this.g.b(),b=b&&b.r();c.firstChild==b&&jm(b)&&(a.preventDefault(),a.stopPropagation())}else if(a.keyCode==13)if(E){if(!a.shiftKey){var c=Ym(this.g),b=!c||c.isCollapsed(),d=xl?co(this):eo(this),f=this.g.execCommand("+splitBlockquote",d);f&&(a.preventDefault(),a.stopPropagation());xl||d.removeNode(j);f||this.jt(a,b,c)}}else{this.g.Ve();c=xl?co(this):eo(this);if(b=!!this.g.execCommand("+splitBlockquote",c))a.preventDefault(),
a.stopPropagation();xl||c.removeNode(j);G&&this.kt(a);if(D||C)fo(this);else if(!b&&G){if(b=c=Ym(this.g))a:{for(b=c.fb();b;b=b.parentNode)if(em[b.tagName]){b=b.tagName=="BLOCKQUOTE";break a}b=m}if(b){b=Wl(this);d=b.createElement("BR");c.insertNode(d,j);if(c=!!em[d.parentNode.tagName]){for(c=d.nextSibling;c&&c.nodeType==3&&!c.nodeValue;)c=c.nextSibling;c=!c}c&&Wc(b.createElement("BR"),d);um(d);a.preventDefault()}}this.g.ad()}else if(E&&a.keyCode==46&&(b=Ym(this.g),b.isCollapsed()&&(c=b.H(),c.nodeType==
1&&(b=c.childNodes[b.da()])&&b.tagName=="BR")))d=hm(Me(new cm(b,m,j),im)),f=b.nextSibling,c.removeChild(b),a.preventDefault(),f&&em[f.tagName]&&(d&&!(d.tagName=="BR"||em[d.tagName])?bl(d,km(d)).select():(a=gm(f),bl(a,0).select()));return m};q.fp=function(a){if(E&&this.g.mg)return m;(D||C)&&a.keyCode==13&&fo(this,j);return m};q.kt=ga;q.jt=ga;var go=yc("LI","DIV","H1","H2","H3","H4","H5","H6");
function fo(a,b){for(var c=Ym(a.g),d=c.cc(),f=a.g.b(),g;d&&d!=f;){var i=d.nodeName;if(i=="DIV"||go[i]&&(!b||!(jm(d)&&d.getElementsByTagName("BR").length==1))){if(C&&g){i=="DIV"&&g==d.lastChild&&jm(g)&&(Xc(g,d),ok(pk(g),h).select());break}return}C&&b&&i=="P"&&i!="DIV"&&(g=d);d=d.parentNode}if(D&&!I(9)){var l=m,c=c.Mb(),d=c.duplicate();d.moveEnd("character",1);if(d.text.length&&(l=d.parentElement(),d=d.duplicate(),d.collapse(m),d=d.parentElement(),l=l!=d&&d!=c.parentElement()))c.move("character",-1),
c.select()}a.g.eb.T().execCommand("FormatBlock",m,"<DIV>");l&&(c.move("character",1),c.select())}function eo(a){var a=Wl(a).T(),b=a.selection.createRange(),c=Wa();b.pasteHTML('<span id="'+c+'"></span>');a=a.getElementById(c);a.id="";return a}
function co(a){a=Ym(a.g);if(!a.isCollapsed()){var b=j;if(C){var c=a.r(),d=a.S();c==a.H()&&c.lastChild&&c.lastChild.tagName=="BR"&&d==c.childNodes.length-1&&(b=m)}if(b){var f=a;if(f&&!f.isCollapsed()){var g=j,b=f.fb(),c=new $n(f.r(),b),d=f.S(),i;i=f;var l=i.r();mm(l)&&(l=l.childNodes[i.S()]||l);var l=nm(l),n=i.H();mm(n)&&(n=n.childNodes[i.da()]||n);n=nm(n);i=l==n;if(l=!i)a:{var n=f,l=n.H(),n=n.da(),r=l;if(mm(r)){var v=r.childNodes[n];if(!v||v.nodeType==1&&mm(v)){l=m;break a}}for(v=nm(r);v!=r;){if(hm(Me(new cm(r),
im))){l=j;break a}r=r.parentNode}l=n!=km(l)}f.Xd();f=bl(ao(c,b),d);f.select();if(i&&(i=nm(f.r()),jm(i,j)))g="&nbsp;",C&&i.tagName=="LI"&&(g="<br>"),i.innerHTML=g,bl(gm(i.firstChild),0).select(),g=m;l&&(f=nm(f.r()),i=hm(Me(new cm(f),im)),f&&i&&(Uc(f,i.childNodes),Q(i)));g&&(f=bl(ao(c,b),d),f.select())}}}return zm(a,j)};function ho(){Vl.call(this)}z(ho,Vl);ho.prototype.fd=p("HeaderFormatter");ho.prototype.oh=function(a,b,c){if(!c)return m;c=k;switch(b){case "1":c="H1";break;case "2":c="H2";break;case "3":c="H3";break;case "4":c="H4"}return c?(this.g.execCommand("+formatBlock",c),E&&a.stopPropagation(),j):m};function io(a){this.bb=a||window;this.uj=T(this.bb,"resize",this.Lt,m,this);this.Qa=Jc(this.bb);if(G&&Fb||C&&this.bb.self!=this.bb.top)this.wk=window.setInterval(u(this.bo,this),jo)}z(io,xe);var jo=500;q=io.prototype;q.uj=k;q.bb=k;q.Qa=k;q.wk=k;q.sl=function(){return this.Qa?this.Qa.U():k};q.d=function(){io.c.d.call(this);if(this.uj)je(this.uj),this.uj=k;if(this.wk)window.clearInterval(this.wk),this.wk=k;this.Qa=this.bb=k};q.Lt=function(){this.bo()};
q.bo=function(){var a=Jc(this.bb);if(!jc(a,this.Qa))this.Qa=a,this.dispatchEvent("resize")};function ko(a,b,c,d,f,g,i,l){var n,r=c.offsetParent;if(r){var v=r.tagName=="HTML"||r.tagName=="BODY";if(!v||Bg(r)!="static")n=Ig(r),v||(n=gc(n,new M(r.scrollLeft,r.scrollTop)))}r=Rg(a);(v=Hg(a))&&r.Ep(new jg(v.left,v.top,v.right-v.left,v.bottom-v.top));var v=O(a),F=O(c);if(v.T()!=F.T()){var R=v.T().body,F=F.v(),H=new M(0,0),fa=Nc(P(R)),Bl=R;do{var Qp=fa==F?Ig(Bl):Lg(Bl);H.x+=Qp.x;H.y+=Qp.y}while(fa&&fa!=F&&(Bl=fa.frameElement)&&(fa=fa.parent));R=gc(H,Ig(R));D&&!ud(v)&&(R=gc(R,vd(v)));r.left+=R.x;
r.top+=R.y}a=(b&4&&Jg(a)?b^2:b)&-5;b=new M(a&2?r.left+r.width:r.left,a&1?r.top+r.height:r.top);n&&(b=gc(b,n));f&&(b.x+=(a&2?-1:1)*f.x,b.y+=(a&1?-1:1)*f.y);var tf;if(i&&(tf=Hg(c))&&n)tf.top-=n.y,tf.right-=n.x,tf.bottom-=n.y,tf.left-=n.x;return lo(b,c,d,g,tf,i,l)}
function lo(a,b,c,d,f,g,i){var a=a.U(),l=0,n=(c&4&&Jg(b)?c^2:c)&-5,c=Pg(b),i=i?i.U():c.U();if(d||n!=0)n&2?a.x-=i.width+(d?d.right:0):d&&(a.x+=d.left),n&1?a.y-=i.height+(d?d.bottom:0):d&&(a.y+=d.top);if(g){if(f){l=a;d=0;if((g&65)==65&&(l.x<f.left||l.x>=f.right))g&=-2;if((g&132)==132&&(l.y<f.top||l.y>=f.bottom))g&=-5;if(l.x<f.left&&g&1)l.x=f.left,d|=1;l.x<f.left&&l.x+i.width>f.right&&g&16&&(i.width-=l.x+i.width-f.right,d|=4);if(l.x+i.width>f.right&&g&1)l.x=Math.max(f.right-i.width,f.left),d|=1;g&2&&
(d|=(l.x<f.left?16:0)|(l.x+i.width>f.right?32:0));if(l.y<f.top&&g&4)l.y=f.top,d|=2;l.y>=f.top&&l.y+i.height>f.bottom&&g&32&&(i.height-=l.y+i.height-f.bottom,d|=8);if(l.y+i.height>f.bottom&&g&4)l.y=Math.max(f.bottom-i.height,f.top),d|=2;g&8&&(d|=(l.y<f.top?64:0)|(l.y+i.height>f.bottom?128:0));l=d}else l=256;if(l&496)return l}Cg(b,a);if(!jc(c,i))f=ud(O(P(b))),D&&(!f||!I("8"))?(a=b.style,f?(D?(f=Xg(b,zg(b,"paddingLeft")),c=Xg(b,zg(b,"paddingRight")),g=Xg(b,zg(b,"paddingTop")),d=Xg(b,zg(b,"paddingBottom")),
f=new ig(g,c,d,f)):(f=yg(b,"paddingLeft"),c=yg(b,"paddingRight"),g=yg(b,"paddingTop"),d=yg(b,"paddingBottom"),f=new ig(parseFloat(g),parseFloat(c),parseFloat(d),parseFloat(f))),D?(c=Zg(b,"borderLeft"),g=Zg(b,"borderRight"),d=Zg(b,"borderTop"),b=Zg(b,"borderBottom"),b=new ig(d,g,b,c)):(c=yg(b,"borderLeftWidth"),g=yg(b,"borderRightWidth"),d=yg(b,"borderTopWidth"),b=yg(b,"borderBottomWidth"),b=new ig(parseFloat(d),parseFloat(g),parseFloat(b),parseFloat(c))),a.pixelWidth=i.width-b.left-f.left-f.right-
b.right,a.pixelHeight=i.height-b.top-f.top-f.bottom-b.bottom):(a.pixelWidth=i.width,a.pixelHeight=i.height)):(b=b.style,E?b.MozBoxSizing="border-box":G?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=i.width+"px",b.height=i.height+"px");return l};function mo(a,b){this.k=O(a);this.w=new gg(this);this.wn=new io(this.k.v());this.wb={};this.Bb=this.k.f("DIV",{className:no});W(this.Bb,m);a.appendChild(this.Bb);wg(this.Bb,"zIndex",b);this.Vg=this.Bb;this.jo=this.k.f("DIV",{className:"tr_bubble_closebox",innerHTML:"&nbsp;"});this.Vg.appendChild(this.jo);qm(this.Bb,this.w);this.Na=new qh(this.Bb)}z(mo,xe);var no="tr_bubble";q=mo.prototype;q.$a=uf("goog.ui.editor.Bubble");
q.d=function(){mo.c.d.call(this);Q(this.Bb);this.Bb=k;this.w.m();this.w=k;this.wn.m();this.wn=k};q.s=o("Vg");q.fb=o("Bb");q.Ut=function(){this.B()&&this.na()};function oo(a,b){return lc(a.wb,function(a){return a.type==b})}q.lo=function(){this.Na.t(m)};q.Ht=function(){for(var a in this.wb)Q(this.wb[a].element);this.wb={};K(this.Bb,"tr_multi_bubble");this.w.mc();this.dispatchEvent("hide")};q.B=function(){return this.Na.B()};var po=D?4:2,qo=new ig(po,0,po,0);
mo.prototype.na=function(){var a=k,b=j,c;for(c in this.wb)var d=this.wb[c],a=d.mn,b=b&&d.ov;c=496;a=Jg(this.Bb)!=Jg(a);b&&(c=ro(this,a?7:5,4,9));c&496&&(c=ro(this,a?6:4,5,9));c&496&&(c=ro(this,a?7:5,4,5),c&496&&of(this.$a,"reposition(): positionAtAnchor() failed with "+c))};function ro(a,b,c,d){var f=k,g;for(g in a.wb){var i=a.wb[g].mn;if(!f||cd(i,f))f=a.wb[g].mn}return ko(f,b,a.Bb,c,k,qo,d)}
function so(a,b,c,d,f,g){this.type=c;this.mn=f;this.ov=g;this.element=a.f("DIV",{className:"tr_bubble_panel",id:b},a.f("DIV",{className:"tr_bubble_panel_title"},d+":"),a.f("DIV",{className:"tr_bubble_panel_content"}))}so.prototype.s=function(){return this.element.lastChild};function to(){Vl.call(this);this.Eb=new gg(this)}z(to,Vl);function uo(a,b){return new mo(a,b)}var vo={};q=to.prototype;q.ye=k;q.fd=Sl("AbstractBubblePlugin");q.fp=function(){this.B()&&this.ig();return m};
q.ig=function(a,b){var c;if(a)c=a.target;else if(b)c=b;else{var d=Ym(this.g);if(d){var f=d.r(),g=d.H(),i=d.S(),l=d.da();D&&d.isCollapsed()&&f!=g&&(d=bl(f,i));f.nodeType==1&&f==g&&i==l-1&&(f=f.childNodes[i],f.nodeType==1&&(c=f))}c=c||d&&d.fb()}var n;a:{if(c){c=qd(c,"A");if(!c&&(d=Ym(this.g))&&d.isCollapsed()&&d.S()==0)(d=d.r().previousSibling)&&d.tagName=="A"&&(c=d);if(i=c){if(i!=this.ii||!this.ye)if(this.ye&&wo(this),c=xo(this),!oo(c,this.ql())){this.ii=i;var f=this.ql(),l=this.Wo(),g=u(this.vs,this),
r=this.Yv(),d=Wa(),i=new so(c.k,d,f,l,i,!r);c.wb[d]=i;l=0;for(r=c.Vg.childNodes.length-1;l<r;l++){var v=c.Vg.childNodes[l];if(c.wb[v.id].type>f){n=v;break}}Wc(i.element,n||c.Vg.lastChild);g(i.s());qm(i.element,c.w);n=nc(c.wb);n==1?(c.w.h(c.jo,S,c.lo).h(c.wn,"resize",c.Ut).h(c.Na,"hide",c.Ht),c.Na.t(j),c.na()):n==2&&J(c.Bb,"tr_multi_bubble");c.na();this.ye=d;this.Eb.h(c,"hide",this.lp);this.tm()}n=m;break a}}this.ye&&wo(this);n=m}return n};
q.disable=function(a){if(a.of==Lm){var b=vo[a.id];b&&(b.m(),delete vo[a.id])}};function xo(a){var b=a.vy||a.g.Ke.document.body;a.k=O(b);var c=vo[a.g.id];c||(c=uo.call(k,b,a.g.ty||0),vo[a.g.id]=c);return c}q.ql=p("");q.Wo=p("");q.Yv=Tl;function wo(a){if(a.ye){var b=xo(a),c=a.ye;Q(b.wb[c].element);delete b.wb[c];c=nc(b.wb);c<=1&&K(b.Bb,"tr_multi_bubble");c==0?b.lo():b.na();a.lp()}}q.tm=ga;q.lp=function(){this.ye=this.ii=k;this.Eb.mc()};q.B=function(){return!!this.ye};
q.na=function(){var a=xo(this);a&&a.na()};function yo(a,b){return a.k.f("SPAN",{id:b,className:"tr_option-link"},a.k.createTextNode("\u00a0-\u00a0"))}function zo(a,b,c,d,f){c=a.k.f("SPAN",{className:"tr_bubble_link"},c);f?f.appendChild(c):(f=a.k.b(b))&&Yc(c,f);c.id=b;qm(c,a.Eb);d&&a.Eb.h(c,S,d)};function Ao(a,b,c){b||(b={});var d=c||window,c=typeof a.href!="undefined"?a.href:""+a,a=b.target||a.target,f=[],g;for(g in b)switch(g){case "width":case "height":case "top":case "left":f.push(g+"="+b[g]);break;case "target":case "noreferrer":break;default:f.push(g+"="+(b[g]?1:0))}g=f.join(",");if(b.noreferrer){if(b=d.open("",a,g))D&&c.indexOf(";")!=-1&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=k,G?b.location.href=c:(c=La(c),b.document.write('<META HTTP-EQUIV="refresh" content="0; url='+c+'">'),b.document.close())}else d.open(c,
a,g)};function Bo(a){to.call(this);this.Vi=rb(arguments);this.ri=[]}z(Bo,to);var Co=x("Go to link: "),Do=x("Change"),Eo=x("Remove");q=Bo.prototype;q.Og=m;q.fd=p("LinkBubble");function Fo(a){return a.ii.getAttribute("href")||""}q.ql=p("A");q.Wo=function(){return mn};
q.vs=function(a){var b=Go(this),c=b.Br?"black":"red";if(ln.test(b.Hh)||!b.Br)c=this.k.f("SPAN",{id:"tr_link-text",style:"color:"+c},this.k.createTextNode(b.Hh));else{var d=this.k.f("SPAN",{id:"tr_test-link-span"},Co),c=this.k.f("SPAN",{id:"tr_link-text",style:"color:"+c},"");zo(this,"tr_test-link",this.k.createTextNode(Ra(b.Hh)).data,this.iw,c)}var f=yo(this,"tr_change-link-span");zo(this,"tr_change-link",Do,this.Zv,f);this.ri=[];for(b=0;b<this.Vi.length;b++){var g=this.Vi[b],i=yo(this,g.ew);this.ri.push(i);
zo(this,g.Hy,g.Ly,function(){g.qy(Fo(this))},i)}i=yo(this,"tr_delete-link-span");zo(this,"tr_delete-link",Eo,this.As,i);this.tm();d=this.k.f("DIV",{id:"tr_link-div"},d||"",c,f);for(b=0;b<this.ri.length;b++)d.appendChild(this.ri[b]);d.appendChild(i);a.appendChild(d)};q.iw=function(){var a;a=Fo(this);a=this.jw?this.jw(a):a;Ao(a,{target:"_blank",noreferrer:this.Og},this.g.Ke)};q.ju=Tl;
function Go(a){var b,c=Fo(a);a.ju(c)?(c=x("invalid url"),b=j):c&&xa(c,"mailto:")&&(c=c.substring(7));return{Hh:c,Br:!b}}q.Zv=function(){this.g.execCommand("link",new en(this.ii,m));wo(this)};q.As=function(){this.g.Ve();var a=this.ii,b=a.lastChild;Zc(a);um(b);wo(this);this.g.ad()};q.tm=function(){if(this.k.b("tr_link-div")){var a=this.k.b("tr_test-link-span");if(a){var b=Fo(this);W(a,!(b&&xa(b,"mailto:")))}for(a=0;a<this.Vi.length;a++){var b=this.Vi[a],c=this.k.b(b.ew);c&&W(c,b.Ty(Fo(this)))}}};function Ho(a){this.R=a}z(Ho,xe);
Ho.prototype.show=function(){if(!this.yc){var a=this.R.Sk(1,2);a.cellSpacing="0";a.cellPadding="0";a.style.fontSize="10pt";var b=this.R.f("DIV");a.rows[0].cells[0].innerHTML='<span style="position: relative; bottom: 2px; padding-right: 1px; white-space: nowrap;">'+on+"&nbsp;</span>";var c=this.Df=this.R.f("INPUT",{id:Io});wg(c,"width","98%");wg(a.rows[0].cells[1],"width","100%");a.rows[0].cells[1].appendChild(c);c.value=fn(this.Cf);this.w.h(c,"keyup",u(this.$u,this));b.appendChild(a);this.kw=b;a=
this.R.f("DIV",k,this.kw);b=new Jo(this);b.ik(nn).Ea(a);var c=this.Hb=new Ko(this.R,pn),d=Lo,f=this.R.createElement("DIV"),g=this.R.f("DIV",{innerHTML:"<b>"+un+"</b>"}),i=this.R.f("INPUT",{id:Mo,className:No});if(!D)i.type="url";if(D&&ud(O(i)))i.style.width="99%";var l=this.R.f("DIV",k,i);this.vn=new Oo(i);this.w.h(this.vn,"input",this.pq);i=new Po(sn,Qo.pa(),this.R);i.Pa(l);i.b().style.marginTop="1em";this.w.h(i,"action",this.cv);i=this.R.f("DIV",{className:Ro,innerHTML:tn});f.appendChild(g);f.appendChild(l);
f.appendChild(i);So(c,d,qn,rn,f);c=this.Hb;d=To;f=this.R.f("DIV");g=this.R.f("DIV",{innerHTML:"<b>"+yn+"</b>"});f.appendChild(g);g=this.R.f("INPUT",{id:Uo,className:No});if(D&&ud(O(g)))g.style.width="99%";f.appendChild(g);this.hl=new Oo(g);this.w.h(this.hl,"input",this.pq);g=this.R.f("DIV",{id:Vo,className:Wo,style:"visibility:hidden"},xn);f.appendChild(g);this.gh&&(g=this.R.f("DIV",{className:Ro,innerHTML:this.gh}),f.appendChild(g));So(c,d,vn,wn,f);this.Hb.Pa(a);this.w.h(this.Hb,"select",this.Pu);
this.ae&&a.appendChild(Xo(this));this.yc=Yo(b);this.yc.addEventListener(Hh,this.Ws,m,this)}this.yc.t(j)};Ho.prototype.gb=function(){this.yc&&this.yc.t(m)};Ho.prototype.mf=function(){return!!this.yc&&this.yc.B()};function Jo(a){this.Zf=a;this.He=new yh("",j,this.Zf.R);this.Xg=new Fh(this.Zf.R);this.Wg={};this.Mf("tr-dialog")}Jo.prototype.ik=function(a){this.He.ik(a);return this};function Zo(a){var b=x("OK");a.Xg.set("ok",b,j);a.Wg.ok=u(a.Zf.Ct,a.Zf)}
function $o(a){var b=Mh,c=x("Cancel");a.Xg.set(b,c,m,j);a.Wg[b]=u(a.Zf.Zs,a.Zf)}Jo.prototype.Tb=function(a,b,c){c=c||Wa();this.Xg.set(c,a);this.Wg[c]=b;return this};Jo.prototype.Mf=function(a){var b;b=this.He;Ah(b);b=b.b();J(b,a);return this};Jo.prototype.Ea=function(a){this.He.s().appendChild(a);return this};function Yo(a){a.Xg.Hc()&&(Zo(a),$o(a));Jh(a.He,a.Xg);var b=a.Wg;a.Wg=k;a.He.addEventListener(Lh,function(a){if(b[a.key])return b[a.key](a)});Ch(a.He);var c=a.He;a.He=k;return c}q=Ho.prototype;
q.Xo=function(a){return Kh(this.yc.Ua,a)};q.Ct=function(){var a;gh(this.Hb.Gb.ob)==To?a=ap(this):(a=this.R.b(Mo).value,ln.test(a)?a=ap(this,Mo):(a.search(/:/)<0&&(a="http://"+Ha(a)),a=bp(this,a)));return a?this.dispatchEvent(a):m};q.Zs=function(){return this.dispatchEvent("cancel")};q.d=function(){if(this.yc)this.gb(),this.yc.m(),this.yc=k;Ho.c.d.call(this)};q.Ws=function(){this.dispatchEvent("afterhide")};function cp(a){Vl.call(this);this.ps=a}z(cp,Vl);q=cp.prototype;q.og=function(a){return a==this.ps};q.execCommand=function(a,b){return this.bg.apply(this,arguments)};
q.bg=function(a,b){this.Qq||dp(this);if(!this.ia){var c=O(this.g.Ke),c=new ep(c,b);this.gh&&c.Xq(this.gh);this.ae&&c.gr(this.Od);c.Og=this.Og;this.w.h(c,"ok",this.Dt).h(c,"cancel",this.$s);this.ia=c}this.Fg=(c=Ym(this.g))&&new Em(c);cl(this.g.eb.v());ge(this.ia,"afterhide",this.vl,m,this);this.g.mg=j;this.ia.show();this.dispatchEvent("dialogOpened");$l(this.g);return j};
q.vl=function(){this.g.mg=m;this.g.focus();if(this.Fg)this.Fg.restore(),this.Fg=k;this.Qq||dp(this);this.dispatchEvent("dialogClosed");$l(this.g);this.g.Ni.selectionchange=va()};q.d=function(){dp(this);cp.c.d.call(this)};q.Qq=m;q.Ql=m;function dp(a){if(a.ia&&!a.Ql)a.Ql=j,a.ia.m(),a.ia=k,a.Ql=m};function Oo(a){this.j=a;this.Cp=D||G&&!I("531")&&a.tagName=="TEXTAREA";this.w=new gg(this);this.w.h(this.j,this.Cp?["keydown","paste","cut","drop"]:"input",this)}z(Oo,xe);Oo.prototype.K=k;
Oo.prototype.handleEvent=function(a){if(this.Cp){var b;if(!(b=a.type!="keydown"))a:if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=112&&a.keyCode<=123)b=m;else switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 224:case 92:b=m;break a;default:b=a.keyCode<166||a.keyCode>183}if(b){var c=a.type=="keydown"?this.j.value:k;D&&a.keyCode==229&&(c=k);
var d=fp(a);gp(this);this.K=Be(function(){this.K=k;this.j.value!=c&&hp(this,d)},0,this)}}else(!C||this.j==P(this.j).activeElement)&&hp(this,fp(a))};function gp(a){if(a.K!=k)Ce(a.K),a.K=k}function fp(a){a=new Kd(a.wa);a.type="input";return a}function hp(a,b){try{a.dispatchEvent(b)}finally{b.m()}}Oo.prototype.d=function(){Oo.c.d.call(this);this.w.m();gp(this);delete this.j};function ip(){}var jp;ha(ip);q=ip.prototype;q.ub=aa();q.f=function(a){var b=a.q().f("div",this.cd(a).join(" "),a.Ba);this.fk(a,b);return b};q.s=function(a){return a};q.hh=function(a,b,c){if(a=a.b?a.b():a)if(D&&!I("7")){var d=kp(cc(a),b);d.push(b);ua(c?J:K,a).apply(k,d)}else L(a,b,c)};q.qb=p(j);
q.Z=function(a,b){b.id&&hh(a,b.id);var c=this.s(b);c&&c.firstChild?a.Hg(c.firstChild.nextSibling?qb(c.childNodes):c.firstChild):a.Hg(k);var d=0,f=this.n(),g=this.n(),i=m,l=m,c=m,n=cc(b);A(n,function(a){!i&&a==f?(i=j,g==f&&(l=j)):!l&&a==g?l=j:d|=this.tl(a)},this);a.P=d;i||(n.push(f),g==f&&(l=j));l||n.push(g);var r=a.Bc;r&&n.push.apply(n,r);if(D&&!I("7")){var v=kp(n);v.length>0&&(n.push.apply(n,v),c=j)}if(!i||!l||r||c)b.className=n.join(" ");this.fk(a,b);return b};
q.nd=function(a){oh(a)&&this.Be(a.b(),j);a.isEnabled()&&this.nc(a,a.B())};q.fk=function(a,b){a.isEnabled()||this.Kb(b,1,j);a.pe()&&this.Kb(b,8,j);a.Fa&16&&this.Kb(b,16,!!(a.P&16));a.Fa&64&&this.Kb(b,64,a.mf())};q.Xh=function(a,b){Wg(a,!b,!D&&!C)};q.Be=function(a,b){this.hh(a,this.n()+"-rtl",b)};q.oe=function(a){var b;return a.Fa&32&&(b=a.Ka())?ld(b):m};q.nc=function(a,b){var c;if(a.Fa&32&&(c=a.Ka())){if(!b&&a.P&32){try{c.blur()}catch(d){}a.P&32&&a.Nb(k)}ld(c)!=b&&md(c,b)}};q.t=function(a,b){W(a,b)};
q.Fb=function(a,b,c){var d=a.b();if(d){var f=this.mh(b);f&&this.hh(a,f,c);this.Kb(d,b,c)}};q.Kb=function(a,b,c){jp||(jp={1:"disabled",8:"selected",16:"checked",64:"expanded"});(b=jp[b])&&dg(a,b,c)};q.Ea=function(a,b){var c=this.s(a);if(c&&(Vc(c),b))if(t(b))id(c,b);else{var d=function(a){if(a){var b=P(c);c.appendChild(t(a)?b.createTextNode(a):a)}};ka(b)?A(b,d):la(b)&&!("nodeType"in b)?A(qb(b),d):d(b)}};q.Ka=function(a){return a.b()};q.n=p("goog-control");
q.cd=function(a){var b=this.n(),c=[b],d=this.n();d!=b&&c.push(d);b=a.cj();for(d=[];b;){var f=b&-b;d.push(this.mh(f));b&=~f}c.push.apply(c,d);(a=a.Bc)&&c.push.apply(c,a);D&&!I("7")&&c.push.apply(c,kp(c));return c};function kp(a,b){var c=[];b&&(a=a.concat([b]));A([],function(d){kb(d,ua(B,a))&&(!b||B(d,b))&&c.push(d.join("_"))});return c}q.mh=function(a){this.Fi||lp(this);return this.Fi[a]};
q.tl=function(a){if(!this.mr)this.Fi||lp(this),this.mr=uc(this.Fi);a=parseInt(this.mr[a],10);return isNaN(a)?0:a};function lp(a){var b=a.n();a.Fi={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};function mp(){}z(mp,ip);ha(mp);q=mp.prototype;q.ub=p("button");q.Kb=function(a,b,c){b==16?dg(a,"pressed",c):mp.c.Kb.call(this,a,b,c)};q.f=function(a){var b=mp.c.f.call(this,a),c=a.ed();c&&this.Uc(b,c);(c=a.qa())&&this.ta(b,c);a.Fa&16&&this.Kb(b,16,!!(a.P&16));return b};q.Z=function(a,b){var b=mp.c.Z.call(this,a,b),c=this.qa(b);a.Hf=c;a.jk(this.ed(b));a.Fa&16&&this.Kb(b,16,!!(a.P&16));return b};q.qa=ga;q.ta=ga;q.ed=function(a){return a.title};q.Uc=function(a,b){if(a)a.title=b||""};q.n=p("goog-button");function np(a,b){a&&this.yd(a,b)}z(np,xe);q=np.prototype;q.j=k;q.qj=k;q.Ul=k;q.rj=k;q.ue=-1;q.re=-1;
var op={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},pp={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},qp={61:187,59:186},rp=D||G&&I("525");q=np.prototype;
q.zl=function(a){if(G&&(this.ue==17&&!a.ctrlKey||this.ue==18&&!a.altKey))this.re=this.ue=-1;rp&&!eg(a.keyCode,this.ue,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):this.re=E&&a.keyCode in qp?qp[a.keyCode]:a.keyCode};q.rt=function(){this.re=this.ue=-1};
q.handleEvent=function(a){var b=a.wa,c,d;D&&a.type=="keypress"?(c=this.re,d=c!=13&&c!=27?b.keyCode:0):G&&a.type=="keypress"?(c=this.re,d=b.charCode>=0&&b.charCode<63232&&fg(c)?b.charCode:0):C?(c=this.re,d=fg(c)?b.keyCode:0):(c=b.keyCode||this.re,d=b.charCode||0,Eb&&d==63&&!c&&(c=191));var f=c,g=b.keyIdentifier;c?c>=63232&&c in op?f=op[c]:c==25&&a.shiftKey&&(f=9):g&&g in pp&&(f=pp[g]);a=f==this.ue;this.ue=f;b=new sp(f,d,a,b);try{this.dispatchEvent(b)}finally{b.m()}};q.b=o("j");
q.yd=function(a,b){this.rj&&this.detach();this.j=a;this.qj=T(this.j,"keypress",this,b);this.Ul=T(this.j,Fd,this.zl,b,this);this.rj=T(this.j,"keyup",this.rt,b,this)};q.detach=function(){if(this.qj)je(this.qj),je(this.Ul),je(this.rj),this.rj=this.Ul=this.qj=k;this.j=k;this.re=this.ue=-1};q.d=function(){np.c.d.call(this);this.detach()};function sp(a,b,c,d){d&&this.init(d,h);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}z(sp,Kd);function tp(a,b){a||e(Error("Invalid class name "+a));na(b)||e(Error("Invalid decorator function "+b));up[a]=b}var vp={},up={};function wp(a,b,c){dh.call(this,c);if(!b){for(var b=this.constructor,d;b;){d=pa(b);if(d=vp[d])break;b=b.c?b.c.constructor:k}b=d?na(d.pa)?d.pa():new d:k}this.z=b;this.Hg(a)}z(wp,dh);q=wp.prototype;q.Ba=k;q.P=0;q.Fa=39;q.Tn=255;q.nk=0;q.Ta=j;q.Bc=k;q.Al=j;q.ti=m;q.Sj=k;function xp(a,b){a.N&&b!=a.Al&&yp(a,b);a.Al=b}q.Ka=function(){return this.z.Ka(this)};q.$i=function(){return this.gc||(this.gc=new np)};q.Mf=function(a){if(a)this.Bc?B(this.Bc,a)||this.Bc.push(a):this.Bc=[a],this.z.hh(this,a,j)};
q.hh=function(a,b){if(b)this.Mf(a);else if(a&&this.Bc){ob(this.Bc,a);if(this.Bc.length==0)this.Bc=k;this.z.hh(this,a,m)}};q.f=function(){var a=this.z.f(this);this.j=a;var b=this.Sj||this.z.ub();b&&cg(a,b);this.ti||this.z.Xh(a,m);this.B()||this.z.t(a,m)};q.s=function(){return this.z.s(this.b())};q.qb=function(a){return this.z.qb(a)};q.Va=function(a){this.j=a=this.z.Z(this,a);var b=this.Sj||this.z.ub();b&&cg(a,b);this.ti||this.z.Xh(a,m);this.Ta=a.style.display!="none"};
q.W=function(){wp.c.W.call(this);this.z.nd(this);if(this.Fa&-2&&(this.Al&&yp(this,j),this.Fa&32)){var a=this.Ka();if(a){var b=this.$i();b.yd(a);this.ca().h(b,"key",this.hd).h(a,"focus",this.me).h(a,"blur",this.Nb)}}};function yp(a,b){var c=a.ca(),d=a.b();b?(c.h(d,"mouseover",a.ne).h(d,"mousedown",a.jd).h(d,"mouseup",a.ef).h(d,"mouseout",a.rh),D&&c.h(d,"dblclick",a.dp)):(c.Sa(d,"mouseover",a.ne).Sa(d,"mousedown",a.jd).Sa(d,"mouseup",a.ef).Sa(d,"mouseout",a.rh),D&&c.Sa(d,"dblclick",a.dp))}
q.Wa=function(){wp.c.Wa.call(this);this.gc&&this.gc.detach();this.B()&&this.isEnabled()&&this.z.nc(this,m)};q.d=function(){wp.c.d.call(this);this.gc&&(this.gc.m(),delete this.gc);delete this.z;this.Bc=this.Ba=k};q.Ea=function(a){this.z.Ea(this.b(),a);this.Hg(a)};q.Hg=ba("Ba");q.af=function(){var a=this.Ba;if(!a)return"";a=t(a)?a:ka(a)?ib(a,pd).join(""):nd(a);return Fa(a)};q.Be=function(a){wp.c.Be.call(this,a);var b=this.b();b&&this.z.Be(b,a)};
q.Xh=function(a){this.ti=a;var b=this.b();b&&this.z.Xh(b,a)};q.B=o("Ta");q.t=function(a,b){if(b||this.Ta!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.b();c&&this.z.t(c,a);this.isEnabled()&&this.z.nc(this,a);this.Ta=a;return j}return m};q.isEnabled=function(){return!(this.P&1)};q.Ia=function(a){var b=this.getParent();if((!b||typeof b.isEnabled!="function"||b.isEnabled())&&zp(this,1,!a))a||(this.setActive(m),this.Rc(m)),this.B()&&this.z.nc(this,a),this.Fb(1,!a)};
q.Rc=function(a){zp(this,2,a)&&this.Fb(2,a)};q.Fc=function(){return!!(this.P&4)};q.setActive=function(a){zp(this,4,a)&&this.Fb(4,a)};q.pe=function(){return!!(this.P&8)};q.$d=function(a){zp(this,8,a)&&this.Fb(8,a)};function Ap(a,b){zp(a,16,b)&&a.Fb(16,b)}q.mf=function(){return!!(this.P&64)};q.ua=function(a){zp(this,64,a)&&this.Fb(64,a)};q.cj=o("P");q.Fb=function(a,b){if(this.Fa&a&&b!=!!(this.P&a))this.z.Fb(this,a,b),this.P=b?this.P|a:this.P&~a};
function Bp(a,b,c){a.N&&a.P&b&&!c&&e(Error("Component already rendered"));!c&&a.P&b&&a.Fb(b,m);a.Fa=c?a.Fa|b:a.Fa&~b}function Cp(a,b){return!!(a.Tn&b)&&!!(a.Fa&b)}function zp(a,b,c){return!!(a.Fa&b)&&!!(a.P&b)!=c&&(!(a.nk&b)||a.dispatchEvent(fh(b,c)))&&!a.Hd}q.ne=function(a){!Dp(a,this.b())&&this.dispatchEvent("enter")&&this.isEnabled()&&Cp(this,2)&&this.Rc(j)};q.rh=function(a){!Dp(a,this.b())&&this.dispatchEvent("leave")&&(Cp(this,4)&&this.setActive(m),Cp(this,2)&&this.Rc(m))};
function Dp(a,b){return!!a.relatedTarget&&cd(b,a.relatedTarget)}q.jd=function(a){this.isEnabled()&&(Cp(this,2)&&this.Rc(j),Md(a)&&(Cp(this,4)&&this.setActive(j),this.z.oe(this)&&this.Ka().focus()));!this.ti&&Md(a)&&a.preventDefault()};q.ef=function(a){this.isEnabled()&&(Cp(this,2)&&this.Rc(j),this.Fc()&&this.Vd(a)&&Cp(this,4)&&this.setActive(m))};q.dp=function(a){this.isEnabled()&&this.Vd(a)};
q.Vd=function(a){Cp(this,16)&&Ap(this,!(this.P&16));Cp(this,8)&&this.$d(j);Cp(this,64)&&this.ua(!this.mf());var b=new Cd("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)};q.me=function(){Cp(this,32)&&zp(this,32,j)&&this.Fb(32,j)};q.Nb=function(){Cp(this,4)&&this.setActive(m);Cp(this,32)&&zp(this,32,m)&&this.Fb(32,m)};
q.hd=function(a){return this.B()&&this.isEnabled()&&this.hg(a)?(a.preventDefault(),a.stopPropagation(),j):m};q.hg=function(a){return a.keyCode==13&&this.Vd(a)};na(wp)||e(Error("Invalid component class "+wp));na(ip)||e(Error("Invalid renderer class "+ip));var Ep=pa(wp);vp[Ep]=ip;tp("goog-control",function(){return new wp(k)});function Fp(){}z(Fp,mp);ha(Fp);q=Fp.prototype;q.ub=aa();q.f=function(a){Gp(a);return a.q().f("button",{"class":this.cd(a).join(" "),disabled:!a.isEnabled(),title:a.ed()||"",value:a.qa()||""},a.af()||"")};q.qb=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};q.Z=function(a,b){Gp(a);b.disabled&&J(b,this.mh(1));return Fp.c.Z.call(this,a,b)};q.nd=function(a){a.ca().h(a.b(),S,a.Vd)};q.Xh=ga;q.Be=ga;q.oe=function(a){return a.isEnabled()};
q.nc=ga;q.Fb=function(a,b,c){Fp.c.Fb.call(this,a,b,c);if((a=a.b())&&b==1)a.disabled=c};q.qa=function(a){return a.value};q.ta=function(a,b){if(a)a.value=b};q.Kb=ga;function Gp(a){xp(a,m);a.Tn&=-256;Bp(a,32,m)};function Po(a,b,c){wp.call(this,a,b||Fp.pa(),c)}z(Po,wp);q=Po.prototype;q.qa=o("Hf");q.ta=function(a){this.Hf=a;this.z.ta(this.b(),a)};q.ed=o("ce");q.Uc=function(a){this.ce=a;this.z.Uc(this.b(),a)};q.jk=ba("ce");q.d=function(){Po.c.d.call(this);delete this.Hf;delete this.ce};q.W=function(){Po.c.W.call(this);if(this.Fa&32){var a=this.Ka();a&&this.ca().h(a,"keyup",this.hg)}};q.hg=function(a){return a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup"?this.Vd(a):a.keyCode==32};
tp("goog-button",function(){return new Po(k)});function Hp(){}z(Hp,mp);ha(Hp);q=Hp.prototype;q.f=function(a){var b={"class":"goog-inline-block "+this.cd(a).join(" "),title:a.ed()||""};return a.q().f("div",b,a.Ba)};q.ub=p("button");q.qb=function(a){return a.tagName=="DIV"};q.Z=function(a,b){J(b,"goog-inline-block");return Hp.c.Z.call(this,a,b)};q.qa=p(k);q.n=p("goog-flat-button");tp("goog-flat-button",function(){return new Po(k,Hp.pa())});function Qo(){}z(Qo,Hp);ha(Qo);Qo.prototype.n=p("goog-link-button");tp("goog-link-button",function(){return new Po(k,Qo.pa())});function Ip(){}z(Ip,ip);ha(Ip);q=Ip.prototype;q.n=p("goog-tab");q.ub=p("tab");q.f=function(a){var b=Ip.c.f.call(this,a);(a=a.ed())&&this.Uc(b,a);return b};q.Z=function(a,b){var b=Ip.c.Z.call(this,a,b),c=this.ed(b);c&&a.jk(c);if(a.pe()&&(c=a.getParent())&&na(c.Ce))a.Fb(8,m),c.Ce(a);return b};q.ed=function(a){return a.title||""};q.Uc=function(a,b){if(a)a.title=b||""};function Jp(a,b,c){wp.call(this,a,b||Ip.pa(),c);Bp(this,8,j);this.nk|=9}z(Jp,wp);Jp.prototype.ed=o("ce");Jp.prototype.Uc=function(a){this.z.Uc(this.b(),a);this.jk(a)};Jp.prototype.jk=ba("ce");tp("goog-tab",function(){return new Jp(k)});function Kp(){}z(Kp,ip);ha(Kp);Kp.prototype.f=function(a){return a.q().f("div",this.n())};Kp.prototype.Z=function(a,b){b.id&&hh(a,b.id);if(b.tagName=="HR"){var c=b,b=this.f(a);Wc(b,c);Q(c)}else J(b,this.n());return b};Kp.prototype.Ea=aa();Kp.prototype.n=p("goog-menuseparator");function Lp(a,b){wp.call(this,k,a||Kp.pa(),b);Bp(this,1,m);Bp(this,2,m);Bp(this,4,m);Bp(this,32,m);this.P=1}z(Lp,wp);Lp.prototype.W=function(){Lp.c.W.call(this);cg(this.b(),"separator")};tp("goog-menuseparator",function(){return new Lp});function Mp(){}ha(Mp);q=Mp.prototype;q.ub=aa();function Np(a,b){if(a)a.tabIndex=b?0:-1}q.f=function(a){return a.q().f("div",this.cd(a).join(" "))};q.s=function(a){return a};q.qb=function(a){return a.tagName=="DIV"};q.Z=function(a,b){b.id&&hh(a,b.id);var c=this.n(),d=m,f=cc(b);f&&A(f,function(b){b==c?d=j:b&&this.Wm(a,b,c)},this);d||J(b,c);Op(this,a,this.s(b));return b};q.Wm=function(a,b,c){b==c+"-disabled"?a.Ia(m):b==c+"-horizontal"?a.Zh(Pp):b==c+"-vertical"&&a.Zh(Rp)};
function Op(a,b,c){if(c)for(var d=c.firstChild,f;d&&d.parentNode==c;){f=d.nextSibling;if(d.nodeType==1){var g=a.nh(d);if(g)g.j=d,b.isEnabled()||g.Ia(m),b.Ab(g),g.Z(d)}else(!d.nodeValue||Ga(d.nodeValue)=="")&&c.removeChild(d);d=f}}q.nh=function(a){a:{for(var b=cc(a),c=0,d=b.length;c<d;c++)if(a=b[c]in up?up[b[c]]():k)break a;a=k}return a};q.nd=function(a){a=a.b();Wg(a,j,E);if(D)a.hideFocus=j;var b=this.ub();b&&cg(a,b)};q.Ka=function(a){return a.b()};q.n=p("goog-container");
q.cd=function(a){var b=this.n(),c=[b,a.nb==Pp?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};q.Yo=function(){return Rp};function Sp(a,b,c){dh.call(this,c);this.z=b||Mp.pa();this.nb=a||this.z.Yo()}z(Sp,dh);var Pp="horizontal",Rp="vertical";q=Sp.prototype;q.Vl=k;q.gc=k;q.z=k;q.nb=k;q.Ta=j;q.ka=j;q.ol=j;q.Ha=-1;q.Ma=k;q.Rd=m;q.Sr=m;q.dv=j;q.Ad=k;q.Ka=function(){return this.Vl||this.z.Ka(this)};q.$i=function(){return this.gc||(this.gc=new np(this.Ka()))};q.f=function(){this.j=this.z.f(this)};q.s=function(){return this.z.s(this.b())};q.qb=function(a){return this.z.qb(a)};
q.Va=function(a){this.j=this.z.Z(this,a);if(a.style.display=="none")this.Ta=m};q.W=function(){Sp.c.W.call(this);lh(this,function(a){a.N&&Tp(this,a)},this);var a=this.b();this.z.nd(this);this.t(this.Ta,j);this.ca().h(this,"enter",this.xl).h(this,"highlight",this.yl).h(this,"unhighlight",this.Cl).h(this,"open",this.Ft).h(this,"close",this.et).h(a,"mousedown",this.jd).h(P(a),"mouseup",this.ht).h(a,["mousedown","mouseup","mouseover","mouseout"],this.dt);this.oe()&&Up(this,j)};
function Up(a,b){var c=a.ca(),d=a.Ka();b?c.h(d,"focus",a.me).h(d,"blur",a.Nb).h(a.$i(),"key",a.hd):c.Sa(d,"focus",a.me).Sa(d,"blur",a.Nb).Sa(a.$i(),"key",a.hd)}q.Wa=function(){this.pb(-1);this.Ma&&this.Ma.ua(m);this.Rd=m;Sp.c.Wa.call(this)};q.d=function(){Sp.c.d.call(this);if(this.gc)this.gc.m(),this.gc=k;this.z=this.Ma=this.Ad=this.Vl=k};q.xl=p(j);
q.yl=function(a){var b=ph(this,a.target);if(b>-1&&b!=this.Ha){var c=Vp(this);c&&c.Rc(m);this.Ha=b;c=Vp(this);this.Rd&&c.setActive(j);this.dv&&this.Ma&&c!=this.Ma&&(c.Fa&64?c.ua(j):this.Ma.ua(m))}dg(this.b(),"activedescendant",a.target.b().id)};q.Cl=function(a){if(a.target==Vp(this))this.Ha=-1;dg(this.b(),"activedescendant","")};q.Ft=function(a){if((a=a.target)&&a!=this.Ma&&a.getParent()==this)this.Ma&&this.Ma.ua(m),this.Ma=a};q.et=function(a){if(a.target==this.Ma)this.Ma=k};
q.jd=function(a){if(this.ka)this.Rd=j;var b=this.Ka();b&&ld(b)?b.focus():a.preventDefault()};q.ht=function(){this.Rd=m};q.dt=function(a){var b;a:{b=a.target;if(this.Ad)for(var c=this.b();b&&b!==c;){var d=b.id;if(d in this.Ad){b=this.Ad[d];break a}b=b.parentNode}b=k}if(b)switch(a.type){case "mousedown":b.jd(a);break;case "mouseup":b.ef(a);break;case "mouseover":b.ne(a);break;case "mouseout":b.rh(a)}};q.me=aa();q.Nb=function(){this.pb(-1);this.Rd=m;this.Ma&&this.Ma.ua(m)};
q.hd=function(a){return this.isEnabled()&&this.B()&&(mh(this)!=0||this.Vl)&&this.hg(a)?(a.preventDefault(),a.stopPropagation(),j):m};
q.hg=function(a){var b=Vp(this);if(b&&typeof b.hd=="function"&&b.hd(a))return j;if(this.Ma&&this.Ma!=b&&typeof this.Ma.hd=="function"&&this.Ma.hd(a))return j;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return m;switch(a.keyCode){case 27:if(this.oe())this.Ka().blur();else return m;break;case 36:Wp(this);break;case 35:Xp(this);break;case 38:if(this.nb==Rp)Yp(this);else return m;break;case 37:if(this.nb==Pp)oh(this)?Zp(this):Yp(this);else return m;break;case 40:if(this.nb==Rp)Zp(this);else return m;
break;case 39:if(this.nb==Pp)oh(this)?Yp(this):Zp(this);else return m;break;default:return m}return j};function Tp(a,b){var c=b.b(),c=c.id||(c.id=gh(b));if(!a.Ad)a.Ad={};a.Ad[c]=b}q.Ab=function(a,b){Sp.c.Ab.call(this,a,b)};q.Ie=function(a,b,c){a.nk|=2;a.nk|=64;(this.oe()||!this.Sr)&&Bp(a,32,m);xp(a,m);Sp.c.Ie.call(this,a,b,c);a.N&&this.N&&Tp(this,a);b<=this.Ha&&this.Ha++};
q.removeChild=function(a,b){if(a=t(a)?jh(this,a):a){var c=ph(this,a);c!=-1&&(c==this.Ha?a.Rc(m):c<this.Ha&&this.Ha--);(c=a.b())&&c.id&&this.Ad&&rc(this.Ad,c.id)}a=Sp.c.removeChild.call(this,a,b);xp(a,j);return a};q.Zh=function(a){this.b()&&e(Error("Component already rendered"));this.nb=a};q.B=o("Ta");
q.t=function(a,b){if(b||this.Ta!=a&&this.dispatchEvent(a?"show":"hide")){this.Ta=a;var c=this.b();c&&(W(c,a),this.oe()&&Np(this.Ka(),this.ka&&this.Ta),b||this.dispatchEvent(this.Ta?"aftershow":"afterhide"));return j}return m};q.isEnabled=o("ka");q.Ia=function(a){if(this.ka!=a&&this.dispatchEvent(a?"enable":"disable"))a?(this.ka=j,lh(this,function(a){a.Er?delete a.Er:a.Ia(j)})):(lh(this,function(a){a.isEnabled()?a.Ia(m):a.Er=j}),this.Rd=this.ka=m),this.oe()&&Np(this.Ka(),a&&this.Ta)};q.oe=o("ol");
q.nc=function(a){a!=this.ol&&this.N&&Up(this,a);this.ol=a;this.ka&&this.Ta&&Np(this.Ka(),a)};q.pb=function(a){(a=nh(this,a))?a.Rc(j):this.Ha>-1&&Vp(this).Rc(m)};q.Rc=function(a){this.pb(ph(this,a))};function Vp(a){return nh(a,a.Ha)}function Wp(a){$p(a,function(a,c){return(a+1)%c},mh(a)-1)}function Xp(a){$p(a,function(a,c){a--;return a<0?c-1:a},0)}function Zp(a){$p(a,function(a,c){return(a+1)%c},a.Ha)}function Yp(a){$p(a,function(a,c){a--;return a<0?c-1:a},a.Ha)}
function $p(a,b,c){for(var c=c<0?ph(a,a.Ma):c,d=mh(a),c=b.call(a,c,d),f=0;f<=d;){var g=nh(a,c);if(g&&a.Yn(g)){a.Sm(c);break}f++;c=b.call(a,c,d)}}q.Yn=function(a){return a.B()&&a.isEnabled()&&!!(a.Fa&2)};q.Sm=function(a){this.pb(a)};function aq(){}z(aq,Mp);ha(aq);aq.prototype.n=p("goog-tab-bar");aq.prototype.ub=p("tablist");aq.prototype.Wm=function(a,b,c){if(!this.Pp)this.Ei||bq(this),this.Pp=uc(this.Ei);var d=this.Pp[b];d?(a.Zh(d==cq||d==dq?Rp:Pp),a.Qp=d):aq.c.Wm.call(this,a,b,c)};aq.prototype.cd=function(a){var b=aq.c.cd.call(this,a);this.Ei||bq(this);b.push(this.Ei[a.Qp]);return b};function bq(a){var b=a.n();a.Ei=xc(eq,b+"-top",fq,b+"-bottom",cq,b+"-start",dq,b+"-end")};function gq(a,b,c){a=a||eq;this.Zh(a==cq||a==dq?Rp:Pp);this.Qp=a;Sp.call(this,this.nb,b||aq.pa(),c);hq(this)}z(gq,Sp);var eq="top",fq="bottom",cq="start",dq="end";q=gq.prototype;q.Yr=j;q.ob=k;q.W=function(){gq.c.W.call(this);hq(this)};q.d=function(){gq.c.d.call(this);this.ob=k};q.removeChild=function(a,b){iq(this,a);return gq.c.removeChild.call(this,a,b)};q.Sm=function(a){gq.c.Sm.call(this,a);this.Yr&&this.Ce(nh(this,a))};q.Ce=function(a){a?a.$d(j):this.ob&&this.ob.$d(m)};
function iq(a,b){if(b&&b==a.ob){for(var c=ph(a,b),d=c-1;b=nh(a,d);d--)if(b.B()&&b.isEnabled()){a.Ce(b);return}for(c+=1;b=nh(a,c);c++)if(b.B()&&b.isEnabled()){a.Ce(b);return}a.Ce(k)}}q.Rt=function(a){this.ob&&this.ob!=a.target&&this.ob.$d(m);this.ob=a.target};q.Tt=function(a){if(a.target==this.ob)this.ob=k};q.Pt=function(a){iq(this,a.target)};q.Qt=function(a){iq(this,a.target)};q.me=function(){Vp(this)||this.Rc(this.ob||nh(this,0))};
function hq(a){a.ca().h(a,"select",a.Rt).h(a,"unselect",a.Tt).h(a,"disable",a.Pt).h(a,"hide",a.Qt)}tp("goog-tab-bar",function(){return new gq});function Ko(a,b){dh.call(this,a);this.w=new gg(this);this.Gb=new gq(cq,h,this.k);this.Gb.nc(m);this.nr=this.k.f("DIV",{className:"goog-tab-content"});this.uk=this.ak=k;if(b){var c=new wp(b,h,this.k);c.Mf("tr-tabpane-caption");c.Ia(m);this.Gb.Ab(c,j)}}z(Ko,dh);function jq(a,b){a.Gb.Ce(jh(a.Gb,b))}
function So(a,b,c,d,f){var g=a.k.f("INPUT",{type:"radio"}),c=new Jp([g,a.k.createTextNode(c)],h,a.k);hh(c,b);c.Uc(d);a.Gb.Ab(c,j);a.w.h(g,"select",u(a.Gb.Ce,a.Gb,c));f.id=b+"-tab";a.nr.appendChild(f);W(f,m)}Ko.prototype.W=function(){Ko.c.W.call(this);var a=this.b();J(a,"tr-tabpane");this.Ab(this.Gb,j);this.w.h(this.Gb,"select",this.St);a.appendChild(this.nr);a.appendChild(this.k.f("DIV",{className:"goog-tab-bar-clear"}))};
Ko.prototype.St=function(a){a=a.target;this.uk&&W(this.uk,m);this.uk=this.k.b(gh(a)+"-tab");W(this.uk,j);if(this.ak)this.ak.checked=m;this.ak=a.b().getElementsByTagName("INPUT")[0];this.ak.checked=j};function ep(a,b){this.R=a;this.Cf=b;this.w=new gg(this)}z(ep,Ho);function kq(a,b,c){Cd.call(this,"ok");this.Hh=a;this.qu=b;this.rq=c}z(kq,Cd);function lq(a){Cd.call(this,"beforetestlink");this.url=a}z(lq,Cd);q=ep.prototype;q.ae=m;q.Od=m;q.Xq=ba("gh");q.gr=function(a){this.ae=j;this.Od=a};
q.show=function(){ep.c.show.call(this);var a=this.Cf.qc.getAttribute("href")||"";if(this.Cf.Bh)if(a=this.Df.value,ln.test(a))jq(this.Hb,To),this.R.b(Uo).value=a,this.zd=j,this.zd=m,this.al=j;else if(kn(a))jq(this.Hb,Lo),this.R.b(Mo).value=a,this.zd=j,this.zd=m,this.al=j;else{if(!fn(this.Cf))this.zd=j;jq(this.Hb,Lo)}else a&&xa(a,"mailto:")?(jq(this.Hb,To),this.R.b(Uo).value=a.substring(a.indexOf(":")+1)):(jq(this.Hb,Lo),this.R.b(Mo).value=this.Cf.Bh?"http://":a),mq(this);nq(this);if(this.ae){if(!this.Cf.Bh)this.Od=
this.Cf.qc.target=="_blank";this.um.checked=this.Od}};q.gb=function(){this.zd=j;this.al=m;ep.c.gb.call(this)};q.d=function(){this.w.m();this.w=k;this.vn.m();this.vn=k;this.hl.m();this.hl=k;ep.c.d.call(this)};q.Zr=j;q.Og=m;function Xo(a){a.um=a.R.f("INPUT",{type:"checkbox"});return a.R.f("DIV",k,a.R.f("LABEL",k,a.um,zn))}
function nq(a){var b;if(gh(a.Hb.Gb.ob)==To){b=a.R.b(Uo).value;var c=b!=""&&!ln.test(b);a.R.b(Vo).style.visibility=c?"visible":"hidden"}else if(gh(a.Hb.Gb.ob)==Lo)b=a.R.b(Mo).value;else return;a.Xo("ok").disabled=Ba(b)}q.$u=function(){this.Df.value==""?this.zd=j:mq(this)};function ap(a,b){var c=a.R.b(b||Uo).value;return bp(a,"mailto:"+c)}
q.cv=function(){var a=this.R.b(Mo).value;a.search(/:/)<0&&(a="http://"+Ha(a));if(this.dispatchEvent(new lq(a))){var b=this.R.v(),c=Jc(b),c={target:"_blank",width:Math.max(c.width-50,50),height:Math.max(c.height-50,50),toolbar:j,scrollbars:j,location:j,statusbar:m,menubar:j,resizable:j,noreferrer:this.Og};Ao(a,c,b)}};q.pq=function(){this.zd?oq(this):this.Df.value==""&&mq(this);nq(this)};
q.Pu=function(a){a=this.R.b(gh(a.target)+pq);a.focus();var b=a.value.length,c;try{c=typeof a.selectionStart=="number"}catch(d){c=m}if(c)a.selectionStart=b,a.selectionEnd=b;else if(D){if(a.type=="textarea")b=a.value.substring(0,b).replace(/(\r\n|\r|\n)/g,"\n").length;c=a.createTextRange();c.collapse(j);c.move("character",b);c.select()}a.style.width="";a.style.width=a.offsetWidth+"px";nq(this);oq(this)};function oq(a){if(a.Zr&&a.zd)a.Df.value=a.R.b(gh(a.Hb.Gb.ob)+pq).value}
function bp(a,b){oq(a);if(a.ae)a.Od=a.um.checked;return new kq(a.Df.value,b,a.ae&&a.Od)}function mq(a){var b=m;a.al||(b=a.R.b(gh(a.Hb.Gb.ob)+pq).value==a.Df.value);a.zd=b}var Io="linkdialog-text",Lo="linkdialog-onweb",Mo="linkdialog-onweb-tab-input",To="linkdialog-email",Uo="linkdialog-email-tab-input",Vo="linkdialog-email-warning",pq="-tab-input",No="tr-link-dialog-target-input",Wo="tr-link-dialog-email-warning",Ro="tr-link-dialog-explanation-text";function qq(){cp.call(this,"link");this.w=new gg(this)}z(qq,cp);q=qq.prototype;q.ae=m;q.Od=m;q.Og=m;q.fd=Sl("LinkDialogPlugin");q.gr=function(a){this.ae=j;this.Od=a};q.Xq=ba("gh");q.bg=function(a,b){this.Uf=b;return qq.c.bg.call(this,a,b)};q.vl=function(a){qq.c.vl.call(this,a);this.Uf=k};q.d=function(){qq.c.d.call(this);this.w.m()};
q.Dt=function(a){if(this.Fg)this.Fg.m(),this.Fg=k;gn(this.Uf,a.Hh,a.qu);if(this.ae){var b=this.Uf.qc;if(a.rq)b.target="_blank";else if(b.target=="_blank")b.target="";this.Od=a.rq}hn(this.Uf);$l(this.g);this.g.ad();this.w.mc()};q.$s=function(){this.Uf.Bh&&(Zc(this.Uf.qc),this.g.ad());this.w.mc()};function rq(){Vl.call(this)}z(rq,Vl);rq.prototype.oh=function(a){return E&&this.g.mg?m:a.keyCode==9&&!a.metaKey&&!a.ctrlKey?this.op(a):m};function sq(){Vl.call(this)}z(sq,rq);sq.prototype.fd=p("ListTabHandler");sq.prototype.op=function(a){var b=Ym(this.g);return qd(b.fb(),"LI")||Ne(b,function(a){return a.tagName=="LI"})?(this.g.execCommand(a.shiftKey?"+outdent":"+indent"),a.preventDefault(),j):m};function tq(){Vl.call(this);this.hv=k}z(tq,Vl);var uq=/^(DIV|TR|LI|BLOCKQUOTE|H\d|PRE|XMP)/;function vq(a){a.push("<br>")}q=tq.prototype;q.fd=p("RemoveFormatting");q.og=function(a){return a=="+removeFormat"};q.bg=function(a){a=="+removeFormat"&&wq(this)};q.oh=function(a,b,c){if(!c)return m;return b==" "?(this.g.execCommand("+removeFormat"),j):m};
function wq(a){Ym(a.g).isCollapsed()||(xq(a,a.hv||u(a.Lq,a)),Wl(a).T().execCommand("RemoveFormat",m,h),Kl&&xq(a,function(a){var c=I("528")?/&nbsp;/g:/\u00A0/g;return a.replace(c," ")}))}function yq(a){return rd(a,function(a){return a.tagName=="TABLE"},j)}
function xq(a,b){var c=Ym(a.g);if(!(c.df()>1)){if(E){var d=sm(c,a.g.b()),f=yq(d.r()),g=yq(d.H());if(f||g){if(f==g)return;var i,l=c;i=f;var c=g,d=new Em(l),n=l.r(),r=l.S(),v=l.H(),l=l.da(),F=Wl(a);if(i){var R=F.createTextNode("");Xc(R,i);n=R;r=0}c&&(R=F.createTextNode(""),Wc(R,c),v=R,l=0);hk(n,r,v,l).select();i=d;if(!f)c=Q(gk(i,j)),a.dn=c;if(!g)c=Q(gk(i,m)),a.il=c;c=Ym(a.g);d=sm(c,a.g.b())}d.select();c=d}n=c;c=Wl(a).f("div");d=n.Mb();if(xl)c.appendChild(d.cloneContents());else if(wl)r=n.le(),r=r.replace(/\r\n/g,
"\r"),v=r.length,n=v-Ha(r).length,r=v-r.replace(/[\s\xa0]+$/,"").length,d.moveStart("character",n),d.moveEnd("character",-r),n=d.htmlText,d.queryCommandValue("formatBlock")=="Formatted"&&(n=d.htmlText.replace(/(\r\n|\r|\n)/g,"<br>")),c.innerHTML=n;n=b(c.innerHTML);F=Ym(a.g);c=Wl(a);r=Wa();d=Wa();n='<span id="'+r+'"></span>'+n+'<span id="'+d+'"></span>';l=Wa();v='<span id="'+l+'"></span>';if(wl){R=F.ec(0).Mb();R.pasteHTML(v);for(var H;(H=R.parentElement())&&jm(H)&&!lm(H);){F=H.nodeName;if(F=="TD"||
F=="TR"||F=="TH")break;Q(H)}R.pasteHTML(n);(l=c.b(l))&&Q(l)}else if(xl){c.T().execCommand("insertImage",m,l);F=RegExp("<[^<]*"+l+"[^>]*>");H=Ym(a.g).fb();if(H.nodeType==3)H=H.parentNode;for(;!F.test(H.innerHTML);)H=H.parentNode;if(E)H.innerHTML=H.innerHTML.replace(F,n);else{H.innerHTML=H.innerHTML.replace(F,v);for(H=l=c.b(l);(H=l.parentNode)&&jm(H)&&!lm(H);){F=H.nodeName;if(F=="TD"||F=="TR"||F=="TH")break;Xc(l,H);Q(H)}H.innerHTML=H.innerHTML.replace(RegExp(v,"i"),n)}}H=c.b(r);c=c.b(d);hk(H,0,c,c.childNodes.length).select();
Q(H);Q(c);if(E&&i){c=Ym(a.g);H=a.g.b();if(a.dn)H.insertBefore(a.dn,H.firstChild),a.dn=k;if(a.il)H.appendChild(a.il),a.il=k;n=i;H=k;d=gk(n,j);n=gk(n,m);d&&n&&(H=hk(d,0,n,0));d=H;H=(f?d:c).r();f=(f?d:c).S();n=(g?d:c).H();g=(g?d:c).da();hk(H,f,n,g).select();i.m()}}}
q.Lq=function(a){var b=document.createElement("div");b.innerHTML=a;for(var a=[],b=[b.childNodes,0],c=[],d=0,f=[],g=0,i=0;i>=0;i-=2){for(var l=m;g>0&&i<=f[g-1];)g--,l=j;l&&vq(a);for(l=m;d>0&&i<=c[d-1];)d--,l=j;l&&vq(a);for(var l=b[i],n=b[i+1];n<l.length;){var r=l[n++],v=r.nodeName;if(ea(k))a.push(k);else{switch(v){case "#text":r=d>0?r.nodeValue:Ea(r.nodeValue);r=La(r);a.push(r);continue;case "P":vq(a);vq(a);break;case "BR":vq(a);continue;case "TABLE":vq(a);f[g++]=i;break;case "PRE":case "XMP":c[d++]=
i;break;case "STYLE":case "SCRIPT":case "SELECT":continue;case "A":if(r.href&&r.href!=""){a.push("<a href='");a.push(r.href);a.push("'>");a.push(this.Lq(r.innerHTML));a.push("</a>");continue}else break;case "IMG":a.push("<img src='");a.push(r.src);a.push("'");r.border=="0"&&a.push(" border='0'");a.push(">");continue;case "TD":r.previousSibling&&a.push(" ");break;case "TR":r.previousSibling&&vq(a);break;case "DIV":var F=r.parentNode;if(F.firstChild==r&&uq.test(F.tagName))break;default:uq.test(v)&&
vq(a)}r=r.childNodes;r.length>0&&(b[i++]=l,b[i++]=n,l=r,n=0)}}}return a.join("").replace(/\xa0|[ \t]+/g," ")};function zq(){Vl.call(this)}z(zq,rq);zq.prototype.fd=p("SpacesTabHandler");zq.prototype.op=function(a){var b=Wl(this),c=Ym(this.g);return!Dm(c)?(a.shiftKey||(Zl(this.g,j),c.isCollapsed()||(b.T().execCommand("delete",m,k),c=Ym(this.g)),b=b.f("span",k,"\u00a0\u00a0 \u00a0"),b=c.insertNode(b,m),this.g.ad(),um(b),$l(this.g)),a.preventDefault(),j):m};function Aq(a){this.Kn=a}z(Aq,xe);function Bq(){this.xu=100;this.Jb=[];this.wf=[];this.Rj=[]}z(Bq,xe);q=Bq.prototype;q.ij=k;q.sn=function(){Cq(this,this.Jb,this.wf)};q.Hm=function(){Cq(this,this.wf,this.Jb)};function Cq(a,b,c){if(b.length){var d=b.pop();c.push(d);a.Rj.push({type:b==a.Jb?"before_undo":"before_redo",Uo:b==a.Jb?d.sn:d.Hm,state:d});a.Rj.length==1&&a.Yf();(b.length==0||c.length==1)&&a.dispatchEvent("state_change")}}
q.Yf=function(){if(!(this.ij||this.Rj.length==0)){var a=this.Rj.shift();if(this.dispatchEvent({type:a.type,state:a.state}))a.state.Kn?(this.ij=T(a.state,"action_completed",this.Os,m,this),a.Uo.call(a.state)):(a.Uo.call(a.state),this.Yf())}};q.Os=function(){je(this.ij);this.ij=k;this.Yf()};function Dq(a){Vl.call(this);a=a||new Bq;this.Rp&&je(this.Rp);this.Sb=a;this.Rp=T(this.Sb,"state_change",this.Fs,m,this);this.Ze={};this.bh={};this.Bp=k;this.bs=u(this.Dv,this)}z(Dq,Vl);Dq.prototype.$a=uf("goog.editor.plugins.UndoRedo");Dq.prototype.wh=k;var Eq=uc({ny:"+undo",Ox:"+redo"});q=Dq.prototype;q.og=function(a){return a in Eq};q.Jq=ba("g");q.yr=function(a){this.disable(a);this.g=k};
q.enable=function(a){if(!this.isEnabled(a)){Zm(a);var b=new gg(this);E||b.h(a,"beforechange",this.Xs);b.h(a,Hm,this.ft);b.h(a,"blur",this.Ys);this.Ze[a.Jd]=b;Fq(this,a)}};q.disable=function(a){Zm(a);var b=this.Ze[a.Jd];b&&(b.m(),delete this.Ze[a.Jd]);this.bh[a.Jd]&&delete this.bh[a.Jd]};q.isEnabled=function(a){return!!this.Ze[a.Jd]};q.d=function(){Dq.c.d.call(this);for(var a in this.Ze)this.Ze[a].m(),delete this.Ze[a];this.g=k;this.Sb&&(this.Sb.m(),delete this.Sb)};q.fd=p("UndoRedo");
q.execCommand=function(a){a=="+undo"?this.Sb.sn():a=="+redo"&&this.Sb.Hm()};q.queryCommandValue=function(a){var b=k;a=="+undo"?b=this.Sb.Jb.length>0:a=="+redo"&&(b=this.Sb.wf.length>0);return b};q.Fs=function(){this.g.dispatchEvent({type:"cvc",qs:["+redo","+undo"]})};
q.Dv=function(a,b,c){var d=this.g;if(d){Zl(d,j);try{d.Ve();d.execCommand("clearlorem",j);d.b().innerHTML=b;c&&c.select();var f=this.g;d.focus();f&&f.Jd!=a.jh&&f.execCommand("updatelorem");var g=this.bh[a.jh];g.Ee=b;g.xr=c}catch(i){nf(this.$a,"Error while restoring undo state",i)}finally{this.wh=a,d.ad(),$l(d)}}};
q.oh=function(a,b,c){if(c){var d;b=="z"?d=a.shiftKey?"+redo":"+undo":b=="y"&&(d="+redo");if(d)return(a=d=="+undo"?this.Sb.Jb[this.Sb.Jb.length-1]:this.Sb.wf[this.Sb.wf.length-1])&&a.jh?this.g.execCommand(d):this.execCommand(d),j}return m};q.Xs=function(a){if(!this.wh){var a=a.target,b=a.Jd;if(this.Bp!=b)this.Bp=b,Fq(this,a)}};q.ft=function(a){this.wh?(a=this.wh,this.wh=k,a.dispatchEvent("action_completed")):Fq(this,a.target)};q.Ys=function(a){(a=a.target)&&Zm(a)};
function Fq(a,b){var c=b.Jd,d,f;b.queryCommandValue("usinglorem")?(d="",f=k):(d=b.b().innerHTML,f=new Gq(b),f=!f.oj?k:f);var g=a.bh[c];if(g){if(g.Ee==d)return;if(d==""||g.Ee==""){var i=b.Wj(8,"",{});if(d==i&&g.Ee==""||g.Ee==i&&d=="")return}g.Im=d;g.yv=f;i=a.Sb;if(i.Jb.length==0||!g.ag(i.Jb[i.Jb.length-1])){i.Jb.push(g);i.Jb.length>i.xu&&i.Jb.shift();var l=i.wf.length;i.wf.length=0;i.dispatchEvent({type:"state_added",state:g});(i.Jb.length==1||l)&&i.dispatchEvent("state_change")}}a.bh[c]=new Hq(c,
d,f,a.bs)}function Hq(a,b,c,d){this.Kn=j;this.jh=a;this.Pq=d;this.Ee=b;this.xr=c}z(Hq,Aq);Hq.prototype.sn=function(){this.Pq(this,this.Ee,this.xr)};Hq.prototype.Hm=function(){this.Pq(this,this.Im,this.yv)};Hq.prototype.ag=function(a){return this.jh==a.jh&&this.Ee==a.Ee&&this.Im==a.Im};
function Gq(a){this.ac=a;var b=a.eb.v(),a=(a=Ym(a))&&a.ng()&&a.v()==b?a:k;if(xl){if(b=a,this.oj=m,b){var c=b.Pd()?b.H():b.r(),d=mk(b);if(c&&d){var a=b.Pd()?b.da():b.S(),c=new $n(c,this.ac.b()),f=nk(b),d=new $n(d,this.ac.b());b.Pd()?(this.O=d,this.en=f,this.M=c,this.jl=a):(this.O=c,this.en=a,this.M=d,this.jl=f);this.oj=j}}}else if(wl&&(b=a,this.oj=m,b&&(a=b.ec(0).Mb(),cd(this.ac.b(),a.parentElement()))))b=this.ac.eb.T().body.createTextRange(),b.moveToElementText(this.ac.b()),d=a.duplicate(),d.collapse(j),
d.setEndPoint("StartToStart",b),this.O=Iq(d),a=a.duplicate(),a.setEndPoint("StartToStart",b),this.M=Iq(a),this.oj=j}Gq.prototype.toString=function(){return xl?"W3C:"+this.O.toString()+"\n"+this.en+":"+this.M.toString()+"\n"+this.jl:"IE:"+this.O+","+this.M};Gq.prototype.select=function(){var a=this.dc(this.ac.b());a&&(wl&&this.ac.b().focus(),(a&&a.addElement?Rk(a):ok(Kk(a),h)).select())};
Gq.prototype.dc=function(a){if(xl){var b=ao(this.O,a),a=ao(this.M,a);return!b||!a?k:hk(b,this.en,a,this.jl).Mb()}b=a.ownerDocument.body.createTextRange();b.moveToElementText(a);b.collapse(j);b.moveEnd("character",this.M);b.moveStart("character",this.O);return b};
function Iq(a){var b=a.duplicate(),c=a.text,d=c.length;b.collapse(j);b.moveEnd("character",d);for(var f,g=10;f=b.compareEndPoints("EndToEnd",a);)if(d-=f,b.moveEnd("character",-f),--g,0==g)break;a=0;for(b=c.indexOf("\n\r");b!=-1;)++a,b=c.indexOf("\n\r",b+1);return d+a};function Jq(){this.io=[]}z(Jq,ip);ha(Jq);function Kq(a,b){var c=a.io[b];if(!c){switch(b){case 0:c=a.n()+"-highlight";break;case 1:c=a.n()+"-checkbox";break;case 2:c=a.n()+"-content"}a.io[b]=c}return c}q=Jq.prototype;q.ub=p("menuitem");q.f=function(a){var b=a.q().f("div",this.cd(a).join(" "),Lq(this,a.Ba,a.q()));Mq(this,a,b,!!(a.Fa&8)||!!(a.Fa&16));return b};q.s=function(a){return a&&a.firstChild};
q.Z=function(a,b){var c=ad(b),d=Kq(this,2);c&&c.className.indexOf(d)!=-1||b.appendChild(Lq(this,b.childNodes,a.q()));dc(b,"goog-option")&&(a.gk(j),this.gk(a,b,j));return Jq.c.Z.call(this,a,b)};q.Ea=function(a,b){var c=this.s(a),d=Nq(this,a)?c.firstChild:k;Jq.c.Ea.call(this,a,b);d&&!Nq(this,a)&&c.insertBefore(d,c.firstChild||k)};function Lq(a,b,c){a=Kq(a,2);return c.f("div",a,b)}q.Vm=function(a,b,c){b&&(cg(b,c?"menuitemradio":this.ub()),Mq(this,a,b,c))};
q.gk=function(a,b,c){b&&(cg(b,c?"menuitemcheckbox":this.ub()),Mq(this,a,b,c))};function Nq(a,b){var c=a.s(b);if(c){var c=c.firstChild,d=Kq(a,1);return!!c&&!!c.className&&c.className.indexOf(d)!=-1}return m}function Mq(a,b,c,d){d!=Nq(a,c)&&(L(c,"goog-option",d),c=a.s(c),d?(a=Kq(a,1),c.insertBefore(b.q().f("div",a),c.firstChild||k)):c.removeChild(c.firstChild))}q.mh=function(a){switch(a){case 2:return Kq(this,0);case 16:case 8:return"goog-option-selected";default:return Jq.c.mh.call(this,a)}};
q.tl=function(a){var b=Kq(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return Jq.c.tl.call(this,a)}};q.n=p("goog-menuitem");function Oq(a,b,c,d){wp.call(this,a,d||Jq.pa(),c);this.ta(b)}z(Oq,wp);q=Oq.prototype;q.qa=function(){var a=this.jm;return a!=k?a:this.af()};q.ta=ba("jm");q.Vm=function(a){Bp(this,8,a);this.P&16&&!a&&Ap(this,m);var b=this.b();b&&this.z.Vm(this,b,a)};q.gk=function(a){Bp(this,16,a);var b=this.b();b&&this.z.gk(this,b,a)};q.af=function(){var a=this.Ba;return ka(a)?(a=ib(a,function(a){return dc(a,"goog-menuitem-accel")?"":pd(a)}).join(""),Fa(a)):Oq.c.af.call(this)};
q.ef=function(a){var b=this.getParent();if(b){var c=b.sq;b.sq=k;if(b=c&&ma(a.clientX))b=new M(a.clientX,a.clientY),b=c==b?j:!c||!b?m:c.x==b.x&&c.y==b.y;if(b)return}Oq.c.ef.call(this,a)};tp("goog-menuitem",function(){return new Oq(k)});function Pq(a,b,c){Oq.call(this,a,b,c);this.Vm(j)}z(Pq,Oq);Pq.prototype.Vd=function(){return this.dispatchEvent("action")};tp("goog-option",function(){return new Pq(k)});function Qq(){}z(Qq,Kp);ha(Qq);Qq.prototype.f=function(a){return a.q().f("div",this.n()+" goog-inline-block","\u00a0")};Qq.prototype.Z=function(a,b){b=Qq.c.Z.call(this,a,b);J(b,"goog-inline-block");return b};Qq.prototype.n=p("goog-toolbar-separator");function Rq(){}z(Rq,Mp);ha(Rq);Rq.prototype.ub=p("toolbar");Rq.prototype.nh=function(a){return a.tagName=="HR"?new Lp(Qq.pa()):Rq.c.nh.call(this,a)};Rq.prototype.n=p("goog-toolbar");Rq.prototype.Yo=function(){return Pp};function Sq(a,b,c){Sp.call(this,b,a||Rq.pa(),c)}z(Sq,Sp);function Tq(){}z(Tq,mp);ha(Tq);q=Tq.prototype;q.f=function(a){var b={"class":"goog-inline-block "+this.cd(a).join(" "),title:a.ed()||""},b=a.q().f("div",b,this.Ki(a.Ba,a.q()));this.fk(a,b);return b};q.ub=p("button");q.fk=function(a,b){a.isEnabled()||this.Kb(b,1,j);a.pe()&&this.Kb(b,8,j);a.Fa&16&&this.Kb(b,16,j);a.mf()&&this.Kb(b,64,j)};q.s=function(a){return a&&a.firstChild.firstChild};
q.Ki=function(a,b){return b.f("div","goog-inline-block "+(this.n()+"-outer-box"),b.f("div","goog-inline-block "+(this.n()+"-inner-box"),a))};q.qb=function(a){return a.tagName=="DIV"};q.Z=function(a,b){Uq(b,j);Uq(b,m);var c;a:{if((c=a.q().Zo(b))&&c.className.indexOf(this.n()+"-outer-box")!=-1)if((c=a.q().Zo(c))&&c.className.indexOf(this.n()+"-inner-box")!=-1){c=j;break a}c=m}c||b.appendChild(this.Ki(b.childNodes,a.q()));J(b,"goog-inline-block",this.n());return Tq.c.Z.call(this,a,b)};q.n=p("goog-custom-button");
function Uq(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==3){var f=c.nodeValue;if(Ga(f)=="")a.removeChild(c);else{c.nodeValue=b?Ha(f):f.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function Vq(){}z(Vq,Tq);ha(Vq);Vq.prototype.n=p("goog-toolbar-button");function Wq(a,b,c){Po.call(this,a,b||Vq.pa(),c)}z(Wq,Po);tp("goog-toolbar-button",function(){return new Wq(k)});function Xq(){}z(Xq,ip);ha(Xq);Xq.prototype.n=p("goog-menuheader");function Yq(a,b,c){wp.call(this,a,c||Xq.pa(),b);Bp(this,1,m);Bp(this,2,m);Bp(this,4,m);Bp(this,32,m);this.P=1}z(Yq,wp);tp("goog-menuheader",function(){return new Yq(k)});function Zq(){}z(Zq,Mp);ha(Zq);q=Zq.prototype;q.ub=p("menu");q.qb=function(a){return a.tagName=="UL"||Zq.c.qb.call(this,a)};q.nh=function(a){return a.tagName=="HR"?new Lp:Zq.c.nh.call(this,a)};q.ge=function(a,b){return cd(a.b(),b)};q.n=p("goog-menu");q.nd=function(a){Zq.c.nd.call(this,a);a=a.b();dg(a,"haspopup","true")};tp("goog-menuseparator",function(){return new Lp});function $q(a,b){Sp.call(this,Rp,b||Zq.pa(),a);this.nc(m)}z($q,Sp);q=$q.prototype;q.si=j;q.Tr=m;q.n=function(){return this.z.n()};q.ge=function(a){if(this.z.ge(this,a))return j;for(var b=0,c=mh(this);b<c;b++){var d=nh(this,b);if(typeof d.ge=="function"&&d.ge(a))return j}return m};q.Xc=function(a){this.Ab(a,j)};q.Nf=function(a,b){this.Ie(a,b,j)};q.dg=function(a){return nh(this,a)};q.Zi=function(){return mh(this)};
q.Sc=function(a,b){var c=this.B();c||W(this.b(),j);var d=this.b(),f=a,g=b,i=Ig(d);if(f instanceof M)g=f.y,f=f.x;Cg(d,d.offsetLeft+(f-i.x),d.offsetTop+(g-i.y));c||W(this.b(),m)};q.t=function(a,b,c){(b=$q.c.t.call(this,a,b))&&a&&this.N&&this.si&&this.Ka().focus();this.sq=a&&c&&ma(c.clientX)?new M(c.clientX,c.clientY):k;return b};q.xl=function(a){this.si&&this.Ka().focus();return $q.c.xl.call(this,a)};q.Yn=function(a){return(this.Tr||a.isEnabled())&&a.B()&&!!(a.Fa&2)};
q.Va=function(a){var b=this.z,c;c=this.q();c=Cc(c.ba,"div",b.n()+"-content",a);for(var d=c.length,f=0;f<d;f++)Op(b,this,c[f]);$q.c.Va.call(this,a)};function ar(){}z(ar,Tq);ha(ar);if(E)ar.prototype.Ea=function(a,b){var c=ar.c.s.call(this,a&&a.firstChild);c&&Yc(this.createCaption(b,O(a)),c)};q=ar.prototype;q.s=function(a){a=ar.c.s.call(this,a&&a.firstChild);if(E&&a&&a.__goog_wrapper_div)a=a.firstChild;return a};q.Z=function(a,b){var c=Bc("*","goog-menu",b)[0];if(c){W(c,m);P(c).body.appendChild(c);var d=new $q;d.Z(c);a.Jg(d)}return ar.c.Z.call(this,a,b)};
q.Ki=function(a,b){return ar.c.Ki.call(this,[this.createCaption(a,b),b.f("div","goog-inline-block "+(this.n()+"-dropdown"),"\u00a0")],b)};q.createCaption=function(a,b){return br(a,this.n(),b)};function br(a,b,c){return c.f("div","goog-inline-block "+(b+"-caption"),a)}q.n=p("goog-menu-button");function cr(){}z(cr,ar);ha(cr);cr.prototype.createCaption=function(a,b){return cr.c.createCaption.call(this,dr(a,b),b)};function dr(a,b){return b.f("div","goog-color-menu-button-indicator",a)}cr.prototype.ta=function(a,b){a&&er(this.s(a),b)};function er(a,b){if(a&&a.firstChild){var c;try{c=wj(b).gj}catch(d){c=k}a.firstChild.style.borderBottomColor=c||(D?"":"transparent")}}cr.prototype.nd=function(a){this.ta(a.b(),a.qa());J(a.b(),"goog-color-menu-button");cr.c.nd.call(this,a)};function fr(){}z(fr,ip);ha(fr);var gr=0;q=fr.prototype;q.f=function(a){var b=this.cd(a);return a.q().f("div",b?b.join(" "):k,hr(this,a.Ba,a.sl(),a.q()))};function hr(a,b,c,d){for(var f=[],g=0,i=0;g<c.height;g++){for(var l=[],n=0;n<c.width;n++){var r=b&&b[i++];l.push(ir(a,r,d))}f.push(d.f("tr",a.n()+"-row",l))}return a.Sk(f,d)}q.Sk=function(a,b){var c=b.f("table",this.n()+"-table",b.f("tbody",this.n()+"-body",a));c.cellSpacing=0;c.cellPadding=0;cg(c,"grid");return c};
function ir(a,b,c){a=c.f("td",{"class":a.n()+"-cell",id:a.n()+"-cell-"+gr++},b);cg(a,"gridcell");return a}q.qb=p(m);q.Z=p(k);
q.Ea=function(a,b){if(a){var c=Bc("tbody",this.n()+"-body",a)[0];if(c){var d=0;A(c.rows,function(a){A(a.cells,function(a){Vc(a);if(b){var c=b[d++];c&&a.appendChild(c)}})});if(d<b.length){for(var f=[],g=O(a),i=c.rows[0].cells.length;d<b.length;){var l=b[d++];f.push(ir(this,l,g));if(f.length==i)l=g.f("tr",this.n()+"-row",f),c.appendChild(l),f.length=0}if(f.length>0){for(;f.length<i;)f.push(ir(this,"",g));l=g.f("tr",this.n()+"-row",f);c.appendChild(l)}}}Wg(a,j,E)}};
function jr(a,b,c){for(b=b.b();c&&c.nodeType==1&&c!=b;){if(c.tagName=="TD"&&dc(c,a.n()+"-cell"))return c.firstChild;c=c.parentNode}return k}function kr(a,b,c,d){if(c)c=c.parentNode,L(c,a.n()+"-cell-hover",d),a=b.b().firstChild,dg(a,"activedescendent",c.id)}q.n=p("goog-palette");function lr(a){this.nf=[];mr(this,a)}z(lr,xe);q=lr.prototype;q.Ae=k;q.Pm=k;q.Zi=function(){return this.nf.length};q.dg=function(a){return this.nf[a]||k};function mr(a,b){b&&(A(b,function(a){this.Gg(a,m)},a),sb(a.nf,b))}q.Xc=function(a){this.Nf(a,this.Zi())};q.Nf=function(a,b){a&&(this.Gg(a,m),tb(this.nf,b,0,a))};q.ke=o("Ae");q.Tc=function(a){if(a!=this.Ae)this.Gg(this.Ae,m),this.Ae=a,this.Gg(a,j);this.dispatchEvent("select")};q.eg=function(){return this.Ae?fb(this.nf,this.Ae):-1};q.ai=function(a){this.Tc(this.dg(a))};
q.clear=function(){var a=this.nf;if(!ka(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0;this.Ae=k};q.d=function(){lr.c.d.call(this);delete this.nf;this.Ae=k};q.Gg=function(a,b){a&&(typeof this.Pm=="function"?this.Pm(a,b):typeof a.$d=="function"&&a.$d(b))};function nr(a,b,c){wp.call(this,a,b||fr.pa(),c)}z(nr,wp);q=nr.prototype;q.Qa=k;q.Ha=-1;q.D=k;q.d=function(){nr.c.d.call(this);if(this.D)this.D.m(),this.D=k;this.Qa=k};q.Hg=function(a){nr.c.Hg.call(this,a);or(this);this.D?(this.D.clear(),mr(this.D,a)):(this.D=new lr(a),this.D.Pm=u(this.Gg,this),this.ca().h(this.D,"select",this.ig));this.Ha=-1};q.af=p(k);
q.ne=function(a){nr.c.ne.call(this,a);var b=jr(this.z,this,a.target);if((!b||!a.relatedTarget||!cd(b,a.relatedTarget))&&b!=pr(this))a=this.Ba,this.pb(a?fb(a,b):-1)};q.rh=function(a){nr.c.rh.call(this,a);var b=jr(this.z,this,a.target);(!b||!a.relatedTarget||!cd(b,a.relatedTarget))&&b==pr(this)&&kr(this.z,this,b,m)};q.jd=function(a){nr.c.jd.call(this,a);if(this.Fc()&&(a=jr(this.z,this,a.target),a!=pr(this))){var b=this.Ba;this.pb(b?fb(b,a):-1)}};
q.Vd=function(){var a=pr(this);return a?(this.Tc(a),this.dispatchEvent("action")):m};
q.hd=function(a){var b=this.Ba,b=b?b.length:0,c=this.Qa.width;if(b==0||!this.isEnabled())return m;if(a.keyCode==13||a.keyCode==32)return this.Vd(a);if(a.keyCode==36)return this.pb(0),j;if(a.keyCode==35)return this.pb(b-1),j;var d=this.Ha<0?this.eg():this.Ha;switch(a.keyCode){case 37:d==-1&&(d=b);if(d>0)return this.pb(d-1),a.preventDefault(),j;break;case 39:if(d<b-1)return this.pb(d+1),a.preventDefault(),j;break;case 38:d==-1&&(d=b+c-1);if(d>=c)return this.pb(d-c),a.preventDefault(),j;break;case 40:if(d==
-1&&(d=-c),d<b-c)return this.pb(d+c),a.preventDefault(),j}return m};q.ig=aa();q.sl=o("Qa");q.hk=function(a,b){this.b()&&e(Error("Component already rendered"));this.Qa=ma(a)?new ic(a,b):a;or(this)};function pr(a){var b=a.Ba;return b&&b[a.Ha]}q.pb=function(a){if(a!=this.Ha)qr(this,this.Ha,m),this.Ha=a,qr(this,a,j)};q.eg=function(){return this.D?this.D.eg():-1};q.ke=function(){return this.D?this.D.ke():k};q.ai=function(a){this.D&&this.D.ai(a)};q.Tc=function(a){this.D&&this.D.Tc(a)};
function qr(a,b,c){if(a.b()){var d=a.Ba;d&&b>=0&&b<d.length&&kr(a.z,a,d[b],c)}}q.Gg=function(a,b){this.b()&&a&&L(a.parentNode,this.z.n()+"-cell-selected",b)};function or(a){var b=a.Ba;if(b)if(a.Qa&&a.Qa.width){if(b=Math.ceil(b.length/a.Qa.width),!ma(a.Qa.height)||a.Qa.height<b)a.Qa.height=b}else b=Math.ceil(Math.sqrt(b.length)),a.Qa=new ic(b,b);else a.Qa=new ic(0,0)};function rr(a,b,c){this.Gi=a||[];nr.call(this,k,b||fr.pa(),c);this.Gi=this.Gi;this.Gj=k;this.Ea(sr(this))}z(rr,nr);rr.prototype.Gj=k;rr.prototype.rl=function(){var a=this.ke();return a?(a=a.style[Za("background-color")]||"",tr(a)):k};rr.prototype.$h=function(a){a=tr(a);if(!this.Gj)this.Gj=ib(this.Gi,function(a){return tr(a)});this.ai(a?fb(this.Gj,a):-1)};
function sr(a){return ib(a.Gi,function(a){var c=this.q().f("div",{"class":this.z.n()+"-colorswatch",style:"background-color:"+a});a.charAt(0)=="#"&&(a=yj(a),a="RGB ("+[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)].join(", ")+")");c.title=a;return c},a)}function tr(a){if(a)try{return wj(a).gj}catch(b){}return k};function ur(){}ur.prototype.na=aa();function vr(a,b){this.element=a;this.Ji=b}z(vr,ur);vr.prototype.na=function(a,b,c){ko(this.element,this.Ji,a,b,h,c)};function wr(a,b,c){vr.call(this,a,b);this.Rr=c}z(wr,vr);wr.prototype.$o=p(5);wr.prototype.na=function(a,b,c,d){var f=ko(this.element,this.Ji,a,b,k,c,10,d);if(f&496){var g=xr(f,this.Ji),b=xr(f,b),f=ko(this.element,g,a,b,k,c,10,d);f&496&&(g=xr(f,g),b=xr(f,b),this.Rr?ko(this.element,g,a,b,k,c,this.$o(),d):ko(this.element,g,a,b,k,c,0,d))}};function xr(a,b){a&48&&(b^=2);a&192&&(b^=1);return b};function yr(a,b,c,d){wr.call(this,a,b,c||d);this.Cv=d}z(yr,wr);yr.prototype.$o=function(){return 65|(this.Cv?32:132)};function zr(a,b,c,d){Po.call(this,a,c||ar.pa(),d);Bp(this,64,j);b&&this.Jg(b);this.Bu=k;this.K=new ye(500);if((ml||nl)&&!I("533.17.9"))this.kj=j}z(zr,Po);q=zr.prototype;q.Hn=j;q.Om=m;q.kj=m;q.Av=m;q.W=function(){zr.c.W.call(this);this.u&&Ar(this,this.u,j);dg(this.b(),"haspopup","true")};q.Wa=function(){zr.c.Wa.call(this);if(this.u){this.ua(m);this.u.Wa();Ar(this,this.u,m);var a=this.u.b();a&&Q(a)}};q.d=function(){zr.c.d.call(this);this.u&&(this.u.m(),delete this.u);delete this.mv;this.K.m()};
q.jd=function(a){zr.c.jd.call(this,a);if(this.Fc()&&(this.ua(!this.mf(),a),this.u))this.u.Rd=this.mf()};q.ef=function(a){zr.c.ef.call(this,a);if(this.u&&!this.Fc())this.u.Rd=m};q.Vd=function(){this.setActive(m);return j};q.gt=function(a){this.u&&this.u.B()&&!this.ge(a.target)&&this.ua(m)};q.ge=function(a){return a&&cd(this.b(),a)||this.u&&this.u.ge(a)||m};
q.hg=function(a){if(a.keyCode==32){if(a.preventDefault(),a.type!="keyup")return m}else if(a.type!="key")return m;if(this.u&&this.u.B()){var b=this.u.hd(a);return a.keyCode==27?(this.ua(m),j):b}return a.keyCode==40||a.keyCode==38||a.keyCode==32?(this.ua(j),j):m};q.qh=function(){this.ua(m)};q.tt=function(){this.Fc()||this.ua(m)};q.Nb=function(a){this.kj||this.ua(m);zr.c.Nb.call(this,a)};function Br(a){a.u||a.Jg(new $q(a.q()));return a.u||k}
q.Jg=function(a){var b=this.u;if(a!=b&&(b&&(this.ua(m),this.N&&Ar(this,b,m),delete this.u),a)){this.u=a;ih(a,this);a.t(m);var c=this.kj;(a.si=c)&&a.nc(j);this.N&&Ar(this,a,j)}return b};q.Xc=function(a){Br(this).Ab(a,j)};q.Nf=function(a,b){Br(this).Ie(a,b,j)};q.dg=function(a){return this.u?nh(this.u,a):k};q.Zi=function(){return this.u?mh(this.u):0};q.t=function(a,b){var c=zr.c.t.call(this,a,b);c&&!this.B()&&this.ua(m);return c};q.Ia=function(a){zr.c.Ia.call(this,a);this.isEnabled()||this.ua(m)};
q.kk=function(){this.ua(j)};
q.ua=function(a,b){zr.c.ua.call(this,a);if(this.u&&!!(this.P&64)==a){if(a)this.u.N||(this.Av?this.u.Pa(this.b().parentNode):this.u.Pa()),this.If=Hg(this.b()),this.Ne=Rg(this.b()),Cr(this),this.u.pb(-1);else if(this.setActive(m),this.u.Rd=m,this.b()&&dg(this.b(),"activedescendant",""),ea(this.Nj)){this.Nj=h;var c=this.u.b();c&&Mg(c,"","")}this.u.t(a,m,b);if(!this.Hd){var c=this.ca(),d=a?c.h:c.Sa;d.call(c,this.q().T(),"mousedown",this.gt,j);this.kj&&d.call(c,this.u,"blur",this.tt);d.call(c,this.K,Ae,
this.av);a?this.K.start():this.K.stop()}}};function Cr(a){if(a.u.N){var b=a.mv||a.b(),b=new yr(b,a.Hn?5:7,!a.Om,a.Om),c=a.u.b();if(!a.u.B())c.style.visibility="hidden",W(c,j);if(!a.Nj&&a.Om)a.Nj=Pg(c);b.na(c,a.Hn?4:6,a.Bu,a.Nj);if(!a.u.B())W(c,m),c.style.visibility="visible"}}
q.av=function(){var a=Rg(this.b()),b=Hg(this.b());if(!(this.Ne==a||(!this.Ne||!a?0:this.Ne.left==a.left&&this.Ne.width==a.width&&this.Ne.top==a.top&&this.Ne.height==a.height))||!(this.If==b||(!this.If||!b?0:this.If.top==b.top&&this.If.right==b.right&&this.If.bottom==b.bottom&&this.If.left==b.left)))this.Ne=a,this.If=b,Cr(this)};function Ar(a,b,c){var d=a.ca(),c=c?d.h:d.Sa;c.call(d,b,"action",a.qh);c.call(d,b,"highlight",a.yl);c.call(d,b,"unhighlight",a.Cl)}
q.yl=function(a){dg(this.b(),"activedescendant",a.target.b().id)};q.Cl=function(){Vp(this.u)||dg(this.b(),"activedescendant","")};tp("goog-menu-button",function(){return new zr(k)});function Dr(a,b,c,d){zr.call(this,a,b,c||cr.pa(),d)}z(Dr,zr);var Er={fx:"#000,#444,#666,#999,#ccc,#eee,#f3f3f3,#fff".split(","),Wx:"#f00,#f90,#ff0,#0f0,#0ff,#00f,#90f,#f0f".split(","),Jx:"#f4cccc,#fce5cd,#fff2cc,#d9ead3,#d0e0e3,#cfe2f3,#d9d2e9,#ead1dc,#ea9999,#f9cb9c,#ffe599,#b6d7a8,#a2c4c9,#9fc5e8,#b4a7d6,#d5a6bd,#e06666,#f6b26b,#ffd966,#93c47d,#76a5af,#6fa8dc,#8e7cc3,#c27ba0,#cc0000,#e69138,#f1c232,#6aa84f,#45818e,#3d85c6,#674ea7,#a64d79,#990000,#b45f06,#bf9000,#38761d,#134f5c,#0b5394,#351c75,#741b47,#660000,#783f04,#7f6000,#274e13,#0c343d,#073763,#20124d,#4c1130".split(",")};
function Fr(a){var b=new $q(a);kc(Er,function(c){c=new rr(c,k,a);c.hk(8);b.Ab(c,j)});return b}q=Dr.prototype;q.rl=function(){return this.qa()};q.$h=function(a){this.ta(a)};q.ta=function(a){for(var b=0,c;c=this.dg(b);b++)typeof c.$h=="function"&&c.$h(a);Dr.c.ta.call(this,a)};q.qh=function(a){typeof a.target.rl=="function"?this.ta(a.target.rl()):a.target.qa()=="none"&&this.ta(k);Dr.c.qh.call(this,a);a.stopPropagation();this.dispatchEvent("action")};
q.ua=function(a,b){a&&this.Zi()==0&&(this.Jg(Fr(this.q())),this.ta(this.qa()));Dr.c.ua.call(this,a,b)};tp("goog-color-menu-button",function(){return new Dr(k)});function Gr(){}z(Gr,ar);ha(Gr);Gr.prototype.n=p("goog-toolbar-menu-button");function Hr(){}z(Hr,Gr);ha(Hr);Hr.prototype.createCaption=function(a,b){return br(dr(a,b),this.n(),b)};Hr.prototype.ta=function(a,b){a&&er(this.s(a),b)};Hr.prototype.nd=function(a){this.ta(a.b(),a.qa());J(a.b(),"goog-toolbar-color-menu-button");Hr.c.nd.call(this,a)};function Ir(a,b,c,d){Dr.call(this,a,b,c||Hr.pa(),d)}z(Ir,Dr);tp("goog-toolbar-color-menu-button",function(){return new Ir(k)});function Jr(a,b,c,d){zr.call(this,a,b,c||Gr.pa(),d)}z(Jr,zr);tp("goog-toolbar-menu-button",function(){return new Jr(k)});function Kr(a,b,c,d){zr.call(this,a,b,c,d);Lr(this,a);this.Sj="listbox"}z(Kr,zr);q=Kr.prototype;q.D=k;q.Zk=k;q.W=function(){Kr.c.W.call(this);Mr(this);Nr(this);dg(this.b(),"haspopup","false")};q.Va=function(a){Kr.c.Va.call(this,a);(a=this.af())?Lr(this,a):this.ai(0)};q.d=function(){Kr.c.d.call(this);if(this.D)this.D.m(),this.D=k;this.Zk=k};q.qh=function(a){this.Tc(a.target);Kr.c.qh.call(this,a);a.stopPropagation();this.dispatchEvent("action")};
q.ig=function(){var a=this.ke();Kr.c.ta.call(this,a&&a.qa());Mr(this)};q.Jg=function(a){var b=Kr.c.Jg.call(this,a);a!=b&&(this.D&&this.D.clear(),a&&(this.D?lh(a,function(a){Or(a);this.D.Xc(a)},this):Pr(this,a)));return b};function Lr(a,b){a.Zk=b;Mr(a)}q.Xc=function(a){Or(a);Kr.c.Xc.call(this,a);this.D?this.D.Xc(a):Pr(this,Br(this))};q.Nf=function(a,b){Or(a);Kr.c.Nf.call(this,a,b);this.D?this.D.Nf(a,b):Pr(this,Br(this))};q.Tc=function(a){this.D&&this.D.Tc(a)};q.ai=function(a){this.D&&this.Tc(this.D.dg(a))};
q.ta=function(a){if(ea(a)&&this.D)for(var b=0,c;c=this.D.dg(b);b++)if(c&&typeof c.qa=="function"&&c.qa()==a){this.Tc(c);return}this.Tc(k)};q.ke=function(){return this.D?this.D.ke():k};q.eg=function(){return this.D?this.D.eg():-1};function Pr(a,b){a.D=new lr;b&&lh(b,function(a){Or(a);this.D.Xc(a)},a);Nr(a)}function Nr(a){a.D&&a.ca().h(a.D,"select",a.ig)}function Mr(a){var b=a.ke();a.Ea(b?b.af():a.Zk)}function Or(a){a.Sj=a instanceof Oq?"option":"separator"}
q.ua=function(a,b){Kr.c.ua.call(this,a,b);this.mf()&&Br(this).pb(this.eg())};tp("goog-select",function(){return new Kr(k)});function Qr(a,b,c,d){Kr.call(this,a,b,c||Gr.pa(),d)}z(Qr,Kr);tp("goog-toolbar-select",function(){return new Qr(k)});function Rr(a){var b=a.indexOf(",");a:{a=(b!=-1?a.substring(0,b):a).toLowerCase();for(b=0;b<2;b++){var c="\"'".charAt(b);if(a.charAt(0)==c&&a.charAt(a.length-1)==c){a=a.substring(1,a.length-1);break a}}}return a}function Sr(a,b){A(b,function(b){var d=b.value,f=Rr(d),b=new Pq(b.caption,d,a.q());hh(b,f);a.Xc(b);b.s().style.fontFamily=d})}function Tr(a){A(Ur,function(b){var c=b.value,b=new Pq(b.caption,c,a.q());a.Xc(b);b=b.s();b.style.fontSize=(Vr[c]||10)+"px";b.firstChild.style.height="1.1em"})}
var Vr=[10,10,13,16,18,24,32,48];function Wr(a){A(Xr,function(b){var c=b.caption,b=b.V,d=a.q(),c=new Pq(d.f("DIV",k,c),b,d);hh(c,b);a.Xc(c)})}function Yr(a,b,c,d,f,g){c=new Wq(Zr(c,d,g),f,g);hh(c,a);c.Uc(b);return c}function $r(a,b,c,d,f,g){a=Yr(a,b,c,d,f,g);Bp(a,16,j);return a}function as(a,b,c,d,f,g){f=new Qr(k,k,f,g);d&&A(d.split(/\s+/),f.Mf,f);f.Mf("goog-toolbar-select");Lr(f,c);hh(f,a);f.Uc(b);return f}function bs(a,b,c,d,f,g){c=new Ir(Zr(c,d,g),k,f,g);hh(c,a);c.Uc(b);return c}
function Zr(a,b,c){if((!a||a=="")&&E&&!I("1.9a"))a="\u00a0";return(c||O()).f("DIV",b?{"class":b}:k,a)};var cs={},ds=x("Normal"),es=x("Normal / serif"),fs=[{caption:ds,value:"arial,sans-serif"},{caption:es,value:"times new roman,serif"},{caption:"Courier New",value:"courier new,monospace"},{caption:"Georgia",value:"georgia,serif"},{caption:"Trebuchet",value:"trebuchet ms,sans-serif"},{caption:"Verdana",value:"verdana,sans-serif"}],gs={ja:[{caption:"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af",value:"ms pgothic,sans-serif"},{caption:"\uff2d\uff33 \uff30\u660e\u671d",value:"ms pmincho,serif"},{caption:"\uff2d\uff33 \u30b4\u30b7\u30c3\u30af",
value:"ms gothic,monospace"}],ko:[{caption:"\uad74\ub9bc",value:"gulim,sans-serif"},{caption:"\ubc14\ud0d5",value:"batang,serif"},{caption:"\uad74\ub9bc\uccb4",value:"gulimche,monospace"}],"zh-tw":[{caption:"\u65b0\u7d30\u660e\u9ad4",value:"pmingliu,serif"},{caption:"\u7d30\u660e\u9ad4",value:"mingliu,serif"}],"zh-cn":[{caption:"\u5b8b\u4f53",value:"simsun,serif"},{caption:"\u9ed1\u4f53",value:"simhei,sans-serif"},{caption:"MS Song",value:"ms song,monospace"}]};
function hs(a){var b="en-us".replace(/_/,"-").toLowerCase(),c=[];b in gs&&(c=gs[b]);c.length&&Sr(a,c);Sr(a,fs)}var is=x("Small"),js=x("Normal"),ks=x("Large"),ls=x("Huge"),Ur=[{caption:is,value:1},{caption:js,value:2},{caption:ks,value:4},{caption:ls,value:6}],ms=x("Heading"),ns=x("Subheading"),os=x("Minor heading"),ps=x("Normal"),Xr=[{caption:ms,V:"H2"},{caption:ns,V:"H3"},{caption:os,V:"H4"},{caption:ps,V:"P"}];
function qs(a){for(var b="+bold,+italic,+underline,+link,+undo,+redo,+insertUnorderedList,+insertOrderedList,+indent,+outdent,+justifyLeft,+justifyCenter,+justifyRight,+foreColor,+removeFormat".split(","),c=O(a),d=[],f=0,g;g=b[f];f++){if(t(g)){var i=h;if(g=rs[g]){var i=g.factory||$r,l=g.V,n=g.ga,r=g.caption,v=g.ea,F=c||O(),i=i(l,n,r,v,k,F);if(g.sa)i.sa=j}g=i}g&&d.push(g)}b=O(a);b=new Sq(Rq.pa(),Pp,b);c=Jg(a);b.Be(c);b.nc(m);for(f=0;g=d[f];f++)Bp(g,32,m),g.Be(c),b.Ab(g,j);b.Pa(a);return b}
function ss(a,b,c,d,f,g){var i=Yr(a,b,c,d,f,g);i.Fe=function(a){i.Ia(a)};return i}function ts(a,b){var c=b;try{if(D)var d="000000"+c.toString(16),f=d.substr(d.length-6,6),c=(new tk("#",f.substring(4,6),f.substring(2,4),f.substring(0,2))).toString();c!=a.qa()&&a.ta(c)}catch(g){}}
var us=x("Format"),vs=x("Format"),ws=x("Undo"),xs=x("Redo"),ys=x("Font"),zs=x("Font size"),As=x("Text color"),Bs=x("Bold"),Cs=x("Italic"),Ds=x("Underline"),Es=x("Text background color"),Fs=x("Add or remove link"),Gs=x("Numbered list"),Hs=x("Bullet list"),Is=x("Decrease indent"),Js=x("Increase indent"),Ks=x("Align left"),Ls=x("Align center"),Ms=x("Align right"),Ns=x("Justify"),Os=x("Remove formatting"),Ps=x("Insert image"),Qs=x("Strikethrough"),Rs=x("Left-to-right"),Ss=x("Right-to-left"),Ts=x("Quote"),
Us=x("Edit HTML source"),Vs=x("Subscript"),Ws=x("Superscript"),Xs=x("Edit HTML"),rs={};
cs.Bn=[{V:"+undo",ga:ws,ea:"tr-icon tr-undo",factory:ss,sa:j},{V:"+redo",ga:xs,ea:"tr-icon tr-redo",factory:ss,sa:j},{V:"+fontName",ga:ys,ea:"tr-fontName",factory:function(a,b,c,d,f,g){var i=as(a,b,c,d,f,g);hs(i);Lr(i,ds);J(Br(i).s(),"goog-menu-noaccel");i.Fe=function(a){var b=k;a&&a.length>0&&(b=jh(Br(i),Rr(a)));b!=i.ke()&&i.Tc(b)};return i},sa:j},{V:"+fontSize",ga:zs,ea:"tr-fontSize",factory:function(a,b,c,d,f,g){var i=as(a,b,c,d,f,g);Tr(i);Lr(i,js);J(Br(i).s(),"goog-menu-noaccel");i.Fe=function(a){var b;
if(b=t(a))b=a.match($g),b=(b&&b[0]||k)=="px";b&&(a=gb(Vr,parseInt(a,10)));a=a>0?a:k;a!=i.qa()&&i.ta(a)};return i},sa:j},{V:"+bold",ga:Bs,ea:"tr-icon tr-bold",sa:j},{V:"+italic",ga:Cs,ea:"tr-icon tr-italic",sa:j},{V:"+underline",ga:Ds,ea:"tr-icon tr-underline",sa:j},{V:"+foreColor",ga:As,ea:"tr-icon tr-foreColor",factory:function(a,b,c,d,f,g){a=bs(a,b,c,d,f,g);a.$h("#000");a.Fe=ua(ts,a);return a},sa:j},{V:"+backColor",ga:Es,ea:"tr-icon tr-backColor",factory:function(a,b,c,d,f,g){a=bs(a,b,c,d,f,g);
a.$h("#FFF");a.Fe=ua(ts,a);return a},sa:j},{V:"+link",ga:Fs,caption:mn,ea:"tr-link",sa:j},{V:"+insertOrderedList",ga:Gs,ea:"tr-icon tr-insertOrderedList",sa:j},{V:"+insertUnorderedList",ga:Hs,ea:"tr-icon tr-insertUnorderedList",sa:j},{V:"+outdent",ga:Is,ea:"tr-icon tr-outdent",factory:Yr},{V:"+indent",ga:Js,ea:"tr-icon tr-indent",factory:Yr},{V:"+justifyLeft",ga:Ks,ea:"tr-icon tr-justifyLeft",sa:j},{V:"+justifyCenter",ga:Ls,ea:"tr-icon tr-justifyCenter",sa:j},{V:"+justifyRight",ga:Ms,ea:"tr-icon tr-justifyRight",
sa:j},{V:"+justifyFull",ga:Ns,ea:"tr-icon tr-justifyFull",sa:j},{V:"+removeFormat",ga:Os,ea:"tr-icon tr-removeFormat",factory:Yr},{V:"image",ga:Ps,ea:"tr-icon tr-image",factory:Yr},{V:"+strikeThrough",ga:Qs,ea:"tr-icon tr-strikeThrough",sa:j},{V:"+subscript",ga:Vs,ea:"tr-icon tr-subscript",sa:j},{V:"+superscript",ga:Ws,ea:"tr-icon tr-superscript",sa:j},{V:"ltr",ga:Rs,ea:"tr-icon tr-ltr",sa:j},{V:"rtl",ga:Ss,ea:"tr-icon tr-rtl",factory:function(a,b,c,d,f,g){var i=$r(a,b,c,d,f,g);i.Fe=function(a){a=
!!a;L(i.getParent().b(),"tr-rtl-mode",a);Ap(i,a)};return i},sa:j},{V:"+BLOCKQUOTE",ga:Ts,ea:"tr-icon tr-BLOCKQUOTE",sa:j},{V:"+formatBlock",ga:us,caption:vs,ea:"tr-formatBlock",factory:function(a,b,c,d,f,g){var i=as(a,b,c,d,f,g);Wr(i);Lr(i,ps);J(Br(i).s(),"goog-menu-noaccel");i.Fe=function(a){a=a&&a.length>0?a:k;a!=i.qa()&&i.ta(a)};return i},sa:j},{V:"editHtml",ga:Us,caption:Xs,ea:"tr-editHtml",factory:Yr}];for(var Ys=0,Zs;Zs=cs.Bn[Ys];Ys++)rs[Zs.V]=Zs;delete cs.Bn;function $s(a,b){this.fa=new gg(this);this.ac=a;this.xb=b;this.Dm=[];lh(this.xb,function(a){a.sa&&this.Dm.push(at(gh(a)))},this);this.xb.nc(m);this.fa.h(this.ac,"cvc",this.pw).h(this.xb,"action",this.Vs)}z($s,xe);function at(a){return a}function bt(a){return a}q=$s.prototype;q.ca=o("fa");q.B=function(){return this.xb.B()};q.t=function(a){this.xb.t(a)};q.isEnabled=function(){return this.xb.isEnabled()};q.Ia=function(a){this.xb.Ia(a)};q.blur=function(){this.xb.Nb(k)};
q.d=function(){$s.c.d.call(this);this.fa&&(this.fa.m(),delete this.fa);this.xb&&(this.xb.m(),delete this.xb);delete this.ac;delete this.Dm};q.pw=function(a){if(this.xb.isEnabled()&&this.dispatchEvent("change")){var b;try{b=this.ac.queryCommandValue(a.qs||this.Dm)}catch(c){b={}}var a=b,d;for(d in a)if(b=jh(this.xb,d)){var f=a[d];b.Fe?b.Fe(f):Ap(b,!!f)}}};q.Vs=function(a){this.ac.execCommand(bt(gh(a.target)),a.target.qa())};y("sop.blog.admin",function(){this.zm=new yh(h,j);var a=new Fh;a.set("done","Done");Jh(this.zm,a);this.kb=new Fm("blog-post");Nm(this.kb,new An);Nm(this.kb,new tq);Nm(this.kb,new Dq);Nm(this.kb,new sq);Nm(this.kb,new zq);Nm(this.kb,new bo);Nm(this.kb,new ho);Nm(this.kb,new qq);Nm(this.kb,new Bo);a=Y("toolbar");this.xb=qs(a);this.Uy=new $s(this.kb,this.xb);T(this.kb,Hm,function(){var a=bn(this.kb).replace(/<p><\/p>/g,"");Y("post-html").value=a},h,this);cn(this.kb);T(Y("post-html"),"change",function(){this.kb.Tm(j,
Y("post-html").value)},h,this);T(Y("preview"),S,function(){var a=Y("blog-title").value,c=Y("post-html").value;this.zm.Ea('<div class="blog-preview"><div class="centered"><h3>'+a+'</h3></div><div class="blog blog-post">'+c+"</div></div>");this.zm.t(j)},h,this);T(Y("upload-form"),"submit",function(){K(Y("file-progress-img"),"hidden");Y("upload-button").disabled=j});T(Y("upload-iframe"),"load",function(){Y("file-selector").value="";J(Y("file-progress-img"),"hidden");Y("upload-button").disabled=m;var a=
Y("upload-iframe").contentWindow.document.body.innerHTML;if(a.indexOf("Error")!=-1)return alert(a);a='\n<p class="centered"><img src="http://www.shoesofprey.com/blog/pic/'+a+'.jpg" alt=""/></p><br/>';Y("post-html").value+=a;this.kb.Tm(j,bn(this.kb).replace(/<p><\/p>/g,"")+a)},h,this)});function ct(a){return 1-Math.pow(1-a,3)};function dt(a,b,c,d,f){function g(a){if(a)a.tabIndex=0,T(a,S,i.Uu,m,i),T(a,Fd,i.Vu,m,i)}this.k=f||O();this.je=this.k.b(a)||k;this.eh=this.k.b(d||k);this.Si=(this.$l=na(b)?b:k)||!b?k:this.k.b(b);this.tb=c==j;var i=this;g(this.je);g(this.eh);this.Zd(this.tb)}z(dt,xe);q=dt.prototype;q.d=function(){this.je&&le(this.je);this.eh&&le(this.eh);dt.c.d.call(this)};q.s=o("Si");q.expand=function(){this.Zd(j)};q.collapse=function(){this.Zd(m)};q.toggle=function(){this.Zd(!this.tb)};
q.Zd=function(a){if(this.Si)W(this.Si,a);else if(a&&this.$l)this.Si=this.$l();this.eh?(W(this.je,!a),W(this.eh,a)):et(this,a);this.tb=a;this.dispatchEvent(new ft("toggle",this,this.tb))};function et(a,b){a.je&&(L(a.je,"goog-zippy-expanded",b),L(a.je,"goog-zippy-collapsed",!b),dg(a.je,"expanded",b))}q.Vu=function(a){if(a.keyCode==13||a.keyCode==32)this.toggle(),this.dispatchEvent(new Cd("action",this)),a.preventDefault(),a.stopPropagation()};
q.Uu=function(){this.toggle();this.dispatchEvent(new Cd("action",this))};function ft(a,b,c){Cd.call(this,a,b);this.Lo=c}z(ft,Cd);function gt(a,b,c){var d=Oc("div",{style:"overflow:hidden"}),b=Ac(b);b.parentNode.replaceChild(d,b);d.appendChild(b);this.Ui=d;this.Yc=k;dt.call(this,a,b,c);a=this.tb;this.Ui.style.display=a?"":"none";et(this,a)}z(gt,dt);q=gt.prototype;q.Wr=500;q.Vr=ct;
q.Zd=function(a){if(this.tb!=a||this.Yc){if(this.Ui.style.display=="none")this.Ui.style.display="";var b=this.s().offsetHeight,c=0;this.Yc?(a=this.tb,le(this.Yc),this.Yc.stop(m),c=parseInt(this.s().style.marginTop,10),c=b-Math.abs(c)):c=a?0:b;et(this,a);this.Yc=new Kj([0,c],[0,a?b:0],this.Wr,this.Vr);T(this.Yc,["begin","animate","end"],this.Nu,m,this);T(this.Yc,"end",u(this.Ou,this,a));this.Yc.play(m)}};q.Nu=function(a){var b=this.s();b.style.marginTop=a.y-b.offsetHeight+"px"};
q.Ou=function(a){if(a)this.s().style.marginTop="0";le(this.Yc);this.tb=a;this.Yc=k;if(!a)this.Ui.style.display="none";this.dispatchEvent(new ft("toggle",this,a))};y("sop.contact",function(){this.vv=Y("questions-sizing");this.tv=Y("questions-returns");this.uv=Y("questions-shipping");this.sv=Y("questions-email-us");this.ww=this.yw=this.xw=this.zw=k;this.zw=new gt(this.vv,Y("questions-sizing-content"),m);this.xw=new gt(this.tv,Y("questions-returns-content"),m);this.yw=new gt(this.uv,Y("questions-shipping-content"),m);this.ww=new gt(this.sv,Y("contact-form"),m)});function ht(a,b,c,d){this.Yt=a;this.te=b;this.zv=c;this.pk=d||k;it(this);this.pk===k||jt(this);this.tr();T(Y("addressesEqual"),S,this.tr,h,this);T(Y("continue"),S,function(){Sg(Y("continue"),0.5);wg(Y("continue"),"cursor","default");W(Y("checkout-loading"),j);T(Y("continue"),S,function(a){a.preventDefault();a.stopPropagation()})})}
function kt(a){var b=Y("email").value;V("/checkout",k,"POST",U({mode:"cookie"}));a=Oc("iframe",{src:"/members/login-iframe?lang="+a.te+"&checkout=true&email="+b,width:"360",height:"230",frameborder:0,scrolling:"no"});a=Oc("div",k,a);b=new yh("modal-dialog",j);b.Ea(a.innerHTML);Jh(b,k);b.t(j)}
function it(a){Q(Y("update"));A(Z("select","change-qty"),function(a){T(a,"change",function(a){var b=a.target.id;V("/checkout",function(a){a=bg(a.target);Y(b+"-total").innerHTML=a.line_total;Y("grand-total").innerHTML=a.total},"POST",U({mode:"update",key:b,qty:a.target.options[a.target.selectedIndex].value}))})});A(Z("img","remove-item"),function(a){T(a,S,function(a){a.preventDefault();a.stopPropagation();if(confirm(this.zv)){var b=a.target.id.replace("remove-","");V("/checkout",u(function(a){a=bg(a.target);
a.total==0?document.location=this.Yt+"/cart":(Q(Y("line-"+b)),Y("grand-total").innerHTML=a.total,Y("shipping").innerHTML=a.shipping,Y("credits").innerHTML="-"+a.credits)},this),"POST",U({mode:"remove",line:b,currency:j}))}},h,this)},a);Y("login-checkout")&&T(Y("login-checkout"),S,function(a){a.preventDefault();a.stopPropagation();kt(this)},h,a)}
ht.prototype.du=function(){T(Y("email"),"blur",function(){if(!Ba(Y("email").value)){W(Y("loading-img"),j);W(Y("email-msg"),j);W(Y("account-found"),m);var a=u(function(a){W(Y("loading-img"),m);W(Y("email-msg"),m);ag(a.target)=="account exists"&&(kt(this),W(Y("account-found"),j))},this);V("/checkout",a,"POST",U({mode:"check",email:Y("email").value}))}},h,this)};
function jt(a){function b(){A(g,function(a){Q(a)});A(d,function(a){J(a,"hidden")});A(c,function(a){K(a,"hidden")})}var c=Z("select","country"),d=Z("span","static_country"),f=Z("span","edit-country-link"),g=Z("span","edit-country-container"),i=a.pk;kb(c,function(a){if(this.pk!=lt(a))return b.call(),m;mt(a,this.pk);J(a,"hidden");i=a.options[a.selectedIndex].innerHTML;return j},a);A(d,function(a){a.innerHTML=i},a);A(f,function(a){T(a,S,b)})}
ht.prototype.tr=function(){L(Y("billing-lines"),"hidden",Y("addressesEqual").checked);L(Y("billing-city"),"hidden",Y("addressesEqual").checked);L(Y("billing-country"),"hidden",Y("addressesEqual").checked)};y("sop.checkout.singlepage",ht);ht.prototype.initCheck=ht.prototype.du;y("sop.checkout.payment",function(){K(Y("paypal-transfer"),"hidden");Be(function(){Y("paypal-form").submit()},300);Be(function(){K(Y("retry"),"hidden")},1E4)});function nt(a){this.ba=a}var ot=/\s*;\s*/;q=nt.prototype;q.isEnabled=function(){var a=navigator.cookieEnabled;if(a&&G){var b="COOKIES_TEST_"+va();tj.set(b,"1");if(!this.get(b))return m;this.remove(b)}return a};
q.set=function(a,b,c,d,f,g){/[;=\s]/.test(a)&&e(Error('Invalid cookie name "'+a+'"'));/[;\r\n]/.test(b)&&e(Error('Invalid cookie value "'+b+'"'));ja(c)||(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(va()+c*1E3)).toUTCString();this.ba.cookie=a+"="+b+f+d+c+g};q.get=function(a,b){for(var c=a+"=",d=(this.ba.cookie||"").split(ot),f=0,g;g=d[f];f++)if(g.indexOf(c)==0)return g.substr(c.length);return b};
q.remove=function(a,b,c){var d=this.sb(a);this.set(a,"",0,b,c);return d};q.dd=function(){return pt(this).keys};q.Za=function(){return pt(this).Cr};q.Hc=function(){return!this.ba.cookie};q.xa=function(){return!this.ba.cookie?0:(this.ba.cookie||"").split(ot).length};q.sb=function(a){return ja(this.get(a))};q.Ii=function(a){for(var b=pt(this).Cr,c=0;c<b.length;c++)if(b[c]==a)return j;return m};q.clear=function(){for(var a=pt(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
function pt(a){for(var a=(a.ba.cookie||"").split(ot),b=[],c=[],d,f,g=0;f=a[g];g++)d=f.indexOf("="),d==-1?(b.push(""),c.push(f)):(b.push(f.substring(0,d)),c.push(f.substring(d+1)));return{keys:b,Cr:c}}var tj=new nt(document);tj.vx=3950;var qt,rt;
(function(){function a(a){a=a.match(/[\d]+/g);a.length=3;return a.join(".")}var b=m,c="";if(navigator.plugins&&navigator.plugins.length){var d=navigator.plugins["Shockwave Flash"];d&&(b=j,d.description&&(c=a(d.description)));navigator.plugins["Shockwave Flash 2.0"]&&(b=j,c="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length)(b=(d=navigator.mimeTypes["application/x-shockwave-flash"])&&d.enabledPlugin)&&(c=a(d.enabledPlugin.description));else try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),b=
j,c=a(d.GetVariable("$version"))}catch(f){try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b=j,c="6.0.21"}catch(g){try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),b=j,c=a(d.GetVariable("$version"))}catch(i){}}}qt=b;rt=c})();function st(a,b){dh.call(this,b);this.Ps=a;this.w=new gg(this);this.Xi=new Pe}z(st,dh);q=st.prototype;q.ya=uf("goog.ui.media.FlashObject");q.Fr="window";q.Un="#000000";q.In="sameDomain";q.hk=function(a,b){this.xn=t(a)?a:Math.round(a)+"px";this.Gl=t(b)?b:Math.round(b)+"px";this.b()&&Mg(tt(this),this.xn,this.Gl);return this};
q.W=function(){st.c.W.call(this);var a=this.b(),b;b=D?'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="%s" name="%s" class="%s"><param name="movie" value="%s"/><param name="quality" value="high"/><param name="FlashVars" value="%s"/><param name="bgcolor" value="%s"/><param name="AllowScriptAccess" value="%s"/><param name="allowFullScreen" value="true"/><param name="SeamlessTabbing" value="false"/>%s</object>':'<embed quality="high" id="%s" name="%s" class="%s" src="%s" FlashVars="%s" bgcolor="%s" AllowScriptAccess="%s" allowFullScreen="true" SeamlessTabbing="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" %s></embed>';
for(var c=D?'<param name="wmode" value="%s"/>':"wmode=%s",c=za(c,this.Fr),d=this.Xi.dd(),f=this.Xi.Za(),g=[],i=0;i<d.length;i++){var l=Ja(d[i]),n=Ja(f[i]);g.push(l+"="+n)}b=za(b,gh(this),gh(this),"goog-ui-media-flash-object",La(this.Ps),La(g.join("&")),this.Un,this.In,c);a.innerHTML=b;this.xn&&this.Gl&&this.hk(this.xn,this.Gl);this.w.h(this.b(),oc(Hd),Dd)};
q.f=function(){this.Nq!=k&&!(Ua(rt,this.Nq)>=0)&&(of(this.ya,"Required flash version not found:"+this.Nq),e(Error("Method not supported")));var a=this.q().createElement("div");a.className="goog-ui-media-flash";this.j=a};function tt(a){return a.b()?a.b().firstChild:k}q.d=function(){st.c.d.call(this);this.Xi=k;this.w.m();this.w=k};q.lf=function(){return!this.N||!this.b()?m:tt(this).readyState&&tt(this).readyState==4?j:tt(this).PercentLoaded&&tt(this).PercentLoaded()==100?j:m};function ut(a){this.Ge=a;this.vq={}}ut.prototype.Rv=function(a,b){this.vq[a]=b};ut.prototype.init=function(){if(!qt||!(Ua(rt,"9")>=0))Y("flash-version").innerHTML=rt,K(Y("flash-required"),"hidden");else if(!Gb||!vt(this)){var a=(new st("/swf/"+this.Ge+"/loading.swf?v="+this.Ge)).hk(750,450);a.Xi.Ug(this.vq);a.Un="#ffffff";a.In="always";a.Fr="opaque";a.Pa(Ac(Y("shoe-designer")))}};
function vt(a){if(tj.get("dimiss-linux-warning"))return m;var b=Y("linux-warning");K(b,"hidden");T(Y("dismiss-linux"),S,function(){J(b,"hidden");tj.set("dimiss-linux-warning","true",31556926);return m},h,a);return j}y("sop.designer",ut);ut.prototype.setParam=ut.prototype.Rv;ut.prototype.init=ut.prototype.init;var wt={Yw:["BC","AD"],Xw:["Before Christ","Anno Domini"],Cx:"J,F,M,A,M,J,J,A,S,O,N,D".split(","),Yx:"J,F,M,A,M,J,J,A,S,O,N,D".split(","),pi:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),Xx:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),Ux:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),$x:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),py:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
by:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),Lr:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),ay:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),Dx:"S,M,T,W,T,F,S".split(","),Zx:"S,M,T,W,T,F,S".split(","),Vx:["Q1","Q2","Q3","Q4"],Mx:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Aw:["AM","PM"],Ir:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],gy:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Cn:6,En:[5,6],Dn:2};function xt(a,b){switch(b){case 1:return a%4==0&&(a%100!=0||a%400==0)?29:28;case 5:case 8:case 10:case 3:return 30}return 31}function yt(a,b,c,d,f,g){t(a)?(this.pc=a==zt?b:0,this.jc=a==At?b:0,this.$b=a==Bt?b:0,this.Cc=a==Ct?b:0,this.Kc=a==Dt?b:0,this.Oc=a==Et?b:0):(this.pc=a||0,this.jc=b||0,this.$b=c||0,this.Cc=d||0,this.Kc=f||0,this.Oc=g||0)}
yt.prototype.on=function(a){var b=Math.min(this.pc,this.jc,this.$b,this.Cc,this.Kc,this.Oc),c=Math.max(this.pc,this.jc,this.$b,this.Cc,this.Kc,this.Oc);if(b<0&&c>0)return k;if(!a&&b==0&&c==0)return"PT0S";c=[];b<0&&c.push("-");c.push("P");(this.pc||a)&&c.push(Math.abs(this.pc)+"Y");(this.jc||a)&&c.push(Math.abs(this.jc)+"M");(this.$b||a)&&c.push(Math.abs(this.$b)+"D");if(this.Cc||this.Kc||this.Oc||a)c.push("T"),(this.Cc||a)&&c.push(Math.abs(this.Cc)+"H"),(this.Kc||a)&&c.push(Math.abs(this.Kc)+"M"),
(this.Oc||a)&&c.push(Math.abs(this.Oc)+"S");return c.join("")};yt.prototype.ag=function(a){return a.pc==this.pc&&a.jc==this.jc&&a.$b==this.$b&&a.Cc==this.Cc&&a.Kc==this.Kc&&a.Oc==this.Oc};yt.prototype.U=function(){return new yt(this.pc,this.jc,this.$b,this.Cc,this.Kc,this.Oc)};var zt="y",At="m",Bt="d",Ct="h",Dt="n",Et="s";yt.prototype.add=function(a){this.pc+=a.pc;this.jc+=a.jc;this.$b+=a.$b;this.Cc+=a.Cc;this.Kc+=a.Kc;this.Oc+=a.Oc};
function Ft(a,b,c){ma(a)?(this.F=new Date(a,b||0,c||1),Gt(this,c||1)):oa(a)?(this.F=new Date(a.getFullYear(),a.getMonth(),a.getDate()),Gt(this,a.getDate())):(this.F=new Date,this.F.setHours(0),this.F.setMinutes(0),this.F.setSeconds(0),this.F.setMilliseconds(0))}q=Ft.prototype;q.$e=wt.Cn;q.Wi=wt.Dn;q.U=function(){var a=new Ft(this.F);a.$e=this.$e;a.Wi=this.Wi;return a};q.getFullYear=function(){return this.F.getFullYear()};q.getYear=function(){return this.getFullYear()};q.getMonth=function(){return this.F.getMonth()};
q.getDate=function(){return this.F.getDate()};q.getTime=function(){return this.F.getTime()};q.getDay=function(){return this.F.getDay()};q.getUTCHours=function(){return this.F.getUTCHours()};q.getTimezoneOffset=function(){return this.F.getTimezoneOffset()};q.set=function(a){this.F=new Date(a.getFullYear(),a.getMonth(),a.getDate())};q.setFullYear=function(a){this.F.setFullYear(a)};q.setMonth=function(a){this.F.setMonth(a)};q.setDate=function(a){this.F.setDate(a)};
q.add=function(a){if(a.pc||a.jc){var b=this.getMonth()+a.jc+a.pc*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d=Math.min(xt(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.$b&&(b=new Date(this.getYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+a.$b*864E5),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Gt(this,a.getDate()))};
q.on=function(a,b){var c=[this.getFullYear(),Ta(this.getMonth()+1,2),Ta(this.getDate(),2)].join(a?"-":""),d;if(b)if(d=this.getTimezoneOffset(),d==0)d="Z";else{var f=Math.abs(d)/60,g=Math.floor(f),f=(f-g)*60;d=(d>0?"-":"+")+Ta(g,2)+":"+Ta(f,2)}else d="";return c+d};q.ag=function(a){return this.getYear()==a.getYear()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()};q.toString=function(){return this.on()};
function Gt(a,b){a.getDate()!=b&&a.F.setUTCHours(a.F.getUTCHours()+(a.getDate()<b?1:-1))}q.valueOf=function(){return this.F.valueOf()};function Ht(a,b){this.kd=a;this.Wt=!!b;this.Tl=It(this);if(!this.Tl){var c=D&&!I("7")?"readystatechange":"load";this.Mj=T(this.kd,c,this.gp,m,this);this.Pl=window.setInterval(u(this.gp,this),Jt)}}z(Ht,xe);var Jt=100;Ht.prototype.Mj=k;Ht.prototype.lf=o("Tl");function Kt(a){if(a.Pl)window.clearInterval(a.Pl),a.Pl=k}Ht.prototype.d=function(){delete this.kd;Kt(this);je(this.Mj);Ht.c.d.call(this)};
function It(a){var b=m;try{b=D?a.kd.readyState=="complete":!!hd(a.kd).body&&(!a.Wt||!!hd(a.kd).body.firstChild)}catch(c){}return b}Ht.prototype.gp=function(){if(It(this))Kt(this),je(this.Mj),this.Mj=k,this.Tl=j,this.dispatchEvent("ifload")};function Lt(a,b,c){dh.call(this,c);this.td=b||wt;this.tw=this.td.Lr;this.F=new Ft(a);this.F.Wi=this.td.Dn;this.F.$e=this.td.Cn;this.cb=this.F.U();this.cb.setDate(1);this.vk=",,,,,,".split(",");this.vk[this.td.En[0]]=Mt()+"-wkend-start";this.vk[this.td.En[1]]=Mt()+"-wkend-end";this.pg={}}z(Lt,dh);q=Lt.prototype;q.er=j;q.aw=j;q.Ls=j;q.Zm=j;q.ir=j;q.Ek=j;q.hr=j;q.cw=m;q.vo=k;q.Ti=k;q.fl=k;var Nt=0;function Mt(){return"goog-date-picker"}q=Lt.prototype;q.Cq=function(){this.cb.add(new yt(At,-1));Ot(this)};
q.gq=function(){this.cb.add(new yt(At,1));Ot(this)};q.pv=function(){this.cb.add(new yt(zt,-1));Ot(this)};q.Iu=function(){this.cb.add(new yt(zt,1));Ot(this)};q.Tq=function(){this.setDate(new Ft)};q.Sq=function(){this.Ek&&this.setDate(k)};q.getDate=function(){return this.F&&this.F.U()};
q.setDate=function(a){var b=a!=this.F&&!(a&&this.F&&a.getFullYear()==this.F.getFullYear()&&a.getMonth()==this.F.getMonth()&&a.getDate()==this.F.getDate());this.F=a&&new Ft(a);a&&(this.cb.set(this.F),this.cb.setDate(1));Ot(this);this.dispatchEvent(new Pt("select",this,this.F));b&&this.dispatchEvent(new Pt("change",this,this.F))};
q.Va=function(a){Lt.c.Va.call(this,a);a.className=Mt();var b=this.k.createElement("table"),c=this.k.createElement("thead"),d=this.k.createElement("tbody"),f=this.k.createElement("tfoot");cg(d,"grid");d.tabIndex="0";this.kn=d;this.or=f;var g=this.k.createElement("tr");g.className=Mt()+"-head";if(this.Ti=g){for(var i=this.Ti;i.firstChild;)i.removeChild(i.firstChild);var l,n;if(this.cw)l=this.k.createElement("td"),l.colSpan=this.Zm?1:2,Qt(this,l,"\u00ab",this.Cq),i.appendChild(l),l=this.k.createElement("td"),
l.colSpan=this.Zm?6:5,l.className=Mt()+"-monthyear",i.appendChild(l),this.gl=l,l=this.k.createElement("td"),Qt(this,l,"\u00bb",this.gq),i.appendChild(l);else{var r=this.td.Ir[0].toLowerCase();l=this.k.createElement("td");l.colSpan=5;Qt(this,l,"\u00ab",this.Cq);this.Ye=Qt(this,l,"",this.$v,Mt()+"-month");Qt(this,l,"\u00bb",this.gq);n=this.k.createElement("td");n.colSpan=3;Qt(this,n,"\u00ab",this.pv);this.fh=Qt(this,n,"",this.bw,Mt()+"-year");Qt(this,n,"\u00bb",this.Iu);r.indexOf("y")<r.indexOf("m")?
(i.appendChild(n),i.appendChild(l)):(i.appendChild(l),i.appendChild(n))}}c.appendChild(g);this.Ac=[];for(l=0;l<7;l++){g=this.k.createElement("tr");this.Ac[l]=[];for(n=0;n<8;n++){i=this.k.createElement(n==0||l==0?"th":"td");if((n==0||l==0)&&n!=l)i.className=n==0?Mt()+"-week":Mt()+"-wday",cg(i,n==0?"rowheader":"columnheader");g.appendChild(i);this.Ac[l][n]=i}d.appendChild(g)}g=this.k.createElement("tr");g.className=Mt()+"-foot";i=this.fl=g;Vc(i);l=this.k.createElement("td");l.colSpan=2;l.className=
Mt()+"-today-cont";n=x("Today");this.Do=Qt(this,l,n,this.Tq);i.appendChild(l);l=this.k.createElement("td");l.colSpan=4;i.appendChild(l);l=this.k.createElement("td");l.colSpan=2;l.className=Mt()+"-none-cont";n=x("None");this.Co=Qt(this,l,n,this.Sq);i.appendChild(l);W(this.Do,this.hr);W(this.Co,this.Ek);W(this.or,this.hr||this.Ek);f.appendChild(g);b.cellSpacing="0";b.cellPadding="0";b.appendChild(c);b.appendChild(d);b.appendChild(f);a.appendChild(b);if(this.b()){if(this.ir)for(b=0;b<7;b++)id(this.Ac[0][b+
1],this.tw[((b+this.cb.$e+7)%7+1)%7]);W(this.Ac[0][0].parentNode,this.ir)}Ot(this);a.tabIndex=0};q.f=function(){Lt.c.f.call(this);this.Va(this.b())};q.W=function(){Lt.c.W.call(this);var a=this.ca();a.h(this.kn,S,this.mt);a.h(Rt(this,this.b()),"key",this.nt)};q.Wa=function(){Lt.c.Wa.call(this);this.Wf();for(var a in this.pg)this.pg[a].m();this.pg={}};q.d=function(){Lt.c.d.call(this);this.Co=this.Do=this.fh=this.gl=this.Ye=this.fl=this.Ti=this.or=this.kn=this.Ac=k};
q.mt=function(a){if(a.target.tagName=="TD"){var b,c=-2,d=-2;for(b=a.target;b;b=b.previousSibling,c++);for(b=a.target.parentNode;b;b=b.previousSibling,d++);this.setDate(this.gd[d][c].U())}};
q.nt=function(a){var b,c;switch(a.keyCode){case 33:a.preventDefault();b=-1;break;case 34:a.preventDefault();b=1;break;case 37:a.preventDefault();c=-1;break;case 39:a.preventDefault();c=1;break;case 38:a.preventDefault();c=-7;break;case 40:a.preventDefault();c=7;break;case 36:a.preventDefault(),this.Tq();case 46:a.preventDefault(),this.Sq();default:return}this.F?(a=this.F.U(),a.add(new yt(0,b,c))):(a=this.cb.U(),a.setDate(1));this.setDate(a)};
q.$v=function(a){a.stopPropagation();for(var a=[],b=0;b<12;b++)a.push(this.td.pi[b]);St(this,this.Ye,a,this.vt,this.td.pi[this.cb.getMonth()])};q.bw=function(a){a.stopPropagation();for(var a=[],b=this.cb.getFullYear()-5,c=0;c<11;c++)a.push(""+(b+c));St(this,this.fh,a,this.Vt,""+this.cb.getFullYear())};q.vt=function(a){for(var b=-1;a;a=a.previousElementSibling!=h?a.previousElementSibling:bd(a.previousSibling,m),b++);this.cb.setMonth(b);Ot(this);this.Ye.focus&&this.Ye.focus()};
q.Vt=function(a){a.firstChild.nodeType==3&&(this.cb.setFullYear(Number(a.firstChild.nodeValue)),Ot(this));this.fh.focus()};
function St(a,b,c,d,f){a.Wf();var g=a.k.createElement("div");g.className=Mt()+"-menu";a.vg=k;for(var i=a.k.createElement("ul"),l=0;l<c.length;l++){var n=a.k.f("li",k,c[l]);if(c[l]==f)a.vg=n;i.appendChild(n)}g.appendChild(i);g.style.left=b.offsetLeft+b.parentNode.offsetLeft+"px";g.style.top=b.offsetTop+"px";g.style.width=b.clientWidth+"px";a.Ye.parentNode.appendChild(g);a.u=g;if(!a.vg)a.vg=i.firstChild;a.vg.className=Mt()+"-menu-selected";a.hm=d;b=a.ca();b.h(a.u,S,a.ip);b.h(Rt(a,a.u),"key",a.jp);b.h(a.k.T(),
S,a.Wf);g.tabIndex=0;g.focus()}q.ip=function(a){a.stopPropagation();this.Wf();this.hm&&this.hm(a.target)};
q.jp=function(a){a.stopPropagation();var b,c=this.vg;switch(a.keyCode){case 35:a.preventDefault();b=c.parentNode.lastChild;break;case 36:a.preventDefault();b=c.parentNode.firstChild;break;case 38:a.preventDefault();b=c.previousSibling;break;case 40:a.preventDefault();b=c.nextSibling;break;case 13:case 9:case 0:a.preventDefault(),this.Wf(),this.hm(c)}if(b&&b!=c)c.className="",b.className=Mt()+"-menu-selected",this.vg=b};
q.Wf=function(){if(this.u){var a=this.ca();a.Sa(this.u,S,this.ip);a.Sa(Rt(this,this.u),"key",this.jp);a.Sa(this.k.T(),S,this.Wf);Q(this.u);delete this.u}};function Qt(a,b,c,d,f){var g=[Mt()+"-btn"];f&&g.push(f);f=a.k.createElement("button");f.className=g.join(" ");f.appendChild(a.k.createTextNode(c));b.appendChild(f);a.ca().h(f,S,function(a){a.preventDefault();d.call(this,a)});return f}
function Ot(a){if(a.b()){var b=a.cb.U();b.setDate(1);a.gl&&id(a.gl,x("{$monthName} {$yearNum}",{monthName:a.td.pi[b.getMonth()],yearNum:b.getFullYear()}));a.Ye&&id(a.Ye,a.td.pi[b.getMonth()]);a.fh&&id(a.fh,""+b.getFullYear());var c=((b.getDay()+6)%7-b.$e+7)%7,d=xt(b.getFullYear(),b.getMonth());b.add(new yt(At,-1));b.setDate(xt(b.getFullYear(),b.getMonth())-(c-1));a.er&&!a.Ls&&d+c<33&&b.add(new yt(Bt,-7));c=new yt(Bt,1);a.gd=[];for(d=0;d<6;d++){a.gd[d]=[];for(var f=0;f<7;f++)a.gd[d][f]=b.U(),b.add(c)}if(a.b())for(var b=
a.cb.getMonth(),f=new Ft,c=f.getFullYear(),d=f.getMonth(),f=f.getDate(),g=0;g<6;g++){if(a.Zm){var i=a.Ac[g+1][0],l;l=a.gd[g][0].getDate();l=new Date(a.gd[g][0].getFullYear(),a.gd[g][0].getMonth(),l);var n=a.gd[g][0].$e||0;l=l.valueOf()+(((a.gd[g][0].Wi||3)-n+7)%7-((l.getDay()+6)%7-n+7)%7)*864E5;l=Math.floor(Math.round((l-(new Date((new Date(l)).getFullYear(),0,1)).valueOf())/864E5)/7)+1;id(i,l);a.Ac[g+1][0].className=Mt()+"-week"}else id(a.Ac[g+1][0],""),a.Ac[g+1][0].className="";for(i=0;i<7;i++){l=
a.gd[g][i];n=a.Ac[g+1][i+1];if(!n.id)n.id="goog-dp-"+Nt++;cg(n,"gridcell");var r=[Mt()+"-date"];if(a.aw||l.getMonth()==b){l.getMonth()!=b&&r.push(Mt()+"-other-month");var v=(i+a.cb.$e+7)%7;a.vk[v]&&r.push(a.vk[v]);l.getDate()==f&&l.getMonth()==d&&l.getFullYear()==c&&r.push(Mt()+"-today");a.F&&l.getDate()==a.F.getDate()&&l.getMonth()==a.F.getMonth()&&l.getFullYear()==a.F.getFullYear()&&(r.push(Mt()+"-selected"),dg(a.kn,"activedescendant",n.id));a.vo&&(v=a.vo(l))&&r.push(v);id(n,l.getDate())}else id(n,
"");n.className=r.join(" ")}g>=4&&W(a.Ac[g+1][0].parentNode,a.gd[g][0].getMonth()==b||a.er)}}}function Rt(a,b){var c=pa(b);c in a.pg||(a.pg[c]=new np(b));return a.pg[c]}function Pt(a,b,c){Cd.call(this,a,b);this.uo=c}z(Pt,Cd);function Tt(a){this.te=a;Ut();Vt(this);Wt()}
function Ut(){var a=Y("birthday-selector");if(a){var b=ad(a),c=Y("dob-input-year").value,d=Y("dob-input-month").value,f=Y("dob-input-day").value;if(!c||c=="None")c="";if(!d||d=="None")d="";if(!f||f=="None")f="";Vc(a);a.appendChild(b);var g=document.createElement("input");Hc(g,{name:"dob",id:"dob-input",value:c+"-"+d+"-"+f});if(Oc("input",{type:"date"}).type!=="text")Hc(g,{type:"date"}),a.appendChild(g);else{Hc(g,{type:"hidden"});var i=Oc("div",{id:"dob-button","class":"dob-button inline-form-element block-inline"});
i.innerHTML=c&&d&&f?c+"-"+d+"-"+f:"XXXX - XX - XX ";var l=Oc("div",{id:"dob-date-picker","class":"dob-date-picker hidden"});a.appendChild(g);a.appendChild(i);a.appendChild(l);a=new Lt(new Date(c||1990,(d||1)-1,f||1));a.Pa(l);T(a,"change",function(a){a=a.uo?a.uo.on(j):"XXXX - XX - XX";g.setAttribute("value",a);i.innerHTML=a;ec(l,"hidden")});T(i,S,function(){ec(l,"hidden")})}}}
function Vt(a){V("/members/v2/profile?lang="+a.te+"&profile-pic-selector=true",u(a.Wv,a));a.ia=new yh("modal-dialog",j);Jh(a.ia,k);a.ia.Ho=j;a.ia.f();if(a.Ml)a.ia.Ea(a.Ml),a.Dq=$("profile-pic-input",a.ia.s());T($("profile-pic"),S,function(){this.ia.t(j)},h,a);T(Y("edit-pic-button"),S,function(){this.ia.t(j)},h,a)}
Tt.prototype.Wv=function(a){this.Ml=ag(a.target);if(this.ia)this.ia.Ea(this.Ml),this.Am=$("profile-pic-upload-form",this.ia.s()),this.Dq=$("profile-pic-input",this.ia.s()),Xt(this),T($("use-fb-pic",this.ia.s()),S,function(){V("/members/new-profile-pic-handler",u(function(a){a=a.target;$f(a)&&Yt(this,bg(a))},this),"POST",U({"use-fb-pic":j}))},h,this)};
function Yt(a,b){var c=$("profile-pic-upload-error",a.ia.s());if(b){L(c,"hidden",b.status=="SUCCESS");if(b.newFormUrl)a.Am.action=b.newFormUrl;if(b.status=="SUCCESS")Hc($("profile-pic"),{src:b.newPicUrl}),a.Dq.value="",a.ia.t(m)}else K(c,"hidden")}
function Xt(a){var b;if(a.Af)b=a.Af;a.Af=ah(O());Hc(a.Af,{id:"pic-upload-frame","class":"hidden"});Hc(a.Am,{target:"pic-upload-frame"});b?(Yc(a.Af,b),Q(b)):a.Am.appendChild(a.Af);var c=new Ht(a.Af,j);T(c,"ifload",function(){Yt(this,vf(hd(this.Af).body.innerHTML));c.d();Xt(this)},h,a)}
function Wt(){var a=Y("edit-account-form");T(a,"submit",function(b){b.stopPropagation();b.preventDefault();A(uj("error"),function(a){J(a,"hidden")});b=Zt(a)+"&async-form=true";V("/members/v2/profile",function(a){$f(a.target)?(a=bg(a.target),a.success?(K($("success",$("edit-account-form")),"hidden"),Y("referrers").value&&Q($("referrer-input-block"))):(K($("error",$("edit-account-form")),"hidden"),kc(a.errors,function(a,b){var c=Y("error-"+b);c.innerHTML=a+".";K(c,"hidden")}))):K($("error",$("edit-account-form")),
"hidden")},"POST",b)})}y("sop.editprofile.controller",Tt);D&&I(8);var $t={};function au(a,b){return td(new zc(h)||O(),a(b||$t,h,h))}function bu(a,b){var c;a:if(c=(new zc(h)||O()).createElement("DIV"),c.innerHTML=a(b||$t,h,h),c.childNodes.length==1){var d=c.firstChild;if(d.nodeType==1){c=d;break a}}return c}function cu(a){return typeof a==="object"&&a&&a.xy===0?a.content:(""+a).replace(du,eu)}
var fu={"\x00":"&#0;",'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;","\t":"&#9;","\n":"&#10;","\u000b":"&#11;","\u000c":"&#12;","\r":"&#13;"," ":"&#32;","-":"&#45;","/":"&#47;","=":"&#61;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"};function eu(a){return fu[a]}var du=/[\x00\x22\x26\x27\x3c\x3e]/g;function gu(a){return'<div id="loading"><div class="centered" style="padding-top: 50px; padding-bottom: 50px; width: 360px"><h3>'+cu(a.Ej)+'</h3><img src="/img/loading-big.gif" class="loading"/></div></div>'};function hu(a,b){var c=au(gu,{Ej:a.dm});if(a.iu)document.body.innerHTML="",document.body.appendChild(c);else{var d=new yh(h,j);d.Ea(c.innerHTML);Jh(d,k);d.t(j)}V("/members/login-facebook?lang="+a.te,u(function(a){a=ag(a.target);a.match("error")?alert(this.Ks):(this.ci&&V("/shoe/"+this.ci,k,"POST",U({mode:"saveDesigner"})),top.location=a)},a),"POST",U({token:b,shoe:a.ci}))}
y("sop.fb",function(a,b,c,d,f,g){this.iu=b;this.te=c;this.ci=g;this.dm=d;this.Ks=f;FB.init({appId:a,status:j,cookie:j,xfbml:j});FB.getLoginStatus(u(function(a){a.authResponse?T(Y("fb-login-btn"),S,function(){hu(this,a.authResponse.accessToken)},h,this):T(Y("fb-login-btn"),S,function(){FB.login(u(function(a){a.authResponse&&hu(this,a.authResponse.accessToken)},this),{scope:"email"})},h,this)},this),m)});function iu(){}z(iu,Uj);iu.prototype.init=function(){var a=Y("open-sample-link");a&&(T(a,S,u(this.qq,this,"gift-sample")),J(a,"link"));T(Y("add-gift-to-cart"),S,function(){K(Y("loading"),"hidden")})};iu.prototype.Gt=function(){T(Y("amount"),"change",function(a){a.target.options.selectedIndex==5?W(Y("other-amount"),j):W(Y("other-amount"),m)})};y("sop.gifts",iu);iu.prototype.init=iu.prototype.init;iu.prototype.handleOtherAmount=iu.prototype.Gt;function ju(){}ju.prototype.init=function(){var a=Z("div","tab"),b=a.length;A(a,function(a){T(a,S,function(a){for(var a=a.target.id.replace("tab",""),c=1;c<=b;){var g=c==a;L(Y("tab"+c),"tab"+c+"-active",g);L(Y("tab"+c),"tab"+c+"-inactive",!g);L(Y("content"+c),"hidden",!g);c++}})})};y("sop.gifts.promo",ju);ju.prototype.init=ju.prototype.init;function ku(a){this.lg={};this.fa=new gg(this);this.Ca=a}z(ku,xe);function lu(a,b,c){(c=t(c)?c:c.src)&&(a.lg[b]=c)}ku.prototype.start=function(){kc(this.lg,this.tu,this)};ku.prototype.tu=function(a,b){var c;c=this.Ca?O(this.Ca).f("img"):new Image;this.fa.h(c,[D?"readystatechange":"load","abort","error"],this.Wu);c.id=b;c.src=a};
ku.prototype.Wu=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")a.type=="load"?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0);this.dispatchEvent({type:a.type,target:b});this.Hd||(rc(this.lg,b.id),qc(this.lg)&&(this.dispatchEvent("complete"),this.fa&&this.fa.mc()))}};
ku.prototype.d=function(){this.lg&&delete this.lg;if(this.fa)this.fa.m(),this.fa=k;ku.c.d.call(this)};y("sop.images",function(a){this.X=a;this.Op=new Pe;A(this.X,function(a){if(a.num_photos>1){var c=new ku,d="http://www.shoestatic.com/pic/photo/"+a.id+"-1.jpg?width=315";this.Op.sb(a.id+"Thumb")||(lu(c,d,d),c.start(),this.Op.set(a.id+"Thumb",j));T(Y(a.id),"mouseover",function(a){a.target.src=d},h,this);T(Y(a.id),"mouseout",function(a){a.target.src=d.replace("-1","")},h,this)}},this)});function mu(a,b,c,d,f){this.$p=a;this.Zp=b||this;if(c)this.wg=Y(c),this.Bj=$("loader-idle",this.wg),this.Cj=$("loader-loading",this.wg),T(this.wg,S,this.cp,h,this);this.yy=m;d&&T(document,"scroll",function(a){var b=Lc(document).y,c;if(this.wg)c=this.wg.offsetHeight;else{var d=window;c=d.document;var f=0;if(c){var d=Kc(d).height,f=c.body,v=c.documentElement;if(Gc(c)&&v.scrollHeight)f=v.scrollHeight!=d?v.scrollHeight:v.offsetHeight;else{c=v.scrollHeight;var F=v.offsetHeight;if(v.clientHeight!=F)c=f.scrollHeight,
F=f.offsetHeight;f=c>d?c>F?c:F:c<F?c:F}}c=f}d=Jc().height;b+d>=c&&this.cp(a)},h,this);this.sw=f;this.de=k}mu.prototype.cp=function(a){a.preventDefault();a.stopPropagation();if(!this.so)this.so=j,this.Cj&&this.Bj&&(K(this.Cj,"hidden"),J(this.Bj,"hidden")),this.sw&&this.de?V(this.de.url,u(this.$p,this.Zp),this.de.requestType,this.de.params):this.$p.call(this.Zp)};function nu(a){a.so=m;a.Cj&&a.Bj&&(J(a.Cj,"hidden"),K(a.Bj,"hidden"))}
function ou(a){a=new Rj(a.wg,500);a.addEventListener("finish",function(){this.m()},h,a);a.play()}function pu(a,b,c){if(!a.de)a.de={};a.de.url=b;a.de.requestType="POST";a.de.params=c||""}y("sop.infinitescroller",mu);function qu(a){return'<div id="like-area-'+cu(a.yf)+'" class="like-area block-inline"><div id="like-button-'+cu(a.yf)+'" class="like-button block-inline"></div><div id="like-count-'+cu(a.yf)+'" class="like-count block-inline"><p>Like</p></div></div>'}function ru(a){return a.oo>0?"<p>"+cu(a.oo)+"</p>":"<p>Like</p>"};function su(a,b){this.ci=a;this.Qd=k;this.Qd=b?b:au(qu,{yf:a,Ey:tu});this.am=ad(this.Qd);this.Fy=this.Qd.lastElementChild!=h?this.Qd.lastElementChild:bd(this.Qd.lastChild,m);T(this.Qd,S,this.bp,h,this)}var tu="like-area-";su.prototype.Jt=function(a){a=bg(a.target);a.error?(K(this.am,"loading-like"),new rj(u(this.bp,this))):uu(this.Qd,a.liked,a.likes)};
su.prototype.bp=function(){var a=dc(this.am,"liked-by-user");J(this.am,"loading-like");a=U({shoeId:this.ci,liked:!a});V("/like",u(this.Jt,this),"POST",a)};function uu(a,b,c){if(a){var d=ad(a),a=a.lastElementChild!=h?a.lastElementChild:bd(a.lastChild,m);L(d,"liked-by-user",b);K(d,"loading-like");b=au(ru,{oo:c});Vc(a);a.appendChild(b)}}y("sop.likebutton",su);function vu(){this.xj=[];this.Dk={}}function wu(a,b,c){var d=new su(c);b.appendChild(d.Qd);a.Dk[c]=d;a.xj.push(c)}function xu(a,b){var c=b.id.split("like-area-").pop();a.Dk[c]=new su(c,b)}function yu(a){if(a.xj.length!=0){var b=U({shoes:[a.xj]});V("/multilike",u(a.It,a),"POST",b);a.xj=[]}}vu.prototype.It=function(a){a=bg(a.target);A(a.shoes,function(a){uu(this.Dk[a.shoe_id].Qd,a.liked,a.likes)},this)};y("sop.likepagecontroller",vu);function zu(a,b,c){this.Cd=a;wg(a,"position","relative");this.Sf=this.Cd.clientWidth;this.ab=[];this.ab=b?rb(uj(b,this.Cd)):rb($c(this.Cd));if(this.Bd>this.Sf&&this.ab.length>0)this.Bd=this.La.left+this.ab[0].offsetWidth+this.La.right,this.xe=Math.floor(this.Sf/this.Bd);this.La=c||{};this.La.right==k&&(this.La.right=15);this.La.left==k&&(this.La.left=0);this.La.bottom==k&&(this.La.bottom=15);this.La.top==k&&(this.La.top=0);this.Bd=this.Sf+1;if(this.ab.length>0)this.Bd=this.La.left+this.ab[0].offsetWidth+
this.La.right;this.xe=Math.floor(this.Sf/this.Bd);wg(a,"position","relative")}function Au(a,b,c){if(b&&(c!=h?tb(a.ab,c,0,b):a.ab.push(b),a.Bd>a.Sf))a.Bd=a.La.left+b.offsetWidth+a.La.right,a.xe=Math.floor(a.Sf/a.Bd)}function Bu(a,b,c){eb.splice.call(a.ab,b,1);var d=new Rj(c,500);d.addEventListener("finish",function(){Q(c);this.m()},h,d);d.play();Cu(a,b,j)}
function Cu(a,b,c){if(!(a.ab.length<1)){if(!b||b<0||b>=a.ab.length)b=0;b-=b%a.xe;for(var d=0,f=[],g=a.ab.length%a.xe,i=a.ab.length-g,g=Math.floor((a.xe-g)/2),l=0;b<a.ab.length;b++){b>=i&&(l=g);var n=b%a.xe+l,r=a.ab[b];f[n]===h&&(f[n]=Du(a,b+l));var v=f[n]+a.La.top;f[n]=v+r.offsetHeight+a.La.bottom;f[n]>d&&(d=f[n],Og(a.Cd,d));n=n*a.Bd+a.La.left;wg(r,"position","absolute");c?(r=new Pj(r,[n,v],500,ct),r.addEventListener("finish",function(){this.m()},h,r),r.play()):Cg(r,n,v)}}}
function Du(a,b){for(var c=0,d=b%a.xe;d<b;d+=a.xe)c+=a.La.top+a.ab[d].offsetHeight+a.La.bottom;return c}y("sop.tiler",zu);function Eu(a,b){this.Mh=a||"";this.Mp=b||"";this.rf=[];this.Vk=m;this.hc=new vu;A(uj("shoe-card"),function(a){xu(this.hc,$("like-area",a))},this);this.ib=new zu($("shoe-card-list"),h,{right:10,left:10,bottom:10,top:10});Cu(this.ib);this.yh=new mu(this.Pr,this,"inspiration-more-shoes",j,j);pu(this.yh,"/inspiration",U({cursor:this.Mh}));T(Y("updates-link"),S,this.Bt,h,this);this.tk=new ye(1E4);T(this.tk,Ae,this.js,h,this);this.tk.start()}q=Eu.prototype;
q.Pr=function(a){var b=uj("shoe-card-list",Y("inspiration-container"))[0];if(b)if($f(a.target)){var a=bg(a.target),c=this.ib.ab.length;A(a.shoes,function(a){a=this.cg(a);W(a,m);b.appendChild(a);Au(this.ib,a);(new Sj(a,1E3)).play()},this);Cu(this.ib,c);yu(this.hc);(this.Mh=a.cursor)?(Hc(Y("inspiration-more-link"),{href:"/inspiration?cursor="+this.Mh}),pu(this.yh,"/inspiration",U({cursor:this.Mh})),nu(this.yh)):ou(this.yh)}else nu(this.yh)};
q.js=function(){if(!this.Vk){var a=U({lastUpdated:this.Mp});this.Vk=j;this.tk.stop();V("/inspiration",u(this.Qr,this),"POST",a)}};q.Qr=function(a){this.Vk=m;a=bg(a.target);A(a.shoes,function(a){this.rf.push(this.cg(a))},this);yu(this.hc);this.Mp=a.lastUpdated;Fu(this);this.tk.start()};
function Fu(a){if(Y("updates-link-number").innerHTML!=a.rf.length)(Y("updates-link-number").innerHTML=a.rf.length)?(K(Y("updates-button"),"hidden"),a.rf.length>1?(K(Y("updates-text-plural"),"hidden"),J(Y("updates-text-singular"),"hidden")):(J(Y("updates-text-plural"),"hidden"),K(Y("updates-text-singular"),"hidden"))):J(Y("updates-button"),"hidden")}
q.Bt=function(a){a.preventDefault();a.stopPropagation();var b=uj("shoe-card-list",Y("inspiration-container"))[0];if(b)A(this.rf,function(a){W(a,m);b.insertBefore(a,b.childNodes[0]||k);Au(this.ib,a,0);(new Sj(a,1E3)).play()},this),Cu(this.ib,0,j),this.rf=[],Fu(this)};q.cg=function(a){a=Sc(Aa(a));xu(this.hc,$("like-area",a));return a};y("sop.inspiration.controller",Eu);function Gu(){A(Z("li","leather-link"),function(a){T(a,S,u(this.Hv,this))},this)}Gu.prototype.Hv=function(a){A(Z("li","selected"),function(a){K(a,"selected")});J(a.target,"selected");A(Z("div","selected-category"),function(a){K(a,"selected-category");J(a,"hidden")});a=Y("category"+a.target.id);J(a,"selected-category");K(a,"hidden")};y("sop.leathers",Gu);function Hu(a){return'<div id="info-window-'+cu(a.yf)+'" class="info-window"><p>'+cu(a.Es)+"</p><h3>"+cu(a.ts)+'<img src="/img/flags/'+cu(a.rs)+'.gif" border="1" align="right" width="30" height="18"/></h3><div class="info-window-shoe"><a target="_blank" href="/shoe/'+cu(a.yf)+'"><img src="/pic/shoe/'+cu(a.yf)+'.jpg" width="150" height="130"/></a></div></div>'};function Iu(a,b){Cd.call(this,"navigate");this.Pg=a;this.Dy=b}z(Iu,Cd);function Ju(a,b,c,d){a&&!b&&e(Error("Can't use invisible history without providing a blank page."));var f;c?f=c:(f="history_state"+Ku,document.write(za(Lu,f,f)),f=Ac(f));this.sh=f;this.bb=c?Nc(P(c)):window;this.as=this.bb.location.href.split("#")[0];this.hj=b;if(D&&!b)this.hj=window.location.protocol=="https"?"https:///":'javascript:""';this.K=new ye(Mu);this.Gf=!a;this.w=new gg(this);if(a||D&&!Nu)d?a=d:(a="history_iframe"+Ku,b=this.hj?'src="'+La(this.hj)+'"':"",document.write(za(Ou,a,b)),a=Ac(a)),
this.kd=a,this.zr=j;if(D&&!Nu)this.w.h(this.bb,"load",this.Ru),this.cr=this.dl=m;this.Gf?Pu(this,Qu(this),j):Ru(this,this.sh.value);Ku++}z(Ju,xe);Ju.prototype.ka=m;Ju.prototype.ug=m;Ju.prototype.qg=k;var Nu=D&&document.documentMode>=8||E&&I("1.9.2")||G&&I("532.1");q=Ju.prototype;q.tg=k;q.d=function(){Ju.c.d.call(this);this.w.m();this.Ia(m)};
q.Ia=function(a){if(a!=this.ka)if(D&&!Nu&&!this.dl)this.cr=a;else if(a)if(C?this.w.h(this.bb.document,Su,this.gv):E&&this.w.h(this.bb,"pageshow",this.Kj),Nu&&this.Gf)this.w.h(this.bb,"hashchange",this.Tu),this.ka=j,this.dispatchEvent(new Iu(Qu(this),m));else{if(!D||this.dl){this.w.h(this.K,Ae,u(this.fo,this,j));this.ka=j;if(!D)this.qg=Qu(this);this.K.start();this.dispatchEvent(new Iu(Qu(this),m))}}else this.ka=m,this.w.mc(),this.K.stop()};
q.Ru=function(){this.dl=j;this.sh.value&&Ru(this,this.sh.value,j);this.Ia(this.cr)};q.Kj=function(a){a.wa.persisted&&(this.Ia(m),this.Ia(j))};q.Tu=function(){var a=Tu(this.bb);a!=this.qg&&Uu(this,a,j)};function Qu(a){return a.tg!=k?a.tg:a.Gf?Tu(a.bb):Vu(a)||""}function Tu(a){var a=a.location.href,b=a.indexOf("#");return b<0?"":a.substring(b+1)}function Wu(a,b){if(Qu(a)!=b)a.Gf?(Pu(a,b,m),Nu||D&&Ru(a,b,m,h),a.ka&&a.fo(m)):(Ru(a,b,m),a.tg=a.qg=a.sh.value=b,a.dispatchEvent(new Iu(b,m)))}
function Pu(a,b,c){var d=a.bb.location,a=a.as,f=Sa(d.href,"#");if(D||f||b)a+="#"+b;if(a!=d.href)c?d.replace(a):d.href=a}function Ru(a,b,c,d){if(a.zr||b!=Vu(a))if(a.zr=m,b=Ja(b),D){var f=hd(a.kd);f.open("text/html",c?"replace":h);f.write(za(Xu,La(d||a.bb.document.title),b));f.close()}else if(b=a.hj+"#"+b,a=a.kd.contentWindow)c?a.location.replace(b):a.location.href=b}
function Vu(a){if(D)return a=hd(a.kd),a.body?Ka(a.body.innerHTML):k;var b=a.kd.contentWindow;if(b){var c;try{c=Ka(Tu(b))}catch(d){if(!a.ug)a.ug!=j&&a.K.setInterval(Yu),a.ug=j;return k}if(a.ug)a.ug!=m&&a.K.setInterval(Mu),a.ug=m;return c||k}return k}q.fo=function(a){if(this.Gf){var b=Tu(this.bb);b!=this.qg&&Uu(this,b,a)}if(!this.Gf||D&&!Nu)if(b=Vu(this)||"",this.tg==k||b==this.tg)this.tg=k,b!=this.qg&&Uu(this,b,a)};
function Uu(a,b,c){a.qg=a.sh.value=b;a.Gf?(D&&!Nu&&Ru(a,b),Pu(a,b)):Ru(a,b);a.dispatchEvent(new Iu(Qu(a),c))}q.gv=function(){this.K.stop();this.K.start()};var Su=["mousedown",Fd,"mousemove"],Xu="<title>%s</title><body>%s</body>",Ou='<iframe id="%s" style="display:none" %s></iframe>',Lu='<input type="text" name="%s" id="%s" style="display:none">',Ku=0,Mu=150,Yu=1E4;function Zu(){this.Sp=Y("map-canvas");this.sd="";this.ma=new google.maps.Map(this.Sp,{zoom:3,center:new google.maps.LatLng(38,-97),disableDoubleClickZoom:j,mapTypeId:google.maps.MapTypeId.ROADMAP});this.L=0;this.X=[];this.Bq=this.ie="";this.Jh=m;this.Gh=new vu;this.Ld=new Ju;this.qn="";this.Nd=new ku;this.Il=m;$u(this)}Zu.prototype.Xm=ba("us");
function av(a){J(Y("loading"),"hidden");for(var b=[],c=[],d=0;d<6;d++){if(a.X.length<=a.L+d)break;var f=a.sd+"/img/flags/"+a.X[a.L+d].country_info.code+".gif";lu(a.Nd,a.X[a.L+d].shoe_ids,a.sd+"/pic/shoe/"+a.X[a.L+d].shoe_ids+".jpg");lu(a.Nd,a.X[a.L+d].country_info.code,f)}a.Nd.start();bv(a,c,b);a.Ld.Ia(j);var g=new ye(3E3);g.start();T(g,Ae,function(){this.Il||bv(this,c,b)},h,a);var i=Be(function(){K(Y("paused-timeout"),"hidden");g.stop()},18E4);T(a.Sp,"mousemove",function(){J(Y("paused-timeout"),
"hidden");g.start();Ce(i);i=Be(function(){K(Y("paused-timeout"),"hidden");g.stop()},18E4)},h,a)}
function cv(a,b,c){if(a.L>=a.X.length-10&&!a.Jh)a.Jh=j,$u(a);if(a.L>=a.X.length)b[a.L-4]&&(b[a.L-4].close(),c[a.L-4].setMap(k)),a.L=0;if(a.X.length>a.L+5){var d=a.sd+"/img/flags/"+a.X[a.L+5].country_info.code+".gif";lu(a.Nd,a.X[a.L+5].shoe_ids,a.sd+"/pic/shoe/"+a.X[a.L+5].shoe_ids+".jpg");lu(a.Nd,a.X[a.L+5].country_info.code,d);a.Nd.start()}a.L>3&&b[a.L-4]?(b[a.L-4].close(),c[a.L-4].setMap(k)):a.X.length>3&&b[a.L+a.X.length-4]&&(b[a.L+a.X.length-4].close(),c[a.L+a.X.length-4].setMap(k));return b}
function bv(a,b,c){b[a.L]&&(b[a.L].close(),c[a.L].setMap(k));var d=new google.maps.LatLng(a.X[a.L].country_info.latlng[0],a.X[a.L].country_info.latlng[1]),f=new google.maps.Marker({position:d,map:a.ma,zIndex:0});c[a.L]=f;var g=au(Hu,{yf:a.X[a.L].shoe_ids,rs:a.X[a.L].country_info.code,ts:a.X[a.L].country_info.name,Es:a.us});wu(a.Gh,g,a.X[a.L].shoe_ids);yu(a.Gh);var g=new google.maps.InfoWindow({content:g,zIndex:0}),i="info-window-"+a.X[a.L].shoe_ids;google.maps.event.addListener(g,"domready",u(function(){T(Y(i),
["mouseover","mouseout"],function(a){this.Il=a.type=="mouseover";L(Y("paused-hover"),"hidden",!this.Il)},h,this)},a));b[a.L]=g;b[a.L].open(a.ma,f);a.ma.panTo(d);Wu(a.Ld,a.X[a.L].shoe_ids+"&"+a.Bq);a.L++;b=cv(a,b,c)}function $u(a){if(!a.Jh&&Qu(a.Ld)){var b=Qu(a.Ld).split("&");if(b[1])a.ie=b[1];a.qn=b[0]}V("/live",u(a.Kt,a),"POST",U({cursor:a.ie}));_gaq.push(["_trackPageview","/live/load"])}
Zu.prototype.Kt=function(a){a=bg(a.target);this.Bq=this.ie;this.ie=a.cursor;if(this.Jh)this.X=this.X.concat(a.shoes),this.Jh=m;else if(this.X=a.shoes,this.X.length<=0)Wu(this.Ld,""),this.ie="",$u(this);else{if(this.qn)for(a=0;a<this.X.length;a++)if(this.X[a].shoe_ids==this.qn)this.L=a;av(this)}};y("sop.live",Zu);Zu.prototype.setStrings=Zu.prototype.Xm;function dv(a,b){this.he=a instanceof M?a:new M(a,b)}z(dv,ur);dv.prototype.na=function(a,b,c,d){var f=Eg(a);ko(f,0,a,b,new M(this.he.x+f.scrollLeft,this.he.y+f.scrollTop),c,k,d)};function ev(a,b){dv.call(this,a,b)}z(ev,dv);ev.prototype.Lp=0;ev.prototype.Yq=ba("Lp");ev.prototype.na=function(a,b,c,d){var f=Eg(a),f=Hg(f),g;g=O(a);g=Mc(g.ba);g=new M(this.he.x+g.scrollLeft,this.he.y+g.scrollTop);var i=b,l=lo(g,a,i,c,f,10,d);if((l&496)!=0){if(l&16||l&32)i^=2;if(l&64||l&128)i^=1;l=lo(g,a,i,c,f,10,d);(l&496)!=0&&lo(g,a,b,c,f,this.Lp,d)}};function fv(a,b){this.he=a instanceof M?a:new M(a,b)}z(fv,ur);fv.prototype.na=function(a,b,c,d){ko(Eg(a),0,a,b,this.he,c,k,d)};function gv(a,b){this.zq=4;this.ym=b||h;qh.call(this,a)}z(gv,qh);function hv(a){a.zq=2;a.B()&&a.na()}gv.prototype.Sc=function(a){this.ym=a||h;this.B()&&this.na()};gv.prototype.na=function(){if(this.ym){var a=!this.B()&&this.fg()!="move_offscreen",b=this.b();if(a)b.style.visibility="hidden",W(b,j);this.ym.na(b,this.zq,this.Tp);a&&W(b,m)}};function iv(){if(Y("login"))this.Na=new gv(Y("login-drop-down")),this.vh=new ye(1500),this.xi=kg(Rg(Y("login-drop-down"))),this.xi.expand(0,30,30,30),this.vu=kg(Rg(Y("login"))),hv(this.Na),this.Na.Sc(new wr(Y("login"),3)),this.Na.na(),th(this.Na),this.Na.Eo=m,sh(this.Na),T(Nc(),"resize",this.Na.na,h,this.Na),Y("login")&&T(Y("login"),S,function(a){a.preventDefault();a.stopPropagation();this.Na.Jc||va()-this.Na.sj<150?this.Hl():(this.Na.t(j),(new Sj(Y("login-drop-down"),300)).play(),this.xi=kg(Rg(Y("login-drop-down"))),
this.xi.expand(0,30,30,30),this.vh.stop())},h,this),Y("login-close")&&T(Y("login-close"),S,this.Hl,h,this),T(document,"mousemove",function(a){if(this.Na.Jc||va()-this.Na.sj<150){var b=Lc(document),a=new M(a.clientX+b.x,a.clientY+b.y);this.xi.contains(a)||this.vu.contains(a)?this.vh.stop():this.vh.start()}},h,this),T(this.vh,Ae,this.Hl,h,this)}iv.prototype.Hl=function(){(new Rj(Y("login-drop-down"),300)).play();Be(u(function(){this.Na.t(m)},this),500);this.vh.stop()};y("sop.login",iv);function jv(a,b){this.te=b;this.dm=a;this.Nk=m;T(Y("dialog-login-form"),"submit",this.hw,h,this);ge(window,"load",this.Vv,h,this)}q=jv.prototype;q.hw=function(a){var b=Y("login-dialog-email").value,c=Y("login-dialog-password").value,d=au(gu,{Ej:this.dm});document.body.innerHTML="";document.body.appendChild(d);b=U({email:b,password:c});V("/members/login-dialog?lang="+this.te,u(this.np,this),"POST",b);a.preventDefault()};
q.Vv=function(){var a=(new di(window.location.href)).Mc.get("xpc");if(a)a=vf(a),this.e=new kj(a),this.e.wc(u(this.qw,this))};q.qw=function(){this.Iq&&this.e.send("storeCookie",{a:this.Iq});this.Nk=j};q.np=function(a){ag(a.target).match("error")&&this.Nk?this.e.send("error"):(a=tj.get("a"),this.Nk?this.e.send("storeCookie",{a:a}):this.Iq={a:a})};
q.Ms=function(a,b){FB.init({appId:a,status:j,cookie:j,xfbml:j});this.Ns=b;FB.getLoginStatus(u(function(a){a.authResponse?T(Y("fb-login-btn"),S,function(){kv(this,a.authResponse.accessToken)},h,this):T(Y("fb-login-btn"),S,function(){FB.login(u(function(a){a.authResponse&&kv(this,a.authResponse.accessToken)},this),{scope:"email"})},h,this)},this),m)};
function kv(a,b){var c=au(gu,{Ej:a.Ns});document.body.innerHTML="";document.body.appendChild(c);V("/members/login-facebook?lang="+a.te,u(a.np,a),"POST",U({token:b}))}y("sop.login.dialog",jv);y("sop.login.dialog.prototype.fbInit",jv.prototype.Ms);y("sop.login.iframe",function(a,b){T(Y("login-btn"),S,function(){var c=Y("email").value,d=Y("password").value,f=au(gu,{Ej:a});document.body.innerHTML="";document.body.appendChild(f);V("/members/login-iframe?lang="+b,function(a){top.location=ag(a.target)},"POST",U({email:c,password:d}))},h,this)});function lv(){this.Rf="Are you sure you want to delete this design?";this.ih="Sorry, there was an error deleting this design. Please try again soon."}lv.prototype.$q=function(a,b){this.Rf=a;this.ih=b};lv.prototype.init=function(){A(Z("span","delete-link"),function(a){T(a,S,function(){confirm(this.Rf)&&this.Qi(a.id)},h,this)},this)};
lv.prototype.Qi=function(a){var b=this;V("/members",function(){var a=ag(this);if(!$f(this)||xa(a,"Error"))return alert(b.ih);window.location.reload(j)},"POST",U({mode:"deleteDesign",key:a}))};y("sop.member",lv);lv.prototype.setMessages=lv.prototype.$q;lv.prototype.init=lv.prototype.init;function mv(a){this.Rf="Are you sure you want to delete this design?";this.ih="Sorry, there was an error deleting this design. Please try again soon.";this.Kg=$("shoe-card-list",Y("my-shoes-container"));a?(this.rc=new mu(this.Em,this,"more-shoes",j,j),pu(this.rc,"/members/v2",U({mode:"getDesigns",cursor:a}))):W(Y("more-shoes"),m);this.hc=new vu;A(uj("shoe-card"),function(a){xu(this.hc,$("like-area",a))},this);this.ib=new zu(this.Kg,h,{right:10,left:10,bottom:10,top:10});Cu(this.ib);nv(this)}q=mv.prototype;
q.$q=function(a,b){this.Rf=a;this.ih=b};function nv(a){A(uj("delete-button",a.Kg),function(a,c){T(a,S,function(){confirm(this.Rf)&&this.Qi(a.id.split("delete-").pop(),a.parentNode,c)},h,this)},a)}q.Qi=function(a,b,c){var d=this;V("/members/v2",function(){if(!$f(this)||bg(this).Error)return alert(d.ih);Bu(d.ib,c,b)},"POST",U({mode:"deleteDesign",shoe_id:a}))};
q.Em=function(a){a=bg(a.target);if(a.error)nu(this.rc);else{if(a.shoes){var b=this.Kg,c=this.ib.ab.length;A(a.shoes,function(a,f){var g=this.cg(a),i=$("delete-button",g);i&&T(i,S,function(){confirm(this.Rf)&&this.Qi(i.id.split("delete-").pop(),i.parentNode,c+f)},h,this);W(g,m);b.appendChild(g);Au(this.ib,g);(new Sj(g,1E3)).play()},this);Cu(this.ib,c);yu(this.hc)}this.tn(a.next_cursor)}};
q.tn=function(a){a?(Hc(Y("more-shoes"),{href:"/members/v2?page="+a}),pu(this.rc,"/members/v2",U({mode:"getDesigns",cursor:a})),nu(this.rc)):ou(this.rc)};q.cg=function(a){a=Sc(Aa(a));xu(this.hc,$("like-area",a));return a};y("sop.memberv2",mv);function ov(a){this.Kg=$("shoe-card-list",Y("my-shoes-container"));a?(this.rc=new mu(this.Em,this,"mylikes-more-shoes",j,j),pu(this.rc,"/members/v2/mylikes",U({cursor:a}))):W(Y("mylikes-more-shoes"),m);this.hc=new vu;A(uj("shoe-card"),function(a){xu(this.hc,$("like-area",a))},this);this.ib=new zu(this.Kg,h,{right:10,left:10,bottom:10,top:10});Cu(this.ib)}
ov.prototype.Em=function(a){a=bg(a.target);if(a.error)nu(this.rc);else{if(a.shoes){var b=this.Kg,c=this.ib.ab.length;A(a.shoes,function(a){a=this.cg(a);W(a,m);b.appendChild(a);Au(this.ib,a);(new Sj(a,1E3)).play()},this);Cu(this.ib,c);yu(this.hc)}this.tn(a.next_cursor)}};ov.prototype.tn=function(a){a?(Hc(Y("mylikes-more-shoes"),{href:"/members/v2/mylikes?cursor="+a}),pu(this.rc,"/members/v2/mylikes",U({cursor:a})),nu(this.rc)):ou(this.rc)};
ov.prototype.cg=function(a){a=Sc(Aa(a));xu(this.hc,$("like-area",a));return a};y("sop.memberv2.mylikeshandler",ov);function pv(a){return'<table id="collapse-'+cu(a.wu)+'" class="collapse"><td><div style="padding: 3px 3px 0 0">'+cu(a.ns)+'</div></td><td><img src="/img/collapse-arrow.jpg"/></td></table>'};y("sop.mentions",function(a){this.os=a;this.Dj=0.6;this.Ak=new Pe;A(Z("img","article"),function(a){var c=a.id.replace("article-","");Pg(a).height>650&&(a=au(pv,{wu:c,ns:this.os}),Y("content-"+c).appendChild(a),T(Y("collapse-"+c),S,function(){this.Ak.get(c).collapse();var a=Lg(Y("mention-"+c)).y;Nc().scrollBy(0,a)},h,this))},this);A(Z("img","cover"),function(a){Sg(a,this.Dj)},this);A(Z("img","logos"),function(a){Sg(a,this.Dj)},this);A(Z("table","mentions-table"),function(a){var c=a.id.replace("mention-",
"");J(a,"link");T(a,S,function(){A(this.Ak.dd(),function(a){a!=c&&this.Ak.get(a).collapse()},this)},h,this);T(a,"mouseover",function(){Sg(Y(c+"-cover"),1);Sg(Y(c+"-logo"),1)},h,this);T(a,"mouseout",function(){Sg(Y(c+"-cover"),this.Dj);Sg(Y(c+"-logo"),this.Dj)},h,this);a=new gt(a.id,"content-"+c);this.Ak.set(c,a);T(a,"toggle",function(){var a=Lg(Y("content-"+c)).y;a>Nc().innerHeight&&Nc().scrollBy(0,a-250)},h,this)},this)});function qv(a){A(uj("my-orders-stub-new"),function(a){Ag(a,"backgroundColor");var c=a.id.replace("order-","");new gt(a,"myOrder-"+c);T(a,["mouseover","mouseout"],function(c){L(a,"my-orders-highlight",c.type=="mouseover")})},a)}y("sop.myorders",function(){qv(this)});function rv(a){this.Lu=a;this.ui=new Pe;this.vf=0;A(Z("img","image-answer"),this.Ap,this);A(Z("input","text-answer"),this.Ap,this);T(Y("start-quiz"),S,function(){this.fr()},h,this)}
rv.prototype.fr=function(){this.vf==0?(Q(Y("start")),K(Y("navigation"),"hidden")):(J(Y("question-"+this.vf),"hidden"),K(Y("nav-"+this.vf),"selected"));this.vf==this.Lu?(J(Y("navigation"),"hidden"),K(Y("loading"),"hidden"),V("/members/style",function(a){a=ag(a.target);Nc().location="/members/style?profile="+a},"POST",U(Te(this.ui)))):(this.vf++,K(Y("question-"+this.vf),"hidden"),J(Y("nav-"+this.vf),"selected"))};
rv.prototype.Ap=function(a){T(a,S,function(a){var c=a.target.id.split("-");this.ui.sb(c[0])&&K(Y(c[0]+"-"+this.ui.get(c[0],"1")),"selected-answer");J(a.target,"selected-answer");this.ui.set(c[0],c[1]);Be(u(this.fr,this),200)},h,this)};y("sop.mystyle",rv);function sv(){this.Fp="Please enter a valid email address"}sv.prototype.Nv=ba("Fp");sv.prototype.init=function(){T(Y("subscribe-form"),"submit",function(a){var b=Y("subscribe-email").value;if(Ba(b)||!/^[-a-zA-Z0-9+_.]+@[0-9a-zA-Z][-.0-9a-zA-Z]*\.[a-zA-Z]+$/i.test(b)||b=="you@email.com")return alert(this.Fp),a.stopPropagation(),a.preventDefault(),m},j,this)};y("sop.newsletter",sv);sv.prototype.setErrorMessage=sv.prototype.Nv;sv.prototype.init=sv.prototype.init;function tv(a,b){if(Y("sample-link")){this.Sd=new yh("modal-dialog",j);var c=new ku,d=Y("sample-link").href;lu(c,d,d);c.start();c=new Fh;c.set("no",a);c.set("subscribe",b);Jh(this.Sd,c);this.Sd.Ea('<img width="592" height="665" src="'+d+'">');T(Y("sample-link"),S,function(a){a.preventDefault();a.stopPropagation();this.Sd.t(j);T(this.Sd,Lh,function(a){if(a.key=="subscribe")Y("newsletter").checked=j})},h,this)}}tv.prototype.Fc=function(){return this.Sd?this.Sd.B():m};y("sop.newsletter.sample",tv);function uv(){this.Ph=0;this.wr="You have already selected 5 leathers";this.vr="Please select at least one leather"}uv.prototype.Ov=function(a,b){this.wr=a;this.vr=b};uv.prototype.init=function(){vv(this);T(Y("leather-sample-form"),"submit",this.Ot,h,this)};
function vv(a){A(Z("input","leather"),function(a){var c=qd(a,"div");a.checked&&(J(c,"selected-leather"),this.Ph++);T(a,"change",function(a){var b=a.target.checked;b?this.Ph<5?this.Ph++:(alert(this.wr),b=m,a.target.checked=m):this.Ph--;L(c,"selected-leather",b)},h,this);a.disabled=m},a)}uv.prototype.Ot=function(a){if(this.Ph<=0)return alert(this.vr),a.preventDefault();var b=[];A(Z("input","leather"),function(a){a.checked&&b.push(a.value)});Y("selected-leathers").value=b.join(", ")};
y("sop.samples",uv);uv.prototype.setErrorMessages=uv.prototype.Ov;uv.prototype.init=uv.prototype.init;function Vj(){this.Re=Y("shoes-container");this.rd=Y("shoes-slider");var a=Z("div","shoe",this.rd);this.sf=a.length;this.Lg=Pg(a[0]).width;T(Y("move-left"),S,this.bq,h,this);T(Y("move-right"),S,this.cq,h,this)}Vj.prototype.bq=function(a){a.preventDefault();a=Kg(this.rd,this.Re).x+700;50-a<700&&(a=50);(new Pj(this.rd,[a,0],300)).play();wv(this,a)};
Vj.prototype.cq=function(a){a.preventDefault();var b=Kg(this.rd,this.Re),a=-(this.sf*1.02*this.Lg-Rg(this.Re).width),b=Math.max(b.x-700,a);a-b>-(this.Lg/2)&&(b=a);(new Pj(this.rd,[b,0],300)).play();wv(this,b)};function wv(a,b){L(Y("move-left"),"disabled-shoe-arrow",b>=40);var c=-(a.sf*1.02*a.Lg-Rg(a.Re).width);L(Y("move-right"),"disabled-shoe-arrow",b<=c+40);b&&c+5*a.Lg>=b&&a.Ih()}Vj.prototype.Ih=ga;y("sop.scroller",Vj);function xv(a,b){this.Cm=b;this.Ip=m;this.Tg=Y("zoomable-shoe");this.Kf=Y("zoom-pane");this.Jf=Y("zoom-cursor");this.jr=Y("spinner")}q=xv.prototype;q.init=function(){yv();zv();Av(this);this.Tg&&(T(this.Jf,S,this.ev,h,this),T(document,"mousemove",this.iv,h,this));Bv(this);T(Y("add-to-cart"),S,function(){K(Y("loading"),"hidden")})};q.Xm=function(a,b,c){this.Ju=a;this.Nr=b;this.Or=c};q.eu=function(a,b){this.Sd=new tv(a,b)};
function Bv(a){Y("signup-btn")&&T(Y("signup-btn"),S,function(){var a=Y("email").value,c=Y("newsletter").checked;Ba(a)?alert(this.Ju):V("/members/signup",u(function(c){c=ag(c.target);c.match("account_exists")?confirm(this.Nr)?document.location="/members/login?shoe="+this.Cm+"&email="+a:Y("email").value="":(V("/shoe/"+this.Cm,k,"POST",U({mode:"saveDesigner"})),alert(this.Or),top.location=c)},this),"POST",U({generate_password:j,no_name:j,email:a,subscribe_me:c,shoe:this.Cm}))},h,a);Y("claim-shoe-close")&&
T(Y("claim-shoe-close"),S,function(a){W(a.target.parentNode,m)})}function yv(){A(Z("span","sizing-chart-link"),function(a){T(a,S,function(a){a.preventDefault();a=window.open("/content/sizing.html","sizing","height=750,width=100");window.focus&&a.focus()})})}
function zv(){var a=Z("li","tab"),b=a.length;A(a,function(a){T(a,S,function(a){for(var c=a.target.id.replace("tab",""),g=1;g<=b;){var i=g==c;L(Y("tab"+g),"selected",i);L(Y("tab-content"+g),"hidden",!i);g++}_gaq.push(["_trackPageview","/shoe/"+a.target.id])})})}function Av(a){A(Z("img","thumb"),function(a){T(a,S,function(){Cv(this,a.src.replace(/\?.*$/,""))},h,this)},a)}function Cv(a,b){K(a.jr,"hidden");var c=new Image;T(c,"load",function(){this.Tg.src=b;J(this.jr,"hidden")},h,a);c.src=b}
q.ev=function(){this.Ip=j;W(this.Kf,m);W(this.Jf,m);var a=Oc("img",{src:this.Tg.src});Jc().height<a.height?a.height>a.width?Og(a,Jc().height-50):Ng(a,Jc().height-50):Jc().width<a.width&&(a.width>a.height?Ng(a,Jc().width-50):Og(a,Jc().width-50));var a=Oc("div",k,a),b=new yh("modal-dialog",j);b.Ea(a.innerHTML);Jh(b,k);b.t(j);ge(b,Hh,function(){b.m();this.Ip=m},h,this)};
q.iv=function(a){if(!this.Sd||!this.Sd.Fc()){var b=Rg(this.Tg),c=hc(new M(a.clientX,a.clientY),Lc(document));if(b.contains(c)){W(this.Jf,j);Cg(this.Jf,gc(c,new M(50,50)));a=(c.x-b.left)/b.width;b=(c.y-b.top)/b.height;c=new Image;c.src=this.Tg.src;Pg(this.Jf);var d=Pg(this.Kf),a=-(c.width*a-d.width/2)+"px "+-(c.height*b-d.height/2)+"px";wg(this.Kf,"background-image","url("+this.Tg.src+")");wg(this.Kf,"background-position",a);Tg(this.Kf)||(new Sj(this.Kf,300)).play()}else Tg(this.Jf)&&(W(this.Jf,m),
(new Rj(this.Kf,300)).play())}};y("sop.shoe",xv);xv.prototype.init=xv.prototype.init;xv.prototype.setStrings=xv.prototype.Xm;xv.prototype.initNewsletterSample=xv.prototype.eu;function Dv(){Vj.call(this);this.sd="";this.jq="start";this.Lg=390;this.Ih()}z(Dv,Vj);Dv.prototype.Km=function(a){J(Y("loading"),"hidden");K(Y("shoes-container"),"hidden");A(a,function(a){var c=Oc("img",{src:this.sd+"/pic/shoe/"+a+".jpg",width:390,height:359,"class":"shoe"});wg(c,"cursor","pointer");T(c,S,function(){window.open("/shoe/"+a);_gaq.push(["_trackPageview","/voyeur/click"])});this.rd.appendChild(c)},this)};
Dv.prototype.Ih=function(){var a=this;V("/voyeur",function(){var b=bg(this),c=b.results;if(!(c.length<=0))a.jq=b.offset,a.sf+=c.length,wg(a.rd,"width",a.sf*500+"px"),a.Km(c),wv(a)},"POST",U({offset:this.jq}));_gaq.push(["_trackPageview","/voyeur/load"])};y("sop.voyeur",Dv);function Ev(){this.Re=Y("shoes-container");this.rd=Y("shoes-slider");this.sf=0;this.sd="";this.Lg=390;this.ie="";T(Y("move-left"),S,this.bq,h,this);T(Y("move-right"),S,this.cq,h,this);this.Gh=new vu;this.Ih()}z(Ev,Vj);Ev.prototype.Km=function(a){J(Y("loading"),"hidden");K(Y("shoes-container"),"hidden");A(a,this.Bv,this)};
Ev.prototype.Bv=function(a){var b=Oc("div",{"class":"shoe block-inline",id:a}),c=Oc("img",{src:this.sd+"/pic/shoe/"+a+".jpg","class":"shoe"});wg(c,"cursor","pointer");T(c,S,function(){window.open("/shoe/"+a);_gaq.push(["_trackPageview","/rateshoes/click"])});b.appendChild(c);wu(this.Gh,b,a);this.rd.appendChild(b)};
Ev.prototype.Ih=function(){var a=this,b=U({num_shoes:5,cursor:this.ie});V("/rateshoes",function(){var b=bg(this),d=b.results;if(!(d.length<=0))a.sf+=d.length,a.ie=b.cursor,wg(a.rd,"width",a.sf*500+"px"),a.Km(d),yu(a.Gh),wv(a)},"POST",b);_gaq.push(["_trackPageview","/rateshoes/load"])};y("sop.rating.widget",Ev);var Y=Ac,$=Fc,Z=Bc,uj=Dc;function Fv(){A(Z("input","default-text"),function(a){var b=a.value;T(a,"focus",function(){a.value=a.value==b?"":a.value;K(a,"default-text")});T(a,"blur",function(){a.value=a.value==""?b:a.value;L(a,"default-text",a.value==b)})})}
function Gv(){var a=document.location.href;Sa(a,"login-iframe")||A(Z("a"),function(b){var c=pe(b.href.match(oe)[3]||k)||pe(a.match(oe)[3]||k);Sa(c,"shoesofprey")&&!re(a,b.href)&&T(b,S,function(a){ja(Nc()._gaq)&&(a.stopPropagation(),a.preventDefault(),_gaq.push(["_link",b.href]))})})}T(Nc(),"load",function(){Fv();Gv()});function Hv(){return'<div class="leather-needle"><div class="label"><div class="leather"></div><div class="top"></div></div><img class="line" src="/img/designer/needle.gif"/></div>'};function Iv(a){var b="",a=a.em,c=a.length;if(c>0)for(var d=0;d<c;d++){var f=a[d];b+='<div id="'+cu(f.category)+'" class="material-category"><h3>'+cu(f.name)+"</h3>";for(var f=f.leathers,g=f.length,i=0;i<g;i++){var l=f[i];b+='<div class="material" id="'+cu(l.code)+'" style="background-position: '+cu(l.pos)+'"></div>'}b+='<div class="clr"></div></div>'}else b+="<p>No materials were found!</p>";b+='<div class="clr" style="height: 100px"></div>';return b}
function Jv(a){for(var b='<div id="recommendations-container"><div class="heading black-to-grey"><div class="designer-close"></div><div class="move-icon"></div>Material Recommendations</div><div class="content"><p>You\'ve chosen '+cu(a.$r)+'</p><img src="'+cu(a.gn)+"/pic/leather/"+cu(a.bu)+'.jpg" class="swatch"/><img src="'+cu(a.gn)+'/img/en/recommendations-prompt.jpg?v=2" style="padding-top: 10px"/><div style="margin-top: -5px;"><span id="match" class="category '+(a.Mk=="match"?"selected":"")+'">Matching</span> |&nbsp;<span id="contrast" class="category '+
(a.Mk=="contrast"?"selected":"")+'">Contrasting</span> |&nbsp;<span id="neutral" class="category '+(a.Mk=="neutral"?"selected":"")+'">Neutrals</span>&nbsp;<img id="blurb-link" src="'+cu(a.gn)+'/img/en/close-drawn.jpg" align="absmiddle"/></div><div style="display: block; margin: 0 auto; width: 270px;">',a=a.em,c=a.length,d=0;d<c;d++){var f=a[d];b+='<div class="recommend-material" id="'+cu(f.code)+"-"+cu(f.category)+'" style="background-position: '+cu(f.pos)+'; border: 1px solid #888"></div>'}b+='</div><div class="clr"></div></div></div><div class="clr"></div>';
return b};function Kv(a){this.za=a;this.Aj={};this.e=k}Kv.prototype.Oa=function(a){this.e=a;Lv(this.e,"um",this.Pv,this)};Kv.prototype.Pv=function(a){this.Aj=N(a,"rules")};
function Mv(a,b,c){var d=[];b.toLowerCase()=="outerupper"?(sb(d,N(a.Aj,"ToeTop",[])),sb(d,N(a.Aj,"BackSide",[]))):d=qb(N(a.Aj,b,[]));a=c==Nv;sb(d,Sa(b.toLowerCase(),"buckle")?"+buckle":"-buckle");sb(d,b=="zipper"?"+zipper":"-zipper");sb(d,b=="outsole"?"+sole":"-sole");sb(d,b=="insole"?"+lining":"-lining");sb(d,b=="heel"&&a?"":"-cork");return d}
function Ov(a,b){var c=Mv(a,b);return B(c,"+buckle")?"MB02":B(c,"+zipper")?"ZIP08":B(c,"+sole")?"BlackSole":B(c,"+lining")?"BlackLining":b=="toesole"?"ML14":B(c,"+silk")?"IS600":"ML15"}function Pv(a,b){var c={};kc(a.za,function(a){A(a.leathers,function(f){f.code==b&&(c={category:a.category,catName:a.name,name:f.name,code:f.code,pos:f.pos})})});return c}function Qv(a){return jb(a,function(a){return xa(a,"+")})};function Rv(){for(var a=Sv,b=[],c=0;c<a;c++)b[c]=k;this.elements=b;this.index=3}function Tv(a){var b=0;A(a.elements,function(a){Ca(a)||b++});return b/a.elements.length*100}function Uv(a,b,c){var b=ea(b)?b:a.index,c=c||1,d=b+c;return d>a.elements.length-1?c-(a.elements.length-1-b)-1:d}function Vv(a,b){var c=ea(b)?b:a.index;return c==0?a.elements.length-1:c-1}
function Wv(a){for(var b=[[a.index]],c=[a.index],d=[],f=a.index,g=Math.floor((a.elements.length-1)/2),i=0;c.length<a.elements.length;){i++;if(i>a.elements.length*5)break;f=Uv(a,f,i<=g?2:1);B(c,f)||(c.push(f),d.push(f));i==g&&(b.push(d),d=[])}d.length==0||b.push(d);return b};function Xv(a,b,c){this.k=c||(a?O(Ac(a)):O());gv.call(this,this.k.f("div",{style:"position:absolute;display:none;"}));this.Wk=new M(1,1);this.Q=new Ue;a&&this.yd(a);b!=k&&Yv(this,b)}z(Xv,gv);var Zv=[];q=Xv.prototype;q.zb=k;q.className="goog-tooltip";q.dr=500;q.Xt=0;q.q=o("k");q.yd=function(a){a=Ac(a);this.Q.add(a);T(a,"mouseover",this.ne,m,this);T(a,"mouseout",this.dj,m,this);T(a,"mousemove",this.kp,m,this);T(a,"focus",this.me,m,this);T(a,"blur",this.dj,m,this)};
q.detach=function(a){if(a)a=Ac(a),$v(this,a),this.Q.remove(a);else{for(var b=this.Q.Za(),c=0;a=b[c];c++)$v(this,a);this.Q.clear()}};function $v(a,b){he(b,"mouseover",a.ne,m,a);he(b,"mouseout",a.dj,m,a);he(b,"mousemove",a.kp,m,a);he(b,"focus",a.me,m,a);he(b,"blur",a.dj,m,a)}function Yv(a,b){id(a.b(),b)}q.Tm=function(a){this.b().innerHTML=a};q.Rm=function(a){var b=this.b();b&&Q(b);Xv.c.Rm.call(this,a);if(a)b=this.k.T().body,b.insertBefore(a,b.lastChild)};q.le=function(){return nd(this.b())};
q.cj=function(){return this.De?this.B()?4:1:this.th?3:this.B()?2:0};q.qm=function(){if(!qh.prototype.qm.call(this))return m;if(this.anchor)for(var a,b=0;a=Zv[b];b++)cd(a.b(),this.anchor)||a.t(m);nb(Zv,this);a=this.b();a.className=this.className;aw(this);T(a,"mouseover",this.qp,m,this);T(a,"mouseout",this.pp,m,this);bw(this);return j};
q.rm=function(){ob(Zv,this);for(var a=this.b(),b,c=0;b=Zv[c];c++)b.anchor&&cd(a,b.anchor)&&b.t(m);this.wq&&cw(this.wq);he(a,"mouseover",this.qp,m,this);he(a,"mouseout",this.pp,m,this);this.anchor=h;if(this.cj()==0)this.Zj=m;qh.prototype.rm.call(this)};q.Xp=function(a,b){if(this.anchor==a&&this.Q.contains(this.anchor))if(this.Zj||!this.Oy){if(this.t(m),!this.B())this.anchor=a,this.Sc(b||dw(this,0)),this.t(j)}else this.anchor=h;this.De=h};q.bf=o("Q");
q.zu=function(a){this.th=h;a==this.anchor&&(this.zb==k||this.zb!=this.b()&&!this.Q.contains(this.zb))&&(!this.ho||!this.ho.zb)&&this.t(m)};function ew(a,b){var c=vd(a.k);a.Wk.x=b.clientX+c.x;a.Wk.y=b.clientY+c.y}q.ne=function(a){var b=fw(this,a.target);this.zb=b;aw(this);if(b!=this.anchor){this.anchor=b;if(!this.De)this.De=Be(u(this.Xp,this,b,h),this.dr);gw(this);ew(this,a)}};function fw(a,b){try{for(;b&&!a.Q.contains(b);)b=b.parentNode;return b}catch(c){return k}}
q.kp=function(a){ew(this,a);this.Zj=j};q.me=function(a){this.zb=a=fw(this,a.target);this.Zj=j;if(this.anchor!=a){this.anchor=a;var b=dw(this,1);aw(this);if(!this.De)this.De=Be(u(this.Xp,this,a,b),this.dr);gw(this)}};function dw(a,b){if(b==0){var c=a.Wk.U();return new hw(c)}return new iw(a.zb)}function gw(a){if(a.anchor)for(var b,c=0;b=Zv[c];c++)if(cd(b.b(),a.anchor))b.ho=a,a.wq=b}
q.dj=function(a){var b=fw(this,a.target),c=fw(this,a.relatedTarget);if(b!=c){if(b==this.zb)this.zb=k;bw(this);this.Zj=m;this.B()&&(!a.relatedTarget||!cd(this.b(),a.relatedTarget))?cw(this):this.anchor=h}};q.qp=function(){var a=this.b();if(this.zb!=a)aw(this),this.zb=a};q.pp=function(a){var b=this.b();if(this.zb==b&&(!a.relatedTarget||!cd(b,a.relatedTarget)))this.zb=k,cw(this)};function bw(a){if(a.De)Ce(a.De),a.De=h}function cw(a){if(a.cj()==2)a.th=Be(u(a.zu,a,a.anchor),a.Xt)}
function aw(a){if(a.th)Ce(a.th),a.th=h}q.d=function(){this.t(m);bw(this);this.detach();this.b()&&Q(this.b());this.zb=k;delete this.k;Xv.c.d.call(this)};function hw(a,b){fv.call(this,a,b)}z(hw,fv);hw.prototype.na=function(a,b,c){b=Eg(a);b=Hg(b);c=c?new ig(c.top+10,c.right,c.bottom,c.left+10):new ig(10,0,0,10);lo(this.he,a,4,c,b,9)&496&&lo(this.he,a,4,c,b,5)};function iw(a){vr.call(this,a,3)}z(iw,vr);
iw.prototype.na=function(a,b,c){var d=new M(10,0);ko(this.element,this.Ji,a,b,d,c,9)&496&&ko(this.element,2,a,1,d,c,5)};function jw(){this.pe=m;this.ce=new Xv;this.ce.className="materials-tooltip";dh.call(this)}z(jw,dh);q=jw.prototype;q.Oa=function(a){this.e=a;Lv(this.e,"sc",this.$d,this)};function kw(a){var b=Math.min(a.se.x,a.ve.x),a=Math.min(a.se.y,a.ve.y);return new M(b,a-15)}q.position=function(){var a=kw(this),b=new M(0,0);switch(this.orientation()){case 4:b=new M(15,-15);break;case 3:b=new M(15,15);break;case 1:b=new M(30,0);break;case 2:b=new M(0,0)}return gc(a,b)};
q.orientation=function(){return lw(this)?this.ve.y<this.se.y?4:3:this.ve.x<this.se.x?2:1};function lw(a){return a.se.x==a.ve.x}function mw(a){var b=fc(a.se,a.ve);return lw(a)?new ic(1,b):new ic(b,1)}q.f=function(){this.j=bu(Hv);W(this.b(),m);var a=$("label",this.j);this.ce.yd(a);T(a,S,function(){this.e.Aa("sc",this.Pk,this.zj.code)},h,this)};q.$d=function(a){var b=$("top",this.b());this.pe=a==this.Pk;wg(b,"backgroundPosition","0 "+(this.pe?"-30px":"0"))};function nw(){this.Q=[]}q=nw.prototype;q.Kd=0;q.Bf=0;function ow(a,b){a.Q[a.Bf++]=b}function pw(a){if(a.Kd!=a.Bf){var b=a.Q[a.Kd];delete a.Q[a.Kd];a.Kd++;return b}}q.xa=function(){return this.Bf-this.Kd};q.Hc=function(){return this.Bf-this.Kd==0};q.clear=function(){this.Bf=this.Kd=this.Q.length=0};q.contains=function(a){return B(this.Q,a)};q.remove=function(a){a=fb(this.Q,a);if(a<0)return m;a==this.Kd?pw(this):(eb.splice.call(this.Q,a,1),this.Bf--);return j};
q.Za=function(){return this.Q.slice(this.Kd,this.Bf)};function qw(a,b){this.Yp=a||0;this.qf=b||10;this.Yp>this.qf&&e(Error(rw));this.Ya=new nw;this.Ec=new Ue;this.zs=0;this.Wl=k;sw(this)}z(qw,zd);var rw="[goog.structs.Pool] Min can not be greater than max";q=qw.prototype;q.cf=function(){var a=va();if(!(ea(this.Wl)&&a-this.Wl<this.zs)){for(var b;this.Ya.xa()>0;)if(b=pw(this.Ya),tw(b))break;else sw(this);!b&&this.xa()<this.qf&&(b=this.Tf());if(b)this.Wl=a,this.Ec.add(b);return b}};
q.Wd=function(a){return this.Ec.remove(a)?(this.Ec.remove(a),tw(a)&&this.xa()<this.qf?ow(this.Ya,a):this.Xf(a),j):m};function sw(a){for(var b=a.Ya;a.xa()<a.Yp;)ow(b,a.Tf());for(;a.xa()>a.qf&&a.Ya.xa()>0;)a.Xf(pw(b))}q.Tf=function(){return{}};q.Xf=function(a){if(typeof a.m=="function")a.m();else for(var b in a)a[b]=k};function tw(a){return typeof a.es=="function"?a.es():j}q.contains=function(a){return this.Ya.contains(a)||this.Ec.contains(a)};q.xa=function(){return this.Ya.xa()+this.Ec.xa()};
q.Hc=function(){return this.Ya.Hc()&&this.Ec.Hc()};q.d=function(){qw.c.d.call(this);this.Ec.xa()>0&&e(Error("[goog.structs.Pool] Objects not released"));delete this.Ec;for(var a=this.Ya;!a.Hc();)this.Xf(pw(a));delete this.Ya};function uw(a,b){this.Re=a;this.e=b;qw.call(this,4,20)}z(uw,qw);function vw(a){a.Ec.xa()&&A(a.Ec.Za(),function(a){this.Wd(a)},a)}uw.prototype.Tf=function(){var a=new jw;a.Oa(this.e);a.Pa(this.Re);return a};uw.prototype.Wd=function(a){W(a.b(),m);return uw.c.Wd.call(this,a)};function ww(a,b,c){lg.call(this,a,b,c);Lb&&a.addEventListener("touchstart",u(this.fw,this))}z(ww,lg);
ww.prototype.fw=function(a){if(a.targetTouches.length!=1)return m;this.fi=a.targetTouches[0].clientX;this.gi=a.targetTouches[0].clientY;this.clientX=this.fi;this.clientY=this.gi;this.Ue=this.target.offsetLeft;this.xc=this.target.offsetTop;this.Oj=vd(O(this.ba));this.aq=va();var b=this;this.handle.addEventListener("touchmove",function(a){return xw(b,a)},m);this.handle.addEventListener("touchend",function(a){return yw(b,a)},m);return m};
function xw(a,b){b.preventDefault();if(b.targetTouches.length!=1)return m;var c=b.targetTouches[0].clientX-a.clientX,d=b.targetTouches[0].clientY-a.clientY;a.clientX=b.targetTouches[0].clientX;a.clientY=b.targetTouches[0].clientY;if(!a.zc){var f=a.fi-a.clientX,g=a.gi-a.clientY;if(f*f+g*g>a.Kl&&(pg(a,b),!a.zc)){a.$f(b);return}}d=tg(a,c,d);c=d.x;d=d.y;a.zc&&a.dispatchEvent(new qg("beforedrag",a,b.clientX,b.clientY,b,c,d))!==m&&(ug(a,b,c,d),b.preventDefault())}
function yw(a,b){b.preventDefault();if(b.targetTouches.length>0)return m;a.handle.removeEventListener("touchmove",function(b){return xw(a,b)},m);a.handle.removeEventListener("touchend",function(b){return yw(a,b)},m);a.$f(b);return m};function zw(a){this.j=a;this.Np=T(this.j,E?"DOMMouseScroll":"mousewheel",this)}z(zw,xe);
zw.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.wa;if(a.type=="mousewheel"){c=1;if(D||G&&(Fb||I("532.0")))c=40;d=G&&Eb&&-a.wheelDelta%c!=0?-a.wheelDelta:-a.wheelDelta/c;ja(a.wheelDeltaX)?(b=G&&Eb&&-a.wheelDeltaX%c!=0?-a.wheelDeltaX:-a.wheelDeltaX/c,c=G&&Eb&&-a.wheelDeltaY%c!=0?-a.wheelDeltaY:-a.wheelDeltaY/c):c=d}else d=a.detail,d>100?d=3:d<-100&&(d=-3),ja(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;ma(this.Vp)&&(b=Math.min(Math.max(b,-this.Vp),this.Vp));ma(this.Wp)&&(c=Math.min(Math.max(c,
-this.Wp),this.Wp));b=new Aw(d,a,b,c);try{this.dispatchEvent(b)}finally{b.m()}};zw.prototype.d=function(){zw.c.d.call(this);je(this.Np);delete this.Np};function Aw(a,b,c,d){b&&this.init(b,h);this.type="mousewheel";this.detail=a;this.Ue=c;this.xc=d}z(Aw,Kd);function Bw(a,b){$q.call(this,a,b);this.si=j;this.nc(j);this.t(m,j);this.Wc=new Pe}z(Bw,$q);q=Bw.prototype;q.ur=m;q.Jp=0;q.qo=k;q.Va=function(a){Bw.c.Va.call(this,a);(a=a.getAttribute("for")||a.htmlFor)&&this.yd(this.q().b(a),1)};q.W=function(){Bw.c.W.call(this);Ge(this.Wc,this.Ln,this);var a=this.ca();a.h(this,"action",this.om);a.h(this.q().T(),"mousedown",this.lq,j);G&&a.h(this.q().T(),"contextmenu",this.lq,j)};
q.yd=function(a,b,c,d,f){if(!a||!this.Wc.sb(pa(a)))a?(b={j:a,pr:b,Au:c,Io:d?"contextmenu":"mousedown",Tp:f},this.Wc.set(pa(a),b),a=b):a=k,this.N&&this.Ln(a)};q.Ln=function(a){this.ca().h(a.j,a.Io,this.Lj)};q.detach=function(a){(!a||!this.Wc.sb(pa(a)))&&e(Error("Menu not attached to provided element, unable to detach."));a=pa(a);if(this.N){var b=this.Wc.get(a);this.ca().Sa(b.j,b.Io,this.Lj)}this.Wc.remove(a)};
q.kk=function(a,b,c){b=ja(a.pr)?new wr(a.j,a.pr,j):new ev(b,c);b.Yq&&b.Yq(5);var d=a.Au,c=a.Tp,f=a.j;if(((a=this.B())||va()-this.Jp<150)&&this.ur)this.gb();else if(this.qo=f||k,this.dispatchEvent("beforeshow")){d=typeof d!="undefined"?d:4;if(!a)this.b().style.visibility="hidden";W(this.b(),j);b.na(this.b(),d,c);if(!a)this.b().style.visibility="visible";this.pb(-1);this.t(j)}};q.gb=function(){if(this.B()&&(this.t(m),!this.B()))this.Jp=va(),this.qo=k};q.om=function(){this.gb()};
q.Lj=function(a){for(var b=this.Wc.dd(),c=0;c<b.length;c++){var d=this.Wc.get(b[c]);if(d.j==a.currentTarget){this.kk(d,a.clientX,a.clientY);a.preventDefault();a.stopPropagation();break}}};q.lq=function(a){this.B()&&!this.ge(a.target)&&this.gb()};q.Nb=function(a){Bw.c.Nb.call(this,a);this.gb()};q.d=function(){Bw.c.d.call(this);this.Wc&&(this.Wc.clear(),delete this.Wc)};function Cw(){this.e=this.mb=k;this.vb={};this.br={};this.kf=m;Bw.call(this)}z(Cw,Bw);q=Cw.prototype;q.md=function(){var a=Z("div","designer-close",this.b());a.length!=0&&(a=a[0],T(a,S,this.gb,h,this),Dw(this,a))};q.Oa=function(a){this.e=a;Lv(this.e,"um",this.oc,this);Lv(this.e,"ns",this.oc,this)};q.oc=function(a,b){this.vb=a;if(ea(b))this.br=b};
function Dw(a,b){var c=a.s(),d=Oc("div",{"class":"designer-scroller"});Xc(d,b);var f=Pg(a.b()),f=new jg(f.width-8,30,0,f.height-80);a.mb=new ww(d,k,f);Cg(d,f.left,f.top);T(a.mb,"drag",function(a){a.preventDefault();a.stopPropagation();var a=Math.round(100*(a.top-a.Xe.od.top)/a.Xe.od.height),b=c.scrollHeight-Pg(c).height;c.scrollTop=b/100*a});d=new zw(c);T(d,"mousewheel",function(a){a.stopPropagation();a.preventDefault();c.scrollTop+=a.xc*5;this.jn()},h,a)}
q.jn=function(){var a=this.s(),b=this.mb.od,c=a.scrollHeight-Pg(a).height;vg(this.mb,b.left,b.top+b.height*(a.scrollTop/c))};q.ic=function(){var a=j;if(this.mb!==k)var a=this.s(),b=Pg(a).height+50,a=a.scrollHeight>b;L(this.mb.target,"hidden",!a)};q.kk=function(a,b,c){Cw.c.kk.call(this,a,b,c);this.ic()};q.gb=function(){Cw.c.gb.call(this);if(this.mb!==k){var a=this.mb.od;vg(this.mb,a.left,a.top)}};q.jd=aa();function Ew(a){this.yg=a;this.Bg=k;Cw.call(this);this.md()}z(Ew,Cw);q=Ew.prototype;q.md=function(){this.yi=Y(this.yg);var a=Y(this.yg+"-container");this.mu=Y(this.yg+"-menu-items");this.ur=j;this.Z(a);this.yd(this.yi,1,0);T(window,"resize",this.gb,h,this);Ew.c.md.call(this)};q.oc=function(a,b){Ew.c.oc.call(this,a,b);this.Bg=N(this.vb,"pattern_id")};q.Lj=function(a){this.kf||Ew.c.Lj.call(this,a)};q.s=o("mu");q.Nb=aa();
Cw.prototype.om=function(a){if(ea(a)&&(a=a.target.qa(),a!=this.Bg))this.Bg=a,this.e.Aa("cp",this.Bg);this.gb()};function Fw(){this.sk=Y("trimming");this.yj=Y("maryjane");Ew.call(this,"decoration")}z(Fw,Ew);Fw.prototype.md=function(){Fw.c.md.call(this);Gw(this)};function Gw(a){var b=D&&I("6")?S:"change";T(a.sk,b,function(){this.e.Aa("co",Hw,this.sk.checked)},h,a);T(a.yj,b,function(){this.e.Aa("co",Iw,this.yj.checked)},h,a)}Fw.prototype.oc=function(a,b){Fw.c.oc.call(this,a,b);if(ja(b))this.sk.checked=N(b,Hw),this.yj.checked=N(b,Iw);Jw(this);L(this.yi,"disabled-button",m);this.ic()};
function Jw(a){A(["Trimming","MaryJane"],function(a){var b,c;a=="Trimming"?(b=this.sk,c=Hw):(b=this.yj,c=Iw);a=N(this.vb,a.toLowerCase(),m);if(!a)b.checked=m,this.e.Aa("co",c,m);b.disabled=!a;L(b.parentNode,"disabled-menu-option",!a)},a);var b=N(a.vb,"decorations"),c=0;A($c(Y("decoration-menu-items")),function(a){if(!dc(a,"clr")){var f=a.id;if(f!="none"){var g=m;B(b,f)&&(g=j,c++);L(a,"hidden",!g)}}},a);L(a.b(),"menu-min-height",c>2);L(a.s(),"hidden",c==0)}Fw.prototype.Nb=aa();
Fw.prototype.om=function(a){ea(a)&&(a=gh(a.target)=="none"?k:gh(a.target),this.e.Aa("co",Kw,a));this.gb()};function Lw(){Ew.call(this,"toe")}z(Lw,Ew);var Mw={Toe0627:0,Toe0309:1,Toe0655:2,Toe0750:3,Toe0445:4,Toe0390:5,Toe2268:6,Toe2279:7,AnkleScratchCT:8};
Lw.prototype.oc=function(a){Lw.c.oc.call(this,a);this.Jm(j);var b=[],c=[],d=this.vb.selected[1];kc(this.vb.options,function(a,g){var i=a[0],l=a[1];if(!Ca(l))if(Ca(d)){if(l!="Back0309")return}else if(d!=l)return;B(b,i)||(nb(b,i),l=Oc("img",{src:"/img/patterns/"+i+".jpg?v=3",title:g,"class":g==this.Bg?"selected-component":""}),nb(c,{index:N(Mw,i,100),item:new Oq(l,g)}))},this);xb(c);A(c,function(a){this.Ab(N(a,"item"),j)},this);this.ic()};function Nw(){Ew.call(this,"back")}z(Nw,Ew);Nw.prototype.oc=function(a){Nw.c.oc.call(this,a);this.Jm(j);var a=[],b=this.vb.selected[0],c;for(c in this.vb.options){var d=this.vb.options[c][1];this.vb.options[c][0]!=b||Ba(d)||B(a,d)||(a.push(d),d=Oc("img",{src:"/img/patterns/"+d+".jpg?v=3",title:c,"class":c==this.Bg?"selected-component":""}),this.Ab(new Oq(d,c),j))}this.kf=a.length<2;L(this.yi,"disabled-button",this.kf);this.ic()};function Zt(a){for(var b=[],c=Ow,d=a.elements,f,g=0;f=d[g];g++)if(!(f.disabled||f.tagName.toLowerCase()=="fieldset")){var i=f.name;switch(f.type.toLowerCase()){case "file":case "submit":case "reset":case "button":break;case "select-multiple":f=lt(f);if(f!=k)for(var l,n=0;l=f[n];n++)c(b,i,l);break;default:l=lt(f),l!=k&&c(b,i,l)}}d=a.getElementsByTagName("input");for(g=0;f=d[g];g++)if(f.form==a&&f.type.toLowerCase()=="image")i=f.name,c(b,i,f.value),c(b,i+".x","0"),c(b,i+".y","0");return b.join("&")}
function Ow(a,b,c){a.push(encodeURIComponent(b)+"="+encodeURIComponent(c))}function lt(a){var b=a.type;if(!ja(b))return k;switch(b.toLowerCase()){case "checkbox":case "radio":return a.checked?a.value:k;case "select-one":return b=a.selectedIndex,b>=0?a.options[b].value:k;case "select-multiple":for(var b=[],c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:k;default:return ja(a.value)?a.value:k}}
function mt(a,b){var c=a.type;if(ja(c))switch(c.toLowerCase()){case "checkbox":case "radio":a.checked=b?"checked":k;break;case "select-one":a.selectedIndex=-1;if(t(b))for(var d=0;c=a.options[d];d++)if(c.value==b){c.selected=j;break}break;case "select-multiple":c=b;t(c)&&(c=[c]);for(var f=0;d=a.options[f];f++)if(d.selected=m,c)for(var g,i=0;g=c[i];i++)if(d.value==g)d.selected=j;break;default:a.value=ea(b)?b:""}};function Pw(){this.Pb=this.Qc=k;this.Fl=Y("heeltype");this.fj=Y("heelheight");this.mi=m;Ew.call(this,"heel")}z(Pw,Ew);q=Pw.prototype;q.md=function(){Pw.c.md.call(this);T(this.Fl,"change",this.hs,h,this);T(this.fj,"change",this.gs,h,this)};q.Ym=ba("mi");
q.oc=function(a,b){Pw.c.oc.call(this,a);var c=!ja(b);if(ja(b))this.Pb=Xa(N(b,Qw)),this.Qc=N(b,Rw),mt(this.Fl,this.Qc);else{var d=N(this.vb,"heights");if(B(d,0))this.kf=j;else if(!B(d,this.Pb))this.Pb=Math.max.apply(Math,d),c=j,this.kf=m}this.kf||Sw(this,c);L(this.yi,"disabled-button",this.kf)};
q.hs=function(){this.Qc=this.Fl.value;var a,b=N(this.vb,"heel_heights");this.Qc==Nv&&(this.Pb==3.5||this.Pb==4.5)?a=mb(b,function(a){return a.inches!=3.5&&a.inches!=4.5}):(this.Qc==Tw||this.Qc==Uw)&&this.Pb==4?a=mb(b,function(a){return a.inches!=4}):this.Qc==Uw&&this.Pb<=2&&(a=lb(b,function(a){return a.inches>2}));a?(this.e.Aa("co",Rw,this.Qc,m),this.e.Aa("cp",a.pattern)):this.e.Aa("co",Rw,this.Qc)};
q.gs=function(){var a=N(this.vb,"pattern_id"),b=this.fj.value.split("::"),c=b[0];this.Pb=Xa(b[1]);a=ea(c)&&c!=a;this.e.Aa("co",Qw,this.Pb,!a);a&&this.e.Aa("cp",c)};
function Sw(a,b){var c=N(a.vb,"pattern_id");Vc(a.fj);A(N(a.vb,"heel_heights"),function(a){var b=N(a,"pattern"),a=Xa(N(a,"inches"));if(this.Qc==Nv){if(a==3.5||a==4.5)return}else{if(a==4)return;if(a<=2&&this.Qc==Uw)return}var g,i;this.mi?(g=Math.round(a*25.4)/10,i=" cm"):(g=a,i=" inches");g=(g+i).replace(".5","\u00bd");g=Oc("option",{value:b+"::"+a},g);this.fj.appendChild(g);if(b==c&&(this.Pb===k||this.Pb==a))g.selected=j,this.Pb=a},a);b&&a.e.Aa("co",Qw,a.Pb,m)}q.Nb=aa();function Vw(){Cw.call(this);this.za=k}z(Vw,Cw);q=Vw.prototype;q.Yh=ba("za");q.Oa=function(a){Vw.c.Oa.call(this,a);Lv(this.e,"sc",this.fv,this)};q.init=function(){Ww(this);var a=bu(Iv,{em:this.za.za});this.s().innerHTML=a.innerHTML;Xw(this,uj("material"));T(Nc(),"resize",this.Yu,h,this);Vw.c.md.call(this)};
q.zp=function(a){var b=m,c=a.id;c.indexOf("-")!=-1&&(b=j,c=c.replace(/-[a-z]*$/,""));var d=new Xv;d.className="materials-tooltip";var f=Pv(this.za,c).catName,g=Pv(this.za,c).name;Yv(d,f+" - "+g);d.yd(a);T(a,S,function(){Yw(this,c);this.e.Aa("cm",c,b)},h,this)};function Xw(a,b){A(b,a.zp,a)}q.Yu=function(){this.gb();Ww(this)};
function Ww(a){var b=Rg(Y("designer-player")),c=Pg(a.b()),b=new jg(b.left+25,b.top,b.width-c.width-50,b.height-c.height);ea(a.Db)?ng(a.Db,b):(c=$("heading",a.b()),a.Db=new ww(a.b(),c,b))}q.fv=function(a,b){Zw(this,a);this.B()||this.t(j);b&&Yw(this,b);this.ic()};
function Zw(a,b){var c=Mv(a.za,b,N(a.br,Rw)),d=Qv(c);A(uj("material-category",a.s()),function(a){d?L(a,"hidden",!B(c,"+"+a.id)):L(a,"hidden",B(c,"-"+a.id))});A(Z("div","recommend-material"),function(a){var b=a.id.split("-")[1],b=d?!B(c,"+"+b):B(c,"-"+b);L(a,"inactive",b);le(a);b?T(a,S,function(){alert("This material can not be used on the selected component.")}):this.zp(a)},a)}function Yw(a,b){A(uj("selected-material",a.s()),function(a){K(a,"selected-material")});J(Y(b),"selected-material")}q.b=function(){return Y("materials-menu")};
q.s=function(){return Y("materials-menu-items")};function $w(a){return String.fromCharCode.apply(k,a)};var ax=k,bx=k,cx=k;function dx(a){ex();for(var b=cx,c=[],d=0;d<a.length;){var f=b[a.charAt(d++)],g=d<a.length?b[a.charAt(d)]:0;++d;var i=d<a.length?b[a.charAt(d)]:0;++d;var l=d<a.length?b[a.charAt(d)]:0;++d;(f==k||g==k||i==k||l==k)&&e(Error());c.push(f<<2|g>>4);i!=64&&(c.push(g<<4&240|i>>2),l!=64&&c.push(i<<6&192|l))}return c}
function ex(){if(!ax){ax={};bx={};cx={};for(var a=0;a<65;a++)ax[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),bx[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),cx[bx[a]]=a}};function fx(a,b){return a.dataset?b in a.dataset:a.hasAttribute?a.hasAttribute("data-"+ab(b)):!!a.getAttribute("data-"+ab(b))};function gx(){}z(gx,xe);q=gx.prototype;q.Hf=0;q.Lh=0;q.gm=100;q.No=0;q.hn=1;q.hu=m;q.Eu=m;q.ta=function(a){a=hx(this,a);if(this.Hf!=a)this.Hf=a+this.No>this.gm?this.gm-this.No:a<this.Lh?this.Lh:a,!this.hu&&!this.Eu&&this.dispatchEvent("change")};q.qa=function(){return hx(this,this.Hf)};q.bj=function(){return hx(this,this.Lh)};q.aj=function(){return hx(this,this.gm)};function hx(a,b){return a.hn==k?b:a.Lh+Math.round((b-a.Lh)/a.hn)*a.hn};function ix(a){dh.call(this,a);this.Dg=new gx;T(this.Dg,"change",this.bt,m,this)}z(ix,dh);var jx={vertical:"progress-bar-vertical",horizontal:"progress-bar-horizontal"};q=ix.prototype;q.f=function(){this.Rb=kx(this);var a=jx[this.nb];this.j=this.q().f("div",a,this.Rb);lx(this);dg(this.b(),"valuemin",this.bj());dg(this.b(),"valuemax",this.aj())};q.W=function(){ix.c.W.call(this);D&&Pb<7&&T(this.b(),"resize",this.li,m,this);this.li();cg(this.b(),"progressbar");dg(this.b(),"live","polite")};
q.Wa=function(){ix.c.Wa.call(this);mx(this)};function kx(a){return a.q().f("div","progress-bar-thumb")}function mx(a){D&&Pb<7&&he(a.b(),"resize",a.li,m,a)}q.Va=function(a){ix.c.Va.call(this,a);J(this.b(),jx[this.nb]);a=Bc(k,"progress-bar-thumb",this.b())[0];a||(a=kx(this),this.b().appendChild(a));this.Rb=a};q.qa=function(){return this.Dg.qa()};q.ta=function(a){this.Dg.ta(a);this.b()&&lx(this)};function lx(a){dg(a.b(),"valuenow",a.qa())}q.bj=function(){return this.Dg.bj()};q.aj=function(){return this.Dg.aj()};
q.nb="horizontal";q.bt=function(){this.li();this.dispatchEvent("change")};q.li=function(){if(this.Rb){var a=this.bj(),b=this.aj(),a=(this.qa()-a)/(b-a),b=Math.round(a*100);this.nb=="vertical"?D&&Pb<7?(this.Rb.style.top=0,this.Rb.style.height="100%",b=this.Rb.offsetHeight,a=Math.round(a*b),this.Rb.style.top=b-a+"px",this.Rb.style.height=a+"px"):(this.Rb.style.top=100-b+"%",this.Rb.style.height=b+"%"):this.Rb.style.width=b+"%"}};
q.Zh=function(a){if(this.nb!=a){var b=jx[this.nb],c=jx[a];this.nb=a;if(this.b()){for(var a=this.b(),d=cc(a),f=m,g=0;g<d.length;g++)d[g]==b&&(tb(d,g--,1),f=j);if(f)d.push(c),a.className=d.join(" ");b=this.Rb.style;this.nb=="vertical"?(b.left=0,b.width="100%"):(b.top=b.left=0,b.height="100%");this.li()}}};q.d=function(){mx(this);ix.c.d.call(this);this.Rb=k;this.Dg.m()};var Hw="ht",Iw="hmj",Kw="di",Rw="hlt",Qw="hls",Tw="stiletto",Uw="thick",Nv="wedge";
function nx(){this.Ld=new Ju;this.$={};this.$.pid=k;this.$[Hw]=m;this.$[Iw]=m;this.$[Kw]=k;this.$[Rw]=Tw;this.$[Qw]=k;this.$.hp=m;this.ze={};this.za=k;this.Ob={insole:"BlackLining",outsole:"BlackSole"};this.Pc="";this.cm=0;this.Dc=new Rv;this.vj=new nw;this.Xa=Y("frame");this.pf=Y("designer-loading");this.fm=Y("materials-menu");this.$g=-1;this.wp=0;this.Rk=m;this.Bm=new ix;this.Bm.Z(Y("progress-bar"));this.ha={};this.Qe=k;this.pn=this.Dl=m;this.rr=Y("three-ds-content");this.qr=m}q=nx.prototype;
q.bi=ba("ha");function ox(a,b,c){b=ja(b)?b:j;c=c||m;L($("creating-message",a.pf),"hidden",c);L($("saving-message",a.pf),"hidden",!c);L(a.pf,"hidden",!b);b&&px(a)}q.qd=function(a,b,c){ja(c)||(c=j);if(b!=N(this.$,a)&&!(Ca(b)&&a!=Kw))this.$[a]=b,a==Qw&&qx(this),a==Rw&&b!=Nv&&N(this.Ob,"heel","").toLowerCase()=="cork"&&(this.Ob.heel=Ov(this.za,"heel")),this.Pc&&this.e.Aa("sc",this.Pc,N(this.Ob,this.Pc)),c&&rx(this)};function sx(a){var b=tx(a)==3.5||tx(a)==4.5;a.qd("hp",b,m);return b}
function tx(a){a=N(a.$,Qw);return a===k?k:Xa(a)}q.ar=ba("Pc");q.Yh=ba("za");q.Oa=function(a){this.e=a;Lv(this.e,"um",this.Sv,this);Lv(this.e,"cm",this.ks,this);Lv(this.e,"sc",this.ar,this);Lv(this.e,"co",this.qd,this)};
function ux(a){for(var b=wf({o:a.$,p:a.Ob}),c=[],d=0,f=0;f<b.length;f++){for(var g=b.charCodeAt(f);g>255;)c[d++]=g&255,g>>=8;c[d++]=g}la(c)||e(Error("encodeByteArray takes an array as a parameter"));ex();b=bx;d=[];for(f=0;f<c.length;f+=3){var i=c[f],l=(g=f+1<c.length)?c[f+1]:0,n=f+2<c.length,r=n?c[f+2]:0,v=i>>2,i=(i&3)<<4|l>>4,l=(l&15)<<2|r>>6;r&=63;n||(r=64,g||(l=64));d.push(b[v],b[i],b[l],b[r])}Wu(a.Ld,d.join(""));a.e.Aa("ns",a.ze,a.$)}
q.Fu=function(a){var b=N(this.ze,"pattern_id");if(Ca(a.Pg))return Nc().location="/3d";if(xa(a.Pg,"p="))b="/?"+a.Pg,(a=ue(b,"h"))&&this.qd(Rw,a,m),(a=ue(b,"s"))&&this.qd(Qw,Xa(a),m),(a=ue(b,"d"))&&B(vx,a)&&this.qd(Kw,a,m),this.e.Aa("cp",ue(b,"p"),this.$);else if(xa(a.Pg,"s="))wx(this,a.Pg.replace("s=",""));else{var a=$w(dx(a.Pg)),c=vf(a),a=c.o,c=c.p,d=N(a,"pid");if(d!=b)this.$=a,this.Ob=c,this.e.Aa("cp",d);else if((b=mc(a,function(a,b){return N(this.$,b)==a},this))&&(b=mc(c,function(a,b){return N(this.Ob,
b)==a},this)),!b)this.$=a,this.Ob=c,rx(this)}};
q.start=function(){if(Y("chat-content")&&!fx(Y("chat-content"),"style")&&!this.Dl){Y("chat-content").removeAttribute("style");this.Dl=j;this.Qe=new xx(this);this.Qe.bi(this.ha);var a=this.Qe,b=tj.get("ci");b?a.Of=b:V("/3d/designer/chat",u(a.ct,a),"POST",U({mode:"getChatId"}));this.Qe.Oa(this.e);yx(this.Qe)}zx();this.lm=new zw(this.Xa.parentNode);this.tj();T(window,"focus",this.tj,h,this);Ax(this);Bx(this);Cx(this);T(this.Xa.parentNode,[S,"mousemove"],this.el,h,this);Dx(this);T(this.fm,"mouseover",
this.el,h,this);Ex(this);Fx(this);T(this.Ld,"navigate",this.Fu,h,this);this.Ld.Ia(j)};function zx(){if(!tj.get("3d-intro")){var a=Y("designer-intro");K(a,"hidden");var b=Rg(Y("designer-player")),c=Pg(a),b=new jg(b.left+25,b.top,b.width-c.width-50,b.height-c.height),d=new lg(a,$("postit",a),b);ge($("designer-close",a),S,function(){d.m();Q(a);tj.set("3d-intro","true")})}}
function Ax(a){var b=new np(document);T(b,"key",function(a){if(!this.Dl||!(sd().id==this.Qe.Pf.id||sd().id==this.Qe.Ja.id))switch(a.keyCode){case 38:case 37:a.preventDefault();Gx(this,m);break;case 40:case 39:a.preventDefault();Gx(this,j);break;case 118:a.ctrlKey&&Hx(this)}},h,a)}
function Bx(a){a.mk=k;a.Tk=new M(0,0);a.K=new ye(120);a.Oh=0;T(a.Xa,"mousedown",function(a){a.preventDefault();this.mk=new M(a.clientX,a.clientY);this.Oh=0;K(this.Xa,"open-hand");J(this.Xa,"grab")},h,a);T(a.Xa,"mouseup",function(a){a.preventDefault();this.Oh=-1;K(this.Xa,"grab");J(this.Xa,"open-hand")},h,a);T(a.Xa,"mousemove",function(a){this.Tk=new M(a.clientX,a.clientY)},h,a);T(a.K,Ae,a.Hs,h,a);a.K.start()}
function Cx(a){T(Y("rotate-left"),S,function(){Gx(this,j)},h,a);T(Y("rotate-right"),S,function(){Gx(this,m)},h,a)}function Dx(a){T(a.Xa,"dragstart",function(a){a.stopPropagation();a.preventDefault()})}function Ex(a){A([a.Xa.parentNode.parentNode,a.fm],function(a){T(a,"mouseout",function(a){ea(a.relatedTarget)&&!cd(this.Xa.parentNode.parentNode,a.relatedTarget)&&!cd(this.fm,a.relatedTarget)&&px(this)},h,this)},a)}
function Fx(a){T(a.Xa,"touchmove",function(a){var c=a.wa;if(c.changedTouches.length==1&&(a.preventDefault(),a.stopPropagation(),a=c.changedTouches[0],c=this.wp-a.pageX,Math.abs(c)>5))Gx(this,c>0),this.wp=a.pageX},h,a)}q.tj=function(){ea(this.Nh)&&je(this.Nh);this.Nh=T(this.lm,"mousewheel",function(a){a.stopPropagation();a.preventDefault();Gx(this,a.xc>0)},h,this)};function Ix(a){var b=Tv(a.Dc);a.Bm.ta(b);L(a.Bm.b(),"hidden",b>=100)}
q.Hs=function(){if(!(this.Oh<0||this.Oh>=10||this.mk===k)&&!(Math.abs(this.mk.x-this.Tk.x)<3))this.Oh++,Gx(this,this.Tk.x<this.mk.x)};function Gx(a,b){if(dc(a.pf,"hidden")){a.e.Aa("r");px(a);if(b)a:{for(var c=a.Dc,d=Vv(c),f=c.elements[d],g=0;Ca(f);)if(d=Vv(c,d),f=c.elements[d],g++,g>20)break a;if(f)c.index=d}else a:{c=a.Dc;d=Uv(c);f=c.elements[d];for(g=0;Ca(f);)if(d=Uv(c,d),f=c.elements[d],g++,g>20)break a;if(f)c.index=d}Jx(a)}}function Jx(a){a.Xa.src=a.Dc.elements[a.Dc.index];ox(a,m);a.el()}
q.ks=function(a,b){this.Ob[this.Pc]=a;rx(this);b||this.e.Aa("up",a)};q.Sv=function(a){var b=N(a,"pattern_id");this.ze=a;this.$.pid=b;B(N(this.ze,"decorations"),N(this.$,Kw))||this.qd(Kw,"");tx(this)===k&&(this.qd(Qw,this.ze.heights[0]),tx(this)==4&&this.qd(Rw,Nv));this.ze.heights[0]==0&&(this.qd(Qw,0),this.qd(Rw,"flat"));qx(this);rx(this)};function qx(a){var b=Kx(a,j);kc(b,function(a){a in this.Ob||(this.Ob[a]=Ov(this.za,a))},a)}
function rx(a){ox(a,j);ux(a);a.cm++;Ca(a.Pc)&&(a.ar(xa(N(a.$,"pid"),"JF")?"outerupper":"heel"),a.e.Aa("sc",a.Pc));A(a.Dc.elements,function(a,b){this.Dc.elements[b]=k},a);Ix(a);A(a.vj.Za(),function(a){a.m()});a.vj.clear();for(var b=Wv(a.Dc),c=0,d;d=b[c];c++){var f=new ku;A(d,function(a){lu(f,this.cm+"-"+a,Lx(this,a))},a);T(f,"load",a.cu,h,a);c==0?(T(f,"error",function(){alert(N(this.ha,"ERROR_SERVER","Can't load shoe"));ox(this,m)},h,a),f.start()):ow(a.vj,f)}}
function Lx(a,b){var c=Ta(b*45,3),d="http://"+(b%4+".us-east.shoestatic.com")+(a.pn?"/shoes2/?3ds=true&":"/shoes/?")+"angle="+c+"&pattern="+N(a.$,"pid")+"&heeltype="+(N(a.$,Rw)+(sx(a)?"p":""));A(Kx(a),function(a){var b=N(this.Ob,a);if(!Ca(b))switch(a.toLowerCase()){case "insole":d+=Sa(b,"lack")?"&innerupper=blacklining&insole=black|bottom_leather&counter=black|hide_leather":"&innerupper=beigelining&insole=innerupperbeige|bottom_leather&counter=counterbeige";break;case "outsole":d+=Sa(b,"lack")?"&outsole=BlackSole&heelcap=black&outsoleside=black":
"&outsole=BeigeSole&heelcap=brown&outsoleside=brown";break;default:d+="&"+a.replace(".","")+"="+b}},a);a.$[Kw]=="diamante"&&(d+="&diamante=crystal");return d}q.cu=function(a){var b=a.target.id.split("-"),c=b[0];if(!(b.length!=2||c!=this.cm))b=Xa(b[1]),c=b==this.Dc.index,this.Dc.elements[b]=a.target.src,Ix(this),c&&Jx(this),(a=pw(this.vj))&&a.start()};
function Mx(a,b,c){ja(b)||(b=N(a.ze,"needles")[a.Dc.index]);var c=c||m,d=N(a.$,Rw)+(sx(a)?"p":"")+".",f={};kc(b,function(a,b){if(xa(b,Tw)||xa(b,Uw)||xa(b,Nv)||xa(b,"flat")){if(c||!Sa(b,"platform")||sx(this))xa(b,d)&&(f[b.replace(d,"")]=a)}else{if(!c){if(Sa(b,"trimming")&&!N(this.$,Hw)||Sa(b,"mjstrap")&&!N(this.$,Iw))return;var l=N(this.$,Kw);if(Sa(b,".")&&(!Sa(b,l)||Ca(l)))return}f[b]=a}},a);return f}
function Kx(a,b){var b=b||m,c=new Ue;A(N(a.ze,"needles",[]),function(a){a=Mx(this,a,b);c.Ug(pc(a))},a);return c.Za()}
q.el=function(){if(dc(this.pf,"hidden")&&!(this.$g>0||this.Rk))this.Rk=j,vw(this.nm),kc(Mx(this),function(a,b){var c=N(this.Ob,b),d=this.nm.cf(),f=a[0],g=a[1];d.Pk=b;d.se=new M(f[0],f[1]);d.ve=new M(g[0],g[1]);c=Pv(this.za,c);d.zj=c;Yv(d.ce,""+d.zj.catName+" - "+d.zj.name);d.pe=this.Pc==b;Cg(d.b(),d.position());Mg(d.b(),new ic(lw(d)?30:fc(d.se,d.ve)+30,lw(d)?fc(d.se,d.ve)+30:30));var c=$("label",d.b()),i;a:switch(f=mw(d),d.orientation()){case 1:case 3:i=new M(0,0);break a;case 2:i=new M(f.width,0);
break a;case 4:i=new M(0,f.height)}Cg(c,i);i=Fc("leather",c);wg(i,"backgroundPosition",d.zj.pos);i=Fc("line",d.b());Mg(i,mw(d));c=gc(kw(d),d.position());Cg(i,hc(c,new M(0,15)));d.$d(d.pe?d.Pk:"");Tg(d.b())||(W(d.b(),m),(new Sj(d.b(),300)).play())},this)};function px(a){a.$g>0?Ce(a.$g):(A(a.nm.Ec.Za(),function(a){W(a.b(),m)}),a.Rk=m);a.$g=Be(function(){this.$g=-1},500,a)}
function wx(a,b){var c=u(function(a){if(!$f(a.target))return alert(N(this.ha,"ERROR_LOADING","Can't find shoe")),Nc().location="/3d";a=bg(a.target);kc(N(a,"palette"),function(a,b){b=b.toLowerCase();switch(b){case "insole":a=(Sa(a,"lack")?"Black":"Beige")+"Lining";break;case "sole":b="outsole";a=(Sa(a,"lack")?"Black":"Beige")+"Sole";break;case "counter":case "innerupper":return}A(vx,function(a){xa(b,a)&&(b=b.replace(a,a+"."))});this.Ob[b]=a},this);kc(N(a,"options"),function(a,b){Ca(a)||(this.$[b]=
a)},this);this.e.Aa("cp",N(this.$,"pid"),this.$)},a);V("/3d/load/"+b,c)}function Hx(a){if(!a.qr)a.qr=j,a.rr&&(a.rr.removeAttribute("style"),T(Y("three-ds-icon"),S,function(){this.pn=!this.pn;rx(this)},h,a))};function Nx(){this.Vc=[];this.wd={}}z(Nx,zd);q=Nx.prototype;q.Hp=1;q.Tj=0;function Lv(a,b,c,d){var f=a.wd[b];f||(f=a.wd[b]=[]);var g=a.Hp;a.Vc[g]=b;a.Vc[g+1]=c;a.Vc[g+2]=d;a.Hp=g+3;f.push(g)}q.Ar=function(a){if(this.Tj!=0){if(!this.Qh)this.Qh=[];this.Qh.push(a);return m}var b=this.Vc[a];if(b){var c=this.wd[b];c&&ob(c,a);delete this.Vc[a];delete this.Vc[a+1];delete this.Vc[a+2]}return!!b};
q.Aa=function(a,b){var c=this.wd[a];if(c){this.Tj++;for(var d=ub(arguments,1),f=0,g=c.length;f<g;f++){var i=c[f];this.Vc[i+1].apply(this.Vc[i+2],d)}this.Tj--;if(this.Qh&&this.Tj==0)for(;c=this.Qh.pop();)this.Ar(c)}};q.clear=function(a){if(a){var b=this.wd[a];b&&(A(b,this.Ar,this),delete this.wd[a])}else this.Vc.length=0,this.wd={}};q.xa=function(a){if(a){var b=this.wd[a];return b?b.length:0}a=0;for(b in this.wd)a+=this.xa(b);return a};
q.d=function(){Nx.c.d.call(this);delete this.Vc;delete this.wd;delete this.Qh};function Ox(){this.e=new Nx;Lv(this.e,"cp",this.nw,this);this.za=k;this.mi=m;this.ha={}}q=Ox.prototype;q.Qv=function(a){this.za=new Kv(a);this.za.Oa(this.e)};q.Tv=function(a,b,c,d){this.ou=new Px(a,b);this.ou.Oa(this.e);this.uq=new Qx(d,c);this.uq.Oa(this.e);this.uq.Yh(this.za)};q.Ym=ba("mi");q.bi=ba("ha");
q.init=function(){(new Lw).Oa(this.e);(new Nw).Oa(this.e);var a=new Pw;a.Oa(this.e);a.Ym(this.mi);(new Fw).Oa(this.e);a=new Vw;a.Oa(this.e);a.Yh(this.za);a.init();this.Ub=new nx;this.Ub.bi(this.ha);this.Ub.Oa(this.e);a=this.Ub;a.nm=new uw(a.Xa.parentNode,a.e);this.Ub.Yh(this.za);this.Ub.start();T(Y("save"),S,this.Fv,h,this)};
q.Fv=function(){_gaq.push(["_trackEvent","Designer","saveDesign3d"]);Rx(m);ox(this.Ub,j,j);var a=this.Ub.$;tc(a,Lx(this.Ub,3));var b=u(function(a){var b=ag(a.target),f=m;!$f(a.target)||Sa(b,"Error")?(alert(N(this.ha,"ERROR_SERVER","Server error")),f=j):Sa(b,"Maintenance")&&(alert(N(this.ha,"ERROR_DB_DOWN","Server maintenance")),f=j);f?(Rx(j),ox(this.Ub,m)):Nc().location="/shoe/"+b},this);V("/3d/save",b,"POST",U(a))};
q.nw=function(a,b){ox(this.Ub,j);var c=u(function(a){if(!$f(a.target))return alert(N(this.ha,"ERROR_LOADING","Shoe is unavailable")),Nc().location="/3d";a=bg(a.target);this.e.Aa("um",a,b);var c=Y("shoe-cost");if(c)c.innerHTML=a.cost+(c.tagName=="SPAN"?" - ":" ")},this);V("/3d/info/"+a+".json",c,"POST")};function Rx(a){A(uj("designer-button"),function(b){L(b,"disabled-button",!a)})}Ox.prototype.sm=Ox.prototype.Qv;Ox.prototype.sr=Ox.prototype.Tv;Ox.prototype.sc=Ox.prototype.Ym;Ox.prototype.ss=Ox.prototype.bi;
Ox.prototype.i=Ox.prototype.init;function Px(a,b){this.Sh=a;this.Gu=b;this.e=k;this.Kh="ML15"}Px.prototype.Oa=function(a){this.e=a;Lv(this.e,"up",this.ow,this)};Px.prototype.ow=function(a){if(!Sa(a,"Lining")&&!Sa(a,"ZIP")&&!Sa(a,"Sole")&&!Sa(a,"CORK")&&this.Kh!=a){this.Kh=a;var a=new Pe,b=this.Sh[this.Kh].match;yb(b);a.set("match",ub(b,0,5));b=this.Sh[this.Kh].contrast;yb(b);a.set("contrast",ub(b,0,5));var c=[];A(this.Gu,function(a){nb(c,a[Math.floor(Math.random()*a.length)])},this);a.set("neutral",c);this.e.Aa("cr",a,this.Kh)}};function Qx(a,b){this.sd=a;this.nu=b;this.za=this.e=k;this.Fm=Sx;this.Db=this.Pc=this.wy=this.wi=this.Sh=k;Tx(this);Vw.call(this)}z(Qx,Vw);var Sx="match";Qx.prototype.Yh=ba("za");Qx.prototype.Oa=function(a){this.e=a;Lv(this.e,"cr",this.uu,this);Lv(this.e,"sc",ba("Pc"),this);T(Y("recommendation-minimize"),S,function(){K(Y("recommendations"),"hidden");J(Y("recommendation-minimize"),"hidden")})};
Qx.prototype.uu=function(a,b){this.Sh=a;this.wi=Pv(this.za,b);Ux(this);if(!ea(this.Db)){this.Vj=Y("recommendations");K(this.Vj,"hidden");var c=Rg(Y("body")),d=Pg(this.Vj),c=new jg(c.left+25,c.top,c.width-d.width-50,c.height-d.height),d=$("header",Y("recommendations-container"));this.Db=new lg(this.Vj,d,c)}Vx(this)};function Vx(a){var b=$("designer-close",Y("recommendations-container"));T(b,S,function(){J(this.Vj,"hidden");K(Y("recommendation-minimize"),"hidden")},h,a)}
function Ux(a){var b=a.Sh.get(a.Fm),c=[];A(b,function(a){nb(c,Pv(this.za,a))},a);b=bu(Jv,{Mk:a.Fm,em:c,$r:a.wi.name+" "+a.wi.catName,bu:a.nu[a.wi.code],gn:a.sd});Y("recommendations").innerHTML=b.innerHTML;Xw(a,uj("recommend-material"));A(Z("span","category"),function(a){T(a,S,function(){this.Fm=a.id;Ux(this);Vx(this);Zw(this,this.Pc)},h,this)},a);T(Y("blurb-link"),S,function(){this.Le.t(j)},h,a)}
function Tx(a){a.Le=new yh;a.Le.ik("What's this about?");a.Le.Ea(Y("recommendations-blurb-container").innerHTML);Jh(a.Le,k);Q(Y("recommendations-blurb-container"));a.Le.Pa();T(a.Le.lh(),S,function(){this.Le.t(m)},h,a)};function xx(a){this.Ub=a;this.bc=this.Qf=m;this.Yg=Y("chat-params");this.$c=this.Yg.getAttribute("chat-name");this.Wb="Friend";this.rb=this.Yg.getAttribute("channel-id");this.bd=this.Yg.getAttribute("channel-id-friend");this.Ai=this.Yg.getAttribute("chat-token");this.Yi=this.Of="";this.ao=Y("chat-request");this.Oe=Y("chat-container");this.Ja=Y("chat-msg-area");this.Pf=Y("chat-link");this.va=Y("chat-messages");this.Pe=Y("chat-img");this.$n=Y("chat-name-status");this.Zn=Y("chat-minimized-name-status");
this.fe=Y("chat-minimized");this.Bi=Y("chat-typing");this.Ci=Y("chat-wait");this.Xa=Y("frame");this.pf=Y("designer-loading");this.Qb=this.mb=k;this.K=new ye(5E3);this.nj=this.xh=this.Xe=k;this.Ol=15E5;this.Je="000,045,090,135,180,225,270,315".split(",");this.Nd=new ku;this.yn=j;this.pj=m;this.tq=document.title;this.zi=m;this.ha={}}q=xx.prototype;q.bi=function(a){this.ha=a;this.Wb=N(this.ha,"CHAT_FRIEND","Friend").toString()};q.ct=function(a){this.Of=bg(a.target).chat_id;tj.set("ci",this.Of)};
function yx(a){T(a.K,Ae,function(){this.bc||V("/3d/designer/chat?mode=checkChannel&channel="+this.bd,u(this.mp,this))},h,a);T(a.Pf,S,function(){this.K.start();this.Pf.focus();this.Pf.select();var a=this.Ub.$;a.update_chat_link=this.Pf.value;a.url=we(this.Xa.src,this.Je[1]);V("/3d/save",k,"POST",U(a));dc(this.Ci,"hidden")&&Be(function(){K(this.Ci,"hidden");T(Y("chat-wait-close"),S,function(){J(this.Ci,"hidden")},h,this)},2E3,this)},h,a);if(a.Yg.getAttribute("chat-started")=="True")a.Qf=j;a.Qf?V("/3d/designer/chat?mode=checkChannel&channel="+
a.rb,u(a.ap,a)):V("/3d/designer/chat?mode=checkChannel&channel="+a.bd,u(a.mp,a))}
q.mp=function(a){a=bg(a.target);if(a.connected){if(!this.bc)this.bc=j,this.Wb=a.username,Wx(this,j),V("/3d/designer/chat",k,"POST",U({name:this.$c,text:"f:"+this.Of,to_channel_id:this.bd,from_channel_id:this.rb,mode:"newMessage"}));this.Bi.innerHTML="";J(this.ao,"hidden");J(this.Ci,"hidden");K(this.Oe,"hidden");this.Qf?this.Qb==k&&V("/3d/designer/chat",u(this.is,this),"POST",U({channel_id:this.rb,mode:"startChat"})):(this.K.stop(),V("/3d/designer/chat",u(this.Nt,this),"POST",U({channel_id:this.rb,
mode:"startChat"})))}};q.is=function(a){a=bg(a.target);this.Ai=a.chat_token;this.$c=a.username;Xx(this);Yx(this)};q.ap=function(a){bg(a.target).connected?(this.Qf=m,this.K.stop(),Q(Y("facebook-like")),Xx(this),Zx(this),this.va.innerHTML+="<span class='chat-error'>["+N(this.ha,"CHAT_BUSY","Your friend is already engaged in a chat.")+"]</span><br/>",this.va.scrollTop=this.va.scrollHeight,this.Ja.disabled="disabled"):$x(this)};
q.Nt=function(a){a=bg(a.target);this.Ai=a.chat_token;this.$c=a.username;V("/3d/designer/chat?mode=checkChannel&channel="+this.rb,u(this.ap,this))};function Zx(a){Xx(a);T(Y("chat-close"),S,a.Cu,h,a);T(Y("chat-hidden-maximize"),S,a.yu,h,a);T(Y("chat-close-again"),S,function(){confirm(N(this.ha,"CHAT_CONFIRM_END","Do you really want to end this chat session?"))&&(this.bk(),ay(this))},h,a);by(a);a.ic()}
function Xx(a){var b=Rg(Y("body")),c=Pg(a.Oe),b=new jg(b.left,b.top,b.width-c.width-15,b.height-c.height);a.Xe=new lg(a.Oe,Y("chat-status-bar"),b)}
function by(a){var b=Y("chat-close"),c=a.va,d=Oc("div",{"class":"designer-scroller"});Xc(d,b);b=Pg(a.va);b=new jg(b.width-8,200,0,b.height-40);a.mb=new ww(d,k,b);Cg(d,b.left,b.top+b.height);T(a.mb,"drag",function(a){a.preventDefault();a.stopPropagation();var a=Math.round(100*(a.top-a.Xe.od.top)/a.Xe.od.height),b=c.scrollHeight-Pg(c).height;c.scrollTop=b/100*a});d=new zw(c);T(d,"mousewheel",function(a){a.stopPropagation();a.preventDefault();c.scrollTop+=a.xc*5;this.jn()},h,a)}
q.ic=function(){var a=j;if(this.mb!==k)var a=this.va,b=Pg(a).height+10,a=a.scrollHeight>b;L(this.mb.target,"hidden",!a)};q.jn=function(){var a=this.va,b=this.mb.od,c=a.scrollHeight-Pg(a).height;vg(this.mb,b.left,b.top+b.height*(a.scrollTop/c))};q.zt=function(a){a=bg(a.target);this.rb=a.channel_id;this.bd=a.channel_id_friend;this.Pf.value=a.chat_link;K(this.ao,"hidden")};
function ay(a){a.K.stop();a.bc=m;if(a.Qb)a.Qb.close(),a.Qb=k;Be(function(){V("/3d/designer/chat",u(this.zt,this),"POST",U({mode:"newChannelIds"}))},5E3,a);J(a.Oe,"hidden");J(a.fe,"hidden");a.Ja.removeAttribute("disabled");a.va.innerHTML="";a.Pe.src="/img/chat-loader.gif";a.ic();a.Wb=N(a.ha,"CHAT_FRIEND","Friend").toString();Wx(a,m);a.Xe.m()}q.Cu=function(){J(this.Oe,"hidden");K(this.fe,"hidden");J(this.fe,"black-to-grey");K(this.fe,"green-to-darkgreen");this.Oe.removeAttribute("style")};
q.yu=function(){K(this.Oe,"hidden");J(this.fe,"hidden");this.va.scrollTop=this.va.scrollHeight};
function $x(a){Q(Y("facebook-like"));Zx(a);a.bc&&Wx(a,a.bc);T(a.Ja,"focus",function(){if(this.Ja.value==N(this.ha,"START_CHATTING","Start Chatting"))this.Ja.value=""},h,a);var b=new np(a.Ja);T(b,"key",function(a){if(a.keyCode==13&&!a.shiftKey){a.preventDefault();Ce(this.nj);this.zi=m;if(!Ba(this.Ja.value))a="c:"+this.Ja.value,this.va.innerHTML+="<b>"+N(this.ha,"CHAT_ME","Me")+":</b> "+this.Ja.value+"<br/>",this.Ja.value="",this.va.scrollTop=this.va.scrollHeight,this.ic(),Ce(this.xh),this.xh=Be(this.Ok,
this.Ol,this),V("/3d/designer/chat",k,"POST",U({name:this.$c,text:a,to_channel_id:this.bd,from_channel_id:this.rb,to_chat_id:this.Yi,from_chat_id:this.Of,mode:"newMessage"})),_gaq.push(["_trackEvent","Chat","New Message",this.$c,(new Date).getTime()]);this.My=""}else{var b=!Ba(this.Ja.value);this.Ja.value.length==1&&a.keyCode==8?b=m:Ba(this.Ja.value)&&a.keyCode!=8&&(b=j);a=b;if(this.zi==a){if(a)Ce(this.nj),this.nj=Be(this.Iv,5E3,this)}else this.zi=a,V("/3d/designer/chat",k,"POST",U({name:this.$c,
text:"t:"+a,to_channel_id:this.bd,from_channel_id:this.rb,mode:"newMessage"}))}},h,a);Yx(a);a.Qf=j;a.K.start();a.xh=Be(a.Ok,a.Ol,a);T(window,"unload",a.bk,h,a);T(Y("save"),S,a.st,h,a);a.lm=new zw(a.Pe);T(window,"focus",function(){this.yn=j;this.pj=m;document.title=this.tq;this.tj()},h,a);T(window,"blur",function(){this.yn=m},h,a);tj.set("cd","true");a.$c==N(a.ha,"CHAT_FRIEND","Friend").toString()?_gaq.push(["_setCustomVar",2,"Chatted","Visitor",2]):_gaq.push(["_setCustomVar",2,"Chatted","Member",
2])}q.Iv=function(){this.zi=m;Ba(this.Ja.value)?Ce(this.nj):V("/3d/designer/chat",k,"POST",U({name:this.$c,text:"t:text",to_channel_id:this.bd,from_channel_id:this.rb,mode:"newMessage"}))};q.tj=function(){ea(this.Nh)&&je(this.Nh);this.Nh=T(this.lm,"mousewheel",function(a){a.stopPropagation();a.preventDefault();var b=ue(this.Pe.src,"angle"),b=this.Je.indexOf(b);a.xc<=0?(b++,b>=this.Je.length&&(b=0)):(b--,b<0&&(b=this.Je.length-1));b=this.Je[b];this.Pe.src=we(this.Pe.src,b)},h,this)};
q.st=function(){this.Qb.close();this.Qb=k;this.bk()};
function Yx(a){a.Qb=(new appengine.Channel(a.Ai)).open();a.Qb.onerror=u(function(){V("/3d/designer/chat",u(this.At,this),"POST",U({channel_id:this.rb,mode:"newChatToken"}))},a);a.Qb.onclose=u(function(){V("/3d/designer/chat",k,"POST",U({channel_id:this.rb,is_connected:"False",mode:"setChannelStatus"}))},a);a.Qb.onopen=u(function(){V("/3d/designer/chat",k,"POST",U({channel_id:this.rb,is_connected:"True",mode:"setChannelStatus"}))},a);a.Qb.onmessage=u(a.Et,a)}
q.At=function(a){this.Ai=bg(a.target).chat_token;Yx(this)};
q.Et=function(a){a=vf(a.data);if(xa(a.text,"i:"))this.Pe.src=a.text.substring(2);else if(xa(a.text,"q:"))this.Bi.innerHTML="<span class='chat-error'>["+a.text.substring(2)+"]</span>",Wx(this,m),Be(function(){this.bc=m},1E3,this);else if(xa(a.text,"f:")){if(this.Yi!=a.text.substring(2))this.Yi=a.text.substring(2),V("/3d/designer/chat",u(this.Ts,this),"POST",U({channel_id:this.rb,channel_id_friend:this.bd,chat_id:this.Of,chat_id_friend:this.Yi,mode:"getMessages"}))}else if(xa(a.text,"t:"))this.Bi.innerHTML=
a.text.substring(2)=="true"?this.Wb+N(this.ha,"CHAT_IS_TYPING"," is typing..."):a.text.substring(2)=="false"?"":this.Wb+N(this.ha,"CHAT_ENTERED_TEXT"," has entered text.");else{this.Bi.innerHTML="";if(!this.bc||this.Wb!=a.name)this.bc=j,this.Wb=a.name,Wx(this,this.bc);this.va.innerHTML+="<b>"+a.name+":</b> "+a.text.substring(2);this.va.innerHTML+="<br/>";this.va.scrollTop=this.va.scrollHeight;this.ic();dc(this.fe,"hidden")||(K(this.fe,"black-to-grey"),J(this.fe,"green-to-darkgreen"));if(!this.yn){if(this.pj)return;
this.pj=j;cy(this,j)}Ce(this.xh);this.xh=Be(this.Ok,this.Ol,this)}};function cy(a,b){if(a.pj)document.title=b?a.Wb+N(a.ha,"CHAT_SENT_MESSAGE"," has sent you a message."):a.tq,Be(function(){cy(this,!b)},1E3,a)}q.bk=function(){this.bc&&(fx(this.Ja,"disabled")||V("/3d/designer/chat",k,"POST",U({name:this.$c,text:"q:"+N(this.ha,"CHAT_FRIEND_DISCONNECTED","Friend has disconnected."),to_channel_id:this.bd,from_channel_id:this.rb,mode:"newMessage"})))};
q.Ok=function(){this.bk();this.va.innerHTML+="<span class='chat-error'>["+N(this.ha,"CHAT_INACTIVE","Chat has been inactive for too long. You have been disconnected.")+"]</span><br/>";this.va.scrollTop=this.va.scrollHeight;this.Ja.disabled="disabled";this.ic();this.Qb.close();this.Qb=k};q.Ts=function(a){if(a=bg(a.target).messages)A(a,function(a){this.va.innerHTML+="<b>"+a.name+":</b> "+a.text.substring(2)+"<br/>"},this),this.va.scrollTop=this.va.scrollHeight,this.ic()};
q.Oa=function(a){this.e=a;Lv(this.e,"cp",this.Di,this);Lv(this.e,"cm",this.Di,this);Lv(this.e,"co",this.Di,this)};q.Di=function(){dc(this.pf,"hidden")?this.Qf&&this.bc&&dy(this):Be(this.Di,500,this)};function dy(a){A(a.Je,function(a){lu(this.Nd,a,we(this.Pe.src,a))},a);a.Nd.start();var b="i:"+we(a.Xa.src,a.Je[1]);V("/3d/designer/chat",k,"POST",U({name:a.$c,text:b,to_channel_id:a.bd,from_channel_id:a.rb,mode:"newMessage"}))}
function Wx(a,b){b?(a.$n.innerHTML=a.Wb+" - <span class='chat-status-connected'>"+N(a.ha,"CHAT_CONNECTED","Connected")+"</span>",a.Zn.innerHTML=a.Wb+" - <span class='chat-status-connected'>"+N(a.ha,"CHAT_CONNECTED","Connected")+"</span>",a.Ja.removeAttribute("disabled"),dy(a)):(a.$n.innerHTML=a.Wb+" - <span class='chat-status-disconnected'>"+N(a.ha,"CHAT_DISCONNECTED","Disconnected")+"</span>",a.Zn.innerHTML=a.Wb+" - <span class='chat-status-disconnected'>"+N(a.ha,"CHAT_DISCONNECTED","Disconnected")+
"</span>",a.Ja.disabled="disabled")};var vx="singlebow,doublebow,silkrose,butterflybow,thinbow,doublerose,crystalrose,diamante".split(",");function ey(){this.md()}ey.prototype.md=function(){A(uj("shoe"),function(a){T(a,"mousemove",function(b){b=Math.round((b.clientX-Ig(a).x)*(4/205));wg(a,"backgroundPosition","0 -"+Math.min(b,4)*205+"px")})})};y("w.start",ey);function fy(){Ox.call(this)}z(fy,Ox);y("w.s.player",fy);var Sv=8;

